包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

280 lines
3.3 MiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7342],{35611:function(Cv,Tv,Za){"use strict";Za.d(Tv,{Z:function(){return q}});var Ps=Za(28991),Io=Za(85893),os=Za(18106),zn=Za(95562),vi=Za(96156),Yg=Za(90484),_s=Za(28481),Mm=Za(84305),g_=Za(39559),fr=Za(81253),Lm=Za(6999),e=Za(75302),o=Za(8812),ne=Za(53621),K=Za(94184),se=Za.n(K),O=Za(97435),ie=Za(50344),_e=Za(80334),Q=Za(67294),p=Za(58856),D=["tab","children"],le=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function de(G){return G.filter(function(ye){return ye})}function te(G,ye,b){if(G)return G.map(function(T){return(0,Ps.Z)((0,Ps.Z)({},T),{},{children:(0,Io.jsx)(F,(0,Ps.Z)((0,Ps.Z)({},b==null?void 0:b.cardProps),{},{children:T.children}))})});(0,_e.ET)(!b,"Tabs.TabPane is deprecated. Please use `items` directly.");var x=(0,ie.Z)(ye).map(function(T){if(Q.isValidElement(T)){var Z=T.key,B=T.props,u=B||{},A=u.tab,w=u.children,z=(0,fr.Z)(u,D),U=(0,Ps.Z)((0,Ps.Z)({key:String(Z)},z),{},{children:(0,Io.jsx)(F,(0,Ps.Z)((0,Ps.Z)({},b==null?void 0:b.cardProps),{},{children:w})),label:A});return U}return null});return de(x)}var oe=function(ye){var b=ye.key,x=ye.tab,T=ye.tabKey,Z=ye.disabled,B=ye.destroyInactiveTabPane,u=ye.children,A=ye.className,w=ye.style,z=ye.cardProps,U=(0,fr.Z)(ye,le),ge=(0,Q.useContext)(g_.ZP.ConfigContext),pe=ge.getPrefixCls,He=pe("pro-card-tabpane"),Be=se()(He,A);return(0,Io.jsx)(zn.Z.TabPane,(0,Ps.Z)((0,Ps.Z)({tabKey:T,tab:x,className:Be,style:w,disabled:Z,destroyInactiveTabPane:B},U),{},{children:(0,Io.jsx)(F,(0,Ps.Z)((0,Ps.Z)({},z),{},{children:u}))}),b)},ae=oe,E=Za(21770),I=Za(6599),f=function(ye){var b=ye.actions,x=ye.prefixCls;return Array.isArray(b)&&(b==null?void 0:b.length)?(0,Io.jsx)("ul",{className:"".concat(x,"-actions"),children:b.map(function(T,Z){return(0,Io.jsx)("li",{style:{width:"".concat(100/b.length,"%")},children:(0,Io.jsx)("span",{children:T})},"action-".concat(Z))})}):b?(0,Io.jsx)("ul",{className:"".concat(x,"-actions"),children:b}):null},m=f,y=Za(89032),S=Za(15746),k=Za(13062),C=Za(71230),me=Za(61070),De=function(ye){var b=ye.style,x=ye.prefix;return(0,Io.jsxs)("div",{className:"".concat(x,"-loading-content"),style:b,children:[(0,Io.jsx)(C.Z,{gutter:8,children:(0,Io.jsx)(S.Z,{span:22,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})})}),(0,Io.jsxs)(C.Z,{gutter:8,children:[(0,Io.jsx)(S.Z,{span:8,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})}),(0,Io.jsx)(S.Z,{span:15,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})})]}),(0,Io.jsxs)(C.Z,{gutter:8,children:[(0,Io.jsx)(S.Z,{span:6,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})}),(0,Io.jsx)(S.Z,{span:18,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})})]}),(0,Io.jsxs)(C.Z,{gutter:8,children:[(0,Io.jsx)(S.Z,{span:13,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})}),(0,Io.jsx)(S.Z,{span:9,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})})]}),(0,Io.jsxs)(C.Z,{gutter:8,children:[(0,Io.jsx)(S.Z,{span:4,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})}),(0,Io.jsx)(S.Z,{span:3,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})}),(0,Io.jsx)(S.Z,{span:16,children:(0,Io.jsx)("div",{className:"".concat(x,"-loading-block")})})]})]})},X=De,M=Za(43237),H=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],V=e.ZP.useBreakpoint,h=Q.forwardRef(function(G,ye){var b,x,T,Z=G.className,B=G.style,u=G.bodyStyle,A=u===void 0?{}:u,w=G.headStyle,z=w===void 0?{}:w,U=G.title,ge=G.subTitle,pe=G.extra,He=G.tip,Be=G.wrap,Me=Be===void 0?!1:Be,Le=G.layout,Ae=G.loading,Xe=G.gutter,Ne=Xe===void 0?0:Xe,Oe=G.tooltip,be=G.split,Y=G.headerBordered,d=Y===void 0?!1:Y,j=G.bordered,Ce=j===void 0?!1:j,Se=G.children,Re=G.size,er=G.actions,wr=G.ghost,mr=wr===void 0?!1:wr,Ue=G.hoverable,t=Ue===void 0?!1:Ue,qr=G.direction,ln=G.collapsed,dr=G.collapsible,vr=dr===void 0?!1:dr,kr=G.collapsibleIconRender,Ur=G.defaultCollapsed,Cr=Ur===void 0?!1:Ur,rn=G.onCollapse,Br=G.checked,pn=G.onChecked,ve=G.tabs,or=G.type,Ee=(0,fr.Z)(G,H),ze=(0,Q.useContext)(g_.ZP.ConfigContext),Ar=ze.getPrefixCls,xe=V(),cr=(0,E.Z)(Cr,{value:ln,onChange:rn}),Mr=(0,_s.Z)(cr,2),Rr=Mr[0],Qr=Mr[1],en=["xxl","xl","lg","md","sm","xs"],vn=te(ve==null?void 0:ve.items,Se,ve),Ie=function(ue){var Ke=[0,0],tr=Array.isArray(ue)?ue:[ue,0];return tr.forEach(function(hr,_r){if((0,Yg.Z)(hr)==="object")for(var Or=0;Or<en.length;Or+=1){var zr=en[Or];if(xe[zr]&&hr[zr]!==void 0){Ke[_r]=hr[zr];break}}else Ke[_r]=hr||0}),Ke},We=function(ue,Ke){return ue?Ke:{}},xr=function(ue){var Ke=ue;if((0,Yg.Z)(ue)==="object")for(var tr=0;tr<en.length;tr+=1){var hr=en[tr];if(xe[hr]&&ue[hr]!==void 0){Ke=ue[hr];break}}var _r=We(typeof Ke=="string"&&/\d%|\dpx/i.test(Ke),{width:Ke,flexShrink:0});return{span:Ke,colSpanStyle:_r}},Lr=Ar("pro-card"),xn=Ie(Ne),An=(0,_s.Z)(xn,2),Qn=An[0],ai=An[1],Dr=!1,Pr=Q.Children.toArray(Se),jr=Pr.map(function(Qe,ue){var Ke;if(Qe==null||(Ke=Qe.type)===null||Ke===void 0?void 0:Ke.isProCard){var tr;Dr=!0;var hr=Qe.props.colSpan,_r=xr(hr),Or=_r.span,zr=_r.colSpanStyle,fn=se()(["".concat(Lr,"-col")],(tr={},(0,vi.Z)(tr,"".concat(Lr,"-split-vertical"),be==="vertical"&&ue!==Pr.length-1),(0,vi.Z)(tr,"".concat(Lr,"-split-horizontal"),be==="horizontal"&&ue!==Pr.length-1),(0,vi.Z)(tr,"".concat(Lr,"-col-").concat(Or),typeof Or=="number"&&Or>=0&&Or<=24),tr));return(0,Io.jsx)("div",{style:(0,Ps.Z)((0,Ps.Z)((0,Ps.Z)({},zr),We(Qn>0,{paddingRight:Qn/2,paddingLeft:Qn/2})),We(ai>0,{paddingTop:ai/2,paddingBottom:ai/2})),className:fn,children:Q.cloneElement(Qe)},"pro-card-col-".concat((Qe==null?void 0:Qe.key)||ue))}return Qe}),on=se()("".concat(Lr),Z,(b={},(0,vi.Z)(b,"".concat(Lr,"-border"),Ce),(0,vi.Z)(b,"".concat(Lr,"-contain-card"),Dr),(0,vi.Z)(b,"".concat(Lr,"-loading"),Ae),(0,vi.Z)(b,"".concat(Lr,"-split"),be==="vertical"||be==="horizontal"),(0,vi.Z)(b,"".concat(Lr,"-ghost"),mr),(0,vi.Z)(b,"".concat(Lr,"-hoverable"),t),(0,vi.Z)(b,"".concat(Lr,"-size-").concat(Re),Re),(0,vi.Z)(b,"".concat(Lr,"-type-").concat(or),or),(0,vi.Z)(b,"".concat(Lr,"-collapse"),Rr),(0,vi.Z)(b,"".concat(Lr,"-checked"),Br),b)),je=se()("".concat(Lr,"-body"),(x={},(0,vi.Z)(x,"".concat(Lr,"-body-center"),Le==="center"),(0,vi.Z)(x,"".concat(Lr,"-body-direction-column"),be==="horizontal"||qr==="column"),(0,vi.Z)(x,"".concat(Lr,"-body-wrap"),Me&&Dr),x)),Sr=(0,Ps.Z)((0,Ps.Z)((0,Ps.Z)({},We(Qn>0,{marginRight:-Qn/2,marginLeft:-Qn/2})),We(ai>0,{marginTop:-ai/2,marginBottom:-ai/2})),A),Te=Q.isValidElement(Ae)?Ae:(0,Io.jsx)(X,{prefix:Lr,style:A.padding===0||A.padding==="0px"?{padding:24}:void 0}),Ye=vr&&ln===void 0&&(kr?kr({collapsed:Rr}):(0,Io.jsx)(o.Z,{rotate:Rr?void 0:90,className:"".concat(Lr,"-collapsible-icon")}));return(0,Io.jsxs)("div",(0,Ps.Z)((0,Ps.Z)({className:on,style:B,ref:ye,onClick:function(ue){var Ke;pn==null||pn(ue),Ee==null||(Ke=Ee.onClick)===null||Ke===void 0||Ke.call(Ee,ue)}},(0,O.Z)(Ee,["prefixCls","colSpan"])),{},{children:[(U||pe||Ye)&&(0,Io.jsxs)("div",{className:se()("".concat(Lr,"-header"),(T={},(0,vi.Z)(T,"".concat(Lr,"-header-border"),d||or==="inner"),(0,vi.Z)(T,"".concat(Lr,"-header-collapsible"),Ye),T)),style:z,onClick:function(){Ye&&Qr(!Rr)},children:[(0,Io.jsxs)("div",{className:"".concat(Lr,"-title"),children:[Ye,(0,Io.jsx)(ne.Z,{label:U,tooltip:Oe||He,subTitle:ge})]}),pe&&(0,Io.jsx)("div",{className:"".concat(Lr,"-extra"),children:pe})]}),ve?(0,Io.jsx)("div",{className:"".concat(Lr,"-tabs"),children:(0,Io.jsx)(zn.Z,(0,Ps.Z)((0,Ps.Z)({onChange:ve.onChange},ve),{},{items:vn,children:Ae?Te:Se}))}):(0,Io.jsx)("div",{className:je,style:Sr,children:Ae?Te:jr}),(0,Io.jsx)(m,{actions:er,prefixCls:Lr})]}))}),F=h,$=Za(31666),L=function(ye){var b=(0,Q.useContext)(g_.ZP.ConfigContext),x=b.getPrefixCls,T=x("pro-card-divider"),Z=ye.className,B=ye.style,u=B===void 0?{}:B,A=ye.type,w=se()(T,Z,(0,vi.Z)({},"".concat(T,"-").concat(A),A));return(0,Io.jsx)("div",{className:w,style:u})},P=L,N=function(ye){return(0,Io.jsx)(F,(0,Ps.Z)({bodyStyle:{padding:0}},ye))},J=F;J.isProCard=!0,J.Divider=P,J.TabPane=ae,J.Group=N;var q=J},6599:function(){},43237:function(){},31666:function(){},61070:function(){},58856:function(){},52953:function(){},4914:function(Cv,Tv,Za){"use strict";Za.d(Tv,{K:function(){return Q},Z:function(){return oe}});var Ps=Za(96156),Io=Za(28481),os=Za(90484),zn=Za(94184),vi=Za.n(zn),Yg=Za(50344),_s=Za(67294),Mm=Za(53124),g_=Za(96159),fr=Za(24308),Lm=function(E){var I=E.children;return I},e=Lm,o=Za(22122);function ne(ae){return ae!=null}var K=function(E){var I=E.itemPrefixCls,f=E.component,m=E.span,y=E.className,S=E.style,k=E.labelStyle,C=E.contentStyle,me=E.bordered,De=E.label,X=E.content,M=E.colon,H=f;if(me){var V;return _s.createElement(H,{className:vi()((V={},(0,Ps.Z)(V,"".concat(I,"-item-label"),ne(De)),(0,Ps.Z)(V,"".concat(I,"-item-content"),ne(X)),V),y),style:S,colSpan:m},ne(De)&&_s.createElement("span",{style:k},De),ne(X)&&_s.createElement("span",{style:C},X))}return _s.createElement(H,{className:vi()("".concat(I,"-item"),y),style:S,colSpan:m},_s.createElement("div",{className:"".concat(I,"-item-container")},(De||De===0)&&_s.createElement("span",{className:vi()("".concat(I,"-item-label"),(0,Ps.Z)({},"".concat(I,"-item-no-colon"),!M)),style:k},De),(X||X===0)&&_s.createElement("span",{className:vi()("".concat(I,"-item-content")),style:C},X)))},se=K;function O(ae,E,I){var f=E.colon,m=E.prefixCls,y=E.bordered,S=I.component,k=I.type,C=I.showLabel,me=I.showContent,De=I.labelStyle,X=I.contentStyle;return ae.map(function(M,H){var V=M.props,h=V.label,F=V.children,$=V.prefixCls,L=$===void 0?m:$,P=V.className,N=V.style,J=V.labelStyle,q=V.contentStyle,G=V.span,ye=G===void 0?1:G,b=M.key;return typeof S=="string"?_s.createElement(se,{key:"".concat(k,"-").concat(b||H),className:P,style:N,labelStyle:(0,o.Z)((0,o.Z)({},De),J),contentStyle:(0,o.Z)((0,o.Z)({},X),q),span:ye,colon:f,component:S,itemPrefixCls:L,bordered:y,label:C?h:null,content:me?F:null}):[_s.createElement(se,{key:"label-".concat(b||H),className:P,style:(0,o.Z)((0,o.Z)((0,o.Z)({},De),N),J),span:1,colon:f,component:S[0],itemPrefixCls:L,bordered:y,label:h}),_s.createElement(se,{key:"content-".concat(b||H),className:P,style:(0,o.Z)((0,o.Z)((0,o.Z)({},X),N),q),span:ye*2-1,component:S[1],itemPrefixCls:L,bordered:y,content:F})]})}var ie=function(E){var I=_s.useContext(Q),f=E.prefixCls,m=E.vertical,y=E.row,S=E.index,k=E.bordered;return m?_s.createElement(_s.Fragment,null,_s.createElement("tr",{key:"label-".concat(S),className:"".concat(f,"-row")},O(y,E,(0,o.Z)({component:"th",type:"label",showLabel:!0},I))),_s.createElement("tr",{key:"content-".concat(S),className:"".concat(f,"-row")},O(y,E,(0,o.Z)({component:"td",type:"content",showContent:!0},I)))):_s.createElement("tr",{key:S,className:"".concat(f,"-row")},O(y,E,(0,o.Z)({component:k?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},I)))},_e=ie,Q=_s.createContext({}),p={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function D(ae,E){if(typeof ae=="number")return ae;if((0,os.Z)(ae)==="object")for(var I=0;I<fr.c4.length;I++){var f=fr.c4[I];if(E[f]&&ae[f]!==void 0)return ae[f]||p[f]}return 3}function le(ae,E,I){var f=ae;return(E===void 0||E>I)&&(f=(0,g_.Tm)(ae,{span:I})),f}function de(ae,E){var I=(0,Yg.Z)(ae).filter(function(S){return S}),f=[],m=[],y=E;return I.forEach(function(S,k){var C,me=(C=S.props)===null||C===void 0?void 0:C.span,De=me||1;if(k===I.length-1){m.push(le(S,me,y)),f.push(m);return}De<y?(y-=De,m.push(S)):(m.push(le(S,De,y)),f.push(m),y=E,m=[])}),f}function te(ae){var E,I=ae.prefixCls,f=ae.title,m=ae.extra,y=ae.column,S=y===void 0?p:y,k=ae.colon,C=k===void 0?!0:k,me=ae.bordered,De=ae.layout,X=ae.children,M=ae.className,H=ae.style,V=ae.size,h=ae.labelStyle,F=ae.contentStyle,$=_s.useContext(Mm.E_),L=$.getPrefixCls,P=$.direction,N=L("descriptions",I),J=_s.useState({}),q=(0,Io.Z)(J,2),G=q[0],ye=q[1],b=D(S,G);_s.useEffect(function(){var Z=fr.ZP.subscribe(function(B){(0,os.Z)(S)==="object"&&ye(B)});return function(){fr.ZP.unsubscribe(Z)}},[]);var x=de(X,b),T=_s.useMemo(function(){return{labelStyle:h,contentStyle:F}},[h,F]);return _s.createElement(Q.Provider,{value:T},_s.createElement("div",{className:vi()(N,(E={},(0,Ps.Z)(E,"".concat(N,"-").concat(V),V&&V!=="default"),(0,Ps.Z)(E,"".concat(N,"-bordered"),!!me),(0,Ps.Z)(E,"".concat(N,"-rtl"),P==="rtl"),E),M),style:H},(f||m)&&_s.createElement("div",{className:"".concat(N,"-header")},f&&_s.createElement("div",{className:"".concat(N,"-title")},f),m&&_s.createElement("div",{className:"".concat(N,"-extra")},m)),_s.createElement("div",{className:"".concat(N,"-view")},_s.createElement("table",null,_s.createElement("tbody",null,x.map(function(Z,B){return _s.createElement(_e,{key:B,index:B,colon:C,prefixCls:N,vertical:De==="vertical",bordered:me,row:Z})}))))))}te.Item=e;var oe=te},98858:function(Cv,Tv,Za){"use strict";var Ps=Za(38663),Io=Za.n(Ps),os=Za(52953),zn=Za.n(os)},55423:function(Cv,Tv,Za){"use strict";var Ps="/index.js",Io="/",os=Za(34155);/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  4. this file except in compliance with the License. You may obtain a copy of the
  5. License at http://www.apache.org/licenses/LICENSE-2.0
  6. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  7. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  8. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  9. MERCHANTABLITY OR NON-INFRINGEMENT.
  10. See the Apache Version 2.0 License for specific language governing permissions
  11. and limitations under the License.
  12. ***************************************************************************** */var zn=this&&this.__spreadArray||function(e,o,ne){if(ne||arguments.length===2)for(var K=0,se=o.length,O;K<se;K++)(O||!(K in o))&&(O||(O=Array.prototype.slice.call(o,0,K)),O[K]=o[K]);return e.concat(O||Array.prototype.slice.call(o))},vi=this&&this.__assign||function(){return vi=Object.assign||function(e){for(var o,ne=1,K=arguments.length;ne<K;ne++){o=arguments[ne];for(var se in o)Object.prototype.hasOwnProperty.call(o,se)&&(e[se]=o[se])}return e},vi.apply(this,arguments)},Yg=this&&this.__makeTemplateObject||function(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e},_s=this&&this.__generator||function(e,o){var ne={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},K,se,O,ie;return ie={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function _e(p){return function(D){return Q([p,D])}}function Q(p){if(K)throw new TypeError("Generator is already executing.");for(;ie&&(ie=0,p[0]&&(ne=0)),ne;)try{if(K=1,se&&(O=p[0]&2?se.return:p[0]?se.throw||((O=se.return)&&O.call(se),0):se.next)&&!(O=O.call(se,p[1])).done)return O;switch(se=0,O&&(p=[p[0]&2,O.value]),p[0]){case 0:case 1:O=p;break;case 4:return ne.label++,{value:p[1],done:!1};case 5:ne.label++,se=p[1],p=[0];continue;case 7:p=ne.ops.pop(),ne.trys.pop();continue;default:if(O=ne.trys,!(O=O.length>0&&O[O.length-1])&&(p[0]===6||p[0]===2)){ne=0;continue}if(p[0]===3&&(!O||p[1]>O[0]&&p[1]<O[3])){ne.label=p[1];break}if(p[0]===6&&ne.label<O[1]){ne.label=O[1],O=p;break}if(O&&ne.label<O[2]){ne.label=O[2],ne.ops.push(p);break}O[2]&&ne.ops.pop(),ne.trys.pop();continue}p=o.call(e,ne)}catch(D){p=[6,D],se=0}finally{K=O=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Mm=this&&this.__rest||function(e,o){var ne={};for(var K in e)Object.prototype.hasOwnProperty.call(e,K)&&o.indexOf(K)<0&&(ne[K]=e[K]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,K=Object.getOwnPropertySymbols(e);se<K.length;se++)o.indexOf(K[se])<0&&Object.prototype.propertyIsEnumerable.call(e,K[se])&&(ne[K[se]]=e[K[se]]);return ne},g_=this&&this.__extends||function(){var e=function(o,ne){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,se){K.__proto__=se}||function(K,se){for(var O in se)Object.prototype.hasOwnProperty.call(se,O)&&(K[O]=se[O])},e(o,ne)};return function(o,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");e(o,ne);function K(){this.constructor=o}o.prototype=ne===null?Object.create(ne):(K.prototype=ne.prototype,new K)}}(),fr;(function(e){e.versionMajorMinor="4.9",e.version="".concat(e.versionMajorMinor,".5");var o;(function(K){K[K.LessThan=-1]="LessThan",K[K.EqualTo=0]="EqualTo",K[K.GreaterThan=1]="GreaterThan"})(o=e.Comparison||(e.Comparison={}));var ne;(function(K){var se=typeof globalThis!="undefined"?globalThis:typeof Za.g!="undefined"?Za.g:typeof self!="undefined"?self:void 0;function O(){var _e=se==null?void 0:se.Map,Q=typeof _e!="undefined"&&"entries"in _e.prototype&&new _e([[0,0]]).size===1?_e:void 0;if(!Q)throw new Error("No compatible Map implementation found.");return Q}K.tryGetNativeMap=O;function ie(){var _e=se==null?void 0:se.Set,Q=typeof _e!="undefined"&&"entries"in _e.prototype&&new _e([0]).size===1?_e:void 0;if(!Q)throw new Error("No compatible Set implementation found.");return Q}K.tryGetNativeSet=ie})(ne||(ne={})),e.Map=ne.tryGetNativeMap(),e.Set=ne.tryGetNativeSet()})(fr||(fr={}));var fr;(function(e){function o(Je){if(Je){if(Qe(Je))return wr(Je);if(Je instanceof e.Map)return Je.entries();if(Je instanceof e.Set)return Je.values();throw new Error("Iteration not supported.")}}e.getIterator=o,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function ne(Je){return Je?Je.length:0}e.length=ne;function K(Je,ur){if(Je)for(var yr=0;yr<Je.length;yr++){var Jr=ur(Je[yr],yr);if(Jr)return Jr}}e.forEach=K;function se(Je,ur){if(Je)for(var yr=Je.length-1;yr>=0;yr--){var Jr=ur(Je[yr],yr);if(Jr)return Jr}}e.forEachRight=se;function O(Je,ur){if(Je!==void 0)for(var yr=0;yr<Je.length;yr++){var Jr=ur(Je[yr],yr);if(Jr!==void 0)return Jr}}e.firstDefined=O;function ie(Je,ur){for(;;){var yr=Je.next();if(yr.done)return;var Jr=ur(yr.value);if(Jr!==void 0)return Jr}}e.firstDefinedIterator=ie;function _e(Je,ur,yr){var Jr=yr;if(Je)for(var Mn=Je.next(),_i=0;!Mn.done;Mn=Je.next(),_i++)Jr=ur(Jr,Mn.value,_i);return Jr}e.reduceLeftIterator=_e;function Q(Je,ur,yr){var Jr=[];e.Debug.assertEqual(Je.length,ur.length);for(var Mn=0;Mn<Je.length;Mn++)Jr.push(yr(Je[Mn],ur[Mn],Mn));return Jr}e.zipWith=Q;function p(Je,ur){e.Debug.assertEqual(Je.length,ur.length);var yr=0;return{next:function(){return yr===Je.length?{value:void 0,done:!0}:(yr++,{value:[Je[yr-1],ur[yr-1]],done:!1})}}}e.zipToIterator=p;function D(Je,ur){e.Debug.assert(Je.length===ur.length);for(var yr=new e.Map,Jr=0;Jr<Je.length;++Jr)yr.set(Je[Jr],ur[Jr]);return yr}e.zipToMap=D;function le(Je,ur){if(Je.length<=1)return Je;for(var yr=[],Jr=0,Mn=Je.length;Jr<Mn;Jr++)Jr&&yr.push(ur),yr.push(Je[Jr]);return yr}e.intersperse=le;function de(Je,ur){if(Je){for(var yr=0;yr<Je.length;yr++)if(!ur(Je[yr],yr))return!1}return!0}e.every=de;function te(Je,ur,yr){if(Je!==void 0)for(var Jr=yr!=null?yr:0;Jr<Je.length;Jr++){var Mn=Je[Jr];if(ur(Mn,Jr))return Mn}}e.find=te;function oe(Je,ur,yr){if(Je!==void 0)for(var Jr=yr!=null?yr:Je.length-1;Jr>=0;Jr--){var Mn=Je[Jr];if(ur(Mn,Jr))return Mn}}e.findLast=oe;function ae(Je,ur,yr){if(Je===void 0)return-1;for(var Jr=yr!=null?yr:0;Jr<Je.length;Jr++)if(ur(Je[Jr],Jr))return Jr;return-1}e.findIndex=ae;function E(Je,ur,yr){if(Je===void 0)return-1;for(var Jr=yr!=null?yr:Je.length-1;Jr>=0;Jr--)if(ur(Je[Jr],Jr))return Jr;return-1}e.findLastIndex=E;function I(Je,ur){for(var yr=0;yr<Je.length;yr++){var Jr=ur(Je[yr],yr);if(Jr)return Jr}return e.Debug.fail()}e.findMap=I;function f(Je,ur,yr){if(yr===void 0&&(yr=gi),Je)for(var Jr=0,Mn=Je;Jr<Mn.length;Jr++){var _i=Mn[Jr];if(yr(_i,ur))return!0}return!1}e.contains=f;function m(Je,ur,yr){return yr===void 0&&(yr=gi),Je.length===ur.length&&Je.every(function(Jr,Mn){return yr(Jr,ur[Mn])})}e.arraysEqual=m;function y(Je,ur,yr){for(var Jr=yr||0;Jr<Je.length;Jr++)if(f(ur,Je.charCodeAt(Jr)))return Jr;return-1}e.indexOfAnyCharCode=y;function S(Je,ur){var yr=0;if(Je)for(var Jr=0;Jr<Je.length;Jr++){var Mn=Je[Jr];ur(Mn,Jr)&&yr++}return yr}e.countWhere=S;function k(Je,ur){if(Je){for(var yr=Je.length,Jr=0;Jr<yr&&ur(Je[Jr]);)Jr++;if(Jr<yr){var Mn=Je.slice(0,Jr);for(Jr++;Jr<yr;){var _i=Je[Jr];ur(_i)&&Mn.push(_i),Jr++}return Mn}}return Je}e.filter=k;function C(Je,ur){for(var yr=0,Jr=0;Jr<Je.length;Jr++)ur(Je[Jr],Jr,Je)&&(Je[yr]=Je[Jr],yr++);Je.length=yr}e.filterMutate=C;function me(Je){Je.length=0}e.clear=me;function De(Je,ur){var yr;if(Je){yr=[];for(var Jr=0;Jr<Je.length;Jr++)yr.push(ur(Je[Jr],Jr))}return yr}e.map=De;function X(Je,ur){return{next:function(){var yr=Je.next();return yr.done?yr:{value:ur(yr.value),done:!1}}}}e.mapIterator=X;function M(Je,ur){if(Je)for(var yr=0;yr<Je.length;yr++){var Jr=Je[yr],Mn=ur(Jr,yr);if(Jr!==Mn){var _i=Je.slice(0,yr);for(_i.push(Mn),yr++;yr<Je.length;yr++)_i.push(ur(Je[yr],yr));return _i}}return Je}e.sameMap=M;function H(Je){for(var ur=[],yr=0,Jr=Je;yr<Jr.length;yr++){var Mn=Jr[yr];Mn&&(Qe(Mn)?j(ur,Mn):ur.push(Mn))}return ur}e.flatten=H;function V(Je,ur){var yr;if(Je)for(var Jr=0;Jr<Je.length;Jr++){var Mn=ur(Je[Jr],Jr);Mn&&(Qe(Mn)?yr=j(yr,Mn):yr=be(yr,Mn))}return yr||e.emptyArray}e.flatMap=V;function h(Je,ur){var yr=[];if(Je)for(var Jr=0;Jr<Je.length;Jr++){var Mn=ur(Je[Jr],Jr);Mn&&(Qe(Mn)?j(yr,Mn):yr.push(Mn))}return yr}e.flatMapToMutable=h;function F(Je,ur){var yr=Je.next();if(yr.done)return e.emptyIterator;var Jr=Mn(yr.value);return{next:function(){for(;;){var _i=Jr.next();if(!_i.done)return _i;var di=Je.next();if(di.done)return di;Jr=Mn(di.value)}}};function Mn(_i){var di=ur(_i);return di===void 0?e.emptyIterator:Qe(di)?wr(di):di}}e.flatMapIterator=F;function $(Je,ur){var yr;if(Je)for(var Jr=0;Jr<Je.length;Jr++){var Mn=Je[Jr],_i=ur(Mn,Jr);(yr||Mn!==_i||Qe(_i))&&(yr||(yr=Je.slice(0,Jr)),Qe(_i)?j(yr,_i):yr.push(_i))}return yr||Je}e.sameFlatMap=$;function L(Je,ur){for(var yr=[],Jr=0;Jr<Je.length;Jr++){var Mn=ur(Je[Jr],Jr);if(Mn===void 0)return;yr.push(Mn)}return yr}e.mapAllOrFail=L;function P(Je,ur){var yr=[];if(Je)for(var Jr=0;Jr<Je.length;Jr++){var Mn=ur(Je[Jr],Jr);Mn!==void 0&&yr.push(Mn)}return yr}e.mapDefined=P;function N(Je,ur){return{next:function(){for(;;){var yr=Je.next();if(yr.done)return yr;var Jr=ur(yr.value);if(Jr!==void 0)return{value:Jr,done:!1}}}}}e.mapDefinedIterator=N;function J(Je,ur){if(!!Je){var yr=new e.Map;return Je.forEach(function(Jr,Mn){var _i=ur(Mn,Jr);if(_i!==void 0){var di=_i[0],fi=_i[1];di!==void 0&&fi!==void 0&&yr.set(di,fi)}}),yr}}e.mapDefinedEntries=J;function q(Je,ur){if(Je){var yr=new e.Set;return Je.forEach(function(Jr){var Mn=ur(Jr);Mn!==void 0&&yr.add(Mn)}),yr}}e.mapDefinedValues=q;function G(Je,ur,yr){if(Je.has(ur))return Je.get(ur);var Jr=yr();return Je.set(ur,Jr),Jr}e.getOrUpdate=G;function ye(Je,ur){return Je.has(ur)?!1:(Je.add(ur),!0)}e.tryAddToSet=ye,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function b(Je){var ur=!1;return{next:function(){var yr=ur;return ur=!0,yr?{value:void 0,done:!0}:{value:Je,done:!1}}}}e.singleIterator=b;function x(Je,ur,yr){var Jr;if(Je){Jr=[];for(var Mn=Je.length,_i=void 0,di=void 0,fi=0,Nt=0;fi<Mn;){for(;Nt<Mn;){var Gt=Je[Nt];if(di=ur(Gt,Nt),Nt===0)_i=di;else if(di!==_i)break;Nt++}if(fi<Nt){var la=yr(Je.slice(fi,Nt),_i,fi,Nt);la&&Jr.push(la),fi=Nt}_i=di,Nt++}}return Jr}e.spanMap=x;function T(Je,ur){if(!!Je){var yr=new e.Map;return Je.forEach(function(Jr,Mn){var _i=ur(Mn,Jr),di=_i[0],fi=_i[1];yr.set(di,fi)}),yr}}e.mapEntries=T;function Z(Je,ur){if(Je)if(ur)for(var yr=0,Jr=Je;yr<Jr.length;yr++){var Mn=Jr[yr];if(ur(Mn))return!0}else return Je.length>0;return!1}e.some=Z;function B(Je,ur,yr){for(var Jr,Mn=0;Mn<Je.length;Mn++)ur(Je[Mn])?Jr=Jr===void 0?Mn:Jr:Jr!==void 0&&(yr(Jr,Mn),Jr=void 0);Jr!==void 0&&yr(Jr,Je.length)}e.getRangesWhere=B;function u(Je,ur){return Z(ur)?Z(Je)?zn(zn([],Je,!0),ur,!0):ur:Je}e.concatenate=u;function A(Je,ur){return ur}function w(Je){return Je.map(A)}e.indicesOf=w;function z(Je,ur,yr){var Jr=w(Je);Re(Je,Jr,yr);for(var Mn=Je[Jr[0]],_i=[Jr[0]],di=1;di<Jr.length;di++){var fi=Jr[di],Nt=Je[fi];ur(Mn,Nt)||(_i.push(fi),Mn=Nt)}return _i.sort(),_i.map(function(Gt){return Je[Gt]})}function U(Je,ur){for(var yr=[],Jr=0,Mn=Je;Jr<Mn.length;Jr++){var _i=Mn[Jr];Ce(yr,_i,ur)}return yr}function ge(Je,ur,yr){return Je.length===0?[]:Je.length===1?Je.slice():yr?z(Je,ur,yr):U(Je,ur)}e.deduplicate=ge;function pe(Je,ur){if(Je.length===0)return e.emptyArray;for(var yr=Je[0],Jr=[yr],Mn=1;Mn<Je.length;Mn++){var _i=Je[Mn];switch(ur(_i,yr)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}Jr.push(yr=_i)}return Jr}function He(){return[]}e.createSortedArray=He;function Be(Je,ur,yr,Jr){if(Je.length===0)return Je.push(ur),!0;var Mn=pn(Je,ur,Wn,yr);return Mn<0?(Je.splice(~Mn,0,ur),!0):Jr?(Je.splice(Mn,0,ur),!0):!1}e.insertSorted=Be;function Me(Je,ur,yr){return pe(er(Je,ur),yr||ur||nn)}e.sortAndDeduplicate=Me;function Le(Je,ur){if(Je.length<2)return!0;for(var yr=Je[0],Jr=0,Mn=Je.slice(1);Jr<Mn.length;Jr++){var _i=Mn[Jr];if(ur(yr,_i)===1)return!1;yr=_i}return!0}e.arrayIsSorted=Le;function Ae(Je,ur,yr){if(yr===void 0&&(yr=gi),!Je||!ur)return Je===ur;if(Je.length!==ur.length)return!1;for(var Jr=0;Jr<Je.length;Jr++)if(!yr(Je[Jr],ur[Jr],Jr))return!1;return!0}e.arrayIsEqualTo=Ae;function Xe(Je){var ur;if(Je)for(var yr=0;yr<Je.length;yr++){var Jr=Je[yr];(ur||!Jr)&&(ur||(ur=Je.slice(0,yr)),Jr&&ur.push(Jr))}return ur||Je}e.compact=Xe;function Ne(Je,ur,yr){if(!ur||!Je||ur.length===0||Je.length===0)return ur;var Jr=[];e:for(var Mn=0,_i=0;_i<ur.length;_i++){_i>0&&e.Debug.assertGreaterThanOrEqual(yr(ur[_i],ur[_i-1]),0);r:for(var di=Mn;Mn<Je.length;Mn++)switch(Mn>di&&e.Debug.assertGreaterThanOrEqual(yr(Je[Mn],Je[Mn-1]),0),yr(ur[_i],Je[Mn])){case-1:Jr.push(ur[_i]);continue e;case 0:continue e;case 1:continue r}}return Jr}e.relativeComplement=Ne;function Oe(Je,ur){for(var yr=0,Jr=0,Mn=Je;Jr<Mn.length;Jr++){var _i=Mn[Jr];yr+=_i[ur]}return yr}e.sum=Oe;function be(Je,ur){return ur===void 0?Je:Je===void 0?[ur]:(Je.push(ur),Je)}e.append=be;function Y(Je,ur){return Je===void 0?ur:ur===void 0?Je:Qe(Je)?Qe(ur)?u(Je,ur):be(Je,ur):Qe(ur)?be(ur,Je):[Je,ur]}e.combine=Y;function d(Je,ur){return ur<0?Je.length+ur:ur}function j(Je,ur,yr,Jr){if(ur===void 0||ur.length===0)return Je;if(Je===void 0)return ur.slice(yr,Jr);yr=yr===void 0?0:d(ur,yr),Jr=Jr===void 0?ur.length:d(ur,Jr);for(var Mn=yr;Mn<Jr&&Mn<ur.length;Mn++)ur[Mn]!==void 0&&Je.push(ur[Mn]);return Je}e.addRange=j;function Ce(Je,ur,yr){return f(Je,ur,yr)?!1:(Je.push(ur),!0)}e.pushIfUnique=Ce;function Se(Je,ur,yr){return Je?(Ce(Je,ur,yr),Je):[ur]}e.appendIfUnique=Se;function Re(Je,ur,yr){ur.sort(function(Jr,Mn){return yr(Je[Jr],Je[Mn])||we(Jr,Mn)})}function er(Je,ur){return Je.length===0?Je:Je.slice().sort(ur)}e.sort=er;function wr(Je){var ur=0;return{next:function(){return ur===Je.length?{value:void 0,done:!0}:(ur++,{value:Je[ur-1],done:!1})}}}e.arrayIterator=wr;function mr(Je){var ur=Je.length;return{next:function(){return ur===0?{value:void 0,done:!0}:(ur--,{value:Je[ur],done:!1})}}}e.arrayReverseIterator=mr;function Ue(Je,ur){var yr=w(Je);return Re(Je,yr,ur),yr.map(function(Jr){return Je[Jr]})}e.stableSort=Ue;function t(Je,ur,yr,Jr){for(;yr<Jr;){if(Je[yr]!==ur[yr])return!1;yr++}return!0}e.rangeEquals=t;function qr(Je,ur){if(Je&&(ur=d(Je,ur),ur<Je.length))return Je[ur]}e.elementAt=qr;function ln(Je){return Je===void 0||Je.length===0?void 0:Je[0]}e.firstOrUndefined=ln;function dr(Je){return e.Debug.assert(Je.length!==0),Je[0]}e.first=dr;function vr(Je){return Je===void 0||Je.length===0?void 0:Je[Je.length-1]}e.lastOrUndefined=vr;function kr(Je){return e.Debug.assert(Je.length!==0),Je[Je.length-1]}e.last=kr;function Ur(Je){return Je&&Je.length===1?Je[0]:void 0}e.singleOrUndefined=Ur;function Cr(Je){return e.Debug.checkDefined(Ur(Je))}e.single=Cr;function rn(Je){return Je&&Je.length===1?Je[0]:Je}e.singleOrMany=rn;function Br(Je,ur,yr){var Jr=Je.slice(0);return Jr[ur]=yr,Jr}e.replaceElement=Br;function pn(Je,ur,yr,Jr,Mn){return ve(Je,yr(ur),yr,Jr,Mn)}e.binarySearch=pn;function ve(Je,ur,yr,Jr,Mn){if(!Z(Je))return-1;for(var _i=Mn||0,di=Je.length-1;_i<=di;){var fi=_i+(di-_i>>1),Nt=yr(Je[fi],fi);switch(Jr(Nt,ur)){case-1:_i=fi+1;break;case 0:return fi;case 1:di=fi-1;break}}return~_i}e.binarySearchKey=ve;function or(Je,ur,yr,Jr,Mn){if(Je&&Je.length>0){var _i=Je.length;if(_i>0){var di=Jr===void 0||Jr<0?0:Jr,fi=Mn===void 0||di+Mn>_i-1?_i-1:di+Mn,Nt=void 0;for(arguments.length<=2?(Nt=Je[di],di++):Nt=yr;di<=fi;)Nt=ur(Nt,Je[di],di),di++;return Nt}}return yr}e.reduceLeft=or;var Ee=Object.prototype.hasOwnProperty;function ze(Je,ur){return Ee.call(Je,ur)}e.hasProperty=ze;function Ar(Je,ur){return Ee.call(Je,ur)?Je[ur]:void 0}e.getProperty=Ar;function xe(Je){var ur=[];for(var yr in Je)Ee.call(Je,yr)&&ur.push(yr);return ur}e.getOwnKeys=xe;function cr(Je){var ur=[];do for(var yr=Object.getOwnPropertyNames(Je),Jr=0,Mn=yr;Jr<Mn.length;Jr++){var _i=Mn[Jr];Ce(ur,_i)}while(Je=Object.getPrototypeOf(Je));return ur}e.getAllKeys=cr;function Mr(Je){var ur=[];for(var yr in Je)Ee.call(Je,yr)&&ur.push(Je[yr]);return ur}e.getOwnValues=Mr;var Rr=Object.entries||function(Je){for(var ur=xe(Je),yr=Array(ur.length),Jr=0;Jr<ur.length;Jr++)yr[Jr]=[ur[Jr],Je[ur[Jr]]];return yr};function Qr(Je){return Je?Rr(Je):[]}e.getEntries=Qr;function en(Je,ur){for(var yr=new Array(Je),Jr=0;Jr<Je;Jr++)yr[Jr]=ur(Jr);return yr}e.arrayOf=en;function vn(Je,ur){for(var yr=[],Jr=Je.next();!Jr.done;Jr=Je.next())yr.push(ur?ur(Jr.value):Jr.value);return yr}e.arrayFrom=vn;function Ie(Je){for(var ur=[],yr=1;yr<arguments.length;yr++)ur[yr-1]=arguments[yr];for(var Jr=0,Mn=ur;Jr<Mn.length;Jr++){var _i=Mn[Jr];if(_i!==void 0)for(var di in _i)ze(_i,di)&&(Je[di]=_i[di])}return Je}e.assign=Ie;function We(Je,ur,yr){if(yr===void 0&&(yr=gi),Je===ur)return!0;if(!Je||!ur)return!1;for(var Jr in Je)if(Ee.call(Je,Jr)&&(!Ee.call(ur,Jr)||!yr(Je[Jr],ur[Jr])))return!1;for(var Jr in ur)if(Ee.call(ur,Jr)&&!Ee.call(Je,Jr))return!1;return!0}e.equalOwnProperties=We;function xr(Je,ur,yr){yr===void 0&&(yr=Wn);for(var Jr=new e.Map,Mn=0,_i=Je;Mn<_i.length;Mn++){var di=_i[Mn],fi=ur(di);fi!==void 0&&Jr.set(fi,yr(di))}return Jr}e.arrayToMap=xr;function Lr(Je,ur,yr){yr===void 0&&(yr=Wn);for(var Jr=[],Mn=0,_i=Je;Mn<_i.length;Mn++){var di=_i[Mn];Jr[ur(di)]=yr(di)}return Jr}e.arrayToNumericMap=Lr;function xn(Je,ur,yr){yr===void 0&&(yr=Wn);for(var Jr=jr(),Mn=0,_i=Je;Mn<_i.length;Mn++){var di=_i[Mn];Jr.add(ur(di),yr(di))}return Jr}e.arrayToMultiMap=xn;function An(Je,ur,yr){return yr===void 0&&(yr=Wn),vn(xn(Je,ur).values(),yr)}e.group=An;function Qn(Je){var ur={};for(var yr in Je)Ee.call(Je,yr)&&(ur[yr]=Je[yr]);return ur}e.clone=Qn;function ai(Je,ur){var yr={};for(var Jr in ur)Ee.call(ur,Jr)&&(yr[Jr]=ur[Jr]);for(var Jr in Je)Ee.call(Je,Jr)&&(yr[Jr]=Je[Jr]);return yr}e.extend=ai;function Dr(Je,ur){for(var yr in ur)Ee.call(ur,yr)&&(Je[yr]=ur[yr])}e.copyProperties=Dr;function Pr(Je,ur){return ur?ur.bind(Je):void 0}e.maybeBind=Pr;function jr(){var Je=new e.Map;return Je.add=on,Je.remove=je,Je}e.createMultiMap=jr;function on(Je,ur){var yr=this.get(Je);return yr?yr.push(ur):this.set(Je,yr=[ur]),yr}function je(Je,ur){var yr=this.get(Je);yr&&(Ea(yr,ur),yr.length||this.delete(Je))}function Sr(){return jr()}e.createUnderscoreEscapedMultiMap=Sr;function Te(Je){var ur=(Je==null?void 0:Je.slice())||[],yr=0;function Jr(){return yr===ur.length}function Mn(){for(var di=[],fi=0;fi<arguments.length;fi++)di[fi]=arguments[fi];ur.push.apply(ur,di)}function _i(){if(Jr())throw new Error("Queue is empty");var di=ur[yr];if(ur[yr]=void 0,yr++,yr>100&&yr>ur.length>>1){var fi=ur.length-yr;ur.copyWithin(0,yr),ur.length=fi,yr=0}return di}return{enqueue:Mn,dequeue:_i,isEmpty:Jr}}e.createQueue=Te;function Ye(Je,ur){var yr=new e.Map,Jr=0;function Mn(){var di=yr.values(),fi;return{next:function(){for(;;)if(fi){var Nt=fi.next();if(!Nt.done)return{value:Nt.value};fi=void 0}else{var Nt=di.next();if(Nt.done)return{value:void 0,done:!0};if(!Qe(Nt.value))return{value:Nt.value};fi=wr(Nt.value)}}}}var _i={has:function(di){var fi=Je(di);if(!yr.has(fi))return!1;var Nt=yr.get(fi);if(!Qe(Nt))return ur(Nt,di);for(var Gt=0,la=Nt;Gt<la.length;Gt++){var na=la[Gt];if(ur(na,di))return!0}return!1},add:function(di){var fi=Je(di);if(yr.has(fi)){var Nt=yr.get(fi);if(Qe(Nt))f(Nt,di,ur)||(Nt.push(di),Jr++);else{var Gt=Nt;ur(Gt,di)||(yr.set(fi,[Gt,di]),Jr++)}}else yr.set(fi,di),Jr++;return this},delete:function(di){var fi=Je(di);if(!yr.has(fi))return!1;var Nt=yr.get(fi);if(Qe(Nt)){for(var Gt=0;Gt<Nt.length;Gt++)if(ur(Nt[Gt],di))return Nt.length===1?yr.delete(fi):Nt.length===2?yr.set(fi,Nt[1-Gt]):Co(Nt,Gt),Jr--,!0}else{var la=Nt;if(ur(la,di))return yr.delete(fi),Jr--,!0}return!1},clear:function(){yr.clear(),Jr=0},get size(){return Jr},forEach:function(di){for(var fi=0,Nt=vn(yr.values());fi<Nt.length;fi++){var Gt=Nt[fi];if(Qe(Gt))for(var la=0,na=Gt;la<na.length;la++){var Ia=na[la];di(Ia,Ia)}else{var Ia=Gt;di(Ia,Ia)}}},keys:function(){return Mn()},values:function(){return Mn()},entries:function(){var di=Mn();return{next:function(){var fi=di.next();return fi.done?fi:{value:[fi.value,fi.value]}}}}};return _i}e.createSet=Ye;function Qe(Je){return Array.isArray?Array.isArray(Je):Je instanceof Array}e.isArray=Qe;function ue(Je){return Qe(Je)?Je:[Je]}e.toArray=ue;function Ke(Je){return typeof Je=="string"}e.isString=Ke;function tr(Je){return typeof Je=="number"}e.isNumber=tr;function hr(Je,ur){return Je!==void 0&&ur(Je)?Je:void 0}e.tryCast=hr;function _r(Je,ur){return Je!==void 0&&ur(Je)?Je:e.Debug.fail("Invalid cast. The supplied value ".concat(Je," did not pass the test '").concat(e.Debug.getFunctionName(ur),"'."))}e.cast=_r;function Or(Je){}e.noop=Or,e.noopPush={push:Or,length:0};function zr(){return!1}e.returnFalse=zr;function fn(){return!0}e.returnTrue=fn;function Vr(){}e.returnUndefined=Vr;function Wn(Je){return Je}e.identity=Wn;function bn(Je){return Je.toLowerCase()}e.toLowerCase=bn;var qn=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function yn(Je){return qn.test(Je)?Je.replace(qn,bn):Je}e.toFileNameLowerCase=yn;function Hn(){throw new Error("Not implemented")}e.notImplemented=Hn;function Ai(Je){var ur;return function(){return Je&&(ur=Je(),Je=void 0),ur}}e.memoize=Ai;function ti(Je){var ur=new e.Map;return function(yr){var Jr="".concat(typeof yr,":").concat(yr),Mn=ur.get(Jr);return Mn===void 0&&!ur.has(Jr)&&(Mn=Je(yr),ur.set(Jr,Mn)),Mn}}e.memoizeOne=ti;function Hi(Je,ur,yr,Jr,Mn){if(Mn){for(var _i=[],di=0;di<arguments.length;di++)_i[di]=arguments[di];return function(fi){return or(_i,function(Nt,Gt){return Gt(Nt)},fi)}}else return Jr?function(fi){return Jr(yr(ur(Je(fi))))}:yr?function(fi){return yr(ur(Je(fi)))}:ur?function(fi){return ur(Je(fi))}:Je?function(fi){return Je(fi)}:function(fi){return fi}}e.compose=Hi;var Ni;(function(Je){Je[Je.None=0]="None",Je[Je.Normal=1]="Normal",Je[Je.Aggressive=2]="Aggressive",Je[Je.VeryAggressive=3]="VeryAggressive"})(Ni=e.AssertionLevel||(e.AssertionLevel={}));function gi(Je,ur){return Je===ur}e.equateValues=gi;function Pn(Je,ur){return Je===ur||Je!==void 0&&ur!==void 0&&Je.toUpperCase()===ur.toUpperCase()}e.equateStringsCaseInsensitive=Pn;function Pe(Je,ur){return gi(Je,ur)}e.equateStringsCaseSensitive=Pe;function Ir(Je,ur){return Je===ur?0:Je===void 0?-1:ur===void 0?1:Je<ur?-1:1}function we(Je,ur){return Ir(Je,ur)}e.compareValues=we;function hn(Je,ur){return we(Je==null?void 0:Je.start,ur==null?void 0:ur.start)||we(Je==null?void 0:Je.length,ur==null?void 0:ur.length)}e.compareTextSpans=hn;function jn(Je,ur){return or(Je,function(yr,Jr){return ur(yr,Jr)===-1?yr:Jr})}e.min=jn;function gn(Je,ur){return Je===ur?0:Je===void 0?-1:ur===void 0?1:(Je=Je.toUpperCase(),ur=ur.toUpperCase(),Je<ur?-1:Je>ur?1:0)}e.compareStringsCaseInsensitive=gn;function nn(Je,ur){return Ir(Je,ur)}e.compareStringsCaseSensitive=nn;function Cn(Je){return Je?gn:nn}e.getStringComparer=Cn;var Dn=function(){var Je,ur,yr=fi();return Nt;function Jr(Gt,la,na){if(Gt===la)return 0;if(Gt===void 0)return-1;if(la===void 0)return 1;var Ia=na(Gt,la);return Ia<0?-1:Ia>0?1:0}function Mn(Gt){var la=new Intl.Collator(Gt,{usage:"sort",sensitivity:"variant"}).compare;return function(na,Ia){return Jr(na,Ia,la)}}function _i(Gt){if(Gt!==void 0)return di();return function(na,Ia){return Jr(na,Ia,la)};function la(na,Ia){return na.localeCompare(Ia)}}function di(){return function(na,Ia){return Jr(na,Ia,Gt)};function Gt(na,Ia){return la(na.toUpperCase(),Ia.toUpperCase())||la(na,Ia)}function la(na,Ia){return na<Ia?-1:na>Ia?1:0}}function fi(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Mn:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?_i:di}function Nt(Gt){return Gt===void 0?Je||(Je=yr(Gt)):Gt==="en-US"?ur||(ur=yr(Gt)):yr(Gt)}}(),On,Xn;function Ge(){return Xn}e.getUILocale=Ge;function cn(Je){Xn!==Je&&(Xn=Je,On=void 0)}e.setUILocale=cn;function Vn(Je,ur){var yr=On||(On=Dn(Xn));return yr(Je,ur)}e.compareStringsCaseSensitiveUI=Vn;function Ki(Je,ur,yr,Jr){return Je===ur?0:Je===void 0?-1:ur===void 0?1:Jr(Je[yr],ur[yr])}e.compareProperties=Ki;function dt(Je,ur){return we(Je?1:0,ur?1:0)}e.compareBooleans=dt;function qi(Je,ur,yr){for(var Jr=Math.max(2,Math.floor(Je.length*.34)),Mn=Math.floor(Je.length*.4)+1,_i,di=0,fi=ur;di<fi.length;di++){var Nt=fi[di],Gt=yr(Nt);if(Gt!==void 0&&Math.abs(Gt.length-Je.length)<=Jr){if(Gt===Je||Gt.length<3&&Gt.toLowerCase()!==Je.toLowerCase())continue;var la=Ci(Je,Gt,Mn-.1);if(la===void 0)continue;e.Debug.assert(la<Mn),Mn=la,_i=Nt}}return _i}e.getSpellingSuggestion=qi;function Ci(Je,ur,yr){for(var Jr=new Array(ur.length+1),Mn=new Array(ur.length+1),_i=yr+.01,di=0;di<=ur.length;di++)Jr[di]=di;for(var di=1;di<=Je.length;di++){var fi=Je.charCodeAt(di-1),Nt=Math.ceil(di>yr?di-yr:1),Gt=Math.floor(ur.length>yr+di?yr+di:ur.length);Mn[0]=di;for(var la=di,na=1;na<Nt;na++)Mn[na]=_i;for(var na=Nt;na<=Gt;na++){var Ia=Je[di-1].toLowerCase()===ur[na-1].toLowerCase()?Jr[na-1]+.1:Jr[na-1]+2,bs=fi===ur.charCodeAt(na-1)?Jr[na-1]:Math.min(Jr[na]+1,Mn[na-1]+1,Ia);Mn[na]=bs,la=Math.min(la,bs)}for(var na=Gt+1;na<=ur.length;na++)Mn[na]=_i;if(la>yr)return;var ds=Jr;Jr=Mn,Mn=ds}var ps=Jr[ur.length];return ps>yr?void 0:ps}function Tt(Je,ur){var yr=Je.length-ur.length;return yr>=0&&Je.indexOf(ur,yr)===yr}e.endsWith=Tt;function ot(Je,ur){return Tt(Je,ur)?Je.slice(0,Je.length-ur.length):Je}e.removeSuffix=ot;function Zi(Je,ur){return Tt(Je,ur)?Je.slice(0,Je.length-ur.length):void 0}e.tryRemoveSuffix=Zi;function ni(Je,ur){return Je.indexOf(ur)!==-1}e.stringContains=ni;function Va(Je){for(var ur=Je.length,yr=ur-1;yr>0;yr--){var Jr=Je.charCodeAt(yr);if(Jr>=48&&Jr<=57)do--yr,Jr=Je.charCodeAt(yr);while(yr>0&&Jr>=48&&Jr<=57);else if(yr>4&&(Jr===110||Jr===78)){if(--yr,Jr=Je.charCodeAt(yr),Jr!==105&&Jr!==73||(--yr,Jr=Je.charCodeAt(yr),Jr!==109&&Jr!==77))break;--yr,Jr=Je.charCodeAt(yr)}else break;if(Jr!==45&&Jr!==46)break;ur=yr}return ur===Je.length?Je:Je.slice(0,ur)}e.removeMinAndVersionNumbers=Va;function Ua(Je,ur){for(var yr=0;yr<Je.length;yr++)if(Je[yr]===ur)return za(Je,yr),!0;return!1}e.orderedRemoveItem=Ua;function za(Je,ur){for(var yr=ur;yr<Je.length-1;yr++)Je[yr]=Je[yr+1];Je.pop()}e.orderedRemoveItemAt=za;function Co(Je,ur){Je[ur]=Je[Je.length-1],Je.pop()}e.unorderedRemoveItemAt=Co;function Ea(Je,ur){return ho(Je,function(yr){return yr===ur})}e.unorderedRemoveItem=Ea;function ho(Je,ur){for(var yr=0;yr<Je.length;yr++)if(ur(Je[yr]))return Co(Je,yr),!0;return!1}function Aa(Je){return Je?Wn:yn}e.createGetCanonicalFileName=Aa;function Vi(Je){var ur=Je.prefix,yr=Je.suffix;return"".concat(ur,"*").concat(yr)}e.patternText=Vi;function Xi(Je,ur){return e.Debug.assert(Xo(Je,ur)),ur.substring(Je.prefix.length,ur.length-Je.suffix.length)}e.matchedText=Xi;function ao(Je,ur,yr){for(var Jr,Mn=-1,_i=0,di=Je;_i<di.length;_i++){var fi=di[_i],Nt=ur(fi);Xo(Nt,yr)&&Nt.prefix.length>Mn&&(Mn=Nt.prefix.length,Jr=fi)}return Jr}e.findBestPatternMatch=ao;function fo(Je,ur){return Je.lastIndexOf(ur,0)===0}e.startsWith=fo;function As(Je,ur){return fo(Je,ur)?Je.substr(ur.length):Je}e.removePrefix=As;function so(Je,ur,yr){return yr===void 0&&(yr=Wn),fo(yr(Je),yr(ur))?Je.substring(ur.length):void 0}e.tryRemovePrefix=so;function Xo(Je,ur){var yr=Je.prefix,Jr=Je.suffix;return ur.length>=yr.length+Jr.length&&fo(ur,yr)&&Tt(ur,Jr)}e.isPatternMatch=Xo;function Ho(Je,ur){return function(yr){return Je(yr)&&ur(yr)}}e.and=Ho;function Zo(){for(var Je=[],ur=0;ur<arguments.length;ur++)Je[ur]=arguments[ur];return function(){for(var yr=[],Jr=0;Jr<arguments.length;Jr++)yr[Jr]=arguments[Jr];for(var Mn,_i=0,di=Je;_i<di.length;_i++){var fi=di[_i];if(Mn=fi.apply(void 0,yr),Mn)return Mn}return Mn}}e.or=Zo;function To(Je){return function(){for(var ur=[],yr=0;yr<arguments.length;yr++)ur[yr]=arguments[yr];return!Je.apply(void 0,ur)}}e.not=To;function pr(Je){}e.assertType=pr;function Fr(Je){return Je===void 0?void 0:[Je]}e.singleElementArray=Fr;function yi(Je,ur,yr,Jr,Mn,_i){_i=_i||Or;for(var di=0,fi=0,Nt=Je.length,Gt=ur.length,la=!1;di<Nt&&fi<Gt;){var na=Je[di],Ia=ur[fi],bs=yr(na,Ia);bs===-1?(Jr(na),di++,la=!0):bs===1?(Mn(Ia),fi++,la=!0):(_i(Ia,na),di++,fi++)}for(;di<Nt;)Jr(Je[di++]),la=!0;for(;fi<Gt;)Mn(ur[fi++]),la=!0;return la}e.enumerateInsertsAndDeletes=yi;function Dt(Je,ur){for(var yr=Array(Je),Jr=0;Jr<Je;Jr++)yr[Jr]=ur(Jr);return yr}e.fill=Dt;function Ft(Je){var ur=[];return Pa(Je,ur,void 0,0),ur}e.cartesianProduct=Ft;function Pa(Je,ur,yr,Jr){for(var Mn=0,_i=Je[Jr];Mn<_i.length;Mn++){var di=_i[Mn],fi=void 0;yr?(fi=yr.slice(),fi.push(di)):fi=[di],Jr===Je.length-1?ur.push(fi):Pa(Je,ur,fi,Jr+1)}}function Ve(Je,ur,yr){return yr===void 0&&(yr=" "),ur<=Je.length?Je:yr.repeat(ur-Je.length)+Je}e.padLeft=Ve;function tn(Je,ur,yr){return yr===void 0&&(yr=" "),ur<=Je.length?Je:Je+yr.repeat(ur-Je.length)}e.padRight=tn;function Nn(Je,ur){for(var yr=Je.length,Jr=0;Jr<yr&&ur(Je[Jr]);)Jr++;return Je.slice(0,Jr)}e.takeWhile=Nn,e.trimString=String.prototype.trim?function(Je){return Je.trim()}:function(Je){return e.trimStringEnd(e.trimStringStart(Je))},e.trimStringEnd=String.prototype.trimEnd?function(Je){return Je.trimEnd()}:wn,e.trimStringStart=String.prototype.trimStart?function(Je){return Je.trimStart()}:function(Je){return Je.replace(/^\s+/g,"")};function wn(Je){for(var ur=Je.length-1;ur>=0&&e.isWhiteSpaceLike(Je.charCodeAt(ur));)ur--;return Je.slice(0,ur+1)}})(fr||(fr={}));var fr;(function(e){var o;(function(K){K[K.Off=0]="Off",K[K.Error=1]="Error",K[K.Warning=2]="Warning",K[K.Info=3]="Info",K[K.Verbose=4]="Verbose"})(o=e.LogLevel||(e.LogLevel={}));var ne;(function(K){var se,O=0;K.currentLogLevel=o.Warning,K.isDebugging=!1,K.enableDeprecationWarnings=!0;function ie(){return se!=null?se:se=new e.Version(e.version)}K.getTypeScriptVersion=ie;function _e(vr){return K.currentLogLevel<=vr}K.shouldLog=_e;function Q(vr,kr){K.loggingHost&&_e(vr)&&K.loggingHost.log(vr,kr)}function p(vr){Q(o.Info,vr)}K.log=p,function(vr){function kr(Br){Q(o.Error,Br)}vr.error=kr;function Ur(Br){Q(o.Warning,Br)}vr.warn=Ur;function Cr(Br){Q(o.Info,Br)}vr.log=Cr;function rn(Br){Q(o.Verbose,Br)}vr.trace=rn}(p=K.log||(K.log={}));var D={};function le(){return O}K.getAssertionLevel=le;function de(vr){var kr=O;if(O=vr,vr>kr)for(var Ur=0,Cr=e.getOwnKeys(D);Ur<Cr.length;Ur++){var rn=Cr[Ur],Br=D[rn];Br!==void 0&&K[rn]!==Br.assertion&&vr>=Br.level&&(K[rn]=Br,D[rn]=void 0)}}K.setAssertionLevel=de;function te(vr){return O>=vr}K.shouldAssert=te;function oe(vr,kr){return te(vr)?!0:(D[kr]={level:vr,assertion:K[kr]},K[kr]=e.noop,!1)}function ae(vr,kr){debugger;var Ur=new Error(vr?"Debug Failure. ".concat(vr):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ur,kr||ae),Ur}K.fail=ae;function E(vr,kr,Ur){return ae("".concat(kr||"Unexpected node.",`\r
  13. Node `).concat(ye(vr.kind)," was unexpected."),Ur||E)}K.failBadSyntaxKind=E;function I(vr,kr,Ur,Cr){vr||(kr=kr?"False expression: ".concat(kr):"False expression.",Ur&&(kr+=`\r
  14. Verbose Debug Information: `+(typeof Ur=="string"?Ur:Ur())),ae(kr,Cr||I))}K.assert=I;function f(vr,kr,Ur,Cr,rn){if(vr!==kr){var Br=Ur?Cr?"".concat(Ur," ").concat(Cr):Ur:"";ae("Expected ".concat(vr," === ").concat(kr,". ").concat(Br),rn||f)}}K.assertEqual=f;function m(vr,kr,Ur,Cr){vr>=kr&&ae("Expected ".concat(vr," < ").concat(kr,". ").concat(Ur||""),Cr||m)}K.assertLessThan=m;function y(vr,kr,Ur){vr>kr&&ae("Expected ".concat(vr," <= ").concat(kr),Ur||y)}K.assertLessThanOrEqual=y;function S(vr,kr,Ur){vr<kr&&ae("Expected ".concat(vr," >= ").concat(kr),Ur||S)}K.assertGreaterThanOrEqual=S;function k(vr,kr,Ur){vr==null&&ae(kr,Ur||k)}K.assertIsDefined=k;function C(vr,kr,Ur){return k(vr,kr,Ur||C),vr}K.checkDefined=C;function me(vr,kr,Ur){for(var Cr=0,rn=vr;Cr<rn.length;Cr++){var Br=rn[Cr];k(Br,kr,Ur||me)}}K.assertEachIsDefined=me;function De(vr,kr,Ur){return me(vr,kr,Ur||De),vr}K.checkEachDefined=De;function X(vr,kr,Ur){kr===void 0&&(kr="Illegal value:");var Cr=typeof vr=="object"&&e.hasProperty(vr,"kind")&&e.hasProperty(vr,"pos")?"SyntaxKind: "+ye(vr.kind):JSON.stringify(vr);return ae("".concat(kr," ").concat(Cr),Ur||X)}K.assertNever=X;function M(vr,kr,Ur,Cr){oe(1,"assertEachNode")&&I(kr===void 0||e.every(vr,kr),Ur||"Unexpected node.",function(){return"Node array did not pass test '".concat(P(kr),"'.")},Cr||M)}K.assertEachNode=M;function H(vr,kr,Ur,Cr){oe(1,"assertNode")&&I(vr!==void 0&&(kr===void 0||kr(vr)),Ur||"Unexpected node.",function(){return"Node ".concat(ye(vr==null?void 0:vr.kind)," did not pass test '").concat(P(kr),"'.")},Cr||H)}K.assertNode=H;function V(vr,kr,Ur,Cr){oe(1,"assertNotNode")&&I(vr===void 0||kr===void 0||!kr(vr),Ur||"Unexpected node.",function(){return"Node ".concat(ye(vr.kind)," should not have passed test '").concat(P(kr),"'.")},Cr||V)}K.assertNotNode=V;function h(vr,kr,Ur,Cr){oe(1,"assertOptionalNode")&&I(kr===void 0||vr===void 0||kr(vr),Ur||"Unexpected node.",function(){return"Node ".concat(ye(vr==null?void 0:vr.kind)," did not pass test '").concat(P(kr),"'.")},Cr||h)}K.assertOptionalNode=h;function F(vr,kr,Ur,Cr){oe(1,"assertOptionalToken")&&I(kr===void 0||vr===void 0||vr.kind===kr,Ur||"Unexpected node.",function(){return"Node ".concat(ye(vr==null?void 0:vr.kind)," was not a '").concat(ye(kr),"' token.")},Cr||F)}K.assertOptionalToken=F;function $(vr,kr,Ur){oe(1,"assertMissingNode")&&I(vr===void 0,kr||"Unexpected node.",function(){return"Node ".concat(ye(vr.kind)," was unexpected'.")},Ur||$)}K.assertMissingNode=$;function L(vr){}K.type=L;function P(vr){if(typeof vr!="function")return"";if(e.hasProperty(vr,"name"))return vr.name;var kr=Function.prototype.toString.call(vr),Ur=/^function\s+([\w\$]+)\s*\(/.exec(kr);return Ur?Ur[1]:""}K.getFunctionName=P;function N(vr){return"{ name: ".concat(e.unescapeLeadingUnderscores(vr.escapedName),"; flags: ").concat(u(vr.flags),"; declarations: ").concat(e.map(vr.declarations,function(kr){return ye(kr.kind)})," }")}K.formatSymbol=N;function J(vr,kr,Ur){vr===void 0&&(vr=0);var Cr=G(kr);if(vr===0)return Cr.length>0&&Cr[0][0]===0?Cr[0][1]:"0";if(Ur){for(var rn=[],Br=vr,pn=0,ve=Cr;pn<ve.length;pn++){var or=ve[pn],Ee=or[0],ze=or[1];if(Ee>vr)break;Ee!==0&&Ee&vr&&(rn.push(ze),Br&=~Ee)}if(Br===0)return rn.join("|")}else for(var Ar=0,xe=Cr;Ar<xe.length;Ar++){var cr=xe[Ar],Ee=cr[0],ze=cr[1];if(Ee===vr)return ze}return vr.toString()}K.formatEnum=J;var q=new e.Map;function G(vr){var kr=q.get(vr);if(kr)return kr;var Ur=[];for(var Cr in vr){var rn=vr[Cr];typeof rn=="number"&&Ur.push([rn,Cr])}var Br=e.stableSort(Ur,function(pn,ve){return e.compareValues(pn[0],ve[0])});return q.set(vr,Br),Br}function ye(vr){return J(vr,e.SyntaxKind,!1)}K.formatSyntaxKind=ye;function b(vr){return J(vr,e.SnippetKind,!1)}K.formatSnippetKind=b;function x(vr){return J(vr,e.NodeFlags,!0)}K.formatNodeFlags=x;function T(vr){return J(vr,e.ModifierFlags,!0)}K.formatModifierFlags=T;function Z(vr){return J(vr,e.TransformFlags,!0)}K.formatTransformFlags=Z;function B(vr){return J(vr,e.EmitFlags,!0)}K.formatEmitFlags=B;function u(vr){return J(vr,e.SymbolFlags,!0)}K.formatSymbolFlags=u;function A(vr){return J(vr,e.TypeFlags,!0)}K.formatTypeFlags=A;function w(vr){return J(vr,e.SignatureFlags,!0)}K.formatSignatureFlags=w;function z(vr){return J(vr,e.ObjectFlags,!0)}K.formatObjectFlags=z;function U(vr){return J(vr,e.FlowFlags,!0)}K.formatFlowFlags=U;function ge(vr){return J(vr,e.RelationComparisonResult,!0)}K.formatRelationComparisonResult=ge;function pe(vr){return J(vr,e.CheckMode,!0)}K.formatCheckMode=pe;function He(vr){return J(vr,e.SignatureCheckMode,!0)}K.formatSignatureCheckMode=He;function Be(vr){return J(vr,e.TypeFacts,!0)}K.formatTypeFacts=Be;var Me=!1,Le;function Ae(){if(Se(),!Le)throw new Error("Debugging helpers could not be loaded.");return Le}function Xe(vr){return console.log(Ne(vr))}K.printControlFlowGraph=Xe;function Ne(vr){return Ae().formatControlFlowGraph(vr)}K.formatControlFlowGraph=Ne;var Oe;function be(vr){"__debugFlowFlags"in vr||Object.defineProperties(vr,{__tsDebuggerDisplay:{value:function(){var kr=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",Ur=this.flags&~(2048-1);return"".concat(kr).concat(Ur?" (".concat(U(Ur),")"):"")}},__debugFlowFlags:{get:function(){return J(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return Ne(this)}}})}function Y(vr){Me&&(typeof Object.setPrototypeOf=="function"?(Oe||(Oe=Object.create(Object.prototype),be(Oe)),Object.setPrototypeOf(vr,Oe)):be(vr))}K.attachFlowNodeDebugInfo=Y;var d;function j(vr){"__tsDebuggerDisplay"in vr||Object.defineProperties(vr,{__tsDebuggerDisplay:{value:function(kr){return kr=String(kr).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(kr)}}})}function Ce(vr){Me&&(typeof Object.setPrototypeOf=="function"?(d||(d=Object.create(Array.prototype),j(d)),Object.setPrototypeOf(vr,d)):j(vr))}K.attachNodeArrayDebugInfo=Ce;function Se(){if(Me)return;var vr,kr;function Ur(){return vr===void 0&&typeof WeakMap=="function"&&(vr=new WeakMap),vr}function Cr(){return kr===void 0&&typeof WeakMap=="function"&&(kr=new WeakMap),kr}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var ze=this.flags&33554432?"TransientSymbol":"Symbol",Ar=this.flags&~33554432;return"".concat(ze," '").concat(e.symbolName(this),"'").concat(Ar?" (".concat(u(Ar),")"):"")}},__debugFlags:{get:function(){return u(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var ze=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(this.intrinsicName):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",Ar=this.flags&524288?this.objectFlags&~1343:0;return"".concat(ze).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(Ar?" (".concat(z(Ar),")"):"")}},__debugFlags:{get:function(){return A(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?z(this.objectFlags):""}},__debugTypeToString:{value:function(){var ze=Ur(),Ar=ze==null?void 0:ze.get(this);return Ar===void 0&&(Ar=this.checker.typeToString(this),ze==null||ze.set(this,Ar)),Ar}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return w(this.flags)}},__debugSignatureToString:{value:function(){var ze;return(ze=this.checker)===null||ze===void 0?void 0:ze.signatureToString(this)}}});for(var rn=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],Br=0,pn=rn;Br<pn.length;Br++){var ve=pn[Br];e.hasProperty(ve.prototype,"__debugKind")||Object.defineProperties(ve.prototype,{__tsDebuggerDisplay:{value:function(){var ze=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":ye(this.kind);return"".concat(ze).concat(this.flags?" (".concat(x(this.flags),")"):"")}},__debugKind:{get:function(){return ye(this.kind)}},__debugNodeFlags:{get:function(){return x(this.flags)}},__debugModifierFlags:{get:function(){return T(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return Z(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return B(e.getEmitFlags(this))}},__debugGetText:{value:function(ze){if(e.nodeIsSynthesized(this))return"";var Ar=Cr(),xe=Ar==null?void 0:Ar.get(this);if(xe===void 0){var cr=e.getParseTreeNode(this),Mr=cr&&e.getSourceFileOfNode(cr);xe=Mr?e.getSourceTextOfNodeFromSourceFile(Mr,cr,ze):"",Ar==null||Ar.set(this,xe)}return xe}}})}try{if(e.sys&&e.sys.require){var or=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),Ee=e.sys.require(or,"./compiler-debug");Ee.error||(Ee.module.init(e),Le=Ee.module)}}catch(ze){}Me=!0}K.enableDebugInfo=Se;function Re(vr,kr,Ur,Cr,rn){var Br=kr?"DeprecationError: ":"DeprecationWarning: ";return Br+="'".concat(vr,"' "),Br+=Cr?"has been deprecated since v".concat(Cr):"is deprecated",Br+=kr?" and can no longer be used.":Ur?" and will no longer be usable after v".concat(Ur,"."):".",Br+=rn?" ".concat(e.formatStringFromArgs(rn,[vr],0)):"",Br}function er(vr,kr,Ur,Cr){var rn=Re(vr,!0,kr,Ur,Cr);return function(){throw new TypeError(rn)}}function wr(vr,kr,Ur,Cr){var rn=!1;return function(){K.enableDeprecationWarnings&&!rn&&(p.warn(Re(vr,!1,kr,Ur,Cr)),rn=!0)}}function mr(vr,kr){var Ur,Cr;kr===void 0&&(kr={});var rn=typeof kr.typeScriptVersion=="string"?new e.Version(kr.typeScriptVersion):(Ur=kr.typeScriptVersion)!==null&&Ur!==void 0?Ur:ie(),Br=typeof kr.errorAfter=="string"?new e.Version(kr.errorAfter):kr.errorAfter,pn=typeof kr.warnAfter=="string"?new e.Version(kr.warnAfter):kr.warnAfter,ve=typeof kr.since=="string"?new e.Version(kr.since):(Cr=kr.since)!==null&&Cr!==void 0?Cr:pn,or=kr.error||Br&&rn.compareTo(Br)<=0,Ee=!pn||rn.compareTo(pn)>=0;return or?er(vr,Br,ve,kr.message):Ee?wr(vr,Br,ve,kr.message):e.noop}K.createDeprecation=mr;function Ue(vr,kr){return function(){return vr(),kr.apply(this,arguments)}}function t(vr,kr){var Ur,Cr=mr((Ur=kr==null?void 0:kr.name)!==null&&Ur!==void 0?Ur:P(vr),kr);return Ue(Cr,vr)}K.deprecate=t;function qr(vr){var kr=vr&7,Ur=kr===0?"in out":kr===3?"[bivariant]":kr===2?"in":kr===1?"out":kr===4?"[independent]":"";return vr&8?Ur+=" (unmeasurable)":vr&16&&(Ur+=" (unreliable)"),Ur}K.formatVariance=qr;var ln=function(){function vr(){}return vr.prototype.__debugToString=function(){var kr;switch(L(this),this.kind){case 3:return((kr=this.debugInfo)===null||kr===void 0?void 0:kr.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,function(){return"any"}),function(Ur,Cr){return"".concat(Ur.__debugTypeToString()," -> ").concat(typeof Cr=="string"?Cr:Cr.__debugTypeToString())}).join(", ");case 2:return e.zipWith(this.sources,this.targets,function(Ur,Cr){return"".concat(Ur.__debugTypeToString()," -> ").concat(Cr().__debugTypeToString())}).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split(`
  15. `).join(`
  16. `),`
  17. m2: `).concat(this.mapper2.__debugToString().split(`
  18. `).join(`
  19. `));default:return X(this)}},vr}();K.DebugTypeMapper=ln;function dr(vr){return K.isDebugging?Object.setPrototypeOf(vr,ln.prototype):vr}K.attachDebugPrototypeIfDebug=dr})(ne=e.Debug||(e.Debug={}))})(fr||(fr={}));var fr;(function(e){var o=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ne=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,K=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,se=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,O=/^[a-z0-9-]+$/i,ie=/^(0|[1-9]\d*)$/,_e=function(){function H(V,h,F,$,L){if(h===void 0&&(h=0),F===void 0&&(F=0),$===void 0&&($=""),L===void 0&&(L=""),typeof V=="string"){var P=e.Debug.checkDefined(Q(V),"Invalid version");V=P.major,h=P.minor,F=P.patch,$=P.prerelease,L=P.build}e.Debug.assert(V>=0,"Invalid argument: major"),e.Debug.assert(h>=0,"Invalid argument: minor"),e.Debug.assert(F>=0,"Invalid argument: patch");var N=$?e.isArray($)?$:$.split("."):e.emptyArray,J=L?e.isArray(L)?L:L.split("."):e.emptyArray;e.Debug.assert(e.every(N,function(q){return K.test(q)}),"Invalid argument: prerelease"),e.Debug.assert(e.every(J,function(q){return O.test(q)}),"Invalid argument: build"),this.major=V,this.minor=h,this.patch=F,this.prerelease=N,this.build=J}return H.tryParse=function(V){var h=Q(V);if(!!h){var F=h.major,$=h.minor,L=h.patch,P=h.prerelease,N=h.build;return new H(F,$,L,P,N)}},H.prototype.compareTo=function(V){return this===V?0:V===void 0?1:e.compareValues(this.major,V.major)||e.compareValues(this.minor,V.minor)||e.compareValues(this.patch,V.patch)||p(this.prerelease,V.prerelease)},H.prototype.increment=function(V){switch(V){case"major":return new H(this.major+1,0,0);case"minor":return new H(this.major,this.minor+1,0);case"patch":return new H(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(V)}},H.prototype.with=function(V){var h=V.major,F=h===void 0?this.major:h,$=V.minor,L=$===void 0?this.minor:$,P=V.patch,N=P===void 0?this.patch:P,J=V.prerelease,q=J===void 0?this.prerelease:J,G=V.build,ye=G===void 0?this.build:G;return new H(F,L,N,q,ye)},H.prototype.toString=function(){var V="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(V+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(V+="+".concat(this.build.join("."))),V},H.zero=new H(0,0,0,["0"]),H}();e.Version=_e;function Q(H){var V=o.exec(H);if(!!V){var h=V[1],F=V[2],$=F===void 0?"0":F,L=V[3],P=L===void 0?"0":L,N=V[4],J=N===void 0?"":N,q=V[5],G=q===void 0?"":q;if(!(J&&!ne.test(J))&&!(G&&!se.test(G)))return{major:parseInt(h,10),minor:parseInt($,10),patch:parseInt(P,10),prerelease:J,build:G}}}function p(H,V){if(H===V)return 0;if(H.length===0)return V.length===0?0:1;if(V.length===0)return-1;for(var h=Math.min(H.length,V.length),F=0;F<h;F++){var $=H[F],L=V[F];if($!==L){var P=ie.test($),N=ie.test(L);if(P||N){if(P!==N)return P?-1:1;var J=e.compareValues(+$,+L);if(J)return J}else{var J=e.compareStringsCaseSensitive($,L);if(J)return J}}}return e.compareValues(H.length,V.length)}var D=function(){function H(V){this._alternatives=V?e.Debug.checkDefined(E(V),"Invalid range spec."):e.emptyArray}return H.tryParse=function(V){var h=E(V);if(h){var F=new H("");return F._alternatives=h,F}},H.prototype.test=function(V){return typeof V=="string"&&(V=new _e(V)),k(V,this._alternatives)},H.prototype.toString=function(){return De(this._alternatives)},H}();e.VersionRange=D;var le=/\|\|/g,de=/\s+/g,te=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,oe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,ae=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function E(H){for(var V=[],h=0,F=e.trimString(H).split(le);h<F.length;h++){var $=F[h];if(!!$){var L=[];$=e.trimString($);var P=oe.exec($);if(P){if(!f(P[1],P[2],L))return}else for(var N=0,J=$.split(de);N<J.length;N++){var q=J[N],G=ae.exec(e.trimString(q));if(!G||!m(G[1],G[2],L))return}V.push(L)}}return V}function I(H){var V=te.exec(H);if(!!V){var h=V[1],F=V[2],$=F===void 0?"*":F,L=V[3],P=L===void 0?"*":L,N=V[4],J=V[5],q=new _e(y(h)?0:parseInt(h,10),y(h)||y($)?0:parseInt($,10),y(h)||y($)||y(P)?0:parseInt(P,10),N,J);return{version:q,major:h,minor:$,patch:P}}}function f(H,V,h){var F=I(H);if(!F)return!1;var $=I(V);return $?(y(F.major)||h.push(S(">=",F.version)),y($.major)||h.push(y($.minor)?S("<",$.version.increment("major")):y($.patch)?S("<",$.version.increment("minor")):S("<=",$.version)),!0):!1}function m(H,V,h){var F=I(V);if(!F)return!1;var $=F.version,L=F.major,P=F.minor,N=F.patch;if(y(L))(H==="<"||H===">")&&h.push(S("<",_e.zero));else switch(H){case"~":h.push(S(">=",$)),h.push(S("<",$.increment(y(P)?"major":"minor")));break;case"^":h.push(S(">=",$)),h.push(S("<",$.increment($.major>0||y(P)?"major":$.minor>0||y(N)?"minor":"patch")));break;case"<":case">=":h.push(y(P)||y(N)?S(H,$.with({prerelease:"0"})):S(H,$));break;case"<=":case">":h.push(y(P)?S(H==="<="?"<":">=",$.increment("major").with({prerelease:"0"})):y(N)?S(H==="<="?"<":">=",$.increment("minor").with({prerelease:"0"})):S(H,$));break;case"=":case void 0:y(P)||y(N)?(h.push(S(">=",$.with({prerelease:"0"}))),h.push(S("<",$.increment(y(P)?"major":"minor").with({prerelease:"0"})))):h.push(S("=",$));break;default:return!1}return!0}function y(H){return H==="*"||H==="x"||H==="X"}function S(H,V){return{operator:H,operand:V}}function k(H,V){if(V.length===0)return!0;for(var h=0,F=V;h<F.length;h++){var $=F[h];if(C(H,$))return!0}return!1}function C(H,V){for(var h=0,F=V;h<F.length;h++){var $=F[h];if(!me(H,$.operator,$.operand))return!1}return!0}function me(H,V,h){var F=H.compareTo(h);switch(V){case"<":return F<0;case"<=":return F<=0;case">":return F>0;case">=":return F>=0;case"=":return F===0;default:return e.Debug.assertNever(V)}}function De(H){return e.map(H,X).join(" || ")||"*"}function X(H){return e.map(H,M).join(" ")}function M(H){return"".concat(H.operator).concat(H.operand)}})(fr||(fr={}));var fr;(function(e){function o(_e,Q){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 Q=="function"}function ne(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&o(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function K(){if(typeof os!="undefined"&&os.nextTick&&!os.browser&&!0)try{var _e,Q=Za(Object(function(){var oe=new Error("Cannot find module 'perf_hooks'");throw oe.code="MODULE_NOT_FOUND",oe}())),p=Q.performance,D=Q.PerformanceObserver;if(o(p,D)){_e=p;var le=new e.Version(os.versions.node),de=new e.VersionRange("<12.16.3 || 13 <13.13");return de.test(le)&&(_e={get timeOrigin(){return p.timeOrigin},now:function(){return p.now()},mark:function(te){return p.mark(te)},measure:function(te,oe,ae){oe===void 0&&(oe="nodeStart"),ae===void 0&&(ae="__performance.measure-fix__",p.mark(ae)),p.measure(te,oe,ae),ae==="__performance.measure-fix__"&&p.clearMarks("__performance.measure-fix__")},clearMarks:function(te){return p.clearMarks(te)},clearMeasures:function(te){return p.clearMeasures(te)}}),{shouldWriteNativeEvents:!1,performance:_e,PerformanceObserver:D}}}catch(te){}}var se=ne()||K(),O=se==null?void 0:se.performance;function ie(){return se}e.tryGetNativePerformanceHooks=ie,e.timestamp=O?function(){return O.now()}:Date.now?Date.now:function(){return+new Date}})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K,se;function O(C,me,De,X){return C?ie(me,De,X):ne.nullTimer}ne.createTimerIf=O;function ie(C,me,De){var X=0;return{enter:M,exit:H};function M(){++X==1&&de(me)}function H(){--X==0?(de(De),te(C,me,De)):X<0&&e.Debug.fail("enter/exit count does not match.")}}ne.createTimer=ie,ne.nullTimer={enter:e.noop,exit:e.noop};var _e=!1,Q=e.timestamp(),p=new e.Map,D=new e.Map,le=new e.Map;function de(C){var me;if(_e){var De=(me=D.get(C))!==null&&me!==void 0?me:0;D.set(C,De+1),p.set(C,e.timestamp()),se==null||se.mark(C)}}ne.mark=de;function te(C,me,De){var X,M;if(_e){var H=(X=De!==void 0?p.get(De):void 0)!==null&&X!==void 0?X:e.timestamp(),V=(M=me!==void 0?p.get(me):void 0)!==null&&M!==void 0?M:Q,h=le.get(C)||0;le.set(C,h+(H-V)),se==null||se.measure(C,me,De)}}ne.measure=te;function oe(C){return D.get(C)||0}ne.getCount=oe;function ae(C){return le.get(C)||0}ne.getDuration=ae;function E(C){le.forEach(function(me,De){return C(De,me)})}ne.forEachMeasure=E;function I(C){p.forEach(function(me,De){return C(De)})}ne.forEachMark=I;function f(C){C!==void 0?le.delete(C):le.clear(),se==null||se.clearMeasures(C)}ne.clearMeasures=f;function m(C){C!==void 0?(D.delete(C),p.delete(C)):(D.clear(),p.clear()),se==null||se.clearMarks(C)}ne.clearMarks=m;function y(){return _e}ne.isEnabled=y;function S(C){var me;return C===void 0&&(C=e.sys),_e||(_e=!0,K||(K=e.tryGetNativePerformanceHooks()),K&&(Q=K.performance.timeOrigin,(K.shouldWriteNativeEvents||((me=C==null?void 0:C.cpuProfilingEnabled)===null||me===void 0?void 0:me.call(C))||(C==null?void 0:C.debugMode))&&(se=K.performance))),!0}ne.enable=S;function k(){_e&&(p.clear(),D.clear(),le.clear(),se=void 0,_e=!1)}ne.disable=k})(o=e.performance||(e.performance={}))})(fr||(fr={}));var fr;(function(e){var o,ne={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},K;try{var se=(o={NODE_ENV:"production"}.TS_ETW_MODULE_PATH)!==null&&o!==void 0?o:"./node_modules/@microsoft/typescript-etw";K=Za(13411)(se)}catch(O){K=void 0}e.perfLogger=K&&K.logEvent?K:ne})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K,se=0,O=0,ie,_e=[],Q,p=[];function D(De,X,M){if(e.Debug.assert(!e.tracing,"Tracing already started"),K===void 0)try{K=Za(62715)}catch($){throw new Error(`tracing requires having fs
  20. (original error: `.concat($.message||$,")"))}ie=De,_e.length=0,Q===void 0&&(Q=e.combinePaths(X,"legend.json")),K.existsSync(X)||K.mkdirSync(X,{recursive:!0});var H=ie==="build"?".".concat(os.pid,"-").concat(++se):ie==="server"?".".concat(os.pid):"",V=e.combinePaths(X,"trace".concat(H,".json")),h=e.combinePaths(X,"types".concat(H,".json"));p.push({configFilePath:M,tracePath:V,typesPath:h}),O=K.openSync(V,"w"),e.tracing=ne;var F={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};K.writeSync(O,`[
  21. `+[vi({name:"process_name",args:{name:"tsc"}},F),vi({name:"thread_name",args:{name:"Main"}},F),vi(vi({name:"TracingStartedInBrowser"},F),{cat:"disabled-by-default-devtools.timeline"})].map(function($){return JSON.stringify($)}).join(`,
  22. `))}ne.startTracing=D;function le(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!_e.length==(ie!=="server")),K.writeSync(O,`
  23. ]
  24. `),K.closeSync(O),e.tracing=void 0,_e.length?C(_e):p[p.length-1].typesPath=void 0}ne.stopTracing=le;function de(De){ie!=="server"&&_e.push(De)}ne.recordType=de;var te;(function(De){De.Parse="parse",De.Program="program",De.Bind="bind",De.Check="check",De.CheckTypes="checkTypes",De.Emit="emit",De.Session="session"})(te=ne.Phase||(ne.Phase={}));function oe(De,X,M){S("I",De,X,M,'"s":"g"')}ne.instant=oe;var ae=[];function E(De,X,M,H){H===void 0&&(H=!1),H&&S("B",De,X,M),ae.push({phase:De,name:X,args:M,time:1e3*e.timestamp(),separateBeginAndEnd:H})}ne.push=E;function I(De){e.Debug.assert(ae.length>0),y(ae.length-1,1e3*e.timestamp(),De),ae.length--}ne.pop=I;function f(){for(var De=1e3*e.timestamp(),X=ae.length-1;X>=0;X--)y(X,De);ae.length=0}ne.popAll=f;var m=1e3*10;function y(De,X,M){var H=ae[De],V=H.phase,h=H.name,F=H.args,$=H.time,L=H.separateBeginAndEnd;L?(e.Debug.assert(!M,"`results` are not supported for events with `separateBeginAndEnd`"),S("E",V,h,F,void 0,X)):m-$%m<=X-$&&S("X",V,h,vi(vi({},F),{results:M}),'"dur":'.concat(X-$),$)}function S(De,X,M,H,V,h){h===void 0&&(h=1e3*e.timestamp()),!(ie==="server"&&X==="checkTypes")&&(e.performance.mark("beginTracing"),K.writeSync(O,`,
  25. {"pid":1,"tid":1,"ph":"`.concat(De,'","cat":"').concat(X,'","ts":').concat(h,',"name":"').concat(M,'"')),V&&K.writeSync(O,",".concat(V)),H&&K.writeSync(O,',"args":'.concat(JSON.stringify(H))),K.writeSync(O,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function k(De){var X=e.getSourceFileOfNode(De);return X?{path:X.path,start:M(e.getLineAndCharacterOfPosition(X,De.pos)),end:M(e.getLineAndCharacterOfPosition(X,De.end))}:void 0;function M(H){return{line:H.line+1,character:H.character+1}}}function C(De){var X,M,H,V,h,F,$,L,P,N,J,q,G,ye,b,x,T,Z,B,u,A,w;e.performance.mark("beginDumpTypes");var z=p[p.length-1].typesPath,U=K.openSync(z,"w"),ge=new e.Map;K.writeSync(U,"[");for(var pe=De.length,He=0;He<pe;He++){var Be=De[He],Me=Be.objectFlags,Le=(X=Be.aliasSymbol)!==null&&X!==void 0?X:Be.symbol,Ae=void 0;if(Me&16|Be.flags&2944)try{Ae=(M=Be.checker)===null||M===void 0?void 0:M.typeToString(Be)}catch(qr){Ae=void 0}var Xe={};if(Be.flags&8388608){var Ne=Be;Xe={indexedAccessObjectType:(H=Ne.objectType)===null||H===void 0?void 0:H.id,indexedAccessIndexType:(V=Ne.indexType)===null||V===void 0?void 0:V.id}}var Oe={};if(Me&4){var be=Be;Oe={instantiatedType:(h=be.target)===null||h===void 0?void 0:h.id,typeArguments:(F=be.resolvedTypeArguments)===null||F===void 0?void 0:F.map(function(qr){return qr.id}),referenceLocation:k(be.node)}}var Y={};if(Be.flags&16777216){var d=Be;Y={conditionalCheckType:($=d.checkType)===null||$===void 0?void 0:$.id,conditionalExtendsType:(L=d.extendsType)===null||L===void 0?void 0:L.id,conditionalTrueType:(N=(P=d.resolvedTrueType)===null||P===void 0?void 0:P.id)!==null&&N!==void 0?N:-1,conditionalFalseType:(q=(J=d.resolvedFalseType)===null||J===void 0?void 0:J.id)!==null&&q!==void 0?q:-1}}var j={};if(Be.flags&33554432){var Ce=Be;j={substitutionBaseType:(G=Ce.baseType)===null||G===void 0?void 0:G.id,constraintType:(ye=Ce.constraint)===null||ye===void 0?void 0:ye.id}}var Se={};if(Me&1024){var Re=Be;Se={reverseMappedSourceType:(b=Re.source)===null||b===void 0?void 0:b.id,reverseMappedMappedType:(x=Re.mappedType)===null||x===void 0?void 0:x.id,reverseMappedConstraintType:(T=Re.constraintType)===null||T===void 0?void 0:T.id}}var er={};if(Me&256){var wr=Be;er={evolvingArrayElementType:wr.elementType.id,evolvingArrayFinalType:(Z=wr.finalArrayType)===null||Z===void 0?void 0:Z.id}}var mr=void 0,Ue=Be.checker.getRecursionIdentity(Be);Ue&&(mr=ge.get(Ue),mr||(mr=ge.size,ge.set(Ue,mr)));var t=vi(vi(vi(vi(vi(vi(vi({id:Be.id,intrinsicName:Be.intrinsicName,symbolName:(Le==null?void 0:Le.escapedName)&&e.unescapeLeadingUnderscores(Le.escapedName),recursionId:mr,isTuple:Me&8?!0:void 0,unionTypes:Be.flags&1048576?(B=Be.types)===null||B===void 0?void 0:B.map(function(qr){return qr.id}):void 0,intersectionTypes:Be.flags&2097152?Be.types.map(function(qr){return qr.id}):void 0,aliasTypeArguments:(u=Be.aliasTypeArguments)===null||u===void 0?void 0:u.map(function(qr){return qr.id}),keyofType:Be.flags&4194304?(A=Be.type)===null||A===void 0?void 0:A.id:void 0},Xe),Oe),Y),j),Se),er),{destructuringPattern:k(Be.pattern),firstDeclaration:k((w=Le==null?void 0:Le.declarations)===null||w===void 0?void 0:w[0]),flags:e.Debug.formatTypeFlags(Be.flags).split("|"),display:Ae});K.writeSync(U,JSON.stringify(t)),He<pe-1&&K.writeSync(U,`,
  26. `)}K.writeSync(U,`]
  27. `),K.closeSync(U),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function me(){!Q||K.writeFileSync(Q,JSON.stringify(p))}ne.dumpLegend=me})(o||(o={})),e.startTracing=o.startTracing,e.dumpTracingLegend=o.dumpLegend})(fr||(fr={}));var fr;(function(e){var o;(function(t){t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NumericLiteral=8]="NumericLiteral",t[t.BigIntLiteral=9]="BigIntLiteral",t[t.StringLiteral=10]="StringLiteral",t[t.JsxText=11]="JsxText",t[t.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=13]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=15]="TemplateHead",t[t.TemplateMiddle=16]="TemplateMiddle",t[t.TemplateTail=17]="TemplateTail",t[t.OpenBraceToken=18]="OpenBraceToken",t[t.CloseBraceToken=19]="CloseBraceToken",t[t.OpenParenToken=20]="OpenParenToken",t[t.CloseParenToken=21]="CloseParenToken",t[t.OpenBracketToken=22]="OpenBracketToken",t[t.CloseBracketToken=23]="CloseBracketToken",t[t.DotToken=24]="DotToken",t[t.DotDotDotToken=25]="DotDotDotToken",t[t.SemicolonToken=26]="SemicolonToken",t[t.CommaToken=27]="CommaToken",t[t.QuestionDotToken=28]="QuestionDotToken",t[t.LessThanToken=29]="LessThanToken",t[t.LessThanSlashToken=30]="LessThanSlashToken",t[t.GreaterThanToken=31]="GreaterThanToken",t[t.LessThanEqualsToken=32]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=34]="EqualsEqualsToken",t[t.ExclamationEqualsToken=35]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",t[t.PlusToken=39]="PlusToken",t[t.MinusToken=40]="MinusToken",t[t.AsteriskToken=41]="AsteriskToken",t[t.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",t[t.SlashToken=43]="SlashToken",t[t.PercentToken=44]="PercentToken",t[t.PlusPlusToken=45]="PlusPlusToken",t[t.MinusMinusToken=46]="MinusMinusToken",t[t.LessThanLessThanToken=47]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=50]="AmpersandToken",t[t.BarToken=51]="BarToken",t[t.CaretToken=52]="CaretToken",t[t.ExclamationToken=53]="ExclamationToken",t[t.TildeToken=54]="TildeToken",t[t.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",t[t.BarBarToken=56]="BarBarToken",t[t.QuestionToken=57]="QuestionToken",t[t.ColonToken=58]="ColonToken",t[t.AtToken=59]="AtToken",t[t.QuestionQuestionToken=60]="QuestionQuestionToken",t[t.BacktickToken=61]="BacktickToken",t[t.HashToken=62]="HashToken",t[t.EqualsToken=63]="EqualsToken",t[t.PlusEqualsToken=64]="PlusEqualsToken",t[t.MinusEqualsToken=65]="MinusEqualsToken",t[t.AsteriskEqualsToken=66]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=68]="SlashEqualsToken",t[t.PercentEqualsToken=69]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=73]="AmpersandEqualsToken",t[t.BarEqualsToken=74]="BarEqualsToken",t[t.BarBarEqualsToken=75]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=78]="CaretEqualsToken",t[t.Identifier=79]="Identifier",t[t.PrivateIdentifier=80]="PrivateIdentifier",t[t.BreakKeyword=81]="BreakKeyword",t[t.CaseKeyword=82]="CaseKeyword",t[t.CatchKeyword=83]="CatchKeyword",t[t.ClassKeyword=84]="ClassKeyword",t[t.ConstKeyword=85]="ConstKeyword",t[t.ContinueKeyword=86]="ContinueKeyword",t[t.DebuggerKeyword=87]="DebuggerKeyword",t[t.DefaultKeyword=88]="DefaultKeyword",t[t.DeleteKeyword=89]="DeleteKeyword",t[t.DoKeyword=90]="DoKeyword",t[t.ElseKeyword=91]="ElseKeyword",t[t.EnumKeyword=92]="EnumKeyword",t[t.ExportKeyword=93]="ExportKeyword",t[t.ExtendsKeyword=94]="ExtendsKeyword",t[t.FalseKeyword=95]="FalseKeyword",t[t.FinallyKeyword=96]="FinallyKeyword",t[t.ForKeyword=97]="ForKeyword",t[t.FunctionKeyword=98]="FunctionKeyword",t[t.IfKeyword=99]="IfKeyword",t[t.ImportKeyword=100]="ImportKeyword",t[t.InKeyword=101]="InKeyword",t[t.InstanceOfKeyword=102]="InstanceOfKeyword",t[t.NewKeyword=103]="NewKeyword",t[t.NullKeyword=104]="NullKeyword",t[t.ReturnKeyword=105]="ReturnKeyword",t[t.SuperKeyword=106]="SuperKeyword",t[t.SwitchKeyword=107]="SwitchKeyword",t[t.ThisKeyword=108]="ThisKeyword",t[t.ThrowKeyword=109]="ThrowKeyword",t[t.TrueKeyword=110]="TrueKeyword",t[t.TryKeyword=111]="TryKeyword",t[t.TypeOfKeyword=112]="TypeOfKeyword",t[t.VarKeyword=113]="VarKeyword",t[t.VoidKeyword=114]="VoidKeyword",t[t.WhileKeyword=115]="WhileKeyword",t[t.WithKeyword=116]="WithKeyword",t[t.ImplementsKeyword=117]="ImplementsKeyword",t[t.InterfaceKeyword=118]="InterfaceKeyword",t[t.LetKeyword=119]="LetKeyword",t[t.PackageKeyword=120]="PackageKeyword",t[t.PrivateKeyword=121]="PrivateKeyword",t[t.ProtectedKeyword=122]="ProtectedKeyword",t[t.PublicKeyword=123]="PublicKeyword",t[t.StaticKeyword=124]="StaticKeyword",t[t.YieldKeyword=125]="YieldKeyword",t[t.AbstractKeyword=126]="AbstractKeyword",t[t.AccessorKeyword=127]="AccessorKeyword",t[t.AsKeyword=128]="AsKeyword",t[t.AssertsKeyword=129]="AssertsKeyword",t[t.AssertKeyword=130]="AssertKeyword",t[t.AnyKeyword=131]="AnyKeyword",t[t.AsyncKeyword=132]="AsyncKeyword",t[t.AwaitKeyword=133]="AwaitKeyword",t[t.BooleanKeyword=134]="BooleanKeyword",t[t.ConstructorKeyword=135]="ConstructorKeyword",t[t.DeclareKeyword=136]="DeclareKeyword",t[t.GetKeyword=137]="GetKeyword",t[t.InferKeyword=138]="InferKeyword",t[t.IntrinsicKeyword=139]="IntrinsicKeyword",t[t.IsKeyword=140]="IsKeyword",t[t.KeyOfKeyword=141]="KeyOfKeyword",t[t.ModuleKeyword=142]="ModuleKeyword",t[t.NamespaceKeyword=143]="NamespaceKeyword",t[t.NeverKeyword=144]="NeverKeyword",t[t.OutKeyword=145]="OutKeyword",t[t.ReadonlyKeyword=146]="ReadonlyKeyword",t[t.RequireKeyword=147]="RequireKeyword",t[t.NumberKeyword=148]="NumberKeyword",t[t.ObjectKeyword=149]="ObjectKeyword",t[t.SatisfiesKeyword=150]="SatisfiesKeyword",t[t.SetKeyword=151]="SetKeyword",t[t.StringKeyword=152]="StringKeyword",t[t.SymbolKeyword=153]="SymbolKeyword",t[t.TypeKeyword=154]="TypeKeyword",t[t.UndefinedKeyword=155]="UndefinedKeyword",t[t.UniqueKeyword=156]="UniqueKeyword",t[t.UnknownKeyword=157]="UnknownKeyword",t[t.FromKeyword=158]="FromKeyword",t[t.GlobalKeyword=159]="GlobalKeyword",t[t.BigIntKeyword=160]="BigIntKeyword",t[t.OverrideKeyword=161]="OverrideKeyword",t[t.OfKeyword=162]="OfKeyword",t[t.QualifiedName=163]="QualifiedName",t[t.ComputedPropertyName=164]="ComputedPropertyName",t[t.TypeParameter=165]="TypeParameter",t[t.Parameter=166]="Parameter",t[t.Decorator=167]="Decorator",t[t.PropertySignature=168]="PropertySignature",t[t.PropertyDeclaration=169]="PropertyDeclaration",t[t.MethodSignature=170]="MethodSignature",t[t.MethodDeclaration=171]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",t[t.Constructor=173]="Constructor",t[t.GetAccessor=174]="GetAccessor",t[t.SetAccessor=175]="SetAccessor",t[t.CallSignature=176]="CallSignature",t[t.ConstructSignature=177]="ConstructSignature",t[t.IndexSignature=178]="IndexSignature",t[t.TypePredicate=179]="TypePredicate",t[t.TypeReference=180]="TypeReference",t[t.FunctionType=181]="FunctionType",t[t.ConstructorType=182]="ConstructorType",t[t.TypeQuery=183]="TypeQuery",t[t.TypeLiteral=184]="TypeLiteral",t[t.ArrayType=185]="ArrayType",t[t.TupleType=186]="TupleType",t[t.OptionalType=187]="OptionalType",t[t.RestType=188]="RestType",t[t.UnionType=189]="UnionType",t[t.IntersectionType=190]="IntersectionType",t[t.ConditionalType=191]="ConditionalType",t[t.InferType=192]="InferType",t[t.ParenthesizedType=193]="ParenthesizedType",t[t.ThisType=194]="ThisType",t[t.TypeOperator=195]="TypeOperator",t[t.IndexedAccessType=196]="IndexedAccessType",t[t.MappedType=197]="MappedType",t[t.LiteralType=198]="LiteralType",t[t.NamedTupleMember=199]="NamedTupleMember",t[t.TemplateLiteralType=200]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",t[t.ImportType=202]="ImportType",t[t.ObjectBindingPattern=203]="ObjectBindingPattern",t[t.ArrayBindingPattern=204]="ArrayBindingPattern",t[t.BindingElement=205]="BindingElement",t[t.ArrayLiteralExpression=206]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=207]="ObjectLiteralExpression",t[t.PropertyAccessExpression=208]="PropertyAccessExpression",t[t.ElementAccessExpression=209]="ElementAccessExpression",t[t.CallExpression=210]="CallExpression",t[t.NewExpression=211]="NewExpression",t[t.TaggedTemplateExpression=212]="TaggedTemplateExpression",t[t.TypeAssertionExpression=213]="TypeAssertionExpression",t[t.ParenthesizedExpression=214]="ParenthesizedExpression",t[t.FunctionExpression=215]="FunctionExpression",t[t.ArrowFunction=216]="ArrowFunction",t[t.DeleteExpression=217]="DeleteExpression",t[t.TypeOfExpression=218]="TypeOfExpression",t[t.VoidExpression=219]="VoidExpression",t[t.AwaitExpression=220]="AwaitExpression",t[t.PrefixUnaryExpression=221]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=222]="PostfixUnaryExpression",t[t.BinaryExpression=223]="BinaryExpression",t[t.ConditionalExpression=224]="ConditionalExpression",t[t.TemplateExpression=225]="TemplateExpression",t[t.YieldExpression=226]="YieldExpression",t[t.SpreadElement=227]="SpreadElement",t[t.ClassExpression=228]="ClassExpression",t[t.OmittedExpression=229]="OmittedExpression",t[t.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",t[t.AsExpression=231]="AsExpression",t[t.NonNullExpression=232]="NonNullExpression",t[t.MetaProperty=233]="MetaProperty",t[t.SyntheticExpression=234]="SyntheticExpression",t[t.SatisfiesExpression=235]="SatisfiesExpression",t[t.TemplateSpan=236]="TemplateSpan",t[t.SemicolonClassElement=237]="SemicolonClassElement",t[t.Block=238]="Block",t[t.EmptyStatement=239]="EmptyStatement",t[t.VariableStatement=240]="VariableStatement",t[t.ExpressionStatement=241]="ExpressionStatement",t[t.IfStatement=242]="IfStatement",t[t.DoStatement=243]="DoStatement",t[t.WhileStatement=244]="WhileStatement",t[t.ForStatement=245]="ForStatement",t[t.ForInStatement=246]="ForInStatement",t[t.ForOfStatement=247]="ForOfStatement",t[t.ContinueStatement=248]="ContinueStatement",t[t.BreakStatement=249]="BreakStatement",t[t.ReturnStatement=250]="ReturnStatement",t[t.WithStatement=251]="WithStatement",t[t.SwitchStatement=252]="SwitchStatement",t[t.LabeledStatement=253]="LabeledStatement",t[t.ThrowStatement=254]="ThrowStatement",t[t.TryStatement=255]="TryStatement",t[t.DebuggerStatement=256]="DebuggerStatement",t[t.VariableDeclaration=257]="VariableDeclaration",t[t.VariableDeclarationList=258]="VariableDeclarationList",t[t.FunctionDeclaration=259]="FunctionDeclaration",t[t.ClassDeclaration=260]="ClassDeclaration",t[t.InterfaceDeclaration=261]="InterfaceDeclaration",t[t.TypeAliasDeclaration=262]="TypeAliasDeclaration",t[t.EnumDeclaration=263]="EnumDeclaration",t[t.ModuleDeclaration=264]="ModuleDeclaration",t[t.ModuleBlock=265]="ModuleBlock",t[t.CaseBlock=266]="CaseBlock",t[t.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",t[t.ImportDeclaration=269]="ImportDeclaration",t[t.ImportClause=270]="ImportClause",t[t.NamespaceImport=271]="NamespaceImport",t[t.NamedImports=272]="NamedImports",t[t.ImportSpecifier=273]="ImportSpecifier",t[t.ExportAssignment=274]="ExportAssignment",t[t.ExportDeclaration=275]="ExportDeclaration",t[t.NamedExports=276]="NamedExports",t[t.NamespaceExport=277]="NamespaceExport",t[t.ExportSpecifier=278]="ExportSpecifier",t[t.MissingDeclaration=279]="MissingDeclaration",t[t.ExternalModuleReference=280]="ExternalModuleReference",t[t.JsxElement=281]="JsxElement",t[t.JsxSelfClosingElement=282]="JsxSelfClosingElement",t[t.JsxOpeningElement=283]="JsxOpeningElement",t[t.JsxClosingElement=284]="JsxClosingElement",t[t.JsxFragment=285]="JsxFragment",t[t.JsxOpeningFragment=286]="JsxOpeningFragment",t[t.JsxClosingFragment=287]="JsxClosingFragment",t[t.JsxAttribute=288]="JsxAttribute",t[t.JsxAttributes=289]="JsxAttributes",t[t.JsxSpreadAttribute=290]="JsxSpreadAttribute",t[t.JsxExpression=291]="JsxExpression",t[t.CaseClause=292]="CaseClause",t[t.DefaultClause=293]="DefaultClause",t[t.HeritageClause=294]="HeritageClause",t[t.CatchClause=295]="CatchClause",t[t.AssertClause=296]="AssertClause",t[t.AssertEntry=297]="AssertEntry",t[t.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",t[t.PropertyAssignment=299]="PropertyAssignment",t[t.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",t[t.SpreadAssignment=301]="SpreadAssignment",t[t.EnumMember=302]="EnumMember",t[t.UnparsedPrologue=303]="UnparsedPrologue",t[t.UnparsedPrepend=304]="UnparsedPrepend",t[t.UnparsedText=305]="UnparsedText",t[t.UnparsedInternalText=306]="UnparsedInternalText",t[t.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",t[t.SourceFile=308]="SourceFile",t[t.Bundle=309]="Bundle",t[t.UnparsedSource=310]="UnparsedSource",t[t.InputFiles=311]="InputFiles",t[t.JSDocTypeExpression=312]="JSDocTypeExpression",t[t.JSDocNameReference=313]="JSDocNameReference",t[t.JSDocMemberName=314]="JSDocMemberName",t[t.JSDocAllType=315]="JSDocAllType",t[t.JSDocUnknownType=316]="JSDocUnknownType",t[t.JSDocNullableType=317]="JSDocNullableType",t[t.JSDocNonNullableType=318]="JSDocNonNullableType",t[t.JSDocOptionalType=319]="JSDocOptionalType",t[t.JSDocFunctionType=320]="JSDocFunctionType",t[t.JSDocVariadicType=321]="JSDocVariadicType",t[t.JSDocNamepathType=322]="JSDocNamepathType",t[t.JSDoc=323]="JSDoc",t[t.JSDocComment=323]="JSDocComment",t[t.JSDocText=324]="JSDocText",t[t.JSDocTypeLiteral=325]="JSDocTypeLiteral",t[t.JSDocSignature=326]="JSDocSignature",t[t.JSDocLink=327]="JSDocLink",t[t.JSDocLinkCode=328]="JSDocLinkCode",t[t.JSDocLinkPlain=329]="JSDocLinkPlain",t[t.JSDocTag=330]="JSDocTag",t[t.JSDocAugmentsTag=331]="JSDocAugmentsTag",t[t.JSDocImplementsTag=332]="JSDocImplementsTag",t[t.JSDocAuthorTag=333]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",t[t.JSDocClassTag=335]="JSDocClassTag",t[t.JSDocPublicTag=336]="JSDocPublicTag",t[t.JSDocPrivateTag=337]="JSDocPrivateTag",t[t.JSDocProtectedTag=338]="JSDocProtectedTag",t[t.JSDocReadonlyTag=339]="JSDocReadonlyTag",t[t.JSDocOverrideTag=340]="JSDocOverrideTag",t[t.JSDocCallbackTag=341]="JSDocCallbackTag",t[t.JSDocEnumTag=342]="JSDocEnumTag",t[t.JSDocParameterTag=343]="JSDocParameterTag",t[t.JSDocReturnTag=344]="JSDocReturnTag",t[t.JSDocThisTag=345]="JSDocThisTag",t[t.JSDocTypeTag=346]="JSDocTypeTag",t[t.JSDocTemplateTag=347]="JSDocTemplateTag",t[t.JSDocTypedefTag=348]="JSDocTypedefTag",t[t.JSDocSeeTag=349]="JSDocSeeTag",t[t.JSDocPropertyTag=350]="JSDocPropertyTag",t[t.SyntaxList=351]="SyntaxList",t[t.NotEmittedStatement=352]="NotEmittedStatement",t[t.PartiallyEmittedExpression=353]="PartiallyEmittedExpression",t[t.CommaListExpression=354]="CommaListExpression",t[t.MergeDeclarationMarker=355]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=356]="EndOfDeclarationMarker",t[t.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",t[t.Count=358]="Count",t[t.FirstAssignment=63]="FirstAssignment",t[t.LastAssignment=78]="LastAssignment",t[t.FirstCompoundAssignment=64]="FirstCompoundAssignment",t[t.LastCompoundAssignment=78]="LastCompoundAssignment",t[t.FirstReservedWord=81]="FirstReservedWord",t[t.LastReservedWord=116]="LastReservedWord",t[t.FirstKeyword=81]="FirstKeyword",t[t.LastKeyword=162]="LastKeyword",t[t.FirstFutureReservedWord=117]="FirstFutureReservedWord",t[t.LastFutureReservedWord=125]="LastFutureReservedWord",t[t.FirstTypeNode=179]="FirstTypeNode",t[t.LastTypeNode=202]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=78]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=162]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=8]="FirstLiteralToken",t[t.LastLiteralToken=14]="LastLiteralToken",t[t.FirstTemplateToken=14]="FirstTemplateToken",t[t.LastTemplateToken=17]="LastTemplateToken",t[t.FirstBinaryOperator=29]="FirstBinaryOperator",t[t.LastBinaryOperator=78]="LastBinaryOperator",t[t.FirstStatement=240]="FirstStatement",t[t.LastStatement=256]="LastStatement",t[t.FirstNode=163]="FirstNode",t[t.FirstJSDocNode=312]="FirstJSDocNode",t[t.LastJSDocNode=350]="LastJSDocNode",t[t.FirstJSDocTagNode=330]="FirstJSDocTagNode",t[t.LastJSDocTagNode=350]="LastJSDocTagNode",t[t.FirstContextualKeyword=126]="FirstContextualKeyword",t[t.LastContextualKeyword=162]="LastContextualKeyword"})(o=e.SyntaxKind||(e.SyntaxKind={}));var ne;(function(t){t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.NestedNamespace=4]="NestedNamespace",t[t.Synthesized=8]="Synthesized",t[t.Namespace=16]="Namespace",t[t.OptionalChain=32]="OptionalChain",t[t.ExportContext=64]="ExportContext",t[t.ContainsThis=128]="ContainsThis",t[t.HasImplicitReturn=256]="HasImplicitReturn",t[t.HasExplicitReturn=512]="HasExplicitReturn",t[t.GlobalAugmentation=1024]="GlobalAugmentation",t[t.HasAsyncFunctions=2048]="HasAsyncFunctions",t[t.DisallowInContext=4096]="DisallowInContext",t[t.YieldContext=8192]="YieldContext",t[t.DecoratorContext=16384]="DecoratorContext",t[t.AwaitContext=32768]="AwaitContext",t[t.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=131072]="ThisNodeHasError",t[t.JavaScriptFile=262144]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=1048576]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",t[t.JSDoc=8388608]="JSDoc",t[t.Ambient=16777216]="Ambient",t[t.InWithStatement=33554432]="InWithStatement",t[t.JsonFile=67108864]="JsonFile",t[t.TypeCached=134217728]="TypeCached",t[t.Deprecated=268435456]="Deprecated",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",t[t.ContextFlags=50720768]="ContextFlags",t[t.TypeExcludesFlags=40960]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags"})(ne=e.NodeFlags||(e.NodeFlags={}));var K;(function(t){t[t.None=0]="None",t[t.Export=1]="Export",t[t.Ambient=2]="Ambient",t[t.Public=4]="Public",t[t.Private=8]="Private",t[t.Protected=16]="Protected",t[t.Static=32]="Static",t[t.Readonly=64]="Readonly",t[t.Accessor=128]="Accessor",t[t.Abstract=256]="Abstract",t[t.Async=512]="Async",t[t.Default=1024]="Default",t[t.Const=2048]="Const",t[t.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",t[t.Deprecated=8192]="Deprecated",t[t.Override=16384]="Override",t[t.In=32768]="In",t[t.Out=65536]="Out",t[t.Decorator=131072]="Decorator",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=28]="AccessibilityModifier",t[t.ParameterPropertyModifier=16476]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=117086]="TypeScriptModifier",t[t.ExportDefault=1025]="ExportDefault",t[t.All=258047]="All",t[t.Modifier=126975]="Modifier"})(K=e.ModifierFlags||(e.ModifierFlags={}));var se;(function(t){t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement"})(se=e.JsxFlags||(e.JsxFlags={}));var O;(function(t){t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.Reported=4]="Reported",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask"})(O=e.RelationComparisonResult||(e.RelationComparisonResult={}));var ie;(function(t){t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution"})(ie=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var _e;(function(t){t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.NumericLiteralFlags=1008]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"})(_e=e.TokenFlags||(e.TokenFlags={}));var Q;(function(t){t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition"})(Q=e.FlowFlags||(e.FlowFlags={}));var p;(function(t){t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore"})(p=e.CommentDirectiveType||(e.CommentDirectiveType={}));var D=function(){function t(){}return t}();e.OperationCanceledException=D;var le;(function(t){t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"})(le=e.FileIncludeKind||(e.FileIncludeKind={}));var de;(function(t){t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"})(de=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}));var te;(function(t){t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely"})(te=e.StructureIsReused||(e.StructureIsReused={}));var oe;(function(t){t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(oe=e.ExitStatus||(e.ExitStatus={}));var ae;(function(t){t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride"})(ae=e.MemberOverrideStatus||(e.MemberOverrideStatus={}));var E;(function(t){t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype"})(E=e.UnionReduction||(e.UnionReduction={}));var I;(function(t){t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns"})(I=e.ContextFlags||(e.ContextFlags={}));var f;(function(t){t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.WriteComputedProps=1073741824]="WriteComputedProps",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName"})(f=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var m;(function(t){t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",t[t.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask"})(m=e.TypeFormatFlags||(e.TypeFormatFlags={}));var y;(function(t){t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain"})(y=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var S;(function(t){t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed"})(S=e.SymbolAccessibility||(e.SymbolAccessibility={}));var k;(function(t){t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread"})(k=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var C;(function(t){t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier"})(C=e.TypePredicateKind||(e.TypePredicateKind={}));var me;(function(t){t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType"})(me=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var De;(function(t){t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer"})(De=e.SymbolFlags||(e.SymbolFlags={}));var X;(function(t){t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal"})(X=e.EnumKind||(e.EnumKind={}));var M;(function(t){t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial"})(M=e.CheckFlags||(e.CheckFlags={}));var H;(function(t){t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this"})(H=e.InternalSymbolName||(e.InternalSymbolName={}));var V;(function(t){t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=256]="SuperInstance",t[t.SuperStatic=512]="SuperStatic",t[t.ContextChecked=1024]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=2048]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=4096]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=8192]="CaptureArguments",t[t.EnumValuesComputed=16384]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",t[t.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",t[t.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",t[t.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",t[t.AssignmentsMarked=8388608]="AssignmentsMarked",t[t.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",t[t.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",t[t.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=268435456]="InCheckIdentifier"})(V=e.NodeCheckFlags||(e.NodeCheckFlags={}));var h;(function(t){t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109440]="Unit",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.Primitive=131068]="Primitive",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=205258751]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"})(h=e.TypeFlags||(e.TypeFlags={}));var F;(function(t){t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection"})(F=e.ObjectFlags||(e.ObjectFlags={}));var $;(function(t){t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback"})($=e.VarianceFlags||(e.VarianceFlags={}));var L;(function(t){t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest"})(L=e.ElementFlags||(e.ElementFlags={}));var P;(function(t){t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent"})(P=e.AccessFlags||(e.AccessFlags={}));var N;(function(t){t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed"})(N=e.JsxReferenceKind||(e.JsxReferenceKind={}));var J;(function(t){t[t.Call=0]="Call",t[t.Construct=1]="Construct"})(J=e.SignatureKind||(e.SignatureKind={}));var q;(function(t){t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.PropagatingFlags=39]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags"})(q=e.SignatureFlags||(e.SignatureFlags={}));var G;(function(t){t[t.String=0]="String",t[t.Number=1]="Number"})(G=e.IndexKind||(e.IndexKind={}));var ye;(function(t){t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged"})(ye=e.TypeMapKind||(e.TypeMapKind={}));var b;(function(t){t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity"})(b=e.InferencePriority||(e.InferencePriority={}));var x;(function(t){t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction"})(x=e.InferenceFlags||(e.InferenceFlags={}));var T;(function(t){t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True"})(T=e.Ternary||(e.Ternary={}));var Z;(function(t){t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(Z=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var B;(function(t){t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message"})(B=e.DiagnosticCategory||(e.DiagnosticCategory={}));function u(t,qr){qr===void 0&&(qr=!0);var ln=B[t.category];return qr?ln.toLowerCase():ln}e.diagnosticCategoryName=u;var A;(function(t){t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext"})(A=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var w;(function(t){t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force"})(w=e.ModuleDetectionKind||(e.ModuleDetectionKind={}));var z;(function(t){t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"})(z=e.WatchFileKind||(e.WatchFileKind={}));var U;(function(t){t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling"})(U=e.WatchDirectoryKind||(e.WatchDirectoryKind={}));var ge;(function(t){t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize"})(ge=e.PollingWatchKind||(e.PollingWatchKind={}));var pe;(function(t){t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext"})(pe=e.ModuleKind||(e.ModuleKind={}));var He;(function(t){t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev"})(He=e.JsxEmit||(e.JsxEmit={}));var Be;(function(t){t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error"})(Be=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}));var Me;(function(t){t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed"})(Me=e.NewLineKind||(e.NewLineKind={}));var Le;(function(t){t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred"})(Le=e.ScriptKind||(e.ScriptKind={}));var Ae;(function(t){t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest"})(Ae=e.ScriptTarget||(e.ScriptTarget={}));var Xe;(function(t){t[t.Standard=0]="Standard",t[t.JSX=1]="JSX"})(Xe=e.LanguageVariant||(e.LanguageVariant={}));var Ne;(function(t){t[t.None=0]="None",t[t.Recursive=1]="Recursive"})(Ne=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var Oe;(function(t){t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab"})(Oe=e.CharacterCodes||(e.CharacterCodes={}));var be;(function(t){t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts"})(be=e.Extension||(e.Extension={}));var Y;(function(t){t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags"})(Y=e.TransformFlags||(e.TransformFlags={}));var d;(function(t){t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable"})(d=e.SnippetKind||(e.SnippetKind={}));var j;(function(t){t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.AdviseOnEmitNode=2]="AdviseOnEmitNode",t[t.NoSubstitution=4]="NoSubstitution",t[t.CapturesThis=8]="CapturesThis",t[t.NoLeadingSourceMap=16]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=32]="NoTrailingSourceMap",t[t.NoSourceMap=48]="NoSourceMap",t[t.NoNestedSourceMaps=64]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=384]="NoTokenSourceMaps",t[t.NoLeadingComments=512]="NoLeadingComments",t[t.NoTrailingComments=1024]="NoTrailingComments",t[t.NoComments=1536]="NoComments",t[t.NoNestedComments=2048]="NoNestedComments",t[t.HelperName=4096]="HelperName",t[t.ExportName=8192]="ExportName",t[t.LocalName=16384]="LocalName",t[t.InternalName=32768]="InternalName",t[t.Indented=65536]="Indented",t[t.NoIndentation=131072]="NoIndentation",t[t.AsyncFunctionBody=262144]="AsyncFunctionBody",t[t.ReuseTempVariableScope=524288]="ReuseTempVariableScope",t[t.CustomPrologue=1048576]="CustomPrologue",t[t.NoHoisting=2097152]="NoHoisting",t[t.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t[t.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",t[t.Immutable=268435456]="Immutable",t[t.IndirectCall=536870912]="IndirectCall"})(j=e.EmitFlags||(e.EmitFlags={}));var Ce;(function(t){t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.CreateBinding=4194304]="CreateBinding",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=4194304]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes"})(Ce=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var Se;(function(t){t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue"})(Se=e.EmitHint||(e.EmitHint={}));var Re;(function(t){t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.Assertions=6]="Assertions",t[t.All=15]="All",t[t.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"})(Re=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));var er;(function(t){t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"})(er=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}));var wr;(function(t){t.Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.TypeResolutionModeRequire="type-require",t.TypeResolutionModeImport="type-import",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal"})(wr=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var mr;(function(t){t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment"})(mr=e.ListFormat||(e.ListFormat={}));var Ue;(function(t){t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default"})(Ue=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={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}}})(fr||(fr={}));var fr;(function(e){function o(h){for(var F=5381,$=0;$<h.length;$++)F=(F<<5)+F+h.charCodeAt($);return F.toString()}e.generateDjb2Hash=o;function ne(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=ne;var K;(function(h){h[h.Created=0]="Created",h[h.Changed=1]="Changed",h[h.Deleted=2]="Deleted"})(K=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var se;(function(h){h[h.High=2e3]="High",h[h.Medium=500]="Medium",h[h.Low=250]="Low"})(se=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function O(h,F){return h.getModifiedTime(F)||e.missingFileModifiedTime}e.getModifiedTime=O;function ie(h){var F;return F={},F[se.Low]=h.Low,F[se.Medium]=h.Medium,F[se.High]=h.High,F}var _e={Low:32,Medium:64,High:256},Q=ie(_e);e.unchangedPollThresholds=ie(_e);function p(h){if(!h.getEnvironmentVariable)return;var F=P("TSC_WATCH_POLLINGINTERVAL",se);Q=N("TSC_WATCH_POLLINGCHUNKSIZE",_e)||Q,e.unchangedPollThresholds=N("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",_e)||e.unchangedPollThresholds;function $(J,q){return h.getEnvironmentVariable("".concat(J,"_").concat(q.toUpperCase()))}function L(J){var q;return G("Low"),G("Medium"),G("High"),q;function G(ye){var b=$(J,ye);b&&((q||(q={}))[ye]=Number(b))}}function P(J,q){var G=L(J);if(G)return ye("Low"),ye("Medium"),ye("High"),!0;return!1;function ye(b){q[b]=G[b]||q[b]}}function N(J,q){var G=L(J);return(F||G)&&ie(G?vi(vi({},q),G):q)}}function D(h,F,$,L,P){for(var N=$,J=F.length;L&&J;ye(),J--){var q=F[$];if(q){if(q.isClosed){F[$]=void 0;continue}}else continue;L--;var G=ae(q,O(h,q.fileName));if(q.isClosed){F[$]=void 0;continue}P==null||P(q,$,G),F[$]&&(N<$&&(F[N]=q,F[$]=void 0),N++)}return $;function ye(){$++,$===F.length&&(N<$&&(F.length=N),$=0,N=0)}}function le(h){var F=[],$=[],L=q(se.Low),P=q(se.Medium),N=q(se.High);return J;function J(A,w,z){var U={fileName:A,callback:w,unchangedPolls:0,mtime:O(h,A)};return F.push(U),T(U,z),{close:function(){U.isClosed=!0,e.unorderedRemoveItem(F,U)}}}function q(A){var w=[];return w.pollingInterval=A,w.pollIndex=0,w.pollScheduled=!1,w}function G(A){A.pollIndex=b(A,A.pollingInterval,A.pollIndex,Q[A.pollingInterval]),A.length?u(A.pollingInterval):(e.Debug.assert(A.pollIndex===0),A.pollScheduled=!1)}function ye(A){b($,se.Low,0,$.length),G(A),!A.pollScheduled&&$.length&&u(se.Low)}function b(A,w,z,U){return D(h,A,z,U,ge);function ge(pe,He,Be){Be?(pe.unchangedPolls=0,A!==$&&(A[He]=void 0,Z(pe))):pe.unchangedPolls!==e.unchangedPollThresholds[w]?pe.unchangedPolls++:A===$?(pe.unchangedPolls=1,A[He]=void 0,T(pe,se.Low)):w!==se.High&&(pe.unchangedPolls++,A[He]=void 0,T(pe,w===se.Low?se.Medium:se.High))}}function x(A){switch(A){case se.Low:return L;case se.Medium:return P;case se.High:return N}}function T(A,w){x(w).push(A),B(w)}function Z(A){$.push(A),B(se.Low)}function B(A){x(A).pollScheduled||u(A)}function u(A){x(A).pollScheduled=h.setTimeout(A===se.Low?ye:G,A,x(A))}}function de(h,F){var $=e.createMultiMap(),L=new e.Map,P=e.createGetCanonicalFileName(F);return N;function N(q,G,ye,b){var x=P(q);$.add(x,G);var T=e.getDirectoryPath(x)||".",Z=L.get(T)||J(e.getDirectoryPath(q)||".",T,b);return Z.referenceCount++,{close:function(){Z.referenceCount===1?(Z.close(),L.delete(T)):Z.referenceCount--,$.remove(x,G)}}}function J(q,G,ye){var b=h(q,1,function(x,T,Z){if(!!e.isString(T)){var B=e.getNormalizedAbsolutePath(T,q),u=B&&$.get(P(B));if(u)for(var A=0,w=u;A<w.length;A++){var z=w[A];z(B,K.Changed,Z)}}},!1,se.Medium,ye);return b.referenceCount=0,L.set(G,b),b}}function te(h){var F=[],$=0,L;return P;function P(q,G){var ye={fileName:q,callback:G,mtime:O(h,q)};return F.push(ye),J(),{close:function(){ye.isClosed=!0,e.unorderedRemoveItem(F,ye)}}}function N(){L=void 0,$=D(h,F,$,Q[se.Low]),J()}function J(){!F.length||L||(L=h.setTimeout(N,se.High))}}function oe(h,F,$,L,P){var N=e.createGetCanonicalFileName(F),J=N($),q=h.get(J);return q?q.callbacks.push(L):h.set(J,{watcher:P(function(G,ye,b){var x;return(x=h.get(J))===null||x===void 0?void 0:x.callbacks.slice().forEach(function(T){return T(G,ye,b)})}),callbacks:[L]}),{close:function(){var G=h.get(J);!G||!e.orderedRemoveItem(G.callbacks,L)||G.callbacks.length||(h.delete(J),e.closeFileWatcherOf(G))}}}function ae(h,F){var $=h.mtime.getTime(),L=F.getTime();return $!==L?(h.mtime=F,h.callback(h.fileName,E($,L),F),!0):!1}function E(h,F){return h===0?K.Created:F===0?K.Deleted:K.Changed}e.getFileWatcherEventKind=E,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var I=e.noop;function f(h){return I(h)}e.sysLog=f;function m(h){I=h}e.setSysLog=m;function y(h){var F=h.watchDirectory,$=h.useCaseSensitiveFileNames,L=h.getCurrentDirectory,P=h.getAccessibleSortedChildDirectories,N=h.fileSystemEntryExists,J=h.realpath,q=h.setTimeout,G=h.clearTimeout,ye=new e.Map,b=e.createMultiMap(),x=new e.Map,T,Z=e.getStringComparer(!$),B=e.createGetCanonicalFileName($);return function(Me,Le,Ae,Xe){return Ae?u(Me,Xe,Le):F(Me,Le,Ae,Xe)};function u(Me,Le,Ae){var Xe=B(Me),Ne=ye.get(Xe);Ne?Ne.refCount++:(Ne={watcher:F(Me,function(be){He(be,Le)||((Le==null?void 0:Le.synchronousWatchDirectory)?(A(Xe,be),pe(Me,Xe,Le)):w(Me,Xe,be,Le))},!1,Le),refCount:1,childWatches:e.emptyArray},ye.set(Xe,Ne),pe(Me,Xe,Le));var Oe=Ae&&{dirName:Me,callback:Ae};return Oe&&b.add(Xe,Oe),{dirName:Me,close:function(){var be=e.Debug.checkDefined(ye.get(Xe));Oe&&b.remove(Xe,Oe),be.refCount--,!be.refCount&&(ye.delete(Xe),e.closeFileWatcherOf(be),be.childWatches.forEach(e.closeFileWatcher))}}}function A(Me,Le,Ae){var Xe,Ne;e.isString(Le)?Xe=Le:Ne=Le,b.forEach(function(Oe,be){var Y;if(!(Ne&&Ne.get(be)===!0)&&(be===Me||e.startsWith(Me,be)&&Me[be.length]===e.directorySeparator))if(Ne)if(Ae){var d=Ne.get(be);d?(Y=d).push.apply(Y,Ae):Ne.set(be,Ae.slice())}else Ne.set(be,!0);else Oe.forEach(function(j){var Ce=j.callback;return Ce(Xe)})})}function w(Me,Le,Ae,Xe){var Ne=ye.get(Le);if(Ne&&N(Me,1)){z(Me,Le,Ae,Xe);return}A(Le,Ae),ge(Ne)}function z(Me,Le,Ae,Xe){var Ne=x.get(Le);Ne?Ne.fileNames.push(Ae):x.set(Le,{dirName:Me,options:Xe,fileNames:[Ae]}),T&&(G(T),T=void 0),T=q(U,1e3)}function U(){T=void 0,f("sysLog:: onTimerToUpdateChildWatches:: ".concat(x.size));for(var Me=e.timestamp(),Le=new e.Map;!T&&x.size;){var Ae=x.entries().next();e.Debug.assert(!Ae.done);var Xe=Ae.value,Ne=Xe[0],Oe=Xe[1],be=Oe.dirName,Y=Oe.options,d=Oe.fileNames;x.delete(Ne);var j=pe(be,Ne,Y);A(Ne,Le,j?void 0:d)}f("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-Me,"ms:: ").concat(x.size)),b.forEach(function(Se,Re){var er=Le.get(Re);er&&Se.forEach(function(wr){var mr=wr.callback,Ue=wr.dirName;e.isArray(er)?er.forEach(mr):mr(Ue)})});var Ce=e.timestamp()-Me;f("sysLog:: Elapsed:: ".concat(Ce,"ms:: onTimerToUpdateChildWatches:: ").concat(x.size," ").concat(T))}function ge(Me){if(!!Me){var Le=Me.childWatches;Me.childWatches=e.emptyArray;for(var Ae=0,Xe=Le;Ae<Xe.length;Ae++){var Ne=Xe[Ae];Ne.close(),ge(ye.get(B(Ne.dirName)))}}}function pe(Me,Le,Ae){var Xe=ye.get(Le);if(!Xe)return!1;var Ne,Oe=e.enumerateInsertsAndDeletes(N(Me,1)?e.mapDefined(P(Me),function(d){var j=e.getNormalizedAbsolutePath(d,Me);return!He(j,Ae)&&Z(j,e.normalizePath(J(j)))===0?j:void 0}):e.emptyArray,Xe.childWatches,function(d,j){return Z(d,j.dirName)},be,e.closeFileWatcher,Y);return Xe.childWatches=Ne||e.emptyArray,Oe;function be(d){var j=u(d,Ae);Y(j)}function Y(d){(Ne||(Ne=[])).push(d)}}function He(Me,Le){return e.some(e.ignoredPaths,function(Ae){return Be(Me,Ae)})||me(Me,Le,$,L)}function Be(Me,Le){return e.stringContains(Me,Le)?!0:$?!1:e.stringContains(B(Me),Le)}}var S;(function(h){h[h.File=0]="File",h[h.Directory=1]="Directory"})(S=e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function k(h){return function(F,$,L){return h($===K.Changed?"change":"rename","",L)}}function C(h,F,$){return function(L,P,N){L==="rename"?(N||(N=$(h)||e.missingFileModifiedTime),F(h,N!==e.missingFileModifiedTime?K.Created:K.Deleted,N)):F(h,K.Changed,N)}}function me(h,F,$,L){return((F==null?void 0:F.excludeDirectories)||(F==null?void 0:F.excludeFiles))&&(e.matchesExclude(h,F==null?void 0:F.excludeFiles,$,L())||e.matchesExclude(h,F==null?void 0:F.excludeDirectories,$,L()))}function De(h,F,$,L,P){return function(N,J){if(N==="rename"){var q=J?e.normalizePath(e.combinePaths(h,J)):h;(!J||!me(q,$,L,P))&&F(q)}}}function X(h){var F=h.pollingWatchFileWorker,$=h.getModifiedTime,L=h.setTimeout,P=h.clearTimeout,N=h.fsWatchWorker,J=h.fileSystemEntryExists,q=h.useCaseSensitiveFileNames,G=h.getCurrentDirectory,ye=h.fsSupportsRecursiveFsWatch,b=h.getAccessibleSortedChildDirectories,x=h.realpath,T=h.tscWatchFile,Z=h.useNonPollingWatchers,B=h.tscWatchDirectory,u=h.inodeWatching,A=h.sysLog,w=new e.Map,z=new e.Map,U=new e.Map,ge,pe,He,Be,Me=!1;return{watchFile:Le,watchDirectory:be};function Le(Re,er,wr,mr){mr=Ne(mr,Z);var Ue=e.Debug.checkDefined(mr.watchFile);switch(Ue){case e.WatchFileKind.FixedPollingInterval:return j(Re,er,se.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return j(Re,er,wr,void 0);case e.WatchFileKind.DynamicPriorityPolling:return Ae()(Re,er,wr,void 0);case e.WatchFileKind.FixedChunkSizePolling:return Xe()(Re,er,void 0,void 0);case e.WatchFileKind.UseFsEvents:return Ce(Re,0,C(Re,er,$),!1,wr,e.getFallbackOptions(mr));case e.WatchFileKind.UseFsEventsOnParentDirectory:return He||(He=de(Ce,q)),He(Re,er,wr,e.getFallbackOptions(mr));default:e.Debug.assertNever(Ue)}}function Ae(){return ge||(ge=le({getModifiedTime:$,setTimeout:L}))}function Xe(){return pe||(pe=te({getModifiedTime:$,setTimeout:L}))}function Ne(Re,er){if(Re&&Re.watchFile!==void 0)return Re;switch(T){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Oe(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Re);case"UseFsEventsWithFallbackDynamicPolling":return Oe(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Re);case"UseFsEventsOnParentDirectory":er=!0;default:return er?Oe(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Re):{watchFile:e.WatchFileKind.UseFsEvents}}}function Oe(Re,er,wr){var mr=wr==null?void 0:wr.fallbackPolling;return{watchFile:Re,fallbackPolling:mr===void 0?er:mr}}function be(Re,er,wr,mr){return ye?Ce(Re,1,De(Re,er,mr,q,G),wr,se.Medium,e.getFallbackOptions(mr)):(Be||(Be=y({useCaseSensitiveFileNames:q,getCurrentDirectory:G,fileSystemEntryExists:J,getAccessibleSortedChildDirectories:b,watchDirectory:Y,realpath:x,setTimeout:L,clearTimeout:P})),Be(Re,er,wr,mr))}function Y(Re,er,wr,mr){e.Debug.assert(!wr);var Ue=d(mr),t=e.Debug.checkDefined(Ue.watchDirectory);switch(t){case e.WatchDirectoryKind.FixedPollingInterval:return j(Re,function(){return er(Re)},se.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return Ae()(Re,function(){return er(Re)},se.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return Xe()(Re,function(){return er(Re)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return Ce(Re,1,De(Re,er,mr,q,G),wr,se.Medium,e.getFallbackOptions(Ue));default:e.Debug.assertNever(t)}}function d(Re){if(Re&&Re.watchDirectory!==void 0)return Re;switch(B){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var er=Re==null?void 0:Re.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:er!==void 0?er:void 0}}}function j(Re,er,wr,mr){return oe(w,q,Re,er,function(Ue){return F(Re,Ue,wr,mr)})}function Ce(Re,er,wr,mr,Ue,t){return oe(mr?U:z,q,Re,wr,function(qr){return Se(Re,er,qr,mr,Ue,t)})}function Se(Re,er,wr,mr,Ue,t){var qr,ln;u&&(qr=Re.substring(Re.lastIndexOf(e.directorySeparator)),ln=qr.slice(e.directorySeparator.length));var dr=J(Re,er)?kr():rn();return{close:function(){dr&&(dr.close(),dr=void 0)}};function vr(Br){dr&&(A("sysLog:: ".concat(Re,":: Changing watcher to ").concat(Br===kr?"Present":"Missing","FileSystemEntryWatcher")),dr.close(),dr=Br())}function kr(){if(Me)return A("sysLog:: ".concat(Re,":: Defaulting to watchFile")),Cr();try{var Br=N(Re,mr,u?Ur:wr);return Br.on("error",function(){wr("rename",""),vr(rn)}),Br}catch(pn){return Me||(Me=pn.code==="ENOSPC"),A("sysLog:: ".concat(Re,":: Changing to watchFile")),Cr()}}function Ur(Br,pn){var ve;if(pn&&e.endsWith(pn,"~")&&(ve=pn,pn=pn.slice(0,pn.length-1)),Br==="rename"&&(!pn||pn===ln||e.endsWith(pn,qr))){var or=$(Re)||e.missingFileModifiedTime;ve&&wr(Br,ve,or),wr(Br,pn,or),u?vr(or===e.missingFileModifiedTime?rn:kr):or===e.missingFileModifiedTime&&vr(rn)}else ve&&wr(Br,ve),wr(Br,pn)}function Cr(){return Le(Re,k(wr),Ue,t)}function rn(){return Le(Re,function(Br,pn,ve){pn===K.Created&&(ve||(ve=$(Re)||e.missingFileModifiedTime),ve!==e.missingFileModifiedTime&&(wr("rename","",ve),vr(kr)))},Ue,t)}}}e.createSystemWatchFunctions=X;function M(h){var F=h.writeFile;h.writeFile=function($,L,P){return e.writeFileEnsuringDirectories($,L,!!P,function(N,J,q){return F.call(h,N,J,q)},function(N){return h.createDirectory(N)},function(N){return h.directoryExists(N)})}}e.patchWriteFileEnsuringDirectory=M;function H(){if(typeof os!="undefined"){var h=os.version;if(!!h){var F=h.indexOf(".");if(F!==-1)return parseInt(h.substring(1,F))}}}e.getNodeMajorVersion=H,e.sys=function(){var h="\uFEFF";function F(){var L=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,P=Za(62715),N=Za(1210),J=Za(28353),q;try{q=Za(13024)}catch(Ur){q=void 0}var G,ye="./profile.cpuprofile",b=Za(62183).Buffer,x=H(),T=x>=4,Z=os.platform==="linux"||os.platform==="darwin",B=J.platform(),u=Ne(),A=P.realpathSync.native?os.platform==="win32"?t:P.realpathSync.native:P.realpathSync,w=T&&(os.platform==="win32"||os.platform==="darwin"),z=e.memoize(function(){return os.cwd()}),U=X({pollingWatchFileWorker:be,getModifiedTime:ln,setTimeout,clearTimeout,fsWatchWorker:Y,useCaseSensitiveFileNames:u,getCurrentDirectory:z,fileSystemEntryExists:er,fsSupportsRecursiveFsWatch:w,getAccessibleSortedChildDirectories:function(Ur){return Se(Ur).directories},realpath:qr,tscWatchFile:{NODE_ENV:"production"}.TSC_WATCHFILE,useNonPollingWatchers:{NODE_ENV:"production"}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{NODE_ENV:"production"}.TSC_WATCHDIRECTORY,inodeWatching:Z,sysLog:f}),ge=U.watchFile,pe=U.watchDirectory,He={args:os.argv.slice(2),newLine:J.EOL,useCaseSensitiveFileNames:u,write:function(Ur){os.stdout.write(Ur)},getWidthOfTerminal:function(){return os.stdout.columns},writeOutputIsTTY:function(){return os.stdout.isTTY},readFile:j,writeFile:Ce,watchFile:ge,watchDirectory:pe,resolvePath:function(Ur){return N.resolve(Ur)},fileExists:wr,directoryExists:mr,createDirectory:function(Ur){if(!He.directoryExists(Ur))try{P.mkdirSync(Ur)}catch(Cr){if(Cr.code!=="EEXIST")throw Cr}},getExecutingFilePath:function(){return Ps},getCurrentDirectory:z,getDirectories:Ue,getEnvironmentVariable:function(Ur){return{NODE_ENV:"production"}[Ur]||""},readDirectory:Re,getModifiedTime:ln,setModifiedTime:dr,deleteFile:vr,createHash:q?kr:o,createSHA256Hash:q?kr:void 0,getMemoryUsage:function(){return Za.g.gc&&Za.g.gc(),os.memoryUsage().heapUsed},getFileSize:function(Ur){try{var Cr=Be(Ur);if(Cr==null?void 0:Cr.isFile())return Cr.size}catch(rn){}return 0},exit:function(Ur){Ae(function(){return os.exit(Ur)})},enableCPUProfiler:Me,disableCPUProfiler:Ae,cpuProfilingEnabled:function(){return!!G||e.contains(os.execArgv,"--cpu-prof")||e.contains(os.execArgv,"--prof")},realpath:qr,debugMode:!!{NODE_ENV:"production"}.NODE_INSPECTOR_IPC||!!{NODE_ENV:"production"}.VSCODE_INSPECTOR_OPTIONS||e.some(os.execArgv,function(Ur){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Ur)}),tryEnableSourceMapsForHost:function(){try{Za(43454).install()}catch(Ur){}},setTimeout,clearTimeout,clearScreen:function(){os.stdout.write("c")},setBlocking:function(){os.stdout&&os.stdout._handle&&os.stdout._handle.setBlocking&&os.stdout._handle.setBlocking(!0)},bufferFrom:Xe,base64decode:function(Ur){return Xe(Ur,"base64").toString("utf8")},base64encode:function(Ur){return Xe(Ur).toString("base64")},require:function(Ur,Cr){try{var rn=e.resolveJSModule(Cr,Ur,He);return{module:Za(13411)(rn),modulePath:rn,error:void 0}}catch(Br){return{module:void 0,modulePath:void 0,error:Br}}}};return He;function Be(Ur){return P.statSync(Ur,{throwIfNoEntry:!1})}function Me(Ur,Cr){if(G)return Cr(),!1;var rn=Za(13611);if(!rn||!rn.Session)return Cr(),!1;var Br=new rn.Session;return Br.connect(),Br.post("Profiler.enable",function(){Br.post("Profiler.start",function(){G=Br,ye=Ur,Cr()})}),!0}function Le(Ur){for(var Cr=0,rn=new e.Map,Br=e.normalizeSlashes(Io),pn="file://".concat(e.getRootLength(Br)===1?"":"/").concat(Br),ve=0,or=Ur.nodes;ve<or.length;ve++){var Ee=or[ve];if(Ee.callFrame.url){var ze=e.normalizeSlashes(Ee.callFrame.url);e.containsPath(pn,ze,u)?Ee.callFrame.url=e.getRelativePathToDirectoryOrUrl(pn,ze,pn,e.createGetCanonicalFileName(u),!0):L.test(ze)||(Ee.callFrame.url=(rn.has(ze)?rn:rn.set(ze,"external".concat(Cr,".js"))).get(ze),Cr++)}}return Ur}function Ae(Ur){if(G&&G!=="stopping"){var Cr=G;return G.post("Profiler.stop",function(rn,Br){var pn,ve=Br.profile;if(!rn){try{((pn=Be(ye))===null||pn===void 0?void 0:pn.isDirectory())&&(ye=N.join(ye,"".concat(new Date().toISOString().replace(/:/g,"-"),"+P").concat(os.pid,".cpuprofile")))}catch(or){}try{P.mkdirSync(N.dirname(ye),{recursive:!0})}catch(or){}P.writeFileSync(ye,JSON.stringify(Le(ve)))}G=void 0,Cr.disconnect(),Ur()}),G="stopping",!0}else return Ur(),!1}function Xe(Ur,Cr){return b.from&&b.from!==Int8Array.from?b.from(Ur,Cr):new b(Ur,Cr)}function Ne(){return B==="win32"||B==="win64"?!1:!wr(Oe(Ps))}function Oe(Ur){return Ur.replace(/\w/g,function(Cr){var rn=Cr.toUpperCase();return Cr===rn?Cr.toLowerCase():rn})}function be(Ur,Cr,rn){P.watchFile(Ur,{persistent:!0,interval:rn},pn);var Br;return{close:function(){return P.unwatchFile(Ur,pn)}};function pn(ve,or){var Ee=+or.mtime==0||Br===K.Deleted;if(+ve.mtime==0){if(Ee)return;Br=K.Deleted}else if(Ee)Br=K.Created;else{if(+ve.mtime==+or.mtime)return;Br=K.Changed}Cr(Ur,Br,ve.mtime)}}function Y(Ur,Cr,rn){return P.watch(Ur,w?{persistent:!0,recursive:!!Cr}:{persistent:!0},rn)}function d(Ur,Cr){var rn;try{rn=P.readFileSync(Ur)}catch(or){return}var Br=rn.length;if(Br>=2&&rn[0]===254&&rn[1]===255){Br&=~1;for(var pn=0;pn<Br;pn+=2){var ve=rn[pn];rn[pn]=rn[pn+1],rn[pn+1]=ve}return rn.toString("utf16le",2)}return Br>=2&&rn[0]===255&&rn[1]===254?rn.toString("utf16le",2):Br>=3&&rn[0]===239&&rn[1]===187&&rn[2]===191?rn.toString("utf8",3):rn.toString("utf8")}function j(Ur,Cr){e.perfLogger.logStartReadFile(Ur);var rn=d(Ur,Cr);return e.perfLogger.logStopReadFile(),rn}function Ce(Ur,Cr,rn){e.perfLogger.logEvent("WriteFile: "+Ur),rn&&(Cr=h+Cr);var Br;try{Br=P.openSync(Ur,"w"),P.writeSync(Br,Cr,void 0,"utf8")}finally{Br!==void 0&&P.closeSync(Br)}}function Se(Ur){e.perfLogger.logEvent("ReadDir: "+(Ur||"."));try{for(var Cr=P.readdirSync(Ur||".",{withFileTypes:!0}),rn=[],Br=[],pn=0,ve=Cr;pn<ve.length;pn++){var or=ve[pn],Ee=typeof or=="string"?or:or.name;if(!(Ee==="."||Ee==="..")){var ze=void 0;if(typeof or=="string"||or.isSymbolicLink()){var Ar=e.combinePaths(Ur,Ee);try{if(ze=Be(Ar),!ze)continue}catch(xe){continue}}else ze=or;ze.isFile()?rn.push(Ee):ze.isDirectory()&&Br.push(Ee)}}return rn.sort(),Br.sort(),{files:rn,directories:Br}}catch(xe){return e.emptyFileSystemEntries}}function Re(Ur,Cr,rn,Br,pn){return e.matchFiles(Ur,Cr,rn,Br,u,os.cwd(),pn,Se,qr)}function er(Ur,Cr){var rn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var Br=Be(Ur);if(!Br)return!1;switch(Cr){case 0:return Br.isFile();case 1:return Br.isDirectory();default:return!1}}catch(pn){return!1}finally{Error.stackTraceLimit=rn}}function wr(Ur){return er(Ur,0)}function mr(Ur){return er(Ur,1)}function Ue(Ur){return Se(Ur).directories.slice()}function t(Ur){return Ur.length<260?P.realpathSync.native(Ur):P.realpathSync(Ur)}function qr(Ur){try{return A(Ur)}catch(Cr){return Ur}}function ln(Ur){var Cr,rn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Cr=Be(Ur))===null||Cr===void 0?void 0:Cr.mtime}catch(Br){return}finally{Error.stackTraceLimit=rn}}function dr(Ur,Cr){try{P.utimesSync(Ur,Cr,Cr)}catch(rn){return}}function vr(Ur){try{return P.unlinkSync(Ur)}catch(Cr){return}}function kr(Ur){var Cr=q.createHash("sha256");return Cr.update(Ur),Cr.digest("hex")}}var $;return typeof os!="undefined"&&os.nextTick&&!os.browser&&($=F()),$&&M($),$}();function V(h){e.sys=h}e.setSys=V,e.sys&&e.sys.getEnvironmentVariable&&(p(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(fr||(fr={}));var fr;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var o="://",ne=/\\/g;function K(Me){return Me===47||Me===92}e.isAnyDirectorySeparator=K;function se(Me){return E(Me)<0}e.isUrl=se;function O(Me){return E(Me)>0}e.isRootedDiskPath=O;function ie(Me){var Le=E(Me);return Le>0&&Le===Me.length}e.isDiskPathRoot=ie;function _e(Me){return E(Me)!==0}e.pathIsAbsolute=_e;function Q(Me){return/^\.\.?($|[\\/])/.test(Me)}e.pathIsRelative=Q;function p(Me){return!_e(Me)&&!Q(Me)}e.pathIsBareSpecifier=p;function D(Me){return e.stringContains(m(Me),".")}e.hasExtension=D;function le(Me,Le){return Me.length>Le.length&&e.endsWith(Me,Le)}e.fileExtensionIs=le;function de(Me,Le){for(var Ae=0,Xe=Le;Ae<Xe.length;Ae++){var Ne=Xe[Ae];if(le(Me,Ne))return!0}return!1}e.fileExtensionIsOneOf=de;function te(Me){return Me.length>0&&K(Me.charCodeAt(Me.length-1))}e.hasTrailingDirectorySeparator=te;function oe(Me){return Me>=97&&Me<=122||Me>=65&&Me<=90}function ae(Me,Le){var Ae=Me.charCodeAt(Le);if(Ae===58)return Le+1;if(Ae===37&&Me.charCodeAt(Le+1)===51){var Xe=Me.charCodeAt(Le+2);if(Xe===97||Xe===65)return Le+3}return-1}function E(Me){if(!Me)return 0;var Le=Me.charCodeAt(0);if(Le===47||Le===92){if(Me.charCodeAt(1)!==Le)return 1;var Ae=Me.indexOf(Le===47?e.directorySeparator:e.altDirectorySeparator,2);return Ae<0?Me.length:Ae+1}if(oe(Le)&&Me.charCodeAt(1)===58){var Xe=Me.charCodeAt(2);if(Xe===47||Xe===92)return 3;if(Me.length===2)return 2}var Ne=Me.indexOf(o);if(Ne!==-1){var Oe=Ne+o.length,be=Me.indexOf(e.directorySeparator,Oe);if(be!==-1){var Y=Me.slice(0,Ne),d=Me.slice(Oe,be);if(Y==="file"&&(d===""||d==="localhost")&&oe(Me.charCodeAt(be+1))){var j=ae(Me,be+2);if(j!==-1){if(Me.charCodeAt(j)===47)return~(j+1);if(j===Me.length)return~j}}return~(be+1)}return~Me.length}return 0}function I(Me){var Le=E(Me);return Le<0?~Le:Le}e.getRootLength=I;function f(Me){Me=X(Me);var Le=I(Me);return Le===Me.length?Me:(Me=J(Me),Me.slice(0,Math.max(Le,Me.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=f;function m(Me,Le,Ae){Me=X(Me);var Xe=I(Me);if(Xe===Me.length)return"";Me=J(Me);var Ne=Me.slice(Math.max(I(Me),Me.lastIndexOf(e.directorySeparator)+1)),Oe=Le!==void 0&&Ae!==void 0?k(Ne,Le,Ae):void 0;return Oe?Ne.slice(0,Ne.length-Oe.length):Ne}e.getBaseFileName=m;function y(Me,Le,Ae){if(e.startsWith(Le,".")||(Le="."+Le),Me.length>=Le.length&&Me.charCodeAt(Me.length-Le.length)===46){var Xe=Me.slice(Me.length-Le.length);if(Ae(Xe,Le))return Xe}}function S(Me,Le,Ae){if(typeof Le=="string")return y(Me,Le,Ae)||"";for(var Xe=0,Ne=Le;Xe<Ne.length;Xe++){var Oe=Ne[Xe],be=y(Me,Oe,Ae);if(be)return be}return""}function k(Me,Le,Ae){if(Le)return S(J(Me),Le,Ae?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var Xe=m(Me),Ne=Xe.lastIndexOf(".");return Ne>=0?Xe.substring(Ne):""}e.getAnyExtensionFromPath=k;function C(Me,Le){var Ae=Me.substring(0,Le),Xe=Me.substring(Le).split(e.directorySeparator);return Xe.length&&!e.lastOrUndefined(Xe)&&Xe.pop(),zn([Ae],Xe,!0)}function me(Me,Le){return Le===void 0&&(Le=""),Me=H(Le,Me),C(Me,I(Me))}e.getPathComponents=me;function De(Me){if(Me.length===0)return"";var Le=Me[0]&&q(Me[0]);return Le+Me.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=De;function X(Me){return Me.indexOf("\\")!==-1?Me.replace(ne,e.directorySeparator):Me}e.normalizeSlashes=X;function M(Me){if(!e.some(Me))return[];for(var Le=[Me[0]],Ae=1;Ae<Me.length;Ae++){var Xe=Me[Ae];if(!!Xe&&Xe!=="."){if(Xe===".."){if(Le.length>1){if(Le[Le.length-1]!==".."){Le.pop();continue}}else if(Le[0])continue}Le.push(Xe)}}return Le}e.reducePathComponents=M;function H(Me){for(var Le=[],Ae=1;Ae<arguments.length;Ae++)Le[Ae-1]=arguments[Ae];Me&&(Me=X(Me));for(var Xe=0,Ne=Le;Xe<Ne.length;Xe++){var Oe=Ne[Xe];!Oe||(Oe=X(Oe),!Me||I(Oe)!==0?Me=Oe:Me=q(Me)+Oe)}return Me}e.combinePaths=H;function V(Me){for(var Le=[],Ae=1;Ae<arguments.length;Ae++)Le[Ae-1]=arguments[Ae];return $(e.some(Le)?H.apply(void 0,zn([Me],Le,!1)):X(Me))}e.resolvePath=V;function h(Me,Le){return M(me(Me,Le))}e.getNormalizedPathComponents=h;function F(Me,Le){return De(h(Me,Le))}e.getNormalizedAbsolutePath=F;function $(Me){if(Me=X(Me),!b.test(Me))return Me;var Le=Me.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Le!==Me&&(Me=Le,!b.test(Me)))return Me;var Ae=De(M(me(Me)));return Ae&&te(Me)?q(Ae):Ae}e.normalizePath=$;function L(Me){return Me.length===0?"":Me.slice(1).join(e.directorySeparator)}function P(Me,Le){return L(h(Me,Le))}e.getNormalizedAbsolutePathWithoutRoot=P;function N(Me,Le,Ae){var Xe=O(Me)?$(Me):F(Me,Le);return Ae(Xe)}e.toPath=N;function J(Me){return te(Me)?Me.substr(0,Me.length-1):Me}e.removeTrailingDirectorySeparator=J;function q(Me){return te(Me)?Me:Me+e.directorySeparator}e.ensureTrailingDirectorySeparator=q;function G(Me){return!_e(Me)&&!Q(Me)?"./"+Me:Me}e.ensurePathIsNonModuleName=G;function ye(Me,Le,Ae,Xe){var Ne=Ae!==void 0&&Xe!==void 0?k(Me,Ae,Xe):k(Me);return Ne?Me.slice(0,Me.length-Ne.length)+(e.startsWith(Le,".")?Le:"."+Le):Me}e.changeAnyExtension=ye;var b=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function x(Me,Le,Ae){if(Me===Le)return 0;if(Me===void 0)return-1;if(Le===void 0)return 1;var Xe=Me.substring(0,I(Me)),Ne=Le.substring(0,I(Le)),Oe=e.compareStringsCaseInsensitive(Xe,Ne);if(Oe!==0)return Oe;var be=Me.substring(Xe.length),Y=Le.substring(Ne.length);if(!b.test(be)&&!b.test(Y))return Ae(be,Y);for(var d=M(me(Me)),j=M(me(Le)),Ce=Math.min(d.length,j.length),Se=1;Se<Ce;Se++){var Re=Ae(d[Se],j[Se]);if(Re!==0)return Re}return e.compareValues(d.length,j.length)}function T(Me,Le){return x(Me,Le,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=T;function Z(Me,Le){return x(Me,Le,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=Z;function B(Me,Le,Ae,Xe){return typeof Ae=="string"?(Me=H(Ae,Me),Le=H(Ae,Le)):typeof Ae=="boolean"&&(Xe=Ae),x(Me,Le,e.getStringComparer(Xe))}e.comparePaths=B;function u(Me,Le,Ae,Xe){if(typeof Ae=="string"?(Me=H(Ae,Me),Le=H(Ae,Le)):typeof Ae=="boolean"&&(Xe=Ae),Me===void 0||Le===void 0)return!1;if(Me===Le)return!0;var Ne=M(me(Me)),Oe=M(me(Le));if(Oe.length<Ne.length)return!1;for(var be=Xe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Y=0;Y<Ne.length;Y++){var d=Y===0?e.equateStringsCaseInsensitive:be;if(!d(Ne[Y],Oe[Y]))return!1}return!0}e.containsPath=u;function A(Me,Le,Ae){var Xe=Ae(Me),Ne=Ae(Le);return e.startsWith(Xe,Ne+"/")||e.startsWith(Xe,Ne+"\\")}e.startsWithDirectory=A;function w(Me,Le,Ae,Xe){var Ne=M(me(Me)),Oe=M(me(Le)),be;for(be=0;be<Ne.length&&be<Oe.length;be++){var Y=Xe(Ne[be]),d=Xe(Oe[be]),j=be===0?e.equateStringsCaseInsensitive:Ae;if(!j(Y,d))break}if(be===0)return Oe;for(var Ce=Oe.slice(be),Se=[];be<Ne.length;be++)Se.push("..");return zn(zn([""],Se,!0),Ce,!0)}e.getPathComponentsRelativeTo=w;function z(Me,Le,Ae){e.Debug.assert(I(Me)>0==I(Le)>0,"Paths must either both be absolute or both be relative");var Xe=typeof Ae=="function"?Ae:e.identity,Ne=typeof Ae=="boolean"?Ae:!1,Oe=w(Me,Le,Ne?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Xe);return De(Oe)}e.getRelativePathFromDirectory=z;function U(Me,Le,Ae){return O(Me)?pe(Le,Me,Le,Ae,!1):Me}e.convertToRelativePath=U;function ge(Me,Le,Ae){return G(z(f(Me),Le,Ae))}e.getRelativePathFromFile=ge;function pe(Me,Le,Ae,Xe,Ne){var Oe=w(V(Ae,Me),V(Ae,Le),e.equateStringsCaseSensitive,Xe),be=Oe[0];if(Ne&&O(be)){var Y=be.charAt(0)===e.directorySeparator?"file://":"file:///";Oe[0]=Y+be}return De(Oe)}e.getRelativePathToDirectoryOrUrl=pe;function He(Me,Le){for(;;){var Ae=Le(Me);if(Ae!==void 0)return Ae;var Xe=f(Me);if(Xe===Me)return;Me=Xe}}e.forEachAncestorDirectory=He;function Be(Me){return e.endsWith(Me,"/node_modules")}e.isNodeModulesDirectory=Be})(fr||(fr={}));var fr;(function(e){function o(ne,K,se,O,ie,_e,Q){return{code:ne,category:K,key:se,message:O,reportsUnnecessary:ie,elidedInCompatabilityPyramid:_e,reportsDeprecated:Q}}e.Diagnostics={Unterminated_string_literal:o(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:o(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:o(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:o(1006,e.DiagnosticCategory.Error,"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:o(1007,e.DiagnosticCategory.Error,"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:o(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:o(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:o(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:o(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:o(1013,e.DiagnosticCategory.Error,"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:o(1014,e.DiagnosticCategory.Error,"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:o(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:o(1016,e.DiagnosticCategory.Error,"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:o(1017,e.DiagnosticCategory.Error,"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:o(1018,e.DiagnosticCategory.Error,"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:o(1019,e.DiagnosticCategory.Error,"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:o(1020,e.DiagnosticCategory.Error,"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:o(1021,e.DiagnosticCategory.Error,"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:o(1022,e.DiagnosticCategory.Error,"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:o(1024,e.DiagnosticCategory.Error,"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:o(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:o(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:o(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:o(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:o(1031,e.DiagnosticCategory.Error,"_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:o(1034,e.DiagnosticCategory.Error,"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:o(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:o(1036,e.DiagnosticCategory.Error,"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:o(1038,e.DiagnosticCategory.Error,"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:o(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:o(1040,e.DiagnosticCategory.Error,"_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:o(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:o(1044,e.DiagnosticCategory.Error,"_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:o(1046,e.DiagnosticCategory.Error,"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:o(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:o(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:o(1049,e.DiagnosticCategory.Error,"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:o(1051,e.DiagnosticCategory.Error,"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:o(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:o(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:o(1054,e.DiagnosticCategory.Error,"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:o(1055,e.DiagnosticCategory.Error,"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:o(1056,e.DiagnosticCategory.Error,"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:o(1058,e.DiagnosticCategory.Error,"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:o(1059,e.DiagnosticCategory.Error,"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:o(1060,e.DiagnosticCategory.Error,"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:o(1061,e.DiagnosticCategory.Error,"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:o(1062,e.DiagnosticCategory.Error,"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:o(1063,e.DiagnosticCategory.Error,"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:o(1064,e.DiagnosticCategory.Error,"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<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:o(1066,e.DiagnosticCategory.Error,"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:o(1068,e.DiagnosticCategory.Error,"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:o(1069,e.DiagnosticCategory.Error,"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:o(1070,e.DiagnosticCategory.Error,"_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:o(1071,e.DiagnosticCategory.Error,"_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:o(1079,e.DiagnosticCategory.Error,"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:o(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:o(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:o(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:o(1090,e.DiagnosticCategory.Error,"_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:o(1091,e.DiagnosticCategory.Error,"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:o(1092,e.DiagnosticCategory.Error,"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:o(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:o(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:o(1095,e.DiagnosticCategory.Error,"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:o(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:o(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:o(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:o(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:o(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:o(1101,e.DiagnosticCategory.Error,"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:o(1102,e.DiagnosticCategory.Error,"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:o(1103,e.DiagnosticCategory.Error,"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:o(1104,e.DiagnosticCategory.Error,"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:o(1105,e.DiagnosticCategory.Error,"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:o(1106,e.DiagnosticCategory.Error,"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:o(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:o(1108,e.DiagnosticCategory.Error,"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:o(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:o(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:o(1113,e.DiagnosticCategory.Error,"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:o(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:o(1115,e.DiagnosticCategory.Error,"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:o(1116,e.DiagnosticCategory.Error,"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:o(1117,e.DiagnosticCategory.Error,"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:o(1118,e.DiagnosticCategory.Error,"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:o(1119,e.DiagnosticCategory.Error,"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:o(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:o(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:o(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:o(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:o(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:o(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:o(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:o(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:o(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:o(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:o(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:o(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:o(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:o(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:o(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:o(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:o(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:o(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:o(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:o(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:o(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:o(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:o(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:o(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:o(1147,e.DiagnosticCategory.Error,"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:o(1148,e.DiagnosticCategory.Error,"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:o(1149,e.DiagnosticCategory.Error,"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."),const_declarations_must_be_initialized:o(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:o(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:o(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:o(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:o(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:o(1162,e.DiagnosticCategory.Error,"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:o(1163,e.DiagnosticCategory.Error,"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:o(1164,e.DiagnosticCategory.Error,"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:o(1165,e.DiagnosticCategory.Error,"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:o(1166,e.DiagnosticCategory.Error,"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:o(1168,e.DiagnosticCategory.Error,"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:o(1169,e.DiagnosticCategory.Error,"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:o(1170,e.DiagnosticCategory.Error,"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:o(1171,e.DiagnosticCategory.Error,"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:o(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:o(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:o(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:o(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:o(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:o(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:o(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:o(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:o(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:o(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:o(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:o(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:o(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:o(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:o(1186,e.DiagnosticCategory.Error,"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:o(1187,e.DiagnosticCategory.Error,"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:o(1188,e.DiagnosticCategory.Error,"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:o(1189,e.DiagnosticCategory.Error,"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:o(1190,e.DiagnosticCategory.Error,"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:o(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:o(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:o(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:o(1194,e.DiagnosticCategory.Error,"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:o(1195,e.DiagnosticCategory.Error,"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:o(1196,e.DiagnosticCategory.Error,"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:o(1197,e.DiagnosticCategory.Error,"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:o(1198,e.DiagnosticCategory.Error,"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:o(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:o(1200,e.DiagnosticCategory.Error,"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:o(1202,e.DiagnosticCategory.Error,"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:o(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:o(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:o(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:o(1207,e.DiagnosticCategory.Error,"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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:o(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:o(1209,e.DiagnosticCategory.Error,"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:o(1210,e.DiagnosticCategory.Error,"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:o(1211,e.DiagnosticCategory.Error,"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:o(1212,e.DiagnosticCategory.Error,"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:o(1213,e.DiagnosticCategory.Error,"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:o(1214,e.DiagnosticCategory.Error,"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:o(1215,e.DiagnosticCategory.Error,"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:o(1216,e.DiagnosticCategory.Error,"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:o(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:o(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:o(1221,e.DiagnosticCategory.Error,"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:o(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:o(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:o(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:o(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:o(1226,e.DiagnosticCategory.Error,"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:o(1227,e.DiagnosticCategory.Error,"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:o(1228,e.DiagnosticCategory.Error,"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:o(1229,e.DiagnosticCategory.Error,"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:o(1230,e.DiagnosticCategory.Error,"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:o(1231,e.DiagnosticCategory.Error,"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:o(1232,e.DiagnosticCategory.Error,"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:o(1233,e.DiagnosticCategory.Error,"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:o(1234,e.DiagnosticCategory.Error,"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:o(1235,e.DiagnosticCategory.Error,"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:o(1236,e.DiagnosticCategory.Error,"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:o(1237,e.DiagnosticCategory.Error,"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:o(1238,e.DiagnosticCategory.Error,"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:o(1239,e.DiagnosticCategory.Error,"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:o(1240,e.DiagnosticCategory.Error,"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:o(1241,e.DiagnosticCategory.Error,"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:o(1242,e.DiagnosticCategory.Error,"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:o(1243,e.DiagnosticCategory.Error,"_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:o(1244,e.DiagnosticCategory.Error,"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:o(1245,e.DiagnosticCategory.Error,"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:o(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:o(1247,e.DiagnosticCategory.Error,"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:o(1248,e.DiagnosticCategory.Error,"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:o(1249,e.DiagnosticCategory.Error,"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:o(1250,e.DiagnosticCategory.Error,"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:o(1251,e.DiagnosticCategory.Error,"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:o(1252,e.DiagnosticCategory.Error,"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."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:o(1254,e.DiagnosticCategory.Error,"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:o(1255,e.DiagnosticCategory.Error,"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:o(1257,e.DiagnosticCategory.Error,"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:o(1258,e.DiagnosticCategory.Error,"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:o(1259,e.DiagnosticCategory.Error,"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:o(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:o(1261,e.DiagnosticCategory.Error,"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:o(1262,e.DiagnosticCategory.Error,"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:o(1263,e.DiagnosticCategory.Error,"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:o(1264,e.DiagnosticCategory.Error,"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:o(1265,e.DiagnosticCategory.Error,"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:o(1266,e.DiagnosticCategory.Error,"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:o(1267,e.DiagnosticCategory.Error,"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:o(1268,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided:o(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:o(1270,e.DiagnosticCategory.Error,"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:o(1271,e.DiagnosticCategory.Error,"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:o(1272,e.DiagnosticCategory.Error,"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:o(1273,e.DiagnosticCategory.Error,"_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:o(1274,e.DiagnosticCategory.Error,"_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:o(1275,e.DiagnosticCategory.Error,"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:o(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:o(1300,e.DiagnosticCategory.Error,"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:o(1308,e.DiagnosticCategory.Error,"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:o(1309,e.DiagnosticCategory.Error,"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:o(1312,e.DiagnosticCategory.Error,"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:o(1313,e.DiagnosticCategory.Error,"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:o(1314,e.DiagnosticCategory.Error,"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:o(1315,e.DiagnosticCategory.Error,"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:o(1316,e.DiagnosticCategory.Error,"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:o(1317,e.DiagnosticCategory.Error,"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:o(1318,e.DiagnosticCategory.Error,"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:o(1319,e.DiagnosticCategory.Error,"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:o(1320,e.DiagnosticCategory.Error,"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:o(1321,e.DiagnosticCategory.Error,"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:o(1322,e.DiagnosticCategory.Error,"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:o(1323,e.DiagnosticCategory.Error,"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:o(1324,e.DiagnosticCategory.Error,"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:o(1325,e.DiagnosticCategory.Error,"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:o(1326,e.DiagnosticCategory.Error,"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:o(1327,e.DiagnosticCategory.Error,"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:o(1328,e.DiagnosticCategory.Error,"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:o(1329,e.DiagnosticCategory.Error,"_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:o(1330,e.DiagnosticCategory.Error,"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:o(1331,e.DiagnosticCategory.Error,"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:o(1332,e.DiagnosticCategory.Error,"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:o(1333,e.DiagnosticCategory.Error,"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:o(1334,e.DiagnosticCategory.Error,"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:o(1335,e.DiagnosticCategory.Error,"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:o(1337,e.DiagnosticCategory.Error,"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:o(1338,e.DiagnosticCategory.Error,"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:o(1339,e.DiagnosticCategory.Error,"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:o(1340,e.DiagnosticCategory.Error,"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:o(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:o(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:o(1343,e.DiagnosticCategory.Error,"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:o(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:o(1345,e.DiagnosticCategory.Error,"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:o(1346,e.DiagnosticCategory.Error,"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:o(1347,e.DiagnosticCategory.Error,"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:o(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:o(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:o(1350,e.DiagnosticCategory.Message,"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:o(1351,e.DiagnosticCategory.Error,"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:o(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:o(1353,e.DiagnosticCategory.Error,"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:o(1354,e.DiagnosticCategory.Error,"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:o(1355,e.DiagnosticCategory.Error,"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:o(1356,e.DiagnosticCategory.Error,"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:o(1357,e.DiagnosticCategory.Error,"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:o(1358,e.DiagnosticCategory.Error,"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:o(1359,e.DiagnosticCategory.Error,"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:o(1360,e.DiagnosticCategory.Error,"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:o(1361,e.DiagnosticCategory.Error,"_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:o(1362,e.DiagnosticCategory.Error,"_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:o(1363,e.DiagnosticCategory.Error,"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:o(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:o(1365,e.DiagnosticCategory.Message,"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:o(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:o(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:o(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:o(1369,e.DiagnosticCategory.Message,"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:o(1371,e.DiagnosticCategory.Error,"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'."),Convert_to_type_only_import:o(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:o(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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:o(1375,e.DiagnosticCategory.Error,"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:o(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:o(1377,e.DiagnosticCategory.Message,"_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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:o(1378,e.DiagnosticCategory.Error,"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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:o(1379,e.DiagnosticCategory.Error,"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:o(1380,e.DiagnosticCategory.Error,"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:o(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:o(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:o(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:o(1385,e.DiagnosticCategory.Error,"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:o(1386,e.DiagnosticCategory.Error,"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:o(1387,e.DiagnosticCategory.Error,"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:o(1388,e.DiagnosticCategory.Error,"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:o(1389,e.DiagnosticCategory.Error,"_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:o(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:o(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:o(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:o(1394,e.DiagnosticCategory.Message,"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:o(1395,e.DiagnosticCategory.Message,"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:o(1396,e.DiagnosticCategory.Message,"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:o(1397,e.DiagnosticCategory.Message,"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:o(1398,e.DiagnosticCategory.Message,"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:o(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:o(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:o(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:o(1402,e.DiagnosticCategory.Message,"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:o(1403,e.DiagnosticCategory.Message,"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:o(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:o(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:o(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:o(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:o(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:o(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:o(1410,e.DiagnosticCategory.Message,"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:o(1411,e.DiagnosticCategory.Message,"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:o(1412,e.DiagnosticCategory.Message,"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:o(1413,e.DiagnosticCategory.Message,"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:o(1414,e.DiagnosticCategory.Message,"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:o(1415,e.DiagnosticCategory.Message,"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:o(1416,e.DiagnosticCategory.Message,"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:o(1417,e.DiagnosticCategory.Message,"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:o(1418,e.DiagnosticCategory.Message,"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:o(1419,e.DiagnosticCategory.Message,"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:o(1420,e.DiagnosticCategory.Message,"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:o(1421,e.DiagnosticCategory.Message,"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:o(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:o(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:o(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:o(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:o(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:o(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:o(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:o(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:o(1430,e.DiagnosticCategory.Message,"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:o(1431,e.DiagnosticCategory.Error,"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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:o(1432,e.DiagnosticCategory.Error,"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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:o(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:o(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:o(1435,e.DiagnosticCategory.Error,"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:o(1436,e.DiagnosticCategory.Error,"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:o(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:o(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:o(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:o(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:o(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:o(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:o(1443,e.DiagnosticCategory.Error,"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:o(1444,e.DiagnosticCategory.Error,"_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:o(1446,e.DiagnosticCategory.Error,"_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_isolatedModules_is_enabled:o(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:o(1449,e.DiagnosticCategory.Message,"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_assertion_as_arguments:o(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion 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:o(1451,e.DiagnosticCategory.Error,"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_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:o(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:o(1453,e.DiagnosticCategory.Error,"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:o(1454,e.DiagnosticCategory.Error,"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:o(1455,e.DiagnosticCategory.Error,"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:o(1456,e.DiagnosticCategory.Error,"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:o(1457,e.DiagnosticCategory.Message,"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:o(1458,e.DiagnosticCategory.Message,"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:o(1459,e.DiagnosticCategory.Message,"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:o(1460,e.DiagnosticCategory.Message,"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:o(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:o(1470,e.DiagnosticCategory.Error,"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:o(1471,e.DiagnosticCategory.Error,"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:o(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:o(1473,e.DiagnosticCategory.Error,"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:o(1474,e.DiagnosticCategory.Error,"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:o(1475,e.DiagnosticCategory.Message,"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:o(1476,e.DiagnosticCategory.Message,"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:o(1477,e.DiagnosticCategory.Error,"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:o(1478,e.DiagnosticCategory.Error,"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:o(1479,e.DiagnosticCategory.Error,"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:o(1480,e.DiagnosticCategory.Message,"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:o(1481,e.DiagnosticCategory.Message,"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:o(1482,e.DiagnosticCategory.Message,"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:o(1483,e.DiagnosticCategory.Message,"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" }`.'),The_types_of_0_are_incompatible_between_these_types:o(2200,e.DiagnosticCategory.Error,"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:o(2201,e.DiagnosticCategory.Error,"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:o(2202,e.DiagnosticCategory.Error,"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:o(2203,e.DiagnosticCategory.Error,"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:o(2204,e.DiagnosticCategory.Error,"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:o(2205,e.DiagnosticCategory.Error,"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:o(2206,e.DiagnosticCategory.Error,"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:o(2207,e.DiagnosticCategory.Error,"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:o(2208,e.DiagnosticCategory.Error,"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:o(2209,e.DiagnosticCategory.Error,"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:o(2210,e.DiagnosticCategory.Error,"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:o(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:o(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:o(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:o(2301,e.DiagnosticCategory.Error,"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:o(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:o(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:o(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:o(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:o(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:o(2307,e.DiagnosticCategory.Error,"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:o(2308,e.DiagnosticCategory.Error,"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:o(2309,e.DiagnosticCategory.Error,"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:o(2310,e.DiagnosticCategory.Error,"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:o(2311,e.DiagnosticCategory.Error,"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:o(2312,e.DiagnosticCategory.Error,"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:o(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:o(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:o(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:o(2316,e.DiagnosticCategory.Error,"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:o(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:o(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:o(2319,e.DiagnosticCategory.Error,"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:o(2320,e.DiagnosticCategory.Error,"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:o(2321,e.DiagnosticCategory.Error,"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:o(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:o(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:o(2324,e.DiagnosticCategory.Error,"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:o(2325,e.DiagnosticCategory.Error,"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:o(2326,e.DiagnosticCategory.Error,"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:o(2327,e.DiagnosticCategory.Error,"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:o(2328,e.DiagnosticCategory.Error,"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:o(2329,e.DiagnosticCategory.Error,"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:o(2330,e.DiagnosticCategory.Error,"_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:o(2331,e.DiagnosticCategory.Error,"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:o(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:o(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:o(2334,e.DiagnosticCategory.Error,"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:o(2335,e.DiagnosticCategory.Error,"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:o(2336,e.DiagnosticCategory.Error,"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:o(2337,e.DiagnosticCategory.Error,"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:o(2338,e.DiagnosticCategory.Error,"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:o(2339,e.DiagnosticCategory.Error,"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:o(2340,e.DiagnosticCategory.Error,"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:o(2341,e.DiagnosticCategory.Error,"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:o(2343,e.DiagnosticCategory.Error,"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:o(2344,e.DiagnosticCategory.Error,"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:o(2345,e.DiagnosticCategory.Error,"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}'."),Call_target_does_not_contain_any_signatures:o(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:o(2347,e.DiagnosticCategory.Error,"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:o(2348,e.DiagnosticCategory.Error,"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:o(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:o(2350,e.DiagnosticCategory.Error,"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:o(2351,e.DiagnosticCategory.Error,"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:o(2352,e.DiagnosticCategory.Error,"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:o(2353,e.DiagnosticCategory.Error,"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:o(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:o(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:o(2356,e.DiagnosticCategory.Error,"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:o(2357,e.DiagnosticCategory.Error,"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:o(2358,e.DiagnosticCategory.Error,"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:o(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:o(2362,e.DiagnosticCategory.Error,"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:o(2363,e.DiagnosticCategory.Error,"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:o(2364,e.DiagnosticCategory.Error,"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:o(2365,e.DiagnosticCategory.Error,"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:o(2366,e.DiagnosticCategory.Error,"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:o(2367,e.DiagnosticCategory.Error,"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:o(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:o(2369,e.DiagnosticCategory.Error,"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:o(2370,e.DiagnosticCategory.Error,"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:o(2371,e.DiagnosticCategory.Error,"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:o(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:o(2373,e.DiagnosticCategory.Error,"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:o(2374,e.DiagnosticCategory.Error,"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:o(2375,e.DiagnosticCategory.Error,"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:o(2376,e.DiagnosticCategory.Error,"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:o(2377,e.DiagnosticCategory.Error,"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:o(2378,e.DiagnosticCategory.Error,"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:o(2379,e.DiagnosticCategory.Error,"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."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:o(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:o(2383,e.DiagnosticCategory.Error,"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:o(2384,e.DiagnosticCategory.Error,"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:o(2385,e.DiagnosticCategory.Error,"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:o(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:o(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:o(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:o(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:o(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:o(2391,e.DiagnosticCategory.Error,"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:o(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:o(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:o(2394,e.DiagnosticCategory.Error,"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:o(2395,e.DiagnosticCategory.Error,"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:o(2396,e.DiagnosticCategory.Error,"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:o(2397,e.DiagnosticCategory.Error,"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:o(2398,e.DiagnosticCategory.Error,"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:o(2399,e.DiagnosticCategory.Error,"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:o(2400,e.DiagnosticCategory.Error,"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:o(2401,e.DiagnosticCategory.Error,"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:o(2402,e.DiagnosticCategory.Error,"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:o(2403,e.DiagnosticCategory.Error,"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:o(2404,e.DiagnosticCategory.Error,"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:o(2405,e.DiagnosticCategory.Error,"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:o(2406,e.DiagnosticCategory.Error,"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:o(2407,e.DiagnosticCategory.Error,"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:o(2408,e.DiagnosticCategory.Error,"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:o(2409,e.DiagnosticCategory.Error,"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:o(2410,e.DiagnosticCategory.Error,"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:o(2412,e.DiagnosticCategory.Error,"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:o(2411,e.DiagnosticCategory.Error,"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:o(2413,e.DiagnosticCategory.Error,"_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:o(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:o(2415,e.DiagnosticCategory.Error,"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:o(2416,e.DiagnosticCategory.Error,"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:o(2417,e.DiagnosticCategory.Error,"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:o(2418,e.DiagnosticCategory.Error,"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:o(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:o(2420,e.DiagnosticCategory.Error,"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:o(2422,e.DiagnosticCategory.Error,"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:o(2423,e.DiagnosticCategory.Error,"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:o(2425,e.DiagnosticCategory.Error,"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:o(2426,e.DiagnosticCategory.Error,"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:o(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:o(2428,e.DiagnosticCategory.Error,"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:o(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:o(2431,e.DiagnosticCategory.Error,"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:o(2432,e.DiagnosticCategory.Error,"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:o(2433,e.DiagnosticCategory.Error,"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:o(2434,e.DiagnosticCategory.Error,"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:o(2435,e.DiagnosticCategory.Error,"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:o(2436,e.DiagnosticCategory.Error,"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:o(2437,e.DiagnosticCategory.Error,"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:o(2438,e.DiagnosticCategory.Error,"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:o(2439,e.DiagnosticCategory.Error,"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:o(2440,e.DiagnosticCategory.Error,"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:o(2441,e.DiagnosticCategory.Error,"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:o(2442,e.DiagnosticCategory.Error,"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:o(2443,e.DiagnosticCategory.Error,"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:o(2444,e.DiagnosticCategory.Error,"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:o(2445,e.DiagnosticCategory.Error,"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:o(2446,e.DiagnosticCategory.Error,"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:o(2447,e.DiagnosticCategory.Error,"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:o(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:o(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:o(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:o(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:o(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:o(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:o(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:o(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:o(2458,e.DiagnosticCategory.Error,"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:o(2459,e.DiagnosticCategory.Error,"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:o(2460,e.DiagnosticCategory.Error,"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:o(2461,e.DiagnosticCategory.Error,"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:o(2462,e.DiagnosticCategory.Error,"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:o(2463,e.DiagnosticCategory.Error,"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:o(2464,e.DiagnosticCategory.Error,"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:o(2465,e.DiagnosticCategory.Error,"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:o(2466,e.DiagnosticCategory.Error,"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:o(2467,e.DiagnosticCategory.Error,"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:o(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:o(2469,e.DiagnosticCategory.Error,"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:o(2472,e.DiagnosticCategory.Error,"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:o(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:o(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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:o(2475,e.DiagnosticCategory.Error,"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:o(2476,e.DiagnosticCategory.Error,"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:o(2477,e.DiagnosticCategory.Error,"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:o(2478,e.DiagnosticCategory.Error,"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:o(2480,e.DiagnosticCategory.Error,"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:o(2481,e.DiagnosticCategory.Error,"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:o(2483,e.DiagnosticCategory.Error,"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:o(2484,e.DiagnosticCategory.Error,"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:o(2487,e.DiagnosticCategory.Error,"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:o(2488,e.DiagnosticCategory.Error,"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:o(2489,e.DiagnosticCategory.Error,"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:o(2490,e.DiagnosticCategory.Error,"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:o(2491,e.DiagnosticCategory.Error,"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:o(2492,e.DiagnosticCategory.Error,"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:o(2493,e.DiagnosticCategory.Error,"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:o(2494,e.DiagnosticCategory.Error,"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:o(2495,e.DiagnosticCategory.Error,"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:o(2496,e.DiagnosticCategory.Error,"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:o(2497,e.DiagnosticCategory.Error,"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:o(2498,e.DiagnosticCategory.Error,"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:o(2499,e.DiagnosticCategory.Error,"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:o(2500,e.DiagnosticCategory.Error,"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:o(2501,e.DiagnosticCategory.Error,"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:o(2502,e.DiagnosticCategory.Error,"_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:o(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:o(2504,e.DiagnosticCategory.Error,"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:o(2505,e.DiagnosticCategory.Error,"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:o(2506,e.DiagnosticCategory.Error,"_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:o(2507,e.DiagnosticCategory.Error,"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:o(2508,e.DiagnosticCategory.Error,"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:o(2509,e.DiagnosticCategory.Error,"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:o(2510,e.DiagnosticCategory.Error,"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:o(2511,e.DiagnosticCategory.Error,"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:o(2512,e.DiagnosticCategory.Error,"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:o(2513,e.DiagnosticCategory.Error,"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:o(2514,e.DiagnosticCategory.Error,"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:o(2515,e.DiagnosticCategory.Error,"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:o(2516,e.DiagnosticCategory.Error,"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:o(2517,e.DiagnosticCategory.Error,"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:o(2518,e.DiagnosticCategory.Error,"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:o(2519,e.DiagnosticCategory.Error,"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:o(2520,e.DiagnosticCategory.Error,"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:o(2522,e.DiagnosticCategory.Error,"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:o(2523,e.DiagnosticCategory.Error,"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:o(2524,e.DiagnosticCategory.Error,"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:o(2525,e.DiagnosticCategory.Error,"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:o(2526,e.DiagnosticCategory.Error,"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:o(2527,e.DiagnosticCategory.Error,"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:o(2528,e.DiagnosticCategory.Error,"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:o(2529,e.DiagnosticCategory.Error,"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:o(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:o(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:o(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:o(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:o(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:o(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:o(2536,e.DiagnosticCategory.Error,"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:o(2537,e.DiagnosticCategory.Error,"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:o(2538,e.DiagnosticCategory.Error,"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:o(2539,e.DiagnosticCategory.Error,"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:o(2540,e.DiagnosticCategory.Error,"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:o(2542,e.DiagnosticCategory.Error,"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:o(2543,e.DiagnosticCategory.Error,"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:o(2544,e.DiagnosticCategory.Error,"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:o(2545,e.DiagnosticCategory.Error,"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:o(2547,e.DiagnosticCategory.Error,"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:o(2548,e.DiagnosticCategory.Error,"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:o(2549,e.DiagnosticCategory.Error,"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:o(2550,e.DiagnosticCategory.Error,"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:o(2551,e.DiagnosticCategory.Error,"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:o(2552,e.DiagnosticCategory.Error,"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:o(2553,e.DiagnosticCategory.Error,"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:o(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:o(2555,e.DiagnosticCategory.Error,"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:o(2556,e.DiagnosticCategory.Error,"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:o(2558,e.DiagnosticCategory.Error,"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:o(2559,e.DiagnosticCategory.Error,"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:o(2560,e.DiagnosticCategory.Error,"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:o(2561,e.DiagnosticCategory.Error,"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:o(2562,e.DiagnosticCategory.Error,"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:o(2563,e.DiagnosticCategory.Error,"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:o(2564,e.DiagnosticCategory.Error,"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:o(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:o(2566,e.DiagnosticCategory.Error,"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:o(2567,e.DiagnosticCategory.Error,"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:o(2568,e.DiagnosticCategory.Error,"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:o(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:o(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:o(2574,e.DiagnosticCategory.Error,"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:o(2575,e.DiagnosticCategory.Error,"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:o(2576,e.DiagnosticCategory.Error,"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:o(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:o(2578,e.DiagnosticCategory.Error,"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:o(2580,e.DiagnosticCategory.Error,"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:o(2581,e.DiagnosticCategory.Error,"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:o(2582,e.DiagnosticCategory.Error,"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:o(2583,e.DiagnosticCategory.Error,"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:o(2584,e.DiagnosticCategory.Error,"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:o(2585,e.DiagnosticCategory.Error,"_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:o(2588,e.DiagnosticCategory.Error,"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:o(2589,e.DiagnosticCategory.Error,"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:o(2590,e.DiagnosticCategory.Error,"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:o(2591,e.DiagnosticCategory.Error,"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:o(2592,e.DiagnosticCategory.Error,"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:o(2593,e.DiagnosticCategory.Error,"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:o(2594,e.DiagnosticCategory.Error,"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:o(2595,e.DiagnosticCategory.Error,"_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:o(2596,e.DiagnosticCategory.Error,"_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:o(2597,e.DiagnosticCategory.Error,"_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:o(2598,e.DiagnosticCategory.Error,"_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:o(2602,e.DiagnosticCategory.Error,"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:o(2603,e.DiagnosticCategory.Error,"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:o(2604,e.DiagnosticCategory.Error,"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:o(2606,e.DiagnosticCategory.Error,"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:o(2607,e.DiagnosticCategory.Error,"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:o(2608,e.DiagnosticCategory.Error,"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:o(2609,e.DiagnosticCategory.Error,"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:o(2610,e.DiagnosticCategory.Error,"_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:o(2611,e.DiagnosticCategory.Error,"_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:o(2612,e.DiagnosticCategory.Error,"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:o(2613,e.DiagnosticCategory.Error,"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:o(2614,e.DiagnosticCategory.Error,"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:o(2615,e.DiagnosticCategory.Error,"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:o(2616,e.DiagnosticCategory.Error,"_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:o(2617,e.DiagnosticCategory.Error,"_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:o(2618,e.DiagnosticCategory.Error,"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:o(2619,e.DiagnosticCategory.Error,"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:o(2620,e.DiagnosticCategory.Error,"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:o(2621,e.DiagnosticCategory.Error,"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:o(2623,e.DiagnosticCategory.Error,"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:o(2624,e.DiagnosticCategory.Error,"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:o(2625,e.DiagnosticCategory.Error,"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:o(2626,e.DiagnosticCategory.Error,"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:o(2627,e.DiagnosticCategory.Error,"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:o(2628,e.DiagnosticCategory.Error,"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:o(2629,e.DiagnosticCategory.Error,"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:o(2630,e.DiagnosticCategory.Error,"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:o(2631,e.DiagnosticCategory.Error,"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:o(2632,e.DiagnosticCategory.Error,"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:o(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:o(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:o(2635,e.DiagnosticCategory.Error,"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:o(2636,e.DiagnosticCategory.Error,"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:o(2637,e.DiagnosticCategory.Error,"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:o(2638,e.DiagnosticCategory.Error,"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."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:o(2649,e.DiagnosticCategory.Error,"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:o(2651,e.DiagnosticCategory.Error,"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:o(2652,e.DiagnosticCategory.Error,"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:o(2653,e.DiagnosticCategory.Error,"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:o(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:o(2658,e.DiagnosticCategory.Error,"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:o(2659,e.DiagnosticCategory.Error,"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:o(2660,e.DiagnosticCategory.Error,"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:o(2661,e.DiagnosticCategory.Error,"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:o(2662,e.DiagnosticCategory.Error,"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:o(2663,e.DiagnosticCategory.Error,"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:o(2664,e.DiagnosticCategory.Error,"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:o(2665,e.DiagnosticCategory.Error,"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:o(2666,e.DiagnosticCategory.Error,"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:o(2667,e.DiagnosticCategory.Error,"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:o(2668,e.DiagnosticCategory.Error,"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:o(2669,e.DiagnosticCategory.Error,"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:o(2670,e.DiagnosticCategory.Error,"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:o(2671,e.DiagnosticCategory.Error,"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:o(2672,e.DiagnosticCategory.Error,"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:o(2673,e.DiagnosticCategory.Error,"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:o(2674,e.DiagnosticCategory.Error,"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:o(2675,e.DiagnosticCategory.Error,"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:o(2676,e.DiagnosticCategory.Error,"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:o(2677,e.DiagnosticCategory.Error,"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:o(2678,e.DiagnosticCategory.Error,"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:o(2679,e.DiagnosticCategory.Error,"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:o(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:o(2681,e.DiagnosticCategory.Error,"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:o(2683,e.DiagnosticCategory.Error,"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:o(2684,e.DiagnosticCategory.Error,"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:o(2685,e.DiagnosticCategory.Error,"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:o(2686,e.DiagnosticCategory.Error,"_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:o(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:o(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:o(2689,e.DiagnosticCategory.Error,"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:o(2690,e.DiagnosticCategory.Error,"_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}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:o(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:o(2692,e.DiagnosticCategory.Error,"_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:o(2693,e.DiagnosticCategory.Error,"_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:o(2694,e.DiagnosticCategory.Error,"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:o(2695,e.DiagnosticCategory.Error,"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:o(2696,e.DiagnosticCategory.Error,"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:o(2697,e.DiagnosticCategory.Error,"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:o(2698,e.DiagnosticCategory.Error,"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:o(2699,e.DiagnosticCategory.Error,"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:o(2700,e.DiagnosticCategory.Error,"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:o(2701,e.DiagnosticCategory.Error,"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:o(2702,e.DiagnosticCategory.Error,"_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:o(2703,e.DiagnosticCategory.Error,"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:o(2704,e.DiagnosticCategory.Error,"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:o(2705,e.DiagnosticCategory.Error,"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:o(2706,e.DiagnosticCategory.Error,"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:o(2707,e.DiagnosticCategory.Error,"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:o(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:o(2709,e.DiagnosticCategory.Error,"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:o(2710,e.DiagnosticCategory.Error,"_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:o(2711,e.DiagnosticCategory.Error,"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:o(2712,e.DiagnosticCategory.Error,"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:o(2713,e.DiagnosticCategory.Error,"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:o(2714,e.DiagnosticCategory.Error,"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:o(2715,e.DiagnosticCategory.Error,"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:o(2716,e.DiagnosticCategory.Error,"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:o(2717,e.DiagnosticCategory.Error,"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:o(2718,e.DiagnosticCategory.Error,"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:o(2719,e.DiagnosticCategory.Error,"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:o(2720,e.DiagnosticCategory.Error,"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:o(2721,e.DiagnosticCategory.Error,"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:o(2722,e.DiagnosticCategory.Error,"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:o(2723,e.DiagnosticCategory.Error,"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:o(2724,e.DiagnosticCategory.Error,"_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:o(2725,e.DiagnosticCategory.Error,"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:o(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:o(2727,e.DiagnosticCategory.Error,"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:o(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:o(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:o(2730,e.DiagnosticCategory.Error,"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:o(2731,e.DiagnosticCategory.Error,"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:o(2732,e.DiagnosticCategory.Error,"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:o(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:o(2734,e.DiagnosticCategory.Error,"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:o(2735,e.DiagnosticCategory.Error,"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:o(2736,e.DiagnosticCategory.Error,"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:o(2737,e.DiagnosticCategory.Error,"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:o(2738,e.DiagnosticCategory.Message,"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:o(2739,e.DiagnosticCategory.Error,"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:o(2740,e.DiagnosticCategory.Error,"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:o(2741,e.DiagnosticCategory.Error,"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:o(2742,e.DiagnosticCategory.Error,"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:o(2743,e.DiagnosticCategory.Error,"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:o(2744,e.DiagnosticCategory.Error,"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:o(2745,e.DiagnosticCategory.Error,"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:o(2746,e.DiagnosticCategory.Error,"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:o(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:o(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:o(2749,e.DiagnosticCategory.Error,"_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:o(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:o(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:o(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:o(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:o(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:o(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:o(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:o(2757,e.DiagnosticCategory.Error,"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:o(2758,e.DiagnosticCategory.Error,"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:o(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:o(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:o(2761,e.DiagnosticCategory.Error,"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:o(2762,e.DiagnosticCategory.Error,"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:o(2763,e.DiagnosticCategory.Error,"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:o(2764,e.DiagnosticCategory.Error,"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:o(2765,e.DiagnosticCategory.Error,"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:o(2766,e.DiagnosticCategory.Error,"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:o(2767,e.DiagnosticCategory.Error,"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:o(2768,e.DiagnosticCategory.Error,"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:o(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:o(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:o(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:o(2772,e.DiagnosticCategory.Error,"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:o(2773,e.DiagnosticCategory.Error,"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:o(2774,e.DiagnosticCategory.Error,"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:o(2775,e.DiagnosticCategory.Error,"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:o(2776,e.DiagnosticCategory.Error,"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:o(2777,e.DiagnosticCategory.Error,"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:o(2778,e.DiagnosticCategory.Error,"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:o(2779,e.DiagnosticCategory.Error,"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:o(2780,e.DiagnosticCategory.Error,"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:o(2781,e.DiagnosticCategory.Error,"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:o(2782,e.DiagnosticCategory.Message,"_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:o(2783,e.DiagnosticCategory.Error,"_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:o(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:o(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:o(2786,e.DiagnosticCategory.Error,"_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:o(2787,e.DiagnosticCategory.Error,"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:o(2788,e.DiagnosticCategory.Error,"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:o(2789,e.DiagnosticCategory.Error,"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:o(2790,e.DiagnosticCategory.Error,"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:o(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:o(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', 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:o(2793,e.DiagnosticCategory.Error,"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:o(2794,e.DiagnosticCategory.Error,"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:o(2795,e.DiagnosticCategory.Error,"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:o(2796,e.DiagnosticCategory.Error,"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:o(2797,e.DiagnosticCategory.Error,"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:o(2798,e.DiagnosticCategory.Error,"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:o(2799,e.DiagnosticCategory.Error,"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:o(2800,e.DiagnosticCategory.Error,"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:o(2801,e.DiagnosticCategory.Error,"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:o(2802,e.DiagnosticCategory.Error,"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:o(2803,e.DiagnosticCategory.Error,"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:o(2804,e.DiagnosticCategory.Error,"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:o(2806,e.DiagnosticCategory.Error,"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:o(2807,e.DiagnosticCategory.Error,"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:o(2808,e.DiagnosticCategory.Error,"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_the_whole_assignment_in_parentheses:o(2809,e.DiagnosticCategory.Error,"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 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:o(2810,e.DiagnosticCategory.Error,"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:o(2811,e.DiagnosticCategory.Error,"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:o(2812,e.DiagnosticCategory.Error,"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:o(2813,e.DiagnosticCategory.Error,"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:o(2814,e.DiagnosticCategory.Error,"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:o(2815,e.DiagnosticCategory.Error,"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:o(2816,e.DiagnosticCategory.Error,"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:o(2817,e.DiagnosticCategory.Error,"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:o(2818,e.DiagnosticCategory.Error,"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:o(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:o(2820,e.DiagnosticCategory.Error,"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_or_nodenext:o(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:o(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:o(2833,e.DiagnosticCategory.Error,"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:o(2834,e.DiagnosticCategory.Error,"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:o(2835,e.DiagnosticCategory.Error,"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_transpile_to_commonjs_require_calls:o(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:o(2837,e.DiagnosticCategory.Error,"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:o(2838,e.DiagnosticCategory.Error,"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:o(2839,e.DiagnosticCategory.Error,"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_an_interface_can_only_extend_named_types_and_classes:o(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:o(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:o(2842,e.DiagnosticCategory.Error,"_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:o(2843,e.DiagnosticCategory.Error,"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:o(2844,e.DiagnosticCategory.Error,"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:o(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:o(4e3,e.DiagnosticCategory.Error,"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:o(4002,e.DiagnosticCategory.Error,"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:o(4004,e.DiagnosticCategory.Error,"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:o(4006,e.DiagnosticCategory.Error,"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:o(4008,e.DiagnosticCategory.Error,"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:o(4010,e.DiagnosticCategory.Error,"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:o(4012,e.DiagnosticCategory.Error,"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:o(4014,e.DiagnosticCategory.Error,"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:o(4016,e.DiagnosticCategory.Error,"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:o(4019,e.DiagnosticCategory.Error,"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:o(4020,e.DiagnosticCategory.Error,"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:o(4021,e.DiagnosticCategory.Error,"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:o(4022,e.DiagnosticCategory.Error,"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:o(4023,e.DiagnosticCategory.Error,"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:o(4024,e.DiagnosticCategory.Error,"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:o(4025,e.DiagnosticCategory.Error,"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:o(4026,e.DiagnosticCategory.Error,"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:o(4027,e.DiagnosticCategory.Error,"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:o(4028,e.DiagnosticCategory.Error,"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:o(4029,e.DiagnosticCategory.Error,"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:o(4030,e.DiagnosticCategory.Error,"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:o(4031,e.DiagnosticCategory.Error,"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:o(4032,e.DiagnosticCategory.Error,"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:o(4033,e.DiagnosticCategory.Error,"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:o(4034,e.DiagnosticCategory.Error,"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:o(4035,e.DiagnosticCategory.Error,"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:o(4036,e.DiagnosticCategory.Error,"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:o(4037,e.DiagnosticCategory.Error,"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:o(4038,e.DiagnosticCategory.Error,"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:o(4039,e.DiagnosticCategory.Error,"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:o(4040,e.DiagnosticCategory.Error,"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:o(4041,e.DiagnosticCategory.Error,"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:o(4042,e.DiagnosticCategory.Error,"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:o(4043,e.DiagnosticCategory.Error,"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:o(4044,e.DiagnosticCategory.Error,"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:o(4045,e.DiagnosticCategory.Error,"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:o(4046,e.DiagnosticCategory.Error,"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:o(4047,e.DiagnosticCategory.Error,"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:o(4048,e.DiagnosticCategory.Error,"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:o(4049,e.DiagnosticCategory.Error,"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:o(4050,e.DiagnosticCategory.Error,"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:o(4051,e.DiagnosticCategory.Error,"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:o(4052,e.DiagnosticCategory.Error,"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:o(4053,e.DiagnosticCategory.Error,"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:o(4054,e.DiagnosticCategory.Error,"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:o(4055,e.DiagnosticCategory.Error,"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:o(4056,e.DiagnosticCategory.Error,"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:o(4057,e.DiagnosticCategory.Error,"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:o(4058,e.DiagnosticCategory.Error,"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:o(4059,e.DiagnosticCategory.Error,"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:o(4060,e.DiagnosticCategory.Error,"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:o(4061,e.DiagnosticCategory.Error,"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:o(4062,e.DiagnosticCategory.Error,"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:o(4063,e.DiagnosticCategory.Error,"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:o(4064,e.DiagnosticCategory.Error,"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:o(4065,e.DiagnosticCategory.Error,"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:o(4066,e.DiagnosticCategory.Error,"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:o(4067,e.DiagnosticCategory.Error,"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:o(4068,e.DiagnosticCategory.Error,"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:o(4069,e.DiagnosticCategory.Error,"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:o(4070,e.DiagnosticCategory.Error,"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:o(4071,e.DiagnosticCategory.Error,"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:o(4072,e.DiagnosticCategory.Error,"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:o(4073,e.DiagnosticCategory.Error,"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:o(4074,e.DiagnosticCategory.Error,"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:o(4075,e.DiagnosticCategory.Error,"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:o(4076,e.DiagnosticCategory.Error,"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:o(4077,e.DiagnosticCategory.Error,"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:o(4078,e.DiagnosticCategory.Error,"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:o(4081,e.DiagnosticCategory.Error,"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:o(4082,e.DiagnosticCategory.Error,"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:o(4083,e.DiagnosticCategory.Error,"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:o(4084,e.DiagnosticCategory.Error,"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}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:o(4090,e.DiagnosticCategory.Error,"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:o(4091,e.DiagnosticCategory.Error,"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:o(4092,e.DiagnosticCategory.Error,"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:o(4094,e.DiagnosticCategory.Error,"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:o(4095,e.DiagnosticCategory.Error,"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:o(4096,e.DiagnosticCategory.Error,"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:o(4097,e.DiagnosticCategory.Error,"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:o(4098,e.DiagnosticCategory.Error,"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:o(4099,e.DiagnosticCategory.Error,"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:o(4100,e.DiagnosticCategory.Error,"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:o(4101,e.DiagnosticCategory.Error,"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:o(4102,e.DiagnosticCategory.Error,"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:o(4103,e.DiagnosticCategory.Error,"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:o(4104,e.DiagnosticCategory.Error,"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:o(4105,e.DiagnosticCategory.Error,"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:o(4106,e.DiagnosticCategory.Error,"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:o(4107,e.DiagnosticCategory.Error,"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:o(4108,e.DiagnosticCategory.Error,"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:o(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:o(4110,e.DiagnosticCategory.Error,"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:o(4111,e.DiagnosticCategory.Error,"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:o(4112,e.DiagnosticCategory.Error,"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:o(4113,e.DiagnosticCategory.Error,"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:o(4114,e.DiagnosticCategory.Error,"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:o(4115,e.DiagnosticCategory.Error,"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:o(4116,e.DiagnosticCategory.Error,"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:o(4117,e.DiagnosticCategory.Error,"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:o(4118,e.DiagnosticCategory.Error,"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:o(4119,e.DiagnosticCategory.Error,"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:o(4120,e.DiagnosticCategory.Error,"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:o(4121,e.DiagnosticCategory.Error,"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:o(4122,e.DiagnosticCategory.Error,"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:o(4123,e.DiagnosticCategory.Error,"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:o(4124,e.DiagnosticCategory.Error,"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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:o(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:o(5001,e.DiagnosticCategory.Error,"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:o(5009,e.DiagnosticCategory.Error,"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:o(5010,e.DiagnosticCategory.Error,"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:o(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:o(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:o(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:o(5024,e.DiagnosticCategory.Error,"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:o(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:o(5033,e.DiagnosticCategory.Error,"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:o(5042,e.DiagnosticCategory.Error,"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:o(5047,e.DiagnosticCategory.Error,"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:o(5048,e.DiagnosticCategory.Error,"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:o(5051,e.DiagnosticCategory.Error,"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:o(5052,e.DiagnosticCategory.Error,"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:o(5053,e.DiagnosticCategory.Error,"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:o(5054,e.DiagnosticCategory.Error,"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:o(5055,e.DiagnosticCategory.Error,"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:o(5056,e.DiagnosticCategory.Error,"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:o(5057,e.DiagnosticCategory.Error,"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:o(5058,e.DiagnosticCategory.Error,"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:o(5059,e.DiagnosticCategory.Error,"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:o(5061,e.DiagnosticCategory.Error,"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:o(5062,e.DiagnosticCategory.Error,"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:o(5063,e.DiagnosticCategory.Error,"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:o(5064,e.DiagnosticCategory.Error,"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:o(5065,e.DiagnosticCategory.Error,"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:o(5066,e.DiagnosticCategory.Error,"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:o(5067,e.DiagnosticCategory.Error,"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:o(5068,e.DiagnosticCategory.Error,"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:o(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:o(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:o(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:o(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:o(5073,e.DiagnosticCategory.Error,"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:o(5074,e.DiagnosticCategory.Error,"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:o(5075,e.DiagnosticCategory.Error,"_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:o(5076,e.DiagnosticCategory.Error,"_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:o(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:o(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:o(5079,e.DiagnosticCategory.Error,"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:o(5080,e.DiagnosticCategory.Error,"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:o(5081,e.DiagnosticCategory.Error,"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:o(5082,e.DiagnosticCategory.Error,"_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:o(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:o(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:o(5085,e.DiagnosticCategory.Error,"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:o(5086,e.DiagnosticCategory.Error,"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:o(5087,e.DiagnosticCategory.Error,"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:o(5088,e.DiagnosticCategory.Error,"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:o(5089,e.DiagnosticCategory.Error,"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:o(5090,e.DiagnosticCategory.Error,"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_isolatedModules_is_enabled:o(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:o(5092,e.DiagnosticCategory.Error,"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:o(5093,e.DiagnosticCategory.Error,"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:o(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:o(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:o(6e3,e.DiagnosticCategory.Message,"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:o(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:o(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:o(6004,e.DiagnosticCategory.Message,"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:o(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:o(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:o(6007,e.DiagnosticCategory.Message,"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:o(6008,e.DiagnosticCategory.Message,"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:o(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:o(6010,e.DiagnosticCategory.Message,"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:o(6011,e.DiagnosticCategory.Message,"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:o(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:o(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:o(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:o(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:o(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:o(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:o(6019,e.DiagnosticCategory.Message,"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:o(6020,e.DiagnosticCategory.Message,"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:o(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:o(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:o(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:o(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:o(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:o(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:o(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:o(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:o(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:o(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:o(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:o(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:o(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:o(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:o(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:o(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:o(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:o(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:o(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:o(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:o(6046,e.DiagnosticCategory.Error,"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:o(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:o(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:o(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:o(6052,e.DiagnosticCategory.Message,"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:o(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:o(6054,e.DiagnosticCategory.Error,"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:o(6055,e.DiagnosticCategory.Message,"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:o(6056,e.DiagnosticCategory.Message,"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:o(6058,e.DiagnosticCategory.Message,"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:o(6059,e.DiagnosticCategory.Error,"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:o(6060,e.DiagnosticCategory.Message,"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:o(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:o(6064,e.DiagnosticCategory.Error,"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:o(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:o(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:o(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:o(6070,e.DiagnosticCategory.Message,"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:o(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:o(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:o(6073,e.DiagnosticCategory.Message,"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:o(6074,e.DiagnosticCategory.Message,"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:o(6075,e.DiagnosticCategory.Message,"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:o(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:o(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:o(6078,e.DiagnosticCategory.Message,"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:o(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:o(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:o(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:o(6082,e.DiagnosticCategory.Error,"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:o(6083,e.DiagnosticCategory.Message,"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:o(6084,e.DiagnosticCategory.Message,"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:o(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:o(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:o(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:o(6088,e.DiagnosticCategory.Message,"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:o(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:o(6090,e.DiagnosticCategory.Message,"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:o(6091,e.DiagnosticCategory.Message,"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:o(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:o(6093,e.DiagnosticCategory.Message,"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:o(6094,e.DiagnosticCategory.Message,"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_type_1:o(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:o(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:o(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:o(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:o(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:o(6100,e.DiagnosticCategory.Message,"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:o(6101,e.DiagnosticCategory.Message,"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:o(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:o(6104,e.DiagnosticCategory.Message,"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:o(6105,e.DiagnosticCategory.Message,"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:o(6106,e.DiagnosticCategory.Message,"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:o(6107,e.DiagnosticCategory.Message,"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:o(6108,e.DiagnosticCategory.Message,"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:o(6109,e.DiagnosticCategory.Message,"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:o(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:o(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:o(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:o(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:o(6114,e.DiagnosticCategory.Error,"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:o(6115,e.DiagnosticCategory.Message,"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:o(6116,e.DiagnosticCategory.Message,"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:o(6119,e.DiagnosticCategory.Message,"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:o(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:o(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:o(6122,e.DiagnosticCategory.Message,"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:o(6123,e.DiagnosticCategory.Message,"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:o(6124,e.DiagnosticCategory.Message,"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:o(6125,e.DiagnosticCategory.Message,"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:o(6126,e.DiagnosticCategory.Message,"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:o(6127,e.DiagnosticCategory.Message,"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:o(6128,e.DiagnosticCategory.Message,"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:o(6130,e.DiagnosticCategory.Message,"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:o(6131,e.DiagnosticCategory.Error,"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:o(6132,e.DiagnosticCategory.Message,"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:o(6133,e.DiagnosticCategory.Error,"_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:o(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:o(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:o(6136,e.DiagnosticCategory.Message,"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:o(6137,e.DiagnosticCategory.Error,"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:o(6138,e.DiagnosticCategory.Error,"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:o(6139,e.DiagnosticCategory.Message,"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:o(6140,e.DiagnosticCategory.Error,"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:o(6141,e.DiagnosticCategory.Message,"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:o(6142,e.DiagnosticCategory.Error,"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:o(6144,e.DiagnosticCategory.Message,"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:o(6145,e.DiagnosticCategory.Message,"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:o(6146,e.DiagnosticCategory.Message,"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:o(6147,e.DiagnosticCategory.Message,"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:o(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:o(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:o(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:o(6151,e.DiagnosticCategory.Message,"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:o(6152,e.DiagnosticCategory.Message,"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:o(6153,e.DiagnosticCategory.Message,"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:o(6154,e.DiagnosticCategory.Message,"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:o(6155,e.DiagnosticCategory.Message,"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:o(6156,e.DiagnosticCategory.Message,"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:o(6157,e.DiagnosticCategory.Message,"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:o(6158,e.DiagnosticCategory.Message,"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:o(6159,e.DiagnosticCategory.Message,"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:o(6160,e.DiagnosticCategory.Message,"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:o(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:o(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:o(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:o(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:o(6166,e.DiagnosticCategory.Message,"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:o(6167,e.DiagnosticCategory.Message,"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:o(6168,e.DiagnosticCategory.Message,"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:o(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:o(6170,e.DiagnosticCategory.Message,"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:o(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:o(6179,e.DiagnosticCategory.Message,"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:o(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:o(6182,e.DiagnosticCategory.Message,"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:o(6183,e.DiagnosticCategory.Message,"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:o(6184,e.DiagnosticCategory.Message,"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:o(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:o(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:o(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:o(6189,e.DiagnosticCategory.Error,"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:o(6191,e.DiagnosticCategory.Message,"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:o(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:o(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:o(6194,e.DiagnosticCategory.Message,"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:o(6195,e.DiagnosticCategory.Message,"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:o(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:o(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:o(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:o(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:o(6200,e.DiagnosticCategory.Error,"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:o(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:o(6202,e.DiagnosticCategory.Error,"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:o(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:o(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:o(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:o(6206,e.DiagnosticCategory.Message,"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:o(6207,e.DiagnosticCategory.Message,"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:o(6208,e.DiagnosticCategory.Message,"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:o(6209,e.DiagnosticCategory.Message,"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:o(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:o(6211,e.DiagnosticCategory.Message,"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:o(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:o(6213,e.DiagnosticCategory.Message,"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:o(6214,e.DiagnosticCategory.Message,"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:o(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:o(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:o(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:o(6218,e.DiagnosticCategory.Message,"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:o(6219,e.DiagnosticCategory.Message,"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:o(6220,e.DiagnosticCategory.Message,"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:o(6221,e.DiagnosticCategory.Message,"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:o(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:o(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:o(6224,e.DiagnosticCategory.Message,"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:o(6225,e.DiagnosticCategory.Message,"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:o(6226,e.DiagnosticCategory.Message,"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:o(6227,e.DiagnosticCategory.Message,"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:o(6229,e.DiagnosticCategory.Error,"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:o(6230,e.DiagnosticCategory.Error,"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:o(6231,e.DiagnosticCategory.Error,"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:o(6232,e.DiagnosticCategory.Error,"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:o(6233,e.DiagnosticCategory.Error,"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:o(6234,e.DiagnosticCategory.Error,"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:o(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:o(6236,e.DiagnosticCategory.Error,"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:o(6237,e.DiagnosticCategory.Message,"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:o(6238,e.DiagnosticCategory.Error,"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:o(6239,e.DiagnosticCategory.Message,"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:o(6240,e.DiagnosticCategory.Message,"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:o(6241,e.DiagnosticCategory.Message,"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:o(6242,e.DiagnosticCategory.Message,"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:o(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:o(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:o(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:o(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:o(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:o(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:o(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:o(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:o(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:o(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:o(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:o(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:o(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:o(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:o(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:o(6258,e.DiagnosticCategory.Error,"_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_1:o(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:o(6260,e.DiagnosticCategory.Message,"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:o(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:o(6270,e.DiagnosticCategory.Message,"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:o(6271,e.DiagnosticCategory.Message,"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:o(6272,e.DiagnosticCategory.Message,"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:o(6273,e.DiagnosticCategory.Message,"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:o(6274,e.DiagnosticCategory.Message,"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:o(6275,e.DiagnosticCategory.Message,"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:o(6276,e.DiagnosticCategory.Message,"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}'."),Enable_project_compilation:o(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:o(6304,e.DiagnosticCategory.Error,"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:o(6305,e.DiagnosticCategory.Error,"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:o(6306,e.DiagnosticCategory.Error,"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:o(6307,e.DiagnosticCategory.Error,"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:o(6308,e.DiagnosticCategory.Error,"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:o(6309,e.DiagnosticCategory.Error,"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:o(6310,e.DiagnosticCategory.Error,"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:o(6350,e.DiagnosticCategory.Message,"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:o(6351,e.DiagnosticCategory.Message,"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:o(6352,e.DiagnosticCategory.Message,"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:o(6353,e.DiagnosticCategory.Message,"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:o(6354,e.DiagnosticCategory.Message,"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:o(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:o(6356,e.DiagnosticCategory.Message,"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:o(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:o(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:o(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:o(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:o(6362,e.DiagnosticCategory.Message,"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:o(6363,e.DiagnosticCategory.Message,"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:o(6364,e.DiagnosticCategory.Message,"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:o(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:o(6367,e.DiagnosticCategory.Message,"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:o(6369,e.DiagnosticCategory.Error,"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:o(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:o(6371,e.DiagnosticCategory.Message,"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:o(6372,e.DiagnosticCategory.Message,"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:o(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:o(6374,e.DiagnosticCategory.Message,"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:o(6375,e.DiagnosticCategory.Message,"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:o(6376,e.DiagnosticCategory.Message,"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:o(6377,e.DiagnosticCategory.Error,"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:o(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:o(6380,e.DiagnosticCategory.Message,"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:o(6381,e.DiagnosticCategory.Message,"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:o(6382,e.DiagnosticCategory.Message,"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:o(6383,e.DiagnosticCategory.Message,"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:o(6384,e.DiagnosticCategory.Message,"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:o(6385,e.DiagnosticCategory.Suggestion,"_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:o(6386,e.DiagnosticCategory.Message,"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:o(6387,e.DiagnosticCategory.Suggestion,"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:o(6388,e.DiagnosticCategory.Message,"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:o(6389,e.DiagnosticCategory.Message,"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:o(6390,e.DiagnosticCategory.Message,"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:o(6391,e.DiagnosticCategory.Message,"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:o(6392,e.DiagnosticCategory.Message,"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:o(6393,e.DiagnosticCategory.Message,"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:o(6394,e.DiagnosticCategory.Message,"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:o(6395,e.DiagnosticCategory.Message,"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:o(6396,e.DiagnosticCategory.Message,"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:o(6397,e.DiagnosticCategory.Message,"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:o(6398,e.DiagnosticCategory.Message,"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:o(6399,e.DiagnosticCategory.Message,"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:o(6400,e.DiagnosticCategory.Message,"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:o(6401,e.DiagnosticCategory.Message,"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:o(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:o(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:o(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:o(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:o(6500,e.DiagnosticCategory.Message,"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:o(6501,e.DiagnosticCategory.Message,"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:o(6502,e.DiagnosticCategory.Message,"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:o(6503,e.DiagnosticCategory.Message,"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:o(6504,e.DiagnosticCategory.Error,"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:o(6505,e.DiagnosticCategory.Message,"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:o(6506,e.DiagnosticCategory.Message,"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:o(6600,e.DiagnosticCategory.Message,"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:o(6601,e.DiagnosticCategory.Message,"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:o(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:o(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:o(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:o(6605,e.DiagnosticCategory.Message,"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:o(6606,e.DiagnosticCategory.Message,"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:o(6607,e.DiagnosticCategory.Message,"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:o(6608,e.DiagnosticCategory.Message,"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:o(6609,e.DiagnosticCategory.Message,"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:o(6611,e.DiagnosticCategory.Message,"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:o(6612,e.DiagnosticCategory.Message,"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:o(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:o(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:o(6615,e.DiagnosticCategory.Message,"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:o(6616,e.DiagnosticCategory.Message,"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:o(6617,e.DiagnosticCategory.Message,"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:o(6618,e.DiagnosticCategory.Message,"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:o(6619,e.DiagnosticCategory.Message,"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:o(6620,e.DiagnosticCategory.Message,"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:o(6621,e.DiagnosticCategory.Message,"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:o(6622,e.DiagnosticCategory.Message,"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:o(6623,e.DiagnosticCategory.Message,"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:o(6624,e.DiagnosticCategory.Message,"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:o(6625,e.DiagnosticCategory.Message,"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:o(6626,e.DiagnosticCategory.Message,"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:o(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:o(6628,e.DiagnosticCategory.Message,"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:o(6629,e.DiagnosticCategory.Message,"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_TC39_stage_2_draft_decorators:o(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:o(6631,e.DiagnosticCategory.Message,"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:o(6632,e.DiagnosticCategory.Message,"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:o(6633,e.DiagnosticCategory.Message,"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:o(6634,e.DiagnosticCategory.Message,"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:o(6635,e.DiagnosticCategory.Message,"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:o(6636,e.DiagnosticCategory.Message,"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:o(6637,e.DiagnosticCategory.Message,"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:o(6638,e.DiagnosticCategory.Message,"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:o(6639,e.DiagnosticCategory.Message,"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:o(6641,e.DiagnosticCategory.Message,"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:o(6642,e.DiagnosticCategory.Message,"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:o(6643,e.DiagnosticCategory.Message,"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:o(6644,e.DiagnosticCategory.Message,"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:o(6645,e.DiagnosticCategory.Message,"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:o(6646,e.DiagnosticCategory.Message,"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:o(6647,e.DiagnosticCategory.Message,"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:o(6648,e.DiagnosticCategory.Message,"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:o(6649,e.DiagnosticCategory.Message,"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:o(6650,e.DiagnosticCategory.Message,"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:o(6651,e.DiagnosticCategory.Message,"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:o(6652,e.DiagnosticCategory.Message,"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:o(6653,e.DiagnosticCategory.Message,"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:o(6654,e.DiagnosticCategory.Message,"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:o(6655,e.DiagnosticCategory.Message,"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:o(6656,e.DiagnosticCategory.Message,"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:o(6657,e.DiagnosticCategory.Message,"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:o(6658,e.DiagnosticCategory.Message,"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:o(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:o(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:o(6661,e.DiagnosticCategory.Message,"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:o(6662,e.DiagnosticCategory.Message,"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:o(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:o(6664,e.DiagnosticCategory.Message,"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:o(6665,e.DiagnosticCategory.Message,"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:o(6666,e.DiagnosticCategory.Message,"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:o(6667,e.DiagnosticCategory.Message,"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:o(6668,e.DiagnosticCategory.Message,"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:o(6669,e.DiagnosticCategory.Message,"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:o(6670,e.DiagnosticCategory.Message,"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:o(6671,e.DiagnosticCategory.Message,"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:o(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:o(6673,e.DiagnosticCategory.Message,"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:o(6674,e.DiagnosticCategory.Message,"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:o(6675,e.DiagnosticCategory.Message,"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:o(6676,e.DiagnosticCategory.Message,"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:o(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:o(6678,e.DiagnosticCategory.Message,"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:o(6679,e.DiagnosticCategory.Message,"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:o(6680,e.DiagnosticCategory.Message,"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:o(6681,e.DiagnosticCategory.Message,"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:o(6682,e.DiagnosticCategory.Message,"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:o(6683,e.DiagnosticCategory.Message,"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:o(6684,e.DiagnosticCategory.Message,"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:o(6685,e.DiagnosticCategory.Message,"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:o(6686,e.DiagnosticCategory.Message,"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:o(6687,e.DiagnosticCategory.Message,"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:o(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:o(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:o(6690,e.DiagnosticCategory.Message,"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:o(6691,e.DiagnosticCategory.Message,"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:o(6692,e.DiagnosticCategory.Message,"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:o(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:o(6694,e.DiagnosticCategory.Message,"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:o(6695,e.DiagnosticCategory.Message,"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:o(6697,e.DiagnosticCategory.Message,"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:o(6698,e.DiagnosticCategory.Message,"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:o(6699,e.DiagnosticCategory.Message,"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:o(6700,e.DiagnosticCategory.Message,"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:o(6701,e.DiagnosticCategory.Message,"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:o(6702,e.DiagnosticCategory.Message,"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:o(6703,e.DiagnosticCategory.Message,"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:o(6704,e.DiagnosticCategory.Message,"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:o(6705,e.DiagnosticCategory.Message,"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:o(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:o(6707,e.DiagnosticCategory.Message,"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:o(6709,e.DiagnosticCategory.Message,"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:o(6710,e.DiagnosticCategory.Message,"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:o(6711,e.DiagnosticCategory.Message,"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:o(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:o(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:o(6714,e.DiagnosticCategory.Message,"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:o(6715,e.DiagnosticCategory.Message,"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:o(6717,e.DiagnosticCategory.Message,"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:o(6718,e.DiagnosticCategory.Message,"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:o(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:o(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:o(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:o(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:o(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:o(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:o(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:o(6906,e.DiagnosticCategory.Message,"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:o(6907,e.DiagnosticCategory.Message,"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:o(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:o(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:o(69010,e.DiagnosticCategory.Message,"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:o(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:o(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:o(6913,e.DiagnosticCategory.Message,"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:o(6914,e.DiagnosticCategory.Message,"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:o(6915,e.DiagnosticCategory.Message,"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:o(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:o(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:o(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:o(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:o(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:o(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:o(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:o(6923,e.DiagnosticCategory.Message,"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:o(6924,e.DiagnosticCategory.Message,"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:o(6925,e.DiagnosticCategory.Message,"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:o(6926,e.DiagnosticCategory.Message,"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:o(6927,e.DiagnosticCategory.Message,"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:o(6928,e.DiagnosticCategory.Message,"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:o(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:o(6930,e.DiagnosticCategory.Message,"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:o(6931,e.DiagnosticCategory.Error,"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:o(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:o(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:o(7008,e.DiagnosticCategory.Error,"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:o(7009,e.DiagnosticCategory.Error,"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:o(7010,e.DiagnosticCategory.Error,"_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:o(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:o(7013,e.DiagnosticCategory.Error,"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:o(7014,e.DiagnosticCategory.Error,"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:o(7015,e.DiagnosticCategory.Error,"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:o(7016,e.DiagnosticCategory.Error,"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:o(7017,e.DiagnosticCategory.Error,"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:o(7018,e.DiagnosticCategory.Error,"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:o(7019,e.DiagnosticCategory.Error,"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:o(7020,e.DiagnosticCategory.Error,"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:o(7022,e.DiagnosticCategory.Error,"_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:o(7023,e.DiagnosticCategory.Error,"_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:o(7024,e.DiagnosticCategory.Error,"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:o(7025,e.DiagnosticCategory.Error,"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:o(7026,e.DiagnosticCategory.Error,"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:o(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:o(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:o(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:o(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:o(7031,e.DiagnosticCategory.Error,"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:o(7032,e.DiagnosticCategory.Error,"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:o(7033,e.DiagnosticCategory.Error,"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:o(7034,e.DiagnosticCategory.Error,"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:o(7035,e.DiagnosticCategory.Error,"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:o(7036,e.DiagnosticCategory.Error,"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:o(7037,e.DiagnosticCategory.Message,"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:o(7038,e.DiagnosticCategory.Message,"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:o(7039,e.DiagnosticCategory.Error,"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:o(7040,e.DiagnosticCategory.Error,"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:o(7041,e.DiagnosticCategory.Error,"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:o(7042,e.DiagnosticCategory.Error,"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:o(7043,e.DiagnosticCategory.Suggestion,"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:o(7044,e.DiagnosticCategory.Suggestion,"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:o(7045,e.DiagnosticCategory.Suggestion,"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:o(7046,e.DiagnosticCategory.Suggestion,"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:o(7047,e.DiagnosticCategory.Suggestion,"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:o(7048,e.DiagnosticCategory.Suggestion,"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:o(7049,e.DiagnosticCategory.Suggestion,"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:o(7050,e.DiagnosticCategory.Suggestion,"_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:o(7051,e.DiagnosticCategory.Error,"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:o(7052,e.DiagnosticCategory.Error,"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:o(7053,e.DiagnosticCategory.Error,"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:o(7054,e.DiagnosticCategory.Error,"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:o(7055,e.DiagnosticCategory.Error,"_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:o(7056,e.DiagnosticCategory.Error,"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:o(7057,e.DiagnosticCategory.Error,"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:o(7058,e.DiagnosticCategory.Error,"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:o(7059,e.DiagnosticCategory.Error,"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:o(7060,e.DiagnosticCategory.Error,"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:o(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:o(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:o(8001,e.DiagnosticCategory.Error,"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:o(8002,e.DiagnosticCategory.Error,"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:o(8003,e.DiagnosticCategory.Error,"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:o(8004,e.DiagnosticCategory.Error,"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:o(8005,e.DiagnosticCategory.Error,"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:o(8006,e.DiagnosticCategory.Error,"_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:o(8008,e.DiagnosticCategory.Error,"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:o(8009,e.DiagnosticCategory.Error,"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:o(8010,e.DiagnosticCategory.Error,"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:o(8011,e.DiagnosticCategory.Error,"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:o(8012,e.DiagnosticCategory.Error,"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:o(8013,e.DiagnosticCategory.Error,"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:o(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:o(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:o(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:o(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:o(8020,e.DiagnosticCategory.Error,"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:o(8021,e.DiagnosticCategory.Error,"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:o(8022,e.DiagnosticCategory.Error,"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:o(8023,e.DiagnosticCategory.Error,"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:o(8024,e.DiagnosticCategory.Error,"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:o(8025,e.DiagnosticCategory.Error,"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:o(8026,e.DiagnosticCategory.Error,"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:o(8027,e.DiagnosticCategory.Error,"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:o(8028,e.DiagnosticCategory.Error,"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:o(8029,e.DiagnosticCategory.Error,"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:o(8030,e.DiagnosticCategory.Error,"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:o(8031,e.DiagnosticCategory.Error,"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:o(8032,e.DiagnosticCategory.Error,"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:o(8033,e.DiagnosticCategory.Error,"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:o(8034,e.DiagnosticCategory.Error,"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:o(8035,e.DiagnosticCategory.Error,"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:o(8036,e.DiagnosticCategory.Error,"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:o(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:o(9005,e.DiagnosticCategory.Error,"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:o(9006,e.DiagnosticCategory.Error,"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:o(17e3,e.DiagnosticCategory.Error,"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:o(17001,e.DiagnosticCategory.Error,"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:o(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:o(17004,e.DiagnosticCategory.Error,"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:o(17005,e.DiagnosticCategory.Error,"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:o(17006,e.DiagnosticCategory.Error,"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:o(17007,e.DiagnosticCategory.Error,"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:o(17008,e.DiagnosticCategory.Error,"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:o(17009,e.DiagnosticCategory.Error,"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:o(17010,e.DiagnosticCategory.Error,"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:o(17011,e.DiagnosticCategory.Error,"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:o(17012,e.DiagnosticCategory.Error,"_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:o(17013,e.DiagnosticCategory.Error,"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:o(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:o(17015,e.DiagnosticCategory.Error,"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:o(17016,e.DiagnosticCategory.Error,"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:o(17017,e.DiagnosticCategory.Error,"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:o(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:o(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:o(18002,e.DiagnosticCategory.Error,"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:o(18003,e.DiagnosticCategory.Error,"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:o(80001,e.DiagnosticCategory.Suggestion,"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:o(80002,e.DiagnosticCategory.Suggestion,"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:o(80003,e.DiagnosticCategory.Suggestion,"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:o(80004,e.DiagnosticCategory.Suggestion,"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:o(80005,e.DiagnosticCategory.Suggestion,"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:o(80006,e.DiagnosticCategory.Suggestion,"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:o(80007,e.DiagnosticCategory.Suggestion,"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:o(80008,e.DiagnosticCategory.Suggestion,"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."),Add_missing_super_call:o(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:o(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:o(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:o(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:o(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:o(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:o(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:o(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:o(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:o(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:o(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:o(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:o(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:o(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:o(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:o(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:o(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:o(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:o(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:o(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:o(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:o(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:o(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:o(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:o(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:o(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:o(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:o(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:o(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:o(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:o(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:o(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:o(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:o(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:o(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:o(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:o(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:o(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:o(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:o(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:o(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:o(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:o(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:o(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:o(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:o(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:o(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:o(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:o(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:o(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:o(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:o(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:o(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:o(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:o(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:o(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:o(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:o(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:o(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:o(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:o(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:o(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:o(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:o(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:o(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:o(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:o(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:o(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:o(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:o(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:o(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:o(95030,e.DiagnosticCategory.Message,"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:o(95031,e.DiagnosticCategory.Message,"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:o(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:o(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:o(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:o(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:o(95036,e.DiagnosticCategory.Message,"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:o(95037,e.DiagnosticCategory.Message,"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:o(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:o(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:o(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:o(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:o(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:o(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:o(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:o(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:o(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:o(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:o(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:o(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:o(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:o(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:o(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:o(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:o(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:o(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:o(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:o(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:o(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:o(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:o(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:o(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:o(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:o(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:o(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:o(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:o(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:o(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:o(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:o(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:o(95070,e.DiagnosticCategory.Message,"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:o(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:o(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:o(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:o(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:o(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:o(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:o(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:o(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:o(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:o(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:o(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:o(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:o(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:o(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:o(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:o(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:o(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:o(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:o(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:o(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:o(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:o(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:o(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:o(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:o(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:o(95097,e.DiagnosticCategory.Message,"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:o(95098,e.DiagnosticCategory.Message,"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:o(95099,e.DiagnosticCategory.Message,"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:o(95100,e.DiagnosticCategory.Message,"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:o(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:o(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:o(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:o(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:o(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:o(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:o(95109,e.DiagnosticCategory.Message,"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:o(95110,e.DiagnosticCategory.Message,"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:o(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:o(95112,e.DiagnosticCategory.Message,"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:o(95113,e.DiagnosticCategory.Message,"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:o(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:o(95115,e.DiagnosticCategory.Message,"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:o(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:o(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:o(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:o(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:o(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:o(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:o(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:o(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:o(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:o(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:o(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:o(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:o(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:o(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:o(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:o(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:o(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:o(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:o(95134,e.DiagnosticCategory.Message,"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:o(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:o(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:o(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:o(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:o(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:o(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:o(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:o(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:o(95143,e.DiagnosticCategory.Message,"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:o(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:o(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:o(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:o(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:o(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:o(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:o(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:o(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:o(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:o(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:o(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:o(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:o(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:o(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:o(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:o(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:o(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:o(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:o(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:o(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:o(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:o(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:o(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:o(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:o(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:o(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:o(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:o(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:o(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:o(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:o(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:o(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:o(18004,e.DiagnosticCategory.Error,"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:o(18006,e.DiagnosticCategory.Error,"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:o(18007,e.DiagnosticCategory.Error,"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:o(18009,e.DiagnosticCategory.Error,"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:o(18010,e.DiagnosticCategory.Error,"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:o(18011,e.DiagnosticCategory.Error,"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:o(18012,e.DiagnosticCategory.Error,"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:o(18013,e.DiagnosticCategory.Error,"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:o(18014,e.DiagnosticCategory.Error,"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:o(18015,e.DiagnosticCategory.Error,"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:o(18016,e.DiagnosticCategory.Error,"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:o(18017,e.DiagnosticCategory.Error,"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:o(18018,e.DiagnosticCategory.Error,"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:o(18019,e.DiagnosticCategory.Error,"_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:o(18024,e.DiagnosticCategory.Error,"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:o(18026,e.DiagnosticCategory.Error,"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:o(18027,e.DiagnosticCategory.Error,"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:o(18028,e.DiagnosticCategory.Error,"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:o(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:o(18030,e.DiagnosticCategory.Error,"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:o(18031,e.DiagnosticCategory.Error,"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:o(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:o(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:o(18034,e.DiagnosticCategory.Message,"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:o(18035,e.DiagnosticCategory.Error,"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:o(18036,e.DiagnosticCategory.Error,"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:o(18037,e.DiagnosticCategory.Error,"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:o(18038,e.DiagnosticCategory.Error,"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:o(18039,e.DiagnosticCategory.Error,"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:o(18041,e.DiagnosticCategory.Error,"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:o(18042,e.DiagnosticCategory.Error,"_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:o(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:o(18044,e.DiagnosticCategory.Message,"_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:o(18045,e.DiagnosticCategory.Error,"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:o(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:o(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:o(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:o(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:o(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here.")}})(fr||(fr={}));var fr;(function(e){var o;function ne(d){return d>=79}e.tokenIsIdentifierOrKeyword=ne;function K(d){return d===31||ne(d)}e.tokenIsIdentifierOrKeywordOrGreaterThan=K,e.textToKeywordObj=(o={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85},o["constructor"]=135,o.debugger=87,o.declare=136,o.default=88,o.delete=89,o.do=90,o.else=91,o.enum=92,o.export=93,o.extends=94,o.false=95,o.finally=96,o.for=97,o.from=158,o.function=98,o.get=137,o.if=99,o.implements=117,o.import=100,o.in=101,o.infer=138,o.instanceof=102,o.interface=118,o.intrinsic=139,o.is=140,o.keyof=141,o.let=119,o.module=142,o.namespace=143,o.never=144,o.new=103,o.null=104,o.number=148,o.object=149,o.package=120,o.private=121,o.protected=122,o.public=123,o.override=161,o.out=145,o.readonly=146,o.require=147,o.global=159,o.return=105,o.satisfies=150,o.set=151,o.static=124,o.string=152,o.super=106,o.switch=107,o.symbol=153,o.this=108,o.throw=109,o.true=110,o.try=111,o.type=154,o.typeof=112,o.undefined=155,o.unique=156,o.unknown=157,o.var=113,o.void=114,o.while=115,o.with=116,o.yield=125,o.async=132,o.await=133,o.of=162,o);var se=new e.Map(e.getEntries(e.textToKeywordObj)),O=new e.Map(e.getEntries(vi(vi({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),ie=[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],_e=[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],Q=[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],p=[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],D=[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],le=[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],de=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,te=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function oe(d,j){if(d<j[0])return!1;for(var Ce=0,Se=j.length,Re;Ce+1<Se;){if(Re=Ce+(Se-Ce)/2,Re-=Re%2,j[Re]<=d&&d<=j[Re+1])return!0;d<j[Re]?Se=Re:Ce=Re+2}return!1}function ae(d,j){return j>=2?oe(d,D):j===1?oe(d,Q):oe(d,ie)}e.isUnicodeIdentifierStart=ae;function E(d,j){return j>=2?oe(d,le):j===1?oe(d,p):oe(d,_e)}function I(d){var j=[];return d.forEach(function(Ce,Se){j[Ce]=Se}),j}var f=I(O);function m(d){return f[d]}e.tokenToString=m;function y(d){return O.get(d)}e.stringToToken=y;function S(d){for(var j=[],Ce=0,Se=0;Ce<d.length;){var Re=d.charCodeAt(Ce);switch(Ce++,Re){case 13:d.charCodeAt(Ce)===10&&Ce++;case 10:j.push(Se),Se=Ce;break;default:Re>127&&F(Re)&&(j.push(Se),Se=Ce);break}}return j.push(Se),j}e.computeLineStarts=S;function k(d,j,Ce,Se){return d.getPositionOfLineAndCharacter?d.getPositionOfLineAndCharacter(j,Ce,Se):C(me(d),j,Ce,d.text,Se)}e.getPositionOfLineAndCharacter=k;function C(d,j,Ce,Se,Re){(j<0||j>=d.length)&&(Re?j=j<0?0:j>=d.length?d.length-1:j:e.Debug.fail("Bad line number. Line: ".concat(j,", lineStarts.length: ").concat(d.length," , line map is correct? ").concat(Se!==void 0?e.arraysEqual(d,S(Se)):"unknown")));var er=d[j]+Ce;return Re?er>d[j+1]?d[j+1]:typeof Se=="string"&&er>Se.length?Se.length:er:(j<d.length-1?e.Debug.assert(er<d[j+1]):Se!==void 0&&e.Debug.assert(er<=Se.length),er)}e.computePositionOfLineAndCharacter=C;function me(d){return d.lineMap||(d.lineMap=S(d.text))}e.getLineStarts=me;function De(d,j){var Ce=X(d,j);return{line:Ce,character:j-d[Ce]}}e.computeLineAndCharacterOfPosition=De;function X(d,j,Ce){var Se=e.binarySearch(d,j,e.identity,e.compareValues,Ce);return Se<0&&(Se=~Se-1,e.Debug.assert(Se!==-1,"position cannot precede the beginning of the file")),Se}e.computeLineOfPosition=X;function M(d,j,Ce){if(j===Ce)return 0;var Se=me(d),Re=Math.min(j,Ce),er=Re===Ce,wr=er?j:Ce,mr=X(Se,Re),Ue=X(Se,wr,mr);return er?mr-Ue:Ue-mr}e.getLinesBetweenPositions=M;function H(d,j){return De(me(d),j)}e.getLineAndCharacterOfPosition=H;function V(d){return h(d)||F(d)}e.isWhiteSpaceLike=V;function h(d){return d===32||d===9||d===11||d===12||d===160||d===133||d===5760||d>=8192&&d<=8203||d===8239||d===8287||d===12288||d===65279}e.isWhiteSpaceSingleLine=h;function F(d){return d===10||d===13||d===8232||d===8233}e.isLineBreak=F;function $(d){return d>=48&&d<=57}function L(d){return $(d)||d>=65&&d<=70||d>=97&&d<=102}function P(d){return d<=1114111}function N(d){return d>=48&&d<=55}e.isOctalDigit=N;function J(d,j){var Ce=d.charCodeAt(j);switch(Ce){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 j===0;default:return Ce>127}}e.couldStartTrivia=J;function q(d,j,Ce,Se,Re){if(e.positionIsSynthesized(j))return j;for(var er=!1;;){var wr=d.charCodeAt(j);switch(wr){case 13:d.charCodeAt(j+1)===10&&j++;case 10:if(j++,Ce)return j;er=!!Re;continue;case 9:case 11:case 12:case 32:j++;continue;case 47:if(Se)break;if(d.charCodeAt(j+1)===47){for(j+=2;j<d.length&&!F(d.charCodeAt(j));)j++;er=!1;continue}if(d.charCodeAt(j+1)===42){for(j+=2;j<d.length;){if(d.charCodeAt(j)===42&&d.charCodeAt(j+1)===47){j+=2;break}j++}er=!1;continue}break;case 60:case 124:case 61:case 62:if(ye(d,j)){j=b(d,j),er=!1;continue}break;case 35:if(j===0&&T(d,j)){j=Z(d,j),er=!1;continue}break;case 42:if(er){j++,er=!1;continue}break;default:if(wr>127&&V(wr)){j++;continue}break}return j}}e.skipTrivia=q;var G="<<<<<<<".length;function ye(d,j){if(e.Debug.assert(j>=0),j===0||F(d.charCodeAt(j-1))){var Ce=d.charCodeAt(j);if(j+G<d.length){for(var Se=0;Se<G;Se++)if(d.charCodeAt(j+Se)!==Ce)return!1;return Ce===61||d.charCodeAt(j+G)===32}}return!1}function b(d,j,Ce){Ce&&Ce(e.Diagnostics.Merge_conflict_marker_encountered,j,G);var Se=d.charCodeAt(j),Re=d.length;if(Se===60||Se===62)for(;j<Re&&!F(d.charCodeAt(j));)j++;else for(e.Debug.assert(Se===124||Se===61);j<Re;){var er=d.charCodeAt(j);if((er===61||er===62)&&er!==Se&&ye(d,j))break;j++}return j}var x=/^#!.*/;function T(d,j){return e.Debug.assert(j===0),x.test(d)}e.isShebangTrivia=T;function Z(d,j){var Ce=x.exec(d)[0];return j=j+Ce.length,j}e.scanShebangTrivia=Z;function B(d,j,Ce,Se,Re,er,wr){var mr,Ue,t,qr,ln=!1,dr=Se,vr=wr;if(Ce===0){dr=!0;var kr=He(j);kr&&(Ce=kr.length)}e:for(;Ce>=0&&Ce<j.length;){var Ur=j.charCodeAt(Ce);switch(Ur){case 13:j.charCodeAt(Ce+1)===10&&Ce++;case 10:if(Ce++,Se)break e;dr=!0,ln&&(qr=!0);continue;case 9:case 11:case 12:case 32:Ce++;continue;case 47:var Cr=j.charCodeAt(Ce+1),rn=!1;if(Cr===47||Cr===42){var Br=Cr===47?2:3,pn=Ce;if(Ce+=2,Cr===47)for(;Ce<j.length;){if(F(j.charCodeAt(Ce))){rn=!0;break}Ce++}else for(;Ce<j.length;){if(j.charCodeAt(Ce)===42&&j.charCodeAt(Ce+1)===47){Ce+=2;break}Ce++}if(dr){if(ln&&(vr=Re(mr,Ue,t,qr,er,vr),!d&&vr))return vr;mr=pn,Ue=Ce,t=Br,qr=rn,ln=!0}continue}break e;default:if(Ur>127&&V(Ur)){ln&&F(Ur)&&(qr=!0),Ce++;continue}break e}}return ln&&(vr=Re(mr,Ue,t,qr,er,vr)),vr}function u(d,j,Ce,Se){return B(!1,d,j,!1,Ce,Se)}e.forEachLeadingCommentRange=u;function A(d,j,Ce,Se){return B(!1,d,j,!0,Ce,Se)}e.forEachTrailingCommentRange=A;function w(d,j,Ce,Se,Re){return B(!0,d,j,!1,Ce,Se,Re)}e.reduceEachLeadingCommentRange=w;function z(d,j,Ce,Se,Re){return B(!0,d,j,!0,Ce,Se,Re)}e.reduceEachTrailingCommentRange=z;function U(d,j,Ce,Se,Re,er){return er||(er=[]),er.push({kind:Ce,pos:d,end:j,hasTrailingNewLine:Se}),er}function ge(d,j){return w(d,j,U,void 0,void 0)}e.getLeadingCommentRanges=ge;function pe(d,j){return z(d,j,U,void 0,void 0)}e.getTrailingCommentRanges=pe;function He(d){var j=x.exec(d);if(j)return j[0]}e.getShebang=He;function Be(d,j){return d>=65&&d<=90||d>=97&&d<=122||d===36||d===95||d>127&&ae(d,j)}e.isIdentifierStart=Be;function Me(d,j,Ce){return d>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||d===36||d===95||(Ce===1?d===45||d===58:!1)||d>127&&E(d,j)}e.isIdentifierPart=Me;function Le(d,j,Ce){var Se=Xe(d,0);if(!Be(Se,j))return!1;for(var Re=Ne(Se);Re<d.length;Re+=Ne(Se))if(!Me(Se=Xe(d,Re),j,Ce))return!1;return!0}e.isIdentifierText=Le;function Ae(d,j,Ce,Se,Re,er,wr){Ce===void 0&&(Ce=0);var mr=Se,Ue,t,qr,ln,dr,vr,kr,Ur,Cr=0;Hn(mr,er,wr);var rn={getStartPos:function(){return qr},getTextPos:function(){return Ue},getToken:function(){return dr},getTokenPos:function(){return ln},getTokenText:function(){return mr.substring(ln,Ue)},getTokenValue:function(){return vr},hasUnicodeEscape:function(){return(kr&1024)!=0},hasExtendedUnicodeEscape:function(){return(kr&8)!=0},hasPrecedingLineBreak:function(){return(kr&1)!=0},hasPrecedingJSDocComment:function(){return(kr&2)!=0},isIdentifier:function(){return dr===79||dr>116},isReservedWord:function(){return dr>=81&&dr<=116},isUnterminated:function(){return(kr&4)!=0},getCommentDirectives:function(){return Ur},getNumericLiteralFlags:function(){return kr&1008},getTokenFlags:function(){return kr},reScanGreaterToken:Dr,reScanAsteriskEqualsToken:Pr,reScanSlashToken:jr,reScanTemplateToken:Sr,reScanTemplateHeadOrNoSubstitutionTemplate:Te,scanJsxIdentifier:hr,scanJsxAttributeValue:_r,reScanJsxAttributeValue:Or,reScanJsxToken:Ye,reScanLessThanToken:Qe,reScanHashToken:ue,reScanQuestionToken:Ke,reScanInvalidIdentifier:Qn,scanJsxToken:tr,scanJsDocToken:zr,scan:An,getText:qn,clearCommentDirectives:yn,setText:Hn,setScriptTarget:ti,setLanguageVariant:Hi,setOnError:Ai,setTextPos:Ni,setInJSDocType:gi,tryScan:bn,lookAhead:Wn,scanRange:Vr};return e.Debug.isDebugging&&Object.defineProperty(rn,"__debugShowCurrentPositionInText",{get:function(){var Pn=rn.getText();return Pn.slice(0,rn.getStartPos())+"\u2551"+Pn.slice(rn.getStartPos())}}),rn;function Br(Pn,Pe,Ir){if(Pe===void 0&&(Pe=Ue),Re){var we=Ue;Ue=Pe,Re(Pn,Ir||0),Ue=we}}function pn(){for(var Pn=Ue,Pe=!1,Ir=!1,we="";;){var hn=mr.charCodeAt(Ue);if(hn===95){kr|=512,Pe?(Pe=!1,Ir=!0,we+=mr.substring(Pn,Ue)):Br(Ir?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Ue,1),Ue++,Pn=Ue;continue}if($(hn)){Pe=!0,Ir=!1,Ue++;continue}break}return mr.charCodeAt(Ue-1)===95&&Br(e.Diagnostics.Numeric_separators_are_not_allowed_here,Ue-1,1),we+mr.substring(Pn,Ue)}function ve(){var Pn=Ue,Pe=pn(),Ir,we;mr.charCodeAt(Ue)===46&&(Ue++,Ir=pn());var hn=Ue;if(mr.charCodeAt(Ue)===69||mr.charCodeAt(Ue)===101){Ue++,kr|=16,(mr.charCodeAt(Ue)===43||mr.charCodeAt(Ue)===45)&&Ue++;var jn=Ue,gn=pn();gn?(we=mr.substring(hn,jn)+gn,hn=Ue):Br(e.Diagnostics.Digit_expected)}var nn;if(kr&512?(nn=Pe,Ir&&(nn+="."+Ir),we&&(nn+=we)):nn=mr.substring(Pn,hn),Ir!==void 0||kr&16)return or(Pn,Ir===void 0&&!!(kr&16)),{type:8,value:""+ +nn};vr=nn;var Cn=xn();return or(Pn),{type:Cn,value:vr}}function or(Pn,Pe){if(!!Be(Xe(mr,Ue),d)){var Ir=Ue,we=We().length;we===1&&mr[Ir]==="n"?Br(Pe?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Pn,Ir-Pn+1):(Br(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Ir,we),Ue=Ir)}}function Ee(){for(var Pn=Ue;N(mr.charCodeAt(Ue));)Ue++;return+mr.substring(Pn,Ue)}function ze(Pn,Pe){var Ir=xe(Pn,!1,Pe);return Ir?parseInt(Ir,16):-1}function Ar(Pn,Pe){return xe(Pn,!0,Pe)}function xe(Pn,Pe,Ir){for(var we=[],hn=!1,jn=!1;we.length<Pn||Pe;){var gn=mr.charCodeAt(Ue);if(Ir&&gn===95){kr|=512,hn?(hn=!1,jn=!0):Br(jn?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Ue,1),Ue++;continue}if(hn=Ir,gn>=65&&gn<=70)gn+=97-65;else if(!(gn>=48&&gn<=57||gn>=97&&gn<=102))break;we.push(gn),Ue++,jn=!1}return we.length<Pn&&(we=[]),mr.charCodeAt(Ue-1)===95&&Br(e.Diagnostics.Numeric_separators_are_not_allowed_here,Ue-1,1),String.fromCharCode.apply(String,we)}function cr(Pn){Pn===void 0&&(Pn=!1);var Pe=mr.charCodeAt(Ue);Ue++;for(var Ir="",we=Ue;;){if(Ue>=t){Ir+=mr.substring(we,Ue),kr|=4,Br(e.Diagnostics.Unterminated_string_literal);break}var hn=mr.charCodeAt(Ue);if(hn===Pe){Ir+=mr.substring(we,Ue),Ue++;break}if(hn===92&&!Pn){Ir+=mr.substring(we,Ue),Ir+=Rr(),we=Ue;continue}if(F(hn)&&!Pn){Ir+=mr.substring(we,Ue),kr|=4,Br(e.Diagnostics.Unterminated_string_literal);break}Ue++}return Ir}function Mr(Pn){var Pe=mr.charCodeAt(Ue)===96;Ue++;for(var Ir=Ue,we="",hn;;){if(Ue>=t){we+=mr.substring(Ir,Ue),kr|=4,Br(e.Diagnostics.Unterminated_template_literal),hn=Pe?14:17;break}var jn=mr.charCodeAt(Ue);if(jn===96){we+=mr.substring(Ir,Ue),Ue++,hn=Pe?14:17;break}if(jn===36&&Ue+1<t&&mr.charCodeAt(Ue+1)===123){we+=mr.substring(Ir,Ue),Ue+=2,hn=Pe?15:16;break}if(jn===92){we+=mr.substring(Ir,Ue),we+=Rr(Pn),Ir=Ue;continue}if(jn===13){we+=mr.substring(Ir,Ue),Ue++,Ue<t&&mr.charCodeAt(Ue)===10&&Ue++,we+=`
  28. `,Ir=Ue;continue}Ue++}return e.Debug.assert(hn!==void 0),vr=we,hn}function Rr(Pn){var Pe=Ue;if(Ue++,Ue>=t)return Br(e.Diagnostics.Unexpected_end_of_text),"";var Ir=mr.charCodeAt(Ue);switch(Ue++,Ir){case 48:return Pn&&Ue<t&&$(mr.charCodeAt(Ue))?(Ue++,kr|=2048,mr.substring(Pe,Ue)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
  29. `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Pn){for(var we=Ue;we<Ue+4;we++)if(we<t&&!L(mr.charCodeAt(we))&&mr.charCodeAt(we)!==123)return Ue=we,kr|=2048,mr.substring(Pe,Ue)}if(Ue<t&&mr.charCodeAt(Ue)===123){if(Ue++,Pn&&!L(mr.charCodeAt(Ue)))return kr|=2048,mr.substring(Pe,Ue);if(Pn){var hn=Ue,jn=Ar(1,!1),gn=jn?parseInt(jn,16):-1;if(!P(gn)||mr.charCodeAt(Ue)!==125)return kr|=2048,mr.substring(Pe,Ue);Ue=hn}return kr|=8,en()}return kr|=1024,Qr(4);case 120:if(Pn)if(L(mr.charCodeAt(Ue))){if(!L(mr.charCodeAt(Ue+1)))return Ue++,kr|=2048,mr.substring(Pe,Ue)}else return kr|=2048,mr.substring(Pe,Ue);return Qr(2);case 13:Ue<t&&mr.charCodeAt(Ue)===10&&Ue++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Ir)}}function Qr(Pn){var Pe=ze(Pn,!1);return Pe>=0?String.fromCharCode(Pe):(Br(e.Diagnostics.Hexadecimal_digit_expected),"")}function en(){var Pn=Ar(1,!1),Pe=Pn?parseInt(Pn,16):-1,Ir=!1;return Pe<0?(Br(e.Diagnostics.Hexadecimal_digit_expected),Ir=!0):Pe>1114111&&(Br(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Ir=!0),Ue>=t?(Br(e.Diagnostics.Unexpected_end_of_text),Ir=!0):mr.charCodeAt(Ue)===125?Ue++:(Br(e.Diagnostics.Unterminated_Unicode_escape_sequence),Ir=!0),Ir?"":Y(Pe)}function vn(){if(Ue+5<t&&mr.charCodeAt(Ue+1)===117){var Pn=Ue;Ue+=2;var Pe=ze(4,!1);return Ue=Pn,Pe}return-1}function Ie(){if(Xe(mr,Ue+1)===117&&Xe(mr,Ue+2)===123){var Pn=Ue;Ue+=3;var Pe=Ar(1,!1),Ir=Pe?parseInt(Pe,16):-1;return Ue=Pn,Ir}return-1}function We(){for(var Pn="",Pe=Ue;Ue<t;){var Ir=Xe(mr,Ue);if(Me(Ir,d))Ue+=Ne(Ir);else if(Ir===92){if(Ir=Ie(),Ir>=0&&Me(Ir,d)){Ue+=3,kr|=8,Pn+=en(),Pe=Ue;continue}if(Ir=vn(),!(Ir>=0&&Me(Ir,d)))break;kr|=1024,Pn+=mr.substring(Pe,Ue),Pn+=Y(Ir),Ue+=6,Pe=Ue}else break}return Pn+=mr.substring(Pe,Ue),Pn}function xr(){var Pn=vr.length;if(Pn>=2&&Pn<=12){var Pe=vr.charCodeAt(0);if(Pe>=97&&Pe<=122){var Ir=se.get(vr);if(Ir!==void 0)return dr=Ir}}return dr=79}function Lr(Pn){for(var Pe="",Ir=!1,we=!1;;){var hn=mr.charCodeAt(Ue);if(hn===95){kr|=512,Ir?(Ir=!1,we=!0):Br(we?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Ue,1),Ue++;continue}if(Ir=!0,!$(hn)||hn-48>=Pn)break;Pe+=mr[Ue],Ue++,we=!1}return mr.charCodeAt(Ue-1)===95&&Br(e.Diagnostics.Numeric_separators_are_not_allowed_here,Ue-1,1),Pe}function xn(){if(mr.charCodeAt(Ue)===110)return vr+="n",kr&384&&(vr=e.parsePseudoBigInt(vr)+"n"),Ue++,9;var Pn=kr&128?parseInt(vr.slice(2),2):kr&256?parseInt(vr.slice(2),8):+vr;return vr=""+Pn,8}function An(){var Pn;qr=Ue,kr=0;for(var Pe=!1;;){if(ln=Ue,Ue>=t)return dr=1;var Ir=Xe(mr,Ue);if(Ir===35&&Ue===0&&T(mr,Ue)){if(Ue=Z(mr,Ue),j)continue;return dr=6}switch(Ir){case 10:case 13:if(kr|=1,j){Ue++;continue}else return Ir===13&&Ue+1<t&&mr.charCodeAt(Ue+1)===10?Ue+=2:Ue++,dr=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(j){Ue++;continue}else{for(;Ue<t&&h(mr.charCodeAt(Ue));)Ue++;return dr=5}case 33:return mr.charCodeAt(Ue+1)===61?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=37):(Ue+=2,dr=35):(Ue++,dr=53);case 34:case 39:return vr=cr(),dr=10;case 96:return dr=Mr(!1);case 37:return mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=69):(Ue++,dr=44);case 38:return mr.charCodeAt(Ue+1)===38?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=76):(Ue+=2,dr=55):mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=73):(Ue++,dr=50);case 40:return Ue++,dr=20;case 41:return Ue++,dr=21;case 42:if(mr.charCodeAt(Ue+1)===61)return Ue+=2,dr=66;if(mr.charCodeAt(Ue+1)===42)return mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=67):(Ue+=2,dr=42);if(Ue++,Cr&&!Pe&&kr&1){Pe=!0;continue}return dr=41;case 43:return mr.charCodeAt(Ue+1)===43?(Ue+=2,dr=45):mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=64):(Ue++,dr=39);case 44:return Ue++,dr=27;case 45:return mr.charCodeAt(Ue+1)===45?(Ue+=2,dr=46):mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=65):(Ue++,dr=40);case 46:return $(mr.charCodeAt(Ue+1))?(vr=ve().value,dr=8):mr.charCodeAt(Ue+1)===46&&mr.charCodeAt(Ue+2)===46?(Ue+=3,dr=25):(Ue++,dr=24);case 47:if(mr.charCodeAt(Ue+1)===47){for(Ue+=2;Ue<t&&!F(mr.charCodeAt(Ue));)Ue++;if(Ur=on(Ur,mr.slice(ln,Ue),de,ln),j)continue;return dr=2}if(mr.charCodeAt(Ue+1)===42){Ue+=2,mr.charCodeAt(Ue)===42&&mr.charCodeAt(Ue+1)!==47&&(kr|=2);for(var we=!1,hn=ln;Ue<t;){var jn=mr.charCodeAt(Ue);if(jn===42&&mr.charCodeAt(Ue+1)===47){Ue+=2,we=!0;break}Ue++,F(jn)&&(hn=Ue,kr|=1)}if(Ur=on(Ur,mr.slice(hn,Ue),te,hn),we||Br(e.Diagnostics.Asterisk_Slash_expected),j)continue;return we||(kr|=4),dr=3}return mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=68):(Ue++,dr=43);case 48:if(Ue+2<t&&(mr.charCodeAt(Ue+1)===88||mr.charCodeAt(Ue+1)===120))return Ue+=2,vr=Ar(1,!0),vr||(Br(e.Diagnostics.Hexadecimal_digit_expected),vr="0"),vr="0x"+vr,kr|=64,dr=xn();if(Ue+2<t&&(mr.charCodeAt(Ue+1)===66||mr.charCodeAt(Ue+1)===98))return Ue+=2,vr=Lr(2),vr||(Br(e.Diagnostics.Binary_digit_expected),vr="0"),vr="0b"+vr,kr|=128,dr=xn();if(Ue+2<t&&(mr.charCodeAt(Ue+1)===79||mr.charCodeAt(Ue+1)===111))return Ue+=2,vr=Lr(8),vr||(Br(e.Diagnostics.Octal_digit_expected),vr="0"),vr="0o"+vr,kr|=256,dr=xn();if(Ue+1<t&&N(mr.charCodeAt(Ue+1)))return vr=""+Ee(),kr|=32,dr=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Pn=ve(),dr=Pn.type,vr=Pn.value,dr;case 58:return Ue++,dr=58;case 59:return Ue++,dr=26;case 60:if(ye(mr,Ue)){if(Ue=b(mr,Ue,Br),j)continue;return dr=7}return mr.charCodeAt(Ue+1)===60?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=70):(Ue+=2,dr=47):mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=32):Ce===1&&mr.charCodeAt(Ue+1)===47&&mr.charCodeAt(Ue+2)!==42?(Ue+=2,dr=30):(Ue++,dr=29);case 61:if(ye(mr,Ue)){if(Ue=b(mr,Ue,Br),j)continue;return dr=7}return mr.charCodeAt(Ue+1)===61?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=36):(Ue+=2,dr=34):mr.charCodeAt(Ue+1)===62?(Ue+=2,dr=38):(Ue++,dr=63);case 62:if(ye(mr,Ue)){if(Ue=b(mr,Ue,Br),j)continue;return dr=7}return Ue++,dr=31;case 63:return mr.charCodeAt(Ue+1)===46&&!$(mr.charCodeAt(Ue+2))?(Ue+=2,dr=28):mr.charCodeAt(Ue+1)===63?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=77):(Ue+=2,dr=60):(Ue++,dr=57);case 91:return Ue++,dr=22;case 93:return Ue++,dr=23;case 94:return mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=78):(Ue++,dr=52);case 123:return Ue++,dr=18;case 124:if(ye(mr,Ue)){if(Ue=b(mr,Ue,Br),j)continue;return dr=7}return mr.charCodeAt(Ue+1)===124?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=75):(Ue+=2,dr=56):mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=74):(Ue++,dr=51);case 125:return Ue++,dr=19;case 126:return Ue++,dr=54;case 64:return Ue++,dr=59;case 92:var gn=Ie();if(gn>=0&&Be(gn,d))return Ue+=3,kr|=8,vr=en()+We(),dr=xr();var nn=vn();return nn>=0&&Be(nn,d)?(Ue+=6,kr|=1024,vr=String.fromCharCode(nn)+We(),dr=xr()):(Br(e.Diagnostics.Invalid_character),Ue++,dr=0);case 35:if(Ue!==0&&mr[Ue+1]==="!")return Br(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),Ue++,dr=0;var Cn=Xe(mr,Ue+1);if(Cn===92){Ue++;var Dn=Ie();if(Dn>=0&&Be(Dn,d))return Ue+=3,kr|=8,vr="#"+en()+We(),dr=80;var On=vn();if(On>=0&&Be(On,d))return Ue+=6,kr|=1024,vr="#"+String.fromCharCode(On)+We(),dr=80;Ue--}return Be(Cn,d)?(Ue++,ai(Cn,d)):(vr="#",Br(e.Diagnostics.Invalid_character,Ue++,Ne(Ir))),dr=80;default:var Xn=ai(Ir,d);if(Xn)return dr=Xn;if(h(Ir)){Ue+=Ne(Ir);continue}else if(F(Ir)){kr|=1,Ue+=Ne(Ir);continue}var Ge=Ne(Ir);return Br(e.Diagnostics.Invalid_character,Ue,Ge),Ue+=Ge,dr=0}}}function Qn(){e.Debug.assert(dr===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),Ue=ln=qr,kr=0;var Pn=Xe(mr,Ue),Pe=ai(Pn,99);return Pe?dr=Pe:(Ue+=Ne(Pn),dr)}function ai(Pn,Pe){var Ir=Pn;if(Be(Ir,Pe)){for(Ue+=Ne(Ir);Ue<t&&Me(Ir=Xe(mr,Ue),Pe);)Ue+=Ne(Ir);return vr=mr.substring(ln,Ue),Ir===92&&(vr+=We()),xr()}}function Dr(){if(dr===31){if(mr.charCodeAt(Ue)===62)return mr.charCodeAt(Ue+1)===62?mr.charCodeAt(Ue+2)===61?(Ue+=3,dr=72):(Ue+=2,dr=49):mr.charCodeAt(Ue+1)===61?(Ue+=2,dr=71):(Ue++,dr=48);if(mr.charCodeAt(Ue)===61)return Ue++,dr=33}return dr}function Pr(){return e.Debug.assert(dr===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),Ue=ln+1,dr=63}function jr(){if(dr===43||dr===68){for(var Pn=ln+1,Pe=!1,Ir=!1;;){if(Pn>=t){kr|=4,Br(e.Diagnostics.Unterminated_regular_expression_literal);break}var we=mr.charCodeAt(Pn);if(F(we)){kr|=4,Br(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Pe)Pe=!1;else if(we===47&&!Ir){Pn++;break}else we===91?Ir=!0:we===92?Pe=!0:we===93&&(Ir=!1);Pn++}for(;Pn<t&&Me(mr.charCodeAt(Pn),d);)Pn++;Ue=Pn,vr=mr.substring(ln,Ue),dr=13}return dr}function on(Pn,Pe,Ir,we){var hn=je(e.trimStringStart(Pe),Ir);return hn===void 0?Pn:e.append(Pn,{range:{pos:we,end:Ue},type:hn})}function je(Pn,Pe){var Ir=Pe.exec(Pn);if(!!Ir)switch(Ir[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Sr(Pn){return e.Debug.assert(dr===19,"'reScanTemplateToken' should only be called on a '}'"),Ue=ln,dr=Mr(Pn)}function Te(){return Ue=ln,dr=Mr(!0)}function Ye(Pn){return Pn===void 0&&(Pn=!0),Ue=ln=qr,dr=tr(Pn)}function Qe(){return dr===47?(Ue=ln+1,dr=29):dr}function ue(){return dr===80?(Ue=ln+1,dr=62):dr}function Ke(){return e.Debug.assert(dr===60,"'reScanQuestionToken' should only be called on a '??'"),Ue=ln+1,dr=57}function tr(Pn){if(Pn===void 0&&(Pn=!0),qr=ln=Ue,Ue>=t)return dr=1;var Pe=mr.charCodeAt(Ue);if(Pe===60)return mr.charCodeAt(Ue+1)===47?(Ue+=2,dr=30):(Ue++,dr=29);if(Pe===123)return Ue++,dr=18;for(var Ir=0;Ue<t&&(Pe=mr.charCodeAt(Ue),Pe!==123);){if(Pe===60){if(ye(mr,Ue))return Ue=b(mr,Ue,Br),dr=7;break}if(Pe===62&&Br(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,Ue,1),Pe===125&&Br(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,Ue,1),F(Pe)&&Ir===0)Ir=-1;else{if(!Pn&&F(Pe)&&Ir>0)break;V(Pe)||(Ir=Ue)}Ue++}return vr=mr.substring(qr,Ue),Ir===-1?12:11}function hr(){if(ne(dr)){for(var Pn=!1;Ue<t;){var Pe=mr.charCodeAt(Ue);if(Pe===45){vr+="-",Ue++;continue}else if(Pe===58&&!Pn){vr+=":",Ue++,Pn=!0,dr=79;continue}var Ir=Ue;if(vr+=We(),Ue===Ir)break}return vr.slice(-1)===":"&&(vr=vr.slice(0,-1),Ue--),xr()}return dr}function _r(){switch(qr=Ue,mr.charCodeAt(Ue)){case 34:case 39:return vr=cr(!0),dr=10;default:return An()}}function Or(){return Ue=ln=qr,_r()}function zr(){if(qr=ln=Ue,kr=0,Ue>=t)return dr=1;var Pn=Xe(mr,Ue);switch(Ue+=Ne(Pn),Pn){case 9:case 11:case 12:case 32:for(;Ue<t&&h(mr.charCodeAt(Ue));)Ue++;return dr=5;case 64:return dr=59;case 13:mr.charCodeAt(Ue)===10&&Ue++;case 10:return kr|=1,dr=4;case 42:return dr=41;case 123:return dr=18;case 125:return dr=19;case 91:return dr=22;case 93:return dr=23;case 60:return dr=29;case 62:return dr=31;case 61:return dr=63;case 44:return dr=27;case 46:return dr=24;case 96:return dr=61;case 35:return dr=62;case 92:Ue--;var Pe=Ie();if(Pe>=0&&Be(Pe,d))return Ue+=3,kr|=8,vr=en()+We(),dr=xr();var Ir=vn();return Ir>=0&&Be(Ir,d)?(Ue+=6,kr|=1024,vr=String.fromCharCode(Ir)+We(),dr=xr()):(Ue++,dr=0)}if(Be(Pn,d)){for(var we=Pn;Ue<t&&Me(we=Xe(mr,Ue),d)||mr.charCodeAt(Ue)===45;)Ue+=Ne(we);return vr=mr.substring(ln,Ue),we===92&&(vr+=We()),dr=xr()}else return dr=0}function fn(Pn,Pe){var Ir=Ue,we=qr,hn=ln,jn=dr,gn=vr,nn=kr,Cn=Pn();return(!Cn||Pe)&&(Ue=Ir,qr=we,ln=hn,dr=jn,vr=gn,kr=nn),Cn}function Vr(Pn,Pe,Ir){var we=t,hn=Ue,jn=qr,gn=ln,nn=dr,Cn=vr,Dn=kr,On=Ur;Hn(mr,Pn,Pe);var Xn=Ir();return t=we,Ue=hn,qr=jn,ln=gn,dr=nn,vr=Cn,kr=Dn,Ur=On,Xn}function Wn(Pn){return fn(Pn,!0)}function bn(Pn){return fn(Pn,!1)}function qn(){return mr}function yn(){Ur=void 0}function Hn(Pn,Pe,Ir){mr=Pn||"",t=Ir===void 0?mr.length:Pe+Ir,Ni(Pe||0)}function Ai(Pn){Re=Pn}function ti(Pn){d=Pn}function Hi(Pn){Ce=Pn}function Ni(Pn){e.Debug.assert(Pn>=0),Ue=Pn,qr=Pn,ln=Pn,dr=0,vr=void 0,kr=0}function gi(Pn){Cr+=Pn?1:-1}}e.createScanner=Ae;var Xe=String.prototype.codePointAt?function(d,j){return d.codePointAt(j)}:function(j,Ce){var Se=j.length;if(!(Ce<0||Ce>=Se)){var Re=j.charCodeAt(Ce);if(Re>=55296&&Re<=56319&&Se>Ce+1){var er=j.charCodeAt(Ce+1);if(er>=56320&&er<=57343)return(Re-55296)*1024+er-56320+65536}return Re}};function Ne(d){return d>=65536?2:1}function Oe(d){if(e.Debug.assert(0<=d&&d<=1114111),d<=65535)return String.fromCharCode(d);var j=Math.floor((d-65536)/1024)+55296,Ce=(d-65536)%1024+56320;return String.fromCharCode(j,Ce)}var be=String.fromCodePoint?function(d){return String.fromCodePoint(d)}:Oe;function Y(d){return be(d)}e.utf16EncodeAsString=Y})(fr||(fr={}));var fr;(function(e){function o(qe){return e.pathIsRelative(qe)||e.isRootedDiskPath(qe)}e.isExternalModuleNameRelative=o;function ne(qe){return e.sortAndDeduplicate(qe,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=ne;function K(qe){switch(e.getEmitScriptTarget(qe)){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"}}e.getDefaultLibFileName=K;function se(qe){return qe.start+qe.length}e.textSpanEnd=se;function O(qe){return qe.length===0}e.textSpanIsEmpty=O;function ie(qe,Tn){return Tn>=qe.start&&Tn<se(qe)}e.textSpanContainsPosition=ie;function _e(qe,Tn){return Tn>=qe.pos&&Tn<=qe.end}e.textRangeContainsPositionInclusive=_e;function Q(qe,Tn){return Tn.start>=qe.start&&se(Tn)<=se(qe)}e.textSpanContainsTextSpan=Q;function p(qe,Tn){return D(qe,Tn)!==void 0}e.textSpanOverlapsWith=p;function D(qe,Tn){var Nr=ae(qe,Tn);return Nr&&Nr.length===0?void 0:Nr}e.textSpanOverlap=D;function le(qe,Tn){return te(qe.start,qe.length,Tn.start,Tn.length)}e.textSpanIntersectsWithTextSpan=le;function de(qe,Tn,Nr){return te(qe.start,qe.length,Tn,Nr)}e.textSpanIntersectsWith=de;function te(qe,Tn,Nr,ga){var xa=qe+Tn,co=Nr+ga;return Nr<=xa&&co>=qe}e.decodedTextSpanIntersectsWith=te;function oe(qe,Tn){return Tn<=se(qe)&&Tn>=qe.start}e.textSpanIntersectsWithPosition=oe;function ae(qe,Tn){var Nr=Math.max(qe.start,Tn.start),ga=Math.min(se(qe),se(Tn));return Nr<=ga?I(Nr,ga):void 0}e.textSpanIntersection=ae;function E(qe,Tn){if(qe<0)throw new Error("start < 0");if(Tn<0)throw new Error("length < 0");return{start:qe,length:Tn}}e.createTextSpan=E;function I(qe,Tn){return E(qe,Tn-qe)}e.createTextSpanFromBounds=I;function f(qe){return E(qe.span.start,qe.newLength)}e.textChangeRangeNewSpan=f;function m(qe){return O(qe.span)&&qe.newLength===0}e.textChangeRangeIsUnchanged=m;function y(qe,Tn){if(Tn<0)throw new Error("newLength < 0");return{span:qe,newLength:Tn}}e.createTextChangeRange=y,e.unchangedTextChangeRange=y(E(0,0),0);function S(qe){if(qe.length===0)return e.unchangedTextChangeRange;if(qe.length===1)return qe[0];for(var Tn=qe[0],Nr=Tn.span.start,ga=se(Tn.span),xa=Nr+Tn.newLength,co=1;co<qe.length;co++){var gs=qe[co],gc=Nr,ws=ga,Lc=xa,qs=gs.span.start,ec=se(gs.span),Rc=qs+gs.newLength;Nr=Math.min(gc,qs),ga=Math.max(ws,ws+(ec-Lc)),xa=Math.max(Rc,Rc+(Lc-ec))}return y(I(Nr,ga),xa-Nr)}e.collapseTextChangeRangesAcrossMultipleVersions=S;function k(qe){if(qe&&qe.kind===165){for(var Tn=qe;Tn;Tn=Tn.parent)if(Ir(Tn)||On(Tn)||Tn.kind===261)return Tn}}e.getTypeParameterOwner=k;function C(qe,Tn){return e.hasSyntacticModifier(qe,16476)&&Tn.kind===173}e.isParameterPropertyDeclaration=C;function me(qe){return Zi(qe)?e.every(qe.elements,De):!1}e.isEmptyBindingPattern=me;function De(qe){return e.isOmittedExpression(qe)?!0:me(qe.name)}e.isEmptyBindingElement=De;function X(qe){for(var Tn=qe.parent;e.isBindingElement(Tn.parent);)Tn=Tn.parent.parent;return Tn.parent}e.walkUpBindingElementsAndPatterns=X;function M(qe,Tn){e.isBindingElement(qe)&&(qe=X(qe));var Nr=Tn(qe);return qe.kind===257&&(qe=qe.parent),qe&&qe.kind===258&&(Nr|=Tn(qe),qe=qe.parent),qe&&qe.kind===240&&(Nr|=Tn(qe)),Nr}function H(qe){return M(qe,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=H;function V(qe){return M(qe,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=V;function h(qe){return M(qe,function(Tn){return Tn.flags})}e.getCombinedNodeFlags=h,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function F(qe,Tn,Nr){var ga=qe.toLowerCase(),xa=/^([a-z]+)([_\-]([a-z]+))?$/.exec(ga);if(!xa){Nr&&Nr.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var co=xa[1],gs=xa[3];e.contains(e.supportedLocaleDirectories,ga)&&!gc(co,gs,Nr)&&gc(co,void 0,Nr),e.setUILocale(qe);function gc(ws,Lc,qs){var ec=e.normalizePath(Tn.getExecutingFilePath()),Rc=e.getDirectoryPath(ec),_o=e.combinePaths(Rc,ws);if(Lc&&(_o=_o+"-"+Lc),_o=Tn.resolvePath(e.combinePaths(_o,"diagnosticMessages.generated.json")),!Tn.fileExists(_o))return!1;var Gs="";try{Gs=Tn.readFile(_o)}catch(mc){return qs&&qs.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,_o)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(Gs))}catch(mc){return qs&&qs.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,_o)),!1}return!0}}e.validateLocaleAndSetLanguage=F;function $(qe,Tn){if(qe)for(;qe.original!==void 0;)qe=qe.original;return!Tn||Tn(qe)?qe:void 0}e.getOriginalNode=$;function L(qe,Tn){for(;qe;){var Nr=Tn(qe);if(Nr==="quit")return;if(Nr)return qe;qe=qe.parent}}e.findAncestor=L;function P(qe){return(qe.flags&8)==0}e.isParseTreeNode=P;function N(qe,Tn){if(qe===void 0||P(qe))return qe;for(qe=qe.original;qe;){if(P(qe))return!Tn||Tn(qe)?qe:void 0;qe=qe.original}}e.getParseTreeNode=N;function J(qe){return qe.length>=2&&qe.charCodeAt(0)===95&&qe.charCodeAt(1)===95?"_"+qe:qe}e.escapeLeadingUnderscores=J;function q(qe){var Tn=qe;return Tn.length>=3&&Tn.charCodeAt(0)===95&&Tn.charCodeAt(1)===95&&Tn.charCodeAt(2)===95?Tn.substr(1):Tn}e.unescapeLeadingUnderscores=q;function G(qe){return q(qe.escapedText)}e.idText=G;function ye(qe){return qe.valueDeclaration&&yn(qe.valueDeclaration)?G(qe.valueDeclaration.name):q(qe.escapedName)}e.symbolName=ye;function b(qe){var Tn=qe.parent.parent;if(!!Tn){if(la(Tn))return x(Tn);switch(Tn.kind){case 240:if(Tn.declarationList&&Tn.declarationList.declarations[0])return x(Tn.declarationList.declarations[0]);break;case 241:var Nr=Tn.expression;switch(Nr.kind===223&&Nr.operatorToken.kind===63&&(Nr=Nr.left),Nr.kind){case 208:return Nr.name;case 209:var ga=Nr.argumentExpression;if(e.isIdentifier(ga))return ga}break;case 214:return x(Tn.expression);case 253:{if(la(Tn.statement)||To(Tn.statement))return x(Tn.statement);break}}}}function x(qe){var Tn=A(qe);return Tn&&e.isIdentifier(Tn)?Tn:void 0}function T(qe,Tn){return!!(B(qe)&&e.isIdentifier(qe.name)&&G(qe.name)===G(Tn)||e.isVariableStatement(qe)&&e.some(qe.declarationList.declarations,function(Nr){return T(Nr,Tn)}))}e.nodeHasName=T;function Z(qe){return qe.name||b(qe)}e.getNameOfJSDocTypedef=Z;function B(qe){return!!qe.name}e.isNamedDeclaration=B;function u(qe){switch(qe.kind){case 79:return qe;case 350:case 343:{var Tn=qe.name;if(Tn.kind===163)return Tn.right;break}case 210:case 223:{var Nr=qe;switch(e.getAssignmentDeclarationKind(Nr)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(Nr.left);case 7:case 8:case 9:return Nr.arguments[1];default:return}}case 348:return Z(qe);case 342:return b(qe);case 274:{var ga=qe.expression;return e.isIdentifier(ga)?ga:void 0}case 209:var xa=qe;if(e.isBindableStaticElementAccessExpression(xa))return xa.argumentExpression}return qe.name}e.getNonAssignedNameOfDeclaration=u;function A(qe){if(qe!==void 0)return u(qe)||(e.isFunctionExpression(qe)||e.isArrowFunction(qe)||e.isClassExpression(qe)?w(qe):void 0)}e.getNameOfDeclaration=A;function w(qe){if(qe.parent){if(e.isPropertyAssignment(qe.parent)||e.isBindingElement(qe.parent))return qe.parent.name;if(e.isBinaryExpression(qe.parent)&&qe===qe.parent.right){if(e.isIdentifier(qe.parent.left))return qe.parent.left;if(e.isAccessExpression(qe.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(qe.parent.left)}else if(e.isVariableDeclaration(qe.parent)&&e.isIdentifier(qe.parent.name))return qe.parent.name}else return}e.getAssignedName=w;function z(qe){if(e.hasDecorators(qe))return e.filter(qe.modifiers,e.isDecorator)}e.getDecorators=z;function U(qe){if(e.hasSyntacticModifier(qe,126975))return e.filter(qe.modifiers,Ni)}e.getModifiers=U;function ge(qe,Tn){if(qe.name)if(e.isIdentifier(qe.name)){var Nr=qe.name.escapedText;return Cr(qe.parent,Tn).filter(function(co){return e.isJSDocParameterTag(co)&&e.isIdentifier(co.name)&&co.name.escapedText===Nr})}else{var ga=qe.parent.parameters.indexOf(qe);e.Debug.assert(ga>-1,"Parameters should always be in their parents' parameter list");var xa=Cr(qe.parent,Tn).filter(e.isJSDocParameterTag);if(ga<xa.length)return[xa[ga]]}return e.emptyArray}function pe(qe){return ge(qe,!1)}e.getJSDocParameterTags=pe;function He(qe){return ge(qe,!0)}e.getJSDocParameterTagsNoCache=He;function Be(qe,Tn){var Nr=qe.name.escapedText;return Cr(qe.parent,Tn).filter(function(ga){return e.isJSDocTemplateTag(ga)&&ga.typeParameters.some(function(xa){return xa.name.escapedText===Nr})})}function Me(qe){return Be(qe,!1)}e.getJSDocTypeParameterTags=Me;function Le(qe){return Be(qe,!0)}e.getJSDocTypeParameterTagsNoCache=Le;function Ae(qe){return!!pn(qe,e.isJSDocParameterTag)}e.hasJSDocParameterTags=Ae;function Xe(qe){return pn(qe,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=Xe;function Ne(qe){return ve(qe,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ne;function Oe(qe){return pn(qe,e.isJSDocClassTag)}e.getJSDocClassTag=Oe;function be(qe){return pn(qe,e.isJSDocPublicTag)}e.getJSDocPublicTag=be;function Y(qe){return pn(qe,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=Y;function d(qe){return pn(qe,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=d;function j(qe){return pn(qe,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=j;function Ce(qe){return pn(qe,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=Ce;function Se(qe){return pn(qe,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Se;function Re(qe){return pn(qe,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=Re;function er(qe){return pn(qe,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=er;function wr(qe){return pn(qe,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=wr;function mr(qe){return pn(qe,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=mr;function Ue(qe){return pn(qe,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=Ue;function t(qe){return pn(qe,e.isJSDocEnumTag)}e.getJSDocEnumTag=t;function qr(qe){return pn(qe,e.isJSDocThisTag)}e.getJSDocThisTag=qr;function ln(qe){return pn(qe,e.isJSDocReturnTag)}e.getJSDocReturnTag=ln;function dr(qe){return pn(qe,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=dr;function vr(qe){var Tn=pn(qe,e.isJSDocTypeTag);if(Tn&&Tn.typeExpression&&Tn.typeExpression.type)return Tn}e.getJSDocTypeTag=vr;function kr(qe){var Tn=pn(qe,e.isJSDocTypeTag);return!Tn&&e.isParameter(qe)&&(Tn=e.find(pe(qe),function(Nr){return!!Nr.typeExpression})),Tn&&Tn.typeExpression&&Tn.typeExpression.type}e.getJSDocType=kr;function Ur(qe){var Tn=ln(qe);if(Tn&&Tn.typeExpression)return Tn.typeExpression.type;var Nr=vr(qe);if(Nr&&Nr.typeExpression){var ga=Nr.typeExpression.type;if(e.isTypeLiteralNode(ga)){var xa=e.find(ga.members,e.isCallSignatureDeclaration);return xa&&xa.type}if(e.isFunctionTypeNode(ga)||e.isJSDocFunctionType(ga))return ga.type}}e.getJSDocReturnType=Ur;function Cr(qe,Tn){var Nr=qe.jsDocCache;if(Nr===void 0||Tn){var ga=e.getJSDocCommentsAndTags(qe,Tn);e.Debug.assert(ga.length<2||ga[0]!==ga[1]),Nr=e.flatMap(ga,function(xa){return e.isJSDoc(xa)?xa.tags:xa}),Tn||(qe.jsDocCache=Nr)}return Nr}function rn(qe){return Cr(qe,!1)}e.getJSDocTags=rn;function Br(qe){return Cr(qe,!0)}e.getJSDocTagsNoCache=Br;function pn(qe,Tn,Nr){return e.find(Cr(qe,Nr),Tn)}function ve(qe,Tn){return rn(qe).filter(Tn)}e.getAllJSDocTags=ve;function or(qe,Tn){return rn(qe).filter(function(Nr){return Nr.kind===Tn})}e.getAllJSDocTagsOfKind=or;function Ee(qe){return typeof qe=="string"?qe:qe==null?void 0:qe.map(function(Tn){return Tn.kind===324?Tn.text:ze(Tn)}).join("")}e.getTextOfJSDocComment=Ee;function ze(qe){var Tn=qe.kind===327?"link":qe.kind===328?"linkcode":"linkplain",Nr=qe.name?e.entityNameToString(qe.name):"",ga=qe.name&&qe.text.startsWith("://")?"":" ";return"{@".concat(Tn," ").concat(Nr).concat(ga).concat(qe.text,"}")}function Ar(qe){if(e.isJSDocSignature(qe))return e.emptyArray;if(e.isJSDocTypeAlias(qe))return e.Debug.assert(qe.parent.kind===323),e.flatMap(qe.parent.tags,function(ga){return e.isJSDocTemplateTag(ga)?ga.typeParameters:void 0});if(qe.typeParameters||e.canHaveIllegalTypeParameters(qe)&&qe.typeParameters)return qe.typeParameters;if(e.isInJSFile(qe)){var Tn=e.getJSDocTypeParameterDeclarations(qe);if(Tn.length)return Tn;var Nr=kr(qe);if(Nr&&e.isFunctionTypeNode(Nr)&&Nr.typeParameters)return Nr.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Ar;function xe(qe){return qe.constraint?qe.constraint:e.isJSDocTemplateTag(qe.parent)&&qe===qe.parent.typeParameters[0]?qe.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=xe;function cr(qe){return qe.kind===79||qe.kind===80}e.isMemberName=cr;function Mr(qe){return qe.kind===175||qe.kind===174}e.isGetOrSetAccessorDeclaration=Mr;function Rr(qe){return e.isPropertyAccessExpression(qe)&&!!(qe.flags&32)}e.isPropertyAccessChain=Rr;function Qr(qe){return e.isElementAccessExpression(qe)&&!!(qe.flags&32)}e.isElementAccessChain=Qr;function en(qe){return e.isCallExpression(qe)&&!!(qe.flags&32)}e.isCallChain=en;function vn(qe){var Tn=qe.kind;return!!(qe.flags&32)&&(Tn===208||Tn===209||Tn===210||Tn===232)}e.isOptionalChain=vn;function Ie(qe){return vn(qe)&&!e.isNonNullExpression(qe)&&!!qe.questionDotToken}e.isOptionalChainRoot=Ie;function We(qe){return Ie(qe.parent)&&qe.parent.expression===qe}e.isExpressionOfOptionalChainRoot=We;function xr(qe){return!vn(qe.parent)||Ie(qe.parent)||qe!==qe.parent.expression}e.isOutermostOptionalChain=xr;function Lr(qe){return qe.kind===223&&qe.operatorToken.kind===60}e.isNullishCoalesce=Lr;function xn(qe){return e.isTypeReferenceNode(qe)&&e.isIdentifier(qe.typeName)&&qe.typeName.escapedText==="const"&&!qe.typeArguments}e.isConstTypeReference=xn;function An(qe){return e.skipOuterExpressions(qe,8)}e.skipPartiallyEmittedExpressions=An;function Qn(qe){return e.isNonNullExpression(qe)&&!!(qe.flags&32)}e.isNonNullChain=Qn;function ai(qe){return qe.kind===249||qe.kind===248}e.isBreakOrContinueStatement=ai;function Dr(qe){return qe.kind===277||qe.kind===276}e.isNamedExportBindings=Dr;function Pr(qe){switch(qe.kind){case 305:case 306:return!0;default:return!1}}e.isUnparsedTextLike=Pr;function jr(qe){return Pr(qe)||qe.kind===303||qe.kind===307}e.isUnparsedNode=jr;function on(qe){return qe.kind===350||qe.kind===343}e.isJSDocPropertyLikeTag=on;function je(qe){return Sr(qe.kind)}e.isNode=je;function Sr(qe){return qe>=163}e.isNodeKind=Sr;function Te(qe){return qe>=0&&qe<=162}e.isTokenKind=Te;function Ye(qe){return Te(qe.kind)}e.isToken=Ye;function Qe(qe){return e.hasProperty(qe,"pos")&&e.hasProperty(qe,"end")}e.isNodeArray=Qe;function ue(qe){return 8<=qe&&qe<=14}e.isLiteralKind=ue;function Ke(qe){return ue(qe.kind)}e.isLiteralExpression=Ke;function tr(qe){switch(qe.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}e.isLiteralExpressionOfObject=tr;function hr(qe){return 14<=qe&&qe<=17}e.isTemplateLiteralKind=hr;function _r(qe){return hr(qe.kind)}e.isTemplateLiteralToken=_r;function Or(qe){var Tn=qe.kind;return Tn===16||Tn===17}e.isTemplateMiddleOrTemplateTail=Or;function zr(qe){return e.isImportSpecifier(qe)||e.isExportSpecifier(qe)}e.isImportOrExportSpecifier=zr;function fn(qe){switch(qe.kind){case 273:case 278:return qe.isTypeOnly||qe.parent.parent.isTypeOnly;case 271:return qe.parent.isTypeOnly;case 270:case 268:return qe.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=fn;function Vr(qe){return e.isStringLiteral(qe)||e.isIdentifier(qe)}e.isAssertionKey=Vr;function Wn(qe){return qe.kind===10||hr(qe.kind)}e.isStringTextContainingNode=Wn;function bn(qe){return e.isIdentifier(qe)&&(qe.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=bn;function qn(qe){return e.isPrivateIdentifier(qe)&&(qe.autoGenerateFlags&7)>0}e.isGeneratedPrivateIdentifier=qn;function yn(qe){return(e.isPropertyDeclaration(qe)||cn(qe))&&e.isPrivateIdentifier(qe.name)}e.isPrivateIdentifierClassElementDeclaration=yn;function Hn(qe){return e.isPropertyAccessExpression(qe)&&e.isPrivateIdentifier(qe.name)}e.isPrivateIdentifierPropertyAccessExpression=Hn;function Ai(qe){switch(qe){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}e.isModifierKind=Ai;function ti(qe){return!!(e.modifierToFlag(qe)&16476)}e.isParameterPropertyModifier=ti;function Hi(qe){return ti(qe)||qe===124||qe===161||qe===127}e.isClassMemberModifier=Hi;function Ni(qe){return Ai(qe.kind)}e.isModifier=Ni;function gi(qe){var Tn=qe.kind;return Tn===163||Tn===79}e.isEntityName=gi;function Pn(qe){var Tn=qe.kind;return Tn===79||Tn===80||Tn===10||Tn===8||Tn===164}e.isPropertyName=Pn;function Pe(qe){var Tn=qe.kind;return Tn===79||Tn===203||Tn===204}e.isBindingName=Pe;function Ir(qe){return!!qe&&nn(qe.kind)}e.isFunctionLike=Ir;function we(qe){return!!qe&&(nn(qe.kind)||e.isClassStaticBlockDeclaration(qe))}e.isFunctionLikeOrClassStaticBlockDeclaration=we;function hn(qe){return qe&&gn(qe.kind)}e.isFunctionLikeDeclaration=hn;function jn(qe){return qe.kind===110||qe.kind===95}e.isBooleanLiteral=jn;function gn(qe){switch(qe){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function nn(qe){switch(qe){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return gn(qe)}}e.isFunctionLikeKind=nn;function Cn(qe){return e.isSourceFile(qe)||e.isModuleBlock(qe)||e.isBlock(qe)&&Ir(qe.parent)}e.isFunctionOrModuleBlock=Cn;function Dn(qe){var Tn=qe.kind;return Tn===173||Tn===169||Tn===171||Tn===174||Tn===175||Tn===178||Tn===172||Tn===237}e.isClassElement=Dn;function On(qe){return qe&&(qe.kind===260||qe.kind===228)}e.isClassLike=On;function Xn(qe){return qe&&(qe.kind===174||qe.kind===175)}e.isAccessor=Xn;function Ge(qe){return e.isPropertyDeclaration(qe)&&e.hasAccessorModifier(qe)}e.isAutoAccessorPropertyDeclaration=Ge;function cn(qe){switch(qe.kind){case 171:case 174:case 175:return!0;default:return!1}}e.isMethodOrAccessor=cn;function Vn(qe){switch(qe.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}e.isNamedClassElement=Vn;function Ki(qe){return Ni(qe)||e.isDecorator(qe)}e.isModifierLike=Ki;function dt(qe){var Tn=qe.kind;return Tn===177||Tn===176||Tn===168||Tn===170||Tn===178||Tn===174||Tn===175}e.isTypeElement=dt;function qi(qe){return dt(qe)||Dn(qe)}e.isClassOrTypeElement=qi;function Ci(qe){var Tn=qe.kind;return Tn===299||Tn===300||Tn===301||Tn===171||Tn===174||Tn===175}e.isObjectLiteralElementLike=Ci;function Tt(qe){return e.isTypeNodeKind(qe.kind)}e.isTypeNode=Tt;function ot(qe){switch(qe.kind){case 181:case 182:return!0}return!1}e.isFunctionOrConstructorTypeNode=ot;function Zi(qe){if(qe){var Tn=qe.kind;return Tn===204||Tn===203}return!1}e.isBindingPattern=Zi;function ni(qe){var Tn=qe.kind;return Tn===206||Tn===207}e.isAssignmentPattern=ni;function Va(qe){var Tn=qe.kind;return Tn===205||Tn===229}e.isArrayBindingElement=Va;function Ua(qe){switch(qe.kind){case 257:case 166:case 205:return!0}return!1}e.isDeclarationBindingElement=Ua;function za(qe){return Co(qe)||ho(qe)}e.isBindingOrAssignmentPattern=za;function Co(qe){switch(qe.kind){case 203:case 207:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Co;function Ea(qe){switch(qe.kind){case 205:case 299:case 300:case 301:return!0}return!1}e.isObjectBindingOrAssignmentElement=Ea;function ho(qe){switch(qe.kind){case 204:case 206:return!0}return!1}e.isArrayBindingOrAssignmentPattern=ho;function Aa(qe){var Tn=qe.kind;return Tn===208||Tn===163||Tn===202}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=Aa;function Vi(qe){var Tn=qe.kind;return Tn===208||Tn===163}e.isPropertyAccessOrQualifiedName=Vi;function Xi(qe){switch(qe.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}e.isCallLikeExpression=Xi;function ao(qe){return qe.kind===210||qe.kind===211}e.isCallOrNewExpression=ao;function fo(qe){var Tn=qe.kind;return Tn===225||Tn===14}e.isTemplateLiteral=fo;function As(qe){return so(An(qe).kind)}e.isLeftHandSideExpression=As;function so(qe){switch(qe){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:return!0;default:return!1}}function Xo(qe){return Ho(An(qe).kind)}e.isUnaryExpression=Xo;function Ho(qe){switch(qe){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return so(qe)}}function Zo(qe){switch(qe.kind){case 222:return!0;case 221:return qe.operator===45||qe.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=Zo;function To(qe){return pr(An(qe).kind)}e.isExpression=To;function pr(qe){switch(qe){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 354:case 353:case 235:return!0;default:return Ho(qe)}}function Fr(qe){var Tn=qe.kind;return Tn===213||Tn===231}e.isAssertionExpression=Fr;function yi(qe){return e.isNotEmittedStatement(qe)||e.isPartiallyEmittedExpression(qe)}e.isNotEmittedOrPartiallyEmittedNode=yi;function Dt(qe,Tn){switch(qe.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return Tn&&Dt(qe.statement,Tn)}return!1}e.isIterationStatement=Dt;function Ft(qe){return e.isExportAssignment(qe)||e.isExportDeclaration(qe)}e.isScopeMarker=Ft;function Pa(qe){return e.some(qe,Ft)}e.hasScopeMarker=Pa;function Ve(qe){return!e.isAnyImportOrReExport(qe)&&!e.isExportAssignment(qe)&&!e.hasSyntacticModifier(qe,1)&&!e.isAmbientModule(qe)}e.needsScopeMarker=Ve;function tn(qe){return e.isAnyImportOrReExport(qe)||e.isExportAssignment(qe)||e.hasSyntacticModifier(qe,1)}e.isExternalModuleIndicator=tn;function Nn(qe){return qe.kind===246||qe.kind===247}e.isForInOrOfStatement=Nn;function wn(qe){return e.isBlock(qe)||To(qe)}e.isConciseBody=wn;function Je(qe){return e.isBlock(qe)}e.isFunctionBody=Je;function ur(qe){return e.isVariableDeclarationList(qe)||To(qe)}e.isForInitializer=ur;function yr(qe){var Tn=qe.kind;return Tn===265||Tn===264||Tn===79}e.isModuleBody=yr;function Jr(qe){var Tn=qe.kind;return Tn===265||Tn===264}e.isNamespaceBody=Jr;function Mn(qe){var Tn=qe.kind;return Tn===79||Tn===264}e.isJSDocNamespaceBody=Mn;function _i(qe){var Tn=qe.kind;return Tn===272||Tn===271}e.isNamedImportBindings=_i;function di(qe){return qe.kind===264||qe.kind===263}e.isModuleOrEnumDeclaration=di;function fi(qe){return qe===216||qe===205||qe===260||qe===228||qe===172||qe===173||qe===263||qe===302||qe===278||qe===259||qe===215||qe===174||qe===270||qe===268||qe===273||qe===261||qe===288||qe===171||qe===170||qe===264||qe===267||qe===271||qe===277||qe===166||qe===299||qe===169||qe===168||qe===175||qe===300||qe===262||qe===165||qe===257||qe===348||qe===341||qe===350}function Nt(qe){return qe===259||qe===279||qe===260||qe===261||qe===262||qe===263||qe===264||qe===269||qe===268||qe===275||qe===274||qe===267}function Gt(qe){return qe===249||qe===248||qe===256||qe===243||qe===241||qe===239||qe===246||qe===247||qe===245||qe===242||qe===253||qe===250||qe===252||qe===254||qe===255||qe===240||qe===244||qe===251||qe===352||qe===356||qe===355}function la(qe){return qe.kind===165?qe.parent&&qe.parent.kind!==347||e.isInJSFile(qe):fi(qe.kind)}e.isDeclaration=la;function na(qe){return Nt(qe.kind)}e.isDeclarationStatement=na;function Ia(qe){return Gt(qe.kind)}e.isStatementButNotDeclaration=Ia;function bs(qe){var Tn=qe.kind;return Gt(Tn)||Nt(Tn)||ds(qe)}e.isStatement=bs;function ds(qe){return qe.kind!==238||qe.parent!==void 0&&(qe.parent.kind===255||qe.parent.kind===295)?!1:!e.isFunctionBlock(qe)}function ps(qe){var Tn=qe.kind;return Gt(Tn)||Nt(Tn)||Tn===238}e.isStatementOrBlock=ps;function ac(qe){var Tn=qe.kind;return Tn===280||Tn===163||Tn===79}e.isModuleReference=ac;function Es(qe){var Tn=qe.kind;return Tn===108||Tn===79||Tn===208}e.isJsxTagNameExpression=Es;function ns(qe){var Tn=qe.kind;return Tn===281||Tn===291||Tn===282||Tn===11||Tn===285}e.isJsxChild=ns;function dc(qe){var Tn=qe.kind;return Tn===288||Tn===290}e.isJsxAttributeLike=dc;function $s(qe){var Tn=qe.kind;return Tn===10||Tn===291}e.isStringLiteralOrJsxExpression=$s;function pc(qe){var Tn=qe.kind;return Tn===283||Tn===282}e.isJsxOpeningLikeElement=pc;function js(qe){var Tn=qe.kind;return Tn===292||Tn===293}e.isCaseOrDefaultClause=js;function Sc(qe){return qe.kind>=312&&qe.kind<=350}e.isJSDocNode=Sc;function Ko(qe){return qe.kind===323||qe.kind===322||qe.kind===324||Ht(qe)||Mc(qe)||e.isJSDocTypeLiteral(qe)||e.isJSDocSignature(qe)}e.isJSDocCommentContainingNode=Ko;function Mc(qe){return qe.kind>=330&&qe.kind<=350}e.isJSDocTag=Mc;function Vs(qe){return qe.kind===175}e.isSetAccessor=Vs;function oc(qe){return qe.kind===174}e.isGetAccessor=oc;function Ss(qe){var Tn=qe.jsDoc;return!!Tn&&Tn.length>0}e.hasJSDocNodes=Ss;function ee(qe){return!!qe.type}e.hasType=ee;function Er(qe){return!!qe.initializer}e.hasInitializer=Er;function un(qe){switch(qe.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}e.hasOnlyExpressionInitializer=un;function $n(qe){return qe.kind===288||qe.kind===290||Ci(qe)}e.isObjectLiteralElement=$n;function Ii(qe){return qe.kind===180||qe.kind===230}e.isTypeReferenceType=Ii;var at=1073741823;function Ji(qe){for(var Tn=at,Nr=0,ga=qe;Nr<ga.length;Nr++){var xa=ga[Nr];if(!!xa.length){for(var co=0;co<xa.length&&co<Tn&&e.isWhiteSpaceLike(xa.charCodeAt(co));co++);if(co<Tn&&(Tn=co),Tn===0)return 0}}return Tn===at?void 0:Tn}e.guessIndentation=Ji;function _t(qe){return qe.kind===10||qe.kind===14}e.isStringLiteralLike=_t;function Ht(qe){return qe.kind===327||qe.kind===328||qe.kind===329}e.isJSDocLinkLike=Ht;function Rt(qe){var Tn=e.lastOrUndefined(qe.parameters);return!!Tn&&va(Tn)}e.hasRestParameter=Rt;function va(qe){var Tn=e.isJSDocParameterTag(qe)?qe.typeExpression&&qe.typeExpression.type:qe.type;return qe.dotDotDotToken!==void 0||!!Tn&&Tn.kind===321}e.isRestParameter=va})(fr||(fr={}));var fr;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function o(c,re){var lr=c.declarations;if(lr)for(var Kr=0,Gn=lr;Kr<Gn.length;Kr++){var Gi=Gn[Kr];if(Gi.kind===re)return Gi}}e.getDeclarationOfKind=o;function ne(c,re){return e.filter(c.declarations||e.emptyArray,function(lr){return lr.kind===re})}e.getDeclarationsOfKind=ne;function K(c){var re=new e.Map;if(c)for(var lr=0,Kr=c;lr<Kr.length;lr++){var Gn=Kr[lr];re.set(Gn.escapedName,Gn)}return re}e.createSymbolTable=K;function se(c){return(c.flags&33554432)!=0}e.isTransientSymbol=se;var O=ie();function ie(){var c="",re=function(lr){return c+=lr};return{getText:function(){return c},write:re,rawWrite:re,writeKeyword:re,writeOperator:re,writePunctuation:re,writeSpace:re,writeStringLiteral:re,writeLiteral:re,writeParameter:re,writeProperty:re,writeSymbol:function(lr,Kr){return re(lr)},writeTrailingSemicolon:re,writeComment:re,getTextPos:function(){return c.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!c.length&&e.isWhiteSpaceLike(c.charCodeAt(c.length-1))},writeLine:function(){return c+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return c=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function _e(c,re){return c.configFilePath!==re.configFilePath||Q(c,re)}e.changesAffectModuleResolution=_e;function Q(c,re){return D(c,re,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=Q;function p(c,re){return D(c,re,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=p;function D(c,re,lr){return c!==re&&lr.some(function(Kr){return!Vd(Et(c,Kr),Et(re,Kr))})}e.optionsHaveChanges=D;function le(c,re){for(;;){var lr=re(c);if(lr==="quit")return;if(lr!==void 0)return lr;if(e.isSourceFile(c))return;c=c.parent}}e.forEachAncestor=le;function de(c,re){for(var lr=c.entries(),Kr=lr.next();!Kr.done;Kr=lr.next()){var Gn=Kr.value,Gi=Gn[0],it=Gn[1],ct=re(it,Gi);if(ct)return ct}}e.forEachEntry=de;function te(c,re){for(var lr=c.keys(),Kr=lr.next();!Kr.done;Kr=lr.next()){var Gn=re(Kr.value);if(Gn)return Gn}}e.forEachKey=te;function oe(c,re){c.forEach(function(lr,Kr){re.set(Kr,lr)})}e.copyEntries=oe;function ae(c){var re=O.getText();try{return c(O),O.getText()}finally{O.clear(),O.writeKeyword(re)}}e.usingSingleLineStringWriter=ae;function E(c){return c.end-c.pos}e.getFullWidth=E;function I(c,re,lr){return c&&c.resolvedModules&&c.resolvedModules.get(re,lr)}e.getResolvedModule=I;function f(c,re,lr,Kr){c.resolvedModules||(c.resolvedModules=e.createModeAwareCache()),c.resolvedModules.set(re,Kr,lr)}e.setResolvedModule=f;function m(c,re,lr){c.resolvedTypeReferenceDirectiveNames||(c.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),c.resolvedTypeReferenceDirectiveNames.set(re,void 0,lr)}e.setResolvedTypeReferenceDirective=m;function y(c,re){return c.path===re.path&&!c.prepend==!re.prepend&&!c.circular==!re.circular}e.projectReferenceIsEqualTo=y;function S(c,re){return c.isExternalLibraryImport===re.isExternalLibraryImport&&c.extension===re.extension&&c.resolvedFileName===re.resolvedFileName&&c.originalPath===re.originalPath&&k(c.packageId,re.packageId)}e.moduleResolutionIsEqualTo=S;function k(c,re){return c===re||!!c&&!!re&&c.name===re.name&&c.subModuleName===re.subModuleName&&c.version===re.version}function C(c){var re=c.name,lr=c.subModuleName;return lr?"".concat(re,"/").concat(lr):re}e.packageIdToPackageName=C;function me(c){return"".concat(C(c),"@").concat(c.version)}e.packageIdToString=me;function De(c,re){return c.resolvedFileName===re.resolvedFileName&&c.primary===re.primary&&c.originalPath===re.originalPath}e.typeDirectiveIsEqualTo=De;function X(c,re,lr,Kr,Gn){e.Debug.assert(c.length===re.length);for(var Gi=0;Gi<c.length;Gi++){var it=re[Gi],ct=c[Gi],ha=e.isString(ct)?ct:ct.fileName.toLowerCase(),ta=e.isString(ct)?Kr&&e.getModeForResolutionAtIndex(Kr,Gi):e.getModeForFileReference(ct,Kr==null?void 0:Kr.impliedNodeFormat),Po=lr&&lr.get(ha,ta),es=Po?!it||!Gn(Po,it):it;if(es)return!0}return!1}e.hasChangesInResolutions=X;function M(c){return H(c),(c.flags&524288)!=0}e.containsParseError=M;function H(c){if(!(c.flags&1048576)){var re=(c.flags&131072)!=0||e.forEachChild(c,M);re&&(c.flags|=524288),c.flags|=1048576}}function V(c){for(;c&&c.kind!==308;)c=c.parent;return c}e.getSourceFileOfNode=V;function h(c){return V(c.valueDeclaration||Ur(c))}e.getSourceFileOfModule=h;function F(c,re){return!!c&&(c.scriptKind===1||c.scriptKind===2)&&!c.checkJsDirective&&re===void 0}e.isPlainJsFile=F;function $(c){switch(c.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}e.isStatementWithLocals=$;function L(c,re){return e.Debug.assert(c>=0),e.getLineStarts(re)[c]}e.getStartPositionOfLine=L;function P(c){var re=V(c),lr=e.getLineAndCharacterOfPosition(re,c.pos);return"".concat(re.fileName,"(").concat(lr.line+1,",").concat(lr.character+1,")")}e.nodePosToString=P;function N(c,re){e.Debug.assert(c>=0);var lr=e.getLineStarts(re),Kr=c,Gn=re.text;if(Kr+1===lr.length)return Gn.length-1;var Gi=lr[Kr],it=lr[Kr+1]-1;for(e.Debug.assert(e.isLineBreak(Gn.charCodeAt(it)));Gi<=it&&e.isLineBreak(Gn.charCodeAt(it));)it--;return it}e.getEndLinePosition=N;function J(c,re,lr){return!(lr&&lr(re))&&!c.identifiers.has(re)}e.isFileLevelUniqueName=J;function q(c){return c===void 0?!0:c.pos===c.end&&c.pos>=0&&c.kind!==1}e.nodeIsMissing=q;function G(c){return!q(c)}e.nodeIsPresent=G;function ye(c,re,lr){if(re===void 0||re.length===0)return c;for(var Kr=0;Kr<c.length&&lr(c[Kr]);++Kr);return c.splice.apply(c,zn([Kr,0],re,!1)),c}function b(c,re,lr){if(re===void 0)return c;for(var Kr=0;Kr<c.length&&lr(c[Kr]);++Kr);return c.splice(Kr,0,re),c}function x(c){return Wn(c)||!!(Ne(c)&1048576)}function T(c,re){return ye(c,re,Wn)}e.insertStatementsAfterStandardPrologue=T;function Z(c,re){return ye(c,re,x)}e.insertStatementsAfterCustomPrologue=Z;function B(c,re){return b(c,re,Wn)}e.insertStatementAfterStandardPrologue=B;function u(c,re){return b(c,re,x)}e.insertStatementAfterCustomPrologue=u;function A(c,re,lr){if(c.charCodeAt(re+1)===47&&re+2<lr&&c.charCodeAt(re+2)===47){var Kr=c.substring(re,lr);return!!(e.fullTripleSlashReferencePathRegEx.test(Kr)||e.fullTripleSlashAMDReferencePathRegEx.test(Kr)||Hi.test(Kr)||Ni.test(Kr))}return!1}e.isRecognizedTripleSlashComment=A;function w(c,re){return c.charCodeAt(re+1)===42&&c.charCodeAt(re+2)===33}e.isPinnedComment=w;function z(c,re){var lr=new e.Map(re.map(function(it){return["".concat(e.getLineAndCharacterOfPosition(c,it.range.end).line),it]})),Kr=new e.Map;return{getUnusedExpectations:Gn,markUsed:Gi};function Gn(){return e.arrayFrom(lr.entries()).filter(function(it){var ct=it[0],ha=it[1];return ha.type===0&&!Kr.get(ct)}).map(function(it){var ct=it[0],ha=it[1];return ha})}function Gi(it){return lr.has("".concat(it))?(Kr.set("".concat(it),!0),!0):!1}}e.createCommentDirectivesMap=z;function U(c,re,lr){return q(c)?c.pos:e.isJSDocNode(c)||c.kind===11?e.skipTrivia((re||V(c)).text,c.pos,!1,!0):lr&&e.hasJSDocNodes(c)?U(c.jsDoc[0],re):c.kind===351&&c._children.length>0?U(c._children[0],re,lr):e.skipTrivia((re||V(c)).text,c.pos,!1,!1,la(c))}e.getTokenPosOfNode=U;function ge(c,re){var lr=!q(c)&&e.canHaveModifiers(c)?e.findLast(c.modifiers,e.isDecorator):void 0;return lr?e.skipTrivia((re||V(c)).text,lr.end):U(c,re)}e.getNonDecoratorTokenPosOfNode=ge;function pe(c,re,lr){return lr===void 0&&(lr=!1),Me(c.text,re,lr)}e.getSourceTextOfNodeFromSourceFile=pe;function He(c){return!!e.findAncestor(c,e.isJSDocTypeExpression)}function Be(c){return!!(e.isExportDeclaration(c)&&c.exportClause&&e.isNamespaceExport(c.exportClause)&&c.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Be;function Me(c,re,lr){if(lr===void 0&&(lr=!1),q(re))return"";var Kr=c.substring(lr?re.pos:e.skipTrivia(c,re.pos),re.end);return He(re)&&(Kr=Kr.split(/\r\n|\n|\r/).map(function(Gn){return e.trimStringStart(Gn.replace(/^\s*\*/,""))}).join(`
  30. `)),Kr}e.getTextOfNodeFromSourceText=Me;function Le(c,re){return re===void 0&&(re=!1),pe(V(c),c,re)}e.getTextOfNode=Le;function Ae(c){return c.pos}function Xe(c,re){return e.binarySearch(c,re,Ae,e.compareValues)}e.indexOfNode=Xe;function Ne(c){var re=c.emitNode;return re&&re.flags||0}e.getEmitFlags=Ne;function Oe(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}}e.getScriptTargetFeatures=Oe;var be;(function(c){c[c.None=0]="None",c[c.NeverAsciiEscape=1]="NeverAsciiEscape",c[c.JsxAttributeEscape=2]="JsxAttributeEscape",c[c.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",c[c.AllowNumericSeparator=8]="AllowNumericSeparator"})(be=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function Y(c,re,lr){var Kr;if(re&&d(c,lr))return pe(re,c);switch(c.kind){case 10:{var Gn=lr&2?of:lr&1||Ne(c)&16777216?S_:qf;return c.singleQuote?"'"+Gn(c.text,39)+"'":'"'+Gn(c.text,34)+'"'}case 14:case 15:case 16:case 17:{var Gn=lr&1||Ne(c)&16777216?S_:qf,Gi=(Kr=c.rawText)!==null&&Kr!==void 0?Kr:Id(Gn(c.text,96));switch(c.kind){case 14:return"`"+Gi+"`";case 15:return"`"+Gi+"${";case 16:return"}"+Gi+"${";case 17:return"}"+Gi+"`"}break}case 8:case 9:return c.text;case 13:return lr&4&&c.isUnterminated?c.text+(c.text.charCodeAt(c.text.length-1)===92?" /":"/"):c.text}return e.Debug.fail("Literal kind '".concat(c.kind,"' not accounted for."))}e.getLiteralText=Y;function d(c,re){return vc(c)||!c.parent||re&4&&c.isUnterminated?!1:e.isNumericLiteral(c)&&c.numericLiteralFlags&512?!!(re&8):!e.isBigIntLiteral(c)}function j(c){return e.isString(c)?'"'+qf(c)+'"':""+c}e.getTextOfConstantValue=j;function Ce(c){return e.getBaseFileName(c).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=Ce;function Se(c){return(e.getCombinedNodeFlags(c)&3)!=0||Re(c)}e.isBlockOrCatchScoped=Se;function Re(c){var re=Yu(c);return re.kind===257&&re.parent.kind===295}e.isCatchClauseVariableDeclarationOrBindingElement=Re;function er(c){return e.isModuleDeclaration(c)&&(c.name.kind===10||dr(c))}e.isAmbientModule=er;function wr(c){return e.isModuleDeclaration(c)&&c.name.kind===10}e.isModuleWithStringLiteralName=wr;function mr(c){return e.isModuleDeclaration(c)&&e.isStringLiteral(c.name)}e.isNonGlobalAmbientModule=mr;function Ue(c){return e.isModuleDeclaration(c)||e.isIdentifier(c)}e.isEffectiveModuleDeclaration=Ue;function t(c){return qr(c.valueDeclaration)}e.isShorthandAmbientModuleSymbol=t;function qr(c){return!!c&&c.kind===264&&!c.body}function ln(c){return c.kind===308||c.kind===264||e.isFunctionLikeOrClassStaticBlockDeclaration(c)}e.isBlockScopedContainerTopLevel=ln;function dr(c){return!!(c.flags&1024)}e.isGlobalScopeAugmentation=dr;function vr(c){return er(c)&&kr(c)}e.isExternalModuleAugmentation=vr;function kr(c){switch(c.parent.kind){case 308:return e.isExternalModule(c.parent);case 265:return er(c.parent.parent)&&e.isSourceFile(c.parent.parent.parent)&&!e.isExternalModule(c.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=kr;function Ur(c){var re;return(re=c.declarations)===null||re===void 0?void 0:re.find(function(lr){return!vr(lr)&&!(e.isModuleDeclaration(lr)&&dr(lr))})}e.getNonAugmentationDeclaration=Ur;function Cr(c){return c===e.ModuleKind.CommonJS||c===e.ModuleKind.Node16||c===e.ModuleKind.NodeNext}function rn(c,re){return e.isExternalModule(c)||re.isolatedModules||Cr(cc(re))&&!!c.commonJsModuleIndicator}e.isEffectiveExternalModule=rn;function Br(c,re){switch(c.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return c.isDeclarationFile?!1:Xp(re,"alwaysStrict")||e.startsWithUseStrict(c.statements)?!0:e.isExternalModule(c)||re.isolatedModules?cc(re)>=e.ModuleKind.ES2015?!0:!re.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=Br;function pn(c){return!!(c.flags&16777216)||Ls(c,2)}e.isAmbientPropertyDeclaration=pn;function ve(c,re){switch(c.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!e.isFunctionLikeOrClassStaticBlockDeclaration(re)}return!1}e.isBlockScope=ve;function or(c){switch(c.kind){case 341:case 348:case 326:return!0;default:return e.assertType(c),Ee(c)}}e.isDeclarationWithTypeParameters=or;function Ee(c){switch(c.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 347:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return e.assertType(c),!1}}e.isDeclarationWithTypeParameterChildren=Ee;function ze(c){switch(c.kind){case 269:case 268:return!0;default:return!1}}e.isAnyImportSyntax=ze;function Ar(c){return ze(c)||ds(c)}e.isAnyImportOrBareOrAccessedRequire=Ar;function xe(c){switch(c.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=xe;function cr(c){return Mr(c)||e.isModuleDeclaration(c)||e.isImportTypeNode(c)||zr(c)}e.hasPossibleExternalModuleReference=cr;function Mr(c){return ze(c)||e.isExportDeclaration(c)}e.isAnyImportOrReExport=Mr;function Rr(c){return e.findAncestor(c.parent,function(re){return ve(re,re.parent)})}e.getEnclosingBlockScopeContainer=Rr;function Qr(c,re){for(var lr=Rr(c);lr;)re(lr),lr=Rr(lr)}e.forEachEnclosingBlockScopeContainer=Qr;function en(c){return!c||E(c)===0?"(Missing)":Le(c)}e.declarationNameToString=en;function vn(c){return c.declaration?en(c.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=vn;function Ie(c){return c.kind===164&&!rf(c.expression)}e.isComputedNonLiteralName=Ie;function We(c){switch(c.kind){case 79:case 80:return c.autoGenerateFlags?void 0:c.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(c.text);case 164:return rf(c.expression)?e.escapeLeadingUnderscores(c.expression.text):void 0;default:return e.Debug.assertNever(c)}}e.tryGetTextOfPropertyName=We;function xr(c){return e.Debug.checkDefined(We(c))}e.getTextOfPropertyName=xr;function Lr(c){switch(c.kind){case 108:return"this";case 80:case 79:return E(c)===0?e.idText(c):Le(c);case 163:return Lr(c.left)+"."+Lr(c.right);case 208:return e.isIdentifier(c.name)||e.isPrivateIdentifier(c.name)?Lr(c.expression)+"."+Lr(c.name):e.Debug.assertNever(c.name);case 314:return Lr(c.left)+Lr(c.right);default:return e.Debug.assertNever(c)}}e.entityNameToString=Lr;function xn(c,re,lr,Kr,Gn,Gi){var it=V(c);return Qn(it,c,re,lr,Kr,Gn,Gi)}e.createDiagnosticForNode=xn;function An(c,re,lr,Kr,Gn,Gi,it){var ct=e.skipTrivia(c.text,re.pos);return Ja(c,ct,re.end-ct,lr,Kr,Gn,Gi,it)}e.createDiagnosticForNodeArray=An;function Qn(c,re,lr,Kr,Gn,Gi,it){var ct=Ye(c,re);return Ja(c,ct.start,ct.length,lr,Kr,Gn,Gi,it)}e.createDiagnosticForNodeInSourceFile=Qn;function ai(c,re,lr){var Kr=V(c),Gn=Ye(Kr,c);return Pr(Kr,Gn.start,Gn.length,re,lr)}e.createDiagnosticForNodeFromMessageChain=ai;function Dr(c,re,lr){e.Debug.assertGreaterThanOrEqual(re,0),e.Debug.assertGreaterThanOrEqual(lr,0),c&&(e.Debug.assertLessThanOrEqual(re,c.text.length),e.Debug.assertLessThanOrEqual(re+lr,c.text.length))}function Pr(c,re,lr,Kr,Gn){return Dr(c,re,lr),{file:c,start:re,length:lr,code:Kr.code,category:Kr.category,messageText:Kr.next?Kr:Kr.messageText,relatedInformation:Gn}}e.createFileDiagnosticFromMessageChain=Pr;function jr(c,re,lr){return{file:c,start:0,length:0,code:re.code,category:re.category,messageText:re.next?re:re.messageText,relatedInformation:lr}}e.createDiagnosticForFileFromMessageChain=jr;function on(c){return typeof c.messageText=="string"?{code:c.code,category:c.category,messageText:c.messageText,next:c.next}:c.messageText}e.createDiagnosticMessageChainFromDiagnostic=on;function je(c,re,lr){return{file:c,start:re.pos,length:re.end-re.pos,code:lr.code,category:lr.category,messageText:lr.message}}e.createDiagnosticForRange=je;function Sr(c,re){var lr=e.createScanner(c.languageVersion,!0,c.languageVariant,c.text,void 0,re);lr.scan();var Kr=lr.getTokenPos();return e.createTextSpanFromBounds(Kr,lr.getTextPos())}e.getSpanOfTokenAtPosition=Sr;function Te(c,re){var lr=e.skipTrivia(c.text,re.pos);if(re.body&&re.body.kind===238){var Kr=e.getLineAndCharacterOfPosition(c,re.body.pos).line,Gn=e.getLineAndCharacterOfPosition(c,re.body.end).line;if(Kr<Gn)return e.createTextSpan(lr,N(Kr,c)-lr+1)}return e.createTextSpanFromBounds(lr,re.end)}function Ye(c,re){var lr=re;switch(re.kind){case 308:var Kr=e.skipTrivia(c.text,0,!1);return Kr===c.text.length?e.createTextSpan(0,0):Sr(c,Kr);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:lr=re.name;break;case 216:return Te(c,re);case 292:case 293:var Gn=e.skipTrivia(c.text,re.pos),Gi=re.statements.length>0?re.statements[0].pos:re.end;return e.createTextSpanFromBounds(Gn,Gi)}if(lr===void 0)return Sr(c,re.pos);e.Debug.assert(!e.isJSDoc(lr));var it=q(lr),ct=it||e.isJsxText(re)?lr.pos:e.skipTrivia(c.text,lr.pos);return it?(e.Debug.assert(ct===lr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ct===lr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(ct>=lr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ct<=lr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(ct,lr.end)}e.getErrorSpanForNode=Ye;function Qe(c){return(c.externalModuleIndicator||c.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Qe;function ue(c){return c.scriptKind===6}e.isJsonSourceFile=ue;function Ke(c){return!!(e.getCombinedModifierFlags(c)&2048)}e.isEnumConst=Ke;function tr(c){return!!(e.getCombinedModifierFlags(c)&64&&!e.isParameterPropertyDeclaration(c,c.parent))}e.isDeclarationReadonly=tr;function hr(c){return!!(e.getCombinedNodeFlags(c)&2)}e.isVarConst=hr;function _r(c){return!!(e.getCombinedNodeFlags(c)&1)}e.isLet=_r;function Or(c){return c.kind===210&&c.expression.kind===106}e.isSuperCall=Or;function zr(c){return c.kind===210&&c.expression.kind===100}e.isImportCall=zr;function fn(c){return e.isMetaProperty(c)&&c.keywordToken===100&&c.name.escapedText==="meta"}e.isImportMeta=fn;function Vr(c){return e.isImportTypeNode(c)&&e.isLiteralTypeNode(c.argument)&&e.isStringLiteral(c.argument.literal)}e.isLiteralImportTypeNode=Vr;function Wn(c){return c.kind===241&&c.expression.kind===10}e.isPrologueDirective=Wn;function bn(c){return!!(Ne(c)&1048576)}e.isCustomPrologue=bn;function qn(c){return bn(c)&&e.isFunctionDeclaration(c)}e.isHoistedFunction=qn;function yn(c){return e.isIdentifier(c.name)&&!c.initializer}function Hn(c){return bn(c)&&e.isVariableStatement(c)&&e.every(c.declarationList.declarations,yn)}e.isHoistedVariableStatement=Hn;function Ai(c,re){return c.kind!==11?e.getLeadingCommentRanges(re.text,c.pos):void 0}e.getLeadingCommentRangesOfNode=Ai;function ti(c,re){var lr=c.kind===166||c.kind===165||c.kind===215||c.kind===216||c.kind===214||c.kind===257||c.kind===278?e.concatenate(e.getTrailingCommentRanges(re,c.pos),e.getLeadingCommentRanges(re,c.pos)):e.getLeadingCommentRanges(re,c.pos);return e.filter(lr,function(Kr){return re.charCodeAt(Kr.pos+1)===42&&re.charCodeAt(Kr.pos+2)===42&&re.charCodeAt(Kr.pos+3)!==47})}e.getJSDocCommentRanges=ti,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Hi=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Ni=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function gi(c){if(179<=c.kind&&c.kind<=202)return!0;switch(c.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return c.parent.kind!==219;case 230:return e.isHeritageClause(c.parent)&&!lu(c);case 165:return c.parent.kind===197||c.parent.kind===192;case 79:(c.parent.kind===163&&c.parent.right===c||c.parent.kind===208&&c.parent.name===c)&&(c=c.parent),e.Debug.assert(c.kind===79||c.kind===163||c.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{var re=c.parent;if(re.kind===183)return!1;if(re.kind===202)return!re.isTypeOf;if(179<=re.kind&&re.kind<=202)return!0;switch(re.kind){case 230:return e.isHeritageClause(re.parent)&&!lu(re);case 165:return c===re.constraint;case 347:return c===re.constraint;case 169:case 168:case 166:case 257:return c===re.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return c===re.type;case 176:case 177:case 178:return c===re.type;case 213:return c===re.type;case 210:case 211:return e.contains(re.typeArguments,c);case 212:return!1}}}return!1}e.isPartOfTypeNode=gi;function Pn(c,re){for(;c;){if(c.kind===re)return!0;c=c.parent}return!1}e.isChildOfNodeWithKind=Pn;function Pe(c,re){return lr(c);function lr(Kr){switch(Kr.kind){case 250:return re(Kr);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return e.forEachChild(Kr,lr)}}}e.forEachReturnStatement=Pe;function Ir(c,re){return lr(c);function lr(Kr){switch(Kr.kind){case 226:re(Kr);var Gn=Kr.expression;Gn&&lr(Gn);return;case 263:case 261:case 264:case 262:return;default:if(e.isFunctionLike(Kr)){if(Kr.name&&Kr.name.kind===164){lr(Kr.name.expression);return}}else gi(Kr)||e.forEachChild(Kr,lr)}}}e.forEachYieldExpression=Ir;function we(c){return c&&c.kind===185?c.elementType:c&&c.kind===180?e.singleOrUndefined(c.typeArguments):void 0}e.getRestParameterElementType=we;function hn(c){switch(c.kind){case 261:case 260:case 228:case 184:return c.members;case 207:return c.properties}}e.getMembersOfDeclaration=hn;function jn(c){if(c)switch(c.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}e.isVariableLike=jn;function gn(c){return jn(c)||e.isAccessor(c)}e.isVariableLikeOrAccessor=gn;function nn(c){return c.parent.kind===258&&c.parent.parent.kind===240}e.isVariableDeclarationInVariableStatement=nn;function Cn(c){return fi(c)?e.isObjectLiteralExpression(c.parent)&&e.isBinaryExpression(c.parent.parent)&&Ii(c.parent.parent)===2||Dn(c.parent):!1}e.isCommonJsExportedExpression=Cn;function Dn(c){return fi(c)?e.isBinaryExpression(c)&&Ii(c)===1:!1}e.isCommonJsExportPropertyAssignment=Dn;function On(c){return(e.isVariableDeclaration(c)?hr(c)&&e.isIdentifier(c.name)&&nn(c):e.isPropertyDeclaration(c)?Qf(c)&&E_(c):e.isPropertySignature(c)&&Qf(c))||Dn(c)}e.isValidESSymbolDeclaration=On;function Xn(c){switch(c.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}e.introducesArgumentsExoticObject=Xn;function Ge(c,re){for(;;){if(re&&re(c),c.statement.kind!==253)return c.statement;c=c.statement}}e.unwrapInnermostStatementOfLabel=Ge;function cn(c){return c&&c.kind===238&&e.isFunctionLike(c.parent)}e.isFunctionBlock=cn;function Vn(c){return c&&c.kind===171&&c.parent.kind===207}e.isObjectLiteralMethod=Vn;function Ki(c){return(c.kind===171||c.kind===174||c.kind===175)&&(c.parent.kind===207||c.parent.kind===228)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=Ki;function dt(c){return c&&c.kind===1}e.isIdentifierTypePredicate=dt;function qi(c){return c&&c.kind===0}e.isThisTypePredicate=qi;function Ci(c,re,lr){return c.properties.filter(function(Kr){if(Kr.kind===299){var Gn=We(Kr.name);return re===Gn||!!lr&&lr===Gn}return!1})}e.getPropertyAssignment=Ci;function Tt(c,re,lr){return e.firstDefined(Ci(c,re),function(Kr){return e.isArrayLiteralExpression(Kr.initializer)?e.find(Kr.initializer.elements,function(Gn){return e.isStringLiteral(Gn)&&Gn.text===lr}):void 0})}e.getPropertyArrayElementValue=Tt;function ot(c){if(c&&c.statements.length){var re=c.statements[0].expression;return e.tryCast(re,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=ot;function Zi(c,re,lr){return e.firstDefined(ni(c,re),function(Kr){return e.isArrayLiteralExpression(Kr.initializer)?e.find(Kr.initializer.elements,function(Gn){return e.isStringLiteral(Gn)&&Gn.text===lr}):void 0})}e.getTsConfigPropArrayElementValue=Zi;function ni(c,re){var lr=ot(c);return lr?Ci(lr,re):e.emptyArray}e.getTsConfigPropArray=ni;function Va(c){return e.findAncestor(c.parent,e.isFunctionLike)}e.getContainingFunction=Va;function Ua(c){return e.findAncestor(c.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=Ua;function za(c){return e.findAncestor(c.parent,e.isClassLike)}e.getContainingClass=za;function Co(c){return e.findAncestor(c.parent,function(re){return e.isClassLike(re)||e.isFunctionLike(re)?"quit":e.isClassStaticBlockDeclaration(re)})}e.getContainingClassStaticBlock=Co;function Ea(c){return e.findAncestor(c.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=Ea;function ho(c,re){for(e.Debug.assert(c.kind!==308);;){if(c=c.parent,!c)return e.Debug.fail();switch(c.kind){case 164:if(e.isClassLike(c.parent.parent))return c;c=c.parent;break;case 167:c.parent.kind===166&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break;case 216:if(!re)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return c}}}e.getThisContainer=ho;function Aa(c){switch(c.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(c.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}e.isThisContainerOrFunctionBlock=Aa;function Vi(c){e.isIdentifier(c)&&(e.isClassDeclaration(c.parent)||e.isFunctionDeclaration(c.parent))&&c.parent.name===c&&(c=c.parent);var re=ho(c,!0);return e.isSourceFile(re)}e.isInTopLevelContext=Vi;function Xi(c){var re=ho(c,!1);if(re)switch(re.kind){case 173:case 259:case 215:return re}}e.getNewTargetContainer=Xi;function ao(c,re){for(;;){if(c=c.parent,!c)return c;switch(c.kind){case 164:c=c.parent;break;case 259:case 215:case 216:if(!re)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return c;case 167:c.parent.kind===166&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break}}}e.getSuperContainer=ao;function fo(c){if(c.kind===215||c.kind===216){for(var re=c,lr=c.parent;lr.kind===214;)re=lr,lr=lr.parent;if(lr.kind===210&&lr.expression===re)return lr}}e.getImmediatelyInvokedFunctionExpression=fo;function As(c){return c.kind===106||so(c)}e.isSuperOrSuperProperty=As;function so(c){var re=c.kind;return(re===208||re===209)&&c.expression.kind===106}e.isSuperProperty=so;function Xo(c){var re=c.kind;return(re===208||re===209)&&c.expression.kind===108}e.isThisProperty=Xo;function Ho(c){var re;return!!c&&e.isVariableDeclaration(c)&&((re=c.initializer)===null||re===void 0?void 0:re.kind)===108}e.isThisInitializedDeclaration=Ho;function Zo(c){return!!c&&(e.isShorthandPropertyAssignment(c)||e.isPropertyAssignment(c))&&e.isBinaryExpression(c.parent.parent)&&c.parent.parent.operatorToken.kind===63&&c.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Zo;function To(c){switch(c.kind){case 180:return c.typeName;case 230:return pu(c.expression)?c.expression:void 0;case 79:case 163:return c}}e.getEntityNameFromTypeNode=To;function pr(c){switch(c.kind){case 212:return c.tag;case 283:case 282:return c.tagName;default:return c.expression}}e.getInvokedExpression=pr;function Fr(c,re,lr){if(e.isNamedDeclaration(c)&&e.isPrivateIdentifier(c.name))return!1;switch(c.kind){case 260:return!0;case 169:return re.kind===260;case 174:case 175:case 171:return c.body!==void 0&&re.kind===260;case 166:return re.body!==void 0&&(re.kind===173||re.kind===171||re.kind===175)&&lr.kind===260}return!1}e.nodeCanBeDecorated=Fr;function yi(c,re,lr){return _f(c)&&Fr(c,re,lr)}e.nodeIsDecorated=yi;function Dt(c,re,lr){return yi(c,re,lr)||Ft(c,re)}e.nodeOrChildIsDecorated=Dt;function Ft(c,re){switch(c.kind){case 260:return e.some(c.members,function(lr){return Dt(lr,c,re)});case 171:case 175:case 173:return e.some(c.parameters,function(lr){return yi(lr,c,re)});default:return!1}}e.childIsDecorated=Ft;function Pa(c){if(yi(c))return!0;var re=kc(c);return!!re&&Ft(re,c)}e.classOrConstructorParameterIsDecorated=Pa;function Ve(c){var re=c.parent;return re.kind===283||re.kind===282||re.kind===284?re.tagName===c:!1}e.isJSXTagName=Ve;function tn(c){switch(c.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!e.isHeritageClause(c.parent);case 163:for(;c.parent.kind===163;)c=c.parent;return c.parent.kind===183||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||Ve(c);case 314:for(;e.isJSDocMemberName(c.parent);)c=c.parent;return c.parent.kind===183||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||Ve(c);case 80:return e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===101;case 79:if(c.parent.kind===183||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||Ve(c))return!0;case 8:case 9:case 10:case 14:case 108:return Nn(c);default:return!1}}e.isExpressionNode=tn;function Nn(c){var re=c.parent;switch(re.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return re.initializer===c;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return re.expression===c;case 245:var lr=re;return lr.initializer===c&&lr.initializer.kind!==258||lr.condition===c||lr.incrementor===c;case 246:case 247:var Kr=re;return Kr.initializer===c&&Kr.initializer.kind!==258||Kr.expression===c;case 213:case 231:return c===re.expression;case 236:return c===re.expression;case 164:return c===re.expression;case 167:case 291:case 290:case 301:return!0;case 230:return re.expression===c&&!gi(re);case 300:return re.objectAssignmentInitializer===c;case 235:return c===re.expression;default:return tn(re)}}e.isInExpressionContext=Nn;function wn(c){for(;c.kind===163||c.kind===79;)c=c.parent;return c.kind===183}e.isPartOfTypeQuery=wn;function Je(c){return e.isNamespaceExport(c)&&!!c.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=Je;function ur(c){return c.kind===268&&c.moduleReference.kind===280}e.isExternalModuleImportEqualsDeclaration=ur;function yr(c){return e.Debug.assert(ur(c)),c.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=yr;function Jr(c){return ds(c)&&bo(c.initializer).arguments[0]}e.getExternalModuleRequireArgument=Jr;function Mn(c){return c.kind===268&&c.moduleReference.kind!==280}e.isInternalModuleImportEqualsDeclaration=Mn;function _i(c){return fi(c)}e.isSourceFileJS=_i;function di(c){return!fi(c)}e.isSourceFileNotJS=di;function fi(c){return!!c&&!!(c.flags&262144)}e.isInJSFile=fi;function Nt(c){return!!c&&!!(c.flags&67108864)}e.isInJsonFile=Nt;function Gt(c){return!ue(c)}e.isSourceFileNotJson=Gt;function la(c){return!!c&&!!(c.flags&8388608)}e.isInJSDoc=la;function na(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)&&c.typeName.escapedText==="Object"&&c.typeArguments&&c.typeArguments.length===2&&(c.typeArguments[0].kind===152||c.typeArguments[0].kind===148)}e.isJSDocIndexSignature=na;function Ia(c,re){if(c.kind!==210)return!1;var lr=c,Kr=lr.expression,Gn=lr.arguments;if(Kr.kind!==79||Kr.escapedText!=="require"||Gn.length!==1)return!1;var Gi=Gn[0];return!re||e.isStringLiteralLike(Gi)}e.isRequireCall=Ia;function bs(c){return ps(c,!1)}e.isVariableDeclarationInitializedToRequire=bs;function ds(c){return ps(c,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=ds;function ps(c,re){return e.isVariableDeclaration(c)&&!!c.initializer&&Ia(re?bo(c.initializer):c.initializer,!0)}function ac(c){return e.isVariableStatement(c)&&c.declarationList.declarations.length>0&&e.every(c.declarationList.declarations,function(re){return bs(re)})}e.isRequireVariableStatement=ac;function Es(c){return c===39||c===34}e.isSingleOrDoubleQuote=Es;function ns(c,re){return pe(re,c).charCodeAt(0)===34}e.isStringDoubleQuoted=ns;function dc(c){return e.isBinaryExpression(c)||mt(c)||e.isIdentifier(c)||e.isCallExpression(c)}e.isAssignmentDeclaration=dc;function $s(c){return fi(c)&&c.initializer&&e.isBinaryExpression(c.initializer)&&(c.initializer.operatorToken.kind===56||c.initializer.operatorToken.kind===60)&&c.name&&pu(c.name)&&Ss(c.name,c.initializer.left)?c.initializer.right:c.initializer}e.getEffectiveInitializer=$s;function pc(c){var re=$s(c);return re&&Ko(re,Au(c.name))}e.getDeclaredExpandoInitializer=pc;function js(c,re){return e.forEach(c.properties,function(lr){return e.isPropertyAssignment(lr)&&e.isIdentifier(lr.name)&&lr.name.escapedText==="value"&&lr.initializer&&Ko(lr.initializer,re)})}function Sc(c){if(c&&c.parent&&e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63){var re=Au(c.parent.left);return Ko(c.parent.right,re)||Mc(c.parent.left,c.parent.right,re)}if(c&&e.isCallExpression(c)&&at(c)){var lr=js(c.arguments[2],c.arguments[1].text==="prototype");if(lr)return lr}}e.getAssignedExpandoInitializer=Sc;function Ko(c,re){if(e.isCallExpression(c)){var lr=jt(c.expression);return lr.kind===215||lr.kind===216?c:void 0}if(c.kind===215||c.kind===228||c.kind===216||e.isObjectLiteralExpression(c)&&(c.properties.length===0||re))return c}e.getExpandoInitializer=Ko;function Mc(c,re,lr){var Kr=e.isBinaryExpression(re)&&(re.operatorToken.kind===56||re.operatorToken.kind===60)&&Ko(re.right,lr);if(Kr&&Ss(c,re.left))return Kr}function Vs(c){var re=e.isVariableDeclaration(c.parent)?c.parent.name:e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63?c.parent.left:void 0;return re&&Ko(c.right,Au(re))&&pu(re)&&Ss(re,c.left)}e.isDefaultedExpandoInitializer=Vs;function oc(c){if(e.isBinaryExpression(c.parent)){var re=(c.parent.operatorToken.kind===56||c.parent.operatorToken.kind===60)&&e.isBinaryExpression(c.parent.parent)?c.parent.parent:c.parent;if(re.operatorToken.kind===63&&e.isIdentifier(re.left))return re.left}else if(e.isVariableDeclaration(c.parent))return c.parent.name}e.getNameOfExpando=oc;function Ss(c,re){return At(c)&&At(re)?Cu(c)===Cu(re):e.isMemberName(c)&&Ji(re)&&(re.expression.kind===108||e.isIdentifier(re.expression)&&(re.expression.escapedText==="window"||re.expression.escapedText==="self"||re.expression.escapedText==="global"))?Ss(c,qe(re)):Ji(c)&&Ji(re)?xa(c)===xa(re)&&Ss(c.expression,re.expression):!1}e.isSameEntityName=Ss;function ee(c){for(;Yo(c,!0);)c=c.right;return c}e.getRightMostAssignedExpression=ee;function Er(c){return e.isIdentifier(c)&&c.escapedText==="exports"}e.isExportsIdentifier=Er;function un(c){return e.isIdentifier(c)&&c.escapedText==="module"}e.isModuleIdentifier=un;function $n(c){return(e.isPropertyAccessExpression(c)||_t(c))&&un(c.expression)&&xa(c)==="exports"}e.isModuleExportsAccessExpression=$n;function Ii(c){var re=Tn(c);return re===5||fi(c)?re:0}e.getAssignmentDeclarationKind=Ii;function at(c){return e.length(c.arguments)===3&&e.isPropertyAccessExpression(c.expression)&&e.isIdentifier(c.expression.expression)&&e.idText(c.expression.expression)==="Object"&&e.idText(c.expression.name)==="defineProperty"&&rf(c.arguments[1])&&va(c.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=at;function Ji(c){return e.isPropertyAccessExpression(c)||_t(c)}e.isLiteralLikeAccess=Ji;function _t(c){return e.isElementAccessExpression(c)&&rf(c.argumentExpression)}e.isLiteralLikeElementAccess=_t;function Ht(c,re){return e.isPropertyAccessExpression(c)&&(!re&&c.expression.kind===108||e.isIdentifier(c.name)&&va(c.expression,!0))||Rt(c,re)}e.isBindableStaticAccessExpression=Ht;function Rt(c,re){return _t(c)&&(!re&&c.expression.kind===108||pu(c.expression)||Ht(c.expression,!0))}e.isBindableStaticElementAccessExpression=Rt;function va(c,re){return pu(c)||Ht(c,re)}e.isBindableStaticNameExpression=va;function qe(c){return e.isPropertyAccessExpression(c)?c.name:c.argumentExpression}e.getNameOrArgument=qe;function Tn(c){if(e.isCallExpression(c)){if(!at(c))return 0;var re=c.arguments[0];return Er(re)||$n(re)?8:Ht(re)&&xa(re)==="prototype"?9:7}return c.operatorToken.kind!==63||!mt(c.left)||Nr(ee(c))?0:va(c.left.expression,!0)&&xa(c.left)==="prototype"&&e.isObjectLiteralExpression(gs(c))?6:co(c.left)}function Nr(c){return e.isVoidExpression(c)&&e.isNumericLiteral(c.expression)&&c.expression.text==="0"}function ga(c){if(e.isPropertyAccessExpression(c))return c.name;var re=jt(c.argumentExpression);return e.isNumericLiteral(re)||e.isStringLiteralLike(re)?re:c}e.getElementOrPropertyAccessArgumentExpressionOrName=ga;function xa(c){var re=ga(c);if(re){if(e.isIdentifier(re))return re.escapedText;if(e.isStringLiteralLike(re)||e.isNumericLiteral(re))return e.escapeLeadingUnderscores(re.text)}}e.getElementOrPropertyAccessName=xa;function co(c){if(c.expression.kind===108)return 4;if($n(c))return 2;if(va(c.expression,!0)){if(Au(c.expression))return 3;for(var re=c;!e.isIdentifier(re.expression);)re=re.expression;var lr=re.expression;if((lr.escapedText==="exports"||lr.escapedText==="module"&&xa(re)==="exports")&&Ht(c))return 1;if(va(c,!0)||e.isElementAccessExpression(c)&&y_(c))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=co;function gs(c){for(;e.isBinaryExpression(c.right);)c=c.right;return c.right}e.getInitializerOfBinaryExpression=gs;function gc(c){return e.isBinaryExpression(c)&&Ii(c)===3}e.isPrototypePropertyAssignment=gc;function ws(c){return fi(c)&&c.parent&&c.parent.kind===241&&(!e.isElementAccessExpression(c)||_t(c))&&!!e.getJSDocTypeTag(c.parent)}e.isSpecialPropertyDeclaration=ws;function Lc(c,re){var lr=c.valueDeclaration;(!lr||!(re.flags&16777216&&!(lr.flags&16777216))&&dc(lr)&&!dc(re)||lr.kind!==re.kind&&Ue(lr))&&(c.valueDeclaration=re)}e.setValueDeclaration=Lc;function qs(c){if(!c||!c.valueDeclaration)return!1;var re=c.valueDeclaration;return re.kind===259||e.isVariableDeclaration(re)&&re.initializer&&e.isFunctionLike(re.initializer)}e.isFunctionSymbol=qs;function ec(c){var re,lr;switch(c.kind){case 257:return(re=e.findAncestor(c.initializer,function(Kr){return Ia(Kr,!0)}))===null||re===void 0?void 0:re.arguments[0];case 269:return e.tryCast(c.moduleSpecifier,e.isStringLiteralLike);case 268:return e.tryCast((lr=e.tryCast(c.moduleReference,e.isExternalModuleReference))===null||lr===void 0?void 0:lr.expression,e.isStringLiteralLike);default:e.Debug.assertNever(c)}}e.tryGetModuleSpecifierFromDeclaration=ec;function Rc(c){return _o(c)||e.Debug.failBadSyntaxKind(c.parent)}e.importFromModuleSpecifier=Rc;function _o(c){switch(c.parent.kind){case 269:case 275:return c.parent;case 280:return c.parent.parent;case 210:return zr(c.parent)||Ia(c.parent,!1)?c.parent:void 0;case 198:return e.Debug.assert(e.isStringLiteral(c)),e.tryCast(c.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=_o;function Gs(c){switch(c.kind){case 269:case 275:return c.moduleSpecifier;case 268:return c.moduleReference.kind===280?c.moduleReference.expression:void 0;case 202:return Vr(c)?c.argument.literal:void 0;case 210:return c.arguments[0];case 264:return c.name.kind===10?c.name:void 0;default:return e.Debug.assertNever(c)}}e.getExternalModuleName=Gs;function mc(c){switch(c.kind){case 269:return c.importClause&&e.tryCast(c.importClause.namedBindings,e.isNamespaceImport);case 268:return c;case 275:return c.exportClause&&e.tryCast(c.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(c)}}e.getNamespaceDeclarationNode=mc;function xl(c){return c.kind===269&&!!c.importClause&&!!c.importClause.name}e.isDefaultImport=xl;function $c(c,re){if(c.name){var lr=re(c);if(lr)return lr}if(c.namedBindings){var lr=e.isNamespaceImport(c.namedBindings)?re(c.namedBindings):e.forEach(c.namedBindings.elements,re);if(lr)return lr}}e.forEachImportClauseDeclaration=$c;function Qu(c){if(c)switch(c.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return c.questionToken!==void 0}return!1}e.hasQuestionToken=Qu;function Df(c){var re=e.isJSDocFunctionType(c)?e.firstOrUndefined(c.parameters):void 0,lr=e.tryCast(re&&re.name,e.isIdentifier);return!!lr&&lr.escapedText==="new"}e.isJSDocConstructSignature=Df;function Xu(c){return c.kind===348||c.kind===341||c.kind===342}e.isJSDocTypeAlias=Xu;function zc(c){return Xu(c)||e.isTypeAliasDeclaration(c)}e.isTypeAlias=zc;function Zu(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&c.expression.operatorToken.kind===63?ee(c.expression):void 0}function Hr(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&Ii(c.expression)!==0&&e.isBinaryExpression(c.expression.right)&&(c.expression.right.operatorToken.kind===56||c.expression.right.operatorToken.kind===60)?c.expression.right.right:void 0}function Gr(c){switch(c.kind){case 240:var re=Bn(c);return re&&re.initializer;case 169:return c.initializer;case 299:return c.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Gr;function Bn(c){return e.isVariableStatement(c)?e.firstOrUndefined(c.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=Bn;function ui(c){return e.isModuleDeclaration(c)&&c.body&&c.body.kind===264?c.body:void 0}function hi(c,re){var lr;jn(c)&&e.hasInitializer(c)&&e.hasJSDocNodes(c.initializer)&&(lr=e.addRange(lr,Ei(c,e.last(c.initializer.jsDoc))));for(var Kr=c;Kr&&Kr.parent;){if(e.hasJSDocNodes(Kr)&&(lr=e.addRange(lr,Ei(c,e.last(Kr.jsDoc)))),Kr.kind===166){lr=e.addRange(lr,(re?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Kr));break}if(Kr.kind===165){lr=e.addRange(lr,(re?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Kr));break}Kr=Bi(Kr)}return lr||e.emptyArray}e.getJSDocCommentsAndTags=hi;function Ei(c,re){if(e.isJSDoc(re)){var lr=e.filter(re.tags,function(Kr){return st(c,Kr)});return re.tags===lr?[re]:lr}return st(c,re)?[re]:void 0}function st(c,re){return!e.isJSDocTypeTag(re)||!re.parent||!e.isJSDoc(re.parent)||!e.isParenthesizedExpression(re.parent.parent)||re.parent.parent===c}function Bi(c){var re=c.parent;if(re.kind===299||re.kind===274||re.kind===169||re.kind===241&&c.kind===208||re.kind===250||ui(re)||e.isBinaryExpression(c)&&c.operatorToken.kind===63)return re;if(re.parent&&(Bn(re.parent)===c||e.isBinaryExpression(re)&&re.operatorToken.kind===63))return re.parent;if(re.parent&&re.parent.parent&&(Bn(re.parent.parent)||Gr(re.parent.parent)===c||Hr(re.parent.parent)))return re.parent.parent}e.getNextJSDocCommentLocation=Bi;function Jt(c){if(c.symbol)return c.symbol;if(!!e.isIdentifier(c.name)){var re=c.name.escapedText,lr=Yt(c);if(!!lr){var Kr=e.find(lr.parameters,function(Gn){return Gn.name.kind===79&&Gn.name.escapedText===re});return Kr&&Kr.symbol}}}e.getParameterSymbolFromJSDoc=Jt;function Ca(c){if(e.isJSDoc(c.parent)&&c.parent.tags){var re=e.find(c.parent.tags,Xu);if(re)return re}return Yt(c)}e.getEffectiveContainerForJSDocTemplateTag=Ca;function Yt(c){var re=Wt(c);if(re)return e.isPropertySignature(re)&&re.type&&e.isFunctionLike(re.type)?re.type:e.isFunctionLike(re)?re:void 0}e.getHostSignatureFromJSDoc=Yt;function Wt(c){var re=Ga(c);if(re)return Hr(re)||Zu(re)||Gr(re)||Bn(re)||ui(re)||re}e.getEffectiveJSDocHost=Wt;function Ga(c){var re=$t(c);if(!!re){var lr=re.parent;if(lr&&lr.jsDoc&&re===e.lastOrUndefined(lr.jsDoc))return lr}}e.getJSDocHost=Ga;function $t(c){return e.findAncestor(c.parent,e.isJSDoc)}e.getJSDocRoot=$t;function po(c){var re=c.name.escapedText,lr=c.parent.parent.parent.typeParameters;return lr&&e.find(lr,function(Kr){return Kr.name.escapedText===re})}e.getTypeParameterFromJsDoc=po;function Do(c){return!!c.typeArguments}e.hasTypeArguments=Do;var Ns;(function(c){c[c.None=0]="None",c[c.Definite=1]="Definite",c[c.Compound=2]="Compound"})(Ns=e.AssignmentKind||(e.AssignmentKind={}));function jo(c){for(var re=c.parent;;){switch(re.kind){case 223:var lr=re.operatorToken.kind;return wl(lr)&&re.left===c?lr===63||Nf(lr)?1:2:0;case 221:case 222:var Kr=re.operator;return Kr===45||Kr===46?2:0;case 246:case 247:return re.initializer===c?1:0;case 214:case 206:case 227:case 232:c=re;break;case 301:c=re.parent;break;case 300:if(re.name!==c)return 0;c=re.parent;break;case 299:if(re.name===c)return 0;c=re.parent;break;default:return 0}re=c.parent}}e.getAssignmentTargetKind=jo;function ys(c){return jo(c)!==0}e.isAssignmentTarget=ys;function Vo(c){switch(c.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=Vo;function fe(c){return e.isFunctionExpression(c)||e.isArrowFunction(c)||e.isMethodOrAccessor(c)||e.isFunctionDeclaration(c)||e.isConstructorDeclaration(c)}e.isValueSignatureDeclaration=fe;function sr(c,re){for(;c&&c.kind===re;)c=c.parent;return c}function Tr(c){return sr(c,193)}e.walkUpParenthesizedTypes=Tr;function Fn(c){return sr(c,214)}e.walkUpParenthesizedExpressions=Fn;function Si(c){for(var re;c&&c.kind===193;)re=c,c=c.parent;return[re,c]}e.walkUpParenthesizedTypesAndGetParentAndChild=Si;function gt(c){for(;e.isParenthesizedTypeNode(c);)c=c.type;return c}e.skipTypeParentheses=gt;function jt(c,re){var lr=re?1|16:1;return e.skipOuterExpressions(c,lr)}e.skipParentheses=jt;function fa(c){return c.kind!==208&&c.kind!==209?!1:(c=Fn(c.parent),c&&c.kind===217)}e.isDeleteTarget=fa;function Ka(c,re){for(;c;){if(c===re)return!0;c=c.parent}return!1}e.isNodeDescendantOf=Ka;function no(c){return!e.isSourceFile(c)&&!e.isBindingPattern(c)&&e.isDeclaration(c.parent)&&c.parent.name===c}e.isDeclarationName=no;function Eo(c){var re=c.parent;switch(c.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(re))return re.parent;case 79:if(e.isDeclaration(re))return re.name===c?re:void 0;if(e.isQualifiedName(re)){var lr=re.parent;return e.isJSDocParameterTag(lr)&&lr.name===re?lr:void 0}else{var Kr=re.parent;return e.isBinaryExpression(Kr)&&Ii(Kr)!==0&&(Kr.left.symbol||Kr.symbol)&&e.getNameOfDeclaration(Kr)===c?Kr:void 0}case 80:return e.isDeclaration(re)&&re.name===c?re:void 0;default:return}}e.getDeclarationFromName=Eo;function Fa(c){return rf(c)&&c.parent.kind===164&&e.isDeclaration(c.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Fa;function Qa(c){var re=c.parent;switch(re.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return re.name===c;case 163:return re.right===c;case 205:case 273:return re.propertyName===c;case 278:case 288:case 282:case 283:case 284:return!0}return!1}e.isIdentifierName=Qa;function zo(c){return c.kind===268||c.kind===267||c.kind===270&&!!c.name||c.kind===271||c.kind===277||c.kind===273||c.kind===278||c.kind===274&&xc(c)?!0:fi(c)&&(e.isBinaryExpression(c)&&Ii(c)===2&&xc(c)||e.isPropertyAccessExpression(c)&&e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===63&&ms(c.parent.right))}e.isAliasSymbolDeclaration=zo;function Uo(c){switch(c.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return c.parent;case 163:do c=c.parent;while(c.parent.kind===163);return Uo(c)}}e.getAliasDeclarationFromName=Uo;function ms(c){return pu(c)||e.isClassExpression(c)}e.isAliasableExpression=ms;function xc(c){var re=Os(c);return ms(re)}e.exportAssignmentIsAlias=xc;function Os(c){return e.isExportAssignment(c)?c.expression:c.right}e.getExportAssignmentExpression=Os;function Cl(c){return c.kind===300?c.name:c.kind===299?c.initializer:c.parent.right}e.getPropertyAssignmentAliasLikeExpression=Cl;function m_(c){var re=pl(c);if(re&&fi(c)){var lr=e.getJSDocAugmentsTag(c);if(lr)return lr.class}return re}e.getEffectiveBaseTypeNode=m_;function pl(c){var re=xu(c.heritageClauses,94);return re&&re.types.length>0?re.types[0]:void 0}e.getClassExtendsHeritageElement=pl;function Zl(c){if(fi(c))return e.getJSDocImplementsTags(c).map(function(lr){return lr.class});var re=xu(c.heritageClauses,117);return re==null?void 0:re.types}e.getEffectiveImplementsTypeNodes=Zl;function Zr(c){return e.isInterfaceDeclaration(c)?Yl(c)||e.emptyArray:e.isClassLike(c)&&e.concatenate(e.singleElementArray(m_(c)),Zl(c))||e.emptyArray}e.getAllSuperTypeNodes=Zr;function Yl(c){var re=xu(c.heritageClauses,94);return re?re.types:void 0}e.getInterfaceBaseTypeNodes=Yl;function xu(c,re){if(c)for(var lr=0,Kr=c;lr<Kr.length;lr++){var Gn=Kr[lr];if(Gn.token===re)return Gn}}e.getHeritageClause=xu;function $l(c,re){for(;c;){if(c.kind===re)return c;c=c.parent}}e.getAncestor=$l;function Wf(c){return 81<=c&&c<=162}e.isKeyword=Wf;function ef(c){return 126<=c&&c<=162}e.isContextualKeyword=ef;function Tl(c){return Wf(c)&&!ef(c)}e.isNonContextualKeyword=Tl;function Ad(c){return 117<=c&&c<=125}e.isFutureReservedKeyword=Ad;function go(c){var re=e.stringToToken(c);return re!==void 0&&Tl(re)}e.isStringANonContextualKeyword=go;function U_(c){var re=e.stringToToken(c);return re!==void 0&&Wf(re)}e.isStringAKeyword=U_;function bf(c){var re=c.originalKeywordKind;return!!re&&!ef(re)}e.isIdentifierANonContextualKeyword=bf;function z_(c){return 2<=c&&c<=7}e.isTrivia=z_;var Vf;(function(c){c[c.Normal=0]="Normal",c[c.Generator=1]="Generator",c[c.Async=2]="Async",c[c.Invalid=4]="Invalid",c[c.AsyncGenerator=3]="AsyncGenerator"})(Vf=e.FunctionFlags||(e.FunctionFlags={}));function W_(c){if(!c)return 4;var re=0;switch(c.kind){case 259:case 215:case 171:c.asteriskToken&&(re|=1);case 216:Ls(c,512)&&(re|=2);break}return c.body||(re|=4),re}e.getFunctionFlags=W_;function v_(c){switch(c.kind){case 259:case 215:case 216:case 171:return c.body!==void 0&&c.asteriskToken===void 0&&Ls(c,512)}return!1}e.isAsyncFunction=v_;function rf(c){return e.isStringLiteralLike(c)||e.isNumericLiteral(c)}e.isStringOrNumericLiteralLike=rf;function ou(c){return e.isPrefixUnaryExpression(c)&&(c.operator===39||c.operator===40)&&e.isNumericLiteral(c.operand)}e.isSignedNumericLiteral=ou;function V_(c){var re=e.getNameOfDeclaration(c);return!!re&&y_(re)}e.hasDynamicName=V_;function y_(c){if(!(c.kind===164||c.kind===209))return!1;var re=e.isElementAccessExpression(c)?jt(c.argumentExpression):c.expression;return!rf(re)&&!ou(re)}e.isDynamicName=y_;function Qt(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(c.text);case 164:var re=c.expression;return rf(re)?e.escapeLeadingUnderscores(re.text):ou(re)?re.operator===40?e.tokenToString(re.operator)+re.operand.text:re.operand.text:void 0;default:return e.Debug.assertNever(c)}}e.getPropertyNameForPropertyNameNode=Qt;function At(c){switch(c.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=At;function Cu(c){return e.isMemberName(c)?e.idText(c):c.text}e.getTextOfIdentifierOrLiteral=Cu;function Wc(c){return e.isMemberName(c)?c.escapedText:e.escapeLeadingUnderscores(c.text)}e.getEscapedTextOfIdentifierOrLiteral=Wc;function q_(c){return"__@".concat(e.getSymbolId(c),"@").concat(c.escapedName)}e.getPropertyNameForUniqueESSymbol=q_;function Sf(c,re){return"__#".concat(e.getSymbolId(c),"@").concat(re)}e.getSymbolNameForPrivateIdentifier=Sf;function Wp(c){return e.startsWith(c.escapedName,"__@")}e.isKnownSymbol=Wp;function Nd(c){return e.startsWith(c.escapedName,"__#")}e.isPrivateIdentifierSymbol=Nd;function is(c){return c.kind===79&&c.escapedText==="Symbol"}e.isESSymbolIdentifier=is;function dp(c){return c.escapedText==="push"||c.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=dp;function xs(c){var re=Yu(c);return re.kind===166}e.isParameterDeclaration=xs;function Yu(c){for(;c.kind===205;)c=c.parent.parent;return c}e.getRootDeclaration=Yu;function pp(c){var re=c.kind;return re===173||re===215||re===259||re===216||re===171||re===174||re===175||re===264||re===308}e.nodeStartsNewLexicalEnvironment=pp;function vc(c){return Tg(c.pos)||Tg(c.end)}e.nodeIsSynthesized=vc;function gp(c){return e.getParseTreeNode(c,e.isSourceFile)||c}e.getOriginalSourceFile=gp;var sc;(function(c){c[c.Left=0]="Left",c[c.Right=1]="Right"})(sc=e.Associativity||(e.Associativity={}));function El(c){var re=Pd(c),lr=c.kind===211&&c.arguments!==void 0;return Cc(c.kind,re,lr)}e.getExpressionAssociativity=El;function Cc(c,re,lr){switch(c){case 211:return lr?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(re){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=Cc;function mp(c){var re=Pd(c),lr=c.kind===211&&c.arguments!==void 0;return H_(c.kind,re,lr)}e.getExpressionPrecedence=mp;function Pd(c){return c.kind===223?c.operatorToken.kind:c.kind===221||c.kind===222?c.operator:c.kind}e.getOperator=Pd;var G_;(function(c){c[c.Comma=0]="Comma",c[c.Spread=1]="Spread",c[c.Yield=2]="Yield",c[c.Assignment=3]="Assignment",c[c.Conditional=4]="Conditional",c[c.Coalesce=4]="Coalesce",c[c.LogicalOR=5]="LogicalOR",c[c.LogicalAND=6]="LogicalAND",c[c.BitwiseOR=7]="BitwiseOR",c[c.BitwiseXOR=8]="BitwiseXOR",c[c.BitwiseAND=9]="BitwiseAND",c[c.Equality=10]="Equality",c[c.Relational=11]="Relational",c[c.Shift=12]="Shift",c[c.Additive=13]="Additive",c[c.Multiplicative=14]="Multiplicative",c[c.Exponentiation=15]="Exponentiation",c[c.Unary=16]="Unary",c[c.Update=17]="Update",c[c.LeftHandSide=18]="LeftHandSide",c[c.Member=19]="Member",c[c.Primary=20]="Primary",c[c.Highest=20]="Highest",c[c.Lowest=0]="Lowest",c[c.Invalid=-1]="Invalid"})(G_=e.OperatorPrecedence||(e.OperatorPrecedence={}));function H_(c,re,lr){switch(c){case 354:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(re){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return vp(re)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return lr?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}e.getOperatorPrecedence=H_;function vp(c){switch(c){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=vp;function kl(c){return e.filter(c,function(re){switch(re.kind){case 291:return!!re.expression;case 11:return!re.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=kl;function Al(){var c=[],re=[],lr=new e.Map,Kr=!1;return{add:Gi,lookup:Gn,getGlobalDiagnostics:it,getDiagnostics:ct};function Gn(ha){var ta;if(ha.file?ta=lr.get(ha.file.fileName):ta=c,!!ta){var Po=e.binarySearch(ta,ha,e.identity,_d);if(Po>=0)return ta[Po]}}function Gi(ha){var ta;ha.file?(ta=lr.get(ha.file.fileName),ta||(ta=[],lr.set(ha.file.fileName,ta),e.insertSorted(re,ha.file.fileName,e.compareStringsCaseSensitive))):(Kr&&(Kr=!1,c=c.slice()),ta=c),e.insertSorted(ta,ha,_d)}function it(){return Kr=!0,c}function ct(ha){if(ha)return lr.get(ha)||[];var ta=e.flatMapToMutable(re,function(Po){return lr.get(Po)});return c.length&&ta.unshift.apply(ta,c),ta}}e.createDiagnosticCollection=Al;var h_=/\$\{/g;function Id(c){return c.replace(h_,"\\${")}function yp(c){return c&&!!(e.isNoSubstitutionTemplateLiteral(c)?c.templateFlags:c.head.templateFlags||e.some(c.templateSpans,function(re){return!!re.literal.templateFlags}))}e.hasInvalidEscape=yp;var wd=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,D_=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Mu=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,nf=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function K_(c){var re=c.toString(16).toUpperCase(),lr=("0000"+re).slice(-4);return"\\u"+lr}function b_(c,re,lr){if(c.charCodeAt(0)===0){var Kr=lr.charCodeAt(re+c.length);return Kr>=48&&Kr<=57?"\\x00":"\\0"}return nf.get(c)||K_(c.charCodeAt(0))}function S_(c,re){var lr=re===96?Mu:re===39?D_:wd;return c.replace(lr,b_)}e.escapeString=S_;var xf=/[^\u0000-\u007F]/g;function qf(c,re){return c=S_(c,re),xf.test(c)?c.replace(xf,function(lr){return K_(lr.charCodeAt(0))}):c}e.escapeNonAsciiString=qf;var tf=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Q_=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,af=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Tc(c){var re=c.toString(16).toUpperCase();return"&#x"+re+";"}function $u(c){return c.charCodeAt(0)===0?"&#0;":af.get(c)||Tc(c.charCodeAt(0))}function of(c,re){var lr=re===39?Q_:tf;return c.replace(lr,$u)}e.escapeJsxAttributeString=of;function X_(c){var re=c.length;return re>=2&&c.charCodeAt(0)===c.charCodeAt(re-1)&&x_(c.charCodeAt(0))?c.substring(1,re-1):c}e.stripQuotes=X_;function x_(c){return c===39||c===34||c===96}function Tu(c){var re=c.charCodeAt(0);return re>=97&&re<=122||e.stringContains(c,"-")||e.stringContains(c,":")}e.isIntrinsicJsxName=Tu;var Cf=[""," "];function el(c){for(var re=Cf[1],lr=Cf.length;lr<=c;lr++)Cf.push(Cf[lr-1]+re);return Cf[c]}e.getIndentString=el;function Lu(){return Cf[1].length}e.getIndentSize=Lu;function Ru(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")}e.isNightly=Ru;function Bu(c){var re,lr,Kr,Gn,Gi,it=!1;function ct(vs){var hl=e.computeLineStarts(vs);hl.length>1?(Gn=Gn+hl.length-1,Gi=re.length-vs.length+e.last(hl),Kr=Gi-re.length==0):Kr=!1}function ha(vs){vs&&vs.length&&(Kr&&(vs=el(lr)+vs,Kr=!1),re+=vs,ct(vs))}function ta(vs){vs&&(it=!1),ha(vs)}function Po(vs){vs&&(it=!0),ha(vs)}function es(){re="",lr=0,Kr=!0,Gn=0,Gi=0,it=!1}function nc(vs){vs!==void 0&&(re+=vs,ct(vs),it=!1)}function Zt(vs){vs&&vs.length&&ta(vs)}function Ts(vs){(!Kr||vs)&&(re+=c,Gn++,Gi=re.length,Kr=!0,it=!1)}function _a(){return Kr?re.length:re.length+c.length}return es(),{write:ta,rawWrite:nc,writeLiteral:Zt,writeLine:Ts,increaseIndent:function(){lr++},decreaseIndent:function(){lr--},getIndent:function(){return lr},getTextPos:function(){return re.length},getLine:function(){return Gn},getColumn:function(){return Kr?lr*Lu():re.length-Gi},getText:function(){return re},isAtStartOfLine:function(){return Kr},hasTrailingComment:function(){return it},hasTrailingWhitespace:function(){return!!re.length&&e.isWhiteSpaceLike(re.charCodeAt(re.length-1))},clear:es,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:ta,writeOperator:ta,writeParameter:ta,writeProperty:ta,writePunctuation:ta,writeSpace:ta,writeStringLiteral:ta,writeSymbol:function(vs,hl){return ta(vs)},writeTrailingSemicolon:ta,writeComment:Po,getTextPosWithWriteLine:_a}}e.createTextWriter=Bu;function Eu(c){var re=!1;function lr(){re&&(c.writeTrailingSemicolon(";"),re=!1)}return vi(vi({},c),{writeTrailingSemicolon:function(){re=!0},writeLiteral:function(Kr){lr(),c.writeLiteral(Kr)},writeStringLiteral:function(Kr){lr(),c.writeStringLiteral(Kr)},writeSymbol:function(Kr,Gn){lr(),c.writeSymbol(Kr,Gn)},writePunctuation:function(Kr){lr(),c.writePunctuation(Kr)},writeKeyword:function(Kr){lr(),c.writeKeyword(Kr)},writeOperator:function(Kr){lr(),c.writeOperator(Kr)},writeParameter:function(Kr){lr(),c.writeParameter(Kr)},writeSpace:function(Kr){lr(),c.writeSpace(Kr)},writeProperty:function(Kr){lr(),c.writeProperty(Kr)},writeComment:function(Kr){lr(),c.writeComment(Kr)},writeLine:function(){lr(),c.writeLine()},increaseIndent:function(){lr(),c.increaseIndent()},decreaseIndent:function(){lr(),c.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=Eu;function hp(c){return c.useCaseSensitiveFileNames?c.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=hp;function Z_(c){return e.createGetCanonicalFileName(hp(c))}e.hostGetCanonicalFileName=Z_;function Od(c,re,lr){return re.moduleName||sf(c,re.fileName,lr&&lr.fileName)}e.getResolvedExternalModuleName=Od;function Y_(c,re){return c.getCanonicalFileName(e.getNormalizedAbsolutePath(re,c.getCurrentDirectory()))}function Fo(c,re,lr){var Kr=re.getExternalModuleFileFromDeclaration(lr);if(!(!Kr||Kr.isDeclarationFile)){var Gn=Gs(lr);if(!(Gn&&e.isStringLiteralLike(Gn)&&!e.pathIsRelative(Gn.text)&&Y_(c,Kr.path).indexOf(Y_(c,e.ensureTrailingDirectorySeparator(c.getCommonSourceDirectory())))===-1))return Od(c,Kr)}}e.getExternalModuleNameFromDeclaration=Fo;function sf(c,re,lr){var Kr=function(ha){return c.getCanonicalFileName(ha)},Gn=e.toPath(lr?e.getDirectoryPath(lr):c.getCommonSourceDirectory(),c.getCurrentDirectory(),Kr),Gi=e.getNormalizedAbsolutePath(re,c.getCurrentDirectory()),it=e.getRelativePathToDirectoryOrUrl(Gn,Gi,Gn,Kr,!1),ct=Wd(it);return lr?e.ensurePathIsNonModuleName(ct):ct}e.getExternalModuleNameFromPath=sf;function Fd(c,re,lr){var Kr=re.getCompilerOptions(),Gn;return Kr.outDir?Gn=Wd(Hs(c,re,Kr.outDir)):Gn=Wd(c),Gn+lr}e.getOwnEmitOutputFilePath=Fd;function C_(c,re){return Gf(c,re.getCompilerOptions(),re.getCurrentDirectory(),re.getCommonSourceDirectory(),function(lr){return re.getCanonicalFileName(lr)})}e.getDeclarationEmitOutputFilePath=C_;function Gf(c,re,lr,Kr,Gn){var Gi=re.declarationDir||re.outDir,it=Gi?$_(c,Gi,lr,Kr,Gn):c,ct=Tf(it);return Wd(it)+ct}e.getDeclarationEmitOutputFilePathWorker=Gf;function Tf(c){return e.fileExtensionIsOneOf(c,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(c,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(c,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Tf;function Md(c){return e.fileExtensionIsOneOf(c,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(c,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(c,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}e.getPossibleOriginalInputExtensionForExtension=Md;function ss(c){return c.outFile||c.out}e.outFile=ss;function wi(c,re){var lr,Kr;if(!!c.paths)return(lr=c.baseUrl)!==null&&lr!==void 0?lr:e.Debug.checkDefined(c.pathsBasePath||((Kr=re.getCurrentDirectory)===null||Kr===void 0?void 0:Kr.call(re)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=wi;function Fs(c,re,lr){var Kr=c.getCompilerOptions();if(ss(Kr)){var Gn=cc(Kr),Gi=Kr.emitDeclarationOnly||Gn===e.ModuleKind.AMD||Gn===e.ModuleKind.System;return e.filter(c.getSourceFiles(),function(ct){return(Gi||!e.isExternalModule(ct))&&Kt(ct,c,lr)})}else{var it=re===void 0?c.getSourceFiles():[re];return e.filter(it,function(ct){return Kt(ct,c,lr)})}}e.getSourceFilesToEmit=Fs;function Kt(c,re,lr){var Kr=re.getCompilerOptions();return!(Kr.noEmitForJsFiles&&_i(c))&&!c.isDeclarationFile&&!re.isSourceFileFromExternalLibrary(c)&&(lr||!(ue(c)&&re.getResolvedProjectReferenceToRedirect(c.fileName))&&!re.isSourceOfProjectReferenceRedirect(c.fileName))}e.sourceFileMayBeEmitted=Kt;function Hs(c,re,lr){return $_(c,lr,re.getCurrentDirectory(),re.getCommonSourceDirectory(),function(Kr){return re.getCanonicalFileName(Kr)})}e.getSourceFilePathInNewDir=Hs;function $_(c,re,lr,Kr,Gn){var Gi=e.getNormalizedAbsolutePath(c,lr),it=Gn(Gi).indexOf(Gn(Kr))===0;return Gi=it?Gi.substring(Kr.length):Gi,e.combinePaths(re,Gi)}e.getSourceFilePathInNewDirWorker=$_;function Ec(c,re,lr,Kr,Gn,Gi,it){c.writeFile(lr,Kr,Gn,function(ct){re.add(Li(e.Diagnostics.Could_not_write_file_0_Colon_1,lr,ct))},Gi,it)}e.writeFile=Ec;function ji(c,re,lr){if(c.length>e.getRootLength(c)&&!lr(c)){var Kr=e.getDirectoryPath(c);ji(Kr,re,lr),re(c)}}function su(c,re,lr,Kr,Gn,Gi){try{Kr(c,re,lr)}catch(it){ji(e.getDirectoryPath(e.normalizePath(c)),Gn,Gi),Kr(c,re,lr)}}e.writeFileEnsuringDirectories=su;function cu(c,re){var lr=e.getLineStarts(c);return e.computeLineOfPosition(lr,re)}e.getLineOfLocalPosition=cu;function Wo(c,re){return e.computeLineOfPosition(c,re)}e.getLineOfLocalPositionFromLineMap=Wo;function kc(c){return e.find(c.members,function(re){return e.isConstructorDeclaration(re)&&G(re.body)})}e.getFirstConstructorWithBody=kc;function Vc(c){if(c&&c.parameters.length>0){var re=c.parameters.length===2&&gl(c.parameters[0]);return c.parameters[re?1:0]}}e.getSetAccessorValueParameter=Vc;function ed(c){var re=Vc(c);return re&&re.type}e.getSetAccessorTypeAnnotationNode=ed;function ts(c){if(c.parameters.length&&!e.isJSDocSignature(c)){var re=c.parameters[0];if(gl(re))return re}}e.getThisParameter=ts;function gl(c){return Ef(c.name)}e.parameterIsThisKeyword=gl;function Ef(c){return!!c&&c.kind===79&&rl(c)}e.isThisIdentifier=Ef;function T_(c){if(!Ef(c))return!1;for(;e.isQualifiedName(c.parent)&&c.parent.left===c;)c=c.parent;return c.parent.kind===183}e.isThisInTypeQuery=T_;function rl(c){return c.originalKeywordKind===108}e.identifierIsThisKeyword=rl;function Ms(c,re){var lr,Kr,Gn,Gi;return V_(re)?(lr=re,re.kind===174?Gn=re:re.kind===175?Gi=re:e.Debug.fail("Accessor has wrong kind")):e.forEach(c,function(it){if(e.isAccessor(it)&&ff(it)===ff(re)){var ct=Qt(it.name),ha=Qt(re.name);ct===ha&&(lr?Kr||(Kr=it):lr=it,it.kind===174&&!Gn&&(Gn=it),it.kind===175&&!Gi&&(Gi=it))}}),{firstAccessor:lr,secondAccessor:Kr,getAccessor:Gn,setAccessor:Gi}}e.getAllAccessorDeclarations=Ms;function ml(c){if(!(!fi(c)&&e.isFunctionDeclaration(c))){var re=c.type;return re||!fi(c)?re:e.isJSDocPropertyLikeTag(c)?c.typeExpression&&c.typeExpression.type:e.getJSDocType(c)}}e.getEffectiveTypeAnnotationNode=ml;function Hf(c){return c.type}e.getTypeAnnotationNode=Hf;function Kf(c){return e.isJSDocSignature(c)?c.type&&c.type.typeExpression&&c.type.typeExpression.type:c.type||(fi(c)?e.getJSDocReturnType(c):void 0)}e.getEffectiveReturnTypeNode=Kf;function Nl(c){return e.flatMap(e.getJSDocTags(c),function(re){return Dp(re)?re.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=Nl;function Dp(c){return e.isJSDocTemplateTag(c)&&!(c.parent.kind===323&&c.parent.tags.some(Xu))}function Us(c){var re=Vc(c);return re&&ml(re)}e.getEffectiveSetAccessorTypeAnnotationNode=Us;function cf(c,re,lr,Kr){eu(c,re,lr.pos,Kr)}e.emitNewLineBeforeLeadingComments=cf;function eu(c,re,lr,Kr){Kr&&Kr.length&&lr!==Kr[0].pos&&Wo(c,lr)!==Wo(c,Kr[0].pos)&&re.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=eu;function Ld(c,re,lr,Kr){lr!==Kr&&Wo(c,lr)!==Wo(c,Kr)&&re.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Ld;function uf(c,re,lr,Kr,Gn,Gi,it,ct){if(Kr&&Kr.length>0){Gn&&lr.writeSpace(" ");for(var ha=!1,ta=0,Po=Kr;ta<Po.length;ta++){var es=Po[ta];ha&&(lr.writeSpace(" "),ha=!1),ct(c,re,lr,es.pos,es.end,it),es.hasTrailingNewLine?lr.writeLine():ha=!0}ha&&Gi&&lr.writeSpace(" ")}}e.emitComments=uf;function lf(c,re,lr,Kr,Gn,Gi,it){var ct,ha;if(it?Gn.pos===0&&(ct=e.filter(e.getLeadingCommentRanges(c,Gn.pos),hl)):ct=e.getLeadingCommentRanges(c,Gn.pos),ct){for(var ta=[],Po=void 0,es=0,nc=ct;es<nc.length;es++){var Zt=nc[es];if(Po){var Ts=Wo(re,Po.end),_a=Wo(re,Zt.pos);if(_a>=Ts+2)break}ta.push(Zt),Po=Zt}if(ta.length){var Ts=Wo(re,e.last(ta).end),vs=Wo(re,e.skipTrivia(c,Gn.pos));vs>=Ts+2&&(cf(re,lr,Gn,ct),uf(c,re,lr,ta,!1,!0,Gi,Kr),ha={nodePos:Gn.pos,detachedCommentEndPos:e.last(ta).end})}}return ha;function hl(jl){return w(c,jl.pos)}}e.emitDetachedComments=lf;function rd(c,re,lr,Kr,Gn,Gi){if(c.charCodeAt(Kr+1)===42)for(var it=e.computeLineAndCharacterOfPosition(re,Kr),ct=re.length,ha=void 0,ta=Kr,Po=it.line;ta<Gn;Po++){var es=Po+1===ct?c.length+1:re[Po+1];if(ta!==Kr){ha===void 0&&(ha=nl(c,re[it.line],Kr));var nc=lr.getIndent()*Lu(),Zt=nc-ha+nl(c,ta,es);if(Zt>0){var Ts=Zt%Lu(),_a=el((Zt-Ts)/Lu());for(lr.rawWrite(_a);Ts;)lr.rawWrite(" "),Ts--}else lr.rawWrite("")}Pl(c,Gn,lr,Gi,ta,es),ta=es}else lr.writeComment(c.substring(Kr,Gn))}e.writeCommentRange=rd;function Pl(c,re,lr,Kr,Gn,Gi){var it=Math.min(re,Gi-1),ct=e.trimString(c.substring(Gn,it));ct?(lr.writeComment(ct),it!==re&&lr.writeLine()):lr.rawWrite(Kr)}function nl(c,re,lr){for(var Kr=0;re<lr&&e.isWhiteSpaceSingleLine(c.charCodeAt(re));re++)c.charCodeAt(re)===9?Kr+=Lu()-Kr%Lu():Kr++;return Kr}function nd(c){return il(c)!==0}e.hasEffectiveModifiers=nd;function ks(c){return kf(c)!==0}e.hasSyntacticModifiers=ks;function Ac(c,re){return!!vl(c,re)}e.hasEffectiveModifier=Ac;function Ls(c,re){return!!Xf(c,re)}e.hasSyntacticModifier=Ls;function ff(c){return e.isClassElement(c)&&E_(c)||e.isClassStaticBlockDeclaration(c)}e.isStatic=ff;function E_(c){return Ls(c,32)}e.hasStaticModifier=E_;function Ya(c){return Ac(c,16384)}e.hasOverrideModifier=Ya;function zi(c){return Ls(c,256)}e.hasAbstractModifier=zi;function Nc(c){return Ls(c,2)}e.hasAmbientModifier=Nc;function Vp(c){return Ls(c,128)}e.hasAccessorModifier=Vp;function Qf(c){return Ac(c,64)}e.hasEffectiveReadonlyModifier=Qf;function _f(c){return Ls(c,131072)}e.hasDecorators=_f;function vl(c,re){return il(c)&re}e.getSelectedEffectiveModifierFlags=vl;function Xf(c,re){return kf(c)&re}e.getSelectedSyntacticModifierFlags=Xf;function ku(c,re,lr){return c.kind>=0&&c.kind<=162?0:(c.modifierFlagsCache&536870912||(c.modifierFlagsCache=ko(c)|536870912),re&&!(c.modifierFlagsCache&4096)&&(lr||fi(c))&&c.parent&&(c.modifierFlagsCache|=qc(c)|4096),c.modifierFlagsCache&~(536870912|4096))}function il(c){return ku(c,!0)}e.getEffectiveModifierFlags=il;function Il(c){return ku(c,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Il;function kf(c){return ku(c,!1)}e.getSyntacticModifierFlags=kf;function qc(c){var re=0;return!!c.parent&&!e.isParameter(c)&&(fi(c)&&(e.getJSDocPublicTagNoCache(c)&&(re|=4),e.getJSDocPrivateTagNoCache(c)&&(re|=8),e.getJSDocProtectedTagNoCache(c)&&(re|=16),e.getJSDocReadonlyTagNoCache(c)&&(re|=64),e.getJSDocOverrideTagNoCache(c)&&(re|=16384)),e.getJSDocDeprecatedTagNoCache(c)&&(re|=8192)),re}function bp(c){return ko(c)|qc(c)}e.getEffectiveModifierFlagsNoCache=bp;function ko(c){var re=e.canHaveModifiers(c)?Gc(c.modifiers):0;return(c.flags&4||c.kind===79&&c.isInJSDocNamespace)&&(re|=1),re}e.getSyntacticModifierFlagsNoCache=ko;function Gc(c){var re=0;if(c)for(var lr=0,Kr=c;lr<Kr.length;lr++){var Gn=Kr[lr];re|=Af(Gn.kind)}return re}e.modifiersToFlags=Gc;function Af(c){switch(c){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}e.modifierToFlag=Af;function uu(c){return c===56||c===55||c===53}e.isLogicalOperator=uu;function Nf(c){return c===75||c===76||c===77}e.isLogicalOrCoalescingAssignmentOperator=Nf;function Zf(c){return Nf(c.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=Zf;function wl(c){return c>=63&&c<=78}e.isAssignmentOperator=wl;function Sp(c){var re=Hc(c);return re&&!re.isImplements?re.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Sp;function Hc(c){return e.isExpressionWithTypeArguments(c)&&e.isHeritageClause(c.parent)&&e.isClassLike(c.parent.parent)?{class:c.parent.parent,isImplements:c.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Hc;function Yo(c,re){return e.isBinaryExpression(c)&&(re?c.operatorToken.kind===63:wl(c.operatorToken.kind))&&e.isLeftHandSideExpression(c.left)}e.isAssignmentExpression=Yo;function Rd(c){return Yo(c.parent)&&c.parent.left===c}e.isLeftHandSideOfAssignment=Rd;function Yf(c){if(Yo(c,!0)){var re=c.left.kind;return re===207||re===206}return!1}e.isDestructuringAssignment=Yf;function lu(c){return Sp(c)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=lu;function pu(c){return c.kind===79||Pf(c)}e.isEntityNameExpression=pu;function k_(c){switch(c.kind){case 79:return c;case 163:do c=c.left;while(c.kind!==79);return c;case 208:do c=c.expression;while(c.kind!==79);return c}}e.getFirstIdentifier=k_;function id(c){return c.kind===79||c.kind===108||c.kind===106||c.kind===233||c.kind===208&&id(c.expression)||c.kind===214&&id(c.expression)}e.isDottedName=id;function Pf(c){return e.isPropertyAccessExpression(c)&&e.isIdentifier(c.name)&&pu(c.expression)}e.isPropertyAccessEntityNameExpression=Pf;function Ol(c){if(e.isPropertyAccessExpression(c)){var re=Ol(c.expression);if(re!==void 0)return re+"."+Lr(c.name)}else if(e.isElementAccessExpression(c)){var re=Ol(c.expression);if(re!==void 0&&e.isPropertyName(c.argumentExpression))return re+"."+Qt(c.argumentExpression)}else if(e.isIdentifier(c))return e.unescapeLeadingUnderscores(c.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Ol;function Au(c){return Ht(c)&&xa(c)==="prototype"}e.isPrototypeAccess=Au;function xp(c){return c.parent.kind===163&&c.parent.right===c||c.parent.kind===208&&c.parent.name===c}e.isRightSideOfQualifiedNameOrPropertyAccess=xp;function Fl(c){return e.isPropertyAccessExpression(c.parent)&&c.parent.name===c||e.isElementAccessExpression(c.parent)&&c.parent.argumentExpression===c}e.isRightSideOfAccessExpression=Fl;function tl(c){return e.isQualifiedName(c.parent)&&c.parent.right===c||e.isPropertyAccessExpression(c.parent)&&c.parent.name===c||e.isJSDocMemberName(c.parent)&&c.parent.right===c}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=tl;function $f(c){return c.kind===207&&c.properties.length===0}e.isEmptyObjectLiteral=$f;function Cp(c){return c.kind===206&&c.elements.length===0}e.isEmptyArrayLiteral=Cp;function gu(c){if(!(!td(c)||!c.declarations))for(var re=0,lr=c.declarations;re<lr.length;re++){var Kr=lr[re];if(Kr.localSymbol)return Kr.localSymbol}}e.getLocalSymbolForExportDefault=gu;function td(c){return c&&e.length(c.declarations)>0&&Ls(c.declarations[0],1024)}function qp(c){return e.find(V0,function(re){return e.fileExtensionIs(c,re)})}e.tryExtractTSExtension=qp;function Xt(c){for(var re=[],lr=c.length,Kr=0;Kr<lr;Kr++){var Gn=c.charCodeAt(Kr);Gn<128?re.push(Gn):Gn<2048?(re.push(Gn>>6|192),re.push(Gn&63|128)):Gn<65536?(re.push(Gn>>12|224),re.push(Gn>>6&63|128),re.push(Gn&63|128)):Gn<131072?(re.push(Gn>>18|240),re.push(Gn>>12&63|128),re.push(Gn>>6&63|128),re.push(Gn&63|128)):e.Debug.assert(!1,"Unexpected code point")}return re}var ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Oi(c){for(var re="",lr=Xt(c),Kr=0,Gn=lr.length,Gi,it,ct,ha;Kr<Gn;)Gi=lr[Kr]>>2,it=(lr[Kr]&3)<<4|lr[Kr+1]>>4,ct=(lr[Kr+1]&15)<<2|lr[Kr+2]>>6,ha=lr[Kr+2]&63,Kr+1>=Gn?ct=ha=64:Kr+2>=Gn&&(ha=64),re+=ru.charAt(Gi)+ru.charAt(it)+ru.charAt(ct)+ru.charAt(ha),Kr+=3;return re}e.convertToBase64=Oi;function Ml(c){for(var re="",lr=0,Kr=c.length;lr<Kr;){var Gn=c[lr];if(Gn<128)re+=String.fromCharCode(Gn),lr++;else if((Gn&192)==192){var Gi=Gn&63;lr++;for(var it=c[lr];(it&192)==128;)Gi=Gi<<6|it&63,lr++,it=c[lr];re+=String.fromCharCode(Gi)}else re+=String.fromCharCode(Gn),lr++}return re}function ad(c,re){return c&&c.base64encode?c.base64encode(re):Oi(re)}e.base64encode=ad;function al(c,re){if(c&&c.base64decode)return c.base64decode(re);for(var lr=re.length,Kr=[],Gn=0;Gn<lr&&re.charCodeAt(Gn)!==ru.charCodeAt(64);){var Gi=ru.indexOf(re[Gn]),it=ru.indexOf(re[Gn+1]),ct=ru.indexOf(re[Gn+2]),ha=ru.indexOf(re[Gn+3]),ta=(Gi&63)<<2|it>>4&3,Po=(it&15)<<4|ct>>2&15,es=(ct&3)<<6|ha&63;Po===0&&ct!==0?Kr.push(ta):es===0&&ha!==0?Kr.push(ta,Po):Kr.push(ta,Po,es),Gn+=4}return Ml(Kr)}e.base64decode=al;function Ju(c,re){var lr=e.isString(re)?re:re.readFile(c);if(!!lr){var Kr=e.parseConfigFileTextToJson(c,lr);return Kr.error?void 0:Kr.config}}e.readJsonOrUndefined=Ju;function od(c,re){return Ju(c,re)||{}}e.readJson=od;function Bd(c,re){return!re.directoryExists||re.directoryExists(c)}e.directoryProbablyExists=Bd;var yc=`\r
  31. `,A_=`
  32. `;function e_(c,re){switch(c.newLine){case 0:return yc;case 1:return A_}return re?re():e.sys?e.sys.newLine:yc}e.getNewLineCharacter=e_;function N_(c,re){return re===void 0&&(re=c),e.Debug.assert(re>=c||re===-1),{pos:c,end:re}}e.createRange=N_;function Tp(c,re){return N_(c.pos,re)}e.moveRangeEnd=Tp;function r_(c,re){return N_(re,c.end)}e.moveRangePos=r_;function v(c){var re=e.canHaveModifiers(c)?e.findLast(c.modifiers,e.isDecorator):void 0;return re&&!Tg(re.end)?r_(c,re.end):c}e.moveRangePastDecorators=v;function Ze(c){var re=e.canHaveModifiers(c)?e.lastOrUndefined(c.modifiers):void 0;return re&&!Tg(re.end)?r_(c,re.end):v(c)}e.moveRangePastModifiers=Ze;function _n(c){return c.pos===c.end}e.isCollapsedRange=_n;function Zn(c,re){return N_(c,c+e.tokenToString(re).length)}e.createTokenRange=Zn;function $i(c,re){return wt(c,c,re)}e.rangeIsOnSingleLine=$i;function kt(c,re,lr){return Ba(ca(c,lr,!1),ca(re,lr,!1),lr)}e.rangeStartPositionsAreOnSameLine=kt;function Mt(c,re,lr){return Ba(c.end,re.end,lr)}e.rangeEndPositionsAreOnSameLine=Mt;function wt(c,re,lr){return Ba(ca(c,lr,!1),re.end,lr)}e.rangeStartIsOnSameLineAsRangeEnd=wt;function Wa(c,re,lr){return Ba(c.end,ca(re,lr,!1),lr)}e.rangeEndIsOnSameLineAsRangeStart=Wa;function Lo(c,re,lr,Kr){var Gn=ca(re,lr,Kr);return e.getLinesBetweenPositions(lr,c.end,Gn)}e.getLinesBetweenRangeEndAndRangeStart=Lo;function Na(c,re,lr){return e.getLinesBetweenPositions(lr,c.end,re.end)}e.getLinesBetweenRangeEndPositions=Na;function Pc(c,re){return!Ba(c.pos,c.end,re)}e.isNodeArrayMultiLine=Pc;function Ba(c,re,lr){return e.getLinesBetweenPositions(lr,c,re)===0}e.positionsAreOnSameLine=Ba;function ca(c,re,lr){return Tg(c.pos)?-1:e.skipTrivia(re.text,c.pos,!1,lr)}e.getStartPositionOfRange=ca;function Bc(c,re,lr,Kr){var Gn=e.skipTrivia(lr.text,c,!1,Kr),Gi=If(Gn,re,lr);return e.getLinesBetweenPositions(lr,Gi!=null?Gi:re,Gn)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Bc;function mu(c,re,lr,Kr){var Gn=e.skipTrivia(lr.text,c,!1,Kr);return e.getLinesBetweenPositions(lr,c,Math.min(re,Gn))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=mu;function If(c,re,lr){for(re===void 0&&(re=0);c-- >re;)if(!e.isWhiteSpaceLike(lr.text.charCodeAt(c)))return c}function Nu(c){var re=e.getParseTreeNode(c);if(re)switch(re.parent.kind){case 263:case 264:return re===re.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=Nu;function P_(c){return e.filter(c.declarations,Jd)}e.getInitializedVariables=P_;function Jd(c){return c.initializer!==void 0}function jd(c){return c.watch&&e.hasProperty(c,"watch")}e.isWatchSet=jd;function Ll(c){c.close()}e.closeFileWatcher=Ll;function sd(c){return c.flags&33554432?c.checkFlags:0}e.getCheckFlags=sd;function Ep(c,re){if(re===void 0&&(re=!1),c.valueDeclaration){var lr=re&&c.declarations&&e.find(c.declarations,e.isSetAccessorDeclaration)||c.flags&32768&&e.find(c.declarations,e.isGetAccessorDeclaration)||c.valueDeclaration,Kr=e.getCombinedModifierFlags(lr);return c.parent&&c.parent.flags&32?Kr:Kr&~28}if(sd(c)&6){var Gn=c.checkFlags,Gi=Gn&1024?8:Gn&256?4:16,it=Gn&2048?32:0;return Gi|it}return c.flags&4194304?4|32:0}e.getDeclarationModifierFlagsFromSymbol=Ep;function Gp(c,re){return c.flags&2097152?re.getAliasedSymbol(c):c}e.skipAlias=Gp;function cd(c){return c.exportSymbol?c.exportSymbol.flags|c.flags:c.flags}e.getCombinedLocalAndExportSymbolFlags=cd;function $g(c){return yl(c)===1}e.isWriteOnlyAccess=$g;function ud(c){return yl(c)!==0}e.isWriteAccess=ud;var fu;(function(c){c[c.Read=0]="Read",c[c.Write=1]="Write",c[c.ReadWrite=2]="ReadWrite"})(fu||(fu={}));function yl(c){var re=c.parent;if(!re)return 0;switch(re.kind){case 214:return yl(re);case 222:case 221:var lr=re.operator;return lr===45||lr===46?ct():0;case 223:var Kr=re,Gn=Kr.left,Gi=Kr.operatorToken;return Gn===c&&wl(Gi.kind)?Gi.kind===63?1:ct():0;case 208:return re.name!==c?0:yl(re);case 299:{var it=yl(re.parent);return c===re.name?pg(it):it}case 300:return c===re.objectAssignmentInitializer?0:yl(re.parent);case 206:return yl(re);default:return 0}function ct(){return re.parent&&Fn(re.parent).kind===241?1:2}}function pg(c){switch(c){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(c)}}function n_(c,re){if(!c||!re||Object.keys(c).length!==Object.keys(re).length)return!1;for(var lr in c)if(typeof c[lr]=="object"){if(!n_(c[lr],re[lr]))return!1}else if(typeof c[lr]!="function"&&c[lr]!==re[lr])return!1;return!0}e.compareDataObjects=n_;function kp(c,re){c.forEach(re),c.clear()}e.clearMap=kp;function gg(c,re,lr){var Kr=lr.onDeleteValue,Gn=lr.onExistingValue;c.forEach(function(Gi,it){var ct=re.get(it);ct===void 0?(c.delete(it),Kr(Gi,it)):Gn&&Gn(Gi,ct,it)})}e.mutateMapSkippingNewValues=gg;function em(c,re,lr){gg(c,re,lr);var Kr=lr.createNewValue;re.forEach(function(Gn,Gi){c.has(Gi)||c.set(Gi,Kr(Gi,Gn))})}e.mutateMap=em;function Hp(c){if(c.flags&32){var re=ld(c);return!!re&&Ls(re,256)}return!1}e.isAbstractConstructorSymbol=Hp;function ld(c){var re;return(re=c.declarations)===null||re===void 0?void 0:re.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=ld;function fd(c){return c.flags&3899393?c.objectFlags:0}e.getObjectFlags=fd;function Kp(c,re){return re.getSignaturesOfType(c,0).length!==0||re.getSignaturesOfType(c,1).length!==0}e.typeHasCallOrConstructSignatures=Kp;function Fe(c,re){return!!e.forEachAncestorDirectory(c,function(lr){return re(lr)?!0:void 0})}e.forSomeAncestorDirectory=Fe;function gr(c){return!!c&&!!c.declarations&&!!c.declarations[0]&&e.isNamespaceExportDeclaration(c.declarations[0])}e.isUMDExportSymbol=gr;function Yr(c){var re=c.moduleSpecifier;return e.isStringLiteral(re)?re.text:Le(re)}e.showModuleSpecifier=Yr;function mn(c){var re;return e.forEachChild(c,function(lr){G(lr)&&(re=lr)},function(lr){for(var Kr=lr.length-1;Kr>=0;Kr--)if(G(lr[Kr])){re=lr[Kr];break}}),re}e.getLastChild=mn;function Un(c,re,lr){return lr===void 0&&(lr=!0),c.has(re)?!1:(c.set(re,lr),!0)}e.addToSeen=Un;function ci(c){return e.isClassLike(c)||e.isInterfaceDeclaration(c)||e.isTypeLiteralNode(c)}e.isObjectTypeDeclaration=ci;function tt(c){return c>=179&&c<=202||c===131||c===157||c===148||c===160||c===149||c===134||c===152||c===153||c===114||c===155||c===144||c===230||c===315||c===316||c===317||c===318||c===319||c===320||c===321}e.isTypeNodeKind=tt;function mt(c){return c.kind===208||c.kind===209}e.isAccessExpression=mt;function bt(c){return c.kind===208?c.name:(e.Debug.assert(c.kind===209),c.argumentExpression)}e.getNameOfAccessExpression=bt;function Lt(c){switch(c.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=Lt;function Oa(c){return c.kind===272||c.kind===276}e.isNamedImportsOrExports=Oa;function bo(c){for(;mt(c);)c=c.expression;return c}e.getLeftmostAccessExpression=bo;function mo(c,re){if(mt(c.parent)&&Fl(c))return lr(c.parent);function lr(Kr){if(Kr.kind===208){var Gn=re(Kr.name);if(Gn!==void 0)return Gn}else if(Kr.kind===209)if(e.isIdentifier(Kr.argumentExpression)||e.isStringLiteralLike(Kr.argumentExpression)){var Gn=re(Kr.argumentExpression);if(Gn!==void 0)return Gn}else return;if(mt(Kr.expression))return lr(Kr.expression);if(e.isIdentifier(Kr.expression))return re(Kr.expression)}}e.forEachNameInAccessChainWalkingLeft=mo;function wo(c,re){for(;;){switch(c.kind){case 222:c=c.operand;continue;case 223:c=c.left;continue;case 224:c=c.condition;continue;case 212:c=c.tag;continue;case 210:if(re)return c;case 231:case 209:case 208:case 232:case 353:case 235:c=c.expression;continue}return c}}e.getLeftmostExpression=wo;function Cs(c,re){this.flags=c,this.escapedName=re,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function hc(c,re){this.flags=re,(e.Debug.isDebugging||e.tracing)&&(this.checker=c)}function $o(c,re){this.flags=re,e.Debug.isDebugging&&(this.checker=c)}function vu(c,re,lr){this.pos=re,this.end=lr,this.kind=c,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Kc(c,re,lr){this.pos=re,this.end=lr,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function Ks(c,re,lr){this.pos=re,this.end=lr,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function Ic(c,re,lr){this.fileName=c,this.text=re,this.skipTrivia=lr||function(Kr){return Kr}}e.objectAllocator={getNodeConstructor:function(){return vu},getTokenConstructor:function(){return Kc},getIdentifierConstructor:function(){return Ks},getPrivateIdentifierConstructor:function(){return vu},getSourceFileConstructor:function(){return vu},getSymbolConstructor:function(){return Cs},getTypeConstructor:function(){return hc},getSignatureConstructor:function(){return $o},getSourceMapSourceConstructor:function(){return Ic}};function ol(c){Object.assign(e.objectAllocator,c)}e.setObjectAllocator=ol;function i_(c,re,lr){return lr===void 0&&(lr=0),c.replace(/{(\d+)}/g,function(Kr,Gn){return""+e.Debug.checkDefined(re[+Gn+lr])})}e.formatStringFromArgs=i_;var Js;function _(c){Js=c}e.setLocalizedDiagnosticMessages=_;function R(c){!Js&&c&&(Js=c())}e.maybeSetLocalizedDiagnosticMessages=R;function he(c){return Js&&Js[c.key]||c.message}e.getLocaleSpecificMessage=he;function nr(c,re,lr,Kr){Dr(void 0,re,lr);var Gn=he(Kr);return arguments.length>4&&(Gn=i_(Gn,arguments,4)),{file:void 0,start:re,length:lr,messageText:Gn,category:Kr.category,code:Kr.code,reportsUnnecessary:Kr.reportsUnnecessary,fileName:c}}e.createDetachedDiagnostic=nr;function $r(c){return c.file===void 0&&c.start!==void 0&&c.length!==void 0&&typeof c.fileName=="string"}function oi(c,re){var lr=re.fileName||"",Kr=re.text.length;e.Debug.assertEqual(c.fileName,lr),e.Debug.assertLessThanOrEqual(c.start,Kr),e.Debug.assertLessThanOrEqual(c.start+c.length,Kr);var Gn={file:re,start:c.start,length:c.length,messageText:c.messageText,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary};if(c.relatedInformation){Gn.relatedInformation=[];for(var Gi=0,it=c.relatedInformation;Gi<it.length;Gi++){var ct=it[Gi];$r(ct)&&ct.fileName===lr?(e.Debug.assertLessThanOrEqual(ct.start,Kr),e.Debug.assertLessThanOrEqual(ct.start+ct.length,Kr),Gn.relatedInformation.push(oi(ct,re))):Gn.relatedInformation.push(ct)}}return Gn}function ft(c,re){for(var lr=[],Kr=0,Gn=c;Kr<Gn.length;Kr++){var Gi=Gn[Kr];lr.push(oi(Gi,re))}return lr}e.attachFileToDiagnostics=ft;function Ja(c,re,lr,Kr){Dr(c,re,lr);var Gn=he(Kr);return arguments.length>4&&(Gn=i_(Gn,arguments,4)),{file:c,start:re,length:lr,messageText:Gn,category:Kr.category,code:Kr.code,reportsUnnecessary:Kr.reportsUnnecessary,reportsDeprecated:Kr.reportsDeprecated}}e.createFileDiagnostic=Ja;function Rs(c,re){var lr=he(re);return arguments.length>2&&(lr=i_(lr,arguments,2)),lr}e.formatMessage=Rs;function Li(c){var re=he(c);return arguments.length>1&&(re=i_(re,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:re,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}e.createCompilerDiagnostic=Li;function ju(c,re){return{file:void 0,start:void 0,length:void 0,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:re}}e.createCompilerDiagnosticFromMessageChain=ju;function yu(c,re){var lr=he(re);return arguments.length>2&&(lr=i_(lr,arguments,2)),{messageText:lr,category:re.category,code:re.code,next:c===void 0||Array.isArray(c)?c:[c]}}e.chainDiagnosticMessages=yu;function wf(c,re){for(var lr=c;lr.next;)lr=lr.next[0];lr.next=[re]}e.concatenateDiagnosticMessageChains=wf;function Of(c){return c.file?c.file.path:void 0}function mg(c,re){return _d(c,re)||rm(c,re)||0}e.compareDiagnostics=mg;function _d(c,re){return e.compareStringsCaseSensitive(Of(c),Of(re))||e.compareValues(c.start,re.start)||e.compareValues(c.length,re.length)||e.compareValues(c.code,re.code)||df(c.messageText,re.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=_d;function rm(c,re){return!c.relatedInformation&&!re.relatedInformation?0:c.relatedInformation&&re.relatedInformation?e.compareValues(c.relatedInformation.length,re.relatedInformation.length)||e.forEach(c.relatedInformation,function(lr,Kr){var Gn=re.relatedInformation[Kr];return mg(lr,Gn)})||0:c.relatedInformation?-1:1}function df(c,re){if(typeof c=="string"&&typeof re=="string")return e.compareStringsCaseSensitive(c,re);if(typeof c=="string")return-1;if(typeof re=="string")return 1;var lr=e.compareStringsCaseSensitive(c.messageText,re.messageText);if(lr)return lr;if(!c.next&&!re.next)return 0;if(!c.next)return-1;if(!re.next)return 1;for(var Kr=Math.min(c.next.length,re.next.length),Gn=0;Gn<Kr;Gn++)if(lr=df(c.next[Gn],re.next[Gn]),lr)return lr;return c.next.length<re.next.length?-1:c.next.length>re.next.length?1:0}function Ev(c){return c===4||c===2||c===1||c===6?1:0}e.getLanguageVariant=Ev;function vg(c){if(!!(c.transformFlags&2))return e.isJsxOpeningLikeElement(c)||e.isJsxFragment(c)?c:e.forEachChild(c,vg)}function yg(c){return c.isDeclarationFile?void 0:vg(c)}function hg(c){return(c.impliedNodeFormat===e.ModuleKind.ESNext||e.fileExtensionIsOneOf(c.fileName,[".cjs",".cts",".mjs",".mts"]))&&!c.isDeclarationFile?!0:void 0}function nm(c){switch(im(c)){case e.ModuleDetectionKind.Force:return function(Gn){Gn.externalModuleIndicator=e.isFileProbablyExternalModule(Gn)||!Gn.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(Gn){Gn.externalModuleIndicator=e.isFileProbablyExternalModule(Gn)};case e.ModuleDetectionKind.Auto:var re=[e.isFileProbablyExternalModule];(c.jsx===4||c.jsx===5)&&re.push(yg),re.push(hg);var lr=e.or.apply(void 0,re),Kr=function(Gn){return void(Gn.externalModuleIndicator=lr(Gn))};return Kr}}e.getSetExternalModuleIndicator=nm;function Qp(c){return c.target||c.module===e.ModuleKind.Node16&&9||c.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=Qp;function cc(c){return typeof c.module=="number"?c.module:Qp(c)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=cc;function kv(c){var re=c.moduleResolution;if(re===void 0)switch(cc(c)){case e.ModuleKind.CommonJS:re=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:re=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:re=e.ModuleResolutionKind.NodeNext;break;default:re=e.ModuleResolutionKind.Classic;break}return re}e.getEmitModuleResolutionKind=kv;function im(c){return c.moduleDetection||(cc(c)===e.ModuleKind.Node16||cc(c)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}e.getEmitModuleDetectionKind=im;function nu(c){switch(cc(c)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=nu;function tm(c){return c.allowUnreachableCode===!1}e.unreachableCodeIsError=tm;function Av(c){return c.allowUnusedLabels===!1}e.unusedLabelIsError=Av;function Nv(c){return!!(Dg(c)&&c.declarationMap)}e.getAreDeclarationMapsEnabled=Nv;function Ap(c){if(c.esModuleInterop!==void 0)return c.esModuleInterop;switch(cc(c)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=Ap;function Pv(c){var re=cc(c);return c.allowSyntheticDefaultImports!==void 0?c.allowSyntheticDefaultImports:Ap(c)||re===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=Pv;function Dg(c){return!!(c.declaration||c.composite)}e.getEmitDeclarations=Dg;function _u(c){return!!(c.preserveConstEnums||c.isolatedModules)}e.shouldPreserveConstEnums=_u;function Rm(c){return!!(c.incremental||c.composite)}e.isIncrementalCompilation=Rm;function Xp(c,re){return c[re]===void 0?!!c.strict:!!c[re]}e.getStrictOptionValue=Xp;function am(c){return c.allowJs===void 0?!!c.checkJs:c.allowJs}e.getAllowJSCompilerOption=am;function t_(c){return c.useDefineForClassFields===void 0?Qp(c)>=9:c.useDefineForClassFields}e.getUseDefineForClassFields=t_;function bg(c,re){return D(re,c,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=bg;function I_(c,re){return D(re,c,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=I_;function Pi(c,re){return D(re,c,e.affectsDeclarationPathOptionDeclarations)}e.compilerOptionsAffectDeclarationPath=Pi;function Et(c,re){return re.strictFlag?Xp(c,re.name):c[re.name]}e.getCompilerOptionValue=Et;function It(c){var re=c.jsx;return re===2||re===4||re===5}e.getJSXTransformEnabled=It;function nt(c,re){var lr=re==null?void 0:re.pragmas.get("jsximportsource"),Kr=e.isArray(lr)?lr[lr.length-1]:lr;return c.jsx===4||c.jsx===5||c.jsxImportSource||Kr?(Kr==null?void 0:Kr.arguments.factory)||c.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=nt;function ma(c,re){return c?"".concat(c,"/").concat(re.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=ma;function $a(c){for(var re=!1,lr=0;lr<c.length;lr++)if(c.charCodeAt(lr)===42)if(!re)re=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=$a;function cs(c,re){var lr,Kr,Gn,Gi=!1;return{getSymlinkedFiles:function(){return Gn},getSymlinkedDirectories:function(){return lr},getSymlinkedDirectoriesByRealpath:function(){return Kr},setSymlinkedFile:function(ct,ha){return(Gn||(Gn=new e.Map)).set(ct,ha)},setSymlinkedDirectory:function(ct,ha){var ta=e.toPath(ct,c,re);Wv(ta)||(ta=e.ensureTrailingDirectorySeparator(ta),ha!==!1&&!(lr==null?void 0:lr.has(ta))&&(Kr||(Kr=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(ha.realPath),ct),(lr||(lr=new e.Map)).set(ta,ha))},setSymlinksFromResolutions:function(ct,ha){var ta=this,Po;e.Debug.assert(!Gi),Gi=!0;for(var es=0,nc=ct;es<nc.length;es++){var Zt=nc[es];(Po=Zt.resolvedModules)===null||Po===void 0||Po.forEach(function(Ts){return it(ta,Ts)})}ha==null||ha.forEach(function(Ts){return it(ta,Ts)})},hasProcessedResolutions:function(){return Gi}};function it(ct,ha){if(!(!ha||!ha.originalPath||!ha.resolvedFileName)){var ta=ha.resolvedFileName,Po=ha.originalPath;ct.setSymlinkedFile(e.toPath(Po,c,re),ta);var es=wc(ta,Po,c,re)||e.emptyArray,nc=es[0],Zt=es[1];nc&&Zt&&ct.setSymlinkedDirectory(Zt,{real:nc,realPath:e.toPath(nc,c,re)})}}}e.createSymlinkCache=cs;function wc(c,re,lr,Kr){for(var Gn=e.getPathComponents(e.getNormalizedAbsolutePath(c,lr)),Gi=e.getPathComponents(e.getNormalizedAbsolutePath(re,lr)),it=!1;Gn.length>=2&&Gi.length>=2&&!Oc(Gn[Gn.length-2],Kr)&&!Oc(Gi[Gi.length-2],Kr)&&Kr(Gn[Gn.length-1])===Kr(Gi[Gi.length-1]);)Gn.pop(),Gi.pop(),it=!0;return it?[e.getPathFromPathComponents(Gn),e.getPathFromPathComponents(Gi)]:void 0}function Oc(c,re){return c!==void 0&&(re(c)==="node_modules"||e.startsWith(c,"@"))}function Uu(c){return e.isAnyDirectorySeparator(c.charCodeAt(0))?c.slice(1):void 0}function iu(c,re,lr){var Kr=e.tryRemovePrefix(c,re,lr);return Kr===void 0?void 0:Uu(Kr)}e.tryRemoveDirectoryPrefix=iu;var Rl=/[^\w\s\/]/g;function Ud(c){return c.replace(Rl,Np)}e.regExpEscape=Ud;function Np(c){return"\\"+c}var hu=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var dd="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),zd={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(dd,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(c){return xg(c,zd.singleAsteriskRegexFragment)}},Sg={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(dd,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(c){return xg(c,Sg.singleAsteriskRegexFragment)}},Pp={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(c){return xg(c,Pp.singleAsteriskRegexFragment)}},Vy={files:zd,directories:Sg,exclude:Pp};function Du(c,re,lr){var Kr=Iv(c,re,lr);if(!(!Kr||!Kr.length)){var Gn=Kr.map(function(it){return"(".concat(it,")")}).join("|"),Gi=lr==="exclude"?"($|/)":"$";return"^(".concat(Gn,")").concat(Gi)}}e.getRegularExpressionForWildcard=Du;function Iv(c,re,lr){if(!(c===void 0||c.length===0))return e.flatMap(c,function(Kr){return Kr&&pf(Kr,re,lr,Vy[lr])})}e.getRegularExpressionsForWildcards=Iv;function wv(c){return!/[.*?]/.test(c)}e.isImplicitGlob=wv;function Ov(c,re,lr){var Kr=c&&pf(c,re,lr,Vy[lr]);return Kr&&"^(".concat(Kr,")").concat(lr==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Ov;function pf(c,re,lr,Kr){var Gn=Kr.singleAsteriskRegexFragment,Gi=Kr.doubleAsteriskRegexFragment,it=Kr.replaceWildcardCharacter,ct="",ha=!1,ta=e.getNormalizedPathComponents(c,re),Po=e.last(ta);if(!(lr!=="exclude"&&Po==="**")){ta[0]=e.removeTrailingDirectorySeparator(ta[0]),wv(Po)&&ta.push("**","*");for(var es=0,nc=0,Zt=ta;nc<Zt.length;nc++){var Ts=Zt[nc];if(Ts==="**")ct+=Gi;else if(lr==="directories"&&(ct+="(",es++),ha&&(ct+=e.directorySeparator),lr!=="exclude"){var _a="";Ts.charCodeAt(0)===42?(_a+="([^./]"+Gn+")?",Ts=Ts.substr(1)):Ts.charCodeAt(0)===63&&(_a+="[^./]",Ts=Ts.substr(1)),_a+=Ts.replace(Rl,it),_a!==Ts&&(ct+=dd),ct+=_a}else ct+=Ts.replace(Rl,it);ha=!0}for(;es>0;)ct+=")?",es--;return ct}}function xg(c,re){return c==="*"?re:c==="?"?"[^/]":"\\"+c}function Qc(c,re,lr,Kr,Gn){c=e.normalizePath(c),Gn=e.normalizePath(Gn);var Gi=e.combinePaths(Gn,c);return{includeFilePatterns:e.map(Iv(lr,Gi,"files"),function(it){return"^".concat(it,"$")}),includeFilePattern:Du(lr,Gi,"files"),includeDirectoryPattern:Du(lr,Gi,"directories"),excludePattern:Du(re,Gi,"exclude"),basePaths:z0(c,lr,Kr)}}e.getFileMatcherPatterns=Qc;function om(c,re){return new RegExp(c,re?"":"i")}e.getRegexFromPattern=om;function U0(c,re,lr,Kr,Gn,Gi,it,ct,ha){c=e.normalizePath(c),Gi=e.normalizePath(Gi);for(var ta=Qc(c,lr,Kr,Gn,Gi),Po=ta.includeFilePatterns&&ta.includeFilePatterns.map(function(hs){return om(hs,Gn)}),es=ta.includeDirectoryPattern&&om(ta.includeDirectoryPattern,Gn),nc=ta.excludePattern&&om(ta.excludePattern,Gn),Zt=Po?Po.map(function(){return[]}):[[]],Ts=new e.Map,_a=e.createGetCanonicalFileName(Gn),vs=0,hl=ta.basePaths;vs<hl.length;vs++){var jl=hl[vs];Zp(jl,e.combinePaths(Gi,jl),it)}return e.flatten(Zt);function Zp(hs,Wu,cl){var Jm=_a(ha(Wu));if(!Ts.has(Jm)){Ts.set(Jm,!0);for(var Ng=ct(hs),Ip=Ng.files,ah=Ng.directories,Gv=function(gd){var Vu=e.combinePaths(hs,gd),oh=e.combinePaths(Wu,gd);if(re&&!e.fileExtensionIsOneOf(Vu,re)||nc&&nc.test(oh))return"continue";if(!Po)Zt[0].push(Vu);else{var $p=e.findIndex(Po,function(s1){return s1.test(oh)});$p!==-1&&Zt[$p].push(Vu)}},Yp=0,jm=e.sort(Ip,e.compareStringsCaseSensitive);Yp<jm.length;Yp++){var qd=jm[Yp];Gv(qd)}if(!(cl!==void 0&&(cl--,cl===0)))for(var Hv=0,Um=e.sort(ah,e.compareStringsCaseSensitive);Hv<Um.length;Hv++){var qd=Um[Hv],lm=e.combinePaths(hs,qd),ul=e.combinePaths(Wu,qd);(!es||es.test(ul))&&(!nc||!nc.test(ul))&&Zp(lm,ul,cl)}}}}e.matchFiles=U0;function z0(c,re,lr){var Kr=[c];if(re){for(var Gn=[],Gi=0,it=re;Gi<it.length;Gi++){var ct=it[Gi],ha=e.isRootedDiskPath(ct)?ct:e.normalizePath(e.combinePaths(c,ct));Gn.push(Bl(ha))}Gn.sort(e.getStringComparer(!lr));for(var ta=function(Zt){e.every(Kr,function(Ts){return!e.containsPath(Ts,Zt,c,!lr)})&&Kr.push(Zt)},Po=0,es=Gn;Po<es.length;Po++){var nc=es[Po];ta(nc)}}return Kr}function Bl(c){var re=e.indexOfAnyCharCode(c,hu);return re<0?e.hasExtension(c)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(c)):c:c.substring(0,c.lastIndexOf(e.directorySeparator,re))}function Cg(c,re){return re||Fv(c)||3}e.ensureScriptKind=Cg;function Fv(c){var re=c.substr(c.lastIndexOf("."));switch(re.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}}e.getScriptKindFromFileName=Fv,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var W0=zn(zn([],e.supportedTSExtensions,!0),[[".json"]],!1),V0=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var sm=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],q0=zn(zn([],sm,!0),[[".json"]],!1);e.supportedDeclarationExtensions=[".d.ts",".d.cts",".d.mts"];function Bm(c,re){var lr=c&&am(c);if(!re||re.length===0)return lr?sm:e.supportedTSExtensions;var Kr=lr?sm:e.supportedTSExtensions,Gn=e.flatten(Kr),Gi=zn(zn([],Kr,!0),e.mapDefined(re,function(it){return it.scriptKind===7||lr&&Mv(it.scriptKind)&&Gn.indexOf(it.extension)===-1?[it.extension]:void 0}),!0);return Gi}e.getSupportedExtensions=Bm;function qy(c,re){return!c||!c.resolveJsonModule?re:re===sm?q0:re===e.supportedTSExtensions?W0:zn(zn([],re,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=qy;function Mv(c){return c===1||c===2}function Gy(c){return e.some(e.supportedJSExtensionsFlat,function(re){return e.fileExtensionIs(c,re)})}e.hasJSFileExtension=Gy;function G0(c){return e.some(e.supportedTSExtensionsFlat,function(re){return e.fileExtensionIs(c,re)})}e.hasTSFileExtension=G0;function H0(c,re,lr){if(!c)return!1;for(var Kr=Bm(re,lr),Gn=0,Gi=e.flatten(qy(re,Kr));Gn<Gi.length;Gn++){var it=Gi[Gn];if(e.fileExtensionIs(c,it))return!0}return!1}e.isSupportedSourceFileName=H0;function Hy(c){var re=c.match(/\//g);return re?re.length:0}function Ky(c,re){return e.compareValues(Hy(c),Hy(re))}e.compareNumberOfDirectorySeparators=Ky;var Lv=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Wd(c){for(var re=0,lr=Lv;re<lr.length;re++){var Kr=lr[re],Gn=Rv(c,Kr);if(Gn!==void 0)return Gn}return c}e.removeFileExtension=Wd;function Rv(c,re){return e.fileExtensionIs(c,re)?Qy(c,re):void 0}e.tryRemoveExtension=Rv;function Qy(c,re){return c.substring(0,c.length-re.length)}e.removeExtension=Qy;function K0(c,re){return e.changeAnyExtension(c,re,Lv,!1)}e.changeExtension=K0;function Bv(c){var re=c.indexOf("*");return re===-1?c:c.indexOf("*",re+1)!==-1?void 0:{prefix:c.substr(0,re),suffix:c.substr(re+1)}}e.tryParsePattern=Bv;function Xy(c){return e.mapDefined(e.getOwnKeys(c),function(re){return Bv(re)})}e.tryParsePatterns=Xy;function Tg(c){return!(c>=0)}e.positionIsSynthesized=Tg;function Zy(c){return c===".ts"||c===".tsx"||c===".d.ts"||c===".cts"||c===".mts"||c===".d.mts"||c===".d.cts"}e.extensionIsTS=Zy;function Q0(c){return Zy(c)||c===".json"}e.resolutionExtensionIsTSOrJson=Q0;function cm(c){var re=um(c);return re!==void 0?re:e.Debug.fail("File ".concat(c," has unknown extension."))}e.extensionFromPath=cm;function Jv(c){return um(c)!==void 0}e.isAnySupportedFileExtension=Jv;function um(c){return e.find(Lv,function(re){return e.fileExtensionIs(c,re)})}e.tryGetExtensionFromPath=um;function X0(c,re){return c.checkJsDirective?c.checkJsDirective.enabled:re.checkJs}e.isCheckJsEnabledForFile=X0,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function Z0(c,re){for(var lr=[],Kr=0,Gn=c;Kr<Gn.length;Kr++){var Gi=Gn[Kr];if(Gi===re)return re;e.isString(Gi)||lr.push(Gi)}return e.findBestPatternMatch(lr,function(it){return it},re)}e.matchPatternOrExact=Z0;function Pu(c,re){var lr=c.indexOf(re);return e.Debug.assert(lr!==-1),c.slice(lr)}e.sliceAfter=Pu;function zu(c){for(var re,lr=[],Kr=1;Kr<arguments.length;Kr++)lr[Kr-1]=arguments[Kr];return lr.length&&(c.relatedInformation||(c.relatedInformation=[]),e.Debug.assert(c.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(re=c.relatedInformation).push.apply(re,lr)),c}e.addRelatedInfo=zu;function Ff(c,re){e.Debug.assert(c.length!==0);for(var lr=re(c[0]),Kr=lr,Gn=1;Gn<c.length;Gn++){var Gi=re(c[Gn]);Gi<lr?lr=Gi:Gi>Kr&&(Kr=Gi)}return{min:lr,max:Kr}}e.minAndMax=Ff;function Jl(c){return{pos:U(c),end:c.end}}e.rangeOfNode=Jl;function Yy(c,re){var lr=re.pos-1,Kr=e.skipTrivia(c.text,re.end)+1;return{pos:lr,end:Kr}}e.rangeOfTypeParameters=Yy;function Eg(c,re,lr){return re.skipLibCheck&&c.isDeclarationFile||re.skipDefaultLibCheck&&c.hasNoDefaultLib||lr.isSourceOfProjectReferenceRedirect(c.fileName)}e.skipTypeChecking=Eg;function Vd(c,re){return c===re||typeof c=="object"&&c!==null&&typeof re=="object"&&re!==null&&e.equalOwnProperties(c,re,Vd)}e.isJsonEqual=Vd;function sl(c){var re;switch(c.charCodeAt(1)){case 98:case 66:re=1;break;case 111:case 79:re=3;break;case 120:case 88:re=4;break;default:for(var lr=c.length-1,Kr=0;c.charCodeAt(Kr)===48;)Kr++;return c.slice(Kr,lr)||"0"}for(var Gn=2,Gi=c.length-1,it=(Gi-Gn)*re,ct=new Uint16Array((it>>>4)+(it&15?1:0)),ha=Gi-1,ta=0;ha>=Gn;ha--,ta+=re){var Po=ta>>>4,es=c.charCodeAt(ha),nc=es<=57?es-48:10+es-(es<=70?65:97),Zt=nc<<(ta&15);ct[Po]|=Zt;var Ts=Zt>>>16;Ts&&(ct[Po+1]|=Ts)}for(var _a="",vs=ct.length-1,hl=!0;hl;){var jl=0;hl=!1;for(var Po=vs;Po>=0;Po--){var Zp=jl<<16|ct[Po],hs=Zp/10|0;ct[Po]=hs,jl=Zp-hs*10,hs&&!hl&&(vs=Po,hl=!0)}_a=jl+_a}return _a}e.parsePseudoBigInt=sl;function $y(c){var re=c.negative,lr=c.base10Value;return(re&&lr!=="0"?"-":"")+lr}e.pseudoBigIntToString=$y;function jv(c){return!!(c.flags&16777216)||wn(c)||Iu(c)||Xc(c)||!(tn(c)||Y0(c))}e.isValidTypeOnlyAliasUseSite=jv;function Y0(c){return e.isIdentifier(c)&&e.isShorthandPropertyAssignment(c.parent)&&c.parent.name===c}function Xc(c){for(;c.kind===79||c.kind===208;)c=c.parent;if(c.kind!==164)return!1;if(Ls(c.parent,256))return!0;var re=c.parent.parent.kind;return re===261||re===184}function Iu(c){if(c.kind!==79)return!1;var re=e.findAncestor(c.parent,function(lr){switch(lr.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return(re==null?void 0:re.token)===117||(re==null?void 0:re.parent.kind)===261}function Mf(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)}e.isIdentifierTypeReference=Mf;function w_(c,re){if(re===void 0&&(re=e.equateValues),c.length<2)return!0;for(var lr=c[0],Kr=1,Gn=c.length;Kr<Gn;Kr++){var Gi=c[Kr];if(!re(lr,Gi))return!1}return!0}e.arrayIsHomogeneous=w_;function kg(c,re){return c.pos=re,c}e.setTextRangePos=kg;function vo(c,re){return c.end=re,c}e.setTextRangeEnd=vo;function eh(c,re,lr){return vo(kg(c,re),lr)}e.setTextRangePosEnd=eh;function $0(c,re,lr){return eh(c,re,re+lr)}e.setTextRangePosWidth=$0;function e1(c,re){return c&&(c.flags=re),c}e.setNodeFlags=e1;function a_(c,re){return c&&re&&(c.parent=re),c}e.setParent=a_;function rc(c,re){if(c)for(var lr=0,Kr=c;lr<Kr.length;lr++){var Gn=Kr[lr];a_(Gn,re)}return c}e.setEachParent=rc;function r1(c,re){if(!c)return c;return e.forEachChildRecursively(c,e.isJSDocNode(c)?lr:Gn),c;function lr(Gi,it){if(re&&Gi.parent===it)return"skip";a_(Gi,it)}function Kr(Gi){if(e.hasJSDocNodes(Gi))for(var it=0,ct=Gi.jsDoc;it<ct.length;it++){var ha=ct[it];lr(ha,Gi),e.forEachChildRecursively(ha,lr)}}function Gn(Gi,it){return lr(Gi,it)||Kr(Gi)}}e.setParentRecursive=r1;function Uv(c){return!e.isOmittedExpression(c)}function n1(c){return e.isArrayLiteralExpression(c)&&e.every(c.elements,Uv)}e.isPackedArrayLiteral=n1;function zv(c){for(e.Debug.assertIsDefined(c.parent);;){var re=c.parent;if(e.isParenthesizedExpression(re)){c=re;continue}if(e.isExpressionStatement(re)||e.isVoidExpression(re)||e.isForStatement(re)&&(re.initializer===c||re.incrementor===c))return!0;if(e.isCommaListExpression(re)){if(c!==e.last(re.elements))return!0;c=re;continue}if(e.isBinaryExpression(re)&&re.operatorToken.kind===27){if(c===re.left)return!0;c=re;continue}return!1}}e.expressionResultIsUnused=zv;function Wv(c){return e.some(e.ignoredPaths,function(re){return e.stringContains(c,re)})}e.containsIgnoredPath=Wv;function rh(c){if(!!c.parent){switch(c.kind){case 165:var re=c.parent;return re.kind===192?void 0:re.typeParameters;case 166:return c.parent.parameters;case 201:return c.parent.templateSpans;case 236:return c.parent.templateSpans;case 167:{var lr=c.parent;return e.canHaveDecorators(lr)?lr.modifiers:e.canHaveIllegalDecorators(lr)?lr.illegalDecorators:void 0}case 294:return c.parent.heritageClauses}var Kr=c.parent;if(e.isJSDocTag(c))return e.isJSDocTypeLiteral(c.parent)?void 0:c.parent.tags;switch(Kr.kind){case 184:case 261:return e.isTypeElement(c)?Kr.members:void 0;case 189:case 190:return Kr.types;case 186:case 206:case 354:case 272:case 276:return Kr.elements;case 207:case 289:return Kr.properties;case 210:case 211:return e.isTypeNode(c)?Kr.typeArguments:Kr.expression===c?void 0:Kr.arguments;case 281:case 285:return e.isJsxChild(c)?Kr.children:void 0;case 283:case 282:return e.isTypeNode(c)?Kr.typeArguments:void 0;case 238:case 292:case 293:case 265:return Kr.statements;case 266:return Kr.clauses;case 260:case 228:return e.isClassElement(c)?Kr.members:void 0;case 263:return e.isEnumMember(c)?Kr.members:void 0;case 308:return Kr.statements}}}e.getContainingNodeArray=rh;function i1(c){if(!c.typeParameters){if(e.some(c.parameters,function(lr){return!ml(lr)}))return!0;if(c.kind!==216){var re=e.firstOrUndefined(c.parameters);if(!(re&&gl(re)))return!0}}return!1}e.hasContextSensitiveParameters=i1;function t1(c){return c==="Infinity"||c==="-Infinity"||c==="NaN"}e.isInfinityOrNaNString=t1;function uc(c){return c.kind===257&&c.parent.kind===295}e.isCatchClauseVariableDeclaration=uc;function O_(c){var re=c.valueDeclaration&&Yu(c.valueDeclaration);return!!re&&(e.isParameter(re)||uc(re))}e.isParameterOrCatchClauseVariable=O_;function Ag(c){return c.kind===215||c.kind===216}e.isFunctionExpressionOrArrowFunction=Ag;function Vv(c){return c.replace(/\$/gm,function(){return"\\$"})}e.escapeSnippetText=Vv;function nh(c){return(+c).toString()===c}e.isNumericLiteralName=nh;function qv(c,re,lr,Kr){return e.isIdentifierText(c,re)?e.factory.createIdentifier(c):!Kr&&nh(c)&&+c>=0?e.factory.createNumericLiteral(+c):e.factory.createStringLiteral(c,!!lr)}e.createPropertyNameNodeForIdentifierOrLiteral=qv;function pd(c){return!!(c.flags&262144&&c.isThisType)}e.isThisTypeParameter=pd;function a1(c){var re=0,lr=0,Kr=0,Gn=0,Gi;(function(ta){ta[ta.BeforeNodeModules=0]="BeforeNodeModules",ta[ta.NodeModules=1]="NodeModules",ta[ta.Scope=2]="Scope",ta[ta.PackageContent=3]="PackageContent"})(Gi||(Gi={}));for(var it=0,ct=0,ha=0;ct>=0;)switch(it=ct,ct=c.indexOf("/",it+1),ha){case 0:c.indexOf(e.nodeModulesPathPart,it)===it&&(re=it,lr=ct,ha=1);break;case 1:case 2:ha===1&&c.charAt(it+1)==="@"?ha=2:(Kr=ct,ha=3);break;case 3:c.indexOf(e.nodeModulesPathPart,it)===it?ha=1:ha=3;break}return Gn=it,ha>1?{topLevelNodeModulesIndex:re,topLevelPackageNameIndex:lr,packageRootIndex:Kr,fileNameIndex:Gn}:void 0}e.getNodeModulePathParts=a1;function ih(c){var re;return c.kind===343?(re=c.typeExpression)===null||re===void 0?void 0:re.type:c.type}e.getParameterTypeNode=ih;function th(c){switch(c.kind){case 165:case 260:case 261:case 262:case 263:case 348:case 341:case 342:return!0;case 270:return c.isTypeOnly;case 273:case 278:return c.parent.parent.isTypeOnly;default:return!1}}e.isTypeDeclaration=th;function o1(c){return e.isEnumDeclaration(c)||e.isVariableStatement(c)||e.isFunctionDeclaration(c)||e.isClassDeclaration(c)||e.isInterfaceDeclaration(c)||th(c)||e.isModuleDeclaration(c)&&!vr(c)&&!dr(c)}e.canHaveExportModifier=o1})(fr||(fr={}));var fr;(function(e){function o(){var ne,K,se,O,ie;return{createBaseSourceFileNode:_e,createBaseIdentifierNode:Q,createBasePrivateIdentifierNode:p,createBaseTokenNode:D,createBaseNode:le};function _e(de){return new(ie||(ie=e.objectAllocator.getSourceFileConstructor()))(de,-1,-1)}function Q(de){return new(se||(se=e.objectAllocator.getIdentifierConstructor()))(de,-1,-1)}function p(de){return new(O||(O=e.objectAllocator.getPrivateIdentifierConstructor()))(de,-1,-1)}function D(de){return new(K||(K=e.objectAllocator.getTokenConstructor()))(de,-1,-1)}function le(de){return new(ne||(ne=e.objectAllocator.getNodeConstructor()))(de,-1,-1)}}e.createBaseNodeFactory=o})(fr||(fr={}));var fr;(function(e){function o(ne){var K,se;return{getParenthesizeLeftSideOfBinaryForOperator:O,getParenthesizeRightSideOfBinaryForOperator:ie,parenthesizeLeftSideOfBinary:le,parenthesizeRightSideOfBinary:de,parenthesizeExpressionOfComputedPropertyName:te,parenthesizeConditionOfConditionalExpression:oe,parenthesizeBranchOfConditionalExpression:ae,parenthesizeExpressionOfExportDefault:E,parenthesizeExpressionOfNew:I,parenthesizeLeftSideOfAccess:f,parenthesizeOperandOfPostfixUnary:m,parenthesizeOperandOfPrefixUnary:y,parenthesizeExpressionsOfCommaDelimitedList:S,parenthesizeExpressionForDisallowedComma:k,parenthesizeExpressionOfExpressionStatement:C,parenthesizeConciseBodyOfArrowFunction:me,parenthesizeCheckTypeOfConditionalType:De,parenthesizeExtendsTypeOfConditionalType:X,parenthesizeConstituentTypesOfUnionType:H,parenthesizeConstituentTypeOfUnionType:M,parenthesizeConstituentTypesOfIntersectionType:h,parenthesizeConstituentTypeOfIntersectionType:V,parenthesizeOperandOfTypeOperator:F,parenthesizeOperandOfReadonlyTypeOperator:$,parenthesizeNonArrayTypeOfPostfixType:L,parenthesizeElementTypesOfTupleType:P,parenthesizeElementTypeOfTupleType:N,parenthesizeTypeOfOptionalType:q,parenthesizeTypeArguments:b,parenthesizeLeadingTypeArgument:G};function O(x){K||(K=new e.Map);var T=K.get(x);return T||(T=function(Z){return le(x,Z)},K.set(x,T)),T}function ie(x){se||(se=new e.Map);var T=se.get(x);return T||(T=function(Z){return de(x,void 0,Z)},se.set(x,T)),T}function _e(x,T,Z,B){var u=e.getOperatorPrecedence(223,x),A=e.getOperatorAssociativity(223,x),w=e.skipPartiallyEmittedExpressions(T);if(!Z&&T.kind===216&&u>3)return!0;var z=e.getExpressionPrecedence(w);switch(e.compareValues(z,u)){case-1:return!(!Z&&A===1&&T.kind===226);case 1:return!1;case 0:if(Z)return A===1;if(e.isBinaryExpression(w)&&w.operatorToken.kind===x){if(Q(x))return!1;if(x===39){var U=B?p(B):0;if(e.isLiteralKind(U)&&U===p(w))return!1}}var ge=e.getExpressionAssociativity(w);return ge===0}}function Q(x){return x===41||x===51||x===50||x===52||x===27}function p(x){if(x=e.skipPartiallyEmittedExpressions(x),e.isLiteralKind(x.kind))return x.kind;if(x.kind===223&&x.operatorToken.kind===39){if(x.cachedLiteralKind!==void 0)return x.cachedLiteralKind;var T=p(x.left),Z=e.isLiteralKind(T)&&T===p(x.right)?T:0;return x.cachedLiteralKind=Z,Z}return 0}function D(x,T,Z,B){var u=e.skipPartiallyEmittedExpressions(T);return u.kind===214?T:_e(x,T,Z,B)?ne.createParenthesizedExpression(T):T}function le(x,T){return D(x,T,!0)}function de(x,T,Z){return D(x,Z,!1,T)}function te(x){return e.isCommaSequence(x)?ne.createParenthesizedExpression(x):x}function oe(x){var T=e.getOperatorPrecedence(224,57),Z=e.skipPartiallyEmittedExpressions(x),B=e.getExpressionPrecedence(Z);return e.compareValues(B,T)!==1?ne.createParenthesizedExpression(x):x}function ae(x){var T=e.skipPartiallyEmittedExpressions(x);return e.isCommaSequence(T)?ne.createParenthesizedExpression(x):x}function E(x){var T=e.skipPartiallyEmittedExpressions(x),Z=e.isCommaSequence(T);if(!Z)switch(e.getLeftmostExpression(T,!1).kind){case 228:case 215:Z=!0}return Z?ne.createParenthesizedExpression(x):x}function I(x){var T=e.getLeftmostExpression(x,!0);switch(T.kind){case 210:return ne.createParenthesizedExpression(x);case 211:return T.arguments?x:ne.createParenthesizedExpression(x)}return f(x)}function f(x,T){var Z=e.skipPartiallyEmittedExpressions(x);return e.isLeftHandSideExpression(Z)&&(Z.kind!==211||Z.arguments)&&(T||!e.isOptionalChain(Z))?x:e.setTextRange(ne.createParenthesizedExpression(x),x)}function m(x){return e.isLeftHandSideExpression(x)?x:e.setTextRange(ne.createParenthesizedExpression(x),x)}function y(x){return e.isUnaryExpression(x)?x:e.setTextRange(ne.createParenthesizedExpression(x),x)}function S(x){var T=e.sameMap(x,k);return e.setTextRange(ne.createNodeArray(T,x.hasTrailingComma),x)}function k(x){var T=e.skipPartiallyEmittedExpressions(x),Z=e.getExpressionPrecedence(T),B=e.getOperatorPrecedence(223,27);return Z>B?x:e.setTextRange(ne.createParenthesizedExpression(x),x)}function C(x){var T=e.skipPartiallyEmittedExpressions(x);if(e.isCallExpression(T)){var Z=T.expression,B=e.skipPartiallyEmittedExpressions(Z).kind;if(B===215||B===216){var u=ne.updateCallExpression(T,e.setTextRange(ne.createParenthesizedExpression(Z),Z),T.typeArguments,T.arguments);return ne.restoreOuterExpressions(x,u,8)}}var A=e.getLeftmostExpression(T,!1).kind;return A===207||A===215?e.setTextRange(ne.createParenthesizedExpression(x),x):x}function me(x){return!e.isBlock(x)&&(e.isCommaSequence(x)||e.getLeftmostExpression(x,!1).kind===207)?e.setTextRange(ne.createParenthesizedExpression(x),x):x}function De(x){switch(x.kind){case 181:case 182:case 191:return ne.createParenthesizedType(x)}return x}function X(x){switch(x.kind){case 191:return ne.createParenthesizedType(x)}return x}function M(x){switch(x.kind){case 189:case 190:return ne.createParenthesizedType(x)}return De(x)}function H(x){return ne.createNodeArray(e.sameMap(x,M))}function V(x){switch(x.kind){case 189:case 190:return ne.createParenthesizedType(x)}return M(x)}function h(x){return ne.createNodeArray(e.sameMap(x,V))}function F(x){switch(x.kind){case 190:return ne.createParenthesizedType(x)}return V(x)}function $(x){switch(x.kind){case 195:return ne.createParenthesizedType(x)}return F(x)}function L(x){switch(x.kind){case 192:case 195:case 183:return ne.createParenthesizedType(x)}return F(x)}function P(x){return ne.createNodeArray(e.sameMap(x,N))}function N(x){return J(x)?ne.createParenthesizedType(x):x}function J(x){return e.isJSDocNullableType(x)?x.postfix:e.isNamedTupleMember(x)||e.isFunctionTypeNode(x)||e.isConstructorTypeNode(x)||e.isTypeOperatorNode(x)?J(x.type):e.isConditionalTypeNode(x)?J(x.falseType):e.isUnionTypeNode(x)||e.isIntersectionTypeNode(x)?J(e.last(x.types)):e.isInferTypeNode(x)?!!x.typeParameter.constraint&&J(x.typeParameter.constraint):!1}function q(x){return J(x)?ne.createParenthesizedType(x):L(x)}function G(x){return e.isFunctionOrConstructorTypeNode(x)&&x.typeParameters?ne.createParenthesizedType(x):x}function ye(x,T){return T===0?G(x):x}function b(x){if(e.some(x))return ne.createNodeArray(e.sameMap(x,ye))}}e.createParenthesizerRules=o,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(ne){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(ne){return e.identity},parenthesizeLeftSideOfBinary:function(ne,K){return K},parenthesizeRightSideOfBinary:function(ne,K,se){return se},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(ne){return e.cast(ne,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(ne){return e.cast(ne,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(ne){return e.cast(ne,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(ne){return e.cast(ne,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(ne){return e.cast(ne,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(ne){return e.cast(ne,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(ne){return e.cast(ne,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(ne){return e.cast(ne,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(ne){return ne&&e.cast(ne,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}})(fr||(fr={}));var fr;(function(e){function o(ne){return{convertToFunctionBlock:K,convertToFunctionExpression:se,convertToArrayAssignmentElement:O,convertToObjectAssignmentElement:ie,convertToAssignmentPattern:_e,convertToObjectAssignmentPattern:Q,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:D};function K(le,de){if(e.isBlock(le))return le;var te=ne.createReturnStatement(le);e.setTextRange(te,le);var oe=ne.createBlock([te],de);return e.setTextRange(oe,le),oe}function se(le){if(!le.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var de=ne.createFunctionExpression(le.modifiers,le.asteriskToken,le.name,le.typeParameters,le.parameters,le.type,le.body);return e.setOriginalNode(de,le),e.setTextRange(de,le),e.getStartsOnNewLine(le)&&e.setStartsOnNewLine(de,!0),de}function O(le){if(e.isBindingElement(le)){if(le.dotDotDotToken)return e.Debug.assertNode(le.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ne.createSpreadElement(le.name),le),le);var de=D(le.name);return le.initializer?e.setOriginalNode(e.setTextRange(ne.createAssignment(de,le.initializer),le),le):de}return e.cast(le,e.isExpression)}function ie(le){if(e.isBindingElement(le)){if(le.dotDotDotToken)return e.Debug.assertNode(le.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ne.createSpreadAssignment(le.name),le),le);if(le.propertyName){var de=D(le.name);return e.setOriginalNode(e.setTextRange(ne.createPropertyAssignment(le.propertyName,le.initializer?ne.createAssignment(de,le.initializer):de),le),le)}return e.Debug.assertNode(le.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ne.createShorthandPropertyAssignment(le.name,le.initializer),le),le)}return e.cast(le,e.isObjectLiteralElementLike)}function _e(le){switch(le.kind){case 204:case 206:return p(le);case 203:case 207:return Q(le)}}function Q(le){return e.isObjectBindingPattern(le)?e.setOriginalNode(e.setTextRange(ne.createObjectLiteralExpression(e.map(le.elements,ie)),le),le):e.cast(le,e.isObjectLiteralExpression)}function p(le){return e.isArrayBindingPattern(le)?e.setOriginalNode(e.setTextRange(ne.createArrayLiteralExpression(e.map(le.elements,O)),le),le):e.cast(le,e.isArrayLiteralExpression)}function D(le){return e.isBindingPattern(le)?_e(le):e.cast(le,e.isExpression)}}e.createNodeConverters=o,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(fr||(fr={}));var fr;(function(e){var o=0,ne;(function(H){H[H.None=0]="None",H[H.NoParenthesizerRules=1]="NoParenthesizerRules",H[H.NoNodeConverters=2]="NoNodeConverters",H[H.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",H[H.NoOriginalNode=8]="NoOriginalNode"})(ne=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function K(H,V){var h=H&8?se:O,F=e.memoize(function(){return H&1?e.nullParenthesizerRules:e.createParenthesizerRules(u)}),$=e.memoize(function(){return H&2?e.nullNodeConverters:e.createNodeConverters(u)}),L=e.memoizeOne(function(_){return function(R,he){return ws(R,_,he)}}),P=e.memoizeOne(function(_){return function(R){return xa(_,R)}}),N=e.memoizeOne(function(_){return function(R){return gs(R,_)}}),J=e.memoizeOne(function(_){return function(){return Fd(_)}}),q=e.memoizeOne(function(_){return function(R){return Gf(_,R)}}),G=e.memoizeOne(function(_){return function(R,he){return Md(_,R,he)}}),ye=e.memoizeOne(function(_){return function(R,he){return C_(_,R,he)}}),b=e.memoizeOne(function(_){return function(R,he){return Tf(_,R,he)}}),x=e.memoizeOne(function(_){return function(R,he){return Ac(_,R,he)}}),T=e.memoizeOne(function(_){return function(R,he,nr){return Ls(_,R,he,nr)}}),Z=e.memoizeOne(function(_){return function(R,he,nr){return ff(_,R,he,nr)}}),B=e.memoizeOne(function(_){return function(R,he,nr,$r){return E_(_,R,he,nr,$r)}}),u={get parenthesizer(){return F()},get converters(){return $()},baseFactory:V,flags:H,createNodeArray:A,createNumericLiteral:Oe,createBigIntLiteral:be,createStringLiteral:d,createStringLiteralFromNode:j,createRegularExpressionLiteral:Ce,createLiteralLikeNode:Se,createIdentifier:wr,updateIdentifier:mr,createTempVariable:Ue,createLoopVariable:t,createUniqueName:qr,getGeneratedNameForNode:ln,createPrivateIdentifier:vr,createUniquePrivateName:Ur,getGeneratedPrivateNameForNode:Cr,createToken:Br,createSuper:pn,createThis:ve,createNull:or,createTrue:Ee,createFalse:ze,createModifier:Ar,createModifiersFromModifierFlags:xe,createQualifiedName:cr,updateQualifiedName:Mr,createComputedPropertyName:Rr,updateComputedPropertyName:Qr,createTypeParameterDeclaration:en,updateTypeParameterDeclaration:vn,createParameterDeclaration:Ie,updateParameterDeclaration:We,createDecorator:xr,updateDecorator:Lr,createPropertySignature:xn,updatePropertySignature:An,createPropertyDeclaration:ai,updatePropertyDeclaration:Dr,createMethodSignature:Pr,updateMethodSignature:jr,createMethodDeclaration:on,updateMethodDeclaration:je,createConstructorDeclaration:ue,updateConstructorDeclaration:Ke,createGetAccessorDeclaration:hr,updateGetAccessorDeclaration:_r,createSetAccessorDeclaration:zr,updateSetAccessorDeclaration:fn,createCallSignature:Wn,updateCallSignature:bn,createConstructSignature:qn,updateConstructSignature:yn,createIndexSignature:Hn,updateIndexSignature:Ai,createClassStaticBlockDeclaration:Te,updateClassStaticBlockDeclaration:Ye,createTemplateLiteralTypeSpan:ti,updateTemplateLiteralTypeSpan:Hi,createKeywordTypeNode:Ni,createTypePredicateNode:gi,updateTypePredicateNode:Pn,createTypeReferenceNode:Pe,updateTypeReferenceNode:Ir,createFunctionTypeNode:we,updateFunctionTypeNode:hn,createConstructorTypeNode:gn,updateConstructorTypeNode:Dn,createTypeQueryNode:Ge,updateTypeQueryNode:cn,createTypeLiteralNode:Vn,updateTypeLiteralNode:Ki,createArrayTypeNode:dt,updateArrayTypeNode:qi,createTupleTypeNode:Ci,updateTupleTypeNode:Tt,createNamedTupleMember:ot,updateNamedTupleMember:Zi,createOptionalTypeNode:ni,updateOptionalTypeNode:Va,createRestTypeNode:Ua,updateRestTypeNode:za,createUnionTypeNode:ho,updateUnionTypeNode:Aa,createIntersectionTypeNode:Vi,updateIntersectionTypeNode:Xi,createConditionalTypeNode:ao,updateConditionalTypeNode:fo,createInferTypeNode:As,updateInferTypeNode:so,createImportTypeNode:Zo,updateImportTypeNode:To,createParenthesizedType:pr,updateParenthesizedType:Fr,createThisTypeNode:yi,createTypeOperatorNode:Dt,updateTypeOperatorNode:Ft,createIndexedAccessTypeNode:Pa,updateIndexedAccessTypeNode:Ve,createMappedTypeNode:tn,updateMappedTypeNode:Nn,createLiteralTypeNode:wn,updateLiteralTypeNode:Je,createTemplateLiteralType:Xo,updateTemplateLiteralType:Ho,createObjectBindingPattern:ur,updateObjectBindingPattern:yr,createArrayBindingPattern:Jr,updateArrayBindingPattern:Mn,createBindingElement:_i,updateBindingElement:di,createArrayLiteralExpression:Nt,updateArrayLiteralExpression:Gt,createObjectLiteralExpression:la,updateObjectLiteralExpression:na,createPropertyAccessExpression:H&4?function(_,R){return e.setEmitFlags(Ia(_,R),131072)}:Ia,updatePropertyAccessExpression:bs,createPropertyAccessChain:H&4?function(_,R,he){return e.setEmitFlags(ds(_,R,he),131072)}:ds,updatePropertyAccessChain:ps,createElementAccessExpression:ac,updateElementAccessExpression:Es,createElementAccessChain:ns,updateElementAccessChain:dc,createCallExpression:$s,updateCallExpression:pc,createCallChain:js,updateCallChain:Sc,createNewExpression:Ko,updateNewExpression:Mc,createTaggedTemplateExpression:Vs,updateTaggedTemplateExpression:oc,createTypeAssertion:Ss,updateTypeAssertion:ee,createParenthesizedExpression:Er,updateParenthesizedExpression:un,createFunctionExpression:$n,updateFunctionExpression:Ii,createArrowFunction:at,updateArrowFunction:Ji,createDeleteExpression:_t,updateDeleteExpression:Ht,createTypeOfExpression:Rt,updateTypeOfExpression:va,createVoidExpression:qe,updateVoidExpression:Tn,createAwaitExpression:Nr,updateAwaitExpression:ga,createPrefixUnaryExpression:xa,updatePrefixUnaryExpression:co,createPostfixUnaryExpression:gs,updatePostfixUnaryExpression:gc,createBinaryExpression:ws,updateBinaryExpression:qs,createConditionalExpression:ec,updateConditionalExpression:Rc,createTemplateExpression:_o,updateTemplateExpression:Gs,createTemplateHead:$c,createTemplateMiddle:Qu,createTemplateTail:Df,createNoSubstitutionTemplateLiteral:Xu,createTemplateLiteralLikeNode:xl,createYieldExpression:zc,updateYieldExpression:Zu,createSpreadElement:Hr,updateSpreadElement:Gr,createClassExpression:Bn,updateClassExpression:ui,createOmittedExpression:hi,createExpressionWithTypeArguments:Ei,updateExpressionWithTypeArguments:st,createAsExpression:Bi,updateAsExpression:Jt,createNonNullExpression:Ca,updateNonNullExpression:Yt,createSatisfiesExpression:Wt,updateSatisfiesExpression:Ga,createNonNullChain:$t,updateNonNullChain:po,createMetaProperty:Do,updateMetaProperty:Ns,createTemplateSpan:jo,updateTemplateSpan:ys,createSemicolonClassElement:Vo,createBlock:fe,updateBlock:sr,createVariableStatement:Tr,updateVariableStatement:Fn,createEmptyStatement:Si,createExpressionStatement:gt,updateExpressionStatement:jt,createIfStatement:fa,updateIfStatement:Ka,createDoStatement:no,updateDoStatement:Eo,createWhileStatement:Fa,updateWhileStatement:Qa,createForStatement:zo,updateForStatement:Uo,createForInStatement:ms,updateForInStatement:xc,createForOfStatement:Os,updateForOfStatement:Cl,createContinueStatement:m_,updateContinueStatement:pl,createBreakStatement:Zl,updateBreakStatement:Zr,createReturnStatement:Yl,updateReturnStatement:xu,createWithStatement:$l,updateWithStatement:Wf,createSwitchStatement:ef,updateSwitchStatement:Tl,createLabeledStatement:Ad,updateLabeledStatement:go,createThrowStatement:U_,updateThrowStatement:bf,createTryStatement:z_,updateTryStatement:Vf,createDebuggerStatement:W_,createVariableDeclaration:v_,updateVariableDeclaration:rf,createVariableDeclarationList:ou,updateVariableDeclarationList:V_,createFunctionDeclaration:y_,updateFunctionDeclaration:Qt,createClassDeclaration:Cu,updateClassDeclaration:Wc,createInterfaceDeclaration:q_,updateInterfaceDeclaration:Sf,createTypeAliasDeclaration:Nd,updateTypeAliasDeclaration:is,createEnumDeclaration:xs,updateEnumDeclaration:Yu,createModuleDeclaration:vc,updateModuleDeclaration:gp,createModuleBlock:El,updateModuleBlock:Cc,createCaseBlock:mp,updateCaseBlock:Pd,createNamespaceExportDeclaration:G_,updateNamespaceExportDeclaration:H_,createImportEqualsDeclaration:kl,updateImportEqualsDeclaration:Al,createImportDeclaration:Id,updateImportDeclaration:yp,createImportClause:D_,updateImportClause:Mu,createAssertClause:nf,updateAssertClause:K_,createAssertEntry:b_,updateAssertEntry:S_,createImportTypeAssertionContainer:xf,updateImportTypeAssertionContainer:qf,createNamespaceImport:tf,updateNamespaceImport:Q_,createNamespaceExport:af,updateNamespaceExport:Tc,createNamedImports:$u,updateNamedImports:of,createImportSpecifier:X_,updateImportSpecifier:x_,createExportAssignment:Tu,updateExportAssignment:Cf,createExportDeclaration:Lu,updateExportDeclaration:Ru,createNamedExports:Eu,updateNamedExports:hp,createExportSpecifier:Z_,updateExportSpecifier:Od,createMissingDeclaration:Y_,createExternalModuleReference:Fo,updateExternalModuleReference:sf,get createJSDocAllType(){return J(315)},get createJSDocUnknownType(){return J(316)},get createJSDocNonNullableType(){return ye(318)},get updateJSDocNonNullableType(){return b(318)},get createJSDocNullableType(){return ye(317)},get updateJSDocNullableType(){return b(317)},get createJSDocOptionalType(){return q(319)},get updateJSDocOptionalType(){return G(319)},get createJSDocVariadicType(){return q(321)},get updateJSDocVariadicType(){return G(321)},get createJSDocNamepathType(){return q(322)},get updateJSDocNamepathType(){return G(322)},createJSDocFunctionType:ss,updateJSDocFunctionType:wi,createJSDocTypeLiteral:Fs,updateJSDocTypeLiteral:Kt,createJSDocTypeExpression:Hs,updateJSDocTypeExpression:$_,createJSDocSignature:Ec,updateJSDocSignature:ji,createJSDocTemplateTag:Wo,updateJSDocTemplateTag:kc,createJSDocTypedefTag:Vc,updateJSDocTypedefTag:ed,createJSDocParameterTag:ts,updateJSDocParameterTag:gl,createJSDocPropertyTag:Ef,updateJSDocPropertyTag:T_,createJSDocCallbackTag:rl,updateJSDocCallbackTag:Ms,createJSDocAugmentsTag:ml,updateJSDocAugmentsTag:Hf,createJSDocImplementsTag:Kf,updateJSDocImplementsTag:ks,createJSDocSeeTag:Nl,updateJSDocSeeTag:Dp,createJSDocNameReference:Us,updateJSDocNameReference:cf,createJSDocMemberName:eu,updateJSDocMemberName:Ld,createJSDocLink:uf,updateJSDocLink:lf,createJSDocLinkCode:rd,updateJSDocLinkCode:Pl,createJSDocLinkPlain:nl,updateJSDocLinkPlain:nd,get createJSDocTypeTag(){return Z(346)},get updateJSDocTypeTag(){return B(346)},get createJSDocReturnTag(){return Z(344)},get updateJSDocReturnTag(){return B(344)},get createJSDocThisTag(){return Z(345)},get updateJSDocThisTag(){return B(345)},get createJSDocEnumTag(){return Z(342)},get updateJSDocEnumTag(){return B(342)},get createJSDocAuthorTag(){return x(333)},get updateJSDocAuthorTag(){return T(333)},get createJSDocClassTag(){return x(335)},get updateJSDocClassTag(){return T(335)},get createJSDocPublicTag(){return x(336)},get updateJSDocPublicTag(){return T(336)},get createJSDocPrivateTag(){return x(337)},get updateJSDocPrivateTag(){return T(337)},get createJSDocProtectedTag(){return x(338)},get updateJSDocProtectedTag(){return T(338)},get createJSDocReadonlyTag(){return x(339)},get updateJSDocReadonlyTag(){return T(339)},get createJSDocOverrideTag(){return x(340)},get updateJSDocOverrideTag(){return T(340)},get createJSDocDeprecatedTag(){return x(334)},get updateJSDocDeprecatedTag(){return T(334)},createJSDocUnknownTag:Ya,updateJSDocUnknownTag:zi,createJSDocText:Nc,updateJSDocText:Vp,createJSDocComment:Qf,updateJSDocComment:_f,createJsxElement:vl,updateJsxElement:Xf,createJsxSelfClosingElement:ku,updateJsxSelfClosingElement:il,createJsxOpeningElement:Il,updateJsxOpeningElement:kf,createJsxClosingElement:qc,updateJsxClosingElement:bp,createJsxFragment:ko,createJsxText:Af,updateJsxText:uu,createJsxOpeningFragment:Nf,createJsxJsxClosingFragment:Zf,updateJsxFragment:Gc,createJsxAttribute:wl,updateJsxAttribute:Sp,createJsxAttributes:Hc,updateJsxAttributes:Yo,createJsxSpreadAttribute:Rd,updateJsxSpreadAttribute:Yf,createJsxExpression:lu,updateJsxExpression:pu,createCaseClause:k_,updateCaseClause:id,createDefaultClause:Pf,updateDefaultClause:Ol,createHeritageClause:Au,updateHeritageClause:xp,createCatchClause:Fl,updateCatchClause:tl,createPropertyAssignment:$f,updatePropertyAssignment:Cp,createShorthandPropertyAssignment:td,updateShorthandPropertyAssignment:qp,createSpreadAssignment:ru,updateSpreadAssignment:Oi,createEnumMember:Ml,updateEnumMember:ad,createSourceFile:al,updateSourceFile:od,createBundle:Bd,updateBundle:yc,createUnparsedSource:A_,createUnparsedPrologue:N_,createUnparsedPrepend:Tp,createUnparsedTextLike:r_,createUnparsedSyntheticReference:v,createInputFiles:Ze,createSyntheticExpression:_n,createSyntaxList:Zn,createNotEmittedStatement:$i,createPartiallyEmittedExpression:kt,updatePartiallyEmittedExpression:Mt,createCommaListExpression:Wa,updateCommaListExpression:Lo,createEndOfDeclarationMarker:Na,createMergeDeclarationMarker:Pc,createSyntheticReferenceExpression:Ba,updateSyntheticReferenceExpression:ca,cloneNode:Bc,get createComma(){return L(27)},get createAssignment(){return L(63)},get createLogicalOr(){return L(56)},get createLogicalAnd(){return L(55)},get createBitwiseOr(){return L(51)},get createBitwiseXor(){return L(52)},get createBitwiseAnd(){return L(50)},get createStrictEquality(){return L(36)},get createStrictInequality(){return L(37)},get createEquality(){return L(34)},get createInequality(){return L(35)},get createLessThan(){return L(29)},get createLessThanEquals(){return L(32)},get createGreaterThan(){return L(31)},get createGreaterThanEquals(){return L(33)},get createLeftShift(){return L(47)},get createRightShift(){return L(48)},get createUnsignedRightShift(){return L(49)},get createAdd(){return L(39)},get createSubtract(){return L(40)},get createMultiply(){return L(41)},get createDivide(){return L(43)},get createModulo(){return L(44)},get createExponent(){return L(42)},get createPrefixPlus(){return P(39)},get createPrefixMinus(){return P(40)},get createPrefixIncrement(){return P(45)},get createPrefixDecrement(){return P(46)},get createBitwiseNot(){return P(54)},get createLogicalNot(){return P(53)},get createPostfixIncrement(){return N(45)},get createPostfixDecrement(){return N(46)},createImmediatelyInvokedFunctionExpression:mu,createImmediatelyInvokedArrowFunction:If,createVoidZero:Nu,createExportDefault:P_,createExternalModuleExport:Jd,createTypeCheck:jd,createMethodCall:Ll,createGlobalMethodCall:cd,createFunctionBindCall:sd,createFunctionCallCall:Ep,createFunctionApplyCall:Gp,createArraySliceCall:$g,createArrayConcatCall:ud,createObjectDefinePropertyCall:fu,createReflectGetCall:yl,createReflectSetCall:pg,createPropertyDescriptor:kp,createCallBinding:Kp,createAssignmentTargetWrapper:Fe,inlineExpressions:gr,getInternalName:mn,getLocalName:Un,getExportName:ci,getDeclarationName:tt,getNamespaceMemberName:mt,getExternalModuleOrNamespaceExportName:bt,restoreOuterExpressions:Hp,restoreEnclosingLabel:ld,createUseStrictPrologue:bo,copyPrologue:Lt,copyStandardPrologue:mo,copyCustomPrologue:wo,ensureUseStrict:Cs,liftToBlock:hc,mergeLexicalEnvironment:vu,updateModifiers:Kc};return u;function A(_,R){if(_===void 0||_===e.emptyArray)_=[];else if(e.isNodeArray(_)){if(R===void 0||_.hasTrailingComma===R)return _.transformFlags===void 0&&oe(_),e.Debug.attachNodeArrayDebugInfo(_),_;var he=_.slice();return he.pos=_.pos,he.end=_.end,he.hasTrailingComma=R,he.transformFlags=_.transformFlags,e.Debug.attachNodeArrayDebugInfo(he),he}var nr=_.length,$r=nr>=1&&nr<=4?_.slice():_;return e.setTextRangePosEnd($r,-1,-1),$r.hasTrailingComma=!!R,oe($r),e.Debug.attachNodeArrayDebugInfo($r),$r}function w(_){return V.createBaseNode(_)}function z(_){var R=w(_);return R.symbol=void 0,R.localSymbol=void 0,R.locals=void 0,R.nextContainer=void 0,R}function U(_,R,he){var nr=z(_);if(he=Ic(he),nr.name=he,e.canHaveModifiers(nr)&&(nr.modifiers=Ks(R),nr.transformFlags|=te(nr.modifiers)),he)switch(nr.kind){case 171:case 174:case 175:case 169:case 299:if(e.isIdentifier(he)){nr.transformFlags|=D(he);break}default:nr.transformFlags|=de(he);break}return nr}function ge(_,R,he,nr){var $r=U(_,R,he);return $r.typeParameters=Ks(nr),$r.transformFlags|=te($r.typeParameters),nr&&($r.transformFlags|=1),$r}function pe(_,R,he,nr,$r,oi){var ft=ge(_,R,he,nr);return ft.parameters=A($r),ft.type=oi,ft.transformFlags|=te(ft.parameters)|de(ft.type),oi&&(ft.transformFlags|=1),ft.typeArguments=void 0,ft}function He(_,R){return _!==R&&(_.typeArguments=R.typeArguments),h(_,R)}function Be(_,R,he,nr,$r,oi,ft){var Ja=pe(_,R,he,nr,$r,oi);return Ja.body=ft,Ja.transformFlags|=de(Ja.body)&~67108864,ft||(Ja.transformFlags|=1),Ja}function Me(_,R,he,nr,$r){var oi=ge(_,R,he,nr);return oi.heritageClauses=Ks($r),oi.transformFlags|=te(oi.heritageClauses),oi}function Le(_,R,he,nr,$r,oi){var ft=Me(_,R,he,nr,$r);return ft.members=A(oi),ft.transformFlags|=te(ft.members),ft}function Ae(_,R,he,nr){var $r=U(_,R,he);return $r.initializer=nr,$r.transformFlags|=de($r.initializer),$r}function Xe(_,R,he,nr,$r){var oi=Ae(_,R,he,$r);return oi.type=nr,oi.transformFlags|=de(nr),nr&&(oi.transformFlags|=1),oi}function Ne(_,R){var he=rn(_);return he.text=R,he}function Oe(_,R){R===void 0&&(R=0);var he=Ne(8,typeof _=="number"?_+"":_);return he.numericLiteralFlags=R,R&384&&(he.transformFlags|=1024),he}function be(_){var R=Ne(9,typeof _=="string"?_:e.pseudoBigIntToString(_)+"n");return R.transformFlags|=4,R}function Y(_,R){var he=Ne(10,_);return he.singleQuote=R,he}function d(_,R,he){var nr=Y(_,R);return nr.hasExtendedUnicodeEscape=he,he&&(nr.transformFlags|=1024),nr}function j(_){var R=Y(e.getTextOfIdentifierOrLiteral(_),void 0);return R.textSourceNode=_,R}function Ce(_){var R=Ne(13,_);return R}function Se(_,R){switch(_){case 8:return Oe(R,0);case 9:return be(R);case 10:return d(R,void 0);case 11:return Af(R,!1);case 12:return Af(R,!0);case 13:return Ce(R);case 14:return xl(_,R,void 0,0)}}function Re(_,R){R===void 0&&_&&(R=e.stringToToken(_)),R===79&&(R=void 0);var he=V.createBaseIdentifierNode(79);return he.originalKeywordKind=R,he.escapedText=e.escapeLeadingUnderscores(_),he}function er(_,R,he,nr){var $r=Re(_,void 0);return $r.autoGenerateFlags=R,$r.autoGenerateId=o,$r.autoGeneratePrefix=he,$r.autoGenerateSuffix=nr,o++,$r}function wr(_,R,he,nr){var $r=Re(_,he);return R&&($r.typeArguments=A(R)),$r.originalKeywordKind===133&&($r.transformFlags|=67108864),nr&&($r.hasExtendedUnicodeEscape=nr,$r.transformFlags|=1024),$r}function mr(_,R){return _.typeArguments!==R?h(wr(e.idText(_),R),_):_}function Ue(_,R,he,nr){var $r=1;R&&($r|=8);var oi=er("",$r,he,nr);return _&&_(oi),oi}function t(_){var R=2;return _&&(R|=8),er("",R,void 0,void 0)}function qr(_,R,he,nr){return R===void 0&&(R=0),e.Debug.assert(!(R&7),"Argument out of range: flags"),e.Debug.assert((R&(16|32))!=32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),er(_,3|R,he,nr)}function ln(_,R,he,nr){R===void 0&&(R=0),e.Debug.assert(!(R&7),"Argument out of range: flags");var $r=_?e.isMemberName(_)?e.formatGeneratedName(!1,he,_,nr,e.idText):"generated@".concat(e.getNodeId(_)):"";(he||nr)&&(R|=16);var oi=er($r,4|R,he,nr);return oi.original=_,oi}function dr(_){var R=V.createBasePrivateIdentifierNode(80);return R.escapedText=e.escapeLeadingUnderscores(_),R.transformFlags|=16777216,R}function vr(_){return e.startsWith(_,"#")||e.Debug.fail("First character of private identifier must be #: "+_),dr(_)}function kr(_,R,he,nr){var $r=dr(_);return $r.autoGenerateFlags=R,$r.autoGenerateId=o,$r.autoGeneratePrefix=he,$r.autoGenerateSuffix=nr,o++,$r}function Ur(_,R,he){_&&!e.startsWith(_,"#")&&e.Debug.fail("First character of private identifier must be #: "+_);var nr=8|(_?3:1);return kr(_!=null?_:"",nr,R,he)}function Cr(_,R,he){var nr=e.isMemberName(_)?e.formatGeneratedName(!0,R,_,he,e.idText):"#generated@".concat(e.getNodeId(_)),$r=R||he?16:0,oi=kr(nr,4|$r,R,he);return oi.original=_,oi}function rn(_){return V.createBaseTokenNode(_)}function Br(_){e.Debug.assert(_>=0&&_<=162,"Invalid token"),e.Debug.assert(_<=14||_>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(_<=8||_>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(_!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var R=rn(_),he=0;switch(_){case 132:he=256|128;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:he=1;break;case 106:he=1024|134217728;break;case 124:he=1024;break;case 127:he=16777216;break;case 108:he=16384;break}return he&&(R.transformFlags|=he),R}function pn(){return Br(106)}function ve(){return Br(108)}function or(){return Br(104)}function Ee(){return Br(110)}function ze(){return Br(95)}function Ar(_){return Br(_)}function xe(_){var R=[];return _&1&&R.push(Ar(93)),_&2&&R.push(Ar(136)),_&1024&&R.push(Ar(88)),_&2048&&R.push(Ar(85)),_&4&&R.push(Ar(123)),_&8&&R.push(Ar(121)),_&16&&R.push(Ar(122)),_&256&&R.push(Ar(126)),_&32&&R.push(Ar(124)),_&16384&&R.push(Ar(161)),_&64&&R.push(Ar(146)),_&128&&R.push(Ar(127)),_&512&&R.push(Ar(132)),_&32768&&R.push(Ar(101)),_&65536&&R.push(Ar(145)),R.length?R:void 0}function cr(_,R){var he=w(163);return he.left=_,he.right=Ic(R),he.transformFlags|=de(he.left)|D(he.right),he}function Mr(_,R,he){return _.left!==R||_.right!==he?h(cr(R,he),_):_}function Rr(_){var R=w(164);return R.expression=F().parenthesizeExpressionOfComputedPropertyName(_),R.transformFlags|=de(R.expression)|1024|131072,R}function Qr(_,R){return _.expression!==R?h(Rr(R),_):_}function en(_,R,he,nr){var $r=U(165,_,R);return $r.constraint=he,$r.default=nr,$r.transformFlags=1,$r}function vn(_,R,he,nr,$r){return _.modifiers!==R||_.name!==he||_.constraint!==nr||_.default!==$r?h(en(R,he,nr,$r),_):_}function Ie(_,R,he,nr,$r,oi){var ft=Xe(166,_,he,$r,oi&&F().parenthesizeExpressionForDisallowedComma(oi));return ft.dotDotDotToken=R,ft.questionToken=nr,e.isThisIdentifier(ft.name)?ft.transformFlags=1:(ft.transformFlags|=de(ft.dotDotDotToken)|de(ft.questionToken),nr&&(ft.transformFlags|=1),e.modifiersToFlags(ft.modifiers)&16476&&(ft.transformFlags|=8192),(oi||R)&&(ft.transformFlags|=1024)),ft}function We(_,R,he,nr,$r,oi,ft){return _.modifiers!==R||_.dotDotDotToken!==he||_.name!==nr||_.questionToken!==$r||_.type!==oi||_.initializer!==ft?h(Ie(R,he,nr,$r,oi,ft),_):_}function xr(_){var R=w(167);return R.expression=F().parenthesizeLeftSideOfAccess(_,!1),R.transformFlags|=de(R.expression)|1|8192|33554432,R}function Lr(_,R){return _.expression!==R?h(xr(R),_):_}function xn(_,R,he,nr){var $r=U(168,_,R);return $r.type=nr,$r.questionToken=he,$r.transformFlags=1,$r.initializer=void 0,$r}function An(_,R,he,nr,$r){return _.modifiers!==R||_.name!==he||_.questionToken!==nr||_.type!==$r?Qn(xn(R,he,nr,$r),_):_}function Qn(_,R){return _!==R&&(_.initializer=R.initializer),h(_,R)}function ai(_,R,he,nr,$r){var oi=Xe(169,_,R,nr,$r);return oi.questionToken=he&&e.isQuestionToken(he)?he:void 0,oi.exclamationToken=he&&e.isExclamationToken(he)?he:void 0,oi.transformFlags|=de(oi.questionToken)|de(oi.exclamationToken)|16777216,(e.isComputedPropertyName(oi.name)||e.hasStaticModifier(oi)&&oi.initializer)&&(oi.transformFlags|=8192),(he||e.modifiersToFlags(oi.modifiers)&2)&&(oi.transformFlags|=1),oi}function Dr(_,R,he,nr,$r,oi){return _.modifiers!==R||_.name!==he||_.questionToken!==(nr!==void 0&&e.isQuestionToken(nr)?nr:void 0)||_.exclamationToken!==(nr!==void 0&&e.isExclamationToken(nr)?nr:void 0)||_.type!==$r||_.initializer!==oi?h(ai(R,he,nr,$r,oi),_):_}function Pr(_,R,he,nr,$r,oi){var ft=pe(170,_,R,nr,$r,oi);return ft.questionToken=he,ft.transformFlags=1,ft}function jr(_,R,he,nr,$r,oi,ft){return _.modifiers!==R||_.name!==he||_.questionToken!==nr||_.typeParameters!==$r||_.parameters!==oi||_.type!==ft?He(Pr(R,he,nr,$r,oi,ft),_):_}function on(_,R,he,nr,$r,oi,ft,Ja){var Rs=Be(171,_,he,$r,oi,ft,Ja);return Rs.asteriskToken=R,Rs.questionToken=nr,Rs.transformFlags|=de(Rs.asteriskToken)|de(Rs.questionToken)|1024,nr&&(Rs.transformFlags|=1),e.modifiersToFlags(Rs.modifiers)&512?R?Rs.transformFlags|=128:Rs.transformFlags|=256:R&&(Rs.transformFlags|=2048),Rs.exclamationToken=void 0,Rs}function je(_,R,he,nr,$r,oi,ft,Ja,Rs){return _.modifiers!==R||_.asteriskToken!==he||_.name!==nr||_.questionToken!==$r||_.typeParameters!==oi||_.parameters!==ft||_.type!==Ja||_.body!==Rs?Sr(on(R,he,nr,$r,oi,ft,Ja,Rs),_):_}function Sr(_,R){return _!==R&&(_.exclamationToken=R.exclamationToken),h(_,R)}function Te(_){var R=ge(172,void 0,void 0,void 0);return R.body=_,R.transformFlags=de(_)|16777216,R.illegalDecorators=void 0,R.modifiers=void 0,R}function Ye(_,R){return _.body!==R?Qe(Te(R),_):_}function Qe(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators,_.modifiers=R.modifiers),h(_,R)}function ue(_,R,he){var nr=Be(173,_,void 0,void 0,R,void 0,he);return nr.transformFlags|=1024,nr.illegalDecorators=void 0,nr.typeParameters=void 0,nr.type=void 0,nr}function Ke(_,R,he,nr){return _.modifiers!==R||_.parameters!==he||_.body!==nr?tr(ue(R,he,nr),_):_}function tr(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators,_.typeParameters=R.typeParameters,_.type=R.type),He(_,R)}function hr(_,R,he,nr,$r){var oi=Be(174,_,R,void 0,he,nr,$r);return oi.typeParameters=void 0,oi}function _r(_,R,he,nr,$r,oi){return _.modifiers!==R||_.name!==he||_.parameters!==nr||_.type!==$r||_.body!==oi?Or(hr(R,he,nr,$r,oi),_):_}function Or(_,R){return _!==R&&(_.typeParameters=R.typeParameters),He(_,R)}function zr(_,R,he,nr){var $r=Be(175,_,R,void 0,he,void 0,nr);return $r.typeParameters=void 0,$r.type=void 0,$r}function fn(_,R,he,nr,$r){return _.modifiers!==R||_.name!==he||_.parameters!==nr||_.body!==$r?Vr(zr(R,he,nr,$r),_):_}function Vr(_,R){return _!==R&&(_.typeParameters=R.typeParameters,_.type=R.type),He(_,R)}function Wn(_,R,he){var nr=pe(176,void 0,void 0,_,R,he);return nr.transformFlags=1,nr}function bn(_,R,he,nr){return _.typeParameters!==R||_.parameters!==he||_.type!==nr?He(Wn(R,he,nr),_):_}function qn(_,R,he){var nr=pe(177,void 0,void 0,_,R,he);return nr.transformFlags=1,nr}function yn(_,R,he,nr){return _.typeParameters!==R||_.parameters!==he||_.type!==nr?He(qn(R,he,nr),_):_}function Hn(_,R,he){var nr=pe(178,_,void 0,void 0,R,he);return nr.transformFlags=1,nr}function Ai(_,R,he,nr){return _.parameters!==he||_.type!==nr||_.modifiers!==R?He(Hn(R,he,nr),_):_}function ti(_,R){var he=w(201);return he.type=_,he.literal=R,he.transformFlags=1,he}function Hi(_,R,he){return _.type!==R||_.literal!==he?h(ti(R,he),_):_}function Ni(_){return Br(_)}function gi(_,R,he){var nr=w(179);return nr.assertsModifier=_,nr.parameterName=Ic(R),nr.type=he,nr.transformFlags=1,nr}function Pn(_,R,he,nr){return _.assertsModifier!==R||_.parameterName!==he||_.type!==nr?h(gi(R,he,nr),_):_}function Pe(_,R){var he=w(180);return he.typeName=Ic(_),he.typeArguments=R&&F().parenthesizeTypeArguments(A(R)),he.transformFlags=1,he}function Ir(_,R,he){return _.typeName!==R||_.typeArguments!==he?h(Pe(R,he),_):_}function we(_,R,he){var nr=pe(181,void 0,void 0,_,R,he);return nr.transformFlags=1,nr.modifiers=void 0,nr}function hn(_,R,he,nr){return _.typeParameters!==R||_.parameters!==he||_.type!==nr?jn(we(R,he,nr),_):_}function jn(_,R){return _!==R&&(_.modifiers=R.modifiers),He(_,R)}function gn(){for(var _=[],R=0;R<arguments.length;R++)_[R]=arguments[R];return _.length===4?nn.apply(void 0,_):_.length===3?Cn.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function nn(_,R,he,nr){var $r=pe(182,_,void 0,R,he,nr);return $r.transformFlags=1,$r}function Cn(_,R,he){return nn(void 0,_,R,he)}function Dn(){for(var _=[],R=0;R<arguments.length;R++)_[R]=arguments[R];return _.length===5?On.apply(void 0,_):_.length===4?Xn.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function On(_,R,he,nr,$r){return _.modifiers!==R||_.typeParameters!==he||_.parameters!==nr||_.type!==$r?He(gn(R,he,nr,$r),_):_}function Xn(_,R,he,nr){return On(_,_.modifiers,R,he,nr)}function Ge(_,R){var he=w(183);return he.exprName=_,he.typeArguments=R&&F().parenthesizeTypeArguments(R),he.transformFlags=1,he}function cn(_,R,he){return _.exprName!==R||_.typeArguments!==he?h(Ge(R,he),_):_}function Vn(_){var R=w(184);return R.members=A(_),R.transformFlags=1,R}function Ki(_,R){return _.members!==R?h(Vn(R),_):_}function dt(_){var R=w(185);return R.elementType=F().parenthesizeNonArrayTypeOfPostfixType(_),R.transformFlags=1,R}function qi(_,R){return _.elementType!==R?h(dt(R),_):_}function Ci(_){var R=w(186);return R.elements=A(F().parenthesizeElementTypesOfTupleType(_)),R.transformFlags=1,R}function Tt(_,R){return _.elements!==R?h(Ci(R),_):_}function ot(_,R,he,nr){var $r=w(199);return $r.dotDotDotToken=_,$r.name=R,$r.questionToken=he,$r.type=nr,$r.transformFlags=1,$r}function Zi(_,R,he,nr,$r){return _.dotDotDotToken!==R||_.name!==he||_.questionToken!==nr||_.type!==$r?h(ot(R,he,nr,$r),_):_}function ni(_){var R=w(187);return R.type=F().parenthesizeTypeOfOptionalType(_),R.transformFlags=1,R}function Va(_,R){return _.type!==R?h(ni(R),_):_}function Ua(_){var R=w(188);return R.type=_,R.transformFlags=1,R}function za(_,R){return _.type!==R?h(Ua(R),_):_}function Co(_,R,he){var nr=w(_);return nr.types=u.createNodeArray(he(R)),nr.transformFlags=1,nr}function Ea(_,R,he){return _.types!==R?h(Co(_.kind,R,he),_):_}function ho(_){return Co(189,_,F().parenthesizeConstituentTypesOfUnionType)}function Aa(_,R){return Ea(_,R,F().parenthesizeConstituentTypesOfUnionType)}function Vi(_){return Co(190,_,F().parenthesizeConstituentTypesOfIntersectionType)}function Xi(_,R){return Ea(_,R,F().parenthesizeConstituentTypesOfIntersectionType)}function ao(_,R,he,nr){var $r=w(191);return $r.checkType=F().parenthesizeCheckTypeOfConditionalType(_),$r.extendsType=F().parenthesizeExtendsTypeOfConditionalType(R),$r.trueType=he,$r.falseType=nr,$r.transformFlags=1,$r}function fo(_,R,he,nr,$r){return _.checkType!==R||_.extendsType!==he||_.trueType!==nr||_.falseType!==$r?h(ao(R,he,nr,$r),_):_}function As(_){var R=w(192);return R.typeParameter=_,R.transformFlags=1,R}function so(_,R){return _.typeParameter!==R?h(As(R),_):_}function Xo(_,R){var he=w(200);return he.head=_,he.templateSpans=A(R),he.transformFlags=1,he}function Ho(_,R,he){return _.head!==R||_.templateSpans!==he?h(Xo(R,he),_):_}function Zo(_,R,he,nr,$r){$r===void 0&&($r=!1);var oi=w(202);return oi.argument=_,oi.assertions=R,oi.qualifier=he,oi.typeArguments=nr&&F().parenthesizeTypeArguments(nr),oi.isTypeOf=$r,oi.transformFlags=1,oi}function To(_,R,he,nr,$r,oi){return oi===void 0&&(oi=_.isTypeOf),_.argument!==R||_.assertions!==he||_.qualifier!==nr||_.typeArguments!==$r||_.isTypeOf!==oi?h(Zo(R,he,nr,$r,oi),_):_}function pr(_){var R=w(193);return R.type=_,R.transformFlags=1,R}function Fr(_,R){return _.type!==R?h(pr(R),_):_}function yi(){var _=w(194);return _.transformFlags=1,_}function Dt(_,R){var he=w(195);return he.operator=_,he.type=_===146?F().parenthesizeOperandOfReadonlyTypeOperator(R):F().parenthesizeOperandOfTypeOperator(R),he.transformFlags=1,he}function Ft(_,R){return _.type!==R?h(Dt(_.operator,R),_):_}function Pa(_,R){var he=w(196);return he.objectType=F().parenthesizeNonArrayTypeOfPostfixType(_),he.indexType=R,he.transformFlags=1,he}function Ve(_,R,he){return _.objectType!==R||_.indexType!==he?h(Pa(R,he),_):_}function tn(_,R,he,nr,$r,oi){var ft=w(197);return ft.readonlyToken=_,ft.typeParameter=R,ft.nameType=he,ft.questionToken=nr,ft.type=$r,ft.members=oi&&A(oi),ft.transformFlags=1,ft}function Nn(_,R,he,nr,$r,oi,ft){return _.readonlyToken!==R||_.typeParameter!==he||_.nameType!==nr||_.questionToken!==$r||_.type!==oi||_.members!==ft?h(tn(R,he,nr,$r,oi,ft),_):_}function wn(_){var R=w(198);return R.literal=_,R.transformFlags=1,R}function Je(_,R){return _.literal!==R?h(wn(R),_):_}function ur(_){var R=w(203);return R.elements=A(_),R.transformFlags|=te(R.elements)|1024|524288,R.transformFlags&32768&&(R.transformFlags|=128|65536),R}function yr(_,R){return _.elements!==R?h(ur(R),_):_}function Jr(_){var R=w(204);return R.elements=A(_),R.transformFlags|=te(R.elements)|1024|524288,R}function Mn(_,R){return _.elements!==R?h(Jr(R),_):_}function _i(_,R,he,nr){var $r=Ae(205,void 0,he,nr&&F().parenthesizeExpressionForDisallowedComma(nr));return $r.propertyName=Ic(R),$r.dotDotDotToken=_,$r.transformFlags|=de($r.dotDotDotToken)|1024,$r.propertyName&&($r.transformFlags|=e.isIdentifier($r.propertyName)?D($r.propertyName):de($r.propertyName)),_&&($r.transformFlags|=32768),$r}function di(_,R,he,nr,$r){return _.propertyName!==he||_.dotDotDotToken!==R||_.name!==nr||_.initializer!==$r?h(_i(R,he,nr,$r),_):_}function fi(_){var R=w(_);return R}function Nt(_,R){var he=fi(206),nr=_&&e.lastOrUndefined(_),$r=A(_,nr&&e.isOmittedExpression(nr)?!0:void 0);return he.elements=F().parenthesizeExpressionsOfCommaDelimitedList($r),he.multiLine=R,he.transformFlags|=te(he.elements),he}function Gt(_,R){return _.elements!==R?h(Nt(R,_.multiLine),_):_}function la(_,R){var he=fi(207);return he.properties=A(_),he.multiLine=R,he.transformFlags|=te(he.properties),he}function na(_,R){return _.properties!==R?h(la(R,_.multiLine),_):_}function Ia(_,R){var he=fi(208);return he.expression=F().parenthesizeLeftSideOfAccess(_,!1),he.name=Ic(R),he.transformFlags=de(he.expression)|(e.isIdentifier(he.name)?D(he.name):de(he.name)|536870912),e.isSuperKeyword(_)&&(he.transformFlags|=256|128),he}function bs(_,R,he){return e.isPropertyAccessChain(_)?ps(_,R,_.questionDotToken,e.cast(he,e.isIdentifier)):_.expression!==R||_.name!==he?h(Ia(R,he),_):_}function ds(_,R,he){var nr=fi(208);return nr.flags|=32,nr.expression=F().parenthesizeLeftSideOfAccess(_,!0),nr.questionDotToken=R,nr.name=Ic(he),nr.transformFlags|=32|de(nr.expression)|de(nr.questionDotToken)|(e.isIdentifier(nr.name)?D(nr.name):de(nr.name)|536870912),nr}function ps(_,R,he,nr){return e.Debug.assert(!!(_.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),_.expression!==R||_.questionDotToken!==he||_.name!==nr?h(ds(R,he,nr),_):_}function ac(_,R){var he=fi(209);return he.expression=F().parenthesizeLeftSideOfAccess(_,!1),he.argumentExpression=ol(R),he.transformFlags|=de(he.expression)|de(he.argumentExpression),e.isSuperKeyword(_)&&(he.transformFlags|=256|128),he}function Es(_,R,he){return e.isElementAccessChain(_)?dc(_,R,_.questionDotToken,he):_.expression!==R||_.argumentExpression!==he?h(ac(R,he),_):_}function ns(_,R,he){var nr=fi(209);return nr.flags|=32,nr.expression=F().parenthesizeLeftSideOfAccess(_,!0),nr.questionDotToken=R,nr.argumentExpression=ol(he),nr.transformFlags|=de(nr.expression)|de(nr.questionDotToken)|de(nr.argumentExpression)|32,nr}function dc(_,R,he,nr){return e.Debug.assert(!!(_.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),_.expression!==R||_.questionDotToken!==he||_.argumentExpression!==nr?h(ns(R,he,nr),_):_}function $s(_,R,he){var nr=fi(210);return nr.expression=F().parenthesizeLeftSideOfAccess(_,!1),nr.typeArguments=Ks(R),nr.arguments=F().parenthesizeExpressionsOfCommaDelimitedList(A(he)),nr.transformFlags|=de(nr.expression)|te(nr.typeArguments)|te(nr.arguments),nr.typeArguments&&(nr.transformFlags|=1),e.isImportKeyword(nr.expression)?nr.transformFlags|=8388608:e.isSuperProperty(nr.expression)&&(nr.transformFlags|=16384),nr}function pc(_,R,he,nr){return e.isCallChain(_)?Sc(_,R,_.questionDotToken,he,nr):_.expression!==R||_.typeArguments!==he||_.arguments!==nr?h($s(R,he,nr),_):_}function js(_,R,he,nr){var $r=fi(210);return $r.flags|=32,$r.expression=F().parenthesizeLeftSideOfAccess(_,!0),$r.questionDotToken=R,$r.typeArguments=Ks(he),$r.arguments=F().parenthesizeExpressionsOfCommaDelimitedList(A(nr)),$r.transformFlags|=de($r.expression)|de($r.questionDotToken)|te($r.typeArguments)|te($r.arguments)|32,$r.typeArguments&&($r.transformFlags|=1),e.isSuperProperty($r.expression)&&($r.transformFlags|=16384),$r}function Sc(_,R,he,nr,$r){return e.Debug.assert(!!(_.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),_.expression!==R||_.questionDotToken!==he||_.typeArguments!==nr||_.arguments!==$r?h(js(R,he,nr,$r),_):_}function Ko(_,R,he){var nr=fi(211);return nr.expression=F().parenthesizeExpressionOfNew(_),nr.typeArguments=Ks(R),nr.arguments=he?F().parenthesizeExpressionsOfCommaDelimitedList(he):void 0,nr.transformFlags|=de(nr.expression)|te(nr.typeArguments)|te(nr.arguments)|32,nr.typeArguments&&(nr.transformFlags|=1),nr}function Mc(_,R,he,nr){return _.expression!==R||_.typeArguments!==he||_.arguments!==nr?h(Ko(R,he,nr),_):_}function Vs(_,R,he){var nr=fi(212);return nr.tag=F().parenthesizeLeftSideOfAccess(_,!1),nr.typeArguments=Ks(R),nr.template=he,nr.transformFlags|=de(nr.tag)|te(nr.typeArguments)|de(nr.template)|1024,nr.typeArguments&&(nr.transformFlags|=1),e.hasInvalidEscape(nr.template)&&(nr.transformFlags|=128),nr}function oc(_,R,he,nr){return _.tag!==R||_.typeArguments!==he||_.template!==nr?h(Vs(R,he,nr),_):_}function Ss(_,R){var he=fi(213);return he.expression=F().parenthesizeOperandOfPrefixUnary(R),he.type=_,he.transformFlags|=de(he.expression)|de(he.type)|1,he}function ee(_,R,he){return _.type!==R||_.expression!==he?h(Ss(R,he),_):_}function Er(_){var R=fi(214);return R.expression=_,R.transformFlags=de(R.expression),R}function un(_,R){return _.expression!==R?h(Er(R),_):_}function $n(_,R,he,nr,$r,oi,ft){var Ja=Be(215,_,he,nr,$r,oi,ft);return Ja.asteriskToken=R,Ja.transformFlags|=de(Ja.asteriskToken),Ja.typeParameters&&(Ja.transformFlags|=1),e.modifiersToFlags(Ja.modifiers)&512?Ja.asteriskToken?Ja.transformFlags|=128:Ja.transformFlags|=256:Ja.asteriskToken&&(Ja.transformFlags|=2048),Ja}function Ii(_,R,he,nr,$r,oi,ft,Ja){return _.name!==nr||_.modifiers!==R||_.asteriskToken!==he||_.typeParameters!==$r||_.parameters!==oi||_.type!==ft||_.body!==Ja?He($n(R,he,nr,$r,oi,ft,Ja),_):_}function at(_,R,he,nr,$r,oi){var ft=Be(216,_,void 0,R,he,nr,F().parenthesizeConciseBodyOfArrowFunction(oi));return ft.equalsGreaterThanToken=$r!=null?$r:Br(38),ft.transformFlags|=de(ft.equalsGreaterThanToken)|1024,e.modifiersToFlags(ft.modifiers)&512&&(ft.transformFlags|=256|16384),ft}function Ji(_,R,he,nr,$r,oi,ft){return _.modifiers!==R||_.typeParameters!==he||_.parameters!==nr||_.type!==$r||_.equalsGreaterThanToken!==oi||_.body!==ft?He(at(R,he,nr,$r,oi,ft),_):_}function _t(_){var R=fi(217);return R.expression=F().parenthesizeOperandOfPrefixUnary(_),R.transformFlags|=de(R.expression),R}function Ht(_,R){return _.expression!==R?h(_t(R),_):_}function Rt(_){var R=fi(218);return R.expression=F().parenthesizeOperandOfPrefixUnary(_),R.transformFlags|=de(R.expression),R}function va(_,R){return _.expression!==R?h(Rt(R),_):_}function qe(_){var R=fi(219);return R.expression=F().parenthesizeOperandOfPrefixUnary(_),R.transformFlags|=de(R.expression),R}function Tn(_,R){return _.expression!==R?h(qe(R),_):_}function Nr(_){var R=fi(220);return R.expression=F().parenthesizeOperandOfPrefixUnary(_),R.transformFlags|=de(R.expression)|256|128|2097152,R}function ga(_,R){return _.expression!==R?h(Nr(R),_):_}function xa(_,R){var he=fi(221);return he.operator=_,he.operand=F().parenthesizeOperandOfPrefixUnary(R),he.transformFlags|=de(he.operand),(_===45||_===46)&&e.isIdentifier(he.operand)&&!e.isGeneratedIdentifier(he.operand)&&!e.isLocalName(he.operand)&&(he.transformFlags|=268435456),he}function co(_,R){return _.operand!==R?h(xa(_.operator,R),_):_}function gs(_,R){var he=fi(222);return he.operator=R,he.operand=F().parenthesizeOperandOfPostfixUnary(_),he.transformFlags|=de(he.operand),e.isIdentifier(he.operand)&&!e.isGeneratedIdentifier(he.operand)&&!e.isLocalName(he.operand)&&(he.transformFlags|=268435456),he}function gc(_,R){return _.operand!==R?h(gs(R,_.operator),_):_}function ws(_,R,he){var nr=fi(223),$r=i_(R),oi=$r.kind;return nr.left=F().parenthesizeLeftSideOfBinary(oi,_),nr.operatorToken=$r,nr.right=F().parenthesizeRightSideOfBinary(oi,nr.left,he),nr.transformFlags|=de(nr.left)|de(nr.operatorToken)|de(nr.right),oi===60?nr.transformFlags|=32:oi===63?e.isObjectLiteralExpression(nr.left)?nr.transformFlags|=1024|128|4096|Lc(nr.left):e.isArrayLiteralExpression(nr.left)&&(nr.transformFlags|=1024|4096|Lc(nr.left)):oi===42||oi===67?nr.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(oi)&&(nr.transformFlags|=16),oi===101&&e.isPrivateIdentifier(nr.left)&&(nr.transformFlags|=536870912),nr}function Lc(_){if(_.transformFlags&65536)return 65536;if(_.transformFlags&128)for(var R=0,he=e.getElementsOfBindingOrAssignmentPattern(_);R<he.length;R++){var nr=he[R],$r=e.getTargetOfBindingOrAssignmentElement(nr);if($r&&e.isAssignmentPattern($r)){if($r.transformFlags&65536)return 65536;if($r.transformFlags&128){var oi=Lc($r);if(oi)return oi}}}return 0}function qs(_,R,he,nr){return _.left!==R||_.operatorToken!==he||_.right!==nr?h(ws(R,he,nr),_):_}function ec(_,R,he,nr,$r){var oi=fi(224);return oi.condition=F().parenthesizeConditionOfConditionalExpression(_),oi.questionToken=R!=null?R:Br(57),oi.whenTrue=F().parenthesizeBranchOfConditionalExpression(he),oi.colonToken=nr!=null?nr:Br(58),oi.whenFalse=F().parenthesizeBranchOfConditionalExpression($r),oi.transformFlags|=de(oi.condition)|de(oi.questionToken)|de(oi.whenTrue)|de(oi.colonToken)|de(oi.whenFalse),oi}function Rc(_,R,he,nr,$r,oi){return _.condition!==R||_.questionToken!==he||_.whenTrue!==nr||_.colonToken!==$r||_.whenFalse!==oi?h(ec(R,he,nr,$r,oi),_):_}function _o(_,R){var he=fi(225);return he.head=_,he.templateSpans=A(R),he.transformFlags|=de(he.head)|te(he.templateSpans)|1024,he}function Gs(_,R,he){return _.head!==R||_.templateSpans!==he?h(_o(R,he),_):_}function mc(_,R,he,nr){nr===void 0&&(nr=0),e.Debug.assert(!(nr&~2048),"Unsupported template flags.");var $r=void 0;if(he!==void 0&&he!==R&&($r=p(_,he),typeof $r=="object"))return e.Debug.fail("Invalid raw text");if(R===void 0){if($r===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");R=$r}else $r!==void 0&&e.Debug.assert(R===$r,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return xl(_,R,he,nr)}function xl(_,R,he,nr){var $r=rn(_);return $r.text=R,$r.rawText=he,$r.templateFlags=nr&2048,$r.transformFlags|=1024,$r.templateFlags&&($r.transformFlags|=128),$r}function $c(_,R,he){return mc(15,_,R,he)}function Qu(_,R,he){return mc(16,_,R,he)}function Df(_,R,he){return mc(17,_,R,he)}function Xu(_,R,he){return mc(14,_,R,he)}function zc(_,R){e.Debug.assert(!_||!!R,"A `YieldExpression` with an asteriskToken must have an expression.");var he=fi(226);return he.expression=R&&F().parenthesizeExpressionForDisallowedComma(R),he.asteriskToken=_,he.transformFlags|=de(he.expression)|de(he.asteriskToken)|1024|128|1048576,he}function Zu(_,R,he){return _.expression!==he||_.asteriskToken!==R?h(zc(R,he),_):_}function Hr(_){var R=fi(227);return R.expression=F().parenthesizeExpressionForDisallowedComma(_),R.transformFlags|=de(R.expression)|1024|32768,R}function Gr(_,R){return _.expression!==R?h(Hr(R),_):_}function Bn(_,R,he,nr,$r){var oi=Le(228,_,R,he,nr,$r);return oi.transformFlags|=1024,oi}function ui(_,R,he,nr,$r,oi){return _.modifiers!==R||_.name!==he||_.typeParameters!==nr||_.heritageClauses!==$r||_.members!==oi?h(Bn(R,he,nr,$r,oi),_):_}function hi(){return fi(229)}function Ei(_,R){var he=w(230);return he.expression=F().parenthesizeLeftSideOfAccess(_,!1),he.typeArguments=R&&F().parenthesizeTypeArguments(R),he.transformFlags|=de(he.expression)|te(he.typeArguments)|1024,he}function st(_,R,he){return _.expression!==R||_.typeArguments!==he?h(Ei(R,he),_):_}function Bi(_,R){var he=fi(231);return he.expression=_,he.type=R,he.transformFlags|=de(he.expression)|de(he.type)|1,he}function Jt(_,R,he){return _.expression!==R||_.type!==he?h(Bi(R,he),_):_}function Ca(_){var R=fi(232);return R.expression=F().parenthesizeLeftSideOfAccess(_,!1),R.transformFlags|=de(R.expression)|1,R}function Yt(_,R){return e.isNonNullChain(_)?po(_,R):_.expression!==R?h(Ca(R),_):_}function Wt(_,R){var he=fi(235);return he.expression=_,he.type=R,he.transformFlags|=de(he.expression)|de(he.type)|1,he}function Ga(_,R,he){return _.expression!==R||_.type!==he?h(Wt(R,he),_):_}function $t(_){var R=fi(232);return R.flags|=32,R.expression=F().parenthesizeLeftSideOfAccess(_,!0),R.transformFlags|=de(R.expression)|1,R}function po(_,R){return e.Debug.assert(!!(_.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),_.expression!==R?h($t(R),_):_}function Do(_,R){var he=fi(233);switch(he.keywordToken=_,he.name=R,he.transformFlags|=de(he.name),_){case 103:he.transformFlags|=1024;break;case 100:he.transformFlags|=4;break;default:return e.Debug.assertNever(_)}return he}function Ns(_,R){return _.name!==R?h(Do(_.keywordToken,R),_):_}function jo(_,R){var he=w(236);return he.expression=_,he.literal=R,he.transformFlags|=de(he.expression)|de(he.literal)|1024,he}function ys(_,R,he){return _.expression!==R||_.literal!==he?h(jo(R,he),_):_}function Vo(){var _=w(237);return _.transformFlags|=1024,_}function fe(_,R){var he=w(238);return he.statements=A(_),he.multiLine=R,he.transformFlags|=te(he.statements),he}function sr(_,R){return _.statements!==R?h(fe(R,_.multiLine),_):_}function Tr(_,R){var he=z(240);return he.modifiers=Ks(_),he.declarationList=e.isArray(R)?ou(R):R,he.transformFlags|=te(he.modifiers)|de(he.declarationList),e.modifiersToFlags(he.modifiers)&2&&(he.transformFlags=1),he}function Fn(_,R,he){return _.modifiers!==R||_.declarationList!==he?h(Tr(R,he),_):_}function Si(){return w(239)}function gt(_){var R=w(241);return R.expression=F().parenthesizeExpressionOfExpressionStatement(_),R.transformFlags|=de(R.expression),R}function jt(_,R){return _.expression!==R?h(gt(R),_):_}function fa(_,R,he){var nr=w(242);return nr.expression=_,nr.thenStatement=Js(R),nr.elseStatement=Js(he),nr.transformFlags|=de(nr.expression)|de(nr.thenStatement)|de(nr.elseStatement),nr}function Ka(_,R,he,nr){return _.expression!==R||_.thenStatement!==he||_.elseStatement!==nr?h(fa(R,he,nr),_):_}function no(_,R){var he=w(243);return he.statement=Js(_),he.expression=R,he.transformFlags|=de(he.statement)|de(he.expression),he}function Eo(_,R,he){return _.statement!==R||_.expression!==he?h(no(R,he),_):_}function Fa(_,R){var he=w(244);return he.expression=_,he.statement=Js(R),he.transformFlags|=de(he.expression)|de(he.statement),he}function Qa(_,R,he){return _.expression!==R||_.statement!==he?h(Fa(R,he),_):_}function zo(_,R,he,nr){var $r=w(245);return $r.initializer=_,$r.condition=R,$r.incrementor=he,$r.statement=Js(nr),$r.transformFlags|=de($r.initializer)|de($r.condition)|de($r.incrementor)|de($r.statement),$r}function Uo(_,R,he,nr,$r){return _.initializer!==R||_.condition!==he||_.incrementor!==nr||_.statement!==$r?h(zo(R,he,nr,$r),_):_}function ms(_,R,he){var nr=w(246);return nr.initializer=_,nr.expression=R,nr.statement=Js(he),nr.transformFlags|=de(nr.initializer)|de(nr.expression)|de(nr.statement),nr}function xc(_,R,he,nr){return _.initializer!==R||_.expression!==he||_.statement!==nr?h(ms(R,he,nr),_):_}function Os(_,R,he,nr){var $r=w(247);return $r.awaitModifier=_,$r.initializer=R,$r.expression=F().parenthesizeExpressionForDisallowedComma(he),$r.statement=Js(nr),$r.transformFlags|=de($r.awaitModifier)|de($r.initializer)|de($r.expression)|de($r.statement)|1024,_&&($r.transformFlags|=128),$r}function Cl(_,R,he,nr,$r){return _.awaitModifier!==R||_.initializer!==he||_.expression!==nr||_.statement!==$r?h(Os(R,he,nr,$r),_):_}function m_(_){var R=w(248);return R.label=Ic(_),R.transformFlags|=de(R.label)|4194304,R}function pl(_,R){return _.label!==R?h(m_(R),_):_}function Zl(_){var R=w(249);return R.label=Ic(_),R.transformFlags|=de(R.label)|4194304,R}function Zr(_,R){return _.label!==R?h(Zl(R),_):_}function Yl(_){var R=w(250);return R.expression=_,R.transformFlags|=de(R.expression)|128|4194304,R}function xu(_,R){return _.expression!==R?h(Yl(R),_):_}function $l(_,R){var he=w(251);return he.expression=_,he.statement=Js(R),he.transformFlags|=de(he.expression)|de(he.statement),he}function Wf(_,R,he){return _.expression!==R||_.statement!==he?h($l(R,he),_):_}function ef(_,R){var he=w(252);return he.expression=F().parenthesizeExpressionForDisallowedComma(_),he.caseBlock=R,he.transformFlags|=de(he.expression)|de(he.caseBlock),he}function Tl(_,R,he){return _.expression!==R||_.caseBlock!==he?h(ef(R,he),_):_}function Ad(_,R){var he=w(253);return he.label=Ic(_),he.statement=Js(R),he.transformFlags|=de(he.label)|de(he.statement),he}function go(_,R,he){return _.label!==R||_.statement!==he?h(Ad(R,he),_):_}function U_(_){var R=w(254);return R.expression=_,R.transformFlags|=de(R.expression),R}function bf(_,R){return _.expression!==R?h(U_(R),_):_}function z_(_,R,he){var nr=w(255);return nr.tryBlock=_,nr.catchClause=R,nr.finallyBlock=he,nr.transformFlags|=de(nr.tryBlock)|de(nr.catchClause)|de(nr.finallyBlock),nr}function Vf(_,R,he,nr){return _.tryBlock!==R||_.catchClause!==he||_.finallyBlock!==nr?h(z_(R,he,nr),_):_}function W_(){return w(256)}function v_(_,R,he,nr){var $r=Xe(257,void 0,_,he,nr&&F().parenthesizeExpressionForDisallowedComma(nr));return $r.exclamationToken=R,$r.transformFlags|=de($r.exclamationToken),R&&($r.transformFlags|=1),$r}function rf(_,R,he,nr,$r){return _.name!==R||_.type!==nr||_.exclamationToken!==he||_.initializer!==$r?h(v_(R,he,nr,$r),_):_}function ou(_,R){R===void 0&&(R=0);var he=w(258);return he.flags|=R&3,he.declarations=A(_),he.transformFlags|=te(he.declarations)|4194304,R&3&&(he.transformFlags|=1024|262144),he}function V_(_,R){return _.declarations!==R?h(ou(R,_.flags),_):_}function y_(_,R,he,nr,$r,oi,ft){var Ja=Be(259,_,he,nr,$r,oi,ft);return Ja.asteriskToken=R,!Ja.body||e.modifiersToFlags(Ja.modifiers)&2?Ja.transformFlags=1:(Ja.transformFlags|=de(Ja.asteriskToken)|4194304,e.modifiersToFlags(Ja.modifiers)&512?Ja.asteriskToken?Ja.transformFlags|=128:Ja.transformFlags|=256:Ja.asteriskToken&&(Ja.transformFlags|=2048)),Ja.illegalDecorators=void 0,Ja}function Qt(_,R,he,nr,$r,oi,ft,Ja){return _.modifiers!==R||_.asteriskToken!==he||_.name!==nr||_.typeParameters!==$r||_.parameters!==oi||_.type!==ft||_.body!==Ja?At(y_(R,he,nr,$r,oi,ft,Ja),_):_}function At(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),He(_,R)}function Cu(_,R,he,nr,$r){var oi=Le(260,_,R,he,nr,$r);return e.modifiersToFlags(oi.modifiers)&2?oi.transformFlags=1:(oi.transformFlags|=1024,oi.transformFlags&8192&&(oi.transformFlags|=1)),oi}function Wc(_,R,he,nr,$r,oi){return _.modifiers!==R||_.name!==he||_.typeParameters!==nr||_.heritageClauses!==$r||_.members!==oi?h(Cu(R,he,nr,$r,oi),_):_}function q_(_,R,he,nr,$r){var oi=Me(261,_,R,he,nr);return oi.members=A($r),oi.transformFlags=1,oi.illegalDecorators=void 0,oi}function Sf(_,R,he,nr,$r,oi){return _.modifiers!==R||_.name!==he||_.typeParameters!==nr||_.heritageClauses!==$r||_.members!==oi?Wp(q_(R,he,nr,$r,oi),_):_}function Wp(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function Nd(_,R,he,nr){var $r=ge(262,_,R,he);return $r.type=nr,$r.transformFlags=1,$r.illegalDecorators=void 0,$r}function is(_,R,he,nr,$r){return _.modifiers!==R||_.name!==he||_.typeParameters!==nr||_.type!==$r?dp(Nd(R,he,nr,$r),_):_}function dp(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function xs(_,R,he){var nr=U(263,_,R);return nr.members=A(he),nr.transformFlags|=te(nr.members)|1,nr.transformFlags&=~67108864,nr.illegalDecorators=void 0,nr}function Yu(_,R,he,nr){return _.modifiers!==R||_.name!==he||_.members!==nr?pp(xs(R,he,nr),_):_}function pp(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function vc(_,R,he,nr){nr===void 0&&(nr=0);var $r=z(264);return $r.modifiers=Ks(_),$r.flags|=nr&(16|4|1024),$r.name=R,$r.body=he,e.modifiersToFlags($r.modifiers)&2?$r.transformFlags=1:$r.transformFlags|=te($r.modifiers)|de($r.name)|de($r.body)|1,$r.transformFlags&=~67108864,$r.illegalDecorators=void 0,$r}function gp(_,R,he,nr){return _.modifiers!==R||_.name!==he||_.body!==nr?sc(vc(R,he,nr,_.flags),_):_}function sc(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function El(_){var R=w(265);return R.statements=A(_),R.transformFlags|=te(R.statements),R}function Cc(_,R){return _.statements!==R?h(El(R),_):_}function mp(_){var R=w(266);return R.clauses=A(_),R.transformFlags|=te(R.clauses),R}function Pd(_,R){return _.clauses!==R?h(mp(R),_):_}function G_(_){var R=U(267,void 0,_);return R.transformFlags=1,R.illegalDecorators=void 0,R.modifiers=void 0,R}function H_(_,R){return _.name!==R?vp(G_(R),_):_}function vp(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators,_.modifiers=R.modifiers),h(_,R)}function kl(_,R,he,nr){var $r=U(268,_,he);return $r.isTypeOnly=R,$r.moduleReference=nr,$r.transformFlags|=de($r.moduleReference),e.isExternalModuleReference($r.moduleReference)||($r.transformFlags|=1),$r.transformFlags&=~67108864,$r.illegalDecorators=void 0,$r}function Al(_,R,he,nr,$r){return _.modifiers!==R||_.isTypeOnly!==he||_.name!==nr||_.moduleReference!==$r?h_(kl(R,he,nr,$r),_):_}function h_(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function Id(_,R,he,nr){var $r=z(269);return $r.modifiers=Ks(_),$r.importClause=R,$r.moduleSpecifier=he,$r.assertClause=nr,$r.transformFlags|=de($r.importClause)|de($r.moduleSpecifier),$r.transformFlags&=~67108864,$r.illegalDecorators=void 0,$r}function yp(_,R,he,nr,$r){return _.modifiers!==R||_.importClause!==he||_.moduleSpecifier!==nr||_.assertClause!==$r?wd(Id(R,he,nr,$r),_):_}function wd(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function D_(_,R,he){var nr=w(270);return nr.isTypeOnly=_,nr.name=R,nr.namedBindings=he,nr.transformFlags|=de(nr.name)|de(nr.namedBindings),_&&(nr.transformFlags|=1),nr.transformFlags&=~67108864,nr}function Mu(_,R,he,nr){return _.isTypeOnly!==R||_.name!==he||_.namedBindings!==nr?h(D_(R,he,nr),_):_}function nf(_,R){var he=w(296);return he.elements=A(_),he.multiLine=R,he.transformFlags|=4,he}function K_(_,R,he){return _.elements!==R||_.multiLine!==he?h(nf(R,he),_):_}function b_(_,R){var he=w(297);return he.name=_,he.value=R,he.transformFlags|=4,he}function S_(_,R,he){return _.name!==R||_.value!==he?h(b_(R,he),_):_}function xf(_,R){var he=w(298);return he.assertClause=_,he.multiLine=R,he}function qf(_,R,he){return _.assertClause!==R||_.multiLine!==he?h(xf(R,he),_):_}function tf(_){var R=w(271);return R.name=_,R.transformFlags|=de(R.name),R.transformFlags&=~67108864,R}function Q_(_,R){return _.name!==R?h(tf(R),_):_}function af(_){var R=w(277);return R.name=_,R.transformFlags|=de(R.name)|4,R.transformFlags&=~67108864,R}function Tc(_,R){return _.name!==R?h(af(R),_):_}function $u(_){var R=w(272);return R.elements=A(_),R.transformFlags|=te(R.elements),R.transformFlags&=~67108864,R}function of(_,R){return _.elements!==R?h($u(R),_):_}function X_(_,R,he){var nr=w(273);return nr.isTypeOnly=_,nr.propertyName=R,nr.name=he,nr.transformFlags|=de(nr.propertyName)|de(nr.name),nr.transformFlags&=~67108864,nr}function x_(_,R,he,nr){return _.isTypeOnly!==R||_.propertyName!==he||_.name!==nr?h(X_(R,he,nr),_):_}function Tu(_,R,he){var nr=z(274);return nr.modifiers=Ks(_),nr.isExportEquals=R,nr.expression=R?F().parenthesizeRightSideOfBinary(63,void 0,he):F().parenthesizeExpressionOfExportDefault(he),nr.transformFlags|=te(nr.modifiers)|de(nr.expression),nr.transformFlags&=~67108864,nr.illegalDecorators=void 0,nr}function Cf(_,R,he){return _.modifiers!==R||_.expression!==he?el(Tu(R,_.isExportEquals,he),_):_}function el(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function Lu(_,R,he,nr,$r){var oi=z(275);return oi.modifiers=Ks(_),oi.isTypeOnly=R,oi.exportClause=he,oi.moduleSpecifier=nr,oi.assertClause=$r,oi.transformFlags|=te(oi.modifiers)|de(oi.exportClause)|de(oi.moduleSpecifier),oi.transformFlags&=~67108864,oi.illegalDecorators=void 0,oi}function Ru(_,R,he,nr,$r,oi){return _.modifiers!==R||_.isTypeOnly!==he||_.exportClause!==nr||_.moduleSpecifier!==$r||_.assertClause!==oi?Bu(Lu(R,he,nr,$r,oi),_):_}function Bu(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators),h(_,R)}function Eu(_){var R=w(276);return R.elements=A(_),R.transformFlags|=te(R.elements),R.transformFlags&=~67108864,R}function hp(_,R){return _.elements!==R?h(Eu(R),_):_}function Z_(_,R,he){var nr=w(278);return nr.isTypeOnly=_,nr.propertyName=Ic(R),nr.name=Ic(he),nr.transformFlags|=de(nr.propertyName)|de(nr.name),nr.transformFlags&=~67108864,nr}function Od(_,R,he,nr){return _.isTypeOnly!==R||_.propertyName!==he||_.name!==nr?h(Z_(R,he,nr),_):_}function Y_(){var _=z(279);return _}function Fo(_){var R=w(280);return R.expression=_,R.transformFlags|=de(R.expression),R.transformFlags&=~67108864,R}function sf(_,R){return _.expression!==R?h(Fo(R),_):_}function Fd(_){return w(_)}function C_(_,R,he){he===void 0&&(he=!1);var nr=Gf(_,he?R&&F().parenthesizeNonArrayTypeOfPostfixType(R):R);return nr.postfix=he,nr}function Gf(_,R){var he=w(_);return he.type=R,he}function Tf(_,R,he){return R.type!==he?h(C_(_,he,R.postfix),R):R}function Md(_,R,he){return R.type!==he?h(Gf(_,he),R):R}function ss(_,R){var he=pe(320,void 0,void 0,void 0,_,R);return he}function wi(_,R,he){return _.parameters!==R||_.type!==he?h(ss(R,he),_):_}function Fs(_,R){R===void 0&&(R=!1);var he=w(325);return he.jsDocPropertyTags=Ks(_),he.isArrayType=R,he}function Kt(_,R,he){return _.jsDocPropertyTags!==R||_.isArrayType!==he?h(Fs(R,he),_):_}function Hs(_){var R=w(312);return R.type=_,R}function $_(_,R){return _.type!==R?h(Hs(R),_):_}function Ec(_,R,he){var nr=w(326);return nr.typeParameters=Ks(_),nr.parameters=A(R),nr.type=he,nr}function ji(_,R,he,nr){return _.typeParameters!==R||_.parameters!==he||_.type!==nr?h(Ec(R,he,nr),_):_}function su(_){var R=ie(_.kind);return _.tagName.escapedText===e.escapeLeadingUnderscores(R)?_.tagName:wr(R)}function cu(_,R,he){var nr=w(_);return nr.tagName=R,nr.comment=he,nr}function Wo(_,R,he,nr){var $r=cu(347,_!=null?_:wr("template"),nr);return $r.constraint=R,$r.typeParameters=A(he),$r}function kc(_,R,he,nr,$r){return R===void 0&&(R=su(_)),_.tagName!==R||_.constraint!==he||_.typeParameters!==nr||_.comment!==$r?h(Wo(R,he,nr,$r),_):_}function Vc(_,R,he,nr){var $r=cu(348,_!=null?_:wr("typedef"),nr);return $r.typeExpression=R,$r.fullName=he,$r.name=e.getJSDocTypeAliasName(he),$r}function ed(_,R,he,nr,$r){return R===void 0&&(R=su(_)),_.tagName!==R||_.typeExpression!==he||_.fullName!==nr||_.comment!==$r?h(Vc(R,he,nr,$r),_):_}function ts(_,R,he,nr,$r,oi){var ft=cu(343,_!=null?_:wr("param"),oi);return ft.typeExpression=nr,ft.name=R,ft.isNameFirst=!!$r,ft.isBracketed=he,ft}function gl(_,R,he,nr,$r,oi,ft){return R===void 0&&(R=su(_)),_.tagName!==R||_.name!==he||_.isBracketed!==nr||_.typeExpression!==$r||_.isNameFirst!==oi||_.comment!==ft?h(ts(R,he,nr,$r,oi,ft),_):_}function Ef(_,R,he,nr,$r,oi){var ft=cu(350,_!=null?_:wr("prop"),oi);return ft.typeExpression=nr,ft.name=R,ft.isNameFirst=!!$r,ft.isBracketed=he,ft}function T_(_,R,he,nr,$r,oi,ft){return R===void 0&&(R=su(_)),_.tagName!==R||_.name!==he||_.isBracketed!==nr||_.typeExpression!==$r||_.isNameFirst!==oi||_.comment!==ft?h(Ef(R,he,nr,$r,oi,ft),_):_}function rl(_,R,he,nr){var $r=cu(341,_!=null?_:wr("callback"),nr);return $r.typeExpression=R,$r.fullName=he,$r.name=e.getJSDocTypeAliasName(he),$r}function Ms(_,R,he,nr,$r){return R===void 0&&(R=su(_)),_.tagName!==R||_.typeExpression!==he||_.fullName!==nr||_.comment!==$r?h(rl(R,he,nr,$r),_):_}function ml(_,R,he){var nr=cu(331,_!=null?_:wr("augments"),he);return nr.class=R,nr}function Hf(_,R,he,nr){return R===void 0&&(R=su(_)),_.tagName!==R||_.class!==he||_.comment!==nr?h(ml(R,he,nr),_):_}function Kf(_,R,he){var nr=cu(332,_!=null?_:wr("implements"),he);return nr.class=R,nr}function Nl(_,R,he){var nr=cu(349,_!=null?_:wr("see"),he);return nr.name=R,nr}function Dp(_,R,he,nr){return _.tagName!==R||_.name!==he||_.comment!==nr?h(Nl(R,he,nr),_):_}function Us(_){var R=w(313);return R.name=_,R}function cf(_,R){return _.name!==R?h(Us(R),_):_}function eu(_,R){var he=w(314);return he.left=_,he.right=R,he.transformFlags|=de(he.left)|de(he.right),he}function Ld(_,R,he){return _.left!==R||_.right!==he?h(eu(R,he),_):_}function uf(_,R){var he=w(327);return he.name=_,he.text=R,he}function lf(_,R,he){return _.name!==R?h(uf(R,he),_):_}function rd(_,R){var he=w(328);return he.name=_,he.text=R,he}function Pl(_,R,he){return _.name!==R?h(rd(R,he),_):_}function nl(_,R){var he=w(329);return he.name=_,he.text=R,he}function nd(_,R,he){return _.name!==R?h(nl(R,he),_):_}function ks(_,R,he,nr){return R===void 0&&(R=su(_)),_.tagName!==R||_.class!==he||_.comment!==nr?h(Kf(R,he,nr),_):_}function Ac(_,R,he){var nr=cu(_,R!=null?R:wr(ie(_)),he);return nr}function Ls(_,R,he,nr){return he===void 0&&(he=su(R)),R.tagName!==he||R.comment!==nr?h(Ac(_,he,nr),R):R}function ff(_,R,he,nr){var $r=cu(_,R!=null?R:wr(ie(_)),nr);return $r.typeExpression=he,$r}function E_(_,R,he,nr,$r){return he===void 0&&(he=su(R)),R.tagName!==he||R.typeExpression!==nr||R.comment!==$r?h(ff(_,he,nr,$r),R):R}function Ya(_,R){var he=cu(330,_,R);return he}function zi(_,R,he){return _.tagName!==R||_.comment!==he?h(Ya(R,he),_):_}function Nc(_){var R=w(324);return R.text=_,R}function Vp(_,R){return _.text!==R?h(Nc(R),_):_}function Qf(_,R){var he=w(323);return he.comment=_,he.tags=Ks(R),he}function _f(_,R,he){return _.comment!==R||_.tags!==he?h(Qf(R,he),_):_}function vl(_,R,he){var nr=w(281);return nr.openingElement=_,nr.children=A(R),nr.closingElement=he,nr.transformFlags|=de(nr.openingElement)|te(nr.children)|de(nr.closingElement)|2,nr}function Xf(_,R,he,nr){return _.openingElement!==R||_.children!==he||_.closingElement!==nr?h(vl(R,he,nr),_):_}function ku(_,R,he){var nr=w(282);return nr.tagName=_,nr.typeArguments=Ks(R),nr.attributes=he,nr.transformFlags|=de(nr.tagName)|te(nr.typeArguments)|de(nr.attributes)|2,nr.typeArguments&&(nr.transformFlags|=1),nr}function il(_,R,he,nr){return _.tagName!==R||_.typeArguments!==he||_.attributes!==nr?h(ku(R,he,nr),_):_}function Il(_,R,he){var nr=w(283);return nr.tagName=_,nr.typeArguments=Ks(R),nr.attributes=he,nr.transformFlags|=de(nr.tagName)|te(nr.typeArguments)|de(nr.attributes)|2,R&&(nr.transformFlags|=1),nr}function kf(_,R,he,nr){return _.tagName!==R||_.typeArguments!==he||_.attributes!==nr?h(Il(R,he,nr),_):_}function qc(_){var R=w(284);return R.tagName=_,R.transformFlags|=de(R.tagName)|2,R}function bp(_,R){return _.tagName!==R?h(qc(R),_):_}function ko(_,R,he){var nr=w(285);return nr.openingFragment=_,nr.children=A(R),nr.closingFragment=he,nr.transformFlags|=de(nr.openingFragment)|te(nr.children)|de(nr.closingFragment)|2,nr}function Gc(_,R,he,nr){return _.openingFragment!==R||_.children!==he||_.closingFragment!==nr?h(ko(R,he,nr),_):_}function Af(_,R){var he=w(11);return he.text=_,he.containsOnlyTriviaWhiteSpaces=!!R,he.transformFlags|=2,he}function uu(_,R,he){return _.text!==R||_.containsOnlyTriviaWhiteSpaces!==he?h(Af(R,he),_):_}function Nf(){var _=w(286);return _.transformFlags|=2,_}function Zf(){var _=w(287);return _.transformFlags|=2,_}function wl(_,R){var he=w(288);return he.name=_,he.initializer=R,he.transformFlags|=de(he.name)|de(he.initializer)|2,he}function Sp(_,R,he){return _.name!==R||_.initializer!==he?h(wl(R,he),_):_}function Hc(_){var R=w(289);return R.properties=A(_),R.transformFlags|=te(R.properties)|2,R}function Yo(_,R){return _.properties!==R?h(Hc(R),_):_}function Rd(_){var R=w(290);return R.expression=_,R.transformFlags|=de(R.expression)|2,R}function Yf(_,R){return _.expression!==R?h(Rd(R),_):_}function lu(_,R){var he=w(291);return he.dotDotDotToken=_,he.expression=R,he.transformFlags|=de(he.dotDotDotToken)|de(he.expression)|2,he}function pu(_,R){return _.expression!==R?h(lu(_.dotDotDotToken,R),_):_}function k_(_,R){var he=w(292);return he.expression=F().parenthesizeExpressionForDisallowedComma(_),he.statements=A(R),he.transformFlags|=de(he.expression)|te(he.statements),he}function id(_,R,he){return _.expression!==R||_.statements!==he?h(k_(R,he),_):_}function Pf(_){var R=w(293);return R.statements=A(_),R.transformFlags=te(R.statements),R}function Ol(_,R){return _.statements!==R?h(Pf(R),_):_}function Au(_,R){var he=w(294);switch(he.token=_,he.types=A(R),he.transformFlags|=te(he.types),_){case 94:he.transformFlags|=1024;break;case 117:he.transformFlags|=1;break;default:return e.Debug.assertNever(_)}return he}function xp(_,R){return _.types!==R?h(Au(_.token,R),_):_}function Fl(_,R){var he=w(295);return(typeof _=="string"||_&&!e.isVariableDeclaration(_))&&(_=v_(_,void 0,void 0,void 0)),he.variableDeclaration=_,he.block=R,he.transformFlags|=de(he.variableDeclaration)|de(he.block),_||(he.transformFlags|=64),he}function tl(_,R,he){return _.variableDeclaration!==R||_.block!==he?h(Fl(R,he),_):_}function $f(_,R){var he=U(299,void 0,_);return he.initializer=F().parenthesizeExpressionForDisallowedComma(R),he.transformFlags|=de(he.name)|de(he.initializer),he.illegalDecorators=void 0,he.modifiers=void 0,he.questionToken=void 0,he.exclamationToken=void 0,he}function Cp(_,R,he){return _.name!==R||_.initializer!==he?gu($f(R,he),_):_}function gu(_,R){return _!==R&&(_.illegalDecorators=R.illegalDecorators,_.modifiers=R.modifiers,_.questionToken=R.questionToken,_.exclamationToken=R.exclamationToken),h(_,R)}function td(_,R){var he=U(300,void 0,_);return he.objectAssignmentInitializer=R&&F().parenthesizeExpressionForDisallowedComma(R),he.transformFlags|=de(he.objectAssignmentInitializer)|1024,he.equalsToken=void 0,he.illegalDecorators=void 0,he.modifiers=void 0,he.questionToken=void 0,he.exclamationToken=void 0,he}function qp(_,R,he){return _.name!==R||_.objectAssignmentInitializer!==he?Xt(td(R,he),_):_}function Xt(_,R){return _!==R&&(_.equalsToken=R.equalsToken,_.illegalDecorators=R.illegalDecorators,_.modifiers=R.modifiers,_.questionToken=R.questionToken,_.exclamationToken=R.exclamationToken),h(_,R)}function ru(_){var R=w(301);return R.expression=F().parenthesizeExpressionForDisallowedComma(_),R.transformFlags|=de(R.expression)|128|65536,R}function Oi(_,R){return _.expression!==R?h(ru(R),_):_}function Ml(_,R){var he=w(302);return he.name=Ic(_),he.initializer=R&&F().parenthesizeExpressionForDisallowedComma(R),he.transformFlags|=de(he.name)|de(he.initializer)|1,he}function ad(_,R,he){return _.name!==R||_.initializer!==he?h(Ml(R,he),_):_}function al(_,R,he){var nr=V.createBaseSourceFileNode(308);return nr.statements=A(_),nr.endOfFileToken=R,nr.flags|=he,nr.fileName="",nr.text="",nr.languageVersion=0,nr.languageVariant=0,nr.scriptKind=0,nr.isDeclarationFile=!1,nr.hasNoDefaultLib=!1,nr.transformFlags|=te(nr.statements)|de(nr.endOfFileToken),nr}function Ju(_,R,he,nr,$r,oi,ft){var Ja=_.redirectInfo?Object.create(_.redirectInfo.redirectTarget):V.createBaseSourceFileNode(308);for(var Rs in _)Rs==="emitNode"||e.hasProperty(Ja,Rs)||!e.hasProperty(_,Rs)||(Ja[Rs]=_[Rs]);return Ja.flags|=_.flags,Ja.statements=A(R),Ja.endOfFileToken=_.endOfFileToken,Ja.isDeclarationFile=he,Ja.referencedFiles=nr,Ja.typeReferenceDirectives=$r,Ja.hasNoDefaultLib=oi,Ja.libReferenceDirectives=ft,Ja.transformFlags=te(Ja.statements)|de(Ja.endOfFileToken),Ja.impliedNodeFormat=_.impliedNodeFormat,Ja}function od(_,R,he,nr,$r,oi,ft){return he===void 0&&(he=_.isDeclarationFile),nr===void 0&&(nr=_.referencedFiles),$r===void 0&&($r=_.typeReferenceDirectives),oi===void 0&&(oi=_.hasNoDefaultLib),ft===void 0&&(ft=_.libReferenceDirectives),_.statements!==R||_.isDeclarationFile!==he||_.referencedFiles!==nr||_.typeReferenceDirectives!==$r||_.hasNoDefaultLib!==oi||_.libReferenceDirectives!==ft?h(Ju(_,R,he,nr,$r,oi,ft),_):_}function Bd(_,R){R===void 0&&(R=e.emptyArray);var he=w(309);return he.prepends=R,he.sourceFiles=_,he}function yc(_,R,he){return he===void 0&&(he=e.emptyArray),_.sourceFiles!==R||_.prepends!==he?h(Bd(R,he),_):_}function A_(_,R,he){var nr=w(310);return nr.prologues=_,nr.syntheticReferences=R,nr.texts=he,nr.fileName="",nr.text="",nr.referencedFiles=e.emptyArray,nr.libReferenceDirectives=e.emptyArray,nr.getLineAndCharacterOfPosition=function($r){return e.getLineAndCharacterOfPosition(nr,$r)},nr}function e_(_,R){var he=w(_);return he.data=R,he}function N_(_){return e_(303,_)}function Tp(_,R){var he=e_(304,_);return he.texts=R,he}function r_(_,R){return e_(R?306:305,_)}function v(_){var R=w(307);return R.data=_.data,R.section=_,R}function Ze(){var _=w(311);return _.javascriptText="",_.declarationText="",_}function _n(_,R,he){R===void 0&&(R=!1);var nr=w(234);return nr.type=_,nr.isSpread=R,nr.tupleNameSource=he,nr}function Zn(_){var R=w(351);return R._children=_,R}function $i(_){var R=w(352);return R.original=_,e.setTextRange(R,_),R}function kt(_,R){var he=w(353);return he.expression=_,he.original=R,he.transformFlags|=de(he.expression)|1,e.setTextRange(he,R),he}function Mt(_,R){return _.expression!==R?h(kt(R,_.original),_):_}function wt(_){if(e.nodeIsSynthesized(_)&&!e.isParseTreeNode(_)&&!_.original&&!_.emitNode&&!_.id){if(e.isCommaListExpression(_))return _.elements;if(e.isBinaryExpression(_)&&e.isCommaToken(_.operatorToken))return[_.left,_.right]}return _}function Wa(_){var R=w(354);return R.elements=A(e.sameFlatMap(_,wt)),R.transformFlags|=te(R.elements),R}function Lo(_,R){return _.elements!==R?h(Wa(R),_):_}function Na(_){var R=w(356);return R.emitNode={},R.original=_,R}function Pc(_){var R=w(355);return R.emitNode={},R.original=_,R}function Ba(_,R){var he=w(357);return he.expression=_,he.thisArg=R,he.transformFlags|=de(he.expression)|de(he.thisArg),he}function ca(_,R,he){return _.expression!==R||_.thisArg!==he?h(Ba(R,he),_):_}function Bc(_){if(_===void 0)return _;var R=e.isSourceFile(_)?V.createBaseSourceFileNode(308):e.isIdentifier(_)?V.createBaseIdentifierNode(79):e.isPrivateIdentifier(_)?V.createBasePrivateIdentifierNode(80):e.isNodeKind(_.kind)?V.createBaseNode(_.kind):V.createBaseTokenNode(_.kind);R.flags|=_.flags&~8,R.transformFlags=_.transformFlags,De(R,_);for(var he in _)e.hasProperty(R,he)||!e.hasProperty(_,he)||(R[he]=_[he]);return R}function mu(_,R,he){return $s($n(void 0,void 0,void 0,void 0,R?[R]:[],void 0,fe(_,!0)),void 0,he?[he]:[])}function If(_,R,he){return $s(at(void 0,void 0,R?[R]:[],void 0,void 0,fe(_,!0)),void 0,he?[he]:[])}function Nu(){return qe(Oe("0"))}function P_(_){return Tu(void 0,!1,_)}function Jd(_){return Lu(void 0,!1,Eu([Z_(!1,void 0,_)]))}function jd(_,R){return R==="undefined"?u.createStrictEquality(_,Nu()):u.createStrictEquality(Rt(_),d(R))}function Ll(_,R,he){return e.isCallChain(_)?js(ds(_,void 0,R),void 0,void 0,he):$s(Ia(_,R),void 0,he)}function sd(_,R,he){return Ll(_,"bind",zn([R],he,!0))}function Ep(_,R,he){return Ll(_,"call",zn([R],he,!0))}function Gp(_,R,he){return Ll(_,"apply",[R,he])}function cd(_,R,he){return Ll(wr(_),R,he)}function $g(_,R){return Ll(_,"slice",R===void 0?[]:[ol(R)])}function ud(_,R){return Ll(_,"concat",R)}function fu(_,R,he){return cd("Object","defineProperty",[_,ol(R),he])}function yl(_,R,he){return cd("Reflect","get",he?[_,R,he]:[_,R])}function pg(_,R,he,nr){return cd("Reflect","set",nr?[_,R,he,nr]:[_,R,he])}function n_(_,R,he){return he?(_.push($f(R,he)),!0):!1}function kp(_,R){var he=[];n_(he,"enumerable",ol(_.enumerable)),n_(he,"configurable",ol(_.configurable));var nr=n_(he,"writable",ol(_.writable));nr=n_(he,"value",_.value)||nr;var $r=n_(he,"get",_.get);return $r=n_(he,"set",_.set)||$r,e.Debug.assert(!(nr&&$r),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),la(he,!R)}function gg(_,R){switch(_.kind){case 214:return un(_,R);case 213:return ee(_,_.type,R);case 231:return Jt(_,R,_.type);case 235:return Ga(_,R,_.type);case 232:return Yt(_,R);case 353:return Mt(_,R)}}function em(_){return e.isParenthesizedExpression(_)&&e.nodeIsSynthesized(_)&&e.nodeIsSynthesized(e.getSourceMapRange(_))&&e.nodeIsSynthesized(e.getCommentRange(_))&&!e.some(e.getSyntheticLeadingComments(_))&&!e.some(e.getSyntheticTrailingComments(_))}function Hp(_,R,he){return he===void 0&&(he=15),_&&e.isOuterExpression(_,he)&&!em(_)?gg(_,Hp(_.expression,R)):R}function ld(_,R,he){if(!R)return _;var nr=go(R,R.label,e.isLabeledStatement(R.statement)?ld(_,R.statement):_);return he&&he(R),nr}function fd(_,R){var he=e.skipParentheses(_);switch(he.kind){case 79:return R;case 108:case 8:case 9:case 10:return!1;case 206:var nr=he.elements;return nr.length!==0;case 207:return he.properties.length>0;default:return!0}}function Kp(_,R,he,nr){nr===void 0&&(nr=!1);var $r=e.skipOuterExpressions(_,15),oi,ft;return e.isSuperProperty($r)?(oi=ve(),ft=$r):e.isSuperKeyword($r)?(oi=ve(),ft=he!==void 0&&he<2?e.setTextRange(wr("_super"),$r):$r):e.getEmitFlags($r)&4096?(oi=Nu(),ft=F().parenthesizeLeftSideOfAccess($r,!1)):e.isPropertyAccessExpression($r)?fd($r.expression,nr)?(oi=Ue(R),ft=Ia(e.setTextRange(u.createAssignment(oi,$r.expression),$r.expression),$r.name),e.setTextRange(ft,$r)):(oi=$r.expression,ft=$r):e.isElementAccessExpression($r)?fd($r.expression,nr)?(oi=Ue(R),ft=ac(e.setTextRange(u.createAssignment(oi,$r.expression),$r.expression),$r.argumentExpression),e.setTextRange(ft,$r)):(oi=$r.expression,ft=$r):(oi=Nu(),ft=F().parenthesizeLeftSideOfAccess(_,!1)),{target:ft,thisArg:oi}}function Fe(_,R){return Ia(Er(la([zr(void 0,"value",[Ie(void 0,void 0,_,void 0,void 0,void 0)],fe([gt(R)]))])),"value")}function gr(_){return _.length>10?Wa(_):e.reduceLeft(_,u.createComma)}function Yr(_,R,he,nr){nr===void 0&&(nr=0);var $r=e.getNameOfDeclaration(_);if($r&&e.isIdentifier($r)&&!e.isGeneratedIdentifier($r)){var oi=e.setParent(e.setTextRange(Bc($r),$r),$r.parent);return nr|=e.getEmitFlags($r),he||(nr|=48),R||(nr|=1536),nr&&e.setEmitFlags(oi,nr),oi}return ln(_)}function mn(_,R,he){return Yr(_,R,he,16384|32768)}function Un(_,R,he){return Yr(_,R,he,16384)}function ci(_,R,he){return Yr(_,R,he,8192)}function tt(_,R,he){return Yr(_,R,he)}function mt(_,R,he,nr){var $r=Ia(_,e.nodeIsSynthesized(R)?R:Bc(R));e.setTextRange($r,R);var oi=0;return nr||(oi|=48),he||(oi|=1536),oi&&e.setEmitFlags($r,oi),$r}function bt(_,R,he,nr){return _&&e.hasSyntacticModifier(R,1)?mt(_,Yr(R),he,nr):ci(R,he,nr)}function Lt(_,R,he,nr){var $r=mo(_,R,0,he);return wo(_,R,$r,nr)}function Oa(_){return e.isStringLiteral(_.expression)&&_.expression.text==="use strict"}function bo(){return e.startOnNewLine(gt(d("use strict")))}function mo(_,R,he,nr){he===void 0&&(he=0),e.Debug.assert(R.length===0,"Prologue directives should be at the first statement in the target statements array");for(var $r=!1,oi=_.length;he<oi;){var ft=_[he];if(e.isPrologueDirective(ft))Oa(ft)&&($r=!0),R.push(ft);else break;he++}return nr&&!$r&&R.push(bo()),he}function wo(_,R,he,nr,$r){$r===void 0&&($r=e.returnTrue);for(var oi=_.length;he!==void 0&&he<oi;){var ft=_[he];if(e.getEmitFlags(ft)&1048576&&$r(ft))e.append(R,nr?e.visitNode(ft,nr,e.isStatement):ft);else break;he++}return he}function Cs(_){var R=e.findUseStrictPrologue(_);return R?_:e.setTextRange(A(zn([bo()],_,!0)),_)}function hc(_){return e.Debug.assert(e.every(_,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(_)||fe(_)}function $o(_,R,he){for(var nr=he;nr<_.length&&R(_[nr]);)nr++;return nr}function vu(_,R){if(!e.some(R))return _;var he=$o(_,e.isPrologueDirective,0),nr=$o(_,e.isHoistedFunction,he),$r=$o(_,e.isHoistedVariableStatement,nr),oi=$o(R,e.isPrologueDirective,0),ft=$o(R,e.isHoistedFunction,oi),Ja=$o(R,e.isHoistedVariableStatement,ft),Rs=$o(R,e.isCustomPrologue,Ja);e.Debug.assert(Rs===R.length,"Expected declarations to be valid standard or custom prologues");var Li=e.isNodeArray(_)?_.slice():_;if(Rs>Ja&&Li.splice.apply(Li,zn([$r,0],R.slice(Ja,Rs),!1)),Ja>ft&&Li.splice.apply(Li,zn([nr,0],R.slice(ft,Ja),!1)),ft>oi&&Li.splice.apply(Li,zn([he,0],R.slice(oi,ft),!1)),oi>0)if(he===0)Li.splice.apply(Li,zn([0,0],R.slice(0,oi),!1));else{for(var ju=new e.Map,yu=0;yu<he;yu++){var wf=_[yu];ju.set(wf.expression.text,!0)}for(var yu=oi-1;yu>=0;yu--){var Of=R[yu];ju.has(Of.expression.text)||Li.unshift(Of)}}return e.isNodeArray(_)?e.setTextRange(A(Li,_.hasTrailingComma),_):_}function Kc(_,R){var he,nr;return typeof R=="number"?nr=xe(R):nr=R,e.isTypeParameterDeclaration(_)?vn(_,nr,_.name,_.constraint,_.default):e.isParameter(_)?We(_,nr,_.dotDotDotToken,_.name,_.questionToken,_.type,_.initializer):e.isConstructorTypeNode(_)?On(_,nr,_.typeParameters,_.parameters,_.type):e.isPropertySignature(_)?An(_,nr,_.name,_.questionToken,_.type):e.isPropertyDeclaration(_)?Dr(_,nr,_.name,(he=_.questionToken)!==null&&he!==void 0?he:_.exclamationToken,_.type,_.initializer):e.isMethodSignature(_)?jr(_,nr,_.name,_.questionToken,_.typeParameters,_.parameters,_.type):e.isMethodDeclaration(_)?je(_,nr,_.asteriskToken,_.name,_.questionToken,_.typeParameters,_.parameters,_.type,_.body):e.isConstructorDeclaration(_)?Ke(_,nr,_.parameters,_.body):e.isGetAccessorDeclaration(_)?_r(_,nr,_.name,_.parameters,_.type,_.body):e.isSetAccessorDeclaration(_)?fn(_,nr,_.name,_.parameters,_.body):e.isIndexSignatureDeclaration(_)?Ai(_,nr,_.parameters,_.type):e.isFunctionExpression(_)?Ii(_,nr,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isArrowFunction(_)?Ji(_,nr,_.typeParameters,_.parameters,_.type,_.equalsGreaterThanToken,_.body):e.isClassExpression(_)?ui(_,nr,_.name,_.typeParameters,_.heritageClauses,_.members):e.isVariableStatement(_)?Fn(_,nr,_.declarationList):e.isFunctionDeclaration(_)?Qt(_,nr,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isClassDeclaration(_)?Wc(_,nr,_.name,_.typeParameters,_.heritageClauses,_.members):e.isInterfaceDeclaration(_)?Sf(_,nr,_.name,_.typeParameters,_.heritageClauses,_.members):e.isTypeAliasDeclaration(_)?is(_,nr,_.name,_.typeParameters,_.type):e.isEnumDeclaration(_)?Yu(_,nr,_.name,_.members):e.isModuleDeclaration(_)?gp(_,nr,_.name,_.body):e.isImportEqualsDeclaration(_)?Al(_,nr,_.isTypeOnly,_.name,_.moduleReference):e.isImportDeclaration(_)?yp(_,nr,_.importClause,_.moduleSpecifier,_.assertClause):e.isExportAssignment(_)?Cf(_,nr,_.expression):e.isExportDeclaration(_)?Ru(_,nr,_.isTypeOnly,_.exportClause,_.moduleSpecifier,_.assertClause):e.Debug.assertNever(_)}function Ks(_){return _?A(_):void 0}function Ic(_){return typeof _=="string"?wr(_):_}function ol(_){return typeof _=="string"?d(_):typeof _=="number"?Oe(_):typeof _=="boolean"?_?Ee():ze():_}function i_(_){return typeof _=="number"?Br(_):_}function Js(_){return _&&e.isNotEmittedStatement(_)?e.setTextRange(De(Si(),_),_):_}}e.createNodeFactory=K;function se(H,V){return H!==V&&e.setTextRange(H,V),H}function O(H,V){return H!==V&&(De(H,V),e.setTextRange(H,V)),H}function ie(H){switch(H){case 346:return"type";case 344:return"returns";case 345:return"this";case 342:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 347:return"template";case 348:return"typedef";case 343:return"param";case 350:return"prop";case 341:return"callback";case 331:return"augments";case 332:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(H)))}}var _e,Q={};function p(H,V){switch(_e||(_e=e.createScanner(99,!1,0)),H){case 14:_e.setText("`"+V+"`");break;case 15:_e.setText("`"+V+"${");break;case 16:_e.setText("}"+V+"${");break;case 17:_e.setText("}"+V+"`");break}var h=_e.scan();if(h===19&&(h=_e.reScanTemplateToken(!1)),_e.isUnterminated())return _e.setText(void 0),Q;var F;switch(h){case 14:case 15:case 16:case 17:F=_e.getTokenValue();break}return F===void 0||_e.scan()!==1?(_e.setText(void 0),Q):(_e.setText(void 0),F)}function D(H){return de(H)&~67108864}function le(H,V){return V|H.transformFlags&134234112}function de(H){if(!H)return 0;var V=H.transformFlags&~ae(H.kind);return e.isNamedDeclaration(H)&&e.isPropertyName(H.name)?le(H.name,V):V}function te(H){return H?H.transformFlags:0}function oe(H){for(var V=0,h=0,F=H;h<F.length;h++){var $=F[h];V|=de($)}H.transformFlags=V}function ae(H){if(H>=179&&H<=202)return-2;switch(H){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 353:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}e.getTransformFlagsSubtreeExclusions=ae;var E=e.createBaseNodeFactory();function I(H){return H.flags|=8,H}var f={createBaseSourceFileNode:function(H){return I(E.createBaseSourceFileNode(H))},createBaseIdentifierNode:function(H){return I(E.createBaseIdentifierNode(H))},createBasePrivateIdentifierNode:function(H){return I(E.createBasePrivateIdentifierNode(H))},createBaseTokenNode:function(H){return I(E.createBaseTokenNode(H))},createBaseNode:function(H){return I(E.createBaseNode(H))}};e.factory=K(4,f);function m(H,V,h){var F,$,L,P,N,J,q,G,ye,b;e.isString(H)?(L="",P=H,N=H.length,J=V,q=h):(e.Debug.assert(V==="js"||V==="dts"),L=(V==="js"?H.javascriptPath:H.declarationPath)||"",J=V==="js"?H.javascriptMapPath:H.declarationMapPath,G=function(){return V==="js"?H.javascriptText:H.declarationText},ye=function(){return V==="js"?H.javascriptMapText:H.declarationMapText},N=function(){return G().length},H.buildInfo&&H.buildInfo.bundle&&(e.Debug.assert(h===void 0||typeof h=="boolean"),F=h,$=V==="js"?H.buildInfo.bundle.js:H.buildInfo.bundle.dts,b=H.oldFileOfCurrentEmit));var x=b?S(e.Debug.checkDefined($)):y($,F,N);return x.fileName=L,x.sourceMapPath=J,x.oldFileOfCurrentEmit=b,G&&ye?(Object.defineProperty(x,"text",{get:G}),Object.defineProperty(x,"sourceMapText",{get:ye})):(e.Debug.assert(!b),x.text=P!=null?P:"",x.sourceMapText=q),x}e.createUnparsedSourceFile=m;function y(H,V,h){for(var F,$,L,P,N,J,q,G,ye=0,b=H?H.sections:e.emptyArray;ye<b.length;ye++){var x=b[ye];switch(x.kind){case"prologue":F=e.append(F,e.setTextRange(e.factory.createUnparsedPrologue(x.data),x));break;case"emitHelpers":$=e.append($,e.getAllUnscopedEmitHelpers().get(x.data));break;case"no-default-lib":G=!0;break;case"reference":L=e.append(L,{pos:-1,end:-1,fileName:x.data});break;case"type":P=e.append(P,{pos:-1,end:-1,fileName:x.data});break;case"type-import":P=e.append(P,{pos:-1,end:-1,fileName:x.data,resolutionMode:e.ModuleKind.ESNext});break;case"type-require":P=e.append(P,{pos:-1,end:-1,fileName:x.data,resolutionMode:e.ModuleKind.CommonJS});break;case"lib":N=e.append(N,{pos:-1,end:-1,fileName:x.data});break;case"prepend":for(var T=void 0,Z=0,B=x.texts;Z<B.length;Z++){var u=B[Z];(!V||u.kind!=="internal")&&(T=e.append(T,e.setTextRange(e.factory.createUnparsedTextLike(u.data,u.kind==="internal"),u)))}J=e.addRange(J,T),q=e.append(q,e.factory.createUnparsedPrepend(x.data,T!=null?T:e.emptyArray));break;case"internal":if(V){q||(q=[]);break}case"text":q=e.append(q,e.setTextRange(e.factory.createUnparsedTextLike(x.data,x.kind==="internal"),x));break;default:e.Debug.assertNever(x)}}if(!q){var A=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(A,0,typeof h=="function"?h():h),q=[A]}var w=e.parseNodeFactory.createUnparsedSource(F!=null?F:e.emptyArray,void 0,q);return e.setEachParent(F,w),e.setEachParent(q,w),e.setEachParent(J,w),w.hasNoDefaultLib=G,w.helpers=$,w.referencedFiles=L||e.emptyArray,w.typeReferenceDirectives=P,w.libReferenceDirectives=N||e.emptyArray,w}function S(H){for(var V,h,F=0,$=H.sections;F<$.length;F++){var L=$[F];switch(L.kind){case"internal":case"text":V=e.append(V,e.setTextRange(e.factory.createUnparsedTextLike(L.data,L.kind==="internal"),L));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":h=e.append(h,e.setTextRange(e.factory.createUnparsedSyntheticReference(L),L));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(L)}}var P=e.factory.createUnparsedSource(e.emptyArray,h,V!=null?V:e.emptyArray);return e.setEachParent(h,P),e.setEachParent(V,P),P.helpers=e.map(H.sources&&H.sources.helpers,function(N){return e.getAllUnscopedEmitHelpers().get(N)}),P}function k(H,V,h,F,$,L,P,N,J,q,G){var ye=e.parseNodeFactory.createInputFiles();if(e.isString(H))ye.javascriptText=H,ye.javascriptMapPath=h,ye.javascriptMapText=F,ye.declarationText=V,ye.declarationMapPath=$,ye.declarationMapText=L,ye.javascriptPath=P,ye.declarationPath=N,ye.buildInfoPath=J,ye.buildInfo=q,ye.oldFileOfCurrentEmit=G;else{var b=new e.Map,x=function(u){if(u!==void 0){var A=b.get(u);return A===void 0&&(A=H(u),b.set(u,A!==void 0?A:!1)),A!==!1?A:void 0}},T=function(u){var A=x(u);return A!==void 0?A:"/* Input file ".concat(u,` was missing */\r
  33. `)},Z,B=function(u){var A;if(Z===void 0){var w=u();Z=w!==void 0&&(A=e.getBuildInfo(ye.buildInfoPath,w))!==null&&A!==void 0?A:!1}return Z||void 0};ye.javascriptPath=V,ye.javascriptMapPath=h,ye.declarationPath=e.Debug.checkDefined(F),ye.declarationMapPath=$,ye.buildInfoPath=L,Object.defineProperties(ye,{javascriptText:{get:function(){return T(V)}},javascriptMapText:{get:function(){return x(h)}},declarationText:{get:function(){return T(e.Debug.checkDefined(F))}},declarationMapText:{get:function(){return x($)}},buildInfo:{get:function(){return B(function(){return x(L)})}}})}return ye}e.createInputFiles=k;var C;function me(H,V,h){return new(C||(C=e.objectAllocator.getSourceMapSourceConstructor()))(H,V,h)}e.createSourceMapSource=me;function De(H,V){if(H.original=V,V){var h=V.emitNode;h&&(H.emitNode=X(h,H.emitNode))}return H}e.setOriginalNode=De;function X(H,V){var h=H.flags,F=H.leadingComments,$=H.trailingComments,L=H.commentRange,P=H.sourceMapRange,N=H.tokenSourceMapRanges,J=H.constantValue,q=H.helpers,G=H.startsOnNewLine,ye=H.snippetElement;if(V||(V={}),F&&(V.leadingComments=e.addRange(F.slice(),V.leadingComments)),$&&(V.trailingComments=e.addRange($.slice(),V.trailingComments)),h&&(V.flags=h&~268435456),L&&(V.commentRange=L),P&&(V.sourceMapRange=P),N&&(V.tokenSourceMapRanges=M(N,V.tokenSourceMapRanges)),J!==void 0&&(V.constantValue=J),q)for(var b=0,x=q;b<x.length;b++){var T=x[b];V.helpers=e.appendIfUnique(V.helpers,T)}return G!==void 0&&(V.startsOnNewLine=G),ye!==void 0&&(V.snippetElement=ye),V}function M(H,V){V||(V=[]);for(var h in H)V[h]=H[h];return V}})(fr||(fr={}));var fr;(function(e){function o(L){var P;if(L.emitNode)e.Debug.assert(!(L.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(L)){if(L.kind===308)return L.emitNode={annotatedNodes:[L]};var N=(P=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(L))))!==null&&P!==void 0?P:e.Debug.fail("Could not determine parsed source file.");o(N).annotatedNodes.push(L)}L.emitNode={}}return L.emitNode}e.getOrCreateEmitNode=o;function ne(L){var P,N,J=(N=(P=e.getSourceFileOfNode(e.getParseTreeNode(L)))===null||P===void 0?void 0:P.emitNode)===null||N===void 0?void 0:N.annotatedNodes;if(J)for(var q=0,G=J;q<G.length;q++){var ye=G[q];ye.emitNode=void 0}}e.disposeEmitNodes=ne;function K(L){var P=o(L);return P.flags|=1536,P.leadingComments=void 0,P.trailingComments=void 0,L}e.removeAllComments=K;function se(L,P){return o(L).flags=P,L}e.setEmitFlags=se;function O(L,P){var N=o(L);return N.flags=N.flags|P,L}e.addEmitFlags=O;function ie(L){var P,N;return(N=(P=L.emitNode)===null||P===void 0?void 0:P.sourceMapRange)!==null&&N!==void 0?N:L}e.getSourceMapRange=ie;function _e(L,P){return o(L).sourceMapRange=P,L}e.setSourceMapRange=_e;function Q(L,P){var N,J;return(J=(N=L.emitNode)===null||N===void 0?void 0:N.tokenSourceMapRanges)===null||J===void 0?void 0:J[P]}e.getTokenSourceMapRange=Q;function p(L,P,N){var J,q=o(L),G=(J=q.tokenSourceMapRanges)!==null&&J!==void 0?J:q.tokenSourceMapRanges=[];return G[P]=N,L}e.setTokenSourceMapRange=p;function D(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.startsOnNewLine}e.getStartsOnNewLine=D;function le(L,P){return o(L).startsOnNewLine=P,L}e.setStartsOnNewLine=le;function de(L){var P,N;return(N=(P=L.emitNode)===null||P===void 0?void 0:P.commentRange)!==null&&N!==void 0?N:L}e.getCommentRange=de;function te(L,P){return o(L).commentRange=P,L}e.setCommentRange=te;function oe(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.leadingComments}e.getSyntheticLeadingComments=oe;function ae(L,P){return o(L).leadingComments=P,L}e.setSyntheticLeadingComments=ae;function E(L,P,N,J){return ae(L,e.append(oe(L),{kind:P,pos:-1,end:-1,hasTrailingNewLine:J,text:N}))}e.addSyntheticLeadingComment=E;function I(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.trailingComments}e.getSyntheticTrailingComments=I;function f(L,P){return o(L).trailingComments=P,L}e.setSyntheticTrailingComments=f;function m(L,P,N,J){return f(L,e.append(I(L),{kind:P,pos:-1,end:-1,hasTrailingNewLine:J,text:N}))}e.addSyntheticTrailingComment=m;function y(L,P){ae(L,oe(P)),f(L,I(P));var N=o(P);return N.leadingComments=void 0,N.trailingComments=void 0,L}e.moveSyntheticComments=y;function S(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.constantValue}e.getConstantValue=S;function k(L,P){var N=o(L);return N.constantValue=P,L}e.setConstantValue=k;function C(L,P){var N=o(L);return N.helpers=e.append(N.helpers,P),L}e.addEmitHelper=C;function me(L,P){if(e.some(P))for(var N=o(L),J=0,q=P;J<q.length;J++){var G=q[J];N.helpers=e.appendIfUnique(N.helpers,G)}return L}e.addEmitHelpers=me;function De(L,P){var N,J=(N=L.emitNode)===null||N===void 0?void 0:N.helpers;return J?e.orderedRemoveItem(J,P):!1}e.removeEmitHelper=De;function X(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.helpers}e.getEmitHelpers=X;function M(L,P,N){var J=L.emitNode,q=J&&J.helpers;if(!!e.some(q)){for(var G=o(P),ye=0,b=0;b<q.length;b++){var x=q[b];N(x)?(ye++,G.helpers=e.appendIfUnique(G.helpers,x)):ye>0&&(q[b-ye]=x)}ye>0&&(q.length-=ye)}}e.moveEmitHelpers=M;function H(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.snippetElement}e.getSnippetElement=H;function V(L,P){var N=o(L);return N.snippetElement=P,L}e.setSnippetElement=V;function h(L){return o(L).flags|=134217728,L}e.ignoreSourceNewlines=h;function F(L,P){var N=o(L);return N.typeNode=P,L}e.setTypeNode=F;function $(L){var P;return(P=L.emitNode)===null||P===void 0?void 0:P.typeNode}e.getTypeNode=$})(fr||(fr={}));var fr;(function(e){function o(_e){var Q=_e.factory,p=e.memoize(function(){return e.setEmitFlags(Q.createTrue(),268435456)}),D=e.memoize(function(){return e.setEmitFlags(Q.createFalse(),268435456)});return{getUnscopedHelperName:le,createDecorateHelper:de,createMetadataHelper:te,createParamHelper:oe,createAssignHelper:ae,createAwaitHelper:E,createAsyncGeneratorHelper:I,createAsyncDelegatorHelper:f,createAsyncValuesHelper:m,createRestHelper:y,createAwaiterHelper:S,createExtendsHelper:k,createTemplateObjectHelper:C,createSpreadArrayHelper:me,createValuesHelper:De,createReadHelper:X,createGeneratorHelper:M,createCreateBindingHelper:H,createImportStarHelper:V,createImportStarCallbackHelper:h,createImportDefaultHelper:F,createExportStarHelper:$,createClassPrivateFieldGetHelper:L,createClassPrivateFieldSetHelper:P,createClassPrivateFieldInHelper:N};function le(J){return e.setEmitFlags(Q.createIdentifier(J),4096|2)}function de(J,q,G,ye){_e.requestEmitHelper(e.decorateHelper);var b=[];return b.push(Q.createArrayLiteralExpression(J,!0)),b.push(q),G&&(b.push(G),ye&&b.push(ye)),Q.createCallExpression(le("__decorate"),void 0,b)}function te(J,q){return _e.requestEmitHelper(e.metadataHelper),Q.createCallExpression(le("__metadata"),void 0,[Q.createStringLiteral(J),q])}function oe(J,q,G){return _e.requestEmitHelper(e.paramHelper),e.setTextRange(Q.createCallExpression(le("__param"),void 0,[Q.createNumericLiteral(q+""),J]),G)}function ae(J){return e.getEmitScriptTarget(_e.getCompilerOptions())>=2?Q.createCallExpression(Q.createPropertyAccessExpression(Q.createIdentifier("Object"),"assign"),void 0,J):(_e.requestEmitHelper(e.assignHelper),Q.createCallExpression(le("__assign"),void 0,J))}function E(J){return _e.requestEmitHelper(e.awaitHelper),Q.createCallExpression(le("__await"),void 0,[J])}function I(J,q){return _e.requestEmitHelper(e.awaitHelper),_e.requestEmitHelper(e.asyncGeneratorHelper),(J.emitNode||(J.emitNode={})).flags|=262144|524288,Q.createCallExpression(le("__asyncGenerator"),void 0,[q?Q.createThis():Q.createVoidZero(),Q.createIdentifier("arguments"),J])}function f(J){return _e.requestEmitHelper(e.awaitHelper),_e.requestEmitHelper(e.asyncDelegator),Q.createCallExpression(le("__asyncDelegator"),void 0,[J])}function m(J){return _e.requestEmitHelper(e.asyncValues),Q.createCallExpression(le("__asyncValues"),void 0,[J])}function y(J,q,G,ye){_e.requestEmitHelper(e.restHelper);for(var b=[],x=0,T=0;T<q.length-1;T++){var Z=e.getPropertyNameOfBindingOrAssignmentElement(q[T]);if(Z)if(e.isComputedPropertyName(Z)){e.Debug.assertIsDefined(G,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var B=G[x];x++,b.push(Q.createConditionalExpression(Q.createTypeCheck(B,"symbol"),void 0,B,void 0,Q.createAdd(B,Q.createStringLiteral(""))))}else b.push(Q.createStringLiteralFromNode(Z))}return Q.createCallExpression(le("__rest"),void 0,[J,e.setTextRange(Q.createArrayLiteralExpression(b),ye)])}function S(J,q,G,ye){_e.requestEmitHelper(e.awaiterHelper);var b=Q.createFunctionExpression(void 0,Q.createToken(41),void 0,void 0,[],void 0,ye);return(b.emitNode||(b.emitNode={})).flags|=262144|524288,Q.createCallExpression(le("__awaiter"),void 0,[J?Q.createThis():Q.createVoidZero(),q?Q.createIdentifier("arguments"):Q.createVoidZero(),G?e.createExpressionFromEntityName(Q,G):Q.createVoidZero(),b])}function k(J){return _e.requestEmitHelper(e.extendsHelper),Q.createCallExpression(le("__extends"),void 0,[J,Q.createUniqueName("_super",16|32)])}function C(J,q){return _e.requestEmitHelper(e.templateObjectHelper),Q.createCallExpression(le("__makeTemplateObject"),void 0,[J,q])}function me(J,q,G){return _e.requestEmitHelper(e.spreadArrayHelper),Q.createCallExpression(le("__spreadArray"),void 0,[J,q,G?p():D()])}function De(J){return _e.requestEmitHelper(e.valuesHelper),Q.createCallExpression(le("__values"),void 0,[J])}function X(J,q){return _e.requestEmitHelper(e.readHelper),Q.createCallExpression(le("__read"),void 0,q!==void 0?[J,Q.createNumericLiteral(q+"")]:[J])}function M(J){return _e.requestEmitHelper(e.generatorHelper),Q.createCallExpression(le("__generator"),void 0,[Q.createThis(),J])}function H(J,q,G){return _e.requestEmitHelper(e.createBindingHelper),Q.createCallExpression(le("__createBinding"),void 0,zn([Q.createIdentifier("exports"),J,q],G?[G]:[],!0))}function V(J){return _e.requestEmitHelper(e.importStarHelper),Q.createCallExpression(le("__importStar"),void 0,[J])}function h(){return _e.requestEmitHelper(e.importStarHelper),le("__importStar")}function F(J){return _e.requestEmitHelper(e.importDefaultHelper),Q.createCallExpression(le("__importDefault"),void 0,[J])}function $(J,q){return q===void 0&&(q=Q.createIdentifier("exports")),_e.requestEmitHelper(e.exportStarHelper),_e.requestEmitHelper(e.createBindingHelper),Q.createCallExpression(le("__exportStar"),void 0,[J,q])}function L(J,q,G,ye){_e.requestEmitHelper(e.classPrivateFieldGetHelper);var b;return ye?b=[J,q,Q.createStringLiteral(G),ye]:b=[J,q,Q.createStringLiteral(G)],Q.createCallExpression(le("__classPrivateFieldGet"),void 0,b)}function P(J,q,G,ye,b){_e.requestEmitHelper(e.classPrivateFieldSetHelper);var x;return b?x=[J,q,G,Q.createStringLiteral(ye),b]:x=[J,q,G,Q.createStringLiteral(ye)],Q.createCallExpression(le("__classPrivateFieldSet"),void 0,x)}function N(J,q){return _e.requestEmitHelper(e.classPrivateFieldInHelper),Q.createCallExpression(le("__classPrivateFieldIn"),void 0,[J,q])}}e.createEmitHelperFactory=o;function ne(_e,Q){return _e===Q||_e.priority===Q.priority?0:_e.priority===void 0?1:Q.priority===void 0?-1:e.compareValues(_e.priority,Q.priority)}e.compareEmitHelpers=ne;function K(_e){for(var Q=[],p=1;p<arguments.length;p++)Q[p-1]=arguments[p];return function(D){for(var le="",de=0;de<Q.length;de++)le+=_e[de],le+=D(Q[de]);return le+=_e[_e.length-1],le}}e.helperString=K,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
  34. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  35. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  36. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  37. 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;
  38. return c > 3 && r && Object.defineProperty(target, key, r), r;
  39. };`},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
  40. var __metadata = (this && this.__metadata) || function (k, v) {
  41. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  42. };`},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
  43. var __param = (this && this.__param) || function (paramIndex, decorator) {
  44. return function (target, key) { decorator(target, key, paramIndex); }
  45. };`},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
  46. var __assign = (this && this.__assign) || function () {
  47. __assign = Object.assign || function(t) {
  48. for (var s, i = 1, n = arguments.length; i < n; i++) {
  49. s = arguments[i];
  50. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
  51. t[p] = s[p];
  52. }
  53. return t;
  54. };
  55. return __assign.apply(this, arguments);
  56. };`},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:`
  57. var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
  58. var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
  59. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  60. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  61. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  62. function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
  63. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  64. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  65. function fulfill(value) { resume("next", value); }
  66. function reject(value) { resume("throw", value); }
  67. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  68. };`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:`
  69. var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
  70. var i, p;
  71. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  72. function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
  73. };`},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
  74. var __asyncValues = (this && this.__asyncValues) || function (o) {
  75. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  76. var m = o[Symbol.asyncIterator], i;
  77. 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);
  78. 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); }); }; }
  79. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  80. };`},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
  81. var __rest = (this && this.__rest) || function (s, e) {
  82. var t = {};
  83. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  84. t[p] = s[p];
  85. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  86. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  87. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  88. t[p[i]] = s[p[i]];
  89. }
  90. return t;
  91. };`},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
  92. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  93. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  94. return new (P || (P = Promise))(function (resolve, reject) {
  95. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  96. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  97. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  98. step((generator = generator.apply(thisArg, _arguments || [])).next());
  99. });
  100. };`},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
  101. var __extends = (this && this.__extends) || (function () {
  102. var extendStatics = function (d, b) {
  103. extendStatics = Object.setPrototypeOf ||
  104. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  105. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  106. return extendStatics(d, b);
  107. };
  108. return function (d, b) {
  109. if (typeof b !== "function" && b !== null)
  110. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  111. extendStatics(d, b);
  112. function __() { this.constructor = d; }
  113. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  114. };
  115. })();`},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
  116. var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
  117. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  118. return cooked;
  119. };`},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:`
  120. var __read = (this && this.__read) || function (o, n) {
  121. var m = typeof Symbol === "function" && o[Symbol.iterator];
  122. if (!m) return o;
  123. var i = m.call(o), r, ar = [], e;
  124. try {
  125. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  126. }
  127. catch (error) { e = { error: error }; }
  128. finally {
  129. try {
  130. if (r && !r.done && (m = i["return"])) m.call(i);
  131. }
  132. finally { if (e) throw e.error; }
  133. }
  134. return ar;
  135. };`},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
  136. var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
  137. if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
  138. if (ar || !(i in from)) {
  139. if (!ar) ar = Array.prototype.slice.call(from, 0, i);
  140. ar[i] = from[i];
  141. }
  142. }
  143. return to.concat(ar || Array.prototype.slice.call(from));
  144. };`},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:`
  145. var __values = (this && this.__values) || function(o) {
  146. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  147. if (m) return m.call(o);
  148. if (o && typeof o.length === "number") return {
  149. next: function () {
  150. if (o && i >= o.length) o = void 0;
  151. return { value: o && o[i++], done: !o };
  152. }
  153. };
  154. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  155. };`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
  156. var __generator = (this && this.__generator) || function (thisArg, body) {
  157. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  158. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  159. function verb(n) { return function (v) { return step([n, v]); }; }
  160. function step(op) {
  161. if (f) throw new TypeError("Generator is already executing.");
  162. while (g && (g = 0, op[0] && (_ = 0)), _) try {
  163. if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
  164. if (y = 0, t) op = [op[0] & 2, t.value];
  165. switch (op[0]) {
  166. case 0: case 1: t = op; break;
  167. case 4: _.label++; return { value: op[1], done: false };
  168. case 5: _.label++; y = op[1]; op = [0]; continue;
  169. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  170. default:
  171. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  172. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  173. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  174. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  175. if (t[2]) _.ops.pop();
  176. _.trys.pop(); continue;
  177. }
  178. op = body.call(thisArg, _);
  179. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  180. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  181. }
  182. };`},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
  183. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  184. if (k2 === undefined) k2 = k;
  185. var desc = Object.getOwnPropertyDescriptor(m, k);
  186. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  187. desc = { enumerable: true, get: function() { return m[k]; } };
  188. }
  189. Object.defineProperty(o, k2, desc);
  190. }) : (function(o, m, k, k2) {
  191. if (k2 === undefined) k2 = k;
  192. o[k2] = m[k];
  193. }));`},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
  194. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  195. Object.defineProperty(o, "default", { enumerable: true, value: v });
  196. }) : function(o, v) {
  197. o["default"] = v;
  198. });`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
  199. var __importStar = (this && this.__importStar) || function (mod) {
  200. if (mod && mod.__esModule) return mod;
  201. var result = {};
  202. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  203. __setModuleDefault(result, mod);
  204. return result;
  205. };`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
  206. var __importDefault = (this && this.__importDefault) || function (mod) {
  207. return (mod && mod.__esModule) ? mod : { "default": mod };
  208. };`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:`
  209. var __exportStar = (this && this.__exportStar) || function(m, exports) {
  210. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
  211. };`},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
  212. var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
  213. if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
  214. 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");
  215. return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
  216. };`},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
  217. var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
  218. if (kind === "m") throw new TypeError("Private method is not writable");
  219. if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  220. 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");
  221. return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
  222. };`},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
  223. var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
  224. if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
  225. return typeof state === "function" ? receiver === state : state.has(receiver);
  226. };`};var se;function O(){return se||(se=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(_e){return _e.name}))}e.getAllUnscopedEmitHelpers=O,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:K(Yg([`
  227. const `," = name => super[name];"],[`
  228. const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:K(Yg([`
  229. const `,` = (function (geti, seti) {
  230. const cache = Object.create(null);
  231. return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
  232. })(name => super[name], (name, value) => super[name] = value);`],[`
  233. const `,` = (function (geti, seti) {
  234. const cache = Object.create(null);
  235. return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
  236. })(name => super[name], (name, value) => super[name] = value);`]),"_superIndex")};function ie(_e,Q){return e.isCallExpression(_e)&&e.isIdentifier(_e.expression)&&(e.getEmitFlags(_e.expression)&4096)!=0&&_e.expression.escapedText===Q}e.isCallToHelper=ie})(fr||(fr={}));var fr;(function(e){function o(Nr){return Nr.kind===8}e.isNumericLiteral=o;function ne(Nr){return Nr.kind===9}e.isBigIntLiteral=ne;function K(Nr){return Nr.kind===10}e.isStringLiteral=K;function se(Nr){return Nr.kind===11}e.isJsxText=se;function O(Nr){return Nr.kind===13}e.isRegularExpressionLiteral=O;function ie(Nr){return Nr.kind===14}e.isNoSubstitutionTemplateLiteral=ie;function _e(Nr){return Nr.kind===15}e.isTemplateHead=_e;function Q(Nr){return Nr.kind===16}e.isTemplateMiddle=Q;function p(Nr){return Nr.kind===17}e.isTemplateTail=p;function D(Nr){return Nr.kind===25}e.isDotDotDotToken=D;function le(Nr){return Nr.kind===27}e.isCommaToken=le;function de(Nr){return Nr.kind===39}e.isPlusToken=de;function te(Nr){return Nr.kind===40}e.isMinusToken=te;function oe(Nr){return Nr.kind===41}e.isAsteriskToken=oe;function ae(Nr){return Nr.kind===53}e.isExclamationToken=ae;function E(Nr){return Nr.kind===57}e.isQuestionToken=E;function I(Nr){return Nr.kind===58}e.isColonToken=I;function f(Nr){return Nr.kind===28}e.isQuestionDotToken=f;function m(Nr){return Nr.kind===38}e.isEqualsGreaterThanToken=m;function y(Nr){return Nr.kind===79}e.isIdentifier=y;function S(Nr){return Nr.kind===80}e.isPrivateIdentifier=S;function k(Nr){return Nr.kind===93}e.isExportModifier=k;function C(Nr){return Nr.kind===132}e.isAsyncModifier=C;function me(Nr){return Nr.kind===129}e.isAssertsKeyword=me;function De(Nr){return Nr.kind===133}e.isAwaitKeyword=De;function X(Nr){return Nr.kind===146}e.isReadonlyKeyword=X;function M(Nr){return Nr.kind===124}e.isStaticModifier=M;function H(Nr){return Nr.kind===126}e.isAbstractModifier=H;function V(Nr){return Nr.kind===161}e.isOverrideModifier=V;function h(Nr){return Nr.kind===127}e.isAccessorModifier=h;function F(Nr){return Nr.kind===106}e.isSuperKeyword=F;function $(Nr){return Nr.kind===100}e.isImportKeyword=$;function L(Nr){return Nr.kind===163}e.isQualifiedName=L;function P(Nr){return Nr.kind===164}e.isComputedPropertyName=P;function N(Nr){return Nr.kind===165}e.isTypeParameterDeclaration=N;function J(Nr){return Nr.kind===166}e.isParameter=J;function q(Nr){return Nr.kind===167}e.isDecorator=q;function G(Nr){return Nr.kind===168}e.isPropertySignature=G;function ye(Nr){return Nr.kind===169}e.isPropertyDeclaration=ye;function b(Nr){return Nr.kind===170}e.isMethodSignature=b;function x(Nr){return Nr.kind===171}e.isMethodDeclaration=x;function T(Nr){return Nr.kind===172}e.isClassStaticBlockDeclaration=T;function Z(Nr){return Nr.kind===173}e.isConstructorDeclaration=Z;function B(Nr){return Nr.kind===174}e.isGetAccessorDeclaration=B;function u(Nr){return Nr.kind===175}e.isSetAccessorDeclaration=u;function A(Nr){return Nr.kind===176}e.isCallSignatureDeclaration=A;function w(Nr){return Nr.kind===177}e.isConstructSignatureDeclaration=w;function z(Nr){return Nr.kind===178}e.isIndexSignatureDeclaration=z;function U(Nr){return Nr.kind===179}e.isTypePredicateNode=U;function ge(Nr){return Nr.kind===180}e.isTypeReferenceNode=ge;function pe(Nr){return Nr.kind===181}e.isFunctionTypeNode=pe;function He(Nr){return Nr.kind===182}e.isConstructorTypeNode=He;function Be(Nr){return Nr.kind===183}e.isTypeQueryNode=Be;function Me(Nr){return Nr.kind===184}e.isTypeLiteralNode=Me;function Le(Nr){return Nr.kind===185}e.isArrayTypeNode=Le;function Ae(Nr){return Nr.kind===186}e.isTupleTypeNode=Ae;function Xe(Nr){return Nr.kind===199}e.isNamedTupleMember=Xe;function Ne(Nr){return Nr.kind===187}e.isOptionalTypeNode=Ne;function Oe(Nr){return Nr.kind===188}e.isRestTypeNode=Oe;function be(Nr){return Nr.kind===189}e.isUnionTypeNode=be;function Y(Nr){return Nr.kind===190}e.isIntersectionTypeNode=Y;function d(Nr){return Nr.kind===191}e.isConditionalTypeNode=d;function j(Nr){return Nr.kind===192}e.isInferTypeNode=j;function Ce(Nr){return Nr.kind===193}e.isParenthesizedTypeNode=Ce;function Se(Nr){return Nr.kind===194}e.isThisTypeNode=Se;function Re(Nr){return Nr.kind===195}e.isTypeOperatorNode=Re;function er(Nr){return Nr.kind===196}e.isIndexedAccessTypeNode=er;function wr(Nr){return Nr.kind===197}e.isMappedTypeNode=wr;function mr(Nr){return Nr.kind===198}e.isLiteralTypeNode=mr;function Ue(Nr){return Nr.kind===202}e.isImportTypeNode=Ue;function t(Nr){return Nr.kind===201}e.isTemplateLiteralTypeSpan=t;function qr(Nr){return Nr.kind===200}e.isTemplateLiteralTypeNode=qr;function ln(Nr){return Nr.kind===203}e.isObjectBindingPattern=ln;function dr(Nr){return Nr.kind===204}e.isArrayBindingPattern=dr;function vr(Nr){return Nr.kind===205}e.isBindingElement=vr;function kr(Nr){return Nr.kind===206}e.isArrayLiteralExpression=kr;function Ur(Nr){return Nr.kind===207}e.isObjectLiteralExpression=Ur;function Cr(Nr){return Nr.kind===208}e.isPropertyAccessExpression=Cr;function rn(Nr){return Nr.kind===209}e.isElementAccessExpression=rn;function Br(Nr){return Nr.kind===210}e.isCallExpression=Br;function pn(Nr){return Nr.kind===211}e.isNewExpression=pn;function ve(Nr){return Nr.kind===212}e.isTaggedTemplateExpression=ve;function or(Nr){return Nr.kind===213}e.isTypeAssertionExpression=or;function Ee(Nr){return Nr.kind===214}e.isParenthesizedExpression=Ee;function ze(Nr){return Nr.kind===215}e.isFunctionExpression=ze;function Ar(Nr){return Nr.kind===216}e.isArrowFunction=Ar;function xe(Nr){return Nr.kind===217}e.isDeleteExpression=xe;function cr(Nr){return Nr.kind===218}e.isTypeOfExpression=cr;function Mr(Nr){return Nr.kind===219}e.isVoidExpression=Mr;function Rr(Nr){return Nr.kind===220}e.isAwaitExpression=Rr;function Qr(Nr){return Nr.kind===221}e.isPrefixUnaryExpression=Qr;function en(Nr){return Nr.kind===222}e.isPostfixUnaryExpression=en;function vn(Nr){return Nr.kind===223}e.isBinaryExpression=vn;function Ie(Nr){return Nr.kind===224}e.isConditionalExpression=Ie;function We(Nr){return Nr.kind===225}e.isTemplateExpression=We;function xr(Nr){return Nr.kind===226}e.isYieldExpression=xr;function Lr(Nr){return Nr.kind===227}e.isSpreadElement=Lr;function xn(Nr){return Nr.kind===228}e.isClassExpression=xn;function An(Nr){return Nr.kind===229}e.isOmittedExpression=An;function Qn(Nr){return Nr.kind===230}e.isExpressionWithTypeArguments=Qn;function ai(Nr){return Nr.kind===231}e.isAsExpression=ai;function Dr(Nr){return Nr.kind===235}e.isSatisfiesExpression=Dr;function Pr(Nr){return Nr.kind===232}e.isNonNullExpression=Pr;function jr(Nr){return Nr.kind===233}e.isMetaProperty=jr;function on(Nr){return Nr.kind===234}e.isSyntheticExpression=on;function je(Nr){return Nr.kind===353}e.isPartiallyEmittedExpression=je;function Sr(Nr){return Nr.kind===354}e.isCommaListExpression=Sr;function Te(Nr){return Nr.kind===236}e.isTemplateSpan=Te;function Ye(Nr){return Nr.kind===237}e.isSemicolonClassElement=Ye;function Qe(Nr){return Nr.kind===238}e.isBlock=Qe;function ue(Nr){return Nr.kind===240}e.isVariableStatement=ue;function Ke(Nr){return Nr.kind===239}e.isEmptyStatement=Ke;function tr(Nr){return Nr.kind===241}e.isExpressionStatement=tr;function hr(Nr){return Nr.kind===242}e.isIfStatement=hr;function _r(Nr){return Nr.kind===243}e.isDoStatement=_r;function Or(Nr){return Nr.kind===244}e.isWhileStatement=Or;function zr(Nr){return Nr.kind===245}e.isForStatement=zr;function fn(Nr){return Nr.kind===246}e.isForInStatement=fn;function Vr(Nr){return Nr.kind===247}e.isForOfStatement=Vr;function Wn(Nr){return Nr.kind===248}e.isContinueStatement=Wn;function bn(Nr){return Nr.kind===249}e.isBreakStatement=bn;function qn(Nr){return Nr.kind===250}e.isReturnStatement=qn;function yn(Nr){return Nr.kind===251}e.isWithStatement=yn;function Hn(Nr){return Nr.kind===252}e.isSwitchStatement=Hn;function Ai(Nr){return Nr.kind===253}e.isLabeledStatement=Ai;function ti(Nr){return Nr.kind===254}e.isThrowStatement=ti;function Hi(Nr){return Nr.kind===255}e.isTryStatement=Hi;function Ni(Nr){return Nr.kind===256}e.isDebuggerStatement=Ni;function gi(Nr){return Nr.kind===257}e.isVariableDeclaration=gi;function Pn(Nr){return Nr.kind===258}e.isVariableDeclarationList=Pn;function Pe(Nr){return Nr.kind===259}e.isFunctionDeclaration=Pe;function Ir(Nr){return Nr.kind===260}e.isClassDeclaration=Ir;function we(Nr){return Nr.kind===261}e.isInterfaceDeclaration=we;function hn(Nr){return Nr.kind===262}e.isTypeAliasDeclaration=hn;function jn(Nr){return Nr.kind===263}e.isEnumDeclaration=jn;function gn(Nr){return Nr.kind===264}e.isModuleDeclaration=gn;function nn(Nr){return Nr.kind===265}e.isModuleBlock=nn;function Cn(Nr){return Nr.kind===266}e.isCaseBlock=Cn;function Dn(Nr){return Nr.kind===267}e.isNamespaceExportDeclaration=Dn;function On(Nr){return Nr.kind===268}e.isImportEqualsDeclaration=On;function Xn(Nr){return Nr.kind===269}e.isImportDeclaration=Xn;function Ge(Nr){return Nr.kind===270}e.isImportClause=Ge;function cn(Nr){return Nr.kind===298}e.isImportTypeAssertionContainer=cn;function Vn(Nr){return Nr.kind===296}e.isAssertClause=Vn;function Ki(Nr){return Nr.kind===297}e.isAssertEntry=Ki;function dt(Nr){return Nr.kind===271}e.isNamespaceImport=dt;function qi(Nr){return Nr.kind===277}e.isNamespaceExport=qi;function Ci(Nr){return Nr.kind===272}e.isNamedImports=Ci;function Tt(Nr){return Nr.kind===273}e.isImportSpecifier=Tt;function ot(Nr){return Nr.kind===274}e.isExportAssignment=ot;function Zi(Nr){return Nr.kind===275}e.isExportDeclaration=Zi;function ni(Nr){return Nr.kind===276}e.isNamedExports=ni;function Va(Nr){return Nr.kind===278}e.isExportSpecifier=Va;function Ua(Nr){return Nr.kind===279}e.isMissingDeclaration=Ua;function za(Nr){return Nr.kind===352}e.isNotEmittedStatement=za;function Co(Nr){return Nr.kind===357}e.isSyntheticReference=Co;function Ea(Nr){return Nr.kind===355}e.isMergeDeclarationMarker=Ea;function ho(Nr){return Nr.kind===356}e.isEndOfDeclarationMarker=ho;function Aa(Nr){return Nr.kind===280}e.isExternalModuleReference=Aa;function Vi(Nr){return Nr.kind===281}e.isJsxElement=Vi;function Xi(Nr){return Nr.kind===282}e.isJsxSelfClosingElement=Xi;function ao(Nr){return Nr.kind===283}e.isJsxOpeningElement=ao;function fo(Nr){return Nr.kind===284}e.isJsxClosingElement=fo;function As(Nr){return Nr.kind===285}e.isJsxFragment=As;function so(Nr){return Nr.kind===286}e.isJsxOpeningFragment=so;function Xo(Nr){return Nr.kind===287}e.isJsxClosingFragment=Xo;function Ho(Nr){return Nr.kind===288}e.isJsxAttribute=Ho;function Zo(Nr){return Nr.kind===289}e.isJsxAttributes=Zo;function To(Nr){return Nr.kind===290}e.isJsxSpreadAttribute=To;function pr(Nr){return Nr.kind===291}e.isJsxExpression=pr;function Fr(Nr){return Nr.kind===292}e.isCaseClause=Fr;function yi(Nr){return Nr.kind===293}e.isDefaultClause=yi;function Dt(Nr){return Nr.kind===294}e.isHeritageClause=Dt;function Ft(Nr){return Nr.kind===295}e.isCatchClause=Ft;function Pa(Nr){return Nr.kind===299}e.isPropertyAssignment=Pa;function Ve(Nr){return Nr.kind===300}e.isShorthandPropertyAssignment=Ve;function tn(Nr){return Nr.kind===301}e.isSpreadAssignment=tn;function Nn(Nr){return Nr.kind===302}e.isEnumMember=Nn;function wn(Nr){return Nr.kind===304}e.isUnparsedPrepend=wn;function Je(Nr){return Nr.kind===308}e.isSourceFile=Je;function ur(Nr){return Nr.kind===309}e.isBundle=ur;function yr(Nr){return Nr.kind===310}e.isUnparsedSource=yr;function Jr(Nr){return Nr.kind===312}e.isJSDocTypeExpression=Jr;function Mn(Nr){return Nr.kind===313}e.isJSDocNameReference=Mn;function _i(Nr){return Nr.kind===314}e.isJSDocMemberName=_i;function di(Nr){return Nr.kind===327}e.isJSDocLink=di;function fi(Nr){return Nr.kind===328}e.isJSDocLinkCode=fi;function Nt(Nr){return Nr.kind===329}e.isJSDocLinkPlain=Nt;function Gt(Nr){return Nr.kind===315}e.isJSDocAllType=Gt;function la(Nr){return Nr.kind===316}e.isJSDocUnknownType=la;function na(Nr){return Nr.kind===317}e.isJSDocNullableType=na;function Ia(Nr){return Nr.kind===318}e.isJSDocNonNullableType=Ia;function bs(Nr){return Nr.kind===319}e.isJSDocOptionalType=bs;function ds(Nr){return Nr.kind===320}e.isJSDocFunctionType=ds;function ps(Nr){return Nr.kind===321}e.isJSDocVariadicType=ps;function ac(Nr){return Nr.kind===322}e.isJSDocNamepathType=ac;function Es(Nr){return Nr.kind===323}e.isJSDoc=Es;function ns(Nr){return Nr.kind===325}e.isJSDocTypeLiteral=ns;function dc(Nr){return Nr.kind===326}e.isJSDocSignature=dc;function $s(Nr){return Nr.kind===331}e.isJSDocAugmentsTag=$s;function pc(Nr){return Nr.kind===333}e.isJSDocAuthorTag=pc;function js(Nr){return Nr.kind===335}e.isJSDocClassTag=js;function Sc(Nr){return Nr.kind===341}e.isJSDocCallbackTag=Sc;function Ko(Nr){return Nr.kind===336}e.isJSDocPublicTag=Ko;function Mc(Nr){return Nr.kind===337}e.isJSDocPrivateTag=Mc;function Vs(Nr){return Nr.kind===338}e.isJSDocProtectedTag=Vs;function oc(Nr){return Nr.kind===339}e.isJSDocReadonlyTag=oc;function Ss(Nr){return Nr.kind===340}e.isJSDocOverrideTag=Ss;function ee(Nr){return Nr.kind===334}e.isJSDocDeprecatedTag=ee;function Er(Nr){return Nr.kind===349}e.isJSDocSeeTag=Er;function un(Nr){return Nr.kind===342}e.isJSDocEnumTag=un;function $n(Nr){return Nr.kind===343}e.isJSDocParameterTag=$n;function Ii(Nr){return Nr.kind===344}e.isJSDocReturnTag=Ii;function at(Nr){return Nr.kind===345}e.isJSDocThisTag=at;function Ji(Nr){return Nr.kind===346}e.isJSDocTypeTag=Ji;function _t(Nr){return Nr.kind===347}e.isJSDocTemplateTag=_t;function Ht(Nr){return Nr.kind===348}e.isJSDocTypedefTag=Ht;function Rt(Nr){return Nr.kind===330}e.isJSDocUnknownTag=Rt;function va(Nr){return Nr.kind===350}e.isJSDocPropertyTag=va;function qe(Nr){return Nr.kind===332}e.isJSDocImplementsTag=qe;function Tn(Nr){return Nr.kind===351}e.isSyntaxList=Tn})(fr||(fr={}));var fr;(function(e){function o(Ee){return Ee.createExportDeclaration(void 0,!1,Ee.createNamedExports([]),void 0)}e.createEmptyExports=o;function ne(Ee,ze,Ar,xe){if(e.isComputedPropertyName(Ar))return e.setTextRange(Ee.createElementAccessExpression(ze,Ar.expression),xe);var cr=e.setTextRange(e.isMemberName(Ar)?Ee.createPropertyAccessExpression(ze,Ar):Ee.createElementAccessExpression(ze,Ar),Ar);return e.getOrCreateEmitNode(cr).flags|=64,cr}e.createMemberAccessForPropertyName=ne;function K(Ee,ze){var Ar=e.parseNodeFactory.createIdentifier(Ee||"React");return e.setParent(Ar,e.getParseTreeNode(ze)),Ar}function se(Ee,ze,Ar){if(e.isQualifiedName(ze)){var xe=se(Ee,ze.left,Ar),cr=Ee.createIdentifier(e.idText(ze.right));return cr.escapedText=ze.right.escapedText,Ee.createPropertyAccessExpression(xe,cr)}else return K(e.idText(ze),Ar)}function O(Ee,ze,Ar,xe){return ze?se(Ee,ze,xe):Ee.createPropertyAccessExpression(K(Ar,xe),"createElement")}e.createJsxFactoryExpression=O;function ie(Ee,ze,Ar,xe){return ze?se(Ee,ze,xe):Ee.createPropertyAccessExpression(K(Ar,xe),"Fragment")}function _e(Ee,ze,Ar,xe,cr,Mr){var Rr=[Ar];if(xe&&Rr.push(xe),cr&&cr.length>0)if(xe||Rr.push(Ee.createNull()),cr.length>1)for(var Qr=0,en=cr;Qr<en.length;Qr++){var vn=en[Qr];F(vn),Rr.push(vn)}else Rr.push(cr[0]);return e.setTextRange(Ee.createCallExpression(ze,void 0,Rr),Mr)}e.createExpressionForJsxElement=_e;function Q(Ee,ze,Ar,xe,cr,Mr,Rr){var Qr=ie(Ee,Ar,xe,Mr),en=[Qr,Ee.createNull()];if(cr&&cr.length>0)if(cr.length>1)for(var vn=0,Ie=cr;vn<Ie.length;vn++){var We=Ie[vn];F(We),en.push(We)}else en.push(cr[0]);return e.setTextRange(Ee.createCallExpression(O(Ee,ze,xe,Mr),void 0,en),Rr)}e.createExpressionForJsxFragment=Q;function p(Ee,ze,Ar){if(e.isVariableDeclarationList(ze)){var xe=e.first(ze.declarations),cr=Ee.updateVariableDeclaration(xe,xe.name,void 0,void 0,Ar);return e.setTextRange(Ee.createVariableStatement(void 0,Ee.updateVariableDeclarationList(ze,[cr])),ze)}else{var Mr=e.setTextRange(Ee.createAssignment(ze,Ar),ze);return e.setTextRange(Ee.createExpressionStatement(Mr),ze)}}e.createForOfBindingStatement=p;function D(Ee,ze,Ar){return e.isBlock(ze)?Ee.updateBlock(ze,e.setTextRange(Ee.createNodeArray(zn([Ar],ze.statements,!0)),ze.statements)):Ee.createBlock(Ee.createNodeArray([ze,Ar]),!0)}e.insertLeadingStatement=D;function le(Ee,ze){if(e.isQualifiedName(ze)){var Ar=le(Ee,ze.left),xe=e.setParent(e.setTextRange(Ee.cloneNode(ze.right),ze.right),ze.right.parent);return e.setTextRange(Ee.createPropertyAccessExpression(Ar,xe),ze)}else return e.setParent(e.setTextRange(Ee.cloneNode(ze),ze),ze.parent)}e.createExpressionFromEntityName=le;function de(Ee,ze){return e.isIdentifier(ze)?Ee.createStringLiteralFromNode(ze):e.isComputedPropertyName(ze)?e.setParent(e.setTextRange(Ee.cloneNode(ze.expression),ze.expression),ze.expression.parent):e.setParent(e.setTextRange(Ee.cloneNode(ze),ze),ze.parent)}e.createExpressionForPropertyName=de;function te(Ee,ze,Ar,xe,cr){var Mr=e.getAllAccessorDeclarations(ze,Ar),Rr=Mr.firstAccessor,Qr=Mr.getAccessor,en=Mr.setAccessor;if(Ar===Rr)return e.setTextRange(Ee.createObjectDefinePropertyCall(xe,de(Ee,Ar.name),Ee.createPropertyDescriptor({enumerable:Ee.createFalse(),configurable:!0,get:Qr&&e.setTextRange(e.setOriginalNode(Ee.createFunctionExpression(e.getModifiers(Qr),void 0,void 0,void 0,Qr.parameters,void 0,Qr.body),Qr),Qr),set:en&&e.setTextRange(e.setOriginalNode(Ee.createFunctionExpression(e.getModifiers(en),void 0,void 0,void 0,en.parameters,void 0,en.body),en),en)},!cr)),Rr)}function oe(Ee,ze,Ar){return e.setOriginalNode(e.setTextRange(Ee.createAssignment(ne(Ee,Ar,ze.name,ze.name),ze.initializer),ze),ze)}function ae(Ee,ze,Ar){return e.setOriginalNode(e.setTextRange(Ee.createAssignment(ne(Ee,Ar,ze.name,ze.name),Ee.cloneNode(ze.name)),ze),ze)}function E(Ee,ze,Ar){return e.setOriginalNode(e.setTextRange(Ee.createAssignment(ne(Ee,Ar,ze.name,ze.name),e.setOriginalNode(e.setTextRange(Ee.createFunctionExpression(e.getModifiers(ze),ze.asteriskToken,void 0,void 0,ze.parameters,void 0,ze.body),ze),ze)),ze),ze)}function I(Ee,ze,Ar,xe){switch(Ar.name&&e.isPrivateIdentifier(Ar.name)&&e.Debug.failBadSyntaxKind(Ar.name,"Private identifiers are not allowed in object literals."),Ar.kind){case 174:case 175:return te(Ee,ze.properties,Ar,xe,!!ze.multiLine);case 299:return oe(Ee,Ar,xe);case 300:return ae(Ee,Ar,xe);case 171:return E(Ee,Ar,xe)}}e.createExpressionForObjectLiteralElementLike=I;function f(Ee,ze,Ar,xe,cr){var Mr=ze.operator;e.Debug.assert(Mr===45||Mr===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var Rr=Ee.createTempVariable(xe);Ar=Ee.createAssignment(Rr,Ar),e.setTextRange(Ar,ze.operand);var Qr=e.isPrefixUnaryExpression(ze)?Ee.createPrefixUnaryExpression(Mr,Rr):Ee.createPostfixUnaryExpression(Rr,Mr);return e.setTextRange(Qr,ze),cr&&(Qr=Ee.createAssignment(cr,Qr),e.setTextRange(Qr,ze)),Ar=Ee.createComma(Ar,Qr),e.setTextRange(Ar,ze),e.isPostfixUnaryExpression(ze)&&(Ar=Ee.createComma(Ar,Rr),e.setTextRange(Ar,ze)),Ar}e.expandPreOrPostfixIncrementOrDecrementExpression=f;function m(Ee){return(e.getEmitFlags(Ee)&32768)!=0}e.isInternalName=m;function y(Ee){return(e.getEmitFlags(Ee)&16384)!=0}e.isLocalName=y;function S(Ee){return(e.getEmitFlags(Ee)&8192)!=0}e.isExportName=S;function k(Ee){return e.isStringLiteral(Ee.expression)&&Ee.expression.text==="use strict"}function C(Ee){for(var ze=0,Ar=Ee;ze<Ar.length;ze++){var xe=Ar[ze];if(e.isPrologueDirective(xe)){if(k(xe))return xe}else break}}e.findUseStrictPrologue=C;function me(Ee){var ze=e.firstOrUndefined(Ee);return ze!==void 0&&e.isPrologueDirective(ze)&&k(ze)}e.startsWithUseStrict=me;function De(Ee){return Ee.kind===223&&Ee.operatorToken.kind===27||Ee.kind===354}e.isCommaSequence=De;function X(Ee){return e.isParenthesizedExpression(Ee)&&e.isInJSFile(Ee)&&!!e.getJSDocTypeTag(Ee)}e.isJSDocTypeAssertion=X;function M(Ee){var ze=e.getJSDocType(Ee);return e.Debug.assertIsDefined(ze),ze}e.getJSDocTypeAssertionType=M;function H(Ee,ze){switch(ze===void 0&&(ze=15),Ee.kind){case 214:return ze&16&&X(Ee)?!1:(ze&1)!=0;case 213:case 231:case 235:return(ze&2)!=0;case 232:return(ze&4)!=0;case 353:return(ze&8)!=0}return!1}e.isOuterExpression=H;function V(Ee,ze){for(ze===void 0&&(ze=15);H(Ee,ze);)Ee=Ee.expression;return Ee}e.skipOuterExpressions=V;function h(Ee){return V(Ee,6)}e.skipAssertions=h;function F(Ee){return e.setStartsOnNewLine(Ee,!0)}e.startOnNewLine=F;function $(Ee){var ze=e.getOriginalNode(Ee,e.isSourceFile),Ar=ze&&ze.emitNode;return Ar&&Ar.externalHelpersModuleName}e.getExternalHelpersModuleName=$;function L(Ee){var ze=e.getOriginalNode(Ee,e.isSourceFile),Ar=ze&&ze.emitNode;return!!Ar&&(!!Ar.externalHelpersModuleName||!!Ar.externalHelpers)}e.hasRecordedExternalHelpers=L;function P(Ee,ze,Ar,xe,cr,Mr,Rr){if(xe.importHelpers&&e.isEffectiveExternalModule(Ar,xe)){var Qr=void 0,en=e.getEmitModuleKind(xe);if(en>=e.ModuleKind.ES2015&&en<=e.ModuleKind.ESNext||Ar.impliedNodeFormat===e.ModuleKind.ESNext){var vn=e.getEmitHelpers(Ar);if(vn){for(var Ie=[],We=0,xr=vn;We<xr.length;We++){var Lr=xr[We];if(!Lr.scoped){var xn=Lr.importName;xn&&e.pushIfUnique(Ie,xn)}}if(e.some(Ie)){Ie.sort(e.compareStringsCaseSensitive),Qr=Ee.createNamedImports(e.map(Ie,function(Pr){return e.isFileLevelUniqueName(Ar,Pr)?Ee.createImportSpecifier(!1,void 0,Ee.createIdentifier(Pr)):Ee.createImportSpecifier(!1,Ee.createIdentifier(Pr),ze.getUnscopedHelperName(Pr))}));var An=e.getOriginalNode(Ar,e.isSourceFile),Qn=e.getOrCreateEmitNode(An);Qn.externalHelpers=!0}}}else{var ai=N(Ee,Ar,xe,cr,Mr||Rr);ai&&(Qr=Ee.createNamespaceImport(ai))}if(Qr){var Dr=Ee.createImportDeclaration(void 0,Ee.createImportClause(!1,void 0,Qr),Ee.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(Dr,67108864),Dr}}}e.createExternalHelpersImportDeclarationIfNeeded=P;function N(Ee,ze,Ar,xe,cr){if(Ar.importHelpers&&e.isEffectiveExternalModule(ze,Ar)){var Mr=$(ze);if(Mr)return Mr;var Rr=e.getEmitModuleKind(Ar),Qr=(xe||e.getESModuleInterop(Ar)&&cr)&&Rr!==e.ModuleKind.System&&(Rr<e.ModuleKind.ES2015||ze.impliedNodeFormat===e.ModuleKind.CommonJS);if(!Qr){var en=e.getEmitHelpers(ze);if(en)for(var vn=0,Ie=en;vn<Ie.length;vn++){var We=Ie[vn];if(!We.scoped){Qr=!0;break}}}if(Qr){var xr=e.getOriginalNode(ze,e.isSourceFile),Lr=e.getOrCreateEmitNode(xr);return Lr.externalHelpersModuleName||(Lr.externalHelpersModuleName=Ee.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=N;function J(Ee,ze,Ar){var xe=e.getNamespaceDeclarationNode(ze);if(xe&&!e.isDefaultImport(ze)&&!e.isExportNamespaceAsDefaultDeclaration(ze)){var cr=xe.name;return e.isGeneratedIdentifier(cr)?cr:Ee.createIdentifier(e.getSourceTextOfNodeFromSourceFile(Ar,cr)||e.idText(cr))}if(ze.kind===269&&ze.importClause||ze.kind===275&&ze.moduleSpecifier)return Ee.getGeneratedNameForNode(ze)}e.getLocalNameForExternalImport=J;function q(Ee,ze,Ar,xe,cr,Mr){var Rr=e.getExternalModuleName(ze);if(Rr&&e.isStringLiteral(Rr))return b(ze,xe,Ee,cr,Mr)||G(Ee,Rr,Ar)||Ee.cloneNode(Rr)}e.getExternalModuleNameLiteral=q;function G(Ee,ze,Ar){var xe=Ar.renamedDependencies&&Ar.renamedDependencies.get(ze.text);return xe?Ee.createStringLiteral(xe):void 0}function ye(Ee,ze,Ar,xe){if(!!ze){if(ze.moduleName)return Ee.createStringLiteral(ze.moduleName);if(!ze.isDeclarationFile&&e.outFile(xe))return Ee.createStringLiteral(e.getExternalModuleNameFromPath(Ar,ze.fileName))}}e.tryGetModuleNameFromFile=ye;function b(Ee,ze,Ar,xe,cr){return ye(Ar,xe.getExternalModuleFileFromDeclaration(Ee),ze,cr)}function x(Ee){if(e.isDeclarationBindingElement(Ee))return Ee.initializer;if(e.isPropertyAssignment(Ee)){var ze=Ee.initializer;return e.isAssignmentExpression(ze,!0)?ze.right:void 0}if(e.isShorthandPropertyAssignment(Ee))return Ee.objectAssignmentInitializer;if(e.isAssignmentExpression(Ee,!0))return Ee.right;if(e.isSpreadElement(Ee))return x(Ee.expression)}e.getInitializerOfBindingOrAssignmentElement=x;function T(Ee){if(e.isDeclarationBindingElement(Ee))return Ee.name;if(e.isObjectLiteralElementLike(Ee)){switch(Ee.kind){case 299:return T(Ee.initializer);case 300:return Ee.name;case 301:return T(Ee.expression)}return}return e.isAssignmentExpression(Ee,!0)?T(Ee.left):e.isSpreadElement(Ee)?T(Ee.expression):Ee}e.getTargetOfBindingOrAssignmentElement=T;function Z(Ee){switch(Ee.kind){case 166:case 205:return Ee.dotDotDotToken;case 227:case 301:return Ee}}e.getRestIndicatorOfBindingOrAssignmentElement=Z;function B(Ee){var ze=u(Ee);return e.Debug.assert(!!ze||e.isSpreadAssignment(Ee),"Invalid property name for binding element."),ze}e.getPropertyNameOfBindingOrAssignmentElement=B;function u(Ee){switch(Ee.kind){case 205:if(Ee.propertyName){var ze=Ee.propertyName;return e.isPrivateIdentifier(ze)?e.Debug.failBadSyntaxKind(ze):e.isComputedPropertyName(ze)&&A(ze.expression)?ze.expression:ze}break;case 299:if(Ee.name){var ze=Ee.name;return e.isPrivateIdentifier(ze)?e.Debug.failBadSyntaxKind(ze):e.isComputedPropertyName(ze)&&A(ze.expression)?ze.expression:ze}break;case 301:return Ee.name&&e.isPrivateIdentifier(Ee.name)?e.Debug.failBadSyntaxKind(Ee.name):Ee.name}var Ar=T(Ee);if(Ar&&e.isPropertyName(Ar))return Ar}e.tryGetPropertyNameOfBindingOrAssignmentElement=u;function A(Ee){var ze=Ee.kind;return ze===10||ze===8}function w(Ee){switch(Ee.kind){case 203:case 204:case 206:return Ee.elements;case 207:return Ee.properties}}e.getElementsOfBindingOrAssignmentPattern=w;function z(Ee){if(Ee)for(var ze=Ee;;){if(e.isIdentifier(ze)||!ze.body)return e.isIdentifier(ze)?ze:ze.name;ze=ze.body}}e.getJSDocTypeAliasName=z;function U(Ee){var ze=Ee.kind;return ze===173||ze===175}e.canHaveIllegalType=U;function ge(Ee){var ze=Ee.kind;return ze===173||ze===174||ze===175}e.canHaveIllegalTypeParameters=ge;function pe(Ee){var ze=Ee.kind;return ze===299||ze===300||ze===259||ze===173||ze===178||ze===172||ze===279||ze===240||ze===261||ze===262||ze===263||ze===264||ze===268||ze===269||ze===267||ze===275||ze===274}e.canHaveIllegalDecorators=pe;function He(Ee){var ze=Ee.kind;return ze===172||ze===299||ze===300||ze===181||ze===279||ze===267}e.canHaveIllegalModifiers=He,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function Be(Ee){var ze=Ee.kind;return ze===104||ze===110||ze===95||e.isLiteralExpression(Ee)||e.isPrefixUnaryExpression(Ee)}e.isLiteralTypeLikeExpression=Be;function Me(Ee){return Ee===42}function Le(Ee){return Ee===41||Ee===43||Ee===44}function Ae(Ee){return Me(Ee)||Le(Ee)}function Xe(Ee){return Ee===39||Ee===40}function Ne(Ee){return Xe(Ee)||Ae(Ee)}function Oe(Ee){return Ee===47||Ee===48||Ee===49}function be(Ee){return Oe(Ee)||Ne(Ee)}function Y(Ee){return Ee===29||Ee===32||Ee===31||Ee===33||Ee===102||Ee===101}function d(Ee){return Y(Ee)||be(Ee)}function j(Ee){return Ee===34||Ee===36||Ee===35||Ee===37}function Ce(Ee){return j(Ee)||d(Ee)}function Se(Ee){return Ee===50||Ee===51||Ee===52}function Re(Ee){return Se(Ee)||Ce(Ee)}function er(Ee){return Ee===55||Ee===56}function wr(Ee){return er(Ee)||Re(Ee)}function mr(Ee){return Ee===60||wr(Ee)||e.isAssignmentOperator(Ee)}function Ue(Ee){return mr(Ee)||Ee===27}function t(Ee){return Ue(Ee.kind)}e.isBinaryOperatorToken=t;var qr;(function(Ee){function ze(Ie,We,xr,Lr,xn,An,Qn){var ai=We>0?xn[We-1]:void 0;return e.Debug.assertEqual(xr[We],ze),xn[We]=Ie.onEnter(Lr[We],ai,Qn),xr[We]=Qr(Ie,ze),We}Ee.enter=ze;function Ar(Ie,We,xr,Lr,xn,An,Qn){e.Debug.assertEqual(xr[We],Ar),e.Debug.assertIsDefined(Ie.onLeft),xr[We]=Qr(Ie,Ar);var ai=Ie.onLeft(Lr[We].left,xn[We],Lr[We]);return ai?(vn(We,Lr,ai),en(We,xr,Lr,xn,ai)):We}Ee.left=Ar;function xe(Ie,We,xr,Lr,xn,An,Qn){return e.Debug.assertEqual(xr[We],xe),e.Debug.assertIsDefined(Ie.onOperator),xr[We]=Qr(Ie,xe),Ie.onOperator(Lr[We].operatorToken,xn[We],Lr[We]),We}Ee.operator=xe;function cr(Ie,We,xr,Lr,xn,An,Qn){e.Debug.assertEqual(xr[We],cr),e.Debug.assertIsDefined(Ie.onRight),xr[We]=Qr(Ie,cr);var ai=Ie.onRight(Lr[We].right,xn[We],Lr[We]);return ai?(vn(We,Lr,ai),en(We,xr,Lr,xn,ai)):We}Ee.right=cr;function Mr(Ie,We,xr,Lr,xn,An,Qn){e.Debug.assertEqual(xr[We],Mr),xr[We]=Qr(Ie,Mr);var ai=Ie.onExit(Lr[We],xn[We]);if(We>0){if(We--,Ie.foldState){var Dr=xr[We]===Mr?"right":"left";xn[We]=Ie.foldState(xn[We],ai,Dr)}}else An.value=ai;return We}Ee.exit=Mr;function Rr(Ie,We,xr,Lr,xn,An,Qn){return e.Debug.assertEqual(xr[We],Rr),We}Ee.done=Rr;function Qr(Ie,We){switch(We){case ze:if(Ie.onLeft)return Ar;case Ar:if(Ie.onOperator)return xe;case xe:if(Ie.onRight)return cr;case cr:return Mr;case Mr:return Rr;case Rr:return Rr;default:e.Debug.fail("Invalid state")}}Ee.nextState=Qr;function en(Ie,We,xr,Lr,xn){return Ie++,We[Ie]=ze,xr[Ie]=xn,Lr[Ie]=void 0,Ie}function vn(Ie,We,xr){if(e.Debug.shouldAssert(2))for(;Ie>=0;)e.Debug.assert(We[Ie]!==xr,"Circular traversal detected."),Ie--}})(qr||(qr={}));var ln=function(){function Ee(ze,Ar,xe,cr,Mr,Rr){this.onEnter=ze,this.onLeft=Ar,this.onOperator=xe,this.onRight=cr,this.onExit=Mr,this.foldState=Rr}return Ee}();function dr(Ee,ze,Ar,xe,cr,Mr){var Rr=new ln(Ee,ze,Ar,xe,cr,Mr);return Qr;function Qr(en,vn){for(var Ie={value:void 0},We=[qr.enter],xr=[en],Lr=[void 0],xn=0;We[xn]!==qr.done;)xn=We[xn](Rr,xn,We,xr,Lr,Ie,vn);return e.Debug.assertEqual(xn,0),Ie.value}}e.createBinaryExpressionTrampoline=dr;function vr(Ee,ze){if(ze!==void 0)return ze.length===0?ze:e.setTextRange(Ee.createNodeArray([],ze.hasTrailingComma),ze)}e.elideNodes=vr;function kr(Ee){if(Ee.autoGenerateFlags&4){for(var ze=Ee.autoGenerateId,Ar=Ee,xe=Ar.original;xe&&(Ar=xe,!(e.isMemberName(Ar)&&!!(Ar.autoGenerateFlags&4)&&Ar.autoGenerateId!==ze));)xe=Ar.original;return Ar}return Ee}e.getNodeForGeneratedName=kr;function Ur(Ee,ze){return typeof Ee=="object"?Br(!1,Ee.prefix,Ee.node,Ee.suffix,ze):typeof Ee=="string"?Ee.length>0&&Ee.charCodeAt(0)===35?Ee.slice(1):Ee:""}e.formatGeneratedNamePart=Ur;function Cr(Ee,ze){return typeof Ee=="string"?Ee:rn(Ee,e.Debug.checkDefined(ze))}function rn(Ee,ze){return e.isGeneratedPrivateIdentifier(Ee)?ze(Ee).slice(1):e.isGeneratedIdentifier(Ee)?ze(Ee):e.isPrivateIdentifier(Ee)?Ee.escapedText.slice(1):e.idText(Ee)}function Br(Ee,ze,Ar,xe,cr){return ze=Ur(ze,cr),xe=Ur(xe,cr),Ar=Cr(Ar,cr),"".concat(Ee?"#":"").concat(ze).concat(Ar).concat(xe)}e.formatGeneratedName=Br;function pn(Ee,ze,Ar,xe){return Ee.updatePropertyDeclaration(ze,Ar,Ee.getGeneratedPrivateNameForNode(ze.name,void 0,"_accessor_storage"),void 0,void 0,xe)}e.createAccessorPropertyBackingField=pn;function ve(Ee,ze,Ar,xe){return Ee.createGetAccessorDeclaration(Ar,xe,[],void 0,Ee.createBlock([Ee.createReturnStatement(Ee.createPropertyAccessExpression(Ee.createThis(),Ee.getGeneratedPrivateNameForNode(ze.name,void 0,"_accessor_storage")))]))}e.createAccessorPropertyGetRedirector=ve;function or(Ee,ze,Ar,xe){return Ee.createSetAccessorDeclaration(Ar,xe,[Ee.createParameterDeclaration(void 0,void 0,"value")],Ee.createBlock([Ee.createExpressionStatement(Ee.createAssignment(Ee.createPropertyAccessExpression(Ee.createThis(),Ee.getGeneratedPrivateNameForNode(ze.name,void 0,"_accessor_storage")),Ee.createIdentifier("value")))]))}e.createAccessorPropertySetRedirector=or})(fr||(fr={}));var fr;(function(e){function o(se,O){return O?e.setTextRangePosEnd(se,O.pos,O.end):se}e.setTextRange=o;function ne(se){var O=se.kind;return O===165||O===166||O===168||O===169||O===170||O===171||O===173||O===174||O===175||O===178||O===182||O===215||O===216||O===228||O===240||O===259||O===260||O===261||O===262||O===263||O===264||O===268||O===269||O===274||O===275}e.canHaveModifiers=ne;function K(se){var O=se.kind;return O===166||O===169||O===171||O===174||O===175||O===228||O===260}e.canHaveDecorators=K})(fr||(fr={}));var fr;(function(e){var o,ne;(function(Y){Y[Y.None=0]="None",Y[Y.Yield=1]="Yield",Y[Y.Await=2]="Await",Y[Y.Type=4]="Type",Y[Y.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",Y[Y.JSDoc=32]="JSDoc"})(ne||(ne={}));var K;(function(Y){Y[Y.TryParse=0]="TryParse",Y[Y.Lookahead=1]="Lookahead",Y[Y.Reparse=2]="Reparse"})(K||(K={}));var se,O,ie,_e,Q;e.parseBaseNodeFactory={createBaseSourceFileNode:function(Y){return new(Q||(Q=e.objectAllocator.getSourceFileConstructor()))(Y,-1,-1)},createBaseIdentifierNode:function(Y){return new(ie||(ie=e.objectAllocator.getIdentifierConstructor()))(Y,-1,-1)},createBasePrivateIdentifierNode:function(Y){return new(_e||(_e=e.objectAllocator.getPrivateIdentifierConstructor()))(Y,-1,-1)},createBaseTokenNode:function(Y){return new(O||(O=e.objectAllocator.getTokenConstructor()))(Y,-1,-1)},createBaseNode:function(Y){return new(se||(se=e.objectAllocator.getNodeConstructor()))(Y,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function p(Y,d){return d&&Y(d)}function D(Y,d,j){if(j){if(d)return d(j);for(var Ce=0,Se=j;Ce<Se.length;Ce++){var Re=Se[Ce],er=Y(Re);if(er)return er}}}function le(Y,d){return Y.charCodeAt(d+1)===42&&Y.charCodeAt(d+2)===42&&Y.charCodeAt(d+3)!==47}e.isJSDocLikeText=le;function de(Y){return e.forEach(Y.statements,te)||oe(Y)}e.isFileProbablyExternalModule=de;function te(Y){return e.canHaveModifiers(Y)&&E(Y,93)||e.isImportEqualsDeclaration(Y)&&e.isExternalModuleReference(Y.moduleReference)||e.isImportDeclaration(Y)||e.isExportAssignment(Y)||e.isExportDeclaration(Y)?Y:void 0}function oe(Y){return Y.flags&4194304?ae(Y):void 0}function ae(Y){return I(Y)?Y:J(Y,ae)}function E(Y,d){return e.some(Y.modifiers,function(j){return j.kind===d})}function I(Y){return e.isMetaProperty(Y)&&Y.keywordToken===100&&Y.name.escapedText==="meta"}var f=(o={},o[163]=function(d,j,Ce){return p(j,d.left)||p(j,d.right)},o[165]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.constraint)||p(j,d.default)||p(j,d.expression)},o[300]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.questionToken)||p(j,d.exclamationToken)||p(j,d.equalsToken)||p(j,d.objectAssignmentInitializer)},o[301]=function(d,j,Ce){return p(j,d.expression)},o[166]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.dotDotDotToken)||p(j,d.name)||p(j,d.questionToken)||p(j,d.type)||p(j,d.initializer)},o[169]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.questionToken)||p(j,d.exclamationToken)||p(j,d.type)||p(j,d.initializer)},o[168]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.questionToken)||p(j,d.type)||p(j,d.initializer)},o[299]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.questionToken)||p(j,d.exclamationToken)||p(j,d.initializer)},o[257]=function(d,j,Ce){return p(j,d.name)||p(j,d.exclamationToken)||p(j,d.type)||p(j,d.initializer)},o[205]=function(d,j,Ce){return p(j,d.dotDotDotToken)||p(j,d.propertyName)||p(j,d.name)||p(j,d.initializer)},o[178]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)},o[182]=function(d,j,Ce){return D(j,Ce,d.modifiers)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)},o[181]=function(d,j,Ce){return D(j,Ce,d.modifiers)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)},o[176]=m,o[177]=m,o[171]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.asteriskToken)||p(j,d.name)||p(j,d.questionToken)||p(j,d.exclamationToken)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.body)},o[170]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.questionToken)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)},o[173]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.body)},o[174]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.name)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.body)},o[175]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.name)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.body)},o[259]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.asteriskToken)||p(j,d.name)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.body)},o[215]=function(d,j,Ce){return D(j,Ce,d.modifiers)||p(j,d.asteriskToken)||p(j,d.name)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.body)},o[216]=function(d,j,Ce){return D(j,Ce,d.modifiers)||D(j,Ce,d.typeParameters)||D(j,Ce,d.parameters)||p(j,d.type)||p(j,d.equalsGreaterThanToken)||p(j,d.body)},o[172]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.body)},o[180]=function(d,j,Ce){return p(j,d.typeName)||D(j,Ce,d.typeArguments)},o[179]=function(d,j,Ce){return p(j,d.assertsModifier)||p(j,d.parameterName)||p(j,d.type)},o[183]=function(d,j,Ce){return p(j,d.exprName)||D(j,Ce,d.typeArguments)},o[184]=function(d,j,Ce){return D(j,Ce,d.members)},o[185]=function(d,j,Ce){return p(j,d.elementType)},o[186]=function(d,j,Ce){return D(j,Ce,d.elements)},o[189]=y,o[190]=y,o[191]=function(d,j,Ce){return p(j,d.checkType)||p(j,d.extendsType)||p(j,d.trueType)||p(j,d.falseType)},o[192]=function(d,j,Ce){return p(j,d.typeParameter)},o[202]=function(d,j,Ce){return p(j,d.argument)||p(j,d.assertions)||p(j,d.qualifier)||D(j,Ce,d.typeArguments)},o[298]=function(d,j,Ce){return p(j,d.assertClause)},o[193]=S,o[195]=S,o[196]=function(d,j,Ce){return p(j,d.objectType)||p(j,d.indexType)},o[197]=function(d,j,Ce){return p(j,d.readonlyToken)||p(j,d.typeParameter)||p(j,d.nameType)||p(j,d.questionToken)||p(j,d.type)||D(j,Ce,d.members)},o[198]=function(d,j,Ce){return p(j,d.literal)},o[199]=function(d,j,Ce){return p(j,d.dotDotDotToken)||p(j,d.name)||p(j,d.questionToken)||p(j,d.type)},o[203]=k,o[204]=k,o[206]=function(d,j,Ce){return D(j,Ce,d.elements)},o[207]=function(d,j,Ce){return D(j,Ce,d.properties)},o[208]=function(d,j,Ce){return p(j,d.expression)||p(j,d.questionDotToken)||p(j,d.name)},o[209]=function(d,j,Ce){return p(j,d.expression)||p(j,d.questionDotToken)||p(j,d.argumentExpression)},o[210]=C,o[211]=C,o[212]=function(d,j,Ce){return p(j,d.tag)||p(j,d.questionDotToken)||D(j,Ce,d.typeArguments)||p(j,d.template)},o[213]=function(d,j,Ce){return p(j,d.type)||p(j,d.expression)},o[214]=function(d,j,Ce){return p(j,d.expression)},o[217]=function(d,j,Ce){return p(j,d.expression)},o[218]=function(d,j,Ce){return p(j,d.expression)},o[219]=function(d,j,Ce){return p(j,d.expression)},o[221]=function(d,j,Ce){return p(j,d.operand)},o[226]=function(d,j,Ce){return p(j,d.asteriskToken)||p(j,d.expression)},o[220]=function(d,j,Ce){return p(j,d.expression)},o[222]=function(d,j,Ce){return p(j,d.operand)},o[223]=function(d,j,Ce){return p(j,d.left)||p(j,d.operatorToken)||p(j,d.right)},o[231]=function(d,j,Ce){return p(j,d.expression)||p(j,d.type)},o[232]=function(d,j,Ce){return p(j,d.expression)},o[235]=function(d,j,Ce){return p(j,d.expression)||p(j,d.type)},o[233]=function(d,j,Ce){return p(j,d.name)},o[224]=function(d,j,Ce){return p(j,d.condition)||p(j,d.questionToken)||p(j,d.whenTrue)||p(j,d.colonToken)||p(j,d.whenFalse)},o[227]=function(d,j,Ce){return p(j,d.expression)},o[238]=me,o[265]=me,o[308]=function(d,j,Ce){return D(j,Ce,d.statements)||p(j,d.endOfFileToken)},o[240]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.declarationList)},o[258]=function(d,j,Ce){return D(j,Ce,d.declarations)},o[241]=function(d,j,Ce){return p(j,d.expression)},o[242]=function(d,j,Ce){return p(j,d.expression)||p(j,d.thenStatement)||p(j,d.elseStatement)},o[243]=function(d,j,Ce){return p(j,d.statement)||p(j,d.expression)},o[244]=function(d,j,Ce){return p(j,d.expression)||p(j,d.statement)},o[245]=function(d,j,Ce){return p(j,d.initializer)||p(j,d.condition)||p(j,d.incrementor)||p(j,d.statement)},o[246]=function(d,j,Ce){return p(j,d.initializer)||p(j,d.expression)||p(j,d.statement)},o[247]=function(d,j,Ce){return p(j,d.awaitModifier)||p(j,d.initializer)||p(j,d.expression)||p(j,d.statement)},o[248]=De,o[249]=De,o[250]=function(d,j,Ce){return p(j,d.expression)},o[251]=function(d,j,Ce){return p(j,d.expression)||p(j,d.statement)},o[252]=function(d,j,Ce){return p(j,d.expression)||p(j,d.caseBlock)},o[266]=function(d,j,Ce){return D(j,Ce,d.clauses)},o[292]=function(d,j,Ce){return p(j,d.expression)||D(j,Ce,d.statements)},o[293]=function(d,j,Ce){return D(j,Ce,d.statements)},o[253]=function(d,j,Ce){return p(j,d.label)||p(j,d.statement)},o[254]=function(d,j,Ce){return p(j,d.expression)},o[255]=function(d,j,Ce){return p(j,d.tryBlock)||p(j,d.catchClause)||p(j,d.finallyBlock)},o[295]=function(d,j,Ce){return p(j,d.variableDeclaration)||p(j,d.block)},o[167]=function(d,j,Ce){return p(j,d.expression)},o[260]=X,o[228]=X,o[261]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||D(j,Ce,d.typeParameters)||D(j,Ce,d.heritageClauses)||D(j,Ce,d.members)},o[262]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||D(j,Ce,d.typeParameters)||p(j,d.type)},o[263]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||D(j,Ce,d.members)},o[302]=function(d,j,Ce){return p(j,d.name)||p(j,d.initializer)},o[264]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.body)},o[268]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.name)||p(j,d.moduleReference)},o[269]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.importClause)||p(j,d.moduleSpecifier)||p(j,d.assertClause)},o[270]=function(d,j,Ce){return p(j,d.name)||p(j,d.namedBindings)},o[296]=function(d,j,Ce){return D(j,Ce,d.elements)},o[297]=function(d,j,Ce){return p(j,d.name)||p(j,d.value)},o[267]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||p(j,d.name)},o[271]=function(d,j,Ce){return p(j,d.name)},o[277]=function(d,j,Ce){return p(j,d.name)},o[272]=M,o[276]=M,o[275]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.exportClause)||p(j,d.moduleSpecifier)||p(j,d.assertClause)},o[273]=H,o[278]=H,o[274]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)||p(j,d.expression)},o[225]=function(d,j,Ce){return p(j,d.head)||D(j,Ce,d.templateSpans)},o[236]=function(d,j,Ce){return p(j,d.expression)||p(j,d.literal)},o[200]=function(d,j,Ce){return p(j,d.head)||D(j,Ce,d.templateSpans)},o[201]=function(d,j,Ce){return p(j,d.type)||p(j,d.literal)},o[164]=function(d,j,Ce){return p(j,d.expression)},o[294]=function(d,j,Ce){return D(j,Ce,d.types)},o[230]=function(d,j,Ce){return p(j,d.expression)||D(j,Ce,d.typeArguments)},o[280]=function(d,j,Ce){return p(j,d.expression)},o[279]=function(d,j,Ce){return D(j,Ce,d.illegalDecorators)||D(j,Ce,d.modifiers)},o[354]=function(d,j,Ce){return D(j,Ce,d.elements)},o[281]=function(d,j,Ce){return p(j,d.openingElement)||D(j,Ce,d.children)||p(j,d.closingElement)},o[285]=function(d,j,Ce){return p(j,d.openingFragment)||D(j,Ce,d.children)||p(j,d.closingFragment)},o[282]=V,o[283]=V,o[289]=function(d,j,Ce){return D(j,Ce,d.properties)},o[288]=function(d,j,Ce){return p(j,d.name)||p(j,d.initializer)},o[290]=function(d,j,Ce){return p(j,d.expression)},o[291]=function(d,j,Ce){return p(j,d.dotDotDotToken)||p(j,d.expression)},o[284]=function(d,j,Ce){return p(j,d.tagName)},o[187]=h,o[188]=h,o[312]=h,o[318]=h,o[317]=h,o[319]=h,o[321]=h,o[320]=function(d,j,Ce){return D(j,Ce,d.parameters)||p(j,d.type)},o[323]=function(d,j,Ce){return(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))||D(j,Ce,d.tags)},o[349]=function(d,j,Ce){return p(j,d.tagName)||p(j,d.name)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))},o[313]=function(d,j,Ce){return p(j,d.name)},o[314]=function(d,j,Ce){return p(j,d.left)||p(j,d.right)},o[343]=F,o[350]=F,o[333]=function(d,j,Ce){return p(j,d.tagName)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))},o[332]=function(d,j,Ce){return p(j,d.tagName)||p(j,d.class)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))},o[331]=function(d,j,Ce){return p(j,d.tagName)||p(j,d.class)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))},o[347]=function(d,j,Ce){return p(j,d.tagName)||p(j,d.constraint)||D(j,Ce,d.typeParameters)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))},o[348]=function(d,j,Ce){return p(j,d.tagName)||(d.typeExpression&&d.typeExpression.kind===312?p(j,d.typeExpression)||p(j,d.fullName)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment)):p(j,d.fullName)||p(j,d.typeExpression)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment)))},o[341]=function(d,j,Ce){return p(j,d.tagName)||p(j,d.fullName)||p(j,d.typeExpression)||(typeof d.comment=="string"?void 0:D(j,Ce,d.comment))},o[344]=$,o[346]=$,o[345]=$,o[342]=$,o[326]=function(d,j,Ce){return e.forEach(d.typeParameters,j)||e.forEach(d.parameters,j)||p(j,d.type)},o[327]=L,o[328]=L,o[329]=L,o[325]=function(d,j,Ce){return e.forEach(d.jsDocPropertyTags,j)},o[330]=P,o[335]=P,o[336]=P,o[337]=P,o[338]=P,o[339]=P,o[334]=P,o[340]=P,o[353]=N,o);function m(Y,d,j){return D(d,j,Y.typeParameters)||D(d,j,Y.parameters)||p(d,Y.type)}function y(Y,d,j){return D(d,j,Y.types)}function S(Y,d,j){return p(d,Y.type)}function k(Y,d,j){return D(d,j,Y.elements)}function C(Y,d,j){return p(d,Y.expression)||p(d,Y.questionDotToken)||D(d,j,Y.typeArguments)||D(d,j,Y.arguments)}function me(Y,d,j){return D(d,j,Y.statements)}function De(Y,d,j){return p(d,Y.label)}function X(Y,d,j){return D(d,j,Y.modifiers)||p(d,Y.name)||D(d,j,Y.typeParameters)||D(d,j,Y.heritageClauses)||D(d,j,Y.members)}function M(Y,d,j){return D(d,j,Y.elements)}function H(Y,d,j){return p(d,Y.propertyName)||p(d,Y.name)}function V(Y,d,j){return p(d,Y.tagName)||D(d,j,Y.typeArguments)||p(d,Y.attributes)}function h(Y,d,j){return p(d,Y.type)}function F(Y,d,j){return p(d,Y.tagName)||(Y.isNameFirst?p(d,Y.name)||p(d,Y.typeExpression):p(d,Y.typeExpression)||p(d,Y.name))||(typeof Y.comment=="string"?void 0:D(d,j,Y.comment))}function $(Y,d,j){return p(d,Y.tagName)||p(d,Y.typeExpression)||(typeof Y.comment=="string"?void 0:D(d,j,Y.comment))}function L(Y,d,j){return p(d,Y.name)}function P(Y,d,j){return p(d,Y.tagName)||(typeof Y.comment=="string"?void 0:D(d,j,Y.comment))}function N(Y,d,j){return p(d,Y.expression)}function J(Y,d,j){if(!(Y===void 0||Y.kind<=162)){var Ce=f[Y.kind];return Ce===void 0?void 0:Ce(Y,d,j)}}e.forEachChild=J;function q(Y,d,j){for(var Ce=G(Y),Se=[];Se.length<Ce.length;)Se.push(Y);for(;Ce.length!==0;){var Re=Ce.pop(),er=Se.pop();if(e.isArray(Re)){if(j){var wr=j(Re,er);if(wr){if(wr==="skip")continue;return wr}}for(var mr=Re.length-1;mr>=0;--mr)Ce.push(Re[mr]),Se.push(er)}else{var wr=d(Re,er);if(wr){if(wr==="skip")continue;return wr}if(Re.kind>=163)for(var Ue=0,t=G(Re);Ue<t.length;Ue++){var qr=t[Ue];Ce.push(qr),Se.push(Re)}}}}e.forEachChildRecursively=q;function G(Y){var d=[];return J(Y,j,j),d;function j(Ce){d.unshift(Ce)}}function ye(Y){Y.externalModuleIndicator=de(Y)}function b(Y,d,j,Ce,Se){Ce===void 0&&(Ce=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:Y},!0),e.performance.mark("beforeParse");var Re;e.perfLogger.logStartParseSourceFile(Y);var er=typeof j=="object"?j:{languageVersion:j},wr=er.languageVersion,mr=er.setExternalModuleIndicator,Ue=er.impliedNodeFormat;if(wr===100)Re=w.parseSourceFile(Y,d,wr,void 0,Ce,6,e.noop);else{var t=Ue===void 0?mr:function(qr){return qr.impliedNodeFormat=Ue,(mr||ye)(qr)};Re=w.parseSourceFile(Y,d,wr,void 0,Ce,Se,t)}return e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Re}e.createSourceFile=b;function x(Y,d){return w.parseIsolatedEntityName(Y,d)}e.parseIsolatedEntityName=x;function T(Y,d){return w.parseJsonText(Y,d)}e.parseJsonText=T;function Z(Y){return Y.externalModuleIndicator!==void 0}e.isExternalModule=Z;function B(Y,d,j,Ce){Ce===void 0&&(Ce=!1);var Se=z.updateSourceFile(Y,d,j,Ce);return Se.flags|=Y.flags&6291456,Se}e.updateSourceFile=B;function u(Y,d,j){var Ce=w.JSDocParser.parseIsolatedJSDocComment(Y,d,j);return Ce&&Ce.jsDoc&&w.fixupParentReferences(Ce.jsDoc),Ce}e.parseIsolatedJSDocComment=u;function A(Y,d,j){return w.JSDocParser.parseJSDocTypeExpressionForTests(Y,d,j)}e.parseJSDocTypeExpressionForTests=A;var w;(function(Y){var d=e.createScanner(99,!0),j=4096|16384,Ce,Se,Re,er,wr;function mr(Fe){return ve++,Fe}var Ue={createBaseSourceFileNode:function(Fe){return mr(new wr(Fe,0,0))},createBaseIdentifierNode:function(Fe){return mr(new Re(Fe,0,0))},createBasePrivateIdentifierNode:function(Fe){return mr(new er(Fe,0,0))},createBaseTokenNode:function(Fe){return mr(new Se(Fe,0,0))},createBaseNode:function(Fe){return mr(new Ce(Fe,0,0))}},t=e.createNodeFactory(1|2|8,Ue),qr,ln,dr,vr,kr,Ur,Cr,rn,Br,pn,ve,or,Ee,ze,Ar,xe,cr,Mr=!0,Rr=!1;function Qr(Fe,gr,Yr,mn,Un,ci,tt){var mt;if(Un===void 0&&(Un=!1),ci=e.ensureScriptKind(Fe,ci),ci===6){var bt=vn(Fe,gr,Yr,mn,Un);return e.convertToObjectWorker(bt,(mt=bt.statements[0])===null||mt===void 0?void 0:mt.expression,bt.parseDiagnostics,!1,void 0,void 0),bt.referencedFiles=e.emptyArray,bt.typeReferenceDirectives=e.emptyArray,bt.libReferenceDirectives=e.emptyArray,bt.amdDependencies=e.emptyArray,bt.hasNoDefaultLib=!1,bt.pragmas=e.emptyMap,bt}Ie(Fe,gr,Yr,mn,ci);var Lt=xr(Yr,Un,ci,tt||ye);return We(),Lt}Y.parseSourceFile=Qr;function en(Fe,gr){Ie("",Fe,gr,void 0,1),gn();var Yr=xa(!0),mn=we()===1&&!Cr.length;return We(),mn?Yr:void 0}Y.parseIsolatedEntityName=en;function vn(Fe,gr,Yr,mn,Un){Yr===void 0&&(Yr=2),Un===void 0&&(Un=!1),Ie(Fe,gr,Yr,mn,6),ln=cr,gn();var ci=Pe(),tt,mt;if(we()===1)tt=pr([],ci,ci),mt=so();else{for(var bt=void 0;we()!==1;){var Lt=void 0;switch(we()){case 22:Lt=Ms();break;case 110:case 95:case 104:Lt=so();break;case 40:Ci(function(){return gn()===8&&gn()!==58})?Lt=Q_():Lt=Hf();break;case 8:case 10:if(Ci(function(){return gn()!==58})){Lt=Gs();break}default:Lt=Hf();break}bt&&e.isArray(bt)?bt.push(Lt):bt?bt=[bt,Lt]:(bt=Lt,we()!==1&&ti(e.Diagnostics.Unexpected_token))}var Oa=e.isArray(bt)?Fr(t.createArrayLiteralExpression(bt),ci):e.Debug.checkDefined(bt),bo=t.createExpressionStatement(Oa);Fr(bo,ci),tt=pr([bo],ci),mt=fo(1,e.Diagnostics.Unexpected_token)}var mo=Dr(Fe,2,6,!1,tt,mt,ln,e.noop);Un&&ai(mo),mo.nodeCount=ve,mo.identifierCount=ze,mo.identifiers=or,mo.parseDiagnostics=e.attachFileToDiagnostics(Cr,mo),rn&&(mo.jsDocDiagnostics=e.attachFileToDiagnostics(rn,mo));var wo=mo;return We(),wo}Y.parseJsonText=vn;function Ie(Fe,gr,Yr,mn,Un){switch(Ce=e.objectAllocator.getNodeConstructor(),Se=e.objectAllocator.getTokenConstructor(),Re=e.objectAllocator.getIdentifierConstructor(),er=e.objectAllocator.getPrivateIdentifierConstructor(),wr=e.objectAllocator.getSourceFileConstructor(),qr=e.normalizePath(Fe),dr=gr,vr=Yr,Br=mn,kr=Un,Ur=e.getLanguageVariant(Un),Cr=[],Ar=0,or=new e.Map,Ee=new e.Map,ze=0,ve=0,ln=0,Mr=!0,kr){case 1:case 2:cr=262144;break;case 6:cr=262144|67108864;break;default:cr=0;break}Rr=!1,d.setText(dr),d.setOnError(Pn),d.setScriptTarget(vr),d.setLanguageVariant(Ur)}function We(){d.clearCommentDirectives(),d.setText(""),d.setOnError(void 0),dr=void 0,vr=void 0,Br=void 0,kr=void 0,Ur=void 0,ln=0,Cr=void 0,rn=void 0,Ar=0,or=void 0,xe=void 0,Mr=!0}function xr(Fe,gr,Yr,mn){var Un=U(qr);Un&&(cr|=16777216),ln=cr,gn();var ci=Ko(0,ko);e.Debug.assert(we()===1);var tt=An(so()),mt=Dr(qr,Fe,Yr,Un,ci,tt,ln,mn);return pe(mt,dr),He(mt,bt),mt.commentDirectives=d.getCommentDirectives(),mt.nodeCount=ve,mt.identifierCount=ze,mt.identifiers=or,mt.parseDiagnostics=e.attachFileToDiagnostics(Cr,mt),rn&&(mt.jsDocDiagnostics=e.attachFileToDiagnostics(rn,mt)),gr&&ai(mt),mt;function bt(Lt,Oa,bo){Cr.push(e.createDetachedDiagnostic(qr,Lt,Oa,bo))}}function Lr(Fe,gr){return gr?An(Fe):Fe}var xn=!1;function An(Fe){e.Debug.assert(!Fe.jsDoc);var gr=e.mapDefined(e.getJSDocCommentRanges(Fe,dr),function(Yr){return Kp.parseJSDocComment(Fe,Yr.pos,Yr.end-Yr.pos)});return gr.length&&(Fe.jsDoc=gr),xn&&(xn=!1,Fe.flags|=268435456),Fe}function Qn(Fe){var gr=Br,Yr=z.createSyntaxCursor(Fe);Br={currentNode:wo};var mn=[],Un=Cr;Cr=[];for(var ci=0,tt=bo(Fe.statements,0),mt=function(){var Cs=Fe.statements[ci],hc=Fe.statements[tt];e.addRange(mn,Fe.statements,ci,tt),ci=mo(Fe.statements,tt);var $o=e.findIndex(Un,function(Kc){return Kc.start>=Cs.pos}),vu=$o>=0?e.findIndex(Un,function(Kc){return Kc.start>=hc.pos},$o):-1;$o>=0&&e.addRange(Cr,Un,$o,vu>=0?vu:void 0),qi(function(){var Kc=cr;for(cr|=32768,d.setTextPos(hc.pos),gn();we()!==1;){var Ks=d.getStartPos(),Ic=Mc(0,ko);if(mn.push(Ic),Ks===d.getStartPos()&&gn(),ci>=0){var ol=Fe.statements[ci];if(Ic.end===ol.pos)break;Ic.end>ol.pos&&(ci=mo(Fe.statements,ci+1))}}cr=Kc},2),tt=ci>=0?bo(Fe.statements,ci):-1};tt!==-1;)mt();if(ci>=0){var bt=Fe.statements[ci];e.addRange(mn,Fe.statements,ci);var Lt=e.findIndex(Un,function(Cs){return Cs.start>=bt.pos});Lt>=0&&e.addRange(Cr,Un,Lt)}return Br=gr,t.updateSourceFile(Fe,e.setTextRange(t.createNodeArray(mn),Fe.statements));function Oa(Cs){return!(Cs.flags&32768)&&!!(Cs.transformFlags&67108864)}function bo(Cs,hc){for(var $o=hc;$o<Cs.length;$o++)if(Oa(Cs[$o]))return $o;return-1}function mo(Cs,hc){for(var $o=hc;$o<Cs.length;$o++)if(!Oa(Cs[$o]))return $o;return-1}function wo(Cs){var hc=Yr.currentNode(Cs);return Mr&&hc&&Oa(hc)&&(hc.intersectsChange=!0),hc}}function ai(Fe){e.setParentRecursive(Fe,!0)}Y.fixupParentReferences=ai;function Dr(Fe,gr,Yr,mn,Un,ci,tt,mt){var bt=t.createSourceFile(Un,ci,tt);return e.setTextRangePosWidth(bt,0,dr.length),Lt(bt),!mn&&Z(bt)&&bt.transformFlags&67108864&&(bt=Qn(bt),Lt(bt)),bt;function Lt(Oa){Oa.text=dr,Oa.bindDiagnostics=[],Oa.bindSuggestionDiagnostics=void 0,Oa.languageVersion=gr,Oa.fileName=Fe,Oa.languageVariant=e.getLanguageVariant(Yr),Oa.isDeclarationFile=mn,Oa.scriptKind=Yr,mt(Oa),Oa.setExternalModuleIndicator=mt}}function Pr(Fe,gr){Fe?cr|=gr:cr&=~gr}function jr(Fe){Pr(Fe,4096)}function on(Fe){Pr(Fe,8192)}function je(Fe){Pr(Fe,16384)}function Sr(Fe){Pr(Fe,32768)}function Te(Fe,gr){var Yr=Fe&cr;if(Yr){Pr(!1,Yr);var mn=gr();return Pr(!0,Yr),mn}return gr()}function Ye(Fe,gr){var Yr=Fe&~cr;if(Yr){Pr(!0,Yr);var mn=gr();return Pr(!1,Yr),mn}return gr()}function Qe(Fe){return Te(4096,Fe)}function ue(Fe){return Ye(4096,Fe)}function Ke(Fe){return Te(65536,Fe)}function tr(Fe){return Ye(65536,Fe)}function hr(Fe){return Ye(8192,Fe)}function _r(Fe){return Ye(16384,Fe)}function Or(Fe){return Ye(32768,Fe)}function zr(Fe){return Te(32768,Fe)}function fn(Fe){return Ye(8192|32768,Fe)}function Vr(Fe){return Te(8192|32768,Fe)}function Wn(Fe){return(cr&Fe)!=0}function bn(){return Wn(8192)}function qn(){return Wn(4096)}function yn(){return Wn(65536)}function Hn(){return Wn(16384)}function Ai(){return Wn(32768)}function ti(Fe,gr){return Ni(d.getTokenPos(),d.getTextPos(),Fe,gr)}function Hi(Fe,gr,Yr,mn){var Un=e.lastOrUndefined(Cr),ci;return(!Un||Fe!==Un.start)&&(ci=e.createDetachedDiagnostic(qr,Fe,gr,Yr,mn),Cr.push(ci)),Rr=!0,ci}function Ni(Fe,gr,Yr,mn){return Hi(Fe,gr-Fe,Yr,mn)}function gi(Fe,gr,Yr){Ni(Fe.pos,Fe.end,gr,Yr)}function Pn(Fe,gr){Hi(d.getTextPos(),gr,Fe)}function Pe(){return d.getStartPos()}function Ir(){return d.hasPrecedingJSDocComment()}function we(){return pn}function hn(){return pn=d.scan()}function jn(Fe){return gn(),Fe()}function gn(){return e.isKeyword(pn)&&(d.hasUnicodeEscape()||d.hasExtendedUnicodeEscape())&&Ni(d.getTokenPos(),d.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),hn()}function nn(){return pn=d.scanJsDocToken()}function Cn(){return pn=d.reScanGreaterToken()}function Dn(){return pn=d.reScanSlashToken()}function On(Fe){return pn=d.reScanTemplateToken(Fe)}function Xn(){return pn=d.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ge(){return pn=d.reScanLessThanToken()}function cn(){return pn=d.reScanHashToken()}function Vn(){return pn=d.scanJsxIdentifier()}function Ki(){return pn=d.scanJsxToken()}function dt(){return pn=d.scanJsxAttributeValue()}function qi(Fe,gr){var Yr=pn,mn=Cr.length,Un=Rr,ci=cr,tt=gr!==0?d.lookAhead(Fe):d.tryScan(Fe);return e.Debug.assert(ci===cr),(!tt||gr!==0)&&(pn=Yr,gr!==2&&(Cr.length=mn),Rr=Un),tt}function Ci(Fe){return qi(Fe,1)}function Tt(Fe){return qi(Fe,0)}function ot(){return we()===79?!0:we()>116}function Zi(){return we()===79?!0:we()===125&&bn()||we()===133&&Ai()?!1:we()>116}function ni(Fe,gr,Yr){return Yr===void 0&&(Yr=!0),we()===Fe?(Yr&&gn(),!0):(gr?ti(gr):ti(e.Diagnostics._0_expected,e.tokenToString(Fe)),!1)}var Va=Object.keys(e.textToKeywordObj).filter(function(Fe){return Fe.length>2});function Ua(Fe){var gr;if(e.isTaggedTemplateExpression(Fe)){Ni(e.skipTrivia(dr,Fe.template.pos),Fe.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Yr=e.isIdentifier(Fe)?e.idText(Fe):void 0;if(!Yr||!e.isIdentifierText(Yr,vr)){ti(e.Diagnostics._0_expected,e.tokenToString(26));return}var mn=e.skipTrivia(dr,Fe.pos);switch(Yr){case"const":case"let":case"var":Ni(mn,Fe.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":za(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":Ni(mn,d.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":za(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":za(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Un=(gr=e.getSpellingSuggestion(Yr,Va,function(ci){return ci}))!==null&&gr!==void 0?gr:Co(Yr);if(Un){Ni(mn,Fe.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Un);return}we()!==0&&Ni(mn,Fe.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function za(Fe,gr,Yr){we()===Yr?ti(gr):ti(Fe,d.getTokenValue())}function Co(Fe){for(var gr=0,Yr=Va;gr<Yr.length;gr++){var mn=Yr[gr];if(Fe.length>mn.length+2&&e.startsWith(Fe,mn))return"".concat(mn," ").concat(Fe.slice(mn.length))}}function Ea(Fe,gr,Yr){if(we()===59&&!d.hasPrecedingLineBreak()){ti(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(we()===20){ti(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),gn();return}if(gr&&!Ho()){Yr?ti(e.Diagnostics._0_expected,e.tokenToString(26)):ti(e.Diagnostics.Expected_for_property_initializer);return}if(!Zo()){if(Yr){ti(e.Diagnostics._0_expected,e.tokenToString(26));return}Ua(Fe)}}function ho(Fe){return we()===Fe?(nn(),!0):(ti(e.Diagnostics._0_expected,e.tokenToString(Fe)),!1)}function Aa(Fe,gr,Yr,mn){if(we()===gr){gn();return}var Un=ti(e.Diagnostics._0_expected,e.tokenToString(gr));!Yr||Un&&e.addRelatedInfo(Un,e.createDetachedDiagnostic(qr,mn,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(Fe),e.tokenToString(gr)))}function Vi(Fe){return we()===Fe?(gn(),!0):!1}function Xi(Fe){if(we()===Fe)return so()}function ao(Fe){if(we()===Fe)return Xo()}function fo(Fe,gr,Yr){return Xi(Fe)||yi(Fe,!1,gr||e.Diagnostics._0_expected,Yr||e.tokenToString(Fe))}function As(Fe){return ao(Fe)||yi(Fe,!1,e.Diagnostics._0_expected,e.tokenToString(Fe))}function so(){var Fe=Pe(),gr=we();return gn(),Fr(t.createToken(gr),Fe)}function Xo(){var Fe=Pe(),gr=we();return nn(),Fr(t.createToken(gr),Fe)}function Ho(){return we()===26?!0:we()===19||we()===1||d.hasPrecedingLineBreak()}function Zo(){return Ho()?(we()===26&&gn(),!0):!1}function To(){return Zo()||ni(26)}function pr(Fe,gr,Yr,mn){var Un=t.createNodeArray(Fe,mn);return e.setTextRangePosEnd(Un,gr,Yr!=null?Yr:d.getStartPos()),Un}function Fr(Fe,gr,Yr){return e.setTextRangePosEnd(Fe,gr,Yr!=null?Yr:d.getStartPos()),cr&&(Fe.flags|=cr),Rr&&(Rr=!1,Fe.flags|=131072),Fe}function yi(Fe,gr,Yr,mn){gr?Hi(d.getStartPos(),0,Yr,mn):Yr&&ti(Yr,mn);var Un=Pe(),ci=Fe===79?t.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(Fe)?t.createTemplateLiteralLikeNode(Fe,"","",void 0):Fe===8?t.createNumericLiteral("",void 0):Fe===10?t.createStringLiteral("",void 0):Fe===279?t.createMissingDeclaration():t.createToken(Fe);return Fr(ci,Un)}function Dt(Fe){var gr=or.get(Fe);return gr===void 0&&or.set(Fe,gr=Fe),gr}function Ft(Fe,gr,Yr){if(Fe){ze++;var mn=Pe(),Un=we(),ci=Dt(d.getTokenValue()),tt=d.hasExtendedUnicodeEscape();return hn(),Fr(t.createIdentifier(ci,void 0,Un,tt),mn)}if(we()===80)return ti(Yr||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ft(!0);if(we()===0&&d.tryScan(function(){return d.reScanInvalidIdentifier()===79}))return Ft(!0);ze++;var mt=we()===1,bt=d.isReservedWord(),Lt=d.getTokenText(),Oa=bt?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return yi(79,mt,gr||Oa,Lt)}function Pa(Fe){return Ft(ot(),void 0,Fe)}function Ve(Fe,gr){return Ft(Zi(),Fe,gr)}function tn(Fe){return Ft(e.tokenIsIdentifierOrKeyword(we()),Fe)}function Nn(){return e.tokenIsIdentifierOrKeyword(we())||we()===10||we()===8}function wn(){return e.tokenIsIdentifierOrKeyword(we())||we()===10}function Je(Fe){if(we()===10||we()===8){var gr=Gs();return gr.text=Dt(gr.text),gr}return Fe&&we()===22?yr():we()===80?Mn():tn()}function ur(){return Je(!0)}function yr(){var Fe=Pe();ni(22);var gr=Qe(sc);return ni(23),Fr(t.createComputedPropertyName(gr),Fe)}function Jr(Fe){var gr=Ee.get(Fe);return gr===void 0&&Ee.set(Fe,gr=Fe),gr}function Mn(){var Fe=Pe(),gr=t.createPrivateIdentifier(Jr(d.getTokenValue()));return gn(),Fr(gr,Fe)}function _i(Fe){return we()===Fe&&Tt(fi)}function di(){return gn(),d.hasPrecedingLineBreak()?!1:na()}function fi(){switch(we()){case 85:return gn()===92;case 93:return gn(),we()===88?Ci(Ia):we()===154?Ci(Gt):Nt();case 88:return Ia();case 127:case 124:case 137:case 151:return gn(),na();default:return di()}}function Nt(){return we()!==41&&we()!==128&&we()!==18&&na()}function Gt(){return gn(),Nt()}function la(){return e.isModifierKind(we())&&Tt(fi)}function na(){return we()===22||we()===18||we()===41||we()===25||Nn()}function Ia(){return gn(),we()===84||we()===98||we()===118||we()===126&&Ci(vl)||we()===132&&Ci(Xf)}function bs(Fe,gr){var Yr=Vs(Fe);if(Yr)return!0;switch(Fe){case 0:case 1:case 3:return!(we()===26&&gr)&&kf();case 2:return we()===82||we()===88;case 4:return Ci(fa);case 5:return Ci(td)||we()===26&&!gr;case 6:return we()===22||Nn();case 12:switch(we()){case 22:case 41:case 25:case 24:return!0;default:return Nn()}case 18:return Nn();case 9:return we()===22||we()===25||Nn();case 24:return wn();case 7:return we()===18?Ci(ds):gr?Zi()&&!ns():pp()&&!ns();case 8:return Yf();case 10:return we()===27||we()===25||Yf();case 19:return we()===101||Zi();case 15:switch(we()){case 27:case 24:return!0}case 11:return we()===25||vc();case 16:return Wt(!1);case 17:return Wt(!0);case 20:case 21:return we()===27||bf();case 22:return Zn();case 23:return e.tokenIsIdentifierOrKeyword(we());case 13:return e.tokenIsIdentifierOrKeyword(we())||we()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ds(){if(e.Debug.assert(we()===18),gn()===19){var Fe=gn();return Fe===27||Fe===18||Fe===94||Fe===117}return!0}function ps(){return gn(),Zi()}function ac(){return gn(),e.tokenIsIdentifierOrKeyword(we())}function Es(){return gn(),e.tokenIsIdentifierOrKeywordOrGreaterThan(we())}function ns(){return we()===117||we()===94?Ci(dc):!1}function dc(){return gn(),vc()}function $s(){return gn(),bf()}function pc(Fe){if(we()===1)return!0;switch(Fe){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return we()===19;case 3:return we()===19||we()===82||we()===88;case 7:return we()===18||we()===94||we()===117;case 8:return js();case 19:return we()===31||we()===20||we()===18||we()===94||we()===117;case 11:return we()===21||we()===26;case 15:case 21:case 10:return we()===23;case 17:case 16:case 18:return we()===21||we()===23;case 20:return we()!==27;case 22:return we()===18||we()===19;case 13:return we()===31||we()===43;case 14:return we()===29&&Ci(If);default:return!1}}function js(){return!!(Ho()||K_(we())||we()===38)}function Sc(){for(var Fe=0;Fe<25;Fe++)if(Ar&1<<Fe&&(bs(Fe,!0)||pc(Fe)))return!0;return!1}function Ko(Fe,gr){var Yr=Ar;Ar|=1<<Fe;for(var mn=[],Un=Pe();!pc(Fe);){if(bs(Fe,!1)){mn.push(Mc(Fe,gr));continue}if(Ht(Fe))break}return Ar=Yr,pr(mn,Un)}function Mc(Fe,gr){var Yr=Vs(Fe);return Yr?oc(Yr):gr()}function Vs(Fe,gr){if(!(!Br||!Ss(Fe)||Rr)){var Yr=Br.currentNode(gr!=null?gr:d.getStartPos());if(!(e.nodeIsMissing(Yr)||Yr.intersectsChange||e.containsParseError(Yr))){var mn=Yr.flags&50720768;if(mn===cr&&!!ee(Yr,Fe))return Yr.jsDocCache&&(Yr.jsDocCache=void 0),Yr}}}function oc(Fe){return d.setTextPos(Fe.end),gn(),Fe}function Ss(Fe){switch(Fe){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function ee(Fe,gr){switch(gr){case 5:return Er(Fe);case 2:return un(Fe);case 0:case 1:case 3:return $n(Fe);case 6:return Ii(Fe);case 4:return at(Fe);case 8:return Ji(Fe);case 17:case 16:return _t(Fe)}return!1}function Er(Fe){if(Fe)switch(Fe.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:var gr=Fe,Yr=gr.name.kind===79&&gr.name.originalKeywordKind===135;return!Yr}return!1}function un(Fe){if(Fe)switch(Fe.kind){case 292:case 293:return!0}return!1}function $n(Fe){if(Fe)switch(Fe.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function Ii(Fe){return Fe.kind===302}function at(Fe){if(Fe)switch(Fe.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function Ji(Fe){if(Fe.kind!==257)return!1;var gr=Fe;return gr.initializer===void 0}function _t(Fe){if(Fe.kind!==166)return!1;var gr=Fe;return gr.initializer===void 0}function Ht(Fe){return Rt(Fe),Sc()?!0:(gn(),!1)}function Rt(Fe){switch(Fe){case 0:return we()===88?ti(e.Diagnostics._0_expected,e.tokenToString(93)):ti(e.Diagnostics.Declaration_or_statement_expected);case 1:return ti(e.Diagnostics.Declaration_or_statement_expected);case 2:return ti(e.Diagnostics.case_or_default_expected);case 3:return ti(e.Diagnostics.Statement_expected);case 18:case 4:return ti(e.Diagnostics.Property_or_signature_expected);case 5:return ti(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return ti(e.Diagnostics.Enum_member_expected);case 7:return ti(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(we())?ti(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(we())):ti(e.Diagnostics.Variable_declaration_expected);case 9:return ti(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return ti(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return ti(e.Diagnostics.Argument_expression_expected);case 12:return ti(e.Diagnostics.Property_assignment_expected);case 15:return ti(e.Diagnostics.Expression_or_comma_expected);case 17:return ti(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(we())?ti(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(we())):ti(e.Diagnostics.Parameter_declaration_expected);case 19:return ti(e.Diagnostics.Type_parameter_declaration_expected);case 20:return ti(e.Diagnostics.Type_argument_expected);case 21:return ti(e.Diagnostics.Type_expected);case 22:return ti(e.Diagnostics.Unexpected_token_expected);case 23:return ti(e.Diagnostics.Identifier_expected);case 13:return ti(e.Diagnostics.Identifier_expected);case 14:return ti(e.Diagnostics.Identifier_expected);case 24:return ti(e.Diagnostics.Identifier_or_string_literal_expected);case 25:return e.Debug.fail("ParsingContext.Count used as a context");default:e.Debug.assertNever(Fe)}}function va(Fe,gr,Yr){var mn=Ar;Ar|=1<<Fe;for(var Un=[],ci=Pe(),tt=-1;;){if(bs(Fe,!1)){var mt=d.getStartPos(),bt=Mc(Fe,gr);if(!bt){Ar=mn;return}if(Un.push(bt),tt=d.getTokenPos(),Vi(27))continue;if(tt=-1,pc(Fe))break;ni(27,qe(Fe)),Yr&&we()===26&&!d.hasPrecedingLineBreak()&&gn(),mt===d.getStartPos()&&gn();continue}if(pc(Fe)||Ht(Fe))break}return Ar=mn,pr(Un,ci,void 0,tt>=0)}function qe(Fe){return Fe===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tn(){var Fe=pr([],Pe());return Fe.isMissingList=!0,Fe}function Nr(Fe){return!!Fe.isMissingList}function ga(Fe,gr,Yr,mn){if(ni(Yr)){var Un=va(Fe,gr);return ni(mn),Un}return Tn()}function xa(Fe,gr){for(var Yr=Pe(),mn=Fe?tn(gr):Ve(gr),Un=Pe();Vi(24);){if(we()===29){mn.jsdocDotPos=Un;break}Un=Pe(),mn=Fr(t.createQualifiedName(mn,gs(Fe,!1)),Yr)}return mn}function co(Fe,gr){return Fr(t.createQualifiedName(Fe,gr),Fe.pos)}function gs(Fe,gr){if(d.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(we())){var Yr=Ci(_f);if(Yr)return yi(79,!0,e.Diagnostics.Identifier_expected)}if(we()===80){var mn=Mn();return gr?mn:yi(79,!0,e.Diagnostics.Identifier_expected)}return Fe?tn():Ve()}function gc(Fe){var gr=Pe(),Yr=[],mn;do mn=_o(Fe),Yr.push(mn);while(mn.literal.kind===16);return pr(Yr,gr)}function ws(Fe){var gr=Pe();return Fr(t.createTemplateExpression(mc(Fe),gc(Fe)),gr)}function Lc(){var Fe=Pe();return Fr(t.createTemplateLiteralType(mc(!1),qs()),Fe)}function qs(){var Fe=Pe(),gr=[],Yr;do Yr=ec(),gr.push(Yr);while(Yr.literal.kind===16);return pr(gr,Fe)}function ec(){var Fe=Pe();return Fr(t.createTemplateLiteralTypeSpan(xs(),Rc(!1)),Fe)}function Rc(Fe){return we()===19?(On(Fe),xl()):fo(17,e.Diagnostics._0_expected,e.tokenToString(19))}function _o(Fe){var gr=Pe();return Fr(t.createTemplateSpan(Qe(sc),Rc(Fe)),gr)}function Gs(){return Qu(we())}function mc(Fe){Fe&&Xn();var gr=Qu(we());return e.Debug.assert(gr.kind===15,"Template head has wrong token kind"),gr}function xl(){var Fe=Qu(we());return e.Debug.assert(Fe.kind===16||Fe.kind===17,"Template fragment has wrong token kind"),Fe}function $c(Fe){var gr=Fe===14||Fe===17,Yr=d.getTokenText();return Yr.substring(1,Yr.length-(d.isUnterminated()?0:gr?1:2))}function Qu(Fe){var gr=Pe(),Yr=e.isTemplateLiteralKind(Fe)?t.createTemplateLiteralLikeNode(Fe,d.getTokenValue(),$c(Fe),d.getTokenFlags()&2048):Fe===8?t.createNumericLiteral(d.getTokenValue(),d.getNumericLiteralFlags()):Fe===10?t.createStringLiteral(d.getTokenValue(),void 0,d.hasExtendedUnicodeEscape()):e.isLiteralKind(Fe)?t.createLiteralLikeNode(Fe,d.getTokenValue()):e.Debug.fail();return d.hasExtendedUnicodeEscape()&&(Yr.hasExtendedUnicodeEscape=!0),d.isUnterminated()&&(Yr.isUnterminated=!0),gn(),Fr(Yr,gr)}function Df(){return xa(!0,e.Diagnostics.Type_expected)}function Xu(){if(!d.hasPrecedingLineBreak()&&Ge()===29)return ga(20,xs,29,31)}function zc(){var Fe=Pe();return Fr(t.createTypeReferenceNode(Df(),Xu()),Fe)}function Zu(Fe){switch(Fe.kind){case 180:return e.nodeIsMissing(Fe.typeName);case 181:case 182:{var gr=Fe,Yr=gr.parameters,mn=gr.type;return Nr(Yr)||Zu(mn)}case 193:return Zu(Fe.type);default:return!1}}function Hr(Fe){return gn(),Fr(t.createTypePredicateNode(void 0,Fe,xs()),Fe.pos)}function Gr(){var Fe=Pe();return gn(),Fr(t.createThisTypeNode(),Fe)}function Bn(){var Fe=Pe();return gn(),Fr(t.createJSDocAllType(),Fe)}function ui(){var Fe=Pe();return gn(),Fr(t.createJSDocNonNullableType(U_(),!1),Fe)}function hi(){var Fe=Pe();return gn(),we()===27||we()===19||we()===21||we()===31||we()===63||we()===51?Fr(t.createJSDocUnknownType(),Fe):Fr(t.createJSDocNullableType(xs(),!1),Fe)}function Ei(){var Fe=Pe(),gr=Ir();if(Ci(Bc)){gn();var Yr=fe(4|32),mn=jo(58,!1);return Lr(Fr(t.createJSDocFunctionType(Yr,mn),Fe),gr)}return Fr(t.createTypeReferenceNode(tn(),void 0),Fe)}function st(){var Fe=Pe(),gr;return(we()===108||we()===103)&&(gr=tn(),ni(58)),Fr(t.createParameterDeclaration(void 0,void 0,gr,void 0,Bi(),void 0),Fe)}function Bi(){d.setInJSDocType(!0);var Fe=Pe();if(Vi(142)){var gr=t.createJSDocNamepathType(void 0);e:for(;;)switch(we()){case 19:case 1:case 27:case 5:break e;default:nn()}return d.setInJSDocType(!1),Fr(gr,Fe)}var Yr=Vi(25),mn=Nd();return d.setInJSDocType(!1),Yr&&(mn=Fr(t.createJSDocVariadicType(mn),Fe)),we()===63?(gn(),Fr(t.createJSDocOptionalType(mn),Fe)):mn}function Jt(){var Fe=Pe();ni(112);var gr=xa(!0),Yr=d.hasPrecedingLineBreak()?void 0:_n();return Fr(t.createTypeQueryNode(gr,Yr),Fe)}function Ca(){var Fe=Pe(),gr=Ju(),Yr=Ve(),mn,Un;Vi(94)&&(bf()||!vc()?mn=xs():Un=x_());var ci=Vi(63)?xs():void 0,tt=t.createTypeParameterDeclaration(gr,Yr,mn,ci);return tt.expression=Un,Fr(tt,Fe)}function Yt(){if(we()===29)return ga(19,Ca,29,31)}function Wt(Fe){return we()===25||Yf()||e.isModifierKind(we())||we()===59||bf(!Fe)}function Ga(Fe){var gr=lu(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(gr)===0&&!e.some(Fe)&&e.isModifierKind(we())&&gn(),gr}function $t(){return ot()||we()===22||we()===18}function po(Fe){return Ns(Fe)}function Do(Fe){return Ns(Fe,!1)}function Ns(Fe,gr){gr===void 0&&(gr=!0);var Yr=Pe(),mn=Ir(),Un=Fe?Or(Ml):zr(Ml);if(we()===108){var ci=t.createParameterDeclaration(Un,void 0,Ft(!0),void 0,Yu(),void 0);return Un&&gi(Un[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),Lr(Fr(ci,Yr),mn)}var tt=Mr;Mr=!1;var mt=al(Un,Ju()),bt=Xi(25);if(!(!gr&&!$t())){var Lt=Lr(Fr(t.createParameterDeclaration(mt,bt,Ga(mt),Xi(57),Yu(),El()),Yr),mn);return Mr=tt,Lt}}function jo(Fe,gr){if(ys(Fe,gr))return Ke(Nd)}function ys(Fe,gr){return Fe===38?(ni(Fe),!0):Vi(58)?!0:gr&&we()===38?(ti(e.Diagnostics._0_expected,e.tokenToString(58)),gn(),!0):!1}function Vo(Fe,gr){var Yr=bn(),mn=Ai();on(!!(Fe&1)),Sr(!!(Fe&2));var Un=Fe&32?va(17,st):va(16,function(){return gr?po(mn):Do(mn)});return on(Yr),Sr(mn),Un}function fe(Fe){if(!ni(20))return Tn();var gr=Vo(Fe,!0);return ni(21),gr}function sr(){Vi(27)||To()}function Tr(Fe){var gr=Pe(),Yr=Ir();Fe===177&&ni(103);var mn=Yt(),Un=fe(4),ci=jo(58,!0);sr();var tt=Fe===176?t.createCallSignature(mn,Un,ci):t.createConstructSignature(mn,Un,ci);return Lr(Fr(tt,gr),Yr)}function Fn(){return we()===22&&Ci(Si)}function Si(){if(gn(),we()===25||we()===23)return!0;if(e.isModifierKind(we())){if(gn(),Zi())return!0}else if(Zi())gn();else return!1;return we()===58||we()===27?!0:we()!==57?!1:(gn(),we()===58||we()===27||we()===23)}function gt(Fe,gr,Yr,mn){var Un=ga(16,function(){return po(!1)},22,23),ci=Yu();sr();var tt=t.createIndexSignature(mn,Un,ci);return tt.illegalDecorators=Yr,Lr(Fr(tt,Fe),gr)}function jt(Fe,gr,Yr){var mn=ur(),Un=Xi(57),ci;if(we()===20||we()===29){var tt=Yt(),mt=fe(4),bt=jo(58,!0);ci=t.createMethodSignature(Yr,mn,Un,tt,mt,bt)}else{var bt=Yu();ci=t.createPropertySignature(Yr,mn,Un,bt),we()===63&&(ci.initializer=El())}return sr(),Lr(Fr(ci,Fe),gr)}function fa(){if(we()===20||we()===29||we()===137||we()===151)return!0;for(var Fe=!1;e.isModifierKind(we());)Fe=!0,gn();return we()===22?!0:(Nn()&&(Fe=!0,gn()),Fe?we()===20||we()===29||we()===57||we()===58||we()===27||Ho():!1)}function Ka(){if(we()===20||we()===29)return Tr(176);if(we()===103&&Ci(no))return Tr(177);var Fe=Pe(),gr=Ir(),Yr=Ju();return _i(137)?gu(Fe,gr,void 0,Yr,174,4):_i(151)?gu(Fe,gr,void 0,Yr,175,4):Fn()?gt(Fe,gr,void 0,Yr):jt(Fe,gr,Yr)}function no(){return gn(),we()===20||we()===29}function Eo(){return gn()===24}function Fa(){switch(gn()){case 20:case 29:case 24:return!0}return!1}function Qa(){var Fe=Pe();return Fr(t.createTypeLiteralNode(zo()),Fe)}function zo(){var Fe;return ni(18)?(Fe=Ko(4,Ka),ni(19)):Fe=Tn(),Fe}function Uo(){return gn(),we()===39||we()===40?gn()===146:(we()===146&&gn(),we()===22&&ps()&&gn()===101)}function ms(){var Fe=Pe(),gr=tn();ni(101);var Yr=xs();return Fr(t.createTypeParameterDeclaration(void 0,gr,Yr,void 0),Fe)}function xc(){var Fe=Pe();ni(18);var gr;(we()===146||we()===39||we()===40)&&(gr=so(),gr.kind!==146&&ni(146)),ni(22);var Yr=ms(),mn=Vi(128)?xs():void 0;ni(23);var Un;(we()===57||we()===39||we()===40)&&(Un=so(),Un.kind!==57&&ni(57));var ci=Yu();To();var tt=Ko(4,Ka);return ni(19),Fr(t.createMappedTypeNode(gr,Yr,mn,Un,ci,tt),Fe)}function Os(){var Fe=Pe();if(Vi(25))return Fr(t.createRestTypeNode(xs()),Fe);var gr=xs();if(e.isJSDocNullableType(gr)&&gr.pos===gr.type.pos){var Yr=t.createOptionalTypeNode(gr.type);return e.setTextRange(Yr,gr),Yr.flags=gr.flags,Yr}return gr}function Cl(){return gn()===58||we()===57&&gn()===58}function m_(){return we()===25?e.tokenIsIdentifierOrKeyword(gn())&&Cl():e.tokenIsIdentifierOrKeyword(we())&&Cl()}function pl(){if(Ci(m_)){var Fe=Pe(),gr=Ir(),Yr=Xi(25),mn=tn(),Un=Xi(57);ni(58);var ci=Os(),tt=t.createNamedTupleMember(Yr,mn,Un,ci);return Lr(Fr(tt,Fe),gr)}return Os()}function Zl(){var Fe=Pe();return Fr(t.createTupleTypeNode(ga(21,pl,22,23)),Fe)}function Zr(){var Fe=Pe();ni(20);var gr=xs();return ni(21),Fr(t.createParenthesizedType(gr),Fe)}function Yl(){var Fe;if(we()===126){var gr=Pe();gn();var Yr=Fr(t.createToken(126),gr);Fe=pr([Yr],gr)}return Fe}function xu(){var Fe=Pe(),gr=Ir(),Yr=Yl(),mn=Vi(103),Un=Yt(),ci=fe(4),tt=jo(38,!1),mt=mn?t.createConstructorTypeNode(Yr,Un,ci,tt):t.createFunctionTypeNode(Un,ci,tt);return mn||(mt.modifiers=Yr),Lr(Fr(mt,Fe),gr)}function $l(){var Fe=so();return we()===24?void 0:Fe}function Wf(Fe){var gr=Pe();Fe&&gn();var Yr=we()===110||we()===95||we()===104?so():Qu(we());return Fe&&(Yr=Fr(t.createPrefixUnaryExpression(40,Yr),gr)),Fr(t.createLiteralTypeNode(Yr),gr)}function ef(){return gn(),we()===100}function Tl(){var Fe=Pe(),gr=d.getTokenPos();ni(18);var Yr=d.hasPrecedingLineBreak();ni(130),ni(58);var mn=jd(!0);if(!ni(19)){var Un=e.lastOrUndefined(Cr);Un&&Un.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Un,e.createDetachedDiagnostic(qr,gr,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Fr(t.createImportTypeAssertionContainer(mn,Yr),Fe)}function Ad(){ln|=2097152;var Fe=Pe(),gr=Vi(112);ni(100),ni(20);var Yr=xs(),mn;Vi(27)&&(mn=Tl()),ni(21);var Un=Vi(24)?Df():void 0,ci=Xu();return Fr(t.createImportTypeNode(Yr,mn,Un,ci,gr),Fe)}function go(){return gn(),we()===8||we()===9}function U_(){switch(we()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return Tt($l)||zc();case 66:d.reScanAsteriskEqualsToken();case 41:return Bn();case 60:d.reScanQuestionToken();case 57:return hi();case 98:return Ei();case 53:return ui();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Wf();case 40:return Ci(go)?Wf(!0):zc();case 114:return so();case 108:{var Fe=Gr();return we()===140&&!d.hasPrecedingLineBreak()?Hr(Fe):Fe}case 112:return Ci(ef)?Ad():Jt();case 18:return Ci(Uo)?xc():Qa();case 22:return Zl();case 20:return Zr();case 100:return Ad();case 129:return Ci(_f)?dp():zc();case 15:return Lc();default:return zc()}}function bf(Fe){switch(we()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!Fe;case 40:return!Fe&&Ci(go);case 20:return!Fe&&Ci(z_);default:return Zi()}}function z_(){return gn(),we()===21||Wt(!1)||bf()}function Vf(){for(var Fe=Pe(),gr=U_();!d.hasPrecedingLineBreak();)switch(we()){case 53:gn(),gr=Fr(t.createJSDocNonNullableType(gr,!0),Fe);break;case 57:if(Ci($s))return gr;gn(),gr=Fr(t.createJSDocNullableType(gr,!0),Fe);break;case 22:if(ni(22),bf()){var Yr=xs();ni(23),gr=Fr(t.createIndexedAccessTypeNode(gr,Yr),Fe)}else ni(23),gr=Fr(t.createArrayTypeNode(gr),Fe);break;default:return gr}return gr}function W_(Fe){var gr=Pe();return ni(Fe),Fr(t.createTypeOperatorNode(Fe,V_()),gr)}function v_(){if(Vi(94)){var Fe=tr(xs);if(yn()||we()!==57)return Fe}}function rf(){var Fe=Pe(),gr=Ve(),Yr=Tt(v_),mn=t.createTypeParameterDeclaration(void 0,gr,Yr);return Fr(mn,Fe)}function ou(){var Fe=Pe();return ni(138),Fr(t.createInferTypeNode(rf()),Fe)}function V_(){var Fe=we();switch(Fe){case 141:case 156:case 146:return W_(Fe);case 138:return ou()}return Ke(Vf)}function y_(Fe){if(q_()){var gr=xu(),Yr=void 0;return e.isFunctionTypeNode(gr)?Yr=Fe?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Yr=Fe?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,gi(gr,Yr),gr}}function Qt(Fe,gr,Yr){var mn=Pe(),Un=Fe===51,ci=Vi(Fe),tt=ci&&y_(Un)||gr();if(we()===Fe||ci){for(var mt=[tt];Vi(Fe);)mt.push(y_(Un)||gr());tt=Fr(Yr(pr(mt,mn)),mn)}return tt}function At(){return Qt(50,V_,t.createIntersectionTypeNode)}function Cu(){return Qt(51,At,t.createUnionTypeNode)}function Wc(){return gn(),we()===103}function q_(){return we()===29||we()===20&&Ci(Wp)?!0:we()===103||we()===126&&Ci(Wc)}function Sf(){if(e.isModifierKind(we())&&Ju(),Zi()||we()===108)return gn(),!0;if(we()===22||we()===18){var Fe=Cr.length;return lu(),Fe===Cr.length}return!1}function Wp(){return gn(),!!(we()===21||we()===25||Sf()&&(we()===58||we()===27||we()===57||we()===63||we()===21&&(gn(),we()===38)))}function Nd(){var Fe=Pe(),gr=Zi()&&Tt(is),Yr=xs();return gr?Fr(t.createTypePredicateNode(void 0,gr,Yr),Fe):Yr}function is(){var Fe=Ve();if(we()===140&&!d.hasPrecedingLineBreak())return gn(),Fe}function dp(){var Fe=Pe(),gr=fo(129),Yr=we()===108?Gr():Ve(),mn=Vi(140)?xs():void 0;return Fr(t.createTypePredicateNode(gr,Yr,mn),Fe)}function xs(){if(cr&40960)return Te(40960,xs);if(q_())return xu();var Fe=Pe(),gr=Cu();if(!yn()&&!d.hasPrecedingLineBreak()&&Vi(94)){var Yr=tr(xs);ni(57);var mn=Ke(xs);ni(58);var Un=Ke(xs);return Fr(t.createConditionalTypeNode(gr,Yr,mn,Un),Fe)}return gr}function Yu(){return Vi(58)?xs():void 0}function pp(){switch(we()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Ci(Fa);default:return Zi()}}function vc(){if(pp())return!0;switch(we()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:return!0;default:return S_()?!0:Zi()}}function gp(){return we()!==18&&we()!==98&&we()!==84&&we()!==59&&vc()}function sc(){var Fe=Hn();Fe&&je(!1);for(var gr=Pe(),Yr=Cc(!0),mn;mn=Xi(27);)Yr=qf(Yr,mn,Cc(!0),gr);return Fe&&je(!0),Yr}function El(){return Vi(63)?Cc(!0):void 0}function Cc(Fe){if(mp())return G_();var gr=vp(Fe)||Id(Fe);if(gr)return gr;var Yr=Pe(),mn=nf(0);return mn.kind===79&&we()===38?H_(Yr,mn,Fe,void 0):e.isLeftHandSideExpression(mn)&&e.isAssignmentOperator(Cn())?qf(mn,so(),Cc(Fe),Yr):Mu(mn,Yr,Fe)}function mp(){return we()===125?bn()?!0:Ci(ku):!1}function Pd(){return gn(),!d.hasPrecedingLineBreak()&&Zi()}function G_(){var Fe=Pe();return gn(),!d.hasPrecedingLineBreak()&&(we()===41||vc())?Fr(t.createYieldExpression(Xi(41),Cc(!0)),Fe):Fr(t.createYieldExpression(void 0,void 0),Fe)}function H_(Fe,gr,Yr,mn){e.Debug.assert(we()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var Un=t.createParameterDeclaration(void 0,void 0,gr,void 0,void 0,void 0);Fr(Un,gr.pos);var ci=pr([Un],Un.pos,Un.end),tt=fo(38),mt=D_(!!mn,Yr),bt=t.createArrowFunction(mn,void 0,ci,void 0,tt,mt);return An(Fr(bt,Fe))}function vp(Fe){var gr=kl();if(gr!==0)return gr===1?wd(!0,!0):Tt(function(){return h_(Fe)})}function kl(){return we()===20||we()===29||we()===132?Ci(Al):we()===38?1:0}function Al(){if(we()===132&&(gn(),d.hasPrecedingLineBreak()||we()!==20&&we()!==29))return 0;var Fe=we(),gr=gn();if(Fe===20){if(gr===21){var Yr=gn();switch(Yr){case 38:case 58:case 18:return 1;default:return 0}}if(gr===22||gr===18)return 2;if(gr===25)return 1;if(e.isModifierKind(gr)&&gr!==132&&Ci(ps))return gn()===128?0:1;if(!Zi()&&gr!==108)return 0;switch(gn()){case 58:return 1;case 57:return gn(),we()===58||we()===27||we()===63||we()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(Fe===29),!Zi())return 0;if(Ur===1){var mn=Ci(function(){var Un=gn();if(Un===94){var ci=gn();switch(ci){case 63:case 31:return!1;default:return!0}}else if(Un===27||Un===63)return!0;return!1});return mn?1:0}return 2}}function h_(Fe){var gr=d.getTokenPos();if(!(xe==null?void 0:xe.has(gr))){var Yr=wd(!1,Fe);return Yr||(xe||(xe=new e.Set)).add(gr),Yr}}function Id(Fe){if(we()===132&&Ci(yp)===1){var gr=Pe(),Yr=od(),mn=nf(0);return H_(gr,mn,Fe,Yr)}}function yp(){if(we()===132){if(gn(),d.hasPrecedingLineBreak()||we()===38)return 0;var Fe=nf(0);if(!d.hasPrecedingLineBreak()&&Fe.kind===79&&we()===38)return 1}return 0}function wd(Fe,gr){var Yr=Pe(),mn=Ir(),Un=od(),ci=e.some(Un,e.isAsyncModifier)?2:0,tt=Yt(),mt;if(ni(20)){if(Fe)mt=Vo(ci,Fe);else{var bt=Vo(ci,Fe);if(!bt)return;mt=bt}if(!ni(21)&&!Fe)return}else{if(!Fe)return;mt=Tn()}var Lt=we()===58,Oa=jo(58,!1);if(!(Oa&&!Fe&&Zu(Oa))){for(var bo=Oa;(bo==null?void 0:bo.kind)===193;)bo=bo.type;var mo=bo&&e.isJSDocFunctionType(bo);if(!(!Fe&&we()!==38&&(mo||we()!==18))){var wo=we(),Cs=fo(38),hc=wo===38||wo===18?D_(e.some(Un,e.isAsyncModifier),gr):Ve();if(!(!gr&&Lt&&we()!==58)){var $o=t.createArrowFunction(Un,tt,mt,Oa,Cs,hc);return Lr(Fr($o,Yr),mn)}}}}function D_(Fe,gr){if(we()===18)return cf(Fe?2:0);if(we()!==26&&we()!==98&&we()!==84&&kf()&&!gp())return cf(16|(Fe?2:0));var Yr=Mr;Mr=!1;var mn=Fe?Or(function(){return Cc(gr)}):zr(function(){return Cc(gr)});return Mr=Yr,mn}function Mu(Fe,gr,Yr){var mn=Xi(57);if(!mn)return Fe;var Un;return Fr(t.createConditionalExpression(Fe,mn,Te(j,function(){return Cc(!1)}),Un=fo(58),e.nodeIsPresent(Un)?Cc(Yr):yi(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),gr)}function nf(Fe){var gr=Pe(),Yr=x_();return b_(Fe,Yr,gr)}function K_(Fe){return Fe===101||Fe===162}function b_(Fe,gr,Yr){for(;;){Cn();var mn=e.getBinaryOperatorPrecedence(we()),Un=we()===42?mn>=Fe:mn>Fe;if(!Un||we()===101&&qn())break;if(we()===128||we()===150){if(d.hasPrecedingLineBreak())break;var ci=we();gn(),gr=ci===150?xf(gr,xs()):tf(gr,xs())}else gr=qf(gr,so(),nf(mn),Yr)}return gr}function S_(){return qn()&&we()===101?!1:e.getBinaryOperatorPrecedence(we())>0}function xf(Fe,gr){return Fr(t.createSatisfiesExpression(Fe,gr),Fe.pos)}function qf(Fe,gr,Yr,mn){return Fr(t.createBinaryExpression(Fe,gr,Yr),mn)}function tf(Fe,gr){return Fr(t.createAsExpression(Fe,gr),Fe.pos)}function Q_(){var Fe=Pe();return Fr(t.createPrefixUnaryExpression(we(),jn(Tu)),Fe)}function af(){var Fe=Pe();return Fr(t.createDeleteExpression(jn(Tu)),Fe)}function Tc(){var Fe=Pe();return Fr(t.createTypeOfExpression(jn(Tu)),Fe)}function $u(){var Fe=Pe();return Fr(t.createVoidExpression(jn(Tu)),Fe)}function of(){return we()===133?Ai()?!0:Ci(ku):!1}function X_(){var Fe=Pe();return Fr(t.createAwaitExpression(jn(Tu)),Fe)}function x_(){if(Cf()){var Fe=Pe(),gr=el();return we()===42?b_(e.getBinaryOperatorPrecedence(we()),gr,Fe):gr}var Yr=we(),mn=Tu();if(we()===42){var Fe=e.skipTrivia(dr,mn.pos),Un=mn.end;mn.kind===213?Ni(Fe,Un,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Ni(Fe,Un,e.Diagnostics.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,e.tokenToString(Yr))}return mn}function Tu(){switch(we()){case 39:case 40:case 54:case 53:return Q_();case 89:return af();case 112:return Tc();case 114:return $u();case 29:return wi();case 133:if(of())return X_();default:return el()}}function Cf(){switch(we()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(Ur!==1)return!1;default:return!0}}function el(){if(we()===45||we()===46){var Fe=Pe();return Fr(t.createPrefixUnaryExpression(we(),jn(Lu)),Fe)}else if(Ur===1&&we()===29&&Ci(Es))return Eu(!0);var gr=Lu();if(e.Debug.assert(e.isLeftHandSideExpression(gr)),(we()===45||we()===46)&&!d.hasPrecedingLineBreak()){var Yr=we();return gn(),Fr(t.createPostfixUnaryExpression(gr,Yr),gr.pos)}return gr}function Lu(){var Fe=Pe(),gr;return we()===100?Ci(no)?(ln|=2097152,gr=so()):Ci(Eo)?(gn(),gn(),gr=Fr(t.createMetaProperty(100,tn()),Fe),ln|=4194304):gr=Ru():gr=we()===106?Bu():Ru(),Wo(Fe,gr)}function Ru(){var Fe=Pe(),gr=ts();return ji(Fe,gr,!0)}function Bu(){var Fe=Pe(),gr=so();if(we()===29){var Yr=Pe(),mn=Tt(Vc);mn!==void 0&&(Ni(Yr,Pe(),e.Diagnostics.super_may_not_use_type_arguments),su()||(gr=t.createExpressionWithTypeArguments(gr,mn)))}return we()===20||we()===24||we()===22?gr:(fo(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Fr(t.createPropertyAccessExpression(gr,gs(!0,!0)),Fe))}function Eu(Fe,gr,Yr){var mn=Pe(),Un=Fo(Fe),ci;if(Un.kind===283){var tt=Od(Un),mt=void 0,bt=tt[tt.length-1];if((bt==null?void 0:bt.kind)===281&&!be(bt.openingElement.tagName,bt.closingElement.tagName)&&be(Un.tagName,bt.closingElement.tagName)){var Lt=bt.children.end,Oa=Fr(t.createJsxElement(bt.openingElement,bt.children,Fr(t.createJsxClosingElement(Fr(t.createIdentifier(""),Lt,Lt)),Lt,Lt)),bt.openingElement.pos,Lt);tt=pr(zn(zn([],tt.slice(0,tt.length-1),!0),[Oa],!1),tt.pos,Lt),mt=bt.closingElement}else mt=Md(Un,Fe),be(Un.tagName,mt.tagName)||(Yr&&e.isJsxOpeningElement(Yr)&&be(mt.tagName,Yr.tagName)?gi(Un.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(dr,Un.tagName)):gi(mt.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(dr,Un.tagName)));ci=Fr(t.createJsxElement(Un,tt,mt),mn)}else Un.kind===286?ci=Fr(t.createJsxFragment(Un,Od(Un),ss(Fe)),mn):(e.Debug.assert(Un.kind===282),ci=Un);if(Fe&&we()===29){var bo=typeof gr=="undefined"?ci.pos:gr,mo=Tt(function(){return Eu(!0,bo)});if(mo){var wo=yi(27,!1);return e.setTextRangePosWidth(wo,mo.pos,0),Ni(e.skipTrivia(dr,bo),mo.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Fr(t.createBinaryExpression(ci,wo,mo),mn)}}return ci}function hp(){var Fe=Pe(),gr=t.createJsxText(d.getTokenValue(),pn===12);return pn=d.scanJsxToken(),Fr(gr,Fe)}function Z_(Fe,gr){switch(gr){case 1:if(e.isJsxOpeningFragment(Fe))gi(Fe,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Yr=Fe.tagName,mn=e.skipTrivia(dr,Yr.pos);Ni(mn,Yr.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(dr,Fe.tagName))}return;case 30:case 7:return;case 11:case 12:return hp();case 18:return Fd(!1);case 29:return Eu(!1,void 0,Fe);default:return e.Debug.assertNever(gr)}}function Od(Fe){var gr=[],Yr=Pe(),mn=Ar;for(Ar|=1<<14;;){var Un=Z_(Fe,pn=d.reScanJsxToken());if(!Un||(gr.push(Un),e.isJsxOpeningElement(Fe)&&(Un==null?void 0:Un.kind)===281&&!be(Un.openingElement.tagName,Un.closingElement.tagName)&&be(Fe.tagName,Un.closingElement.tagName)))break}return Ar=mn,pr(gr,Yr)}function Y_(){var Fe=Pe();return Fr(t.createJsxAttributes(Ko(13,C_)),Fe)}function Fo(Fe){var gr=Pe();if(ni(29),we()===31)return Ki(),Fr(t.createJsxOpeningFragment(),gr);var Yr=sf(),mn=(cr&262144)==0?_n():void 0,Un=Y_(),ci;return we()===31?(Ki(),ci=t.createJsxOpeningElement(Yr,mn,Un)):(ni(43),ni(31,void 0,!1)&&(Fe?gn():Ki()),ci=t.createJsxSelfClosingElement(Yr,mn,Un)),Fr(ci,gr)}function sf(){var Fe=Pe();Vn();for(var gr=we()===108?so():tn();Vi(24);)gr=Fr(t.createPropertyAccessExpression(gr,gs(!0,!1)),Fe);return gr}function Fd(Fe){var gr=Pe();if(!!ni(18)){var Yr,mn;return we()!==19&&(Yr=Xi(25),mn=sc()),Fe?ni(19):ni(19,void 0,!1)&&Ki(),Fr(t.createJsxExpression(Yr,mn),gr)}}function C_(){if(we()===18)return Tf();Vn();var Fe=Pe();return Fr(t.createJsxAttribute(tn(),Gf()),Fe)}function Gf(){if(we()===63){if(dt()===10)return Gs();if(we()===18)return Fd(!0);if(we()===29)return Eu(!0);ti(e.Diagnostics.or_JSX_element_expected)}}function Tf(){var Fe=Pe();ni(18),ni(25);var gr=sc();return ni(19),Fr(t.createJsxSpreadAttribute(gr),Fe)}function Md(Fe,gr){var Yr=Pe();ni(30);var mn=sf();return ni(31,void 0,!1)&&(gr||!be(Fe.tagName,mn)?gn():Ki()),Fr(t.createJsxClosingElement(mn),Yr)}function ss(Fe){var gr=Pe();return ni(30),e.tokenIsIdentifierOrKeyword(we())&&gi(sf(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),ni(31,void 0,!1)&&(Fe?gn():Ki()),Fr(t.createJsxJsxClosingFragment(),gr)}function wi(){var Fe=Pe();ni(29);var gr=xs();ni(31);var Yr=Tu();return Fr(t.createTypeAssertion(gr,Yr),Fe)}function Fs(){return gn(),e.tokenIsIdentifierOrKeyword(we())||we()===22||su()}function Kt(){return we()===28&&Ci(Fs)}function Hs(Fe){if(Fe.flags&32)return!0;if(e.isNonNullExpression(Fe)){for(var gr=Fe.expression;e.isNonNullExpression(gr)&&!(gr.flags&32);)gr=gr.expression;if(gr.flags&32){for(;e.isNonNullExpression(Fe);)Fe.flags|=32,Fe=Fe.expression;return!0}}return!1}function $_(Fe,gr,Yr){var mn=gs(!0,!0),Un=Yr||Hs(gr),ci=Un?t.createPropertyAccessChain(gr,Yr,mn):t.createPropertyAccessExpression(gr,mn);if(Un&&e.isPrivateIdentifier(ci.name)&&gi(ci.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(gr)&&gr.typeArguments){var tt=gr.typeArguments.pos-1,mt=e.skipTrivia(dr,gr.typeArguments.end)+1;Ni(tt,mt,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Fr(ci,Fe)}function Ec(Fe,gr,Yr){var mn;if(we()===23)mn=yi(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Un=Qe(sc);e.isStringOrNumericLiteralLike(Un)&&(Un.text=Dt(Un.text)),mn=Un}ni(23);var ci=Yr||Hs(gr)?t.createElementAccessChain(gr,Yr,mn):t.createElementAccessExpression(gr,mn);return Fr(ci,Fe)}function ji(Fe,gr,Yr){for(;;){var mn=void 0,Un=!1;if(Yr&&Kt()?(mn=fo(28),Un=e.tokenIsIdentifierOrKeyword(we())):Un=Vi(24),Un){gr=$_(Fe,gr,mn);continue}if((mn||!Hn())&&Vi(22)){gr=Ec(Fe,gr,mn);continue}if(su()){gr=!mn&&gr.kind===230?cu(Fe,gr.expression,mn,gr.typeArguments):cu(Fe,gr,mn,void 0);continue}if(!mn){if(we()===53&&!d.hasPrecedingLineBreak()){gn(),gr=Fr(t.createNonNullExpression(gr),Fe);continue}var ci=Tt(Vc);if(ci){gr=Fr(t.createExpressionWithTypeArguments(gr,ci),Fe);continue}}return gr}}function su(){return we()===14||we()===15}function cu(Fe,gr,Yr,mn){var Un=t.createTaggedTemplateExpression(gr,mn,we()===14?(Xn(),Gs()):ws(!0));return(Yr||gr.flags&32)&&(Un.flags|=32),Un.questionDotToken=Yr,Fr(Un,Fe)}function Wo(Fe,gr){for(;;){gr=ji(Fe,gr,!0);var Yr=void 0,mn=Xi(28);if(mn&&(Yr=Tt(Vc),su())){gr=cu(Fe,gr,mn,Yr);continue}if(Yr||we()===20){!mn&&gr.kind===230&&(Yr=gr.typeArguments,gr=gr.expression);var Un=kc(),ci=mn||Hs(gr)?t.createCallChain(gr,mn,Yr,Un):t.createCallExpression(gr,Yr,Un);gr=Fr(ci,Fe);continue}if(mn){var tt=yi(79,!1,e.Diagnostics.Identifier_expected);gr=Fr(t.createPropertyAccessChain(gr,mn,tt),Fe)}break}return gr}function kc(){ni(20);var Fe=va(11,rl);return ni(21),Fe}function Vc(){if((cr&262144)==0&&Ge()===29){gn();var Fe=va(20,xs);if(Cn()===31)return gn(),Fe&&ed()?Fe:void 0}}function ed(){switch(we()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return d.hasPrecedingLineBreak()||S_()||!vc()}function ts(){switch(we()){case 8:case 9:case 10:case 14:return Gs();case 108:case 106:case 104:case 110:case 95:return so();case 20:return gl();case 22:return Ms();case 18:return Hf();case 132:if(!Ci(Xf))break;return Kf();case 84:return yc();case 98:return Kf();case 103:return Dp();case 43:case 68:if(Dn()===13)return Gs();break;case 15:return ws(!1);case 80:return Mn()}return Ve(e.Diagnostics.Expression_expected)}function gl(){var Fe=Pe(),gr=Ir();ni(20);var Yr=Qe(sc);return ni(21),Lr(Fr(t.createParenthesizedExpression(Yr),Fe),gr)}function Ef(){var Fe=Pe();ni(25);var gr=Cc(!0);return Fr(t.createSpreadElement(gr),Fe)}function T_(){return we()===25?Ef():we()===27?Fr(t.createOmittedExpression(),Pe()):Cc(!0)}function rl(){return Te(j,T_)}function Ms(){var Fe=Pe(),gr=d.getTokenPos(),Yr=ni(22),mn=d.hasPrecedingLineBreak(),Un=va(15,T_);return Aa(22,23,Yr,gr),Fr(t.createArrayLiteralExpression(Un,mn),Fe)}function ml(){var Fe=Pe(),gr=Ir();if(Xi(25)){var Yr=Cc(!0);return Lr(Fr(t.createSpreadAssignment(Yr),Fe),gr)}var mn=Ml(),Un=Ju();if(_i(137))return gu(Fe,gr,mn,Un,174,0);if(_i(151))return gu(Fe,gr,mn,Un,175,0);var ci=Xi(41),tt=Zi(),mt=ur(),bt=Xi(57),Lt=Xi(53);if(ci||we()===20||we()===29)return tl(Fe,gr,mn,Un,ci,mt,bt,Lt);var Oa,bo=tt&&we()!==58;if(bo){var mo=Xi(63),wo=mo?Qe(function(){return Cc(!0)}):void 0;Oa=t.createShorthandPropertyAssignment(mt,wo),Oa.equalsToken=mo}else{ni(58);var Cs=Qe(function(){return Cc(!0)});Oa=t.createPropertyAssignment(mt,Cs)}return Oa.illegalDecorators=mn,Oa.modifiers=Un,Oa.questionToken=bt,Oa.exclamationToken=Lt,Lr(Fr(Oa,Fe),gr)}function Hf(){var Fe=Pe(),gr=d.getTokenPos(),Yr=ni(18),mn=d.hasPrecedingLineBreak(),Un=va(12,ml,!0);return Aa(18,19,Yr,gr),Fr(t.createObjectLiteralExpression(Un,mn),Fe)}function Kf(){var Fe=Hn();je(!1);var gr=Pe(),Yr=Ir(),mn=Ju();ni(98);var Un=Xi(41),ci=Un?1:0,tt=e.some(mn,e.isAsyncModifier)?2:0,mt=ci&&tt?fn(Nl):ci?hr(Nl):tt?Or(Nl):Nl(),bt=Yt(),Lt=fe(ci|tt),Oa=jo(58,!1),bo=cf(ci|tt);je(Fe);var mo=t.createFunctionExpression(mn,Un,mt,bt,Lt,Oa,bo);return Lr(Fr(mo,gr),Yr)}function Nl(){return ot()?Pa():void 0}function Dp(){var Fe=Pe();if(ni(103),Vi(24)){var gr=tn();return Fr(t.createMetaProperty(103,gr),Fe)}var Yr=Pe(),mn=ji(Yr,ts(),!1),Un;mn.kind===230&&(Un=mn.typeArguments,mn=mn.expression),we()===28&&ti(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(dr,mn));var ci=we()===20?kc():void 0;return Fr(t.createNewExpression(mn,Un,ci),Fe)}function Us(Fe,gr){var Yr=Pe(),mn=Ir(),Un=d.getTokenPos(),ci=ni(18,gr);if(ci||Fe){var tt=d.hasPrecedingLineBreak(),mt=Ko(1,ko);Aa(18,19,ci,Un);var bt=Lr(Fr(t.createBlock(mt,tt),Yr),mn);return we()===63&&(ti(e.Diagnostics.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_the_whole_assignment_in_parentheses),gn()),bt}else{var mt=Tn();return Lr(Fr(t.createBlock(mt,void 0),Yr),mn)}}function cf(Fe,gr){var Yr=bn();on(!!(Fe&1));var mn=Ai();Sr(!!(Fe&2));var Un=Mr;Mr=!1;var ci=Hn();ci&&je(!1);var tt=Us(!!(Fe&16),gr);return ci&&je(!0),Mr=Un,on(Yr),Sr(mn),tt}function eu(){var Fe=Pe(),gr=Ir();return ni(26),Lr(Fr(t.createEmptyStatement(),Fe),gr)}function Ld(){var Fe=Pe(),gr=Ir();ni(99);var Yr=d.getTokenPos(),mn=ni(20),Un=Qe(sc);Aa(20,21,mn,Yr);var ci=ko(),tt=Vi(91)?ko():void 0;return Lr(Fr(t.createIfStatement(Un,ci,tt),Fe),gr)}function uf(){var Fe=Pe(),gr=Ir();ni(90);var Yr=ko();ni(115);var mn=d.getTokenPos(),Un=ni(20),ci=Qe(sc);return Aa(20,21,Un,mn),Vi(26),Lr(Fr(t.createDoStatement(Yr,ci),Fe),gr)}function lf(){var Fe=Pe(),gr=Ir();ni(115);var Yr=d.getTokenPos(),mn=ni(20),Un=Qe(sc);Aa(20,21,mn,Yr);var ci=ko();return Lr(Fr(t.createWhileStatement(Un,ci),Fe),gr)}function rd(){var Fe=Pe(),gr=Ir();ni(97);var Yr=Xi(133);ni(20);var mn;we()!==26&&(we()===113||we()===119||we()===85?mn=id(!0):mn=ue(sc));var Un;if(Yr?ni(162):Vi(162)){var ci=Qe(function(){return Cc(!0)});ni(21),Un=t.createForOfStatement(Yr,mn,ci,ko())}else if(Vi(101)){var ci=Qe(sc);ni(21),Un=t.createForInStatement(mn,ci,ko())}else{ni(26);var tt=we()!==26&&we()!==21?Qe(sc):void 0;ni(26);var mt=we()!==21?Qe(sc):void 0;ni(21),Un=t.createForStatement(mn,tt,mt,ko())}return Lr(Fr(Un,Fe),gr)}function Pl(Fe){var gr=Pe(),Yr=Ir();ni(Fe===249?81:86);var mn=Ho()?void 0:Ve();To();var Un=Fe===249?t.createBreakStatement(mn):t.createContinueStatement(mn);return Lr(Fr(Un,gr),Yr)}function nl(){var Fe=Pe(),gr=Ir();ni(105);var Yr=Ho()?void 0:Qe(sc);return To(),Lr(Fr(t.createReturnStatement(Yr),Fe),gr)}function nd(){var Fe=Pe(),gr=Ir();ni(116);var Yr=d.getTokenPos(),mn=ni(20),Un=Qe(sc);Aa(20,21,mn,Yr);var ci=Ye(33554432,ko);return Lr(Fr(t.createWithStatement(Un,ci),Fe),gr)}function ks(){var Fe=Pe(),gr=Ir();ni(82);var Yr=Qe(sc);ni(58);var mn=Ko(3,ko);return Lr(Fr(t.createCaseClause(Yr,mn),Fe),gr)}function Ac(){var Fe=Pe();ni(88),ni(58);var gr=Ko(3,ko);return Fr(t.createDefaultClause(gr),Fe)}function Ls(){return we()===82?ks():Ac()}function ff(){var Fe=Pe();ni(18);var gr=Ko(2,Ls);return ni(19),Fr(t.createCaseBlock(gr),Fe)}function E_(){var Fe=Pe(),gr=Ir();ni(107),ni(20);var Yr=Qe(sc);ni(21);var mn=ff();return Lr(Fr(t.createSwitchStatement(Yr,mn),Fe),gr)}function Ya(){var Fe=Pe(),gr=Ir();ni(109);var Yr=d.hasPrecedingLineBreak()?void 0:Qe(sc);return Yr===void 0&&(ze++,Yr=Fr(t.createIdentifier(""),Pe())),Zo()||Ua(Yr),Lr(Fr(t.createThrowStatement(Yr),Fe),gr)}function zi(){var Fe=Pe(),gr=Ir();ni(111);var Yr=Us(!1),mn=we()===83?Nc():void 0,Un;return(!mn||we()===96)&&(ni(96,e.Diagnostics.catch_or_finally_expected),Un=Us(!1)),Lr(Fr(t.createTryStatement(Yr,mn,Un),Fe),gr)}function Nc(){var Fe=Pe();ni(83);var gr;Vi(20)?(gr=k_(),ni(21)):gr=void 0;var Yr=Us(!1);return Fr(t.createCatchClause(gr,Yr),Fe)}function Vp(){var Fe=Pe(),gr=Ir();return ni(87),To(),Lr(Fr(t.createDebuggerStatement(),Fe),gr)}function Qf(){var Fe=Pe(),gr=Ir(),Yr,mn=we()===20,Un=Qe(sc);return e.isIdentifier(Un)&&Vi(58)?Yr=t.createLabeledStatement(Un,ko()):(Zo()||Ua(Un),Yr=t.createExpressionStatement(Un),mn&&(gr=!1)),Lr(Fr(Yr,Fe),gr)}function _f(){return gn(),e.tokenIsIdentifierOrKeyword(we())&&!d.hasPrecedingLineBreak()}function vl(){return gn(),we()===84&&!d.hasPrecedingLineBreak()}function Xf(){return gn(),we()===98&&!d.hasPrecedingLineBreak()}function ku(){return gn(),(e.tokenIsIdentifierOrKeyword(we())||we()===8||we()===9||we()===10)&&!d.hasPrecedingLineBreak()}function il(){for(;;)switch(we()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return Pd();case 142:case 143:return Zf();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(gn(),d.hasPrecedingLineBreak())return!1;continue;case 159:return gn(),we()===18||we()===79||we()===93;case 100:return gn(),we()===10||we()===41||we()===18||e.tokenIsIdentifierOrKeyword(we());case 93:var Fe=gn();if(Fe===154&&(Fe=Ci(gn)),Fe===63||Fe===41||Fe===18||Fe===88||Fe===128)return!0;continue;case 124:gn();continue;default:return!1}}function Il(){return Ci(il)}function kf(){switch(we()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Il()||Ci(Fa);case 85:case 93:return Il();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return Il()||!Ci(_f);default:return vc()}}function qc(){return gn(),ot()||we()===18||we()===22}function bp(){return Ci(qc)}function ko(){switch(we()){case 26:return eu();case 18:return Us(!1);case 113:return Ol(Pe(),Ir(),void 0,void 0);case 119:if(bp())return Ol(Pe(),Ir(),void 0,void 0);break;case 98:return Au(Pe(),Ir(),void 0,void 0);case 84:return A_(Pe(),Ir(),void 0,void 0);case 99:return Ld();case 90:return uf();case 115:return lf();case 97:return rd();case 86:return Pl(248);case 81:return Pl(249);case 105:return nl();case 116:return nd();case 107:return E_();case 109:return Ya();case 111:case 83:case 96:return zi();case 87:return Vp();case 59:return Af();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(Il())return Af();break}return Qf()}function Gc(Fe){return Fe.kind===136}function Af(){var Fe=Pe(),gr=Ir(),Yr=Ml(),mn=Ju(),Un=e.some(mn,Gc);if(Un){var ci=uu(Fe);if(ci)return ci;for(var tt=0,mt=mn;tt<mt.length;tt++){var bt=mt[tt];bt.flags|=16777216}return Ye(16777216,function(){return Nf(Fe,gr,Yr,mn)})}else return Nf(Fe,gr,Yr,mn)}function uu(Fe){return Ye(16777216,function(){var gr=Vs(Ar,Fe);if(gr)return oc(gr)})}function Nf(Fe,gr,Yr,mn){switch(we()){case 113:case 119:case 85:return Ol(Fe,gr,Yr,mn);case 98:return Au(Fe,gr,Yr,mn);case 84:return A_(Fe,gr,Yr,mn);case 118:return kt(Fe,gr,Yr,mn);case 154:return Mt(Fe,gr,Yr,mn);case 92:return Wa(Fe,gr,Yr,mn);case 159:case 142:case 143:return Ba(Fe,gr,Yr,mn);case 100:return P_(Fe,gr,Yr,mn);case 93:switch(gn(),we()){case 88:case 63:return Hp(Fe,gr,Yr,mn);case 128:return Nu(Fe,gr,Yr,mn);default:return em(Fe,gr,Yr,mn)}default:if(Yr||mn){var Un=yi(279,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Un,Fe),Un.illegalDecorators=Yr,Un.modifiers=mn,Un}return}}function Zf(){return gn(),!d.hasPrecedingLineBreak()&&(Zi()||we()===10)}function wl(Fe,gr){if(we()!==18){if(Fe&4){sr();return}if(Ho()){To();return}}return cf(Fe,gr)}function Sp(){var Fe=Pe();if(we()===27)return Fr(t.createOmittedExpression(),Fe);var gr=Xi(25),Yr=lu(),mn=El();return Fr(t.createBindingElement(gr,void 0,Yr,mn),Fe)}function Hc(){var Fe=Pe(),gr=Xi(25),Yr=ot(),mn=ur(),Un;Yr&&we()!==58?(Un=mn,mn=void 0):(ni(58),Un=lu());var ci=El();return Fr(t.createBindingElement(gr,mn,Un,ci),Fe)}function Yo(){var Fe=Pe();ni(18);var gr=va(9,Hc);return ni(19),Fr(t.createObjectBindingPattern(gr),Fe)}function Rd(){var Fe=Pe();ni(22);var gr=va(10,Sp);return ni(23),Fr(t.createArrayBindingPattern(gr),Fe)}function Yf(){return we()===18||we()===22||we()===80||ot()}function lu(Fe){return we()===22?Rd():we()===18?Yo():Pa(Fe)}function pu(){return k_(!0)}function k_(Fe){var gr=Pe(),Yr=Ir(),mn=lu(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Un;Fe&&mn.kind===79&&we()===53&&!d.hasPrecedingLineBreak()&&(Un=so());var ci=Yu(),tt=K_(we())?void 0:El(),mt=t.createVariableDeclaration(mn,Un,ci,tt);return Lr(Fr(mt,gr),Yr)}function id(Fe){var gr=Pe(),Yr=0;switch(we()){case 113:break;case 119:Yr|=1;break;case 85:Yr|=2;break;default:e.Debug.fail()}gn();var mn;if(we()===162&&Ci(Pf))mn=Tn();else{var Un=qn();jr(Fe),mn=va(8,Fe?k_:pu),jr(Un)}return Fr(t.createVariableDeclarationList(mn,Yr),gr)}function Pf(){return ps()&&gn()===21}function Ol(Fe,gr,Yr,mn){var Un=id(!1);To();var ci=t.createVariableStatement(mn,Un);return ci.illegalDecorators=Yr,Lr(Fr(ci,Fe),gr)}function Au(Fe,gr,Yr,mn){var Un=Ai(),ci=e.modifiersToFlags(mn);ni(98);var tt=Xi(41),mt=ci&1024?Nl():Pa(),bt=tt?1:0,Lt=ci&512?2:0,Oa=Yt();ci&1&&Sr(!0);var bo=fe(bt|Lt),mo=jo(58,!1),wo=wl(bt|Lt,e.Diagnostics.or_expected);Sr(Un);var Cs=t.createFunctionDeclaration(mn,tt,mt,Oa,bo,mo,wo);return Cs.illegalDecorators=Yr,Lr(Fr(Cs,Fe),gr)}function xp(){if(we()===135)return ni(135);if(we()===10&&Ci(gn)===20)return Tt(function(){var Fe=Gs();return Fe.text==="constructor"?Fe:void 0})}function Fl(Fe,gr,Yr,mn){return Tt(function(){if(xp()){var Un=Yt(),ci=fe(0),tt=jo(58,!1),mt=wl(0,e.Diagnostics.or_expected),bt=t.createConstructorDeclaration(mn,ci,mt);return bt.illegalDecorators=Yr,bt.typeParameters=Un,bt.type=tt,Lr(Fr(bt,Fe),gr)}})}function tl(Fe,gr,Yr,mn,Un,ci,tt,mt,bt){var Lt=Un?1:0,Oa=e.some(mn,e.isAsyncModifier)?2:0,bo=Yt(),mo=fe(Lt|Oa),wo=jo(58,!1),Cs=wl(Lt|Oa,bt),hc=t.createMethodDeclaration(al(Yr,mn),Un,ci,tt,bo,mo,wo,Cs);return hc.exclamationToken=mt,Lr(Fr(hc,Fe),gr)}function $f(Fe,gr,Yr,mn,Un,ci){var tt=!ci&&!d.hasPrecedingLineBreak()?Xi(53):void 0,mt=Yu(),bt=Te(8192|32768|4096,El);Ea(Un,mt,bt);var Lt=t.createPropertyDeclaration(al(Yr,mn),Un,ci||tt,mt,bt);return Lr(Fr(Lt,Fe),gr)}function Cp(Fe,gr,Yr,mn){var Un=Xi(41),ci=ur(),tt=Xi(57);return Un||we()===20||we()===29?tl(Fe,gr,Yr,mn,Un,ci,tt,void 0,e.Diagnostics.or_expected):$f(Fe,gr,Yr,mn,ci,tt)}function gu(Fe,gr,Yr,mn,Un,ci){var tt=ur(),mt=Yt(),bt=fe(0),Lt=jo(58,!1),Oa=wl(ci),bo=Un===174?t.createGetAccessorDeclaration(al(Yr,mn),tt,bt,Lt,Oa):t.createSetAccessorDeclaration(al(Yr,mn),tt,bt,Oa);return bo.typeParameters=mt,e.isSetAccessorDeclaration(bo)&&(bo.type=Lt),Lr(Fr(bo,Fe),gr)}function td(){var Fe;if(we()===59)return!0;for(;e.isModifierKind(we());){if(Fe=we(),e.isClassMemberModifier(Fe))return!0;gn()}if(we()===41||(Nn()&&(Fe=we(),gn()),we()===22))return!0;if(Fe!==void 0){if(!e.isKeyword(Fe)||Fe===151||Fe===137)return!0;switch(we()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Ho()}}return!1}function qp(Fe,gr,Yr,mn){fo(124);var Un=Xt(),ci=Lr(Fr(t.createClassStaticBlockDeclaration(Un),Fe),gr);return ci.illegalDecorators=Yr,ci.modifiers=mn,ci}function Xt(){var Fe=bn(),gr=Ai();on(!1),Sr(!0);var Yr=Us(!1);return on(Fe),Sr(gr),Yr}function ru(){if(Ai()&&we()===133){var Fe=Pe(),gr=Ve(e.Diagnostics.Expression_expected);gn();var Yr=ji(Fe,gr,!0);return Wo(Fe,Yr)}return Lu()}function Oi(){var Fe=Pe();if(!!Vi(59)){var gr=_r(ru);return Fr(t.createDecorator(gr),Fe)}}function Ml(){for(var Fe=Pe(),gr,Yr;Yr=Oi();)gr=e.append(gr,Yr);return gr&&pr(gr,Fe)}function ad(Fe,gr,Yr){var mn=Pe(),Un=we();if(we()===85&&Fe){if(!Tt(di))return}else{if(gr&&we()===124&&Ci(mu))return;if(Yr&&we()===124)return;if(!la())return}return Fr(t.createToken(Un),mn)}function al(Fe,gr){if(!Fe)return gr;if(!gr)return Fe;var Yr=t.createNodeArray(e.concatenate(Fe,gr));return e.setTextRangePosEnd(Yr,Fe.pos,gr.end),Yr}function Ju(Fe,gr){for(var Yr=Pe(),mn,Un,ci=!1;Un=ad(Fe,gr,ci);)Un.kind===124&&(ci=!0),mn=e.append(mn,Un);return mn&&pr(mn,Yr)}function od(){var Fe;if(we()===132){var gr=Pe();gn();var Yr=Fr(t.createToken(132),gr);Fe=pr([Yr],gr)}return Fe}function Bd(){var Fe=Pe();if(we()===26)return gn(),Fr(t.createSemicolonClassElement(),Fe);var gr=Ir(),Yr=Ml(),mn=Ju(!0,!0);if(we()===124&&Ci(mu))return qp(Fe,gr,Yr,mn);if(_i(137))return gu(Fe,gr,Yr,mn,174,0);if(_i(151))return gu(Fe,gr,Yr,mn,175,0);if(we()===135||we()===10){var Un=Fl(Fe,gr,Yr,mn);if(Un)return Un}if(Fn())return gt(Fe,gr,Yr,mn);if(e.tokenIsIdentifierOrKeyword(we())||we()===10||we()===8||we()===41||we()===22){var ci=e.some(mn,Gc);if(ci){for(var tt=0,mt=mn;tt<mt.length;tt++){var bt=mt[tt];bt.flags|=16777216}return Ye(16777216,function(){return Cp(Fe,gr,Yr,mn)})}else return Cp(Fe,gr,Yr,mn)}if(Yr||mn){var Lt=yi(79,!0,e.Diagnostics.Declaration_expected);return $f(Fe,gr,Yr,mn,Lt,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function yc(){return e_(Pe(),Ir(),void 0,void 0,228)}function A_(Fe,gr,Yr,mn){return e_(Fe,gr,Yr,mn,260)}function e_(Fe,gr,Yr,mn,Un){var ci=Ai();ni(84);var tt=N_(),mt=Yt();e.some(mn,e.isExportModifier)&&Sr(!0);var bt=r_(),Lt;ni(18)?(Lt=$i(),ni(19)):Lt=Tn(),Sr(ci);var Oa=Un===260?t.createClassDeclaration(al(Yr,mn),tt,mt,bt,Lt):t.createClassExpression(al(Yr,mn),tt,mt,bt,Lt);return Lr(Fr(Oa,Fe),gr)}function N_(){return ot()&&!Tp()?Ft(ot()):void 0}function Tp(){return we()===117&&Ci(ac)}function r_(){if(Zn())return Ko(22,v)}function v(){var Fe=Pe(),gr=we();e.Debug.assert(gr===94||gr===117),gn();var Yr=va(7,Ze);return Fr(t.createHeritageClause(gr,Yr),Fe)}function Ze(){var Fe=Pe(),gr=Lu();if(gr.kind===230)return gr;var Yr=_n();return Fr(t.createExpressionWithTypeArguments(gr,Yr),Fe)}function _n(){return we()===29?ga(20,xs,29,31):void 0}function Zn(){return we()===94||we()===117}function $i(){return Ko(5,Bd)}function kt(Fe,gr,Yr,mn){ni(118);var Un=Ve(),ci=Yt(),tt=r_(),mt=zo(),bt=t.createInterfaceDeclaration(mn,Un,ci,tt,mt);return bt.illegalDecorators=Yr,Lr(Fr(bt,Fe),gr)}function Mt(Fe,gr,Yr,mn){ni(154);var Un=Ve(),ci=Yt();ni(63);var tt=we()===139&&Tt($l)||xs();To();var mt=t.createTypeAliasDeclaration(mn,Un,ci,tt);return mt.illegalDecorators=Yr,Lr(Fr(mt,Fe),gr)}function wt(){var Fe=Pe(),gr=Ir(),Yr=ur(),mn=Qe(El);return Lr(Fr(t.createEnumMember(Yr,mn),Fe),gr)}function Wa(Fe,gr,Yr,mn){ni(92);var Un=Ve(),ci;ni(18)?(ci=Vr(function(){return va(6,wt)}),ni(19)):ci=Tn();var tt=t.createEnumDeclaration(mn,Un,ci);return tt.illegalDecorators=Yr,Lr(Fr(tt,Fe),gr)}function Lo(){var Fe=Pe(),gr;return ni(18)?(gr=Ko(1,ko),ni(19)):gr=Tn(),Fr(t.createModuleBlock(gr),Fe)}function Na(Fe,gr,Yr,mn,Un){var ci=Un&16,tt=Ve(),mt=Vi(24)?Na(Pe(),!1,void 0,void 0,4|ci):Lo(),bt=t.createModuleDeclaration(mn,tt,mt,Un);return bt.illegalDecorators=Yr,Lr(Fr(bt,Fe),gr)}function Pc(Fe,gr,Yr,mn){var Un=0,ci;we()===159?(ci=Ve(),Un|=1024):(ci=Gs(),ci.text=Dt(ci.text));var tt;we()===18?tt=Lo():To();var mt=t.createModuleDeclaration(mn,ci,tt,Un);return mt.illegalDecorators=Yr,Lr(Fr(mt,Fe),gr)}function Ba(Fe,gr,Yr,mn){var Un=0;if(we()===159)return Pc(Fe,gr,Yr,mn);if(Vi(143))Un|=16;else if(ni(142),we()===10)return Pc(Fe,gr,Yr,mn);return Na(Fe,gr,Yr,mn,Un)}function ca(){return we()===147&&Ci(Bc)}function Bc(){return gn()===20}function mu(){return gn()===18}function If(){return gn()===43}function Nu(Fe,gr,Yr,mn){ni(128),ni(143);var Un=Ve();To();var ci=t.createNamespaceExportDeclaration(Un);return ci.illegalDecorators=Yr,ci.modifiers=mn,Lr(Fr(ci,Fe),gr)}function P_(Fe,gr,Yr,mn){ni(100);var Un=d.getStartPos(),ci;Zi()&&(ci=Ve());var tt=!1;if(we()!==158&&(ci==null?void 0:ci.escapedText)==="type"&&(Zi()||Ll())&&(tt=!0,ci=Zi()?Ve():void 0),ci&&!sd())return Ep(Fe,gr,Yr,mn,ci,tt);var mt;(ci||we()===41||we()===18)&&(mt=Gp(ci,Un,tt),ni(158));var bt=ud(),Lt;we()===130&&!d.hasPrecedingLineBreak()&&(Lt=jd()),To();var Oa=t.createImportDeclaration(mn,mt,bt,Lt);return Oa.illegalDecorators=Yr,Lr(Fr(Oa,Fe),gr)}function Jd(){var Fe=Pe(),gr=e.tokenIsIdentifierOrKeyword(we())?tn():Qu(10);ni(58);var Yr=Cc(!0);return Fr(t.createAssertEntry(gr,Yr),Fe)}function jd(Fe){var gr=Pe();Fe||ni(130);var Yr=d.getTokenPos();if(ni(18)){var mn=d.hasPrecedingLineBreak(),Un=va(24,Jd,!0);if(!ni(19)){var ci=e.lastOrUndefined(Cr);ci&&ci.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(ci,e.createDetachedDiagnostic(qr,Yr,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Fr(t.createAssertClause(Un,mn),gr)}else{var Un=pr([],Pe(),void 0,!1);return Fr(t.createAssertClause(Un,!1),gr)}}function Ll(){return we()===41||we()===18}function sd(){return we()===27||we()===158}function Ep(Fe,gr,Yr,mn,Un,ci){ni(63);var tt=cd();To();var mt=t.createImportEqualsDeclaration(mn,ci,Un,tt);mt.illegalDecorators=Yr;var bt=Lr(Fr(mt,Fe),gr);return bt}function Gp(Fe,gr,Yr){var mn;return(!Fe||Vi(27))&&(mn=we()===41?fu():yl(272)),Fr(t.createImportClause(Yr,Fe,mn),gr)}function cd(){return ca()?$g():xa(!1)}function $g(){var Fe=Pe();ni(147),ni(20);var gr=ud();return ni(21),Fr(t.createExternalModuleReference(gr),Fe)}function ud(){if(we()===10){var Fe=Gs();return Fe.text=Dt(Fe.text),Fe}else return sc()}function fu(){var Fe=Pe();ni(41),ni(128);var gr=Ve();return Fr(t.createNamespaceImport(gr),Fe)}function yl(Fe){var gr=Pe(),Yr=Fe===272?t.createNamedImports(ga(23,n_,18,19)):t.createNamedExports(ga(23,pg,18,19));return Fr(Yr,gr)}function pg(){var Fe=Ir();return Lr(kp(278),Fe)}function n_(){return kp(273)}function kp(Fe){var gr=Pe(),Yr=e.isKeyword(we())&&!Zi(),mn=d.getTokenPos(),Un=d.getTextPos(),ci=!1,tt,mt=!0,bt=tn();if(bt.escapedText==="type")if(we()===128){var Lt=tn();if(we()===128){var Oa=tn();e.tokenIsIdentifierOrKeyword(we())?(ci=!0,tt=Lt,bt=mo(),mt=!1):(tt=bt,bt=Oa,mt=!1)}else e.tokenIsIdentifierOrKeyword(we())?(tt=bt,mt=!1,bt=mo()):(ci=!0,bt=Lt)}else e.tokenIsIdentifierOrKeyword(we())&&(ci=!0,bt=mo());mt&&we()===128&&(tt=bt,ni(128),bt=mo()),Fe===273&&Yr&&Ni(mn,Un,e.Diagnostics.Identifier_expected);var bo=Fe===273?t.createImportSpecifier(ci,tt,bt):t.createExportSpecifier(ci,tt,bt);return Fr(bo,gr);function mo(){return Yr=e.isKeyword(we())&&!Zi(),mn=d.getTokenPos(),Un=d.getTextPos(),tn()}}function gg(Fe){return Fr(t.createNamespaceExport(tn()),Fe)}function em(Fe,gr,Yr,mn){var Un=Ai();Sr(!0);var ci,tt,mt,bt=Vi(154),Lt=Pe();Vi(41)?(Vi(128)&&(ci=gg(Lt)),ni(158),tt=ud()):(ci=yl(276),(we()===158||we()===10&&!d.hasPrecedingLineBreak())&&(ni(158),tt=ud())),tt&&we()===130&&!d.hasPrecedingLineBreak()&&(mt=jd()),To(),Sr(Un);var Oa=t.createExportDeclaration(mn,bt,ci,tt,mt);return Oa.illegalDecorators=Yr,Lr(Fr(Oa,Fe),gr)}function Hp(Fe,gr,Yr,mn){var Un=Ai();Sr(!0);var ci;Vi(63)?ci=!0:ni(88);var tt=Cc(!0);To(),Sr(Un);var mt=t.createExportAssignment(mn,ci,tt);return mt.illegalDecorators=Yr,Lr(Fr(mt,Fe),gr)}var ld;(function(Fe){Fe[Fe.SourceElements=0]="SourceElements",Fe[Fe.BlockStatements=1]="BlockStatements",Fe[Fe.SwitchClauses=2]="SwitchClauses",Fe[Fe.SwitchClauseStatements=3]="SwitchClauseStatements",Fe[Fe.TypeMembers=4]="TypeMembers",Fe[Fe.ClassMembers=5]="ClassMembers",Fe[Fe.EnumMembers=6]="EnumMembers",Fe[Fe.HeritageClauseElement=7]="HeritageClauseElement",Fe[Fe.VariableDeclarations=8]="VariableDeclarations",Fe[Fe.ObjectBindingElements=9]="ObjectBindingElements",Fe[Fe.ArrayBindingElements=10]="ArrayBindingElements",Fe[Fe.ArgumentExpressions=11]="ArgumentExpressions",Fe[Fe.ObjectLiteralMembers=12]="ObjectLiteralMembers",Fe[Fe.JsxAttributes=13]="JsxAttributes",Fe[Fe.JsxChildren=14]="JsxChildren",Fe[Fe.ArrayLiteralMembers=15]="ArrayLiteralMembers",Fe[Fe.Parameters=16]="Parameters",Fe[Fe.JSDocParameters=17]="JSDocParameters",Fe[Fe.RestProperties=18]="RestProperties",Fe[Fe.TypeParameters=19]="TypeParameters",Fe[Fe.TypeArguments=20]="TypeArguments",Fe[Fe.TupleElementTypes=21]="TupleElementTypes",Fe[Fe.HeritageClauses=22]="HeritageClauses",Fe[Fe.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Fe[Fe.AssertEntries=24]="AssertEntries",Fe[Fe.Count=25]="Count"})(ld||(ld={}));var fd;(function(Fe){Fe[Fe.False=0]="False",Fe[Fe.True=1]="True",Fe[Fe.Unknown=2]="Unknown"})(fd||(fd={}));var Kp;(function(Fe){function gr(Lt,Oa,bo){Ie("file.js",Lt,99,void 0,1),d.setText(Lt,Oa,bo),pn=d.scan();var mo=Yr(),wo=Dr("file.js",99,1,!1,[],t.createToken(1),0,e.noop),Cs=e.attachFileToDiagnostics(Cr,wo);return rn&&(wo.jsDocDiagnostics=e.attachFileToDiagnostics(rn,wo)),We(),mo?{jsDocTypeExpression:mo,diagnostics:Cs}:void 0}Fe.parseJSDocTypeExpressionForTests=gr;function Yr(Lt){var Oa=Pe(),bo=(Lt?Vi:ni)(18),mo=Ye(8388608,Bi);(!Lt||bo)&&ho(19);var wo=t.createJSDocTypeExpression(mo);return ai(wo),Fr(wo,Oa)}Fe.parseJSDocTypeExpression=Yr;function mn(){for(var Lt=Pe(),Oa=Vi(18),bo=Pe(),mo=xa(!1);we()===80;)cn(),nn(),mo=Fr(t.createJSDocMemberName(mo,Ve()),bo);Oa&&ho(19);var wo=t.createJSDocNameReference(mo);return ai(wo),Fr(wo,Lt)}Fe.parseJSDocNameReference=mn;function Un(Lt,Oa,bo){Ie("",Lt,99,void 0,1);var mo=Ye(8388608,function(){return bt(Oa,bo)}),wo={languageVariant:0,text:Lt},Cs=e.attachFileToDiagnostics(Cr,wo);return We(),mo?{jsDoc:mo,diagnostics:Cs}:void 0}Fe.parseIsolatedJSDocComment=Un;function ci(Lt,Oa,bo){var mo=pn,wo=Cr.length,Cs=Rr,hc=Ye(8388608,function(){return bt(Oa,bo)});return e.setParent(hc,Lt),cr&262144&&(rn||(rn=[]),rn.push.apply(rn,Cr)),pn=mo,Cr.length=wo,Rr=Cs,hc}Fe.parseJSDocComment=ci;var tt;(function(Lt){Lt[Lt.BeginningOfLine=0]="BeginningOfLine",Lt[Lt.SawAsterisk=1]="SawAsterisk",Lt[Lt.SavingComments=2]="SavingComments",Lt[Lt.SavingBackticks=3]="SavingBackticks"})(tt||(tt={}));var mt;(function(Lt){Lt[Lt.Property=1]="Property",Lt[Lt.Parameter=2]="Parameter",Lt[Lt.CallbackParameter=4]="CallbackParameter"})(mt||(mt={}));function bt(Lt,Oa){Lt===void 0&&(Lt=0);var bo=dr,mo=Oa===void 0?bo.length:Lt+Oa;if(Oa=mo-Lt,e.Debug.assert(Lt>=0),e.Debug.assert(Lt<=mo),e.Debug.assert(mo<=bo.length),!le(bo,Lt))return;var wo,Cs,hc,$o,vu,Kc=[],Ks=[];return d.scanRange(Lt+3,Oa-5,function(){var Pi=1,Et,It=Lt-(bo.lastIndexOf(`
  237. `,Lt)+1)+4;function nt(iu){Et||(Et=It),Kc.push(iu),It+=iu.length}for(nn();t_(5););t_(4)&&(Pi=0,It=0);e:for(;;){switch(we()){case 59:Pi===0||Pi===1?(ol(Kc),vu||(vu=Pe()),Li(R(It)),Pi=0,Et=void 0):nt(d.getTokenText());break;case 4:Kc.push(d.getTokenText()),Pi=0,It=0;break;case 41:var ma=d.getTokenText();Pi===1||Pi===2?(Pi=2,nt(ma)):(Pi=1,It+=ma.length);break;case 5:var $a=d.getTokenText();Pi===2?Kc.push($a):Et!==void 0&&It+$a.length>Et&&Kc.push($a.slice(Et-It)),It+=$a.length;break;case 1:break e;case 18:Pi=2;var cs=d.getStartPos(),wc=d.getTextPos()-1,Oc=oi(wc);if(Oc){$o||Ic(Kc),Ks.push(Fr(t.createJSDocText(Kc.join("")),$o!=null?$o:Lt,cs)),Ks.push(Oc),Kc=[],$o=d.getTextPos();break}default:Pi=2,nt(d.getTokenText());break}nn()}ol(Kc),Ks.length&&Kc.length&&Ks.push(Fr(t.createJSDocText(Kc.join("")),$o!=null?$o:Lt,vu)),Ks.length&&wo&&e.Debug.assertIsDefined(vu,"having parsed tags implies that the end of the comment span should be set");var Uu=wo&&pr(wo,Cs,hc);return Fr(t.createJSDocComment(Ks.length?pr(Ks,Lt,vu):Kc.length?Kc.join(""):void 0,Uu),Lt,mo)});function Ic(Pi){for(;Pi.length&&(Pi[0]===`
  238. `||Pi[0]==="\r");)Pi.shift()}function ol(Pi){for(;Pi.length&&Pi[Pi.length-1].trim()==="";)Pi.pop()}function i_(){for(;;){if(nn(),we()===1)return!0;if(!(we()===5||we()===4))return!1}}function Js(){if(!((we()===5||we()===4)&&Ci(i_)))for(;we()===5||we()===4;)nn()}function _(){if((we()===5||we()===4)&&Ci(i_))return"";for(var Pi=d.hasPrecedingLineBreak(),Et=!1,It="";Pi&&we()===41||we()===5||we()===4;)It+=d.getTokenText(),we()===4?(Pi=!0,Et=!0,It=""):we()===41&&(Pi=!1),nn();return Et?It:""}function R(Pi){e.Debug.assert(we()===59);var Et=d.getTokenPos();nn();var It=I_(void 0),nt=_(),ma;switch(It.escapedText){case"author":ma=Ev(Et,It,Pi,nt);break;case"implements":ma=yg(Et,It,Pi,nt);break;case"augments":case"extends":ma=hg(Et,It,Pi,nt);break;case"class":case"constructor":ma=cc(Et,t.createJSDocClassTag,It,Pi,nt);break;case"public":ma=cc(Et,t.createJSDocPublicTag,It,Pi,nt);break;case"private":ma=cc(Et,t.createJSDocPrivateTag,It,Pi,nt);break;case"protected":ma=cc(Et,t.createJSDocProtectedTag,It,Pi,nt);break;case"readonly":ma=cc(Et,t.createJSDocReadonlyTag,It,Pi,nt);break;case"override":ma=cc(Et,t.createJSDocOverrideTag,It,Pi,nt);break;case"deprecated":xn=!0,ma=cc(Et,t.createJSDocDeprecatedTag,It,Pi,nt);break;case"this":ma=kv(Et,It,Pi,nt);break;case"enum":ma=im(Et,It,Pi,nt);break;case"arg":case"argument":case"param":return Of(Et,It,2,Pi);case"return":case"returns":ma=_d(Et,It,Pi,nt);break;case"template":ma=am(Et,It,Pi,nt);break;case"type":ma=rm(Et,It,Pi,nt);break;case"typedef":ma=nu(Et,It,Pi,nt);break;case"callback":ma=Nv(Et,It,Pi,nt);break;case"see":ma=df(Et,It,Pi,nt);break;default:ma=Rs(Et,It,Pi,nt);break}return ma}function he(Pi,Et,It,nt){return nt||(It+=Et-Pi),nr(It,nt.slice(It))}function nr(Pi,Et){var It=Pe(),nt=[],ma=[],$a,cs=0,wc=!0,Oc;function Uu(dd){Oc||(Oc=Pi),nt.push(dd),Pi+=dd.length}Et!==void 0&&(Et!==""&&Uu(Et),cs=1);var iu=we();e:for(;;){switch(iu){case 4:cs=0,nt.push(d.getTokenText()),Pi=0;break;case 59:if(cs===3||cs===2&&(!wc||Ci($r))){nt.push(d.getTokenText());break}d.setTextPos(d.getTextPos()-1);case 1:break e;case 5:if(cs===2||cs===3)Uu(d.getTokenText());else{var Rl=d.getTokenText();Oc!==void 0&&Pi+Rl.length>Oc&&nt.push(Rl.slice(Oc-Pi)),Pi+=Rl.length}break;case 18:cs=2;var Ud=d.getStartPos(),Np=d.getTextPos()-1,hu=oi(Np);hu?(ma.push(Fr(t.createJSDocText(nt.join("")),$a!=null?$a:It,Ud)),ma.push(hu),nt=[],$a=d.getTextPos()):Uu(d.getTokenText());break;case 61:cs===3?cs=2:cs=3,Uu(d.getTokenText());break;case 41:if(cs===0){cs=1,Pi+=1;break}default:cs!==3&&(cs=2),Uu(d.getTokenText());break}wc=we()===5,iu=nn()}if(Ic(nt),ol(nt),ma.length)return nt.length&&ma.push(Fr(t.createJSDocText(nt.join("")),$a!=null?$a:It)),pr(ma,It,d.getTextPos());if(nt.length)return nt.join("")}function $r(){var Pi=nn();return Pi===5||Pi===4}function oi(Pi){var Et=Tt(ft);if(!!Et){nn(),Js();var It=Pe(),nt=e.tokenIsIdentifierOrKeyword(we())?xa(!0):void 0;if(nt)for(;we()===80;)cn(),nn(),nt=Fr(t.createJSDocMemberName(nt,Ve()),It);for(var ma=[];we()!==19&&we()!==4&&we()!==1;)ma.push(d.getTokenText()),nn();var $a=Et==="link"?t.createJSDocLink:Et==="linkcode"?t.createJSDocLinkCode:t.createJSDocLinkPlain;return Fr($a(nt,ma.join("")),Pi,d.getTextPos())}}function ft(){if(_(),we()===18&&nn()===59&&e.tokenIsIdentifierOrKeyword(nn())){var Pi=d.getTokenValue();if(Ja(Pi))return Pi}}function Ja(Pi){return Pi==="link"||Pi==="linkcode"||Pi==="linkplain"}function Rs(Pi,Et,It,nt){return Fr(t.createJSDocUnknownTag(Et,he(Pi,Pe(),It,nt)),Pi)}function Li(Pi){!Pi||(wo?wo.push(Pi):(wo=[Pi],Cs=Pi.pos),hc=Pi.end)}function ju(){return _(),we()===18?Yr():void 0}function yu(){var Pi=t_(22);Pi&&Js();var Et=t_(61),It=bg();return Et&&As(61),Pi&&(Js(),Xi(63)&&sc(),ni(23)),{name:It,isBracketed:Pi}}function wf(Pi){switch(Pi.kind){case 149:return!0;case 185:return wf(Pi.elementType);default:return e.isTypeReferenceNode(Pi)&&e.isIdentifier(Pi.typeName)&&Pi.typeName.escapedText==="Object"&&!Pi.typeArguments}}function Of(Pi,Et,It,nt){var ma=ju(),$a=!ma;_();var cs=yu(),wc=cs.name,Oc=cs.isBracketed,Uu=_();$a&&!Ci(ft)&&(ma=ju());var iu=he(Pi,Pe(),nt,Uu),Rl=It!==4&&mg(ma,wc,It,nt);Rl&&(ma=Rl,$a=!0);var Ud=It===1?t.createJSDocPropertyTag(Et,wc,Oc,ma,$a,iu):t.createJSDocParameterTag(Et,wc,Oc,ma,$a,iu);return Fr(Ud,Pi)}function mg(Pi,Et,It,nt){if(Pi&&wf(Pi.type)){for(var ma=Pe(),$a=void 0,cs=void 0;$a=Tt(function(){return Dg(It,nt,Et)});)($a.kind===343||$a.kind===350)&&(cs=e.append(cs,$a));if(cs){var wc=Fr(t.createJSDocTypeLiteral(cs,Pi.type.kind===185),ma);return Fr(t.createJSDocTypeExpression(wc),ma)}}}function _d(Pi,Et,It,nt){e.some(wo,e.isJSDocReturnTag)&&Ni(Et.pos,d.getTokenPos(),e.Diagnostics._0_tag_already_specified,Et.escapedText);var ma=ju();return Fr(t.createJSDocReturnTag(Et,ma,he(Pi,Pe(),It,nt)),Pi)}function rm(Pi,Et,It,nt){e.some(wo,e.isJSDocTypeTag)&&Ni(Et.pos,d.getTokenPos(),e.Diagnostics._0_tag_already_specified,Et.escapedText);var ma=Yr(!0),$a=It!==void 0&&nt!==void 0?he(Pi,Pe(),It,nt):void 0;return Fr(t.createJSDocTypeTag(Et,ma,$a),Pi)}function df(Pi,Et,It,nt){var ma=we()===22||Ci(function(){return nn()===59&&e.tokenIsIdentifierOrKeyword(nn())&&Ja(d.getTokenValue())}),$a=ma?void 0:mn(),cs=It!==void 0&&nt!==void 0?he(Pi,Pe(),It,nt):void 0;return Fr(t.createJSDocSeeTag(Et,$a,cs),Pi)}function Ev(Pi,Et,It,nt){var ma=Pe(),$a=vg(),cs=d.getStartPos(),wc=he(Pi,cs,It,nt);wc||(cs=d.getStartPos());var Oc=typeof wc!="string"?pr(e.concatenate([Fr($a,ma,cs)],wc),ma):$a.text+wc;return Fr(t.createJSDocAuthorTag(Et,Oc),Pi)}function vg(){for(var Pi=[],Et=!1,It=d.getToken();It!==1&&It!==4;){if(It===29)Et=!0;else{if(It===59&&!Et)break;if(It===31&&Et){Pi.push(d.getTokenText()),d.setTextPos(d.getTokenPos()+1);break}}Pi.push(d.getTokenText()),It=nn()}return t.createJSDocText(Pi.join(""))}function yg(Pi,Et,It,nt){var ma=nm();return Fr(t.createJSDocImplementsTag(Et,ma,he(Pi,Pe(),It,nt)),Pi)}function hg(Pi,Et,It,nt){var ma=nm();return Fr(t.createJSDocAugmentsTag(Et,ma,he(Pi,Pe(),It,nt)),Pi)}function nm(){var Pi=Vi(18),Et=Pe(),It=Qp(),nt=_n(),ma=t.createExpressionWithTypeArguments(It,nt),$a=Fr(ma,Et);return Pi&&ni(19),$a}function Qp(){for(var Pi=Pe(),Et=I_();Vi(24);){var It=I_();Et=Fr(t.createPropertyAccessExpression(Et,It),Pi)}return Et}function cc(Pi,Et,It,nt,ma){return Fr(Et(It,he(Pi,Pe(),nt,ma)),Pi)}function kv(Pi,Et,It,nt){var ma=Yr(!0);return Js(),Fr(t.createJSDocThisTag(Et,ma,he(Pi,Pe(),It,nt)),Pi)}function im(Pi,Et,It,nt){var ma=Yr(!0);return Js(),Fr(t.createJSDocEnumTag(Et,ma,he(Pi,Pe(),It,nt)),Pi)}function nu(Pi,Et,It,nt){var ma,$a=ju();_();var cs=tm();Js();var wc=nr(It),Oc;if(!$a||wf($a.type)){for(var Uu=void 0,iu=void 0,Rl=void 0,Ud=!1;Uu=Tt(function(){return Pv(It)});)if(Ud=!0,Uu.kind===346)if(iu){var Np=ti(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Np&&e.addRelatedInfo(Np,e.createDetachedDiagnostic(qr,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else iu=Uu;else Rl=e.append(Rl,Uu);if(Ud){var hu=$a&&$a.type.kind===185,dd=t.createJSDocTypeLiteral(Rl,hu);$a=iu&&iu.typeExpression&&!wf(iu.typeExpression.type)?iu.typeExpression:Fr(dd,Pi),Oc=$a.end}}Oc=Oc||wc!==void 0?Pe():((ma=cs!=null?cs:$a)!==null&&ma!==void 0?ma:Et).end,wc||(wc=he(Pi,Oc,It,nt));var zd=t.createJSDocTypedefTag(Et,$a,cs,wc);return Fr(zd,Pi,Oc)}function tm(Pi){var Et=d.getTokenPos();if(!!e.tokenIsIdentifierOrKeyword(we())){var It=I_();if(Vi(24)){var nt=tm(!0),ma=t.createModuleDeclaration(void 0,It,nt,Pi?4:void 0);return Fr(ma,Et)}return Pi&&(It.isInJSDocNamespace=!0),It}}function Av(Pi){for(var Et=Pe(),It,nt;It=Tt(function(){return Dg(4,Pi)});)nt=e.append(nt,It);return pr(nt||[],Et)}function Nv(Pi,Et,It,nt){var ma=tm();Js();var $a=nr(It),cs=Av(It),wc=Tt(function(){if(t_(59)){var iu=R(It);if(iu&&iu.kind===344)return iu}}),Oc=Fr(t.createJSDocSignature(void 0,cs,wc),Pi);$a||($a=he(Pi,Pe(),It,nt));var Uu=$a!==void 0?Pe():Oc.end;return Fr(t.createJSDocCallbackTag(Et,Oc,ma,$a),Pi,Uu)}function Ap(Pi,Et){for(;!e.isIdentifier(Pi)||!e.isIdentifier(Et);)if(!e.isIdentifier(Pi)&&!e.isIdentifier(Et)&&Pi.right.escapedText===Et.right.escapedText)Pi=Pi.left,Et=Et.left;else return!1;return Pi.escapedText===Et.escapedText}function Pv(Pi){return Dg(1,Pi)}function Dg(Pi,Et,It){for(var nt=!0,ma=!1;;)switch(nn()){case 59:if(nt){var $a=_u(Pi,Et);return $a&&($a.kind===343||$a.kind===350)&&Pi!==4&&It&&(e.isIdentifier($a.name)||!Ap(It,$a.name.left))?!1:$a}ma=!1;break;case 4:nt=!0,ma=!1;break;case 41:ma&&(nt=!1),ma=!0;break;case 79:nt=!1;break;case 1:return!1}}function _u(Pi,Et){e.Debug.assert(we()===59);var It=d.getStartPos();nn();var nt=I_();Js();var ma;switch(nt.escapedText){case"type":return Pi===1&&rm(It,nt);case"prop":case"property":ma=1;break;case"arg":case"argument":case"param":ma=2|4;break;default:return!1}return Pi&ma?Of(It,nt,Pi,Et):!1}function Rm(){var Pi=Pe(),Et=t_(22);Et&&Js();var It=I_(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),nt;if(Et&&(Js(),ni(63),nt=Ye(8388608,Bi),ni(23)),!e.nodeIsMissing(It))return Fr(t.createTypeParameterDeclaration(void 0,It,void 0,nt),Pi)}function Xp(){var Pi=Pe(),Et=[];do{Js();var It=Rm();It!==void 0&&Et.push(It),_()}while(t_(27));return pr(Et,Pi)}function am(Pi,Et,It,nt){var ma=we()===18?Yr():void 0,$a=Xp();return Fr(t.createJSDocTemplateTag(Et,ma,$a,he(Pi,Pe(),It,nt)),Pi)}function t_(Pi){return we()===Pi?(nn(),!0):!1}function bg(){var Pi=I_();for(Vi(22)&&ni(23);Vi(24);){var Et=I_();Vi(22)&&ni(23),Pi=co(Pi,Et)}return Pi}function I_(Pi){if(!e.tokenIsIdentifierOrKeyword(we()))return yi(79,!Pi,Pi||e.Diagnostics.Identifier_expected);ze++;var Et=d.getTokenPos(),It=d.getTextPos(),nt=we(),ma=Dt(d.getTokenValue()),$a=Fr(t.createIdentifier(ma,void 0,nt),Et,It);return nn(),$a}}})(Kp=Y.JSDocParser||(Y.JSDocParser={}))})(w||(w={}));var z;(function(Y){function d(dr,vr,kr,Ur){if(Ur=Ur||e.Debug.shouldAssert(2),t(dr,vr,kr,Ur),e.textChangeRangeIsUnchanged(kr))return dr;if(dr.statements.length===0)return w.parseSourceFile(dr.fileName,vr,dr.languageVersion,void 0,!0,dr.scriptKind,dr.setExternalModuleIndicator);var Cr=dr;e.Debug.assert(!Cr.hasBeenIncrementallyParsed),Cr.hasBeenIncrementallyParsed=!0,w.fixupParentReferences(Cr);var rn=dr.text,Br=qr(dr),pn=mr(dr,kr);t(dr,vr,pn,Ur),e.Debug.assert(pn.span.start<=kr.span.start),e.Debug.assert(e.textSpanEnd(pn.span)===e.textSpanEnd(kr.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(pn))===e.textSpanEnd(e.textChangeRangeNewSpan(kr)));var ve=e.textChangeRangeNewSpan(pn).length-pn.span.length;wr(Cr,pn.span.start,e.textSpanEnd(pn.span),e.textSpanEnd(e.textChangeRangeNewSpan(pn)),ve,rn,vr,Ur);var or=w.parseSourceFile(dr.fileName,vr,dr.languageVersion,Br,!0,dr.scriptKind,dr.setExternalModuleIndicator);return or.commentDirectives=j(dr.commentDirectives,or.commentDirectives,pn.span.start,e.textSpanEnd(pn.span),ve,rn,vr,Ur),or.impliedNodeFormat=dr.impliedNodeFormat,or}Y.updateSourceFile=d;function j(dr,vr,kr,Ur,Cr,rn,Br,pn){if(!dr)return vr;for(var ve,or=!1,Ee=0,ze=dr;Ee<ze.length;Ee++){var Ar=ze[Ee],xe=Ar.range,cr=Ar.type;if(xe.end<kr)ve=e.append(ve,Ar);else if(xe.pos>Ur){Rr();var Mr={range:{pos:xe.pos+Cr,end:xe.end+Cr},type:cr};ve=e.append(ve,Mr),pn&&e.Debug.assert(rn.substring(xe.pos,xe.end)===Br.substring(Mr.range.pos,Mr.range.end))}}return Rr(),ve;function Rr(){or||(or=!0,ve?vr&&ve.push.apply(ve,vr):ve=vr)}}function Ce(dr,vr,kr,Ur,Cr,rn){vr?pn(dr):Br(dr);return;function Br(ve){var or="";if(rn&&Se(ve)&&(or=Ur.substring(ve.pos,ve.end)),ve._children&&(ve._children=void 0),e.setTextRangePosEnd(ve,ve.pos+kr,ve.end+kr),rn&&Se(ve)&&e.Debug.assert(or===Cr.substring(ve.pos,ve.end)),J(ve,Br,pn),e.hasJSDocNodes(ve))for(var Ee=0,ze=ve.jsDoc;Ee<ze.length;Ee++){var Ar=ze[Ee];Br(Ar)}er(ve,rn)}function pn(ve){ve._children=void 0,e.setTextRangePosEnd(ve,ve.pos+kr,ve.end+kr);for(var or=0,Ee=ve;or<Ee.length;or++){var ze=Ee[or];Br(ze)}}}function Se(dr){switch(dr.kind){case 10:case 8:case 79:return!0}return!1}function Re(dr,vr,kr,Ur,Cr){e.Debug.assert(dr.end>=vr,"Adjusting an element that was entirely before the change range"),e.Debug.assert(dr.pos<=kr,"Adjusting an element that was entirely after the change range"),e.Debug.assert(dr.pos<=dr.end);var rn=Math.min(dr.pos,Ur),Br=dr.end>=kr?dr.end+Cr:Math.min(dr.end,Ur);e.Debug.assert(rn<=Br),dr.parent&&(e.Debug.assertGreaterThanOrEqual(rn,dr.parent.pos),e.Debug.assertLessThanOrEqual(Br,dr.parent.end)),e.setTextRangePosEnd(dr,rn,Br)}function er(dr,vr){if(vr){var kr=dr.pos,Ur=function(pn){e.Debug.assert(pn.pos>=kr),kr=pn.end};if(e.hasJSDocNodes(dr))for(var Cr=0,rn=dr.jsDoc;Cr<rn.length;Cr++){var Br=rn[Cr];Ur(Br)}J(dr,Ur),e.Debug.assert(kr<=dr.end)}}function wr(dr,vr,kr,Ur,Cr,rn,Br,pn){ve(dr);return;function ve(Ee){if(e.Debug.assert(Ee.pos<=Ee.end),Ee.pos>kr){Ce(Ee,!1,Cr,rn,Br,pn);return}var ze=Ee.end;if(ze>=vr){if(Ee.intersectsChange=!0,Ee._children=void 0,Re(Ee,vr,kr,Ur,Cr),J(Ee,ve,or),e.hasJSDocNodes(Ee))for(var Ar=0,xe=Ee.jsDoc;Ar<xe.length;Ar++){var cr=xe[Ar];ve(cr)}er(Ee,pn);return}e.Debug.assert(ze<vr)}function or(Ee){if(e.Debug.assert(Ee.pos<=Ee.end),Ee.pos>kr){Ce(Ee,!0,Cr,rn,Br,pn);return}var ze=Ee.end;if(ze>=vr){Ee.intersectsChange=!0,Ee._children=void 0,Re(Ee,vr,kr,Ur,Cr);for(var Ar=0,xe=Ee;Ar<xe.length;Ar++){var cr=xe[Ar];ve(cr)}return}e.Debug.assert(ze<vr)}}function mr(dr,vr){for(var kr=1,Ur=vr.span.start,Cr=0;Ur>0&&Cr<=kr;Cr++){var rn=Ue(dr,Ur);e.Debug.assert(rn.pos<=Ur);var Br=rn.pos;Ur=Math.max(0,Br-1)}var pn=e.createTextSpanFromBounds(Ur,e.textSpanEnd(vr.span)),ve=vr.newLength+(vr.span.start-Ur);return e.createTextChangeRange(pn,ve)}function Ue(dr,vr){var kr=dr,Ur;if(J(dr,Br),Ur){var Cr=rn(Ur);Cr.pos>kr.pos&&(kr=Cr)}return kr;function rn(pn){for(;;){var ve=e.getLastChild(pn);if(ve)pn=ve;else return pn}}function Br(pn){if(!e.nodeIsMissing(pn))if(pn.pos<=vr){if(pn.pos>=kr.pos&&(kr=pn),vr<pn.end)return J(pn,Br),!0;e.Debug.assert(pn.end<=vr),Ur=pn}else return e.Debug.assert(pn.pos>vr),!0}}function t(dr,vr,kr,Ur){var Cr=dr.text;if(kr&&(e.Debug.assert(Cr.length-kr.span.length+kr.newLength===vr.length),Ur||e.Debug.shouldAssert(3))){var rn=Cr.substr(0,kr.span.start),Br=vr.substr(0,kr.span.start);e.Debug.assert(rn===Br);var pn=Cr.substring(e.textSpanEnd(kr.span),Cr.length),ve=vr.substring(e.textSpanEnd(e.textChangeRangeNewSpan(kr)),vr.length);e.Debug.assert(pn===ve)}}function qr(dr){var vr=dr.statements,kr=0;e.Debug.assert(kr<vr.length);var Ur=vr[kr],Cr=-1;return{currentNode:function(Br){return Br!==Cr&&(Ur&&Ur.end===Br&&kr<vr.length-1&&(kr++,Ur=vr[kr]),(!Ur||Ur.pos!==Br)&&rn(Br)),Cr=Br,e.Debug.assert(!Ur||Ur.pos===Br),Ur}};function rn(Br){vr=void 0,kr=-1,Ur=void 0,J(dr,pn,ve);return;function pn(or){return Br>=or.pos&&Br<or.end?(J(or,pn,ve),!0):!1}function ve(or){if(Br>=or.pos&&Br<or.end)for(var Ee=0;Ee<or.length;Ee++){var ze=or[Ee];if(ze){if(ze.pos===Br)return vr=or,kr=Ee,Ur=ze,!0;if(ze.pos<Br&&Br<ze.end)return J(ze,pn,ve),!0}}return!1}}}Y.createSyntaxCursor=qr;var ln;(function(dr){dr[dr.Value=-1]="Value"})(ln||(ln={}))})(z||(z={}));function U(Y){return e.fileExtensionIsOneOf(Y,e.supportedDeclarationExtensions)}e.isDeclarationFileName=U;function ge(Y,d,j,Ce){if(!!Y){if(Y==="import")return e.ModuleKind.ESNext;if(Y==="require")return e.ModuleKind.CommonJS;Ce(d,j-d,e.Diagnostics.resolution_mode_should_be_either_require_or_import)}}function pe(Y,d){for(var j=[],Ce=0,Se=e.getLeadingCommentRanges(d,0)||e.emptyArray;Ce<Se.length;Ce++){var Re=Se[Ce],er=d.substring(Re.pos,Re.end);Xe(j,Re,er)}Y.pragmas=new e.Map;for(var wr=0,mr=j;wr<mr.length;wr++){var Ue=mr[wr];if(Y.pragmas.has(Ue.name)){var t=Y.pragmas.get(Ue.name);t instanceof Array?t.push(Ue.args):Y.pragmas.set(Ue.name,[t,Ue.args]);continue}Y.pragmas.set(Ue.name,Ue.args)}}e.processCommentPragmas=pe;function He(Y,d){Y.checkJsDirective=void 0,Y.referencedFiles=[],Y.typeReferenceDirectives=[],Y.libReferenceDirectives=[],Y.amdDependencies=[],Y.hasNoDefaultLib=!1,Y.pragmas.forEach(function(j,Ce){switch(Ce){case"reference":{var Se=Y.referencedFiles,Re=Y.typeReferenceDirectives,er=Y.libReferenceDirectives;e.forEach(e.toArray(j),function(t){var qr=t.arguments,ln=qr.types,dr=qr.lib,vr=qr.path,kr=qr["resolution-mode"];if(t.arguments["no-default-lib"])Y.hasNoDefaultLib=!0;else if(ln){var Ur=ge(kr,ln.pos,ln.end,d);Re.push(vi({pos:ln.pos,end:ln.end,fileName:ln.value},Ur?{resolutionMode:Ur}:{}))}else dr?er.push({pos:dr.pos,end:dr.end,fileName:dr.value}):vr?Se.push({pos:vr.pos,end:vr.end,fileName:vr.value}):d(t.range.pos,t.range.end-t.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{Y.amdDependencies=e.map(e.toArray(j),function(t){return{name:t.arguments.name,path:t.arguments.path}});break}case"amd-module":{if(j instanceof Array)for(var wr=0,mr=j;wr<mr.length;wr++){var Ue=mr[wr];Y.moduleName&&d(Ue.range.pos,Ue.range.end-Ue.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),Y.moduleName=Ue.arguments.name}else Y.moduleName=j.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(j),function(t){(!Y.checkJsDirective||t.range.pos>Y.checkJsDirective.pos)&&(Y.checkJsDirective={enabled:Ce==="ts-check",end:t.range.end,pos:t.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=He;var Be=new e.Map;function Me(Y){if(Be.has(Y))return Be.get(Y);var d=new RegExp("(\\s".concat(Y,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return Be.set(Y,d),d}var Le=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Ae=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function Xe(Y,d,j){var Ce=d.kind===2&&Le.exec(j);if(Ce){var Se=Ce[1].toLowerCase(),Re=e.commentPragmas[Se];if(!Re||!(Re.kind&1))return;if(Re.args){for(var er={},wr=0,mr=Re.args;wr<mr.length;wr++){var Ue=mr[wr],t=Me(Ue.name),qr=t.exec(j);if(!qr&&!Ue.optional)return;if(qr){var ln=qr[2]||qr[3];if(Ue.captureSpan){var dr=d.pos+qr.index+qr[1].length+1;er[Ue.name]={value:ln,pos:dr,end:dr+ln.length}}else er[Ue.name]=ln}}Y.push({name:Se,args:{arguments:er,range:d}})}else Y.push({name:Se,args:{arguments:{},range:d}});return}var vr=d.kind===2&&Ae.exec(j);if(vr)return Ne(Y,d,2,vr);if(d.kind===3)for(var kr=/@(\S+)(\s+.*)?$/gim,Ur=void 0;Ur=kr.exec(j);)Ne(Y,d,4,Ur)}function Ne(Y,d,j,Ce){if(!!Ce){var Se=Ce[1].toLowerCase(),Re=e.commentPragmas[Se];if(!(!Re||!(Re.kind&j))){var er=Ce[2],wr=Oe(Re,er);wr!=="fail"&&Y.push({name:Se,args:{arguments:wr,range:d}})}}}function Oe(Y,d){if(!d)return{};if(!Y.args)return{};for(var j=e.trimString(d).split(/\s+/),Ce={},Se=0;Se<Y.args.length;Se++){var Re=Y.args[Se];if(!j[Se]&&!Re.optional)return"fail";if(Re.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");Ce[Re.name]=j[Se]}return Ce}function be(Y,d){return Y.kind!==d.kind?!1:Y.kind===79?Y.escapedText===d.escapedText:Y.kind===108?!0:Y.name.escapedText===d.name.escapedText&&be(Y.expression,d.expression)}e.tagNamesAreEquivalent=be})(fr||(fr={}));var fr;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var o=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(o.entries(),function(ue){var Ke=ue[0],tr=ue[1];return[""+tr,Ke]})));var ne=[["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"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.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"],["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"],["esnext.array","lib.es2022.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=ne.map(function(ue){return ue[0]}),e.libMap=new e.Map(ne),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.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:Pr},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Pr},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.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:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({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,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0},e.moduleOptionDeclaration={name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node16:e.ModuleKind.Node16,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0};var K=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.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:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},e.targetOptionDeclaration,e.moduleOptionDeclaration,{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.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",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:o,affectsSourceFile:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.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,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsBundleEmitBuildInfo:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node16:e.ModuleResolutionKind.Node16,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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,affectsMultiFileEmitBuildInfo:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.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,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.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:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.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,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.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:e.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,category:e.Diagnostics.Editor_Support},{name:"moduleDetection",type:new e.Map(e.getEntries({auto:e.ModuleDetectionKind.Auto,legacy:e.ModuleDetectionKind.Legacy,force:e.ModuleDetectionKind.Force})),affectsModuleResolution:!0,description:e.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,category:e.Diagnostics.Language_and_Environment,defaultValueDescription:e.Diagnostics.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}];e.optionDeclarations=zn(zn([],e.commonOptionsWithBuild,!0),K,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(ue){return!!ue.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(ue){return!!ue.affectsEmit}),e.affectsDeclarationPathOptionDeclarations=e.optionDeclarations.filter(function(ue){return!!ue.affectsDeclarationPath}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(ue){return!!ue.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(ue){return!!ue.affectsSourceFile||!!ue.affectsModuleResolution||!!ue.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(ue){return!!ue.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(ue){return e.hasProperty(ue,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=zn(zn([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{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}];function se(ue){var Ke=new e.Map,tr=new e.Map;return e.forEach(ue,function(hr){Ke.set(hr.name.toLowerCase(),hr),hr.shortName&&tr.set(hr.shortName,hr.name)}),{optionsNameMap:Ke,shortOptionNames:tr}}e.createOptionNameMap=se;var O;function ie(){return O||(O=se(e.optionDeclarations))}e.getOptionsNameMap=ie;var _e={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:S};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function Q(ue){return ue&&ue.enableAutoDiscovery!==void 0&&ue.enable===void 0?{enable:ue.enableAutoDiscovery,include:ue.include||[],exclude:ue.exclude||[]}:ue}e.convertEnableAutoDiscoveryToEnable=Q;function p(ue){return D(ue,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=p;function D(ue,Ke){var tr=e.arrayFrom(ue.type.keys()).map(function(hr){return"'".concat(hr,"'")}).join(", ");return Ke(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(ue.name),tr)}function le(ue,Ke,tr){return vn(ue,e.trimString(Ke||""),tr)}e.parseCustomTypeOption=le;function de(ue,Ke,tr){if(Ke===void 0&&(Ke=""),Ke=e.trimString(Ke),!e.startsWith(Ke,"-")){if(Ke==="")return[];var hr=Ke.split(",");switch(ue.element.type){case"number":return e.mapDefined(hr,function(_r){return en(ue.element,parseInt(_r),tr)});case"string":return e.mapDefined(hr,function(_r){return en(ue.element,_r||"",tr)});default:return e.mapDefined(hr,function(_r){return le(ue.element,_r,tr)})}}}e.parseListTypeOption=de;function te(ue){return ue.name}function oe(ue,Ke,tr,hr){var _r;if((_r=Ke.alternateMode)===null||_r===void 0?void 0:_r.getOptionsNameMap().optionsNameMap.has(ue.toLowerCase()))return tr(Ke.alternateMode.diagnostic,ue);var Or=e.getSpellingSuggestion(ue,Ke.optionDeclarations,te);return Or?tr(Ke.unknownDidYouMeanDiagnostic,hr||ue,Or.name):tr(Ke.unknownOptionDiagnostic,hr||ue)}function ae(ue,Ke,tr){var hr={},_r,Or=[],zr=[];return fn(Ke),{options:hr,watchOptions:_r,fileNames:Or,errors:zr};function fn(Wn){for(var bn=0;bn<Wn.length;){var qn=Wn[bn];if(bn++,qn.charCodeAt(0)===64)Vr(qn.slice(1));else if(qn.charCodeAt(0)===45){var yn=qn.slice(qn.charCodeAt(1)===45?2:1),Hn=m(ue.getOptionsNameMap,yn,!0);if(Hn)bn=E(Wn,bn,ue,Hn,hr,zr);else{var Ai=m(N.getOptionsNameMap,yn,!0);Ai?bn=E(Wn,bn,N,Ai,_r||(_r={}),zr):zr.push(oe(yn,ue,e.createCompilerDiagnostic,qn))}}else Or.push(qn)}}function Vr(Wn){var bn=h(Wn,tr||function(Ai){return e.sys.readFile(Ai)});if(!e.isString(bn)){zr.push(bn);return}for(var qn=[],yn=0;;){for(;yn<bn.length&&bn.charCodeAt(yn)<=32;)yn++;if(yn>=bn.length)break;var Hn=yn;if(bn.charCodeAt(Hn)===34){for(yn++;yn<bn.length&&bn.charCodeAt(yn)!==34;)yn++;yn<bn.length?(qn.push(bn.substring(Hn+1,yn)),yn++):zr.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Wn))}else{for(;bn.charCodeAt(yn)>32;)yn++;qn.push(bn.substring(Hn,yn))}}fn(qn)}}e.parseCommandLineWorker=ae;function E(ue,Ke,tr,hr,_r,Or){if(hr.isTSConfigOnly){var zr=ue[Ke];zr==="null"?(_r[hr.name]=void 0,Ke++):hr.type==="boolean"?zr==="false"?(_r[hr.name]=en(hr,!1,Or),Ke++):(zr==="true"&&Ke++,Or.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,hr.name))):(Or.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,hr.name)),zr&&!e.startsWith(zr,"-")&&Ke++)}else if(!ue[Ke]&&hr.type!=="boolean"&&Or.push(e.createCompilerDiagnostic(tr.optionTypeMismatchDiagnostic,hr.name,w(hr))),ue[Ke]!=="null")switch(hr.type){case"number":_r[hr.name]=en(hr,parseInt(ue[Ke]),Or),Ke++;break;case"boolean":var zr=ue[Ke];_r[hr.name]=en(hr,zr!=="false",Or),(zr==="false"||zr==="true")&&Ke++;break;case"string":_r[hr.name]=en(hr,ue[Ke]||"",Or),Ke++;break;case"list":var fn=de(hr,ue[Ke],Or);_r[hr.name]=fn||[],fn&&Ke++;break;default:_r[hr.name]=le(hr,ue[Ke],Or),Ke++;break}else _r[hr.name]=void 0,Ke++;return Ke}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:_e,getOptionsNameMap:ie,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function I(ue,Ke){return ae(e.compilerOptionsDidYouMeanDiagnostics,ue,Ke)}e.parseCommandLine=I;function f(ue,Ke){return m(ie,ue,Ke)}e.getOptionFromName=f;function m(ue,Ke,tr){tr===void 0&&(tr=!1),Ke=Ke.toLowerCase();var hr=ue(),_r=hr.optionsNameMap,Or=hr.shortOptionNames;if(tr){var zr=Or.get(Ke);zr!==void 0&&(Ke=zr)}return _r.get(Ke)}var y;function S(){return y||(y=se(e.buildOpts))}var k={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:ie},C={alternateMode:k,getOptionsNameMap:S,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function me(ue){var Ke=ae(C,ue),tr=Ke.options,hr=Ke.watchOptions,_r=Ke.fileNames,Or=Ke.errors,zr=tr;return _r.length===0&&_r.push("."),zr.clean&&zr.force&&Or.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),zr.clean&&zr.verbose&&Or.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),zr.clean&&zr.watch&&Or.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),zr.watch&&zr.dry&&Or.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:zr,watchOptions:hr,projects:_r,errors:Or}}e.parseBuildCommand=me;function De(ue){for(var Ke=[],tr=1;tr<arguments.length;tr++)Ke[tr-1]=arguments[tr];var hr=e.createCompilerDiagnostic.apply(void 0,arguments);return hr.messageText}e.getDiagnosticText=De;function X(ue,Ke,tr,hr,_r,Or){var zr=h(ue,function(Wn){return tr.readFile(Wn)});if(!e.isString(zr)){tr.onUnRecoverableConfigFileDiagnostic(zr);return}var fn=e.parseJsonText(ue,zr),Vr=tr.getCurrentDirectory();return fn.path=e.toPath(ue,Vr,e.createGetCanonicalFileName(tr.useCaseSensitiveFileNames)),fn.resolvedPath=fn.path,fn.originalFileName=fn.fileName,Ce(fn,tr,e.getNormalizedAbsolutePath(e.getDirectoryPath(ue),Vr),Ke,e.getNormalizedAbsolutePath(ue,Vr),void 0,Or,hr,_r)}e.getParsedCommandLineOfConfigFile=X;function M(ue,Ke){var tr=h(ue,Ke);return e.isString(tr)?H(ue,tr):{config:{},error:tr}}e.readConfigFile=M;function H(ue,Ke){var tr=e.parseJsonText(ue,Ke);return{config:B(tr,tr.parseDiagnostics,!1,void 0),error:tr.parseDiagnostics.length?tr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=H;function V(ue,Ke){var tr=h(ue,Ke);return e.isString(tr)?e.parseJsonText(ue,tr):{fileName:ue,parseDiagnostics:[tr]}}e.readJsonConfigFile=V;function h(ue,Ke){var tr;try{tr=Ke(ue)}catch(hr){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,ue,hr.message)}return tr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,ue):tr}e.tryReadFile=h;function F(ue){return e.arrayToMap(ue,te)}var $={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},L;function P(){return L||(L=se(e.optionsForWatch))}var N={getOptionsNameMap:P,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},J;function q(){return J||(J=F(e.optionDeclarations))}var G;function ye(){return G||(G=F(e.optionsForWatch))}var b;function x(){return b||(b=F(e.typeAcquisitionDeclarations))}var T;function Z(){return T===void 0&&(T={name:void 0,type:"object",elementOptions:F([{name:"compilerOptions",type:"object",elementOptions:q(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:ye(),extraKeyDiagnostics:N},{name:"typingOptions",type:"object",elementOptions:x(),extraKeyDiagnostics:$},{name:"typeAcquisition",type:"object",elementOptions:x(),extraKeyDiagnostics:$},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),T}function B(ue,Ke,tr,hr){var _r,Or=(_r=ue.statements[0])===null||_r===void 0?void 0:_r.expression,zr=tr?Z():void 0;if(Or&&Or.kind!==207){if(Ke.push(e.createDiagnosticForNodeInSourceFile(ue,Or,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(ue.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(Or)){var fn=e.find(Or.elements,e.isObjectLiteralExpression);if(fn)return A(ue,fn,Ke,!0,zr,hr)}return{}}return A(ue,Or,Ke,!0,zr,hr)}function u(ue,Ke){var tr;return A(ue,(tr=ue.statements[0])===null||tr===void 0?void 0:tr.expression,Ke,!0,void 0,void 0)}e.convertToObject=u;function A(ue,Ke,tr,hr,_r,Or){if(!Ke)return hr?{}:void 0;return Wn(Ke,_r);function zr(qn){return _r&&_r.elementOptions===qn}function fn(qn,yn,Hn,Ai){for(var ti=hr?{}:void 0,Hi=function(Pe){if(Pe.kind!==299)return tr.push(e.createDiagnosticForNodeInSourceFile(ue,Pe,e.Diagnostics.Property_assignment_expected)),"continue";Pe.questionToken&&tr.push(e.createDiagnosticForNodeInSourceFile(ue,Pe.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),bn(Pe.name)||tr.push(e.createDiagnosticForNodeInSourceFile(ue,Pe.name,e.Diagnostics.String_literal_with_double_quotes_expected));var Ir=e.isComputedNonLiteralName(Pe.name)?void 0:e.getTextOfPropertyName(Pe.name),we=Ir&&e.unescapeLeadingUnderscores(Ir),hn=we&&yn?yn.get(we):void 0;we&&Hn&&!hn&&(yn?tr.push(oe(we,Hn,function(nn,Cn,Dn){return e.createDiagnosticForNodeInSourceFile(ue,Pe.name,nn,Cn,Dn)})):tr.push(e.createDiagnosticForNodeInSourceFile(ue,Pe.name,Hn.unknownOptionDiagnostic,we)));var jn=Wn(Pe.initializer,hn);if(typeof we!="undefined"&&(hr&&(ti[we]=jn),Or&&(Ai||zr(yn)))){var gn=z(hn,jn);Ai?gn&&Or.onSetValidOptionKeyValueInParent(Ai,hn,jn):zr(yn)&&(gn?Or.onSetValidOptionKeyValueInRoot(we,Pe.name,jn,Pe.initializer):hn||Or.onSetUnknownOptionKeyValueInRoot(we,Pe.name,jn,Pe.initializer))}},Ni=0,gi=qn.properties;Ni<gi.length;Ni++){var Pn=gi[Ni];Hi(Pn)}return ti}function Vr(qn,yn){if(!hr){qn.forEach(function(Hn){return Wn(Hn,yn)});return}return e.filter(qn.map(function(Hn){return Wn(Hn,yn)}),function(Hn){return Hn!==void 0})}function Wn(qn,yn){var Hn;switch(qn.kind){case 110:return we(yn&&yn.type!=="boolean"),Ir(!0);case 95:return we(yn&&yn.type!=="boolean"),Ir(!1);case 104:return we(yn&&yn.name==="extends"),Ir(null);case 10:bn(qn)||tr.push(e.createDiagnosticForNodeInSourceFile(ue,qn,e.Diagnostics.String_literal_with_double_quotes_expected)),we(yn&&e.isString(yn.type)&&yn.type!=="string");var Ai=qn.text;if(yn&&!e.isString(yn.type)){var ti=yn;ti.type.has(Ai.toLowerCase())||(tr.push(D(ti,function(hn,jn,gn){return e.createDiagnosticForNodeInSourceFile(ue,qn,hn,jn,gn)})),Hn=!0)}return Ir(Ai);case 8:return we(yn&&yn.type!=="number"),Ir(Number(qn.text));case 221:if(qn.operator!==40||qn.operand.kind!==8)break;return we(yn&&yn.type!=="number"),Ir(-Number(qn.operand.text));case 207:we(yn&&yn.type!=="object");var Hi=qn;if(yn){var Ni=yn,gi=Ni.elementOptions,Pn=Ni.extraKeyDiagnostics,Pe=Ni.name;return Ir(fn(Hi,gi,Pn,Pe))}else return Ir(fn(Hi,void 0,void 0,void 0));case 206:return we(yn&&yn.type!=="list"),Ir(Vr(qn.elements,yn&&yn.element))}yn?we(!0):tr.push(e.createDiagnosticForNodeInSourceFile(ue,qn,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function Ir(hn){var jn;if(!Hn){var gn=(jn=yn==null?void 0:yn.extraValidation)===null||jn===void 0?void 0:jn.call(yn,hn);if(gn){tr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,zn([ue,qn],gn,!1)));return}}return hn}function we(hn){hn&&(tr.push(e.createDiagnosticForNodeInSourceFile(ue,qn,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,yn.name,w(yn))),Hn=!0)}}function bn(qn){return e.isStringLiteral(qn)&&e.isStringDoubleQuoted(qn,ue)}}e.convertToObjectWorker=A;function w(ue){return ue.type==="list"?"Array":e.isString(ue.type)?ue.type:"string"}function z(ue,Ke){if(ue){if(Re(Ke))return!0;if(ue.type==="list")return e.isArray(Ke);var tr=e.isString(ue.type)?ue.type:"string";return typeof Ke===tr}return!1}function U(ue,Ke,tr){var hr,_r,Or,zr=e.createGetCanonicalFileName(tr.useCaseSensitiveFileNames),fn=e.map(e.filter(ue.fileNames,((_r=(hr=ue.options.configFile)===null||hr===void 0?void 0:hr.configFileSpecs)===null||_r===void 0?void 0:_r.validatedIncludeSpecs)?He(Ke,ue.options.configFile.configFileSpecs.validatedIncludeSpecs,ue.options.configFile.configFileSpecs.validatedExcludeSpecs,tr):e.returnTrue),function(qn){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(Ke,tr.getCurrentDirectory()),e.getNormalizedAbsolutePath(qn,tr.getCurrentDirectory()),zr)}),Vr=Le(ue.options,{configFilePath:e.getNormalizedAbsolutePath(Ke,tr.getCurrentDirectory()),useCaseSensitiveFileNames:tr.useCaseSensitiveFileNames}),Wn=ue.watchOptions&&Ae(ue.watchOptions),bn=vi(vi({compilerOptions:vi(vi({},ge(Vr)),{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:Wn&&ge(Wn),references:e.map(ue.projectReferences,function(qn){return vi(vi({},qn),{path:qn.originalPath?qn.originalPath:"",originalPath:void 0})}),files:e.length(fn)?fn:void 0},((Or=ue.options.configFile)===null||Or===void 0?void 0:Or.configFileSpecs)?{include:pe(ue.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:ue.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:ue.compileOnSave?!0:void 0});return bn}e.convertToTSConfig=U;function ge(ue){return vi({},e.arrayFrom(ue.entries()).reduce(function(Ke,tr){var hr;return vi(vi({},Ke),(hr={},hr[tr[0]]=tr[1],hr))},{}))}function pe(ue){if(!!e.length(ue)){if(e.length(ue)!==1)return ue;if(ue[0]!==e.defaultIncludeSpec)return ue}}function He(ue,Ke,tr,hr){if(!Ke)return e.returnTrue;var _r=e.getFileMatcherPatterns(ue,tr,Ke,hr.useCaseSensitiveFileNames,hr.getCurrentDirectory()),Or=_r.excludePattern&&e.getRegexFromPattern(_r.excludePattern,hr.useCaseSensitiveFileNames),zr=_r.includeFilePattern&&e.getRegexFromPattern(_r.includeFilePattern,hr.useCaseSensitiveFileNames);return zr?Or?function(fn){return!(zr.test(fn)&&!Or.test(fn))}:function(fn){return!zr.test(fn)}:Or?function(fn){return Or.test(fn)}:e.returnTrue}function Be(ue){if(!(ue.type==="string"||ue.type==="number"||ue.type==="boolean"||ue.type==="object"))return ue.type==="list"?Be(ue.element):ue.type}function Me(ue,Ke){return e.forEachEntry(Ke,function(tr,hr){if(tr===ue)return hr})}e.getNameOfCompilerOptionValue=Me;function Le(ue,Ke){return Xe(ue,ie(),Ke)}function Ae(ue){return Xe(ue,P())}function Xe(ue,Ke,tr){var hr=Ke.optionsNameMap,_r=new e.Map,Or=tr&&e.createGetCanonicalFileName(tr.useCaseSensitiveFileNames),zr=function(Vr){if(e.hasProperty(ue,Vr)){if(hr.has(Vr)&&(hr.get(Vr).category===e.Diagnostics.Command_line_Options||hr.get(Vr).category===e.Diagnostics.Output_Formatting))return"continue";var Wn=ue[Vr],bn=hr.get(Vr.toLowerCase());if(bn){var qn=Be(bn);qn?bn.type==="list"?_r.set(Vr,Wn.map(function(yn){return Me(yn,qn)})):_r.set(Vr,Me(Wn,qn)):tr&&bn.isFilePath?_r.set(Vr,e.getRelativePathFromFile(tr.configFilePath,e.getNormalizedAbsolutePath(Wn,e.getDirectoryPath(tr.configFilePath)),Or)):_r.set(Vr,Wn)}}};for(var fn in ue)zr(fn);return _r}function Ne(ue,Ke){var tr=Oe(ue);return _r();function hr(Or){return Array(Or+1).join(" ")}function _r(){var Or=[],zr=hr(2);return K.forEach(function(fn){if(!!tr.has(fn.name)){var Vr=tr.get(fn.name),Wn=Qe(fn);Vr!==Wn?Or.push("".concat(zr).concat(fn.name,": ").concat(Vr)):e.hasProperty(e.defaultInitCompilerOptions,fn.name)&&Or.push("".concat(zr).concat(fn.name,": ").concat(Wn))}}),Or.join(Ke)+Ke}}e.getCompilerOptionsDiffValue=Ne;function Oe(ue){var Ke=e.extend(ue,e.defaultInitCompilerOptions);return Le(Ke)}function be(ue,Ke,tr){var hr=Oe(ue);return zr();function _r(fn){return Array(fn+1).join(" ")}function Or(fn){var Vr=fn.category,Wn=fn.name,bn=fn.isCommandLineOnly,qn=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!bn&&Vr!==void 0&&(!qn.includes(Vr)||hr.has(Wn))}function zr(){var fn=new e.Map;fn.set(e.Diagnostics.Projects,[]),fn.set(e.Diagnostics.Language_and_Environment,[]),fn.set(e.Diagnostics.Modules,[]),fn.set(e.Diagnostics.JavaScript_Support,[]),fn.set(e.Diagnostics.Emit,[]),fn.set(e.Diagnostics.Interop_Constraints,[]),fn.set(e.Diagnostics.Type_Checking,[]),fn.set(e.Diagnostics.Completeness,[]);for(var Vr=0,Wn=e.optionDeclarations;Vr<Wn.length;Vr++){var bn=Wn[Vr];if(Or(bn)){var qn=fn.get(bn.category);qn||fn.set(bn.category,qn=[]),qn.push(bn)}}var yn=0,Hn=0,Ai=[];fn.forEach(function(jn,gn){Ai.length!==0&&Ai.push({value:""}),Ai.push({value:"/* ".concat(e.getLocaleSpecificMessage(gn)," */")});for(var nn=0,Cn=jn;nn<Cn.length;nn++){var Dn=Cn[nn],On=void 0;hr.has(Dn.name)?On='"'.concat(Dn.name,'": ').concat(JSON.stringify(hr.get(Dn.name))).concat((Hn+=1)===hr.size?"":","):On='// "'.concat(Dn.name,'": ').concat(JSON.stringify(Qe(Dn)),","),Ai.push({value:On,description:"/* ".concat(Dn.description&&e.getLocaleSpecificMessage(Dn.description)||Dn.name," */")}),yn=Math.max(On.length,yn)}});var ti=_r(2),Hi=[];Hi.push("{"),Hi.push("".concat(ti,'"compilerOptions": {')),Hi.push("".concat(ti).concat(ti,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),Hi.push("");for(var Ni=0,gi=Ai;Ni<gi.length;Ni++){var Pn=gi[Ni],Pe=Pn.value,Ir=Pn.description,we=Ir===void 0?"":Ir;Hi.push(Pe&&"".concat(ti).concat(ti).concat(Pe).concat(we&&_r(yn-Pe.length+2)+we))}if(Ke.length){Hi.push("".concat(ti,"},")),Hi.push("".concat(ti,'"files": ['));for(var hn=0;hn<Ke.length;hn++)Hi.push("".concat(ti).concat(ti).concat(JSON.stringify(Ke[hn])).concat(hn===Ke.length-1?"":","));Hi.push("".concat(ti,"]"))}else Hi.push("".concat(ti,"}"));return Hi.push("}"),Hi.join(tr)+tr}}e.generateTSConfig=be;function Y(ue,Ke){var tr={},hr=ie().optionsNameMap;for(var _r in ue)e.hasProperty(ue,_r)&&(tr[_r]=d(hr.get(_r.toLowerCase()),ue[_r],Ke));return tr.configFilePath&&(tr.configFilePath=Ke(tr.configFilePath)),tr}e.convertToOptionsWithAbsolutePaths=Y;function d(ue,Ke,tr){if(ue&&!Re(Ke)){if(ue.type==="list"){var hr=Ke;if(ue.element.isFilePath&&hr.length)return hr.map(tr)}else if(ue.isFilePath)return tr(Ke)}return Ke}function j(ue,Ke,tr,hr,_r,Or,zr,fn,Vr){return wr(ue,void 0,Ke,tr,hr,Vr,_r,Or,zr,fn)}e.parseJsonConfigFileContent=j;function Ce(ue,Ke,tr,hr,_r,Or,zr,fn,Vr){e.tracing===null||e.tracing===void 0||e.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:ue.fileName});var Wn=wr(void 0,ue,Ke,tr,hr,Vr,_r,Or,zr,fn);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Wn}e.parseJsonSourceFileConfigFileContent=Ce;function Se(ue,Ke){Ke&&Object.defineProperty(ue,"configFile",{enumerable:!1,writable:!1,value:Ke})}e.setConfigFileInOptions=Se;function Re(ue){return ue==null}function er(ue,Ke){return e.getDirectoryPath(e.getNormalizedAbsolutePath(ue,Ke))}e.defaultIncludeSpec="**/*";function wr(ue,Ke,tr,hr,_r,Or,zr,fn,Vr,Wn){_r===void 0&&(_r={}),fn===void 0&&(fn=[]),Vr===void 0&&(Vr=[]),e.Debug.assert(ue===void 0&&Ke!==void 0||ue!==void 0&&Ke===void 0);var bn=[],qn=vr(ue,Ke,tr,hr,zr,fn,bn,Wn),yn=qn.raw,Hn=e.extend(_r,qn.options||{}),Ai=Or&&qn.watchOptions?e.extend(Or,qn.watchOptions):qn.watchOptions||Or;Hn.configFilePath=zr&&e.normalizeSlashes(zr);var ti=Ni();Ke&&(Ke.configFileSpecs=ti),Se(Hn,Ke);var Hi=e.normalizePath(zr?er(zr,hr):hr);return{options:Hn,watchOptions:Ai,fileNames:gi(Hi),projectReferences:Pn(Hi),typeAcquisition:qn.typeAcquisition||ze(),raw:yn,errors:bn,wildcardDirectories:jr(ti,Hi,tr.useCaseSensitiveFileNames),compileOnSave:!!yn.compileOnSave};function Ni(){var jn=we("references",function(Zi){return typeof Zi=="object"},"object"),gn=Pe(Ir("files"));if(gn){var nn=jn==="no-prop"||e.isArray(jn)&&jn.length===0,Cn=e.hasProperty(yn,"extends");if(gn.length===0&&nn&&!Cn)if(Ke){var Dn=zr||"tsconfig.json",On=e.Diagnostics.The_files_list_in_config_file_0_is_empty,Xn=e.firstDefined(e.getTsConfigPropArray(Ke,"files"),function(Zi){return Zi.initializer}),Ge=Xn?e.createDiagnosticForNodeInSourceFile(Ke,Xn,On,Dn):e.createCompilerDiagnostic(On,Dn);bn.push(Ge)}else hn(e.Diagnostics.The_files_list_in_config_file_0_is_empty,zr||"tsconfig.json")}var cn=Pe(Ir("include")),Vn=Ir("exclude"),Ki=!1,dt=Pe(Vn);if(Vn==="no-prop"&&yn.compilerOptions){var qi=yn.compilerOptions.outDir,Ci=yn.compilerOptions.declarationDir;(qi||Ci)&&(dt=[qi,Ci].filter(function(Zi){return!!Zi}))}gn===void 0&&cn===void 0&&(cn=[e.defaultIncludeSpec],Ki=!0);var Tt,ot;return cn&&(Tt=Dr(cn,bn,!0,Ke,"include")),dt&&(ot=Dr(dt,bn,!1,Ke,"exclude")),{filesSpecs:gn,includeSpecs:cn,excludeSpecs:dt,validatedFilesSpec:e.filter(gn,e.isString),validatedIncludeSpecs:Tt,validatedExcludeSpecs:ot,pathPatterns:void 0,isDefaultIncludeSpec:Ki}}function gi(jn){var gn=Lr(ti,jn,Hn,tr,Vr);return t(gn,qr(yn),fn)&&bn.push(Ue(ti,zr)),gn}function Pn(jn){var gn,nn=we("references",function(Xn){return typeof Xn=="object"},"object");if(e.isArray(nn))for(var Cn=0,Dn=nn;Cn<Dn.length;Cn++){var On=Dn[Cn];typeof On.path!="string"?hn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(gn||(gn=[])).push({path:e.getNormalizedAbsolutePath(On.path,jn),originalPath:On.path,prepend:On.prepend,circular:On.circular})}return gn}function Pe(jn){return e.isArray(jn)?jn:void 0}function Ir(jn){return we(jn,e.isString,"string")}function we(jn,gn,nn){if(e.hasProperty(yn,jn)&&!Re(yn[jn]))if(e.isArray(yn[jn])){var Cn=yn[jn];return!Ke&&!e.every(Cn,gn)&&bn.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,jn,nn)),Cn}else return hn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,jn,"Array"),"not-array";return"no-prop"}function hn(jn,gn,nn){Ke||bn.push(e.createCompilerDiagnostic(jn,gn,nn))}}function mr(ue){return ue.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Ue(ue,Ke){var tr=ue.includeSpecs,hr=ue.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,Ke||"tsconfig.json",JSON.stringify(tr||[]),JSON.stringify(hr||[]))}function t(ue,Ke,tr){return ue.length===0&&Ke&&(!tr||tr.length===0)}function qr(ue){return!e.hasProperty(ue,"files")&&!e.hasProperty(ue,"references")}e.canJsonReportNoInputFiles=qr;function ln(ue,Ke,tr,hr,_r){var Or=hr.length;return t(ue,_r)?hr.push(Ue(tr,Ke)):e.filterMutate(hr,function(zr){return!mr(zr)}),Or!==hr.length}e.updateErrorForNoInputFiles=ln;function dr(ue){return!!ue.options}function vr(ue,Ke,tr,hr,_r,Or,zr,fn){var Vr;hr=e.normalizeSlashes(hr);var Wn=e.getNormalizedAbsolutePath(_r||"",hr);if(Or.indexOf(Wn)>=0)return zr.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,zn(zn([],Or,!0),[Wn],!1).join(" -> "))),{raw:ue||u(Ke,zr)};var bn=ue?kr(ue,tr,hr,_r,zr):Ur(Ke,tr,hr,_r,zr);if(((Vr=bn.options)===null||Vr===void 0?void 0:Vr.paths)&&(bn.options.pathsBasePath=hr),bn.extendedConfigPath){Or=Or.concat([Wn]);var qn=rn(Ke,bn.extendedConfigPath,tr,Or,zr,fn);if(qn&&dr(qn)){var yn=qn.raw,Hn=bn.raw,Ai,ti=function(Hi){!Hn[Hi]&&yn[Hi]&&(Hn[Hi]=e.map(yn[Hi],function(Ni){return e.isRootedDiskPath(Ni)?Ni:e.combinePaths(Ai||(Ai=e.convertToRelativePath(e.getDirectoryPath(bn.extendedConfigPath),hr,e.createGetCanonicalFileName(tr.useCaseSensitiveFileNames))),Ni)}))};ti("include"),ti("exclude"),ti("files"),Hn.compileOnSave===void 0&&(Hn.compileOnSave=yn.compileOnSave),bn.options=e.assign({},qn.options,bn.options),bn.watchOptions=bn.watchOptions&&qn.watchOptions?e.assign({},qn.watchOptions,bn.watchOptions):bn.watchOptions||qn.watchOptions}}return bn}function kr(ue,Ke,tr,hr,_r){e.hasProperty(ue,"excludes")&&_r.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var Or=Ee(ue.compilerOptions,tr,_r,hr),zr=Ar(ue.typeAcquisition||ue.typingOptions,tr,_r,hr),fn=xe(ue.watchOptions,tr,_r);ue.compileOnSave=Br(ue,tr,_r);var Vr;if(ue.extends)if(!e.isString(ue.extends))_r.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var Wn=hr?er(hr,tr):tr;Vr=Cr(ue.extends,Ke,Wn,_r,e.createCompilerDiagnostic)}return{raw:ue,options:Or,watchOptions:fn,typeAcquisition:zr,extendedConfigPath:Vr}}function Ur(ue,Ke,tr,hr,_r){var Or=or(hr),zr,fn,Vr,Wn,bn,qn={onSetValidOptionKeyValueInParent:function(Hn,Ai,ti){var Hi;switch(Hn){case"compilerOptions":Hi=Or;break;case"watchOptions":Hi=Vr||(Vr={});break;case"typeAcquisition":Hi=zr||(zr=ze(hr));break;case"typingOptions":Hi=fn||(fn=ze(hr));break;default:e.Debug.fail("Unknown option")}Hi[Ai.name]=Rr(Ai,tr,ti)},onSetValidOptionKeyValueInRoot:function(Hn,Ai,ti,Hi){switch(Hn){case"extends":var Ni=hr?er(hr,tr):tr;Wn=Cr(ti,Ke,Ni,_r,function(gi,Pn){return e.createDiagnosticForNodeInSourceFile(ue,Hi,gi,Pn)});return}},onSetUnknownOptionKeyValueInRoot:function(Hn,Ai,ti,Hi){Hn==="excludes"&&_r.push(e.createDiagnosticForNodeInSourceFile(ue,Ai,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(K,function(Ni){return Ni.name===Hn})&&(bn=e.append(bn,Ai))}},yn=B(ue,_r,!0,qn);return zr||(fn?zr=fn.enableAutoDiscovery!==void 0?{enable:fn.enableAutoDiscovery,include:fn.include,exclude:fn.exclude}:fn:zr=ze(hr)),bn&&yn&&yn.compilerOptions===void 0&&_r.push(e.createDiagnosticForNodeInSourceFile(ue,bn[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(bn[0]))),{raw:yn,options:Or,watchOptions:Vr,typeAcquisition:zr,extendedConfigPath:Wn}}function Cr(ue,Ke,tr,hr,_r){if(ue=e.normalizeSlashes(ue),e.isRootedDiskPath(ue)||e.startsWith(ue,"./")||e.startsWith(ue,"../")){var Or=e.getNormalizedAbsolutePath(ue,tr);if(!Ke.fileExists(Or)&&!e.endsWith(Or,".json")&&(Or="".concat(Or,".json"),!Ke.fileExists(Or))){hr.push(_r(e.Diagnostics.File_0_not_found,ue));return}return Or}var zr=e.nodeModuleNameResolver(ue,e.combinePaths(tr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},Ke,void 0,void 0,!0);if(zr.resolvedModule)return zr.resolvedModule.resolvedFileName;hr.push(_r(e.Diagnostics.File_0_not_found,ue))}function rn(ue,Ke,tr,hr,_r,Or){var zr,fn=tr.useCaseSensitiveFileNames?Ke:e.toFileNameLowerCase(Ke),Vr,Wn,bn;if(Or&&(Vr=Or.get(fn))?(Wn=Vr.extendedResult,bn=Vr.extendedConfig):(Wn=V(Ke,function(qn){return tr.readFile(qn)}),Wn.parseDiagnostics.length||(bn=vr(void 0,Wn,tr,e.getDirectoryPath(Ke),e.getBaseFileName(Ke),hr,_r,Or)),Or&&Or.set(fn,{extendedResult:Wn,extendedConfig:bn})),ue&&(ue.extendedSourceFiles=[Wn.fileName],Wn.extendedSourceFiles&&(zr=ue.extendedSourceFiles).push.apply(zr,Wn.extendedSourceFiles)),Wn.parseDiagnostics.length){_r.push.apply(_r,Wn.parseDiagnostics);return}return bn}function Br(ue,Ke,tr){if(!e.hasProperty(ue,e.compileOnSaveCommandLineOption.name))return!1;var hr=Mr(e.compileOnSaveCommandLineOption,ue.compileOnSave,Ke,tr);return typeof hr=="boolean"&&hr}function pn(ue,Ke,tr){var hr=[],_r=Ee(ue,Ke,hr,tr);return{options:_r,errors:hr}}e.convertCompilerOptionsFromJson=pn;function ve(ue,Ke,tr){var hr=[],_r=Ar(ue,Ke,hr,tr);return{options:_r,errors:hr}}e.convertTypeAcquisitionFromJson=ve;function or(ue){var Ke=ue&&e.getBaseFileName(ue)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return Ke}function Ee(ue,Ke,tr,hr){var _r=or(hr);return cr(q(),ue,Ke,_r,e.compilerOptionsDidYouMeanDiagnostics,tr),hr&&(_r.configFilePath=e.normalizeSlashes(hr)),_r}function ze(ue){return{enable:!!ue&&e.getBaseFileName(ue)==="jsconfig.json",include:[],exclude:[]}}function Ar(ue,Ke,tr,hr){var _r=ze(hr),Or=Q(ue);return cr(x(),Or,Ke,_r,$,tr),_r}function xe(ue,Ke,tr){return cr(ye(),ue,Ke,void 0,N,tr)}function cr(ue,Ke,tr,hr,_r,Or){if(!!Ke){for(var zr in Ke){var fn=ue.get(zr);fn?(hr||(hr={}))[fn.name]=Mr(fn,Ke[zr],tr,Or):Or.push(oe(zr,_r,e.createCompilerDiagnostic))}return hr}}function Mr(ue,Ke,tr,hr){if(z(ue,Ke)){var _r=ue.type;if(_r==="list"&&e.isArray(Ke))return Ie(ue,Ke,tr,hr);if(!e.isString(_r))return vn(ue,Ke,hr);var Or=en(ue,Ke,hr);return Re(Or)?Or:Qr(ue,tr,Or)}else hr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,ue.name,w(ue)))}e.convertJsonOption=Mr;function Rr(ue,Ke,tr){if(!Re(tr)){if(ue.type==="list"){var hr=ue;return hr.element.isFilePath||!e.isString(hr.element.type)?e.filter(e.map(tr,function(_r){return Rr(hr.element,Ke,_r)}),function(_r){return hr.listPreserveFalsyValues?!0:!!_r}):tr}else if(!e.isString(ue.type))return ue.type.get(e.isString(tr)?tr.toLowerCase():tr);return Qr(ue,Ke,tr)}}function Qr(ue,Ke,tr){return ue.isFilePath&&(tr=e.getNormalizedAbsolutePath(tr,Ke),tr===""&&(tr=".")),tr}function en(ue,Ke,tr){var hr;if(!Re(Ke)){var _r=(hr=ue.extraValidation)===null||hr===void 0?void 0:hr.call(ue,Ke);if(!_r)return Ke;tr.push(e.createCompilerDiagnostic.apply(void 0,_r))}}function vn(ue,Ke,tr){if(!Re(Ke)){var hr=Ke.toLowerCase(),_r=ue.type.get(hr);if(_r!==void 0)return en(ue,_r,tr);tr.push(p(ue))}}function Ie(ue,Ke,tr,hr){return e.filter(e.map(Ke,function(_r){return Mr(ue.element,_r,tr,hr)}),function(_r){return ue.listPreserveFalsyValues?!0:!!_r})}var We=/(^|\/)\*\*\/?$/,xr=/^[^*?]*(?=\/[^/]*[*?])/;function Lr(ue,Ke,tr,hr,_r){_r===void 0&&(_r=e.emptyArray),Ke=e.normalizePath(Ke);var Or=e.createGetCanonicalFileName(hr.useCaseSensitiveFileNames),zr=new e.Map,fn=new e.Map,Vr=new e.Map,Wn=ue.validatedFilesSpec,bn=ue.validatedIncludeSpecs,qn=ue.validatedExcludeSpecs,yn=e.getSupportedExtensions(tr,_r),Hn=e.getSupportedExtensionsWithJsonIfResolveJsonModule(tr,yn);if(Wn)for(var Ai=0,ti=Wn;Ai<ti.length;Ai++){var Hi=ti[Ai],Ni=e.getNormalizedAbsolutePath(Hi,Ke);zr.set(Or(Ni),Ni)}var gi;if(bn&&bn.length>0)for(var Pn=function(jn){if(e.fileExtensionIs(jn,".json")){if(!gi){var gn=bn.filter(function(Xn){return e.endsWith(Xn,".json")}),nn=e.map(e.getRegularExpressionsForWildcards(gn,Ke,"files"),function(Xn){return"^".concat(Xn,"$")});gi=nn?nn.map(function(Xn){return e.getRegexFromPattern(Xn,hr.useCaseSensitiveFileNames)}):e.emptyArray}var Cn=e.findIndex(gi,function(Xn){return Xn.test(jn)});if(Cn!==-1){var Dn=Or(jn);!zr.has(Dn)&&!Vr.has(Dn)&&Vr.set(Dn,jn)}return"continue"}if(je(jn,zr,fn,yn,Or))return"continue";Sr(jn,fn,yn,Or);var On=Or(jn);!zr.has(On)&&!fn.has(On)&&fn.set(On,jn)},Pe=0,Ir=hr.readDirectory(Ke,e.flatten(Hn),qn,bn,void 0);Pe<Ir.length;Pe++){var Ni=Ir[Pe];Pn(Ni)}var we=e.arrayFrom(zr.values()),hn=e.arrayFrom(fn.values());return we.concat(hn,e.arrayFrom(Vr.values()))}e.getFileNamesFromConfigSpecs=Lr;function xn(ue,Ke,tr,hr,_r){var Or=Ke.validatedFilesSpec,zr=Ke.validatedIncludeSpecs,fn=Ke.validatedExcludeSpecs;if(!e.length(zr)||!e.length(fn))return!1;tr=e.normalizePath(tr);var Vr=e.createGetCanonicalFileName(hr);if(Or)for(var Wn=0,bn=Or;Wn<bn.length;Wn++){var qn=bn[Wn];if(Vr(e.getNormalizedAbsolutePath(qn,tr))===ue)return!1}return ai(ue,fn,hr,_r,tr)}e.isExcludedFile=xn;function An(ue){var Ke=e.startsWith(ue,"**/")?0:ue.indexOf("/**/");if(Ke===-1)return!1;var tr=e.endsWith(ue,"/..")?ue.length:ue.lastIndexOf("/../");return tr>Ke}function Qn(ue,Ke,tr,hr){return ai(ue,e.filter(Ke,function(_r){return!An(_r)}),tr,hr)}e.matchesExclude=Qn;function ai(ue,Ke,tr,hr,_r){var Or=e.getRegularExpressionForWildcard(Ke,e.combinePaths(e.normalizePath(hr),_r),"exclude"),zr=Or&&e.getRegexFromPattern(Or,tr);return zr?zr.test(ue)?!0:!e.hasExtension(ue)&&zr.test(e.ensureTrailingDirectorySeparator(ue)):!1}function Dr(ue,Ke,tr,hr,_r){return ue.filter(function(zr){if(!e.isString(zr))return!1;var fn=Pr(zr,tr);return fn!==void 0&&Ke.push(Or.apply(void 0,fn)),fn===void 0});function Or(zr,fn){var Vr=e.getTsConfigPropArrayElementValue(hr,_r,fn);return Vr?e.createDiagnosticForNodeInSourceFile(hr,Vr,zr,fn):e.createCompilerDiagnostic(zr,fn)}}function Pr(ue,Ke){if(Ke&&We.test(ue))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,ue];if(An(ue))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,ue]}function jr(ue,Ke,tr){var hr=ue.validatedIncludeSpecs,_r=ue.validatedExcludeSpecs,Or=e.getRegularExpressionForWildcard(_r,Ke,"exclude"),zr=Or&&new RegExp(Or,tr?"":"i"),fn={};if(hr!==void 0){for(var Vr=[],Wn=0,bn=hr;Wn<bn.length;Wn++){var qn=bn[Wn],yn=e.normalizePath(e.combinePaths(Ke,qn));if(!(zr&&zr.test(yn))){var Hn=on(yn,tr);if(Hn){var Ai=Hn.key,ti=Hn.flags,Hi=fn[Ai];(Hi===void 0||Hi<ti)&&(fn[Ai]=ti,ti===1&&Vr.push(Ai))}}}for(var Ai in fn)if(e.hasProperty(fn,Ai))for(var Ni=0,gi=Vr;Ni<gi.length;Ni++){var Pn=gi[Ni];Ai!==Pn&&e.containsPath(Pn,Ai,Ke,!tr)&&delete fn[Ai]}}return fn}function on(ue,Ke){var tr=xr.exec(ue);if(tr){var hr=ue.indexOf("?"),_r=ue.indexOf("*"),Or=ue.lastIndexOf(e.directorySeparator);return{key:Ke?tr[0]:e.toFileNameLowerCase(tr[0]),flags:hr!==-1&&hr<Or||_r!==-1&&_r<Or?1:0}}if(e.isImplicitGlob(ue.substring(ue.lastIndexOf(e.directorySeparator)+1)))return{key:e.removeTrailingDirectorySeparator(Ke?ue:e.toFileNameLowerCase(ue)),flags:1}}function je(ue,Ke,tr,hr,_r){var Or=e.forEach(hr,function(bn){return e.fileExtensionIsOneOf(ue,bn)?bn:void 0});if(!Or)return!1;for(var zr=0,fn=Or;zr<fn.length;zr++){var Vr=fn[zr];if(e.fileExtensionIs(ue,Vr))return!1;var Wn=_r(e.changeExtension(ue,Vr));if(Ke.has(Wn)||tr.has(Wn)){if(Vr===".d.ts"&&(e.fileExtensionIs(ue,".js")||e.fileExtensionIs(ue,".jsx")))continue;return!0}}return!1}function Sr(ue,Ke,tr,hr){var _r=e.forEach(tr,function(Vr){return e.fileExtensionIsOneOf(ue,Vr)?Vr:void 0});if(!!_r)for(var Or=_r.length-1;Or>=0;Or--){var zr=_r[Or];if(e.fileExtensionIs(ue,zr))return;var fn=hr(e.changeExtension(ue,zr));Ke.delete(fn)}}function Te(ue){var Ke={};for(var tr in ue)if(e.hasProperty(ue,tr)){var hr=f(tr);hr!==void 0&&(Ke[tr]=Ye(ue[tr],hr))}return Ke}e.convertCompilerOptionsForTelemetry=Te;function Ye(ue,Ke){switch(Ke.type){case"object":return"";case"string":return"";case"number":return typeof ue=="number"?ue:"";case"boolean":return typeof ue=="boolean"?ue:"";case"list":var tr=Ke.element;return e.isArray(ue)?ue.map(function(hr){return Ye(hr,tr)}):"";default:return e.forEachEntry(Ke.type,function(hr,_r){if(hr===ue)return _r})}}function Qe(ue){switch(ue.type){case"number":return 1;case"boolean":return!0;case"string":var Ke=ue.defaultValueDescription;return ue.isFilePath?"./".concat(Ke&&typeof Ke=="string"?Ke:""):"";case"list":return[];case"object":return{};default:var tr=ue.type.keys().next();return tr.done?e.Debug.fail("Expected 'option.type' to have entries."):tr.value}}})(fr||(fr={}));var fr;(function(e){function o(Dr){Dr.trace(e.formatMessage.apply(void 0,arguments))}e.trace=o;function ne(Dr,Pr){return!!Dr.traceResolution&&Pr.trace!==void 0}e.isTraceEnabled=ne;function K(Dr,Pr){var jr;if(Pr&&Dr){var on=Dr.contents.packageJsonContent;typeof on.name=="string"&&typeof on.version=="string"&&(jr={name:on.name,subModuleName:Pr.path.slice(Dr.packageDirectory.length+e.directorySeparator.length),version:on.version})}return Pr&&{path:Pr.path,extension:Pr.ext,packageId:jr}}function se(Dr){return K(void 0,Dr)}function O(Dr){if(Dr)return e.Debug.assert(Dr.packageId===void 0),{path:Dr.path,ext:Dr.extension}}var ie;(function(Dr){Dr[Dr.TypeScript=0]="TypeScript",Dr[Dr.JavaScript=1]="JavaScript",Dr[Dr.Json=2]="Json",Dr[Dr.TSConfig=3]="TSConfig",Dr[Dr.DtsOnly=4]="DtsOnly",Dr[Dr.TsOnly=5]="TsOnly"})(ie||(ie={}));function _e(Dr){if(!!Dr)return e.Debug.assert(e.extensionIsTS(Dr.extension)),{fileName:Dr.path,packageId:Dr.packageId}}function Q(Dr,Pr,jr,on,je,Sr){var Te,Ye;return Sr?((Te=Sr.failedLookupLocations).push.apply(Te,jr),(Ye=Sr.affectingLocations).push.apply(Ye,on),Sr):{resolvedModule:Dr&&{resolvedFileName:Dr.path,originalPath:Dr.originalPath===!0?void 0:Dr.originalPath,extension:Dr.extension,isExternalLibraryImport:Pr,packageId:Dr.packageId},failedLookupLocations:jr,affectingLocations:on,resolutionDiagnostics:je}}function p(Dr,Pr,jr,on){if(!e.hasProperty(Dr,Pr)){on.traceEnabled&&o(on.host,e.Diagnostics.package_json_does_not_have_a_0_field,Pr);return}var je=Dr[Pr];if(typeof je!==jr||je===null){on.traceEnabled&&o(on.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,Pr,jr,je===null?"null":typeof je);return}return je}function D(Dr,Pr,jr,on){var je=p(Dr,Pr,"string",on);if(je!==void 0){if(!je){on.traceEnabled&&o(on.host,e.Diagnostics.package_json_had_a_falsy_0_field,Pr);return}var Sr=e.normalizePath(e.combinePaths(jr,je));return on.traceEnabled&&o(on.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,Pr,je,Sr),Sr}}function le(Dr,Pr,jr){return D(Dr,"typings",Pr,jr)||D(Dr,"types",Pr,jr)}function de(Dr,Pr,jr){return D(Dr,"tsconfig",Pr,jr)}function te(Dr,Pr,jr){return D(Dr,"main",Pr,jr)}function oe(Dr,Pr){var jr=p(Dr,"typesVersions","object",Pr);if(jr!==void 0)return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),jr}function ae(Dr,Pr){var jr=oe(Dr,Pr);if(jr!==void 0){if(Pr.traceEnabled)for(var on in jr)e.hasProperty(jr,on)&&!e.VersionRange.tryParse(on)&&o(Pr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,on);var je=I(jr);if(!je){Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Sr=je.version,Te=je.paths;if(typeof Te!="object"){Pr.traceEnabled&&o(Pr.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(Sr,"']"),"object",typeof Te);return}return je}}var E;function I(Dr){E||(E=new e.Version(e.version));for(var Pr in Dr)if(!!e.hasProperty(Dr,Pr)){var jr=e.VersionRange.tryParse(Pr);if(jr!==void 0&&jr.test(E))return{version:Pr,paths:Dr[Pr]}}}e.getPackageJsonTypesVersionsPaths=I;function f(Dr,Pr){if(Dr.typeRoots)return Dr.typeRoots;var jr;if(Dr.configFilePath?jr=e.getDirectoryPath(Dr.configFilePath):Pr.getCurrentDirectory&&(jr=Pr.getCurrentDirectory()),jr!==void 0)return m(jr,Pr)}e.getEffectiveTypeRoots=f;function m(Dr,Pr){if(!Pr.directoryExists)return[e.combinePaths(Dr,y)];var jr;return e.forEachAncestorDirectory(e.normalizePath(Dr),function(on){var je=e.combinePaths(on,y);Pr.directoryExists(je)&&(jr||(jr=[])).push(je)}),jr}var y=e.combinePaths("node_modules","@types");function S(Dr,Pr,jr){var on=typeof jr.useCaseSensitiveFileNames=="function"?jr.useCaseSensitiveFileNames():jr.useCaseSensitiveFileNames;return e.comparePaths(Dr,Pr,!on)===0}function k(Dr,Pr,jr,on,je,Sr,Te){e.Debug.assert(typeof Dr=="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.");var Ye=ne(jr,on);je&&(jr=je.commandLine.options);var Qe=Pr?e.getDirectoryPath(Pr):void 0,ue=Qe?Sr&&Sr.getOrCreateCacheForDirectory(Qe,je):void 0,Ke=ue&&ue.get(Dr,Te);if(Ke)return Ye&&(o(on,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,Dr,Pr),je&&o(on,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,je.sourceFile.fileName),o(on,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,Dr,Qe),Hi(Ke)),Ke;var tr=f(jr,on);Ye&&(Pr===void 0?tr===void 0?o(on,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,Dr):o(on,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,Dr,tr):tr===void 0?o(on,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,Dr,Pr):o(on,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,Dr,Pr,tr),je&&o(on,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,je.sourceFile.fileName));var hr=[],_r=[],Or=C(jr);Te===e.ModuleKind.ESNext&&(e.getEmitModuleResolutionKind(jr)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(jr)===e.ModuleResolutionKind.NodeNext)&&(Or|=T.EsmMode);var zr=Or&T.Exports?Or&T.EsmMode?["node","import","types"]:["node","require","types"]:[],fn=[],Vr={compilerOptions:jr,host:on,traceEnabled:Ye,failedLookupLocations:hr,affectingLocations:_r,packageJsonInfoCache:Sr,features:Or,conditions:zr,requestContainingDirectory:Qe,reportDiagnostic:function(Pn){return void fn.push(Pn)}},Wn=Ni(),bn=!0;Wn||(Wn=gi(),bn=!1);var qn;if(Wn){var yn=Wn.fileName,Hn=Wn.packageId,Ai=jr.preserveSymlinks?yn:Me(yn,on,Ye),ti=S(yn,Ai,on);qn={primary:bn,resolvedFileName:ti?yn:Ai,originalPath:ti?void 0:yn,packageId:Hn,isExternalLibraryImport:Ae(yn)}}return Ke={resolvedTypeReferenceDirective:qn,failedLookupLocations:hr,affectingLocations:_r,resolutionDiagnostics:fn},ue==null||ue.set(Dr,Te,Ke),Ye&&Hi(Ke),Ke;function Hi(Pn){var Pe;((Pe=Pn.resolvedTypeReferenceDirective)===null||Pe===void 0?void 0:Pe.resolvedFileName)?Pn.resolvedTypeReferenceDirective.packageId?o(on,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,Dr,Pn.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Pn.resolvedTypeReferenceDirective.packageId),Pn.resolvedTypeReferenceDirective.primary):o(on,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,Dr,Pn.resolvedTypeReferenceDirective.resolvedFileName,Pn.resolvedTypeReferenceDirective.primary):o(on,e.Diagnostics.Type_reference_directive_0_was_not_resolved,Dr)}function Ni(){if(tr&&tr.length)return Ye&&o(on,e.Diagnostics.Resolving_with_primary_search_path_0,tr.join(", ")),e.firstDefined(tr,function(Pn){var Pe=e.combinePaths(Pn,Dr),Ir=e.getDirectoryPath(Pe),we=e.directoryProbablyExists(Ir,on);return!we&&Ye&&o(on,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ir),_e(Re(ie.DtsOnly,Pe,!we,Vr))});Ye&&o(on,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function gi(){var Pn=Pr&&e.getDirectoryPath(Pr);if(Pn!==void 0){Ye&&o(on,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Pn);var Pe;if(e.isExternalModuleNameRelative(Dr)){var we=Be(Pn,Dr).path;Pe=Le(ie.DtsOnly,we,!1,Vr,!0)}else{var Ir=ze(ie.DtsOnly,Dr,Pn,Vr,void 0,void 0);Pe=Ir&&Ir.value}return _e(Pe)}else Ye&&o(on,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=k;function C(Dr){return e.getEmitModuleResolutionKind(Dr)===e.ModuleResolutionKind.Node16?T.Node16Default:e.getEmitModuleResolutionKind(Dr)===e.ModuleResolutionKind.NodeNext?T.NodeNextDefault:T.None}function me(Dr,Pr,jr,on,je){var Sr=mr(je==null?void 0:je.getPackageJsonInfoCache(),on,jr);return e.forEachAncestorDirectory(Pr,function(Te){if(e.getBaseFileName(Te)!=="node_modules"){var Ye=e.combinePaths(Te,"node_modules"),Qe=e.combinePaths(Ye,Dr);return t(Qe,!1,Sr)}})}e.resolvePackageNameToPackageJson=me;function De(Dr,Pr){if(Dr.types)return Dr.types;var jr=[];if(Pr.directoryExists&&Pr.getDirectories){var on=f(Dr,Pr);if(on)for(var je=0,Sr=on;je<Sr.length;je++){var Te=Sr[je];if(Pr.directoryExists(Te))for(var Ye=0,Qe=Pr.getDirectories(Te);Ye<Qe.length;Ye++){var ue=Qe[Ye],Ke=e.normalizePath(ue),tr=e.combinePaths(Te,Ke,"package.json"),hr=Pr.fileExists(tr)&&e.readJson(tr,Pr).typings===null;if(!hr){var _r=e.getBaseFileName(Ke);_r.charCodeAt(0)!==46&&jr.push(_r)}}}}return jr}e.getAutomaticTypeDirectiveNames=De;function X(Dr){var Pr=new e.Map,jr=new e.Map;return{getOwnMap:on,redirectsMap:jr,getOrCreateMapOfCacheRedirects:Te,clear:Ye,setOwnOptions:je,setOwnMap:Sr};function on(){return Pr}function je(Qe){Dr=Qe}function Sr(Qe){Pr=Qe}function Te(Qe){if(!Qe)return Pr;var ue=Qe.sourceFile.path,Ke=jr.get(ue);return Ke||(Ke=!Dr||e.optionsHaveModuleResolutionChanges(Dr,Qe.commandLine.options)?new e.Map:Pr,jr.set(ue,Ke)),Ke}function Ye(){Pr.clear(),jr.clear()}}e.createCacheWithRedirects=X;function M(Dr,Pr){var jr;return{getPackageJsonInfo:on,setPackageJsonInfo:je,clear:Sr,entries:Te,getInternalMap:Ye};function on(Qe){return jr==null?void 0:jr.get(e.toPath(Qe,Dr,Pr))}function je(Qe,ue){(jr||(jr=new e.Map)).set(e.toPath(Qe,Dr,Pr),ue)}function Sr(){jr=void 0}function Te(){var Qe=jr==null?void 0:jr.entries();return Qe?e.arrayFrom(Qe):[]}function Ye(){return jr}}function H(Dr,Pr,jr,on){var je=Dr.getOrCreateMapOfCacheRedirects(Pr),Sr=je.get(jr);return Sr||(Sr=on(),je.set(jr,Sr)),Sr}function V(Dr,Pr,jr){if(!!Dr.configFile){if(Pr.redirectsMap.size===0)e.Debug.assert(!jr||jr.redirectsMap.size===0),e.Debug.assert(Pr.getOwnMap().size===0),e.Debug.assert(!jr||jr.getOwnMap().size===0),Pr.redirectsMap.set(Dr.configFile.path,Pr.getOwnMap()),jr==null||jr.redirectsMap.set(Dr.configFile.path,jr.getOwnMap());else{e.Debug.assert(!jr||jr.redirectsMap.size>0);var on={sourceFile:Dr.configFile,commandLine:{options:Dr}};Pr.setOwnMap(Pr.getOrCreateMapOfCacheRedirects(on)),jr==null||jr.setOwnMap(jr.getOrCreateMapOfCacheRedirects(on))}Pr.setOwnOptions(Dr),jr==null||jr.setOwnOptions(Dr)}}function h(Dr,Pr,jr){return{getOrCreateCacheForDirectory:Sr,clear:on,update:je};function on(){jr.clear()}function je(Te){V(Te,jr)}function Sr(Te,Ye){var Qe=e.toPath(Te,Dr,Pr);return H(jr,Ye,Qe,function(){return F()})}}function F(){var Dr=new e.Map,Pr=new e.Map,jr={get:function(je,Sr){return Dr.get(on(je,Sr))},set:function(je,Sr,Te){return Dr.set(on(je,Sr),Te),jr},delete:function(je,Sr){return Dr.delete(on(je,Sr)),jr},has:function(je,Sr){return Dr.has(on(je,Sr))},forEach:function(je){return Dr.forEach(function(Sr,Te){var Ye=Pr.get(Te),Qe=Ye[0],ue=Ye[1];return je(Sr,Qe,ue)})},size:function(){return Dr.size}};return jr;function on(je,Sr){var Te=Sr===void 0?je:"".concat(Sr,"|").concat(je);return Pr.set(Te,[je,Sr]),Te}}e.createModeAwareCache=F;function $(Dr,Pr,jr){e.Debug.assert(Pr.length===jr.length);for(var on=F(),je=0;je<Pr.length;++je){var Sr=Pr[je],Te=e.isString(Sr)?Sr:Sr.fileName.toLowerCase(),Ye=e.isString(Sr)?e.getModeForResolutionAtIndex(Dr,je):Sr.resolutionMode||Dr.impliedNodeFormat;on.set(Te,Ye,jr[je])}return on}e.zipToModeAwareCache=$;function L(Dr,Pr,jr,on,je){var Sr=h(Dr,Pr,on||(on=X(jr)));je||(je=X(jr));var Te=M(Dr,Pr);return vi(vi(vi({},Te),Sr),{getOrCreateCacheForModuleName:Ke,clear:Ye,update:ue,getPackageJsonInfoCache:function(){return Te},clearAllExceptPackageJsonInfoCache:Qe});function Ye(){Qe(),Te.clear()}function Qe(){Sr.clear(),je.clear()}function ue(hr){V(hr,on,je)}function Ke(hr,_r,Or){return e.Debug.assert(!e.isExternalModuleNameRelative(hr)),H(je,Or,_r===void 0?hr:"".concat(_r,"|").concat(hr),tr)}function tr(){var hr=new e.Map;return{get:_r,set:Or};function _r(fn){return hr.get(e.toPath(fn,Dr,Pr))}function Or(fn,Vr){var Wn=e.toPath(fn,Dr,Pr);if(!hr.has(Wn)){hr.set(Wn,Vr);for(var bn=Vr.resolvedModule&&(Vr.resolvedModule.originalPath||Vr.resolvedModule.resolvedFileName),qn=bn&&zr(Wn,bn),yn=Wn;yn!==qn;){var Hn=e.getDirectoryPath(yn);if(Hn===yn||hr.has(Hn))break;hr.set(Hn,Vr),yn=Hn}}}function zr(fn,Vr){for(var Wn=e.toPath(e.getDirectoryPath(Vr),Dr,Pr),bn=0,qn=Math.min(fn.length,Wn.length);bn<qn&&fn.charCodeAt(bn)===Wn.charCodeAt(bn);)bn++;if(bn===fn.length&&(Wn.length===bn||Wn[bn]===e.directorySeparator))return fn;var yn=e.getRootLength(fn);if(!(bn<yn)){var Hn=fn.lastIndexOf(e.directorySeparator,bn-1);if(Hn!==-1)return fn.substr(0,Math.max(Hn,yn))}}}}e.createModuleResolutionCache=L;function P(Dr,Pr,jr,on,je){var Sr=h(Dr,Pr,je||(je=X(jr)));return on||(on=M(Dr,Pr)),vi(vi(vi({},on),Sr),{clear:Te,clearAllExceptPackageJsonInfoCache:Ye});function Te(){Ye(),on.clear()}function Ye(){Sr.clear()}}e.createTypeReferenceDirectiveResolutionCache=P;function N(Dr,Pr,jr,on){var je=e.getDirectoryPath(Pr),Sr=jr&&jr.getOrCreateCacheForDirectory(je);if(!!Sr)return Sr.get(Dr,on)}e.resolveModuleNameFromCache=N;function J(Dr,Pr,jr,on,je,Sr,Te){var Ye=ne(jr,on);Sr&&(jr=Sr.commandLine.options),Ye&&(o(on,e.Diagnostics.Resolving_module_0_from_1,Dr,Pr),Sr&&o(on,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Sr.sourceFile.fileName));var Qe=e.getDirectoryPath(Pr),ue=je&&je.getOrCreateCacheForDirectory(Qe,Sr),Ke=ue&&ue.get(Dr,Te);if(Ke)Ye&&o(on,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Dr,Qe);else{var tr=jr.moduleResolution;if(tr===void 0){switch(e.getEmitModuleKind(jr)){case e.ModuleKind.CommonJS:tr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:tr=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:tr=e.ModuleResolutionKind.NodeNext;break;default:tr=e.ModuleResolutionKind.Classic;break}Ye&&o(on,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[tr])}else Ye&&o(on,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[tr]);switch(e.perfLogger.logStartResolveModule(Dr),tr){case e.ModuleResolutionKind.Node16:Ke=Z(Dr,Pr,jr,on,je,Sr,Te);break;case e.ModuleResolutionKind.NodeNext:Ke=B(Dr,Pr,jr,on,je,Sr,Te);break;case e.ModuleResolutionKind.NodeJs:Ke=pe(Dr,Pr,jr,on,je,Sr);break;case e.ModuleResolutionKind.Classic:Ke=xn(Dr,Pr,jr,on,je,Sr);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(tr))}Ke&&Ke.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(Dr,'" resolved to "').concat(Ke.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(Ke&&Ke.resolvedModule?""+Ke.resolvedModule.resolvedFileName:"null"),ue&&(ue.set(Dr,Te,Ke),e.isExternalModuleNameRelative(Dr)||je.getOrCreateCacheForModuleName(Dr,Te,Sr).set(Qe,Ke))}return Ye&&(Ke.resolvedModule?Ke.resolvedModule.packageId?o(on,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,Dr,Ke.resolvedModule.resolvedFileName,e.packageIdToString(Ke.resolvedModule.packageId)):o(on,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,Dr,Ke.resolvedModule.resolvedFileName):o(on,e.Diagnostics.Module_name_0_was_not_resolved,Dr)),Ke}e.resolveModuleName=J;function q(Dr,Pr,jr,on,je){var Sr=G(Dr,Pr,on,je);return Sr?Sr.value:e.isExternalModuleNameRelative(Pr)?ye(Dr,Pr,jr,on,je):b(Dr,Pr,on,je)}function G(Dr,Pr,jr,on){var je,Sr=on.compilerOptions,Te=Sr.baseUrl,Ye=Sr.paths,Qe=Sr.configFile;if(Ye&&!e.pathIsRelative(Pr)){on.traceEnabled&&(Te&&o(on.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Te,Pr),o(on.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,Pr));var ue=e.getPathsBasePath(on.compilerOptions,on.host),Ke=(Qe==null?void 0:Qe.configFileSpecs)?(je=Qe.configFileSpecs).pathPatterns||(je.pathPatterns=e.tryParsePatterns(Ye)):void 0;return Rr(Dr,Pr,ue,Ye,Ke,jr,!1,on)}}function ye(Dr,Pr,jr,on,je){if(!!je.compilerOptions.rootDirs){je.traceEnabled&&o(je.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,Pr);for(var Sr=e.normalizePath(e.combinePaths(jr,Pr)),Te,Ye,Qe=0,ue=je.compilerOptions.rootDirs;Qe<ue.length;Qe++){var Ke=ue[Qe],tr=e.normalizePath(Ke);e.endsWith(tr,e.directorySeparator)||(tr+=e.directorySeparator);var hr=e.startsWith(Sr,tr)&&(Ye===void 0||Ye.length<tr.length);je.traceEnabled&&o(je.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,tr,Sr,hr),hr&&(Ye=tr,Te=Ke)}if(Ye){je.traceEnabled&&o(je.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Sr,Ye);var _r=Sr.substr(Ye.length);je.traceEnabled&&o(je.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,_r,Ye,Sr);var Or=on(Dr,Sr,!e.directoryProbablyExists(jr,je.host),je);if(Or)return Or;je.traceEnabled&&o(je.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var zr=0,fn=je.compilerOptions.rootDirs;zr<fn.length;zr++){var Ke=fn[zr];if(Ke!==Te){var Vr=e.combinePaths(e.normalizePath(Ke),_r);je.traceEnabled&&o(je.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,_r,Ke,Vr);var Wn=e.getDirectoryPath(Vr),bn=on(Dr,Vr,!e.directoryProbablyExists(Wn,je.host),je);if(bn)return bn}}je.traceEnabled&&o(je.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function b(Dr,Pr,jr,on){var je=on.compilerOptions.baseUrl;if(!!je){on.traceEnabled&&o(on.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,je,Pr);var Sr=e.normalizePath(e.combinePaths(je,Pr));return on.traceEnabled&&o(on.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,Pr,je,Sr),jr(Dr,Sr,!e.directoryProbablyExists(e.getDirectoryPath(Sr),on.host),on)}}function x(Dr,Pr,jr){var on=ge(Dr,Pr,jr),je=on.resolvedModule,Sr=on.failedLookupLocations;if(!je)throw new Error("Could not resolve JS module '".concat(Dr,"' starting at '").concat(Pr,"'. Looked in: ").concat(Sr.join(", ")));return je.resolvedFileName}e.resolveJSModule=x;var T;(function(Dr){Dr[Dr.None=0]="None",Dr[Dr.Imports=2]="Imports",Dr[Dr.SelfName=4]="SelfName",Dr[Dr.Exports=8]="Exports",Dr[Dr.ExportsPatternTrailers=16]="ExportsPatternTrailers",Dr[Dr.AllFeatures=30]="AllFeatures",Dr[Dr.Node16Default=30]="Node16Default",Dr[Dr.NodeNextDefault=30]="NodeNextDefault",Dr[Dr.EsmMode=32]="EsmMode"})(T||(T={}));function Z(Dr,Pr,jr,on,je,Sr,Te){return U(T.Node16Default,Dr,Pr,jr,on,je,Sr,Te)}function B(Dr,Pr,jr,on,je,Sr,Te){return U(T.NodeNextDefault,Dr,Pr,jr,on,je,Sr,Te)}var u=[ie.JavaScript],A=[ie.TypeScript,ie.JavaScript],w=zn(zn([],A,!0),[ie.Json],!1),z=[ie.TSConfig];function U(Dr,Pr,jr,on,je,Sr,Te,Ye){var Qe=e.getDirectoryPath(jr),ue=Ye===e.ModuleKind.ESNext?T.EsmMode:0,Ke=on.noDtsResolution?[ie.TsOnly,ie.JavaScript]:A;return on.resolveJsonModule&&(Ke=zn(zn([],Ke,!0),[ie.Json],!1)),He(Dr|ue,Pr,Qe,on,je,Sr,Ke,Te)}function ge(Dr,Pr,jr){return He(T.None,Dr,Pr,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},jr,void 0,u,void 0)}function pe(Dr,Pr,jr,on,je,Sr,Te){var Ye;return Te?Ye=z:jr.noDtsResolution?(Ye=[ie.TsOnly],jr.allowJs&&Ye.push(ie.JavaScript),jr.resolveJsonModule&&Ye.push(ie.Json)):Ye=jr.resolveJsonModule?w:A,He(T.None,Dr,e.getDirectoryPath(Pr),jr,on,je,Ye,Sr)}e.nodeModuleNameResolver=pe;function He(Dr,Pr,jr,on,je,Sr,Te,Ye){var Qe,ue,Ke=ne(on,je),tr=[],hr=[],_r=Dr&T.EsmMode?["node","import","types"]:["node","require","types"];on.noDtsResolution&&_r.pop();var Or=[],zr={compilerOptions:on,host:je,traceEnabled:Ke,failedLookupLocations:tr,affectingLocations:hr,packageJsonInfoCache:Sr,features:Dr,conditions:_r,requestContainingDirectory:jr,reportDiagnostic:function(Wn){return void Or.push(Wn)}};Ke&&e.getEmitModuleResolutionKind(on)>=e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(on)<=e.ModuleResolutionKind.NodeNext&&o(je,e.Diagnostics.Resolving_in_0_mode_with_conditions_1,Dr&T.EsmMode?"ESM":"CJS",_r.map(function(Wn){return"'".concat(Wn,"'")}).join(", "));var fn=e.forEach(Te,function(Wn){return Vr(Wn)});return Q((Qe=fn==null?void 0:fn.value)===null||Qe===void 0?void 0:Qe.resolved,(ue=fn==null?void 0:fn.value)===null||ue===void 0?void 0:ue.isExternalLibraryImport,tr,hr,Or,zr.resultFromCache);function Vr(Wn){var bn=function(Ir,we,hn,jn){return Le(Ir,we,hn,jn,!0)},qn=q(Wn,Pr,jr,bn,zr);if(qn)return Qn({resolved:qn,isExternalLibraryImport:Ae(qn.path)});if(e.isExternalModuleNameRelative(Pr)){var Ni=Be(jr,Pr),gi=Ni.path,Pn=Ni.parts,Pe=Le(Wn,gi,!1,zr,!0);return Pe&&Qn({resolved:Pe,isExternalLibraryImport:e.contains(Pn,"node_modules")})}else{var yn;if(Dr&T.Imports&&e.startsWith(Pr,"#")&&(yn=Br(Wn,Pr,jr,zr,Sr,Ye)),!yn&&Dr&T.SelfName&&(yn=Cr(Wn,Pr,jr,zr,Sr,Ye)),yn||(Ke&&o(je,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,Pr,ie[Wn]),yn=ze(Wn,Pr,jr,zr,Sr,Ye)),!yn)return;var Hn=yn.value;if(!on.preserveSymlinks&&Hn&&!Hn.originalPath){var Ai=Me(Hn.path,je,Ke),ti=S(Ai,Hn.path,je),Hi=ti?void 0:Hn.path;Hn=vi(vi({},Hn),{path:ti?Hn.path:Ai,originalPath:Hi})}return{value:Hn&&{resolved:Hn,isExternalLibraryImport:!0}}}}}function Be(Dr,Pr){var jr=e.combinePaths(Dr,Pr),on=e.getPathComponents(jr),je=e.lastOrUndefined(on),Sr=je==="."||je===".."?e.ensureTrailingDirectorySeparator(e.normalizePath(jr)):e.normalizePath(jr);return{path:Sr,parts:on}}function Me(Dr,Pr,jr){if(!Pr.realpath)return Dr;var on=e.normalizePath(Pr.realpath(Dr));return jr&&o(Pr,e.Diagnostics.Resolving_real_path_for_0_result_1,Dr,on),e.Debug.assert(Pr.fileExists(on),"".concat(Dr," linked to nonexistent file ").concat(on)),on}function Le(Dr,Pr,jr,on,je){if(on.traceEnabled&&o(on.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,Pr,ie[Dr]),!e.hasTrailingDirectorySeparator(Pr)){if(!jr){var Sr=e.getDirectoryPath(Pr);e.directoryProbablyExists(Sr,on.host)||(on.traceEnabled&&o(on.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Sr),jr=!0)}var Te=be(Dr,Pr,jr,on);if(Te){var Ye=je?Xe(Te.path):void 0,Qe=Ye?t(Ye,!1,on):void 0;return K(Qe,Te)}}if(!jr){var ue=e.directoryProbablyExists(Pr,on.host);ue||(on.traceEnabled&&o(on.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Pr),jr=!0)}if(!(on.features&T.EsmMode))return Re(Dr,Pr,jr,on,je)}e.nodeModulesPathPart="/node_modules/";function Ae(Dr){return e.stringContains(Dr,e.nodeModulesPathPart)}e.pathContainsNodeModules=Ae;function Xe(Dr){var Pr=e.normalizePath(Dr),jr=Pr.lastIndexOf(e.nodeModulesPathPart);if(jr!==-1){var on=jr+e.nodeModulesPathPart.length,je=Ne(Pr,on);return Pr.charCodeAt(on)===64&&(je=Ne(Pr,je)),Pr.slice(0,je)}}e.parseNodeModuleFromPath=Xe;function Ne(Dr,Pr){var jr=Dr.indexOf(e.directorySeparator,Pr+1);return jr===-1?Pr:jr}function Oe(Dr,Pr,jr,on){return se(be(Dr,Pr,jr,on))}function be(Dr,Pr,jr,on){if(Dr===ie.Json||Dr===ie.TSConfig){var je=e.tryRemoveExtension(Pr,".json"),Sr=je?Pr.substring(je.length):"";return je===void 0&&Dr===ie.Json?void 0:j(je||Pr,Dr,Sr,jr,on)}if(!(on.features&T.EsmMode)){var Te=j(Pr,Dr,"",jr,on);if(Te)return Te}return Y(Dr,Pr,jr,on)}function Y(Dr,Pr,jr,on){if(e.hasJSFileExtension(Pr)||e.fileExtensionIs(Pr,".json")&&on.compilerOptions.resolveJsonModule){var je=e.removeFileExtension(Pr),Sr=Pr.substring(je.length);return on.traceEnabled&&o(on.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,Pr,Sr),j(je,Dr,Sr,jr,on)}}function d(Dr,Pr,jr,on){if((Dr===ie.TypeScript||Dr===ie.DtsOnly)&&e.fileExtensionIsOneOf(Pr,e.supportedTSExtensionsFlat)){var je=Ce(Pr,jr,on);return je!==void 0?{path:Pr,ext:e.tryExtractTSExtension(Pr)}:void 0}return Y(Dr,Pr,jr,on)}function j(Dr,Pr,jr,on,je){if(!on){var Sr=e.getDirectoryPath(Dr);Sr&&(on=!e.directoryProbablyExists(Sr,je.host))}switch(Pr){case ie.DtsOnly:switch(jr){case".mjs":case".mts":case".d.mts":return Ye(".d.mts");case".cjs":case".cts":case".d.cts":return Ye(".d.cts");case".json":return Dr+=".json",Ye(".d.ts");default:return Ye(".d.ts")}case ie.TypeScript:case ie.TsOnly:var Te=Pr===ie.TypeScript;switch(jr){case".mjs":case".mts":case".d.mts":return Ye(".mts")||(Te?Ye(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return Ye(".cts")||(Te?Ye(".d.cts"):void 0);case".json":return Dr+=".json",Te?Ye(".d.ts"):void 0;default:return Ye(".ts")||Ye(".tsx")||(Te?Ye(".d.ts"):void 0)}case ie.JavaScript:switch(jr){case".mjs":case".mts":case".d.mts":return Ye(".mjs");case".cjs":case".cts":case".d.cts":return Ye(".cjs");case".json":return Ye(".json");default:return Ye(".js")||Ye(".jsx")}case ie.TSConfig:case ie.Json:return Ye(".json")}function Ye(Qe){var ue=Ce(Dr+Qe,on,je);return ue===void 0?void 0:{path:ue,ext:Qe}}}function Ce(Dr,Pr,jr){var on,je;if(!((on=jr.compilerOptions.moduleSuffixes)===null||on===void 0?void 0:on.length))return Se(Dr,Pr,jr);var Sr=(je=e.tryGetExtensionFromPath(Dr))!==null&&je!==void 0?je:"",Te=Sr?e.removeExtension(Dr,Sr):Dr;return e.forEach(jr.compilerOptions.moduleSuffixes,function(Ye){return Se(Te+Ye+Sr,Pr,jr)})}function Se(Dr,Pr,jr){if(!Pr){if(jr.host.fileExists(Dr))return jr.traceEnabled&&o(jr.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,Dr),Dr;jr.traceEnabled&&o(jr.host,e.Diagnostics.File_0_does_not_exist,Dr)}jr.failedLookupLocations.push(Dr)}function Re(Dr,Pr,jr,on,je){je===void 0&&(je=!0);var Sr=je?t(Pr,jr,on):void 0,Te=Sr&&Sr.contents.packageJsonContent,Ye=Sr&&Sr.contents.versionPaths;return K(Sr,qr(Dr,Pr,jr,on,Te,Ye))}function er(Dr,Pr,jr,on,je){if(!je&&Dr.contents.resolvedEntrypoints!==void 0)return Dr.contents.resolvedEntrypoints;var Sr,Te=je?ie.JavaScript:ie.TypeScript,Ye=C(Pr),Qe=mr(on==null?void 0:on.getPackageJsonInfoCache(),jr,Pr);Qe.conditions=["node","require","types"],Qe.requestContainingDirectory=Dr.packageDirectory;var ue=qr(Te,Dr.packageDirectory,!1,Qe,Dr.contents.packageJsonContent,Dr.contents.versionPaths);if(Sr=e.append(Sr,ue==null?void 0:ue.path),Ye&T.Exports&&Dr.contents.packageJsonContent.exports)for(var Ke=0,tr=[["node","import","types"],["node","require","types"]];Ke<tr.length;Ke++){var hr=tr[Ke],_r=vi(vi({},Qe),{failedLookupLocations:[],conditions:hr}),Or=wr(Dr,Dr.contents.packageJsonContent.exports,_r,Te);if(Or)for(var zr=0,fn=Or;zr<fn.length;zr++){var Vr=fn[zr];Sr=e.appendIfUnique(Sr,Vr.path)}}return Dr.contents.resolvedEntrypoints=Sr||!1}e.getEntrypointsFromPackageJsonInfo=er;function wr(Dr,Pr,jr,on){var je;if(e.isArray(Pr))for(var Sr=0,Te=Pr;Sr<Te.length;Sr++){var Ye=Te[Sr];ue(Ye)}else if(typeof Pr=="object"&&Pr!==null&&kr(Pr))for(var Qe in Pr)ue(Pr[Qe]);else ue(Pr);return je;function ue(Ke){var tr,hr;if(typeof Ke=="string"&&e.startsWith(Ke,"./")&&Ke.indexOf("*")===-1){var _r=e.getPathComponents(Ke).slice(2);if(_r.indexOf("..")>=0||_r.indexOf(".")>=0||_r.indexOf("node_modules")>=0)return!1;var Or=e.combinePaths(Dr.packageDirectory,Ke),zr=e.getNormalizedAbsolutePath(Or,(hr=(tr=jr.host).getCurrentDirectory)===null||hr===void 0?void 0:hr.call(tr)),fn=d(on,zr,!1,jr);if(fn)return je=e.appendIfUnique(je,fn,function(yn,Hn){return yn.path===Hn.path}),!0}else if(Array.isArray(Ke))for(var Vr=0,Wn=Ke;Vr<Wn.length;Vr++){var bn=Wn[Vr],qn=ue(bn);if(qn)return!0}else if(typeof Ke=="object"&&Ke!==null)return e.forEach(e.getOwnKeys(Ke),function(yn){if(yn==="default"||e.contains(jr.conditions,yn)||Ee(jr.conditions,yn))return ue(Ke[yn]),!0})}}function mr(Dr,Pr,jr){return{host:Pr,compilerOptions:jr,traceEnabled:ne(jr,Pr),failedLookupLocations:e.noopPush,affectingLocations:e.noopPush,packageJsonInfoCache:Dr,features:T.None,conditions:e.emptyArray,requestContainingDirectory:void 0,reportDiagnostic:e.noop}}e.getTemporaryModuleResolutionState=mr;function Ue(Dr,Pr){var jr=e.getPathComponents(Dr);for(jr.pop();jr.length>0;){var on=t(e.getPathFromPathComponents(jr),!1,Pr);if(on)return on;jr.pop()}}e.getPackageScopeForPath=Ue;function t(Dr,Pr,jr){var on,je,Sr,Te=jr.host,Ye=jr.traceEnabled,Qe=e.combinePaths(Dr,"package.json");if(Pr){jr.failedLookupLocations.push(Qe);return}var ue=(on=jr.packageJsonInfoCache)===null||on===void 0?void 0:on.getPackageJsonInfo(Qe);if(ue!==void 0){if(typeof ue!="boolean")return Ye&&o(Te,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,Qe),jr.affectingLocations.push(Qe),ue.packageDirectory===Dr?ue:{packageDirectory:Dr,contents:ue.contents};ue&&Ye&&o(Te,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,Qe),jr.failedLookupLocations.push(Qe);return}var Ke=e.directoryProbablyExists(Dr,Te);if(Ke&&Te.fileExists(Qe)){var tr=e.readJson(Qe,Te);Ye&&o(Te,e.Diagnostics.Found_package_json_at_0,Qe);var hr=ae(tr,jr),_r={packageDirectory:Dr,contents:{packageJsonContent:tr,versionPaths:hr,resolvedEntrypoints:void 0}};return(je=jr.packageJsonInfoCache)===null||je===void 0||je.setPackageJsonInfo(Qe,_r),jr.affectingLocations.push(Qe),_r}else Ke&&Ye&&o(Te,e.Diagnostics.File_0_does_not_exist,Qe),(Sr=jr.packageJsonInfoCache)===null||Sr===void 0||Sr.setPackageJsonInfo(Qe,Ke),jr.failedLookupLocations.push(Qe)}e.getPackageJsonInfo=t;function qr(Dr,Pr,jr,on,je,Sr){var Te;if(je)switch(Dr){case ie.JavaScript:case ie.Json:case ie.TsOnly:Te=te(je,Pr,on);break;case ie.TypeScript:Te=le(je,Pr,on)||te(je,Pr,on);break;case ie.DtsOnly:Te=le(je,Pr,on);break;case ie.TSConfig:Te=de(je,Pr,on);break;default:return e.Debug.assertNever(Dr)}var Ye=function(Or,zr,fn,Vr){var Wn=Ce(zr,fn,Vr);if(Wn){var bn=ln(Or,Wn);if(bn)return se(bn);Vr.traceEnabled&&o(Vr.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,Wn)}var qn=Or===ie.DtsOnly?ie.TypeScript:Or,yn=Vr.features;(je==null?void 0:je.type)!=="module"&&(Vr.features&=~T.EsmMode);var Hn=Le(qn,zr,fn,Vr,!1);return Vr.features=yn,Hn},Qe=Te?!e.directoryProbablyExists(e.getDirectoryPath(Te),on.host):void 0,ue=jr||!e.directoryProbablyExists(Pr,on.host),Ke=e.combinePaths(Pr,Dr===ie.TSConfig?"tsconfig":"index");if(Sr&&(!Te||e.containsPath(Pr,Te))){var tr=e.getRelativePathFromDirectory(Pr,Te||Ke,!1);on.traceEnabled&&o(on.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Sr.version,e.version,tr);var hr=Rr(Dr,tr,Pr,Sr.paths,void 0,Ye,Qe||ue,on);if(hr)return O(hr.value)}var _r=Te&&O(Ye(Dr,Te,Qe,on));if(_r)return _r;if(!(on.features&T.EsmMode))return be(Dr,Ke,ue,on)}function ln(Dr,Pr){var jr=e.tryGetExtensionFromPath(Pr);return jr!==void 0&&dr(Dr,jr)?{path:Pr,ext:jr}:void 0}function dr(Dr,Pr){switch(Dr){case ie.JavaScript:return Pr===".js"||Pr===".jsx"||Pr===".mjs"||Pr===".cjs";case ie.TSConfig:case ie.Json:return Pr===".json";case ie.TypeScript:return Pr===".ts"||Pr===".tsx"||Pr===".mts"||Pr===".cts"||Pr===".d.ts"||Pr===".d.mts"||Pr===".d.cts";case ie.TsOnly:return Pr===".ts"||Pr===".tsx"||Pr===".mts"||Pr===".cts";case ie.DtsOnly:return Pr===".d.ts"||Pr===".d.mts"||Pr===".d.cts"}}function vr(Dr){var Pr=Dr.indexOf(e.directorySeparator);return Dr[0]==="@"&&(Pr=Dr.indexOf(e.directorySeparator,Pr+1)),Pr===-1?{packageName:Dr,rest:""}:{packageName:Dr.slice(0,Pr),rest:Dr.slice(Pr+1)}}e.parsePackageName=vr;function kr(Dr){return e.every(e.getOwnKeys(Dr),function(Pr){return e.startsWith(Pr,".")})}e.allKeysStartWithDot=kr;function Ur(Dr){return!e.some(e.getOwnKeys(Dr),function(Pr){return e.startsWith(Pr,".")})}function Cr(Dr,Pr,jr,on,je,Sr){var Te,Ye,Qe=e.getNormalizedAbsolutePath(e.combinePaths(jr,"dummy"),(Ye=(Te=on.host).getCurrentDirectory)===null||Ye===void 0?void 0:Ye.call(Te)),ue=Ue(Qe,on);if(!(!ue||!ue.contents.packageJsonContent.exports)&&typeof ue.contents.packageJsonContent.name=="string"){var Ke=e.getPathComponents(Pr),tr=e.getPathComponents(ue.contents.packageJsonContent.name);if(!!e.every(tr,function(_r,Or){return Ke[Or]===_r})){var hr=Ke.slice(tr.length);return rn(ue,Dr,e.length(hr)?".".concat(e.directorySeparator).concat(hr.join(e.directorySeparator)):".",on,je,Sr)}}}function rn(Dr,Pr,jr,on,je,Sr){if(!!Dr.contents.packageJsonContent.exports){if(jr==="."){var Te=void 0;if(typeof Dr.contents.packageJsonContent.exports=="string"||Array.isArray(Dr.contents.packageJsonContent.exports)||typeof Dr.contents.packageJsonContent.exports=="object"&&Ur(Dr.contents.packageJsonContent.exports)?Te=Dr.contents.packageJsonContent.exports:e.hasProperty(Dr.contents.packageJsonContent.exports,".")&&(Te=Dr.contents.packageJsonContent.exports["."]),Te){var Ye=or(Pr,on,je,Sr,jr,Dr,!1);return Ye(Te,"",!1,".")}}else if(kr(Dr.contents.packageJsonContent.exports)){if(typeof Dr.contents.packageJsonContent.exports!="object")return on.traceEnabled&&o(on.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,jr,Dr.packageDirectory),Qn(void 0);var Qe=ve(Pr,on,je,Sr,jr,Dr.contents.packageJsonContent.exports,Dr,!1);if(Qe)return Qe}return on.traceEnabled&&o(on.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,jr,Dr.packageDirectory),Qn(void 0)}}function Br(Dr,Pr,jr,on,je,Sr){var Te,Ye;if(Pr==="#"||e.startsWith(Pr,"#/"))return on.traceEnabled&&o(on.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,Pr),Qn(void 0);var Qe=e.getNormalizedAbsolutePath(e.combinePaths(jr,"dummy"),(Ye=(Te=on.host).getCurrentDirectory)===null||Ye===void 0?void 0:Ye.call(Te)),ue=Ue(Qe,on);if(!ue)return on.traceEnabled&&o(on.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,Qe),Qn(void 0);if(!ue.contents.packageJsonContent.imports)return on.traceEnabled&&o(on.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,ue.packageDirectory),Qn(void 0);var Ke=ve(Dr,on,je,Sr,Pr,ue.contents.packageJsonContent.imports,ue,!0);return Ke||(on.traceEnabled&&o(on.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,Pr,ue.packageDirectory),Qn(void 0))}function pn(Dr,Pr){var jr=Dr.indexOf("*"),on=Pr.indexOf("*"),je=jr===-1?Dr.length:jr+1,Sr=on===-1?Pr.length:on+1;return je>Sr?-1:Sr>je||jr===-1?1:on===-1||Dr.length>Pr.length?-1:Pr.length>Dr.length?1:0}e.comparePatternKeys=pn;function ve(Dr,Pr,jr,on,je,Sr,Te,Ye){var Qe=or(Dr,Pr,jr,on,je,Te,Ye);if(!e.endsWith(je,e.directorySeparator)&&je.indexOf("*")===-1&&e.hasProperty(Sr,je)){var ue=Sr[je];return Qe(ue,"",!1,je)}for(var Ke=e.sort(e.filter(e.getOwnKeys(Sr),function(Vr){return Vr.indexOf("*")!==-1||e.endsWith(Vr,"/")}),pn),tr=0,hr=Ke;tr<hr.length;tr++){var _r=hr[tr];if(Pr.features&T.ExportsPatternTrailers&&fn(_r,je)){var ue=Sr[_r],Or=_r.indexOf("*"),zr=je.substring(_r.substring(0,Or).length,je.length-(_r.length-1-Or));return Qe(ue,zr,!0,_r)}else if(e.endsWith(_r,"*")&&e.startsWith(je,_r.substring(0,_r.length-1))){var ue=Sr[_r],zr=je.substring(_r.length-1);return Qe(ue,zr,!0,_r)}else if(e.startsWith(je,_r)){var ue=Sr[_r],zr=je.substring(_r.length);return Qe(ue,zr,!1,_r)}}function fn(Vr,Wn){if(e.endsWith(Vr,"*"))return!1;var bn=Vr.indexOf("*");return bn===-1?!1:e.startsWith(Wn,Vr.substring(0,bn))&&e.endsWith(Wn,Vr.substring(bn+1))}}function or(Dr,Pr,jr,on,je,Sr,Te){return Ye;function Ye(Qe,ue,Ke,tr){if(typeof Qe=="string"){if(!Ke&&ue.length>0&&!e.endsWith(Qe,"/"))return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Sr.packageDirectory,je),Qn(void 0);if(!e.startsWith(Qe,"./")){if(Te&&!e.startsWith(Qe,"../")&&!e.startsWith(Qe,"/")&&!e.isRootedDiskPath(Qe)){var hr=Ke?Qe.replace(/\*/g,ue):Qe+ue;ai(Pr,e.Diagnostics.Using_0_subpath_1_with_target_2,"imports",tr,hr),ai(Pr,e.Diagnostics.Resolving_module_0_from_1,hr,Sr.packageDirectory+"/");var _r=He(Pr.features,hr,Sr.packageDirectory+"/",Pr.compilerOptions,Pr.host,jr,[Dr],on);return Qn(_r.resolvedModule?{path:_r.resolvedModule.resolvedFileName,extension:_r.resolvedModule.extension,packageId:_r.resolvedModule.packageId,originalPath:_r.resolvedModule.originalPath}:void 0)}return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Sr.packageDirectory,je),Qn(void 0)}var Or=e.pathIsRelative(Qe)?e.getPathComponents(Qe).slice(1):e.getPathComponents(Qe),zr=Or.slice(1);if(zr.indexOf("..")>=0||zr.indexOf(".")>=0||zr.indexOf("node_modules")>=0)return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Sr.packageDirectory,je),Qn(void 0);var fn=e.combinePaths(Sr.packageDirectory,Qe),Vr=e.getPathComponents(ue);if(Vr.indexOf("..")>=0||Vr.indexOf(".")>=0||Vr.indexOf("node_modules")>=0)return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Sr.packageDirectory,je),Qn(void 0);Pr.traceEnabled&&o(Pr.host,e.Diagnostics.Using_0_subpath_1_with_target_2,Te?"imports":"exports",tr,Ke?Qe.replace(/\*/g,ue):Qe+ue);var Wn=gi(Ke?fn.replace(/\*/g,ue):fn+ue),bn=Ir(Wn,ue,e.combinePaths(Sr.packageDirectory,"package.json"),Te);return bn||Qn(K(Sr,d(Dr,Wn,!1,Pr)))}else if(typeof Qe=="object"&&Qe!==null)if(Array.isArray(Qe)){if(!e.length(Qe))return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Sr.packageDirectory,je),Qn(void 0);for(var ti=0,Hi=Qe;ti<Hi.length;ti++){var Ni=Hi[ti],_r=Ye(Ni,ue,Ke,tr);if(_r)return _r}}else{for(var qn=0,yn=e.getOwnKeys(Qe);qn<yn.length;qn++){var Hn=yn[qn];if(Hn==="default"||Pr.conditions.indexOf(Hn)>=0||Ee(Pr.conditions,Hn)){ai(Pr,e.Diagnostics.Matched_0_condition_1,Te?"imports":"exports",Hn);var Ai=Qe[Hn],_r=Ye(Ai,ue,Ke,tr);if(_r)return _r}else ai(Pr,e.Diagnostics.Saw_non_matching_condition_0,Hn)}return}else if(Qe===null)return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,Sr.packageDirectory,je),Qn(void 0);return Pr.traceEnabled&&o(Pr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Sr.packageDirectory,je),Qn(void 0);function gi(we){var hn,jn;return we===void 0?we:e.getNormalizedAbsolutePath(we,(jn=(hn=Pr.host).getCurrentDirectory)===null||jn===void 0?void 0:jn.call(hn))}function Pn(we,hn){return e.ensureTrailingDirectorySeparator(e.combinePaths(we,hn))}function Pe(){return Pr.host.useCaseSensitiveFileNames?typeof Pr.host.useCaseSensitiveFileNames=="boolean"?Pr.host.useCaseSensitiveFileNames:Pr.host.useCaseSensitiveFileNames():!0}function Ir(we,hn,jn,gn){var nn,Cn,Dn,On;if((Dr===ie.TypeScript||Dr===ie.JavaScript||Dr===ie.Json)&&(Pr.compilerOptions.declarationDir||Pr.compilerOptions.outDir)&&we.indexOf("/node_modules/")===-1&&(Pr.compilerOptions.configFile?e.containsPath(Sr.packageDirectory,gi(Pr.compilerOptions.configFile.fileName),!Pe()):!0)){var Xn=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:Pe}),Ge=[];if(Pr.compilerOptions.rootDir||Pr.compilerOptions.composite&&Pr.compilerOptions.configFilePath){var cn=gi(e.getCommonSourceDirectory(Pr.compilerOptions,function(){return[]},((Cn=(nn=Pr.host).getCurrentDirectory)===null||Cn===void 0?void 0:Cn.call(nn))||"",Xn));Ge.push(cn)}else if(Pr.requestContainingDirectory){var Vn=gi(e.combinePaths(Pr.requestContainingDirectory,"index.ts")),cn=gi(e.getCommonSourceDirectory(Pr.compilerOptions,function(){return[Vn,gi(jn)]},((On=(Dn=Pr.host).getCurrentDirectory)===null||On===void 0?void 0:On.call(Dn))||"",Xn));Ge.push(cn);for(var Ki=e.ensureTrailingDirectorySeparator(cn);Ki&&Ki.length>1;){var dt=e.getPathComponents(Ki);dt.pop();var qi=e.getPathFromPathComponents(dt);Ge.unshift(qi),Ki=e.ensureTrailingDirectorySeparator(qi)}}Ge.length>1&&Pr.reportDiagnostic(e.createCompilerDiagnostic(gn?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,hn===""?".":hn,jn));for(var Ci=0,Tt=Ge;Ci<Tt.length;Ci++)for(var ot=Tt[Ci],Zi=Xo(ot),ni=0,Va=Zi;ni<Va.length;ni++){var Ua=Va[ni];if(e.containsPath(Ua,we,!Pe()))for(var za=we.slice(Ua.length+1),Co=e.combinePaths(ot,za),Ea=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"],ho=0,Aa=Ea;ho<Aa.length;ho++){var Vi=Aa[ho];if(e.fileExtensionIs(Co,Vi))for(var Xi=e.getPossibleOriginalInputExtensionForExtension(Co),ao=0,fo=Xi;ao<fo.length;ao++){var As=fo[ao],so=e.changeAnyExtension(Co,As,Vi,!Pe());if(!(Dr===ie.TypeScript&&e.hasJSFileExtension(so)||Dr===ie.JavaScript&&e.hasTSFileExtension(so))&&Pr.host.fileExists(so))return Qn(K(Sr,d(Dr,so,!1,Pr)))}}}}return;function Xo(Ho){var Zo,To,pr=Pr.compilerOptions.configFile?((To=(Zo=Pr.host).getCurrentDirectory)===null||To===void 0?void 0:To.call(Zo))||"":Ho,Fr=[];return Pr.compilerOptions.declarationDir&&Fr.push(gi(Pn(pr,Pr.compilerOptions.declarationDir))),Pr.compilerOptions.outDir&&Pr.compilerOptions.outDir!==Pr.compilerOptions.declarationDir&&Fr.push(gi(Pn(pr,Pr.compilerOptions.outDir))),Fr}}}}function Ee(Dr,Pr){if(Dr.indexOf("types")===-1||!e.startsWith(Pr,"types@"))return!1;var jr=e.VersionRange.tryParse(Pr.substring("types@".length));return jr?jr.test(e.version):!1}e.isApplicableVersionedTypesKey=Ee;function ze(Dr,Pr,jr,on,je,Sr){return xe(Dr,Pr,jr,on,!1,je,Sr)}function Ar(Dr,Pr,jr){return xe(ie.DtsOnly,Dr,Pr,jr,!0,void 0,void 0)}function xe(Dr,Pr,jr,on,je,Sr,Te){var Ye=Sr&&Sr.getOrCreateCacheForModuleName(Pr,on.features===0?void 0:on.features&T.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,Te);return e.forEachAncestorDirectory(e.normalizeSlashes(jr),function(Qe){if(e.getBaseFileName(Qe)!=="node_modules"){var ue=Lr(Ye,Pr,Qe,on);return ue||Qn(cr(Dr,Pr,Qe,on,je,Sr,Te))}})}function cr(Dr,Pr,jr,on,je,Sr,Te){var Ye=e.combinePaths(jr,"node_modules"),Qe=e.directoryProbablyExists(Ye,on.host);!Qe&&on.traceEnabled&&o(on.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ye);var ue=je?void 0:Mr(Dr,Pr,Ye,Qe,on,Sr,Te);if(ue)return ue;if(Dr===ie.TypeScript||Dr===ie.DtsOnly){var Ke=e.combinePaths(Ye,"@types"),tr=Qe;return Qe&&!e.directoryProbablyExists(Ke,on.host)&&(on.traceEnabled&&o(on.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ke),tr=!1),Mr(ie.DtsOnly,en(Pr,on),Ke,tr,on,Sr,Te)}}function Mr(Dr,Pr,jr,on,je,Sr,Te){var Ye,Qe=e.normalizePath(e.combinePaths(jr,Pr)),ue=t(Qe,!on,je);if(!(je.features&T.Exports)&&ue){var Ke=be(Dr,Qe,!on,je);if(Ke)return se(Ke);var tr=qr(Dr,Qe,!on,je,ue.contents.packageJsonContent,ue.contents.versionPaths);return K(ue,tr)}var hr=function(bn,qn,yn,Hn){var Ai=be(bn,qn,yn,Hn)||qr(bn,qn,yn,Hn,ue&&ue.contents.packageJsonContent,ue&&ue.contents.versionPaths);return!Ai&&ue&&(ue.contents.packageJsonContent.exports===void 0||ue.contents.packageJsonContent.exports===null)&&Hn.features&T.EsmMode&&(Ai=be(bn,e.combinePaths(qn,"index.js"),yn,Hn)),K(ue,Ai)},_r=vr(Pr),Or=_r.packageName,zr=_r.rest,fn=e.combinePaths(jr,Or);if(zr!==""&&(ue=t(fn,!on,je)),ue&&ue.contents.packageJsonContent.exports&&je.features&T.Exports)return(Ye=rn(ue,Dr,e.combinePaths(".",zr),je,Sr,Te))===null||Ye===void 0?void 0:Ye.value;if(zr!==""&&ue&&ue.contents.versionPaths){je.traceEnabled&&o(je.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ue.contents.versionPaths.version,e.version,zr);var Vr=on&&e.directoryProbablyExists(fn,je.host),Wn=Rr(Dr,zr,fn,ue.contents.versionPaths.paths,void 0,hr,!Vr,je);if(Wn)return Wn.value}return hr(Dr,Qe,!on,je)}function Rr(Dr,Pr,jr,on,je,Sr,Te,Ye){je||(je=e.tryParsePatterns(on));var Qe=e.matchPatternOrExact(je,Pr);if(Qe){var ue=e.isString(Qe)?void 0:e.matchedText(Qe,Pr),Ke=e.isString(Qe)?Qe:e.patternText(Qe);Ye.traceEnabled&&o(Ye.host,e.Diagnostics.Module_name_0_matched_pattern_1,Pr,Ke);var tr=e.forEach(on[Ke],function(hr){var _r=ue?hr.replace("*",ue):hr,Or=e.normalizePath(e.combinePaths(jr,_r));Ye.traceEnabled&&o(Ye.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,hr,_r);var zr=e.tryGetExtensionFromPath(hr);if(zr!==void 0){var fn=Ce(Or,Te,Ye);if(fn!==void 0)return se({path:fn,ext:zr})}return Sr(Dr,Or,Te||!e.directoryProbablyExists(e.getDirectoryPath(Or),Ye.host),Ye)});return{value:tr}}}var Qr="__";function en(Dr,Pr){var jr=Ie(Dr);return Pr.traceEnabled&&jr!==Dr&&o(Pr.host,e.Diagnostics.Scoped_package_detected_looking_in_0,jr),jr}function vn(Dr){return"@types/".concat(Ie(Dr))}e.getTypesPackageName=vn;function Ie(Dr){if(e.startsWith(Dr,"@")){var Pr=Dr.replace(e.directorySeparator,Qr);if(Pr!==Dr)return Pr.slice(1)}return Dr}e.mangleScopedPackageName=Ie;function We(Dr){var Pr=e.removePrefix(Dr,"@types/");return Pr!==Dr?xr(Pr):Dr}e.getPackageNameFromTypesPackageName=We;function xr(Dr){return e.stringContains(Dr,Qr)?"@"+Dr.replace(Qr,e.directorySeparator):Dr}e.unmangleScopedPackageName=xr;function Lr(Dr,Pr,jr,on){var je=Dr&&Dr.get(jr);if(je)return on.traceEnabled&&o(on.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Pr,jr),on.resultFromCache=je,{value:je.resolvedModule&&{path:je.resolvedModule.resolvedFileName,originalPath:je.resolvedModule.originalPath||!0,extension:je.resolvedModule.extension,packageId:je.resolvedModule.packageId}}}function xn(Dr,Pr,jr,on,je,Sr){var Te=ne(jr,on),Ye=[],Qe=[],ue=e.getDirectoryPath(Pr),Ke=[],tr={compilerOptions:jr,host:on,traceEnabled:Te,failedLookupLocations:Ye,affectingLocations:Qe,packageJsonInfoCache:je,features:T.None,conditions:[],requestContainingDirectory:ue,reportDiagnostic:function(Or){return void Ke.push(Or)}},hr=_r(ie.TypeScript)||_r(ie.JavaScript);return Q(hr&&hr.value,!1,Ye,Qe,Ke,tr.resultFromCache);function _r(Or){var zr=q(Or,Dr,ue,Oe,tr);if(zr)return{value:zr};if(e.isExternalModuleNameRelative(Dr)){var Wn=e.normalizePath(e.combinePaths(ue,Dr));return Qn(Oe(Or,Wn,!1,tr))}else{var fn=je&&je.getOrCreateCacheForModuleName(Dr,void 0,Sr),Vr=e.forEachAncestorDirectory(ue,function(bn){var qn=Lr(fn,Dr,bn,tr);if(qn)return qn;var yn=e.normalizePath(e.combinePaths(bn,Dr));return Qn(Oe(Or,yn,!1,tr))});if(Vr)return Vr;if(Or===ie.TypeScript)return Ar(Dr,ue,tr)}}}e.classicNameResolver=xn;function An(Dr,Pr,jr,on,je,Sr){var Te=ne(jr,on);Te&&o(on,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,Pr,Dr,je);var Ye=[],Qe=[],ue=[],Ke={compilerOptions:jr,host:on,traceEnabled:Te,failedLookupLocations:Ye,affectingLocations:Qe,packageJsonInfoCache:Sr,features:T.None,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:function(hr){return void ue.push(hr)}},tr=cr(ie.DtsOnly,Dr,je,Ke,!1,void 0,void 0);return Q(tr,!0,Ye,Qe,ue,Ke.resultFromCache)}e.loadModuleFromGlobalCache=An;function Qn(Dr){return Dr!==void 0?{value:Dr}:void 0}function ai(Dr,Pr){for(var jr=[],on=2;on<arguments.length;on++)jr[on-2]=arguments[on];Dr.traceEnabled&&o.apply(void 0,zn([Dr.host,Pr],jr,!1))}})(fr||(fr={}));var fr;(function(e){var o;(function(E){E[E.NonInstantiated=0]="NonInstantiated",E[E.Instantiated=1]="Instantiated",E[E.ConstEnumOnly=2]="ConstEnumOnly"})(o=e.ModuleInstanceState||(e.ModuleInstanceState={}));function ne(E,I){return E.body&&!E.body.parent&&(e.setParent(E.body,E),e.setParentRecursive(E.body,!1)),E.body?K(E.body,I):1}e.getModuleInstanceState=ne;function K(E,I){I===void 0&&(I=new e.Map);var f=e.getNodeId(E);if(I.has(f))return I.get(f)||0;I.set(f,void 0);var m=se(E,I);return I.set(f,m),m}function se(E,I){switch(E.kind){case 261:case 262:return 0;case 263:if(e.isEnumConst(E))return 2;break;case 269:case 268:if(!e.hasSyntacticModifier(E,1))return 0;break;case 275:var f=E;if(!f.moduleSpecifier&&f.exportClause&&f.exportClause.kind===276){for(var m=0,y=0,S=f.exportClause.elements;y<S.length;y++){var k=S[y],C=O(k,I);if(C>m&&(m=C),m===1)return m}return m}break;case 265:{var me=0;return e.forEachChild(E,function(De){var X=K(De,I);switch(X){case 0:return;case 2:me=2;return;case 1:return me=1,!0;default:e.Debug.assertNever(X)}}),me}case 264:return ne(E,I);case 79:if(E.isInJSDocNamespace)return 0}return 1}function O(E,I){for(var f=E.propertyName||E.name,m=E.parent;m;){if(e.isBlock(m)||e.isModuleBlock(m)||e.isSourceFile(m)){for(var y=m.statements,S=void 0,k=0,C=y;k<C.length;k++){var me=C[k];if(e.nodeHasName(me,f)){me.parent||(e.setParent(me,m),e.setParentRecursive(me,!1));var De=K(me,I);if((S===void 0||De>S)&&(S=De),S===1)return S}}if(S!==void 0)return S}m=m.parent}return 1}var ie;(function(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"})(ie||(ie={}));function _e(E){return e.Debug.attachFlowNodeDebugInfo(E),E}var Q=D();function p(E,I){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+E.fileName),Q(E,I),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=p;function D(){var E,I,f,m,y,S,k,C,me,De,X,M,H,V,h,F,$,L,P,N,J,q,G=!1,ye=0,b,x,T={flags:1},Z={flags:1},B=Sr();function u(ee,Er,un,$n,Ii){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(ee)||E,ee,Er,un,$n,Ii)}function A(ee,Er){E=ee,I=Er,f=e.getEmitScriptTarget(I),q=w(E,Er),x=new e.Set,ye=0,b=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(T),e.Debug.attachFlowNodeDebugInfo(Z),E.locals||(e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:E.path},!0),Xi(E),e.tracing===null||e.tracing===void 0||e.tracing.pop(),E.symbolCount=ye,E.classifiableNames=x,Dn()),E=void 0,I=void 0,f=void 0,m=void 0,y=void 0,S=void 0,k=void 0,C=void 0,me=void 0,De=!1,X=void 0,M=void 0,H=void 0,V=void 0,h=void 0,F=void 0,$=void 0,P=void 0,N=!1,G=!1,J=0}return A;function w(ee,Er){return e.getStrictOptionValue(Er,"alwaysStrict")&&!ee.isDeclarationFile?!0:!!ee.externalModuleIndicator}function z(ee,Er){return ye++,new b(ee,Er)}function U(ee,Er,un){ee.flags|=un,Er.symbol=ee,ee.declarations=e.appendIfUnique(ee.declarations,Er),un&(32|384|1536|3)&&!ee.exports&&(ee.exports=e.createSymbolTable()),un&(32|64|2048|4096)&&!ee.members&&(ee.members=e.createSymbolTable()),ee.constEnumOnlyModule&&ee.flags&(16|32|256)&&(ee.constEnumOnlyModule=!1),un&111551&&e.setValueDeclaration(ee,Er)}function ge(ee){if(ee.kind===274)return ee.isExportEquals?"export=":"default";var Er=e.getNameOfDeclaration(ee);if(Er){if(e.isAmbientModule(ee)){var un=e.getTextOfIdentifierOrLiteral(Er);return e.isGlobalScopeAugmentation(ee)?"__global":'"'.concat(un,'"')}if(Er.kind===164){var $n=Er.expression;if(e.isStringOrNumericLiteralLike($n))return e.escapeLeadingUnderscores($n.text);if(e.isSignedNumericLiteral($n))return e.tokenToString($n.operator)+$n.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(Er)){var Ii=e.getContainingClass(ee);if(!Ii)return;var at=Ii.symbol;return e.getSymbolNameForPrivateIdentifier(at,Er.escapedText)}return e.isPropertyNameLiteral(Er)?e.getEscapedTextOfIdentifierOrLiteral(Er):void 0}switch(ee.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(e.getAssignmentDeclarationKind(ee)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 320:return e.isJSDocConstructSignature(ee)?"__new":"__call";case 166:e.Debug.assert(ee.parent.kind===320,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.Debug.formatSyntaxKind(ee.parent.kind),", expected JSDocFunctionType")});var Ji=ee.parent,_t=Ji.parameters.indexOf(ee);return"arg"+_t}}function pe(ee){return e.isNamedDeclaration(ee)?e.declarationNameToString(ee.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(ge(ee)))}function He(ee,Er,un,$n,Ii,at,Ji){e.Debug.assert(Ji||!e.hasDynamicName(un));var _t=e.hasSyntacticModifier(un,1024)||e.isExportSpecifier(un)&&un.name.escapedText==="default",Ht=Ji?"__computed":_t&&Er?"default":ge(un),Rt;if(Ht===void 0)Rt=z(0,"__missing");else if(Rt=ee.get(Ht),$n&2885600&&x.add(Ht),!Rt)ee.set(Ht,Rt=z(0,Ht)),at&&(Rt.isReplaceableByMethod=!0);else{if(at&&!Rt.isReplaceableByMethod)return Rt;if(Rt.flags&Ii){if(Rt.isReplaceableByMethod)ee.set(Ht,Rt=z(0,Ht));else if(!($n&3&&Rt.flags&67108864)){e.isNamedDeclaration(un)&&e.setParent(un.name,un);var va=Rt.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,qe=!0;(Rt.flags&384||$n&384)&&(va=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,qe=!1);var Tn=!1;e.length(Rt.declarations)&&(_t||Rt.declarations&&Rt.declarations.length&&un.kind===274&&!un.isExportEquals)&&(va=e.Diagnostics.A_module_cannot_have_multiple_default_exports,qe=!1,Tn=!0);var Nr=[];e.isTypeAliasDeclaration(un)&&e.nodeIsMissing(un.type)&&e.hasSyntacticModifier(un,1)&&Rt.flags&(2097152|788968|1920)&&Nr.push(u(un,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(un.name.escapedText)," }")));var ga=e.getNameOfDeclaration(un)||un;e.forEach(Rt.declarations,function(co,gs){var gc=e.getNameOfDeclaration(co)||co,ws=u(gc,va,qe?pe(co):void 0);E.bindDiagnostics.push(Tn?e.addRelatedInfo(ws,u(ga,gs===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):ws),Tn&&Nr.push(u(gc,e.Diagnostics.The_first_export_default_is_here))});var xa=u(ga,va,qe?pe(un):void 0);E.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,zn([xa],Nr,!1))),Rt=z(0,Ht)}}}return U(Rt,un,$n),Rt.parent?e.Debug.assert(Rt.parent===Er,"Existing symbol parent should match new one"):Rt.parent=Er,Rt}function Be(ee,Er,un){var $n=!!(e.getCombinedModifierFlags(ee)&1)||Me(ee);if(Er&2097152)return ee.kind===278||ee.kind===268&&$n?He(y.symbol.exports,y.symbol,ee,Er,un):He(y.locals,void 0,ee,Er,un);if(e.isJSDocTypeAlias(ee)&&e.Debug.assert(e.isInJSFile(ee)),!e.isAmbientModule(ee)&&($n||y.flags&64)){if(!y.locals||e.hasSyntacticModifier(ee,1024)&&!ge(ee))return He(y.symbol.exports,y.symbol,ee,Er,un);var Ii=Er&111551?1048576:0,at=He(y.locals,void 0,ee,Ii,un);return at.exportSymbol=He(y.symbol.exports,y.symbol,ee,Er,un),ee.localSymbol=at,at}else return He(y.locals,void 0,ee,Er,un)}function Me(ee){if(ee.parent&&e.isModuleDeclaration(ee)&&(ee=ee.parent),!e.isJSDocTypeAlias(ee))return!1;if(!e.isJSDocEnumTag(ee)&&!!ee.fullName)return!0;var Er=e.getNameOfDeclaration(ee);return Er?!!(e.isPropertyAccessEntityNameExpression(Er.parent)&&na(Er.parent)||e.isDeclaration(Er.parent)&&e.getCombinedModifierFlags(Er.parent)&1):!1}function Le(ee,Er){var un=y,$n=S,Ii=k;if(Er&1?(ee.kind!==216&&(S=y),y=k=ee,Er&32&&(y.locals=e.createSymbolTable()),Ai(y)):Er&2&&(k=ee,k.locals=void 0),Er&4){var at=X,Ji=M,_t=H,Ht=V,Rt=$,va=P,qe=N,Tn=Er&16&&!e.hasSyntacticModifier(ee,512)&&!ee.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(ee)||ee.kind===172;Tn||(X=_e({flags:2}),Er&(16|128)&&(X.node=ee)),V=Tn||ee.kind===173||e.isInJSFile(ee)&&(ee.kind===259||ee.kind===215)?er():void 0,$=void 0,M=void 0,H=void 0,P=void 0,N=!1,Oe(ee),ee.flags&=~2816,!(X.flags&1)&&Er&8&&e.nodeIsPresent(ee.body)&&(ee.flags|=256,N&&(ee.flags|=512),ee.endFlowNode=X),ee.kind===308&&(ee.flags|=J,ee.endFlowNode=X),V&&(t(V,X),X=kr(V),(ee.kind===173||ee.kind===172||e.isInJSFile(ee)&&(ee.kind===259||ee.kind===215))&&(ee.returnFlowNode=X)),Tn||(X=at),M=Ji,H=_t,V=Ht,$=Rt,P=va,N=qe}else Er&64?(De=!1,Oe(ee),ee.flags=De?ee.flags|128:ee.flags&~128):Oe(ee);y=un,S=$n,k=Ii}function Ae(ee){Xe(ee,function(Er){return Er.kind===259?Xi(Er):void 0}),Xe(ee,function(Er){return Er.kind!==259?Xi(Er):void 0})}function Xe(ee,Er){Er===void 0&&(Er=Xi),ee!==void 0&&e.forEach(ee,Er)}function Ne(ee){e.forEachChild(ee,Xi,Xe)}function Oe(ee){var Er=G;if(G=!1,Ss(ee)){Ne(ee),ao(ee),G=Er;return}switch(ee.kind>=240&&ee.kind<=256&&!I.allowUnreachableCode&&(ee.flowNode=X),ee.kind){case 244:ze(ee);break;case 243:Ar(ee);break;case 245:xe(ee);break;case 246:case 247:cr(ee);break;case 242:Mr(ee);break;case 250:case 254:Rr(ee);break;case 249:case 248:vn(ee);break;case 255:Ie(ee);break;case 252:We(ee);break;case 266:xr(ee);break;case 292:Lr(ee);break;case 241:xn(ee);break;case 253:Qn(ee);break;case 221:jr(ee);break;case 222:on(ee);break;case 223:if(e.isDestructuringAssignment(ee)){G=Er,je(ee);return}B(ee);break;case 217:Te(ee);break;case 224:Ye(ee);break;case 257:ue(ee);break;case 208:case 209:qn(ee);break;case 210:yn(ee);break;case 232:bn(ee);break;case 348:case 341:case 342:_r(ee);break;case 308:{Ae(ee.statements),Xi(ee.endOfFileToken);break}case 238:case 265:Ae(ee.statements);break;case 205:Ke(ee);break;case 166:tr(ee);break;case 207:case 206:case 299:case 227:G=Er;default:Ne(ee);break}ao(ee),G=Er}function be(ee){switch(ee.kind){case 79:case 80:case 108:case 208:case 209:return d(ee);case 210:return j(ee);case 214:case 232:return be(ee.expression);case 223:return Se(ee);case 221:return ee.operator===53&&be(ee.operand);case 218:return be(ee.expression)}return!1}function Y(ee){return e.isDottedName(ee)||(e.isPropertyAccessExpression(ee)||e.isNonNullExpression(ee)||e.isParenthesizedExpression(ee))&&Y(ee.expression)||e.isBinaryExpression(ee)&&ee.operatorToken.kind===27&&Y(ee.right)||e.isElementAccessExpression(ee)&&(e.isStringOrNumericLiteralLike(ee.argumentExpression)||e.isEntityNameExpression(ee.argumentExpression))&&Y(ee.expression)||e.isAssignmentExpression(ee)&&Y(ee.left)}function d(ee){return Y(ee)||e.isOptionalChain(ee)&&d(ee.expression)}function j(ee){if(ee.arguments)for(var Er=0,un=ee.arguments;Er<un.length;Er++){var $n=un[Er];if(d($n))return!0}return!!(ee.expression.kind===208&&d(ee.expression.expression))}function Ce(ee,Er){return e.isTypeOfExpression(ee)&&Re(ee.expression)&&e.isStringLiteralLike(Er)}function Se(ee){switch(ee.operatorToken.kind){case 63:case 75:case 76:case 77:return d(ee.left);case 34:case 35:case 36:case 37:return Re(ee.left)||Re(ee.right)||Ce(ee.right,ee.left)||Ce(ee.left,ee.right);case 102:return Re(ee.left);case 101:return be(ee.right);case 27:return be(ee.right)}return!1}function Re(ee){switch(ee.kind){case 214:return Re(ee.expression);case 223:switch(ee.operatorToken.kind){case 63:return Re(ee.left);case 27:return Re(ee.right)}}return d(ee)}function er(){return _e({flags:4,antecedents:void 0})}function wr(){return _e({flags:8,antecedents:void 0})}function mr(ee,Er,un){return _e({flags:1024,target:ee,antecedents:Er,antecedent:un})}function Ue(ee){ee.flags|=ee.flags&2048?4096:2048}function t(ee,Er){!(Er.flags&1)&&!e.contains(ee.antecedents,Er)&&((ee.antecedents||(ee.antecedents=[])).push(Er),Ue(Er))}function qr(ee,Er,un){return Er.flags&1?Er:un?(un.kind===110&&ee&64||un.kind===95&&ee&32)&&!e.isExpressionOfOptionalChainRoot(un)&&!e.isNullishCoalesce(un.parent)?T:be(un)?(Ue(Er),_e({flags:ee,antecedent:Er,node:un})):Er:ee&32?Er:T}function ln(ee,Er,un,$n){return Ue(ee),_e({flags:128,antecedent:ee,switchStatement:Er,clauseStart:un,clauseEnd:$n})}function dr(ee,Er,un){Ue(Er);var $n=_e({flags:ee,antecedent:Er,node:un});return $&&t($,$n),$n}function vr(ee,Er){return Ue(ee),_e({flags:512,antecedent:ee,node:Er})}function kr(ee){var Er=ee.antecedents;return Er?Er.length===1?Er[0]:ee:T}function Ur(ee){var Er=ee.parent;switch(Er.kind){case 242:case 244:case 243:return Er.expression===ee;case 245:case 224:return Er.condition===ee}return!1}function Cr(ee){for(;;)if(ee.kind===214)ee=ee.expression;else if(ee.kind===221&&ee.operator===53)ee=ee.operand;else return ee.kind===223&&(ee.operatorToken.kind===55||ee.operatorToken.kind===56||ee.operatorToken.kind===60)}function rn(ee){return ee=e.skipParentheses(ee),e.isBinaryExpression(ee)&&e.isLogicalOrCoalescingAssignmentOperator(ee.operatorToken.kind)}function Br(ee){for(;e.isParenthesizedExpression(ee.parent)||e.isPrefixUnaryExpression(ee.parent)&&ee.parent.operator===53;)ee=ee.parent;return!Ur(ee)&&!Cr(ee.parent)&&!(e.isOptionalChain(ee.parent)&&ee.parent.expression===ee)}function pn(ee,Er,un,$n){var Ii=h,at=F;h=un,F=$n,ee(Er),h=Ii,F=at}function ve(ee,Er,un){pn(Xi,ee,Er,un),(!ee||!rn(ee)&&!Cr(ee)&&!(e.isOptionalChain(ee)&&e.isOutermostOptionalChain(ee)))&&(t(Er,qr(32,X,ee)),t(un,qr(64,X,ee)))}function or(ee,Er,un){var $n=M,Ii=H;M=Er,H=un,Xi(ee),M=$n,H=Ii}function Ee(ee,Er){for(var un=P;un&&ee.parent.kind===253;)un.continueTarget=Er,un=un.next,ee=ee.parent;return Er}function ze(ee){var Er=Ee(ee,wr()),un=er(),$n=er();t(Er,X),X=Er,ve(ee.expression,un,$n),X=kr(un),or(ee.statement,$n,Er),t(Er,X),X=kr($n)}function Ar(ee){var Er=wr(),un=Ee(ee,er()),$n=er();t(Er,X),X=Er,or(ee.statement,$n,un),t(un,X),X=kr(un),ve(ee.expression,Er,$n),X=kr($n)}function xe(ee){var Er=Ee(ee,wr()),un=er(),$n=er();Xi(ee.initializer),t(Er,X),X=Er,ve(ee.condition,un,$n),X=kr(un),or(ee.statement,$n,Er),Xi(ee.incrementor),t(Er,X),X=kr($n)}function cr(ee){var Er=Ee(ee,wr()),un=er();Xi(ee.expression),t(Er,X),X=Er,ee.kind===247&&Xi(ee.awaitModifier),t(un,X),Xi(ee.initializer),ee.initializer.kind!==258&&Dr(ee.initializer),or(ee.statement,un,Er),t(Er,X),X=kr(un)}function Mr(ee){var Er=er(),un=er(),$n=er();ve(ee.expression,Er,un),X=kr(Er),Xi(ee.thenStatement),t($n,X),X=kr(un),Xi(ee.elseStatement),t($n,X),X=kr($n)}function Rr(ee){Xi(ee.expression),ee.kind===250&&(N=!0,V&&t(V,X)),X=T}function Qr(ee){for(var Er=P;Er;Er=Er.next)if(Er.name===ee)return Er}function en(ee,Er,un){var $n=ee.kind===249?Er:un;$n&&(t($n,X),X=T)}function vn(ee){if(Xi(ee.label),ee.label){var Er=Qr(ee.label.escapedText);Er&&(Er.referenced=!0,en(ee,Er.breakTarget,Er.continueTarget))}else en(ee,M,H)}function Ie(ee){var Er=V,un=$,$n=er(),Ii=er(),at=er();if(ee.finallyBlock&&(V=Ii),t(at,X),$=at,Xi(ee.tryBlock),t($n,X),ee.catchClause&&(X=kr(at),at=er(),t(at,X),$=at,Xi(ee.catchClause),t($n,X)),V=Er,$=un,ee.finallyBlock){var Ji=er();Ji.antecedents=e.concatenate(e.concatenate($n.antecedents,at.antecedents),Ii.antecedents),X=Ji,Xi(ee.finallyBlock),X.flags&1?X=T:(V&&Ii.antecedents&&t(V,mr(Ji,Ii.antecedents,X)),$&&at.antecedents&&t($,mr(Ji,at.antecedents,X)),X=$n.antecedents?mr(Ji,$n.antecedents,X):T)}else X=kr($n)}function We(ee){var Er=er();Xi(ee.expression);var un=M,$n=L;M=Er,L=X,Xi(ee.caseBlock),t(Er,X);var Ii=e.forEach(ee.caseBlock.clauses,function(at){return at.kind===293});ee.possiblyExhaustive=!Ii&&!Er.antecedents,Ii||t(Er,ln(L,ee,0,0)),M=un,L=$n,X=kr(Er)}function xr(ee){for(var Er=ee.clauses,un=be(ee.parent.expression),$n=T,Ii=0;Ii<Er.length;Ii++){for(var at=Ii;!Er[Ii].statements.length&&Ii+1<Er.length;)Xi(Er[Ii]),Ii++;var Ji=er();t(Ji,un?ln(L,ee.parent,at,Ii+1):L),t(Ji,$n),X=kr(Ji);var _t=Er[Ii];Xi(_t),$n=X,!(X.flags&1)&&Ii!==Er.length-1&&I.noFallthroughCasesInSwitch&&(_t.fallthroughFlowNode=X)}}function Lr(ee){var Er=X;X=L,Xi(ee.expression),X=Er,Xe(ee.statements)}function xn(ee){Xi(ee.expression),An(ee.expression)}function An(ee){if(ee.kind===210){var Er=ee;Er.expression.kind!==106&&e.isDottedName(Er.expression)&&(X=vr(X,Er))}}function Qn(ee){var Er=er();P={next:P,name:ee.label.escapedText,breakTarget:Er,continueTarget:void 0,referenced:!1},Xi(ee.label),Xi(ee.statement),!P.referenced&&!I.allowUnusedLabels&&ho(e.unusedLabelIsError(I),ee.label,e.Diagnostics.Unused_label),P=P.next,t(Er,X),X=kr(Er)}function ai(ee){ee.kind===223&&ee.operatorToken.kind===63?Dr(ee.left):Dr(ee)}function Dr(ee){if(Y(ee))X=dr(16,X,ee);else if(ee.kind===206)for(var Er=0,un=ee.elements;Er<un.length;Er++){var $n=un[Er];$n.kind===227?Dr($n.expression):ai($n)}else if(ee.kind===207)for(var Ii=0,at=ee.properties;Ii<at.length;Ii++){var Ji=at[Ii];Ji.kind===299?ai(Ji.initializer):Ji.kind===300?Dr(Ji.name):Ji.kind===301&&Dr(Ji.expression)}}function Pr(ee,Er,un){var $n=er();ee.operatorToken.kind===55||ee.operatorToken.kind===76?ve(ee.left,$n,un):ve(ee.left,Er,$n),X=kr($n),Xi(ee.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(ee.operatorToken.kind)?(pn(Xi,ee.right,Er,un),Dr(ee.left),t(Er,qr(32,X,ee)),t(un,qr(64,X,ee))):ve(ee.right,Er,un)}function jr(ee){if(ee.operator===53){var Er=h;h=F,F=Er,Ne(ee),F=h,h=Er}else Ne(ee),(ee.operator===45||ee.operator===46)&&Dr(ee.operand)}function on(ee){Ne(ee),(ee.operator===45||ee.operator===46)&&Dr(ee.operand)}function je(ee){G?(G=!1,Xi(ee.operatorToken),Xi(ee.right),G=!0,Xi(ee.left)):(G=!0,Xi(ee.left),G=!1,Xi(ee.operatorToken),Xi(ee.right)),Dr(ee.left)}function Sr(){return e.createBinaryExpressionTrampoline(ee,Er,un,$n,Ii,void 0);function ee(Ji,_t){if(_t){_t.stackIndex++,e.setParent(Ji,m);var Ht=q;so(Ji);var Rt=m;m=Ji,_t.skip=!1,_t.inStrictModeStack[_t.stackIndex]=Ht,_t.parentStack[_t.stackIndex]=Rt}else _t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var va=Ji.operatorToken.kind;if(va===55||va===56||va===60||e.isLogicalOrCoalescingAssignmentOperator(va)){if(Br(Ji)){var qe=er();Pr(Ji,qe,qe),X=kr(qe)}else Pr(Ji,h,F);_t.skip=!0}return _t}function Er(Ji,_t,Ht){if(!_t.skip){var Rt=at(Ji);return Ht.operatorToken.kind===27&&An(Ji),Rt}}function un(Ji,_t,Ht){_t.skip||Xi(Ji)}function $n(Ji,_t,Ht){if(!_t.skip){var Rt=at(Ji);return Ht.operatorToken.kind===27&&An(Ji),Rt}}function Ii(Ji,_t){if(!_t.skip){var Ht=Ji.operatorToken.kind;if(e.isAssignmentOperator(Ht)&&!e.isAssignmentTarget(Ji)&&(Dr(Ji.left),Ht===63&&Ji.left.kind===209)){var Rt=Ji.left;Re(Rt.expression)&&(X=dr(256,X,Ji))}}var va=_t.inStrictModeStack[_t.stackIndex],qe=_t.parentStack[_t.stackIndex];va!==void 0&&(q=va),qe!==void 0&&(m=qe),_t.skip=!1,_t.stackIndex--}function at(Ji){if(Ji&&e.isBinaryExpression(Ji)&&!e.isDestructuringAssignment(Ji))return Ji;Xi(Ji)}}function Te(ee){Ne(ee),ee.expression.kind===208&&Dr(ee.expression)}function Ye(ee){var Er=er(),un=er(),$n=er();ve(ee.condition,Er,un),X=kr(Er),Xi(ee.questionToken),Xi(ee.whenTrue),t($n,X),X=kr(un),Xi(ee.colonToken),Xi(ee.whenFalse),t($n,X),X=kr($n)}function Qe(ee){var Er=e.isOmittedExpression(ee)?void 0:ee.name;if(e.isBindingPattern(Er))for(var un=0,$n=Er.elements;un<$n.length;un++){var Ii=$n[un];Qe(Ii)}else X=dr(16,X,ee)}function ue(ee){Ne(ee),(ee.initializer||e.isForInOrOfStatement(ee.parent.parent))&&Qe(ee)}function Ke(ee){Xi(ee.dotDotDotToken),Xi(ee.propertyName),hr(ee.initializer),Xi(ee.name)}function tr(ee){Xe(ee.modifiers),Xi(ee.dotDotDotToken),Xi(ee.questionToken),Xi(ee.type),hr(ee.initializer),Xi(ee.name)}function hr(ee){if(!!ee){var Er=X;if(Xi(ee),!(Er===T||Er===X)){var un=er();t(un,Er),t(un,X),X=kr(un)}}}function _r(ee){Xi(ee.tagName),ee.kind!==342&&ee.fullName&&(e.setParent(ee.fullName,ee),e.setParentRecursive(ee.fullName,!1)),typeof ee.comment!="string"&&Xe(ee.comment)}function Or(ee){Ne(ee);var Er=e.getHostSignatureFromJSDoc(ee);Er&&Er.kind!==171&&U(Er.symbol,Er,32)}function zr(ee,Er,un){pn(Xi,ee,Er,un),(!e.isOptionalChain(ee)||e.isOutermostOptionalChain(ee))&&(t(Er,qr(32,X,ee)),t(un,qr(64,X,ee)))}function fn(ee){switch(ee.kind){case 208:Xi(ee.questionDotToken),Xi(ee.name);break;case 209:Xi(ee.questionDotToken),Xi(ee.argumentExpression);break;case 210:Xi(ee.questionDotToken),Xe(ee.typeArguments),Xe(ee.arguments);break}}function Vr(ee,Er,un){var $n=e.isOptionalChainRoot(ee)?er():void 0;zr(ee.expression,$n||Er,un),$n&&(X=kr($n)),pn(fn,ee,Er,un),e.isOutermostOptionalChain(ee)&&(t(Er,qr(32,X,ee)),t(un,qr(64,X,ee)))}function Wn(ee){if(Br(ee)){var Er=er();Vr(ee,Er,Er),X=kr(Er)}else Vr(ee,h,F)}function bn(ee){e.isOptionalChain(ee)?Wn(ee):Ne(ee)}function qn(ee){e.isOptionalChain(ee)?Wn(ee):Ne(ee)}function yn(ee){if(e.isOptionalChain(ee))Wn(ee);else{var Er=e.skipParentheses(ee.expression);Er.kind===215||Er.kind===216?(Xe(ee.typeArguments),Xe(ee.arguments),Xi(ee.expression)):(Ne(ee),ee.expression.kind===106&&(X=vr(X,ee)))}if(ee.expression.kind===208){var un=ee.expression;e.isIdentifier(un.name)&&Re(un.expression)&&e.isPushOrUnshiftIdentifier(un.name)&&(X=dr(256,X,ee))}}function Hn(ee){switch(ee.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 1|64;case 264:case 262:case 197:case 178:return 1|32;case 308:return 1|4|32;case 174:case 175:case 171:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(ee))return 1|4|32|8|128;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 1|4|32|8;case 215:case 216:return 1|4|32|8|16;case 265:return 4;case 169:return ee.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 2;case 238:return e.isFunctionLike(ee.parent)||e.isClassStaticBlockDeclaration(ee.parent)?0:2}return 0}function Ai(ee){C&&(C.nextContainer=ee),C=ee}function ti(ee,Er,un){switch(y.kind){case 264:return Be(ee,Er,un);case 308:return Ni(ee,Er,un);case 228:case 260:return Hi(ee,Er,un);case 263:return He(y.symbol.exports,y.symbol,ee,Er,un);case 184:case 325:case 207:case 261:case 289:return He(y.symbol.members,y.symbol,ee,Er,un);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 348:case 341:case 172:case 262:case 197:return He(y.locals,void 0,ee,Er,un)}}function Hi(ee,Er,un){return e.isStatic(ee)?He(y.symbol.exports,y.symbol,ee,Er,un):He(y.symbol.members,y.symbol,ee,Er,un)}function Ni(ee,Er,un){return e.isExternalModule(E)?Be(ee,Er,un):He(E.locals,void 0,ee,Er,un)}function gi(ee){var Er=e.isSourceFile(ee)?ee:e.tryCast(ee.body,e.isModuleBlock);return!!Er&&Er.statements.some(function(un){return e.isExportDeclaration(un)||e.isExportAssignment(un)})}function Pn(ee){ee.flags&16777216&&!gi(ee)?ee.flags|=64:ee.flags&=~64}function Pe(ee){if(Pn(ee),e.isAmbientModule(ee))if(e.hasSyntacticModifier(ee,1)&&Ea(ee,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(ee))Ir(ee);else{var Er=void 0;if(ee.name.kind===10){var un=ee.name.text;Er=e.tryParsePattern(un),Er===void 0&&Ea(ee.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,un)}var $n=ti(ee,512,110735);E.patternAmbientModules=e.append(E.patternAmbientModules,Er&&!e.isString(Er)?{pattern:Er,symbol:$n}:void 0)}else{var Ii=Ir(ee);if(Ii!==0){var $n=ee.symbol;$n.constEnumOnlyModule=!($n.flags&(16|32|256))&&Ii===2&&$n.constEnumOnlyModule!==!1}}}function Ir(ee){var Er=ne(ee),un=Er!==0;return ti(ee,un?512:1024,un?110735:0),Er}function we(ee){var Er=z(131072,ge(ee));U(Er,ee,131072);var un=z(2048,"__type");U(un,ee,2048),un.members=e.createSymbolTable(),un.members.set(Er.escapedName,Er)}function hn(ee){return nn(ee,4096,"__object")}function jn(ee){return nn(ee,4096,"__jsxAttributes")}function gn(ee,Er,un){return ti(ee,Er,un)}function nn(ee,Er,un){var $n=z(Er,un);return Er&(8|106500)&&($n.parent=y.symbol),U($n,ee,Er),$n}function Cn(ee,Er,un){switch(k.kind){case 264:Be(ee,Er,un);break;case 308:if(e.isExternalOrCommonJsModule(y)){Be(ee,Er,un);break}default:k.locals||(k.locals=e.createSymbolTable(),Ai(k)),He(k.locals,void 0,ee,Er,un)}}function Dn(){if(!!me){for(var ee=y,Er=C,un=k,$n=m,Ii=X,at=0,Ji=me;at<Ji.length;at++){var _t=Ji[at],Ht=_t.parent.parent;y=e.findAncestor(Ht.parent,function(Tn){return!!(Hn(Tn)&1)})||E,k=e.getEnclosingBlockScopeContainer(Ht)||E,X=_e({flags:2}),m=_t,Xi(_t.typeExpression);var Rt=e.getNameOfDeclaration(_t);if((e.isJSDocEnumTag(_t)||!_t.fullName)&&Rt&&e.isPropertyAccessEntityNameExpression(Rt.parent)){var va=na(Rt.parent);if(va){Gt(E.symbol,Rt.parent,va,!!e.findAncestor(Rt,function(Tn){return e.isPropertyAccessExpression(Tn)&&Tn.name.escapedText==="prototype"}),!1);var qe=y;switch(e.getAssignmentDeclarationPropertyAccessKind(Rt.parent)){case 1:case 2:e.isExternalOrCommonJsModule(E)?y=E:y=void 0;break;case 4:y=Rt.parent.expression;break;case 3:y=Rt.parent.expression.name;break;case 5:y=oe(E,Rt.parent.expression)?E:e.isPropertyAccessExpression(Rt.parent.expression)?Rt.parent.expression.name:Rt.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}y&&Be(_t,524288,788968),y=qe}}else e.isJSDocEnumTag(_t)||!_t.fullName||_t.fullName.kind===79?(m=_t.parent,Cn(_t,524288,788968)):Xi(_t.fullName)}y=ee,C=Er,k=un,m=$n,X=Ii}}function On(ee){!E.parseDiagnostics.length&&!(ee.flags&16777216)&&!(ee.flags&8388608)&&!e.isIdentifierName(ee)&&(q&&ee.originalKeywordKind>=117&&ee.originalKeywordKind<=125?E.bindDiagnostics.push(u(ee,Xn(ee),e.declarationNameToString(ee))):ee.originalKeywordKind===133?e.isExternalModule(E)&&e.isInTopLevelContext(ee)?E.bindDiagnostics.push(u(ee,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(ee))):ee.flags&32768&&E.bindDiagnostics.push(u(ee,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(ee))):ee.originalKeywordKind===125&&ee.flags&8192&&E.bindDiagnostics.push(u(ee,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(ee))))}function Xn(ee){return e.getContainingClass(ee)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ge(ee){ee.escapedText==="#constructor"&&(E.parseDiagnostics.length||E.bindDiagnostics.push(u(ee,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(ee))))}function cn(ee){q&&e.isLeftHandSideExpression(ee.left)&&e.isAssignmentOperator(ee.operatorToken.kind)&&qi(ee,ee.left)}function Vn(ee){q&&ee.variableDeclaration&&qi(ee,ee.variableDeclaration.name)}function Ki(ee){if(q&&ee.expression.kind===79){var Er=e.getErrorSpanForNode(E,ee.expression);E.bindDiagnostics.push(e.createFileDiagnostic(E,Er.start,Er.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function dt(ee){return e.isIdentifier(ee)&&(ee.escapedText==="eval"||ee.escapedText==="arguments")}function qi(ee,Er){if(Er&&Er.kind===79){var un=Er;if(dt(un)){var $n=e.getErrorSpanForNode(E,Er);E.bindDiagnostics.push(e.createFileDiagnostic(E,$n.start,$n.length,Ci(ee),e.idText(un)))}}}function Ci(ee){return e.getContainingClass(ee)?e.Diagnostics.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?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Tt(ee){q&&qi(ee,ee.name)}function ot(ee){return e.getContainingClass(ee)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Zi(ee){if(f<2&&k.kind!==308&&k.kind!==264&&!e.isFunctionLikeOrClassStaticBlockDeclaration(k)){var Er=e.getErrorSpanForNode(E,ee);E.bindDiagnostics.push(e.createFileDiagnostic(E,Er.start,Er.length,ot(ee)))}}function ni(ee){f<1&&q&&ee.numericLiteralFlags&32&&E.bindDiagnostics.push(u(ee,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Va(ee){q&&qi(ee,ee.operand)}function Ua(ee){q&&(ee.operator===45||ee.operator===46)&&qi(ee,ee.operand)}function za(ee){q&&Ea(ee,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Co(ee){q&&e.getEmitScriptTarget(I)>=2&&(e.isDeclarationStatement(ee.statement)||e.isVariableStatement(ee.statement))&&Ea(ee.label,e.Diagnostics.A_label_is_not_allowed_here)}function Ea(ee,Er,un,$n,Ii){var at=e.getSpanOfTokenAtPosition(E,ee.pos);E.bindDiagnostics.push(e.createFileDiagnostic(E,at.start,at.length,Er,un,$n,Ii))}function ho(ee,Er,un){Aa(ee,Er,Er,un)}function Aa(ee,Er,un,$n){Vi(ee,{pos:e.getTokenPosOfNode(Er,E),end:un.end},$n)}function Vi(ee,Er,un){var $n=e.createFileDiagnostic(E,Er.pos,Er.end-Er.pos,un);ee?E.bindDiagnostics.push($n):E.bindSuggestionDiagnostics=e.append(E.bindSuggestionDiagnostics,vi(vi({},$n),{category:e.DiagnosticCategory.Suggestion}))}function Xi(ee){if(!!ee){e.setParent(ee,m),e.tracing&&(ee.tracingPath=E.path);var Er=q;if(so(ee),ee.kind>162){var un=m;m=ee;var $n=Hn(ee);$n===0?Oe(ee):Le(ee,$n),m=un}else{var un=m;ee.kind===1&&(m=ee),ao(ee),m=un}q=Er}}function ao(ee){if(e.hasJSDocNodes(ee))if(e.isInJSFile(ee))for(var Er=0,un=ee.jsDoc;Er<un.length;Er++){var $n=un[Er];Xi($n)}else for(var Ii=0,at=ee.jsDoc;Ii<at.length;Ii++){var $n=at[Ii];e.setParent($n,ee),e.setParentRecursive($n,!1)}}function fo(ee){if(!q)for(var Er=0,un=ee;Er<un.length;Er++){var $n=un[Er];if(!e.isPrologueDirective($n))return;if(As($n)){q=!0;return}}}function As(ee){var Er=e.getSourceTextOfNodeFromSourceFile(E,ee.expression);return Er==='"use strict"'||Er==="'use strict'"}function so(ee){switch(ee.kind){case 79:if(ee.isInJSDocNamespace){for(var Er=ee.parent;Er&&!e.isJSDocTypeAlias(Er);)Er=Er.parent;Cn(Er,524288,788968);break}case 108:return X&&(e.isExpression(ee)||m.kind===300)&&(ee.flowNode=X),On(ee);case 163:X&&e.isPartOfTypeQuery(ee)&&(ee.flowNode=X);break;case 233:case 106:ee.flowNode=X;break;case 80:return Ge(ee);case 208:case 209:var un=ee;X&&Y(un)&&(un.flowNode=X),e.isSpecialPropertyDeclaration(un)&&yr(un),e.isInJSFile(un)&&E.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(un)&&!ae(k,"module")&&He(E.locals,void 0,un.expression,1|134217728,111550);break;case 223:var $n=e.getAssignmentDeclarationKind(ee);switch($n){case 1:Ve(ee);break;case 2:tn(ee);break;case 3:_i(ee.left,ee);break;case 6:Jr(ee);break;case 4:wn(ee);break;case 5:var Ii=ee.left.expression;if(e.isInJSFile(ee)&&e.isIdentifier(Ii)){var at=ae(k,Ii.escapedText);if(e.isThisInitializedDeclaration(at==null?void 0:at.valueDeclaration)){wn(ee);break}}fi(ee);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return cn(ee);case 295:return Vn(ee);case 217:return Ki(ee);case 8:return ni(ee);case 222:return Va(ee);case 221:return Ua(ee);case 251:return za(ee);case 253:return Co(ee);case 194:De=!0;return;case 179:break;case 165:return Vs(ee);case 166:return pc(ee);case 257:return $s(ee);case 205:return ee.flowNode=X,$s(ee);case 169:case 168:return Xo(ee);case 299:case 300:return Ko(ee,4,0);case 302:return Ko(ee,8,900095);case 176:case 177:case 178:return ti(ee,131072,0);case 171:case 170:return Ko(ee,8192|(ee.questionToken?16777216:0),e.isObjectLiteralMethod(ee)?0:103359);case 259:return js(ee);case 173:return ti(ee,16384,0);case 174:return Ko(ee,32768,46015);case 175:return Ko(ee,65536,78783);case 181:case 320:case 326:case 182:return we(ee);case 184:case 325:case 197:return Ho(ee);case 335:return Or(ee);case 207:return hn(ee);case 215:case 216:return Sc(ee);case 210:var Ji=e.getAssignmentDeclarationKind(ee);switch(Ji){case 7:return di(ee);case 8:return Pa(ee);case 9:return Mn(ee);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(ee)&&Es(ee);break;case 228:case 260:return q=!0,ns(ee);case 261:return Cn(ee,64,788872);case 262:return Cn(ee,524288,788968);case 263:return dc(ee);case 264:return Pe(ee);case 289:return jn(ee);case 288:return gn(ee,4,0);case 268:case 271:case 273:case 278:return ti(ee,2097152,2097152);case 267:return Fr(ee);case 270:return Dt(ee);case 275:return yi(ee);case 274:return pr(ee);case 308:return fo(ee.statements),Zo();case 238:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(ee.parent))return;case 265:return fo(ee.statements);case 343:if(ee.parent.kind===326)return pc(ee);if(ee.parent.kind!==325)break;case 350:var _t=ee,Ht=_t.isBracketed||_t.typeExpression&&_t.typeExpression.type.kind===319?4|16777216:4;return ti(_t,Ht,0);case 348:case 341:case 342:return(me||(me=[])).push(ee)}}function Xo(ee){var Er=e.isAutoAccessorPropertyDeclaration(ee),un=Er?98304:4,$n=Er?13247:0;return Ko(ee,un|(ee.questionToken?16777216:0),$n)}function Ho(ee){return nn(ee,2048,"__type")}function Zo(){if(Pn(E),e.isExternalModule(E))To();else if(e.isJsonSourceFile(E)){To();var ee=E.symbol;He(E.symbol.exports,E.symbol,E,4,67108863),E.symbol=ee}}function To(){nn(E,512,'"'.concat(e.removeFileExtension(E.fileName),'"'))}function pr(ee){if(!y.symbol||!y.symbol.exports)nn(ee,111551,ge(ee));else{var Er=e.exportAssignmentIsAlias(ee)?2097152:4,un=He(y.symbol.exports,y.symbol,ee,Er,67108863);ee.isExportEquals&&e.setValueDeclaration(un,ee)}}function Fr(ee){e.some(ee.modifiers)&&E.bindDiagnostics.push(u(ee,e.Diagnostics.Modifiers_cannot_appear_here));var Er=e.isSourceFile(ee.parent)?e.isExternalModule(ee.parent)?ee.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;Er?E.bindDiagnostics.push(u(ee,Er)):(E.symbol.globalExports=E.symbol.globalExports||e.createSymbolTable(),He(E.symbol.globalExports,E.symbol,ee,2097152,2097152))}function yi(ee){!y.symbol||!y.symbol.exports?nn(ee,8388608,ge(ee)):ee.exportClause?e.isNamespaceExport(ee.exportClause)&&(e.setParent(ee.exportClause,ee),He(y.symbol.exports,y.symbol,ee.exportClause,2097152,2097152)):He(y.symbol.exports,y.symbol,ee,8388608,0)}function Dt(ee){ee.name&&ti(ee,2097152,2097152)}function Ft(ee){return E.externalModuleIndicator&&E.externalModuleIndicator!==!0?!1:(E.commonJsModuleIndicator||(E.commonJsModuleIndicator=ee,E.externalModuleIndicator||To()),!0)}function Pa(ee){if(!!Ft(ee)){var Er=ac(ee.arguments[0],void 0,function($n,Ii){return Ii&&U(Ii,$n,1536|67108864),Ii});if(Er){var un=4|1048576;He(Er.exports,Er,ee,un,0)}}}function Ve(ee){if(!!Ft(ee)){var Er=ac(ee.left.expression,void 0,function(Ii,at){return at&&U(at,Ii,1536|67108864),at});if(Er){var un=e.isAliasableExpression(ee.right)&&(e.isExportsIdentifier(ee.left.expression)||e.isModuleExportsAccessExpression(ee.left.expression)),$n=un?2097152:4|1048576;e.setParent(ee.left,ee),He(Er.exports,Er,ee.left,$n,0)}}}function tn(ee){if(!!Ft(ee)){var Er=e.getRightMostAssignedExpression(ee.right);if(!(e.isEmptyObjectLiteral(Er)||y===E&&oe(E,Er))){if(e.isObjectLiteralExpression(Er)&&e.every(Er.properties,e.isShorthandPropertyAssignment)){e.forEach(Er.properties,Nn);return}var un=e.exportAssignmentIsAlias(ee)?2097152:4|1048576|512,$n=He(E.symbol.exports,E.symbol,ee,un|67108864,0);e.setValueDeclaration($n,ee)}}}function Nn(ee){He(E.symbol.exports,E.symbol,ee,2097152|67108864,0)}function wn(ee){e.Debug.assert(e.isInJSFile(ee));var Er=e.isBinaryExpression(ee)&&e.isPropertyAccessExpression(ee.left)&&e.isPrivateIdentifier(ee.left.name)||e.isPropertyAccessExpression(ee)&&e.isPrivateIdentifier(ee.name);if(!Er){var un=e.getThisContainer(ee,!1);switch(un.kind){case 259:case 215:var $n=un.symbol;if(e.isBinaryExpression(un.parent)&&un.parent.operatorToken.kind===63){var Ii=un.parent.left;e.isBindableStaticAccessExpression(Ii)&&e.isPrototypeAccess(Ii.expression)&&($n=ps(Ii.expression.expression,S))}$n&&$n.valueDeclaration&&($n.members=$n.members||e.createSymbolTable(),e.hasDynamicName(ee)?Je(ee,$n,$n.members):He($n.members,$n,ee,4|67108864,0&~4),U($n,$n.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:var at=un.parent,Ji=e.isStatic(un)?at.symbol.exports:at.symbol.members;e.hasDynamicName(ee)?Je(ee,at.symbol,Ji):He(Ji,at.symbol,ee,4|67108864,0,!0);break;case 308:if(e.hasDynamicName(ee))break;un.commonJsModuleIndicator?He(un.symbol.exports,un.symbol,ee,4|1048576,0):ti(ee,1,111550);break;default:e.Debug.failBadSyntaxKind(un)}}}function Je(ee,Er,un){He(un,Er,ee,4,0,!0,!0),ur(ee,Er)}function ur(ee,Er){Er&&(Er.assignmentDeclarationMembers||(Er.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(ee),ee)}function yr(ee){ee.expression.kind===108?wn(ee):e.isBindableStaticAccessExpression(ee)&&ee.parent.parent.kind===308&&(e.isPrototypeAccess(ee.expression)?_i(ee,ee.parent):Nt(ee))}function Jr(ee){e.setParent(ee.left,ee),e.setParent(ee.right,ee),Ia(ee.left.expression,ee.left,!1,!0)}function Mn(ee){var Er=ps(ee.arguments[0].expression);Er&&Er.valueDeclaration&&U(Er,Er.valueDeclaration,32),la(ee,Er,!0)}function _i(ee,Er){var un=ee.expression,$n=un.expression;e.setParent($n,un),e.setParent(un,ee),e.setParent(ee,Er),Ia($n,ee,!0,!0)}function di(ee){var Er=ps(ee.arguments[0]),un=ee.parent.parent.kind===308;Er=Gt(Er,ee.arguments[0],un,!1,!1),la(ee,Er,!1)}function fi(ee){var Er,un=ps(ee.left.expression,y)||ps(ee.left.expression,k);if(!(!e.isInJSFile(ee)&&!e.isFunctionSymbol(un))){var $n=e.getLeftmostAccessExpression(ee.left);if(!(e.isIdentifier($n)&&((Er=ae(y,$n.escapedText))===null||Er===void 0?void 0:Er.flags)&2097152))if(e.setParent(ee.left,ee),e.setParent(ee.right,ee),e.isIdentifier(ee.left.expression)&&y===E&&oe(E,ee.left.expression))Ve(ee);else if(e.hasDynamicName(ee)){nn(ee,4|67108864,"__computed");var Ii=Gt(un,ee.left.expression,na(ee.left),!1,!1);ur(ee,Ii)}else Nt(e.cast(ee.left,e.isBindableStaticNameExpression))}}function Nt(ee){e.Debug.assert(!e.isIdentifier(ee)),e.setParent(ee.expression,ee),Ia(ee.expression,ee,!1,!1)}function Gt(ee,Er,un,$n,Ii){if((ee==null?void 0:ee.flags)&2097152)return ee;if(un&&!$n){var at=1536|67108864,Ji=110735&~67108864;ee=ac(Er,ee,function(_t,Ht,Rt){if(Ht)return U(Ht,_t,at),Ht;var va=Rt?Rt.exports:E.jsGlobalAugmentations||(E.jsGlobalAugmentations=e.createSymbolTable());return He(va,Rt,_t,at,Ji)})}return Ii&&ee&&ee.valueDeclaration&&U(ee,ee.valueDeclaration,32),ee}function la(ee,Er,un){if(!(!Er||!bs(Er))){var $n=un?Er.members||(Er.members=e.createSymbolTable()):Er.exports||(Er.exports=e.createSymbolTable()),Ii=0,at=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(ee))?(Ii=8192,at=103359):e.isCallExpression(ee)&&e.isBindableObjectDefinePropertyCall(ee)&&(e.some(ee.arguments[2].properties,function(Ji){var _t=e.getNameOfDeclaration(Ji);return!!_t&&e.isIdentifier(_t)&&e.idText(_t)==="set"})&&(Ii|=65536|4,at|=78783),e.some(ee.arguments[2].properties,function(Ji){var _t=e.getNameOfDeclaration(Ji);return!!_t&&e.isIdentifier(_t)&&e.idText(_t)==="get"})&&(Ii|=32768|4,at|=46015)),Ii===0&&(Ii=4,at=0),He($n,Er,ee,Ii|67108864,at&~67108864)}}function na(ee){return e.isBinaryExpression(ee.parent)?ds(ee.parent).parent.kind===308:ee.parent.parent.kind===308}function Ia(ee,Er,un,$n){var Ii=ps(ee,y)||ps(ee,k),at=na(Er);Ii=Gt(Ii,Er.expression,at,un,$n),la(Er,Ii,un)}function bs(ee){if(ee.flags&(16|32|1024))return!0;var Er=ee.valueDeclaration;if(Er&&e.isCallExpression(Er))return!!e.getAssignedExpandoInitializer(Er);var un=Er?e.isVariableDeclaration(Er)?Er.initializer:e.isBinaryExpression(Er)?Er.right:e.isPropertyAccessExpression(Er)&&e.isBinaryExpression(Er.parent)?Er.parent.right:void 0:void 0;if(un=un&&e.getRightMostAssignedExpression(un),un){var $n=e.isPrototypeAccess(e.isVariableDeclaration(Er)?Er.name:e.isBinaryExpression(Er)?Er.left:Er);return!!e.getExpandoInitializer(e.isBinaryExpression(un)&&(un.operatorToken.kind===56||un.operatorToken.kind===60)?un.right:un,$n)}return!1}function ds(ee){for(;e.isBinaryExpression(ee.parent);)ee=ee.parent;return ee.parent}function ps(ee,Er){if(Er===void 0&&(Er=y),e.isIdentifier(ee))return ae(Er,ee.escapedText);var un=ps(ee.expression);return un&&un.exports&&un.exports.get(e.getElementOrPropertyAccessName(ee))}function ac(ee,Er,un){if(oe(E,ee))return E.symbol;if(e.isIdentifier(ee))return un(ee,ps(ee),Er);var $n=ac(ee.expression,Er,un),Ii=e.getNameOrArgument(ee);return e.isPrivateIdentifier(Ii)&&e.Debug.fail("unexpected PrivateIdentifier"),un(Ii,$n&&$n.exports&&$n.exports.get(e.getElementOrPropertyAccessName(ee)),$n)}function Es(ee){!E.commonJsModuleIndicator&&e.isRequireCall(ee,!1)&&Ft(ee)}function ns(ee){if(ee.kind===260)Cn(ee,32,899503);else{var Er=ee.name?ee.name.escapedText:"__class";nn(ee,32,Er),ee.name&&x.add(ee.name.escapedText)}var un=ee.symbol,$n=z(4|4194304,"prototype"),Ii=un.exports.get($n.escapedName);Ii&&(ee.name&&e.setParent(ee.name,ee),E.bindDiagnostics.push(u(Ii.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName($n)))),un.exports.set($n.escapedName,$n),$n.parent=un}function dc(ee){return e.isEnumConst(ee)?Cn(ee,128,899967):Cn(ee,256,899327)}function $s(ee){if(q&&qi(ee,ee.name),!e.isBindingPattern(ee.name)){var Er=ee.kind===257?ee:ee.parent.parent;e.isInJSFile(ee)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Er)&&!e.getJSDocTypeTag(ee)&&!(e.getCombinedModifierFlags(ee)&1)?ti(ee,2097152,2097152):e.isBlockOrCatchScoped(ee)?Cn(ee,2,111551):e.isParameterDeclaration(ee)?ti(ee,1,111551):ti(ee,1,111550)}}function pc(ee){if(!(ee.kind===343&&y.kind!==326)&&(q&&!(ee.flags&16777216)&&qi(ee,ee.name),e.isBindingPattern(ee.name)?nn(ee,1,"__"+ee.parent.parameters.indexOf(ee)):ti(ee,1,111551),e.isParameterPropertyDeclaration(ee,ee.parent))){var Er=ee.parent.parent;He(Er.symbol.members,Er.symbol,ee,4|(ee.questionToken?16777216:0),0)}}function js(ee){!E.isDeclarationFile&&!(ee.flags&16777216)&&e.isAsyncFunction(ee)&&(J|=2048),Tt(ee),q?(Zi(ee),Cn(ee,16,110991)):ti(ee,16,110991)}function Sc(ee){!E.isDeclarationFile&&!(ee.flags&16777216)&&e.isAsyncFunction(ee)&&(J|=2048),X&&(ee.flowNode=X),Tt(ee);var Er=ee.name?ee.name.escapedText:"__function";return nn(ee,16,Er)}function Ko(ee,Er,un){return!E.isDeclarationFile&&!(ee.flags&16777216)&&e.isAsyncFunction(ee)&&(J|=2048),X&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(ee)&&(ee.flowNode=X),e.hasDynamicName(ee)?nn(ee,Er,"__computed"):ti(ee,Er,un)}function Mc(ee){var Er=e.findAncestor(ee,function(un){return un.parent&&e.isConditionalTypeNode(un.parent)&&un.parent.extendsType===un});return Er&&Er.parent}function Vs(ee){if(e.isJSDocTemplateTag(ee.parent)){var Er=e.getEffectiveContainerForJSDocTemplateTag(ee.parent);Er?(Er.locals||(Er.locals=e.createSymbolTable()),He(Er.locals,void 0,ee,262144,526824)):ti(ee,262144,526824)}else if(ee.parent.kind===192){var un=Mc(ee.parent);un?(un.locals||(un.locals=e.createSymbolTable()),He(un.locals,void 0,ee,262144,526824)):nn(ee,262144,ge(ee))}else ti(ee,262144,526824)}function oc(ee){var Er=ne(ee);return Er===1||Er===2&&e.shouldPreserveConstEnums(I)}function Ss(ee){if(!(X.flags&1))return!1;if(X===T){var Er=e.isStatementButNotDeclaration(ee)&&ee.kind!==239||ee.kind===260||ee.kind===264&&oc(ee);if(Er&&(X=Z,!I.allowUnreachableCode)){var un=e.unreachableCodeIsError(I)&&!(ee.flags&16777216)&&(!e.isVariableStatement(ee)||!!(e.getCombinedNodeFlags(ee.declarationList)&3)||ee.declarationList.declarations.some(function($n){return!!$n.initializer}));le(ee,function($n,Ii){return Aa(un,$n,Ii,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function le(E,I){if(e.isStatement(E)&&de(E)&&e.isBlock(E.parent)){var f=E.parent.statements,m=e.sliceAfter(f,E);e.getRangesWhere(m,de,function(y,S){return I(m[y],m[S-1])})}else I(E,E)}function de(E){return!e.isFunctionDeclaration(E)&&!te(E)&&!e.isEnumDeclaration(E)&&!(e.isVariableStatement(E)&&!(e.getCombinedNodeFlags(E)&(1|2))&&E.declarationList.declarations.some(function(I){return!I.initializer}))}function te(E){switch(E.kind){case 261:case 262:return!0;case 264:return ne(E)!==1;case 263:return e.hasSyntacticModifier(E,2048);default:return!1}}function oe(E,I){var f=0,m=e.createQueue();for(m.enqueue(I);!m.isEmpty()&&f<100;){if(f++,I=m.dequeue(),e.isExportsIdentifier(I)||e.isModuleExportsAccessExpression(I))return!0;if(e.isIdentifier(I)){var y=ae(E,I.escapedText);if(!!y&&!!y.valueDeclaration&&e.isVariableDeclaration(y.valueDeclaration)&&!!y.valueDeclaration.initializer){var S=y.valueDeclaration.initializer;m.enqueue(S),e.isAssignmentExpression(S,!0)&&(m.enqueue(S.left),m.enqueue(S.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=oe;function ae(E,I){var f=E.locals&&E.locals.get(I);return f?f.exportSymbol||f:e.isSourceFile(E)&&E.jsGlobalAugmentations&&E.jsGlobalAugmentations.has(I)?E.jsGlobalAugmentations.get(I):E.symbol&&E.symbol.exports&&E.symbol.exports.get(I)}})(fr||(fr={}));var fr;(function(e){function o(ne,K,se,O,ie,_e,Q,p,D,le){return de;function de(te){te===void 0&&(te=function(){return!0});var oe=[],ae=[];return{walkType:function(M){try{return E(M),{visitedTypes:e.getOwnValues(oe),visitedSymbols:e.getOwnValues(ae)}}finally{e.clear(oe),e.clear(ae)}},walkSymbol:function(M){try{return X(M),{visitedTypes:e.getOwnValues(oe),visitedSymbols:e.getOwnValues(ae)}}finally{e.clear(oe),e.clear(ae)}}};function E(M){if(!!M&&!oe[M.id]){oe[M.id]=M;var H=X(M.symbol);if(!H){if(M.flags&524288){var V=M,h=V.objectFlags;h&4&&I(M),h&32&&k(M),h&(1|2)&&me(M),h&(8|16)&&De(V)}M.flags&262144&&f(M),M.flags&3145728&&m(M),M.flags&4194304&&y(M),M.flags&8388608&&S(M)}}}function I(M){E(M.target),e.forEach(le(M),E)}function f(M){E(p(M))}function m(M){e.forEach(M.types,E)}function y(M){E(M.type)}function S(M){E(M.objectType),E(M.indexType),E(M.constraint)}function k(M){E(M.typeParameter),E(M.constraintType),E(M.templateType),E(M.modifiersType)}function C(M){var H=K(M);H&&E(H.type),e.forEach(M.typeParameters,E);for(var V=0,h=M.parameters;V<h.length;V++){var F=h[V];X(F)}E(ne(M)),E(se(M))}function me(M){De(M),e.forEach(M.typeParameters,E),e.forEach(O(M),E),E(M.thisType)}function De(M){for(var H=ie(M),V=0,h=H.indexInfos;V<h.length;V++){var F=h[V];E(F.keyType),E(F.type)}for(var $=0,L=H.callSignatures;$<L.length;$++){var P=L[$];C(P)}for(var N=0,J=H.constructSignatures;N<J.length;N++){var P=J[N];C(P)}for(var q=0,G=H.properties;q<G.length;q++){var ye=G[q];X(ye)}}function X(M){if(!M)return!1;var H=e.getSymbolId(M);if(ae[H])return!1;if(ae[H]=M,!te(M))return!0;var V=_e(M);return E(V),M.exports&&M.exports.forEach(X),e.forEach(M.declarations,function(h){if(h.type&&h.type.kind===183){var F=h.type,$=Q(D(F.exprName));X($)}}),!1}}}e.createGetSymbolWalker=o})(fr||(fr={}));var fr;(function(e){var o=/^".+"$/,ne="(anonymous)",K=1,se=1,O=1,ie=1,_e;(function(b){b[b.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",b[b.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",b[b.AllowsStringInputFlag=4]="AllowsStringInputFlag",b[b.ForOfFlag=8]="ForOfFlag",b[b.YieldStarFlag=16]="YieldStarFlag",b[b.SpreadFlag=32]="SpreadFlag",b[b.DestructuringFlag=64]="DestructuringFlag",b[b.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",b[b.Element=1]="Element",b[b.Spread=33]="Spread",b[b.Destructuring=65]="Destructuring",b[b.ForOf=13]="ForOf",b[b.ForAwaitOf=15]="ForAwaitOf",b[b.YieldStar=17]="YieldStar",b[b.AsyncYieldStar=19]="AsyncYieldStar",b[b.GeneratorReturnType=1]="GeneratorReturnType",b[b.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(_e||(_e={}));var Q;(function(b){b[b.Yield=0]="Yield",b[b.Return=1]="Return",b[b.Next=2]="Next"})(Q||(Q={}));var p;(function(b){b[b.Normal=0]="Normal",b[b.FunctionReturn=1]="FunctionReturn",b[b.GeneratorNext=2]="GeneratorNext",b[b.GeneratorYield=3]="GeneratorYield"})(p||(p={}));var D;(function(b){b[b.None=0]="None",b[b.TypeofEQString=1]="TypeofEQString",b[b.TypeofEQNumber=2]="TypeofEQNumber",b[b.TypeofEQBigInt=4]="TypeofEQBigInt",b[b.TypeofEQBoolean=8]="TypeofEQBoolean",b[b.TypeofEQSymbol=16]="TypeofEQSymbol",b[b.TypeofEQObject=32]="TypeofEQObject",b[b.TypeofEQFunction=64]="TypeofEQFunction",b[b.TypeofEQHostObject=128]="TypeofEQHostObject",b[b.TypeofNEString=256]="TypeofNEString",b[b.TypeofNENumber=512]="TypeofNENumber",b[b.TypeofNEBigInt=1024]="TypeofNEBigInt",b[b.TypeofNEBoolean=2048]="TypeofNEBoolean",b[b.TypeofNESymbol=4096]="TypeofNESymbol",b[b.TypeofNEObject=8192]="TypeofNEObject",b[b.TypeofNEFunction=16384]="TypeofNEFunction",b[b.TypeofNEHostObject=32768]="TypeofNEHostObject",b[b.EQUndefined=65536]="EQUndefined",b[b.EQNull=131072]="EQNull",b[b.EQUndefinedOrNull=262144]="EQUndefinedOrNull",b[b.NEUndefined=524288]="NEUndefined",b[b.NENull=1048576]="NENull",b[b.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",b[b.Truthy=4194304]="Truthy",b[b.Falsy=8388608]="Falsy",b[b.IsUndefined=16777216]="IsUndefined",b[b.IsNull=33554432]="IsNull",b[b.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",b[b.All=134217727]="All",b[b.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",b[b.BaseStringFacts=12582401]="BaseStringFacts",b[b.StringStrictFacts=16317953]="StringStrictFacts",b[b.StringFacts=16776705]="StringFacts",b[b.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",b[b.EmptyStringFacts=12582401]="EmptyStringFacts",b[b.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",b[b.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",b[b.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",b[b.BaseNumberFacts=12582146]="BaseNumberFacts",b[b.NumberStrictFacts=16317698]="NumberStrictFacts",b[b.NumberFacts=16776450]="NumberFacts",b[b.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",b[b.ZeroNumberFacts=12582146]="ZeroNumberFacts",b[b.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",b[b.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",b[b.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",b[b.BaseBigIntFacts=12581636]="BaseBigIntFacts",b[b.BigIntStrictFacts=16317188]="BigIntStrictFacts",b[b.BigIntFacts=16775940]="BigIntFacts",b[b.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",b[b.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",b[b.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",b[b.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",b[b.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",b[b.BaseBooleanFacts=12580616]="BaseBooleanFacts",b[b.BooleanStrictFacts=16316168]="BooleanStrictFacts",b[b.BooleanFacts=16774920]="BooleanFacts",b[b.FalseStrictFacts=12121864]="FalseStrictFacts",b[b.FalseFacts=12580616]="FalseFacts",b[b.TrueStrictFacts=7927560]="TrueStrictFacts",b[b.TrueFacts=16774920]="TrueFacts",b[b.SymbolStrictFacts=7925520]="SymbolStrictFacts",b[b.SymbolFacts=16772880]="SymbolFacts",b[b.ObjectStrictFacts=7888800]="ObjectStrictFacts",b[b.ObjectFacts=16736160]="ObjectFacts",b[b.FunctionStrictFacts=7880640]="FunctionStrictFacts",b[b.FunctionFacts=16728e3]="FunctionFacts",b[b.VoidFacts=9830144]="VoidFacts",b[b.UndefinedFacts=26607360]="UndefinedFacts",b[b.NullFacts=42917664]="NullFacts",b[b.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",b[b.EmptyObjectFacts=83886079]="EmptyObjectFacts",b[b.UnknownFacts=83886079]="UnknownFacts",b[b.AllTypeofNE=556800]="AllTypeofNE",b[b.OrFactsMask=8256]="OrFactsMask",b[b.AndFactsMask=134209471]="AndFactsMask"})(D=e.TypeFacts||(e.TypeFacts={}));var le=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),de;(function(b){b[b.Type=0]="Type",b[b.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",b[b.DeclaredType=2]="DeclaredType",b[b.ResolvedReturnType=3]="ResolvedReturnType",b[b.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",b[b.EnumTagType=5]="EnumTagType",b[b.ResolvedTypeArguments=6]="ResolvedTypeArguments",b[b.ResolvedBaseTypes=7]="ResolvedBaseTypes",b[b.WriteType=8]="WriteType"})(de||(de={}));var te;(function(b){b[b.Normal=0]="Normal",b[b.Contextual=1]="Contextual",b[b.Inferential=2]="Inferential",b[b.SkipContextSensitive=4]="SkipContextSensitive",b[b.SkipGenericFunctions=8]="SkipGenericFunctions",b[b.IsForSignatureHelp=16]="IsForSignatureHelp",b[b.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",b[b.RestBindingElement=64]="RestBindingElement"})(te=e.CheckMode||(e.CheckMode={}));var oe;(function(b){b[b.BivariantCallback=1]="BivariantCallback",b[b.StrictCallback=2]="StrictCallback",b[b.IgnoreReturnTypes=4]="IgnoreReturnTypes",b[b.StrictArity=8]="StrictArity",b[b.Callback=3]="Callback"})(oe=e.SignatureCheckMode||(e.SignatureCheckMode={}));var ae;(function(b){b[b.None=0]="None",b[b.Source=1]="Source",b[b.Target=2]="Target"})(ae||(ae={}));var E;(function(b){b[b.None=0]="None",b[b.Source=1]="Source",b[b.Target=2]="Target",b[b.Both=3]="Both"})(E||(E={}));var I;(function(b){b[b.IncludeReadonly=1]="IncludeReadonly",b[b.ExcludeReadonly=2]="ExcludeReadonly",b[b.IncludeOptional=4]="IncludeOptional",b[b.ExcludeOptional=8]="ExcludeOptional"})(I||(I={}));var f;(function(b){b[b.None=0]="None",b[b.Source=1]="Source",b[b.Target=2]="Target",b[b.Both=3]="Both"})(f||(f={}));var m;(function(b){b.resolvedExports="resolvedExports",b.resolvedMembers="resolvedMembers"})(m||(m={}));var y;(function(b){b[b.Local=0]="Local",b[b.Parameter=1]="Parameter"})(y||(y={}));var S=e.and(P,L),k;(function(b){b[b.GetAccessor=1]="GetAccessor",b[b.SetAccessor=2]="SetAccessor",b[b.PropertyAssignment=4]="PropertyAssignment",b[b.Method=8]="Method",b[b.PrivateStatic=16]="PrivateStatic",b[b.GetOrSetAccessor=3]="GetOrSetAccessor",b[b.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(k||(k={}));var C;(function(b){b[b.None=0]="None",b[b.ExportValue=1]="ExportValue",b[b.ExportType=2]="ExportType",b[b.ExportNamespace=4]="ExportNamespace"})(C||(C={}));var me;(function(b){b[b.None=0]="None",b[b.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",b[b.VoidIsNonOptional=2]="VoidIsNonOptional"})(me||(me={}));var De;(function(b){b[b.Uppercase=0]="Uppercase",b[b.Lowercase=1]="Lowercase",b[b.Capitalize=2]="Capitalize",b[b.Uncapitalize=3]="Uncapitalize"})(De||(De={}));var X=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function M(){}function H(){this.flags=0}function V(b){return b.id||(b.id=se,se++),b.id}e.getNodeId=V;function h(b){return b.id||(b.id=K,K++),b.id}e.getSymbolId=h;function F(b,x){var T=e.getModuleInstanceState(b);return T===1||x&&T===2}e.isInstantiatedModule=F;function $(b){var x=e.memoize(function(){var r=new e.Map;return b.getSourceFiles().forEach(function(n){!n.resolvedModules||n.resolvedModules.forEach(function(i){i&&i.packageId&&r.set(i.packageId.name,i.extension===".d.ts"||!!r.get(i.packageId.name))})}),r}),T=[],Z=function(r){T.push(r)},B,u,A,w=e.objectAllocator.getSymbolConstructor(),z=e.objectAllocator.getTypeConstructor(),U=e.objectAllocator.getSignatureConstructor(),ge=0,pe=0,He=0,Be=0,Me=0,Le=0,Ae=0,Xe,Ne,Oe=e.createSymbolTable(),be=[1],Y=b.getCompilerOptions(),d=e.getEmitScriptTarget(Y),j=e.getEmitModuleKind(Y),Ce=e.getUseDefineForClassFields(Y),Se=e.getAllowSyntheticDefaultImports(Y),Re=e.getStrictOptionValue(Y,"strictNullChecks"),er=e.getStrictOptionValue(Y,"strictFunctionTypes"),wr=e.getStrictOptionValue(Y,"strictBindCallApply"),mr=e.getStrictOptionValue(Y,"strictPropertyInitialization"),Ue=e.getStrictOptionValue(Y,"noImplicitAny"),t=e.getStrictOptionValue(Y,"noImplicitThis"),qr=e.getStrictOptionValue(Y,"useUnknownInCatchVariables"),ln=!!Y.keyofStringsOnly,dr=Y.suppressExcessPropertyErrors?0:8192,vr=Y.exactOptionalPropertyTypes,kr=Q3(),Ur=x5(),Cr=Bd(),rn=e.createSymbolTable(),Br=go(4,"undefined");Br.declarations=[];var pn=go(1536,"globalThis",8);pn.exports=rn,pn.declarations=[],rn.set(pn.escapedName,pn);var ve=go(4,"arguments"),or=go(4,"require"),Ee,ze={getNodeCount:function(){return e.sum(b.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(b.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(b.getSourceFiles(),"symbolCount")+pe},getTypeCount:function(){return ge},getInstantiationCount:function(){return Be},getRelationCacheSizes:function(){return{assignable:fa.size,identity:no.size,subtype:gt.size,strictSubtype:jt.size}},isUndefinedSymbol:function(r){return r===Br},isArgumentsSymbol:function(r){return r===ve},isUnknownSymbol:function(r){return r===jr},getMergedSymbol:Ya,getDiagnostics:oE,getGlobalDiagnostics:JI,getRecursionIdentity:$m,getUnmatchedProperties:v2,getTypeOfSymbolAtLocation:function(r,n){var i=e.getParseTreeNode(n);return i?s4(r,i):ue},getTypeOfSymbol:Li,getSymbolsOfParameterPropertyDeclaration:function(r,n){var i=e.getParseTreeNode(r,e.isParameter);return i===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):q_(i,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:nt,getPropertiesOfType:vo,getPropertyOfType:function(r,n){return Zt(r,e.escapeLeadingUnderscores(n))},getPrivateIdentifierPropertyOfType:function(r,n,i){var a=e.getParseTreeNode(i);if(!!a){var s=e.escapeLeadingUnderscores(n),l=s0(s,a);return l?eD(r,l):void 0}},getTypeOfPropertyOfType:function(r,n){return Na(r,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:function(r,n){return Wu(r,n===0?yn:Hn)},getIndexInfosOfType:hs,getIndexInfosOfIndexSymbol:_1,getSignaturesOfType:_a,getIndexTypeOfType:function(r,n){return cl(r,n===0?yn:Hn)},getIndexType:function(r){return Wl(r)},getBaseTypes:nu,getBaseTypeOfLiteralType:ql,getWidenedType:tu,getTypeFromTypeNode:function(r){var n=e.getParseTreeNode(r,e.isTypeNode);return n?zt(n):ue},getParameterType:fl,getParameterIdentifierNameAtPosition:x3,getPromisedTypeOfPromise:yv,getAwaitedType:function(r){return ug(r)},getReturnTypeOfSignature:Ao,isNullableType:o0,getNullableType:Lh,getNonNullableType:l_,getNonOptionalType:s2,getTypeArguments:No,typeToTypeNode:Cr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Cr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Cr.signatureToSignatureDeclaration,symbolToEntityName:Cr.symbolToEntityName,symbolToExpression:Cr.symbolToExpression,symbolToNode:Cr.symbolToNode,symbolToTypeParameterDeclarations:Cr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Cr.symbolToParameterDeclaration,typeParameterToDeclaration:Cr.typeParameterToDeclaration,getSymbolsInScope:function(r,n){var i=e.getParseTreeNode(r);return i?jI(i,n):[]},getSymbolAtLocation:function(r){var n=e.getParseTreeNode(r);return n?Ku(n,!0):void 0},getIndexInfosAtLocation:function(r){var n=e.getParseTreeNode(r);return n?HI(n):void 0},getShorthandAssignmentValueSymbol:function(r){var n=e.getParseTreeNode(r);return n?KI(n):void 0},getExportSpecifierLocalTargetSymbol:function(r){var n=e.getParseTreeNode(r,e.isExportSpecifier);return n?QI(n):void 0},getExportSymbolOfSymbol:function(r){return Ya(r.exportSymbol||r)},getTypeAtLocation:function(r){var n=e.getParseTreeNode(r);return n?lg(n):ue},getTypeOfAssignmentPattern:function(r){var n=e.getParseTreeNode(r,e.isAssignmentPattern);return n&&M0(n)||ue},getPropertySymbolOfDestructuringAssignment:function(r){var n=e.getParseTreeNode(r,e.isIdentifier);return n?XI(n):void 0},signatureToString:function(r,n,i,a){return ru(r,e.getParseTreeNode(n),i,a)},typeToString:function(r,n,i){return Oi(r,e.getParseTreeNode(n),i)},symbolToString:function(r,n,i,a){return Xt(r,e.getParseTreeNode(n),i,a)},typePredicateToString:function(r,n,i){return yc(r,e.getParseTreeNode(n),i)},writeSignature:function(r,n,i,a,s){return ru(r,e.getParseTreeNode(n),i,a,s)},writeType:function(r,n,i,a){return Oi(r,e.getParseTreeNode(n),i,a)},writeSymbol:function(r,n,i,a,s){return Xt(r,e.getParseTreeNode(n),i,a,s)},writeTypePredicate:function(r,n,i,a){return yc(r,e.getParseTreeNode(n),i,a)},getAugmentedPropertiesOfType:KD,getRootSymbols:fE,getSymbolOfExpando:g0,getContextualType:function(r,n){var i=e.getParseTreeNode(r,e.isExpression);if(!!i)return n&4?Ar(i,function(){return Yc(i,n)}):Yc(i,n)},getContextualTypeForObjectLiteralElement:function(r){var n=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return n?j2(n,void 0):void 0},getContextualTypeForArgumentAtIndex:function(r,n){var i=e.getParseTreeNode(r,e.isCallLikeExpression);return i&&J2(i,n)},getContextualTypeForJsxAttribute:function(r){var n=e.getParseTreeNode(r,e.isJsxAttributeLike);return n&&Lx(n,void 0)},isContextSensitive:Gu,getTypeOfPropertyOfContextualType:Jp,getFullyQualifiedName:kc,getResolvedSignature:function(r,n,i){return xe(r,n,i,0)},getResolvedSignatureForStringLiteralCompletions:function(r,n,i){return xe(r,i,void 0,32,n)},getResolvedSignatureForSignatureHelp:function(r,n,i){return xe(r,n,i,16)},getExpandedParameters:sm,hasEffectiveRestParameter:Kl,containsArgumentsReference:c1,getConstantValue:function(r){var n=e.getParseTreeNode(r,mE);return n?XD(n):void 0},isValidPropertyAccess:function(r,n){var i=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!i&&LN(i,e.escapeLeadingUnderscores(n))},isValidPropertyAccessForCompletions:function(r,n,i){var a=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!a&&lC(a,n,i)},getSignatureFromDeclaration:function(r){var n=e.getParseTreeNode(r,e.isFunctionLike);return n?Vu(n):void 0},isImplementationOfOverload:function(r){var n=e.getParseTreeNode(r,e.isFunctionLike);return n?pE(n):void 0},getImmediateAliasedSymbol:q2,getAliasedSymbol:wi,getEmitResolver:Cl,getExportsOfModule:lf,getExportsAndPropertiesOfModule:rd,forEachExportAndPropertyOfModule:Pl,getSymbolWalker:e.createGetSymbolWalker(RE,qu,Ao,nu,Iu,Li,Hu,rc,e.getFirstIdentifier,No),getAmbientModules:_7,getJsxIntrinsicTagNamesAt:gN,isOptionalParameter:function(r){var n=e.getParseTreeNode(r,e.isParameter);return n?qd(n):!1},tryGetMemberInModuleExports:function(r,n){return nl(e.escapeLeadingUnderscores(r),n)},tryGetMemberInModuleExportsAndProperties:function(r,n){return nd(e.escapeLeadingUnderscores(r),n)},tryFindAmbientModule:function(r){return jm(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return jm(r,!1)},getApparentType:re,getUnionType:Ot,isTypeAssignableTo:io,createAnonymousType:Yo,createSignature:Bl,createSymbol:go,createIndexInfo:Ul,getAnyType:function(){return Te},getStringType:function(){return yn},getNumberType:function(){return Hn},createPromiseType:Ey,createArrayType:ic,getElementTypeOfArrayType:i2,getBooleanType:function(){return Pn},getFalseType:function(r){return r?ti:Hi},getTrueType:function(r){return r?Ni:gi},getVoidType:function(){return Ir},getUndefinedType:function(){return zr},getNullType:function(){return bn},getESSymbolType:function(){return Pe},getNeverType:function(){return we},getOptionalType:function(){return Vr},getPromiseType:function(){return Qv(!1)},getPromiseLikeType:function(){return Pb(!1)},getAsyncIterableType:function(){var r=gh(!1);if(r!==Ea)return r},isSymbolAccessible:Fl,isArrayType:Fu,isTupleType:Xa,isArrayLikeType:Td,isTypeInvalidDueToUnionDiscriminant:$0,getExactOptionalProperties:B6,getAllPossiblePropertiesOfTypes:e1,getSuggestedSymbolForNonexistentProperty:iD,getSuggestionForNonexistentProperty:tD,getSuggestedSymbolForNonexistentJSXAttribute:cC,getSuggestedSymbolForNonexistentSymbol:function(r,n,i){return aD(r,e.escapeLeadingUnderscores(n),i)},getSuggestionForNonexistentSymbol:function(r,n,i){return wN(r,e.escapeLeadingUnderscores(n),i)},getSuggestedSymbolForNonexistentModule:u0,getSuggestionForNonexistentExport:ON,getSuggestedSymbolForNonexistentClassMember:sC,getBaseConstraintOfType:uc,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?pd(r):void 0},resolveName:function(r,n,i,a){return is(n,e.escapeLeadingUnderscores(r),i,void 0,void 0,!1,a)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(ms(r))},getJsxFragmentFactory:function(r){var n=YD(r);return n&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(n).escapedText)},getAccessibleSymbolChain:pu,getTypePredicateOfSignature:qu,resolveExternalModuleName:function(r){var n=e.getParseTreeNode(r,e.isExpression);return n&&Ms(n,n,!0)},resolveExternalModuleSymbol:Us,tryGetThisTypeAt:function(r,n,i){var a=e.getParseTreeNode(r);return a&&F2(a,n,i)},getTypeArgumentConstraint:function(r){var n=e.getParseTreeNode(r,e.isTypeNode);return n&&EP(n)},getSuggestionDiagnostics:function(r,n){var i=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(i,Y,b))return e.emptyArray;var a;try{return B=n,GD(i),e.Debug.assert(!!(At(i).flags&1)),a=e.addRange(a,sr.getDiagnostics(i.fileName)),bT(aE(i),function(s,l,g){!e.containsParseError(s)&&!tE(l,!!(s.flags&16777216))&&(a||(a=[])).push(vi(vi({},g),{category:e.DiagnosticCategory.Suggestion}))}),a||e.emptyArray}finally{B=void 0}},runWithCancellationToken:function(r,n){try{return B=r,n(ze)}finally{B=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:df,isDeclarationVisible:_n,isPropertyAccessible:sD,getTypeOnlyAliasDeclaration:Ec,getMemberOverrideModifierStatus:rI,isTypeParameterPossiblyReferenced:ey};function Ar(r,n){var i=e.findAncestor(r,e.isCallLikeExpression),a=i&&At(i).resolvedSignature;if(i){var s=r;do At(s).skipDirectInference=!0,s=s.parent;while(s&&s!==i);At(i).resolvedSignature=void 0}var l=n();if(i){var s=r;do At(s).skipDirectInference=void 0,s=s.parent;while(s&&s!==i);At(i).resolvedSignature=a}return l}function xe(r,n,i,a,s){var l=e.getParseTreeNode(r,e.isCallLikeExpression);Ee=i;var g=l?s?Ar(s,function(){return Gg(l,n,a)}):Gg(l,n,a):void 0;return Ee=void 0,g}var cr=new e.Map,Mr=new e.Map,Rr=new e.Map,Qr=new e.Map,en=new e.Map,vn=new e.Map,Ie=new e.Map,We=new e.Map,xr=new e.Map,Lr=new e.Map,xn=new e.Map,An=new e.Map,Qn=new e.Map,ai=[],Dr=new e.Map,Pr=new e.Set,jr=go(4,"unknown"),on=go(0,"__resolving__"),je=new e.Map,Sr=new e.Map,Te=ko(1,"any"),Ye=ko(1,"any",262144),Qe=ko(1,"any"),ue=ko(1,"error"),Ke=ko(1,"unresolved"),tr=ko(1,"any",65536),hr=ko(1,"intrinsic"),_r=ko(2,"unknown"),Or=ko(2,"unknown"),zr=ko(32768,"undefined"),fn=Re?zr:ko(32768,"undefined",65536),Vr=ko(32768,"undefined"),Wn=vr?ko(32768,"undefined"):zr,bn=ko(65536,"null"),qn=Re?bn:ko(65536,"null",65536),yn=ko(4,"string"),Hn=ko(8,"number"),Ai=ko(64,"bigint"),ti=ko(512,"false"),Hi=ko(512,"false"),Ni=ko(512,"true"),gi=ko(512,"true");Ni.regularType=gi,Ni.freshType=Ni,gi.regularType=gi,gi.freshType=Ni,ti.regularType=Hi,ti.freshType=ti,Hi.regularType=Hi,Hi.freshType=ti;var Pn=Ot([Hi,gi]),Pe=ko(4096,"symbol"),Ir=ko(16384,"void"),we=ko(131072,"never"),hn=ko(131072,"never",262144),jn=ko(131072,"never"),gn=ko(131072,"never"),nn=ko(67108864,"object"),Cn=Ot([yn,Hn]),Dn=Ot([yn,Hn,Pe]),On=ln?yn:Dn,Xn=Ot([Hn,Ai]),Ge=Ot([yn,Hn,Pn,Ai,bn,zr]),cn=wp(["",""],[Hn]),Vn=$v(function(r){return r.flags&262144?u6(r):r},function(){return"(restrictive mapper)"}),Ki=$v(function(r){return r.flags&262144?Qe:r},function(){return"(permissive mapper)"}),dt=ko(131072,"never"),qi=$v(function(r){return r.flags&262144?dt:r},function(){return"(unique literal mapper)"}),Ci,Tt=$v(function(r){return Ci&&(r===ao||r===fo||r===As)&&Ci(!0),r},function(){return"(unmeasurable reporter)"}),ot=$v(function(r){return Ci&&(r===ao||r===fo||r===As)&&Ci(!1),r},function(){return"(unreliable reporter)"}),Zi=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray),ni=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray);ni.objectFlags|=2048;var Va=go(2048,"__type");Va.members=e.createSymbolTable();var Ua=Yo(Va,Oe,e.emptyArray,e.emptyArray,e.emptyArray),za=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray),Co=Re?Ot([zr,bn,za]):_r,Ea=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray);Ea.instantiations=new e.Map;var ho=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray);ho.objectFlags|=262144;var Aa=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray),Vi=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray),Xi=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray),ao=uu(),fo=uu();fo.constraint=ao;var As=uu(),so=uu(),Xo=uu();Xo.constraint=so;var Ho=lm(1,"<<unresolved>>",0,Te),Zo=Bl(void 0,void 0,void 0,e.emptyArray,Te,void 0,0,0),To=Bl(void 0,void 0,void 0,e.emptyArray,ue,void 0,0,0),pr=Bl(void 0,void 0,void 0,e.emptyArray,Te,void 0,0,0),Fr=Bl(void 0,void 0,void 0,e.emptyArray,hn,void 0,0,0),yi=Ul(Hn,yn,!0),Dt=new e.Map,Ft={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Pa=d_(Te,Te,Te),Ve=d_(Te,Te,_r),tn=d_(we,Te,zr),Nn={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:YE,getGlobalIterableType:gh,getGlobalIterableIteratorType:$E,getGlobalGeneratorType:ek,resolveIterationType:ug,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},wn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:rk,getGlobalIterableType:Ib,getGlobalIterableIteratorType:nk,getGlobalGeneratorType:ik,resolveIterationType:function(r,n){return r},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Je,ur=new e.Map,yr=!1,Jr,Mn,_i,di,fi,Nt,Gt,la,na,Ia,bs,ds,ps,ac,Es,ns,dc,$s,pc,js,Sc,Ko,Mc,Vs,oc,Ss,ee,Er,un,$n,Ii,at,Ji,_t,Ht,Rt,va,qe,Tn,Nr,ga,xa,co,gs,gc,ws,Lc=new e.Map,qs=0,ec=0,Rc=0,_o=!1,Gs=0,mc,xl,$c,Qu=Ou(""),Df=Vl(0),Xu=Dh({negative:!1,base10Value:"0"}),zc=[],Zu=[],Hr=[],Gr=0,Bn=10,ui=[],hi=[],Ei=[],st=[],Bi=[],Jt=[],Ca=[],Yt=[],Wt=[],Ga=[],$t=[],po=[],Do=[],Ns=[],jo=[],ys=[],Vo=[],fe=e.createDiagnosticCollection(),sr=e.createDiagnosticCollection(),Tr=Af(),Fn,Si,gt=new e.Map,jt=new e.Map,fa=new e.Map,Ka=new e.Map,no=new e.Map,Eo=new e.Map,Fa=e.createSymbolTable();Fa.set(Br.escapedName,Br);var Qa=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Y.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return C5(),ze;function zo(r){return r?Qn.get(r):void 0}function Uo(r,n){return r&&Qn.set(r,n),n}function ms(r){if(r){var n=e.getSourceFileOfNode(r);if(n)if(e.isJsxOpeningFragment(r)){if(n.localJsxFragmentNamespace)return n.localJsxFragmentNamespace;var i=n.pragmas.get("jsxfrag");if(i){var a=e.isArray(i)?i[0]:i;if(n.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,d),e.visitNode(n.localJsxFragmentFactory,Os),n.localJsxFragmentFactory)return n.localJsxFragmentNamespace=e.getFirstIdentifier(n.localJsxFragmentFactory).escapedText}var s=YD(r);if(s)return n.localJsxFragmentFactory=s,n.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{var l=xc(n);if(l)return n.localJsxNamespace=l}}return Fn||(Fn="React",Y.jsxFactory?(Si=e.parseIsolatedEntityName(Y.jsxFactory,d),e.visitNode(Si,Os),Si&&(Fn=e.getFirstIdentifier(Si).escapedText)):Y.reactNamespace&&(Fn=e.escapeLeadingUnderscores(Y.reactNamespace))),Si||(Si=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Fn)),"createElement")),Fn}function xc(r){if(r.localJsxNamespace)return r.localJsxNamespace;var n=r.pragmas.get("jsx");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,d),e.visitNode(r.localJsxFactory,Os),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function Os(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,Os,e.nullTransformationContext)}function Cl(r,n){return oE(r,n),Ur}function m_(r,n,i,a,s,l){var g=r?e.createDiagnosticForNode(r,n,i,a,s,l):e.createCompilerDiagnostic(n,i,a,s,l),W=fe.lookup(g);return W||(fe.add(g),g)}function pl(r,n,i,a,s,l,g){var W=Zr(n,i,a,s,l,g);return W.skippedOn=r,W}function Zl(r,n,i,a,s,l){return r?e.createDiagnosticForNode(r,n,i,a,s,l):e.createCompilerDiagnostic(n,i,a,s,l)}function Zr(r,n,i,a,s,l){var g=Zl(r,n,i,a,s,l);return fe.add(g),g}function Yl(r,n){r?fe.add(n):sr.add(vi(vi({},n),{category:e.DiagnosticCategory.Suggestion}))}function xu(r,n,i,a,s,l,g){if(n.pos<0||n.end<0){if(!r)return;var W=e.getSourceFileOfNode(n);Yl(r,"message"in i?e.createFileDiagnostic(W,0,0,i,a,s,l,g):e.createDiagnosticForFileFromMessageChain(W,i));return}Yl(r,"message"in i?e.createDiagnosticForNode(n,i,a,s,l,g):e.createDiagnosticForNodeFromMessageChain(n,i))}function $l(r,n,i,a,s,l,g){var W=Zr(r,i,a,s,l,g);if(n){var ce=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(W,ce)}return W}function Wf(r,n){var i=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return i&&e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),sr.add(n),n}function ef(r){return!!(a0(r)&268435456)}function Tl(r,n,i){var a=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,i);return Wf(n,a)}function Ad(r,n,i,a){var s=i?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,a,i):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,a);return Wf(n,s)}function go(r,n,i){pe++;var a=new w(r|33554432,n);return a.checkFlags=i||0,a}function U_(r){var n=0;return r&2&&(n|=111551),r&1&&(n|=111550),r&4&&(n|=0),r&8&&(n|=900095),r&16&&(n|=110991),r&32&&(n|=899503),r&64&&(n|=788872),r&256&&(n|=899327),r&128&&(n|=899967),r&512&&(n|=110735),r&8192&&(n|=103359),r&32768&&(n|=46015),r&65536&&(n|=78783),r&262144&&(n|=526824),r&524288&&(n|=788968),r&2097152&&(n|=2097152),n}function bf(r,n){n.mergeId||(n.mergeId=O,O++),ui[n.mergeId]=r}function z_(r){var n=go(r.flags,r.escapedName);return n.declarations=r.declarations?r.declarations.slice():[],n.parent=r.parent,r.valueDeclaration&&(n.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),r.members&&(n.members=new e.Map(r.members)),r.exports&&(n.exports=new e.Map(r.exports)),bf(n,r),n}function Vf(r,n,i){if(i===void 0&&(i=!1),!(r.flags&U_(n.flags))||(n.flags|r.flags)&67108864){if(n===r)return r;if(!(r.flags&33554432)){var a=ss(r);if(a===jr)return n;r=z_(a)}n.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!n.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=n.flags,n.valueDeclaration&&e.setValueDeclaration(r,n.valueDeclaration),e.addRange(r.declarations,n.declarations),n.members&&(r.members||(r.members=e.createSymbolTable()),ou(r.members,n.members,i)),n.exports&&(r.exports||(r.exports=e.createSymbolTable()),ou(r.exports,n.exports,i)),i||bf(r,n)}else if(r.flags&1024)r!==pn&&Zr(n.declarations&&e.getNameOfDeclaration(n.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Xt(r));else{var s=!!(r.flags&384||n.flags&384),l=!!(r.flags&2||n.flags&2),g=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:l?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,W=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),ce=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),ke=e.isPlainJsFile(W,Y.checkJs),rr=e.isPlainJsFile(ce,Y.checkJs),$e=Xt(n);if(W&&ce&&Je&&!s&&W!==ce){var ar=e.comparePaths(W.path,ce.path)===-1?W:ce,ir=ar===W?ce:W,Wr=e.getOrUpdate(Je,"".concat(ar.path,"|").concat(ir.path),function(){return{firstFile:ar,secondFile:ir,conflictingSymbols:new e.Map}}),sn=e.getOrUpdate(Wr.conflictingSymbols,$e,function(){return{isBlockScoped:l,firstFileLocations:[],secondFileLocations:[]}});ke||In(sn.firstFileLocations,n),rr||In(sn.secondFileLocations,r)}else ke||W_(n,g,$e,r),rr||W_(r,g,$e,n)}return r;function In(Sn,Kn){if(Kn.declarations)for(var ei=0,Ti=Kn.declarations;ei<Ti.length;ei++){var Ri=Ti[ei];e.pushIfUnique(Sn,Ri)}}}function W_(r,n,i,a){e.forEach(r.declarations,function(s){v_(s,n,i,a.declarations)})}function v_(r,n,i,a){for(var s=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,l=m_(s,n,i),g=function(rr){var $e=(e.getExpandoInitializer(rr,!1)?e.getNameOfExpando(rr):e.getNameOfDeclaration(rr))||rr;if($e===s)return"continue";l.relatedInformation=l.relatedInformation||[];var ar=e.createDiagnosticForNode($e,e.Diagnostics._0_was_also_declared_here,i),ir=e.createDiagnosticForNode($e,e.Diagnostics.and_here);if(e.length(l.relatedInformation)>=5||e.some(l.relatedInformation,function(Wr){return e.compareDiagnostics(Wr,ir)===0||e.compareDiagnostics(Wr,ar)===0}))return"continue";e.addRelatedInfo(l,e.length(l.relatedInformation)?ir:ar)},W=0,ce=a||e.emptyArray;W<ce.length;W++){var ke=ce[W];g(ke)}}function rf(r,n){if(!(r==null?void 0:r.size))return n;if(!(n==null?void 0:n.size))return r;var i=e.createSymbolTable();return ou(i,r),ou(i,n),i}function ou(r,n,i){i===void 0&&(i=!1),n.forEach(function(a,s){var l=r.get(s);r.set(s,l?Vf(l,a,i):Ya(a))})}function V_(r){var n,i,a,s=r.parent;if(((n=s.symbol.declarations)===null||n===void 0?void 0:n[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))ou(rn,s.symbol.exports);else{var l=r.parent.parent.flags&16777216?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,g=ml(r,r,l,!0);if(!g)return;if(g=Us(g),g.flags&1920)if(e.some(Mn,function(Wr){return g===Wr.symbol})){var W=Vf(s.symbol,g,!0);_i||(_i=new e.Map),_i.set(r.text,W)}else{if(((i=g.exports)===null||i===void 0?void 0:i.get("__export"))&&((a=s.symbol.exports)===null||a===void 0?void 0:a.size))for(var ce=Ov(g,"resolvedExports"),ke=0,rr=e.arrayFrom(s.symbol.exports.entries());ke<rr.length;ke++){var $e=rr[ke],ar=$e[0],ir=$e[1];ce.has(ar)&&!g.exports.has(ar)&&Vf(ce.get(ar),ir)}Vf(g,s.symbol)}else Zr(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function y_(r,n,i){n.forEach(function(s,l){var g=r.get(l);g?e.forEach(g.declarations,a(e.unescapeLeadingUnderscores(l),i)):r.set(l,s)});function a(s,l){return function(g){return fe.add(e.createDiagnosticForNode(g,l,s))}}}function Qt(r){if(r.flags&33554432)return r;var n=h(r);return hi[n]||(hi[n]=new M)}function At(r){var n=V(r);return Ei[n]||(Ei[n]=new H)}function Cu(r){return r.kind===308&&!e.isExternalOrCommonJsModule(r)}function Wc(r,n,i){if(i){var a=Ya(r.get(n));if(a){if(e.Debug.assert((e.getCheckFlags(a)&1)==0,"Should never get an instantiated symbol here."),a.flags&i)return a;if(a.flags&2097152){var s=Kt(a);if(s&i)return a}}}}function q_(r,n){var i=r.parent,a=r.parent.parent,s=Wc(i.locals,n,111551),l=Wc(pf(a.symbol),n,111551);return s&&l?[s,l]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Sf(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),s=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(j&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(Y)||ym(n)||r.flags&16777216||ke(n,r))return!0;var l=b.getSourceFiles();return l.indexOf(i)<=l.indexOf(a)}if(r.pos<=n.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(n.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===205){var g=e.getAncestor(n,205);return g?e.findAncestor(g,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<g.pos:Sf(e.getAncestor(r,257),n)}else{if(r.kind===257)return!ce(r,n);if(e.isClassDeclaration(r))return!e.findAncestor(n,function($e){return e.isComputedPropertyName($e)&&$e.parent.parent===r});if(e.isPropertyDeclaration(r))return!rr(r,n,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(Y)===99&&Ce&&e.getContainingClass(r)===e.getContainingClass(n)&&ke(n,r))}return!0}if(n.parent.kind===278||n.parent.kind===274&&n.parent.isExportEquals||n.kind===274&&n.isExportEquals||!!(n.flags&8388608)||ym(n)||W())return!0;if(ke(n,r))return e.getEmitScriptTarget(Y)===99&&Ce&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!rr(r,n,!0):!0;return!1;function W(){return!!e.findAncestor(n,function($e){return e.isInterfaceDeclaration($e)||e.isTypeAliasDeclaration($e)})}function ce($e,ar){switch($e.parent.parent.kind){case 240:case 245:case 247:if(wd(ar,$e,s))return!0;break}var ir=$e.parent.parent;return e.isForInOrOfStatement(ir)&&wd(ar,ir.expression,s)}function ke($e,ar){return!!e.findAncestor($e,function(ir){if(ir===s)return"quit";if(e.isFunctionLike(ir))return!0;if(e.isClassStaticBlockDeclaration(ir))return ar.pos<$e.pos;var Wr=e.tryCast(ir.parent,e.isPropertyDeclaration);if(Wr){var sn=Wr.initializer===ir;if(sn)if(e.isStatic(ir.parent)){if(ar.kind===171)return!0;if(e.isPropertyDeclaration(ar)&&e.getContainingClass($e)===e.getContainingClass(ar)){var In=ar.name;if(e.isIdentifier(In)||e.isPrivateIdentifier(In)){var Sn=Li(zi(ar)),Kn=e.filter(ar.parent.members,e.isClassStaticBlockDeclaration);if(sI(In,Sn,Kn,ar.parent.pos,ir.pos))return!0}}}else{var ei=ar.kind===169&&!e.isStatic(ar);if(!ei||e.getContainingClass($e)!==e.getContainingClass(ar))return!0}}return!1})}function rr($e,ar,ir){if(ar.end>$e.end)return!1;var Wr=e.findAncestor(ar,function(sn){if(sn===$e)return"quit";switch(sn.kind){case 216:return!0;case 169:return ir&&(e.isPropertyDeclaration($e)&&sn.parent===$e.parent||e.isParameterPropertyDeclaration($e,$e.parent)&&sn.parent===$e.parent.parent)?"quit":!0;case 238:switch(sn.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}});return Wr===void 0}}function Wp(r,n,i){var a=e.getEmitScriptTarget(Y),s=n;if(e.isParameter(i)&&s.body&&r.valueDeclaration&&r.valueDeclaration.pos>=s.body.pos&&r.valueDeclaration.end<=s.body.end&&a>=2){var l=At(s);return l.declarationRequiresScopeChange===void 0&&(l.declarationRequiresScopeChange=e.forEach(s.parameters,g)||!1),!l.declarationRequiresScopeChange}return!1;function g(ce){return W(ce.name)||!!ce.initializer&&W(ce.initializer)}function W(ce){switch(ce.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return W(ce.name);case 169:return e.hasStaticModifier(ce)?a<99||!Ce:W(ce.name);default:return e.isNullishCoalesce(ce)||e.isOptionalChain(ce)?a<7:e.isBindingElement(ce)&&ce.dotDotDotToken&&e.isObjectBindingPattern(ce.parent)?a<4:e.isTypeNode(ce)?!1:e.forEachChild(ce,W)||!1}}}function Nd(r){return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||e.isJSDocTypeTag(r)&&e.isConstTypeReference(r.typeExpression)}function is(r,n,i,a,s,l,g,W){return g===void 0&&(g=!1),W===void 0&&(W=!0),dp(r,n,i,a,s,l,g,W,Wc)}function dp(r,n,i,a,s,l,g,W,ce){var ke,rr,$e,ar=r,ir,Wr,sn,In,Sn,Kn=!1,ei=r,Ti,Ri=!1;e:for(;r;){if(n==="const"&&Nd(r))return;if(r.locals&&!Cu(r)&&(ir=ce(r.locals,n,i))){var pt=!0;if(e.isFunctionLike(r)&&Wr&&Wr!==r.body?(i&ir.flags&788968&&Wr.kind!==323&&(pt=ir.flags&262144?Wr===r.type||Wr.kind===166||Wr.kind===343||Wr.kind===344||Wr.kind===165:!1),i&ir.flags&3&&(Wp(ir,r,Wr)?pt=!1:ir.flags&1&&(pt=Wr.kind===166||Wr===r.type&&!!e.findAncestor(ir.valueDeclaration,e.isParameter)))):r.kind===191&&(pt=Wr===r.trueType),pt)break e;ir=void 0}switch(Kn=Kn||Yu(r,Wr),r.kind){case 308:if(!e.isExternalOrCommonJsModule(r))break;Ri=!0;case 264:var rt=((ke=zi(r))===null||ke===void 0?void 0:ke.exports)||Oe;if(r.kind===308||e.isModuleDeclaration(r)&&r.flags&16777216&&!e.isGlobalScopeAugmentation(r)){if(ir=rt.get("default")){var Da=e.getLocalSymbolForExportDefault(ir);if(Da&&ir.flags&i&&Da.escapedName===n)break e;ir=void 0}var St=rt.get(n);if(St&&St.flags===2097152&&(e.getDeclarationOfKind(St,278)||e.getDeclarationOfKind(St,277)))break}if(n!=="default"&&(ir=ce(rt,n,i&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!((rr=ir.declarations)===null||rr===void 0?void 0:rr.some(e.isJSDocTypeAlias)))ir=void 0;else break e;break;case 263:if(ir=ce((($e=zi(r))===null||$e===void 0?void 0:$e.exports)||Oe,n,i&8))break e;break;case 169:if(!e.isStatic(r)){var ba=kf(r.parent);ba&&ba.locals&&ce(ba.locals,n,i&111551)&&(e.Debug.assertNode(r,e.isPropertyDeclaration),In=r)}break;case 260:case 228:case 261:if(ir=ce(zi(r).members||Oe,n,i&788968)){if(!gp(ir,r)){ir=void 0;break}if(Wr&&e.isStatic(Wr)){a&&Zr(ei,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===228&&i&32){var Ta=r.name;if(Ta&&n===Ta.escapedText){ir=r.symbol;break e}}break;case 230:if(Wr===r.expression&&r.parent.token===94){var wa=r.parent.parent;if(e.isClassLike(wa)&&(ir=ce(zi(wa).members,n,i&788968))){a&&Zr(ei,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(Ti=r.parent.parent,(e.isClassLike(Ti)||Ti.kind===261)&&(ir=ce(zi(Ti).members,n,i&788968))){a&&Zr(ei,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(e.getEmitScriptTarget(Y)>=2)break;case 171:case 173:case 174:case 175:case 259:if(i&3&&n==="arguments"){ir=ve;break e}break;case 215:if(i&3&&n==="arguments"){ir=ve;break e}if(i&16){var So=r.name;if(So&&n===So.escapedText){ir=r.symbol;break e}}break;case 167:r.parent&&r.parent.kind===166&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===260)&&(r=r.parent);break;case 348:case 341:case 342:var xo=e.getJSDocRoot(r);xo&&(r=xo.parent);break;case 166:Wr&&(Wr===r.initializer||Wr===r.name&&e.isBindingPattern(Wr))&&(Sn||(Sn=r));break;case 205:Wr&&(Wr===r.initializer||Wr===r.name&&e.isBindingPattern(Wr))&&e.isParameterDeclaration(r)&&!Sn&&(Sn=r);break;case 192:if(i&262144){var uo=r.typeParameter.name;if(uo&&n===uo.escapedText){ir=r.typeParameter.symbol;break e}}break}pp(r)&&(sn=r),Wr=r,r=e.isJSDocTemplateTag(r)?e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent:(e.isJSDocParameterTag(r)||e.isJSDocReturnTag(r))&&e.getHostSignatureFromJSDoc(r)||r.parent}if(l&&ir&&(!sn||ir!==sn.symbol)&&(ir.isReferenced|=i),!ir){if(Wr&&(e.Debug.assert(Wr.kind===308),Wr.commonJsModuleIndicator&&n==="exports"&&i&Wr.symbol.flags))return Wr.symbol;g||(ir=ce(rn,n,i))}if(!ir&&ar&&e.isInJSFile(ar)&&ar.parent&&e.isRequireCall(ar.parent,!1))return or;function sa(){return In&&!(Ce&&e.getEmitScriptTarget(Y)>=9)?(Zr(ei,ei&&In.type&&e.textRangeContainsPositionInclusive(In.type,ei.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(In.name),vc(s)),!0):!1}if(ir){if(a&&sa())return}else{a&&Z(function(){if(!ei||!sc(ei,n,s)&&!sa()&&!El(ei)&&!mp(ei,n,i)&&!H_(ei,n)&&!Id(ei,n,i)&&!vp(ei,n,i)&&!Pd(ei,n,i)){var si=void 0,Rn=void 0;if(s&&(Rn=PN(s),Rn&&Zr(ei,a,vc(s),Rn)),!Rn&&W&&Gr<Bn){si=aD(ar,n,i);var ut=(si==null?void 0:si.valueDeclaration)&&e.isAmbientModule(si.valueDeclaration)&&e.isGlobalScopeAugmentation(si.valueDeclaration);if(ut&&(si=void 0),si){var Pt=Xt(si),ea=nD(ar,si,!1),Yi=i===1920||s&&typeof s!="string"&&e.nodeIsSynthesized(s)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:ea?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,ka=Zl(ei,Yi,vc(s),Pt);Yl(!ea,ka),si.valueDeclaration&&e.addRelatedInfo(ka,e.createDiagnosticForNode(si.valueDeclaration,e.Diagnostics._0_is_declared_here,Pt))}}!si&&!Rn&&s&&Zr(ei,a,vc(s)),Gr++}});return}return a&&Z(function(){if(ei&&(i&2||(i&32||i&384)&&(i&111551)==111551)){var si=il(ir);(si.flags&2||si.flags&32||si.flags&384)&&yp(si,ei)}if(ir&&Ri&&(i&111551)==111551&&!(ar.flags&8388608)){var Rn=Ya(ir);e.length(Rn.declarations)&&e.every(Rn.declarations,function(aa){return e.isNamespaceExportDeclaration(aa)||e.isSourceFile(aa)&&!!aa.symbol.globalExports})&&xu(!Y.allowUmdGlobalAccess,ei,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(n))}if(ir&&Sn&&!Kn&&(i&111551)==111551){var ut=Ya(xg(ir)),Pt=e.getRootDeclaration(Sn);ut===zi(Sn)?Zr(ei,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(Sn.name)):ut.valueDeclaration&&ut.valueDeclaration.pos>Sn.pos&&Pt.parent.locals&&ce(Pt.parent.locals,ut.escapedName,i)===ut&&Zr(ei,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(Sn.name),e.declarationNameToString(ei))}if(ir&&ei&&i&111551&&ir.flags&2097152&&!(ir.flags&111551)&&!e.isValidTypeOnlyAliasUseSite(ei)){var ea=Ec(ir,111551);if(ea){var Yi=ea.kind===278?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,ka=e.unescapeLeadingUnderscores(n);xs(Zr(ei,Yi,ka),ea,ka)}}}),ir}function xs(r,n,i){return n?e.addRelatedInfo(r,e.createDiagnosticForNode(n,n.kind===278?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,i)):r}function Yu(r,n){return r.kind!==216&&r.kind!==215?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===169&&!e.isStatic(r))&&(!n||n!==r.name):n&&n===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,512)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function pp(r){switch(r.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function vc(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function gp(r,n){if(r.declarations)for(var i=0,a=r.declarations;i<a.length;i++){var s=a[i];if(s.kind===165){var l=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(l===n)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function sc(r,n,i){if(!e.isIdentifier(r)||r.escapedText!==n||sE(r)||ym(r))return!1;for(var a=e.getThisContainer(r,!1),s=a;s;){if(e.isClassLike(s.parent)){var l=zi(s.parent);if(!l)break;var g=Li(l);if(Zt(g,n))return Zr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,vc(i),Xt(l)),!0;if(s===a&&!e.isStatic(s)){var W=nt(l).thisType;if(Zt(W,n))return Zr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,vc(i)),!0}}s=s.parent}return!1}function El(r){var n=Cc(r);return n&&ts(n,64,!0)?(Zr(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(n)),!0):!1}function Cc(r){switch(r.kind){case 79:case 208:return r.parent?Cc(r.parent):void 0;case 230:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function mp(r,n,i){var a=1920|(e.isInJSFile(r)?111551:0);if(i===a){var s=ss(is(r,n,788968&~a,void 0,void 0,!1)),l=r.parent;if(s){if(e.isQualifiedName(l)){e.Debug.assert(l.left===r,"Should only be resolving left side of qualified name as a namespace");var g=l.right.escapedText,W=Zt(nt(s),g);if(W)return Zr(l,e.Diagnostics.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,e.unescapeLeadingUnderscores(n),e.unescapeLeadingUnderscores(g)),!0}return Zr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(n)),!0}}return!1}function Pd(r,n,i){if(i&(788968&~1920)){var a=ss(is(r,n,~788968&111551,void 0,void 0,!1));if(a&&!(a.flags&1920))return Zr(r,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(n)),!0}return!1}function G_(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function H_(r,n){return G_(n)&&r.parent.kind===278?(Zr(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,n),!0):!1}function vp(r,n,i){if(i&111551){if(G_(n))return kl(r)?Zr(r,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(n)):Zr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(n)),!0;var a=ss(is(r,n,788968&~111551,void 0,void 0,!1)),s=a&&Kt(a);if(a&&s!==void 0&&!(s&111551)){var l=e.unescapeLeadingUnderscores(n);return h_(n)?Zr(r,e.Diagnostics._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,l):Al(r,a)?Zr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,l,l==="K"?"P":"K"):Zr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,l),!0}}return!1}function kl(r){var n=r.parent.parent,i=n.parent;if(n&&i){var a=e.isHeritageClause(n)&&n.token===94,s=e.isInterfaceDeclaration(i);return a&&s}return!1}function Al(r,n){var i=e.findAncestor(r.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(i&&i.members.length===1){var a=nt(n);return!!(a.flags&1048576)&&Ny(a,384,!0)}return!1}function h_(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Id(r,n,i){if(i&(111551&~788968)){var a=ss(is(r,n,1024,void 0,void 0,!1));if(a)return Zr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(n)),!0}else if(i&(788968&~111551)){var a=ss(is(r,n,1536,void 0,void 0,!1));if(a)return Zr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(n)),!0}return!1}function yp(r,n){var i;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&(16|1|67108864)&&r.flags&32)){var a=(i=r.declarations)===null||i===void 0?void 0:i.find(function(g){return e.isBlockOrCatchScoped(g)||e.isClassLike(g)||g.kind===263});if(a===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(a.flags&16777216)&&!Sf(a,n)){var s=void 0,l=e.declarationNameToString(e.getNameOfDeclaration(a));r.flags&2?s=Zr(n,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,l):r.flags&32?s=Zr(n,e.Diagnostics.Class_0_used_before_its_declaration,l):r.flags&256?s=Zr(n,e.Diagnostics.Enum_0_used_before_its_declaration,l):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(Y)&&(s=Zr(n,e.Diagnostics.Enum_0_used_before_its_declaration,l))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,l))}}}function wd(r,n,i){return!!n&&!!e.findAncestor(r,function(a){return a===n||(a===i||e.isFunctionLike(a)&&!e.getImmediatelyInvokedFunctionExpression(a)?"quit":!1)})}function D_(r){switch(r.kind){case 268:return r;case 270:return r.parent;case 271:return r.parent.parent;case 273:return r.parent.parent.parent;default:return}}function Mu(r){return r.declarations&&e.findLast(r.declarations,nf)}function nf(r){return r.kind===268||r.kind===267||r.kind===270&&!!r.name||r.kind===271||r.kind===277||r.kind===273||r.kind===278||r.kind===274&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&K_(r.parent.right)||r.kind===300||r.kind===299&&K_(r.initializer)||r.kind===257&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||r.kind===205&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.parent.parent)}function K_(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&Sl(r)}function b_(r,n){var i=Y_(r);if(i){var a=e.getLeftmostAccessExpression(i.expression).arguments[0];return e.isIdentifier(i.name)?ss(Zt(cb(a),i.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===280){var s=Ms(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),l=Us(s);return Hs(r,s,l,!1),l}var g=Wo(r.moduleReference,n);return S_(r,g),g}function S_(r,n){if(Hs(r,void 0,n,!1)&&!r.isTypeOnly){var i=Ec(zi(r)),a=i.kind===278,s=a?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,l=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,g=e.unescapeLeadingUnderscores(i.name.escapedText);e.addRelatedInfo(Zr(r.moduleReference,s),e.createDiagnosticForNode(i,l,g))}}function xf(r,n,i,a){var s=r.exports.get("export="),l=s?Zt(Li(s),n):r.exports.get(n),g=ss(l,a);return Hs(i,l,g,!1),g}function qf(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,1024)||e.isExportSpecifier(r)}function tf(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function Q_(r,n){return r===e.ModuleKind.ESNext&&n===e.ModuleKind.CommonJS}function af(r){var n=tf(r);return n===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function Tc(r,n,i,a){var s=r&&tf(a);if(r&&s!==void 0){var l=Q_(s,r.impliedNodeFormat);if(s===e.ModuleKind.ESNext||l)return l}if(!Se)return!1;if(!r||r.isDeclarationFile){var g=xf(n,"default",void 0,!0);return!(g&&e.some(g.declarations,qf)||xf(n,e.escapeLeadingUnderscores("__esModule"),void 0,i))}return e.isSourceFileJS(r)?typeof r.externalModuleIndicator!="object"&&!xf(n,e.escapeLeadingUnderscores("__esModule"),void 0,i):uf(n)}function $u(r,n){var i=Ms(r,r.parent.moduleSpecifier);if(i)return of(i,r,n)}function of(r,n,i){var a,s;e.isShorthandAmbientModuleSymbol(r)?s=r:s=xf(r,"default",n,i);var l=(a=r.declarations)===null||a===void 0?void 0:a.find(e.isSourceFile),g=X_(n);if(!g)return s;var W=af(g),ce=Tc(l,r,i,g);if(!s&&!ce&&!W)if(uf(r)){var ke=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",rr=r.exports.get("export="),$e=rr.valueDeclaration,ar=Zr(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Xt(r),ke);$e&&e.addRelatedInfo(ar,e.createDiagnosticForNode($e,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ke))}else e.isImportClause(n)?x_(r,n):Eu(r,r,n,e.isImportOrExportSpecifier(n)&&n.propertyName||n.name);else if(ce||W){var ir=Us(r,i)||ss(r,i);return Hs(n,r,ir,!1),ir}return Hs(n,s,void 0,!1),s}function X_(r){switch(r.kind){case 270:return r.parent.moduleSpecifier;case 268:return e.isExternalModuleReference(r.moduleReference)?r.moduleReference.expression:void 0;case 271:return r.parent.parent.moduleSpecifier;case 273:return r.parent.parent.parent.moduleSpecifier;case 278:return r.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(r)}}function x_(r,n){var i,a,s;if((i=r.exports)===null||i===void 0?void 0:i.has(n.symbol.escapedName))Zr(n.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Xt(r),Xt(n.symbol));else{var l=Zr(n.name,e.Diagnostics.Module_0_has_no_default_export,Xt(r)),g=(a=r.exports)===null||a===void 0?void 0:a.get("__export");if(g){var W=(s=g.declarations)===null||s===void 0?void 0:s.find(function(ce){var ke,rr;return!!(e.isExportDeclaration(ce)&&ce.moduleSpecifier&&((rr=(ke=Ms(ce,ce.moduleSpecifier))===null||ke===void 0?void 0:ke.exports)===null||rr===void 0?void 0:rr.has("default")))});W&&e.addRelatedInfo(l,e.createDiagnosticForNode(W,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function Tu(r,n){var i=r.parent.parent.moduleSpecifier,a=Ms(r,i),s=eu(a,i,n,!1);return Hs(r,a,s,!1),s}function Cf(r,n){var i=r.parent.moduleSpecifier,a=i&&Ms(r,i),s=i&&eu(a,i,n,!1);return Hs(r,a,s,!1),s}function el(r,n){if(r===jr&&n===jr)return jr;if(r.flags&(788968|1920))return r;var i=go(r.flags|n.flags,r.escapedName);return i.declarations=e.deduplicate(e.concatenate(r.declarations,n.declarations),e.equateValues),i.parent=r.parent||n.parent,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),r.exports&&(i.exports=new e.Map(r.exports)),i}function Lu(r,n,i,a){if(r.flags&1536){var s=Ac(r).get(n.escapedText),l=ss(s,a);return Hs(i,s,l,!1),l}}function Ru(r,n){if(r.flags&3){var i=r.valueDeclaration.type;if(i)return ss(Zt(zt(i),n))}}function Bu(r,n,i){var a;i===void 0&&(i=!1);var s=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,l=Ms(r,s),g=!e.isPropertyAccessExpression(n)&&n.propertyName||n.name;if(!!e.isIdentifier(g)){var W=g.escapedText==="default"&&!!(Y.allowSyntheticDefaultImports||e.getESModuleInterop(Y)),ce=eu(l,s,!1,W);if(ce&&g.escapedText){if(e.isShorthandAmbientModuleSymbol(l))return l;var ke=void 0;l&&l.exports&&l.exports.get("export=")?ke=Zt(Li(ce),g.escapedText,!0):ke=Ru(ce,g.escapedText),ke=ss(ke,i);var rr=Lu(ce,g,n,i);if(rr===void 0&&g.escapedText==="default"){var $e=(a=l.declarations)===null||a===void 0?void 0:a.find(e.isSourceFile);(af(s)||Tc($e,l,i,s))&&(rr=Us(l,i)||ss(l,i))}var ar=rr&&ke&&rr!==ke?el(ke,rr):rr||ke;return ar||Eu(l,ce,r,g),ar}}}function Eu(r,n,i,a){var s,l=kc(r,i),g=e.declarationNameToString(a),W=u0(a,n);if(W!==void 0){var ce=Xt(W),ke=Zr(a,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,l,g,ce);W.valueDeclaration&&e.addRelatedInfo(ke,e.createDiagnosticForNode(W.valueDeclaration,e.Diagnostics._0_is_declared_here,ce))}else((s=r.exports)===null||s===void 0?void 0:s.has("default"))?Zr(a,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,l,g):hp(i,a,g,r,l)}function hp(r,n,i,a,s){var l,g,W=(g=(l=a.valueDeclaration)===null||l===void 0?void 0:l.locals)===null||g===void 0?void 0:g.get(n.escapedText),ce=a.exports;if(W){var ke=ce==null?void 0:ce.get("export=");if(ke)ku(ke,W)?Z_(r,n,i,s):Zr(n,e.Diagnostics.Module_0_has_no_exported_member_1,s,i);else{var rr=ce?e.find(Gv(ce),function(ar){return!!ku(ar,W)}):void 0,$e=rr?Zr(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,i,Xt(rr)):Zr(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,i);W.declarations&&e.addRelatedInfo.apply(void 0,zn([$e],e.map(W.declarations,function(ar,ir){return e.createDiagnosticForNode(ar,ir===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)}),!1))}}else Zr(n,e.Diagnostics.Module_0_has_no_exported_member_1,s,i)}function Z_(r,n,i,a){if(j>=e.ModuleKind.ES2015){var s=e.getESModuleInterop(Y)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Zr(n,s,i)}else if(e.isInJSFile(r)){var s=e.getESModuleInterop(Y)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Zr(n,s,i)}else{var s=e.getESModuleInterop(Y)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Zr(n,s,i,i,a)}}function Od(r,n){if(e.isImportSpecifier(r)&&e.idText(r.propertyName||r.name)==="default"){var i=X_(r),a=i&&Ms(r,i);if(a)return of(a,r,n)}var s=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,l=Y_(s),g=Bu(s,l||r,n),W=r.propertyName||r.name;return l&&g&&e.isIdentifier(W)?ss(Zt(Li(g),W.escapedText),n):(Hs(r,void 0,g,!1),g)}function Y_(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function Fo(r,n){var i=Us(r.parent.symbol,n);return Hs(r,void 0,i,!1),i}function sf(r,n,i){if(e.idText(r.propertyName||r.name)==="default"){var a=X_(r),s=a&&Ms(r,a);if(s)return of(s,r,!!i)}var l=r.parent.parent.moduleSpecifier?Bu(r.parent.parent,r,i):ts(r.propertyName||r.name,n,!1,i);return Hs(r,void 0,l,!1),l}function Fd(r,n){var i=e.isExportAssignment(r)?r.expression:r.right,a=C_(i,n);return Hs(r,void 0,a,!1),a}function C_(r,n){if(e.isClassExpression(r))return Ds(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var i=ts(r,111551|788968|1920,!0,n);return i||(Ds(r),At(r).resolvedSymbol)}}function Gf(r,n){if(!!(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63))return C_(r.parent.right,n)}function Tf(r,n){switch(n===void 0&&(n=!1),r.kind){case 268:case 257:return b_(r,n);case 270:return $u(r,n);case 271:return Tu(r,n);case 277:return Cf(r,n);case 273:case 205:return Od(r,n);case 278:return sf(r,111551|788968|1920,n);case 274:case 223:return Fd(r,n);case 267:return Fo(r,n);case 300:return ts(r.name,111551|788968|1920,!0,n);case 299:return C_(r.initializer,n);case 209:case 208:return Gf(r,n);default:return e.Debug.fail()}}function Md(r,n){return n===void 0&&(n=111551|788968|1920),r?(r.flags&(2097152|n))==2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function ss(r,n){return!n&&Md(r)?wi(r):r}function wi(r){e.Debug.assert((r.flags&2097152)!=0,"Should only get Alias here.");var n=Qt(r);if(n.aliasTarget)n.aliasTarget===on&&(n.aliasTarget=jr);else{n.aliasTarget=on;var i=Mu(r);if(!i)return e.Debug.fail();var a=Tf(i);n.aliasTarget===on?n.aliasTarget=a||jr:Zr(i,e.Diagnostics.Circular_definition_of_import_alias_0,Xt(r))}return n.aliasTarget}function Fs(r){var n=Qt(r);if(n.aliasTarget!==on)return wi(r)}function Kt(r){for(var n=r.flags,i;r.flags&2097152;){var a=wi(r);if(a===jr)return 67108863;if(a===r||(i==null?void 0:i.has(a)))break;a.flags&2097152&&(i?i.add(a):i=new e.Set([r,a])),n|=a.flags,r=a}return n}function Hs(r,n,i,a){if(!r||e.isPropertyAccessExpression(r))return!1;var s=zi(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var l=Qt(s);return l.typeOnlyDeclaration=r,!0}var g=Qt(s);return $_(g,n,a)||$_(g,i,a)}function $_(r,n,i){var a,s,l;if(n&&(r.typeOnlyDeclaration===void 0||i&&r.typeOnlyDeclaration===!1)){var g=(s=(a=n.exports)===null||a===void 0?void 0:a.get("export="))!==null&&s!==void 0?s:n,W=g.declarations&&e.find(g.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(l=W!=null?W:Qt(g).typeOnlyDeclaration)!==null&&l!==void 0?l:!1}return!!r.typeOnlyDeclaration}function Ec(r,n){if(!!(r.flags&2097152)){var i=Qt(r);if(n===void 0)return i.typeOnlyDeclaration||void 0;if(i.typeOnlyDeclaration)return Kt(wi(i.typeOnlyDeclaration.symbol))&n?i.typeOnlyDeclaration:void 0}}function ji(r){var n=zi(r),i=wi(n);if(i){var a=i===jr||Kt(i)&111551&&!Sv(i)&&!Ec(n,111551);a&&su(n)}}function su(r){var n=Qt(r);if(!n.referenced){n.referenced=!0;var i=Mu(r);if(!i)return e.Debug.fail();e.isInternalModuleImportEqualsDeclaration(i)&&Kt(ss(r))&111551&&Ds(i.moduleReference)}}function cu(r){var n=Qt(r);n.constEnumReferenced||(n.constEnumReferenced=!0)}function Wo(r,n){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===163?ts(r,1920,!1,n):(e.Debug.assert(r.parent.kind===268),ts(r,111551|788968|1920,!1,n))}function kc(r,n){return r.parent?kc(r.parent,n)+"."+Xt(r):Xt(r,n,void 0,32|4)}function Vc(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function ed(r){var n=e.getFirstIdentifier(r),i=is(n,n.escapedText,111551,void 0,n,!0);if(!!i){for(;e.isQualifiedName(n.parent);){var a=Li(i);if(i=Zt(a,n.parent.right.escapedText),!i)return;n=n.parent}return i}}function ts(r,n,i,a,s){if(!e.nodeIsMissing(r)){var l=1920|(e.isInJSFile(r)?n&111551:0),g;if(r.kind===79){var W=n===l||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:$S(e.getFirstIdentifier(r)),ce=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?gl(r,n):void 0;if(g=Ya(is(s||r,r.escapedText,n,i||ce?void 0:W,r,!0,!1)),!g)return Ya(ce)}else if(r.kind===163||r.kind===208){var ke=r.kind===163?r.left:r.expression,rr=r.kind===163?r.right:r.name,$e=ts(ke,l,i,!1,s);if(!$e||e.nodeIsMissing(rr))return;if($e===jr)return $e;if($e.valueDeclaration&&e.isInJSFile($e.valueDeclaration)&&e.isVariableDeclaration($e.valueDeclaration)&&$e.valueDeclaration.initializer&&wC($e.valueDeclaration.initializer)){var ar=$e.valueDeclaration.initializer.arguments[0],ir=Ms(ar,ar);if(ir){var Wr=Us(ir);Wr&&($e=Wr)}}if(g=Ya(Wc(Ac($e),rr.escapedText,n)),!g){if(!i){var sn=kc($e),In=e.declarationNameToString(rr),Sn=u0(rr,$e);if(Sn){Zr(rr,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,sn,In,Xt(Sn));return}var Kn=e.isQualifiedName(r)&&Vc(r),ei=di&&n&788968&&Kn&&!e.isTypeOfExpression(Kn.parent)&&ed(Kn);if(ei){Zr(Kn,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(Kn));return}if(n&1920&&e.isQualifiedName(r.parent)){var Ti=Ya(Wc(Ac($e),rr.escapedText,788968));if(Ti){Zr(r.parent.right,e.Diagnostics.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,Xt(Ti),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}Zr(rr,e.Diagnostics.Namespace_0_has_no_exported_member_1,sn,In)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(g)&1)==0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(g.flags&2097152||r.parent.kind===274)&&Hs(e.getAliasDeclarationFromName(r),g,void 0,!0),g.flags&n||a?g:wi(g)}}function gl(r,n){if(_h(r.parent)){var i=Ef(r.parent);if(i)return is(i,r.escapedText,n,void 0,r,!0)}}function Ef(r){var n=e.findAncestor(r,function(l){return e.isJSDocNode(l)||l.flags&8388608?e.isJSDocTypeAlias(l):"quit"});if(!n){var i=e.getJSDocHost(r);if(i&&e.isExpressionStatement(i)&&e.isPrototypePropertyAssignment(i.expression)){var a=zi(i.expression.left);if(a)return T_(a)}if(i&&e.isFunctionExpression(i)&&e.isPrototypePropertyAssignment(i.parent)&&e.isExpressionStatement(i.parent.parent)){var a=zi(i.parent.left);if(a)return T_(a)}if(i&&(e.isObjectLiteralMethod(i)||e.isPropertyAssignment(i))&&e.isBinaryExpression(i.parent.parent)&&e.getAssignmentDeclarationKind(i.parent.parent)===6){var a=zi(i.parent.parent.left);if(a)return T_(a)}var s=e.getEffectiveJSDocHost(r);if(s&&e.isFunctionLike(s)){var a=zi(s);return a&&a.valueDeclaration}}}function T_(r){var n=r.parent.valueDeclaration;if(!!n){var i=e.isAssignmentDeclaration(n)?e.getAssignedExpandoInitializer(n):e.hasOnlyExpressionInitializer(n)?e.getDeclaredExpandoInitializer(n):void 0;return i||n}}function rl(r){var n=r.valueDeclaration;if(!(!n||!e.isInJSFile(n)||r.flags&524288||e.getExpandoInitializer(n,!1))){var i=e.isVariableDeclaration(n)?e.getDeclaredExpandoInitializer(n):e.getAssignedExpandoInitializer(n);if(i){var a=zi(i);if(a)return gD(a,r)}}}function Ms(r,n,i){var a=e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.Classic,s=a?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return ml(r,n,i?void 0:s)}function ml(r,n,i,a){return a===void 0&&(a=!1),e.isStringLiteralLike(n)?Hf(r,n.text,i,n,a):void 0}function Hf(r,n,i,a,s){var l,g,W,ce,ke,rr,$e,ar;if(s===void 0&&(s=!1),e.startsWith(n,"@types/")){var ir=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Wr=e.removePrefix(n,"@types/");Zr(a,ir,Wr,n)}var sn=jm(n,!0);if(sn)return sn;var In=e.getSourceFileOfNode(r),Sn=e.isStringLiteralLike(r)?r:((l=e.findAncestor(r,e.isImportCall))===null||l===void 0?void 0:l.arguments[0])||((g=e.findAncestor(r,e.isImportDeclaration))===null||g===void 0?void 0:g.moduleSpecifier)||((W=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||W===void 0?void 0:W.moduleReference.expression)||((ce=e.findAncestor(r,e.isExportDeclaration))===null||ce===void 0?void 0:ce.moduleSpecifier)||((ke=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||ke===void 0?void 0:ke.name)||((rr=e.isLiteralImportTypeNode(r)?r:void 0)===null||rr===void 0?void 0:rr.argument.literal),Kn=Sn&&e.isStringLiteralLike(Sn)?e.getModeForUsageLocation(In,Sn):In.impliedNodeFormat,ei=e.getResolvedModule(In,n,Kn),Ti=ei&&e.getResolutionDiagnostic(Y,ei),Ri=ei&&(!Ti||Ti===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&b.getSourceFile(ei.resolvedFileName);if(Ri){if(Ti&&Zr(a,Ti,n,ei.resolvedFileName),Ri.symbol){if(ei.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(ei.extension)&&Kf(!1,a,ei,n),e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.NodeNext){var pt=In.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),rt=e.findAncestor(r,function(aa){return e.isImportTypeNode(aa)||e.isExportDeclaration(aa)||e.isImportDeclaration(aa)}),Da=rt&&e.isImportTypeNode(rt)?($e=rt.assertions)===null||$e===void 0?void 0:$e.assertClause:rt==null?void 0:rt.assertClause;if(pt&&Ri.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(Da))if(e.findAncestor(r,e.isImportEqualsDeclaration))Zr(a,e.Diagnostics.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,n);else{var St=void 0,ba=e.tryGetExtensionFromPath(In.fileName);if(ba===".ts"||ba===".js"||ba===".tsx"||ba===".jsx"){var Ta=In.packageJsonScope,wa=ba===".ts"?".mts":ba===".js"?".mjs":void 0;Ta&&!Ta.contents.packageJsonContent.type?wa?St=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,wa,e.combinePaths(Ta.packageDirectory,"package.json")):St=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(Ta.packageDirectory,"package.json")):wa?St=e.chainDiagnosticMessages(void 0,e.Diagnostics.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,wa):St=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}fe.add(e.createDiagnosticForNodeFromMessageChain(a,e.chainDiagnosticMessages(St,e.Diagnostics.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,n)))}}return Ya(Ri.symbol)}i&&Zr(a,e.Diagnostics.File_0_is_not_a_module,Ri.fileName);return}if(Mn){var So=e.findBestPatternMatch(Mn,function(aa){return aa.pattern},n);if(So){var xo=_i&&_i.get(n);return Ya(xo||So.symbol)}}if(ei&&!e.resolutionExtensionIsTSOrJson(ei.extension)&&Ti===void 0||Ti===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var ir=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Zr(a,ir,n,ei.resolvedFileName)}else Kf(Ue&&!!i,a,ei,n);return}if(i){if(ei){var uo=b.getProjectReferenceRedirect(ei.resolvedFileName);if(uo){Zr(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,uo,ei.resolvedFileName);return}}if(Ti)Zr(a,Ti,n,ei.resolvedFileName);else{var sa=e.tryExtractTSExtension(n),si=e.pathIsRelative(n)&&!e.hasExtension(n),Rn=e.getEmitModuleResolutionKind(Y),ut=Rn===e.ModuleResolutionKind.Node16||Rn===e.ModuleResolutionKind.NodeNext;if(sa){var ir=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Pt=e.removeExtension(n,sa),ea=Pt;j>=e.ModuleKind.ES2015&&(ea+=sa===".mts"?".mjs":sa===".cts"?".cjs":".js"),Zr(a,ir,sa,ea)}else if(!Y.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(Y)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(Y))Zr(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(Kn===e.ModuleKind.ESNext&&ut&&si){var Yi=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(In.path)),ka=(ar=Qa.find(function(aa){var Ma=aa[0],La=aa[1];return b.fileExists(Yi+Ma)}))===null||ar===void 0?void 0:ar[1];ka?Zr(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+ka):Zr(a,e.Diagnostics.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 Zr(a,i,n)}}}function Kf(r,n,i,a){var s=i.packageId,l=i.resolvedFileName,g=!e.isExternalModuleNameRelative(a)&&s?Nl(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.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.name,e.mangleScopedPackageName(s.name)):Dp(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s.name,a):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,e.mangleScopedPackageName(s.name)):void 0;xu(r,n,e.chainDiagnosticMessages(g,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,l))}function Nl(r){return x().has(e.getTypesPackageName(r))}function Dp(r){return!!x().get(r)}function Us(r,n){if(r==null?void 0:r.exports){var i=ss(r.exports.get("export="),n),a=cf(Ya(i),Ya(r));return Ya(a)||r}}function cf(r,n){if(!r||r===jr||r===n||n.exports.size===1||r.flags&2097152)return r;var i=Qt(r);if(i.cjsExportMerged)return i.cjsExportMerged;var a=r.flags&33554432?r:z_(r);return a.flags=a.flags|512,a.exports===void 0&&(a.exports=e.createSymbolTable()),n.exports.forEach(function(s,l){l!=="export="&&a.exports.set(l,a.exports.has(l)?Vf(a.exports.get(l),s):s)}),Qt(a).cjsExportMerged=a,i.cjsExportMerged=a}function eu(r,n,i,a){var s,l=Us(r,i);if(!i&&l){if(!a&&!(l.flags&(1536|3))&&!e.getDeclarationOfKind(l,308)){var g=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Zr(n,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,g),l}var W=n.parent;if(e.isImportDeclaration(W)&&e.getNamespaceDeclarationNode(W)||e.isImportCall(W)){var ce=e.isImportCall(W)?W.arguments[0]:W.moduleSpecifier,ke=Li(l),rr=PC(ke,l,r,ce);if(rr)return Ld(l,rr,W);var $e=(s=r==null?void 0:r.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),ar=$e&&Q_(tf(ce),$e.impliedNodeFormat);if(e.getESModuleInterop(Y)||ar){var ir=Ts(ke,0);if((!ir||!ir.length)&&(ir=Ts(ke,1)),ir&&ir.length||Zt(ke,"default",!0)||ar){var Wr=IC(ke,l,r,ce);return Ld(l,Wr,W)}}}}return l}function Ld(r,n,i){var a=go(r.flags,r.escapedName);a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,a.target=r,a.originatingImport=i,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new e.Map(r.members)),r.exports&&(a.exports=new e.Map(r.exports));var s=Iu(n);return a.type=Yo(a,s.members,e.emptyArray,e.emptyArray,s.indexInfos),a}function uf(r){return r.exports.get("export=")!==void 0}function lf(r){return Gv(Ls(r))}function rd(r){var n=lf(r),i=Us(r);if(i!==r){var a=Li(i);ks(a)&&e.addRange(n,vo(a))}return n}function Pl(r,n){var i=Ls(r);i.forEach(function(l,g){Nf(g)||n(l,g)});var a=Us(r);if(a!==r){var s=Li(a);ks(s)&&eh(s,function(l,g){n(l,g)})}}function nl(r,n){var i=Ls(n);if(i)return i.get(r)}function nd(r,n){var i=nl(r,n);if(i)return i;var a=Us(n);if(a!==n){var s=Li(a);return ks(s)?Zt(s,r):void 0}}function ks(r){return!(r.flags&131068||e.getObjectFlags(r)&1||Fu(r)||Xa(r))}function Ac(r){return r.flags&6256?Ov(r,"resolvedExports"):r.flags&1536?Ls(r):r.exports||Oe}function Ls(r){var n=Qt(r);return n.resolvedExports||(n.resolvedExports=E_(r))}function ff(r,n,i,a){!n||n.forEach(function(s,l){if(l!=="default"){var g=r.get(l);if(!g)r.set(l,s),i&&a&&i.set(l,{specifierText:e.getTextOfNode(a.moduleSpecifier)});else if(i&&a&&g&&ss(g)!==ss(s)){var W=i.get(l);W.exportsWithDuplicate?W.exportsWithDuplicate.push(a):W.exportsWithDuplicate=[a]}}})}function E_(r){var n=[];return r=Us(r),i(r)||Oe;function i(a){if(!!(a&&a.exports&&e.pushIfUnique(n,a))){var s=new e.Map(a.exports),l=a.exports.get("__export");if(l){var g=e.createSymbolTable(),W=new e.Map;if(l.declarations)for(var ce=0,ke=l.declarations;ce<ke.length;ce++){var rr=ke[ce],$e=Ms(rr,rr.moduleSpecifier),ar=i($e);ff(g,ar,W,rr)}W.forEach(function(ir,Wr){var sn=ir.exportsWithDuplicate;if(!(Wr==="export="||!(sn&&sn.length)||s.has(Wr)))for(var In=0,Sn=sn;In<Sn.length;In++){var Kn=Sn[In];fe.add(e.createDiagnosticForNode(Kn,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,W.get(Wr).specifierText,e.unescapeLeadingUnderscores(Wr)))}}),ff(s,g)}return s}}}function Ya(r){var n;return r&&r.mergeId&&(n=ui[r.mergeId])?n:r}function zi(r){return Ya(r.symbol&&xg(r.symbol))}function Nc(r){return Ya(r.parent&&xg(r.parent))}function Vp(r,n){var i=e.getSourceFileOfNode(n),a=V(i),s=Qt(r),l;if(s.extendedContainersByFile&&(l=s.extendedContainersByFile.get(a)))return l;if(i&&i.imports){for(var g=0,W=i.imports;g<W.length;g++){var ce=W[g];if(!e.nodeIsSynthesized(ce)){var ke=Ms(n,ce,!0);if(!!ke){var rr=Xf(ke,r);!rr||(l=e.append(l,ke))}}}if(e.length(l))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(a,l),l}if(s.extendedContainers)return s.extendedContainers;for(var $e=b.getSourceFiles(),ar=0,ir=$e;ar<ir.length;ar++){var Wr=ir[ar];if(!!e.isExternalModule(Wr)){var sn=zi(Wr),rr=Xf(sn,r);!rr||(l=e.append(l,sn))}}return s.extendedContainers=l||e.emptyArray}function Qf(r,n,i){var a=Nc(r);if(a&&!(r.flags&262144)){var s=e.mapDefined(a.declarations,rr),l=n&&Vp(r,n),g=_f(a,i);if(n&&a.flags&lu(i)&&pu(a,n,1920,!1))return e.append(e.concatenate(e.concatenate([a],s),l),g);var W=!(a.flags&lu(i))&&a.flags&788968&&nt(a).flags&524288&&i===111551?Yf(n,function($e){return e.forEachEntry($e,function(ar){if(ar.flags&lu(i)&&Li(ar)===nt(a))return ar})}):void 0,ce=W?zn(zn([W],s,!0),[a],!1):zn(zn([],s,!0),[a],!1);return ce=e.append(ce,g),ce=e.addRange(ce,l),ce}var ke=e.mapDefined(r.declarations,function($e){if(!e.isAmbientModule($e)&&$e.parent){if(gu($e.parent))return zi($e.parent);if(e.isModuleBlock($e.parent)&&$e.parent.parent&&Us(zi($e.parent.parent))===r)return zi($e.parent.parent)}if(e.isClassExpression($e)&&e.isBinaryExpression($e.parent)&&$e.parent.operatorToken.kind===63&&e.isAccessExpression($e.parent.left)&&e.isEntityNameExpression($e.parent.left.expression))return e.isModuleExportsAccessExpression($e.parent.left)||e.isExportsIdentifier($e.parent.left.expression)?zi(e.getSourceFileOfNode($e)):(Ds($e.parent.left.expression),At($e.parent.left.expression).resolvedSymbol)});if(!e.length(ke))return;return e.mapDefined(ke,function($e){return Xf($e,r)?$e:void 0});function rr($e){return a&&vl($e,a)}}function _f(r,n){var i=!!e.length(r.declarations)&&e.first(r.declarations);if(n&111551&&i&&i.parent&&e.isVariableDeclaration(i.parent)&&(e.isObjectLiteralExpression(i)&&i===i.parent.initializer||e.isTypeLiteralNode(i)&&i===i.parent.type))return zi(i.parent)}function vl(r,n){var i=$f(r),a=i&&i.exports&&i.exports.get("export=");return a&&ku(a,n)?i:void 0}function Xf(r,n){if(r===Nc(n))return n;var i=r.exports&&r.exports.get("export=");if(i&&ku(i,n))return r;var a=Ac(r),s=a.get(n.escapedName);return s&&ku(s,n)?s:e.forEachEntry(a,function(l){if(ku(l,n))return l})}function ku(r,n){if(Ya(ss(Ya(r)))===Ya(ss(Ya(n))))return r}function il(r){return Ya(r&&(r.flags&1048576)!=0&&r.exportSymbol||r)}function Il(r,n){return!!(r.flags&111551||r.flags&2097152&&Kt(r)&111551&&(n||!Ec(r)))}function kf(r){for(var n=r.members,i=0,a=n;i<a.length;i++){var s=a[i];if(s.kind===173&&e.nodeIsPresent(s.body))return s}}function qc(r){var n=new z(ze,r);return ge++,n.id=ge,e.tracing===null||e.tracing===void 0||e.tracing.recordType(n),n}function bp(r){return new z(ze,r)}function ko(r,n,i){i===void 0&&(i=0);var a=qc(r);return a.intrinsicName=n,a.objectFlags=i,a}function Gc(r,n){var i=qc(524288);return i.objectFlags=r,i.symbol=n,i.members=void 0,i.properties=void 0,i.callSignatures=void 0,i.constructSignatures=void 0,i.indexInfos=void 0,i}function Af(){return Ot(e.arrayFrom(le.keys(),Ou))}function uu(r){var n=qc(262144);return r&&(n.symbol=r),n}function Nf(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Zf(r){var n;return r.forEach(function(i,a){wl(i,a)&&(n||(n=[])).push(i)}),n||e.emptyArray}function wl(r,n){return!Nf(n)&&Il(r)}function Sp(r){var n=Zf(r),i=f1(r);return i?e.concatenate(n,[i]):n}function Hc(r,n,i,a,s){var l=r;return l.members=n,l.properties=e.emptyArray,l.callSignatures=i,l.constructSignatures=a,l.indexInfos=s,n!==Oe&&(l.properties=Zf(n)),l}function Yo(r,n,i,a,s){return Hc(Gc(16,r),n,i,a,s)}function Rd(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var n=e.filter(r.constructSignatures,function(a){return!(a.flags&4)});if(r.constructSignatures===n)return r;var i=Yo(r.symbol,r.members,r.callSignatures,e.some(n)?n:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=i,i.objectTypeWithoutAbstractConstructSignatures=i,i}function Yf(r,n){for(var i,a=function(g){if(g.locals&&!Cu(g)&&(i=n(g.locals,void 0,!0,g)))return{value:i};switch(g.kind){case 308:if(!e.isExternalOrCommonJsModule(g))break;case 264:var W=zi(g);if(i=n((W==null?void 0:W.exports)||Oe,void 0,!0,g))return{value:i};break;case 260:case 228:case 261:var ce;if((zi(g).members||Oe).forEach(function(ke,rr){ke.flags&(788968&~67108864)&&(ce||(ce=e.createSymbolTable())).set(rr,ke)}),ce&&(i=n(ce,void 0,!1,g)))return{value:i};break}},s=r;s;s=s.parent){var l=a(s);if(typeof l=="object")return l.value}return n(rn,void 0,!0)}function lu(r){return r===111551?111551:1920}function pu(r,n,i,a,s){if(s===void 0&&(s=new e.Map),!(r&&!id(r)))return;var l=Qt(r),g=l.accessibleChainCache||(l.accessibleChainCache=new e.Map),W=Yf(n,function(Sn,Kn,ei,Ti){return Ti}),ce="".concat(a?0:1,"|").concat(W&&V(W),"|").concat(i);if(g.has(ce))return g.get(ce);var ke=h(r),rr=s.get(ke);rr||s.set(ke,rr=[]);var $e=Yf(n,ar);return g.set(ce,$e),$e;function ar(Sn,Kn,ei){if(!!e.pushIfUnique(rr,Sn)){var Ti=sn(Sn,Kn,ei);return rr.pop(),Ti}}function ir(Sn,Kn){return!k_(Sn,n,Kn)||!!pu(Sn.parent,n,lu(Kn),a,s)}function Wr(Sn,Kn,ei){return(r===(Kn||Sn)||Ya(r)===Ya(Kn||Sn))&&!e.some(Sn.declarations,gu)&&(ei||ir(Ya(Sn),i))}function sn(Sn,Kn,ei){if(Wr(Sn.get(r.escapedName),void 0,Kn))return[r];var Ti=e.forEachEntry(Sn,function(Ri){if(Ri.flags&2097152&&Ri.escapedName!=="export="&&Ri.escapedName!=="default"&&!(e.isUMDExportSymbol(Ri)&&n&&e.isExternalModule(e.getSourceFileOfNode(n)))&&(!a||e.some(Ri.declarations,e.isExternalModuleImportEqualsDeclaration))&&(ei?!e.some(Ri.declarations,e.isNamespaceReexportDeclaration):!0)&&(Kn||!e.getDeclarationOfKind(Ri,278))){var pt=wi(Ri),rt=In(Ri,pt,Kn);if(rt)return rt}if(Ri.escapedName===r.escapedName&&Ri.exportSymbol&&Wr(Ya(Ri.exportSymbol),void 0,Kn))return[r]});return Ti||(Sn===rn?In(pn,pn,Kn):void 0)}function In(Sn,Kn,ei){if(Wr(Sn,Kn,ei))return[Sn];var Ti=Ac(Kn),Ri=Ti&&ar(Ti,!0);if(Ri&&ir(Sn,lu(i)))return[Sn].concat(Ri)}}function k_(r,n,i){var a=!1;return Yf(n,function(s){var l=Ya(s.get(r.escapedName));if(!l)return!1;if(l===r)return!0;var g=l.flags&2097152&&!e.getDeclarationOfKind(l,278);l=g?wi(l):l;var W=g?Kt(l):l.flags;return W&i?(a=!0,!0):!1}),a}function id(r){if(r.declarations&&r.declarations.length){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];switch(a.kind){case 169:case 171:case 174:case 175:continue;default:return!1}}return!0}return!1}function Pf(r,n){var i=tl(r,n,788968,!1,!0);return i.accessibility===0}function Ol(r,n){var i=tl(r,n,111551,!1,!0);return i.accessibility===0}function Au(r,n,i){var a=tl(r,n,i,!1,!1);return a.accessibility===0}function xp(r,n,i,a,s,l){if(!!e.length(r)){for(var g,W=!1,ce=0,ke=r;ce<ke.length;ce++){var rr=ke[ce],$e=pu(rr,n,a,!1);if($e){g=rr;var ar=td($e[0],s);if(ar)return ar}if(l&&e.some(rr.declarations,gu)){if(s){W=!0;continue}return{accessibility:0}}var ir=Qf(rr,n,a),Wr=xp(ir,n,i,i===rr?lu(a):a,s,l);if(Wr)return Wr}if(W)return{accessibility:0};if(g)return{accessibility:1,errorSymbolName:Xt(i,n,a),errorModuleName:g!==i?Xt(g,n,1920):void 0}}}function Fl(r,n,i,a){return tl(r,n,i,a,!0)}function tl(r,n,i,a,s){if(r&&n){var l=xp([r],n,r,i,a,s);if(l)return l;var g=e.forEach(r.declarations,$f);if(g){var W=$f(n);if(g!==W)return{accessibility:2,errorSymbolName:Xt(r,n,i),errorModuleName:Xt(g),errorNode:e.isInJSFile(n)?n:void 0}}return{accessibility:1,errorSymbolName:Xt(r,n,i)}}return{accessibility:0}}function $f(r){var n=e.findAncestor(r,Cp);return n&&zi(n)}function Cp(r){return e.isAmbientModule(r)||r.kind===308&&e.isExternalOrCommonJsModule(r)}function gu(r){return e.isModuleWithStringLiteralName(r)||r.kind===308&&e.isExternalOrCommonJsModule(r)}function td(r,n){var i;if(!e.every(e.filter(r.declarations,function(l){return l.kind!==79}),a))return;return{accessibility:0,aliasesToMakeVisible:i};function a(l){var g,W;if(!_n(l)){var ce=D_(l);if(ce&&!e.hasSyntacticModifier(ce,1)&&_n(ce.parent))return s(l,ce);if(e.isVariableDeclaration(l)&&e.isVariableStatement(l.parent.parent)&&!e.hasSyntacticModifier(l.parent.parent,1)&&_n(l.parent.parent.parent))return s(l,l.parent.parent);if(e.isLateVisibilityPaintedStatement(l)&&!e.hasSyntacticModifier(l,1)&&_n(l.parent))return s(l,l);if(e.isBindingElement(l)){if(r.flags&2097152&&e.isInJSFile(l)&&((g=l.parent)===null||g===void 0?void 0:g.parent)&&e.isVariableDeclaration(l.parent.parent)&&((W=l.parent.parent.parent)===null||W===void 0?void 0:W.parent)&&e.isVariableStatement(l.parent.parent.parent.parent)&&!e.hasSyntacticModifier(l.parent.parent.parent.parent,1)&&l.parent.parent.parent.parent.parent&&_n(l.parent.parent.parent.parent.parent))return s(l,l.parent.parent.parent.parent);if(r.flags&2){var ke=e.findAncestor(l,e.isVariableStatement);return e.hasSyntacticModifier(ke,1)?!0:_n(ke.parent)?s(l,ke):!1}}return!1}return!0}function s(l,g){return n&&(At(l).isVisible=!0,i=e.appendIfUnique(i,g)),!0}}function qp(r,n){var i;r.parent.kind===183||r.parent.kind===230&&!e.isPartOfTypeNode(r.parent)||r.parent.kind===164?i=111551|1048576:r.kind===163||r.kind===208||r.parent.kind===268?i=1920:i=788968;var a=e.getFirstIdentifier(r),s=is(n,a.escapedText,i,void 0,void 0,!1);return s&&s.flags&262144&&i&788968?{accessibility:0}:!s&&e.isThisIdentifier(a)&&Fl(zi(e.getThisContainer(a,!1)),a,i,!1).accessibility===0?{accessibility:0}:s&&td(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function Xt(r,n,i,a,s){a===void 0&&(a=4);var l=70221824;a&2&&(l|=128),a&1&&(l|=512),a&8&&(l|=16384),a&32&&(l|=134217728),a&16&&(l|=1073741824);var g=a&4?Cr.symbolToNode:Cr.symbolToEntityName;return s?W(s).getText():e.usingSingleLineStringWriter(W);function W(ce){var ke=g(r,i,n,l),rr=(n==null?void 0:n.kind)===308?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),$e=n&&e.getSourceFileOfNode(n);return rr.writeNode(4,ke,$e,ce),ce}}function ru(r,n,i,a,s){return i===void 0&&(i=0),s?l(s).getText():e.usingSingleLineStringWriter(l);function l(g){var W;i&262144?W=a===1?182:181:W=a===1?177:176;var ce=Cr.signatureToSignatureDeclaration(r,W,n,Ju(i)|70221824|512),ke=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),rr=n&&e.getSourceFileOfNode(n);return ke.writeNode(4,ce,rr,e.getTrailingSemicolonDeferringWriter(g)),g}}function Oi(r,n,i,a){i===void 0&&(i=1048576|16384),a===void 0&&(a=e.createTextWriter(""));var s=Y.noErrorTruncation||i&1,l=Cr.typeToTypeNode(r,n,Ju(i)|70221824|(s?1:0),a);if(l===void 0)return e.Debug.fail("should always get typenode");var g={removeComments:r!==Ke},W=e.createPrinter(g),ce=n&&e.getSourceFileOfNode(n);W.writeNode(4,l,ce,a);var ke=a.getText(),rr=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return rr&&ke&&ke.length>=rr?ke.substr(0,rr-"...".length)+"...":ke}function Ml(r,n){var i=al(r.symbol)?Oi(r,r.symbol.valueDeclaration):Oi(r),a=al(n.symbol)?Oi(n,n.symbol.valueDeclaration):Oi(n);return i===a&&(i=ad(r),a=ad(n)),[i,a]}function ad(r){return Oi(r,void 0,64)}function al(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!Gu(r.valueDeclaration)}function Ju(r){return r===void 0&&(r=0),r&848330091}function od(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===_u(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function Bd(){return{typeToTypeNode:function(an,br,Fi,li){return n(br,Fi,li,function(et){return s(an,et)})},indexInfoToIndexSignatureDeclaration:function(an,br,Fi,li){return n(br,Fi,li,function(et){return $e(an,et,void 0)})},signatureToSignatureDeclaration:function(an,br,Fi,li,et){return n(Fi,li,et,function(ki){return ar(an,br,ki)})},symbolToEntityName:function(an,br,Fi,li,et){return n(Fi,li,et,function(ki){return wa(an,ki,br,!1)})},symbolToExpression:function(an,br,Fi,li,et){return n(Fi,li,et,function(ki){return So(an,ki,br)})},symbolToTypeParameterDeclarations:function(an,br,Fi,li){return n(br,Fi,li,function(et){return Ti(an,et)})},symbolToParameterDeclaration:function(an,br,Fi,li){return n(br,Fi,li,function(et){return In(an,et)})},typeParameterToDeclaration:function(an,br,Fi,li){return n(br,Fi,li,function(et){return sn(an,et)})},symbolTableToDeclarationStatements:function(an,br,Fi,li,et){return n(br,Fi,li,function(ki){return La(an,ki,et)})},symbolToNode:function(an,br,Fi,li,et){return n(Fi,li,et,function(ki){return r(an,ki,br)})}};function r(an,br,Fi){if(br.flags&1073741824){if(an.valueDeclaration){var li=e.getNameOfDeclaration(an.valueDeclaration);if(li&&e.isComputedPropertyName(li))return li}var et=Qt(an).nameType;if(et&&et.flags&(1024|8192))return br.enclosingDeclaration=et.symbol.valueDeclaration,e.factory.createComputedPropertyName(So(et.symbol,br,Fi))}return So(an,br,Fi)}function n(an,br,Fi,li){var et,ki;e.Debug.assert(an===void 0||(an.flags&8)==0);var Mi={enclosingDeclaration:an,flags:br||0,tracker:Fi&&Fi.trackSymbol?Fi:{trackSymbol:function(){return!1},moduleResolverHost:br&134217728?{getCommonSourceDirectory:b.getCommonSourceDirectory?function(){return b.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return b.getCurrentDirectory()},getSymlinkCache:e.maybeBind(b,b.getSymlinkCache),getPackageJsonInfoCache:function(){var Xr;return(Xr=b.getPackageJsonInfoCache)===null||Xr===void 0?void 0:Xr.call(b)},useCaseSensitiveFileNames:e.maybeBind(b,b.useCaseSensitiveFileNames),redirectTargetsMap:b.redirectTargetsMap,getProjectReferenceRedirect:function(Xr){return b.getProjectReferenceRedirect(Xr)},isSourceOfProjectReferenceRedirect:function(Xr){return b.isSourceOfProjectReferenceRedirect(Xr)},fileExists:function(Xr){return b.fileExists(Xr)},getFileIncludeReasons:function(){return b.getFileIncludeReasons()},readFile:b.readFile?function(Xr){return b.readFile(Xr)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Mi.tracker=i(Mi,Mi.tracker);var vt=li(Mi);return Mi.truncating&&Mi.flags&1&&((ki=(et=Mi.tracker)===null||et===void 0?void 0:et.reportTruncationError)===null||ki===void 0||ki.call(et)),Mi.encounteredError?void 0:vt}function i(an,br){var Fi=br.trackSymbol;return vi(vi({},br),{reportCyclicStructureError:li(br.reportCyclicStructureError),reportInaccessibleThisError:li(br.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:li(br.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:li(br.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:li(br.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:li(br.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:li(br.reportNonSerializableProperty),trackSymbol:Fi&&function(){for(var et=[],ki=0;ki<arguments.length;ki++)et[ki]=arguments[ki];var Mi=Fi.apply(void 0,et);return Mi&&(an.reportedDiagnostic=!0),Mi}});function li(et){return et&&function(){for(var ki=[],Mi=0;Mi<arguments.length;Mi++)ki[Mi]=arguments[Mi];return an.reportedDiagnostic=!0,et.apply(void 0,ki)}}}function a(an){return an.truncating?an.truncating:an.truncating=an.approximateLength>(an.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(an,br){var Fi=br.flags,li=l(an,br);return br.flags=Fi,li}function l(an,br){B&&B.throwIfCancellationRequested&&B.throwIfCancellationRequested();var Fi=br.flags&8388608;if(br.flags&=~8388608,!an){if(!(br.flags&262144)){br.encounteredError=!0;return}return br.approximateLength+=3,e.factory.createKeywordTypeNode(131)}if(br.flags&536870912||(an=ct(an)),an.flags&1)return an.aliasSymbol?e.factory.createTypeReferenceNode(Da(an.aliasSymbol),ke(an.aliasTypeArguments,br)):an===Ke?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(131),3,"unresolved"):(br.approximateLength+=3,e.factory.createKeywordTypeNode(an===hr?139:131));if(an.flags&2)return e.factory.createKeywordTypeNode(157);if(an.flags&4)return br.approximateLength+=6,e.factory.createKeywordTypeNode(152);if(an.flags&8)return br.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(an.flags&64)return br.approximateLength+=6,e.factory.createKeywordTypeNode(160);if(an.flags&16&&!an.aliasSymbol)return br.approximateLength+=7,e.factory.createKeywordTypeNode(134);if(an.flags&1024&&!(an.flags&1048576)){var li=Nc(an.symbol),et=St(li,br,788968);if(nt(li)===an)return et;var ki=e.symbolName(an.symbol);return e.isIdentifierText(ki,0)?dn(et,e.factory.createTypeReferenceNode(ki,void 0)):e.isImportTypeNode(et)?(et.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(et,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ki)))):e.isTypeReferenceNode(et)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(et.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ki))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(an.flags&1056)return St(an.symbol,br,788968);if(an.flags&128)return br.approximateLength+=an.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(an.value,!!(br.flags&268435456)),16777216));if(an.flags&256){var Mi=an.value;return br.approximateLength+=(""+Mi).length,e.factory.createLiteralTypeNode(Mi<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Mi)):e.factory.createNumericLiteral(Mi))}if(an.flags&2048)return br.approximateLength+=e.pseudoBigIntToString(an.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(an.value));if(an.flags&512)return br.approximateLength+=an.intrinsicName.length,e.factory.createLiteralTypeNode(an.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(an.flags&8192){if(!(br.flags&1048576)){if(Ol(an.symbol,br.enclosingDeclaration))return br.approximateLength+=6,St(an.symbol,br,111551);br.tracker.reportInaccessibleUniqueSymbolError&&br.tracker.reportInaccessibleUniqueSymbolError()}return br.approximateLength+=13,e.factory.createTypeOperatorNode(156,e.factory.createKeywordTypeNode(153))}if(an.flags&16384)return br.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(an.flags&32768)return br.approximateLength+=9,e.factory.createKeywordTypeNode(155);if(an.flags&65536)return br.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(an.flags&131072)return br.approximateLength+=5,e.factory.createKeywordTypeNode(144);if(an.flags&4096)return br.approximateLength+=6,e.factory.createKeywordTypeNode(153);if(an.flags&67108864)return br.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(e.isThisTypeParameter(an))return br.flags&4194304&&(!br.encounteredError&&!(br.flags&32768)&&(br.encounteredError=!0),br.tracker.reportInaccessibleThisError&&br.tracker.reportInaccessibleThisError()),br.approximateLength+=4,e.factory.createThisTypeNode();if(!Fi&&an.aliasSymbol&&(br.flags&16384||Pf(an.aliasSymbol,br.enclosingDeclaration))){var vt=ke(an.aliasTypeArguments,br);return Nf(an.aliasSymbol.escapedName)&&!(an.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),vt):e.length(vt)===1&&an.aliasSymbol===la.symbol?e.factory.createArrayTypeNode(vt[0]):St(an.aliasSymbol,br,788968,vt)}var Xr=e.getObjectFlags(an);if(Xr&4)return e.Debug.assert(!!(an.flags&524288)),an.node?Ql(an,Xl):Xl(an);if(an.flags&262144||Xr&3){if(an.flags&262144&&e.contains(br.inferTypeParameters,an)){br.approximateLength+=e.symbolName(an.symbol).length+6;var Jn=void 0,Yn=rc(an);if(Yn){var Di=db(an,!0);Di&&Lf(Yn,Di)||(br.approximateLength+=9,Jn=Yn&&s(Yn,br))}return e.factory.createInferTypeNode(Wr(an,br,Jn))}if(br.flags&4&&an.flags&262144&&!Pf(an.symbol,br.enclosingDeclaration)){var bi=Ta(an,br);return br.approximateLength+=e.idText(bi).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(bi)),void 0)}if(an.symbol)return St(an.symbol,br,788968);var Qi=(an===so||an===Xo)&&Ne&&Ne.symbol?(an===Xo?"sub-":"super-")+e.symbolName(Ne.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(Qi),void 0)}if(an.flags&1048576&&an.origin&&(an=an.origin),an.flags&(1048576|2097152)){var xt=an.flags&1048576?A_(an.types):an.types;if(e.length(xt)===1)return s(xt[0],br);var Vt=ke(xt,br,!0);if(Vt&&Vt.length>0)return an.flags&1048576?e.factory.createUnionTypeNode(Vt):e.factory.createIntersectionTypeNode(Vt);!br.encounteredError&&!(br.flags&262144)&&(br.encounteredError=!0);return}if(Xr&(16|32))return e.Debug.assert(!!(an.flags&524288)),lp(an);if(an.flags&4194304){var Ha=an.type;br.approximateLength+=6;var qt=s(Ha,br);return e.factory.createTypeOperatorNode(141,qt)}if(an.flags&134217728){var lo=an.texts,to=an.types,Mo=e.factory.createTemplateHead(lo[0]),Zs=e.factory.createNodeArray(e.map(to,function(Ln,xi){return e.factory.createTemplateLiteralTypeSpan(s(Ln,br),(xi<to.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(lo[xi+1]))}));return br.approximateLength+=2,e.factory.createTemplateLiteralType(Mo,Zs)}if(an.flags&268435456){var Ys=s(an.type,br);return St(an.symbol,br,788968,[Ys])}if(an.flags&8388608){var us=s(an.objectType,br),qt=s(an.indexType,br);return br.approximateLength+=2,e.factory.createIndexedAccessTypeNode(us,qt)}if(an.flags&16777216)return Ql(an,function(Ln){return du(Ln)});if(an.flags&33554432)return s(an.baseType,br);return e.Debug.fail("Should be unreachable.");function du(Ln){var xi=s(Ln.checkType,br);if(br.approximateLength+=15,br.flags&4&&Ln.root.isDistributive&&!(Ln.checkType.flags&262144)){var ri=uu(go(262144,"T")),pi=Ta(ri,br),Wi=e.factory.createTypeReferenceNode(pi);br.approximateLength+=37;var yt=ig(Ln.root.checkType,ri,Ln.mapper),ht=br.inferTypeParameters;br.inferTypeParameters=Ln.root.inferTypeParameters;var Bt=s(ra(Ln.root.extendsType,yt),br);br.inferTypeParameters=ht;var pa=qo(ra(zt(Ln.root.node.trueType),yt)),ua=qo(ra(zt(Ln.root.node.falseType),yt));return e.factory.createConditionalTypeNode(xi,e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(Wi.typeName))),e.factory.createConditionalTypeNode(e.factory.createTypeReferenceNode(e.factory.cloneNode(pi)),s(Ln.checkType,br),e.factory.createConditionalTypeNode(Wi,Bt,pa,ua),e.factory.createKeywordTypeNode(144)),e.factory.createKeywordTypeNode(144))}var ja=br.inferTypeParameters;br.inferTypeParameters=Ln.root.inferTypeParameters;var yo=s(Ln.extendsType,br);br.inferTypeParameters=ja;var qa=qo(Dd(Ln)),Jo=qo(bd(Ln));return e.factory.createConditionalTypeNode(xi,yo,qa,Jo)}function qo(Ln){var xi,ri,pi;return Ln.flags&1048576?((xi=br.visitedTypes)===null||xi===void 0?void 0:xi.has(tc(Ln)))?(br.flags&131072||(br.encounteredError=!0,(pi=(ri=br.tracker)===null||ri===void 0?void 0:ri.reportCyclicStructureError)===null||pi===void 0||pi.call(ri)),g(br)):Ql(Ln,function(Wi){return s(Wi,br)}):s(Ln,br)}function yf(Ln){return Eg(Ln)&&!(Vd(Ln).flags&262144)}function up(Ln){e.Debug.assert(!!(Ln.flags&524288));var xi=Ln.declaration.readonlyToken?e.factory.createToken(Ln.declaration.readonlyToken.kind):void 0,ri=Ln.declaration.questionToken?e.factory.createToken(Ln.declaration.questionToken.kind):void 0,pi,Wi;if(Eg(Ln)){if(yf(Ln)&&br.flags&4){var yt=uu(go(262144,"T")),ht=Ta(yt,br);Wi=e.factory.createTypeReferenceNode(ht)}pi=e.factory.createTypeOperatorNode(141,Wi||s(Vd(Ln),br))}else pi=s(zu(Ln),br);var Bt=Wr(Pu(Ln),br,pi),pa=Ln.declaration.nameType?s(Ff(Ln),br):void 0,ua=s(Jg(Jl(Ln),!!(sl(Ln)&4)),br),ja=e.factory.createMappedTypeNode(xi,Bt,pa,ri,ua,void 0);br.approximateLength+=10;var yo=e.setEmitFlags(ja,1);if(yf(Ln)&&br.flags&4){var qa=ra(rc(zt(Ln.declaration.typeParameter.constraint.type))||_r,Ln.mapper);return e.factory.createConditionalTypeNode(s(Vd(Ln),br),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(Wi.typeName),qa.flags&2?void 0:s(qa,br))),yo,e.factory.createKeywordTypeNode(144))}return yo}function lp(Ln){var xi,ri=Ln.id,pi=Ln.symbol;if(pi){var Wi=od(Ln)?788968:111551;if(Sl(pi.valueDeclaration))return St(pi,br,Wi);if(pi.flags&32&&!i_(pi)&&!(pi.valueDeclaration&&e.isClassLike(pi.valueDeclaration)&&br.flags&2048&&(!e.isClassDeclaration(pi.valueDeclaration)||Fl(pi,br.enclosingDeclaration,Wi,!1).accessibility!==0))||pi.flags&(384|512)||ht())return St(pi,br,Wi);if((xi=br.visitedTypes)===null||xi===void 0?void 0:xi.has(ri)){var yt=N_(Ln);return yt?St(yt,br,788968):g(br)}else return Ql(Ln,p_)}else return p_(Ln);function ht(){var Bt,pa=!!(pi.flags&8192)&&e.some(pi.declarations,function(ja){return e.isStatic(ja)}),ua=!!(pi.flags&16)&&(pi.parent||e.forEach(pi.declarations,function(ja){return ja.parent.kind===308||ja.parent.kind===265}));if(pa||ua)return(!!(br.flags&4096)||((Bt=br.visitedTypes)===null||Bt===void 0?void 0:Bt.has(ri)))&&(!(br.flags&8)||Ol(pi,br.enclosingDeclaration))}}function Ql(Ln,xi){var ri,pi,Wi=Ln.id,yt=e.getObjectFlags(Ln)&16&&Ln.symbol&&Ln.symbol.flags&32,ht=e.getObjectFlags(Ln)&4&&Ln.node?"N"+V(Ln.node):Ln.flags&16777216?"N"+V(Ln.root.node):Ln.symbol?(yt?"+":"")+h(Ln.symbol):void 0;br.visitedTypes||(br.visitedTypes=new e.Set),ht&&!br.symbolDepth&&(br.symbolDepth=new e.Map);var Bt=br.enclosingDeclaration&&At(br.enclosingDeclaration),pa="".concat(tc(Ln),"|").concat(br.flags);Bt&&(Bt.serializedTypes||(Bt.serializedTypes=new e.Map));var ua=(ri=Bt==null?void 0:Bt.serializedTypes)===null||ri===void 0?void 0:ri.get(pa);if(ua)return ua.truncating&&(br.truncating=!0),br.approximateLength+=ua.addedLength,Bo(ua);var ja;if(ht){if(ja=br.symbolDepth.get(ht)||0,ja>10)return g(br);br.symbolDepth.set(ht,ja+1)}br.visitedTypes.add(Wi);var yo=br.approximateLength,qa=xi(Ln),Jo=br.approximateLength-yo;return!br.reportedDiagnostic&&!br.encounteredError&&(br.truncating&&(qa.truncating=!0),qa.addedLength=Jo,(pi=Bt==null?void 0:Bt.serializedTypes)===null||pi===void 0||pi.set(pa,qa)),br.visitedTypes.delete(Wi),ht&&br.symbolDepth.set(ht,ja),qa;function Bo(Ro){return!e.nodeIsSynthesized(Ro)&&e.getParseTreeNode(Ro)===Ro?Ro:e.setTextRange(e.factory.cloneNode(e.visitEachChild(Ro,Bo,e.nullTransformationContext,Dc)),Ro)}function Dc(Ro,ls,En,Ui,Ut){return Ro&&Ro.length===0?e.setTextRange(e.factory.createNodeArray(void 0,Ro.hasTrailingComma),Ro):e.visitNodes(Ro,ls,En,Ui,Ut)}}function p_(Ln){if(Xc(Ln)||Ln.containsError)return up(Ln);var xi=Iu(Ln);if(!xi.properties.length&&!xi.indexInfos.length){if(!xi.callSignatures.length&&!xi.constructSignatures.length)return br.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(xi.callSignatures.length===1&&!xi.constructSignatures.length){var ri=xi.callSignatures[0],pi=ar(ri,181,br);return pi}if(xi.constructSignatures.length===1&&!xi.callSignatures.length){var ri=xi.constructSignatures[0],pi=ar(ri,182,br);return pi}}var Wi=e.filter(xi.constructSignatures,function(ja){return!!(ja.flags&4)});if(e.some(Wi)){var yt=e.map(Wi,fm),ht=xi.callSignatures.length+(xi.constructSignatures.length-Wi.length)+xi.indexInfos.length+(br.flags&2048?e.countWhere(xi.properties,function(ja){return!(ja.flags&4194304)}):e.length(xi.properties));return ht&&yt.push(Rd(xi)),s(ro(yt),br)}var Bt=br.flags;br.flags|=4194304;var pa=ii(xi);br.flags=Bt;var ua=e.factory.createTypeLiteralNode(pa);return br.approximateLength+=2,e.setEmitFlags(ua,br.flags&1024?0:1),ua}function Xl(Ln){var xi=No(Ln);if(Ln.target===la||Ln.target===na){if(br.flags&2){var ri=s(xi[0],br);return e.factory.createTypeReferenceNode(Ln.target===la?"Array":"ReadonlyArray",[ri])}var pi=s(xi[0],br),Wi=e.factory.createArrayTypeNode(pi);return Ln.target===la?Wi:e.factory.createTypeOperatorNode(146,Wi)}else if(Ln.target.objectFlags&8){if(xi=e.sameMap(xi,function(lt,Ct){return Jg(lt,!!(Ln.target.elementFlags[Ct]&2))}),xi.length>0){var yt=md(Ln),ht=ke(xi.slice(0,yt),br);if(ht){if(Ln.target.labeledElementDeclarations)for(var Bt=0;Bt<ht.length;Bt++){var pa=Ln.target.elementFlags[Bt];ht[Bt]=e.factory.createNamedTupleMember(pa&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(v0(Ln.target.labeledElementDeclarations[Bt]))),pa&2?e.factory.createToken(57):void 0,pa&4?e.factory.createArrayTypeNode(ht[Bt]):ht[Bt])}else for(var Bt=0;Bt<Math.min(yt,ht.length);Bt++){var pa=Ln.target.elementFlags[Bt];ht[Bt]=pa&12?e.factory.createRestTypeNode(pa&4?e.factory.createArrayTypeNode(ht[Bt]):ht[Bt]):pa&2?e.factory.createOptionalTypeNode(ht[Bt]):ht[Bt]}var ua=e.setEmitFlags(e.factory.createTupleTypeNode(ht),1);return Ln.target.readonly?e.factory.createTypeOperatorNode(146,ua):ua}}if(br.encounteredError||br.flags&524288){var ua=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Ln.target.readonly?e.factory.createTypeOperatorNode(146,ua):ua}br.encounteredError=!0;return}else{if(br.flags&2048&&Ln.symbol.valueDeclaration&&e.isClassLike(Ln.symbol.valueDeclaration)&&!Ol(Ln.symbol,br.enclosingDeclaration))return lp(Ln);var ja=Ln.target.outerTypeParameters,Bt=0,yo=void 0;if(ja)for(var qa=ja.length;Bt<qa;){var Jo=Bt,Bo=pb(ja[Bt]);do Bt++;while(Bt<qa&&pb(ja[Bt])===Bo);if(!e.rangeEquals(ja,xi,Jo,Bt)){var Dc=ke(xi.slice(Jo,Bt),br),Ro=br.flags;br.flags|=16;var ls=St(Bo,br,788968,Dc);br.flags=Ro,yo=yo?dn(yo,ls):ls}}var En=void 0;if(xi.length>0){var Ui=(Ln.target.typeParameters||e.emptyArray).length;En=ke(xi.slice(Bt,Ui),br)}var pa=br.flags;br.flags|=16;var Ut=St(Ln.symbol,br,788968,En);return br.flags=pa,yo?dn(yo,Ut):Ut}}function dn(Ln,xi){if(e.isImportTypeNode(Ln)){var ri=Ln.typeArguments,pi=Ln.qualifier;pi&&(e.isIdentifier(pi)?pi=e.factory.updateIdentifier(pi,ri):pi=e.factory.updateQualifiedName(pi,pi.left,e.factory.updateIdentifier(pi.right,ri))),ri=xi.typeArguments;for(var Wi=kn(xi),yt=0,ht=Wi;yt<ht.length;yt++){var Bt=ht[yt];pi=pi?e.factory.createQualifiedName(pi,Bt):Bt}return e.factory.updateImportTypeNode(Ln,Ln.argument,Ln.assertions,pi,ri,Ln.isTypeOf)}else{var ri=Ln.typeArguments,pa=Ln.typeName;e.isIdentifier(pa)?pa=e.factory.updateIdentifier(pa,ri):pa=e.factory.updateQualifiedName(pa,pa.left,e.factory.updateIdentifier(pa.right,ri)),ri=xi.typeArguments;for(var Wi=kn(xi),ua=0,ja=Wi;ua<ja.length;ua++){var Bt=ja[ua];pa=e.factory.createQualifiedName(pa,Bt)}return e.factory.updateTypeReferenceNode(Ln,pa,ri)}}function kn(Ln){for(var xi=Ln.typeName,ri=[];!e.isIdentifier(xi);)ri.unshift(xi.right),xi=xi.left;return ri.unshift(xi),ri}function ii(Ln){if(a(br))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var xi=[],ri=0,pi=Ln.callSignatures;ri<pi.length;ri++){var Wi=pi[ri];xi.push(ar(Wi,176,br))}for(var yt=0,ht=Ln.constructSignatures;yt<ht.length;yt++){var Wi=ht[yt];Wi.flags&4||xi.push(ar(Wi,177,br))}for(var Bt=0,pa=Ln.indexInfos;Bt<pa.length;Bt++){var ua=pa[Bt];xi.push($e(ua,br,Ln.objectFlags&1024?g(br):void 0))}var ja=Ln.properties;if(!ja)return xi;for(var yo=0,qa=0,Jo=ja;qa<Jo.length;qa++){var Bo=Jo[qa];if(yo++,br.flags&2048){if(Bo.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(Bo)&(8|16)&&br.tracker.reportPrivateInBaseOfClassExpression&&br.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(Bo.escapedName))}if(a(br)&&yo+2<ja.length-1){xi.push(e.factory.createPropertySignature(void 0,"... ".concat(ja.length-yo," more ..."),void 0,void 0)),ce(ja[ja.length-1],br,xi);break}ce(Bo,br,xi)}return xi.length?xi:void 0}}function g(an){return an.approximateLength+=3,an.flags&1?e.factory.createKeywordTypeNode(131):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function W(an,br){var Fi;return!!(e.getCheckFlags(an)&8192)&&(e.contains(br.reverseMappedStack,an)||((Fi=br.reverseMappedStack)===null||Fi===void 0?void 0:Fi[0])&&!(e.getObjectFlags(e.last(br.reverseMappedStack).propertyType)&16))}function ce(an,br,Fi){var li,et,ki=!!(e.getCheckFlags(an)&8192),Mi=W(an,br)?Te:ju(an),vt=br.enclosingDeclaration;if(br.enclosingDeclaration=void 0,br.tracker.trackSymbol&&zd(an.escapedName))if(an.declarations){var Xr=e.first(an.declarations);if(Sg(Xr))if(e.isBinaryExpression(Xr)){var Jn=e.getNameOfDeclaration(Xr);Jn&&e.isElementAccessExpression(Jn)&&e.isPropertyAccessEntityNameExpression(Jn.argumentExpression)&&Sn(Jn.argumentExpression,vt,br)}else Sn(Xr.name.expression,vt,br)}else((li=br.tracker)===null||li===void 0?void 0:li.reportNonSerializableProperty)&&br.tracker.reportNonSerializableProperty(Xt(an));br.enclosingDeclaration=an.valueDeclaration||((et=an.declarations)===null||et===void 0?void 0:et[0])||vt;var Yn=sa(an,br);br.enclosingDeclaration=vt,br.approximateLength+=e.symbolName(an).length+1;var Di=an.flags&16777216?e.factory.createToken(57):void 0;if(an.flags&(16|8192)&&!Mf(Mi).length&&!_l(an))for(var bi=_a(Qs(Mi,function(Zs){return!(Zs.flags&32768)}),0),Qi=0,xt=bi;Qi<xt.length;Qi++){var Vt=xt[Qi],Ha=ar(Vt,170,br,{name:Yn,questionToken:Di});Fi.push(Mo(Ha))}else{var qt=void 0;W(an,br)?qt=g(br):(ki&&(br.reverseMappedStack||(br.reverseMappedStack=[]),br.reverseMappedStack.push(an)),qt=Mi?ea(br,Mi,an,vt):e.factory.createKeywordTypeNode(131),ki&&br.reverseMappedStack.pop());var lo=_l(an)?[e.factory.createToken(146)]:void 0;lo&&(br.approximateLength+=9);var to=e.factory.createPropertySignature(lo,Yn,Di,qt);Fi.push(Mo(to))}function Mo(Zs){var Ys;if(e.some(an.declarations,function(qo){return qo.kind===350})){var us=(Ys=an.declarations)===null||Ys===void 0?void 0:Ys.find(function(qo){return qo.kind===350}),du=e.getTextOfJSDocComment(us.comment);du&&e.setSyntheticLeadingComments(Zs,[{kind:3,text:`*
  239. * `+du.replace(/\n/g,`
  240. * `)+`
  241. `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else an.valueDeclaration&&e.setCommentRange(Zs,an.valueDeclaration);return Zs}}function ke(an,br,Fi){if(e.some(an)){if(a(br))if(Fi){if(an.length>2)return[s(an[0],br),e.factory.createTypeReferenceNode("... ".concat(an.length-2," more ..."),void 0),s(an[an.length-1],br)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var li=!(br.flags&64),et=li?e.createUnderscoreEscapedMultiMap():void 0,ki=[],Mi=0,vt=0,Xr=an;vt<Xr.length;vt++){var Jn=Xr[vt];if(Mi++,a(br)&&Mi+2<an.length-1){ki.push(e.factory.createTypeReferenceNode("... ".concat(an.length-Mi," more ..."),void 0));var Yn=s(an[an.length-1],br);Yn&&ki.push(Yn);break}br.approximateLength+=2;var Di=s(Jn,br);Di&&(ki.push(Di),et&&e.isIdentifierTypeReference(Di)&&et.add(Di.typeName.escapedText,[Jn,ki.length-1]))}if(et){var bi=br.flags;br.flags|=64,et.forEach(function(Qi){if(!e.arrayIsHomogeneous(Qi,function(to,Mo){var Zs=to[0],Ys=Mo[0];return rr(Zs,Ys)}))for(var xt=0,Vt=Qi;xt<Vt.length;xt++){var Ha=Vt[xt],qt=Ha[0],lo=Ha[1];ki[lo]=s(qt,br)}}),br.flags=bi}return ki}}function rr(an,br){return an===br||!!an.symbol&&an.symbol===br.symbol||!!an.aliasSymbol&&an.aliasSymbol===br.aliasSymbol}function $e(an,br,Fi){var li=e.getNameFromIndexInfo(an)||"x",et=s(an.keyType,br),ki=e.factory.createParameterDeclaration(void 0,void 0,li,void 0,et,void 0);return Fi||(Fi=s(an.type||Te,br)),!an.type&&!(br.flags&2097152)&&(br.encounteredError=!0),br.approximateLength+=li.length+4,e.factory.createIndexSignature(an.isReadonly?[e.factory.createToken(146)]:void 0,[ki],Fi)}function ar(an,br,Fi,li){var et,ki,Mi,vt,Xr=Fi.flags&256;Xr&&(Fi.flags&=~256),Fi.approximateLength+=3;var Jn,Yn;Fi.flags&32&&an.target&&an.mapper&&an.target.typeParameters?Yn=an.target.typeParameters.map(function(us){return s(ra(us,an.mapper),Fi)}):Jn=an.typeParameters&&an.typeParameters.map(function(us){return sn(us,Fi)});var Di=sm(an,!0)[0],bi=(e.some(Di,function(us){return us!==Di[Di.length-1]&&!!(e.getCheckFlags(us)&32768)})?an.parameters:Di).map(function(us){return In(us,Fi,br===173,li==null?void 0:li.privateSymbolVisitor,li==null?void 0:li.bundledImports)}),Qi=Fi.flags&33554432?void 0:ir(an,Fi);Qi&&bi.unshift(Qi);var xt,Vt=qu(an);if(Vt){var Ha=Vt.kind===2||Vt.kind===3?e.factory.createToken(129):void 0,qt=Vt.kind===1||Vt.kind===3?e.setEmitFlags(e.factory.createIdentifier(Vt.parameterName),16777216):e.factory.createThisTypeNode(),lo=Vt.type&&s(Vt.type,Fi);xt=e.factory.createTypePredicateNode(Ha,qt,lo)}else{var to=Ao(an);to&&!(Xr&&Ba(to))?xt=ka(Fi,to,an,li==null?void 0:li.privateSymbolVisitor,li==null?void 0:li.bundledImports):Xr||(xt=e.factory.createKeywordTypeNode(131))}var Mo=li==null?void 0:li.modifiers;if(br===182&&an.flags&4){var Zs=e.modifiersToFlags(Mo);Mo=e.factory.createModifiersFromModifierFlags(Zs|256)}var Ys=br===176?e.factory.createCallSignature(Jn,bi,xt):br===177?e.factory.createConstructSignature(Jn,bi,xt):br===170?e.factory.createMethodSignature(Mo,(et=li==null?void 0:li.name)!==null&&et!==void 0?et:e.factory.createIdentifier(""),li==null?void 0:li.questionToken,Jn,bi,xt):br===171?e.factory.createMethodDeclaration(Mo,void 0,(ki=li==null?void 0:li.name)!==null&&ki!==void 0?ki:e.factory.createIdentifier(""),void 0,Jn,bi,xt,void 0):br===173?e.factory.createConstructorDeclaration(Mo,bi,void 0):br===174?e.factory.createGetAccessorDeclaration(Mo,(Mi=li==null?void 0:li.name)!==null&&Mi!==void 0?Mi:e.factory.createIdentifier(""),bi,xt,void 0):br===175?e.factory.createSetAccessorDeclaration(Mo,(vt=li==null?void 0:li.name)!==null&&vt!==void 0?vt:e.factory.createIdentifier(""),bi,void 0):br===178?e.factory.createIndexSignature(Mo,bi,xt):br===320?e.factory.createJSDocFunctionType(bi,xt):br===181?e.factory.createFunctionTypeNode(Jn,bi,xt!=null?xt:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):br===182?e.factory.createConstructorTypeNode(Mo,Jn,bi,xt!=null?xt:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):br===259?e.factory.createFunctionDeclaration(Mo,void 0,(li==null?void 0:li.name)?e.cast(li.name,e.isIdentifier):e.factory.createIdentifier(""),Jn,bi,xt,void 0):br===215?e.factory.createFunctionExpression(Mo,void 0,(li==null?void 0:li.name)?e.cast(li.name,e.isIdentifier):e.factory.createIdentifier(""),Jn,bi,xt,e.factory.createBlock([])):br===216?e.factory.createArrowFunction(Mo,Jn,bi,xt,void 0,e.factory.createBlock([])):e.Debug.assertNever(br);return Yn&&(Ys.typeArguments=e.factory.createNodeArray(Yn)),Ys}function ir(an,br){if(an.thisParameter)return In(an.thisParameter,br);if(an.declaration){var Fi=e.getJSDocThisTag(an.declaration);if(Fi&&Fi.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,s(zt(Fi.typeExpression),br))}}function Wr(an,br,Fi){var li=br.flags;br.flags&=~512;var et=e.factory.createModifiersFromModifierFlags(e2(an)),ki=Ta(an,br),Mi=pd(an),vt=Mi&&s(Mi,br);return br.flags=li,e.factory.createTypeParameterDeclaration(et,ki,Fi,vt)}function sn(an,br,Fi){Fi===void 0&&(Fi=rc(an));var li=Fi&&s(Fi,br);return Wr(an,br,li)}function In(an,br,Fi,li,et){var ki=e.getDeclarationOfKind(an,166);!ki&&!e.isTransientSymbol(an)&&(ki=e.getDeclarationOfKind(an,343));var Mi=Li(an);ki&&gE(ki)&&(Mi=u_(Mi));var vt=ea(br,Mi,an,br.enclosingDeclaration,li,et),Xr=!(br.flags&8192)&&Fi&&ki&&e.canHaveModifiers(ki)?e.map(e.getModifiers(ki),e.factory.cloneNode):void 0,Jn=ki&&e.isRestParameter(ki)||e.getCheckFlags(an)&32768,Yn=Jn?e.factory.createToken(25):void 0,Di=ki&&ki.name?ki.name.kind===79?e.setEmitFlags(e.factory.cloneNode(ki.name),16777216):ki.name.kind===163?e.setEmitFlags(e.factory.cloneNode(ki.name.right),16777216):Vt(ki.name):e.symbolName(an),bi=ki&&qd(ki)||e.getCheckFlags(an)&16384,Qi=bi?e.factory.createToken(57):void 0,xt=e.factory.createParameterDeclaration(Xr,Yn,Di,Qi,vt,void 0);return br.approximateLength+=e.symbolName(an).length+3,xt;function Vt(Ha){return qt(Ha);function qt(lo){br.tracker.trackSymbol&&e.isComputedPropertyName(lo)&&dd(lo)&&Sn(lo.expression,br.enclosingDeclaration,br);var to=e.visitEachChild(lo,qt,e.nullTransformationContext,void 0,qt);return e.isBindingElement(to)&&(to=e.factory.updateBindingElement(to,to.dotDotDotToken,to.propertyName,to.name,void 0)),e.nodeIsSynthesized(to)||(to=e.factory.cloneNode(to)),e.setEmitFlags(to,1|16777216)}}}function Sn(an,br,Fi){if(!!Fi.tracker.trackSymbol){var li=e.getFirstIdentifier(an),et=is(li,li.escapedText,111551|1048576,void 0,void 0,!0);et&&Fi.tracker.trackSymbol(et,br,111551)}}function Kn(an,br,Fi,li){return br.tracker.trackSymbol(an,br.enclosingDeclaration,Fi),ei(an,br,Fi,li)}function ei(an,br,Fi,li){var et,ki=an.flags&262144;return!ki&&(br.enclosingDeclaration||br.flags&64)&&!(br.flags&134217728)?(et=e.Debug.checkDefined(Mi(an,Fi,!0)),e.Debug.assert(et&&et.length>0)):et=[an],et;function Mi(vt,Xr,Jn){var Yn=pu(vt,br.enclosingDeclaration,Xr,!!(br.flags&128)),Di;if(!Yn||k_(Yn[0],br.enclosingDeclaration,Yn.length===1?Xr:lu(Xr))){var bi=Qf(Yn?Yn[0]:vt,br.enclosingDeclaration,Xr);if(e.length(bi)){Di=bi.map(function(Mo){return e.some(Mo.declarations,gu)?rt(Mo,br):void 0});var Qi=bi.map(function(Mo,Zs){return Zs});Qi.sort(to);for(var xt=Qi.map(function(Mo){return bi[Mo]}),Vt=0,Ha=xt;Vt<Ha.length;Vt++){var qt=Ha[Vt],lo=Mi(qt,lu(Xr),!1);if(lo){if(qt.exports&&qt.exports.get("export=")&&ku(qt.exports.get("export="),vt)){Yn=lo;break}Yn=lo.concat(Yn||[Xf(qt,vt)||vt]);break}}}}if(Yn)return Yn;if(Jn||!(vt.flags&(2048|4096)))return!Jn&&!li&&!!e.forEach(vt.declarations,gu)?void 0:[vt];function to(Mo,Zs){var Ys=Di[Mo],us=Di[Zs];if(Ys&&us){var du=e.pathIsRelative(us);return e.pathIsRelative(Ys)===du?e.moduleSpecifiers.countPathComponents(Ys)-e.moduleSpecifiers.countPathComponents(us):du?-1:1}return 0}}}function Ti(an,br){var Fi,li=Xg(an);return li.flags&(32|64|524288)&&(Fi=e.factory.createNodeArray(e.map(df(an),function(et){return sn(et,br)}))),Fi}function Ri(an,br,Fi){var li;e.Debug.assert(an&&0<=br&&br<an.length);var et=an[br],ki=h(et);if(!((li=Fi.typeParameterSymbolList)===null||li===void 0?void 0:li.has(ki))){(Fi.typeParameterSymbolList||(Fi.typeParameterSymbolList=new e.Set)).add(ki);var Mi;if(Fi.flags&512&&br<an.length-1){var vt=et,Xr=an[br+1];if(e.getCheckFlags(Xr)&1){var Jn=Ev(vt.flags&2097152?wi(vt):vt);Mi=ke(e.map(Jn,function(Yn){return Sd(Yn,Xr.mapper)}),Fi)}else Mi=Ti(et,Fi)}return Mi}}function pt(an){return e.isIndexedAccessTypeNode(an.objectType)?pt(an.objectType):an}function rt(an,br,Fi){var li,et=e.getDeclarationOfKind(an,308);if(!et){var ki=e.firstDefined(an.declarations,function(to){return vl(to,an)});ki&&(et=e.getDeclarationOfKind(ki,308))}if(et&&et.moduleName!==void 0)return et.moduleName;if(!et){if(br.tracker.trackReferencedAmbientModule){var Mi=e.filter(an.declarations,e.isAmbientModule);if(e.length(Mi))for(var vt=0,Xr=Mi;vt<Xr.length;vt++){var Jn=Xr[vt];br.tracker.trackReferencedAmbientModule(Jn,an)}}if(o.test(an.escapedName))return an.escapedName.substring(1,an.escapedName.length-1)}if(!br.enclosingDeclaration||!br.tracker.moduleResolverHost)return o.test(an.escapedName)?an.escapedName.substring(1,an.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(an)).fileName;var Yn=e.getSourceFileOfNode(e.getOriginalNode(br.enclosingDeclaration)),Di=Fi||(Yn==null?void 0:Yn.impliedNodeFormat),bi=lo(Yn.path,Di),Qi=Qt(an),xt=Qi.specifierCache&&Qi.specifierCache.get(bi);if(!xt){var Vt=!!e.outFile(Y),Ha=br.tracker.moduleResolverHost,qt=Vt?vi(vi({},Y),{baseUrl:Ha.getCommonSourceDirectory()}):Y;xt=e.first(e.moduleSpecifiers.getModuleSpecifiers(an,ze,qt,Yn,Ha,{importModuleSpecifierPreference:Vt?"non-relative":"project-relative",importModuleSpecifierEnding:Vt?"minimal":Di===e.ModuleKind.ESNext?"js":void 0},{overrideImportMode:Fi})),(li=Qi.specifierCache)!==null&&li!==void 0||(Qi.specifierCache=new e.Map),Qi.specifierCache.set(bi,xt)}return xt;function lo(to,Mo){return Mo===void 0?to:"".concat(Mo,"|").concat(to)}}function Da(an){var br=e.factory.createIdentifier(e.unescapeLeadingUnderscores(an.escapedName));return an.parent?e.factory.createQualifiedName(Da(an.parent),br):br}function St(an,br,Fi,li){var et,ki,Mi,vt,Xr=Kn(an,br,Fi,!(br.flags&16384)),Jn=Fi===111551;if(e.some(Xr[0].declarations,gu)){var Yn=Xr.length>1?du(Xr,Xr.length-1,1):void 0,Di=li||Ri(Xr,0,br),bi=e.getSourceFileOfNode(e.getOriginalNode(br.enclosingDeclaration)),Qi=e.getSourceFileOfModule(Xr[0]),xt=void 0,Vt=void 0;if((e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.NodeNext)&&(Qi==null?void 0:Qi.impliedNodeFormat)===e.ModuleKind.ESNext&&Qi.impliedNodeFormat!==(bi==null?void 0:bi.impliedNodeFormat)&&(xt=rt(Xr[0],br,e.ModuleKind.ESNext),Vt=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),(ki=(et=br.tracker).reportImportTypeNodeResolutionModeOverride)===null||ki===void 0||ki.call(et)),xt||(xt=rt(Xr[0],br)),!(br.flags&67108864)&&e.getEmitModuleResolutionKind(Y)!==e.ModuleResolutionKind.Classic&&xt.indexOf("/node_modules/")>=0){var Ha=xt;if(e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.NodeNext){var qt=(bi==null?void 0:bi.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;xt=rt(Xr[0],br,qt),xt.indexOf("/node_modules/")>=0?xt=Ha:(Vt=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(qt===e.ModuleKind.ESNext?"import":"require"))]))),(vt=(Mi=br.tracker).reportImportTypeNodeResolutionModeOverride)===null||vt===void 0||vt.call(Mi))}Vt||(br.encounteredError=!0,br.tracker.reportLikelyUnsafeImportRequiredError&&br.tracker.reportLikelyUnsafeImportRequiredError(Ha))}var lo=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(xt));if(br.tracker.trackExternalModuleSymbolOfImportTypeNode&&br.tracker.trackExternalModuleSymbolOfImportTypeNode(Xr[0]),br.approximateLength+=xt.length+10,!Yn||e.isEntityName(Yn)){if(Yn){var to=e.isIdentifier(Yn)?Yn:Yn.right;to.typeArguments=void 0}return e.factory.createImportTypeNode(lo,Vt,Yn,Di,Jn)}else{var Mo=pt(Yn),Zs=Mo.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(lo,Vt,Zs,Di,Jn),Mo.indexType)}}var Ys=du(Xr,Xr.length-1,0);if(e.isIndexedAccessTypeNode(Ys))return Ys;if(Jn)return e.factory.createTypeQueryNode(Ys);var to=e.isIdentifier(Ys)?Ys:Ys.right,us=to.typeArguments;return to.typeArguments=void 0,e.factory.createTypeReferenceNode(Ys,us);function du(qo,yf,up){var lp=yf===qo.length-1?li:Ri(qo,yf,br),Ql=qo[yf],p_=qo[yf-1],Xl;if(yf===0)br.flags|=16777216,Xl=Ze(Ql,br),br.approximateLength+=(Xl?Xl.length:0)+1,br.flags^=16777216;else if(p_&&Ac(p_)){var dn=Ac(p_);e.forEachEntry(dn,function(xi,ri){if(ku(xi,Ql)&&!zd(ri)&&ri!=="export=")return Xl=e.unescapeLeadingUnderscores(ri),!0})}if(Xl===void 0){var kn=e.firstDefined(Ql.declarations,e.getNameOfDeclaration);if(kn&&e.isComputedPropertyName(kn)&&e.isEntityName(kn.expression)){var ii=du(qo,yf-1,up);return e.isEntityName(ii)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(ii)),e.factory.createTypeQueryNode(kn.expression)):ii}Xl=Ze(Ql,br)}if(br.approximateLength+=Xl.length+1,!(br.flags&16)&&p_&&pf(p_)&&pf(p_).get(Ql.escapedName)&&ku(pf(p_).get(Ql.escapedName),Ql)){var ii=du(qo,yf-1,up);return e.isIndexedAccessTypeNode(ii)?e.factory.createIndexedAccessTypeNode(ii,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Xl))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(ii,lp),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Xl)))}var Ln=e.setEmitFlags(e.factory.createIdentifier(Xl,lp),16777216);if(Ln.symbol=Ql,yf>up){var ii=du(qo,yf-1,up);return e.isEntityName(ii)?e.factory.createQualifiedName(ii,Ln):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Ln}}function ba(an,br,Fi){var li=is(br.enclosingDeclaration,an,788968,void 0,an,!1);return li?!(li.flags&262144&&li===Fi.symbol):!1}function Ta(an,br){var Fi,li;if(br.flags&4&&br.typeParameterNames){var et=br.typeParameterNames.get(tc(an));if(et)return et}var ki=wa(an.symbol,br,788968,!0);if(!(ki.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(br.flags&4){for(var Mi=ki.escapedText,vt=((Fi=br.typeParameterNamesByTextNextNameCount)===null||Fi===void 0?void 0:Fi.get(Mi))||0,Xr=Mi;((li=br.typeParameterNamesByText)===null||li===void 0?void 0:li.has(Xr))||ba(Xr,br,an);)vt++,Xr="".concat(Mi,"_").concat(vt);Xr!==Mi&&(ki=e.factory.createIdentifier(Xr,ki.typeArguments)),(br.typeParameterNamesByTextNextNameCount||(br.typeParameterNamesByTextNextNameCount=new e.Map)).set(Mi,vt),(br.typeParameterNames||(br.typeParameterNames=new e.Map)).set(tc(an),ki),(br.typeParameterNamesByText||(br.typeParameterNamesByText=new e.Set)).add(Mi)}return ki}function wa(an,br,Fi,li){var et=Kn(an,br,Fi);return li&&et.length!==1&&!br.encounteredError&&!(br.flags&65536)&&(br.encounteredError=!0),ki(et,et.length-1);function ki(Mi,vt){var Xr=Ri(Mi,vt,br),Jn=Mi[vt];vt===0&&(br.flags|=16777216);var Yn=Ze(Jn,br);vt===0&&(br.flags^=16777216);var Di=e.setEmitFlags(e.factory.createIdentifier(Yn,Xr),16777216);return Di.symbol=Jn,vt>0?e.factory.createQualifiedName(ki(Mi,vt-1),Di):Di}}function So(an,br,Fi){var li=Kn(an,br,Fi);return et(li,li.length-1);function et(ki,Mi){var vt=Ri(ki,Mi,br),Xr=ki[Mi];Mi===0&&(br.flags|=16777216);var Jn=Ze(Xr,br);Mi===0&&(br.flags^=16777216);var Yn=Jn.charCodeAt(0);if(e.isSingleOrDoubleQuote(Yn)&&e.some(Xr.declarations,gu))return e.factory.createStringLiteral(rt(Xr,br));var Di=Yn===35?Jn.length>1&&e.isIdentifierStart(Jn.charCodeAt(1),d):e.isIdentifierStart(Yn,d);if(Mi===0||Di){var bi=e.setEmitFlags(e.factory.createIdentifier(Jn,vt),16777216);return bi.symbol=Xr,Mi>0?e.factory.createPropertyAccessExpression(et(ki,Mi-1),bi):bi}else{Yn===91&&(Jn=Jn.substring(1,Jn.length-1),Yn=Jn.charCodeAt(0));var Qi=void 0;return e.isSingleOrDoubleQuote(Yn)&&!(Xr.flags&8)?Qi=e.factory.createStringLiteral(e.stripQuotes(Jn).replace(/\\./g,function(xt){return xt.substring(1)}),Yn===39):""+ +Jn===Jn&&(Qi=e.factory.createNumericLiteral(+Jn)),Qi||(Qi=e.setEmitFlags(e.factory.createIdentifier(Jn,vt),16777216),Qi.symbol=Xr),e.factory.createElementAccessExpression(et(ki,Mi-1),Qi)}}}function xo(an){var br=e.getNameOfDeclaration(an);return!!br&&e.isStringLiteral(br)}function uo(an){var br=e.getNameOfDeclaration(an);return!!(br&&e.isStringLiteral(br)&&(br.singleQuote||!e.nodeIsSynthesized(br)&&e.startsWith(e.getTextOfNode(br,!1),"'")))}function sa(an,br){var Fi=!!e.length(an.declarations)&&e.every(an.declarations,uo),li=si(an,br,Fi);if(li)return li;var et=e.unescapeLeadingUnderscores(an.escapedName),ki=!!e.length(an.declarations)&&e.every(an.declarations,xo);return e.createPropertyNameNodeForIdentifierOrLiteral(et,e.getEmitScriptTarget(Y),Fi,ki)}function si(an,br,Fi){var li=Qt(an).nameType;if(li){if(li.flags&384){var et=""+li.value;return!e.isIdentifierText(et,e.getEmitScriptTarget(Y))&&!e.isNumericLiteralName(et)?e.factory.createStringLiteral(et,!!Fi):e.isNumericLiteralName(et)&&e.startsWith(et,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+et)):e.createPropertyNameNodeForIdentifierOrLiteral(et,e.getEmitScriptTarget(Y))}if(li.flags&8192)return e.factory.createComputedPropertyName(So(li.symbol,br,111551))}}function Rn(an){var br=vi({},an);return br.typeParameterNames&&(br.typeParameterNames=new e.Map(br.typeParameterNames)),br.typeParameterNamesByText&&(br.typeParameterNamesByText=new e.Set(br.typeParameterNamesByText)),br.typeParameterSymbolList&&(br.typeParameterSymbolList=new e.Set(br.typeParameterSymbolList)),br.tracker=i(br,br.tracker),br}function ut(an,br){return an.declarations&&e.find(an.declarations,function(Fi){return!!e.getEffectiveTypeAnnotationNode(Fi)&&(!br||!!e.findAncestor(Fi,function(li){return li===br}))})}function Pt(an,br){return!(e.getObjectFlags(br)&4)||!e.isTypeReferenceNode(an)||e.length(an.typeArguments)>=ul(br.target.typeParameters)}function ea(an,br,Fi,li,et,ki){if(!ca(br)&&li){var Mi=ut(Fi,li);if(Mi&&!e.isFunctionLikeDeclaration(Mi)&&!e.isGetAccessorDeclaration(Mi)){var vt=e.getEffectiveTypeAnnotationNode(Mi);if(Yi(vt,Mi,br)&&Pt(vt,br)){var Xr=Ma(an,vt,et,ki);if(Xr)return Xr}}}var Jn=an.flags;br.flags&8192&&br.symbol===Fi&&(!an.enclosingDeclaration||e.some(Fi.declarations,function(Di){return e.getSourceFileOfNode(Di)===e.getSourceFileOfNode(an.enclosingDeclaration)}))&&(an.flags|=1048576);var Yn=s(br,an);return an.flags=Jn,Yn}function Yi(an,br,Fi){var li=zt(an);return li===Fi?!0:e.isParameter(br)&&br.questionToken?bu(Fi,524288)===li:!1}function ka(an,br,Fi,li,et){if(!ca(br)&&an.enclosingDeclaration){var ki=Fi.declaration&&e.getEffectiveReturnTypeNode(Fi.declaration);if(!!e.findAncestor(ki,function(Jn){return Jn===an.enclosingDeclaration})&&ki){var Mi=zt(ki),vt=Mi.flags&262144&&Mi.isThisType?ra(Mi,Fi.mapper):Mi;if(vt===br&&Pt(ki,br)){var Xr=Ma(an,ki,li,et);if(Xr)return Xr}}}return s(br,an)}function aa(an,br,Fi){var li,et,ki=!1,Mi=e.getFirstIdentifier(an);if(e.isInJSFile(an)&&(e.isExportsIdentifier(Mi)||e.isModuleExportsAccessExpression(Mi.parent)||e.isQualifiedName(Mi.parent)&&e.isModuleIdentifier(Mi.parent.left)&&e.isExportsIdentifier(Mi.parent.right)))return ki=!0,{introducesError:ki,node:an};var vt=ts(Mi,67108863,!0,!0);if(vt&&(Fl(vt,br.enclosingDeclaration,67108863,!1).accessibility!==0?ki=!0:((et=(li=br.tracker)===null||li===void 0?void 0:li.trackSymbol)===null||et===void 0||et.call(li,vt,br.enclosingDeclaration,67108863),Fi==null||Fi(vt)),e.isIdentifier(an))){var Xr=nt(vt),Jn=vt.flags&262144&&!Pf(Xr.symbol,br.enclosingDeclaration)?Ta(Xr,br):e.factory.cloneNode(an);return Jn.symbol=vt,{introducesError:ki,node:e.setEmitFlags(e.setOriginalNode(Jn,an),16777216)}}return{introducesError:ki,node:an}}function Ma(an,br,Fi,li){B&&B.throwIfCancellationRequested&&B.throwIfCancellationRequested();var et=!1,ki=e.getSourceFileOfNode(br),Mi=e.visitNode(br,vt);if(et)return;return Mi===br?e.setTextRange(e.factory.cloneNode(br),br):Mi;function vt(Xr){if(e.isJSDocAllType(Xr)||Xr.kind===322)return e.factory.createKeywordTypeNode(131);if(e.isJSDocUnknownType(Xr))return e.factory.createKeywordTypeNode(157);if(e.isJSDocNullableType(Xr))return e.factory.createUnionTypeNode([e.visitNode(Xr.type,vt),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(Xr))return e.factory.createUnionTypeNode([e.visitNode(Xr.type,vt),e.factory.createKeywordTypeNode(155)]);if(e.isJSDocNonNullableType(Xr))return e.visitNode(Xr.type,vt);if(e.isJSDocVariadicType(Xr))return e.factory.createArrayTypeNode(e.visitNode(Xr.type,vt));if(e.isJSDocTypeLiteral(Xr))return e.factory.createTypeLiteralNode(e.map(Xr.jsDocPropertyTags,function(qt){var lo=e.isIdentifier(qt.name)?qt.name:qt.name.right,to=Na(zt(Xr),lo.escapedText),Mo=to&&qt.typeExpression&&zt(qt.typeExpression.type)!==to?s(to,an):void 0;return e.factory.createPropertySignature(void 0,lo,qt.isBracketed||qt.typeExpression&&e.isJSDocOptionalType(qt.typeExpression.type)?e.factory.createToken(57):void 0,Mo||qt.typeExpression&&e.visitNode(qt.typeExpression.type,vt)||e.factory.createKeywordTypeNode(131))}));if(e.isTypeReferenceNode(Xr)&&e.isIdentifier(Xr.typeName)&&Xr.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(131),Xr);if((e.isExpressionWithTypeArguments(Xr)||e.isTypeReferenceNode(Xr))&&e.isJSDocIndexSignature(Xr))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(Xr.typeArguments[0],vt))],e.visitNode(Xr.typeArguments[1],vt))]);if(e.isJSDocFunctionType(Xr))if(e.isJSDocConstructSignature(Xr)){var Jn;return e.factory.createConstructorTypeNode(void 0,e.visitNodes(Xr.typeParameters,vt),e.mapDefined(Xr.parameters,function(qt,lo){return qt.name&&e.isIdentifier(qt.name)&&qt.name.escapedText==="new"?(Jn=qt.type,void 0):e.factory.createParameterDeclaration(void 0,xt(qt),Vt(qt,lo),qt.questionToken,e.visitNode(qt.type,vt),void 0)}),e.visitNode(Jn||Xr.type,vt)||e.factory.createKeywordTypeNode(131))}else return e.factory.createFunctionTypeNode(e.visitNodes(Xr.typeParameters,vt),e.map(Xr.parameters,function(qt,lo){return e.factory.createParameterDeclaration(void 0,xt(qt),Vt(qt,lo),qt.questionToken,e.visitNode(qt.type,vt),void 0)}),e.visitNode(Xr.type,vt)||e.factory.createKeywordTypeNode(131));if(e.isTypeReferenceNode(Xr)&&e.isInJSDoc(Xr)&&(!Pt(Xr,zt(Xr))||bb(Xr)||jr===dm(Xr,788968,!0)))return e.setOriginalNode(s(zt(Xr),an),Xr);if(e.isLiteralImportTypeNode(Xr)){var Yn=At(Xr).resolvedSymbol;return e.isInJSDoc(Xr)&&Yn&&(!Xr.isTypeOf&&!(Yn.flags&788968)||!(e.length(Xr.typeArguments)>=ul(df(Yn))))?e.setOriginalNode(s(zt(Xr),an),Xr):e.factory.updateImportTypeNode(Xr,e.factory.updateLiteralTypeNode(Xr.argument,Ha(Xr,Xr.argument.literal)),Xr.assertions,Xr.qualifier,e.visitNodes(Xr.typeArguments,vt,e.isTypeNode),Xr.isTypeOf)}if(e.isEntityName(Xr)||e.isEntityNameExpression(Xr)){var Di=aa(Xr,an,Fi),bi=Di.introducesError,Qi=Di.node;if(et=et||bi,Qi!==Xr)return Qi}return ki&&e.isTupleTypeNode(Xr)&&e.getLineAndCharacterOfPosition(ki,Xr.pos).line===e.getLineAndCharacterOfPosition(ki,Xr.end).line&&e.setEmitFlags(Xr,1),e.visitEachChild(Xr,vt,e.nullTransformationContext);function xt(qt){return qt.dotDotDotToken||(qt.type&&e.isJSDocVariadicType(qt.type)?e.factory.createToken(25):void 0)}function Vt(qt,lo){return qt.name&&e.isIdentifier(qt.name)&&qt.name.escapedText==="this"?"this":xt(qt)?"args":"arg".concat(lo)}function Ha(qt,lo){if(li){if(an.tracker&&an.tracker.moduleResolverHost){var to=$D(qt);if(to){var Mo=e.createGetCanonicalFileName(!!b.useCaseSensitiveFileNames),Zs={getCanonicalFileName:Mo,getCurrentDirectory:function(){return an.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return an.tracker.moduleResolverHost.getCommonSourceDirectory()}},Ys=e.getResolvedExternalModuleName(Zs,to);return e.factory.createStringLiteral(Ys)}}}else if(an.tracker&&an.tracker.trackExternalModuleSymbolOfImportTypeNode){var us=ml(lo,lo,void 0);us&&an.tracker.trackExternalModuleSymbolOfImportTypeNode(us)}return lo}}}function La(an,br,Fi){var li=pa(e.factory.createPropertyDeclaration,171,!0),et=pa(function(En,Ui,Ut,lt){return e.factory.createPropertySignature(En,Ui,Ut,lt)},170,!1),ki=br.enclosingDeclaration,Mi=[],vt=new e.Set,Xr=[],Jn=br;br=vi(vi({},Jn),{usedSymbolNames:new e.Set(Jn.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:vi(vi({},Jn.tracker),{trackSymbol:function(En,Ui,Ut){var lt=Fl(En,Ui,Ut,!1);if(lt.accessibility===0){var Ct=ei(En,br,Ut);En.flags&4||us(Ct[0])}else if(Jn.tracker&&Jn.tracker.trackSymbol)return Jn.tracker.trackSymbol(En,Ui,Ut);return!1}})}),br.tracker=i(br,br.tracker),e.forEachEntry(an,function(En,Ui){var Ut=e.unescapeLeadingUnderscores(Ui);ls(En,Ut)});var Yn=!Fi,Di=an.get("export=");return Di&&an.size>1&&Di.flags&2097152&&(an=e.createSymbolTable(),an.set("export=",Di)),Mo(an),qt(Mi);function bi(En){return!!En&&En.kind===79}function Qi(En){return e.isVariableStatement(En)?e.filter(e.map(En.declarationList.declarations,e.getNameOfDeclaration),bi):e.filter([e.getNameOfDeclaration(En)],bi)}function xt(En){var Ui=e.find(En,e.isExportAssignment),Ut=e.findIndex(En,e.isModuleDeclaration),lt=Ut!==-1?En[Ut]:void 0;if(lt&&Ui&&Ui.isExportEquals&&e.isIdentifier(Ui.expression)&&e.isIdentifier(lt.name)&&e.idText(lt.name)===e.idText(Ui.expression)&&lt.body&&e.isModuleBlock(lt.body)){var Ct=e.filter(En,function(ia){return!!(e.getEffectiveModifierFlags(ia)&1)}),Ra=lt.name,oa=lt.body;if(e.length(Ct)&&(lt=e.factory.updateModuleDeclaration(lt,lt.modifiers,lt.name,oa=e.factory.updateModuleBlock(oa,e.factory.createNodeArray(zn(zn([],lt.body.statements,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(Ct,function(ia){return Qi(ia)}),function(ia){return e.factory.createExportSpecifier(!1,void 0,ia)})),void 0)],!1)))),En=zn(zn(zn([],En.slice(0,Ut),!0),[lt],!1),En.slice(Ut+1),!0)),!e.find(En,function(ia){return ia!==lt&&e.nodeHasName(ia,Ra)})){Mi=[];var Sa=!e.some(oa.statements,function(ia){return e.hasSyntacticModifier(ia,1)||e.isExportAssignment(ia)||e.isExportDeclaration(ia)});e.forEach(oa.statements,function(ia){qo(ia,Sa?1:0)}),En=zn(zn([],e.filter(En,function(ia){return ia!==lt&&ia!==Ui}),!0),Mi,!0)}}return En}function Vt(En){var Ui=e.filter(En,function(da){return e.isExportDeclaration(da)&&!da.moduleSpecifier&&!!da.exportClause&&e.isNamedExports(da.exportClause)});if(e.length(Ui)>1){var Ut=e.filter(En,function(da){return!e.isExportDeclaration(da)||!!da.moduleSpecifier||!da.exportClause});En=zn(zn([],Ut,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(Ui,function(da){return e.cast(da.exportClause,e.isNamedExports).elements})),void 0)],!1)}var lt=e.filter(En,function(da){return e.isExportDeclaration(da)&&!!da.moduleSpecifier&&!!da.exportClause&&e.isNamedExports(da.exportClause)});if(e.length(lt)>1){var Ct=e.group(lt,function(da){return e.isStringLiteral(da.moduleSpecifier)?">"+da.moduleSpecifier.text:">"});if(Ct.length!==lt.length)for(var Ra=function(da){da.length>1&&(En=zn(zn([],e.filter(En,function(Oo){return da.indexOf(Oo)===-1}),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(da,function(Oo){return e.cast(Oo.exportClause,e.isNamedExports).elements})),da[0].moduleSpecifier)],!1))},oa=0,Sa=Ct;oa<Sa.length;oa++){var ia=Sa[oa];Ra(ia)}}return En}function Ha(En){var Ui=e.findIndex(En,function(Ct){return e.isExportDeclaration(Ct)&&!Ct.moduleSpecifier&&!Ct.assertClause&&!!Ct.exportClause&&e.isNamedExports(Ct.exportClause)});if(Ui>=0){var Ut=En[Ui],lt=e.mapDefined(Ut.exportClause.elements,function(Ct){if(!Ct.propertyName){var Ra=e.indicesOf(En),oa=e.filter(Ra,function(Oo){return e.nodeHasName(En[Oo],Ct.name)});if(e.length(oa)&&e.every(oa,function(Oo){return e.canHaveExportModifier(En[Oo])})){for(var Sa=0,ia=oa;Sa<ia.length;Sa++){var da=ia[Sa];En[da]=lo(En[da])}return}}return Ct});e.length(lt)?En[Ui]=e.factory.updateExportDeclaration(Ut,Ut.modifiers,Ut.isTypeOnly,e.factory.updateNamedExports(Ut.exportClause,lt),Ut.moduleSpecifier,Ut.assertClause):e.orderedRemoveItemAt(En,Ui)}return En}function qt(En){return En=xt(En),En=Vt(En),En=Ha(En),ki&&(e.isSourceFile(ki)&&e.isExternalOrCommonJsModule(ki)||e.isModuleDeclaration(ki))&&(!e.some(En,e.isExternalModuleIndicator)||!e.hasScopeMarker(En)&&e.some(En,e.needsScopeMarker))&&En.push(e.createEmptyExports(e.factory)),En}function lo(En){var Ui=(e.getEffectiveModifierFlags(En)|1)&~2;return e.factory.updateModifiers(En,Ui)}function to(En){var Ui=e.getEffectiveModifierFlags(En)&~1;return e.factory.updateModifiers(En,Ui)}function Mo(En,Ui,Ut){Ui||Xr.push(new e.Map),En.forEach(function(lt){Zs(lt,!1,!!Ut)}),Ui||(Xr[Xr.length-1].forEach(function(lt){Zs(lt,!0,!!Ut)}),Xr.pop())}function Zs(En,Ui,Ut){var lt=Ya(En);if(!vt.has(h(lt))){vt.add(h(lt));var Ct=!Ui;if(Ct||!!e.length(En.declarations)&&e.some(En.declarations,function(oa){return!!e.findAncestor(oa,function(Sa){return Sa===ki})})){var Ra=br;br=Rn(br),Ys(En,Ui,Ut),br.reportedDiagnostic&&(Jn.reportedDiagnostic=br.reportedDiagnostic),br=Ra}}}function Ys(En,Ui,Ut){var lt,Ct,Ra,oa,Sa=e.unescapeLeadingUnderscores(En.escapedName),ia=En.escapedName==="default";if(Ui&&!(br.flags&131072)&&e.isStringANonContextualKeyword(Sa)&&!ia){br.encounteredError=!0;return}var da=ia&&!!(En.flags&-113||En.flags&16&&e.length(vo(Li(En))))&&!(En.flags&2097152),Oo=!da&&!Ui&&e.isStringANonContextualKeyword(Sa)&&!ia;(da||Oo)&&(Ui=!0);var oo=(Ui?0:1)|(ia&&!da?1024:0),as=En.flags&1536&&En.flags&(2|1|4)&&En.escapedName!=="export=",Go=as&&Bt(Li(En),En);if((En.flags&(16|8192)||Go)&&dn(Li(En),En,ls(En,Sa),oo),En.flags&524288&&yf(En,Sa,oo),En.flags&(2|1|4)&&En.escapedName!=="export="&&!(En.flags&4194304)&&!(En.flags&32)&&!(En.flags&8192)&&!Go)if(Ut){var fs=ht(En);fs&&(Oo=!1,da=!1)}else{var Is=Li(En),Uc=ls(En,Sa);if(!(En.flags&16)&&Bt(Is,En))dn(Is,En,Uc,oo);else{var Su=En.flags&2?sv(En)?2:1:((lt=En.parent)===null||lt===void 0?void 0:lt.valueDeclaration)&&e.isSourceFile((Ct=En.parent)===null||Ct===void 0?void 0:Ct.valueDeclaration)?2:void 0,dl=da||!(En.flags&4)?Uc:Dc(Uc,En),zf=En.declarations&&e.find(En.declarations,function(kd){return e.isVariableDeclaration(kd)});zf&&e.isVariableDeclarationList(zf.parent)&&zf.parent.declarations.length===1&&(zf=zf.parent.parent);var hf=(Ra=En.declarations)===null||Ra===void 0?void 0:Ra.find(e.isPropertyAccessExpression);if(hf&&e.isBinaryExpression(hf.parent)&&e.isIdentifier(hf.parent.right)&&((oa=Is.symbol)===null||oa===void 0?void 0:oa.valueDeclaration)&&e.isSourceFile(Is.symbol.valueDeclaration)){var _g=Uc===hf.parent.right.escapedText?void 0:hf.parent.right;qo(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,_g,Uc)])),0),br.tracker.trackSymbol(Is.symbol,br.enclosingDeclaration,111551)}else{var fp=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(dl,void 0,ea(br,Is,En,ki,us,Fi))],Su)),zf);qo(fp,dl!==Uc?oo&~1:oo),dl!==Uc&&!Ui&&(qo(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,dl,Uc)])),0),Oo=!1,da=!1)}}}if(En.flags&384&&Xl(En,Sa,oo),En.flags&32&&(En.flags&4&&En.valueDeclaration&&e.isBinaryExpression(En.valueDeclaration.parent)&&e.isClassExpression(En.valueDeclaration.parent.right)?Wi(En,ls(En,Sa),oo):ri(En,ls(En,Sa),oo)),(En.flags&(512|1024)&&(!as||Ql(En))||Go)&&p_(En,Sa,oo),En.flags&64&&!(En.flags&32)&&up(En,Sa,oo),En.flags&2097152&&Wi(En,ls(En,Sa),oo),En.flags&4&&En.escapedName==="export="&&ht(En),En.flags&8388608&&En.declarations)for(var _p=0,j_=En.declarations;_p<j_.length;_p++){var dg=j_[_p],bc=Ms(dg,dg.moduleSpecifier);!bc||qo(e.factory.createExportDeclaration(void 0,!1,void 0,e.factory.createStringLiteral(rt(bc,br))),0)}da?qo(e.factory.createExportAssignment(void 0,!1,e.factory.createIdentifier(ls(En,Sa))),0):Oo&&qo(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ls(En,Sa),Sa)])),0)}function us(En){if(!e.some(En.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(Xr[Xr.length-1]),Dc(e.unescapeLeadingUnderscores(En.escapedName),En);var Ui=!!(En.flags&2097152)&&!e.some(En.declarations,function(Ut){return!!e.findAncestor(Ut,e.isExportDeclaration)||e.isNamespaceExport(Ut)||e.isImportEqualsDeclaration(Ut)&&!e.isExternalModuleReference(Ut.moduleReference)});Xr[Ui?0:Xr.length-1].set(h(En),En)}}function du(En){return e.isSourceFile(En)&&(e.isExternalOrCommonJsModule(En)||e.isJsonSourceFile(En))||e.isAmbientModule(En)&&!e.isGlobalScopeAugmentation(En)}function qo(En,Ui){if(e.canHaveModifiers(En)){var Ut=0,lt=br.enclosingDeclaration&&(e.isJSDocTypeAlias(br.enclosingDeclaration)?e.getSourceFileOfNode(br.enclosingDeclaration):br.enclosingDeclaration);Ui&1&&lt&&(du(lt)||e.isModuleDeclaration(lt))&&e.canHaveExportModifier(En)&&(Ut|=1),Yn&&!(Ut&1)&&(!lt||!(lt.flags&16777216))&&(e.isEnumDeclaration(En)||e.isVariableStatement(En)||e.isFunctionDeclaration(En)||e.isClassDeclaration(En)||e.isModuleDeclaration(En))&&(Ut|=2),Ui&1024&&(e.isClassDeclaration(En)||e.isInterfaceDeclaration(En)||e.isFunctionDeclaration(En))&&(Ut|=1024),Ut&&(En=e.factory.updateModifiers(En,Ut|e.getEffectiveModifierFlags(En)))}Mi.push(En)}function yf(En,Ui,Ut){var lt,Ct=Rm(En),Ra=Qt(En).typeParameters,oa=e.map(Ra,function(as){return sn(as,br)}),Sa=(lt=En.declarations)===null||lt===void 0?void 0:lt.find(e.isJSDocTypeAlias),ia=e.getTextOfJSDocComment(Sa?Sa.comment||Sa.parent.comment:void 0),da=br.flags;br.flags|=8388608;var Oo=br.enclosingDeclaration;br.enclosingDeclaration=Sa;var oo=Sa&&Sa.typeExpression&&e.isJSDocTypeExpression(Sa.typeExpression)&&Ma(br,Sa.typeExpression.type,us,Fi)||s(Ct,br);qo(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,ls(En,Ui),oa,oo),ia?[{kind:3,text:`*
  242. * `+ia.replace(/\n/g,`
  243. * `)+`
  244. `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ut),br.flags=da,br.enclosingDeclaration=Oo}function up(En,Ui,Ut){var lt=_u(En),Ct=df(En),Ra=e.map(Ct,function(Go){return sn(Go,br)}),oa=nu(lt),Sa=e.length(oa)?ro(oa):void 0,ia=e.flatMap(vo(lt),function(Go){return ua(Go,Sa)}),da=ja(0,lt,Sa,176),Oo=ja(1,lt,Sa,177),oo=yo(lt,Sa),as=e.length(oa)?[e.factory.createHeritageClause(94,e.mapDefined(oa,function(Go){return Jo(Go,111551)}))]:void 0;qo(e.factory.createInterfaceDeclaration(void 0,ls(En,Ui),Ra,as,zn(zn(zn(zn([],oo,!0),Oo,!0),da,!0),ia,!0)),Ut)}function lp(En){return En.exports?e.filter(e.arrayFrom(En.exports.values()),Ln):[]}function Ql(En){return e.every(lp(En),function(Ui){return!(Kt(ss(Ui))&111551)})}function p_(En,Ui,Ut){var lt=lp(En),Ct=e.arrayToMultiMap(lt,function(Oo){return Oo.parent&&Oo.parent===En?"real":"merged"}),Ra=Ct.get("real")||e.emptyArray,oa=Ct.get("merged")||e.emptyArray;if(e.length(Ra)){var Sa=ls(En,Ui);ii(Ra,Sa,Ut,!!(En.flags&(16|67108864)))}if(e.length(oa)){var ia=e.getSourceFileOfNode(br.enclosingDeclaration),Sa=ls(En,Ui),da=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(oa,function(oo){return oo.escapedName!=="export="}),function(oo){var as,Go,fs=e.unescapeLeadingUnderscores(oo.escapedName),Is=ls(oo,fs),Uc=oo.declarations&&Mu(oo);if(ia&&(Uc?ia!==e.getSourceFileOfNode(Uc):!e.some(oo.declarations,function(zf){return e.getSourceFileOfNode(zf)===ia}))){(Go=(as=br.tracker)===null||as===void 0?void 0:as.reportNonlocalAugmentation)===null||Go===void 0||Go.call(as,ia,En,oo);return}var Su=Uc&&Tf(Uc,!0);us(Su||oo);var dl=Su?ls(Su,e.unescapeLeadingUnderscores(Su.escapedName)):Is;return e.factory.createExportSpecifier(!1,fs===dl?void 0:dl,fs)})))]);qo(e.factory.createModuleDeclaration(void 0,e.factory.createIdentifier(Sa),da,16),0)}}function Xl(En,Ui,Ut){qo(e.factory.createEnumDeclaration(e.factory.createModifiersFromModifierFlags(SD(En)?2048:0),ls(En,Ui),e.map(e.filter(vo(Li(En)),function(lt){return!!(lt.flags&8)}),function(lt){var Ct=lt.declarations&&lt.declarations[0]&&e.isEnumMember(lt.declarations[0])?XD(lt.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(lt.escapedName),Ct===void 0?void 0:typeof Ct=="string"?e.factory.createStringLiteral(Ct):e.factory.createNumericLiteral(Ct))})),Ut)}function dn(En,Ui,Ut,lt){for(var Ct=_a(En,0),Ra=0,oa=Ct;Ra<oa.length;Ra++){var Sa=oa[Ra],ia=ar(Sa,259,br,{name:e.factory.createIdentifier(Ut),privateSymbolVisitor:us,bundledImports:Fi});qo(e.setTextRange(ia,kn(Sa)),lt)}if(!(Ui.flags&(512|1024)&&!!Ui.exports&&!!Ui.exports.size)){var da=e.filter(vo(En),Ln);ii(da,Ut,lt,!0)}}function kn(En){if(En.declaration&&En.declaration.parent){if(e.isBinaryExpression(En.declaration.parent)&&e.getAssignmentDeclarationKind(En.declaration.parent)===5)return En.declaration.parent;if(e.isVariableDeclaration(En.declaration.parent)&&En.declaration.parent.parent)return En.declaration.parent.parent}return En.declaration}function ii(En,Ui,Ut,lt){if(e.length(En)){var Ct=e.arrayToMultiMap(En,function(fs){return!e.length(fs.declarations)||e.some(fs.declarations,function(Is){return e.getSourceFileOfNode(Is)===e.getSourceFileOfNode(br.enclosingDeclaration)})?"local":"remote"}),Ra=Ct.get("local")||e.emptyArray,oa=e.parseNodeFactory.createModuleDeclaration(void 0,e.factory.createIdentifier(Ui),e.factory.createModuleBlock([]),16);e.setParent(oa,ki),oa.locals=e.createSymbolTable(En),oa.symbol=En[0].parent;var Sa=Mi;Mi=[];var ia=Yn;Yn=!1;var da=vi(vi({},br),{enclosingDeclaration:oa}),Oo=br;br=da,Mo(e.createSymbolTable(Ra),lt,!0),br=Oo,Yn=ia;var oo=Mi;Mi=Sa;var as=e.map(oo,function(fs){return e.isExportAssignment(fs)&&!fs.isExportEquals&&e.isIdentifier(fs.expression)?e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,fs.expression,e.factory.createIdentifier("default"))])):fs}),Go=e.every(as,function(fs){return e.hasSyntacticModifier(fs,1)})?e.map(as,to):as;oa=e.factory.updateModuleDeclaration(oa,oa.modifiers,oa.name,e.factory.createModuleBlock(Go)),qo(oa,Ut)}}function Ln(En){return!!(En.flags&(788968|1920|2097152))||!(En.flags&4194304||En.escapedName==="prototype"||En.valueDeclaration&&e.isStatic(En.valueDeclaration)&&e.isClassLike(En.valueDeclaration.parent))}function xi(En){var Ui=e.mapDefined(En,function(Ut){var lt,Ct=br.enclosingDeclaration;br.enclosingDeclaration=Ut;var Ra=Ut.expression;if(e.isEntityNameExpression(Ra)){if(e.isIdentifier(Ra)&&e.idText(Ra)==="")return Sa(void 0);var oa=void 0;if(lt=aa(Ra,br,us),oa=lt.introducesError,Ra=lt.node,oa)return Sa(void 0)}return Sa(e.factory.createExpressionWithTypeArguments(Ra,e.map(Ut.typeArguments,function(ia){return Ma(br,ia,us,Fi)||s(zt(ia),br)})));function Sa(ia){return br.enclosingDeclaration=Ct,ia}});if(Ui.length===En.length)return Ui}function ri(En,Ui,Ut){var lt,Ct,Ra=(lt=En.declarations)===null||lt===void 0?void 0:lt.find(e.isClassLike),oa=br.enclosingDeclaration;br.enclosingDeclaration=Ra||oa;var Sa=df(En),ia=e.map(Sa,function(bc){return sn(bc,br)}),da=_u(En),Oo=nu(da),oo=Ra&&e.getEffectiveImplementsTypeNodes(Ra),as=oo&&xi(oo)||e.mapDefined(kv(da),Bo),Go=Li(En),fs=!!((Ct=Go.symbol)===null||Ct===void 0?void 0:Ct.valueDeclaration)&&e.isClassLike(Go.symbol.valueDeclaration),Is=fs?cc(Go):Te,Uc=zn(zn([],e.length(Oo)?[e.factory.createHeritageClause(94,e.map(Oo,function(bc){return qa(bc,Is,Ui)}))]:[],!0),e.length(as)?[e.factory.createHeritageClause(117,as)]:[],!0),Su=tI(da,Oo,vo(da)),dl=e.filter(Su,function(bc){var kd=bc.valueDeclaration;return!!kd&&!(e.isNamedDeclaration(kd)&&e.isPrivateIdentifier(kd.name))}),zf=e.some(Su,function(bc){var kd=bc.valueDeclaration;return!!kd&&e.isNamedDeclaration(kd)&&e.isPrivateIdentifier(kd.name)}),hf=zf?[e.factory.createPropertyDeclaration(void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,_g=e.flatMap(dl,function(bc){return li(bc,!1,Oo[0])}),fp=e.flatMap(e.filter(vo(Go),function(bc){return!(bc.flags&4194304)&&bc.escapedName!=="prototype"&&!Ln(bc)}),function(bc){return li(bc,!0,Is)}),_p=!fs&&!!En.valueDeclaration&&e.isInJSFile(En.valueDeclaration)&&!e.some(_a(Go,1)),j_=_p?[e.factory.createConstructorDeclaration(e.factory.createModifiersFromModifierFlags(8),[],void 0)]:ja(1,Go,Is,173),dg=yo(da,Oo[0]);br.enclosingDeclaration=oa,qo(e.setTextRange(e.factory.createClassDeclaration(void 0,Ui,ia,Uc,zn(zn(zn(zn(zn([],dg,!0),fp,!0),j_,!0),_g,!0),hf,!0)),En.declarations&&e.filter(En.declarations,function(bc){return e.isClassDeclaration(bc)||e.isClassExpression(bc)})[0]),Ut)}function pi(En){return e.firstDefined(En,function(Ui){if(e.isImportSpecifier(Ui)||e.isExportSpecifier(Ui))return e.idText(Ui.propertyName||Ui.name);if(e.isBinaryExpression(Ui)||e.isExportAssignment(Ui)){var Ut=e.isExportAssignment(Ui)?Ui.expression:Ui.right;if(e.isPropertyAccessExpression(Ut))return e.idText(Ut.name)}if(nf(Ui)){var lt=e.getNameOfDeclaration(Ui);if(lt&&e.isIdentifier(lt))return e.idText(lt)}})}function Wi(En,Ui,Ut){var lt,Ct,Ra,oa,Sa,ia=Mu(En);if(!ia)return e.Debug.fail();var da=Ya(Tf(ia,!0));if(!!da){var Oo=e.isShorthandAmbientModuleSymbol(da)&&pi(En.declarations)||e.unescapeLeadingUnderscores(da.escapedName);Oo==="export="&&(e.getESModuleInterop(Y)||Y.allowSyntheticDefaultImports)&&(Oo="default");var oo=ls(da,Oo);switch(us(da),ia.kind){case 205:if(((Ct=(lt=ia.parent)===null||lt===void 0?void 0:lt.parent)===null||Ct===void 0?void 0:Ct.kind)===257){var as=rt(da.parent||da,br),Go=ia.propertyName;qo(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Go&&e.isIdentifier(Go)?e.factory.createIdentifier(e.idText(Go)):void 0,e.factory.createIdentifier(Ui))])),e.factory.createStringLiteral(as),void 0),0);break}e.Debug.failBadSyntaxKind(((Ra=ia.parent)===null||Ra===void 0?void 0:Ra.parent)||ia,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((Sa=(oa=ia.parent)===null||oa===void 0?void 0:oa.parent)===null||Sa===void 0?void 0:Sa.kind)===223&&yt(e.unescapeLeadingUnderscores(En.escapedName),oo);break;case 257:if(e.isPropertyAccessExpression(ia.initializer)){var fs=ia.initializer,Is=e.factory.createUniqueName(Ui),Uc=rt(da.parent||da,br);qo(e.factory.createImportEqualsDeclaration(void 0,!1,Is,e.factory.createExternalModuleReference(e.factory.createStringLiteral(Uc))),0),qo(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(Ui),e.factory.createQualifiedName(Is,fs.name)),Ut);break}case 268:if(da.escapedName==="export="&&e.some(da.declarations,e.isJsonSourceFile)){ht(En);break}var Su=!(da.flags&512)&&!e.isVariableDeclaration(ia);qo(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(Ui),Su?wa(da,br,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(rt(da,br)))),Su?Ut:0);break;case 267:qo(e.factory.createNamespaceExportDeclaration(e.idText(ia.name)),0);break;case 270:qo(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(Ui),void 0),e.factory.createStringLiteral(rt(da.parent||da,br)),void 0),0);break;case 271:qo(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Ui))),e.factory.createStringLiteral(rt(da,br)),void 0),0);break;case 277:qo(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(Ui)),e.factory.createStringLiteral(rt(da,br))),0);break;case 273:qo(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Ui!==Oo?e.factory.createIdentifier(Oo):void 0,e.factory.createIdentifier(Ui))])),e.factory.createStringLiteral(rt(da.parent||da,br)),void 0),0);break;case 278:var dl=ia.parent.parent.moduleSpecifier;yt(e.unescapeLeadingUnderscores(En.escapedName),dl?Oo:oo,dl&&e.isStringLiteralLike(dl)?e.factory.createStringLiteral(dl.text):void 0);break;case 274:ht(En);break;case 223:case 208:case 209:En.escapedName==="default"||En.escapedName==="export="?ht(En):yt(Ui,oo);break;default:return e.Debug.failBadSyntaxKind(ia,"Unhandled alias declaration kind in symbol serializer!")}}}function yt(En,Ui,Ut){qo(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,En!==Ui?Ui:void 0,En)]),Ut),0)}function ht(En){if(En.flags&4194304)return!1;var Ui=e.unescapeLeadingUnderscores(En.escapedName),Ut=Ui==="export=",lt=Ui==="default",Ct=Ut||lt,Ra=En.declarations&&Mu(En),oa=Ra&&Tf(Ra,!0);if(oa&&e.length(oa.declarations)&&e.some(oa.declarations,function(fs){return e.getSourceFileOfNode(fs)===e.getSourceFileOfNode(ki)})){var Sa=Ra&&(e.isExportAssignment(Ra)||e.isBinaryExpression(Ra)?e.getExportAssignmentExpression(Ra):e.getPropertyAssignmentAliasLikeExpression(Ra)),ia=Sa&&e.isEntityNameExpression(Sa)?yI(Sa):void 0,da=ia&&ts(ia,67108863,!0,!0,ki);(da||oa)&&us(da||oa);var Oo=br.tracker.trackSymbol;if(br.tracker.trackSymbol=function(){return!1},Ct)Mi.push(e.factory.createExportAssignment(void 0,Ut,So(oa,br,67108863)));else if(ia===Sa&&ia)yt(Ui,e.idText(ia));else if(Sa&&e.isClassExpression(Sa))yt(Ui,ls(oa,e.symbolName(oa)));else{var oo=Dc(Ui,En);qo(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(oo),wa(oa,br,67108863,!1)),0),yt(Ui,oo)}return br.tracker.trackSymbol=Oo,!0}else{var oo=Dc(Ui,En),as=tu(Li(Ya(En)));if(Bt(as,En))dn(as,En,oo,Ct?0:1);else{var Go=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(oo,void 0,ea(br,as,En,ki,us,Fi))],2));qo(Go,oa&&oa.flags&4&&oa.escapedName==="export="?2:Ui===oo?1:0)}return Ct?(Mi.push(e.factory.createExportAssignment(void 0,Ut,e.factory.createIdentifier(oo))),!0):Ui!==oo?(yt(Ui,oo),!0):!1}}function Bt(En,Ui){var Ut=e.getSourceFileOfNode(br.enclosingDeclaration);return e.getObjectFlags(En)&(16|32)&&!e.length(hs(En))&&!od(En)&&!!(e.length(e.filter(vo(En),Ln))||e.length(_a(En,0)))&&!e.length(_a(En,1))&&!ut(Ui,ki)&&!(En.symbol&&e.some(En.symbol.declarations,function(lt){return e.getSourceFileOfNode(lt)!==Ut}))&&!e.some(vo(En),function(lt){return zd(lt.escapedName)})&&!e.some(vo(En),function(lt){return e.some(lt.declarations,function(Ct){return e.getSourceFileOfNode(Ct)!==Ut})})&&e.every(vo(En),function(lt){return e.isIdentifierText(e.symbolName(lt),d)})}function pa(En,Ui,Ut){return function(Ct,Ra,oa){var Sa,ia,da,Oo,oo,as=e.getDeclarationModifierFlagsFromSymbol(Ct),Go=!!(as&8);if(Ra&&Ct.flags&(788968|1920|2097152))return[];if(Ct.flags&4194304||oa&&Zt(oa,Ct.escapedName)&&_l(Zt(oa,Ct.escapedName))===_l(Ct)&&(Ct.flags&16777216)==(Zt(oa,Ct.escapedName).flags&16777216)&&Lf(Li(Ct),Na(oa,Ct.escapedName)))return[];var fs=as&~512|(Ra?32:0),Is=sa(Ct,br),Uc=(Sa=Ct.declarations)===null||Sa===void 0?void 0:Sa.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(Ct.flags&98304&&Ut){var Su=[];if(Ct.flags&65536&&Su.push(e.setTextRange(e.factory.createSetAccessorDeclaration(e.factory.createModifiersFromModifierFlags(fs),Is,[e.factory.createParameterDeclaration(void 0,void 0,"arg",void 0,Go?void 0:ea(br,Li(Ct),Ct,ki,us,Fi))],void 0),((ia=Ct.declarations)===null||ia===void 0?void 0:ia.find(e.isSetAccessor))||Uc)),Ct.flags&32768){var dl=as&8;Su.push(e.setTextRange(e.factory.createGetAccessorDeclaration(e.factory.createModifiersFromModifierFlags(fs),Is,[],dl?void 0:ea(br,Li(Ct),Ct,ki,us,Fi),void 0),((da=Ct.declarations)===null||da===void 0?void 0:da.find(e.isGetAccessor))||Uc))}return Su}else if(Ct.flags&(4|3|98304))return e.setTextRange(En(e.factory.createModifiersFromModifierFlags((_l(Ct)?64:0)|fs),Is,Ct.flags&16777216?e.factory.createToken(57):void 0,Go?void 0:ea(br,Rs(Ct),Ct,ki,us,Fi),void 0),((Oo=Ct.declarations)===null||Oo===void 0?void 0:Oo.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||Uc);if(Ct.flags&(8192|16)){var zf=Li(Ct),hf=_a(zf,0);if(fs&8)return e.setTextRange(En(e.factory.createModifiersFromModifierFlags((_l(Ct)?64:0)|fs),Is,Ct.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((oo=Ct.declarations)===null||oo===void 0?void 0:oo.find(e.isFunctionLikeDeclaration))||hf[0]&&hf[0].declaration||Ct.declarations&&Ct.declarations[0]);for(var _g=[],fp=0,_p=hf;fp<_p.length;fp++){var j_=_p[fp],dg=ar(j_,Ui,br,{name:Is,questionToken:Ct.flags&16777216?e.factory.createToken(57):void 0,modifiers:fs?e.factory.createModifiersFromModifierFlags(fs):void 0}),bc=j_.declaration&&e.isPrototypePropertyAssignment(j_.declaration.parent)?j_.declaration.parent:j_.declaration;_g.push(e.setTextRange(dg,bc))}return _g}return e.Debug.fail("Unhandled class member kind! ".concat(Ct.__debugFlags||Ct.flags))}}function ua(En,Ui){return et(En,!1,Ui)}function ja(En,Ui,Ut,lt){var Ct=_a(Ui,En);if(En===1){if(!Ut&&e.every(Ct,function(Su){return e.length(Su.parameters)===0}))return[];if(Ut){var Ra=_a(Ut,1);if(!e.length(Ra)&&e.every(Ct,function(Su){return e.length(Su.parameters)===0}))return[];if(Ra.length===Ct.length){for(var oa=!1,Sa=0;Sa<Ra.length;Sa++)if(!oy(Ct[Sa],Ra[Sa],!1,!1,!0,Xm)){oa=!0;break}if(!oa)return[]}}for(var ia=0,da=0,Oo=Ct;da<Oo.length;da++){var oo=Oo[da];oo.declaration&&(ia|=e.getSelectedEffectiveModifierFlags(oo.declaration,8|16))}if(ia)return[e.setTextRange(e.factory.createConstructorDeclaration(e.factory.createModifiersFromModifierFlags(ia),[],void 0),Ct[0].declaration)]}for(var as=[],Go=0,fs=Ct;Go<fs.length;Go++){var Is=fs[Go],Uc=ar(Is,lt,br);as.push(e.setTextRange(Uc,Is.declaration))}return as}function yo(En,Ui){for(var Ut=[],lt=0,Ct=hs(En);lt<Ct.length;lt++){var Ra=Ct[lt];if(Ui){var oa=Wu(Ui,Ra.keyType);if(oa&&Lf(Ra.type,oa.type))continue}Ut.push($e(Ra,br,void 0))}return Ut}function qa(En,Ui,Ut){var lt=Jo(En,111551);if(lt)return lt;var Ct=Dc("".concat(Ut,"_base")),Ra=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ct,void 0,s(Ui,br))],2));return qo(Ra,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(Ct),void 0)}function Jo(En,Ui){var Ut,lt;if(En.target&&Au(En.target.symbol,ki,Ui)?(Ut=e.map(No(En),function(Ct){return s(Ct,br)}),lt=So(En.target.symbol,br,788968)):En.symbol&&Au(En.symbol,ki,Ui)&&(lt=So(En.symbol,br,788968)),lt)return e.factory.createExpressionWithTypeArguments(lt,Ut)}function Bo(En){var Ui=Jo(En,788968);if(Ui)return Ui;if(En.symbol)return e.factory.createExpressionWithTypeArguments(So(En.symbol,br,788968),void 0)}function Dc(En,Ui){var Ut,lt,Ct=Ui?h(Ui):void 0;if(Ct&&br.remappedSymbolNames.has(Ct))return br.remappedSymbolNames.get(Ct);Ui&&(En=Ro(Ui,En));for(var Ra=0,oa=En;(Ut=br.usedSymbolNames)===null||Ut===void 0?void 0:Ut.has(En);)Ra++,En="".concat(oa,"_").concat(Ra);return(lt=br.usedSymbolNames)===null||lt===void 0||lt.add(En),Ct&&br.remappedSymbolNames.set(Ct,En),En}function Ro(En,Ui){if(Ui==="default"||Ui==="__class"||Ui==="__function"){var Ut=br.flags;br.flags|=16777216;var lt=Ze(En,br);br.flags=Ut,Ui=lt.length>0&&e.isSingleOrDoubleQuote(lt.charCodeAt(0))?e.stripQuotes(lt):lt}return Ui==="default"?Ui="_default":Ui==="export="&&(Ui="_exports"),Ui=e.isIdentifierText(Ui,d)&&!e.isStringANonContextualKeyword(Ui)?Ui:"_"+Ui.replace(/[^a-zA-Z0-9]/g,"_"),Ui}function ls(En,Ui){var Ut=h(En);return br.remappedSymbolNames.has(Ut)?br.remappedSymbolNames.get(Ut):(Ui=Ro(En,Ui),br.remappedSymbolNames.set(Ut,Ui),Ui)}}}function yc(r,n,i,a){return i===void 0&&(i=16384),a?s(a).getText():e.usingSingleLineStringWriter(s);function s(l){var g=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(129):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&Cr.typeToTypeNode(r.type,n,Ju(i)|70221824|512)),W=e.createPrinter({removeComments:!0}),ce=n&&e.getSourceFileOfNode(n);return W.writeNode(4,g,ce,l),l}}function A_(r){for(var n=[],i=0,a=0;a<r.length;a++){var s=r[a];if(i|=s.flags,!(s.flags&98304)){if(s.flags&(512|1024)){var l=s.flags&512?Pn:bg(s);if(l.flags&1048576){var g=l.types.length;if(a+g<=r.length&&Jc(r[a+g-1])===Jc(l.types[g-1])){n.push(l),a+=g-1;continue}}}n.push(s)}}return i&65536&&n.push(bn),i&32768&&n.push(zr),n||r}function e_(r){return r===8?"private":r===16?"protected":"public"}function N_(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var n=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(n.kind===262)return zi(n)}}function Tp(r){return r&&r.parent&&r.parent.kind===265&&e.isExternalModuleAugmentation(r.parent.parent)}function r_(r){return r.kind===308||e.isAmbientModule(r)}function v(r,n){var i=Qt(r).nameType;if(i){if(i.flags&384){var a=""+i.value;return!e.isIdentifierText(a,e.getEmitScriptTarget(Y))&&!e.isNumericLiteralName(a)?'"'.concat(e.escapeString(a,34),'"'):e.isNumericLiteralName(a)&&e.startsWith(a,"-")?"[".concat(a,"]"):a}if(i.flags&8192)return"[".concat(Ze(i.symbol,n),"]")}}function Ze(r,n){if(n&&r.escapedName==="default"&&!(n.flags&16384)&&(!(n.flags&16777216)||!r.declarations||n.enclosingDeclaration&&e.findAncestor(r.declarations[0],r_)!==e.findAncestor(n.enclosingDeclaration,r_)))return"default";if(r.declarations&&r.declarations.length){var i=e.firstDefined(r.declarations,function(W){return e.getNameOfDeclaration(W)?W:void 0}),a=i&&e.getNameOfDeclaration(i);if(i&&a){if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i))return e.symbolName(r);if(e.isComputedPropertyName(a)&&!(e.getCheckFlags(r)&4096)){var s=Qt(r).nameType;if(s&&s.flags&384){var l=v(r,n);if(l!==void 0)return l}}return e.declarationNameToString(a)}if(i||(i=r.declarations[0]),i.parent&&i.parent.kind===257)return e.declarationNameToString(i.parent.name);switch(i.kind){case 228:case 215:case 216:return n&&!n.encounteredError&&!(n.flags&131072)&&(n.encounteredError=!0),i.kind===228?"(Anonymous class)":"(Anonymous function)"}}var g=v(r,n);return g!==void 0?g:e.symbolName(r)}function _n(r){if(r){var n=At(r);return n.isVisible===void 0&&(n.isVisible=!!i()),n.isVisible}return!1;function i(){switch(r.kind){case 341:case 348:case 342:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 205:return _n(r.parent.parent);case 257:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(e.isExternalModuleAugmentation(r))return!0;var a=Wa(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==268&&a.kind!==308&&a.flags&16777216)?Cu(a):_n(a);case 169:case 168:case 174:case 175:case 171:case 170:if(e.hasEffectiveModifier(r,8|16))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return _n(r.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function Zn(r,n){var i;r.parent&&r.parent.kind===274?i=is(r,r.escapedText,111551|788968|1920|2097152,void 0,r,!1):r.parent.kind===278&&(i=sf(r.parent,111551|788968|1920|2097152));var a,s;return i&&(s=new e.Set,s.add(h(i)),l(i.declarations)),a;function l(g){e.forEach(g,function(W){var ce=D_(W)||W;if(n?At(W).isVisible=!0:(a=a||[],e.pushIfUnique(a,ce)),e.isInternalModuleImportEqualsDeclaration(W)){var ke=W.moduleReference,rr=e.getFirstIdentifier(ke),$e=is(W,rr.escapedText,111551|788968|1920,void 0,void 0,!1);$e&&s&&e.tryAddToSet(s,h($e))&&l($e.declarations)}})}}function $i(r,n){var i=kt(r,n);if(i>=0){for(var a=zc.length,s=i;s<a;s++)Zu[s]=!1;return!1}return zc.push(r),Zu.push(!0),Hr.push(n),!0}function kt(r,n){for(var i=zc.length-1;i>=0;i--){if(Mt(zc[i],Hr[i]))return-1;if(zc[i]===r&&Hr[i]===n)return i}return-1}function Mt(r,n){switch(n){case 0:return!!Qt(r).type;case 5:return!!At(r).resolvedEnumType;case 2:return!!Qt(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!!Qt(r).writeType}return e.Debug.assertNever(n)}function wt(){return zc.pop(),Hr.pop(),Zu.pop()}function Wa(r){return e.findAncestor(e.getRootDeclaration(r),function(n){switch(n.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function Lo(r){var n=nt(Nc(r));return n.typeParameters?F_(n,e.map(n.typeParameters,function(i){return Te})):n}function Na(r,n){var i=Zt(r,n);return i?Li(i):void 0}function Pc(r,n){var i;return Na(r,n)||((i=Ip(r,n))===null||i===void 0?void 0:i.type)||_r}function Ba(r){return r&&(r.flags&1)!=0}function ca(r){return r===ue||!!(r.flags&1&&r.aliasSymbol)}function Bc(r,n){if(n!==0)return yl(r,!1,n);var i=zi(r);return i&&Qt(i).type||yl(r,!1,n)}function mu(r,n,i){if(r=Qs(r,function(sn){return!(sn.flags&98304)}),r.flags&131072)return Zi;if(r.flags&1048576)return Qo(r,function(sn){return mu(sn,n,i)});for(var a=Ot(e.map(n,L_)),s=[],l=[],g=0,W=vo(r);g<W.length;g++){var ce=W[g],ke=pm(ce,8576);!io(ke,a)&&!(e.getDeclarationModifierFlagsFromSymbol(ce)&(8|16))&&hh(ce)?s.push(ce):l.push(ke)}if(Qd(r)||vd(a)){if(l.length&&(a=Ot(zn([a],l,!0))),a.flags&131072)return r;var rr=sk();return rr?wg(rr,[r,a]):ue}for(var $e=e.createSymbolTable(),ar=0,ir=s;ar<ir.length;ar++){var ce=ir[ar];$e.set(ce.escapedName,R1(ce,!1))}var Wr=Yo(i,$e,e.emptyArray,e.emptyArray,hs(r));return Wr.objectFlags|=4194304,Wr}function If(r){return!!(r.flags&465829888)&&rs(uc(r)||_r,32768)}function Nu(r){var n=Jf(r,If)?Qo(r,function(i){return i.flags&465829888?O_(i):i}):r;return bu(n,524288)}function P_(r,n){var i=Jd(r);return i?Ed(i,n):n}function Jd(r){var n=jd(r);if(n&&n.flowNode){var i=Ll(r);if(i){var a=e.setTextRange(e.parseNodeFactory.createStringLiteral(i),r),s=e.isLeftHandSideExpression(n)?n:e.parseNodeFactory.createParenthesizedExpression(n),l=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,a),r);return e.setParent(a,l),e.setParent(l,r),s!==n&&e.setParent(s,l),l.flowNode=n.flowNode,l}}}function jd(r){var n=r.parent.parent;switch(n.kind){case 205:case 299:return Jd(n);case 206:return Jd(r.parent);case 257:return n.initializer;case 223:return n.right}}function Ll(r){var n=r.parent;return r.kind===205&&n.kind===203?sd(r.propertyName||r.name):r.kind===299||r.kind===300?sd(r.name):""+n.elements.indexOf(r)}function sd(r){var n=L_(r);return n.flags&(128|256)?""+n.value:void 0}function Ep(r){var n=r.dotDotDotToken?64:0,i=Bc(r.parent.parent,n);return i&&Gp(r,i)}function Gp(r,n){if(Ba(n))return n;var i=r.parent;Re&&r.flags&16777216&&e.isParameterDeclaration(r)?n=l_(n):Re&&i.parent.initializer&&!(fc(fx(i.parent.initializer))&65536)&&(n=bu(n,524288));var a;if(i.kind===203)if(r.dotDotDotToken){if(n=ct(n),n.flags&2||!vy(n))return Zr(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ue;for(var s=[],l=0,g=i.elements;l<g.length;l++){var W=g[l];W.dotDotDotToken||s.push(W.propertyName||W.name)}a=mu(n,s,r.symbol)}else{var ce=r.propertyName||r.name,ke=L_(ce),rr=Zc(n,ke,32,ce);a=P_(r,rr)}else{var $e=J_(65|(r.dotDotDotToken?0:128),n,zr,i),ar=i.elements.indexOf(r);if(r.dotDotDotToken)a=mf(n,Xa)?Qo(n,function(Wr){return Gm(Wr,ar)}):ic($e);else if(Td(n)){var ke=Vl(ar),ir=32|(Dm(r)?16:0),rr=yd(n,ke,ir,r.name)||ue;a=P_(r,rr)}else a=$e}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?Re&&!(fc(Iy(r,0))&16777216)?Nu(a):a:CD(r,Ot([Nu(a),Iy(r,0)],2)):a}function cd(r){var n=e.getJSDocType(r);if(n)return zt(n)}function $g(r){var n=e.skipParentheses(r,!0);return n.kind===104||n.kind===79&&Hu(n)===Br}function ud(r){var n=e.skipParentheses(r,!0);return n.kind===206&&n.elements.length===0}function fu(r,n,i){return n===void 0&&(n=!1),i===void 0&&(i=!0),Re&&i?u_(r,n):r}function yl(r,n,i){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===246){var a=Wl($2(ya(r.parent.parent.expression,i)));return a.flags&(262144|4194304)?Zb(a):yn}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===247){var s=r.parent.parent;return By(s)||Te}if(e.isBindingPattern(r.parent))return Ep(r);var l=e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)||e.isPropertySignature(r),g=n&&(l&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||Yp(r))||Um(r)),W=wo(r);if(W)return fu(W,l,g);if((Ue||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&16777216)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||$g(r.initializer)))return Ye;if(r.initializer&&ud(r.initializer))return ns}if(e.isParameter(r)){var ce=r.parent;if(ce.kind===175&&Pp(ce)){var ke=e.getDeclarationOfKind(zi(r.parent),174);if(ke){var rr=Vu(ke),$e=ib(ce);return $e&&r===$e?(e.Debug.assert(!$e.type),Li(rr.thisParameter)):Ao(rr)}}var ar=s1(ce,r);if(ar)return ar;var ir=r.symbol.escapedName==="this"?Px(ce):Ix(r);if(ir)return fu(ir,!1,g)}if(e.hasOnlyExpressionInitializer(r)&&!!r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var Wr=Kp(r,zi(r),e.getDeclaredExpandoInitializer(r));if(Wr)return Wr}var ir=CD(r,Iy(r,i));return fu(ir,l,g)}if(e.isPropertyDeclaration(r)&&(Ue||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var In=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),ir=In.length?em(r.symbol,In):e.getEffectiveModifierFlags(r)&2?Ih(r.symbol):void 0;return ir&&fu(ir,!0,g)}else{var sn=kf(r.parent),ir=sn?Hp(r.symbol,sn):e.getEffectiveModifierFlags(r)&2?Ih(r.symbol):void 0;return ir&&fu(ir,!0,g)}if(e.isJsxAttribute(r))return Ni;if(e.isBindingPattern(r.name))return bt(r.name,!1,!0)}function pg(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var n=Qt(r);return n.isConstructorDeclaredProperty===void 0&&(n.isConstructorDeclaredProperty=!1,n.isConstructorDeclaredProperty=!!kp(r)&&e.every(r.declarations,function(i){return e.isBinaryExpression(i)&&$h(i)&&(i.left.kind!==209||e.isStringOrNumericLiteralLike(i.left.argumentExpression))&&!Fe(void 0,i,r,i)})),n.isConstructorDeclaredProperty}return!1}function n_(r){var n=r.valueDeclaration;return n&&e.isPropertyDeclaration(n)&&!e.getEffectiveTypeAnnotationNode(n)&&!n.initializer&&(Ue||e.isInJSFile(n))}function kp(r){if(!!r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n],s=e.getThisContainer(a,!1);if(s&&(s.kind===173||Sl(s)))return s}}function gg(r){var n=e.getSourceFileOfNode(r.declarations[0]),i=e.unescapeLeadingUnderscores(r.escapedName),a=r.declarations.every(function(l){return e.isInJSFile(l)&&e.isAccessExpression(l)&&e.isModuleExportsAccessExpression(l.expression)}),s=a?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),i):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),i);return a&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,n),s.flowNode=n.endFlowNode,Ed(s,Ye,zr)}function em(r,n){for(var i=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),a=0,s=n;a<s.length;a++){var l=s[a],g=e.factory.createPropertyAccessExpression(e.factory.createThis(),i);e.setParent(g.expression,g),e.setParent(g,l),g.flowNode=l.returnFlowNode;var W=ld(g,r);if(Ue&&(W===Ye||W===ns)&&Zr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Xt(r),Oi(W)),!mf(W,o0))return bv(W)}}function Hp(r,n){var i=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),a=e.factory.createPropertyAccessExpression(e.factory.createThis(),i);e.setParent(a.expression,a),e.setParent(a,n),a.flowNode=n.returnFlowNode;var s=ld(a,r);return Ue&&(s===Ye||s===ns)&&Zr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Xt(r),Oi(s)),mf(s,o0)?void 0:bv(s)}function ld(r,n){var i=(n==null?void 0:n.valueDeclaration)&&(!n_(n)||e.getEffectiveModifierFlags(n.valueDeclaration)&2)&&Ih(n)||zr;return Ed(r,Ye,i)}function fd(r,n){var i=e.getAssignedExpandoInitializer(r.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);if(a&&a.typeExpression)return zt(a.typeExpression);var s=r.valueDeclaration&&Kp(r.valueDeclaration,r,i);return s||ep(Ds(i))}var l,g=!1,W=!1;if(pg(r)&&(l=Hp(r,kp(r))),!l){var ce=void 0;if(r.declarations){for(var ke=void 0,rr=0,$e=r.declarations;rr<$e.length;rr++){var ar=$e[rr],ir=e.isBinaryExpression(ar)||e.isCallExpression(ar)?ar:e.isAccessExpression(ar)?e.isBinaryExpression(ar.parent)?ar.parent:ar:void 0;if(!!ir){var Wr=e.isAccessExpression(ir)?e.getAssignmentDeclarationPropertyAccessKind(ir):e.getAssignmentDeclarationKind(ir);(Wr===4||e.isBinaryExpression(ir)&&$h(ir,Wr))&&(mn(ir)?g=!0:W=!0),e.isCallExpression(ir)||(ke=Fe(ke,ir,r,ar)),ke||(ce||(ce=[])).push(e.isBinaryExpression(ir)||e.isCallExpression(ir)?gr(r,n,ir,Wr):we)}}l=ke}if(!l){if(!e.length(ce))return ue;var sn=g&&r.declarations?Un(ce,r.declarations):void 0;if(W){var In=Ih(r);In&&((sn||(sn=[])).push(In),g=!0)}var Sn=e.some(sn,function(ei){return!!(ei.flags&~98304)})?sn:ce;l=Ot(Sn)}}var Kn=tu(fu(l,!1,W&&!g));return r.valueDeclaration&&Qs(Kn,function(ei){return!!(ei.flags&~98304)})===we?(rp(r.valueDeclaration,Te),Te):Kn}function Kp(r,n,i){var a,s;if(!(!e.isInJSFile(r)||!i||!e.isObjectLiteralExpression(i)||i.properties.length)){for(var l=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var g=zi(r);((a=g==null?void 0:g.exports)===null||a===void 0?void 0:a.size)&&ou(l,g.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var W=zi(r);((s=W==null?void 0:W.exports)===null||s===void 0?void 0:s.size)&&ou(l,W.exports);var ce=Yo(n,l,e.emptyArray,e.emptyArray,e.emptyArray);return ce.objectFlags|=4096,ce}}function Fe(r,n,i,a){var s,l=e.getEffectiveTypeAnnotationNode(n.parent);if(l){var g=tu(zt(l));if(r)!ca(r)&&!ca(g)&&!Lf(r,g)&&ET(void 0,r,a,g);else return g}if((s=i.parent)===null||s===void 0?void 0:s.valueDeclaration){var W=e.getEffectiveTypeAnnotationNode(i.parent.valueDeclaration);if(W){var ce=Zt(zt(W),i.escapedName);if(ce)return ju(ce)}}return r}function gr(r,n,i,a){if(e.isCallExpression(i)){if(n)return Li(n);var s=Ds(i.arguments[2]),l=Na(s,"value");if(l)return l;var g=Na(s,"get");if(g){var W=cg(g);if(W)return Ao(W)}var ce=Na(s,"set");if(ce){var ke=cg(ce);if(ke)return vD(ke)}return Te}if(Yr(i.left,i.right))return Te;var rr=a===1&&(e.isPropertyAccessExpression(i.left)||e.isElementAccessExpression(i.left))&&(e.isModuleExportsAccessExpression(i.left.expression)||e.isIdentifier(i.left.expression)&&e.isExportsIdentifier(i.left.expression)),$e=n?Li(n):rr?Jc(Ds(i.right)):ep(Ds(i.right));if($e.flags&524288&&a===2&&r.escapedName==="export="){var ar=Iu($e),ir=e.createSymbolTable();e.copyEntries(ar.members,ir);var Wr=ir.size;n&&!n.exports&&(n.exports=e.createSymbolTable()),(n||r).exports.forEach(function(Sn,Kn){var ei,Ti=ir.get(Kn);if(Ti&&Ti!==Sn&&!(Sn.flags&2097152))if(Sn.flags&111551&&Ti.flags&111551){if(Sn.valueDeclaration&&Ti.valueDeclaration&&e.getSourceFileOfNode(Sn.valueDeclaration)!==e.getSourceFileOfNode(Ti.valueDeclaration)){var Ri=e.unescapeLeadingUnderscores(Sn.escapedName),pt=((ei=e.tryCast(Ti.valueDeclaration,e.isNamedDeclaration))===null||ei===void 0?void 0:ei.name)||Ti.valueDeclaration;e.addRelatedInfo(Zr(Sn.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,Ri),e.createDiagnosticForNode(pt,e.Diagnostics._0_was_also_declared_here,Ri)),e.addRelatedInfo(Zr(pt,e.Diagnostics.Duplicate_identifier_0,Ri),e.createDiagnosticForNode(Sn.valueDeclaration,e.Diagnostics._0_was_also_declared_here,Ri))}var rt=go(Sn.flags|Ti.flags,Kn);rt.type=Ot([Li(Sn),Li(Ti)]),rt.valueDeclaration=Ti.valueDeclaration,rt.declarations=e.concatenate(Ti.declarations,Sn.declarations),ir.set(Kn,rt)}else ir.set(Kn,Vf(Sn,Ti));else ir.set(Kn,Sn)});var sn=Yo(Wr!==ir.size?void 0:ar.symbol,ir,ar.callSignatures,ar.constructSignatures,ar.indexInfos);if(Wr===ir.size&&($e.aliasSymbol&&(sn.aliasSymbol=$e.aliasSymbol,sn.aliasTypeArguments=$e.aliasTypeArguments),e.getObjectFlags($e)&4)){sn.aliasSymbol=$e.symbol;var In=No($e);sn.aliasTypeArguments=e.length(In)?In:void 0}return sn.objectFlags|=e.getObjectFlags($e)&4096,sn.symbol&&sn.symbol.flags&32&&$e===_u(sn.symbol)&&(sn.objectFlags|=16777216),sn}return Fh($e)?(rp(i,Es),Es):$e}function Yr(r,n){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(n,function(i){return zs(r,i)})}function mn(r){var n=e.getThisContainer(r,!1);return n.kind===173||n.kind===259||n.kind===215&&!e.isPrototypePropertyAssignment(n.parent)}function Un(r,n){return e.Debug.assert(r.length===n.length),r.filter(function(i,a){var s=n[a],l=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return l&&mn(l)})}function ci(r,n,i){if(r.initializer){var a=e.isBindingPattern(r.name)?bt(r.name,!0,!1):_r;return fu(CD(r,Iy(r,0,a)))}return e.isBindingPattern(r.name)?bt(r.name,n,i):(i&&!mo(r)&&rp(r,Te),n?tr:Te)}function tt(r,n,i){var a=e.createSymbolTable(),s,l=128|131072;e.forEach(r.elements,function(W){var ce=W.propertyName||W.name;if(W.dotDotDotToken){s=Ul(yn,Te,!1);return}var ke=L_(ce);if(!hu(ke)){l|=512;return}var rr=Du(ke),$e=4|(W.initializer?16777216:0),ar=go($e,rr);ar.type=ci(W,n,i),ar.bindingElement=W,a.set(ar.escapedName,ar)});var g=Yo(void 0,a,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return g.objectFlags|=l,n&&(g.pattern=r,g.objectFlags|=131072),g}function mt(r,n,i){var a=r.elements,s=e.lastOrUndefined(a),l=s&&s.kind===205&&s.dotDotDotToken?s:void 0;if(a.length===0||a.length===1&&l)return d>=2?fk(Te):Es;var g=e.map(a,function(rr){return e.isOmittedExpression(rr)?Te:ci(rr,n,i)}),W=e.findLastIndex(a,function(rr){return!(rr===l||e.isOmittedExpression(rr)||Dm(rr))},a.length-1)+1,ce=e.map(a,function(rr,$e){return rr===l?4:$e>=W?2:1}),ke=zl(g,ce);return n&&(ke=gb(ke),ke.pattern=r,ke.objectFlags|=131072),ke}function bt(r,n,i){return n===void 0&&(n=!1),i===void 0&&(i=!1),r.kind===203?tt(r,n,i):mt(r,n,i)}function Lt(r,n){return bo(yl(r,!0,0),r,n)}function Oa(r){var n=zi(r),i=XE(!1);return i&&n&&n===i}function bo(r,n,i){return r?(r.flags&4096&&Oa(n.parent)&&(r=B1(n)),i&&Uh(n,r),r.flags&8192&&(e.isBindingElement(n)||!n.type)&&r.symbol!==zi(n)&&(r=Pe),tu(r)):(r=e.isParameter(n)&&n.dotDotDotToken?Es:Te,i&&(mo(n)||rp(n,r)),r)}function mo(r){var n=e.getRootDeclaration(r),i=n.kind===166?n.parent:n;return Oy(i)}function wo(r){var n=e.getEffectiveTypeAnnotationNode(r);if(n)return zt(n)}function Cs(r){var n=Qt(r);if(!n.type){var i=hc(r);n.type||(n.type=i)}return n.type}function hc(r){if(r.flags&4194304)return Lo(r);if(r===or)return Te;if(r.flags&134217728&&r.valueDeclaration){var n=zi(e.getSourceFileOfNode(r.valueDeclaration)),i=go(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=r,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),Yo(r,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var s=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var l=e.getEffectiveTypeAnnotationNode(s);if(l===void 0)return qr?_r:Te;var g=lg(l);return Ba(g)||g===_r?g:ue}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?tu(ep(ya(s.statements[0].expression))):Zi;if(e.isAccessor(s))return Ic(r);if(!$i(r,0))return r.flags&512&&!(r.flags&67108864)?Js(r):oi(r);var W;if(s.kind===274)W=bo(wo(s)||Ds(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))W=fd(r);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(r.flags&(16|8192|32|384|512))return Js(r);W=e.isBinaryExpression(s.parent)?fd(r):wo(s)||Te}else if(e.isPropertyAssignment(s))W=wo(s)||eT(s);else if(e.isJsxAttribute(s))W=wo(s)||Ux(s);else if(e.isShorthandPropertyAssignment(s))W=wo(s)||Em(s.name,0);else if(e.isObjectLiteralMethod(s))W=wo(s)||rT(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))W=Lt(s,!0);else if(e.isEnumDeclaration(s))W=Js(r);else if(e.isEnumMember(s))W=R(r);else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(r));return wt()?W:r.flags&512&&!(r.flags&67108864)?Js(r):oi(r)}function $o(r){if(r)switch(r.kind){case 174:var n=e.getEffectiveReturnTypeNode(r);return n;case 175:var i=e.getEffectiveSetAccessorTypeAnnotationNode(r);return i;case 169:e.Debug.assert(e.hasAccessorModifier(r));var a=e.getEffectiveTypeAnnotationNode(r);return a}}function vu(r){var n=$o(r);return n&&zt(n)}function Kc(r){var n=ib(r);return n&&n.symbol}function Ks(r){return Hd(Vu(r))}function Ic(r){var n=Qt(r);if(!n.type){if(!$i(r,0))return ue;var i=e.getDeclarationOfKind(r,174),a=e.getDeclarationOfKind(r,175),s=e.tryCast(e.getDeclarationOfKind(r,169),e.isAutoAccessorPropertyDeclaration),l=i&&e.isInJSFile(i)&&cd(i)||vu(i)||vu(a)||vu(s)||i&&i.body&&y0(i)||s&&s.initializer&&Lt(s,!0);l||(a&&!Oy(a)?xu(Ue,a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xt(r)):i&&!Oy(i)?xu(Ue,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xt(r)):s&&!Oy(s)&&xu(Ue,s,e.Diagnostics.Member_0_implicitly_has_an_1_type,Xt(r),"any"),l=Te),wt()||($o(i)?Zr(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xt(r)):$o(a)||$o(s)?Zr(a,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xt(r)):i&&Ue&&Zr(i,e.Diagnostics._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,Xt(r)),l=Te),n.type=l}return n.type}function ol(r){var n,i=Qt(r);if(!i.writeType){if(!$i(r,8))return ue;var a=(n=e.getDeclarationOfKind(r,175))!==null&&n!==void 0?n:e.tryCast(e.getDeclarationOfKind(r,169),e.isAutoAccessorPropertyDeclaration),s=vu(a);wt()||($o(a)&&Zr(a,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xt(r)),s=Te),i.writeType=s||Ic(r)}return i.writeType}function i_(r){var n=cc(_u(r));return n.flags&8650752?n:n.flags&2097152?e.find(n.types,function(i){return!!(i.flags&8650752)}):void 0}function Js(r){var n=Qt(r),i=n;if(!n.type){var a=r.valueDeclaration&&g0(r.valueDeclaration,!1);if(a){var s=gD(r,a);s&&(r=n=s)}i.type=n.type=_(r)}return n.type}function _(r){var n=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return Te;if(n&&(n.kind===223||e.isAccessExpression(n)&&n.parent.kind===223))return fd(r);if(r.flags&512&&n&&e.isSourceFile(n)&&n.commonJsModuleIndicator){var i=Us(r);if(i!==r){if(!$i(r,0))return ue;var a=Ya(r.exports.get("export=")),s=fd(a,a===i?void 0:i);return wt()?s:oi(r)}}var l=Gc(16,r);if(r.flags&32){var g=i_(r);return g?ro([l,g]):l}else return Re&&r.flags&16777216?u_(l):l}function R(r){var n=Qt(r);return n.type||(n.type=Pi(r))}function he(r){var n=Qt(r);if(!n.type){var i=wi(r),a=r.declarations&&Tf(Mu(r),!0),s=e.firstDefined(a==null?void 0:a.declarations,function(l){return e.isExportAssignment(l)?wo(l):void 0});n.type=(a==null?void 0:a.declarations)&&O0(a.declarations)&&r.declarations.length?gg(a):O0(r.declarations)?Ye:s||(Kt(i)&111551?Li(i):ue)}return n.type}function nr(r){var n=Qt(r);return n.type||(n.type=ra(Li(n.target),n.mapper))}function $r(r){var n=Qt(r);return n.writeType||(n.writeType=ra(Rs(n.target),n.mapper))}function oi(r){var n=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(n)?(Zr(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xt(r)),ue):(Ue&&(n.kind!==166||n.initializer)&&Zr(r.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xt(r)),Te)}function ft(r){var n=Qt(r);return n.type||(e.Debug.assertIsDefined(n.deferralParent),e.Debug.assertIsDefined(n.deferralConstituents),n.type=n.deferralParent.flags&1048576?Ot(n.deferralConstituents):ro(n.deferralConstituents)),n.type}function Ja(r){var n=Qt(r);return!n.writeType&&n.deferralWriteConstituents&&(e.Debug.assertIsDefined(n.deferralParent),e.Debug.assertIsDefined(n.deferralConstituents),n.writeType=n.deferralParent.flags&1048576?Ot(n.deferralWriteConstituents):ro(n.deferralWriteConstituents)),n.writeType}function Rs(r){var n=e.getCheckFlags(r);return r.flags&4?n&2?n&65536?Ja(r)||ft(r):r.writeType||r.type:Li(r):r.flags&98304?n&1?$r(r):ol(r):Li(r)}function Li(r){var n=e.getCheckFlags(r);return n&65536?ft(r):n&1?nr(r):n&262144?Z0(r):n&8192?bA(r):r.flags&(3|4)?Cs(r):r.flags&(16|8192|32|384|512)?Js(r):r.flags&8?R(r):r.flags&98304?Ic(r):r.flags&2097152?he(r):ue}function ju(r){return Jg(Li(r),!!(r.flags&16777216))}function yu(r,n){return r!==void 0&&n!==void 0&&(e.getObjectFlags(r)&4)!=0&&r.target===n}function wf(r){return e.getObjectFlags(r)&4?r.target:r}function Of(r,n){return i(r);function i(a){if(e.getObjectFlags(a)&(3|4)){var s=wf(a);return s===n||e.some(nu(s),i)}else if(a.flags&2097152)return e.some(a.types,i);return!1}}function mg(r,n){for(var i=0,a=n;i<a.length;i++){var s=a[i];r=e.appendIfUnique(r,Et(zi(s)))}return r}function _d(r,n){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var i=e.getAssignmentDeclarationKind(r);if(i===6||i===3){var a=zi(r.left);a&&a.parent&&!e.findAncestor(a.parent.valueDeclaration,function(ce){return r===ce})&&(r=a.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 347:case 348:case 342:case 341:case 197:case 191:{var s=_d(r,n);if(r.kind===197)return e.append(s,Et(zi(r.typeParameter)));if(r.kind===191)return e.concatenate(s,sS(r));var l=mg(s,e.getEffectiveTypeParameterDeclarations(r)),g=n&&(r.kind===260||r.kind===228||r.kind===261||Sl(r))&&_u(zi(r)).thisType;return g?e.append(l,g):l}case 343:var W=e.getParameterSymbolFromJSDoc(r);W&&(r=W.valueDeclaration);break;case 323:{var s=_d(r,n);return r.tags?mg(s,e.flatMap(r.tags,function(ke){return e.isJSDocTemplateTag(ke)?ke.typeParameters:void 0})):s}}}}function rm(r){var n=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,261);return e.Debug.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),_d(n)}function df(r){if(!!r.declarations){for(var n,i=0,a=r.declarations;i<a.length;i++){var s=a[i];if(s.kind===261||s.kind===260||s.kind===228||Sl(s)||e.isTypeAlias(s)){var l=s;n=mg(n,e.getEffectiveTypeParameterDeclarations(l))}}return n}}function Ev(r){return e.concatenate(rm(r),df(r))}function vg(r){var n=_a(r,1);if(n.length===1){var i=n[0];if(!i.typeParameters&&i.parameters.length===1&&G(i)){var a=lv(i.parameters[0]);return Ba(a)||i2(a)===Te}}return!1}function yg(r){if(_a(r,1).length>0)return!0;if(r.flags&8650752){var n=uc(r);return!!n&&vg(n)}return!1}function hg(r){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);return n&&e.getEffectiveBaseTypeNode(n)}function nm(r,n,i){var a=e.length(n),s=e.isInJSFile(i);return e.filter(_a(r,1),function(l){return(s||a>=ul(l.typeParameters))&&a<=e.length(l.typeParameters)})}function Qp(r,n,i){var a=nm(r,n,i),s=e.map(n,zt);return e.sameMap(a,function(l){return e.some(l.typeParameters)?zm(l,s,e.isInJSFile(i)):l})}function cc(r){if(!r.resolvedBaseConstructorType){var n=e.getClassLikeDeclarationOfSymbol(r.symbol),i=n&&e.getEffectiveBaseTypeNode(n),a=hg(r);if(!a)return r.resolvedBaseConstructorType=zr;if(!$i(r,1))return ue;var s=ya(a.expression);if(i&&a!==i&&(e.Debug.assert(!i.typeArguments),ya(i.expression)),s.flags&(524288|2097152)&&Iu(s),!wt())return Zr(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xt(r.symbol)),r.resolvedBaseConstructorType=ue;if(!(s.flags&1)&&s!==qn&&!yg(s)){var l=Zr(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Oi(s));if(s.flags&262144){var g=_m(s),W=_r;if(g){var ce=_a(g,1);ce[0]&&(W=Ao(ce[0]))}s.symbol.declarations&&e.addRelatedInfo(l,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Xt(s.symbol),Oi(W)))}return r.resolvedBaseConstructorType=ue}r.resolvedBaseConstructorType=s}return r.resolvedBaseConstructorType}function kv(r){var n=e.emptyArray;if(r.symbol.declarations)for(var i=0,a=r.symbol.declarations;i<a.length;i++){var s=a[i],l=e.getEffectiveImplementsTypeNodes(s);if(!!l)for(var g=0,W=l;g<W.length;g++){var ce=W[g],ke=zt(ce);ca(ke)||(n===e.emptyArray?n=[ke]:n.push(ke))}}return n}function im(r,n){Zr(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Oi(n,void 0,2))}function nu(r){if(!r.baseTypesResolved){if($i(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[tm(r)]:r.symbol.flags&(32|64)?(r.symbol.flags&32&&Av(r),r.symbol.flags&64&&Pv(r)):e.Debug.fail("type must be class or interface"),!wt()&&r.symbol.declarations))for(var n=0,i=r.symbol.declarations;n<i.length;n++){var a=i[n];(a.kind===260||a.kind===261)&&im(a,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function tm(r){var n=e.sameMap(r.typeParameters,function(i,a){return r.elementFlags[a]&8?Zc(i,Hn):i});return ic(Ot(n||e.emptyArray),r.readonly)}function Av(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var n=re(cc(r));if(!(n.flags&(524288|2097152|1)))return r.resolvedBaseTypes=e.emptyArray;var i=hg(r),a,s=n.symbol?nt(n.symbol):void 0;if(n.symbol&&n.symbol.flags&32&&Nv(s))a=mb(i,n.symbol);else if(n.flags&1)a=n;else{var l=Qp(n,i.typeArguments,i);if(!l.length)return Zr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;a=Ao(l[0])}if(ca(a))return r.resolvedBaseTypes=e.emptyArray;var g=ct(a);if(!Ap(g)){var W=nc(void 0,a),ce=e.chainDiagnosticMessages(W,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Oi(g));return fe.add(e.createDiagnosticForNodeFromMessageChain(i.expression,ce)),r.resolvedBaseTypes=e.emptyArray}return r===g||Of(g,r)?(Zr(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Oi(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[g])}function Nv(r){var n=r.outerTypeParameters;if(n){var i=n.length-1,a=No(r);return n[i].symbol!==a[i].symbol}return!0}function Ap(r){if(r.flags&262144){var n=uc(r);if(n)return Ap(n)}return!!(r.flags&(524288|67108864|1)&&!Xc(r)||r.flags&2097152&&e.every(r.types,Ap))}function Pv(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var n=0,i=r.symbol.declarations;n<i.length;n++){var a=i[n];if(a.kind===261&&e.getInterfaceBaseTypeNodes(a))for(var s=0,l=e.getInterfaceBaseTypeNodes(a);s<l.length;s++){var g=l[s],W=ct(zt(g));ca(W)||(Ap(W)?r!==W&&!Of(W,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[W]:r.resolvedBaseTypes.push(W):im(a,r):Zr(g,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Dg(r){if(!r.declarations)return!0;for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];if(a.kind===261){if(a.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(a);if(s)for(var l=0,g=s;l<g.length;l++){var W=g[l];if(e.isEntityNameExpression(W.expression)){var ce=ts(W.expression,788968,!0);if(!ce||!(ce.flags&64)||_u(ce).thisType)return!1}}}}return!0}function _u(r){var n=Qt(r),i=n;if(!n.declaredType){var a=r.flags&32?1:2,s=gD(r,r.valueDeclaration&&_3(r.valueDeclaration));s&&(r=n=s);var l=i.declaredType=n.declaredType=Gc(a,r),g=rm(r),W=df(r);(g||W||a===1||!Dg(r))&&(l.objectFlags|=4,l.typeParameters=e.concatenate(g,W),l.outerTypeParameters=g,l.localTypeParameters=W,l.instantiations=new e.Map,l.instantiations.set(wu(l.typeParameters),l),l.target=l,l.resolvedTypeArguments=l.typeParameters,l.thisType=uu(r),l.thisType.isThisType=!0,l.thisType.constraint=l)}return n.declaredType}function Rm(r){var n,i=Qt(r);if(!i.declaredType){if(!$i(r,2))return ue;var a=e.Debug.checkDefined((n=r.declarations)===null||n===void 0?void 0:n.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(a)?a.typeExpression:a.type,l=s?zt(s):ue;if(wt()){var g=df(r);g&&(i.typeParameters=g,i.instantiations=new e.Map,i.instantiations.set(wu(g),l))}else l=ue,a.kind===342?Zr(a.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Xt(r)):Zr(e.isNamedDeclaration(a)&&a.name||a,e.Diagnostics.Type_alias_0_circularly_references_itself,Xt(r));i.declaredType=l}return i.declaredType}function Xp(r){return e.isStringLiteralLike(r)?!0:r.kind===223?Xp(r.left)&&Xp(r.right):!1}function am(r){var n=r.initializer;if(!n)return!(r.flags&16777216);switch(n.kind){case 10:case 8:case 14:return!0;case 221:return n.operator===40&&n.operand.kind===8;case 79:return e.nodeIsMissing(n)||!!zi(r.parent).exports.get(n.escapedText);case 223:return Xp(n);default:return!1}}function t_(r){var n=Qt(r);if(n.enumKind!==void 0)return n.enumKind;var i=!1;if(r.declarations)for(var a=0,s=r.declarations;a<s.length;a++){var l=s[a];if(l.kind===263)for(var g=0,W=l.members;g<W.length;g++){var ce=W[g];if(ce.initializer&&e.isStringLiteralLike(ce.initializer))return n.enumKind=1;am(ce)||(i=!0)}}return n.enumKind=i?0:1}function bg(r){return r.flags&1024&&!(r.flags&1048576)?nt(Nc(r.symbol)):r}function I_(r){var n=Qt(r);if(n.declaredType)return n.declaredType;if(t_(r)===1){He++;var i=[];if(r.declarations)for(var a=0,s=r.declarations;a<s.length;a++){var l=s[a];if(l.kind===263)for(var g=0,W=l.members;g<W.length;g++){var ce=W[g],ke=B0(ce),rr=Mg(r6(ke!==void 0?ke:0,He,zi(ce)));Qt(zi(ce)).declaredType=rr,i.push(Jc(rr))}}if(i.length){var $e=Ot(i,1,r,void 0);return $e.flags&1048576&&($e.flags|=1024,$e.symbol=r),n.declaredType=$e}}var ar=qc(32);return ar.symbol=r,n.declaredType=ar}function Pi(r){var n=Qt(r);if(!n.declaredType){var i=I_(Nc(r));n.declaredType||(n.declaredType=i)}return n.declaredType}function Et(r){var n=Qt(r);return n.declaredType||(n.declaredType=uu(r))}function It(r){var n=Qt(r);return n.declaredType||(n.declaredType=nt(wi(r)))}function nt(r){return ma(r)||ue}function ma(r){if(r.flags&(32|64))return _u(r);if(r.flags&524288)return Rm(r);if(r.flags&262144)return Et(r);if(r.flags&384)return I_(r);if(r.flags&8)return Pi(r);if(r.flags&2097152)return It(r)}function $a(r){switch(r.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return $a(r.elementType);case 180:return!r.typeArguments||r.typeArguments.every($a)}return!1}function cs(r){var n=e.getEffectiveConstraintOfTypeParameter(r);return!n||$a(n)}function wc(r){var n=e.getEffectiveTypeAnnotationNode(r);return n?$a(n):!e.hasInitializer(r)}function Oc(r){var n=e.getEffectiveReturnTypeNode(r),i=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===173||!!n&&$a(n))&&r.parameters.every(wc)&&i.every(cs)}function Uu(r){if(r.declarations&&r.declarations.length===1){var n=r.declarations[0];if(n)switch(n.kind){case 169:case 168:return wc(n);case 171:case 170:case 173:case 174:case 175:return Oc(n)}}return!1}function iu(r,n,i){for(var a=e.createSymbolTable(),s=0,l=r;s<l.length;s++){var g=l[s];a.set(g.escapedName,i&&Uu(g)?g:j1(g,n))}return a}function Rl(r,n){for(var i=0,a=n;i<a.length;i++){var s=a[i];!r.has(s.escapedName)&&!Ud(s)&&r.set(s.escapedName,s)}}function Ud(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function Np(r){if(!r.declaredProperties){var n=r.symbol,i=pf(n);r.declaredProperties=Zf(i),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=Gd(i.get("__call")),r.declaredConstructSignatures=Gd(i.get("__new")),r.declaredIndexInfos=_b(n)}return r}function hu(r){return!!(r.flags&8576)}function dd(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var n=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(n)&&hu(e.isComputedPropertyName(r)?f_(r):Ds(n))}function zd(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function Sg(r){var n=e.getNameOfDeclaration(r);return!!n&&dd(n)}function Pp(r){return!e.hasDynamicName(r)||Sg(r)}function Vy(r){return e.isDynamicName(r)&&!dd(r)}function Du(r){return r.flags&8192?r.escapedName:r.flags&(128|256)?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function Iv(r,n,i){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=i,Qt(n.symbol).lateSymbol=r,r.declarations?n.symbol.isReplaceableByMethod||r.declarations.push(n):r.declarations=[n],i&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==n.kind)&&(r.valueDeclaration=n)}function wv(r,n,i,a){e.Debug.assert(!!a.symbol,"The member is expected to have a symbol.");var s=At(a);if(!s.resolvedSymbol){s.resolvedSymbol=a.symbol;var l=e.isBinaryExpression(a)?a.left:a.name,g=e.isElementAccessExpression(l)?Ds(l.argumentExpression):f_(l);if(hu(g)){var W=Du(g),ce=a.symbol.flags,ke=i.get(W);ke||i.set(W,ke=go(0,W,4096));var rr=n&&n.get(W);if(ke.flags&U_(ce)||rr){var $e=rr?e.concatenate(rr.declarations,ke.declarations):ke.declarations,ar=!(g.flags&8192)&&e.unescapeLeadingUnderscores(W)||e.declarationNameToString(l);e.forEach($e,function(ir){return Zr(e.getNameOfDeclaration(ir)||ir,e.Diagnostics.Property_0_was_also_declared_here,ar)}),Zr(l||a,e.Diagnostics.Duplicate_property_0,ar),ke=go(0,W,4096)}return ke.nameType=g,Iv(ke,a,ce),ke.parent?e.Debug.assert(ke.parent===r,"Existing symbol parent should match new one"):ke.parent=r,s.resolvedSymbol=ke}}return s.resolvedSymbol}function Ov(r,n){var i=Qt(r);if(!i[n]){var a=n==="resolvedExports",s=a?r.flags&1536?E_(r):r.exports:r.members;i[n]=s||Oe;for(var l=e.createSymbolTable(),g=0,W=r.declarations||e.emptyArray;g<W.length;g++){var ce=W[g],ke=e.getMembersOfDeclaration(ce);if(ke)for(var rr=0,$e=ke;rr<$e.length;rr++){var ar=$e[rr];a===e.hasStaticModifier(ar)&&Sg(ar)&&wv(r,s,l,ar)}}var ir=r.assignmentDeclarationMembers;if(ir)for(var Wr=e.arrayFrom(ir.values()),sn=0,In=Wr;sn<In.length;sn++){var ar=In[sn],Sn=e.getAssignmentDeclarationKind(ar),Kn=Sn===3||e.isBinaryExpression(ar)&&$h(ar,Sn)||Sn===9||Sn===6;a===!Kn&&Sg(ar)&&wv(r,s,l,ar)}i[n]=rf(s,l)||Oe}return i[n]}function pf(r){return r.flags&6256?Ov(r,"resolvedMembers"):r.members||Oe}function xg(r){if(r.flags&106500&&r.escapedName==="__computed"){var n=Qt(r);if(!n.lateSymbol&&e.some(r.declarations,Sg)){var i=Ya(r.parent);e.some(r.declarations,e.hasStaticModifier)?Ac(i):pf(i)}return n.lateSymbol||(n.lateSymbol=r)}return r}function Qc(r,n,i){if(e.getObjectFlags(r)&4){var a=r.target,s=No(r);if(e.length(a.typeParameters)===e.length(s)){var l=F_(a,e.concatenate(s,[n||a.thisType]));return i?re(l):l}}else if(r.flags&2097152){var g=e.sameMap(r.types,function(W){return Qc(W,n,i)});return g!==r.types?ro(g):r}return i?re(r):r}function om(r,n,i,a){var s,l,g,W,ce;e.rangeEquals(i,a,0,i.length)?(l=n.symbol?pf(n.symbol):e.createSymbolTable(n.declaredProperties),g=n.declaredCallSignatures,W=n.declaredConstructSignatures,ce=n.declaredIndexInfos):(s=jc(i,a),l=iu(n.declaredProperties,s,i.length===1),g=xh(n.declaredCallSignatures,s),W=xh(n.declaredConstructSignatures,s),ce=dS(n.declaredIndexInfos,s));var ke=nu(n);if(ke.length){n.symbol&&l===pf(n.symbol)&&(l=e.createSymbolTable(n.declaredProperties)),Hc(r,l,g,W,ce);for(var rr=e.lastOrUndefined(a),$e=0,ar=ke;$e<ar.length;$e++){var ir=ar[$e],Wr=rr?Qc(ra(ir,s),rr):ir;Rl(l,vo(Wr)),g=e.concatenate(g,_a(Wr,0)),W=e.concatenate(W,_a(Wr,1));var sn=Wr!==Te?hs(Wr):[Ul(yn,Te,!1)];ce=e.concatenate(ce,e.filter(sn,function(In){return!vs(ce,In.keyType)}))}}Hc(r,l,g,W,ce)}function U0(r){om(r,Np(r),e.emptyArray,e.emptyArray)}function z0(r){var n=Np(r.target),i=e.concatenate(n.typeParameters,[n.thisType]),a=No(r),s=a.length===i.length?a:e.concatenate(a,[r]);om(r,n,i,s)}function Bl(r,n,i,a,s,l,g,W){var ce=new U(ze,W);return ce.declaration=r,ce.typeParameters=n,ce.parameters=a,ce.thisParameter=i,ce.resolvedReturnType=s,ce.resolvedTypePredicate=l,ce.minArgumentCount=g,ce.resolvedMinArgumentCount=void 0,ce.target=void 0,ce.mapper=void 0,ce.compositeSignatures=void 0,ce.compositeKind=void 0,ce}function Cg(r){var n=Bl(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return n.target=r.target,n.mapper=r.mapper,n.compositeSignatures=r.compositeSignatures,n.compositeKind=r.compositeKind,n}function Fv(r,n){var i=Cg(r);return i.compositeSignatures=n,i.compositeKind=1048576,i.target=void 0,i.mapper=void 0,i}function W0(r,n){if((r.flags&24)===n)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var i=n===8?"inner":"outer";return r.optionalCallSignatureCache[i]||(r.optionalCallSignatureCache[i]=V0(r,n))}function V0(r,n){e.Debug.assert(n===8||n===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var i=Cg(r);return i.flags|=n,i}function sm(r,n){if(G(r)){var i=r.parameters.length-1,a=Li(r.parameters[i]);if(Xa(a))return[s(a,i)];if(!n&&a.flags&1048576&&e.every(a.types,Xa))return e.map(a.types,function(l){return s(l,i)})}return[r.parameters];function s(l,g){var W=No(l),ce=l.target.labeledElementDeclarations,ke=e.map(W,function(rr,$e){var ar=!!ce&&v0(ce[$e]),ir=ar||Cm(r,g+$e,l),Wr=l.target.elementFlags[$e],sn=Wr&12?32768:Wr&2?16384:0,In=go(1,ir,sn);return In.type=Wr&4?ic(rr):rr,In});return e.concatenate(r.parameters.slice(0,g),ke)}}function q0(r){var n=cc(r),i=_a(n,1),a=e.getClassLikeDeclarationOfSymbol(r.symbol),s=!!a&&e.hasSyntacticModifier(a,256);if(i.length===0)return[Bl(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,s?4:0)];for(var l=hg(r),g=e.isInJSFile(l),W=dh(l),ce=e.length(W),ke=[],rr=0,$e=i;rr<$e.length;rr++){var ar=$e[rr],ir=ul(ar.typeParameters),Wr=e.length(ar.typeParameters);if(g||ce>=ir&&ce<=Wr){var sn=Wr?sh(ar,gd(W,ar.typeParameters,ir,g)):Cg(ar);sn.typeParameters=r.localTypeParameters,sn.resolvedReturnType=r,sn.flags=s?sn.flags|4:sn.flags&~4,ke.push(sn)}}return ke}function Bm(r,n,i,a,s){for(var l=0,g=r;l<g.length;l++){var W=g[l];if(oy(W,n,i,a,s,i?b6:Xm))return W}}function qy(r,n,i){if(n.typeParameters){if(i>0)return;for(var a=1;a<r.length;a++)if(!Bm(r[a],n,!1,!1,!1))return;return[n]}for(var s,a=0;a<r.length;a++){var l=a===i?n:Bm(r[a],n,!0,!1,!0);if(!l)return;s=e.appendIfUnique(s,l)}return s}function Mv(r){for(var n,i,a=0;a<r.length;a++){if(r[a].length===0)return e.emptyArray;r[a].length>1&&(i=i===void 0?a:-1);for(var s=0,l=r[a];s<l.length;s++){var g=l[s];if(!n||!Bm(n,g,!1,!1,!0)){var W=qy(r,g,a);if(W){var ce=g;if(W.length>1){var ke=g.thisParameter,rr=e.forEach(W,function(ei){return ei.thisParameter});if(rr){var $e=ro(e.mapDefined(W,function(ei){return ei.thisParameter&&Li(ei.thisParameter)}));ke=og(rr,$e)}ce=Fv(g,W),ce.thisParameter=ke}(n||(n=[])).push(ce)}}}}if(!e.length(n)&&i!==-1){for(var ar=r[i!==void 0?i:0],ir=ar.slice(),Wr=function(ei){if(ei!==ar){var Ti=ei[0];if(e.Debug.assert(!!Ti,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),ir=!!Ti.typeParameters&&e.some(ir,function(Ri){return!!Ri.typeParameters&&!Gy(Ti.typeParameters,Ri.typeParameters)})?void 0:e.map(ir,function(Ri){return Hy(Ri,Ti)}),!ir)return"break"}},sn=0,In=r;sn<In.length;sn++){var Sn=In[sn],Kn=Wr(Sn);if(Kn==="break")break}n=ir}return n||e.emptyArray}function Gy(r,n){if(e.length(r)!==e.length(n))return!1;if(!r||!n)return!0;for(var i=jc(n,r),a=0;a<r.length;a++){var s=r[a],l=n[a];if(s!==l&&!Lf(_m(s)||_r,ra(_m(l)||_r,i)))return!1}return!0}function G0(r,n,i){if(!r||!n)return r||n;var a=ro([Li(r),ra(Li(n),i)]);return og(r,a)}function H0(r,n,i){for(var a=au(r),s=au(n),l=a>=s?r:n,g=l===r?n:r,W=l===r?a:s,ce=Kl(r)||Kl(n),ke=ce&&!Kl(l),rr=new Array(W+(ke?1:0)),$e=0;$e<W;$e++){var ar=jp(l,$e);l===n&&(ar=ra(ar,i));var ir=jp(g,$e)||_r;g===n&&(ir=ra(ir,i));var Wr=ro([ar,ir]),sn=ce&&!ke&&$e===W-1,In=$e>=Hl(l)&&$e>=Hl(g),Sn=$e>=a?void 0:Cm(r,$e),Kn=$e>=s?void 0:Cm(n,$e),ei=Sn===Kn?Sn:Sn?Kn?void 0:Sn:Kn,Ti=go(1|(In&&!sn?16777216:0),ei||"arg".concat($e));Ti.type=sn?ic(Wr):Wr,rr[$e]=Ti}if(ke){var Ri=go(1,"args");Ri.type=ic(fl(g,W)),g===n&&(Ri.type=ra(Ri.type,i)),rr[W]=Ri}return rr}function Hy(r,n){var i=r.typeParameters||n.typeParameters,a;r.typeParameters&&n.typeParameters&&(a=jc(n.typeParameters,r.typeParameters));var s=r.declaration,l=H0(r,n,a),g=G0(r.thisParameter,n.thisParameter,a),W=Math.max(r.minArgumentCount,n.minArgumentCount),ce=Bl(s,i,g,l,void 0,void 0,W,(r.flags|n.flags)&39);return ce.compositeKind=1048576,ce.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[n]),a&&(ce.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?xd(r.mapper,a):a),ce}function Ky(r){var n=hs(r[0]);if(n){for(var i=[],a=function(W){var ce=W.keyType;e.every(r,function(ke){return!!Wu(ke,ce)})&&i.push(Ul(ce,Ot(e.map(r,function(ke){return cl(ke,ce)})),e.some(r,function(ke){return Wu(ke,ce).isReadonly})))},s=0,l=n;s<l.length;s++){var g=l[s];a(g)}return i}return e.emptyArray}function Lv(r){var n=Mv(e.map(r.types,function(s){return s===fi?[To]:_a(s,0)})),i=Mv(e.map(r.types,function(s){return _a(s,1)})),a=Ky(r.types);Hc(r,Oe,n,i,a)}function Wd(r,n){return r?n?ro([r,n]):r:n}function Rv(r){var n=e.countWhere(r,function(s){return _a(s,1).length>0}),i=e.map(r,vg);if(n>0&&n===e.countWhere(i,function(s){return s})){var a=i.indexOf(!0);i[a]=!1}return i}function Qy(r,n,i,a){for(var s=[],l=0;l<n.length;l++)l===a?s.push(r):i[l]&&s.push(Ao(_a(n[l],1)[0]));return ro(s)}function K0(r){for(var n,i,a,s=r.types,l=Rv(s),g=e.countWhere(l,function(ke){return ke}),W=function(ke){var rr=r.types[ke];if(!l[ke]){var $e=_a(rr,1);$e.length&&g>0&&($e=e.map($e,function(ar){var ir=Cg(ar);return ir.resolvedReturnType=Qy(Ao(ar),s,l,ke),ir})),i=Bv(i,$e)}n=Bv(n,_a(rr,0)),a=e.reduceLeft(hs(rr),function(ar,ir){return Xy(ar,ir,!1)},a)},ce=0;ce<s.length;ce++)W(ce);Hc(r,Oe,n||e.emptyArray,i||e.emptyArray,a||e.emptyArray)}function Bv(r,n){for(var i=function(g){(!r||e.every(r,function(W){return!oy(W,g,!1,!1,!1,Xm)}))&&(r=e.append(r,g))},a=0,s=n;a<s.length;a++){var l=s[a];i(l)}return r}function Xy(r,n,i){if(r)for(var a=0;a<r.length;a++){var s=r[a];if(s.keyType===n.keyType)return r[a]=Ul(s.keyType,i?Ot([s.type,n.type]):ro([s.type,n.type]),i?s.isReadonly||n.isReadonly:s.isReadonly&&n.isReadonly),r}return e.append(r,n)}function Tg(r){if(r.target){Hc(r,Oe,e.emptyArray,e.emptyArray,e.emptyArray);var n=iu(Mf(r.target),r.mapper,!1),i=xh(_a(r.target,0),r.mapper),a=xh(_a(r.target,1),r.mapper),s=dS(hs(r.target),r.mapper);Hc(r,n,i,a,s);return}var l=Ya(r.symbol);if(l.flags&2048){Hc(r,Oe,e.emptyArray,e.emptyArray,e.emptyArray);var g=pf(l),i=Gd(g.get("__call")),a=Gd(g.get("__new")),W=_b(l);Hc(r,g,i,a,W);return}var ce=Oe,ke;if(l.exports&&(ce=Ac(l),l===pn)){var rr=new e.Map;ce.forEach(function(In){var Sn;!(In.flags&418)&&!(In.flags&512&&((Sn=In.declarations)===null||Sn===void 0?void 0:Sn.length)&&e.every(In.declarations,e.isAmbientModule))&&rr.set(In.escapedName,In)}),ce=rr}var $e;if(Hc(r,ce,e.emptyArray,e.emptyArray,e.emptyArray),l.flags&32){var ar=_u(l),ir=cc(ar);ir.flags&(524288|2097152|8650752)?(ce=e.createSymbolTable(Sp(ce)),Rl(ce,vo(ir))):ir===Te&&($e=Ul(yn,Te,!1))}var Wr=f1(ce);if(Wr?ke=_1(Wr):($e&&(ke=e.append(ke,$e)),l.flags&384&&(nt(l).flags&32||e.some(r.properties,function(In){return!!(Li(In).flags&296)}))&&(ke=e.append(ke,yi))),Hc(r,ce,e.emptyArray,e.emptyArray,ke||e.emptyArray),l.flags&(16|8192)&&(r.callSignatures=Gd(l)),l.flags&32){var sn=_u(l),a=l.members?Gd(l.members.get("__constructor")):e.emptyArray;l.flags&16&&(a=e.addRange(a.slice(),e.mapDefined(r.callSignatures,function(Sn){return Sl(Sn.declaration)?Bl(Sn.declaration,Sn.typeParameters,Sn.thisParameter,Sn.parameters,sn,void 0,Sn.minArgumentCount,Sn.flags&39):void 0}))),a.length||(a=q0(sn)),r.constructSignatures=a}}function Zy(r,n,i){return ra(r,jc([n.indexType,n.objectType],[Vl(0),zl([i])]))}function Q0(r){for(var n=Wu(r.source,yn),i=sl(r.mappedType),a=!(i&1),s=i&4?0:16777216,l=n?[Ul(yn,Wh(n.type,r.mappedType,r.constraintType),a&&n.isReadonly)]:e.emptyArray,g=e.createSymbolTable(),W=0,ce=vo(r.source);W<ce.length;W++){var ke=ce[W],rr=8192|(a&&_l(ke)?8:0),$e=go(4|ke.flags&s,ke.escapedName,rr);if($e.declarations=ke.declarations,$e.nameType=Qt(ke).nameType,$e.propertyType=Li(ke),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var ar=r.constraintType.type.objectType,ir=Zy(r.mappedType,r.constraintType.type,ar);$e.mappedType=ir,$e.constraintType=Wl(ar)}else $e.mappedType=r.mappedType,$e.constraintType=r.constraintType;g.set(ke.escapedName,$e)}Hc(r,g,e.emptyArray,e.emptyArray,l)}function cm(r){if(r.flags&4194304){var n=re(r.type);return vm(n)?Bb(n):Wl(n)}if(r.flags&16777216){if(r.root.isDistributive){var i=r.checkType,a=cm(i);if(a!==i)return W1(r,ig(r.root.checkType,a,r.mapper))}return r}if(r.flags&1048576)return Qo(r,cm);if(r.flags&2097152){var s=r.types;return s.length===2&&!!(s[0].flags&(4|8|64))&&s[1]===Ua?r:ro(e.sameMap(r.types,cm))}return r}function Jv(r){return e.getCheckFlags(r)&4096}function um(r,n,i,a){for(var s=0,l=vo(r);s<l.length;s++){var g=l[s];a(pm(g,n))}if(r.flags&1)a(yn);else for(var W=0,ce=hs(r);W<ce.length;W++){var ke=ce[W];(!i||ke.keyType.flags&(4|134217728))&&a(ke.keyType)}}function X0(r){var n=e.createSymbolTable(),i;Hc(r,Oe,e.emptyArray,e.emptyArray,e.emptyArray);var a=Pu(r),s=zu(r),l=Ff(r.target||r),g=Jl(r.target||r),W=re(Vd(r)),ce=sl(r),ke=ln?128:8576;Eg(r)?um(W,ke,ln,rr):Rp(cm(s),rr),Hc(r,n,e.emptyArray,e.emptyArray,i||e.emptyArray);function rr(ar){var ir=l?ra(l,Qm(r.mapper,a,ar)):ar;Rp(ir,function(Wr){return $e(ar,Wr)})}function $e(ar,ir){if(hu(ir)){var Wr=Du(ir),sn=n.get(Wr);if(sn)sn.nameType=Ot([sn.nameType,ir]),sn.keyType=Ot([sn.keyType,ar]);else{var In=hu(ar)?Zt(W,Du(ar)):void 0,Sn=!!(ce&4||!(ce&8)&&In&&In.flags&16777216),Kn=!!(ce&1||!(ce&2)&&In&&_l(In)),ei=Re&&!Sn&&In&&In.flags&16777216,Ti=In?Jv(In):0,Ri=go(4|(Sn?16777216:0),Wr,Ti|262144|(Kn?8:0)|(ei?524288:0));Ri.mappedType=r,Ri.nameType=ir,Ri.keyType=ar,In&&(Ri.syntheticOrigin=In,Ri.declarations=l?void 0:In.declarations),n.set(Wr,Ri)}}else if(ch(ir)||ir.flags&(1|32)){var pt=ir.flags&(1|4)?yn:ir.flags&(8|32)?Hn:ir,rt=ra(g,Qm(r.mapper,a,ar)),Da=Ul(pt,rt,!!(ce&1));i=Xy(i,Da,!0)}}}function Z0(r){if(!r.type){var n=r.mappedType;if(!$i(r,0))return n.containsError=!0,ue;var i=Jl(n.target||n),a=Qm(n.mapper,Pu(n),r.keyType),s=ra(i,a),l=Re&&r.flags&16777216&&!rs(s,32768|16384)?u_(s,!0):r.checkFlags&524288?c2(s):s;wt()||(Zr(Xe,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Xt(r),Oi(n)),l=ue),r.type=l}return r.type}function Pu(r){return r.typeParameter||(r.typeParameter=Et(zi(r.declaration.typeParameter)))}function zu(r){return r.constraintType||(r.constraintType=rc(Pu(r))||ue)}function Ff(r){return r.declaration.nameType?r.nameType||(r.nameType=ra(zt(r.declaration.nameType),r.mapper)):void 0}function Jl(r){return r.templateType||(r.templateType=r.declaration.type?ra(fu(zt(r.declaration.type),!0,!!(sl(r)&4)),r.mapper):ue)}function Yy(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function Eg(r){var n=Yy(r);return n.kind===195&&n.operator===141}function Vd(r){if(!r.modifiersType)if(Eg(r))r.modifiersType=ra(zt(Yy(r).type),r.mapper);else{var n=I1(r.declaration),i=zu(n),a=i&&i.flags&262144?rc(i):i;r.modifiersType=a&&a.flags&4194304?ra(a.type,r.mapper):_r}return r.modifiersType}function sl(r){var n=r.declaration;return(n.readonlyToken?n.readonlyToken.kind===40?2:1:0)|(n.questionToken?n.questionToken.kind===40?8:4:0)}function $y(r){var n=sl(r);return n&8?-1:n&4?1:0}function jv(r){var n=$y(r),i=Vd(r);return n||(Xc(i)?$y(i):0)}function Y0(r){return!!(e.getObjectFlags(r)&32&&sl(r)&4)}function Xc(r){if(e.getObjectFlags(r)&32){var n=zu(r);if(vd(n))return!0;var i=Ff(r);if(i&&vd(ra(i,Yd(Pu(r),n))))return!0}return!1}function Iu(r){return r.members||(r.flags&524288?r.objectFlags&4?z0(r):r.objectFlags&3?U0(r):r.objectFlags&1024?Q0(r):r.objectFlags&16?Tg(r):r.objectFlags&32?X0(r):e.Debug.fail("Unhandled object type "+e.Debug.formatObjectFlags(r.objectFlags)):r.flags&1048576?Lv(r):r.flags&2097152?K0(r):e.Debug.fail("Unhandled type "+e.Debug.formatTypeFlags(r.flags))),r}function Mf(r){return r.flags&524288?Iu(r).properties:e.emptyArray}function w_(r,n){if(r.flags&524288){var i=Iu(r),a=i.members.get(n);if(a&&Il(a))return a}}function kg(r){if(!r.resolvedProperties){for(var n=e.createSymbolTable(),i=0,a=r.types;i<a.length;i++){for(var s=a[i],l=0,g=vo(s);l<g.length;l++){var W=g[l];if(!n.has(W.escapedName)){var ce=it(r,W.escapedName);ce&&n.set(W.escapedName,ce)}}if(r.flags&1048576&&hs(s).length===0)break}r.resolvedProperties=Zf(n)}return r.resolvedProperties}function vo(r){return r=lr(r),r.flags&3145728?kg(r):Mf(r)}function eh(r,n){r=lr(r),r.flags&3670016&&Iu(r).members.forEach(function(i,a){wl(i,a)&&n(i,a)})}function $0(r,n){var i=n.properties;return i.some(function(a){var s=a.name&&L_(a.name),l=s&&hu(s)?Du(s):void 0,g=l===void 0?void 0:Na(r,l);return!!g&&Bg(g)&&!io(lg(a),g)})}function e1(r){var n=Ot(r);if(!(n.flags&1048576))return KD(n);for(var i=e.createSymbolTable(),a=0,s=r;a<s.length;a++)for(var l=s[a],g=0,W=KD(l);g<W.length;g++){var ce=W[g].escapedName;if(!i.has(ce)){var ke=Kr(n,ce);ke&&i.set(ce,ke)}}return e.arrayFrom(i.values())}function a_(r){return r.flags&262144?rc(r):r.flags&8388608?r1(r):r.flags&16777216?i1(r):uc(r)}function rc(r){return Ag(r)?_m(r):void 0}function r1(r){return Ag(r)?n1(r):void 0}function Uv(r){var n=s_(r,!1);return n!==r?n:a_(r)}function n1(r){if(c(r))return yh(r.objectType,r.indexType);var n=Uv(r.indexType);if(n&&n!==r.indexType){var i=yd(r.objectType,n,r.accessFlags);if(i)return i}var a=Uv(r.objectType);if(a&&a!==r.objectType)return yd(a,r.indexType,r.accessFlags)}function zv(r){if(!r.resolvedDefaultConstraint){var n=Qk(r),i=bd(r);r.resolvedDefaultConstraint=Ba(n)?i:Ba(i)?n:Ot([n,i])}return r.resolvedDefaultConstraint}function Wv(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var n=s_(r.checkType,!1),i=n===r.checkType?a_(n):n;if(i&&i!==r.checkType){var a=W1(r,ig(r.root.checkType,i,r.mapper));if(!(a.flags&131072))return a}}}function rh(r){return Wv(r)||zv(r)}function i1(r){return Ag(r)?rh(r):void 0}function t1(r,n){for(var i,a=!1,s=0,l=r;s<l.length;s++){var g=l[s];if(g.flags&465829888){for(var W=a_(g);W&&W.flags&(262144|4194304|16777216);)W=a_(W);W&&(i=e.append(i,W),n&&(i=e.append(i,g)))}else(g.flags&469892092||$d(g))&&(a=!0)}if(i&&(n||a)){if(a)for(var ce=0,ke=r;ce<ke.length;ce++){var g=ke[ce];(g.flags&469892092||$d(g))&&(i=e.append(i,g))}return iy(ro(i),!1)}}function uc(r){if(r.flags&(58982400|3145728|134217728|268435456)){var n=Vv(r);return n!==Aa&&n!==Vi?n:void 0}return r.flags&4194304?On:void 0}function O_(r){return uc(r)||r}function Ag(r){return Vv(r)!==Vi}function Vv(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var n=[];return r.resolvedBaseConstraint=Qc(i(r),r);function i(l){if(!l.immediateBaseConstraint){if(!$i(l,4))return Vi;var g=void 0,W=$m(l);if((n.length<10||n.length<50&&!e.contains(n,W))&&(n.push(W),g=s(s_(l,!1)),n.pop()),!wt()){if(l.flags&262144){var ce=d1(l);if(ce){var ke=Zr(ce,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Oi(l));Xe&&!e.isNodeDescendantOf(ce,Xe)&&!e.isNodeDescendantOf(Xe,ce)&&e.addRelatedInfo(ke,e.createDiagnosticForNode(Xe,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}g=Vi}l.immediateBaseConstraint=g||Aa}return l.immediateBaseConstraint}function a(l){var g=i(l);return g!==Aa&&g!==Vi?g:void 0}function s(l){if(l.flags&262144){var g=_m(l);return l.isThisType||!g?g:a(g)}if(l.flags&3145728){for(var W=l.types,ce=[],ke=!1,rr=0,$e=W;rr<$e.length;rr++){var ar=$e[rr],ir=a(ar);ir?(ir!==ar&&(ke=!0),ce.push(ir)):ke=!0}return ke?l.flags&1048576&&ce.length===W.length?Ot(ce):l.flags&2097152&&ce.length?ro(ce):void 0:l}if(l.flags&4194304)return On;if(l.flags&134217728){var W=l.types,Wr=e.mapDefined(W,a);return Wr.length===W.length?wp(l.texts,Wr):yn}if(l.flags&268435456){var g=a(l.type);return g&&g!==l.type?eg(l.symbol,g):yn}if(l.flags&8388608){if(c(l))return a(yh(l.objectType,l.indexType));var sn=a(l.objectType),In=a(l.indexType),Sn=sn&&In&&yd(sn,In,l.accessFlags);return Sn&&a(Sn)}if(l.flags&16777216){var g=rh(l);return g&&a(g)}return l.flags&33554432?a(m1(l)):l}}function nh(r){return r.resolvedApparentType||(r.resolvedApparentType=Qc(r,r,!0))}function qv(r){if(r.default)r.default===Xi&&(r.default=Vi);else if(r.target){var n=qv(r.target);r.default=n?ra(n,r.mapper):Aa}else{r.default=Xi;var i=r.symbol&&e.forEach(r.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),a=i?zt(i):Aa;r.default===Xi&&(r.default=a)}return r.default}function pd(r){var n=qv(r);return n!==Aa&&n!==Vi?n:void 0}function a1(r){return qv(r)!==Vi}function ih(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(n){return e.isTypeParameterDeclaration(n)&&n.default}))}function th(r){return r.resolvedApparentType||(r.resolvedApparentType=o1(r))}function o1(r){var n=Eh(r);if(n&&!r.declaration.nameType){var i=rc(n);if(i&&Fp(i))return ra(r,ig(n,i,r.mapper))}return r}function c(r){var n;return!!(r.flags&8388608&&e.getObjectFlags(n=r.objectType)&32&&!Xc(n)&&vd(r.indexType)&&!(sl(n)&8)&&!n.declaration.nameType)}function re(r){var n=r.flags&465829888?uc(r)||_r:r;return e.getObjectFlags(n)&32?th(n):n.flags&2097152?nh(n):n.flags&402653316?Ia:n.flags&296?bs:n.flags&2112?ck():n.flags&528?ds:n.flags&12288?Nb():n.flags&67108864?Zi:n.flags&4194304?On:n.flags&2&&!Re?Zi:n}function lr(r){return ct(re(ct(r)))}function Kr(r,n,i){for(var a,s,l,g,W,ce=r.flags&1048576,ke,rr=4,$e=ce?0:8,ar=!1,ir=0,Wr=r.types;ir<Wr.length;ir++){var sn=Wr[ir],In=re(sn);if(!(ca(In)||In.flags&131072)){var Sn=Zt(In,n,i),Kn=Sn?e.getDeclarationModifierFlagsFromSymbol(Sn):0;if(Sn){if(Sn.flags&106500&&(ke!=null||(ke=ce?0:16777216),ce?ke|=Sn.flags&16777216:ke&=Sn.flags),!l)l=Sn;else if(Sn!==l){var ei=(Xg(Sn)||Sn)===(Xg(l)||l);if(ei&&n2(l,Sn,function(ut,Pt){return ut===Pt?-1:0})===-1)ar=!!l.parent&&!!e.length(df(l.parent));else{g||(g=new e.Map,g.set(h(l),l));var Ti=h(Sn);g.has(Ti)||g.set(Ti,Sn)}}ce&&_l(Sn)?$e|=8:!ce&&!_l(Sn)&&($e&=~8),$e|=(Kn&24?0:256)|(Kn&16?512:0)|(Kn&8?1024:0)|(Kn&32?2048:0),Z2(Sn)||(rr=2)}else if(ce){var Ri=!zd(n)&&Ip(In,n);Ri?($e|=32|(Ri.isReadonly?8:0),W=e.append(W,Xa(In)?ev(In)||zr:Ri.type)):np(In)&&!(e.getObjectFlags(In)&2097152)?($e|=32,W=e.append(W,zr)):$e|=16}}}if(!(!l||ce&&(g||$e&48)&&$e&(1024|512)&&!(g&&Gi(e.arrayFrom(g.values()))))){if(!g&&!($e&16)&&!W)if(ar){var pt=og(l,l.type);return pt.parent=(s=(a=l.valueDeclaration)===null||a===void 0?void 0:a.symbol)===null||s===void 0?void 0:s.parent,pt.containingType=r,pt.mapper=l.mapper,pt}else return l;for(var rt=g?e.arrayFrom(g.values()):[l],Da,St,ba,Ta=[],wa,So,xo=!1,uo=0,sa=rt;uo<sa.length;uo++){var Sn=sa[uo];So?Sn.valueDeclaration&&Sn.valueDeclaration!==So&&(xo=!0):So=Sn.valueDeclaration,Da=e.addRange(Da,Sn.declarations);var In=Li(Sn);St||(St=In,ba=Qt(Sn).nameType);var si=Rs(Sn);wa||si!==In?wa=e.append(wa||Ta.slice(),si):In!==St&&($e|=64),(Bg(In)||Og(In)||In===dt)&&($e|=128),In.flags&131072&&In!==dt&&($e|=131072),Ta.push(In)}e.addRange(Ta,W);var Rn=go(4|(ke!=null?ke:0),n,rr|$e);return Rn.containingType=r,!xo&&So&&(Rn.valueDeclaration=So,So.symbol.parent&&(Rn.parent=So.symbol.parent)),Rn.declarations=Da,Rn.nameType=ba,Ta.length>2?(Rn.checkFlags|=65536,Rn.deferralParent=r,Rn.deferralConstituents=Ta,Rn.deferralWriteConstituents=wa):(Rn.type=ce?Ot(Ta):ro(Ta),wa&&(Rn.writeType=ce?Ot(wa):ro(wa))),Rn}}function Gn(r,n,i){var a,s,l=((a=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||a===void 0?void 0:a.get(n))||!i?(s=r.propertyCache)===null||s===void 0?void 0:s.get(n):void 0;if(!l&&(l=Kr(r,n,i),l)){var g=i?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());g.set(n,l)}return l}function Gi(r){for(var n,i=function(W){if(!W.declarations)return{value:void 0};if(!n)return n=new e.Set(W.declarations),"continue";if(n.forEach(function(ce){e.contains(W.declarations,ce)||n.delete(ce)}),n.size===0)return{value:void 0}},a=0,s=r;a<s.length;a++){var l=s[a],g=i(l);if(typeof g=="object")return g.value}return n}function it(r,n,i){var a=Gn(r,n,i);return a&&!(e.getCheckFlags(a)&16)?a:void 0}function ct(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=ha(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(e.some(kg(r),ta)?33554432:0)),r.objectFlags&33554432?we:r):r}function ha(r){var n=e.sameMap(r.types,ct);if(n===r.types)return r;var i=Ot(n);return i.flags&1048576&&(i.resolvedReducedType=i),i}function ta(r){return Po(r)||es(r)}function Po(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&(192|131072))==192&&!!(Li(r).flags&131072)}function es(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function nc(r,n){if(n.flags&2097152&&e.getObjectFlags(n)&33554432){var i=e.find(kg(n),Po);if(i)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Oi(n,void 0,536870912),Xt(i));var a=e.find(kg(n),es);if(a)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Oi(n,void 0,536870912),Xt(a))}return r}function Zt(r,n,i,a){if(r=lr(r),r.flags&524288){var s=Iu(r),l=s.members.get(n);if(l&&Il(l,a))return l;if(i)return;var g=s===ho?fi:s.callSignatures.length?Nt:s.constructSignatures.length?Gt:void 0;if(g){var W=w_(g,n);if(W)return W}return w_(di,n)}if(r.flags&3145728)return it(r,n,i)}function Ts(r,n){if(r.flags&3670016){var i=Iu(r);return n===0?i.callSignatures:i.constructSignatures}return e.emptyArray}function _a(r,n){return Ts(lr(r),n)}function vs(r,n){return e.find(r,function(i){return i.keyType===n})}function hl(r,n){for(var i,a,s,l=0,g=r;l<g.length;l++){var W=g[l];W.keyType===yn?i=W:jl(n,W.keyType)&&(a?(s||(s=[a])).push(W):a=W)}return s?Ul(_r,ro(e.map(s,function(ce){return ce.type})),e.reduceLeft(s,function(ce,ke){return ce&&ke.isReadonly},!0)):a||(i&&jl(n,yn)?i:void 0)}function jl(r,n){return io(r,n)||n===yn&&io(r,Hn)||n===Hn&&(r===cn||!!(r.flags&128)&&e.isNumericLiteralName(r.value))}function Zp(r){if(r.flags&3670016){var n=Iu(r);return n.indexInfos}return e.emptyArray}function hs(r){return Zp(lr(r))}function Wu(r,n){return vs(hs(r),n)}function cl(r,n){var i;return(i=Wu(r,n))===null||i===void 0?void 0:i.type}function Jm(r,n){return hs(r).filter(function(i){return jl(n,i.keyType)})}function Ng(r,n){return hl(hs(r),n)}function Ip(r,n){return Ng(r,zd(n)?Pe:Ou(e.unescapeLeadingUnderscores(n)))}function ah(r){for(var n,i,a=0,s=e.getEffectiveTypeParameterDeclarations(r);a<s.length;a++){var l=s[a];i=e.appendIfUnique(i,Et(l.symbol))}return(i==null?void 0:i.length)?i:e.isFunctionDeclaration(r)?(n=$p(r))===null||n===void 0?void 0:n.typeParameters:void 0}function Gv(r){var n=[];return r.forEach(function(i,a){Nf(a)||n.push(i)}),n}function Yp(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===319||e.getJSDocParameterTags(r).some(function(n){var i=n.isBracketed,a=n.typeExpression;return i||!!a&&a.type.kind===319}))}function jm(r,n){if(!e.isExternalModuleNameRelative(r)){var i=Wc(rn,'"'+r+'"',512);return i&&n?Ya(i):i}}function qd(r){if(e.hasQuestionToken(r)||Um(r)||Yp(r))return!0;if(r.initializer){var n=Vu(r.parent),i=r.parent.parameters.indexOf(r);return e.Debug.assert(i>=0),i>=Hl(n,1|2)}var a=e.getImmediatelyInvokedFunctionExpression(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=a.arguments.length:!1}function Hv(r){return e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)&&r.questionToken}function Um(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var n=r.isBracketed,i=r.typeExpression;return n||!!i&&i.type.kind===319}function lm(r,n,i,a){return{kind:r,parameterName:n,parameterIndex:i,type:a}}function ul(r){var n=0;if(r)for(var i=0;i<r.length;i++)ih(r[i])||(n=i+1);return n}function gd(r,n,i,a){var s=e.length(n);if(!s)return[];var l=e.length(r);if(a||l>=i&&l<=s){for(var g=r?r.slice():[],W=l;W<s;W++)g[W]=ue;for(var ce=C2(a),W=l;W<s;W++){var ke=pd(n[W]);a&&ke&&(Lf(ke,_r)||Lf(ke,Zi))&&(ke=Te),g[W]=ke?ra(ke,jc(n,g)):ce}return g.length=n.length,g}return r&&r.slice()}function Vu(r){var n=At(r);if(!n.resolvedSignature){var i=[],a=0,s=0,l=void 0,g=!1,W=e.getImmediatelyInvokedFunctionExpression(r),ce=e.isJSDocConstructSignature(r),ke=!W&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);ke&&(a|=32);for(var rr=ce?1:0;rr<r.parameters.length;rr++){var $e=r.parameters[rr],ar=$e.symbol,ir=e.isJSDocParameterTag($e)?$e.typeExpression&&$e.typeExpression.type:$e.type;if(ar&&!!(ar.flags&4)&&!e.isBindingPattern($e.name)){var Wr=is($e,ar.escapedName,111551,void 0,void 0,!1);ar=Wr}rr===0&&ar.escapedName==="this"?(g=!0,l=$e.symbol):i.push(ar),ir&&ir.kind===198&&(a|=2);var sn=Um($e)||$e.initializer||$e.questionToken||e.isRestParameter($e)||W&&i.length>W.arguments.length&&!ir||Yp($e);sn||(s=i.length)}if((r.kind===174||r.kind===175)&&Pp(r)&&(!g||!l)){var In=r.kind===174?175:174,Sn=e.getDeclarationOfKind(zi(r),In);Sn&&(l=Kc(Sn))}var Kn=r.kind===173?_u(Ya(r.parent.symbol)):void 0,ei=Kn?Kn.localTypeParameters:ah(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&oh(r,i))&&(a|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,256)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,256))&&(a|=4),n.resolvedSignature=Bl(r,ei,l,i,void 0,void 0,s,a)}return n.resolvedSignature}function oh(r,n){if(e.isJSDocSignature(r)||!c1(r))return!1;var i=e.lastOrUndefined(r.parameters),a=i?e.getJSDocParameterTags(i):e.getJSDocTags(r).filter(e.isJSDocParameterTag),s=e.firstDefined(a,function(g){return g.typeExpression&&e.isJSDocVariadicType(g.typeExpression.type)?g.typeExpression.type:void 0}),l=go(3,"args",32768);return s?l.type=ic(zt(s.type)):(l.checkFlags|=65536,l.deferralParent=we,l.deferralConstituents=[Es],l.deferralWriteConstituents=[Es]),s&&n.pop(),n.push(l),!0}function $p(r){if(!!(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r))){var n=e.getJSDocTypeTag(r);return(n==null?void 0:n.typeExpression)&&cg(zt(n.typeExpression))}}function s1(r,n){var i=$p(r);if(!!i){var a=r.parameters.indexOf(n);return n.dotDotDotToken?fv(i,a):fl(i,a)}}function ME(r){var n=$p(r);return n&&Ao(n)}function c1(r){var n=At(r);return n.containsArgumentsReference===void 0&&(n.flags&8192?n.containsArgumentsReference=!0:n.containsArgumentsReference=i(r.body)),n.containsArgumentsReference;function i(a){if(!a)return!1;switch(a.kind){case 79:return a.escapedText===ve.escapedName&&zy(a)===ve;case 169:case 171:case 174:case 175:return a.name.kind===164&&i(a.name);case 208:case 209:return i(a.expression);case 299:return i(a.initializer);default:return!e.nodeStartsNewLexicalEnvironment(a)&&!e.isPartOfTypeNode(a)&&!!e.forEachChild(a,i)}}}function Gd(r){if(!r||!r.declarations)return e.emptyArray;for(var n=[],i=0;i<r.declarations.length;i++){var a=r.declarations[i];if(!!e.isFunctionLike(a)){if(i>0&&a.body){var s=r.declarations[i-1];if(a.parent===s.parent&&a.kind===s.kind&&a.pos===s.end)continue}n.push(!e.isFunctionExpressionOrArrowFunction(a)&&!e.isObjectLiteralMethod(a)&&$p(a)||Vu(a))}}return n}function cb(r){var n=Ms(r,r);if(n){var i=Us(n);if(i)return Li(i)}return Te}function Hd(r){if(r.thisParameter)return Li(r.thisParameter)}function qu(r){if(!r.resolvedTypePredicate){if(r.target){var n=qu(r.target);r.resolvedTypePredicate=n?l6(n,r.mapper):Ho}else if(r.compositeSignatures)r.resolvedTypePredicate=Sk(r.compositeSignatures,r.compositeKind)||Ho;else{var i=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),a=void 0;if(!i){var s=$p(r.declaration);s&&r!==s&&(a=qu(s))}r.resolvedTypePredicate=i&&e.isTypePredicateNode(i)?LE(i,r):a||Ho}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Ho?void 0:r.resolvedTypePredicate}function LE(r,n){var i=r.parameterName,a=r.type&&zt(r.type);return i.kind===194?lm(r.assertsModifier?2:0,void 0,void 0,a):lm(r.assertsModifier?3:1,i.escapedText,e.findIndex(n.parameters,function(s){return s.escapedName===i.escapedText}),a)}function ub(r,n,i){return n!==2097152?Ot(r,i):ro(r)}function Ao(r){if(!r.resolvedReturnType){if(!$i(r,3))return ue;var n=r.target?ra(Ao(r.target),r.mapper):r.compositeSignatures?ra(ub(e.map(r.compositeSignatures,Ao),r.compositeKind,2),r.mapper):Pg(r.declaration)||(e.nodeIsMissing(r.declaration.body)?Te:y0(r.declaration));if(r.flags&8?n=jS(n):r.flags&16&&(n=u_(n)),!wt()){if(r.declaration){var i=e.getEffectiveReturnTypeNode(r.declaration);if(i)Zr(i,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Ue){var a=r.declaration,s=e.getNameOfDeclaration(a);s?Zr(s,e.Diagnostics._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,e.declarationNameToString(s)):Zr(a,e.Diagnostics.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)}}n=Te}r.resolvedReturnType=n}return r.resolvedReturnType}function Pg(r){if(r.kind===173)return _u(Ya(r.parent.symbol));if(e.isJSDocConstructSignature(r))return zt(r.parameters[0].type);var n=e.getEffectiveReturnTypeNode(r);if(n)return zt(n);if(r.kind===174&&Pp(r)){var i=e.isInJSFile(r)&&cd(r);if(i)return i;var a=e.getDeclarationOfKind(zi(r),175),s=vu(a);if(s)return s}return ME(r)}function u1(r){return!r.resolvedReturnType&&kt(r,3)>=0}function RE(r){return lb(r)||Te}function lb(r){if(G(r)){var n=Li(r.parameters[r.parameters.length-1]),i=Xa(n)?ev(n):n;return i&&cl(i,Hn)}}function zm(r,n,i,a){var s=l1(r,gd(n,r.typeParameters,ul(r.typeParameters),i));if(a){var l=pC(Ao(s));if(l){var g=Cg(l);g.typeParameters=a;var W=Cg(s);return W.resolvedReturnType=fm(g),W}}return s}function l1(r,n){var i=r.instantiations||(r.instantiations=new e.Map),a=wu(n),s=i.get(a);return s||i.set(a,s=sh(r,n)),s}function sh(r,n){return Lg(r,BE(r,n),!0)}function BE(r,n){return jc(r.typeParameters,n)}function Wm(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=JE(r)):r}function JE(r){return Lg(r,pS(r.typeParameters),!0)}function jE(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=UE(r)):r}function UE(r){return zm(r,e.map(r.typeParameters,function(n){return n.target&&!rc(n.target)?n.target:n}),e.isInJSFile(r.declaration))}function zE(r){var n=r.typeParameters;if(n){if(r.baseSignatureCache)return r.baseSignatureCache;for(var i=pS(n),a=jc(n,e.map(n,function(g){return rc(g)||_r})),s=e.map(n,function(g){return ra(g,a)||_r}),l=0;l<n.length-1;l++)s=c_(s,a);return s=c_(s,i),r.baseSignatureCache=Lg(r,jc(n,s),!0)}return r}function fm(r){var n;if(!r.isolatedSignatureType){var i=(n=r.declaration)===null||n===void 0?void 0:n.kind,a=i===void 0||i===173||i===177||i===182,s=Gc(16);s.members=Oe,s.properties=e.emptyArray,s.callSignatures=a?e.emptyArray:[r],s.constructSignatures=a?[r]:e.emptyArray,s.indexInfos=e.emptyArray,r.isolatedSignatureType=s}return r.isolatedSignatureType}function fb(r){return r.members?f1(r.members):void 0}function f1(r){return r.get("__index")}function Ul(r,n,i,a){return{keyType:r,type:n,isReadonly:i,declaration:a}}function _b(r){var n=fb(r);return n?_1(n):e.emptyArray}function _1(r){if(r.declarations){for(var n=[],i=function(g){if(g.parameters.length===1){var W=g.parameters[0];W.type&&Rp(zt(W.type),function(ce){ch(ce)&&!vs(n,ce)&&n.push(Ul(ce,g.type?zt(g.type):Te,e.hasEffectiveModifier(g,64),g))})}},a=0,s=r.declarations;a<s.length;a++){var l=s[a];i(l)}return n}return e.emptyArray}function ch(r){return!!(r.flags&(4|8|4096))||Og(r)||!!(r.flags&2097152)&&!rg(r)&&e.some(r.types,ch)}function d1(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function db(r,n){var i,a;if((i=r.symbol)===null||i===void 0?void 0:i.declarations)for(var s=function(ce){if(ce.parent.kind===192){var ke=e.walkUpParenthesizedTypesAndGetParentAndChild(ce.parent.parent),rr=ke[0],$e=rr===void 0?ce.parent:rr,ar=ke[1];if(ar.kind===180&&!n){var ir=ar,Wr=AD(ir);if(Wr){var sn=ir.typeArguments.indexOf($e);if(sn<Wr.length){var In=rc(Wr[sn]);if(In){var Sn=J1(Wr,Wr.map(function(Ri,pt){return function(){return TP(ir,Wr,pt)}})),Kn=ra(In,Sn);Kn!==r&&(a=e.append(a,Kn))}}}}else if(ar.kind===166&&ar.dotDotDotToken||ar.kind===188||ar.kind===199&&ar.dotDotDotToken)a=e.append(a,ic(_r));else if(ar.kind===201)a=e.append(a,yn);else if(ar.kind===165&&ar.parent.kind===197)a=e.append(a,On);else if(ar.kind===197&&ar.type&&e.skipParentheses(ar.type)===ce.parent&&ar.parent.kind===191&&ar.parent.extendsType===ar&&ar.parent.checkType.kind===197&&ar.parent.checkType.type){var ei=ar.parent.checkType,Ti=zt(ei.type);a=e.append(a,ra(Ti,Yd(Et(zi(ei.typeParameter)),ei.typeParameter.constraint?zt(ei.typeParameter.constraint):On)))}}},l=0,g=r.symbol.declarations;l<g.length;l++){var W=g[l];s(W)}return a&&ro(a)}function _m(r){if(!r.constraint)if(r.target){var n=rc(r.target);r.constraint=n?ra(n,r.mapper):Aa}else{var i=d1(r);if(!i)r.constraint=db(r)||Aa;else{var a=zt(i);a.flags&1&&!ca(a)&&(a=i.parent.parent.kind===197?On:_r),r.constraint=a}}return r.constraint===Aa?void 0:r.constraint}function pb(r){var n=e.getDeclarationOfKind(r.symbol,165),i=e.isJSDocTemplateTag(n.parent)?e.getEffectiveContainerForJSDocTemplateTag(n.parent):n.parent;return i&&zi(i)}function wu(r){var n="";if(r)for(var i=r.length,a=0;a<i;){for(var s=r[a].id,l=1;a+l<i&&r[a+l].id===s+l;)l++;n.length&&(n+=","),n+=s,l>1&&(n+=":"+l),a+=l}return n}function Ig(r,n){return r?"@".concat(h(r))+(n?":".concat(wu(n)):""):""}function uh(r,n){for(var i=0,a=0,s=r;a<s.length;a++){var l=s[a];(n===void 0||!(l.flags&n))&&(i|=e.getObjectFlags(l))}return i&458752}function F_(r,n){var i=wu(n),a=r.instantiations.get(i);return a||(a=Gc(4,r.symbol),r.instantiations.set(i,a),a.objectFlags|=n?uh(n):0,a.target=r,a.resolvedTypeArguments=n),a}function gb(r){var n=qc(r.flags);return n.symbol=r.symbol,n.objectFlags=r.objectFlags,n.target=r.target,n.resolvedTypeArguments=r.resolvedTypeArguments,n}function p1(r,n,i,a,s){if(!a){a=ng(n);var l=Fg(a);s=i?c_(l,i):l}var g=Gc(4,r.symbol);return g.target=r,g.node=n,g.mapper=i,g.aliasSymbol=a,g.aliasTypeArguments=s,g}function No(r){var n,i;if(!r.resolvedTypeArguments){if(!$i(r,6))return((n=r.target.localTypeParameters)===null||n===void 0?void 0:n.map(function(){return ue}))||e.emptyArray;var a=r.node,s=a?a.kind===180?e.concatenate(r.target.outerTypeParameters,b0(a,r.target.localTypeParameters)):a.kind===185?[zt(a.elementType)]:e.map(a.elements,zt):e.emptyArray;wt()?r.resolvedTypeArguments=r.mapper?c_(s,r.mapper):s:(r.resolvedTypeArguments=((i=r.target.localTypeParameters)===null||i===void 0?void 0:i.map(function(){return ue}))||e.emptyArray,Zr(r.node||Xe,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Xt(r.target.symbol)))}return r.resolvedTypeArguments}function md(r){return e.length(r.target.typeParameters)}function mb(r,n){var i=nt(Ya(n)),a=i.localTypeParameters;if(a){var s=e.length(r.typeArguments),l=ul(a),g=e.isInJSFile(r),W=!Ue&&g;if(!W&&(s<l||s>a.length)){var ce=g&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),ke=l===a.length?ce?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:ce?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,rr=Oi(i,void 0,2);if(Zr(r,ke,rr,l,a.length),!g)return ue}if(r.kind===180&&Mb(r,e.length(r.typeArguments)!==a.length))return p1(i,r,void 0);var $e=e.concatenate(i.outerTypeParameters,gd(dh(r),a,l,g));return F_(i,$e)}return Kd(r,n)?i:ue}function wg(r,n,i,a){var s=nt(r);if(s===hr&&X.has(r.escapedName)&&n&&n.length===1)return eg(r,n[0]);var l=Qt(r),g=l.typeParameters,W=wu(n)+Ig(i,a),ce=l.instantiations.get(W);return ce||l.instantiations.set(W,ce=vS(s,jc(g,gd(n,g,ul(g),e.isInJSFile(r.valueDeclaration))),i,a)),ce}function WE(r,n){if(e.getCheckFlags(n)&1048576){var i=dh(r),a=Ig(n,i),s=Sr.get(a);return s||(s=ko(1,"error"),s.aliasSymbol=n,s.aliasTypeArguments=i,Sr.set(a,s)),s}var l=nt(n),g=Qt(n).typeParameters;if(g){var W=e.length(r.typeArguments),ce=ul(g);if(W<ce||W>g.length)return Zr(r,ce===g.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xt(n),ce,g.length),ue;var ke=ng(r),rr=ke&&(vb(n)||!vb(ke))?ke:void 0;return wg(n,dh(r),rr,Fg(rr))}return Kd(r,n)?l:ue}function vb(r){var n,i=(n=r.declarations)===null||n===void 0?void 0:n.find(e.isTypeAlias);return!!(i&&e.getContainingFunction(i))}function VE(r){switch(r.kind){case 180:return r.typeName;case 230:var n=r.expression;if(e.isEntityNameExpression(n))return n}}function yb(r){return r.parent?"".concat(yb(r.parent),".").concat(r.escapedName):r.escapedName}function lh(r){var n=r.kind===163?r.right:r.kind===208?r.name:r,i=n.escapedText;if(i){var a=r.kind===163?lh(r.left):r.kind===208?lh(r.expression):void 0,s=a?"".concat(yb(a),".").concat(i):i,l=je.get(s);return l||(je.set(s,l=go(524288,i,1048576)),l.parent=a,l.declaredType=Ke),l}return jr}function dm(r,n,i){var a=VE(r);if(!a)return jr;var s=ts(a,n,i);return s&&s!==jr?s:i?jr:lh(a)}function fh(r,n){if(n===jr)return ue;if(n=rl(n)||n,n.flags&(32|64))return mb(r,n);if(n.flags&524288)return WE(r,n);var i=ma(n);if(i)return Kd(r,n)?Jc(i):ue;if(n.flags&111551&&_h(r)){var a=qE(r,n);return a||(dm(r,788968),Li(n))}return ue}function qE(r,n){var i=At(r);if(!i.resolvedJSDocType){var a=Li(n),s=a;if(n.valueDeclaration){var l=r.kind===202&&r.qualifier;a.symbol&&a.symbol!==n&&l&&(s=fh(r,a.symbol))}i.resolvedJSDocType=s}return i.resolvedJSDocType}function g1(r,n){if(n.flags&3||n===r||!rg(r)&&!rg(n))return r;var i="".concat(tc(r),">").concat(tc(n)),a=xn.get(i);if(a)return a;var s=qc(33554432);return s.baseType=r,s.constraint=n,xn.set(i,s),s}function m1(r){return ro([r.constraint,r.baseType])}function hb(r){return r.kind===186&&r.elements.length===1}function Db(r,n,i){return hb(n)&&hb(i)?Db(r,n.elements[0],i.elements[0]):hd(zt(n))===hd(r)?zt(i):void 0}function GE(r,n){for(var i,a=!0;n&&!e.isStatement(n)&&n.kind!==323;){var s=n.parent;if(s.kind===166&&(a=!a),(a||r.flags&8650752)&&s.kind===191&&n===s.trueType){var l=Db(r,s.checkType,s.extendsType);l&&(i=e.append(i,l))}else if(r.flags&262144&&s.kind===197&&n===s.type){var g=zt(s);if(Pu(g)===hd(r)){var W=Eh(g);if(W){var l=rc(W);l&&mf(l,Fp)&&(i=e.append(i,Ot([Hn,cn])))}}}n=s}return i?g1(r,ro(i)):r}function _h(r){return!!(r.flags&8388608)&&(r.kind===180||r.kind===202)}function Kd(r,n){return r.typeArguments?(Zr(r,e.Diagnostics.Type_0_is_not_generic,n?Xt(n):r.typeName?e.declarationNameToString(r.typeName):ne),!1):!0}function bb(r){if(e.isIdentifier(r.typeName)){var n=r.typeArguments;switch(r.typeName.escapedText){case"String":return Kd(r),yn;case"Number":return Kd(r),Hn;case"Boolean":return Kd(r),Pn;case"Void":return Kd(r),Ir;case"Undefined":return Kd(r),zr;case"Null":return Kd(r),bn;case"Function":case"function":return Kd(r),fi;case"array":return(!n||!n.length)&&!Ue?Es:void 0;case"promise":return(!n||!n.length)&&!Ue?Ey(Te):void 0;case"Object":if(n&&n.length===2){if(e.isJSDocIndexSignature(r)){var i=zt(n[0]),a=zt(n[1]),s=i===yn||i===Hn?[Ul(i,a,!1)]:e.emptyArray;return Yo(void 0,Oe,e.emptyArray,e.emptyArray,s)}return Te}return Kd(r),Ue?void 0:Te}}}function HE(r){var n=zt(r.type);return Re?Lh(n,65536):n}function Kv(r){var n=At(r);if(!n.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return n.resolvedSymbol=jr,n.resolvedType=Ds(r.parent.expression);var i=void 0,a=void 0,s=788968;_h(r)&&(a=bb(r),a||(i=dm(r,s,!0),i===jr?i=dm(r,s|111551):dm(r,s),a=fh(r,i))),a||(i=dm(r,s),a=fh(r,i)),n.resolvedSymbol=i,n.resolvedType=a}return n.resolvedType}function dh(r){return e.map(r.typeArguments,zt)}function Sb(r){var n=At(r);if(!n.resolvedType){var i=MC(r);n.resolvedType=Jc(tu(i))}return n.resolvedType}function xb(r,n){function i(s){var l=s.declarations;if(l)for(var g=0,W=l;g<W.length;g++){var ce=W[g];switch(ce.kind){case 260:case 261:case 263:return ce}}}if(!r)return n?Ea:Zi;var a=nt(r);return a.flags&524288?e.length(a.typeParameters)!==n?(Zr(i(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),n),n?Ea:Zi):a:(Zr(i(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),n?Ea:Zi)}function v1(r,n){return Vm(r,111551,n?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Cb(r,n){return Vm(r,788968,n?e.Diagnostics.Cannot_find_global_type_0:void 0)}function ph(r,n,i){var a=Vm(r,788968,i?e.Diagnostics.Cannot_find_global_type_0:void 0);if(a&&(nt(a),e.length(Qt(a).typeParameters)!==n)){var s=a.declarations&&e.find(a.declarations,e.isTypeAliasDeclaration);Zr(s,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(a),n);return}return a}function Vm(r,n,i){return is(void 0,r,n,i,r,!1,!1,!1)}function lc(r,n,i){var a=Cb(r,i);return a||i?xb(a,n):void 0}function KE(){return Ko||(Ko=lc("TypedPropertyDescriptor",1,!0)||Ea)}function QE(){return va||(va=lc("TemplateStringsArray",0,!0)||Zi)}function Tb(){return qe||(qe=lc("ImportMeta",0,!0)||Zi)}function Eb(){if(!Tn){var r=go(0,"ImportMetaExpression"),n=Tb(),i=go(4,"meta",8);i.parent=r,i.type=n;var a=e.createSymbolTable([i]);r.members=a,Tn=Yo(r,a,e.emptyArray,e.emptyArray,e.emptyArray)}return Tn}function kb(r){return Nr||(Nr=lc("ImportCallOptions",0,r))||Zi}function Ab(r){return pc||(pc=v1("Symbol",r))}function XE(r){return js||(js=Cb("SymbolConstructor",r))}function Nb(){return Sc||(Sc=lc("Symbol",0,!1))||Zi}function Qv(r){return Mc||(Mc=lc("Promise",1,r))||Ea}function Pb(r){return Vs||(Vs=lc("PromiseLike",1,r))||Ea}function y1(r){return oc||(oc=v1("Promise",r))}function ZE(r){return Ss||(Ss=lc("PromiseConstructorLike",0,r))||Zi}function gh(r){return Ji||(Ji=lc("AsyncIterable",1,r))||Ea}function YE(r){return _t||(_t=lc("AsyncIterator",3,r))||Ea}function $E(r){return Ht||(Ht=lc("AsyncIterableIterator",1,r))||Ea}function ek(r){return Rt||(Rt=lc("AsyncGenerator",3,r))||Ea}function Ib(r){return ee||(ee=lc("Iterable",1,r))||Ea}function rk(r){return Er||(Er=lc("Iterator",3,r))||Ea}function nk(r){return un||(un=lc("IterableIterator",1,r))||Ea}function ik(r){return $n||($n=lc("Generator",3,r))||Ea}function tk(r){return Ii||(Ii=lc("IteratorYieldResult",1,r))||Ea}function ak(r){return at||(at=lc("IteratorReturnResult",1,r))||Ea}function wb(r,n){n===void 0&&(n=0);var i=Vm(r,788968,void 0);return i&&xb(i,n)}function ok(){return ga||(ga=ph("Extract",2,!0)||jr),ga===jr?void 0:ga}function sk(){return xa||(xa=ph("Omit",2,!0)||jr),xa===jr?void 0:xa}function h1(r){return co||(co=ph("Awaited",1,r)||(r?jr:void 0)),co===jr?void 0:co}function ck(){return gs||(gs=lc("BigInt",0,!1))||Zi}function uk(){return gc||(gc=v1("NaN",!1))}function lk(){return ws||(ws=ph("Record",2,!0)||jr),ws===jr?void 0:ws}function qm(r,n){return r!==Ea?F_(r,n):Zi}function Ob(r){return qm(KE(),[r])}function fk(r){return qm(Ib(!0),[r])}function ic(r,n){return qm(n?na:la,[r])}function D1(r){switch(r.kind){case 187:return 2;case 188:return Fb(r);case 199:return r.questionToken?2:r.dotDotDotToken?Fb(r):1;default:return 1}}function Fb(r){return Yv(r.type)?4:8}function _k(r){var n=pk(r.parent),i=Yv(r);if(i)return n?na:la;var a=e.map(r.elements,D1),s=e.some(r.elements,function(l){return l.kind!==199});return b1(a,n,s?void 0:r.elements)}function Mb(r,n){return!!ng(r)||Lb(r)&&(r.kind===185?M_(r.elementType):r.kind===186?e.some(r.elements,M_):n||e.some(r.typeArguments,M_))}function Lb(r){var n=r.parent;switch(n.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return Lb(n);case 262:return!0}return!1}function M_(r){switch(r.kind){case 180:return _h(r)||!!(dm(r,788968).flags&524288);case 183:return!0;case 195:return r.operator!==156&&M_(r.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return M_(r.type);case 188:return r.type.kind!==185||M_(r.type.elementType);case 189:case 190:return e.some(r.types,M_);case 196:return M_(r.objectType)||M_(r.indexType);case 191:return M_(r.checkType)||M_(r.extendsType)||M_(r.trueType)||M_(r.falseType)}return!1}function dk(r){var n=At(r);if(!n.resolvedType){var i=_k(r);if(i===Ea)n.resolvedType=Zi;else if(!(r.kind===186&&e.some(r.elements,function(s){return!!(D1(s)&8)}))&&Mb(r))n.resolvedType=r.kind===186&&r.elements.length===0?i:p1(i,r,void 0);else{var a=r.kind===185?[zt(r.elementType)]:e.map(r.elements,zt);n.resolvedType=S1(i,a)}}return n.resolvedType}function pk(r){return e.isTypeOperatorNode(r)&&r.operator===146}function zl(r,n,i,a){i===void 0&&(i=!1);var s=b1(n||e.map(r,function(l){return 1}),i,a);return s===Ea?Zi:r.length?S1(s,r):s}function b1(r,n,i){if(r.length===1&&r[0]&4)return n?na:la;var a=e.map(r,function(l){return l&1?"#":l&2?"?":l&4?".":"*"}).join()+(n?"R":"")+(i&&i.length?","+e.map(i,V).join(","):""),s=cr.get(a);return s||cr.set(a,s=gk(r,n,i)),s}function gk(r,n,i){var a=r.length,s=e.countWhere(r,function(In){return!!(In&(1|8))}),l,g=[],W=0;if(a){l=new Array(a);for(var ce=0;ce<a;ce++){var ke=l[ce]=uu(),rr=r[ce];if(W|=rr,!(W&12)){var $e=go(4|(rr&2?16777216:0),""+ce,n?8:0);$e.tupleLabelDeclaration=i==null?void 0:i[ce],$e.type=ke,g.push($e)}}}var ar=g.length,ir=go(4,"length",n?8:0);if(W&12)ir.type=Hn;else{for(var Wr=[],ce=s;ce<=a;ce++)Wr.push(Vl(ce));ir.type=Ot(Wr)}g.push(ir);var sn=Gc(8|4);return sn.typeParameters=l,sn.outerTypeParameters=void 0,sn.localTypeParameters=l,sn.instantiations=new e.Map,sn.instantiations.set(wu(sn.typeParameters),sn),sn.target=sn,sn.resolvedTypeArguments=sn.typeParameters,sn.thisType=uu(),sn.thisType.isThisType=!0,sn.thisType.constraint=sn,sn.declaredProperties=g,sn.declaredCallSignatures=e.emptyArray,sn.declaredConstructSignatures=e.emptyArray,sn.declaredIndexInfos=e.emptyArray,sn.elementFlags=r,sn.minLength=s,sn.fixedLength=ar,sn.hasRestElement=!!(W&12),sn.combinedFlags=W,sn.readonly=n,sn.labeledElementDeclarations=i,sn}function S1(r,n){return r.objectFlags&8?Rb(r,n):F_(r,n)}function Rb(r,n){var i,a,s;if(!(r.combinedFlags&14))return F_(r,n);if(r.combinedFlags&8){var l=e.findIndex(n,function(Sn,Kn){return!!(r.elementFlags[Kn]&8&&Sn.flags&(131072|1048576))});if(l>=0)return Xv(e.map(n,function(Sn,Kn){return r.elementFlags[Kn]&8?Sn:_r}))?Qo(n[l],function(Sn){return Rb(r,e.replaceElement(n,l,Sn))}):ue}for(var g=[],W=[],ce=[],ke=-1,rr=-1,$e=-1,ar=function(Sn){var Kn=n[Sn],ei=r.elementFlags[Sn];if(ei&8)if(Kn.flags&58982400||Xc(Kn))In(Kn,8,(i=r.labeledElementDeclarations)===null||i===void 0?void 0:i[Sn]);else if(Xa(Kn)){var Ti=No(Kn);if(Ti.length+g.length>=1e4)return Zr(Xe,e.isPartOfTypeNode(Xe)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:ue};e.forEach(Ti,function(Ri,pt){var rt;return In(Ri,Kn.target.elementFlags[pt],(rt=Kn.target.labeledElementDeclarations)===null||rt===void 0?void 0:rt[pt])})}else In(Td(Kn)&&cl(Kn,Hn)||ue,4,(a=r.labeledElementDeclarations)===null||a===void 0?void 0:a[Sn]);else In(Kn,ei,(s=r.labeledElementDeclarations)===null||s===void 0?void 0:s[Sn])},ir=0;ir<n.length;ir++){var Wr=ar(ir);if(typeof Wr=="object")return Wr.value}for(var ir=0;ir<ke;ir++)W[ir]&2&&(W[ir]=1);rr>=0&&rr<$e&&(g[rr]=Ot(e.sameMap(g.slice(rr,$e+1),function(Sn,Kn){return W[rr+Kn]&8?Zc(Sn,Hn):Sn})),g.splice(rr+1,$e-rr),W.splice(rr+1,$e-rr),ce==null||ce.splice(rr+1,$e-rr));var sn=b1(W,r.readonly,ce);return sn===Ea?Zi:W.length?F_(sn,g):sn;function In(Sn,Kn,ei){Kn&1&&(ke=W.length),Kn&4&&rr<0&&(rr=W.length),Kn&(2|4)&&($e=W.length),g.push(Kn&2?fu(Sn,!0):Sn),W.push(Kn),ce&&ei?ce.push(ei):ce=void 0}}function Gm(r,n,i){i===void 0&&(i=0);var a=r.target,s=md(r)-i;return n>a.fixedLength?iA(r)||zl(e.emptyArray):zl(No(r).slice(n,s),a.elementFlags.slice(n,s),!1,a.labeledElementDeclarations&&a.labeledElementDeclarations.slice(n,s))}function Bb(r){return Ot(e.append(e.arrayOf(r.target.fixedLength,function(n){return Ou(""+n)}),Wl(r.target.readonly?na:la)))}function Jb(r,n){var i=e.findIndex(r.elementFlags,function(a){return!(a&n)});return i>=0?i:r.elementFlags.length}function mh(r,n){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(i){return!(i&n)})-1}function mk(r){return fu(zt(r.type),!0)}function tc(r){return r.id}function o_(r,n){return e.binarySearch(r,n,tc,e.compareValues)>=0}function x1(r,n){var i=e.binarySearch(r,n,tc,e.compareValues);return i<0?(r.splice(~i,0,n),!0):!1}function vk(r,n,i){var a=i.flags;if(a&1048576)return jb(r,n|(bk(i)?1048576:0),i.types);if(!(a&131072))if(n|=a&205258751,a&465829888&&(n|=33554432),i===Qe&&(n|=8388608),!Re&&a&98304)e.getObjectFlags(i)&65536||(n|=4194304);else{var s=r.length,l=s&&i.id>r[s-1].id?~s:e.binarySearch(r,i,tc,e.compareValues);l<0&&r.splice(~l,0,i)}return n}function jb(r,n,i){for(var a=0,s=i;a<s.length;a++){var l=s[a];n=vk(r,n,l)}return n}function yk(r,n){if(r.length<2)return r;var i=wu(r),a=An.get(i);if(a)return a;for(var s=n&&e.some(r,function(In){return!!(In.flags&524288)&&!Xc(In)&&K1(Iu(In))}),l=r.length,g=l,W=0;g>0;){g--;var ce=r[g];if(s||ce.flags&469499904)for(var ke=ce.flags&(524288|2097152|58982400)?e.find(vo(ce),function(In){return ll(Li(In))}):void 0,rr=ke&&Jc(Li(ke)),$e=0,ar=r;$e<ar.length;$e++){var ir=ar[$e];if(ce!==ir){if(W===1e5){var Wr=W/(l-g)*l;if(Wr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(In){return In.id})}),Zr(Xe,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(W++,ke&&ir.flags&(524288|2097152|58982400)){var sn=Na(ir,ke.escapedName);if(sn&&ll(sn)&&Jc(sn)!==rr)continue}if(gf(ce,ir,jt)&&(!(e.getObjectFlags(wf(ce))&1)||!(e.getObjectFlags(wf(ir))&1)||tg(ce,ir))){e.orderedRemoveItemAt(r,g);break}}}}return An.set(i,r),r}function hk(r,n,i){for(var a=r.length;a>0;){a--;var s=r[a],l=s.flags,g=l&(128|134217728|268435456)&&n&4||l&256&&n&8||l&2048&&n&64||l&8192&&n&4096||i&&l&32768&&n&16384||Zd(s)&&o_(r,s.regularType);g&&e.orderedRemoveItemAt(r,a)}}function Dk(r){var n=e.filter(r,Og);if(n.length)for(var i=r.length,a=function(){i--;var s=r[i];s.flags&128&&e.some(n,function(l){return b2(s,l)})&&e.orderedRemoveItemAt(r,i)};i>0;)a()}function bk(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function Ub(r,n){for(var i=0,a=n;i<a.length;i++){var s=a[i];if(s.flags&1048576){var l=s.origin;s.aliasSymbol||l&&!(l.flags&1048576)?e.pushIfUnique(r,s):l&&l.flags&1048576&&Ub(r,l.types)}}}function C1(r,n){var i=bp(r);return i.types=n,i}function Ot(r,n,i,a,s){if(n===void 0&&(n=1),r.length===0)return we;if(r.length===1)return r[0];var l=[],g=jb(l,0,r);if(n!==0){if(g&3)return g&1?g&8388608?Qe:Te:g&65536||o_(l,_r)?_r:Or;if(vr&&g&32768){var W=e.binarySearch(l,Wn,tc,e.compareValues);W>=0&&o_(l,zr)&&e.orderedRemoveItemAt(l,W)}if((g&(2944|8192|134217728|268435456)||g&16384&&g&32768)&&hk(l,g,!!(n&2)),g&128&&g&134217728&&Dk(l),n===2&&(l=yk(l,!!(g&524288)),!l))return ue;if(l.length===0)return g&65536?g&4194304?bn:qn:g&32768?g&4194304?zr:fn:we}if(!s&&g&1048576){var ce=[];Ub(ce,r);for(var ke=[],rr=function(Kn){e.some(ce,function(ei){return o_(ei.types,Kn)})||ke.push(Kn)},$e=0,ar=l;$e<ar.length;$e++){var ir=ar[$e];rr(ir)}if(!i&&ce.length===1&&ke.length===0)return ce[0];var Wr=e.reduceLeft(ce,function(Kn,ei){return Kn+ei.types.length},0);if(Wr+ke.length===l.length){for(var sn=0,In=ce;sn<In.length;sn++){var ir=In[sn];x1(ke,ir)}s=C1(1048576,ke)}}var Sn=(g&36323363?0:32768)|(g&2097152?16777216:0);return E1(l,Sn,i,a,s)}function Sk(r,n){for(var i,a=[],s=0,l=r;s<l.length;s++){var g=l[s],W=qu(g);if(!W||W.kind===2||W.kind===3){if(n!==2097152)continue;return}if(i){if(!T1(i,W))return}else i=W;a.push(W.type)}if(!!i){var ce=ub(a,n);return lm(i.kind,i.parameterName,i.parameterIndex,ce)}}function T1(r,n){return r.kind===n.kind&&r.parameterIndex===n.parameterIndex}function E1(r,n,i,a,s){if(r.length===0)return we;if(r.length===1)return r[0];var l=s?s.flags&1048576?"|".concat(wu(s.types)):s.flags&2097152?"&".concat(wu(s.types)):"#".concat(s.type.id,"|").concat(wu(r)):wu(r),g=l+Ig(i,a),W=Mr.get(g);return W||(W=qc(1048576),W.objectFlags=n|uh(r,98304),W.types=r,W.origin=s,W.aliasSymbol=i,W.aliasTypeArguments=a,r.length===2&&r[0].flags&512&&r[1].flags&512&&(W.flags|=16,W.intrinsicName="boolean"),Mr.set(g,W)),W}function xk(r){var n=At(r);if(!n.resolvedType){var i=ng(r);n.resolvedType=Ot(e.map(r.types,zt),1,i,Fg(i))}return n.resolvedType}function Ck(r,n,i){var a=i.flags;return a&2097152?zb(r,n,i.types):($d(i)?n&16777216||(n|=16777216,r.set(i.id.toString(),i)):(a&3?i===Qe&&(n|=8388608):(Re||!(a&98304))&&(vr&&i===Wn&&(n|=262144,i=zr),r.has(i.id.toString())||(i.flags&109440&&n&109440&&(n|=67108864),r.set(i.id.toString(),i))),n|=a&205258751),n)}function zb(r,n,i){for(var a=0,s=i;a<s.length;a++){var l=s[a];n=Ck(r,n,Jc(l))}return n}function Tk(r,n){for(var i=r.length;i>0;){i--;var a=r[i],s=a.flags&4&&n&(128|134217728|268435456)||a.flags&8&&n&256||a.flags&64&&n&2048||a.flags&4096&&n&8192||a.flags&16384&&n&32768||$d(a)&&n&470302716;s&&e.orderedRemoveItemAt(r,i)}}function Ek(r,n){for(var i=0,a=r;i<a.length;i++){var s=a[i];if(!o_(s.types,n)){var l=n.flags&128?yn:n.flags&256?Hn:n.flags&2048?Ai:n.flags&8192?Pe:void 0;if(!l||!o_(s.types,l))return!1}}return!0}function kk(r){for(var n=r.length,i=e.filter(r,function(W){return!!(W.flags&128)});n>0;){n--;var a=r[n];if(!!(a.flags&134217728))for(var s=0,l=i;s<l.length;s++){var g=l[s];if(Cd(g,a)){e.orderedRemoveItemAt(r,n);break}else if(Og(a))return!0}}return!1}function Wb(r,n){return e.every(r,function(i){return!!(i.flags&1048576)&&e.some(i.types,function(a){return!!(a.flags&n)})})}function Vb(r,n){for(var i=0;i<r.length;i++)r[i]=Qs(r[i],function(a){return!(a.flags&n)})}function Ak(r){var n,i=e.findIndex(r,function(ar){return!!(e.getObjectFlags(ar)&32768)});if(i<0)return!1;for(var a=i+1;a<r.length;){var s=r[a];e.getObjectFlags(s)&32768?((n||(n=[r[i]])).push(s),e.orderedRemoveItemAt(r,a)):a++}if(!n)return!1;for(var l=[],g=[],W=0,ce=n;W<ce.length;W++)for(var ke=ce[W],rr=0,$e=ke.types;rr<$e.length;rr++){var s=$e[rr];x1(l,s)&&Ek(n,s)&&x1(g,s)}return r[i]=E1(g,32768),!0}function Nk(r,n,i){var a=qc(2097152);return a.objectFlags=uh(r,98304),a.types=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a}function ro(r,n,i,a){var s=new e.Map,l=zb(s,0,r),g=e.arrayFrom(s.values());if(l&131072)return e.contains(g,hn)?hn:we;if(Re&&l&98304&&l&(524288|67108864|16777216)||l&67108864&&l&(469892092&~67108864)||l&402653316&&l&(469892092&~402653316)||l&296&&l&(469892092&~296)||l&2112&&l&(469892092&~2112)||l&12288&&l&(469892092&~12288)||l&49152&&l&(469892092&~49152)||l&134217728&&l&128&&kk(g))return we;if(l&1)return l&8388608?Qe:Te;if(!Re&&l&98304)return l&16777216?we:l&32768?zr:bn;if((l&4&&l&(128|134217728|268435456)||l&8&&l&256||l&64&&l&2048||l&4096&&l&8192||l&16384&&l&32768||l&16777216&&l&470302716)&&(a||Tk(g,l)),l&262144&&(g[g.indexOf(zr)]=Wn),g.length===0)return _r;if(g.length===1)return g[0];var W=wu(g)+Ig(n,i),ce=Rr.get(W);if(!ce){if(l&1048576)if(Ak(g))ce=ro(g,n,i);else if(Wb(g,32768)){var ke=vr&&e.some(g,function(ar){return o_(ar.types,Wn)})?Wn:zr;Vb(g,32768),ce=Ot([ro(g),ke],1,n,i)}else if(Wb(g,65536))Vb(g,65536),ce=Ot([ro(g),bn],1,n,i);else{if(!Xv(g))return ue;var rr=Pk(g),$e=e.some(rr,function(ar){return!!(ar.flags&2097152)})&&k1(rr)>k1(g)?C1(2097152,g):void 0;ce=Ot(rr,1,n,i,$e)}else ce=Nk(g,n,i);Rr.set(W,ce)}return ce}function qb(r){return e.reduceLeft(r,function(n,i){return i.flags&1048576?n*i.types.length:i.flags&131072?0:n},1)}function Xv(r){var n=qb(r);return n>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(i){return i.id}),size:n}),Zr(Xe,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Pk(r){for(var n=qb(r),i=[],a=0;a<n;a++){for(var s=r.slice(),l=a,g=r.length-1;g>=0;g--)if(r[g].flags&1048576){var W=r[g].types,ce=W.length;s[g]=W[l%ce],l=Math.floor(l/ce)}var ke=ro(s);ke.flags&131072||i.push(ke)}return i}function Gb(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?Gb(r.origin):k1(r.types)}function k1(r){return e.reduceLeft(r,function(n,i){return n+Gb(i)},0)}function Ik(r){var n=At(r);if(!n.resolvedType){var i=ng(r),a=e.map(r.types,zt),s=a.length===2&&!!(a[0].flags&(4|8|64))&&a[1]===Ua;n.resolvedType=ro(a,i,Fg(i),s)}return n.resolvedType}function Hb(r,n){var i=qc(4194304);return i.type=r,i.stringsOnly=n,i}function wk(r){var n=bp(4194304);return n.type=r,n}function Kb(r,n){return n?r.resolvedStringIndexType||(r.resolvedStringIndexType=Hb(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=Hb(r,!1))}function Ok(r,n,i){var a=Pu(r),s=zu(r),l=Ff(r.target||r);if(!l&&!i)return s;var g=[];if(Eg(r)){if(vd(s))return Kb(r,n);var W=re(Vd(r));um(W,8576,n,ke)}else Rp(cm(s),ke);vd(s)&&Rp(s,ke);var ce=i?Qs(Ot(g),function(rr){return!(rr.flags&(1|4))}):Ot(g);if(ce.flags&1048576&&s.flags&1048576&&wu(ce.types)===wu(s.types))return s;return ce;function ke(rr){var $e=l?ra(l,Qm(r.mapper,a,rr)):rr;g.push($e===yn?Cn:$e)}}function Fk(r){var n=Pu(r);return i(Ff(r)||n);function i(a){return a.flags&(3|131068|131072|262144|524288|67108864)?!0:a.flags&16777216?a.root.isDistributive&&a.checkType===n:a.flags&(3145728|134217728)?e.every(a.types,i):a.flags&8388608?i(a.objectType)&&i(a.indexType):a.flags&33554432?i(a.baseType)&&i(a.constraint):a.flags&268435456?i(a.type):!1}}function L_(r){return e.isPrivateIdentifier(r)?we:e.isIdentifier(r)?Ou(e.unescapeLeadingUnderscores(r.escapedText)):Jc(e.isComputedPropertyName(r)?f_(r):ya(r))}function pm(r,n,i){if(i||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var a=Qt(xg(r)).nameType;if(!a){var s=e.getNameOfDeclaration(r.valueDeclaration);a=r.escapedName==="default"?Ou("default"):s&&L_(s)||(e.isKnownSymbol(r)?void 0:Ou(e.symbolName(r)))}if(a&&a.flags&n)return a}return we}function Qb(r,n){return!!(r.flags&n||r.flags&2097152&&e.some(r.types,function(i){return Qb(i,n)}))}function Mk(r,n,i){var a=i&&(e.getObjectFlags(r)&(3|4)||r.aliasSymbol)?wk(r):void 0,s=e.map(vo(r),function(g){return pm(g,n)}),l=e.map(hs(r),function(g){return g!==yi&&Qb(g.keyType,n)?g.keyType===yn&&n&8?Cn:g.keyType:we});return Ot(e.concatenate(s,l),1,void 0,void 0,a)}function Lk(r){var n=y6(r);return ct(n)!==n}function Xb(r){return!!(r.flags&58982400||vm(r)||Xc(r)&&!Fk(r)||r.flags&1048576&&e.some(r.types,Lk)||r.flags&2097152&&rs(r,465829888)&&e.some(r.types,$d))}function Wl(r,n,i){return n===void 0&&(n=ln),r=ct(r),Xb(r)?Kb(r,n):r.flags&1048576?ro(e.map(r.types,function(a){return Wl(a,n,i)})):r.flags&2097152?Ot(e.map(r.types,function(a){return Wl(a,n,i)})):e.getObjectFlags(r)&32?Ok(r,n,i):r===Qe?Qe:r.flags&2?we:r.flags&(1|131072)?On:Mk(r,(i?128:402653316)|(n?0:296|12288),n===ln&&!i)}function Zb(r){if(ln)return r;var n=ok();return n?wg(n,[r,yn]):yn}function Rk(r){var n=Zb(Wl(r));return n.flags&131072?yn:n}function Bk(r){var n=At(r);if(!n.resolvedType)switch(r.operator){case 141:n.resolvedType=Wl(zt(r.type));break;case 156:n.resolvedType=r.type.kind===153?B1(e.walkUpParenthesizedTypes(r.parent)):ue;break;case 146:n.resolvedType=zt(r.type);break;default:throw e.Debug.assertNever(r.operator)}return n.resolvedType}function Jk(r){var n=At(r);return n.resolvedType||(n.resolvedType=wp(zn([r.head.text],e.map(r.templateSpans,function(i){return i.literal.text}),!0),e.map(r.templateSpans,function(i){return zt(i.type)}))),n.resolvedType}function wp(r,n){var i=e.findIndex(n,function(ke){return!!(ke.flags&(131072|1048576))});if(i>=0)return Xv(n)?Qo(n[i],function(ke){return wp(r,e.replaceElement(n,i,ke))}):ue;if(e.contains(n,Qe))return Qe;var a=[],s=[],l=r[0];if(!ce(r,n))return yn;if(a.length===0)return Ou(l);if(s.push(l),e.every(s,function(ke){return ke===""})){if(e.every(a,function(ke){return!!(ke.flags&4)}))return yn;if(a.length===1&&Og(a[0]))return a[0]}var g="".concat(wu(a),"|").concat(e.map(s,function(ke){return ke.length}).join(","),"|").concat(s.join("")),W=xr.get(g);return W||xr.set(g,W=Uk(s,a)),W;function ce(ke,rr){for(var $e=e.isArray(ke),ar=0;ar<rr.length;ar++){var ir=rr[ar],Wr=$e?ke[ar+1]:ke;if(ir.flags&(2944|65536|32768)){if(l+=jk(ir)||"",l+=Wr,!$e)return!0}else if(ir.flags&134217728){if(l+=ir.texts[0],!ce(ir.texts,ir.types))return!1;if(l+=Wr,!$e)return!0}else if(vd(ir)||vh(ir))a.push(ir),s.push(l),l=Wr;else if(ir.flags&2097152){var sn=ce(ke[ar+1],ir.types);if(!sn)return!1}else if($e)return!1}return!0}}function jk(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&(512|98304)?r.intrinsicName:void 0}function Uk(r,n){var i=qc(134217728);return i.texts=r,i.types=n,i}function eg(r,n){return n.flags&(1048576|131072)?Qo(n,function(i){return eg(r,i)}):n.flags&128?Ou(Yb(r,n.value)):n.flags&134217728?wp.apply(void 0,zk(r,n.texts,n.types)):n.flags&268435456&&r===n.symbol?n:n.flags&(1|4|268435456)||vd(n)?$b(r,n):vh(n)?$b(r,wp(["",""],[n])):n}function Yb(r,n){switch(X.get(r.escapedName)){case 0:return n.toUpperCase();case 1:return n.toLowerCase();case 2:return n.charAt(0).toUpperCase()+n.slice(1);case 3:return n.charAt(0).toLowerCase()+n.slice(1)}return n}function zk(r,n,i){switch(X.get(r.escapedName)){case 0:return[n.map(function(a){return a.toUpperCase()}),i.map(function(a){return eg(r,a)})];case 1:return[n.map(function(a){return a.toLowerCase()}),i.map(function(a){return eg(r,a)})];case 2:return[n[0]===""?n:zn([n[0].charAt(0).toUpperCase()+n[0].slice(1)],n.slice(1),!0),n[0]===""?zn([eg(r,i[0])],i.slice(1),!0):i];case 3:return[n[0]===""?n:zn([n[0].charAt(0).toLowerCase()+n[0].slice(1)],n.slice(1),!0),n[0]===""?zn([eg(r,i[0])],i.slice(1),!0):i]}return[n,i]}function $b(r,n){var i="".concat(h(r),",").concat(tc(n)),a=Lr.get(i);return a||Lr.set(i,a=Wk(r,n)),a}function Wk(r,n){var i=qc(268435456);return i.symbol=r,i.type=n,i}function Vk(r,n,i,a,s){var l=qc(8388608);return l.objectType=r,l.indexType=n,l.accessFlags=i,l.aliasSymbol=a,l.aliasTypeArguments=s,l}function Hm(r){if(Ue)return!1;if(e.getObjectFlags(r)&4096)return!0;if(r.flags&1048576)return e.every(r.types,Hm);if(r.flags&2097152)return e.some(r.types,Hm);if(r.flags&465829888){var n=Vv(r);return n!==r&&Hm(n)}return!1}function A1(r,n){return hu(r)?Du(r):n&&e.isPropertyName(n)?e.getPropertyNameForPropertyNameNode(n):void 0}function N1(r,n){if(n.flags&(16|8192)){var i=e.findAncestor(r.parent,function(a){return!e.isAccessExpression(a)})||r.parent;return e.isCallLikeExpression(i)?e.isCallOrNewExpression(i)&&e.isIdentifier(r)&&ax(i,r):e.every(n.declarations,function(a){return!e.isFunctionLike(a)||!!(e.getCombinedNodeFlags(a)&268435456)})}return!0}function eS(r,n,i,a,s,l){var g,W=s&&s.kind===209?s:void 0,ce=s&&e.isPrivateIdentifier(s)?void 0:A1(i,s);if(ce!==void 0){if(l&256)return Jp(n,ce)||Te;var ke=Zt(n,ce);if(ke){if(l&64&&s&&ke.declarations&&ef(ke)&&N1(s,ke)){var rr=(g=W==null?void 0:W.argumentExpression)!==null&&g!==void 0?g:e.isIndexedAccessTypeNode(s)?s.indexType:s;Tl(rr,ke.declarations,ce)}if(W){if(by(ke,W,uC(W.expression,n.symbol)),KC(W,ke,e.getAssignmentTargetKind(W))){Zr(W.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Xt(ke));return}if(l&8&&(At(s).resolvedSymbol=ke),nC(W,ke))return Ye}var $e=Li(ke);return W&&e.getAssignmentTargetKind(W)!==1?Ed(W,$e):$e}if(mf(n,Xa)&&e.isNumericLiteralName(ce)){var ar=+ce;if(s&&mf(n,function(pt){return!pt.target.hasRestElement})&&!(l&16)){var ir=P1(s);if(Xa(n)){if(ar<0)return Zr(ir,e.Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value),zr;Zr(ir,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Oi(n),md(n),e.unescapeLeadingUnderscores(ce))}else Zr(ir,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ce),Oi(n))}if(ar>=0)return Ri(Wu(n,Hn)),Qo(n,function(pt){var rt=ev(pt)||zr;return l&1?Ot([rt,zr]):rt})}}if(!(i.flags&98304)&&Bs(i,402653316|296|12288)){if(n.flags&(1|131072))return n;var Wr=Ng(n,i)||Wu(n,yn);if(Wr){if(l&2&&Wr.keyType!==Hn){W&&Zr(W,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Oi(i),Oi(r));return}if(s&&Wr.keyType===yn&&!Bs(i,4|8)){var ir=P1(s);return Zr(ir,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Oi(i)),l&1?Ot([Wr.type,zr]):Wr.type}return Ri(Wr),l&1&&!(n.symbol&&n.symbol.flags&(256|128)&&i.symbol&&i.flags&1024&&Nc(i.symbol)===n.symbol)?Ot([Wr.type,zr]):Wr.type}if(i.flags&131072)return we;if(Hm(n))return Te;if(W&&!bD(n)){if(np(n)){if(Ue&&i.flags&(128|256))return fe.add(e.createDiagnosticForNode(W,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,Oi(n))),zr;if(i.flags&(8|4)){var sn=e.map(n.properties,function(pt){return Li(pt)});return Ot(e.append(sn,zr))}}if(n.symbol===pn&&ce!==void 0&&pn.exports.has(ce)&&pn.exports.get(ce).flags&418)Zr(W,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ce),Oi(n));else if(Ue&&!Y.suppressImplicitAnyIndexErrors&&!(l&128))if(ce!==void 0&&oC(ce,n)){var In=Oi(n);Zr(W,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,In,In+"["+e.getTextOfNode(W.argumentExpression)+"]")}else if(cl(n,Hn))Zr(W.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Sn=void 0;if(ce!==void 0&&(Sn=tD(ce,n)))Sn!==void 0&&Zr(W.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ce,Oi(n),Sn);else{var Kn=FN(n,W,i);if(Kn!==void 0)Zr(W,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Oi(n),Kn);else{var ei=void 0;if(i.flags&1024)ei=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Oi(i)+"]",Oi(n));else if(i.flags&8192){var Ti=kc(i.symbol,W);ei=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ti+"]",Oi(n))}else i.flags&128||i.flags&256?ei=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,Oi(n)):i.flags&(8|4)&&(ei=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Oi(i),Oi(n)));ei=e.chainDiagnosticMessages(ei,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Oi(a),Oi(n)),fe.add(e.createDiagnosticForNodeFromMessageChain(W,ei))}}}return}}if(Hm(n))return Te;if(s){var ir=P1(s);i.flags&(128|256)?Zr(ir,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+i.value,Oi(n)):i.flags&(4|8)?Zr(ir,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Oi(n),Oi(i)):Zr(ir,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Oi(i))}if(Ba(i))return i;return;function Ri(pt){pt&&pt.isReadonly&&W&&(e.isAssignmentTarget(W)||e.isDeleteTarget(W))&&Zr(W,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Oi(n))}}function P1(r){return r.kind===209?r.argumentExpression:r.kind===196?r.indexType:r.kind===164?r.expression:r}function vh(r){return!!(r.flags&(1|4|8|64))||Og(r)}function Og(r){return!!(r.flags&134217728)&&e.every(r.types,vh)||!!(r.flags&268435456)&&vh(r.type)}function rg(r){return!!Km(r)}function Qd(r){return!!(Km(r)&4194304)}function vd(r){return!!(Km(r)&8388608)}function Km(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|e.reduceLeft(r.types,function(n,i){return n|Km(i)},0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|Km(r.baseType)|Km(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||Xc(r)||vm(r)?4194304:0)|(r.flags&(58982400|4194304|134217728|268435456)&&!Og(r)?8388608:0)}function s_(r,n){return r.flags&8388608?Gk(r,n):r.flags&16777216?Hk(r,n):r}function rS(r,n,i){if(r.flags&1048576||r.flags&2097152&&!Xb(r)){var a=e.map(r.types,function(s){return s_(Zc(s,n),i)});return r.flags&2097152||i?ro(a):Ot(a)}}function qk(r,n,i){if(n.flags&1048576){var a=e.map(n.types,function(s){return s_(Zc(r,s),i)});return i?ro(a):Ot(a)}}function Gk(r,n){var i=n?"simplifiedForWriting":"simplifiedForReading";if(r[i])return r[i]===Vi?r:r[i];r[i]=Vi;var a=s_(r.objectType,n),s=s_(r.indexType,n),l=qk(a,s,n);if(l)return r[i]=l;if(!(s.flags&465829888)){var g=rS(a,s,n);if(g)return r[i]=g}if(vm(a)&&s.flags&296){var W=Mh(a,s.flags&8?0:a.target.fixedLength,0,n);if(W)return r[i]=W}if(Xc(a)){var ce=Ff(a);if(!ce||io(ce,Pu(a)))return r[i]=Qo(yh(a,r.indexType),function(ke){return s_(ke,n)})}return r[i]=r}function Hk(r,n){var i=r.checkType,a=r.extendsType,s=Dd(r),l=bd(r);if(l.flags&131072&&hd(s)===hd(i)){if(i.flags&1||io(Op(i),Op(a)))return s_(s,n);if(nS(i,a))return we}else if(s.flags&131072&&hd(l)===hd(i)){if(!(i.flags&1)&&io(Op(i),Op(a)))return we;if(i.flags&1||nS(i,a))return s_(l,n)}return r}function nS(r,n){return!!(Ot([Wd(r,n),we]).flags&131072)}function yh(r,n){var i=jc([Pu(r)],[n]),a=xd(r.mapper,i);return ra(Jl(r.target||r),a)}function Zc(r,n,i,a,s,l){return i===void 0&&(i=0),yd(r,n,i,a,s,l)||(a?ue:_r)}function iS(r,n){return mf(r,function(i){if(i.flags&384){var a=Du(i);if(e.isNumericLiteralName(a)){var s=+a;return s>=0&&s<n}}return!1})}function yd(r,n,i,a,s,l){if(i===void 0&&(i=0),r===Qe||n===Qe)return Qe;if(CS(r)&&!(n.flags&98304)&&Bs(n,4|8)&&(n=yn),Y.noUncheckedIndexedAccess&&i&32&&(i|=1),vd(n)||(a&&a.kind!==196?vm(r)&&!iS(n,r.target.fixedLength):Qd(r)&&!(Xa(r)&&iS(n,r.target.fixedLength)))){if(r.flags&3)return r;var g=i&1,W=r.id+","+n.id+","+g+Ig(s,l),ce=We.get(W);return ce||We.set(W,ce=Vk(r,n,g,s,l)),ce}var ke=lr(r);if(n.flags&1048576&&!(n.flags&16)){for(var rr=[],$e=!1,ar=0,ir=n.types;ar<ir.length;ar++){var Wr=ir[ar],sn=eS(r,ke,Wr,n,a,i|($e?128:0));if(sn)rr.push(sn);else if(a)$e=!0;else return}return $e?void 0:i&4?ro(rr,s,l):Ot(rr,1,s,l)}return eS(r,ke,n,n,a,i|8|64)}function tS(r){var n=At(r);if(!n.resolvedType){var i=zt(r.objectType),a=zt(r.indexType),s=ng(r);n.resolvedType=Zc(i,a,0,r,s,Fg(s))}return n.resolvedType}function I1(r){var n=At(r);if(!n.resolvedType){var i=Gc(32,r.symbol);i.declaration=r,i.aliasSymbol=ng(r),i.aliasTypeArguments=Fg(i.aliasSymbol),n.resolvedType=i,zu(i)}return n.resolvedType}function hd(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Zc(hd(r.objectType),hd(r.indexType)):r}function Kk(r){var n=rc(r);return n&&(Qd(n)||vd(n))?Th(r):r}function aS(r){return!r.isDistributive&&oS(r.node.checkType)&&oS(r.node.extendsType)}function oS(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])&&!(e.isNamedTupleMember(r.elements[0])&&(r.elements[0].questionToken||r.elements[0].dotDotDotToken))}function w1(r,n){return aS(r)&&Xa(n)?No(n)[0]:n}function O1(r,n,i,a){for(var s,l,g=0;;){if(g===1e3){Zr(Xe,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),s=ue;break}var W=aS(r),ce=ra(w1(r,hd(r.checkType)),n),ke=rg(ce),rr=ra(w1(r,r.extendsType),n);if(ce===Qe||rr===Qe)return Qe;var $e=void 0;if(r.inferTypeParameters){var ar=e.sameMap(r.inferTypeParameters,Kk),ir=ar!==r.inferTypeParameters?jc(r.inferTypeParameters,ar):void 0,Wr=iv(ar,void 0,0);if(ir)for(var sn=xd(n,ir),In=0,Sn=ar;In<Sn.length;In++){var Kn=Sn[In];r.inferTypeParameters.indexOf(Kn)===-1&&(Kn.mapper=sn)}ke||Bf(Wr.inferences,ce,ra(rr,ir),512|1024);var ei=xd(ir,Wr.mapper);$e=n?xd(ei,n):ei}var Ti=$e?ra(w1(r,r.extendsType),$e):rr;if(!ke&&!rg(Ti)){if(!(Ti.flags&3)&&(ce.flags&1&&!W||!io(kh(ce),kh(Ti)))){ce.flags&1&&!W&&(l||(l=[])).push(ra(zt(r.node.trueType),$e||n));var Ri=zt(r.node.falseType);if(Ri.flags&16777216){var pt=Ri.root;if(pt.node.parent===r.node&&(!pt.isDistributive||pt.checkType===r.checkType)){r=pt;continue}if(St(Ri,n))continue}s=ra(Ri,n);break}if(Ti.flags&3||io(Op(ce),Op(Ti))){var rt=zt(r.node.trueType),Da=$e||n;if(St(rt,Da))continue;s=ra(rt,Da);break}}s=qc(16777216),s.root=r,s.checkType=ra(r.checkType,n),s.extendsType=ra(r.extendsType,n),s.mapper=n,s.combinedMapper=$e,s.aliasSymbol=i||r.aliasSymbol,s.aliasTypeArguments=i?a:c_(r.aliasTypeArguments,n);break}return l?Ot(e.append(l,s)):s;function St(ba,Ta){if(ba.flags&16777216&&Ta){var wa=ba.root;if(wa.outerTypeParameters){var So=xd(ba.mapper,Ta),xo=e.map(wa.outerTypeParameters,function(si){return Sd(si,So)}),uo=jc(wa.outerTypeParameters,xo),sa=wa.isDistributive?Sd(wa.checkType,uo):void 0;if(!sa||sa===wa.checkType||!(sa.flags&(1048576|131072)))return r=wa,n=uo,i=void 0,a=void 0,wa.aliasSymbol&&g++,!0}}return!1}}function Dd(r){return r.resolvedTrueType||(r.resolvedTrueType=ra(zt(r.root.node.trueType),r.mapper))}function bd(r){return r.resolvedFalseType||(r.resolvedFalseType=ra(zt(r.root.node.falseType),r.mapper))}function Qk(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?ra(zt(r.root.node.trueType),r.combinedMapper):Dd(r))}function sS(r){var n;return r.locals&&r.locals.forEach(function(i){i.flags&262144&&(n=e.append(n,nt(i)))}),n}function Xk(r){return r.isDistributive&&(ey(r.checkType,r.node.trueType)||ey(r.checkType,r.node.falseType))}function Zk(r){var n=At(r);if(!n.resolvedType){var i=zt(r.checkType),a=ng(r),s=Fg(a),l=_d(r,!0),g=s?l:e.filter(l,function(ce){return ey(ce,r)}),W={node:r,checkType:i,extendsType:zt(r.extendsType),isDistributive:!!(i.flags&262144),inferTypeParameters:sS(r),outerTypeParameters:g,instantiations:void 0,aliasSymbol:a,aliasTypeArguments:s};n.resolvedType=O1(W,void 0),g&&(W.instantiations=new e.Map,W.instantiations.set(wu(g),n.resolvedType))}return n.resolvedType}function Yk(r){var n=At(r);return n.resolvedType||(n.resolvedType=Et(zi(r.typeParameter))),n.resolvedType}function cS(r){return e.isIdentifier(r)?[r]:e.append(cS(r.left),r.right)}function $k(r){var n,i=At(r);if(!i.resolvedType){if(r.isTypeOf&&r.typeArguments)return Zr(r,e.Diagnostics.Type_arguments_cannot_be_used_here),i.resolvedSymbol=jr,i.resolvedType=ue;if(!e.isLiteralImportTypeNode(r))return Zr(r.argument,e.Diagnostics.String_literal_expected),i.resolvedSymbol=jr,i.resolvedType=ue;var a=r.isTypeOf?111551:r.flags&8388608?111551|788968:788968,s=Ms(r,r.argument.literal);if(!s)return i.resolvedSymbol=jr,i.resolvedType=ue;var l=!!((n=s.exports)===null||n===void 0?void 0:n.get("export=")),g=Us(s,!1);if(e.nodeIsMissing(r.qualifier))if(g.flags&a)i.resolvedType=uS(r,i,g,a);else{var sn=a===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Zr(r,sn,r.argument.literal.text),i.resolvedSymbol=jr,i.resolvedType=ue}else{for(var W=cS(r.qualifier),ce=g,ke=void 0;ke=W.shift();){var rr=W.length?1920:a,$e=Ya(ss(ce)),ar=r.isTypeOf||e.isInJSFile(r)&&l?Zt(Li($e),ke.escapedText,!1,!0):void 0,ir=r.isTypeOf?void 0:Wc(Ac($e),ke.escapedText,rr),Wr=ir!=null?ir:ar;if(!Wr)return Zr(ke,e.Diagnostics.Namespace_0_has_no_exported_member_1,kc(ce),e.declarationNameToString(ke)),i.resolvedType=ue;At(ke).resolvedSymbol=Wr,At(ke.parent).resolvedSymbol=Wr,ce=Wr}i.resolvedType=uS(r,i,ce,a)}}return i.resolvedType}function uS(r,n,i,a){var s=ss(i);return n.resolvedSymbol=s,a===111551?Li(i):fh(r,s)}function lS(r){var n=At(r);if(!n.resolvedType){var i=ng(r);if(pf(r.symbol).size===0&&!i)n.resolvedType=Ua;else{var a=Gc(16,r.symbol);a.aliasSymbol=i,a.aliasTypeArguments=Fg(i),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(a=ic(a)),n.resolvedType=a}}return n.resolvedType}function ng(r){for(var n=r.parent;e.isParenthesizedTypeNode(n)||e.isJSDocTypeExpression(n)||e.isTypeOperatorNode(n)&&n.operator===146;)n=n.parent;return e.isTypeAlias(n)?zi(n):void 0}function Fg(r){return r?df(r):void 0}function F1(r){return!!(r.flags&524288)&&!Xc(r)}function M1(r){return Rf(r)||!!(r.flags&(65536|32768|528|296|2112|402653316|1056|67108864|4194304))}function L1(r,n){if(!(r.flags&1048576))return r;if(e.every(r.types,M1))return e.find(r.types,Rf)||Zi;var i=e.find(r.types,function(l){return!M1(l)});if(!i)return r;var a=e.find(r.types,function(l){return l!==i&&!M1(l)});if(a)return r;return s(i);function s(l){for(var g=e.createSymbolTable(),W=0,ce=vo(l);W<ce.length;W++){var ke=ce[W];if(!(e.getDeclarationModifierFlagsFromSymbol(ke)&(8|16))){if(hh(ke)){var rr=ke.flags&65536&&!(ke.flags&32768),$e=4|16777216,ar=go($e,ke.escapedName,Jv(ke)|(n?8:0));ar.type=rr?zr:fu(Li(ke),!0),ar.declarations=ke.declarations,ar.nameType=Qt(ke).nameType,ar.syntheticOrigin=ke,g.set(ke.escapedName,ar)}}}var ir=Yo(l.symbol,g,e.emptyArray,e.emptyArray,hs(l));return ir.objectFlags|=128|131072,ir}}function Xd(r,n,i,a,s){if(r.flags&1||n.flags&1)return Te;if(r.flags&2||n.flags&2)return _r;if(r.flags&131072)return n;if(n.flags&131072)return r;if(r=L1(r,s),r.flags&1048576)return Xv([r,n])?Qo(r,function(Ri){return Xd(Ri,n,i,a,s)}):ue;if(n=L1(n,s),n.flags&1048576)return Xv([r,n])?Qo(n,function(Ri){return Xd(r,Ri,i,a,s)}):ue;if(n.flags&(528|296|2112|402653316|1056|67108864|4194304))return r;if(Qd(r)||Qd(n)){if(Rf(r))return n;if(r.flags&2097152){var l=r.types,g=l[l.length-1];if(F1(g)&&F1(n))return ro(e.concatenate(l.slice(0,l.length-1),[Xd(g,n,i,a,s)]))}return ro([r,n])}for(var W=e.createSymbolTable(),ce=new e.Set,ke=r===Zi?hs(n):Ky([r,n]),rr=0,$e=vo(n);rr<$e.length;rr++){var ar=$e[rr];e.getDeclarationModifierFlagsFromSymbol(ar)&(8|16)?ce.add(ar.escapedName):hh(ar)&&W.set(ar.escapedName,R1(ar,s))}for(var ir=0,Wr=vo(r);ir<Wr.length;ir++){var sn=Wr[ir];if(!(ce.has(sn.escapedName)||!hh(sn)))if(W.has(sn.escapedName)){var ar=W.get(sn.escapedName),In=Li(ar);if(ar.flags&16777216){var Sn=e.concatenate(sn.declarations,ar.declarations),Kn=4|sn.flags&16777216,ei=go(Kn,sn.escapedName);ei.type=Ot([Li(sn),c2(In)],2),ei.leftSpread=sn,ei.rightSpread=ar,ei.declarations=Sn,ei.nameType=Qt(sn).nameType,W.set(sn.escapedName,ei)}}else W.set(sn.escapedName,R1(sn,s))}var Ti=Yo(i,W,e.emptyArray,e.emptyArray,e.sameMap(ke,function(Ri){return e6(Ri,s)}));return Ti.objectFlags|=128|131072|2097152|a,Ti}function hh(r){var n;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&(8192|32768|65536))||!((n=r.declarations)===null||n===void 0?void 0:n.some(function(i){return e.isClassLike(i.parent)})))}function R1(r,n){var i=r.flags&65536&&!(r.flags&32768);if(!i&&n===_l(r))return r;var a=4|r.flags&16777216,s=go(a,r.escapedName,Jv(r)|(n?8:0));return s.type=i?zr:Li(r),s.declarations=r.declarations,s.nameType=Qt(r).nameType,s.syntheticOrigin=r,s}function e6(r,n){return r.isReadonly!==n?Ul(r.keyType,r.type,n,r.declaration):r}function Zv(r,n,i,a){var s=qc(r);return s.symbol=i,s.value=n,s.regularType=a||s,s}function Mg(r){if(r.flags&2944){if(!r.freshType){var n=Zv(r.flags,r.value,r.symbol,r);n.freshType=n,r.freshType=n}return r.freshType}return r}function Jc(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=Qo(r,Jc)):r}function Zd(r){return!!(r.flags&2944)&&r.freshType===r}function Ou(r){var n;return Qr.get(r)||(Qr.set(r,n=Zv(128,r)),n)}function Vl(r){var n;return en.get(r)||(en.set(r,n=Zv(256,r)),n)}function Dh(r){var n,i=e.pseudoBigIntToString(r);return vn.get(i)||(vn.set(i,n=Zv(2048,r)),n)}function r6(r,n,i){var a,s=typeof r=="string"?"@":"#",l=n+s+r,g=1024|(typeof r=="string"?128:256);return Ie.get(l)||(Ie.set(l,a=Zv(g,r,i)),a)}function n6(r){if(r.literal.kind===104)return bn;var n=At(r);return n.resolvedType||(n.resolvedType=Jc(ya(r.literal))),n.resolvedType}function i6(r){var n=qc(8192);return n.symbol=r,n.escapedName="__@".concat(n.symbol.escapedName,"@").concat(h(n.symbol)),n}function B1(r){if(e.isValidESSymbolDeclaration(r)){var n=e.isCommonJsExportPropertyAssignment(r)?zi(r.left):zi(r);if(n){var i=Qt(n);return i.uniqueESSymbolType||(i.uniqueESSymbolType=i6(n))}}return Pe}function t6(r){var n=e.getThisContainer(r,!1),i=n&&n.parent;if(i&&(e.isClassLike(i)||i.kind===261)&&!e.isStatic(n)&&(!e.isConstructorDeclaration(n)||e.isNodeDescendantOf(r,n.body)))return _u(zi(i)).thisType;if(i&&e.isObjectLiteralExpression(i)&&e.isBinaryExpression(i.parent)&&e.getAssignmentDeclarationKind(i.parent)===6)return _u(zi(i.parent.left).parent).thisType;var a=r.flags&8388608?e.getHostSignatureFromJSDoc(r):void 0;return a&&e.isFunctionExpression(a)&&e.isBinaryExpression(a.parent)&&e.getAssignmentDeclarationKind(a.parent)===3?_u(zi(a.parent.left).parent).thisType:Sl(n)&&e.isNodeDescendantOf(r,n.body)?_u(zi(n)).thisType:(Zr(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ue)}function bh(r){var n=At(r);return n.resolvedType||(n.resolvedType=t6(r)),n.resolvedType}function fS(r){return zt(Yv(r.type)||r.type)}function Yv(r){switch(r.kind){case 193:return Yv(r.type);case 186:if(r.elements.length===1&&(r=r.elements[0],r.kind===188||r.kind===199&&r.dotDotDotToken))return Yv(r.type);break;case 185:return r.elementType}}function a6(r){var n=At(r);return n.resolvedType||(n.resolvedType=r.dotDotDotToken?fS(r):fu(zt(r.type),!0,!!r.questionToken))}function zt(r){return GE(_S(r),r)}function _S(r){switch(r.kind){case 131:case 315:case 316:return Te;case 157:return _r;case 152:return yn;case 148:return Hn;case 160:return Ai;case 134:return Pn;case 153:return Pe;case 114:return Ir;case 155:return zr;case 104:return bn;case 144:return we;case 149:return r.flags&262144&&!Ue?Te:nn;case 139:return hr;case 194:case 108:return bh(r);case 198:return n6(r);case 180:return Kv(r);case 179:return r.assertsModifier?Ir:Pn;case 230:return Kv(r);case 183:return Sb(r);case 185:case 186:return dk(r);case 187:return mk(r);case 189:return xk(r);case 190:return Ik(r);case 317:return HE(r);case 319:return fu(zt(r.type));case 199:return a6(r);case 193:case 318:case 312:return zt(r.type);case 188:return fS(r);case 321:return OI(r);case 181:case 182:case 184:case 325:case 320:case 326:return lS(r);case 195:return Bk(r);case 196:return tS(r);case 197:return I1(r);case 191:return Zk(r);case 192:return Yk(r);case 200:return Jk(r);case 202:return $k(r);case 79:case 163:case 208:var n=Ku(r);return n?nt(n):ue;default:return ue}}function Sh(r,n,i){if(r&&r.length)for(var a=0;a<r.length;a++){var s=r[a],l=i(s,n);if(s!==l){var g=a===0?[]:r.slice(0,a);for(g.push(l),a++;a<r.length;a++)g.push(i(r[a],n));return g}}return r}function c_(r,n){return Sh(r,n,ra)}function xh(r,n){return Sh(r,n,Lg)}function dS(r,n){return Sh(r,n,h6)}function jc(r,n){return r.length===1?Yd(r[0],n?n[0]:Te):o6(r,n)}function Sd(r,n){switch(n.kind){case 0:return r===n.source?n.target:r;case 1:{for(var i=n.sources,a=n.targets,s=0;s<i.length;s++)if(r===i[s])return a?a[s]:Te;return r}case 2:{for(var i=n.sources,a=n.targets,s=0;s<i.length;s++)if(r===i[s])return a[s]();return r}case 3:return n.func(r);case 4:case 5:var l=Sd(r,n.mapper1);return l!==r&&n.kind===4?ra(l,n.mapper2):Sd(l,n.mapper2)}}function Yd(r,n){return e.Debug.attachDebugPrototypeIfDebug({kind:0,source:r,target:n})}function o6(r,n){return e.Debug.attachDebugPrototypeIfDebug({kind:1,sources:r,targets:n})}function $v(r,n){return e.Debug.attachDebugPrototypeIfDebug({kind:3,func:r,debugInfo:e.Debug.isDebugging?n:void 0})}function J1(r,n){return e.Debug.attachDebugPrototypeIfDebug({kind:2,sources:r,targets:n})}function Ch(r,n,i){return e.Debug.attachDebugPrototypeIfDebug({kind:r,mapper1:n,mapper2:i})}function pS(r){return jc(r,void 0)}function s6(r,n){var i=r.inferences.slice(n);return jc(e.map(i,function(a){return a.typeParameter}),e.map(i,function(){return _r}))}function xd(r,n){return r?Ch(4,r,n):n}function c6(r,n){return r?Ch(5,r,n):n}function ig(r,n,i){return i?Ch(5,Yd(r,n),i):Yd(r,n)}function Qm(r,n,i){return r?Ch(5,r,Yd(n,i)):Yd(n,i)}function u6(r){return!r.constraint&&!d1(r)||r.constraint===Aa?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=uu(r.symbol),r.restrictiveInstantiation.constraint=Aa,r.restrictiveInstantiation)}function Th(r){var n=uu(r.symbol);return n.target=r,n}function l6(r,n){return lm(r.kind,r.parameterName,r.parameterIndex,ra(r.type,n))}function Lg(r,n,i){var a;if(r.typeParameters&&!i){a=e.map(r.typeParameters,Th),n=xd(jc(r.typeParameters,a),n);for(var s=0,l=a;s<l.length;s++){var g=l[s];g.mapper=n}}var W=Bl(r.declaration,a,r.thisParameter&&j1(r.thisParameter,n),Sh(r.parameters,n,j1),void 0,void 0,r.minArgumentCount,r.flags&39);return W.target=r,W.mapper=n,W}function j1(r,n){var i=Qt(r);if(i.type&&!Mp(i.type))return r;e.getCheckFlags(r)&1&&(r=i.target,n=xd(i.mapper,n));var a=go(r.flags,r.escapedName,1|e.getCheckFlags(r)&(8|4096|16384|32768));return a.declarations=r.declarations,a.parent=r.parent,a.target=r,a.mapper=n,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),i.nameType&&(a.nameType=i.nameType),a}function f6(r,n,i,a){var s=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],l=At(s),g=r.objectFlags&4?l.resolvedType:r.objectFlags&64?r.target:r,W=l.outerTypeParameters;if(!W){var ce=_d(s,!0);if(Sl(s)){var ke=ah(s);ce=e.addRange(ce,ke)}W=ce||e.emptyArray;var rr=r.objectFlags&(4|8388608)?[s]:r.symbol.declarations;W=(g.objectFlags&(4|8388608)||g.symbol.flags&8192||g.symbol.flags&2048)&&!g.aliasTypeArguments?e.filter(W,function(Kn){return e.some(rr,function(ei){return ey(Kn,ei)})}):W,l.outerTypeParameters=W}if(W.length){var $e=xd(r.mapper,n),ar=e.map(W,function(Kn){return Sd(Kn,$e)}),ir=i||r.aliasSymbol,Wr=i?a:c_(r.aliasTypeArguments,n),sn=wu(ar)+Ig(ir,Wr);g.instantiations||(g.instantiations=new e.Map,g.instantiations.set(wu(W)+Ig(g.aliasSymbol,g.aliasTypeArguments),g));var In=g.instantiations.get(sn);if(!In){var Sn=jc(W,ar);In=g.objectFlags&4?p1(r.target,r.node,Sn,ir,Wr):g.objectFlags&32?gS(g,Sn,ir,Wr):z1(g,Sn,ir,Wr),g.instantiations.set(sn,In)}return In}return r}function _6(r){return!(r.parent.kind===180&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===202&&r.parent.typeArguments&&r===r.parent.qualifier)}function ey(r,n){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var i=r.symbol.declarations[0].parent,a=n;a!==i;a=a.parent)if(!a||a.kind===238||a.kind===191&&e.forEachChild(a.extendsType,s))return!0;return s(n)}return!0;function s(l){switch(l.kind){case 194:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(l)&&_6(l)&&_S(l)===r;case 183:var g=l.exprName,W=e.getFirstIdentifier(g),ce=Hu(W),ke=r.symbol.declarations[0],rr;if(ke.kind===165)rr=ke.parent;else if(r.isThisType)rr=ke;else return!0;return ce.declarations?e.some(ce.declarations,function($e){return e.isNodeDescendantOf($e,rr)})||e.some(l.typeArguments,s):!0;case 171:case 170:return!l.type&&!!l.body||e.some(l.typeParameters,s)||e.some(l.parameters,s)||!!l.type&&s(l.type)}return!!e.forEachChild(l,s)}}function Eh(r){var n=zu(r);if(n.flags&4194304){var i=hd(n.type);if(i.flags&262144)return i}}function gS(r,n,i,a){var s=Eh(r);if(s){var l=ra(s,n);if(s!==l)return gx(ct(l),function(g){if(g.flags&(3|58982400|524288|2097152)&&g!==Qe&&!ca(g)){if(!r.declaration.nameType){var W=void 0;if(Fu(g)||g.flags&1&&kt(s,4)<0&&(W=rc(s))&&mf(W,Fp))return p6(g,r,ig(s,g,n));if(vm(g))return d6(g,r,s,n);if(Xa(g))return g6(g,r,ig(s,g,n))}return z1(r,ig(s,g,n))}return g},i,a)}return ra(zu(r),n)===Qe?Qe:z1(r,n,i,a)}function U1(r,n){return n&1?!0:n&2?!1:r}function d6(r,n,i,a){var s=r.target.elementFlags,l=e.map(No(r),function(W,ce){var ke=s[ce]&8?W:s[ce]&4?ic(W):zl([W],[s[ce]]);return gS(n,ig(i,ke,a))}),g=U1(r.target.readonly,sl(n));return zl(l,e.map(l,function(W){return 8}),g)}function p6(r,n,i){var a=mS(n,Hn,!0,i);return ca(a)?ue:ic(a,U1(mm(r),sl(n)))}function g6(r,n,i){var a=r.target.elementFlags,s=e.map(No(r),function(ce,ke){return mS(n,Ou(""+ke),!!(a[ke]&2),i)}),l=sl(n),g=l&4?e.map(a,function(ce){return ce&1?2:ce}):l&8?e.map(a,function(ce){return ce&2?1:ce}):a,W=U1(r.target.readonly,l);return e.contains(s,ue)?ue:zl(s,g,W,r.target.labeledElementDeclarations)}function mS(r,n,i,a){var s=Qm(a,Pu(r),n),l=ra(Jl(r.target||r),s),g=sl(r);return Re&&g&4&&!rs(l,32768|16384)?u_(l,!0):Re&&g&8&&i?bu(l,524288):l}function z1(r,n,i,a){var s=Gc(r.objectFlags|64,r.symbol);if(r.objectFlags&32){s.declaration=r.declaration;var l=Pu(r),g=Th(l);s.typeParameter=g,n=xd(Yd(l,g),n),g.mapper=n}return r.objectFlags&8388608&&(s.node=r.node),s.target=r,s.mapper=n,s.aliasSymbol=i||r.aliasSymbol,s.aliasTypeArguments=i?a:c_(r.aliasTypeArguments,n),s.objectFlags|=s.aliasTypeArguments?uh(s.aliasTypeArguments):0,s}function W1(r,n,i,a){var s=r.root;if(s.outerTypeParameters){var l=e.map(s.outerTypeParameters,function($e){return Sd($e,n)}),g=wu(l)+Ig(i,a),W=s.instantiations.get(g);if(!W){var ce=jc(s.outerTypeParameters,l),ke=s.checkType,rr=s.isDistributive?Sd(ke,ce):void 0;W=rr&&ke!==rr&&rr.flags&(1048576|131072)?gx(ct(rr),function($e){return O1(s,ig(ke,$e,ce))},i,a):O1(s,ce,i,a),s.instantiations.set(g,W)}return W}return r}function ra(r,n){return r&&n?vS(r,n,void 0,void 0):r}function vS(r,n,i,a){if(!Mp(r))return r;if(Le===100||Me>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:Le,instantiationCount:Me}),Zr(Xe,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),ue;Be++,Me++,Le++;var s=m6(r,n,i,a);return Le--,s}function m6(r,n,i,a){var s=r.flags;if(s&262144)return Sd(r,n);if(s&524288){var l=r.objectFlags;if(l&(4|16|32)){if(l&4&&!r.node){var g=r.resolvedTypeArguments,W=c_(g,n);return W!==g?S1(r.target,W):r}return l&1024?v6(r,n):f6(r,n,i,a)}return r}if(s&3145728){var ce=r.flags&1048576?r.origin:void 0,ke=ce&&ce.flags&3145728?ce.types:r.types,rr=c_(ke,n);if(rr===ke&&i===r.aliasSymbol)return r;var $e=i||r.aliasSymbol,ar=i?a:c_(r.aliasTypeArguments,n);return s&2097152||ce&&ce.flags&2097152?ro(rr,$e,ar):Ot(rr,1,$e,ar)}if(s&4194304)return Wl(ra(r.type,n));if(s&134217728)return wp(r.texts,c_(r.types,n));if(s&268435456)return eg(r.symbol,ra(r.type,n));if(s&8388608){var $e=i||r.aliasSymbol,ar=i?a:c_(r.aliasTypeArguments,n);return Zc(ra(r.objectType,n),ra(r.indexType,n),r.accessFlags,void 0,$e,ar)}if(s&16777216)return W1(r,xd(r.mapper,n),i,a);if(s&33554432){var ir=ra(r.baseType,n),Wr=ra(r.constraint,n);return ir.flags&8650752&&rg(Wr)?g1(ir,Wr):Wr.flags&3||io(Op(ir),Op(Wr))?ir:ir.flags&8650752?g1(ir,Wr):ro([Wr,ir])}return r}function v6(r,n){var i=ra(r.mappedType,n);if(!(e.getObjectFlags(i)&32))return r;var a=ra(r.constraintType,n);if(!(a.flags&4194304))return r;var s=GS(ra(r.source,n),i,a);return s||r}function y6(r){return r.flags&(131068|3|131072)?r:r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=ra(r,qi))}function kh(r){return r.flags&(131068|3|131072)?r:r.permissiveInstantiation||(r.permissiveInstantiation=ra(r,Ki))}function Op(r){return r.flags&(131068|3|131072)?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=ra(r,Vn),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function h6(r,n){return Ul(r.keyType,ra(r.type,n),r.isReadonly,r.declaration)}function Gu(r){switch(e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r)),r.kind){case 215:case 216:case 171:case 259:return yS(r);case 207:return e.some(r.properties,Gu);case 206:return e.some(r.elements,Gu);case 224:return Gu(r.whenTrue)||Gu(r.whenFalse);case 223:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(Gu(r.left)||Gu(r.right));case 299:return Gu(r.initializer);case 214:return Gu(r.expression);case 289:return e.some(r.properties,Gu)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,Gu);case 288:{var n=r.initializer;return!!n&&Gu(n)}case 291:{var i=r.expression;return!!i&&Gu(i)}}return!1}function yS(r){return e.hasContextSensitiveParameters(r)||D6(r)}function D6(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==238&&Gu(r.body)}function V1(r){return(e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&yS(r)}function hS(r){if(r.flags&524288){var n=Iu(r);if(n.constructSignatures.length||n.callSignatures.length){var i=Gc(16,r.symbol);return i.members=n.members,i.properties=n.properties,i.callSignatures=e.emptyArray,i.constructSignatures=e.emptyArray,i.indexInfos=e.emptyArray,i}}else if(r.flags&2097152)return ro(e.map(r.types,hS));return r}function Lf(r,n){return gf(r,n,no)}function Xm(r,n){return gf(r,n,no)?-1:0}function q1(r,n){return gf(r,n,fa)?-1:0}function b6(r,n){return gf(r,n,gt)?-1:0}function Cd(r,n){return gf(r,n,gt)}function io(r,n){return gf(r,n,fa)}function tg(r,n){return r.flags&1048576?e.every(r.types,function(i){return tg(i,n)}):n.flags&1048576?e.some(n.types,function(i){return tg(r,i)}):r.flags&58982400?tg(uc(r)||_r,n):n===di?!!(r.flags&(524288|67108864)):n===fi?!!(r.flags&524288)&&k2(r):Of(r,wf(n))||Fu(n)&&!mm(n)&&tg(r,na)}function Zm(r,n){return gf(r,n,Ka)}function Ah(r,n){return Zm(r,n)||Zm(n,r)}function Fc(r,n,i,a,s,l){return Dl(r,n,fa,i,a,s,l)}function R_(r,n,i,a,s,l){return G1(r,n,fa,i,a,s,l,void 0)}function G1(r,n,i,a,s,l,g,W){return gf(r,n,i)?!0:!a||!ry(s,r,n,i,l,g,W)?Dl(r,n,i,a,l,g,W):!1}function DS(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,DS))}function ry(r,n,i,a,s,l,g){if(!r||DS(i))return!1;if(!Dl(n,i,a,void 0)&&S6(r,n,i,a,s,l,g))return!0;switch(r.kind){case 291:case 214:return ry(r.expression,n,i,a,s,l,g);case 223:switch(r.operatorToken.kind){case 63:case 27:return ry(r.right,n,i,a,s,l,g)}break;case 207:return I6(r,n,i,a,l,g);case 206:return N6(r,n,i,a,l,g);case 289:return A6(r,n,i,a,l,g);case 216:return x6(r,n,i,a,l,g)}return!1}function S6(r,n,i,a,s,l,g){for(var W=_a(n,0),ce=_a(n,1),ke=0,rr=[ce,W];ke<rr.length;ke++){var $e=rr[ke];if(e.some($e,function(Wr){var sn=Ao(Wr);return!(sn.flags&(1|131072))&&Dl(sn,i,a,void 0)})){var ar=g||{};Fc(n,i,r,s,l,ar);var ir=ar.errors[ar.errors.length-1];return e.addRelatedInfo(ir,e.createDiagnosticForNode(r,$e===ce?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function x6(r,n,i,a,s,l){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var g=cg(n);if(!g)return!1;var W=_a(i,0);if(!e.length(W))return!1;var ce=r.body,ke=Ao(g),rr=Ot(e.map(W,Ao));if(!Dl(ke,rr,a,void 0)){var $e=ce&&ry(ce,ke,rr,a,void 0,s,l);if($e)return $e;var ar=l||{};if(Dl(ke,rr,a,ce,void 0,s,ar),ar.errors)return i.symbol&&e.length(i.symbol.declarations)&&e.addRelatedInfo(ar.errors[ar.errors.length-1],e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),(e.getFunctionFlags(r)&2)==0&&!Na(ke,"then")&&Dl(Ey(ke),rr,a,void 0)&&e.addRelatedInfo(ar.errors[ar.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function C6(r,n,i){var a=yd(n,i);if(a)return a;if(n.flags&1048576){var s=kS(r,n);if(s)return yd(s,i)}}function T6(r,n){r.contextualType=n;try{return Em(r,1,n)}finally{r.contextualType=void 0}}function Ym(r,n,i,a,s,l){for(var g=!1,W=r.next();!W.done;W=r.next()){var ce=W.value,ke=ce.errorNode,rr=ce.innerExpression,$e=ce.nameType,ar=ce.errorMessage,ir=C6(n,i,$e);if(!(!ir||ir.flags&8388608)){var Wr=yd(n,$e);if(!!Wr){var sn=A1($e,void 0);if(!Dl(Wr,ir,a,void 0)){var In=rr&&ry(rr,Wr,ir,a,void 0,s,l);if(g=!0,!In){var Sn=l||{},Kn=rr?T6(rr,Wr):Wr;if(vr&&Z1(Kn,ir)){var ei=e.createDiagnosticForNode(ke,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Oi(Kn),Oi(ir));fe.add(ei),Sn.errors=[ei]}else{var Ti=!!(sn&&(Zt(i,sn)||jr).flags&16777216),Ri=!!(sn&&(Zt(n,sn)||jr).flags&16777216);ir=Jg(ir,Ti),Wr=Jg(Wr,Ti&&Ri);var pt=Dl(Kn,ir,a,ke,ar,s,Sn);pt&&Kn!==Wr&&Dl(Wr,ir,a,ke,ar,s,Sn)}if(Sn.errors){var rt=Sn.errors[Sn.errors.length-1],Da=hu($e)?Du($e):void 0,St=Da!==void 0?Zt(i,Da):void 0,ba=!1;if(!St){var Ta=Ng(i,$e);Ta&&Ta.declaration&&!e.getSourceFileOfNode(Ta.declaration).hasNoDefaultLib&&(ba=!0,e.addRelatedInfo(rt,e.createDiagnosticForNode(Ta.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!ba&&(St&&e.length(St.declarations)||i.symbol&&e.length(i.symbol.declarations))){var wa=St&&e.length(St.declarations)?St.declarations[0]:i.symbol.declarations[0];e.getSourceFileOfNode(wa).hasNoDefaultLib||e.addRelatedInfo(rt,e.createDiagnosticForNode(wa,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Da&&!($e.flags&8192)?e.unescapeLeadingUnderscores(Da):Oi($e),Oi(i)))}}}}}}}return g}function E6(r){var n,i,a;return _s(this,function(s){switch(s.label){case 0:if(!e.length(r.properties))return[2];n=0,i=r.properties,s.label=1;case 1:return n<i.length?(a=i[n],e.isJsxSpreadAttribute(a)||G2(e.idText(a.name))?[3,3]:[4,{errorNode:a.name,innerExpression:a.initializer,nameType:Ou(e.idText(a.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return n++,[3,1];case 4:return[2]}})}function k6(r,n){var i,a,s,l,g;return _s(this,function(W){switch(W.label){case 0:if(!e.length(r.children))return[2];i=0,a=0,W.label=1;case 1:return a<r.children.length?(s=r.children[a],l=Vl(a-i),g=bS(s,l,n),g?[4,g]:[3,3]):[3,5];case 2:return W.sent(),[3,4];case 3:i++,W.label=4;case 4:return a++,[3,1];case 5:return[2]}})}function bS(r,n,i){switch(r.kind){case 291:return{errorNode:r,innerExpression:r.expression,nameType:n};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:n,errorMessage:i()};case 281:case 282:case 285:return{errorNode:r,innerExpression:r,nameType:n};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function A6(r,n,i,a,s,l){var g=Ym(E6(r),n,i,a,s,l),W;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var ce=r.parent.parent,ke=t0(Vg(r)),rr=ke===void 0?"children":e.unescapeLeadingUnderscores(ke),$e=Ou(rr),ar=Zc(i,$e),ir=e.getSemanticJsxChildren(ce.children);if(!e.length(ir))return g;var Wr=e.length(ir)>1,sn=Qs(ar,FS),In=Qs(ar,function(rt){return!FS(rt)});if(Wr){if(sn!==we){var Sn=zl(i0(ce,0)),Kn=k6(ce,pt);g=Ym(Kn,Sn,sn,a,s,l)||g}else if(!gf(Zc(n,$e),ar,a)){g=!0;var ei=Zr(ce.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,rr,Oi(ar));l&&l.skipLogging&&(l.errors||(l.errors=[])).push(ei)}}else if(In!==we){var Ti=ir[0],Ri=bS(Ti,$e,pt);Ri&&(g=Ym(function(){return _s(this,function(rt){switch(rt.label){case 0:return[4,Ri];case 1:return rt.sent(),[2]}})}(),n,i,a,s,l)||g)}else if(!gf(Zc(n,$e),ar,a)){g=!0;var ei=Zr(ce.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,rr,Oi(ar));l&&l.skipLogging&&(l.errors||(l.errors=[])).push(ei)}}return g;function pt(){if(!W){var rt=e.getTextOfNode(r.parent.tagName),Da=t0(Vg(r)),St=Da===void 0?"children":e.unescapeLeadingUnderscores(Da),ba=Zc(i,Ou(St)),Ta=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;W=vi(vi({},Ta),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Ta,rt,St,Oi(ba))})}return W}}function SS(r,n){var i,a,s,l;return _s(this,function(g){switch(g.label){case 0:if(i=e.length(r.elements),!i)return[2];a=0,g.label=1;case 1:return a<i?Rg(n)&&!Zt(n,""+a)?[3,3]:(s=r.elements[a],e.isOmittedExpression(s)?[3,3]:(l=Vl(a),[4,{errorNode:s,innerExpression:s,nameType:l}])):[3,4];case 2:g.sent(),g.label=3;case 3:return a++,[3,1];case 4:return[2]}})}function N6(r,n,i,a,s,l){if(i.flags&(131068|131072))return!1;if(Rg(n))return Ym(SS(r,i),n,i,a,s,l);var g=r.contextualType;r.contextualType=i;try{var W=Bx(r,1,!0);return r.contextualType=g,Rg(W)?Ym(SS(r,i),W,i,a,s,l):!1}finally{r.contextualType=g}}function P6(r){var n,i,a,s,l;return _s(this,function(g){switch(g.label){case 0:if(!e.length(r.properties))return[2];n=0,i=r.properties,g.label=1;case 1:if(!(n<i.length))return[3,8];if(a=i[n],e.isSpreadAssignment(a))return[3,7];if(s=pm(zi(a),8576),!s||s.flags&131072)return[3,7];switch(l=a.kind,l){case 175:return[3,2];case 174:return[3,2];case 171:return[3,2];case 300:return[3,2];case 299:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:void 0,nameType:s}];case 3:return g.sent(),[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(a.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return g.sent(),[3,7];case 6:e.Debug.assertNever(a),g.label=7;case 7:return n++,[3,1];case 8:return[2]}})}function I6(r,n,i,a,s,l){return i.flags&(131068|131072)?!1:Ym(P6(r),n,i,a,s,l)}function xS(r,n,i,a,s){return Dl(r,n,Ka,i,a,s)}function w6(r,n,i){return H1(r,n,i?4:0,!1,void 0,void 0,q1,void 0)!==0}function O6(r){return!r.typeParameters&&(!r.thisParameter||Ba(lv(r.thisParameter)))&&r.parameters.length===1&&G(r)&&(lv(r.parameters[0])===Es||Ba(lv(r.parameters[0])))&&Ba(Ao(r))}function H1(r,n,i,a,s,l,g,W){if(r===n||O6(n))return-1;var ce=au(n),ke=!Kl(n)&&(i&8?Kl(r)||au(r)>ce:Hl(r)>ce);if(ke)return 0;r.typeParameters&&r.typeParameters!==n.typeParameters&&(n=jE(n),r=gC(r,n,void 0,g));var rr=au(r),$e=dv(r),ar=dv(n);($e||ar)&&ra($e||ar,W);var ir=n.declaration?n.declaration.kind:0,Wr=!(i&3)&&er&&ir!==171&&ir!==170&&ir!==173,sn=-1,In=Hd(r);if(In&&In!==Ir){var Sn=Hd(n);if(Sn){var Kn=!Wr&&g(In,Sn,!1)||g(Sn,In,a);if(!Kn)return a&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;sn&=Kn}}for(var ei=$e||ar?Math.min(rr,ce):Math.max(rr,ce),Ti=$e||ar?ei-1:-1,Ri=0;Ri<ei;Ri++){var pt=Ri===Ti?fv(r,Ri):jp(r,Ri),rt=Ri===Ti?fv(n,Ri):jp(n,Ri);if(pt&&rt){var Da=i&3?void 0:cg(l_(pt)),St=i&3?void 0:cg(l_(rt)),ba=Da&&St&&!qu(Da)&&!qu(St)&&(fc(pt)&50331648)==(fc(rt)&50331648),Kn=ba?H1(St,Da,i&8|(Wr?2:1),a,s,l,g,W):!(i&3)&&!Wr&&g(pt,rt,!1)||g(rt,pt,a);if(Kn&&i&8&&Ri>=Hl(r)&&Ri<Hl(n)&&g(pt,rt,!1)&&(Kn=0),!Kn)return a&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Cm(r,Ri)),e.unescapeLeadingUnderscores(Cm(n,Ri))),0;sn&=Kn}}if(!(i&4)){var Ta=u1(n)?Te:n.declaration&&Sl(n.declaration)?_u(Ya(n.declaration.symbol)):Ao(n);if(Ta===Ir||Ta===Te)return sn;var wa=u1(r)?Te:r.declaration&&Sl(r.declaration)?_u(Ya(r.declaration.symbol)):Ao(r),So=qu(n);if(So){var xo=qu(r);if(xo)sn&=F6(xo,So,a,s,g);else if(e.isIdentifierTypePredicate(So))return a&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,ru(r)),0}else sn&=i&1&&g(Ta,wa,!1)||g(wa,Ta,a),!sn&&a&&l&&l(wa,Ta)}return sn}function F6(r,n,i,a,s){if(r.kind!==n.kind)return i&&(a(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,yc(r),yc(n))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==n.parameterIndex)return i&&(a(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,n.parameterName),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,yc(r),yc(n))),0;var l=r.type===n.type?-1:r.type&&n.type?s(r.type,n.type,i):0;return l===0&&i&&a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,yc(r),yc(n)),l}function M6(r,n){var i=Wm(r),a=Wm(n),s=Ao(i),l=Ao(a);return l===Ir||gf(l,s,fa)||gf(s,l,fa)?w6(i,a,!0):!1}function K1(r){return r!==ho&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function Rf(r){return r.flags&524288?!Xc(r)&&K1(Iu(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,Rf):r.flags&2097152?e.every(r.types,Rf):!1}function $d(r){return!!(e.getObjectFlags(r)&16&&(r.members&&K1(r)||r.symbol&&r.symbol.flags&2048&&pf(r.symbol).size===0))}function L6(r){if(Re&&r.flags&1048576){if(!(r.objectFlags&33554432)){var n=r.types;r.objectFlags|=33554432|(n.length>=3&&n[0].flags&32768&&n[1].flags&65536&&e.some(n,$d)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function gm(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function CS(r){return r.flags&524288&&!Xc(r)&&vo(r).length===0&&hs(r).length===1&&!!Wu(r,yn)||r.flags&3145728&&e.every(r.types,CS)||!1}function Q1(r,n,i){if(r===n)return!0;var a=h(r)+","+h(n),s=Eo.get(a);if(s!==void 0&&!(!(s&4)&&s&2&&i))return!!(s&1);if(r.escapedName!==n.escapedName||!(r.flags&256)||!(n.flags&256))return Eo.set(a,2|4),!1;for(var l=Li(n),g=0,W=vo(Li(r));g<W.length;g++){var ce=W[g];if(ce.flags&8){var ke=Zt(l,ce.escapedName);if(!ke||!(ke.flags&8))return i?(i(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(ce),Oi(nt(n),void 0,64)),Eo.set(a,2|4)):Eo.set(a,2),!1}}return Eo.set(a,1),!0}function ny(r,n,i,a){var s=r.flags,l=n.flags;return l&3||s&131072||r===Qe?!0:l&131072?!1:!!(s&402653316&&l&4||s&128&&s&1024&&l&128&&!(l&1024)&&r.value===n.value||s&296&&l&8||s&256&&s&1024&&l&256&&!(l&1024)&&r.value===n.value||s&2112&&l&64||s&528&&l&16||s&12288&&l&4096||s&32&&l&32&&Q1(r.symbol,n.symbol,a)||s&1024&&l&1024&&(s&1048576&&l&1048576&&Q1(r.symbol,n.symbol,a)||s&2944&&l&2944&&r.value===n.value&&Q1(Nc(r.symbol),Nc(n.symbol),a))||s&32768&&(!Re&&!(l&3145728)||l&(32768|16384))||s&65536&&(!Re&&!(l&3145728)||l&65536)||s&524288&&l&67108864&&!(i===jt&&$d(r)&&!(e.getObjectFlags(r)&8192))||(i===fa||i===Ka)&&(s&1||s&(8|256)&&!(s&1024)&&(l&32||i===fa&&l&256&&l&1024)||L6(n)))}function gf(r,n,i){if(Zd(r)&&(r=r.regularType),Zd(n)&&(n=n.regularType),r===n)return!0;if(i!==no){if(i===Ka&&!(n.flags&131072)&&ny(n,r,i)||ny(r,n,i))return!0}else if(!((r.flags|n.flags)&(3145728|8388608|16777216|33554432))){if(r.flags!==n.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&n.flags&524288){var a=i.get(r2(r,n,0,i,!1));if(a!==void 0)return!!(a&1)}return r.flags&469499904||n.flags&469499904?Dl(r,n,i,void 0):!1}function TS(r,n){return e.getObjectFlags(r)&2048&&G2(n.escapedName)}function iy(r,n){for(;;){var i=Zd(r)?r.regularType:e.getObjectFlags(r)&4?r.node?F_(r.target,No(r)):t2(r)||r:r.flags&3145728?R6(r,n):r.flags&33554432?n?r.baseType:m1(r):r.flags&25165824?s_(r,n):r;if(i===r)return i;r=i}}function R6(r,n){var i=ct(r);if(i!==r)return i;if(r.flags&2097152&&e.some(r.types,$d)){var a=e.sameMap(r.types,function(s){return iy(s,n)});if(a!==r.types)return ro(a)}return r}function Dl(r,n,i,a,s,l,g){var W,ce,ke,rr,$e,ar=0,ir=0,Wr=0,sn=0,In=!1,Sn=0,Kn,ei,Ti=!1;e.Debug.assert(i!==no||!a,"no error reporting in identity checking");var Ri=Yi(r,n,3,!!a,s);if(ei&&uo(),In){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:n.id,depth:ir,targetDepth:Wr});var pt=Zr(a||Xe,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Oi(r),Oi(n));g&&(g.errors||(g.errors=[])).push(pt)}else if(W){if(l){var rt=l();rt&&(e.concatenateDiagnosticMessageChains(rt,W),W=rt)}var Da=void 0;if(s&&a&&!Ri&&r.symbol){var St=Qt(r.symbol);if(St.originatingImport&&!e.isImportCall(St.originatingImport)){var ba=Dl(Li(St.target),n,i,void 0);if(ba){var Ta=e.createDiagnosticForNode(St.originatingImport,e.Diagnostics.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);Da=e.append(Da,Ta)}}}var pt=e.createDiagnosticForNodeFromMessageChain(a,W,Da);ce&&e.addRelatedInfo.apply(void 0,zn([pt],ce,!1)),g&&(g.errors||(g.errors=[])).push(pt),(!g||!g.skipLogging)&&fe.add(pt)}return a&&g&&g.skipLogging&&Ri===0&&e.Debug.assert(!!g.errors,"missed opportunity to interact with error."),Ri!==0;function wa(dn){W=dn.errorInfo,Kn=dn.lastSkippedInfo,ei=dn.incompatibleStack,Sn=dn.overrideNextErrorInfo,ce=dn.relatedInfo}function So(){return{errorInfo:W,lastSkippedInfo:Kn,incompatibleStack:ei==null?void 0:ei.slice(),overrideNextErrorInfo:Sn,relatedInfo:ce==null?void 0:ce.slice()}}function xo(dn,kn,ii,Ln,xi){Sn++,Kn=void 0,(ei||(ei=[])).push([dn,kn,ii,Ln,xi])}function uo(){var dn=ei||[];ei=void 0;var kn=Kn;if(Kn=void 0,dn.length===1){sa.apply(void 0,dn[0]),kn&&Rn.apply(void 0,zn([void 0],kn,!1));return}for(var ii="",Ln=[];dn.length;){var xi=dn.pop(),ri=xi[0],pi=xi.slice(1);switch(ri.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{ii.indexOf("new ")===0&&(ii="(".concat(ii,")"));var Wi=""+pi[0];ii.length===0?ii="".concat(Wi):e.isIdentifierText(Wi,e.getEmitScriptTarget(Y))?ii="".concat(ii,".").concat(Wi):Wi[0]==="["&&Wi[Wi.length-1]==="]"?ii="".concat(ii).concat(Wi):ii="".concat(ii,"[").concat(Wi,"]");break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(ii.length===0){var yt=ri;ri.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?yt=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:ri.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(yt=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),Ln.unshift([yt,pi[0],pi[1]])}else{var ht=ri.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||ri.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Bt=ri.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||ri.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";ii="".concat(ht).concat(ii,"(").concat(Bt,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Ln.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,pi[0],pi[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Ln.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,pi[0],pi[1],pi[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(ri.code))}}ii?sa(ii[ii.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,ii):Ln.shift();for(var pa=0,ua=Ln;pa<ua.length;pa++){var ja=ua[pa],ri=ja[0],pi=ja.slice(1),yo=ri.elidedInCompatabilityPyramid;ri.elidedInCompatabilityPyramid=!1,sa.apply(void 0,zn([ri],pi,!1)),ri.elidedInCompatabilityPyramid=yo}kn&&Rn.apply(void 0,zn([void 0],kn,!1))}function sa(dn,kn,ii,Ln,xi){e.Debug.assert(!!a),ei&&uo(),!dn.elidedInCompatabilityPyramid&&(W=e.chainDiagnosticMessages(W,dn,kn,ii,Ln,xi))}function si(dn){e.Debug.assert(!!W),ce?ce.push(dn):ce=[dn]}function Rn(dn,kn,ii){ei&&uo();var Ln=Ml(kn,ii),xi=Ln[0],ri=Ln[1],pi=kn,Wi=xi;if(Bg(kn)&&!X1(ii)&&(pi=ql(kn),e.Debug.assert(!io(pi,ii),"generalized source shouldn't be assignable"),Wi=ad(pi)),ii.flags&262144&&ii!==so&&ii!==Xo){var yt=uc(ii),ht=void 0;yt&&(io(pi,yt)||(ht=io(kn,yt)))?sa(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ht?xi:Wi,ri,Oi(yt)):(W=void 0,sa(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,ri,Wi))}if(dn)dn===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&vr&&ES(kn,ii).length&&(dn=e.Diagnostics.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(i===Ka)dn=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(xi===ri)dn=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(vr&&ES(kn,ii).length)dn=e.Diagnostics.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(kn.flags&128&&ii.flags&1048576){var Bt=MN(kn,ii);if(Bt){sa(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Wi,ri,Oi(Bt));return}}dn=e.Diagnostics.Type_0_is_not_assignable_to_type_1}sa(dn,Wi,ri)}function ut(dn,kn){var ii=al(dn.symbol)?Oi(dn,dn.symbol.valueDeclaration):Oi(dn),Ln=al(kn.symbol)?Oi(kn,kn.symbol.valueDeclaration):Oi(kn);(Ia===dn&&yn===kn||bs===dn&&Hn===kn||ds===dn&&Pn===kn||Nb()===dn&&Pe===kn)&&sa(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Ln,ii)}function Pt(dn,kn,ii){return Xa(dn)?dn.target.readonly&&Oh(kn)?(ii&&sa(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Oi(dn),Oi(kn)),!1):Fp(kn):mm(dn)&&Oh(kn)?(ii&&sa(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Oi(dn),Oi(kn)),!1):Xa(kn)?Fu(dn):!0}function ea(dn,kn,ii){return Yi(dn,kn,3,ii)}function Yi(dn,kn,ii,Ln,xi,ri){if(ii===void 0&&(ii=3),Ln===void 0&&(Ln=!1),ri===void 0&&(ri=0),dn.flags&524288&&kn.flags&131068)return ny(dn,kn,i,Ln?sa:void 0)?-1:(Ln&&ka(dn,kn,dn,kn,xi),0);var pi=iy(dn,!1),Wi=iy(kn,!0);if(pi===Wi)return-1;if(i===no)return pi.flags!==Wi.flags?0:pi.flags&67358815?-1:(aa(pi,Wi),Jn(pi,Wi,!1,0,ii));if(pi.flags&262144&&a_(pi)===Wi)return-1;if(pi.flags&470302716&&Wi.flags&1048576){var yt=Wi.types,ht=yt.length===2&&yt[0].flags&98304?yt[1]:yt.length===3&&yt[0].flags&98304&&yt[1].flags&98304?yt[2]:void 0;if(ht&&!(ht.flags&98304)&&(Wi=iy(ht,!0),pi===Wi))return-1}if(i===Ka&&!(Wi.flags&131072)&&ny(Wi,pi,i)||ny(pi,Wi,i,Ln?sa:void 0))return-1;if(pi.flags&469499904||Wi.flags&469499904){var Bt=!(ri&2)&&np(pi)&&e.getObjectFlags(pi)&8192;if(Bt&&La(pi,Wi,Ln))return Ln&&Rn(xi,pi,kn.aliasSymbol?kn:Wi),0;var pa=(i!==Ka||ll(pi))&&!(ri&2)&&pi.flags&(131068|524288|2097152)&&pi!==di&&Wi.flags&(524288|2097152)&&AS(Wi)&&(vo(pi).length>0||QD(pi)),ua=!!(e.getObjectFlags(pi)&2048);if(pa&&!J6(pi,Wi,ua)){if(Ln){var ja=Oi(dn.aliasSymbol?dn:pi),yo=Oi(kn.aliasSymbol?kn:Wi),qa=_a(pi,0),Jo=_a(pi,1);qa.length>0&&Yi(Ao(qa[0]),Wi,1,!1)||Jo.length>0&&Yi(Ao(Jo[0]),Wi,1,!1)?sa(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ja,yo):sa(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,ja,yo)}return 0}aa(pi,Wi);var Bo=pi.flags&1048576&&pi.types.length<4&&!(Wi.flags&1048576)||Wi.flags&1048576&&Wi.types.length<4&&!(pi.flags&469499904),Dc=Bo?br(pi,Wi,Ln,ri):Jn(pi,Wi,Ln,ri,ii);if(Dc)return Dc}return Ln&&ka(dn,kn,pi,Wi,xi),0}function ka(dn,kn,ii,Ln,xi){var ri,pi,Wi=!!t2(dn),yt=!!t2(kn);ii=dn.aliasSymbol||Wi?dn:ii,Ln=kn.aliasSymbol||yt?kn:Ln;var ht=Sn>0;if(ht&&Sn--,ii.flags&524288&&Ln.flags&524288){var Bt=W;Pt(ii,Ln,!0),W!==Bt&&(ht=!!W)}if(ii.flags&524288&&Ln.flags&131068)ut(ii,Ln);else if(ii.symbol&&ii.flags&524288&&di===ii)sa(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(e.getObjectFlags(ii)&2048&&Ln.flags&2097152){var pa=Ln.types,ua=ap(J.IntrinsicAttributes,a),ja=ap(J.IntrinsicClassAttributes,a);if(!ca(ua)&&!ca(ja)&&(e.contains(pa,ua)||e.contains(pa,ja)))return}else W=nc(W,kn);if(!xi&&ht){Kn=[ii,Ln];return}if(Rn(xi,ii,Ln),ii.flags&262144&&((pi=(ri=ii.symbol)===null||ri===void 0?void 0:ri.declarations)===null||pi===void 0?void 0:pi[0])&&!a_(ii)){var yo=Th(ii);if(yo.constraint=ra(Ln,Yd(ii,yo)),Ag(yo)){var qa=Oi(Ln,ii.symbol.declarations[0]);si(e.createDiagnosticForNode(ii.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,qa))}}}function aa(dn,kn){if(!!e.tracing&&dn.flags&3145728&&kn.flags&3145728){var ii=dn,Ln=kn;if(ii.objectFlags&Ln.objectFlags&32768)return;var xi=ii.types.length,ri=Ln.types.length;xi*ri>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:dn.id,sourceSize:xi,targetId:kn.id,targetSize:ri,pos:a==null?void 0:a.pos,end:a==null?void 0:a.end})}}function Ma(dn,kn){var ii=function(Ln,xi){var ri;xi=re(xi);var pi=xi.flags&3145728?it(xi,kn):w_(xi,kn),Wi=pi&&Li(pi)||((ri=Ip(xi,kn))===null||ri===void 0?void 0:ri.type)||zr;return e.append(Ln,Wi)};return Ot(e.reduceLeft(dn,ii,void 0)||e.emptyArray)}function La(dn,kn,ii){var Ln;if(!hy(kn)||!Ue&&e.getObjectFlags(kn)&4096)return!1;var xi=!!(e.getObjectFlags(dn)&2048);if((i===fa||i===Ka)&&(ly(di,kn)||!xi&&Rf(kn)))return!1;var ri=kn,pi;kn.flags&1048576&&(ri=IE(dn,kn,Yi)||h7(kn),pi=ri.flags&1048576?ri.types:[ri]);for(var Wi=function(ua){if(an(ua,dn.symbol)&&!TS(dn,ua)){if(!X2(ri,ua.escapedName,xi)){if(ii){var ja=Qs(ri,hy);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){ua.valueDeclaration&&e.isJsxAttribute(ua.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode(ua.valueDeclaration.name)&&(a=ua.valueDeclaration.name);var yo=Xt(ua),qa=cC(yo,ja),Jo=qa?Xt(qa):void 0;Jo?sa(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,yo,Oi(ja),Jo):sa(e.Diagnostics.Property_0_does_not_exist_on_type_1,yo,Oi(ja))}else{var Bo=((Ln=dn.symbol)===null||Ln===void 0?void 0:Ln.declarations)&&e.firstOrUndefined(dn.symbol.declarations),Jo=void 0;if(ua.valueDeclaration&&e.findAncestor(ua.valueDeclaration,function(En){return En===Bo})&&e.getSourceFileOfNode(Bo)===e.getSourceFileOfNode(a)){var Dc=ua.valueDeclaration;e.Debug.assertNode(Dc,e.isObjectLiteralElementLike),a=Dc;var Ro=Dc.name;e.isIdentifier(Ro)&&(Jo=tD(Ro,ja))}Jo!==void 0?sa(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Xt(ua),Oi(ja),Jo):sa(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xt(ua),Oi(ja))}}return{value:!0}}if(pi&&!Yi(Li(ua),Ma(pi,ua.escapedName),3,ii))return ii&&xo(e.Diagnostics.Types_of_property_0_are_incompatible,Xt(ua)),{value:!0}}},yt=0,ht=vo(dn);yt<ht.length;yt++){var Bt=ht[yt],pa=Wi(Bt);if(typeof pa=="object")return pa.value}return!1}function an(dn,kn){return dn.valueDeclaration&&kn.valueDeclaration&&dn.valueDeclaration.parent===kn.valueDeclaration}function br(dn,kn,ii,Ln){if(dn.flags&1048576)return i===Ka?ki(dn,kn,ii&&!(dn.flags&131068),Ln):vt(dn,kn,ii&&!(dn.flags&131068),Ln);if(kn.flags&1048576)return li(nv(dn),kn,ii&&!(dn.flags&131068)&&!(kn.flags&131068));if(kn.flags&2097152)return et(dn,kn,ii,2);if(i===Ka&&kn.flags&131068){var xi=e.sameMap(dn.types,function(ri){return ri.flags&465829888?uc(ri)||_r:ri});if(xi!==dn.types){if(dn=ro(xi),dn.flags&131072)return 0;if(!(dn.flags&2097152))return Yi(dn,kn,1,!1)||Yi(kn,dn,1,!1)}}return ki(dn,kn,!1,1)}function Fi(dn,kn){for(var ii=-1,Ln=dn.types,xi=0,ri=Ln;xi<ri.length;xi++){var pi=ri[xi],Wi=li(pi,kn,!1);if(!Wi)return 0;ii&=Wi}return ii}function li(dn,kn,ii){var Ln=kn.types;if(kn.flags&1048576){if(o_(Ln,dn))return-1;var xi=ix(kn,dn);if(xi){var ri=Yi(dn,xi,2,!1);if(ri)return ri}}for(var pi=0,Wi=Ln;pi<Wi.length;pi++){var yt=Wi[pi],ri=Yi(dn,yt,2,!1);if(ri)return ri}if(ii){var ht=kS(dn,kn,Yi);ht&&Yi(dn,ht,2,!0)}return 0}function et(dn,kn,ii,Ln){for(var xi=-1,ri=kn.types,pi=0,Wi=ri;pi<Wi.length;pi++){var yt=Wi[pi],ht=Yi(dn,yt,2,ii,void 0,Ln);if(!ht)return 0;xi&=ht}return xi}function ki(dn,kn,ii,Ln){var xi=dn.types;if(dn.flags&1048576&&o_(xi,kn))return-1;for(var ri=xi.length,pi=0;pi<ri;pi++){var Wi=Yi(xi[pi],kn,1,ii&&pi===ri-1,void 0,Ln);if(Wi)return Wi}return 0}function Mi(dn,kn){return dn.flags&1048576&&kn.flags&1048576&&!(dn.types[0].flags&32768)&&kn.types[0].flags&32768?hm(kn,~32768):kn}function vt(dn,kn,ii,Ln){for(var xi=-1,ri=dn.types,pi=Mi(dn,kn),Wi=0;Wi<ri.length;Wi++){var yt=ri[Wi];if(pi.flags&1048576&&ri.length>=pi.types.length&&ri.length%pi.types.length==0){var ht=Yi(yt,pi.types[Wi%pi.types.length],3,!1,void 0,Ln);if(ht){xi&=ht;continue}}var Bt=Yi(yt,kn,1,ii,void 0,Ln);if(!Bt)return 0;xi&=Bt}return xi}function Xr(dn,kn,ii,Ln,xi){if(dn===void 0&&(dn=e.emptyArray),kn===void 0&&(kn=e.emptyArray),ii===void 0&&(ii=e.emptyArray),dn.length!==kn.length&&i===no)return 0;for(var ri=dn.length<=kn.length?dn.length:kn.length,pi=-1,Wi=0;Wi<ri;Wi++){var yt=Wi<ii.length?ii[Wi]:1,ht=yt&7;if(ht!==4){var Bt=dn[Wi],pa=kn[Wi],ua=-1;if(yt&8?ua=i===no?Yi(Bt,pa,3,!1):Xm(Bt,pa):ht===1?ua=Yi(Bt,pa,3,Ln,void 0,xi):ht===2?ua=Yi(pa,Bt,3,Ln,void 0,xi):ht===3?(ua=Yi(pa,Bt,3,!1),ua||(ua=Yi(Bt,pa,3,Ln,void 0,xi))):(ua=Yi(Bt,pa,3,Ln,void 0,xi),ua&&(ua&=Yi(pa,Bt,3,Ln,void 0,xi))),!ua)return 0;pi&=ua}}return pi}function Jn(dn,kn,ii,Ln,xi){if(In)return 0;var ri=r2(dn,kn,Ln,i,!1),pi=i.get(ri);if(pi!==void 0&&!(ii&&pi&2&&!(pi&4))){if(Ci){var Wi=pi&24;Wi&8&&ra(dn,ot),Wi&16&&ra(dn,Tt)}return pi&1?-1:0}if(!ke)ke=[],rr=[],$e=[];else{for(var yt=ri.startsWith("*")?r2(dn,kn,Ln,i,!0):void 0,ht=0;ht<ar;ht++)if(ri===ke[ht]||yt&&yt===ke[ht])return 3;if(ir===100||Wr===100)return In=!0,0}var Bt=ar;ke[ar]=ri,ar++;var pa=sn;xi&1&&(rr[ir]=dn,ir++,!(sn&1)&&wh(dn,rr,ir)&&(sn|=1)),xi&2&&($e[Wr]=kn,Wr++,!(sn&2)&&wh(kn,$e,Wr)&&(sn|=2));var ua,ja=0;Ci&&(ua=Ci,Ci=function(qa){return ja|=qa?16:8,ua(qa)});var yo;if(sn===3?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:dn.id,sourceIdStack:rr.map(function(qa){return qa.id}),targetId:kn.id,targetIdStack:$e.map(function(qa){return qa.id}),depth:ir,targetDepth:Wr}),yo=3):(e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:dn.id,targetId:kn.id}),yo=Yn(dn,kn,ii,Ln),e.tracing===null||e.tracing===void 0||e.tracing.pop()),Ci&&(Ci=ua),xi&1&&ir--,xi&2&&Wr--,sn=pa,yo){if(yo===-1||ir===0&&Wr===0){if(yo===-1||yo===3)for(var ht=Bt;ht<ar;ht++)i.set(ke[ht],1|ja);ar=Bt}}else i.set(ri,(ii?4:0)|2|ja),ar=Bt;return yo}function Yn(dn,kn,ii,Ln){var xi=So(),ri=Di(dn,kn,ii,Ln,xi);if(i!==no){if(!ri&&(dn.flags&2097152||dn.flags&262144&&kn.flags&1048576)){var pi=t1(dn.flags&2097152?dn.types:[dn],!!(kn.flags&1048576));pi&&mf(pi,function(Wi){return Wi!==dn})&&(ri=Yi(pi,kn,1,!1,void 0,Ln))}ri&&!Ti&&(kn.flags&2097152&&!Qd(kn)&&dn.flags&(524288|2097152)||F1(kn)&&!Fp(kn)&&dn.flags&2097152&&re(dn).flags&3670016&&!e.some(dn.types,function(Wi){return!!(e.getObjectFlags(Wi)&262144)}))&&(Ti=!0,ri&=lo(dn,kn,ii,void 0,0),Ti=!1)}return ri&&wa(xi),ri}function Di(dn,kn,ii,Ln,xi){var ri,pi,Wi=!1,yt=dn.flags,ht=kn.flags;if(i===no){if(yt&3145728){var Bt=Fi(dn,kn);return Bt&&(Bt&=Fi(kn,dn)),Bt}if(yt&4194304)return Yi(dn.type,kn.type,3,!1);if(yt&8388608&&(ri=Yi(dn.objectType,kn.objectType,3,!1))&&(ri&=Yi(dn.indexType,kn.indexType,3,!1))||yt&16777216&&dn.root.isDistributive===kn.root.isDistributive&&(ri=Yi(dn.checkType,kn.checkType,3,!1))&&(ri&=Yi(dn.extendsType,kn.extendsType,3,!1))&&(ri&=Yi(Dd(dn),Dd(kn),3,!1))&&(ri&=Yi(bd(dn),bd(kn),3,!1))||yt&33554432&&(ri=Yi(dn.baseType,kn.baseType,3,!1))&&(ri&=Yi(dn.constraint,kn.constraint,3,!1)))return ri;if(!(yt&524288))return 0}else if(yt&3145728||ht&3145728){if(ri=br(dn,kn,ii,Ln))return ri;if(!(yt&465829888||yt&524288&&ht&1048576||yt&2097152&&ht&(524288|1048576|465829888)))return 0}if(yt&(524288|16777216)&&dn.aliasSymbol&&dn.aliasTypeArguments&&dn.aliasSymbol===kn.aliasSymbol&&!(Nh(dn)||Nh(kn))){var pa=NS(dn.aliasSymbol);if(pa===e.emptyArray)return 1;var ua=OE(dn.aliasTypeArguments,kn.aliasTypeArguments,pa,Ln);if(ua!==void 0)return ua}if(RS(dn)&&!dn.target.readonly&&(ri=Yi(No(dn)[0],kn,1))||RS(kn)&&(kn.target.readonly||Oh(uc(dn)||dn))&&(ri=Yi(dn,No(kn)[0],2)))return ri;if(ht&262144){if(e.getObjectFlags(dn)&32&&!dn.declaration.nameType&&Yi(Wl(kn),zu(dn),3)&&!(sl(dn)&4)){var ja=Jl(dn),yo=Zc(kn,Pu(dn));if(ri=Yi(ja,yo,3,ii))return ri}if(i===Ka&&yt&262144){var qa=rc(dn);if(qa&&Ag(dn))for(;qa&&Jf(qa,function(xv){return!!(xv.flags&262144)});){if(ri=Yi(qa,kn,1,!1))return ri;qa=rc(qa)}return 0}}else if(ht&4194304){var Jo=kn.type;if(yt&4194304&&(ri=Yi(Jo,dn.type,3,!1)))return ri;if(Xa(Jo)){if(ri=Yi(dn,Bb(Jo),2,ii))return ri}else{var qa=Uv(Jo);if(qa){if(Yi(dn,Wl(qa,kn.stringsOnly),2,ii)===-1)return-1}else if(Xc(Jo)){var Bo=Ff(Jo),Dc=zu(Jo),Ro=void 0;if(Bo&&Eg(Jo)){var ls=re(Vd(Jo)),En=[];um(ls,8576,!1,function(Om){return void En.push(ra(Bo,Qm(Jo.mapper,Pu(Jo),Om)))}),Ro=Ot(zn(zn([],En,!0),[Bo],!1))}else Ro=Bo||Dc;if(Yi(dn,Ro,2,ii)===-1)return-1}}}else if(ht&8388608){if(yt&8388608){if((ri=Yi(dn.objectType,kn.objectType,3,ii))&&(ri&=Yi(dn.indexType,kn.indexType,3,ii)),ri)return ri;ii&&(pi=W)}if(i===fa||i===Ka){var Ui=kn.objectType,Ut=kn.indexType,lt=uc(Ui)||Ui,Ct=uc(Ut)||Ut;if(!Qd(lt)&&!vd(Ct)){var Ra=4|(lt!==Ui?2:0),qa=yd(lt,Ct,Ra);if(qa){if(ii&&pi&&wa(xi),ri=Yi(dn,qa,2,ii,void 0,Ln))return ri;ii&&pi&&W&&(W=ob([pi])<=ob([W])?pi:W)}}}ii&&(pi=void 0)}else if(Xc(kn)&&i!==no){var oa=!!kn.declaration.nameType,ja=Jl(kn),Sa=sl(kn);if(!(Sa&8)){if(!oa&&ja.flags&8388608&&ja.objectType===dn&&ja.indexType===Pu(kn))return-1;if(!Xc(dn)){var Ro=oa?Ff(kn):zu(kn),ia=Wl(dn,void 0,!0),da=Sa&4,Oo=da?Wd(Ro,ia):void 0;if(da?!(Oo.flags&131072):Yi(Ro,ia,3)){var oo=Jl(kn),as=Pu(kn),Go=hm(oo,~98304);if(!oa&&Go.flags&8388608&&Go.indexType===as){if(ri=Yi(dn,Go.objectType,2,ii))return ri}else{var fs=oa?Oo||Ro:Oo?ro([Oo,as]):as,yo=Zc(dn,fs);if(ri=Yi(yo,oo,3,ii))return ri}}pi=W,wa(xi)}}}else if(ht&16777216){if(wh(kn,$e,Wr,10))return 3;var Is=kn;if(!Is.root.inferTypeParameters&&!Xk(Is.root)){var Uc=!io(kh(Is.checkType),kh(Is.extendsType)),Su=!Uc&&io(Op(Is.checkType),Op(Is.extendsType));if((ri=Uc?-1:Yi(dn,Dd(Is),2,!1,void 0,Ln))&&(ri&=Su?-1:Yi(dn,bd(Is),2,!1,void 0,Ln),ri))return ri}}else if(ht&134217728){if(yt&134217728){if(i===Ka)return CA(dn,kn)?0:-1;ra(dn,Tt)}if(b2(dn,kn))return-1}else if(kn.flags&268435456&&!(dn.flags&268435456)&&D2(dn,kn))return-1;if(yt&8650752){if(!(yt&8388608&&ht&8388608)){var qa=a_(dn)||_r;if(ri=Yi(qa,kn,1,!1,void 0,Ln))return ri;if(ri=Yi(Qc(qa,dn),kn,1,ii&&qa!==_r&&!(ht&yt&262144),void 0,Ln))return ri;if(c(dn)){var dl=a_(dn.indexType);if(dl&&(ri=Yi(Zc(dn.objectType,dl),kn,1,ii)))return ri}}}else if(yt&4194304){if(ri=Yi(On,kn,1,ii))return ri}else if(yt&134217728&&!(ht&524288)){if(!(ht&134217728)){var qa=uc(dn);if(qa&&qa!==dn&&(ri=Yi(qa,kn,1,ii)))return ri}}else if(yt&268435456)if(ht&268435456){if(dn.symbol!==kn.symbol)return 0;if(ri=Yi(dn.type,kn.type,3,ii))return ri}else{var qa=uc(dn);if(qa&&(ri=Yi(qa,kn,1,ii)))return ri}else if(yt&16777216){if(wh(dn,rr,ir,10))return 3;if(ht&16777216){var zf=dn.root.inferTypeParameters,hf=dn.extendsType,_g=void 0;if(zf){var fp=iv(zf,void 0,0,ea);Bf(fp.inferences,kn.extendsType,hf,512|1024),hf=ra(hf,fp.mapper),_g=fp.mapper}if(Lf(hf,kn.extendsType)&&(Yi(dn.checkType,kn.checkType,3)||Yi(kn.checkType,dn.checkType,3))&&((ri=Yi(ra(Dd(dn),_g),Dd(kn),3,ii))&&(ri&=Yi(bd(dn),bd(kn),3,ii)),ri))return ri}else{var _p=Ag(dn)?Wv(dn):void 0;if(_p&&(ri=Yi(_p,kn,1,ii)))return ri}var j_=zv(dn);if(j_&&(ri=Yi(j_,kn,1,ii)))return ri}else{if(i!==gt&&i!==jt&&Y0(kn)&&Rf(dn))return-1;if(Xc(kn))return Xc(dn)&&(ri=bi(dn,kn,ii))?ri:0;var dg=!!(yt&131068);if(i!==no)dn=re(dn),yt=dn.flags;else if(Xc(dn))return 0;if(e.getObjectFlags(dn)&4&&e.getObjectFlags(kn)&4&&dn.target===kn.target&&!Xa(dn)&&!(Nh(dn)||Nh(kn))){if(Fh(dn))return-1;var pa=$1(dn.target);if(pa===e.emptyArray)return 1;var ua=OE(No(dn),No(kn),pa,Ln);if(ua!==void 0)return ua}else{if(mm(kn)?Fp(dn):Fu(kn)&&Xa(dn)&&!dn.target.readonly)return i!==no?Yi(cl(dn,Hn)||Te,cl(kn,Hn)||Te,3,ii):0;if((i===gt||i===jt)&&Rf(kn)&&e.getObjectFlags(kn)&8192&&!Rf(dn))return 0}if(yt&(524288|2097152)&&ht&524288){var bc=ii&&W===xi.errorInfo&&!dg;if(ri=lo(dn,kn,bc,void 0,Ln),ri&&(ri&=Mo(dn,kn,0,bc),ri&&(ri&=Mo(dn,kn,1,bc),ri&&(ri&=lp(dn,kn,dg,bc,Ln)))),Wi&&ri)W=pi||W||xi.errorInfo;else if(ri)return ri}if(yt&(524288|2097152)&&ht&1048576){var kd=hm(kn,524288|2097152|33554432);if(kd.flags&1048576){var wE=Qi(dn,kd);if(wE)return wE}}}return 0;function ob(xv){return xv?e.reduceLeft(xv,function(Om,Fm){return Om+1+ob(Fm.next)},0):0}function OE(xv,Om,Fm,D7){if(ri=Xr(xv,Om,Fm,ii,D7))return ri;if(e.some(Fm,function(sb){return!!(sb&24)})){pi=void 0,wa(xi);return}var FE=Om&&j6(Om,Fm);if(Wi=!FE,Fm!==e.emptyArray&&!FE){if(Wi&&!(ii&&e.some(Fm,function(sb){return(sb&7)==0})))return 0;pi=W,wa(xi)}}}function bi(dn,kn,ii){var Ln=i===Ka||(i===no?sl(dn)===sl(kn):jv(dn)<=jv(kn));if(Ln){var xi,ri=zu(kn),pi=ra(zu(dn),jv(dn)<0?ot:Tt);if(xi=Yi(ri,pi,3,ii)){var Wi=jc([Pu(dn)],[Pu(kn)]);if(ra(Ff(dn),Wi)===ra(Ff(kn),Wi))return xi&Yi(ra(Jl(dn),Wi),Jl(kn),3,ii)}}return 0}function Qi(dn,kn){var ii=vo(dn),Ln=nx(ii,kn);if(!Ln)return 0;for(var xi=1,ri=0,pi=Ln;ri<pi.length;ri++){var Wi=pi[ri];if(xi*=YA(ju(Wi)),xi>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:dn.id,targetId:kn.id,numCombinations:xi}),0}for(var yt=new Array(Ln.length),ht=new e.Set,Bt=0;Bt<Ln.length;Bt++){var Wi=Ln[Bt],pa=ju(Wi);yt[Bt]=pa.flags&1048576?pa.types:[pa],ht.add(Wi.escapedName)}for(var ua=e.cartesianProduct(yt),ja=[],yo=function(Ut){var lt=!1;e:for(var Ct=0,Ra=kn.types;Ct<Ra.length;Ct++){for(var oa=Ra[Ct],Sa=function(Oo){var oo=Ln[Oo],as=Zt(oa,oo.escapedName);if(!as)return"continue-outer";if(oo===as)return"continue";var Go=Ha(dn,kn,oo,as,function(fs){return Ut[Oo]},!1,0,Re||i===Ka);if(!Go)return"continue-outer"},ia=0;ia<Ln.length;ia++){var da=Sa(ia);switch(da){case"continue-outer":continue e}}e.pushIfUnique(ja,oa,e.equateValues),lt=!0}if(!lt)return{value:0}},qa=0,Jo=ua;qa<Jo.length;qa++){var Bo=Jo[qa],Dc=yo(Bo);if(typeof Dc=="object")return Dc.value}for(var Ro=-1,ls=0,En=ja;ls<En.length;ls++){var Ui=En[ls];if(Ro&=lo(dn,Ui,!1,ht,0),Ro&&(Ro&=Mo(dn,Ui,0,!1),Ro&&(Ro&=Mo(dn,Ui,1,!1),Ro&&!(Xa(dn)&&Xa(Ui))&&(Ro&=lp(dn,Ui,!1,!1,0)))),!Ro)return Ro}return Ro}function xt(dn,kn){if(!kn||dn.length===0)return dn;for(var ii,Ln=0;Ln<dn.length;Ln++)kn.has(dn[Ln].escapedName)?ii||(ii=dn.slice(0,Ln)):ii&&ii.push(dn[Ln]);return ii||dn}function Vt(dn,kn,ii,Ln,xi){var ri=Re&&!!(e.getCheckFlags(kn)&48),pi=fu(ju(kn),!1,ri),Wi=ii(dn);return Yi(Wi,pi,3,Ln,void 0,xi)}function Ha(dn,kn,ii,Ln,xi,ri,pi,Wi){var yt=e.getDeclarationModifierFlagsFromSymbol(ii),ht=e.getDeclarationModifierFlagsFromSymbol(Ln);if(yt&8||ht&8){if(ii.valueDeclaration!==Ln.valueDeclaration)return ri&&(yt&8&&ht&8?sa(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Xt(Ln)):sa(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Xt(Ln),Oi(yt&8?dn:kn),Oi(yt&8?kn:dn))),0}else if(ht&16){if(!q6(ii,Ln))return ri&&sa(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Xt(Ln),Oi(ag(ii)||dn),Oi(ag(Ln)||kn)),0}else if(yt&16)return ri&&sa(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Xt(Ln),Oi(dn),Oi(kn)),0;if(i===jt&&_l(ii)&&!_l(Ln))return 0;var Bt=Vt(ii,Ln,xi,ri,pi);return Bt?!Wi&&ii.flags&16777216&&Ln.flags&106500&&!(Ln.flags&16777216)?(ri&&sa(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Xt(Ln),Oi(dn),Oi(kn)),0):Bt:(ri&&xo(e.Diagnostics.Types_of_property_0_are_incompatible,Xt(Ln)),0)}function qt(dn,kn,ii,Ln){var xi=!1;if(ii.valueDeclaration&&e.isNamedDeclaration(ii.valueDeclaration)&&e.isPrivateIdentifier(ii.valueDeclaration.name)&&dn.symbol&&dn.symbol.flags&32){var ri=ii.valueDeclaration.name.escapedText,pi=e.getSymbolNameForPrivateIdentifier(dn.symbol,ri);if(pi&&Zt(dn,pi)){var Wi=e.factory.getDeclarationName(dn.symbol.valueDeclaration),yt=e.factory.getDeclarationName(kn.symbol.valueDeclaration);sa(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,vc(ri),vc(Wi.escapedText===""?ne:Wi),vc(yt.escapedText===""?ne:yt));return}}var ht=e.arrayFrom(v2(dn,kn,Ln,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(xi=!0),ht.length===1){var Bt=Xt(ii,void 0,0,4|16);sa.apply(void 0,zn([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,Bt],Ml(dn,kn),!1)),e.length(ii.declarations)&&si(e.createDiagnosticForNode(ii.declarations[0],e.Diagnostics._0_is_declared_here,Bt)),xi&&W&&Sn++}else Pt(dn,kn,!1)&&(ht.length>5?sa(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Oi(dn),Oi(kn),e.map(ht.slice(0,4),function(pa){return Xt(pa)}).join(", "),ht.length-4):sa(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Oi(dn),Oi(kn),e.map(ht,function(pa){return Xt(pa)}).join(", ")),xi&&W&&Sn++)}function lo(dn,kn,ii,Ln,xi){if(i===no)return to(dn,kn,Ln);var ri=-1;if(Xa(kn)){if(Fp(dn)){if(!kn.target.readonly&&(mm(dn)||Xa(dn)&&dn.target.readonly))return 0;var pi=md(dn),Wi=md(kn),yt=Xa(dn)?dn.target.combinedFlags&4:4,ht=kn.target.combinedFlags&4,Bt=Xa(dn)?dn.target.minLength:0,pa=kn.target.minLength;if(!yt&&pi<pa)return ii&&sa(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,pi,pa),0;if(!ht&&Wi<Bt)return ii&&sa(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,Bt,Wi),0;if(!ht&&(yt||Wi<pi))return ii&&(Bt<pa?sa(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,pa):sa(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,Wi)),0;for(var ua=No(dn),ja=No(kn),yo=Math.min(Xa(dn)?Jb(dn.target,11):0,Jb(kn.target,11)),qa=Math.min(Xa(dn)?mh(dn.target,11):0,ht?mh(kn.target,11):0),Jo=!!Ln,Bo=0;Bo<Wi;Bo++){var Dc=Bo<Wi-qa?Bo:Bo+pi-Wi,Ro=Xa(dn)&&(Bo<yo||Bo>=Wi-qa)?dn.target.elementFlags[Dc]:4,ls=kn.target.elementFlags[Bo];if(ls&8&&!(Ro&8))return ii&&sa(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Bo),0;if(Ro&8&&!(ls&12))return ii&&sa(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Dc,Bo),0;if(ls&1&&!(Ro&1))return ii&&sa(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,Bo),0;if(!(Jo&&((Ro&12||ls&12)&&(Jo=!1),Jo&&(Ln==null?void 0:Ln.has(""+Bo))))){var En=Xa(dn)?Bo<yo||Bo>=Wi-qa?Jg(ua[Dc],!!(Ro&ls&2)):Mh(dn,yo,qa)||we:ua[0],Ui=ja[Bo],Ut=Ro&8&&ls&4?ic(Ui):Jg(Ui,!!(ls&2)),lt=Yi(En,Ut,3,ii,void 0,xi);if(!lt)return ii&&(Wi>1||pi>1)&&(Bo<yo||Bo>=Wi-qa||pi-yo-qa==1?xo(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Dc,Bo):xo(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yo,pi-qa-1,Bo)),0;ri&=lt}}return ri}if(kn.target.combinedFlags&12)return 0}var Ct=(i===gt||i===jt)&&!np(dn)&&!Fh(dn)&&!Xa(dn),Ra=y2(dn,kn,Ct,!1);if(Ra)return ii&&Zs(dn,kn)&&qt(dn,kn,Ra,Ct),0;if(np(kn))for(var oa=0,Sa=xt(vo(dn),Ln);oa<Sa.length;oa++){var ia=Sa[oa];if(!w_(kn,ia.escapedName)){var En=Li(ia);if(!(En.flags&32768))return ii&&sa(e.Diagnostics.Property_0_does_not_exist_on_type_1,Xt(ia),Oi(kn)),0}}for(var da=vo(kn),Oo=Xa(dn)&&Xa(kn),oo=0,as=xt(da,Ln);oo<as.length;oo++){var Go=as[oo],fs=Go.escapedName;if(!(Go.flags&4194304)&&(!Oo||e.isNumericLiteralName(fs)||fs==="length")){var ia=Zt(dn,fs);if(ia&&ia!==Go){var lt=Ha(dn,kn,ia,Go,ju,ii,xi,i===Ka);if(!lt)return 0;ri&=lt}}}return ri}function to(dn,kn,ii){if(!(dn.flags&524288&&kn.flags&524288))return 0;var Ln=xt(Mf(dn),ii),xi=xt(Mf(kn),ii);if(Ln.length!==xi.length)return 0;for(var ri=-1,pi=0,Wi=Ln;pi<Wi.length;pi++){var yt=Wi[pi],ht=w_(kn,yt.escapedName);if(!ht)return 0;var Bt=n2(yt,ht,Yi);if(!Bt)return 0;ri&=Bt}return ri}function Mo(dn,kn,ii,Ln){var xi,ri;if(i===no)return qo(dn,kn,ii);if(kn===ho||dn===ho)return-1;var pi=dn.symbol&&Sl(dn.symbol.valueDeclaration),Wi=kn.symbol&&Sl(kn.symbol.valueDeclaration),yt=_a(dn,pi&&ii===1?0:ii),ht=_a(kn,Wi&&ii===1?0:ii);if(ii===1&&yt.length&&ht.length){var Bt=!!(yt[0].flags&4),pa=!!(ht[0].flags&4);if(Bt&&!pa)return Ln&&sa(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Xl(yt[0],ht[0],Ln))return 0}var ua=-1,ja=ii===1?us:Ys,yo=e.getObjectFlags(dn),qa=e.getObjectFlags(kn);if(yo&64&&qa&64&&dn.symbol===kn.symbol||yo&4&&qa&4&&dn.target===kn.target)for(var Jo=0;Jo<ht.length;Jo++){var Bo=du(yt[Jo],ht[Jo],!0,Ln,ja(yt[Jo],ht[Jo]));if(!Bo)return 0;ua&=Bo}else if(yt.length===1&&ht.length===1){var Dc=i===Ka||!!Y.noStrictGenericChecks,Ro=e.first(yt),ls=e.first(ht);if(ua=du(Ro,ls,Dc,Ln,ja(Ro,ls)),!ua&&Ln&&ii===1&&yo&qa&&(((xi=ls.declaration)===null||xi===void 0?void 0:xi.kind)===173||((ri=Ro.declaration)===null||ri===void 0?void 0:ri.kind)===173)){var En=function(da){return ru(da,void 0,262144,ii)};return sa(e.Diagnostics.Type_0_is_not_assignable_to_type_1,En(Ro),En(ls)),sa(e.Diagnostics.Types_of_construct_signatures_are_incompatible),ua}}else{e:for(var Ui=0,Ut=ht;Ui<Ut.length;Ui++){for(var lt=Ut[Ui],Ct=So(),Ra=Ln,oa=0,Sa=yt;oa<Sa.length;oa++){var ia=Sa[oa],Bo=du(ia,lt,!0,Ra,ja(ia,lt));if(Bo){ua&=Bo,wa(Ct);continue e}Ra=!1}return Ra&&sa(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Oi(dn),ru(lt,void 0,void 0,ii)),0}}return ua}function Zs(dn,kn){var ii=Ts(dn,0),Ln=Ts(dn,1),xi=Mf(dn);return(ii.length||Ln.length)&&!xi.length?!!(_a(kn,0).length&&ii.length||_a(kn,1).length&&Ln.length):!0}function Ys(dn,kn){return dn.parameters.length===0&&kn.parameters.length===0?function(ii,Ln){return xo(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Oi(ii),Oi(Ln))}:function(ii,Ln){return xo(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Oi(ii),Oi(Ln))}}function us(dn,kn){return dn.parameters.length===0&&kn.parameters.length===0?function(ii,Ln){return xo(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Oi(ii),Oi(Ln))}:function(ii,Ln){return xo(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Oi(ii),Oi(Ln))}}function du(dn,kn,ii,Ln,xi){return H1(ii?Wm(dn):dn,ii?Wm(kn):kn,i===jt?8:0,Ln,sa,xi,ea,Tt)}function qo(dn,kn,ii){var Ln=_a(dn,ii),xi=_a(kn,ii);if(Ln.length!==xi.length)return 0;for(var ri=-1,pi=0;pi<Ln.length;pi++){var Wi=oy(Ln[pi],xi[pi],!1,!1,!1,Yi);if(!Wi)return 0;ri&=Wi}return ri}function yf(dn,kn,ii){for(var Ln=-1,xi=kn.keyType,ri=dn.flags&2097152?kg(dn):Mf(dn),pi=0,Wi=ri;pi<Wi.length;pi++){var yt=Wi[pi];if(!TS(dn,yt)&&jl(pm(yt,8576),xi)){var ht=ju(yt),Bt=vr||ht.flags&32768||xi===Hn||!(yt.flags&16777216)?ht:bu(ht,524288),pa=Yi(Bt,kn.type,3,ii);if(!pa)return ii&&sa(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Xt(yt)),0;Ln&=pa}}for(var ua=0,ja=hs(dn);ua<ja.length;ua++){var yo=ja[ua];if(jl(yo.keyType,xi)){var pa=up(yo,kn,ii);if(!pa)return 0;Ln&=pa}}return Ln}function up(dn,kn,ii){var Ln=Yi(dn.type,kn.type,3,ii);return!Ln&&ii&&(dn.keyType===kn.keyType?sa(e.Diagnostics._0_index_signatures_are_incompatible,Oi(dn.keyType)):sa(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Oi(dn.keyType),Oi(kn.keyType))),Ln}function lp(dn,kn,ii,Ln,xi){if(i===no)return p_(dn,kn);for(var ri=hs(kn),pi=e.some(ri,function(ua){return ua.keyType===yn}),Wi=-1,yt=0,ht=ri;yt<ht.length;yt++){var Bt=ht[yt],pa=!ii&&pi&&Bt.type.flags&1?-1:Xc(dn)&&pi?Yi(Jl(dn),Bt.type,3,Ln):Ql(dn,Bt,Ln,xi);if(!pa)return 0;Wi&=pa}return Wi}function Ql(dn,kn,ii,Ln){var xi=Ng(dn,kn.keyType);return xi?up(xi,kn,ii):!(Ln&1)&&Jh(dn)?yf(dn,kn,ii):(ii&&sa(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Oi(kn.keyType),Oi(dn)),0)}function p_(dn,kn){var ii=hs(dn),Ln=hs(kn);if(ii.length!==Ln.length)return 0;for(var xi=0,ri=Ln;xi<ri.length;xi++){var pi=ri[xi],Wi=Wu(dn,pi.keyType);if(!(Wi&&Yi(Wi.type,pi.type,3)&&Wi.isReadonly===pi.isReadonly))return 0}return-1}function Xl(dn,kn,ii){if(!dn.declaration||!kn.declaration)return!0;var Ln=e.getSelectedEffectiveModifierFlags(dn.declaration,24),xi=e.getSelectedEffectiveModifierFlags(kn.declaration,24);return xi===8||xi===16&&Ln!==8||xi!==16&&!Ln?!0:(ii&&sa(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,e_(Ln),e_(xi)),!1)}}function X1(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,X1);if(r.flags&465829888){var n=a_(r);if(n&&n!==r)return X1(n)}return ll(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function ES(r,n){return Xa(r)&&Xa(n)?e.emptyArray:vo(n).filter(function(i){return Z1(Na(r,i.escapedName),Li(i))})}function Z1(r,n){return!!r&&!!n&&rs(r,32768)&&!!Bh(n)}function B6(r){return vo(r).filter(function(n){return Bh(Li(n))})}function kS(r,n,i){return i===void 0&&(i=q1),IE(r,n,i,!0)||g7(r,n)||m7(r,n)||v7(r,n)||y7(r,n)}function Y1(r,n,i,a,s){for(var l=r.types.map(function(ei){}),g=0,W=n;g<W.length;g++){var ce=W[g],ke=ce[0],rr=ce[1],$e=Gn(r,rr);if(!(s&&$e&&e.getCheckFlags($e)&16))for(var ar=0,ir=0,Wr=r.types;ir<Wr.length;ir++){var sn=Wr[ir],In=Na(sn,rr);In&&i(ke(),In)?l[ar]=l[ar]===void 0?!0:l[ar]:l[ar]=!1,ar++}}var Sn=l.indexOf(!0);if(Sn===-1)return a;for(var Kn=l.indexOf(!0,Sn+1);Kn!==-1;){if(!Lf(r.types[Sn],r.types[Kn]))return a;Kn=l.indexOf(!0,Kn+1)}return r.types[Sn]}function AS(r){if(r.flags&524288){var n=Iu(r);return n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0&&n.properties.length>0&&e.every(n.properties,function(i){return!!(i.flags&16777216)})}return r.flags&2097152?e.every(r.types,AS):!1}function J6(r,n,i){for(var a=0,s=vo(r);a<s.length;a++){var l=s[a];if(X2(n,l.escapedName,i))return!0}return!1}function $1(r){return r===la||r===na||r.objectFlags&8?be:PS(r.symbol,r.typeParameters)}function NS(r){return PS(r,Qt(r).typeParameters)}function PS(r,n){n===void 0&&(n=e.emptyArray);var i=Qt(r);if(!i.variances){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:tc(nt(r))}),i.variances=e.emptyArray;for(var a=[],s=function(ce){var ke=e2(ce),rr=ke&65536?ke&32768?0:1:ke&32768?2:void 0;if(rr===void 0){var $e=!1,ar=!1,ir=Ci;Ci=function(In){return In?ar=!0:$e=!0};var Wr=ty(r,ce,ao),sn=ty(r,ce,fo);rr=(io(sn,Wr)?1:0)|(io(Wr,sn)?2:0),rr===3&&io(ty(r,ce,As),Wr)&&(rr=4),Ci=ir,($e||ar)&&($e&&(rr|=8),ar&&(rr|=16))}a.push(rr)},l=0,g=n;l<g.length;l++){var W=g[l];s(W)}i.variances=a,e.tracing===null||e.tracing===void 0||e.tracing.pop({variances:a.map(e.Debug.formatVariance)})}return i.variances}function ty(r,n,i){var a=Yd(n,i),s=nt(r);if(ca(s))return s;var l=r.flags&524288?wg(r,c_(Qt(r).typeParameters,a)):F_(s,c_(s.typeParameters,a));return Pr.add(tc(l)),l}function Nh(r){return Pr.has(tc(r))}function e2(r){var n,i;return(e.some((n=r.symbol)===null||n===void 0?void 0:n.declarations,function(a){return e.hasSyntacticModifier(a,32768)})?32768:0)|(e.some((i=r.symbol)===null||i===void 0?void 0:i.declarations,function(a){return e.hasSyntacticModifier(a,65536)})?65536:0)}function j6(r,n){for(var i=0;i<n.length;i++)if((n[i]&7)==1&&r[i].flags&16384)return!0;return!1}function U6(r){return r.flags&262144&&!rc(r)}function z6(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function Ph(r){return z6(r)&&e.some(No(r),function(n){return!!(n.flags&262144)||Ph(n)})}function W6(r,n,i,a){var s=[],l="",g=ce(r,0),W=ce(n,0);return"".concat(l).concat(g,",").concat(W).concat(i);function ce(ke,rr){rr===void 0&&(rr=0);for(var $e=""+ke.target.id,ar=0,ir=No(ke);ar<ir.length;ar++){var Wr=ir[ar];if(Wr.flags&262144){if(a||U6(Wr)){var sn=s.indexOf(Wr);sn<0&&(sn=s.length,s.push(Wr)),$e+="="+sn;continue}l="*"}else if(rr<4&&Ph(Wr)){$e+="<"+ce(Wr,rr+1)+">";continue}$e+="-"+Wr.id}return $e}}function r2(r,n,i,a,s){if(a===no&&r.id>n.id){var l=r;r=n,n=l}var g=i?":"+i:"";return Ph(r)&&Ph(n)?W6(r,n,g,s):"".concat(r.id,",").concat(n.id).concat(g)}function ay(r,n){if(e.getCheckFlags(r)&6){for(var i=0,a=r.containingType.types;i<a.length;i++){var s=a[i],l=Zt(s,r.escapedName),g=l&&ay(l,n);if(g)return g}return}return n(r)}function ag(r){return r.parent&&r.parent.flags&32?nt(Nc(r)):void 0}function Ih(r){var n=ag(r),i=n&&nu(n)[0];return i&&Na(i,r.escapedName)}function V6(r,n){return ay(r,function(i){var a=ag(i);return a?Of(a,n):!1})}function q6(r,n){return!ay(n,function(i){return e.getDeclarationModifierFlagsFromSymbol(i)&16?!V6(r,ag(i)):!1})}function IS(r,n,i){return ay(n,function(a){return e.getDeclarationModifierFlagsFromSymbol(a,i)&16?!Of(r,ag(a)):!1})?void 0:r}function wh(r,n,i,a){if(a===void 0&&(a=3),i>=a)for(var s=$m(r),l=0,g=0,W=0;W<i;W++){var ce=n[W];if($m(ce)===s){if(ce.id>=g&&(l++,l>=a))return!0;g=ce.id}}return!1}function $m(r){if(r.flags&524288&&!S2(r)){if(e.getObjectFlags(r)&&4&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(Xa(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 G6(r,n){return n2(r,n,Xm)!==0}function n2(r,n,i){if(r===n)return-1;var a=e.getDeclarationModifierFlagsFromSymbol(r)&24,s=e.getDeclarationModifierFlagsFromSymbol(n)&24;if(a!==s)return 0;if(a){if(Xg(r)!==Xg(n))return 0}else if((r.flags&16777216)!=(n.flags&16777216))return 0;return _l(r)!==_l(n)?0:i(Li(r),Li(n))}function H6(r,n,i){var a=au(r),s=au(n),l=Hl(r),g=Hl(n),W=Kl(r),ce=Kl(n);return!!(a===s&&l===g&&W===ce||i&&l<=g)}function oy(r,n,i,a,s,l){if(r===n)return-1;if(!H6(r,n,i)||e.length(r.typeParameters)!==e.length(n.typeParameters))return 0;if(n.typeParameters){for(var g=jc(r.typeParameters,n.typeParameters),W=0;W<n.typeParameters.length;W++){var ce=r.typeParameters[W],ke=n.typeParameters[W];if(!(ce===ke||l(ra(_m(ce),g)||_r,_m(ke)||_r)&&l(ra(pd(ce),g)||_r,pd(ke)||_r)))return 0}r=Lg(r,g,!0)}var rr=-1;if(!a){var $e=Hd(r);if($e){var ar=Hd(n);if(ar){var ir=l($e,ar);if(!ir)return 0;rr&=ir}}}for(var Wr=au(n),W=0;W<Wr;W++){var ce=fl(r,W),ke=fl(n,W),ir=l(ke,ce);if(!ir)return 0;rr&=ir}if(!s){var sn=qu(r),In=qu(n);rr&=sn||In?K6(sn,In,l):l(Ao(r),Ao(n))}return rr}function K6(r,n,i){return r&&n&&T1(r,n)?r.type===n.type?-1:r.type&&n.type?i(r.type,n.type):0:0}function Q6(r){for(var n,i=0,a=r;i<a.length;i++){var s=a[i];if(!(s.flags&131072)){var l=ql(s);if(n!=null||(n=l),l===s||l!==n)return!1}}return!0}function wS(r){return e.reduceLeft(r,function(n,i){return n|(i.flags&1048576?wS(i.types):i.flags)},0)}function X6(r){if(r.length===1)return r[0];var n=Re?e.sameMap(r,function(a){return Qs(a,function(s){return!(s.flags&98304)})}):r,i=Q6(n)?Ot(n):e.reduceLeft(n,function(a,s){return Cd(a,s)?s:a});return n===r?i:Lh(i,wS(r)&98304)}function Z6(r){return e.reduceLeft(r,function(n,i){return Cd(i,n)?i:n})}function Fu(r){return!!(e.getObjectFlags(r)&4)&&(r.target===la||r.target===na)}function mm(r){return!!(e.getObjectFlags(r)&4)&&r.target===na}function Fp(r){return Fu(r)||Xa(r)}function Oh(r){return Fu(r)&&!mm(r)||Xa(r)&&!r.target.readonly}function i2(r){return Fu(r)?No(r)[0]:void 0}function Td(r){return Fu(r)||!(r.flags&98304)&&io(r,dc)}function t2(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var n=r.target;if(e.getObjectFlags(n)&1){var i=hg(n);if(i&&i.expression.kind!==79&&i.expression.kind!==208)return}var a=nu(n);if(a.length===1&&!pf(r.symbol).size){var s=e.length(n.typeParameters)?ra(a[0],jc(n.typeParameters,No(r).slice(0,n.typeParameters.length))):a[0];return e.length(No(r))>e.length(n.typeParameters)&&(s=Qc(s,e.last(No(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=s}}}function OS(r){return Re?r===jn:r===fn}function Fh(r){var n=i2(r);return!!n&&OS(n)}function Rg(r){return Xa(r)||!!Zt(r,"0")}function FS(r){return Td(r)||Rg(r)}function Y6(r,n){var i=Na(r,""+n);if(i)return i;if(mf(r,Xa))return Qo(r,function(a){return ev(a)||zr})}function $6(r){return!(r.flags&(109440|131072))}function ll(r){return!!(r.flags&109440)}function MS(r){var n=O_(r);return n.flags&2097152?e.some(n.types,ll):ll(n)}function eA(r){return r.flags&2097152&&e.find(r.types,ll)||r}function Bg(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,ll):ll(r)}function ql(r){return r.flags&1024?bg(r):r.flags&(128|134217728|268435456)?yn:r.flags&256?Hn:r.flags&2048?Ai:r.flags&512?Pn:r.flags&1048576?rA(r):r}function rA(r){var n,i="B".concat(tc(r));return(n=zo(i))!==null&&n!==void 0?n:Uo(i,Qo(r,ql))}function ep(r){return r.flags&1024&&Zd(r)?bg(r):r.flags&128&&Zd(r)?yn:r.flags&256&&Zd(r)?Hn:r.flags&2048&&Zd(r)?Ai:r.flags&512&&Zd(r)?Pn:r.flags&1048576?Qo(r,ep):r}function LS(r){return r.flags&8192?Pe:r.flags&1048576?Qo(r,LS):r}function a2(r,n){return D0(r,n)||(r=LS(ep(r))),Jc(r)}function nA(r,n,i){if(r&&ll(r)){var a=n?i?yv(n):n:void 0;r=a2(r,a)}return r}function o2(r,n,i,a){if(r&&ll(r)){var s=n?sp(i,n,a):void 0;r=a2(r,s)}return r}function Xa(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function vm(r){return Xa(r)&&!!(r.target.combinedFlags&8)}function RS(r){return vm(r)&&r.target.elementFlags.length===1}function ev(r){return Mh(r,r.target.fixedLength)}function iA(r){var n=ev(r);return n&&ic(n)}function Mh(r,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1);var s=md(r)-i;if(n<s){for(var l=No(r),g=[],W=n;W<s;W++){var ce=l[W];g.push(r.target.elementFlags[W]&8?Zc(ce,Hn):ce)}return a?ro(g):Ot(g)}}function tA(r,n){return md(r)===md(n)&&e.every(r.target.elementFlags,function(i,a){return(i&12)==(n.target.elementFlags[a]&12)})}function BS(r){var n=r.value;return n.base10Value==="0"}function JS(r){return Qs(r,function(n){return!!(fc(n)&4194304)})}function aA(r){return Qo(r,oA)}function oA(r){return r.flags&4?Qu:r.flags&8?Df:r.flags&64?Xu:r===Hi||r===ti||r.flags&(16384|32768|65536|3)||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&BS(r)?r:we}function Lh(r,n){var i=n&~r.flags&(32768|65536);return i===0?r:Ot(i===32768?[r,zr]:i===65536?[r,bn]:[r,zr,bn])}function u_(r,n){n===void 0&&(n=!1),e.Debug.assert(Re);var i=n?Wn:zr;return r.flags&32768||r.flags&1048576&&r.types[0]===i?r:Ot([r,i])}function sA(r){return $s||($s=Vm("NonNullable",524288,void 0)||jr),$s!==jr?wg($s,[r]):ro([r,Zi])}function l_(r){return Re?sg(r,2097152):r}function jS(r){return Re?Ot([r,Vr]):r}function s2(r){return Re?Gh(r,Vr):r}function Rh(r,n,i){return i?e.isOutermostOptionalChain(n)?u_(r):jS(r):r}function rv(r,n){return e.isExpressionOfOptionalChainRoot(n)?l_(r):e.isOptionalChain(n)?s2(r):r}function Jg(r,n){return vr&&n?Gh(r,Wn):r}function Bh(r){return vr&&(r===Wn||r.flags&1048576&&o_(r.types,Wn))}function c2(r){return vr?Gh(r,Wn):bu(r,524288)}function cA(r,n){return(r.flags&(8|4|512))!=0&&(n.flags&(8|4|16))!=0}function Jh(r){var n=e.getObjectFlags(r);return r.flags&2097152?e.every(r.types,Jh):!!(r.symbol&&(r.symbol.flags&(4096|2048|384|512))!=0&&!(r.symbol.flags&32)&&!QD(r))||!!(n&4194304)||!!(n&1024&&Jh(r.source))}function og(r,n){var i=go(r.flags,r.escapedName,e.getCheckFlags(r)&8);i.declarations=r.declarations,i.parent=r.parent,i.type=n,i.target=r,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration);var a=Qt(r).nameType;return a&&(i.nameType=a),i}function uA(r,n){for(var i=e.createSymbolTable(),a=0,s=Mf(r);a<s.length;a++){var l=s[a],g=Li(l),W=n(g);i.set(l.escapedName,W===g?l:og(l,W))}return i}function nv(r){if(!(np(r)&&e.getObjectFlags(r)&8192))return r;var n=r.regularType;if(n)return n;var i=r,a=uA(r,nv),s=Yo(i.symbol,a,i.callSignatures,i.constructSignatures,i.indexInfos);return s.flags=i.flags,s.objectFlags|=i.objectFlags&~8192,r.regularType=s,s}function US(r,n,i){return{parent:r,propertyName:n,siblings:i,resolvedProperties:void 0}}function zS(r){if(!r.siblings){for(var n=[],i=0,a=zS(r.parent);i<a.length;i++){var s=a[i];if(np(s)){var l=w_(s,r.propertyName);l&&Rp(Li(l),function(g){n.push(g)})}}r.siblings=n}return r.siblings}function lA(r){if(!r.resolvedProperties){for(var n=new e.Map,i=0,a=zS(r);i<a.length;i++){var s=a[i];if(np(s)&&!(e.getObjectFlags(s)&2097152))for(var l=0,g=vo(s);l<g.length;l++){var W=g[l];n.set(W.escapedName,W)}}r.resolvedProperties=e.arrayFrom(n.values())}return r.resolvedProperties}function fA(r,n){if(!(r.flags&4))return r;var i=Li(r),a=n&&US(n,r.escapedName,void 0),s=u2(i,a);return s===i?r:og(r,s)}function _A(r){var n=Dr.get(r.escapedName);if(n)return n;var i=og(r,Wn);return i.flags|=16777216,Dr.set(r.escapedName,i),i}function dA(r,n){for(var i=e.createSymbolTable(),a=0,s=Mf(r);a<s.length;a++){var l=s[a];i.set(l.escapedName,fA(l,n))}if(n)for(var g=0,W=lA(n);g<W.length;g++){var l=W[g];i.has(l.escapedName)||i.set(l.escapedName,_A(l))}var ce=Yo(r.symbol,i,e.emptyArray,e.emptyArray,e.sameMap(hs(r),function(ke){return Ul(ke.keyType,tu(ke.type),ke.isReadonly)}));return ce.objectFlags|=e.getObjectFlags(r)&(4096|262144),ce}function tu(r){return u2(r,void 0)}function u2(r,n){if(e.getObjectFlags(r)&196608){if(n===void 0&&r.widened)return r.widened;var i=void 0;if(r.flags&(1|98304))i=Te;else if(np(r))i=dA(r,n);else if(r.flags&1048576){var a=n||US(void 0,void 0,r.types),s=e.sameMap(r.types,function(l){return l.flags&98304?l:u2(l,a)});i=Ot(s,e.some(s,Rf)?2:1)}else r.flags&2097152?i=ro(e.sameMap(r.types,tu)):Fp(r)&&(i=F_(r.target,e.sameMap(No(r),tu)));return i&&n===void 0&&(r.widened=i),i||r}return r}function jh(r){var n=!1;if(e.getObjectFlags(r)&65536){if(r.flags&1048576)if(e.some(r.types,Rf))n=!0;else for(var i=0,a=r.types;i<a.length;i++){var s=a[i];jh(s)&&(n=!0)}if(Fp(r))for(var l=0,g=No(r);l<g.length;l++){var s=g[l];jh(s)&&(n=!0)}if(np(r))for(var W=0,ce=Mf(r);W<ce.length;W++){var ke=ce[W],s=Li(ke);e.getObjectFlags(s)&65536&&(jh(s)||Zr(ke.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Xt(ke),Oi(tu(s))),n=!0)}}return n}function rp(r,n,i){var a=Oi(tu(n));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),Y))){var s;switch(r.kind){case 223:case 169:case 168:s=Ue?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:var l=r;if(e.isIdentifier(l.name)&&(e.isCallSignatureDeclaration(l.parent)||e.isMethodSignature(l.parent)||e.isFunctionTypeNode(l.parent))&&l.parent.parameters.indexOf(l)>-1&&(is(l,l.name.escapedText,788968,void 0,l.name.escapedText,!0)||l.name.originalKeywordKind&&e.isTypeNodeKind(l.name.originalKeywordKind))){var g="arg"+l.parent.parameters.indexOf(l),W=e.declarationNameToString(l.name)+(l.dotDotDotToken?"[]":"");xu(Ue,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,g,W);return}s=r.dotDotDotToken?Ue?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ue?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Ue)return;break;case 320:Zr(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Ue&&!r.name){i===3?Zr(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,a):Zr(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);return}s=Ue?i===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:Ue&&Zr(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=Ue?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}xu(Ue,r,s,e.declarationNameToString(e.getNameOfDeclaration(r)),a)}}function Uh(r,n,i){Z(function(){Ue&&e.getObjectFlags(n)&65536&&(!i||!W2(r))&&(jh(n)||rp(r,n,i))})}function l2(r,n,i){var a=au(r),s=au(n),l=_v(r),g=_v(n),W=g?s-1:s,ce=l?W:Math.min(a,W),ke=Hd(r);if(ke){var rr=Hd(n);rr&&i(ke,rr)}for(var $e=0;$e<ce;$e++)i(fl(r,$e),fl(n,$e));g&&i(fv(r,ce),g)}function f2(r,n,i){var a=qu(r),s=qu(n);a&&s&&T1(a,s)&&a.type&&s.type?i(a.type,s.type):i(Ao(r),Ao(n))}function iv(r,n,i,a){return _2(r.map(d2),n,i,a||q1)}function pA(r,n){return n===void 0&&(n=0),r&&_2(e.map(r.inferences,VS),r.signature,r.flags|n,r.compareTypes)}function _2(r,n,i,a){var s={inferences:r,signature:n,flags:i,compareTypes:a,mapper:ot,nonFixingMapper:ot};return s.mapper=gA(s),s.nonFixingMapper=mA(s),s}function gA(r){return J1(e.map(r.inferences,function(n){return n.typeParameter}),e.map(r.inferences,function(n,i){return function(){return n.isFixed||(vA(r),zh(r.inferences),n.isFixed=!0),x2(r,i)}}))}function mA(r){return J1(e.map(r.inferences,function(n){return n.typeParameter}),e.map(r.inferences,function(n,i){return function(){return x2(r,i)}}))}function zh(r){for(var n=0,i=r;n<i.length;n++){var a=i[n];a.isFixed||(a.inferredType=void 0)}}function WS(r,n,i){var a;((a=r.intraExpressionInferenceSites)!==null&&a!==void 0?a:r.intraExpressionInferenceSites=[]).push({node:n,type:i})}function vA(r){if(r.intraExpressionInferenceSites){for(var n=0,i=r.intraExpressionInferenceSites;n<i.length;n++){var a=i[n],s=a.node,l=a.type,g=s.kind===171?Mx(s,2):Yc(s,2);g&&Bf(r.inferences,l,g)}r.intraExpressionInferenceSites=void 0}}function d2(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function VS(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 yA(r){var n=e.filter(r.inferences,Kg);return n.length?_2(e.map(n,VS),r.signature,r.flags,r.compareTypes):void 0}function p2(r){return r&&r.mapper}function Mp(r){var n=e.getObjectFlags(r);if(n&524288)return!!(n&1048576);var i=!!(r.flags&465829888||r.flags&524288&&!qS(r)&&(n&4&&(r.node||e.forEach(No(r),Mp))||n&16&&r.symbol&&r.symbol.flags&(16|8192|32|2048|4096)&&r.symbol.declarations||n&(32|1024|4194304|8388608))||r.flags&3145728&&!(r.flags&1024)&&!qS(r)&&e.some(r.types,Mp));return r.flags&3899393&&(r.objectFlags|=524288|(i?1048576:0)),i}function qS(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var n=e.getDeclarationOfKind(r.aliasSymbol,262);return!!(n&&e.findAncestor(n.parent,function(i){return i.kind===308?!0:i.kind===264?!1:"quit"}))}return!1}function g2(r,n){return!!(r===n||r.flags&3145728&&e.some(r.types,function(i){return g2(i,n)})||r.flags&16777216&&(Dd(r)===n||bd(r)===n))}function hA(r){var n=e.createSymbolTable();Rp(r,function(a){if(!!(a.flags&128)){var s=e.escapeLeadingUnderscores(a.value),l=go(4,s);l.type=Te,a.symbol&&(l.declarations=a.symbol.declarations,l.valueDeclaration=a.symbol.valueDeclaration),n.set(s,l)}});var i=r.flags&4?[Ul(yn,Zi,!1)]:e.emptyArray;return Yo(void 0,n,e.emptyArray,e.emptyArray,i)}function GS(r,n,i){if(!yr){var a=r.id+","+n.id+","+i.id;if(ur.has(a))return ur.get(a);yr=!0;var s=DA(r,n,i);return yr=!1,ur.set(a,s),s}}function m2(r){return!(e.getObjectFlags(r)&262144)||np(r)&&e.some(vo(r),function(n){return m2(Li(n))})||Xa(r)&&e.some(No(r),m2)}function DA(r,n,i){if(!!(Wu(r,yn)||vo(r).length!==0&&m2(r))){if(Fu(r))return ic(Wh(No(r)[0],n,i),mm(r));if(Xa(r)){var a=e.map(No(r),function(g){return Wh(g,n,i)}),s=sl(n)&4?e.sameMap(r.target.elementFlags,function(g){return g&2?1:g}):r.target.elementFlags;return zl(a,s,r.target.readonly,r.target.labeledElementDeclarations)}var l=Gc(1024|16,void 0);return l.source=r,l.mappedType=n,l.constraintType=i,l}}function bA(r){var n=Qt(r);return n.type||(n.type=Wh(r.propertyType,r.mappedType,r.constraintType)),n.type}function Wh(r,n,i){var a=Zc(i.type,Pu(n)),s=Jl(n),l=d2(a);return Bf([l],r,s),HS(l)||_r}function v2(r,n,i,a){var s,l,g,W,ce,ke,rr;return _s(this,function($e){switch($e.label){case 0:s=vo(n),l=0,g=s,$e.label=1;case 1:return l<g.length?(W=g[l],Ud(W)?[3,5]:i||!(W.flags&16777216||e.getCheckFlags(W)&48)?(ce=Zt(r,W.escapedName),ce?[3,3]:[4,W]):[3,5]):[3,6];case 2:return $e.sent(),[3,5];case 3:return a?(ke=Li(W),ke.flags&109440?(rr=Li(ce),rr.flags&1||Jc(rr)===Jc(ke)?[3,5]:[4,W]):[3,5]):[3,5];case 4:$e.sent(),$e.label=5;case 5:return l++,[3,1];case 6:return[2]}})}function y2(r,n,i,a){var s=v2(r,n,i,a).next();if(!s.done)return s.value}function SA(r,n){return!(n.target.combinedFlags&8)&&n.target.minLength>r.target.minLength||!n.target.hasRestElement&&(r.target.hasRestElement||n.target.fixedLength<r.target.fixedLength)}function xA(r,n){return Xa(r)&&Xa(n)?SA(r,n):!!y2(r,n,!1,!0)&&!!y2(n,r,!1,!1)}function HS(r){return r.candidates?Ot(r.candidates,2):r.contraCandidates?ro(r.contraCandidates):void 0}function h2(r){return!!At(r).skipDirectInference}function KS(r){return!!(r.symbol&&e.some(r.symbol.declarations,h2))}function CA(r,n){var i=r.texts[0],a=n.texts[0],s=r.texts[r.texts.length-1],l=n.texts[n.texts.length-1],g=Math.min(i.length,a.length),W=Math.min(s.length,l.length);return i.slice(0,g)!==a.slice(0,g)||s.slice(s.length-W)!==l.slice(l.length-W)}function QS(r,n){if(r==="")return!1;var i=+r;return isFinite(i)&&(!n||""+i===r)}function TA(r){var n=r.startsWith("-"),i=e.parsePseudoBigInt("".concat(n?r.slice(1):r,"n"));return Dh({negative:n,base10Value:i})}function XS(r,n){if(r==="")return!1;var i=e.createScanner(99,!1),a=!0;i.setOnError(function(){return a=!1}),i.setText(r+"n");var s=i.scan(),l=s===40;l&&(s=i.scan());var g=i.getTokenFlags();return a&&s===9&&i.getTextPos()===r.length+1&&!(g&512)&&(!n||r===e.pseudoBigIntToString({negative:l,base10Value:e.parsePseudoBigInt(i.getTokenValue())}))}function D2(r,n){if(n.flags&(4|1))return!0;if(n.flags&134217728)return io(r,n);if(n.flags&268435456){for(var i=[];n.flags&268435456;)i.unshift(n.symbol),n=n.type;var a=e.reduceLeft(i,function(s,l){return eg(l,s)},r);return a===r&&D2(r,n)}return!1}function EA(r,n){if(r===n||n.flags&(1|4))return!0;if(r.flags&128){var i=r.value;return!!(n.flags&8&&QS(i,!1)||n.flags&64&&XS(i,!1)||n.flags&(512|98304)&&i===n.intrinsicName||n.flags&268435456&&D2(Ou(i),n))}if(r.flags&134217728){var a=r.texts;return a.length===2&&a[0]===""&&a[1]===""&&io(r.types[0],n)}return io(r,n)}function ZS(r,n){return r.flags&128?YS([r.value],e.emptyArray,n):r.flags&134217728?e.arraysEqual(r.texts,n.texts)?e.map(r.types,kA):YS(r.texts,r.types,n):void 0}function b2(r,n){var i=ZS(r,n);return!!i&&e.every(i,function(a,s){return EA(a,n.types[s])})}function kA(r){return r.flags&(1|402653316)?r:wp(["",""],[r])}function YS(r,n,i){var a=r.length-1,s=r[0],l=r[a],g=i.texts,W=g.length-1,ce=g[0],ke=g[W];if(a===0&&s.length<ce.length+ke.length||!s.startsWith(ce)||!l.endsWith(ke))return;for(var rr=l.slice(0,l.length-ke.length),$e=[],ar=0,ir=ce.length,Wr=1;Wr<W;Wr++){var sn=g[Wr];if(sn.length>0){for(var In=ar,Sn=ir;Sn=Kn(In).indexOf(sn,Sn),!(Sn>=0);){if(In++,In===r.length)return;Sn=0}ei(In,Sn),ir+=sn.length}else if(ir<Kn(ar).length)ei(ar,ir+1);else if(ar<a)ei(ar+1,0);else return}return ei(a,Kn(a).length),$e;function Kn(Ti){return Ti<a?r[Ti]:rr}function ei(Ti,Ri){var pt=Ti===ar?Ou(Kn(Ti).slice(ir,Ri)):wp(zn(zn([r[ar].slice(ir)],r.slice(ar+1,Ti),!0),[Kn(Ti).slice(0,Ri)],!1),n.slice(ar,Ti));$e.push(pt),ar=Ti,ir=Ri}}function Bf(r,n,i,a,s){a===void 0&&(a=0),s===void 0&&(s=!1);var l=!1,g,W=2048,ce=!0,ke,rr,$e,ar=0;ir(n,i);function ir(si,Rn){if(!!Mp(Rn)){if(si===Qe){var ut=g;g=si,ir(Rn,Rn),g=ut;return}if(si.aliasSymbol&&si.aliasSymbol===Rn.aliasSymbol){si.aliasTypeArguments&&ei(si.aliasTypeArguments,Rn.aliasTypeArguments,NS(si.aliasSymbol));return}if(si===Rn&&si.flags&3145728){for(var Pt=0,ea=si.types;Pt<ea.length;Pt++){var Yi=ea[Pt];ir(Yi,Yi)}return}if(Rn.flags&1048576){var ka=Kn(si.flags&1048576?si.types:[si],Rn.types,AA),aa=ka[0],Ma=ka[1],La=Kn(aa,Ma,NA),an=La[0],br=La[1];if(br.length===0)return;if(Rn=Ot(br),an.length===0){Wr(si,Rn,1);return}si=Ot(an)}else if(Rn.flags&2097152&&e.some(Rn.types,function(xt){return!!pt(xt)||Xc(xt)&&!!pt(Eh(xt)||we)})){if(!(si.flags&1048576)){var Fi=Kn(si.flags&2097152?si.types:[si],Rn.types,Lf),an=Fi[0],br=Fi[1];if(an.length===0||br.length===0)return;si=ro(an),Rn=ro(br)}}else Rn.flags&(8388608|33554432)&&(Rn=hd(Rn));if(Rn.flags&8650752){if(KS(si))return;var li=pt(Rn);if(li){if(e.getObjectFlags(si)&262144||si===tr)return;if(!li.isFixed){if((li.priority===void 0||a<li.priority)&&(li.candidates=void 0,li.contraCandidates=void 0,li.topLevel=!0,li.priority=a),a===li.priority){var et=g||si;s&&!l?e.contains(li.contraCandidates,et)||(li.contraCandidates=e.append(li.contraCandidates,et),zh(r)):e.contains(li.candidates,et)||(li.candidates=e.append(li.candidates,et),zh(r))}!(a&128)&&Rn.flags&262144&&li.topLevel&&!g2(i,Rn)&&(li.topLevel=!1,zh(r))}W=Math.min(W,a);return}var ki=s_(Rn,!1);if(ki!==Rn)ir(si,ki);else if(Rn.flags&8388608){var Mi=s_(Rn.indexType,!1);if(Mi.flags&465829888){var vt=rS(s_(Rn.objectType,!1),Mi,!1);vt&&vt!==Rn&&ir(si,vt)}}}if(e.getObjectFlags(si)&4&&e.getObjectFlags(Rn)&4&&(si.target===Rn.target||Fu(si)&&Fu(Rn))&&!(si.node&&Rn.node))ei(No(si),No(Rn),$1(si.target));else if(si.flags&4194304&&Rn.flags&4194304)Ti(si.type,Rn.type);else if((Bg(si)||si.flags&4)&&Rn.flags&4194304){var Xr=hA(si);sn(Xr,Rn.type,256)}else if(si.flags&8388608&&Rn.flags&8388608)ir(si.objectType,Rn.objectType),ir(si.indexType,Rn.indexType);else if(si.flags&268435456&&Rn.flags&268435456)si.symbol===Rn.symbol&&ir(si.type,Rn.type);else if(si.flags&33554432)ir(si.baseType,Rn),Wr(m1(si),Rn,4);else if(Rn.flags&16777216)Sn(si,Rn,ba);else if(Rn.flags&3145728)Da(si,Rn.types,Rn.flags);else if(si.flags&1048576)for(var Jn=si.types,Yn=0,Di=Jn;Yn<Di.length;Yn++){var bi=Di[Yn];ir(bi,Rn)}else if(Rn.flags&134217728)Ta(si,Rn);else{if(si=ct(si),!(a&512&&si.flags&(2097152|465829888))){var Qi=re(si);if(Qi!==si&&ce&&!(Qi.flags&(524288|2097152)))return ce=!1,ir(Qi,Rn);si=Qi}si.flags&(524288|2097152)&&Sn(si,Rn,wa)}}}function Wr(si,Rn,ut){var Pt=a;a|=ut,ir(si,Rn),a=Pt}function sn(si,Rn,ut){var Pt=a;a|=ut,Ti(si,Rn),a=Pt}function In(si,Rn,ut,Pt){var ea=a;a|=Pt,Da(si,Rn,ut),a=ea}function Sn(si,Rn,ut){var Pt=si.id+","+Rn.id,ea=ke&&ke.get(Pt);if(ea!==void 0){W=Math.min(W,ea);return}(ke||(ke=new e.Map)).set(Pt,-1);var Yi=W;W=2048;var ka=ar,aa=$m(si),Ma=$m(Rn);e.contains(rr,aa)&&(ar|=1),e.contains($e,Ma)&&(ar|=2),ar!==3?((rr||(rr=[])).push(aa),($e||($e=[])).push(Ma),ut(si,Rn),$e.pop(),rr.pop()):W=-1,ar=ka,ke.set(Pt,W),W=Math.min(W,Yi)}function Kn(si,Rn,ut){for(var Pt,ea,Yi=0,ka=Rn;Yi<ka.length;Yi++)for(var aa=ka[Yi],Ma=0,La=si;Ma<La.length;Ma++){var an=La[Ma];ut(an,aa)&&(ir(an,aa),Pt=e.appendIfUnique(Pt,an),ea=e.appendIfUnique(ea,aa))}return[Pt?e.filter(si,function(br){return!e.contains(Pt,br)}):si,ea?e.filter(Rn,function(br){return!e.contains(ea,br)}):Rn]}function ei(si,Rn,ut){for(var Pt=si.length<Rn.length?si.length:Rn.length,ea=0;ea<Pt;ea++)ea<ut.length&&(ut[ea]&7)==2?Ti(si[ea],Rn[ea]):ir(si[ea],Rn[ea])}function Ti(si,Rn){s=!s,ir(si,Rn),s=!s}function Ri(si,Rn){er||a&1024?Ti(si,Rn):ir(si,Rn)}function pt(si){if(si.flags&8650752)for(var Rn=0,ut=r;Rn<ut.length;Rn++){var Pt=ut[Rn];if(si===Pt.typeParameter)return Pt}}function rt(si){for(var Rn,ut=0,Pt=si;ut<Pt.length;ut++){var ea=Pt[ut],Yi=ea.flags&2097152&&e.find(ea.types,function(ka){return!!pt(ka)});if(!Yi||Rn&&Yi!==Rn)return;Rn=Yi}return Rn}function Da(si,Rn,ut){var Pt=0;if(ut&1048576){for(var ea=void 0,Yi=si.flags&1048576?si.types:[si],ka=new Array(Yi.length),aa=!1,Ma=0,La=Rn;Ma<La.length;Ma++){var an=La[Ma];if(pt(an))ea=an,Pt++;else for(var br=0;br<Yi.length;br++){var Fi=W;W=2048,ir(Yi[br],an),W===a&&(ka[br]=!0),aa=aa||W===-1,W=Math.min(W,Fi)}}if(Pt===0){var li=rt(Rn);li&&Wr(si,li,1);return}if(Pt===1&&!aa){var et=e.flatMap(Yi,function(Jn,Yn){return ka[Yn]?void 0:Jn});if(et.length){ir(Ot(et),ea);return}}}else for(var ki=0,Mi=Rn;ki<Mi.length;ki++){var an=Mi[ki];pt(an)?Pt++:ir(si,an)}if(ut&2097152?Pt===1:Pt>0)for(var vt=0,Xr=Rn;vt<Xr.length;vt++){var an=Xr[vt];pt(an)&&Wr(si,an,1)}}function St(si,Rn,ut){if(ut.flags&1048576){for(var Pt=!1,ea=0,Yi=ut.types;ea<Yi.length;ea++){var ka=Yi[ea];Pt=St(si,Rn,ka)||Pt}return Pt}if(ut.flags&4194304){var aa=pt(ut.type);if(aa&&!aa.isFixed&&!KS(si)){var Ma=GS(si,Rn,ut);Ma&&Wr(Ma,aa.typeParameter,e.getObjectFlags(si)&262144?16:8)}return!0}if(ut.flags&262144){Wr(Wl(si),ut,32);var La=a_(ut);if(La&&St(si,Rn,La))return!0;var an=e.map(vo(si),Li),br=e.map(hs(si),function(Fi){return Fi!==yi?Fi.type:we});return ir(Ot(e.concatenate(an,br)),Jl(Rn)),!0}return!1}function ba(si,Rn){if(si.flags&16777216)ir(si.checkType,Rn.checkType),ir(si.extendsType,Rn.extendsType),ir(Dd(si),Dd(Rn)),ir(bd(si),bd(Rn));else{var ut=[Dd(Rn),bd(Rn)];In(si,ut,Rn.flags,s?64:0)}}function Ta(si,Rn){var ut=ZS(si,Rn),Pt=Rn.types;if(ut||e.every(Rn.texts,function(ka){return ka.length===0}))for(var ea=function(ka){var aa=ut?ut[ka]:we,Ma=Pt[ka];if(aa.flags&128&&Ma.flags&8650752){var La=pt(Ma),an=La?uc(La.typeParameter):void 0;if(an&&!Ba(an)){var br=an.flags&1048576?an.types:[an],Fi=e.reduceLeft(br,function(ki,Mi){return ki|Mi.flags},0);if(!(Fi&4)){var li=aa.value;Fi&296&&!QS(li,!0)&&(Fi&=~296),Fi&2112&&!XS(li,!0)&&(Fi&=~2112);var et=e.reduceLeft(br,function(ki,Mi){return Mi.flags&Fi?ki.flags&4?ki:Mi.flags&4?aa:ki.flags&134217728?ki:Mi.flags&134217728&&b2(aa,Mi)?aa:ki.flags&268435456?ki:Mi.flags&268435456&&li===Yb(Mi.symbol,li)?aa:ki.flags&128?ki:Mi.flags&128&&Mi.value===li?Mi:ki.flags&8?ki:Mi.flags&8?Vl(+li):ki.flags&32?ki:Mi.flags&32?Vl(+li):ki.flags&256?ki:Mi.flags&256&&Mi.value===+li?Mi:ki.flags&64?ki:Mi.flags&64?TA(li):ki.flags&2048?ki:Mi.flags&2048&&e.pseudoBigIntToString(Mi.value)===li?Mi:ki.flags&16?ki:Mi.flags&16?li==="true"?Ni:li==="false"?ti:Pn:ki.flags&512?ki:Mi.flags&512&&Mi.intrinsicName===li?Mi:ki.flags&32768?ki:Mi.flags&32768&&Mi.intrinsicName===li?Mi:ki.flags&65536?ki:Mi.flags&65536&&Mi.intrinsicName===li?Mi:ki:ki},we);if(!(et.flags&131072))return ir(et,Ma),"continue"}}}ir(aa,Ma)},Yi=0;Yi<Pt.length;Yi++)ea(Yi)}function wa(si,Rn){if(e.getObjectFlags(si)&4&&e.getObjectFlags(Rn)&4&&(si.target===Rn.target||Fu(si)&&Fu(Rn))){ei(No(si),No(Rn),$1(si.target));return}if(Xc(si)&&Xc(Rn)){ir(zu(si),zu(Rn)),ir(Jl(si),Jl(Rn));var ut=Ff(si),Pt=Ff(Rn);ut&&Pt&&ir(ut,Pt)}if(e.getObjectFlags(Rn)&32&&!Rn.declaration.nameType){var ea=zu(Rn);if(St(si,Rn,ea))return}if(!xA(si,Rn)){if(Fp(si)){if(Xa(Rn)){var Yi=md(si),ka=md(Rn),aa=No(Rn),Ma=Rn.target.elementFlags;if(Xa(si)&&tA(si,Rn)){for(var La=0;La<ka;La++)ir(No(si)[La],aa[La]);return}for(var an=Xa(si)?Math.min(si.target.fixedLength,Rn.target.fixedLength):0,br=Math.min(Xa(si)?mh(si.target,3):0,Rn.target.hasRestElement?mh(Rn.target,3):0),La=0;La<an;La++)ir(No(si)[La],aa[La]);if(!Xa(si)||Yi-an-br==1&&si.target.elementFlags[an]&4)for(var Fi=No(si)[an],La=an;La<ka-br;La++)ir(Ma[La]&8?ic(Fi):Fi,aa[La]);else{var li=ka-an-br;if(li===2&&Ma[an]&Ma[an+1]&8&&Xa(si)){var et=pt(aa[an]);et&&et.impliedArity!==void 0&&(ir(Gm(si,an,br+Yi-et.impliedArity),aa[an]),ir(Gm(si,an+et.impliedArity,br),aa[an+1]))}else if(li===1&&Ma[an]&8){var ki=Rn.target.elementFlags[ka-1]&2,Mi=Xa(si)?Gm(si,an,br):ic(No(si)[0]);Wr(Mi,aa[an],ki?2:0)}else if(li===1&&Ma[an]&4){var Fi=Xa(si)?Mh(si,an,br):No(si)[0];Fi&&ir(Fi,aa[an])}}for(var La=0;La<br;La++)ir(No(si)[Yi-La-1],aa[ka-La-1]);return}if(Fu(Rn)){sa(si,Rn);return}}So(si,Rn),xo(si,Rn,0),xo(si,Rn,1),sa(si,Rn)}}function So(si,Rn){for(var ut=Mf(Rn),Pt=0,ea=ut;Pt<ea.length;Pt++){var Yi=ea[Pt],ka=Zt(si,Yi.escapedName);ka&&!e.some(ka.declarations,h2)&&ir(Li(ka),Li(Yi))}}function xo(si,Rn,ut){for(var Pt=_a(si,ut),ea=_a(Rn,ut),Yi=Pt.length,ka=ea.length,aa=Yi<ka?Yi:ka,Ma=0;Ma<aa;Ma++)uo(zE(Pt[Yi-aa+Ma]),Wm(ea[ka-aa+Ma]))}function uo(si,Rn){var ut=l,Pt=Rn.declaration?Rn.declaration.kind:0;l=l||Pt===171||Pt===170||Pt===173,l2(si,Rn,Ri),l=ut,f2(si,Rn,ir)}function sa(si,Rn){var ut=e.getObjectFlags(si)&e.getObjectFlags(Rn)&32?8:0,Pt=hs(Rn);if(Jh(si))for(var ea=0,Yi=Pt;ea<Yi.length;ea++){for(var ka=Yi[ea],aa=[],Ma=0,La=vo(si);Ma<La.length;Ma++){var an=La[Ma];if(jl(pm(an,8576),ka.keyType)){var br=Li(an);aa.push(an.flags&16777216?c2(br):br)}}for(var Fi=0,li=hs(si);Fi<li.length;Fi++){var et=li[Fi];jl(et.keyType,ka.keyType)&&aa.push(et.type)}aa.length&&Wr(Ot(aa),ka.type,ut)}for(var ki=0,Mi=Pt;ki<Mi.length;ki++){var ka=Mi[ki],vt=Ng(si,ka.keyType);vt&&Wr(vt.type,ka.type,ut)}}}function AA(r,n){return vr&&n===Wn?r===n:Lf(r,n)||!!(n.flags&4&&r.flags&128||n.flags&8&&r.flags&256)}function NA(r,n){return!!(r.flags&524288&&n.flags&524288&&r.symbol&&r.symbol===n.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===n.aliasSymbol)}function PA(r){var n=rc(r);return!!n&&rs(n.flags&16777216?zv(n):n,131068|4194304|134217728|268435456)}function np(r){return!!(e.getObjectFlags(r)&128)}function S2(r){return!!(e.getObjectFlags(r)&(128|16384))}function IA(r){if(r.length>1){var n=e.filter(r,S2);if(n.length){var i=Ot(n,2);return e.concatenate(e.filter(r,function(a){return!S2(a)}),[i])}}return r}function wA(r){return r.priority&416?ro(r.contraCandidates):Z6(r.contraCandidates)}function OA(r,n){var i=IA(r.candidates),a=PA(r.typeParameter),s=!a&&r.topLevel&&(r.isFixed||!g2(Ao(n),r.typeParameter)),l=a?e.sameMap(i,Jc):s?e.sameMap(i,ep):i,g=r.priority&416?Ot(l,2):X6(l);return tu(g)}function x2(r,n){var i=r.inferences[n];if(!i.inferredType){var a=void 0,s=r.signature;if(s){var l=i.candidates?OA(i,s):void 0;if(i.contraCandidates)a=l&&!(l.flags&131072)&&e.some(i.contraCandidates,function(ke){return Cd(l,ke)})?l:wA(i);else if(l)a=l;else if(r.flags&1)a=hn;else{var g=pd(i.typeParameter);g&&(a=ra(g,c6(s6(r,n),r.nonFixingMapper)))}}else a=HS(i);i.inferredType=a||C2(!!(r.flags&2));var W=rc(i.typeParameter);if(W){var ce=ra(W,r.nonFixingMapper);(!a||!r.compareTypes(a,Qc(ce,a)))&&(i.inferredType=a=ce)}}return i.inferredType}function C2(r){return r?Te:_r}function T2(r){for(var n=[],i=0;i<r.inferences.length;i++)n.push(x2(r,i));return n}function $S(r){switch(r.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Y.types?e.Diagnostics.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:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return Y.types?e.Diagnostics.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:e.Diagnostics.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;case"process":case"require":case"Buffer":case"module":return Y.types?e.Diagnostics.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:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(r.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===300?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Hu(r){var n=At(r);return n.resolvedSymbol||(n.resolvedSymbol=!e.nodeIsMissing(r)&&is(r,r.escapedText,111551|1048576,$S(r),r,!e.isWriteOnlyAccess(r),!1)||jr),n.resolvedSymbol}function ym(r){return!!e.findAncestor(r,function(n){return n.kind===183?!0:n.kind===79||n.kind===163?!1:"quit"})}function Vh(r,n,i,a){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var s=Hu(r);return s!==jr?"".concat(a?V(a):"-1","|").concat(tc(n),"|").concat(tc(i),"|").concat(h(s)):void 0}case 108:return"0|".concat(a?V(a):"-1","|").concat(tc(n),"|").concat(tc(i));case 232:case 214:return Vh(r.expression,n,i,a);case 163:var l=Vh(r.left,n,i,a);return l&&l+"."+r.right.escapedText;case 208:case 209:var g=Lp(r);if(g!==void 0){var W=Vh(r.expression,n,i,a);return W&&W+"."+g}break;case 203:case 204:case 259:case 215:case 216:case 171:return"".concat(V(r),"#").concat(tc(n))}}function zs(r,n){switch(n.kind){case 214:case 232:return zs(r,n.expression);case 223:return e.isAssignmentExpression(n)&&zs(r,n.left)||e.isBinaryExpression(n)&&n.operatorToken.kind===27&&zs(r,n.right)}switch(r.kind){case 233:return n.kind===233&&r.keywordToken===n.keywordToken&&r.name.escapedText===n.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?n.kind===108:n.kind===79&&Hu(r)===Hu(n)||(n.kind===257||n.kind===205)&&il(Hu(r))===zi(n);case 108:return n.kind===108;case 106:return n.kind===106;case 232:case 214:return zs(r.expression,n);case 208:case 209:var i=Lp(r),a=e.isAccessExpression(n)?Lp(n):void 0;return i!==void 0&&a!==void 0&&a===i&&zs(r.expression,n.expression);case 163:return e.isAccessExpression(n)&&r.right.escapedText===Lp(n)&&zs(r.left,n.expression);case 223:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&zs(r.right,n)}return!1}function Lp(r){if(e.isPropertyAccessExpression(r))return r.name.escapedText;if(e.isElementAccessExpression(r))return FA(r);if(e.isBindingElement(r)){var n=Ll(r);return n?e.escapeLeadingUnderscores(n):void 0}if(e.isParameter(r))return""+r.parent.parameters.indexOf(r)}function ex(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):void 0}function FA(r){if(e.isStringOrNumericLiteralLike(r.argumentExpression))return e.escapeLeadingUnderscores(r.argumentExpression.text);if(e.isEntityNameExpression(r.argumentExpression)){var n=ts(r.argumentExpression,111551,!0);if(!n||!(sv(n)||n.flags&8))return;var i=n.valueDeclaration;if(i===void 0)return;var a=wo(i);if(a){var s=ex(a);if(s!==void 0)return s}if(e.hasOnlyExpressionInitializer(i)&&Sf(i,r.argumentExpression)){var l=e.getEffectiveInitializer(i);if(l)return ex(Xs(l));if(e.isEnumMember(i))return e.getTextOfPropertyName(i.name)}}}function rx(r,n){for(;e.isAccessExpression(r);)if(r=r.expression,zs(r,n))return!0;return!1}function jg(r,n){for(;e.isOptionalChain(r);)if(r=r.expression,zs(r,n))return!0;return!1}function tv(r,n){if(r&&r.flags&1048576){var i=Gn(r,n);if(i&&e.getCheckFlags(i)&2)return i.isDiscriminantProperty===void 0&&(i.isDiscriminantProperty=(i.checkFlags&192)==192&&!rg(Li(i))),!!i.isDiscriminantProperty}return!1}function nx(r,n){for(var i,a=0,s=r;a<s.length;a++){var l=s[a];if(tv(n,l.escapedName)){if(i){i.push(l);continue}i=[l]}}return i}function MA(r,n){for(var i=new e.Map,a=0,s=function(ke){if(ke.flags&(524288|2097152|58982400)){var rr=Na(ke,n);if(rr){if(!Bg(rr))return{value:void 0};var $e=!1;Rp(rr,function(ar){var ir=tc(Jc(ar)),Wr=i.get(ir);Wr?Wr!==_r&&(i.set(ir,_r),$e=!0):i.set(ir,ke)}),$e||a++}}},l=0,g=r;l<g.length;l++){var W=g[l],ce=s(W);if(typeof ce=="object")return ce.value}return a>=10&&a*2>=r.length?i:void 0}function sy(r){var n=r.types;if(!(n.length<10||e.getObjectFlags(r)&32768||e.countWhere(n,function(s){return!!(s.flags&(524288|58982400))})<10)){if(r.keyPropertyName===void 0){var i=e.forEach(n,function(s){return s.flags&(524288|58982400)?e.forEach(vo(s),function(l){return ll(Li(l))?l.escapedName:void 0}):void 0}),a=i&&MA(n,i);r.keyPropertyName=a?i:"",r.constituentMap=a}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function cy(r,n){var i,a=(i=r.constituentMap)===null||i===void 0?void 0:i.get(tc(Jc(n)));return a!==_r?a:void 0}function ix(r,n){var i=sy(r),a=i&&Na(n,i);return a&&cy(r,a)}function LA(r,n){var i=sy(r),a=i&&e.find(n.properties,function(l){return l.symbol&&l.kind===299&&l.symbol.escapedName===i&&my(l.initializer)}),s=a&&wy(a.initializer);return s&&cy(r,s)}function tx(r,n){return zs(r,n)||rx(r,n)}function ax(r,n){if(r.arguments)for(var i=0,a=r.arguments;i<a.length;i++){var s=a[i];if(tx(n,s))return!0}return!!(r.expression.kind===208&&tx(n,r.expression.expression))}function E2(r){return(!r.id||r.id<0)&&(r.id=ie,ie++),r.id}function RA(r,n){if(!(r.flags&1048576))return io(r,n);for(var i=0,a=r.types;i<a.length;i++){var s=a[i];if(io(s,n))return!0}return!1}function BA(r,n){var i;if(r===n)return r;if(n.flags&131072)return n;var a="A".concat(tc(r),",").concat(tc(n));return(i=zo(a))!==null&&i!==void 0?i:Uo(a,JA(r,n))}function JA(r,n){var i=Qs(r,function(s){return RA(n,s)}),a=n.flags&512&&Zd(n)?Qo(i,Mg):i;return io(n,a)?a:r}function k2(r){var n=Iu(r);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&Cd(r,fi))}function fc(r){r.flags&(2097152|465829888)&&(r=uc(r)||_r);var n=r.flags;if(n&(4|268435456))return Re?16317953:16776705;if(n&(128|134217728)){var i=n&128&&r.value==="";return Re?i?12123649:7929345:i?12582401:16776705}if(n&(8|32))return Re?16317698:16776450;if(n&256){var a=r.value===0;return Re?a?12123394:7929090:a?12582146:16776450}if(n&64)return Re?16317188:16775940;if(n&2048){var a=BS(r);return Re?a?12122884:7928580:a?12581636:16775940}return n&16?Re?16316168:16774920:n&528?Re?r===ti||r===Hi?12121864:7927560:r===ti||r===Hi?12580616:16774920:n&524288?e.getObjectFlags(r)&16&&Rf(r)?Re?83427327:83886079:k2(r)?Re?7880640:16728e3:Re?7888800:16736160:n&16384?9830144:n&32768?26607360:n&65536?42917664:n&12288?Re?7925520:16772880:n&67108864?Re?7888800:16736160:n&131072?0:n&1048576?e.reduceLeft(r.types,function(s,l){return s|fc(l)},0):n&2097152?jA(r):83886079}function jA(r){for(var n=rs(r,131068),i=0,a=134217727,s=0,l=r.types;s<l.length;s++){var g=l[s];if(!(n&&g.flags&524288)){var W=fc(g);i|=W,a&=W}}return i&8256|a&134209471}function bu(r,n){return Qs(r,function(i){return(fc(i)&n)!=0})}function sg(r,n){var i=ox(bu(Re&&r.flags&2?Co:r,n));if(Re)switch(n){case 524288:return Qo(i,function(a){return fc(a)&65536?ro([a,fc(a)&131072&&!rs(i,65536)?Ot([Zi,bn]):Zi]):a});case 1048576:return Qo(i,function(a){return fc(a)&131072?ro([a,fc(a)&65536&&!rs(i,32768)?Ot([Zi,zr]):Zi]):a});case 2097152:case 4194304:return Qo(i,function(a){return fc(a)&262144?sA(a):a})}return i}function ox(r){return r===Co?_r:r}function A2(r,n){return n?Ot([Nu(r),Xs(n)]):r}function sx(r,n){var i,a=L_(n);if(!hu(a))return ue;var s=Du(a);return Na(r,s)||av((i=Ip(r,s))===null||i===void 0?void 0:i.type)||ue}function cx(r,n){return mf(r,Rg)&&Y6(r,n)||av(J_(65,r,zr,void 0))||ue}function av(r){return r&&(Y.noUncheckedIndexedAccess?Ot([r,zr]):r)}function ux(r){return ic(J_(65,r,zr,void 0)||ue)}function UA(r){var n=r.parent.kind===206&&N2(r.parent)||r.parent.kind===299&&N2(r.parent.parent);return n?A2(uy(r),r.right):Xs(r.right)}function N2(r){return r.parent.kind===223&&r.parent.left===r||r.parent.kind===247&&r.parent.initializer===r}function zA(r,n){return cx(uy(r),r.elements.indexOf(n))}function WA(r){return ux(uy(r.parent))}function lx(r){return sx(uy(r.parent),r.name)}function VA(r){return A2(lx(r),r.objectAssignmentInitializer)}function uy(r){var n=r.parent;switch(n.kind){case 246:return yn;case 247:return By(n)||ue;case 223:return UA(n);case 217:return zr;case 206:return zA(n,r);case 227:return WA(n);case 299:return lx(n);case 300:return VA(n)}return ue}function qA(r){var n=r.parent,i=_x(n.parent),a=n.kind===203?sx(i,r.propertyName||r.name):r.dotDotDotToken?ux(i):cx(i,n.elements.indexOf(r));return A2(a,r.initializer)}function fx(r){var n=At(r);return n.resolvedType||Xs(r)}function GA(r){return r.initializer?fx(r.initializer):r.parent.parent.kind===246?yn:r.parent.parent.kind===247&&By(r.parent.parent)||ue}function _x(r){return r.kind===257?GA(r):qA(r)}function HA(r){return r.kind===257&&r.initializer&&ud(r.initializer)||r.kind!==205&&r.parent.kind===223&&ud(r.parent.right)}function ip(r){switch(r.kind){case 214:return ip(r.expression);case 223:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return ip(r.left);case 27:return ip(r.right)}}return r}function dx(r){var n=r.parent;return n.kind===214||n.kind===223&&n.operatorToken.kind===63&&n.left===r||n.kind===223&&n.operatorToken.kind===27&&n.right===r?dx(n):r}function KA(r){return r.kind===292?Jc(Xs(r.expression)):we}function qh(r){var n=At(r);if(!n.switchTypes){n.switchTypes=[];for(var i=0,a=r.caseBlock.clauses;i<a.length;i++){var s=a[i];n.switchTypes.push(KA(s))}}return n.switchTypes}function px(r){if(!e.some(r.caseBlock.clauses,function(g){return g.kind===292&&!e.isStringLiteralLike(g.expression)})){for(var n=[],i=0,a=r.caseBlock.clauses;i<a.length;i++){var s=a[i],l=s.kind===292?s.expression.text:void 0;n.push(l&&!e.contains(n,l)?l:void 0)}return n}}function QA(r,n){return r.flags&1048576?!e.forEach(r.types,function(i){return!e.contains(n,i)}):e.contains(n,r)}function ly(r,n){return r===n||n.flags&1048576&&XA(r,n)}function XA(r,n){if(r.flags&1048576){for(var i=0,a=r.types;i<a.length;i++){var s=a[i];if(!o_(n.types,s))return!1}return!0}return r.flags&1024&&bg(r)===n?!0:o_(n.types,r)}function Rp(r,n){return r.flags&1048576?e.forEach(r.types,n):n(r)}function Jf(r,n){return r.flags&1048576?e.some(r.types,n):n(r)}function mf(r,n){return r.flags&1048576?e.every(r.types,n):n(r)}function ZA(r,n){return r.flags&3145728?e.every(r.types,n):n(r)}function Qs(r,n){if(r.flags&1048576){var i=r.types,a=e.filter(i,n);if(a===i)return r;var s=r.origin,l=void 0;if(s&&s.flags&1048576){var g=s.types,W=e.filter(g,function(ce){return!!(ce.flags&1048576)||n(ce)});if(g.length-W.length==i.length-a.length){if(W.length===1)return W[0];l=C1(1048576,W)}}return E1(a,r.objectFlags,void 0,void 0,l)}return r.flags&131072||n(r)?r:we}function Gh(r,n){return Qs(r,function(i){return i!==n})}function YA(r){return r.flags&1048576?r.types.length:1}function Qo(r,n,i){if(r.flags&131072)return r;if(!(r.flags&1048576))return n(r);for(var a=r.origin,s=a&&a.flags&1048576?a.types:r.types,l,g=!1,W=0,ce=s;W<ce.length;W++){var ke=ce[W],rr=ke.flags&1048576?Qo(ke,n,i):n(ke);g||(g=ke!==rr),rr&&(l?l.push(rr):l=[rr])}return g?l&&Ot(l,i?0:1):r}function gx(r,n,i,a){return r.flags&1048576&&i?Ot(e.map(r.types,n),1,i,a):Qo(r,n)}function hm(r,n){return Qs(r,function(i){return(i.flags&n)!=0})}function mx(r,n){return rs(r,4|134217728|8|64)&&rs(n,128|134217728|268435456|256|2048)?Qo(r,function(i){return i.flags&4?hm(n,4|128|134217728|268435456):Og(i)&&!rs(n,4|134217728|268435456)?hm(n,128):i.flags&8?hm(n,8|256):i.flags&64?hm(n,64|2048):i}):r}function Ug(r){return r.flags===0}function Bp(r){return r.flags===0?r.type:r}function zg(r,n){return n?{flags:0,type:r.flags&131072?hn:r}:r}function $A(r){var n=Gc(256);return n.elementType=r,n}function P2(r){return ai[r.id]||(ai[r.id]=$A(r))}function vx(r,n){var i=nv(ql(wy(n)));return ly(i,r.elementType)?r:P2(Ot([r.elementType,i]))}function e4(r){return r.flags&131072?ns:ic(r.flags&1048576?Ot(r.types,2):r)}function r4(r){return r.finalArrayType||(r.finalArrayType=e4(r.elementType))}function fy(r){return e.getObjectFlags(r)&256?r4(r):r}function n4(r){return e.getObjectFlags(r)&256?r.elementType:we}function i4(r){for(var n=!1,i=0,a=r;i<a.length;i++){var s=a[i];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;n=!0}}return n}function yx(r){var n=dx(r),i=n.parent,a=e.isPropertyAccessExpression(i)&&(i.name.escapedText==="length"||i.parent.kind===210&&e.isIdentifier(i.name)&&e.isPushOrUnshiftIdentifier(i.name)),s=i.kind===209&&i.expression===n&&i.parent.kind===223&&i.parent.operatorToken.kind===63&&i.parent.left===i&&!e.isAssignmentTarget(i.parent)&&Bs(Xs(i.argumentExpression),296);return a||s}function t4(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function Hh(r,n){if(r=ss(r),r.flags&(16|8192|32|512))return Li(r);if(r.flags&(3|4)){if(e.getCheckFlags(r)&262144){var i=r.syntheticOrigin;if(i&&Hh(i))return Li(r)}var a=r.valueDeclaration;if(a){if(t4(a))return Li(r);if(e.isVariableDeclaration(a)&&a.parent.parent.kind===247){var s=a.parent.parent,l=_y(s.expression,void 0);if(l){var g=s.awaitModifier?15:13;return J_(g,l,zr,void 0)}}n&&e.addRelatedInfo(n,e.createDiagnosticForNode(a,e.Diagnostics._0_needs_an_explicit_type_annotation,Xt(r)))}}}function _y(r,n){if(!(r.flags&33554432))switch(r.kind){case 79:var i=il(Hu(r));return Hh(i,n);case 108:return S4(r);case 106:return M2(r);case 208:{var a=_y(r.expression,n);if(a){var s=r.name,l=void 0;if(e.isPrivateIdentifier(s)){if(!a.symbol)return;l=Zt(a,e.getSymbolNameForPrivateIdentifier(a.symbol,s.escapedText))}else l=Zt(a,s.escapedText);return l&&Hh(l,n)}return}case 214:return _y(r.expression,n)}}function Kh(r){var n=At(r),i=n.effectsSignature;if(i===void 0){var a=void 0;r.parent.kind===241?a=_y(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?a=bl(rv(ya(r.expression),r.expression),r.expression):a=Sm(r.expression));var s=_a(a&&re(a)||_r,0),l=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,hx)?Gg(r):void 0;i=n.effectsSignature=l&&hx(l)?l:To}return i===To?void 0:i}function hx(r){return!!(qu(r)||r.declaration&&(Pg(r.declaration)||_r).flags&131072)}function a4(r,n){if(r.kind===1||r.kind===3)return n.arguments[r.parameterIndex];var i=e.skipParentheses(n.expression);return e.isAccessExpression(i)?e.skipParentheses(i.expression):void 0}function o4(r){var n=e.findAncestor(r,e.isFunctionOrModuleBlock),i=e.getSourceFileOfNode(r),a=e.getSpanOfTokenAtPosition(i,n.statements.pos);fe.add(e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function dy(r){var n=Qh(r,!1);return mc=r,xl=n,n}function py(r){var n=e.skipParentheses(r,!0);return n.kind===95||n.kind===223&&(n.operatorToken.kind===55&&(py(n.left)||py(n.right))||n.operatorToken.kind===56&&py(n.left)&&py(n.right))}function Qh(r,n){for(;;){if(r===mc)return xl;var i=r.flags;if(i&4096){if(!n){var a=E2(r),s=Ga[a];return s!==void 0?s:Ga[a]=Qh(r,!0)}n=!1}if(i&(16|96|256))r=r.antecedent;else if(i&512){var l=Kh(r.node);if(l){var g=qu(l);if(g&&g.kind===3&&!g.type){var W=r.node.arguments[g.parameterIndex];if(W&&py(W))return!1}if(Ao(l).flags&131072)return!1}r=r.antecedent}else{if(i&4)return e.some(r.antecedents,function(ar){return Qh(ar,!1)});if(i&8){var ce=r.antecedents;if(ce===void 0||ce.length===0)return!1;r=ce[0]}else if(i&128){if(r.clauseStart===r.clauseEnd&&VC(r.switchStatement))return!1;r=r.antecedent}else if(i&1024){mc=void 0;var ke=r.target,rr=ke.antecedents;ke.antecedents=r.antecedents;var $e=Qh(r.antecedent,!1);return ke.antecedents=rr,$e}else return!(i&1)}}}function Xh(r,n){for(;;){var i=r.flags;if(i&4096){if(!n){var a=E2(r),s=$t[a];return s!==void 0?s:$t[a]=Xh(r,!0)}n=!1}if(i&(16|96|256|128))r=r.antecedent;else if(i&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(i&4)return e.every(r.antecedents,function(ce){return Xh(ce,!1)});if(i&8)r=r.antecedents[0];else if(i&1024){var l=r.target,g=l.antecedents;l.antecedents=r.antecedents;var W=Xh(r.antecedent,!1);return l.antecedents=g,W}else return!!(i&1)}}}function Dx(r){switch(r.kind){case 79:{var n=Hu(r);return sv(n)||e.isParameterOrCatchClauseVariable(n)&&!Zh(n)}case 208:case 209:return Dx(r.expression)&&_l(At(r).resolvedSymbol||jr)}return!1}function Ed(r,n,i,a,s){i===void 0&&(i=n),s===void 0&&(s=r.flowNode);var l,g=!1,W=0;if(_o)return ue;if(!s)return n;Gs++;var ce=Rc,ke=Bp(ar(s));Rc=ce;var rr=e.getObjectFlags(ke)&256&&yx(r)?ns:fy(ke);if(rr===gn||r.parent&&r.parent.kind===232&&!(rr.flags&131072)&&bu(rr,2097152).flags&131072)return n;return rr===Or?_r:rr;function $e(){return g?l:(g=!0,l=Vh(r,n,i,a))}function ar(Xr){if(W===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:Xr.id}),_o=!0,o4(r),ue;W++;for(var Jn;;){var Yn=Xr.flags;if(Yn&4096){for(var Di=ce;Di<Rc;Di++)if(Yt[Di]===Xr)return W--,Wt[Di];Jn=Xr}var bi=void 0;if(Yn&16){if(bi=Wr(Xr),!bi){Xr=Xr.antecedent;continue}}else if(Yn&512){if(bi=In(Xr),!bi){Xr=Xr.antecedent;continue}}else if(Yn&96)bi=Kn(Xr);else if(Yn&128)bi=ei(Xr);else if(Yn&12){if(Xr.antecedents.length===1){Xr=Xr.antecedents[0];continue}bi=Yn&4?Ti(Xr):Ri(Xr)}else if(Yn&256){if(bi=Sn(Xr),!bi){Xr=Xr.antecedent;continue}}else if(Yn&1024){var Qi=Xr.target,xt=Qi.antecedents;Qi.antecedents=Xr.antecedents,bi=ar(Xr.antecedent),Qi.antecedents=xt}else if(Yn&2){var Vt=Xr.node;if(Vt&&Vt!==a&&r.kind!==208&&r.kind!==209&&r.kind!==108){Xr=Vt.flowNode;continue}bi=i}else bi=bv(n);return Jn&&(Yt[Rc]=Jn,Wt[Rc]=bi,Rc++),W--,bi}}function ir(Xr){var Jn=Xr.node;return I2(Jn.kind===257||Jn.kind===205?_x(Jn):uy(Jn),r)}function Wr(Xr){var Jn=Xr.node;if(zs(r,Jn)){if(!dy(Xr))return gn;if(e.getAssignmentTargetKind(Jn)===2){var Yn=ar(Xr.antecedent);return zg(ql(Bp(Yn)),Ug(Yn))}if(n===Ye||n===ns){if(HA(Jn))return P2(we);var Di=ep(ir(Xr));return io(Di,n)?Di:Es}return n.flags&1048576?BA(n,ir(Xr)):n}if(rx(r,Jn)){if(!dy(Xr))return gn;if(e.isVariableDeclaration(Jn)&&(e.isInJSFile(Jn)||e.isVarConst(Jn))){var bi=e.getDeclaredExpandoInitializer(Jn);if(bi&&(bi.kind===215||bi.kind===216))return ar(Xr.antecedent)}return n}if(e.isVariableDeclaration(Jn)&&Jn.parent.parent.kind===246&&zs(r,Jn.parent.parent.expression))return $2(fy(Bp(ar(Xr.antecedent))))}function sn(Xr,Jn){var Yn=e.skipParentheses(Jn,!0);if(Yn.kind===95)return gn;if(Yn.kind===223){if(Yn.operatorToken.kind===55)return sn(sn(Xr,Yn.left),Yn.right);if(Yn.operatorToken.kind===56)return Ot([sn(Xr,Yn.left),sn(Xr,Yn.right)])}return Mi(Xr,Yn,!0)}function In(Xr){var Jn=Kh(Xr.node);if(Jn){var Yn=qu(Jn);if(Yn&&(Yn.kind===2||Yn.kind===3)){var Di=ar(Xr.antecedent),bi=fy(Bp(Di)),Qi=Yn.type?ki(bi,Yn,Xr.node,!0):Yn.kind===3&&Yn.parameterIndex>=0&&Yn.parameterIndex<Xr.node.arguments.length?sn(bi,Xr.node.arguments[Yn.parameterIndex]):bi;return Qi===bi?Di:zg(Qi,Ug(Di))}if(Ao(Jn).flags&131072)return gn}}function Sn(Xr){if(n===Ye||n===ns){var Jn=Xr.node,Yn=Jn.kind===210?Jn.expression.expression:Jn.left.expression;if(zs(r,ip(Yn))){var Di=ar(Xr.antecedent),bi=Bp(Di);if(e.getObjectFlags(bi)&256){var Qi=bi;if(Jn.kind===210)for(var xt=0,Vt=Jn.arguments;xt<Vt.length;xt++){var Ha=Vt[xt];Qi=vx(Qi,Ha)}else{var qt=wy(Jn.left.argumentExpression);Bs(qt,296)&&(Qi=vx(Qi,Jn.right))}return Qi===bi?Di:zg(Qi,Ug(Di))}return Di}}}function Kn(Xr){var Jn=ar(Xr.antecedent),Yn=Bp(Jn);if(Yn.flags&131072)return Jn;var Di=(Xr.flags&32)!=0,bi=fy(Yn),Qi=Mi(bi,Xr.node,Di);return Qi===bi?Jn:zg(Qi,Ug(Jn))}function ei(Xr){var Jn=Xr.switchStatement.expression,Yn=ar(Xr.antecedent),Di=Bp(Yn);if(zs(r,Jn))Di=Yi(Di,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd);else if(Jn.kind===218&&zs(r,Jn.expression))Di=Ma(Di,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd);else{Re&&(jg(Jn,r)?Di=ea(Di,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd,function(Qi){return!(Qi.flags&(32768|131072))}):Jn.kind===218&&jg(Jn.expression,r)&&(Di=ea(Di,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd,function(Qi){return!(Qi.flags&131072||Qi.flags&128&&Qi.value==="undefined")})));var bi=Da(Jn,Di);bi&&(Di=Ta(Di,bi,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd))}return zg(Di,Ug(Yn))}function Ti(Xr){for(var Jn=[],Yn=!1,Di=!1,bi,Qi=0,xt=Xr.antecedents;Qi<xt.length;Qi++){var Vt=xt[Qi];if(!bi&&Vt.flags&128&&Vt.clauseStart===Vt.clauseEnd){bi=Vt;continue}var Ha=ar(Vt),qt=Bp(Ha);if(qt===n&&n===i)return qt;e.pushIfUnique(Jn,qt),ly(qt,n)||(Yn=!0),Ug(Ha)&&(Di=!0)}if(bi){var Ha=ar(bi),qt=Bp(Ha);if(!e.contains(Jn,qt)&&!VC(bi.switchStatement)){if(qt===n&&n===i)return qt;Jn.push(qt),ly(qt,n)||(Yn=!0),Ug(Ha)&&(Di=!0)}}return zg(pt(Jn,Yn?2:1),Di)}function Ri(Xr){var Jn=E2(Xr),Yn=st[Jn]||(st[Jn]=new e.Map),Di=$e();if(!Di)return n;var bi=Yn.get(Di);if(bi)return bi;for(var Qi=qs;Qi<ec;Qi++)if(Bi[Qi]===Xr&&Jt[Qi]===Di&&Ca[Qi].length)return zg(pt(Ca[Qi],1),!0);for(var xt=[],Vt=!1,Ha,qt=0,lo=Xr.antecedents;qt<lo.length;qt++){var to=lo[qt],Mo=void 0;if(!Ha)Mo=Ha=ar(to);else{Bi[ec]=Xr,Jt[ec]=Di,Ca[ec]=xt,ec++;var Zs=$c;$c=void 0,Mo=ar(to),$c=Zs,ec--;var Ys=Yn.get(Di);if(Ys)return Ys}var us=Bp(Mo);if(e.pushIfUnique(xt,us),ly(us,n)||(Vt=!0),us===n)break}var du=pt(xt,Vt?2:1);return Ug(Ha)?zg(du,!0):(Yn.set(Di,du),du)}function pt(Xr,Jn){if(i4(Xr))return P2(Ot(e.map(Xr,n4)));var Yn=ox(Ot(e.sameMap(Xr,fy),Jn));return Yn!==n&&Yn.flags&n.flags&1048576&&e.arraysEqual(Yn.types,n.types)?n:Yn}function rt(Xr){if(e.isBindingPattern(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)){if(e.isIdentifier(Xr)){var Jn=Hu(Xr),Yn=Jn.valueDeclaration;if(Yn&&(e.isBindingElement(Yn)||e.isParameter(Yn))&&r===Yn.parent&&!Yn.initializer&&!Yn.dotDotDotToken)return Yn}}else if(e.isAccessExpression(Xr)){if(zs(r,Xr.expression))return Xr}else if(e.isIdentifier(Xr)){var Jn=Hu(Xr);if(sv(Jn)){var Yn=Jn.valueDeclaration;if(e.isVariableDeclaration(Yn)&&!Yn.type&&Yn.initializer&&e.isAccessExpression(Yn.initializer)&&zs(r,Yn.initializer.expression))return Yn.initializer;if(e.isBindingElement(Yn)&&!Yn.initializer){var Di=Yn.parent.parent;if(e.isVariableDeclaration(Di)&&!Di.type&&Di.initializer&&(e.isIdentifier(Di.initializer)||e.isAccessExpression(Di.initializer))&&zs(r,Di.initializer))return Yn}}}}function Da(Xr,Jn){var Yn=n.flags&1048576?n:Jn;if(Yn.flags&1048576){var Di=rt(Xr);if(Di){var bi=Lp(Di);if(bi&&tv(Yn,bi))return Di}}}function St(Xr,Jn,Yn){var Di=Lp(Jn);if(Di===void 0)return Xr;var bi=Re&&e.isOptionalChain(Jn)&&rs(Xr,98304),Qi=Na(bi?bu(Xr,2097152):Xr,Di);if(!Qi)return Xr;Qi=bi?u_(Qi):Qi;var xt=Yn(Qi);return Qs(Xr,function(Vt){var Ha=Pc(Vt,Di);return!(Ha.flags&131072)&&!(xt.flags&131072)&&Ah(xt,Ha)})}function ba(Xr,Jn,Yn,Di,bi){if((Yn===36||Yn===37)&&Xr.flags&1048576){var Qi=sy(Xr);if(Qi&&Qi===Lp(Jn)){var xt=cy(Xr,Xs(Di));if(xt)return Yn===(bi?36:37)?xt:ll(Na(xt,Qi)||_r)?Gh(Xr,xt):Xr}}return St(Xr,Jn,function(Vt){return Rn(Vt,Yn,Di,bi)})}function Ta(Xr,Jn,Yn,Di,bi){if(Di<bi&&Xr.flags&1048576&&sy(Xr)===Lp(Jn)){var Qi=qh(Yn).slice(Di,bi),xt=Ot(e.map(Qi,function(Vt){return cy(Xr,Vt)||_r}));if(xt!==_r)return xt}return St(Xr,Jn,function(Vt){return Yi(Vt,Yn,Di,bi)})}function wa(Xr,Jn,Yn){if(zs(r,Jn))return sg(Xr,Yn?4194304:8388608);Re&&Yn&&jg(Jn,r)&&(Xr=sg(Xr,2097152));var Di=Da(Jn,Xr);return Di?St(Xr,Di,function(bi){return bu(bi,Yn?4194304:8388608)}):Xr}function So(Xr,Jn,Yn){var Di=Zt(Xr,Jn);return Di?!!(Di.flags&16777216)||Yn:!!Ip(Xr,Jn)||!Yn}function xo(Xr,Jn,Yn){var Di=Du(Jn),bi=Jf(Xr,function(xt){return So(xt,Di,!0)});if(bi)return Qs(Xr,function(xt){return So(xt,Di,Yn)});if(Yn){var Qi=lk();if(Qi)return ro([Xr,wg(Qi,[Jn,_r])])}return Xr}function uo(Xr,Jn,Yn){switch(Jn.operatorToken.kind){case 63:case 75:case 76:case 77:return wa(Mi(Xr,Jn.right,Yn),Jn.left,Yn);case 34:case 35:case 36:case 37:var Di=Jn.operatorToken.kind,bi=ip(Jn.left),Qi=ip(Jn.right);if(bi.kind===218&&e.isStringLiteralLike(Qi))return ut(Xr,bi,Di,Qi,Yn);if(Qi.kind===218&&e.isStringLiteralLike(bi))return ut(Xr,Qi,Di,bi,Yn);if(zs(r,bi))return Rn(Xr,Di,Qi,Yn);if(zs(r,Qi))return Rn(Xr,Di,bi,Yn);Re&&(jg(bi,r)?Xr=si(Xr,Di,Qi,Yn):jg(Qi,r)&&(Xr=si(Xr,Di,bi,Yn)));var xt=Da(bi,Xr);if(xt)return ba(Xr,xt,Di,Qi,Yn);var Vt=Da(Qi,Xr);if(Vt)return ba(Xr,Vt,Di,bi,Yn);if(La(bi))return an(Xr,Di,Qi,Yn);if(La(Qi))return an(Xr,Di,bi,Yn);break;case 102:return br(Xr,Jn,Yn);case 101:if(e.isPrivateIdentifier(Jn.left))return sa(Xr,Jn,Yn);var Ha=ip(Jn.right),qt=Xs(Jn.left);if(qt.flags&8576){if(Bh(Xr)&&e.isAccessExpression(r)&&zs(r.expression,Ha)&&Lp(r)===Du(qt))return bu(Xr,Yn?524288:65536);if(zs(r,Ha))return xo(Xr,qt,Yn)}break;case 27:return Mi(Xr,Jn.right,Yn);case 55:return Yn?Mi(Mi(Xr,Jn.left,!0),Jn.right,!0):Ot([Mi(Xr,Jn.left,!1),Mi(Xr,Jn.right,!1)]);case 56:return Yn?Ot([Mi(Xr,Jn.left,!0),Mi(Xr,Jn.right,!0)]):Mi(Mi(Xr,Jn.left,!1),Jn.right,!1)}return Xr}function sa(Xr,Jn,Yn){var Di=ip(Jn.right);if(!zs(r,Di))return Xr;e.Debug.assertNode(Jn.left,e.isPrivateIdentifier);var bi=c0(Jn.left);if(bi===void 0)return Xr;var Qi=bi.parent,xt=e.hasStaticModifier(e.Debug.checkDefined(bi.valueDeclaration,"should always have a declaration"))?Li(Qi):nt(Qi);return Fi(Xr,xt,Yn,!0)}function si(Xr,Jn,Yn,Di){var bi=Jn===34||Jn===36,Qi=Jn===34||Jn===35?98304:32768,xt=Xs(Yn),Vt=bi!==Di&&mf(xt,function(Ha){return!!(Ha.flags&Qi)})||bi===Di&&mf(xt,function(Ha){return!(Ha.flags&(3|Qi))});return Vt?sg(Xr,2097152):Xr}function Rn(Xr,Jn,Yn,Di){if(Xr.flags&1)return Xr;(Jn===35||Jn===37)&&(Di=!Di);var bi=Xs(Yn),Qi=Jn===34||Jn===35;if(bi.flags&98304){if(!Re)return Xr;var xt=Qi?Di?262144:2097152:bi.flags&65536?Di?131072:1048576:Di?65536:524288;return sg(Xr,xt)}if(Di){if(!Qi&&(Xr.flags&2||Jf(Xr,$d))){if(bi.flags&(131068|67108864)||$d(bi))return bi;if(bi.flags&524288)return nn}var Vt=Qs(Xr,function(Ha){return Ah(Ha,bi)||Qi&&cA(Ha,bi)});return mx(Vt,bi)}return ll(bi)?Qs(Xr,function(Ha){return!(MS(Ha)&&Ah(Ha,bi))}):Xr}function ut(Xr,Jn,Yn,Di,bi){(Yn===35||Yn===37)&&(bi=!bi);var Qi=ip(Jn.expression);if(!zs(r,Qi)){var xt=Da(Jn.expression,Xr);return xt?St(Xr,xt,function(Vt){return Pt(Vt,Di,bi)}):Re&&jg(Qi,r)&&bi===(Di.text!=="undefined")?sg(Xr,2097152):Xr}return Pt(Xr,Di,bi)}function Pt(Xr,Jn,Yn){return Yn?ka(Xr,Jn.text):bu(Xr,le.get(Jn.text)||32768)}function ea(Xr,Jn,Yn,Di,bi){var Qi=Yn!==Di&&e.every(qh(Jn).slice(Yn,Di),bi);return Qi?bu(Xr,2097152):Xr}function Yi(Xr,Jn,Yn,Di){var bi=qh(Jn);if(!bi.length)return Xr;var Qi=bi.slice(Yn,Di),xt=Yn===Di||e.contains(Qi,we);if(Xr.flags&2&&!xt){for(var Vt=void 0,Ha=0;Ha<Qi.length;Ha+=1){var qt=Qi[Ha];if(qt.flags&(131068|67108864))Vt!==void 0&&Vt.push(qt);else if(qt.flags&524288)Vt===void 0&&(Vt=Qi.slice(0,Ha)),Vt.push(nn);else return Xr}return Ot(Vt===void 0?Qi:Vt)}var lo=Ot(Qi),to=lo.flags&131072?we:mx(Qs(Xr,function(Zs){return Ah(lo,Zs)}),lo);if(!xt)return to;var Mo=Qs(Xr,function(Zs){return!(MS(Zs)&&e.contains(bi,Jc(eA(Zs))))});return to.flags&131072?Mo:Ot([to,Mo])}function ka(Xr,Jn){switch(Jn){case"string":return aa(Xr,yn,1);case"number":return aa(Xr,Hn,2);case"bigint":return aa(Xr,Ai,4);case"boolean":return aa(Xr,Pn,8);case"symbol":return aa(Xr,Pe,16);case"object":return Xr.flags&1?Xr:Ot([aa(Xr,nn,32),aa(Xr,bn,131072)]);case"function":return Xr.flags&1?Xr:aa(Xr,fi,64);case"undefined":return aa(Xr,zr,65536)}return aa(Xr,nn,128)}function aa(Xr,Jn,Yn){return Qo(Xr,function(Di){return gf(Di,Jn,jt)?fc(Di)&Yn?Di:we:Cd(Jn,Di)?Jn:fc(Di)&Yn?ro([Di,Jn]):we})}function Ma(Xr,Jn,Yn,Di){var bi=px(Jn);if(!bi)return Xr;var Qi=e.findIndex(Jn.caseBlock.clauses,function(qt){return qt.kind===293}),xt=Yn===Di||Qi>=Yn&&Qi<Di;if(xt){var Vt=WC(Yn,Di,bi);return Qs(Xr,function(qt){return(fc(qt)&Vt)===Vt})}var Ha=bi.slice(Yn,Di);return Ot(e.map(Ha,function(qt){return qt?ka(Xr,qt):we}))}function La(Xr){return(e.isPropertyAccessExpression(Xr)&&e.idText(Xr.name)==="constructor"||e.isElementAccessExpression(Xr)&&e.isStringLiteralLike(Xr.argumentExpression)&&Xr.argumentExpression.text==="constructor")&&zs(r,Xr.expression)}function an(Xr,Jn,Yn,Di){if(Di?Jn!==34&&Jn!==36:Jn!==35&&Jn!==37)return Xr;var bi=Xs(Yn);if(!ZD(bi)&&!yg(bi))return Xr;var Qi=Zt(bi,"prototype");if(!Qi)return Xr;var xt=Li(Qi),Vt=Ba(xt)?void 0:xt;if(!Vt||Vt===di||Vt===fi)return Xr;if(Ba(Xr))return Vt;return Qs(Xr,function(qt){return Ha(qt,Vt)});function Ha(qt,lo){return qt.flags&524288&&e.getObjectFlags(qt)&1||lo.flags&524288&&e.getObjectFlags(lo)&1?qt.symbol===lo.symbol:Cd(qt,lo)}}function br(Xr,Jn,Yn){var Di=ip(Jn.left);if(!zs(r,Di))return Yn&&Re&&jg(Di,r)?sg(Xr,2097152):Xr;var bi=Xs(Jn.right);if(!tg(bi,fi))return Xr;var Qi,xt=Zt(bi,"prototype");if(xt){var Vt=Li(xt);Ba(Vt)||(Qi=Vt)}if(Ba(Xr)&&(Qi===di||Qi===fi))return Xr;if(!Qi){var Ha=_a(bi,1);Qi=Ha.length?Ot(e.map(Ha,function(lo){return Ao(Wm(lo))})):Zi}if(!Yn&&bi.flags&1048576){var qt=e.find(bi.types,function(lo){return!yg(lo)});if(!qt)return Xr}return Fi(Xr,Qi,Yn,!0)}function Fi(Xr,Jn,Yn,Di){var bi,Qi=Xr.flags&1048576?"N".concat(tc(Xr),",").concat(tc(Jn),",").concat((Yn?1:0)|(Di?2:0)):void 0;return(bi=zo(Qi))!==null&&bi!==void 0?bi:Uo(Qi,li(Xr,Jn,Yn,Di))}function li(Xr,Jn,Yn,Di){var bi=Di?tg:Cd;if(!Yn)return Qs(Xr,function(Vt){return!bi(Vt,Jn)});if(Xr.flags&3)return Jn;var Qi=Xr.flags&1048576?sy(Xr):void 0,xt=Qo(Jn,function(Vt){var Ha=Qi&&Na(Vt,Qi),qt=Ha&&cy(Xr,Ha),lo=Qo(qt||Xr,Di?function(to){return tg(to,Vt)?to:tg(Vt,to)?Vt:we}:function(to){return Cd(Vt,to)?Vt:Cd(to,Vt)?to:we});return lo.flags&131072?Qo(Xr,function(to){return rs(to,465829888)&&bi(Vt,uc(to)||_r)?ro([to,Vt]):we}):lo});return xt.flags&131072?Cd(Jn,Xr)?Jn:io(Xr,Jn)?Xr:io(Jn,Xr)?Jn:ro([Xr,Jn]):xt}function et(Xr,Jn,Yn){if(ax(Jn,r)){var Di=Yn||!e.isCallChain(Jn)?Kh(Jn):void 0,bi=Di&&qu(Di);if(bi&&(bi.kind===0||bi.kind===1))return ki(Xr,bi,Jn,Yn)}if(Bh(Xr)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(Jn.expression)){var Qi=Jn.expression;if(zs(r.expression,ip(Qi.expression))&&e.isIdentifier(Qi.name)&&Qi.name.escapedText==="hasOwnProperty"&&Jn.arguments.length===1){var xt=Jn.arguments[0];if(e.isStringLiteralLike(xt)&&Lp(r)===e.escapeLeadingUnderscores(xt.text))return bu(Xr,Yn?524288:65536)}}return Xr}function ki(Xr,Jn,Yn,Di){if(Jn.type&&!(Ba(Xr)&&(Jn.type===di||Jn.type===fi))){var bi=a4(Jn,Yn);if(bi){if(zs(r,bi))return Fi(Xr,Jn.type,Di,!1);Re&&Di&&jg(bi,r)&&!(fc(Jn.type)&65536)&&(Xr=sg(Xr,2097152));var Qi=Da(bi,Xr);if(Qi)return St(Xr,Qi,function(xt){return Fi(xt,Jn.type,Di,!1)})}}return Xr}function Mi(Xr,Jn,Yn){if(e.isExpressionOfOptionalChainRoot(Jn)||e.isBinaryExpression(Jn.parent)&&Jn.parent.operatorToken.kind===60&&Jn.parent.left===Jn)return vt(Xr,Jn,Yn);switch(Jn.kind){case 79:if(!zs(r,Jn)&&Ae<5){var Di=Hu(Jn);if(sv(Di)){var bi=Di.valueDeclaration;if(bi&&e.isVariableDeclaration(bi)&&!bi.type&&bi.initializer&&Dx(r)){Ae++;var Qi=Mi(Xr,bi.initializer,Yn);return Ae--,Qi}}}case 108:case 106:case 208:case 209:return wa(Xr,Jn,Yn);case 210:return et(Xr,Jn,Yn);case 214:case 232:return Mi(Xr,Jn.expression,Yn);case 223:return uo(Xr,Jn,Yn);case 221:if(Jn.operator===53)return Mi(Xr,Jn.operand,!Yn);break}return Xr}function vt(Xr,Jn,Yn){if(zs(r,Jn))return sg(Xr,Yn?2097152:262144);var Di=Da(Jn,Xr);return Di?St(Xr,Di,function(bi){return bu(bi,Yn?2097152:262144)}):Xr}}function s4(r,n){if(r=r.exportSymbol||r,(n.kind===79||n.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),e.isExpressionNode(n)&&(!e.isAssignmentTarget(n)||e.isWriteAccess(n)))){var i=Xs(n);if(il(At(n).resolvedSymbol)===r)return i}return e.isDeclarationName(n)&&e.isSetAccessor(n.parent)&&$o(n.parent)?ol(n.parent.symbol):ju(r)}function ov(r){return e.findAncestor(r.parent,function(n){return e.isFunctionLike(n)&&!e.getImmediatelyInvokedFunctionExpression(n)||n.kind===265||n.kind===308||n.kind===169})}function Zh(r){if(!r.valueDeclaration)return!1;var n=e.getRootDeclaration(r.valueDeclaration).parent,i=At(n);return i.flags&8388608||(i.flags|=8388608,c4(n)||bx(n)),r.isAssigned||!1}function c4(r){return!!e.findAncestor(r.parent,function(n){return(e.isFunctionLike(n)||e.isCatchClause(n))&&!!(At(n).flags&8388608)})}function bx(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var n=Hu(r);e.isParameterOrCatchClauseVariable(n)&&(n.isAssigned=!0)}}else e.forEachChild(r,bx)}function sv(r){return r.flags&3&&(a0(r)&2)!=0}function u4(r,n){if($i(n.symbol,2)){var i=Re&&n.kind===166&&n.initializer&&fc(r)&16777216&&!(fc(ya(n.initializer))&16777216);return wt(),i?bu(r,524288):r}else return oi(n.symbol),r}function l4(r,n){var i=n.parent;return i.kind===208||i.kind===163||i.kind===210&&i.expression===n||i.kind===209&&i.expression===n&&!(Jf(r,xx)&&vd(Xs(i.argumentExpression)))}function Sx(r){return r.flags&2097152?e.some(r.types,Sx):!!(r.flags&465829888&&O_(r).flags&(98304|1048576))}function xx(r){return r.flags&2097152?e.some(r.types,xx):!!(r.flags&465829888&&!rs(O_(r),98304))}function f4(r,n){var i=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&(n&&n&64?Yc(r,8):Yc(r,void 0));return i&&!rg(i)}function I2(r,n,i){var a=!(i&&i&2)&&Jf(r,Sx)&&(l4(r,n)||f4(n,i));return a?Qo(r,O_):r}function Cx(r){return!!e.findAncestor(r,function(n){var i=n.parent;return i===void 0?"quit":e.isExportAssignment(i)?i.expression===n&&e.isEntityNameExpression(n):e.isExportSpecifier(i)?i.name===n||i.propertyName===n:!1})}function Yh(r,n){if(Md(r,111551)&&!ym(n)&&!Ec(r,111551)){var i=wi(r);Kt(i)&(111551|1048576)&&(Y.isolatedModules||e.shouldPreserveConstEnums(Y)&&Cx(n)||!Sv(il(i))?su(r):cu(r))}}function _4(r,n){var i=r.valueDeclaration;if(i){if(e.isBindingElement(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){var a=i.parent.parent;if(a.kind===257&&e.getCombinedNodeFlags(i)&2||a.kind===166){var s=At(a);if(!(s.flags&268435456)){s.flags|=268435456;var l=Bc(a,0),g=l&&Qo(l,O_);if(s.flags&=~268435456,g&&g.flags&1048576&&!(a.kind===166&&Zh(r))){var W=i.parent,ce=Ed(W,g,g,void 0,n.flowNode);return ce.flags&131072?we:Gp(i,ce)}}}}if(e.isParameter(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){var ke=i.parent;if(ke.parameters.length>=2&&V1(ke)){var rr=cv(ke);if(rr&&rr.parameters.length===1&&G(rr)){var $e=lr(Li(rr.parameters[0]));if($e.flags&1048576&&mf($e,Xa)&&!Zh(r)){var ce=Ed(ke,$e,$e,void 0,n.flowNode),ar=ke.parameters.indexOf(i)-(e.getThisParameter(ke)?1:0);return Zc(ce,Vl(ar))}}}}}return Li(r)}function d4(r,n){if(e.isThisInTypeQuery(r))return gy(r);var i=Hu(r);if(i===jr)return ue;if(i===ve){if(tC(r))return Zr(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),ue;var a=e.getContainingFunction(r);return d<2&&(a.kind===216?Zr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(a,512)&&Zr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),At(a).flags|=8192,Li(i)}g4(r)&&Yh(i,r);var s=il(i),l=$T(s,r);ef(l)&&N1(r,l)&&l.declarations&&Tl(r,l.declarations,r.escapedText);var g=s.valueDeclaration;if(g&&s.flags&32){if(g.kind===260&&e.nodeIsDecorated(g))for(var a=e.getContainingClass(r);a!==void 0;){if(a===g&&a.name!==r){At(g).flags|=16777216,At(r).flags|=33554432;break}a=e.getContainingClass(a)}else if(g.kind===228)for(var a=e.getThisContainer(r,!1);a.kind!==308;){if(a.parent===g){(e.isPropertyDeclaration(a)&&e.isStatic(a)||e.isClassStaticBlockDeclaration(a))&&(At(g).flags|=16777216,At(r).flags|=33554432);break}a=e.getThisContainer(a,!1)}}y4(r,i);var W=_4(s,r),ce=e.getAssignmentTargetKind(r);if(ce){if(!(s.flags&3)&&!(e.isInJSFile(r)&&s.flags&512)){var ke=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Zr(r,ke,Xt(i)),ue}if(_l(s))return s.flags&3?Zr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Xt(i)):Zr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Xt(i)),ue}var rr=s.flags&2097152;if(s.flags&3){if(ce===1)return W}else if(rr)g=Mu(i);else return W;if(!g)return W;W=I2(W,r,n);for(var $e=e.getRootDeclaration(g).kind===166,ar=ov(g),ir=ov(r),Wr=ir!==ar,sn=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&N2(r.parent.parent),In=i.flags&134217728;ir!==ar&&(ir.kind===215||ir.kind===216||e.isObjectLiteralOrClassExpressionMethodOrAccessor(ir))&&(sv(s)&&W!==ns||$e&&!Zh(s));)ir=ov(ir);var Sn=$e||rr||Wr||sn||In||p4(r,g)||W!==Ye&&W!==ns&&(!Re||(W.flags&(3|16384))!=0||ym(r)||r.parent.kind===278)||r.parent.kind===232||g.kind===257&&g.exclamationToken||g.flags&16777216,Kn=Sn?$e?u4(W,g):W:W===Ye||W===ns?zr:u_(W),ei=Ed(r,W,Kn,ir);if(!yx(r)&&(W===Ye||W===ns)){if(ei===Ye||ei===ns)return Ue&&(Zr(e.getNameOfDeclaration(g),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Xt(i),Oi(ei)),Zr(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Xt(i),Oi(ei))),bv(ei)}else if(!Sn&&!gm(W)&&gm(ei))return Zr(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,Xt(i)),W;return ce?ql(ei):ei}function p4(r,n){if(e.isBindingElement(n)){var i=e.findAncestor(r,e.isBindingElement);return i&&e.getRootDeclaration(i)===e.getRootDeclaration(n)}}function g4(r){var n,i=r.parent;if(i){if(e.isPropertyAccessExpression(i)&&i.expression===r||e.isExportSpecifier(i)&&i.isTypeOnly)return!1;var a=(n=i.parent)===null||n===void 0?void 0:n.parent;if(a&&e.isExportDeclaration(a)&&a.isTypeOnly)return!1}return!0}function m4(r,n){return!!e.findAncestor(r,function(i){return i===n?"quit":e.isFunctionLike(i)||i.parent&&e.isPropertyDeclaration(i.parent)&&!e.hasStaticModifier(i.parent)&&i.parent.initializer===i})}function v4(r,n){return e.findAncestor(r,function(i){return i===n?"quit":i===n.initializer||i===n.condition||i===n.incrementor||i===n.statement})}function w2(r){return e.findAncestor(r,function(n){return!n||e.nodeStartsNewLexicalEnvironment(n)?"quit":e.isIterationStatement(n,!1)})}function y4(r,n){if(!(d>=2||(n.flags&(2|32))==0||!n.valueDeclaration||e.isSourceFile(n.valueDeclaration)||n.valueDeclaration.parent.kind===295)){var i=e.getEnclosingBlockScopeContainer(n.valueDeclaration),a=m4(r,i),s=w2(i);if(s){if(a){var l=!0;if(e.isForStatement(i)){var g=e.getAncestor(n.valueDeclaration,258);if(g&&g.parent===i){var W=v4(r.parent,i);if(W){var ce=At(W);ce.flags|=131072;var ke=ce.capturedBlockScopeBindings||(ce.capturedBlockScopeBindings=[]);e.pushIfUnique(ke,n),W===i.initializer&&(l=!1)}}}l&&(At(s).flags|=65536)}if(e.isForStatement(i)){var g=e.getAncestor(n.valueDeclaration,258);g&&g.parent===i&&D4(r,i)&&(At(n.valueDeclaration).flags|=4194304)}At(n.valueDeclaration).flags|=524288}a&&(At(n.valueDeclaration).flags|=262144)}}function h4(r,n){var i=At(r);return!!i&&e.contains(i.capturedBlockScopeBindings,zi(n))}function D4(r,n){for(var i=r;i.parent.kind===214;)i=i.parent;var a=!1;if(e.isAssignmentTarget(i))a=!0;else if(i.parent.kind===221||i.parent.kind===222){var s=i.parent;a=s.operator===45||s.operator===46}return a?!!e.findAncestor(i,function(l){return l===n?"quit":l===n.statement}):!1}function O2(r,n){if(At(r).flags|=2,n.kind===169||n.kind===173){var i=n.parent;At(i).flags|=4}else At(n).flags|=4}function Tx(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,Tx)}function Ex(r){var n=zi(r),i=nt(n),a=cc(i);return a===qn}function kx(r,n,i){var a=n.parent,s=e.getClassExtendsHeritageElement(a);s&&!Ex(a)&&r.flowNode&&!Xh(r.flowNode,!1)&&Zr(r,i)}function b4(r,n){e.isPropertyDeclaration(n)&&e.hasStaticModifier(n)&&n.initializer&&e.textRangeContainsPositionInclusive(n.initializer,r.pos)&&e.hasDecorators(n.parent)&&Zr(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function gy(r){var n=ym(r),i=e.getThisContainer(r,!0),a=!1;switch(i.kind===173&&kx(r,i,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),i.kind===216&&(i=e.getThisContainer(i,!1),a=!0),b4(r,i),i.kind){case 264:Zr(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:Zr(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 173:Ax(r,i)&&Zr(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 164:Zr(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!n&&a&&d<2&&O2(r,i);var s=F2(r,!0,i);if(t){var l=Li(pn);if(s===l&&a)Zr(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var g=Zr(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(i)){var W=F2(i);W&&W!==l&&e.addRelatedInfo(g,e.createDiagnosticForNode(i,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||Te}function F2(r,n,i){n===void 0&&(n=!0),i===void 0&&(i=e.getThisContainer(r,!1));var a=e.isInJSFile(r);if(e.isFunctionLike(i)&&(!R2(r)||e.getThisParameter(i))){var s=Ks(i)||a&&C4(i);if(!s){var l=x4(i);if(a&&l){var g=ya(l).symbol;g&&g.members&&g.flags&16&&(s=nt(g).thisType)}else Sl(i)&&(s=nt(Ya(i.symbol)).thisType);s||(s=Px(i))}if(s)return Ed(r,s)}if(e.isClassLike(i.parent)){var W=zi(i.parent),ce=e.isStatic(i)?Li(W):nt(W).thisType;return Ed(r,ce)}if(e.isSourceFile(i))if(i.commonJsModuleIndicator){var ke=zi(i);return ke&&Li(ke)}else{if(i.externalModuleIndicator)return zr;if(n)return Li(pn)}}function S4(r){var n=e.getThisContainer(r,!1);if(e.isFunctionLike(n)){var i=Vu(n);if(i.thisParameter)return Hh(i.thisParameter)}if(e.isClassLike(n.parent)){var a=zi(n.parent);return e.isStatic(n)?Li(a):nt(a).thisType}}function x4(r){if(r.kind===215&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===171&&r.parent.kind===207&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===215&&r.parent.kind===299&&r.parent.parent.kind===207&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===215&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function C4(r){var n=e.getJSDocType(r);if(n&&n.kind===320){var i=n;if(i.parameters.length>0&&i.parameters[0].name&&i.parameters[0].name.escapedText==="this")return zt(i.parameters[0].type)}var a=e.getJSDocThisTag(r);if(a&&a.typeExpression)return zt(a.typeExpression)}function Ax(r,n){return!!e.findAncestor(r,function(i){return e.isFunctionLikeDeclaration(i)?"quit":i.kind===166&&i.parent===n})}function M2(r){var n=r.parent.kind===210&&r.parent.expression===r,i=e.getSuperContainer(r,!0),a=i,s=!1,l=!1;if(!n){for(;a&&a.kind===216;)e.hasSyntacticModifier(a,512)&&(l=!0),a=e.getSuperContainer(a,!0),s=d<2;a&&e.hasSyntacticModifier(a,512)&&(l=!0)}var g=ar(a),W=0;if(!g){var ce=e.findAncestor(r,function(ir){return ir===a?"quit":ir.kind===164});return ce&&ce.kind===164?Zr(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?Zr(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!a||!a.parent||!(e.isClassLike(a.parent)||a.parent.kind===207)?Zr(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Zr(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ue}if(!n&&i.kind===173&&kx(r,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(a)||n?(W=512,!n&&d>=2&&d<=8&&(e.isPropertyDeclaration(a)||e.isClassStaticBlockDeclaration(a))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(ir){(!e.isSourceFile(ir)||e.isExternalOrCommonJsModule(ir))&&(At(ir).flags|=134217728)})):W=256,At(r).flags|=W,a.kind===171&&l&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?At(a).flags|=4096:At(a).flags|=2048),s&&O2(r.parent,a),a.parent.kind===207)return d<2?(Zr(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ue):Te;var ke=a.parent;if(!e.getClassExtendsHeritageElement(ke))return Zr(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ue;var rr=nt(zi(ke)),$e=rr&&nu(rr)[0];if(!$e)return ue;if(a.kind===173&&Ax(r,a))return Zr(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ue;return W===512?cc(rr):Qc($e,rr.thisType);function ar(ir){return ir?n?ir.kind===173:e.isClassLike(ir.parent)||ir.parent.kind===207?e.isStatic(ir)?ir.kind===171||ir.kind===170||ir.kind===174||ir.kind===175||ir.kind===169||ir.kind===172:ir.kind===171||ir.kind===170||ir.kind===174||ir.kind===175||ir.kind===169||ir.kind===168||ir.kind===173:!1:!1}}function T4(r){return(r.kind===171||r.kind===174||r.kind===175)&&r.parent.kind===207?r.parent:r.kind===215&&r.parent.kind===299?r.parent.parent:void 0}function Nx(r){return e.getObjectFlags(r)&4&&r.target===ac?No(r)[0]:void 0}function E4(r){return Qo(r,function(n){return n.flags&2097152?e.forEach(n.types,Nx):Nx(n)})}function Px(r){if(r.kind!==216){if(V1(r)){var n=cv(r);if(n){var i=n.thisParameter;if(i)return Li(i)}}var a=e.isInJSFile(r);if(t||a){var s=T4(r);if(s){for(var l=tp(s,void 0),g=s,W=l;W;){var ce=E4(W);if(ce)return ra(ce,p2(Wg(s)));if(g.parent.kind!==299)break;g=g.parent.parent,W=tp(g,void 0)}return tu(l?l_(l):Ds(s))}var ke=e.walkUpParenthesizedExpressions(r.parent);if(ke.kind===223&&ke.operatorToken.kind===63){var rr=ke.left;if(e.isAccessExpression(rr)){var $e=rr.expression;if(a&&e.isIdentifier($e)){var ar=e.getSourceFileOfNode(ke);if(ar.commonJsModuleIndicator&&Hu($e)===ar.symbol)return}return tu(Ds($e))}}}}}function Ix(r){var n=r.parent;if(!!V1(n)){var i=e.getImmediatelyInvokedFunctionExpression(n);if(i&&i.arguments){var a=_D(i),s=n.parameters.indexOf(r);if(r.dotDotDotToken)return lD(a,s,a.length,Te,void 0,0);var l=At(i),g=l.resolvedSignature;l.resolvedSignature=Zo;var W=s<a.length?ep(ya(a[s])):r.initializer?void 0:fn;return l.resolvedSignature=g,W}var ce=cv(n);if(ce){var ke=n.parameters.indexOf(r)-(e.getThisParameter(n)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(n.parameters)===r?fv(ce,ke):jp(ce,ke)}}}function L2(r,n){var i=e.getEffectiveTypeAnnotationNode(r);if(i)return zt(i);switch(r.kind){case 166:return Ix(r);case 205:return k4(r,n);case 169:if(e.isStatic(r))return A4(r,n)}}function k4(r,n){var i=r.parent.parent,a=r.propertyName||r.name,s=L2(i,n)||i.kind!==205&&i.initializer&&Iy(i,r.dotDotDotToken?64:0);if(!(!s||e.isBindingPattern(a)||e.isComputedNonLiteralName(a))){if(i.name.kind===204){var l=e.indexOfNode(r.parent.elements,r);return l<0?void 0:U2(s,l)}var g=L_(a);if(hu(g)){var W=Du(g);return Na(s,W)}}}function A4(r,n){var i=e.isExpression(r.parent)&&Yc(r.parent,n);if(!!i)return Jp(i,zi(r).escapedName)}function N4(r,n){var i=r.parent;if(e.hasInitializer(i)&&r===i.initializer){var a=L2(i,n);if(a)return a;if(!(n&8)&&e.isBindingPattern(i.name)&&i.name.elements.length>0)return bt(i.name,!0,!1)}}function P4(r,n){var i=e.getContainingFunction(r);if(i){var a=B2(i,n);if(a){var s=e.getFunctionFlags(i);if(s&1){var l=(s&2)!=0;a.flags&1048576&&(a=Qs(a,function(ce){return!!sp(1,ce,l)}));var g=sp(1,a,(s&2)!=0);if(!g)return;a=g}if(s&2){var W=Qo(a,__);return W&&Ot([W,jC(W)])}return a}}}function I4(r,n){var i=Yc(r,n);if(i){var a=__(i);return a&&Ot([a,jC(a)])}}function w4(r,n){var i=e.getContainingFunction(r);if(i){var a=e.getFunctionFlags(i),s=B2(i,n);if(s){var l=(a&2)!=0;return!r.asteriskToken&&s.flags&1048576&&(s=Qs(s,function(g){return!!sp(1,g,l)})),r.asteriskToken?s:sp(0,s,l)}}}function R2(r){for(var n=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(n||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(n=!0),r=r.parent}return!1}function wx(r,n){var i=!!(e.getFunctionFlags(n)&2),a=B2(n,void 0);if(a)return sp(r,a,i)||void 0}function B2(r,n){var i=Pg(r);if(i)return i;var a=W2(r);if(a&&!u1(a))return Ao(a);var s=e.getImmediatelyInvokedFunctionExpression(r);if(s)return Yc(s,n)}function Ox(r,n){var i=_D(r),a=i.indexOf(n);return a===-1?void 0:J2(r,a)}function J2(r,n){if(e.isImportCall(r))return n===0?yn:n===1?kb(!1):Te;var i=At(r).resolvedSignature===pr?pr:Gg(r);if(e.isJsxOpeningLikeElement(r)&&n===0)return n0(i,r);var a=i.parameters.length-1;return G(i)&&n>=a?Zc(Li(i.parameters[a]),Vl(n-a),256):fl(i,n)}function O4(r,n){if(r.parent.kind===212)return Ox(r.parent,n)}function F4(r,n){var i=r.parent,a=i.left,s=i.operatorToken,l=i.right;switch(s.kind){case 63:case 76:case 75:case 77:return r===l?L4(i):void 0;case 56:case 60:var g=Yc(i,n);return r===l&&(g&&g.pattern||!g&&!e.isDefaultedExpandoInitializer(i))?Xs(a):g;case 55:case 27:return r===l?Yc(i,n):void 0;default:return}}function M4(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return Hu(r);if(e.isPropertyAccessExpression(r)){var n=Xs(r.expression);return e.isPrivateIdentifier(r.name)?a(n,r.name):Zt(n,r.name.escapedText)}if(e.isElementAccessExpression(r)){var i=Ds(r.argumentExpression);if(!hu(i))return;var n=Xs(r.expression);return Zt(n,Du(i))}return;function a(s,l){var g=s0(l.escapedText,l);return g&&eD(s,g)}}function L4(r){var n,i,a=e.getAssignmentDeclarationKind(r);switch(a){case 0:case 4:var s=M4(r.left),l=s&&s.valueDeclaration;if(l&&(e.isPropertyDeclaration(l)||e.isPropertySignature(l))){var g=e.getEffectiveTypeAnnotationNode(l);return g&&ra(zt(g),Qt(s).mapper)||(e.isPropertyDeclaration(l)?l.initializer&&Xs(r.left):void 0)}return a===0?Xs(r.left):Fx(r);case 5:if($h(r,a))return Fx(r);if(r.left.symbol){var W=r.left.symbol.valueDeclaration;if(!W)return;var ce=e.cast(r.left,e.isAccessExpression),g=e.getEffectiveTypeAnnotationNode(W);if(g)return zt(g);if(e.isIdentifier(ce.expression)){var ke=ce.expression,rr=is(ke,ke.escapedText,111551,void 0,ke.escapedText,!0);if(rr){var $e=rr.valueDeclaration&&e.getEffectiveTypeAnnotationNode(rr.valueDeclaration);if($e){var ar=e.getElementOrPropertyAccessName(ce);if(ar!==void 0)return Jp(zt($e),ar)}return}}return e.isInJSFile(W)?void 0:Xs(r.left)}else return Xs(r.left);case 1:case 6:case 3:case 2:var ir=void 0;a!==2&&(ir=(n=r.left.symbol)===null||n===void 0?void 0:n.valueDeclaration),ir||(ir=(i=r.symbol)===null||i===void 0?void 0:i.valueDeclaration);var Wr=ir&&e.getEffectiveTypeAnnotationNode(ir);return Wr?zt(Wr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(a)}}function $h(r,n){if(n===void 0&&(n=e.getAssignmentDeclarationKind(r)),n===4)return!0;if(!e.isInJSFile(r)||n!==5||!e.isIdentifier(r.left.expression))return!1;var i=r.left.expression.escapedText,a=is(r.left,i,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(a==null?void 0:a.valueDeclaration)}function Fx(r){if(!r.symbol)return Xs(r.left);if(r.symbol.valueDeclaration){var n=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(n){var i=zt(n);if(i)return i}}var a=e.cast(r.left,e.isAccessExpression);if(!!e.isObjectLiteralMethod(e.getThisContainer(a.expression,!1))){var s=gy(a.expression),l=e.getElementOrPropertyAccessName(a);return l!==void 0&&Jp(s,l)||void 0}}function R4(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&kt(r,0)>=0)}function Jp(r,n,i){return Qo(r,function(a){var s;if(Xc(a)&&!a.declaration.nameType){var l=zu(a),g=uc(l)||l,W=i||Ou(e.unescapeLeadingUnderscores(n));if(io(W,g))return yh(a,W)}else if(a.flags&3670016){var ce=Zt(a,n);if(ce)return R4(ce)?void 0:Li(ce);if(Xa(a)){var ke=ev(a);if(ke&&e.isNumericLiteralName(n)&&+n>=0)return ke}return(s=hl(Zp(a),i||Ou(e.unescapeLeadingUnderscores(n))))===null||s===void 0?void 0:s.type}},!0)}function Mx(r,n){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&33554432))return j2(r,n)}function j2(r,n){var i=r.parent,a=e.isPropertyAssignment(r)&&L2(r,n);if(a)return a;var s=tp(i,n);if(s){if(Pp(r)){var l=zi(r);return Jp(s,l.escapedName,Qt(l).nameType)}if(r.name){var g=L_(r.name);return Qo(s,function(W){var ce;return(ce=hl(Zp(W),g))===null||ce===void 0?void 0:ce.type},!0)}}}function U2(r,n){return r&&(Jp(r,""+n)||Qo(r,function(i){return LD(1,i,zr,void 0,!1)},!0))}function B4(r,n){var i=r.parent;return r===i.whenTrue||r===i.whenFalse?Yc(i,n):void 0}function J4(r,n,i){var a=tp(r.openingElement.tagName,i),s=t0(Vg(r));if(!!(a&&!Ba(a)&&s&&s!=="")){var l=e.getSemanticJsxChildren(r.children),g=l.indexOf(n),W=Jp(a,s);return W&&(l.length===1?W:Qo(W,function(ce){return Td(ce)?Zc(ce,Vl(g)):ce},!0))}}function j4(r,n){var i=r.parent;return e.isJsxAttributeLike(i)?Yc(r,n):e.isJsxElement(i)?J4(i,r,n):void 0}function Lx(r,n){if(e.isJsxAttribute(r)){var i=tp(r.parent,n);return!i||Ba(i)?void 0:Jp(i,r.name.escapedText)}else return Yc(r.parent,n)}function my(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return my(r.expression);case 291:return!r.expression||my(r.expression)}return!1}function U4(r,n){return LA(n,r)||Y1(n,e.concatenate(e.map(e.filter(r.properties,function(i){return!!i.symbol&&i.kind===299&&my(i.initializer)&&tv(n,i.symbol.escapedName)}),function(i){return[function(){return wy(i.initializer)},i.symbol.escapedName]}),e.map(e.filter(vo(n),function(i){var a;return!!(i.flags&16777216)&&!!((a=r==null?void 0:r.symbol)===null||a===void 0?void 0:a.members)&&!r.symbol.members.has(i.escapedName)&&tv(n,i.escapedName)}),function(i){return[function(){return zr},i.escapedName]})),io,n)}function z4(r,n){return Y1(n,e.concatenate(e.map(e.filter(r.properties,function(i){return!!i.symbol&&i.kind===288&&tv(n,i.symbol.escapedName)&&(!i.initializer||my(i.initializer))}),function(i){return[i.initializer?function(){return wy(i.initializer)}:function(){return Ni},i.symbol.escapedName]}),e.map(e.filter(vo(n),function(i){var a;return!!(i.flags&16777216)&&!!((a=r==null?void 0:r.symbol)===null||a===void 0?void 0:a.members)&&!r.symbol.members.has(i.escapedName)&&tv(n,i.escapedName)}),function(i){return[function(){return zr},i.escapedName]})),io,n)}function tp(r,n){var i=e.isObjectLiteralMethod(r)?Mx(r,n):Yc(r,n),a=e0(i,r,n);if(a&&!(n&&n&2&&a.flags&8650752)){var s=Qo(a,re,!0);return s.flags&1048576&&e.isObjectLiteralExpression(r)?U4(r,s):s.flags&1048576&&e.isJsxAttributes(r)?z4(r,s):s}}function e0(r,n,i){if(r&&rs(r,465829888)){var a=Wg(n);if(a&&i&1&&e.some(a.inferences,aP))return r0(r,a.nonFixingMapper);if(a==null?void 0:a.returnMapper){var s=r0(r,a.returnMapper);return s.flags&1048576&&o_(s.types,Hi)&&o_(s.types,gi)?Qs(s,function(l){return l!==Hi&&l!==gi}):s}}return r}function r0(r,n){return r.flags&465829888?ra(r,n):r.flags&1048576?Ot(e.map(r.types,function(i){return r0(i,n)}),0):r.flags&2097152?ro(e.map(r.types,function(i){return r0(i,n)})):r}function Yc(r,n){if(r.flags&33554432)return;if(r.contextualType)return r.contextualType;var i=r.parent;switch(i.kind){case 257:case 166:case 169:case 168:case 205:return N4(r,n);case 216:case 250:return P4(r,n);case 226:return w4(i,n);case 220:return I4(i,n);case 210:case 211:return Ox(i,r);case 213:case 231:return e.isConstTypeReference(i.type)?g(i):zt(i.type);case 223:return F4(r,n);case 299:case 300:return j2(i,n);case 301:return Yc(i.parent,n);case 206:{var a=i,s=tp(a,n);return U2(s,e.indexOfNode(a.elements,r))}case 224:return B4(r,n);case 236:return e.Debug.assert(i.parent.kind===225),O4(i.parent,r);case 214:{var l=e.isInJSFile(i)?e.getJSDocTypeTag(i):void 0;return l?e.isJSDocTypeTag(l)&&e.isConstTypeReference(l.typeExpression.type)?g(i):zt(l.typeExpression.type):Yc(i,n)}case 232:return Yc(i,n);case 235:return zt(i.type);case 274:return wo(i);case 291:return j4(i,n);case 288:case 290:return Lx(i,n);case 283:case 282:return W4(i,n)}return;function g(W){return Yc(W,n)}}function Wg(r){var n=e.findAncestor(r,function(i){return!!i.inferenceContext});return n&&n.inferenceContext}function W4(r,n){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&n!==4?r.parent.contextualType:J2(r,0)}function n0(r,n){return yC(n)!==0?V4(r,n):H4(r,n)}function V4(r,n){var i=yD(r,_r);i=Rx(n,Vg(n),i);var a=ap(J.IntrinsicAttributes,n);return ca(a)||(i=Wd(a,i)),i}function q4(r,n){if(r.compositeSignatures){for(var i=[],a=0,s=r.compositeSignatures;a<s.length;a++){var l=s[a],g=Ao(l);if(Ba(g))return g;var W=Na(g,n);if(!W)return;i.push(W)}return ro(i)}var ce=Ao(r);return Ba(ce)?ce:Na(ce,n)}function G4(r){if(bm(r.tagName)){var n=Gx(r),i=p0(r,n);return fm(i)}var a=Ds(r.tagName);if(a.flags&128){var n=qx(a,r);if(!n)return ue;var i=p0(r,n);return fm(i)}return a}function Rx(r,n,i){var a=_N(n);if(a){var s=nt(a),l=G4(r);if(a.flags&524288){var g=Qt(a).typeParameters;if(e.length(g)>=2){var W=gd([l,i],g,2,e.isInJSFile(r));return wg(a,W)}}if(e.length(s.typeParameters)>=2){var W=gd([l,i],s.typeParameters,2,e.isInJSFile(r));return F_(s,W)}}return i}function H4(r,n){var i=Vg(n),a=dN(i),s=a===void 0?yD(r,_r):a===""?Ao(r):q4(r,a);if(!s)return!!a&&!!e.length(n.attributes.properties)&&Zr(n,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),_r;if(s=Rx(n,i,s),Ba(s))return s;var l=s,g=ap(J.IntrinsicClassAttributes,n);if(!ca(g)){var W=df(g.symbol),ce=Ao(r),ke=void 0;if(W){var rr=gd([ce],W,ul(W),e.isInJSFile(n));ke=ra(g,jc(W,rr))}else ke=g;l=Wd(ke,l)}var $e=ap(J.IntrinsicAttributes,n);return ca($e)||(l=Wd($e,l)),l}function K4(r){return e.getStrictOptionValue(Y,"noImplicitAny")?e.reduceLeft(r,function(n,i){return n===i||!n?n:Gy(n.typeParameters,i.typeParameters)?Z4(n,i):void 0}):void 0}function Q4(r,n,i){if(!r||!n)return r||n;var a=Ot([Li(r),ra(Li(n),i)]);return og(r,a)}function X4(r,n,i){for(var a=au(r),s=au(n),l=a>=s?r:n,g=l===r?n:r,W=l===r?a:s,ce=Kl(r)||Kl(n),ke=ce&&!Kl(l),rr=new Array(W+(ke?1:0)),$e=0;$e<W;$e++){var ar=jp(l,$e);l===n&&(ar=ra(ar,i));var ir=jp(g,$e)||_r;g===n&&(ir=ra(ir,i));var Wr=Ot([ar,ir]),sn=ce&&!ke&&$e===W-1,In=$e>=Hl(l)&&$e>=Hl(g),Sn=$e>=a?void 0:Cm(r,$e),Kn=$e>=s?void 0:Cm(n,$e),ei=Sn===Kn?Sn:Sn?Kn?void 0:Sn:Kn,Ti=go(1|(In&&!sn?16777216:0),ei||"arg".concat($e));Ti.type=sn?ic(Wr):Wr,rr[$e]=Ti}if(ke){var Ri=go(1,"args");Ri.type=ic(fl(g,W)),g===n&&(Ri.type=ra(Ri.type,i)),rr[W]=Ri}return rr}function Z4(r,n){var i=r.typeParameters||n.typeParameters,a;r.typeParameters&&n.typeParameters&&(a=jc(n.typeParameters,r.typeParameters));var s=r.declaration,l=X4(r,n,a),g=Q4(r.thisParameter,n.thisParameter,a),W=Math.max(r.minArgumentCount,n.minArgumentCount),ce=Bl(s,i,g,l,void 0,void 0,W,(r.flags|n.flags)&39);return ce.compositeKind=2097152,ce.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[n]),a&&(ce.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?xd(r.mapper,a):a),ce}function z2(r,n){var i=_a(r,0),a=e.filter(i,function(s){return!Y4(s,n)});return a.length===1?a[0]:K4(a)}function Y4(r,n){for(var i=0;i<n.parameters.length;i++){var a=n.parameters[i];if(a.initializer||a.questionToken||a.dotDotDotToken||Yp(a))break}return n.parameters.length&&e.parameterIsThisKeyword(n.parameters[0])&&i--,!Kl(r)&&au(r)<i}function W2(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?cv(r):void 0}function cv(r){e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r));var n=$p(r);if(n)return n;var i=tp(r,1);if(!!i){if(!(i.flags&1048576))return z2(i,r);for(var a,s=i.types,l=0,g=s;l<g.length;l++){var W=g[l],ce=z2(W,r);if(ce)if(!a)a=[ce];else if(oy(a[0],ce,!1,!0,!0,Xm))a.push(ce);else return}if(a)return a.length===1?a[0]:Fv(a[0],a)}}function $4(r,n){d<2&&_c(r,Y.downlevelIteration?1536:1024);var i=ya(r.expression,n);return J_(33,i,zr,r.expression)}function eN(r){return r.isSpread?Zc(r.type,Hn):r.type}function Dm(r){return r.kind===205&&!!r.initializer||r.kind===223&&r.operatorToken.kind===63}function Bx(r,n,i){for(var a=r.elements,s=a.length,l=[],g=[],W=tp(r,void 0),ce=e.isAssignmentTarget(r),ke=Tm(r),rr=!1,$e=0;$e<s;$e++){var ar=a[$e];if(ar.kind===227){d<2&&_c(ar,Y.downlevelIteration?1536:1024);var ir=ya(ar.expression,n,i);if(Td(ir))l.push(ir),g.push(8);else if(ce){var Wr=cl(ir,Hn)||LD(65,ir,zr,void 0,!1)||_r;l.push(Wr),g.push(4)}else l.push(J_(33,ir,zr,ar.expression)),g.push(4)}else if(vr&&ar.kind===229)rr=!0,l.push(Wn),g.push(2);else{var sn=U2(W,l.length),In=Em(ar,n,sn,i);if(l.push(fu(In,!0,rr)),g.push(rr?2:1),W&&Jf(W,Rg)&&n&&n&2&&!(n&4)&&Gu(ar)){var Sn=Wg(r);e.Debug.assert(Sn),WS(Sn,ar,In)}}}return ce?zl(l,g):i||ke||W&&Jf(W,Rg)?Jx(zl(l,g,ke)):Jx(ic(l.length?Ot(e.sameMap(l,function(Kn,ei){return g[ei]&8?yd(Kn,Hn)||Te:Kn}),2):Re?jn:fn,ke))}function Jx(r){if(!(e.getObjectFlags(r)&4))return r;var n=r.literalType;return n||(n=r.literalType=gb(r),n.objectFlags|=16384|131072),n}function rN(r){switch(r.kind){case 164:return nN(r);case 79:return e.isNumericLiteralName(r.escapedText);case 8:case 10:return e.isNumericLiteralName(r.text);default:return!1}}function nN(r){return Bs(f_(r),296)}function f_(r){var n=At(r.expression);if(!n.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101&&r.parent.kind!==174&&r.parent.kind!==175)return n.resolvedType=ue;if(n.resolvedType=ya(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var i=e.getEnclosingBlockScopeContainer(r.parent.parent),a=w2(i);a&&(At(a).flags|=65536,At(r).flags|=524288,At(r.parent.parent).flags|=524288)}(n.resolvedType.flags&98304||!Bs(n.resolvedType,402653316|296|12288)&&!io(n.resolvedType,Dn))&&Zr(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return n.resolvedType}function iN(r){var n,i=(n=r.declarations)===null||n===void 0?void 0:n[0];return e.isNumericLiteralName(r.escapedName)||i&&e.isNamedDeclaration(i)&&rN(i.name)}function jx(r){var n,i=(n=r.declarations)===null||n===void 0?void 0:n[0];return e.isKnownSymbol(r)||i&&e.isNamedDeclaration(i)&&e.isComputedPropertyName(i.name)&&Bs(f_(i.name),4096)}function V2(r,n,i,a){for(var s=[],l=n;l<i.length;l++){var g=i[l];(a===yn&&!jx(g)||a===Hn&&iN(g)||a===Pe&&jx(g))&&s.push(Li(i[l]))}var W=s.length?Ot(s,2):zr;return Ul(a,W,Tm(r))}function q2(r){e.Debug.assert((r.flags&2097152)!=0,"Should only get Alias here.");var n=Qt(r);if(!n.immediateTarget){var i=Mu(r);if(!i)return e.Debug.fail();n.immediateTarget=Tf(i,!0)}return n.immediateTarget}function tN(r,n){var i=e.isAssignmentTarget(r);z5(r,i);for(var a=Re?e.createSymbolTable():void 0,s=e.createSymbolTable(),l=[],g=Zi,W=tp(r,void 0),ce=W&&W.pattern&&(W.pattern.kind===203||W.pattern.kind===207),ke=Tm(r),rr=ke?8:0,$e=e.isInJSFile(r)&&!e.isInJsonFile(r),ar=e.getJSDocEnumTag(r),ir=!W&&$e&&!ar,Wr=dr,sn=!1,In=!1,Sn=!1,Kn=!1,ei=0,Ti=r.properties;ei<Ti.length;ei++){var Ri=Ti[ei];Ri.name&&e.isComputedPropertyName(Ri.name)&&f_(Ri.name)}for(var pt=0,rt=0,Da=r.properties;rt<Da.length;rt++){var St=Da[rt],ba=zi(St),Ta=St.name&&St.name.kind===164?f_(St.name):void 0;if(St.kind===299||St.kind===300||e.isObjectLiteralMethod(St)){var wa=St.kind===299?eT(St,n):St.kind===300?Em(!i&&St.objectAssignmentInitializer?St.objectAssignmentInitializer:St.name,n):rT(St,n);if($e){var So=cd(St);So?(Fc(wa,So,St),wa=So):ar&&ar.typeExpression&&Fc(wa,zt(ar.typeExpression),St)}Wr|=e.getObjectFlags(wa)&458752;var xo=Ta&&hu(Ta)?Ta:void 0,uo=xo?go(4|ba.flags,Du(xo),rr|4096):go(4|ba.flags,ba.escapedName,rr);if(xo&&(uo.nameType=xo),i){var sa=St.kind===299&&Dm(St.initializer)||St.kind===300&&St.objectAssignmentInitializer;sa&&(uo.flags|=16777216)}else if(ce&&!(e.getObjectFlags(W)&512)){var si=Zt(W,ba.escapedName);si?uo.flags|=si.flags&16777216:!Y.suppressExcessPropertyErrors&&!Wu(W,yn)&&Zr(St.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xt(ba),Oi(W))}if(uo.declarations=ba.declarations,uo.parent=ba.parent,ba.valueDeclaration&&(uo.valueDeclaration=ba.valueDeclaration),uo.type=wa,uo.target=ba,ba=uo,a==null||a.set(uo.escapedName,uo),W&&n&&n&2&&!(n&4)&&(St.kind===299||St.kind===171)&&Gu(St)){var Rn=Wg(r);e.Debug.assert(Rn);var ut=St.kind===299?St.initializer:St;WS(Rn,ut,wa)}}else if(St.kind===301){d<2&&_c(St,2),l.length>0&&(g=Xd(g,Ma(),r.symbol,Wr,ke),l=[],s=e.createSymbolTable(),In=!1,Sn=!1,Kn=!1);var wa=ct(ya(St.expression));if(vy(wa)){var Pt=L1(wa,ke);if(a&&zx(Pt,a,St),pt=l.length,ca(g))continue;g=Xd(g,Pt,r.symbol,Wr,ke)}else Zr(St,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),g=ue;continue}else e.Debug.assert(St.kind===174||St.kind===175),Im(St);Ta&&!(Ta.flags&8576)?io(Ta,Dn)&&(io(Ta,Hn)?Sn=!0:io(Ta,Pe)?Kn=!0:In=!0,i&&(sn=!0)):s.set(ba.escapedName,ba),l.push(ba)}if(ce){var ea=e.findAncestor(W.pattern.parent,function(La){return La.kind===257||La.kind===223||La.kind===166}),Yi=e.findAncestor(r,function(La){return La===ea||La.kind===301});if(Yi.kind!==301)for(var ka=0,aa=vo(W);ka<aa.length;ka++){var uo=aa[ka];!s.get(uo.escapedName)&&!Zt(g,uo.escapedName)&&(uo.flags&16777216||Zr(uo.valueDeclaration||uo.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(uo.escapedName,uo),l.push(uo))}}if(ca(g))return ue;if(g!==Zi)return l.length>0&&(g=Xd(g,Ma(),r.symbol,Wr,ke),l=[],s=e.createSymbolTable(),In=!1,Sn=!1),Qo(g,function(La){return La===Zi?Ma():La});return Ma();function Ma(){var La=[];In&&La.push(V2(r,pt,l,yn)),Sn&&La.push(V2(r,pt,l,Hn)),Kn&&La.push(V2(r,pt,l,Pe));var an=Yo(r.symbol,s,e.emptyArray,e.emptyArray,La);return an.objectFlags|=Wr|128|131072,ir&&(an.objectFlags|=4096),sn&&(an.objectFlags|=512),i&&(an.pattern=r),an}}function vy(r){var n=JS(Qo(r,O_));return!!(n.flags&(1|67108864|524288|58982400)||n.flags&3145728&&e.every(n.types,vy))}function aN(r){Q2(r)}function oN(r,n){return Im(r),yy(r)||Te}function sN(r){Q2(r.openingElement),bm(r.closingElement.tagName)?H2(r.closingElement):ya(r.closingElement.tagName),i0(r)}function cN(r,n){return Im(r),yy(r)||Te}function uN(r){Q2(r.openingFragment);var n=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(Y)&&(Y.jsxFactory||n.pragmas.has("jsx"))&&!Y.jsxFragmentFactory&&!n.pragmas.has("jsxfrag")&&Zr(r,Y.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),i0(r),yy(r)||Te}function G2(r){return e.stringContains(r,"-")}function bm(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function Ux(r,n){return r.initializer?Em(r.initializer,n):Ni}function lN(r,n){for(var i=r.attributes,a=Yc(i,0),s=Re?e.createSymbolTable():void 0,l=e.createSymbolTable(),g=ni,W=!1,ce,ke=!1,rr=2048,$e=t0(Vg(r)),ar=0,ir=i.properties;ar<ir.length;ar++){var Wr=ir[ar],sn=Wr.symbol;if(e.isJsxAttribute(Wr)){var In=Ux(Wr,n);rr|=e.getObjectFlags(In)&458752;var Sn=go(4|sn.flags,sn.escapedName);if(Sn.declarations=sn.declarations,Sn.parent=sn.parent,sn.valueDeclaration&&(Sn.valueDeclaration=sn.valueDeclaration),Sn.type=In,Sn.target=sn,l.set(Sn.escapedName,Sn),s==null||s.set(Sn.escapedName,Sn),Wr.name.escapedText===$e&&(ke=!0),a){var Kn=Zt(a,sn.escapedName);Kn&&Kn.declarations&&ef(Kn)&&Tl(Wr.name,Kn.declarations,Wr.name.escapedText)}}else{e.Debug.assert(Wr.kind===290),l.size>0&&(g=Xd(g,St(),i.symbol,rr,!1),l=e.createSymbolTable());var In=ct(Ds(Wr.expression,n));Ba(In)&&(W=!0),vy(In)?(g=Xd(g,In,i.symbol,rr,!1),s&&zx(In,s,Wr)):(Zr(Wr.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ce=ce?ro([ce,In]):In)}}W||l.size>0&&(g=Xd(g,St(),i.symbol,rr,!1));var ei=r.parent.kind===281?r.parent:void 0;if(ei&&ei.openingElement===r&&ei.children.length>0){var Ti=i0(ei,n);if(!W&&$e&&$e!==""){ke&&Zr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores($e));var Ri=tp(r.attributes,void 0),pt=Ri&&Jp(Ri,$e),rt=go(4,$e);rt.type=Ti.length===1?Ti[0]:pt&&Jf(pt,Rg)?zl(Ti):ic(Ot(Ti)),rt.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores($e),void 0,void 0),e.setParent(rt.valueDeclaration,i),rt.valueDeclaration.symbol=rt;var Da=e.createSymbolTable();Da.set($e,rt),g=Xd(g,Yo(i.symbol,Da,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,rr,!1)}}if(W)return Te;if(ce&&g!==ni)return ro([ce,g]);return ce||(g===ni?St():g);function St(){rr|=dr;var ba=Yo(i.symbol,l,e.emptyArray,e.emptyArray,e.emptyArray);return ba.objectFlags|=rr|128|131072,ba}}function i0(r,n){for(var i=[],a=0,s=r.children;a<s.length;a++){var l=s[a];if(l.kind===11)l.containsOnlyTriviaWhiteSpaces||i.push(yn);else{if(l.kind===291&&!l.expression)continue;i.push(Em(l,n))}}return i}function zx(r,n,i){for(var a=0,s=vo(r);a<s.length;a++){var l=s[a];if(!(l.flags&16777216)){var g=n.get(l.escapedName);if(g){var W=Zr(g.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(g.escapedName));e.addRelatedInfo(W,e.createDiagnosticForNode(i,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function fN(r,n){return lN(r.parent,n)}function ap(r,n){var i=Vg(n),a=i&&Ac(i),s=a&&Wc(a,r,788968);return s?nt(s):ue}function H2(r){var n=At(r);if(!n.resolvedSymbol){var i=ap(J.IntrinsicElements,r);if(ca(i))return Ue&&Zr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(J.IntrinsicElements)),n.resolvedSymbol=jr;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var a=Zt(i,r.tagName.escapedText);if(a)return n.jsxFlags|=1,n.resolvedSymbol=a;var s=cl(i,yn);return s?(n.jsxFlags|=2,n.resolvedSymbol=i.symbol):(Zr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+J.IntrinsicElements),n.resolvedSymbol=jr)}return n.resolvedSymbol}function K2(r){var n=r&&e.getSourceFileOfNode(r),i=n&&At(n);if(!(i&&i.jsxImplicitImportContainer===!1)){if(i&&i.jsxImplicitImportContainer)return i.jsxImplicitImportContainer;var a=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Y,n),Y);if(!!a){var s=e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.Classic,l=s?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,g=Hf(r,a,l,r),W=g&&g!==jr?Ya(ss(g)):void 0;return i&&(i.jsxImplicitImportContainer=W||!1),W}}}function Vg(r){var n=r&&At(r);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||n.jsxNamespace!==!1){var i=K2(r);if(!i||i===jr){var a=ms(r);i=is(r,a,1920,void 0,a,!1)}if(i){var s=ss(Wc(Ac(ss(i)),J.JSX,1920));if(s&&s!==jr)return n&&(n.jsxNamespace=s),s}n&&(n.jsxNamespace=!1)}var l=ss(Vm(J.JSX,1920,void 0));if(l!==jr)return l}function Wx(r,n){var i=n&&Wc(n.exports,r,788968),a=i&&nt(i),s=a&&vo(a);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&i.declarations&&Zr(i.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function _N(r){return r&&Wc(r.exports,J.LibraryManagedAttributes,788968)}function dN(r){return Wx(J.ElementAttributesPropertyNameContainer,r)}function t0(r){return Wx(J.ElementChildrenAttributeNameContainer,r)}function Vx(r,n){if(r.flags&4)return[Zo];if(r.flags&128){var i=qx(r,n);if(i){var a=p0(n,i);return[a]}else return Zr(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+J.IntrinsicElements),e.emptyArray}var s=re(r),l=_a(s,1);return l.length===0&&(l=_a(s,0)),l.length===0&&s.flags&1048576&&(l=Mv(e.map(s.types,function(g){return Vx(g,n)}))),l}function qx(r,n){var i=ap(J.IntrinsicElements,n);if(!ca(i)){var a=r.value,s=Zt(i,e.escapeLeadingUnderscores(a));if(s)return Li(s);var l=cl(i,yn);return l||void 0}return Te}function pN(r,n,i){if(r===1){var a=Kx(i);a&&Dl(n,a,fa,i.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,g)}else if(r===0){var s=Hx(i);s&&Dl(n,s,fa,i.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,g)}else{var a=Kx(i),s=Hx(i);if(!a||!s)return;var l=Ot([a,s]);Dl(n,l,fa,i.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,g)}function g(){var W=e.getTextOfNode(i.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,W)}}function Gx(r){e.Debug.assert(bm(r.tagName));var n=At(r);if(!n.resolvedJsxElementAttributesType){var i=H2(r);return n.jsxFlags&1?n.resolvedJsxElementAttributesType=Li(i)||ue:n.jsxFlags&2?n.resolvedJsxElementAttributesType=cl(ap(J.IntrinsicElements,r),yn)||ue:n.resolvedJsxElementAttributesType=ue}return n.resolvedJsxElementAttributesType}function Hx(r){var n=ap(J.ElementClass,r);if(!ca(n))return n}function yy(r){return ap(J.Element,r)}function Kx(r){var n=yy(r);if(n)return Ot([n,bn])}function gN(r){var n=ap(J.IntrinsicElements,r);return n?vo(n):e.emptyArray}function mN(r){(Y.jsx||0)===0&&Zr(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),yy(r)===void 0&&Ue&&Zr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Q2(r){var n=e.isJsxOpeningLikeElement(r);if(n&&W5(r),mN(r),!K2(r)){var i=fe&&Y.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,a=ms(r),s=n?r.tagName:r,l=void 0;if(e.isJsxOpeningFragment(r)&&a==="null"||(l=is(s,a,111551,i,a,!0)),l&&(l.isReferenced=67108863,l.flags&2097152&&!Ec(l)&&su(l)),e.isJsxOpeningFragment(r)){var g=e.getSourceFileOfNode(r),W=xc(g);W&&is(s,W,111551,i,W,!0)}}if(n){var ce=r,ke=Gg(ce);m0(ke,r),pN(yC(ce),Ao(ke),ce)}}function X2(r,n,i){if(r.flags&524288){if(w_(r,n)||Ip(r,n)||zd(n)&&Wu(r,yn)||i&&G2(n))return!0}else if(r.flags&3145728&&hy(r))for(var a=0,s=r.types;a<s.length;a++){var l=s[a];if(X2(l,n,i))return!0}return!1}function hy(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,hy)||r.flags&2097152&&e.every(r.types,hy))}function vN(r,n){if(q5(r),r.expression){var i=ya(r.expression,n);return r.dotDotDotToken&&i!==Te&&!Fu(i)&&Zr(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),i}else return ue}function a0(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function Z2(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var n=r.valueDeclaration.parent;return n&&e.isBinaryExpression(n)&&e.getAssignmentDeclarationKind(n)===3}}function Y2(r,n,i,a,s,l){l===void 0&&(l=!0);var g=l?r.kind===163?r.right:r.kind===202?r:r.kind===205&&r.propertyName?r.propertyName:r.name:void 0;return Qx(r,n,i,a,s,g)}function Qx(r,n,i,a,s,l){var g=e.getDeclarationModifierFlagsFromSymbol(s,i);if(n){if(d<2&&Xx(s))return l&&Zr(l,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(g&256)return l&&Zr(l,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Xt(s),Oi(ag(s))),!1}if(g&256&&Xx(s)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var W=e.getClassLikeDeclarationOfSymbol(Nc(s));if(W&&WI(r))return l&&Zr(l,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Xt(s),e.getTextOfIdentifierOrLiteral(W.name)),!1}if(!(g&24))return!0;if(g&8){var W=e.getClassLikeDeclarationOfSymbol(Nc(s));return HD(r,W)?!0:(l&&Zr(l,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Xt(s),Oi(ag(s))),!1)}if(n)return!0;var ce=cE(r,function(ke){var rr=nt(zi(ke));return IS(rr,s,i)});return!ce&&(ce=yN(r),ce=ce&&IS(ce,s,i),g&32||!ce)?(l&&Zr(l,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Xt(s),Oi(ag(s)||a)),!1):g&32?!0:(a.flags&262144&&(a=a.isThisType?rc(a):uc(a)),!a||!Of(a,ce)?(l&&Zr(l,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Xt(s),Oi(ce),Oi(a)),!1):!0)}function yN(r){var n=hN(r),i=(n==null?void 0:n.type)&&zt(n.type);if(i&&i.flags&262144&&(i=rc(i)),i&&e.getObjectFlags(i)&(3|4))return wf(i)}function hN(r){var n=e.getThisContainer(r,!1);return n&&e.isFunctionLike(n)?e.getThisParameter(n):void 0}function Xx(r){return!!ay(r,function(n){return!(n.flags&8192)})}function Sm(r){return bl(ya(r),r)}function o0(r){return!!(fc(r)&50331648)}function $2(r){return o0(r)?l_(r):r}function DN(r,n){var i=e.isEntityNameExpression(r)?e.entityNameToString(r):void 0;if(r.kind===104){Zr(r,e.Diagnostics.The_value_0_cannot_be_used_here,"null");return}if(i!==void 0&&i.length<100){if(e.isIdentifier(r)&&i==="undefined"){Zr(r,e.Diagnostics.The_value_0_cannot_be_used_here,"undefined");return}Zr(r,n&16777216?n&33554432?e.Diagnostics._0_is_possibly_null_or_undefined:e.Diagnostics._0_is_possibly_undefined:e.Diagnostics._0_is_possibly_null,i)}else Zr(r,n&16777216?n&33554432?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function bN(r,n){Zr(r,n&16777216?n&33554432?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Zx(r,n,i){if(Re&&r.flags&2){if(e.isEntityNameExpression(n)){var a=e.entityNameToString(n);if(a.length<100)return Zr(n,e.Diagnostics._0_is_of_type_unknown,a),ue}return Zr(n,e.Diagnostics.Object_is_of_type_unknown),ue}var s=fc(r);if(s&50331648){i(n,s);var l=l_(r);return l.flags&(98304|131072)?ue:l}return r}function bl(r,n){return Zx(r,n,DN)}function Yx(r,n){var i=bl(r,n);if(i.flags&16384){if(e.isEntityNameExpression(n)){var a=e.entityNameToString(n);if(e.isIdentifier(n)&&a==="undefined")return Zr(n,e.Diagnostics.The_value_0_cannot_be_used_here,a),i;if(a.length<100)return Zr(n,e.Diagnostics._0_is_possibly_undefined,a),i}Zr(n,e.Diagnostics.Object_is_possibly_undefined)}return i}function $x(r,n){return r.flags&32?SN(r,n):rD(r,r.expression,Sm(r.expression),r.name,n)}function SN(r,n){var i=ya(r.expression),a=rv(i,r.expression);return Rh(rD(r,r.expression,bl(a,r.expression),r.name,n),r,a!==i)}function eC(r,n){var i=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?bl(gy(r.left),r.left):Sm(r.left);return rD(r,r.left,i,r.right,n)}function rC(r){for(;r.parent.kind===214;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function s0(r,n){for(var i=e.getContainingClass(n);i;i=e.getContainingClass(i)){var a=i.symbol,s=e.getSymbolNameForPrivateIdentifier(a,r),l=a.members&&a.members.get(s)||a.exports&&a.exports.get(s);if(l)return l}}function xN(r){if(!e.getContainingClass(r))return mi(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(r.parent)){if(!e.isExpressionNode(r))return mi(r,e.Diagnostics.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);var n=e.isBinaryExpression(r.parent)&&r.parent.operatorToken.kind===101;if(!c0(r)&&!n)return mi(r,e.Diagnostics.Cannot_find_name_0,e.idText(r))}return!1}function CN(r){xN(r);var n=c0(r);return n&&by(n,void 0,!1),Te}function c0(r){if(!!e.isExpressionNode(r)){var n=At(r);return n.resolvedSymbol===void 0&&(n.resolvedSymbol=s0(r.escapedText,r)),n.resolvedSymbol}}function eD(r,n){return Zt(r,n.escapedName)}function TN(r,n,i){var a,s=vo(r);s&&e.forEach(s,function($e){var ar=$e.valueDeclaration;if(ar&&e.isNamedDeclaration(ar)&&e.isPrivateIdentifier(ar.name)&&ar.name.escapedText===n.escapedText)return a=$e,!0});var l=vc(n);if(a){var g=e.Debug.checkDefined(a.valueDeclaration),W=e.Debug.checkDefined(e.getContainingClass(g));if(i==null?void 0:i.valueDeclaration){var ce=i.valueDeclaration,ke=e.getContainingClass(ce);if(e.Debug.assert(!!ke),e.findAncestor(ke,function($e){return W===$e})){var rr=Zr(n,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,l,Oi(r));return e.addRelatedInfo(rr,e.createDiagnosticForNode(ce,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,l),e.createDiagnosticForNode(g,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,l)),!0}}return Zr(n,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,l,vc(W.name||ne)),!0}return!1}function nC(r,n){return(pg(n)||e.isThisProperty(r)&&n_(n))&&e.getThisContainer(r,!0)===kp(n)}function rD(r,n,i,a,s){var l=At(n).resolvedSymbol,g=e.getAssignmentTargetKind(r),W=re(g!==0||rC(r)?tu(i):i),ce=Ba(W)||W===hn,ke;if(e.isPrivateIdentifier(a)){d<99&&(g!==0&&_c(r,1048576),g!==1&&_c(r,524288));var rr=s0(a.escapedText,a);if(g&&rr&&rr.valueDeclaration&&e.isMethodDeclaration(rr.valueDeclaration)&&mi(a,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(a)),ce){if(rr)return ca(W)?ue:W;if(!e.getContainingClass(a))return mi(a,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Te}if(ke=rr?eD(i,rr):void 0,!ke&&TN(i,a,rr))return ue;var $e=ke&&ke.flags&65536&&!(ke.flags&32768);$e&&g!==1&&Zr(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(ce)return e.isIdentifier(n)&&l&&Yh(l,r),ca(W)?ue:W;ke=Zt(W,a.escapedText,!1,r.kind===163)}e.isIdentifier(n)&&l&&(Y.isolatedModules||!(ke&&(Sv(ke)||ke.flags&8&&r.parent.kind===302))||e.shouldPreserveConstEnums(Y)&&Cx(r))&&Yh(l,r);var ar;if(ke){ef(ke)&&N1(r,ke)&&ke.declarations&&Tl(a,ke.declarations,a.escapedText),EN(ke,r,a),by(ke,r,uC(n,l)),At(r).resolvedSymbol=ke;var sn=e.isWriteAccess(r);if(Y2(r,n.kind===106,sn,W,ke),KC(r,ke,g))return Zr(a,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(a)),ue;ar=nC(r,ke)?Ye:sn?Rs(ke):Li(ke)}else{var ir=!e.isPrivateIdentifier(a)&&(g===0||!Qd(i)||e.isThisTypeParameter(i))?Ip(W,a.escapedText):void 0;if(!(ir&&ir.type)){var Wr=nD(r,i.symbol,!0);return!Wr&&Hm(i)?Te:i.symbol===pn?(pn.exports.has(a.escapedText)&&pn.exports.get(a.escapedText).flags&418?Zr(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(a.escapedText),Oi(i)):Ue&&Zr(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Oi(i)),Te):(a.escapedText&&!El(r)&&aC(a,e.isThisTypeParameter(i)?W:i,Wr),ue)}ir.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Zr(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Oi(W)),ar=Y.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?Ot([ir.type,zr]):ir.type,Y.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Zr(a,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(a.escapedText)),ir.declaration&&e.getCombinedNodeFlags(ir.declaration)&268435456&&Tl(a,[ir.declaration],a.escapedText)}return iC(r,ke,ar,a,s)}function nD(r,n,i){var a=e.getSourceFileOfNode(r);if(a&&Y.checkJs===void 0&&a.checkJsDirective===void 0&&(a.scriptKind===1||a.scriptKind===2)){var s=e.forEach(n==null?void 0:n.declarations,e.getSourceFileOfNode);return!(a!==s&&!!s&&Cu(s))&&!(i&&n&&n.flags&32)&&!(!!r&&i&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function iC(r,n,i,a,s){var l=e.getAssignmentTargetKind(r);if(l===1)return Jg(i,!!(n&&n.flags&16777216));if(n&&!(n.flags&(3|4|98304))&&!(n.flags&8192&&i.flags&1048576)&&!O0(n.declarations))return i;if(i===Ye)return ld(r,n);i=I2(i,r,s);var g=!1;if(Re&&mr&&e.isAccessExpression(r)&&r.expression.kind===108){var W=n&&n.valueDeclaration;if(W&&QT(W)&&!e.isStatic(W)){var ce=ov(r);ce.kind===173&&ce.parent===W.parent&&!(W.flags&16777216)&&(g=!0)}}else Re&&n&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(n.valueDeclaration)&&ov(r)===ov(n.valueDeclaration)&&(g=!0);var ke=Ed(r,i,g?u_(i):i);return g&&!gm(i)&&gm(ke)?(Zr(a,e.Diagnostics.Property_0_is_used_before_being_assigned,Xt(n)),i):l?ql(ke):ke}function EN(r,n,i){var a=r.valueDeclaration;if(!(!a||e.getSourceFileOfNode(n).isDeclarationFile)){var s,l=e.idText(i);tC(n)&&!Hv(a)&&!(e.isAccessExpression(n)&&e.isAccessExpression(n.expression))&&!Sf(a,i)&&!(e.isMethodDeclaration(a)&&e.getCombinedModifierFlags(a)&32)&&(Y.useDefineForClassFields||!kN(r))?s=Zr(i,e.Diagnostics.Property_0_is_used_before_its_initialization,l):a.kind===260&&n.parent.kind!==180&&!(a.flags&16777216)&&!Sf(a,i)&&(s=Zr(i,e.Diagnostics.Class_0_used_before_its_declaration,l)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,l))}}function tC(r){return!!e.findAncestor(r,function(n){switch(n.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return e.isBlock(n.parent)&&e.isClassStaticBlockDeclaration(n.parent.parent)?!0:"quit";default:return e.isExpressionNode(n)?!1:"quit"}})}function kN(r){if(!(r.parent.flags&32))return!1;for(var n=Li(r.parent);;){if(n=n.symbol&&AN(n),!n)return!1;var i=Zt(n,r.escapedName);if(i&&i.valueDeclaration)return!0}}function AN(r){var n=nu(r);if(n.length!==0)return ro(n)}function aC(r,n,i){var a,s;if(!e.isPrivateIdentifier(r)&&n.flags&1048576&&!(n.flags&131068))for(var l=0,g=n.types;l<g.length;l++){var W=g[l];if(!Zt(W,r.escapedText)&&!Ip(W,r.escapedText)){a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),Oi(W));break}}if(oC(r.escapedText,n)){var ce=e.declarationNameToString(r),ke=Oi(n);a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,ke,ke+"."+ce)}else{var rr=yv(n);if(rr&&Zt(rr,r.escapedText))a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),Oi(n)),s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var $e=e.declarationNameToString(r),ar=Oi(n),ir=IN($e,n);if(ir!==void 0)a=e.chainDiagnosticMessages(a,e.Diagnostics.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,$e,ar,ir);else{var Wr=iD(r,n);if(Wr!==void 0){var sn=e.symbolName(Wr),In=i?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;a=e.chainDiagnosticMessages(a,In,$e,ar,sn),s=Wr.valueDeclaration&&e.createDiagnosticForNode(Wr.valueDeclaration,e.Diagnostics._0_is_declared_here,sn)}else{var Sn=NN(n)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;a=e.chainDiagnosticMessages(nc(a,n),Sn,$e,ar)}}}}var Kn=e.createDiagnosticForNodeFromMessageChain(r,a);s&&e.addRelatedInfo(Kn,s),Yl(!i||a.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Kn)}function NN(r){return Y.lib&&!Y.lib.includes("dom")&&ZA(r,function(n){return n.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(n.symbol.escapedName))})&&Rf(r)}function oC(r,n){var i=n.symbol&&Zt(Li(n.symbol),r);return i!==void 0&&!!i.valueDeclaration&&e.isStatic(i.valueDeclaration)}function PN(r){for(var n=vc(r),i=e.getScriptTargetFeatures(),a=e.getOwnKeys(i),s=0,l=a;s<l.length;s++){var g=l[s],W=e.getOwnKeys(i[g]);if(W!==void 0&&e.contains(W,n))return g}}function IN(r,n){var i=re(n).symbol;if(!!i)for(var a=e.getScriptTargetFeatures(),s=e.getOwnKeys(a),l=0,g=s;l<g.length;l++){var W=g[l],ce=a[W],ke=ce[e.symbolName(i)];if(ke!==void 0&&e.contains(ke,r))return W}}function sC(r,n){return Dy(r,vo(n),106500)}function iD(r,n){var i=vo(n);if(typeof r!="string"){var a=r.parent;e.isPropertyAccessExpression(a)&&(i=e.filter(i,function(s){return lC(a,n,s)})),r=e.idText(r)}return Dy(r,i,111551)}function cC(r,n){var i=e.isString(r)?r:e.idText(r),a=vo(n),s=i==="for"?e.find(a,function(l){return e.symbolName(l)==="htmlFor"}):i==="class"?e.find(a,function(l){return e.symbolName(l)==="className"}):void 0;return s!=null?s:Dy(i,a,111551)}function tD(r,n){var i=iD(r,n);return i&&e.symbolName(i)}function aD(r,n,i){e.Debug.assert(n!==void 0,"outername should always be defined");var a=dp(r,n,i,void 0,n,!1,!1,!0,function(s,l,g){e.Debug.assertEqual(n,l,"name should equal outerName");var W=Wc(s,l,g);if(W)return W;var ce;if(s===rn){var ke=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function(rr){return s.has(rr.charAt(0).toUpperCase()+rr.slice(1))?go(524288,rr):void 0});ce=ke.concat(e.arrayFrom(s.values()))}else ce=e.arrayFrom(s.values());return Dy(e.unescapeLeadingUnderscores(l),ce,g)});return a}function wN(r,n,i){var a=aD(r,n,i);return a&&e.symbolName(a)}function u0(r,n){return n.exports&&Dy(e.idText(r),lf(n),2623475)}function ON(r,n){var i=u0(r,n);return i&&e.symbolName(i)}function FN(r,n,i){function a(g){var W=w_(r,g);if(W){var ce=cg(Li(W));return!!ce&&Hl(ce)>=1&&io(i,fl(ce,0))}return!1}var s=e.isAssignmentTarget(n)?"set":"get";if(!!a(s)){var l=e.tryGetPropertyAccessOrIdentifierToString(n.expression);return l===void 0?l=s:l+="."+s,l}}function MN(r,n){var i=n.types.filter(function(a){return!!(a.flags&128)});return e.getSpellingSuggestion(r.value,i,function(a){return a.value})}function Dy(r,n,i){return e.getSpellingSuggestion(r,n,a);function a(s){var l=e.symbolName(s);if(!e.startsWith(l,'"')){if(s.flags&i)return l;if(s.flags&2097152){var g=Fs(s);if(g&&g.flags&i)return l}}}}function by(r,n,i){var a=r&&r.flags&106500&&r.valueDeclaration;if(!!a){var s=e.hasEffectiveModifier(a,8),l=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!s&&!l)&&!(n&&e.isWriteOnlyAccess(n)&&!(r.flags&65536))){if(i){var g=e.findAncestor(n,e.isFunctionLikeDeclaration);if(g&&g.symbol===r)return}(e.getCheckFlags(r)&1?Qt(r).target:r).isReferenced=67108863}}}function uC(r,n){return r.kind===108||!!n&&e.isEntityNameExpression(r)&&n===Hu(e.getFirstIdentifier(r))}function LN(r,n){switch(r.kind){case 208:return oD(r,r.expression.kind===106,n,tu(ya(r.expression)));case 163:return oD(r,!1,n,tu(ya(r.left)));case 202:return oD(r,!1,n,zt(r))}}function lC(r,n,i){return sD(r,r.kind===208&&r.expression.kind===106,!1,n,i)}function oD(r,n,i,a){if(Ba(a))return!0;var s=Zt(a,i);return!!s&&sD(r,n,!1,a,s)}function sD(r,n,i,a,s){if(Ba(a))return!0;if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var l=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(g){return g===l})}return Qx(r,n,i,a,s)}function RN(r){var n=r.initializer;if(n.kind===258){var i=n.declarations[0];if(i&&!e.isBindingPattern(i.name))return zi(i)}else if(n.kind===79)return Hu(n)}function BN(r){return hs(r).length===1&&!!Wu(r,Hn)}function JN(r){var n=e.skipParentheses(r);if(n.kind===79){var i=Hu(n);if(i.flags&3)for(var a=r,s=r.parent;s;){if(s.kind===246&&a===s.statement&&RN(s)===i&&BN(Xs(s.expression)))return!0;a=s,s=s.parent}}return!1}function jN(r,n){return r.flags&32?UN(r,n):fC(r,Sm(r.expression),n)}function UN(r,n){var i=ya(r.expression),a=rv(i,r.expression);return Rh(fC(r,bl(a,r.expression),n),r,a!==i)}function fC(r,n,i){var a=e.getAssignmentTargetKind(r)!==0||rC(r)?tu(n):n,s=r.argumentExpression,l=ya(s);if(ca(a)||a===hn)return a;if(bD(a)&&!e.isStringLiteralLike(s))return Zr(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ue;var g=JN(s)?Hn:l,W=e.isAssignmentTarget(r)?4|(Qd(a)&&!e.isThisTypeParameter(a)?2:0):32,ce=yd(a,g,W,r)||ue;return pT(iC(r,At(r).resolvedSymbol,ce,s,i),r)}function _C(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function qg(r){return _C(r)&&e.forEach(r.typeArguments,eo),r.kind===212?ya(r.template):e.isJsxOpeningLikeElement(r)?ya(r.attributes):r.kind!==167&&e.forEach(r.arguments,function(n){ya(n)}),Zo}function Gl(r){return qg(r),To}function zN(r,n,i){var a,s,l=0,g,W=-1,ce;e.Debug.assert(!n.length);for(var ke=0,rr=r;ke<rr.length;ke++){var $e=rr[ke],ar=$e.declaration&&zi($e.declaration),ir=$e.declaration&&$e.declaration.parent;!s||ar===s?a&&ir===a?g=g+1:(a=ir,g=l):(g=l=n.length,a=ir),s=ar,ye($e)?(W++,ce=W,l++):ce=g,n.splice(ce,0,i?W0($e,i):$e)}}function l0(r){return!!r&&(r.kind===227||r.kind===234&&r.isSpread)}function f0(r){return e.findIndex(r,l0)}function dC(r){return!!(r.flags&16384)}function WN(r){return!!(r.flags&(16384|32768|2|1))}function _0(r,n,i,a){a===void 0&&(a=!1);var s,l=!1,g=au(i),W=Hl(i);if(r.kind===212)if(s=n.length,r.template.kind===225){var ce=e.last(r.template.templateSpans);l=e.nodeIsMissing(ce.literal)||!!ce.literal.isUnterminated}else{var ke=r.template;e.Debug.assert(ke.kind===14),l=!!ke.isUnterminated}else if(r.kind===167)s=DC(r,i);else if(e.isJsxOpeningLikeElement(r)){if(l=r.attributes.end===r.end,l)return!0;s=W===0?n.length:1,g=n.length===0?g:1,W=Math.min(W,1)}else if(r.arguments){s=a?n.length+1:n.length,l=r.arguments.end===r.end;var rr=f0(n);if(rr>=0)return rr>=Hl(i)&&(Kl(i)||rr<au(i))}else return e.Debug.assert(r.kind===211),Hl(i)===0;if(!Kl(i)&&s>g)return!1;if(l||s>=W)return!0;for(var $e=s;$e<W;$e++){var ar=fl(i,$e);if(Qs(ar,e.isInJSFile(r)&&!Re?WN:dC).flags&131072)return!1}return!0}function cD(r,n){var i=e.length(r.typeParameters),a=ul(r.typeParameters);return!e.some(n)||n.length>=a&&n.length<=i}function cg(r){return uv(r,0,!1)}function pC(r){return uv(r,0,!1)||uv(r,1,!1)}function uv(r,n,i){if(r.flags&524288){var a=Iu(r);if(i||a.properties.length===0&&a.indexInfos.length===0){if(n===0&&a.callSignatures.length===1&&a.constructSignatures.length===0)return a.callSignatures[0];if(n===1&&a.constructSignatures.length===1&&a.callSignatures.length===0)return a.constructSignatures[0]}}}function gC(r,n,i,a){var s=iv(r.typeParameters,r,0,a),l=_v(n),g=i&&(l&&l.flags&262144?i.nonFixingMapper:i.mapper),W=g?Lg(n,g):n;return l2(W,r,function(ce,ke){Bf(s.inferences,ce,ke)}),i||f2(n,r,function(ce,ke){Bf(s.inferences,ce,ke,128)}),zm(r,T2(s),e.isInJSFile(n.declaration))}function VN(r,n,i,a){var s=n0(n,r),l=Hg(r.attributes,s,a,i);return Bf(a.inferences,l,s),T2(a)}function mC(r){if(!r)return Ir;var n=ya(r);return e.isOptionalChainRoot(r.parent)?l_(n):e.isOptionalChain(r.parent)?s2(n):n}function uD(r,n,i,a,s){if(e.isJsxOpeningLikeElement(r))return VN(r,n,a,s);if(r.kind!==167){var l=e.every(n.typeParameters,function(ba){return!!pd(ba)}),g=Yc(r,l?8:0);if(g){var W=Ao(n);if(Mp(W)){var ce=Wg(r),ke=!l&&Yc(r,8)!==g;if(!ke){var rr=p2(pA(ce,1)),$e=ra(g,rr),ar=cg($e),ir=ar&&ar.typeParameters?fm(l1(ar,ar.typeParameters)):$e;Bf(s.inferences,ir,W,128)}var Wr=iv(n.typeParameters,n,s.flags),sn=ra(g,ce&&ce.returnMapper);Bf(Wr.inferences,sn,W),s.returnMapper=e.some(Wr.inferences,Kg)?p2(yA(Wr)):void 0}}}var In=dv(n),Sn=In?Math.min(au(n)-1,i.length):i.length;if(In&&In.flags&262144){var Kn=e.find(s.inferences,function(ba){return ba.typeParameter===In});Kn&&(Kn.impliedArity=e.findIndex(i,l0,Sn)<0?i.length-Sn:void 0)}var ei=Hd(n);if(ei&&Mp(ei)){var Ti=hC(r);Bf(s.inferences,mC(Ti),ei)}for(var Ri=0;Ri<Sn;Ri++){var pt=i[Ri];if(pt.kind!==229&&!(a&32&&h2(pt))){var rt=fl(n,Ri);if(Mp(rt)){var Da=Hg(pt,rt,s,a);Bf(s.inferences,Da,rt)}}}if(In&&Mp(In)){var St=lD(i,Sn,i.length,In,s,a);Bf(s.inferences,St,In)}return T2(s)}function vC(r){return r.flags&1048576?Qo(r,vC):r.flags&1||Oh(uc(r)||r)?r:Xa(r)?zl(No(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):zl([r],[8])}function lD(r,n,i,a,s,l){if(n>=i-1){var g=r[i-1];if(l0(g))return vC(g.kind===234?g.type:Hg(g.expression,a,s,l))}for(var W=[],ce=[],ke=[],rr=n;rr<i;rr++){var g=r[rr];if(l0(g)){var $e=g.kind===234?g.type:ya(g.expression);Td($e)?(W.push($e),ce.push(8)):(W.push(J_(33,$e,zr,g.kind===227?g.expression:g)),ce.push(4))}else{var ar=Zc(a,Vl(rr-n),256),ir=Hg(g,ar,s,l),Wr=rs(ar,131068|4194304|134217728|268435456);W.push(Wr?Jc(ir):ep(ir)),ce.push(1)}g.kind===234&&g.tupleNameSource&&ke.push(g.tupleNameSource)}return zl(W,ce,!1,e.length(ke)===e.length(W)?ke:void 0)}function fD(r,n,i,a){for(var s=e.isInJSFile(r.declaration),l=r.typeParameters,g=gd(e.map(n,zt),l,ul(l),s),W,ce=0;ce<n.length;ce++){e.Debug.assert(l[ce]!==void 0,"Should not call checkTypeArguments with too many type arguments");var ke=rc(l[ce]);if(ke){var rr=i&&a?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,$e=a||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;W||(W=jc(l,g));var ar=g[ce];if(!Fc(ar,Qc(ra(ke,W),ar),i?n[ce]:void 0,$e,rr))return}}return g}function yC(r){if(bm(r.tagName))return 2;var n=re(ya(r.tagName));return e.length(_a(n,1))?0:e.length(_a(n,0))?1:2}function qN(r,n,i,a,s,l,g){var W=n0(n,r),ce=Hg(r.attributes,W,void 0,a);return ke()&&G1(ce,W,i,s?r.tagName:void 0,r.attributes,void 0,l,g);function ke(){var rr;if(K2(r))return!0;var $e=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!bm(r.tagName)?ya(r.tagName):void 0;if(!$e)return!0;var ar=_a($e,0);if(!e.length(ar))return!0;var ir=vE(r);if(!ir)return!0;var Wr=ts(ir,111551,!0,!1,r);if(!Wr)return!0;var sn=Li(Wr),In=_a(sn,0);if(!e.length(In))return!0;for(var Sn=!1,Kn=0,ei=0,Ti=In;ei<Ti.length;ei++){var Ri=Ti[ei],pt=fl(Ri,0),rt=_a(pt,0);if(!!e.length(rt))for(var Da=0,St=rt;Da<St.length;Da++){var ba=St[Da];if(Sn=!0,Kl(ba))return!0;var Ta=au(ba);Ta>Kn&&(Kn=Ta)}}if(!Sn)return!0;for(var wa=Infinity,So=0,xo=ar;So<xo.length;So++){var uo=xo[So],sa=Hl(uo);sa<wa&&(wa=sa)}if(wa<=Kn)return!0;if(s){var si=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),wa,e.entityNameToString(ir),Kn),Rn=(rr=Ku(r.tagName))===null||rr===void 0?void 0:rr.valueDeclaration;Rn&&e.addRelatedInfo(si,e.createDiagnosticForNode(Rn,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),g&&g.skipLogging&&(g.errors||(g.errors=[])).push(si),g.skipLogging||fe.add(si)}return!1}}function Sy(r,n,i,a,s,l,g){var W={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return qN(r,i,a,s,l,g,W)?void 0:(e.Debug.assert(!l||!!W.errors,"jsx should have errors when reporting errors"),W.errors||e.emptyArray);var ce=Hd(i);if(ce&&ce!==Ir&&r.kind!==211){var ke=hC(r),rr=mC(ke),$e=l?ke||r:void 0,ar=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Dl(rr,ce,a,$e,ar,g,W))return e.Debug.assert(!l||!!W.errors,"this parameter should have errors when reporting errors"),W.errors||e.emptyArray}for(var ir=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Wr=dv(i),sn=Wr?Math.min(au(i)-1,n.length):n.length,In=0;In<sn;In++){var Sn=n[In];if(Sn.kind!==229){var Kn=fl(i,In),ei=Hg(Sn,Kn,void 0,s),Ti=s&4?nv(ei):ei;if(!G1(Ti,Kn,a,l?Sn:void 0,Sn,ir,g,W))return e.Debug.assert(!l||!!W.errors,"parameter should have errors when reporting errors"),rt(Sn,Ti,Kn),W.errors||e.emptyArray}}if(Wr){var Ri=lD(n,sn,n.length,Wr,void 0,s),pt=n.length-sn,$e=l?pt===0?r:pt===1?n[sn]:e.setTextRangePosEnd(op(r,Ri),n[sn].pos,n[n.length-1].end):void 0;if(!Dl(Ri,Wr,a,$e,ir,void 0,W))return e.Debug.assert(!l||!!W.errors,"rest parameter should have errors when reporting errors"),rt($e,Ri,Wr),W.errors||e.emptyArray}return;function rt(Da,St,ba){if(Da&&l&&W.errors&&W.errors.length){if(vv(ba))return;var Ta=vv(St);Ta&&gf(Ta,ba,a)&&e.addRelatedInfo(W.errors[0],e.createDiagnosticForNode(Da,e.Diagnostics.Did_you_forget_to_use_await))}}}function hC(r){var n=r.kind===210?r.expression:r.kind===212?r.tag:void 0;if(n){var i=e.skipOuterExpressions(n);if(e.isAccessExpression(i))return i.expression}}function op(r,n,i,a){var s=e.parseNodeFactory.createSyntheticExpression(n,i,a);return e.setTextRange(s,r),e.setParent(s,r),s}function _D(r){if(r.kind===212){var n=r.template,i=[op(n,QE())];return n.kind===225&&e.forEach(n.templateSpans,function(ce){i.push(ce.expression)}),i}if(r.kind===167)return GN(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var a=r.arguments||e.emptyArray,s=f0(a);if(s>=0){for(var l=a.slice(0,s),g=function(ce){var ke=a[ce],rr=ke.kind===227&&(ec?ya(ke.expression):Ds(ke.expression));rr&&Xa(rr)?e.forEach(No(rr),function($e,ar){var ir,Wr=rr.target.elementFlags[ar],sn=op(ke,Wr&4?ic($e):$e,!!(Wr&12),(ir=rr.target.labeledElementDeclarations)===null||ir===void 0?void 0:ir[ar]);l.push(sn)}):l.push(ke)},W=s;W<a.length;W++)g(W);return l}return a}function GN(r){var n=r.parent,i=r.expression;switch(n.kind){case 260:case 228:return[op(i,Li(zi(n)))];case 166:var a=n.parent;return[op(i,n.parent.kind===173?Li(zi(a)):ue),op(i,Te),op(i,Hn)];case 169:case 171:case 174:case 175:var s=d!==0&&(!e.isPropertyDeclaration(n)||e.hasAccessorModifier(n));return[op(i,ZI(n)),op(i,YI(n)),op(i,s?Ob(lg(n)):Te)]}return e.Debug.fail()}function DC(r,n){switch(r.parent.kind){case 260:case 228:return 1;case 169:return e.hasAccessorModifier(r.parent)?3:2;case 171:case 174:case 175:return d===0||n.parameters.length<=2?2:3;case 166:return 3;default:return e.Debug.fail()}}function bC(r,n){var i,a,s=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var l=e.getErrorSpanForNode(s,r.expression.name);i=l.start,a=n?l.length:r.end-i}else{var g=e.getErrorSpanForNode(s,r.expression);i=g.start,a=n?g.length:r.end-i}return{start:i,length:a,sourceFile:s}}function xy(r,n,i,a,s,l){if(e.isCallExpression(r)){var g=bC(r),W=g.sourceFile,ce=g.start,ke=g.length;return e.createFileDiagnostic(W,ce,ke,n,i,a,s,l)}else return e.createDiagnosticForNode(r,n,i,a,s,l)}function HN(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var n=is(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),i=n==null?void 0:n.valueDeclaration;if(!i||!e.isParameter(i)||!e.isFunctionExpressionOrArrowFunction(i.parent)||!e.isNewExpression(i.parent.parent)||!e.isIdentifier(i.parent.parent.expression))return!1;var a=y1(!1);if(!a)return!1;var s=Ku(i.parent.parent.expression,!0);return s===a}function SC(r,n,i){var a,s=f0(i);if(s>-1)return e.createDiagnosticForNode(i[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var l=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,W=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,ke,rr=0,$e=n;rr<$e.length;rr++){var ar=$e[rr],ir=Hl(ar),Wr=au(ar);ir<l&&(l=ir,ke=ar),g=Math.max(g,Wr),ir<i.length&&ir>W&&(W=ir),i.length<Wr&&Wr<ce&&(ce=Wr)}var sn=e.some(n,Kl),In=sn?l:l<g?l+"-"+g:l,Sn=!sn&&In===1&&i.length===0&&HN(r);if(Sn&&e.isInJSFile(r))return xy(r,e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);var Kn=sn?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Sn?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(l<i.length&&i.length<g)return xy(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,i.length,W,ce);if(i.length<l){var ei=xy(r,Kn,In,i.length),Ti=(a=ke==null?void 0:ke.declaration)===null||a===void 0?void 0:a.parameters[ke.thisParameter?i.length+1:i.length];if(Ti){var Ri=e.createDiagnosticForNode(Ti,e.isBindingPattern(Ti.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(Ti)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Ti.name?e.isBindingPattern(Ti.name)?void 0:e.idText(e.getFirstIdentifier(Ti.name)):i.length);return e.addRelatedInfo(ei,Ri)}return ei}else{var pt=e.factory.createNodeArray(i.slice(g)),rt=e.first(pt).pos,Da=e.last(pt).end;return Da===rt&&Da++,e.setTextRangePosEnd(pt,rt,Da),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),pt,Kn,In,i.length)}}function KN(r,n,i){var a=i.length;if(n.length===1){var s=n[0],l=ul(s.typeParameters),g=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Expected_0_type_arguments_but_got_1,l<g?l+"-"+g:l,a)}for(var W=-Infinity,ce=Infinity,ke=0,rr=n;ke<rr.length;ke++){var s=rr[ke],$e=ul(s.typeParameters),g=e.length(s.typeParameters);$e>a?ce=Math.min(ce,$e):g<a&&(W=Math.max(W,g))}return W!==-Infinity&&ce!==Infinity?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,a,W,ce):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Expected_0_type_arguments_but_got_1,W===-Infinity?ce:W,a)}function xm(r,n,i,a,s,l){var g=r.kind===212,W=r.kind===167,ce=e.isJsxOpeningLikeElement(r),ke=!i,rr;!W&&!e.isSuperCall(r)&&(rr=r.typeArguments,(g||ce||r.expression.kind!==106)&&e.forEach(rr,eo));var $e=i||[];if(zN(n,$e,s),!$e.length)return ke&&fe.add(xy(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Gl(r);var ar=_D(r),ir=$e.length===1&&!$e[0].typeParameters,Wr=!W&&!ir&&e.some(ar,Gu)?4:0;Wr|=a&32;var sn,In,Sn,Kn,ei=!!(a&16)&&r.kind===210&&r.arguments.hasTrailingComma;if($e.length>1&&(Kn=Fi($e,gt,ir,ei)),Kn||(Kn=Fi($e,fa,ir,ei)),Kn)return Kn;if(Kn=QN(r,$e,ar,!!i,a),At(r).resolvedSignature=Kn,ke)if(sn)if(sn.length===1||sn.length>3){var Ti=sn[sn.length-1],Ri;sn.length>3&&(Ri=e.chainDiagnosticMessages(Ri,e.Diagnostics.The_last_overload_gave_the_following_error),Ri=e.chainDiagnosticMessages(Ri,e.Diagnostics.No_overload_matches_this_call));var pt=Sy(r,ar,Ti,fa,0,!0,function(){return Ri});if(pt)for(var rt=0,Da=pt;rt<Da.length;rt++){var St=Da[rt];Ti.declaration&&sn.length>3&&e.addRelatedInfo(St,e.createDiagnosticForNode(Ti.declaration,e.Diagnostics.The_last_overload_is_declared_here)),br(Ti,St),fe.add(St)}else e.Debug.fail("No error for last overload signature")}else{for(var ba=[],Ta=0,wa=Number.MAX_VALUE,So=0,xo=0,uo=function(li){var et=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,xo+1,$e.length,ru(li))},ki=Sy(r,ar,li,fa,0,!0,et);ki?(ki.length<=wa&&(wa=ki.length,So=xo),Ta=Math.max(Ta,ki.length),ba.push(ki)):e.Debug.fail("No error for 3 or fewer overload signatures"),xo++},sa=0,si=sn;sa<si.length;sa++){var Rn=si[sa];uo(Rn)}var ut=Ta>1?ba[So]:e.flatten(ba);e.Debug.assert(ut.length>0,"No errors reported for 3 or fewer overload signatures");var Pt=e.chainDiagnosticMessages(e.map(ut,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),ea=zn([],e.flatMap(ut,function(li){return li.relatedInformation}),!0),Yi=void 0;if(e.every(ut,function(li){return li.start===ut[0].start&&li.length===ut[0].length&&li.file===ut[0].file})){var ka=ut[0],aa=ka.file,Ma=ka.start,La=ka.length;Yi={file:aa,start:Ma,length:La,code:Pt.code,category:Pt.category,messageText:Pt,relatedInformation:ea}}else Yi=e.createDiagnosticForNodeFromMessageChain(r,Pt,ea);br(sn[0],Yi),fe.add(Yi)}else if(In)fe.add(SC(r,[In],ar));else if(Sn)fD(Sn,r.typeArguments,!0,l);else{var an=e.filter(n,function(li){return cD(li,rr)});an.length===0?fe.add(KN(r,n,rr)):W?l&&fe.add(xy(r,l)):fe.add(SC(r,an,ar))}return Kn;function br(li,et){var ki,Mi,vt=sn,Xr=In,Jn=Sn,Yn=((Mi=(ki=li.declaration)===null||ki===void 0?void 0:ki.symbol)===null||Mi===void 0?void 0:Mi.declarations)||e.emptyArray,Di=Yn.length>1,bi=Di?e.find(Yn,function(Vt){return e.isFunctionLikeDeclaration(Vt)&&e.nodeIsPresent(Vt.body)}):void 0;if(bi){var Qi=Vu(bi),xt=!Qi.typeParameters;Fi([Qi],fa,xt)&&e.addRelatedInfo(et,e.createDiagnosticForNode(bi,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}sn=vt,In=Xr,Sn=Jn}function Fi(li,et,ki,Mi){if(Mi===void 0&&(Mi=!1),sn=void 0,In=void 0,Sn=void 0,ki){var vt=li[0];if(e.some(rr)||!_0(r,ar,vt,Mi))return;if(Sy(r,ar,vt,et,0,!1,void 0)){sn=[vt];return}return vt}for(var Xr=0;Xr<li.length;Xr++){var vt=li[Xr];if(!(!cD(vt,rr)||!_0(r,ar,vt,Mi))){var Jn=void 0,Yn=void 0;if(vt.typeParameters){var Di=void 0;if(e.some(rr)){if(Di=fD(vt,rr,!1),!Di){Sn=vt;continue}}else Yn=iv(vt.typeParameters,vt,e.isInJSFile(r)?2:0),Di=uD(r,vt,ar,Wr|8,Yn),Wr|=Yn.flags&4?8:0;if(Jn=zm(vt,Di,e.isInJSFile(vt.declaration),Yn&&Yn.inferredTypeParameters),dv(vt)&&!_0(r,ar,Jn,Mi)){In=Jn;continue}}else Jn=vt;if(Sy(r,ar,Jn,et,Wr,!1,void 0)){(sn||(sn=[])).push(Jn);continue}if(Wr){if(Wr=a&32,Yn){var Di=uD(r,vt,ar,Wr,Yn);if(Jn=zm(vt,Di,e.isInJSFile(vt.declaration),Yn.inferredTypeParameters),dv(vt)&&!_0(r,ar,Jn,Mi)){In=Jn;continue}}if(Sy(r,ar,Jn,et,Wr,!1,void 0)){(sn||(sn=[])).push(Jn);continue}}return li[Xr]=Jn,Jn}}}}function QN(r,n,i,a,s){return e.Debug.assert(n.length>0),Im(r),a||n.length===1||n.some(function(l){return!!l.typeParameters})?YN(r,n,i,s):XN(n)}function XN(r){var n=e.mapDefined(r,function(ar){return ar.thisParameter}),i;n.length&&(i=xC(n,n.map(lv)));for(var a=e.minAndMax(r,ZN),s=a.min,l=a.max,g=[],W=function(ar){var ir=e.mapDefined(r,function(Wr){return G(Wr)?ar<Wr.parameters.length-1?Wr.parameters[ar]:e.last(Wr.parameters):ar<Wr.parameters.length?Wr.parameters[ar]:void 0});e.Debug.assert(ir.length!==0),g.push(xC(ir,e.mapDefined(r,function(Wr){return jp(Wr,ar)})))},ce=0;ce<l;ce++)W(ce);var ke=e.mapDefined(r,function(ar){return G(ar)?e.last(ar.parameters):void 0}),rr=0;if(ke.length!==0){var $e=ic(Ot(e.mapDefined(r,lb),2));g.push(CC(ke,$e)),rr|=1}return r.some(ye)&&(rr|=2),Bl(r[0].declaration,void 0,i,g,ro(r.map(Ao)),void 0,s,rr)}function ZN(r){var n=r.parameters.length;return G(r)?n-1:n}function xC(r,n){return CC(r,Ot(n,2))}function CC(r,n){return og(e.first(r),n)}function YN(r,n,i,a){var s=r3(n,Ee===void 0?i.length:Ee),l=n[s],g=l.typeParameters;if(!g)return l;var W=_C(r)?r.typeArguments:void 0,ce=W?sh(l,$N(W,g,e.isInJSFile(r))):e3(r,g,l,i,a);return n[s]=ce,ce}function $N(r,n,i){for(var a=r.map(lg);a.length>n.length;)a.pop();for(;a.length<n.length;)a.push(pd(n[a.length])||rc(n[a.length])||C2(i));return a}function e3(r,n,i,a,s){var l=iv(n,i,e.isInJSFile(r)?2:0),g=uD(r,i,a,s|4|8,l);return sh(i,g)}function r3(r,n){for(var i=-1,a=-1,s=0;s<r.length;s++){var l=r[s],g=au(l);if(Kl(l)||g>=n)return s;g>a&&(a=g,i=s)}return i}function n3(r,n,i){if(r.expression.kind===106){var a=M2(r.expression);if(Ba(a)){for(var s=0,l=r.arguments;s<l.length;s++){var g=l[s];ya(g)}return Zo}if(!ca(a)){var W=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(W){var ce=Qp(a,W.typeArguments,W);return xm(r,ce,n,i,0)}}return qg(r)}var ke,rr=ya(r.expression);if(e.isCallChain(r)){var $e=rv(rr,r.expression);ke=$e===rr?0:e.isOutermostOptionalChain(r)?16:8,rr=$e}else ke=0;if(rr=Zx(rr,r.expression,bN),rr===hn)return Fr;var ar=re(rr);if(ca(ar))return Gl(r);var ir=_a(ar,0),Wr=_a(ar,1).length;if(d0(rr,ar,ir.length,Wr))return!ca(rr)&&r.typeArguments&&Zr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),qg(r);if(!ir.length){if(Wr)Zr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Oi(rr));else{var sn=void 0;if(r.arguments.length===1){var In=e.getSourceFileOfNode(r).text;e.isLineBreak(In.charCodeAt(e.skipTrivia(In,r.expression.end,!0)-1))&&(sn=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}pD(r.expression,ar,0,sn)}return Gl(r)}return i&8&&!r.typeArguments&&ir.some(i3)?(iT(r,i),pr):ir.some(function(Sn){return e.isInJSFile(Sn.declaration)&&!!e.getJSDocClassTag(Sn.declaration)})?(Zr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Oi(rr)),Gl(r)):xm(r,ir,n,i,ke)}function i3(r){return!!(r.typeParameters&&ZD(Ao(r)))}function d0(r,n,i,a){return Ba(r)||Ba(n)&&!!(r.flags&262144)||!i&&!a&&!(n.flags&1048576)&&!(ct(n).flags&131072)&&io(r,fi)}function t3(r,n,i){if(r.arguments&&d<1){var a=f0(r.arguments);a>=0&&Zr(r.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=Sm(r.expression);if(s===hn)return Fr;if(s=re(s),ca(s))return Gl(r);if(Ba(s))return r.typeArguments&&Zr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),qg(r);var l=_a(s,1);if(l.length){if(!a3(r,l[0]))return Gl(r);if(TC(l,function(ke){return!!(ke.flags&4)}))return Zr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Gl(r);var g=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return g&&e.hasSyntacticModifier(g,256)?(Zr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Gl(r)):xm(r,l,n,i,0)}var W=_a(s,0);if(W.length){var ce=xm(r,W,n,i,0);return Ue||(ce.declaration&&!Sl(ce.declaration)&&Ao(ce)!==Ir&&Zr(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Hd(ce)===Ir&&Zr(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),ce}return pD(r.expression,s,1),Gl(r)}function TC(r,n){return e.isArray(r)?e.some(r,function(i){return TC(i,n)}):r.compositeKind===1048576?e.some(r.compositeSignatures,n):n(r)}function dD(r,n){var i=nu(n);if(!e.length(i))return!1;var a=i[0];if(a.flags&2097152){for(var s=a.types,l=Rv(s),g=0,W=0,ce=a.types;W<ce.length;W++){var ke=ce[W];if(!l[g]&&e.getObjectFlags(ke)&(1|2)&&(ke.symbol===r||dD(r,ke)))return!0;g++}return!1}return a.symbol===r?!0:dD(r,a)}function a3(r,n){if(!n||!n.declaration)return!0;var i=n.declaration,a=e.getSelectedEffectiveModifierFlags(i,24);if(!a||i.kind!==173)return!0;var s=e.getClassLikeDeclarationOfSymbol(i.parent.symbol),l=nt(i.parent.symbol);if(!HD(r,s)){var g=e.getContainingClass(r);if(g&&a&16){var W=lg(g);if(dD(i.parent.symbol,W))return!0}return a&8&&Zr(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Oi(l)),a&16&&Zr(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Oi(l)),!1}return!0}function EC(r,n,i){var a,s=i===0,l=ug(n),g=l&&_a(l,i).length>0;if(n.flags&1048576){for(var W=n.types,ce=!1,ke=0,rr=W;ke<rr.length;ke++){var $e=rr[ke],ar=_a($e,i);if(ar.length!==0){if(ce=!0,a)break}else if(a||(a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Oi($e)),a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Oi(n))),ce)break}ce||(a=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Oi(n))),a||(a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Oi(n)))}else a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Oi(n));var ir=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Wr=At(r).resolvedSymbol;Wr&&Wr.flags&32768&&(ir=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(a,ir),relatedMessage:g?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function pD(r,n,i,a){var s=EC(r,n,i),l=s.messageChain,g=s.relatedMessage,W=e.createDiagnosticForNodeFromMessageChain(r,l);if(g&&e.addRelatedInfo(W,e.createDiagnosticForNode(r,g)),e.isCallExpression(r.parent)){var ce=bC(r.parent,!0),ke=ce.start,rr=ce.length;W.start=ke,W.length=rr}fe.add(W),kC(n,i,a?e.addRelatedInfo(W,a):W)}function kC(r,n,i){if(!!r.symbol){var a=Qt(r.symbol).originatingImport;if(a&&!e.isImportCall(a)){var s=_a(Li(Qt(r.symbol).target),n);if(!s||!s.length)return;e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics.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 o3(r,n,i){var a=ya(r.tag),s=re(a);if(ca(s))return Gl(r);var l=_a(s,0),g=_a(s,1).length;if(d0(a,s,l.length,g))return qg(r);if(!l.length){if(e.isArrayLiteralExpression(r.parent)){var W=e.createDiagnosticForNode(r.tag,e.Diagnostics.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 fe.add(W),Gl(r)}return pD(r.tag,s,0),Gl(r)}return xm(r,l,n,i,0)}function s3(r){switch(r.parent.kind){case 260:case 228:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function c3(r,n,i){var a=ya(r.expression),s=re(a);if(ca(s))return Gl(r);var l=_a(s,0),g=_a(s,1).length;if(d0(a,s,l.length,g))return qg(r);if(l3(r,l)){var W=e.getTextOfNode(r.expression,!1);return Zr(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,W),Gl(r)}var ce=s3(r);if(!l.length){var ke=EC(r.expression,s,0),rr=e.chainDiagnosticMessages(ke.messageChain,ce),$e=e.createDiagnosticForNodeFromMessageChain(r.expression,rr);return ke.relatedMessage&&e.addRelatedInfo($e,e.createDiagnosticForNode(r.expression,ke.relatedMessage)),fe.add($e),kC(s,0,$e),Gl(r)}return xm(r,l,n,i,0,ce)}function p0(r,n){var i=Vg(r),a=i&&Ac(i),s=a&&Wc(a,J.Element,788968),l=s&&Cr.symbolToEntityName(s,788968,r),g=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"props",void 0,Cr.typeToTypeNode(n,r))],l?e.factory.createTypeReferenceNode(l,void 0):e.factory.createKeywordTypeNode(131)),W=go(1,"props");return W.type=n,Bl(g,void 0,void 0,[W],s?nt(s):ue,void 0,1,0)}function u3(r,n,i){if(bm(r.tagName)){var a=Gx(r),s=p0(r,a);return R_(Hg(r.attributes,n0(s,r),void 0,0),a,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,eo),fe.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),s}var l=ya(r.tagName),g=re(l);if(ca(g))return Gl(r);var W=Vx(l,r);return d0(l,g,W.length,0)?qg(r):W.length===0?(Zr(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Gl(r)):xm(r,W,n,i,0)}function l3(r,n){return n.length&&e.every(n,function(i){return i.minArgumentCount===0&&!G(i)&&i.parameters.length<DC(r,i)})}function f3(r,n,i){switch(r.kind){case 210:return n3(r,n,i);case 211:return t3(r,n,i);case 212:return o3(r,n,i);case 167:return c3(r,n,i);case 283:case 282:return u3(r,n,i)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function Gg(r,n,i){var a=At(r),s=a.resolvedSignature;if(s&&s!==pr&&!n)return s;a.resolvedSignature=pr;var l=f3(r,n,i||0);return l!==pr&&(a.resolvedSignature=qs===ec?l:s),l}function Sl(r){var n;if(!r||!e.isInJSFile(r))return!1;var i=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:(e.isVariableDeclaration(r)||e.isPropertyAssignment(r))&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(i){if(e.getJSDocClassTag(r))return!0;if(e.isPropertyAssignment(e.walkUpParenthesizedExpressions(i.parent)))return!1;var a=zi(i);return!!((n=a==null?void 0:a.members)===null||n===void 0?void 0:n.size)}return!1}function gD(r,n){var i,a;if(n){var s=Qt(n);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(h(r))){var l=e.isTransientSymbol(r)?r:z_(r);return l.exports=l.exports||e.createSymbolTable(),l.members=l.members||e.createSymbolTable(),l.flags|=n.flags&32,((i=n.exports)===null||i===void 0?void 0:i.size)&&ou(l.exports,n.exports),((a=n.members)===null||a===void 0?void 0:a.size)&&ou(l.members,n.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(h(l),l),l}return s.inferredClassSymbol.get(h(r))}}function _3(r){var n,i=r&&g0(r,!0),a=(n=i==null?void 0:i.exports)===null||n===void 0?void 0:n.get("prototype"),s=(a==null?void 0:a.valueDeclaration)&&d3(a.valueDeclaration);return s?zi(s):void 0}function g0(r,n){if(!!r.parent){var i,a;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;i=r.parent.name,a=r.parent}else if(e.isBinaryExpression(r.parent)){var s=r.parent,l=r.parent.operatorToken.kind;if(l===63&&(n||s.right===r))i=s.left,a=i;else if((l===56||l===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(i=s.parent.name,a=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(n||s.parent.right===s)&&(i=s.parent.left,a=i),!i||!e.isBindableStaticNameExpression(i)||!e.isSameEntityName(i,s.left)))return}else n&&e.isFunctionDeclaration(r)&&(i=r.name,a=r);if(!(!a||!i||!n&&!e.getExpandoInitializer(r,e.isPrototypeAccess(i))))return zi(a)}}function d3(r){if(!r.parent)return!1;for(var n=r.parent;n&&n.kind===208;)n=n.parent;if(n&&e.isBinaryExpression(n)&&e.isPrototypeAccess(n.left)&&n.operatorToken.kind===63){var i=e.getInitializerOfBinaryExpression(n);return e.isObjectLiteralExpression(i)&&i}}function p3(r,n){var i;Wy(r,r.typeArguments);var a=Gg(r,void 0,n);if(a===pr)return hn;if(m0(a,r),r.expression.kind===106)return Ir;if(r.kind===211){var s=a.declaration;if(s&&s.kind!==173&&s.kind!==177&&s.kind!==182&&!e.isJSDocConstructSignature(s)&&!Sl(s))return Ue&&Zr(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Te}if(e.isInJSFile(r)&&wC(r))return cb(r.arguments[0]);var l=Ao(a);if(l.flags&12288&&AC(r))return B1(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===210&&!r.questionDotToken&&r.parent.kind===241&&l.flags&16384&&qu(a)){if(!e.isDottedName(r.expression))Zr(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!Kh(r)){var g=Zr(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);_y(r.expression,g)}}if(e.isInJSFile(r)){var W=g0(r,!1);if((i=W==null?void 0:W.exports)===null||i===void 0?void 0:i.size){var ce=Yo(W,W.exports,e.emptyArray,e.emptyArray,e.emptyArray);return ce.objectFlags|=4096,ro([l,ce])}}return l}function m0(r,n){if(r.declaration&&r.declaration.flags&268435456){var i=Cy(n),a=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(n));Ad(i,r.declaration,a,ru(r))}}function Cy(r){switch(r=e.skipParentheses(r),r.kind){case 210:case 167:case 211:return Cy(r.expression);case 212:return Cy(r.tag);case 283:case 282:return Cy(r.tagName);case 209:return r.argumentExpression;case 208:return r.name;case 180:var n=r;return e.isQualifiedName(n.typeName)?n.typeName.right:n;default:return r}}function AC(r){if(!e.isCallExpression(r))return!1;var n=r.expression;if(e.isPropertyAccessExpression(n)&&n.name.escapedText==="for"&&(n=n.expression),!e.isIdentifier(n)||n.escapedText!=="Symbol")return!1;var i=Ab(!1);return i?i===is(n,"Symbol",111551,void 0,void 0,!1):!1}function g3(r){if(p7(r),r.arguments.length===0)return ky(r,Te);for(var n=r.arguments[0],i=Ds(n),a=r.arguments.length>1?Ds(r.arguments[1]):void 0,s=2;s<r.arguments.length;++s)Ds(r.arguments[s]);if((i.flags&32768||i.flags&65536||!io(i,yn))&&Zr(n,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Oi(i)),a){var l=kb(!0);l!==Zi&&Fc(a,Lh(l,32768),r.arguments[1])}var g=Ms(r,n);if(g){var W=eu(g,n,!0,!1);if(W)return ky(r,PC(Li(W),W,g,n)||IC(Li(W),W,g,n))}return ky(r,Te)}function NC(r,n,i){var a=e.createSymbolTable(),s=go(2097152,"default");return s.parent=n,s.nameType=Ou("default"),s.aliasTarget=ss(r),a.set("default",s),Yo(i,a,e.emptyArray,e.emptyArray,e.emptyArray)}function PC(r,n,i,a){var s=af(a);if(s&&r&&!ca(r)){var l=r;if(!l.defaultOnlyType){var g=NC(n,i);l.defaultOnlyType=g}return l.defaultOnlyType}}function IC(r,n,i,a){var s;if(Se&&r&&!ca(r)){var l=r;if(!l.syntheticType){var g=(s=i.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),W=Tc(g,i,!1,a);if(W){var ce=go(2048,"__type"),ke=NC(n,i,ce);ce.type=ke,l.syntheticType=vy(r)?Xd(r,ke,ce,0,!1):ke}else l.syntheticType=r}return l.syntheticType}return r}function wC(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var n=is(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(n===or)return!0;if(n.flags&2097152)return!1;var i=n.flags&16?259:n.flags&3?257:0;if(i!==0){var a=e.getDeclarationOfKind(n,i);return!!a&&!!(a.flags&16777216)}return!1}function m3(r){J5(r)||Wy(r,r.typeArguments),d<2&&_c(r,262144);var n=Gg(r);return m0(n,r),Ao(n)}function v3(r){if(r.kind===213){var n=e.getSourceFileOfNode(r);n&&e.fileExtensionIsOneOf(n.fileName,[".cts",".mts"])&&mi(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return FC(r,r.type,r.expression)}function OC(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return OC(r.expression);case 221:var n=r.operator,i=r.operand;return n===40&&(i.kind===8||i.kind===9)||n===39&&i.kind===8;case 208:case 209:var a=r.expression,s=lg(a).symbol;return s&&s.flags&2097152&&(s=wi(s)),!!(s&&Kt(s)&384&&t_(s)===1)}return!1}function FC(r,n,i,a){var s=ya(i,a);if(e.isConstTypeReference(n))return OC(i)||Zr(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Jc(s);eo(n),s=nv(ql(s));var l=zt(n);return ca(l)||Z(function(){var g=tu(s);Zm(l,g)||xS(s,l,r,e.Diagnostics.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)}),l}function y3(r){var n=ya(r.expression),i=rv(n,r.expression);return Rh(l_(i),r,i!==n)}function h3(r){return r.flags&32?y3(r):l_(ya(r.expression))}function MC(r){bE(r);var n=r.kind===230?ya(r.expression):e.isThisIdentifier(r.exprName)?gy(r.exprName):ya(r.exprName),i=r.typeArguments;if(n===hn||ca(n)||!e.some(i))return n;var a=!1,s,l=W(n),g=a?s:n;return g&&fe.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Oi(g))),l;function W(ke){var rr=!1,$e=!1,ar=ir(ke);return a||(a=$e),rr&&!$e&&(s!=null||(s=ke)),ar;function ir(Wr){if(Wr.flags&524288){var sn=Iu(Wr),In=ce(sn.callSignatures),Sn=ce(sn.constructSignatures);if(rr||(rr=sn.callSignatures.length!==0||sn.constructSignatures.length!==0),$e||($e=In.length!==0||Sn.length!==0),In!==sn.callSignatures||Sn!==sn.constructSignatures){var Kn=Yo(void 0,sn.members,In,Sn,sn.indexInfos);return Kn.objectFlags|=8388608,Kn.node=r,Kn}}else if(Wr.flags&58982400){var ei=uc(Wr);if(ei){var Ti=ir(ei);if(Ti!==ei)return Ti}}else{if(Wr.flags&1048576)return Qo(Wr,W);if(Wr.flags&2097152)return ro(e.sameMap(Wr.types,ir))}return Wr}}function ce(ke){var rr=e.filter(ke,function($e){return!!$e.typeParameters&&cD($e,i)});return e.sameMap(rr,function($e){var ar=fD($e,i,!0);return ar?zm($e,ar,e.isInJSFile($e.declaration)):$e})}}function D3(r){eo(r.type);var n=ya(r.expression),i=zt(r.type);return ca(i)?i:(R_(n,i,r.type,r.expression,e.Diagnostics.Type_0_does_not_satisfy_the_expected_type_1),n)}function b3(r){return r7(r),r.keywordToken===103?mD(r):r.keywordToken===100?S3(r):e.Debug.assertNever(r.keywordToken)}function LC(r){switch(r.keywordToken){case 100:return Eb();case 103:var n=mD(r);return ca(n)?ue:A3(n);default:e.Debug.assertNever(r.keywordToken)}}function mD(r){var n=e.getNewTargetContainer(r);if(n)if(n.kind===173){var i=zi(n.parent);return Li(i)}else{var i=zi(n);return Li(i)}else return Zr(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ue}function S3(r){j===e.ModuleKind.Node16||j===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&Zr(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):j<e.ModuleKind.ES2020&&j!==e.ModuleKind.System&&Zr(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);var n=e.getSourceFileOfNode(r);return e.Debug.assert(!!(n.flags&4194304),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?Tb():ue}function lv(r){var n=Li(r);if(Re){var i=r.valueDeclaration;if(i&&e.hasInitializer(i))return u_(n)}return n}function v0(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function Cm(r,n,i){var a=r.parameters.length-(G(r)?1:0);if(n<a)return r.parameters[n].escapedName;var s=r.parameters[a]||jr,l=i||Li(s);if(Xa(l)){var g=l.target.labeledElementDeclarations,W=n-a;return g&&v0(g[W])||s.escapedName+"_"+W}return s.escapedName}function x3(r,n){var i;if(((i=r.declaration)===null||i===void 0?void 0:i.kind)!==320){var a=r.parameters.length-(G(r)?1:0);if(n<a){var s=r.parameters[n];return RC(s)?[s.escapedName,!1]:void 0}var l=r.parameters[a]||jr;if(!!RC(l)){var g=Li(l);if(Xa(g)){var W=g.target.labeledElementDeclarations,ce=n-a,ke=W==null?void 0:W[ce],rr=!!(ke==null?void 0:ke.dotDotDotToken);return ke?[v0(ke),rr]:void 0}if(n===a)return[l.escapedName,!0]}}}function RC(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function BC(r){return r.kind===199||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function C3(r,n){var i=r.parameters.length-(G(r)?1:0);if(n<i){var a=r.parameters[n].valueDeclaration;return a&&BC(a)?a:void 0}var s=r.parameters[i]||jr,l=Li(s);if(Xa(l)){var g=l.target.labeledElementDeclarations,W=n-i;return g&&g[W]}return s.valueDeclaration&&BC(s.valueDeclaration)?s.valueDeclaration:void 0}function fl(r,n){return jp(r,n)||Te}function jp(r,n){var i=r.parameters.length-(G(r)?1:0);if(n<i)return lv(r.parameters[n]);if(G(r)){var a=Li(r.parameters[i]),s=n-i;if(!Xa(a)||a.target.hasRestElement||s<a.target.fixedLength)return Zc(a,Vl(s))}}function fv(r,n){var i=au(r),a=Hl(r),s=_v(r);if(s&&n>=i-1)return n===i-1?s:ic(Zc(s,Hn));for(var l=[],g=[],W=[],ce=n;ce<i;ce++){!s||ce<i-1?(l.push(fl(r,ce)),g.push(ce<a?1:2)):(l.push(s),g.push(8));var ke=C3(r,ce);ke&&W.push(ke)}return zl(l,g,!1,e.length(W)===e.length(l)?W:void 0)}function au(r){var n=r.parameters.length;if(G(r)){var i=Li(r.parameters[n-1]);if(Xa(i))return n+i.target.fixedLength-(i.target.hasRestElement?0:1)}return n}function Hl(r,n){var i=n&1,a=n&2;if(a||r.resolvedMinArgumentCount===void 0){var s=void 0;if(G(r)){var l=Li(r.parameters[r.parameters.length-1]);if(Xa(l)){var g=e.findIndex(l.target.elementFlags,function(rr){return!(rr&1)}),W=g<0?l.target.fixedLength:g;W>0&&(s=r.parameters.length-1+W)}}if(s===void 0){if(!i&&r.flags&32)return 0;s=r.minArgumentCount}if(a)return s;for(var ce=s-1;ce>=0;ce--){var ke=fl(r,ce);if(Qs(ke,dC).flags&131072)break;s=ce}r.resolvedMinArgumentCount=s}return r.resolvedMinArgumentCount}function Kl(r){if(G(r)){var n=Li(r.parameters[r.parameters.length-1]);return!Xa(n)||n.target.hasRestElement}return!1}function _v(r){if(G(r)){var n=Li(r.parameters[r.parameters.length-1]);if(!Xa(n))return n;if(n.target.hasRestElement)return Gm(n,n.target.fixedLength)}}function dv(r){var n=_v(r);return n&&!Fu(n)&&!Ba(n)&&(ct(n).flags&131072)==0?n:void 0}function vD(r){return yD(r,we)}function yD(r,n){return r.parameters.length>0?fl(r,0):n}function T3(r,n,i){for(var a=r.parameters.length-(G(r)?1:0),s=0;s<a;s++){var l=r.parameters[s].valueDeclaration;if(l.type){var g=e.getEffectiveTypeAnnotationNode(l);g&&Bf(i.inferences,zt(g),fl(n,s))}}}function E3(r,n){if(n.typeParameters)if(!r.typeParameters)r.typeParameters=n.typeParameters;else return;if(n.thisParameter){var i=r.thisParameter;(!i||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(r.thisParameter=og(n.thisParameter,void 0)),Ty(r.thisParameter,Li(n.thisParameter)))}for(var a=r.parameters.length-(G(r)?1:0),s=0;s<a;s++){var i=r.parameters[s];if(!e.getEffectiveTypeAnnotationNode(i.valueDeclaration)){var l=jp(n,s);Ty(i,l)}}if(G(r)){var i=e.last(r.parameters);if(i.valueDeclaration?!e.getEffectiveTypeAnnotationNode(i.valueDeclaration):!!(e.getCheckFlags(i)&65536)){var l=fv(n,a);Ty(i,l)}}}function k3(r){r.thisParameter&&Ty(r.thisParameter);for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n];Ty(a)}}function Ty(r,n){var i=Qt(r);if(i.type)n&&e.Debug.assertEqual(i.type,n,"Parameter symbol already has a cached type which differs from newly assigned type");else{var a=r.valueDeclaration;i.type=n||(a?Lt(a,!0):Li(r)),a&&a.name.kind!==79&&(i.type===_r&&(i.type=bt(a.name)),JC(a.name,i.type))}}function JC(r,n){for(var i=0,a=r.elements;i<a.length;i++){var s=a[i];if(!e.isOmittedExpression(s)){var l=Gp(s,n);s.name.kind===79?Qt(zi(s)).type=l:JC(s.name,l)}}}function Ey(r){var n=Qv(!0);return n!==Ea?(r=__(km(r))||_r,F_(n,[r])):_r}function jC(r){var n=Pb(!0);return n!==Ea?(r=__(km(r))||_r,F_(n,[r])):_r}function ky(r,n){var i=Ey(n);return i===_r?(Zr(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ue):(y1(!0)||Zr(r,e.isImportCall(r)?e.Diagnostics.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:e.Diagnostics.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),i)}function A3(r){var n=go(0,"NewTargetExpression"),i=go(4,"target",8);i.parent=n,i.type=r;var a=e.createSymbolTable([i]);return n.members=a,Yo(n,a,e.emptyArray,e.emptyArray,e.emptyArray)}function y0(r,n){if(!r.body)return ue;var i=e.getFunctionFlags(r),a=(i&2)!=0,s=(i&1)!=0,l,g,W,ce=Ir;if(r.body.kind!==238)l=Ds(r.body,n&&n&~8),a&&(l=km(hv(l,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(s){var ke=GC(r,n);ke?ke.length>0&&(l=Ot(ke,2)):ce=we;var rr=N3(r,n),$e=rr.yieldTypes,ar=rr.nextTypes;g=e.some($e)?Ot($e,2):void 0,W=e.some(ar)?ro(ar):void 0}else{var ir=GC(r,n);if(!ir)return i&2?ky(r,we):we;if(ir.length===0)return i&2?ky(r,Ir):Ir;l=Ot(ir,2)}if(l||g||W){if(g&&Uh(r,g,3),l&&Uh(r,l,1),W&&Uh(r,W,2),l&&ll(l)||g&&ll(g)||W&&ll(W)){var Wr=W2(r),sn=Wr?Wr===Vu(r)?s?void 0:l:e0(Ao(Wr),r,void 0):void 0;s?(g=o2(g,sn,0,a),l=o2(l,sn,1,a),W=o2(W,sn,2,a)):l=nA(l,sn,a)}g&&(g=tu(g)),l&&(l=tu(l)),W&&(W=tu(W))}return s?UC(g||we,l||ce,W||wx(2,r)||_r,a):a?Ey(l||ce):l||ce}function UC(r,n,i,a){var s=a?Nn:wn,l=s.getGlobalGeneratorType(!1);if(r=s.resolveIterationType(r,void 0)||_r,n=s.resolveIterationType(n,void 0)||_r,i=s.resolveIterationType(i,void 0)||_r,l===Ea){var g=s.getGlobalIterableIteratorType(!1),W=g!==Ea?OT(g,s):void 0,ce=W?W.returnType:Te,ke=W?W.nextType:zr;return io(n,ce)&&io(ke,i)?g!==Ea?qm(g,[r]):(s.getGlobalIterableIteratorType(!0),Zi):(s.getGlobalGeneratorType(!0),Zi)}return qm(l,[r,n,i])}function N3(r,n){var i=[],a=[],s=(e.getFunctionFlags(r)&2)!=0;return e.forEachYieldExpression(r.body,function(l){var g=l.expression?ya(l.expression,n):fn;e.pushIfUnique(i,zC(l,g,Te,s));var W;if(l.asteriskToken){var ce=A0(g,s?19:17,l.expression);W=ce&&ce.nextType}else W=Yc(l,void 0);W&&e.pushIfUnique(a,W)}),{yieldTypes:i,nextTypes:a}}function zC(r,n,i,a){var s=r.expression||r,l=r.asteriskToken?J_(a?19:17,n,i,s):n;return a?ug(l,s,r.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):l}function WC(r,n,i){for(var a=0,s=0;s<i.length;s++){var l=s<r||s>=n?i[s]:void 0;a|=l!==void 0?le.get(l)||32768:0}return a}function VC(r){var n=At(r);if(n.isExhaustive===void 0){n.isExhaustive=0;var i=P3(r);n.isExhaustive===0&&(n.isExhaustive=i)}else n.isExhaustive===0&&(n.isExhaustive=!1);return n.isExhaustive}function P3(r){if(r.expression.kind===218){var n=px(r);if(!n)return!1;var i=O_(Ds(r.expression.expression)),a=WC(0,0,n);return i.flags&3?(556800&a)==556800:!Jf(i,function(g){return(fc(g)&a)===a})}var s=Ds(r.expression);if(!Bg(s))return!1;var l=qh(r);return!l.length||e.some(l,$6)?!1:QA(Qo(s,Jc),l)}function qC(r){return r.endFlowNode&&dy(r.endFlowNode)}function GC(r,n){var i=e.getFunctionFlags(r),a=[],s=qC(r),l=!1;if(e.forEachReturnStatement(r.body,function(g){var W=g.expression;if(W){var ce=Ds(W,n&&n&~8);i&2&&(ce=km(hv(ce,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),ce.flags&131072&&(l=!0),e.pushIfUnique(a,ce)}else s=!0}),!(a.length===0&&!s&&(l||I3(r))))return Re&&a.length&&s&&!(Sl(r)&&a.some(function(g){return g.symbol===r.symbol}))&&e.pushIfUnique(a,zr),a}function I3(r){switch(r.kind){case 215:case 216:return!0;case 171:return r.parent.kind===207;default:return!1}}function hD(r,n){Z(i);return;function i(){var a=e.getFunctionFlags(r),s=n&&N0(n,a);if(!(s&&rs(s,1|16384))&&!(r.kind===170||e.nodeIsMissing(r.body)||r.body.kind!==238||!qC(r))){var l=r.flags&512,g=e.getEffectiveReturnTypeNode(r)||r;if(s&&s.flags&131072)Zr(g,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(s&&!l)Zr(g,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(s&&Re&&!io(zr,s))Zr(g,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Y.noImplicitReturns){if(!s){if(!l)return;var W=Ao(Vu(r));if(jT(r,W))return}Zr(g,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function HC(r,n){if(e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r)),Im(r),e.isFunctionExpression(r)&&Nm(r,r.name),n&&n&4&&Gu(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var i=cv(r);if(i&&Mp(Ao(i))){var a=At(r);if(a.contextFreeType)return a.contextFreeType;var s=y0(r,n),l=Bl(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),g=Yo(r.symbol,Oe,[l],e.emptyArray,e.emptyArray);return g.objectFlags|=262144,a.contextFreeType=g}}return ho}var W=J0(r);return!W&&r.kind===215&&rb(r),w3(r,n),Li(zi(r))}function w3(r,n){var i=At(r);if(!(i.flags&1024)){var a=cv(r);if(!(i.flags&1024)){i.flags|=1024;var s=e.firstOrUndefined(_a(Li(zi(r)),0));if(!s)return;if(Gu(r))if(a){var l=Wg(r),g=void 0;if(n&&n&2){T3(s,a,l);var W=_v(a);W&&W.flags&262144&&(g=Lg(a,l.nonFixingMapper))}g||(g=l?Lg(a,l.mapper):a),E3(s,g)}else k3(s);if(a&&!Pg(r)&&!s.resolvedReturnType){var ce=y0(r,n);s.resolvedReturnType||(s.resolvedReturnType=ce)}gv(r)}}}function O3(r){e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r));var n=e.getFunctionFlags(r),i=Pg(r);if(hD(r,i),r.body)if(e.getEffectiveReturnTypeNode(r)||Ao(Vu(r)),r.body.kind===238)eo(r.body);else{var a=ya(r.body),s=i&&N0(i,n);if(s)if((n&3)==2){var l=hv(a,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);R_(l,s,r.body,r.body)}else R_(a,s,r.body,r.body)}}function h0(r,n,i,a){if(a===void 0&&(a=!1),!io(n,Xn)){var s=a&&vv(n);return $l(r,!!s&&io(s,Xn),i),!1}return!0}function F3(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var n=Ds(r.arguments[2]),i=Na(n,"value");if(i){var a=Zt(n,"writable"),s=a&&Li(a);if(!s||s===ti||s===Hi)return!0;if(a&&a.valueDeclaration&&e.isPropertyAssignment(a.valueDeclaration)){var l=a.valueDeclaration.initializer,g=ya(l);if(g===ti||g===Hi)return!0}return!1}var W=Zt(n,"set");return!W}function _l(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&a0(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,F3))}function KC(r,n,i){var a,s;if(i===0)return!1;if(_l(n)){if(n.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var l=e.getContainingFunction(r);if(!(l&&(l.kind===173||Sl(l))))return!0;if(n.valueDeclaration){var g=e.isBinaryExpression(n.valueDeclaration),W=l.parent===n.valueDeclaration.parent,ce=l===n.valueDeclaration.parent,ke=g&&((a=n.parent)===null||a===void 0?void 0:a.valueDeclaration)===l.parent,rr=g&&((s=n.parent)===null||s===void 0?void 0:s.valueDeclaration)===l,$e=W||ce||ke||rr;return!$e}}return!0}if(e.isAccessExpression(r)){var ar=e.skipParentheses(r.expression);if(ar.kind===79){var ir=At(ar).resolvedSymbol;if(ir.flags&2097152){var Wr=Mu(ir);return!!Wr&&Wr.kind===271}}}return!1}function pv(r,n,i){var a=e.skipOuterExpressions(r,6|1);return a.kind!==79&&!e.isAccessExpression(a)?(Zr(r,n),!1):a.flags&32?(Zr(r,i),!1):!0}function M3(r){ya(r.expression);var n=e.skipParentheses(r.expression);if(!e.isAccessExpression(n))return Zr(n,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Pn;e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name)&&Zr(n,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var i=At(n),a=il(i.resolvedSymbol);return a&&(_l(a)&&Zr(n,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),L3(n,a)),Pn}function L3(r,n){var i=Li(n);Re&&!(i.flags&(3|131072))&&!(vr?n.flags&16777216:fc(i)&16777216)&&Zr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function R3(r){return ya(r.expression),Tr}function B3(r){return ya(r.expression),fn}function J3(r){var n=e.getContainingFunctionOrClassStaticBlock(r);if(n&&e.isClassStaticBlockDeclaration(n))Zr(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var i=e.getSourceFileOfNode(r);if(!zp(i)){var a=void 0;if(!e.isEffectiveExternalModule(i,Y)){a!=null||(a=e.getSpanOfTokenAtPosition(i,r.pos));var s=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.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);fe.add(s)}switch(j){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(i.impliedNodeFormat===e.ModuleKind.CommonJS){a!=null||(a=e.getSpanOfTokenAtPosition(i,r.pos)),fe.add(e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(d>=4)break;default:a!=null||(a=e.getSpanOfTokenAtPosition(i,r.pos)),fe.add(e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{var i=e.getSourceFileOfNode(r);if(!zp(i)){var a=e.getSpanOfTokenAtPosition(i,r.pos),s=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(n&&n.kind!==173&&(e.getFunctionFlags(n)&2)==0){var l=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,l)}fe.add(s)}}R2(r)&&Zr(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}function j3(r){Z(function(){return J3(r)});var n=ya(r.expression),i=hv(n,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return i===n&&!ca(i)&&!(n.flags&3)&&Yl(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),i}function U3(r){var n=ya(r.operand);if(n===hn)return hn;switch(r.operand.kind){case 8:switch(r.operator){case 40:return Mg(Vl(-r.operand.text));case 39:return Mg(Vl(+r.operand.text))}break;case 9:if(r.operator===40)return Mg(Dh({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return bl(n,r.operand),Ay(n,12288)&&Zr(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(Ay(n,2112)&&Zr(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),Oi(ql(n))),Hn):DD(n);case 53:Qg(r.operand);var i=fc(n)&(4194304|8388608);return i===4194304?ti:i===8388608?Ni:Pn;case 45:case 46:var a=h0(r.operand,bl(n,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return a&&pv(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),DD(n)}return ue}function z3(r){var n=ya(r.operand);if(n===hn)return hn;var i=h0(r.operand,bl(n,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return i&&pv(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),DD(n)}function DD(r){return rs(r,2112)?Bs(r,3)||rs(r,296)?Xn:Ai:Hn}function Ay(r,n){if(rs(r,n))return!0;var i=O_(r);return!!i&&rs(i,n)}function rs(r,n){if(r.flags&n)return!0;if(r.flags&3145728)for(var i=r.types,a=0,s=i;a<s.length;a++){var l=s[a];if(rs(l,n))return!0}return!1}function Bs(r,n,i){return r.flags&n?!0:i&&r.flags&(3|16384|32768|65536)?!1:!!(n&296)&&io(r,Hn)||!!(n&2112)&&io(r,Ai)||!!(n&402653316)&&io(r,yn)||!!(n&528)&&io(r,Pn)||!!(n&16384)&&io(r,Ir)||!!(n&131072)&&io(r,we)||!!(n&65536)&&io(r,bn)||!!(n&32768)&&io(r,zr)||!!(n&4096)&&io(r,Pe)||!!(n&67108864)&&io(r,nn)}function Ny(r,n,i){return r.flags&1048576?e.every(r.types,function(a){return Ny(a,n,i)}):Bs(r,n,i)}function bD(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&SD(r.symbol)}function SD(r){return(r.flags&128)!=0}function W3(r,n,i,a){return i===hn||a===hn?hn:(!Ba(i)&&Ny(i,131068)&&Zr(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ba(a)||QD(a)||Cd(a,fi)||Zr(n,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Pn)}function V3(r){return Jf(r,function(n){return n===za||!!(n.flags&2097152)&&e.some(n.types,$d)})}function q3(r,n,i,a){if(i===hn||a===hn)return hn;if(e.isPrivateIdentifier(r)){if(d<99&&_c(r,2097152),!At(r).resolvedSymbol&&e.getContainingClass(r)){var s=nD(r,a.symbol,!0);aC(r,a,s)}}else Fc(bl(i,r),Dn,r);return Fc(bl(a,n),nn,n)&&V3(a)&&Zr(n,e.Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Oi(a)),Pn}function G3(r,n,i){var a=r.properties;if(Re&&a.length===0)return bl(n,r);for(var s=0;s<a.length;s++)QC(r,n,s,a,i);return n}function QC(r,n,i,a,s){s===void 0&&(s=!1);var l=r.properties,g=l[i];if(g.kind===299||g.kind===300){var W=g.name,ce=L_(W);if(hu(ce)){var ke=Du(ce),rr=Zt(n,ke);rr&&(by(rr,g,s),Y2(g,!1,!0,n,rr))}var $e=Zc(n,ce,32,W),ar=P_(g,$e);return Up(g.kind===300?g:g.initializer,ar)}else if(g.kind===301)if(i<l.length-1)Zr(g,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{d<99&&_c(g,4);var ir=[];if(a)for(var Wr=0,sn=a;Wr<sn.length;Wr++){var In=sn[Wr];e.isSpreadAssignment(In)||ir.push(In.name)}var ar=mu(n,ir,n.symbol);return fg(a,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Up(g.expression,ar)}else Zr(g,e.Diagnostics.Property_assignment_expected)}function H3(r,n,i){var a=r.elements;d<2&&Y.downlevelIteration&&_c(r,512);for(var s=J_(65|128,n,zr,r)||ue,l=Y.noUncheckedIndexedAccess?void 0:s,g=0;g<a.length;g++){var W=s;r.elements[g].kind===227&&(W=l=l!=null?l:J_(65,n,zr,r)||ue),XC(r,n,g,W,i)}return n}function XC(r,n,i,a,s){var l=r.elements,g=l[i];if(g.kind!==229){if(g.kind!==227){var W=Vl(i);if(Td(n)){var ce=32|(Dm(g)?16:0),ke=yd(n,W,ce,op(g,W))||ue,rr=Dm(g)?bu(ke,524288):ke,$e=P_(g,rr);return Up(g,$e,s)}return Up(g,a,s)}if(i<l.length-1)Zr(g,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var ar=g.expression;if(ar.kind===223&&ar.operatorToken.kind===63)Zr(ar.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{fg(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var $e=mf(n,Xa)?Qo(n,function(Wr){return Gm(Wr,i)}):ic(a);return Up(ar,$e,s)}}}}function Up(r,n,i,a){var s;if(r.kind===300){var l=r;l.objectAssignmentInitializer&&(Re&&!(fc(ya(l.objectAssignmentInitializer))&16777216)&&(n=bu(n,524288)),Z3(l.name,l.equalsToken,l.objectAssignmentInitializer,i)),s=r.name}else s=r;return s.kind===223&&s.operatorToken.kind===63&&(kr(s,i),s=s.left,Re&&(n=bu(n,524288))),s.kind===207?G3(s,n,a):s.kind===206?H3(s,n,i):K3(s,n,i)}function K3(r,n,i){var a=ya(r,i),s=r.parent.kind===301?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,l=r.parent.kind===301?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return pv(r,s,l)&&R_(n,a,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&_c(r.parent,1048576),n}function Py(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return Py(r.whenTrue)&&Py(r.whenFalse);case 223:return e.isAssignmentOperator(r.operatorToken.kind)?!1:Py(r.left)&&Py(r.right);case 221:case 222:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function xD(r,n){return(n.flags&98304)!=0||Zm(r,n)}function Q3(){var r=e.createBinaryExpressionTrampoline(n,i,a,s,l,g);return function(ar,ir){var Wr=r(ar,ir);return e.Debug.assertIsDefined(Wr),Wr};function n(ar,ir,Wr){if(ir?(ir.stackIndex++,ir.skip=!1,ke(ir,void 0),$e(ir,void 0)):ir={checkMode:Wr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(ar)&&e.getAssignedExpandoInitializer(ar))return ir.skip=!0,$e(ir,ya(ar.right,Wr)),ir;X3(ar);var sn=ar.operatorToken.kind;return sn===63&&(ar.left.kind===207||ar.left.kind===206)&&(ir.skip=!0,$e(ir,Up(ar.left,ya(ar.right,Wr),Wr,ar.right.kind===108))),ir}function i(ar,ir,Wr){if(!ir.skip)return W(ir,ar)}function a(ar,ir,Wr){if(!ir.skip){var sn=rr(ir);e.Debug.assertIsDefined(sn),ke(ir,sn),$e(ir,void 0);var In=ar.kind;if(In===55||In===56||In===60){if(In===55){for(var Sn=Wr.parent;Sn.kind===214||e.isBinaryExpression(Sn)&&(Sn.operatorToken.kind===55||Sn.operatorToken.kind===56);)Sn=Sn.parent;MD(Wr.left,sn,e.isIfStatement(Sn)?Sn.thenStatement:void 0)}AT(sn,Wr.left)}}}function s(ar,ir,Wr){if(!ir.skip)return W(ir,ar)}function l(ar,ir){var Wr;if(ir.skip)Wr=rr(ir);else{var sn=ce(ir);e.Debug.assertIsDefined(sn);var In=rr(ir);e.Debug.assertIsDefined(In),Wr=ZC(ar.left,ar.operatorToken,ar.right,sn,In,ar)}return ir.skip=!1,ke(ir,void 0),$e(ir,void 0),ir.stackIndex--,Wr}function g(ar,ir,Wr){return $e(ar,ir),ar}function W(ar,ir){if(e.isBinaryExpression(ir))return ir;$e(ar,ya(ir,ar.checkMode))}function ce(ar){return ar.typeStack[ar.stackIndex]}function ke(ar,ir){ar.typeStack[ar.stackIndex]=ir}function rr(ar){return ar.typeStack[ar.stackIndex+1]}function $e(ar,ir){ar.typeStack[ar.stackIndex+1]=ir}}function X3(r){var n=r.left,i=r.operatorToken,a=r.right;i.kind===60&&(e.isBinaryExpression(n)&&(n.operatorToken.kind===56||n.operatorToken.kind===55)&&mi(n,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(n.operatorToken.kind),e.tokenToString(i.kind)),e.isBinaryExpression(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&mi(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(i.kind)))}function Z3(r,n,i,a,s){var l=n.kind;if(l===63&&(r.kind===207||r.kind===206))return Up(r,ya(i,a),a,i.kind===108);var g;l===55||l===56||l===60?g=Qg(r,a):g=ya(r,a);var W=ya(i,a);return ZC(r,n,i,g,W,s)}function ZC(r,n,i,a,s,l){var g=n.kind;switch(g){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(a===hn||s===hn)return hn;a=bl(a,r),s=bl(s,i);var W=void 0;if(a.flags&528&&s.flags&528&&(W=ba(n.kind))!==void 0)return Zr(l||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(W)),Hn;var ce=h0(r,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),ke=h0(i,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),rr;if(Bs(a,3)&&Bs(s,3)||!(rs(a,2112)||rs(s,2112)))rr=Hn;else if(pt(a,s)){switch(g){case 49:case 72:xo();break;case 42:case 67:d<3&&Zr(l,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}rr=Ai}else xo(pt),rr=ue;return ce&&ke&&Ta(rr),rr;case 39:case 64:if(a===hn||s===hn)return hn;!Bs(a,402653316)&&!Bs(s,402653316)&&(a=bl(a,r),s=bl(s,i));var $e=void 0;if(Bs(a,296,!0)&&Bs(s,296,!0)?$e=Hn:Bs(a,2112,!0)&&Bs(s,2112,!0)?$e=Ai:Bs(a,402653316,!0)||Bs(s,402653316,!0)?$e=yn:(Ba(a)||Ba(s))&&($e=ca(a)||ca(s)?ue:Te),$e&&!St(g))return $e;if(!$e){var ar=296|2112|402653316|3;return xo(function(Rn,ut){return Bs(Rn,ar)&&Bs(ut,ar)}),Te}return g===64&&Ta($e),$e;case 29:case 31:case 32:case 33:return St(g)&&(a=ql(bl(a,r)),s=ql(bl(s,i)),So(function(Rn,ut){return Zm(Rn,ut)||Zm(ut,Rn)||io(Rn,Xn)&&io(ut,Xn)})),Pn;case 34:case 35:case 36:case 37:if(e.isLiteralExpressionOfObject(r)||e.isLiteralExpressionOfObject(i)){var ir=g===34||g===36;Zr(l,e.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,ir?"false":"true")}return sa(l,g,r,i),So(function(Rn,ut){return xD(Rn,ut)||xD(ut,Rn)}),Pn;case 102:return W3(r,i,a,s);case 101:return q3(r,i,a,s);case 55:case 76:{var Wr=fc(a)&4194304?Ot([aA(Re?a:ql(s)),s]):a;return g===76&&Ta(s),Wr}case 56:case 75:{var sn=fc(a)&8388608?Ot([l_(JS(a)),s],2):a;return g===75&&Ta(s),sn}case 60:case 77:{var In=fc(a)&262144?Ot([l_(a),s],2):a;return g===77&&Ta(s),In}case 63:var Sn=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return rt(Sn,s),wa(Sn)?((!(s.flags&524288)||Sn!==2&&Sn!==6&&!Rf(s)&&!k2(s)&&!(e.getObjectFlags(s)&1))&&Ta(s),a):(Ta(s),nv(s));case 27:if(!Y.allowUnreachableCode&&Py(r)&&!Da(i)){var Kn=e.getSourceFileOfNode(r),ei=Kn.text,Ti=e.skipTrivia(ei,r.pos),Ri=Kn.parseDiagnostics.some(function(Rn){return Rn.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Rn,Ti)});Ri||Zr(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function pt(Rn,ut){return Bs(Rn,2112)&&Bs(ut,2112)}function rt(Rn,ut){if(Rn===2)for(var Pt=0,ea=Mf(ut);Pt<ea.length;Pt++){var Yi=ea[Pt],ka=Li(Yi);if(ka.symbol&&ka.symbol.flags&32){var aa=Yi.escapedName,Ma=is(Yi.valueDeclaration,aa,788968,void 0,aa,!1);(Ma==null?void 0:Ma.declarations)&&Ma.declarations.some(e.isJSDocTypedefTag)&&(W_(Ma,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(aa),Yi),W_(Yi,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(aa),Ma))}}}function Da(Rn){return Rn.kind===79&&Rn.escapedText==="eval"}function St(Rn){var ut=Ay(a,12288)?r:Ay(s,12288)?i:void 0;return ut?(Zr(ut,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Rn)),!1):!0}function ba(Rn){switch(Rn){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Ta(Rn){e.isAssignmentOperator(g)&&Z(ut);function ut(){if(pv(r,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var Pt=void 0;if(vr&&e.isPropertyAccessExpression(r)&&rs(Rn,32768)){var ea=Na(Xs(r.expression),r.name.escapedText);Z1(Rn,ea)&&(Pt=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}R_(Rn,a,r,i,Pt)}}}function wa(Rn){var ut;switch(Rn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Pt=zi(r),ea=e.getAssignedExpandoInitializer(i);return!!ea&&e.isObjectLiteralExpression(ea)&&!!((ut=Pt==null?void 0:Pt.exports)===null||ut===void 0?void 0:ut.size);default:return!1}}function So(Rn){return Rn(a,s)?!1:(xo(Rn),!0)}function xo(Rn){var ut,Pt=!1,ea=l||n;if(Rn){var Yi=__(a),ka=__(s);Pt=!(Yi===a&&ka===s)&&!!(Yi&&ka)&&Rn(Yi,ka)}var aa=a,Ma=s;!Pt&&Rn&&(ut=Y3(a,s,Rn),aa=ut[0],Ma=ut[1]);var La=Ml(aa,Ma),an=La[0],br=La[1];uo(ea,Pt,an,br)||$l(ea,Pt,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),an,br)}function uo(Rn,ut,Pt,ea){switch(n.kind){case 36:case 34:case 37:case 35:return $l(Rn,ut,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Pt,ea);default:return}}function sa(Rn,ut,Pt,ea){var Yi=si(e.skipParentheses(Pt)),ka=si(e.skipParentheses(ea));if(Yi||ka){var aa=Zr(Rn,e.Diagnostics.This_condition_will_always_return_0,e.tokenToString(ut===36||ut===34?95:110));if(Yi&&ka)return;var Ma=ut===37||ut===35?e.tokenToString(53):"",La=Yi?ea:Pt,an=e.skipParentheses(La);e.addRelatedInfo(aa,e.createDiagnosticForNode(La,e.Diagnostics.Did_you_mean_0,"".concat(Ma,"Number.isNaN(").concat(e.isEntityNameExpression(an)?e.entityNameToString(an):"...",")")))}}function si(Rn){if(e.isIdentifier(Rn)&&Rn.escapedText==="NaN"){var ut=uk();return!!ut&&ut===Hu(Rn)}return!1}}function Y3(r,n,i){var a=r,s=n,l=ql(r),g=ql(n);return i(l,g)||(a=l,s=g),[a,s]}function $3(r){Z(ir);var n=e.getContainingFunction(r);if(!n)return Te;var i=e.getFunctionFlags(n);if(!(i&1))return Te;var a=(i&2)!=0;r.asteriskToken&&(a&&d<99&&_c(r,26624),!a&&d<2&&Y.downlevelIteration&&_c(r,256));var s=Pg(n),l=s&&JT(s,a),g=l&&l.yieldType||Te,W=l&&l.nextType||Te,ce=a?ug(W)||Te:W,ke=r.expression?ya(r.expression):fn,rr=zC(r,ke,ce,a);if(s&&rr&&R_(rr,g,r.expression||r,r.expression),r.asteriskToken){var $e=a?19:17;return PT($e,1,ke,r.expression)||Te}else if(s)return sp(2,s,a)||Te;var ar=wx(2,n);return ar||(ar=Te,Z(function(){if(Ue&&!e.expressionResultIsUnused(r)){var Wr=Yc(r,void 0);(!Wr||Ba(Wr))&&Zr(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ar;function ir(){r.flags&8192||Ws(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),R2(r)&&Zr(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function eP(r,n){var i=Qg(r.condition);MD(r.condition,i,r.whenTrue);var a=ya(r.whenTrue,n),s=ya(r.whenFalse,n);return Ot([a,s],2)}function YC(r){var n=r.parent;return e.isParenthesizedExpression(n)&&YC(n)||e.isElementAccessExpression(n)&&n.argumentExpression===r}function rP(r){for(var n=[r.head.text],i=[],a=0,s=r.templateSpans;a<s.length;a++){var l=s[a],g=ya(l.expression);Ay(g,12288)&&Zr(l.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),n.push(l.literal.text),i.push(io(g,Ge)?g:yn)}return Tm(r)||YC(r)||Jf(Yc(r,void 0)||_r,nP)?wp(n,i):yn}function nP(r){return!!(r.flags&(128|134217728)||r.flags&58982400&&rs(uc(r)||_r,402653316))}function iP(r){return r.kind===289&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function Hg(r,n,i,a){var s=iP(r),l=s.contextualType,g=s.inferenceContext;try{s.contextualType=n,s.inferenceContext=i;var W=ya(r,a|1|(i?2:0));i&&i.intraExpressionInferenceSites&&(i.intraExpressionInferenceSites=void 0);var ce=rs(W,2944)&&D0(W,e0(n,r,void 0))?Jc(W):W;return ce}finally{s.contextualType=l,s.inferenceContext=g}}function Ds(r,n){if(n&&n!==0)return ya(r,n);var i=At(r);if(!i.resolvedType){var a=qs,s=$c;qs=ec,$c=void 0,i.resolvedType=ya(r,n),$c=s,qs=a}return i.resolvedType}function $C(r){return r=e.skipParentheses(r,!0),r.kind===213||r.kind===231||e.isJSDocTypeAssertion(r)}function Iy(r,n,i){var a=e.getEffectiveInitializer(r),s=aT(a)||(i?Hg(a,i,void 0,n||0):Ds(a,n));return e.isParameter(r)&&r.name.kind===204&&Xa(s)&&!s.target.hasRestElement&&md(s)<r.name.elements.length?tP(s,r.name):s}function tP(r,n){for(var i=n.elements,a=No(r).slice(),s=r.target.elementFlags.slice(),l=md(r);l<i.length;l++){var g=i[l];(l<i.length-1||!(g.kind===205&&g.dotDotDotToken))&&(a.push(!e.isOmittedExpression(g)&&Dm(g)?ci(g,!1,!1):Te),s.push(2),!e.isOmittedExpression(g)&&!Dm(g)&&rp(g,Te))}return zl(a,s,r.target.readonly)}function CD(r,n){var i=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?n:ep(n);if(e.isInJSFile(r)){if(OS(i))return rp(r,Te),Te;if(Fh(i))return rp(r,Es),Es}return i}function D0(r,n){if(n){if(n.flags&3145728){var i=n.types;return e.some(i,function(s){return D0(r,s)})}if(n.flags&58982400){var a=uc(n)||_r;return rs(a,4)&&rs(r,128)||rs(a,8)&&rs(r,256)||rs(a,64)&&rs(r,2048)||rs(a,4096)&&rs(r,8192)||D0(r,a)}return!!(n.flags&(128|4194304|134217728|268435456)&&rs(r,128)||n.flags&256&&rs(r,256)||n.flags&2048&&rs(r,2048)||n.flags&512&&rs(r,512)||n.flags&8192&&rs(r,8192))}return!1}function Tm(r){var n=r.parent;return e.isAssertionExpression(n)&&e.isConstTypeReference(n.type)||e.isJSDocTypeAssertion(n)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(n))||(e.isParenthesizedExpression(n)||e.isArrayLiteralExpression(n)||e.isSpreadElement(n))&&Tm(n)||(e.isPropertyAssignment(n)||e.isShorthandPropertyAssignment(n)||e.isTemplateSpan(n))&&Tm(n.parent)}function Em(r,n,i,a){var s=ya(r,n,a);return Tm(r)||e.isCommonJsExportedExpression(r)?Jc(s):$C(r)?s:a2(s,e0(arguments.length===2?Yc(r,void 0):i,r,void 0))}function eT(r,n){return r.name.kind===164&&f_(r.name),Em(r.initializer,n)}function rT(r,n){CE(r),r.name.kind===164&&f_(r.name);var i=HC(r,n);return nT(r,i,n)}function nT(r,n,i){if(i&&i&(2|8)){var a=uv(n,0,!0),s=uv(n,1,!0),l=a||s;if(l&&l.typeParameters){var g=tp(r,2);if(g){var W=uv(l_(g),a?0:1,!1);if(W&&!W.typeParameters){if(i&8)return iT(r,i),ho;var ce=Wg(r),ke=ce.signature&&Ao(ce.signature),rr=ke&&pC(ke);if(rr&&!rr.typeParameters&&!e.every(ce.inferences,Kg)){var $e=cP(ce,l.typeParameters),ar=l1(l,$e),ir=e.map(ce.inferences,function(Wr){return d2(Wr.typeParameter)});if(l2(ar,W,function(Wr,sn){Bf(ir,Wr,sn,0,!0)}),e.some(ir,Kg)&&(f2(ar,W,function(Wr,sn){Bf(ir,Wr,sn)}),!oP(ce.inferences,ir)))return sP(ce.inferences,ir),ce.inferredTypeParameters=e.concatenate(ce.inferredTypeParameters,$e),fm(ar)}return fm(gC(l,W,ce))}}}}return n}function iT(r,n){if(n&2){var i=Wg(r);i.flags|=4}}function Kg(r){return!!(r.candidates||r.contraCandidates)}function aP(r){return!!(r.candidates||r.contraCandidates||ih(r.typeParameter))}function oP(r,n){for(var i=0;i<r.length;i++)if(Kg(r[i])&&Kg(n[i]))return!0;return!1}function sP(r,n){for(var i=0;i<r.length;i++)!Kg(r[i])&&Kg(n[i])&&(r[i]=n[i])}function cP(r,n){for(var i=[],a,s,l=0,g=n;l<g.length;l++){var W=g[l],ce=W.symbol.escapedName;if(TD(r.inferredTypeParameters,ce)||TD(i,ce)){var ke=uP(e.concatenate(r.inferredTypeParameters,i),ce),rr=go(262144,ke),$e=uu(rr);$e.target=W,a=e.append(a,W),s=e.append(s,$e),i.push($e)}else i.push(W)}if(s)for(var ar=jc(a,s),ir=0,Wr=s;ir<Wr.length;ir++){var W=Wr[ir];W.mapper=ar}return i}function TD(r,n){return e.some(r,function(i){return i.symbol.escapedName===n})}function uP(r,n){for(var i=n.length;i>1&&n.charCodeAt(i-1)>=48&&n.charCodeAt(i-1)<=57;)i--;for(var a=n.slice(0,i),s=1;;s++){var l=a+s;if(!TD(r,l))return l}}function tT(r){var n=cg(r);if(n&&!n.typeParameters)return Ao(n)}function lP(r){var n=ya(r.expression),i=rv(n,r.expression),a=tT(n);return a&&Rh(a,r,i!==n)}function Xs(r){var n=aT(r);if(n)return n;if(r.flags&134217728&&$c){var i=$c[V(r)];if(i)return i}var a=Gs,s=ya(r);if(Gs!==a){var l=$c||($c=[]);l[V(r)]=s,e.setNodeFlags(r,r.flags|134217728)}return s}function aT(r){var n=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(n)){var i=e.getJSDocTypeAssertionType(n);if(!e.isConstTypeReference(i))return zt(i)}if(n=e.skipParentheses(r),e.isCallExpression(n)&&n.expression.kind!==106&&!e.isRequireCall(n,!0)&&!AC(n)){var i=e.isCallChain(n)?lP(n):tT(Sm(n.expression));if(i)return i}else{if(e.isAssertionExpression(n)&&!e.isConstTypeReference(n.type))return zt(n.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return ya(r)}}function wy(r){var n=At(r);if(n.contextFreeType)return n.contextFreeType;var i=r.contextualType;r.contextualType=Te;try{var a=n.contextFreeType=ya(r,4);return a}finally{r.contextualType=i}}function ya(r,n,i){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var a=Xe;Xe=r,Me=0;var s=dP(r,n,i),l=nT(r,s,n);return bD(l)&&fP(r,l),Xe=a,e.tracing===null||e.tracing===void 0||e.tracing.pop(),l}function fP(r,n){var i=r.parent.kind===208&&r.parent.expression===r||r.parent.kind===209&&r.parent.expression===r||(r.kind===79||r.kind===163)&&F0(r)||r.parent.kind===183&&r.parent.exprName===r||r.parent.kind===278;if(i||Zr(r,e.Diagnostics.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),Y.isolatedModules){e.Debug.assert(!!(n.symbol.flags&128));var a=n.symbol.valueDeclaration;a.flags&16777216&&Zr(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function _P(r,n){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var i=e.getJSDocTypeAssertionType(r);return FC(i,i,r.expression,n)}return ya(r.expression,n)}function dP(r,n,i){var a=r.kind;if(B)switch(a){case 228:case 215:case 216:B.throwIfCancellationRequested()}switch(a){case 79:return d4(r,n);case 80:return CN(r);case 108:return gy(r);case 106:return M2(r);case 104:return qn;case 14:case 10:return Mg(Ou(r.text));case 8:return ab(r),Mg(Vl(+r.text));case 9:return l7(r),Mg(Dh({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return Ni;case 95:return ti;case 225:return rP(r);case 13:return ps;case 206:return Bx(r,n,i);case 207:return tN(r,n);case 208:return $x(r,n);case 163:return eC(r,n);case 209:return jN(r,n);case 210:if(r.expression.kind===100)return g3(r);case 211:return p3(r,n);case 212:return m3(r);case 214:return _P(r,n);case 228:return X8(r);case 215:case 216:return HC(r,n);case 218:return R3(r);case 213:case 231:return v3(r);case 232:return h3(r);case 230:return MC(r);case 235:return D3(r);case 233:return b3(r);case 217:return M3(r);case 219:return B3(r);case 220:return j3(r);case 221:return U3(r);case 222:return z3(r);case 223:return kr(r,n);case 224:return eP(r,n);case 227:return $4(r,n);case 229:return fn;case 226:return $3(r);case 234:return eN(r);case 291:return vN(r,n);case 281:return cN(r,n);case 282:return oN(r,n);case 285:return uN(r);case 289:return fN(r,n);case 283:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ue}function oT(r){yE(r),r.expression&&Ws(r.expression,e.Diagnostics.Type_expected),eo(r.constraint),eo(r.default);var n=Et(zi(r));uc(n),a1(n)||Zr(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Oi(n));var i=rc(n),a=pd(n);i&&a&&Fc(a,Qc(ra(i,Yd(n,a)),a),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),Im(r),Z(function(){return Pm(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)})}function pP(r){if(e.isInterfaceDeclaration(r.parent)||e.isClassLike(r.parent)||e.isTypeAliasDeclaration(r.parent)){var n=Et(zi(r)),i=e2(n);if(i){var a=zi(r.parent);if(e.isTypeAliasDeclaration(r.parent)&&!(e.getObjectFlags(nt(a))&(16|32)))Zr(r,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(i===32768||i===65536){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:tc(nt(a)),id:tc(n)});var s=ty(a,n,i===65536?Xo:so),l=ty(a,n,i===65536?so:Xo),g=n;Ne=n,Fc(s,l,r,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Ne=g,e.tracing===null||e.tracing===void 0||e.tracing.pop()}}}}function sT(r){jf(r),E0(r);var n=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(n.kind===173&&e.nodeIsPresent(n.body)||Zr(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),n.kind===173&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&Zr(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(r.questionToken||Yp(r))&&e.isBindingPattern(r.name)&&n.body&&Zr(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(n.parameters.indexOf(r)!==0&&Zr(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(n.kind===173||n.kind===177||n.kind===182)&&Zr(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),n.kind===216&&Zr(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(n.kind===174||n.kind===175)&&Zr(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!io(ct(Li(r.symbol)),dc)&&Zr(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function gP(r){var n=mP(r);if(!n){Zr(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var i=Vu(n),a=qu(i);if(!!a){eo(r.type);var s=r.parameterName;if(a.kind===0||a.kind===2)bh(s);else if(a.parameterIndex>=0){if(G(i)&&a.parameterIndex===i.parameters.length-1)Zr(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(a.type){var l=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Fc(a.type,Li(i.parameters[a.parameterIndex]),r.type,void 0,l)}}else if(s){for(var g=!1,W=0,ce=n.parameters;W<ce.length;W++){var ke=ce[W].name;if(e.isBindingPattern(ke)&&cT(ke,s,a.parameterName)){g=!0;break}}g||Zr(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,a.parameterName)}}}function mP(r){switch(r.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:var n=r.parent;if(r===n.type)return n}}function cT(r,n,i){for(var a=0,s=r.elements;a<s.length;a++){var l=s[a];if(!e.isOmittedExpression(l)){var g=l.name;if(g.kind===79&&g.escapedText===i)return Zr(n,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,i),!0;if((g.kind===204||g.kind===203)&&cT(g,n,i))return!0}}}function gv(r){r.kind===178?R5(r):(r.kind===181||r.kind===259||r.kind===182||r.kind===176||r.kind===173||r.kind===177)&&J0(r);var n=e.getFunctionFlags(r);n&4||((n&3)==3&&d<99&&_c(r,6144),(n&3)==2&&d<4&&_c(r,64),(n&3)!=0&&d<2&&_c(r,128)),Jy(e.getEffectiveTypeParameterDeclarations(r)),K8(r),e.forEach(r.parameters,sT),r.type&&eo(r.type),Z(i);function i(){f8(r);var a=e.getEffectiveReturnTypeNode(r);if(Ue&&!a)switch(r.kind){case 177:Zr(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Zr(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(a){var s=e.getFunctionFlags(r);if((s&(4|1))==1){var l=zt(a);if(l===Ir)Zr(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var g=sp(0,l,(s&2)!=0)||Te,W=sp(1,l,(s&2)!=0)||g,ce=sp(2,l,(s&2)!=0)||_r,ke=UC(g,W,ce,!!(s&2));Fc(ke,l,a)}}else(s&3)==2&&GP(r,a)}r.kind!==178&&r.kind!==320&&B_(r)}}function vP(r){for(var n=new e.Map,i=new e.Map,a=new e.Map,s=0,l=r.members;s<l.length;s++){var g=l[s];if(g.kind===173)for(var W=0,ce=g.parameters;W<ce.length;W++){var ke=ce[W];e.isParameterPropertyDeclaration(ke,g)&&!e.isBindingPattern(ke.name)&&In(n,ke.name,ke.name.escapedText,3)}else{var rr=e.isStatic(g),$e=g.name;if(!$e)continue;var ar=e.isPrivateIdentifier($e),ir=ar&&rr?16:0,Wr=ar?a:rr?i:n,sn=$e&&e.getPropertyNameForPropertyNameNode($e);if(sn)switch(g.kind){case 174:In(Wr,$e,sn,1|ir);break;case 175:In(Wr,$e,sn,2|ir);break;case 169:In(Wr,$e,sn,3|ir);break;case 171:In(Wr,$e,sn,8|ir);break}}}function In(Sn,Kn,ei,Ti){var Ri=Sn.get(ei);if(Ri)if((Ri&16)!=(Ti&16))Zr(Kn,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(Kn));else{var pt=!!(Ri&8),rt=!!(Ti&8);pt||rt?pt!==rt&&Zr(Kn,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Kn)):Ri&Ti&~16?Zr(Kn,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Kn)):Sn.set(ei,Ri|Ti)}else Sn.set(ei,Ti)}}function yP(r){for(var n=0,i=r.members;n<i.length;n++){var a=i[n],s=a.name,l=e.isStatic(a);if(l&&s){var g=e.getPropertyNameForPropertyNameNode(s);switch(g){case"name":case"length":case"caller":case"arguments":case"prototype":var W=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,ce=Ze(zi(r));Zr(s,W,g,ce);break}}}}function uT(r){for(var n=new e.Map,i=0,a=r.members;i<a.length;i++){var s=a[i];if(s.kind===168){var l=void 0,g=s.name;switch(g.kind){case 10:case 8:l=g.text;break;case 79:l=e.idText(g);break;default:continue}n.get(l)?(Zr(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,l),Zr(s.name,e.Diagnostics.Duplicate_identifier_0,l)):n.set(l,!0)}}}function ED(r){if(r.kind===261){var n=zi(r);if(n.declarations&&n.declarations.length>0&&n.declarations[0]!==r)return}var i=fb(zi(r));if(i==null?void 0:i.declarations){for(var a=new e.Map,s=function(ce){ce.parameters.length===1&&ce.parameters[0].type&&Rp(zt(ce.parameters[0].type),function(ke){var rr=a.get(tc(ke));rr?rr.declarations.push(ce):a.set(tc(ke),{type:ke,declarations:[ce]})})},l=0,g=i.declarations;l<g.length;l++){var W=g[l];s(W)}a.forEach(function(ce){if(ce.declarations.length>1)for(var ke=0,rr=ce.declarations;ke<rr.length;ke++){var $e=rr[ke];Zr($e,e.Diagnostics.Duplicate_index_signature_for_type_0,Oi(ce.type))}})}}function lT(r){!jf(r)&&!a7(r)&&j0(r.name),E0(r),kD(r),e.hasSyntacticModifier(r,256)&&r.kind===169&&r.initializer&&Zr(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function hP(r){return e.isPrivateIdentifier(r.name)&&Zr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),lT(r)}function DP(r){CE(r)||j0(r.name),e.isMethodDeclaration(r)&&r.asteriskToken&&e.isIdentifier(r.name)&&e.idText(r.name)==="constructor"&&Zr(r.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),DT(r),e.hasSyntacticModifier(r,256)&&r.kind===171&&r.body&&Zr(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&Zr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),kD(r)}function kD(r){if(e.isPrivateIdentifier(r.name)&&d<99){for(var n=e.getEnclosingBlockScopeContainer(r);n;n=e.getEnclosingBlockScopeContainer(n))At(n).flags|=67108864;if(e.isClassExpression(r.parent)){var i=w2(r.parent);i&&(At(r.name).flags|=524288,At(i).flags|=65536)}}}function bP(r){jf(r),e.forEachChild(r,eo)}function SP(r){gv(r),i7(r)||t7(r),eo(r.body);var n=zi(r),i=e.getDeclarationOfKind(n,r.kind);if(r===i&&x0(n),e.nodeIsMissing(r.body))return;Z(s);return;function a(l){return e.isPrivateIdentifierClassElementDeclaration(l)?!0:l.kind===169&&!e.isStatic(l)&&!!l.initializer}function s(){var l=r.parent;if(e.getClassExtendsHeritageElement(l)){O2(r.parent,l);var g=Ex(l),W=Tx(r.body);if(W){g&&Zr(W,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var ce=(e.getEmitScriptTarget(Y)!==99||!Ce)&&(e.some(r.parent.members,a)||e.some(r.parameters,function(ir){return e.hasSyntacticModifier(ir,16476)}));if(ce)if(!xP(W,r.body))Zr(W,e.Diagnostics.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{for(var ke=void 0,rr=0,$e=r.body.statements;rr<$e.length;rr++){var ar=$e[rr];if(e.isExpressionStatement(ar)&&e.isSuperCall(e.skipOuterExpressions(ar.expression))){ke=ar;break}if(fT(ar))break}ke===void 0&&Zr(r,e.Diagnostics.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 g||Zr(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function xP(r,n){var i=e.walkUpParenthesizedExpressions(r.parent);return e.isExpressionStatement(i)&&i.parent===n}function fT(r){return r.kind===106||r.kind===108?!0:e.isThisContainerOrFunctionBlock(r)?!1:!!e.forEachChild(r,fT)}function _T(r){e.isIdentifier(r.name)&&e.idText(r.name)==="constructor"&&Zr(r.name,e.Diagnostics.Class_constructor_may_not_be_an_accessor),Z(n),eo(r.body),kD(r);function n(){if(!J0(r)&&!G5(r)&&j0(r.name),Fy(r),gv(r),r.kind===174&&!(r.flags&16777216)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||Zr(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===164&&f_(r.name),Pp(r)){var i=zi(r),a=e.getDeclarationOfKind(i,174),s=e.getDeclarationOfKind(i,175);if(a&&s&&!(Zg(a)&1)){At(a).flags|=1;var l=e.getEffectiveModifierFlags(a),g=e.getEffectiveModifierFlags(s);(l&256)!=(g&256)&&(Zr(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Zr(s.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(l&16&&!(g&(16|8))||l&8&&!(g&8))&&(Zr(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Zr(s.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var W=vu(a),ce=vu(s);W&&ce&&Fc(W,ce,a,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var ke=Ic(zi(r));r.kind===174&&hD(r,ke)}}function CP(r){Fy(r)}function TP(r,n,i){return r.typeArguments&&i<r.typeArguments.length?zt(r.typeArguments[i]):b0(r,n)[i]}function b0(r,n){return gd(e.map(r.typeArguments,zt),n,ul(n),e.isInJSFile(r))}function dT(r,n){for(var i,a,s=!0,l=0;l<n.length;l++){var g=rc(n[l]);g&&(i||(i=b0(r,n),a=jc(n,i)),s=s&&Fc(i[l],ra(g,a),r.typeArguments[l],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function AD(r){var n=Kv(r);if(!ca(n)){var i=At(r).resolvedSymbol;if(i)return i.flags&524288&&Qt(i).typeParameters||(e.getObjectFlags(n)&4?n.target.localTypeParameters:void 0)}}function ND(r){Wy(r,r.typeArguments),r.kind===180&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&cp(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,eo);var n=Kv(r);if(!ca(n)){r.typeArguments&&Z(function(){var a=AD(r);a&&dT(r,a)});var i=At(r).resolvedSymbol;i&&(e.some(i.declarations,function(a){return e.isTypeDeclaration(a)&&!!(a.flags&268435456)})&&Tl(Cy(r),i.declarations,i.escapedName),n.flags&32&&i.flags&8&&Zr(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Oi(n)))}}function EP(r){var n=e.tryCast(r.parent,e.isTypeReferenceType);if(!!n){var i=AD(n);if(!!i){var a=rc(i[n.typeArguments.indexOf(r)]);return a&&ra(a,jc(i,b0(n,i)))}}}function kP(r){Sb(r)}function AP(r){e.forEach(r.members,eo),Z(n);function n(){var i=lS(r);P0(i,i.symbol),ED(r),uT(r)}}function NP(r){eo(r.elementType)}function PP(r){for(var n=r.elements,i=!1,a=!1,s=e.some(n,e.isNamedTupleMember),l=0,g=n;l<g.length;l++){var W=g[l];if(W.kind!==199&&s){mi(W,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var ce=D1(W);if(ce&8){var ke=zt(W.type);if(!Td(ke)){Zr(W,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Fu(ke)||Xa(ke)&&ke.target.combinedFlags&4)&&(a=!0)}else if(ce&4){if(a){mi(W,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}a=!0}else if(ce&2){if(a){mi(W,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}i=!0}else if(i){mi(W,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,eo),zt(r)}function IP(r){e.forEach(r.types,eo),zt(r)}function pT(r,n){if(!(r.flags&8388608))return r;var i=r.objectType,a=r.indexType;if(io(a,Wl(i,!1)))return n.kind===209&&e.isAssignmentTarget(n)&&e.getObjectFlags(i)&32&&sl(i)&1&&Zr(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Oi(i)),r;var s=re(i);if(Wu(s,Hn)&&Bs(a,296))return r;if(Qd(i)){var l=A1(a,n);if(l){var g=Rp(s,function(W){return Zt(W,l)});if(g&&e.getDeclarationModifierFlagsFromSymbol(g)&24)return Zr(n,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(l)),ue}}return Zr(n,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Oi(a),Oi(i)),ue}function wP(r){eo(r.objectType),eo(r.indexType),pT(tS(r),r)}function OP(r){FP(r),eo(r.typeParameter),eo(r.nameType),eo(r.type),r.type||rp(r,Te);var n=I1(r),i=Ff(n);if(i)Fc(i,On,r.nameType);else{var a=zu(n);Fc(a,On,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function FP(r){var n;if((n=r.members)===null||n===void 0?void 0:n.length)return mi(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function MP(r){bh(r)}function LP(r){K5(r),eo(r.type)}function RP(r){e.forEachChild(r,eo)}function BP(r){e.findAncestor(r,function(ke){return ke.parent&&ke.parent.kind===191&&ke.parent.extendsType===ke})||mi(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),eo(r.typeParameter);var n=zi(r.typeParameter);if(n.declarations&&n.declarations.length>1){var i=Qt(n);if(!i.typeParametersChecked){i.typeParametersChecked=!0;var a=Et(n),s=e.getDeclarationsOfKind(n,165);if(!WT(s,[a],function(ke){return[ke]}))for(var l=Xt(n),g=0,W=s;g<W.length;g++){var ce=W[g];Zr(ce.name,e.Diagnostics.All_declarations_of_0_must_have_identical_constraints,l)}}}B_(r)}function JP(r){for(var n=0,i=r.templateSpans;n<i.length;n++){var a=i[n];eo(a.type);var s=zt(a.type);Fc(s,Ge,a.type)}zt(r)}function jP(r){if(eo(r.argument),r.assertions){var n=e.getResolutionModeOverrideForClause(r.assertions.assertClause,mi);n&&(e.isNightly()||mi(r.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(Y)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(Y)!==e.ModuleResolutionKind.NodeNext&&mi(r.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext))}zt(r)}function UP(r){r.dotDotDotToken&&r.questionToken&&mi(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===187&&mi(r.type,e.Diagnostics.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===188&&mi(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),eo(r.type),zt(r)}function Oy(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&16777216)}function S0(r,n){var i=e.getCombinedModifierFlags(r);return r.parent.kind!==261&&r.parent.kind!==260&&r.parent.kind!==228&&r.flags&16777216&&(!(i&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(i|=1),i|=2),i&n}function x0(r){Z(function(){return zP(r)})}function zP(r){function n(Rn,ut){var Pt=ut!==void 0&&ut.parent===Rn[0].parent;return Pt?ut:Rn[0]}function i(Rn,ut,Pt,ea,Yi){var ka=ea^Yi;if(ka!==0){var aa=S0(n(Rn,ut),Pt);e.forEach(Rn,function(Ma){var La=S0(Ma,Pt)^aa;La&1?Zr(e.getNameOfDeclaration(Ma),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):La&2?Zr(e.getNameOfDeclaration(Ma),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):La&(8|16)?Zr(e.getNameOfDeclaration(Ma)||Ma,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):La&256&&Zr(e.getNameOfDeclaration(Ma),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function a(Rn,ut,Pt,ea){if(Pt!==ea){var Yi=e.hasQuestionToken(n(Rn,ut));e.forEach(Rn,function(ka){var aa=e.hasQuestionToken(ka)!==Yi;aa&&Zr(e.getNameOfDeclaration(ka),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=1|2|8|16|256,l=0,g=s,W=!1,ce=!0,ke=!1,rr,$e,ar,ir=r.declarations,Wr=(r.flags&16384)!=0;function sn(Rn){if(!(Rn.name&&e.nodeIsMissing(Rn.name))){var ut=!1,Pt=e.forEachChild(Rn.parent,function(La){if(ut)return La;ut=La===Rn});if(Pt&&Pt.pos===Rn.end&&Pt.kind===Rn.kind){var ea=Pt.name||Pt,Yi=Pt.name;if(Rn.name&&Yi&&(e.isPrivateIdentifier(Rn.name)&&e.isPrivateIdentifier(Yi)&&Rn.name.escapedText===Yi.escapedText||e.isComputedPropertyName(Rn.name)&&e.isComputedPropertyName(Yi)||e.isPropertyNameLiteral(Rn.name)&&e.isPropertyNameLiteral(Yi)&&e.getEscapedTextOfIdentifierOrLiteral(Rn.name)===e.getEscapedTextOfIdentifierOrLiteral(Yi))){var ka=(Rn.kind===171||Rn.kind===170)&&e.isStatic(Rn)!==e.isStatic(Pt);if(ka){var aa=e.isStatic(Rn)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Zr(ea,aa)}return}if(e.nodeIsPresent(Pt.body)){Zr(ea,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Rn.name));return}}var Ma=Rn.name||Rn;Wr?Zr(Ma,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(Rn,256)?Zr(Ma,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Zr(Ma,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var In=!1,Sn=!1,Kn=!1,ei=[];if(ir)for(var Ti=0,Ri=ir;Ti<Ri.length;Ti++){var pt=Ri[Ti],rt=pt,Da=rt.flags&16777216,St=rt.parent&&(rt.parent.kind===261||rt.parent.kind===184)||Da;if(St&&(ar=void 0),(rt.kind===260||rt.kind===228)&&!Da&&(Kn=!0),rt.kind===259||rt.kind===171||rt.kind===170||rt.kind===173){ei.push(rt);var ba=S0(rt,s);l|=ba,g&=ba,W=W||e.hasQuestionToken(rt),ce=ce&&e.hasQuestionToken(rt);var Ta=e.nodeIsPresent(rt.body);Ta&&rr?Wr?Sn=!0:In=!0:(ar==null?void 0:ar.parent)===rt.parent&&ar.end!==rt.pos&&sn(ar),Ta?rr||(rr=rt):ke=!0,ar=rt,St||($e=rt)}}if(Sn&&e.forEach(ei,function(Rn){Zr(Rn,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),In&&e.forEach(ei,function(Rn){Zr(e.getNameOfDeclaration(Rn)||Rn,e.Diagnostics.Duplicate_function_implementation)}),Kn&&!Wr&&r.flags&16&&ir){var wa=e.filter(ir,function(Rn){return Rn.kind===260}).map(function(Rn){return e.createDiagnosticForNode(Rn,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(ir,function(Rn){var ut=Rn.kind===260?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:Rn.kind===259?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;ut&&e.addRelatedInfo.apply(void 0,zn([Zr(e.getNameOfDeclaration(Rn)||Rn,ut,e.symbolName(r))],wa,!1))})}if($e&&!$e.body&&!e.hasSyntacticModifier($e,256)&&!$e.questionToken&&sn($e),ke&&(ir&&(i(ir,rr,s,l,g),a(ir,rr,W,ce)),rr))for(var So=Gd(r),xo=Vu(rr),uo=0,sa=So;uo<sa.length;uo++){var si=sa[uo];if(!M6(xo,si)){e.addRelatedInfo(Zr(si.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(rr,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function mv(r){Z(function(){return WP(r)})}function WP(r){var n=r.localSymbol;if(!n&&(n=zi(r),!n.exportSymbol)||e.getDeclarationOfKind(n,r.kind)!==r)return;for(var i=0,a=0,s=0,l=0,g=n.declarations;l<g.length;l++){var W=g[l],ce=In(W),ke=S0(W,1|1024);ke&1?ke&1024?s|=ce:i|=ce:a|=ce}var rr=i|a,$e=i&a,ar=s&rr;if($e||ar)for(var ir=0,Wr=n.declarations;ir<Wr.length;ir++){var W=Wr[ir],ce=In(W),sn=e.getNameOfDeclaration(W);ce&ar?Zr(sn,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(sn)):ce&$e&&Zr(sn,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(sn))}function In(Sn){var Kn=Sn;switch(Kn.kind){case 261:case 262:case 348:case 341:case 342:return 2;case 264:return e.isAmbientModule(Kn)||e.getModuleInstanceState(Kn)!==0?4|1:4;case 260:case 263:case 302:return 2|1;case 308:return 2|1|4;case 274:case 223:var ei=Kn,Ti=e.isExportAssignment(ei)?ei.expression:ei.right;if(!e.isEntityNameExpression(Ti))return 1;Kn=Ti;case 268:case 271:case 270:var Ri=0,pt=wi(zi(Kn));return e.forEach(pt.declarations,function(rt){Ri|=In(rt)}),Ri;case 257:case 205:case 259:case 273:case 79:return 1;default:return e.Debug.failBadSyntaxKind(Kn)}}}function vv(r,n,i,a){var s=yv(r,n);return s&&ug(s,n,i,a)}function yv(r,n,i){if(!Ba(r)){var a=r;if(a.promisedTypeOfPromise)return a.promisedTypeOfPromise;if(yu(r,Qv(!1)))return a.promisedTypeOfPromise=No(r)[0];if(!Ny(O_(r),131068|131072)){var s=Na(r,"then");if(!Ba(s)){var l=s?_a(s,0):e.emptyArray;if(l.length===0){n&&Zr(n,e.Diagnostics.A_promise_must_have_a_then_method);return}for(var g,W,ce=0,ke=l;ce<ke.length;ce++){var rr=ke[ce],$e=Hd(rr);$e&&$e!==Ir&&!gf(r,$e,gt)?g=$e:W=e.append(W,rr)}if(!W){e.Debug.assertIsDefined(g),i&&(i.value=g),n&&Zr(n,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Oi(r),Oi(g));return}var ar=bu(Ot(e.map(W,vD)),2097152);if(!Ba(ar)){var ir=_a(ar,0);if(ir.length===0){n&&Zr(n,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return a.promisedTypeOfPromise=Ot(e.map(ir,vD),2)}}}}}function hv(r,n,i,a,s){var l=n?ug(r,i,a,s):__(r,i,a,s);return l||ue}function gT(r){if(Ny(O_(r),131068|131072))return!1;var n=Na(r,"then");return!!n&&_a(bu(n,2097152),0).length>0}function PD(r){var n;if(r.flags&16777216){var i=h1(!1);return!!i&&r.aliasSymbol===i&&((n=r.aliasTypeArguments)===null||n===void 0?void 0:n.length)===1}return!1}function km(r){return r.flags&1048576?Qo(r,km):PD(r)?r.aliasTypeArguments[0]:r}function mT(r){if(Ba(r)||PD(r))return!1;if(Qd(r)){var n=uc(r);if(n?n.flags&3||Rf(n)||Jf(n,gT):rs(r,8650752))return!0}return!1}function VP(r){var n=h1(!0);if(n)return wg(n,[km(r)])}function qP(r){if(mT(r)){var n=VP(r);if(n)return n}return e.Debug.assert(yv(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function ug(r,n,i,a){var s=__(r,n,i,a);return s&&qP(s)}function __(r,n,i,a){if(Ba(r)||PD(r))return r;var s=r;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(r.flags&1048576){if(Vo.lastIndexOf(r.id)>=0){n&&Zr(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}var l=n?function($e){return __($e,n,i,a)}:__;Vo.push(r.id);var g=Qo(r,l);return Vo.pop(),s.awaitedTypeOfType=g}if(mT(r))return s.awaitedTypeOfType=r;var W={value:void 0},ce=yv(r,void 0,W);if(ce){if(r.id===ce.id||Vo.lastIndexOf(ce.id)>=0){n&&Zr(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Vo.push(r.id);var ke=__(ce,n,i,a);return Vo.pop(),ke?s.awaitedTypeOfType=ke:void 0}if(gT(r)){if(n){e.Debug.assertIsDefined(i);var rr=void 0;W.value&&(rr=e.chainDiagnosticMessages(rr,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Oi(r),Oi(W.value))),rr=e.chainDiagnosticMessages(rr,i,a),fe.add(e.createDiagnosticForNodeFromMessageChain(n,rr))}return}return s.awaitedTypeOfType=r}function GP(r,n){var i=zt(n);if(d>=2){if(ca(i))return;var a=Qv(!0);if(a!==Ea&&!yu(i,a)){Zr(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Oi(__(i)||Ir));return}}else{if(KP(n),ca(i))return;var s=e.getEntityNameFromTypeNode(n);if(s===void 0){Zr(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Oi(i));return}var l=ts(s,111551,!0),g=l?Li(l):ue;if(ca(g)){s.kind===79&&s.escapedText==="Promise"&&wf(i)===Qv(!1)?Zr(n,e.Diagnostics.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):Zr(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}var W=ZE(!0);if(W===Zi){Zr(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}if(!Fc(g,W,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var ce=s&&e.getFirstIdentifier(s),ke=Wc(r.locals,ce.escapedText,111551);if(ke){Zr(ke.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(ce),e.entityNameToString(s));return}}hv(i,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function HP(r){var n=Gg(r);m0(n,r);var i=Ao(n);if(!(i.flags&1)){var a,s;switch(r.parent.kind){case 260:a=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var l=zi(r.parent),g=Li(l);s=Ot([g,Ir]);break;case 169:case 166:a=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,s=Ir;break;case 171:case 174:case 175:a=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var W=lg(r.parent),ce=Ob(W);s=Ot([ce,Ir]);break;default:return e.Debug.fail()}Fc(i,s,r,a)}}function KP(r){vT(r&&e.getEntityNameFromTypeNode(r),!1)}function vT(r,n){if(!!r){var i=e.getFirstIdentifier(r),a=(r.kind===79?788968:1920)|2097152,s=is(i,i.escapedText,a,void 0,void 0,!0);if(s&&s.flags&2097152){if(Il(s)&&!Sv(wi(s))&&!Ec(s))su(s);else if(n&&Y.isolatedModules&&e.getEmitModuleKind(Y)>=e.ModuleKind.ES2015&&!Il(s)&&!e.some(s.declarations,e.isTypeOnlyImportOrExportDeclaration)){var l=Zr(r,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),g=e.find(s.declarations||e.emptyArray,nf);g&&e.addRelatedInfo(l,e.createDiagnosticForNode(g,e.Diagnostics._0_was_imported_here,e.idText(i)))}}}}function Am(r){var n=ID(r);n&&e.isEntityName(n)&&vT(n,!0)}function ID(r){if(r)switch(r.kind){case 190:case 189:return yT(r.types);case 191:return yT([r.trueType,r.falseType]);case 193:case 199:return ID(r.type);case 180:return r.typeName}}function yT(r){for(var n,i=0,a=r;i<a.length;i++){for(var s=a[i];s.kind===193||s.kind===199;)s=s.type;if(s.kind!==144&&!(!Re&&(s.kind===198&&s.literal.kind===104||s.kind===155))){var l=ID(s);if(!l)return;if(n){if(!e.isIdentifier(n)||!e.isIdentifier(l)||n.escapedText!==l.escapedText)return}else n=l}}return n}function C0(r){var n=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(n):n}function Fy(r){if(!(!e.canHaveDecorators(r)||!e.hasDecorators(r)||!r.modifiers||!e.nodeCanBeDecorated(r,r.parent,r.parent.parent))){Y.experimentalDecorators||Zr(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var n=e.find(r.modifiers,e.isDecorator);if(!!n){if(_c(n,8),r.kind===166&&_c(n,32),Y.emitDecoratorMetadata)switch(_c(n,16),r.kind){case 260:var i=e.getFirstConstructorWithBody(r);if(i)for(var a=0,s=i.parameters;a<s.length;a++){var l=s[a];Am(C0(l))}break;case 174:case 175:var g=r.kind===174?175:174,W=e.getDeclarationOfKind(zi(r),g);Am($o(r)||W&&$o(W));break;case 171:for(var ce=0,ke=r.parameters;ce<ke.length;ce++){var l=ke[ce];Am(C0(l))}Am(e.getEffectiveReturnTypeNode(r));break;case 169:Am(e.getEffectiveTypeAnnotationNode(r));break;case 166:Am(C0(r));for(var rr=r.parent,$e=0,ar=rr.parameters;$e<ar.length;$e++){var l=ar[$e];Am(C0(l))}break}for(var ir=0,Wr=r.modifiers;ir<Wr.length;ir++){var sn=Wr[ir];e.isDecorator(sn)&&HP(sn)}}}}function QP(r){Z(n);function n(){DT(r),rb(r),Nm(r,r.name)}}function XP(r){r.typeExpression||Zr(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&Pm(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),eo(r.typeExpression),Jy(e.getEffectiveTypeParameterDeclarations(r))}function ZP(r){eo(r.constraint);for(var n=0,i=r.typeParameters;n<i.length;n++){var a=i[n];eo(a)}}function YP(r){eo(r.typeExpression)}function $P(r){r.name&&Uy(r.name,!0)}function e8(r){eo(r.typeExpression)}function r8(r){eo(r.typeExpression)}function n8(r){Z(n),gv(r);function n(){!r.type&&!e.isJSDocConstructSignature(r)&&rp(r,Te)}}function i8(r){var n=e.getEffectiveJSDocHost(r);(!n||!e.isClassDeclaration(n)&&!e.isClassExpression(n))&&Zr(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function t8(r){var n=e.getEffectiveJSDocHost(r);if(!n||!e.isClassDeclaration(n)&&!e.isClassExpression(n)){Zr(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var i=e.getJSDocTags(n).filter(e.isJSDocAugmentsTag);e.Debug.assert(i.length>0),i.length>1&&Zr(i[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=hT(r.class.expression),s=e.getClassExtendsHeritageElement(n);if(s){var l=hT(s.expression);l&&a.escapedText!==l.escapedText&&Zr(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(a),e.idText(l))}}function a8(r){var n=e.getJSDocHost(r);n&&e.isPrivateIdentifierClassElementDeclaration(n)&&Zr(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function hT(r){switch(r.kind){case 79:return r;case 208:return r.name;default:return}}function DT(r){var n;Fy(r),gv(r);var i=e.getFunctionFlags(r);if(r.name&&r.name.kind===164&&f_(r.name),Pp(r)){var a=zi(r),s=r.localSymbol||a,l=(n=s.declarations)===null||n===void 0?void 0:n.find(function(ke){return ke.kind===r.kind&&!(ke.flags&262144)});r===l&&x0(s),a.parent&&x0(a)}var g=r.kind===170?void 0:r.body;if(eo(g),hD(r,Pg(r)),Z(ce),e.isInJSFile(r)){var W=e.getJSDocTypeTag(r);W&&W.typeExpression&&!z2(zt(W.typeExpression),r)&&Zr(W.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function ce(){e.getEffectiveReturnTypeNode(r)||(e.nodeIsMissing(g)&&!Oy(r)&&rp(r,Te),i&1&&e.nodeIsPresent(g)&&Ao(Vu(r)))}}function B_(r){Z(n);function n(){var i=e.getSourceFileOfNode(r),a=Lc.get(i.path);a||(a=[],Lc.set(i.path,a)),a.push(r)}}function bT(r,n){for(var i=0,a=r;i<a.length;i++){var s=a[i];switch(s.kind){case 260:case 228:o8(s,n),wD(s,n);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:CT(s,n);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:s.body&&CT(s,n),wD(s,n);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:wD(s,n);break;case 192:s8(s,n);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function ST(r,n,i){var a=e.getNameOfDeclaration(r)||r,s=e.isTypeDeclaration(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;i(r,0,e.createDiagnosticForNode(a,s,n))}function My(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function o8(r,n){for(var i=0,a=r.members;i<a.length;i++){var s=a[i];switch(s.kind){case 171:case 169:case 174:case 175:if(s.kind===175&&s.symbol.flags&32768)break;var l=zi(s);!l.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&16777216)&&n(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Xt(l)));break;case 173:for(var g=0,W=s.parameters;g<W.length;g++){var ce=W[g];!ce.symbol.isReferenced&&e.hasSyntacticModifier(ce,8)&&n(ce,0,e.createDiagnosticForNode(ce.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(ce.symbol)))}break;case 178:case 237:case 172:break;default:e.Debug.fail("Unexpected class member")}}}function s8(r,n){var i=r.typeParameter;OD(i)&&n(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(i.name)))}function wD(r,n){var i=zi(r).declarations;if(!(!i||e.last(i)!==r))for(var a=e.getEffectiveTypeParameterDeclarations(r),s=new e.Set,l=0,g=a;l<g.length;l++){var W=g[l];if(!!OD(W)){var ce=e.idText(W.name),ke=W.parent;if(ke.kind!==192&&ke.typeParameters.every(OD)){if(e.tryAddToSet(s,ke)){var rr=e.getSourceFileOfNode(ke),$e=e.isJSDocTemplateTag(ke)?e.rangeOfNode(ke):e.rangeOfTypeParameters(rr,ke.typeParameters),ar=ke.typeParameters.length===1,ir=ar?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Wr=ar?ce:void 0;n(W,1,e.createFileDiagnostic(rr,$e.pos,$e.end-$e.pos,ir,Wr))}}else n(W,1,e.createDiagnosticForNode(W,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ce))}}}function OD(r){return!(Ya(r.symbol).isReferenced&262144)&&!My(r.name)}function Ly(r,n,i,a){var s=String(a(n)),l=r.get(s);l?l[1].push(i):r.set(s,[n,[i]])}function xT(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function c8(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&My(r.name)):My(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||TT(r))&&My(r.name)}function CT(r,n){var i=new e.Map,a=new e.Map,s=new e.Map;r.locals.forEach(function(l){if(!(l.flags&262144?!(l.flags&3&&!(l.isReferenced&3)):l.isReferenced||l.exportSymbol)&&l.declarations)for(var g=0,W=l.declarations;g<W.length;g++){var ce=W[g];if(!c8(ce))if(TT(ce))Ly(i,l8(ce),ce,V);else if(e.isBindingElement(ce)&&e.isObjectBindingPattern(ce.parent)){var ke=e.last(ce.parent.elements);(ce===ke||!e.last(ce.parent.elements).dotDotDotToken)&&Ly(a,ce.parent,ce,V)}else if(e.isVariableDeclaration(ce))Ly(s,ce.parent,ce,V);else{var rr=l.valueDeclaration&&xT(l.valueDeclaration),$e=l.valueDeclaration&&e.getNameOfDeclaration(l.valueDeclaration);rr&&$e?!e.isParameterPropertyDeclaration(rr,rr.parent)&&!e.parameterIsThisKeyword(rr)&&!My($e)&&(e.isBindingElement(ce)&&e.isArrayBindingPattern(ce.parent)?Ly(a,ce.parent,ce,V):n(rr,1,e.createDiagnosticForNode($e,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(l)))):ST(ce,e.symbolName(l),n)}}}),i.forEach(function(l){var g=l[0],W=l[1],ce=g.parent,ke=(g.name?1:0)+(g.namedBindings?g.namedBindings.kind===271?1:g.namedBindings.elements.length:0);if(ke===W.length)n(ce,0,W.length===1?e.createDiagnosticForNode(ce,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(W).name)):e.createDiagnosticForNode(ce,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var rr=0,$e=W;rr<$e.length;rr++){var ar=$e[rr];ST(ar,e.idText(ar.name),n)}}),a.forEach(function(l){var g=l[0],W=l[1],ce=xT(g.parent)?1:0;if(g.elements.length===W.length)W.length===1&&g.parent.kind===257&&g.parent.parent.kind===258?Ly(s,g.parent.parent,g.parent,V):n(g,ce,W.length===1?e.createDiagnosticForNode(g,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ry(e.first(W).name)):e.createDiagnosticForNode(g,e.Diagnostics.All_destructured_elements_are_unused));else for(var ke=0,rr=W;ke<rr.length;ke++){var $e=rr[ke];n($e,ce,e.createDiagnosticForNode($e,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ry($e.name)))}}),s.forEach(function(l){var g=l[0],W=l[1];if(g.declarations.length===W.length)n(g,0,W.length===1?e.createDiagnosticForNode(e.first(W).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ry(e.first(W).name)):e.createDiagnosticForNode(g.parent.kind===240?g.parent:g,e.Diagnostics.All_variables_are_unused));else for(var ce=0,ke=W;ce<ke.length;ce++){var rr=ke[ce];n(rr,0,e.createDiagnosticForNode(rr,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ry(rr.name)))}})}function u8(){for(var r,n=0,i=ys;n<i.length;n++){var a=i[n];if(!((r=zi(a))===null||r===void 0?void 0:r.isReferenced)){var s=e.walkUpBindingElementsAndPatterns(a);e.Debug.assert(e.isParameterDeclaration(s),"Only parameter declaration should be checked here");var l=e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,e.declarationNameToString(a.name),e.declarationNameToString(a.propertyName));s.type||e.addRelatedInfo(l,e.createFileDiagnostic(e.getSourceFileOfNode(s),s.end,1,e.Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,e.declarationNameToString(a.propertyName))),fe.add(l)}}}function Ry(r){switch(r.kind){case 79:return e.idText(r);case 204:case 203:return Ry(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function TT(r){return r.kind===270||r.kind===273||r.kind===271}function l8(r){return r.kind===270?r:r.kind===271?r.parent:r.parent.parent}function T0(r){if(r.kind===238&&Uf(r),e.isFunctionOrModuleBlock(r)){var n=_o;e.forEach(r.statements,eo),_o=n}else e.forEach(r.statements,eo);r.locals&&B_(r)}function f8(r){d>=2||!e.hasRestParameter(r)||r.flags&16777216||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===ve.escapedName&&pl("noEmit",n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Dv(r,n,i){if((n==null?void 0:n.escapedText)!==i||r.kind===169||r.kind===168||r.kind===171||r.kind===170||r.kind===174||r.kind===175||r.kind===299||r.flags&16777216||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var a=e.getRootDeclaration(r);return!(e.isParameter(a)&&e.nodeIsMissing(a.parent.body))}function _8(r){e.findAncestor(r,function(n){if(Zg(n)&4){var i=r.kind!==79;return i?Zr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Zr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function d8(r){e.findAncestor(r,function(n){if(Zg(n)&8){var i=r.kind!==79;return i?Zr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Zr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function p8(r,n){if(!(j>=e.ModuleKind.ES2015&&!(j>=e.ModuleKind.Node16&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!n||!Dv(r,n,"require")&&!Dv(r,n,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var i=Wa(r);i.kind===308&&e.isExternalOrCommonJsModule(i)&&pl("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n))}}function g8(r,n){if(!(!n||d>=4||!Dv(r,n,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var i=Wa(r);i.kind===308&&e.isExternalOrCommonJsModule(i)&&i.flags&2048&&pl("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n))}}function m8(r,n){d<=8&&(Dv(r,n,"WeakMap")||Dv(r,n,"WeakSet"))&&Ns.push(r)}function v8(r){var n=e.getEnclosingBlockScopeContainer(r);Zg(n)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),pl("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function y8(r,n){n&&d>=2&&d<=8&&Dv(r,n,"Reflect")&&jo.push(r)}function h8(r){var n=!1;if(e.isClassExpression(r))for(var i=0,a=r.members;i<a.length;i++){var s=a[i];if(Zg(s)&134217728){n=!0;break}}else if(e.isFunctionExpression(r))Zg(r)&134217728&&(n=!0);else{var l=e.getEnclosingBlockScopeContainer(r);l&&Zg(l)&134217728&&(n=!0)}n&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),pl("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function Nm(r,n){!n||(p8(r,n),g8(r,n),m8(r,n),y8(r,n),e.isClassLike(r)?(Pm(n,e.Diagnostics.Class_name_cannot_be_0),r.flags&16777216||H8(n)):e.isEnumDeclaration(r)&&Pm(n,e.Diagnostics.Enum_name_cannot_be_0))}function D8(r){if(!((e.getCombinedNodeFlags(r)&3)!=0||e.isParameterDeclaration(r))&&!(r.kind===257&&!r.initializer)){var n=zi(r);if(n.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var i=is(r,r.name.escapedText,3,void 0,void 0,!1);if(i&&i!==n&&i.flags&2&&a0(i)&3){var a=e.getAncestor(i.valueDeclaration,258),s=a.parent.kind===240&&a.parent.parent?a.parent.parent:void 0,l=s&&(s.kind===238&&e.isFunctionLike(s.parent)||s.kind===265||s.kind===264||s.kind===308);if(!l){var g=Xt(i);Zr(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,g,g)}}}}}function bv(r){return r===Ye?Te:r===ns?Es:r}function E0(r){var n;if(Fy(r),e.isBindingElement(r)||eo(r.type),!!r.name){if(r.name.kind===164&&(f_(r.name),e.hasOnlyExpressionInitializer(r)&&r.initializer&&Ds(r.initializer)),e.isBindingElement(r)){if(r.propertyName&&e.isIdentifier(r.name)&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){ys.push(r);return}e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&d<5&&_c(r,4),r.propertyName&&r.propertyName.kind===164&&f_(r.propertyName);var i=r.parent.parent,a=r.dotDotDotToken?64:0,s=Bc(i,a),l=r.propertyName||r.name;if(s&&!e.isBindingPattern(l)){var g=L_(l);if(hu(g)){var W=Du(g),ce=Zt(s,W);ce&&(by(ce,void 0,!1),Y2(r,!!i.initializer&&i.initializer.kind===106,!1,s,ce))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===204&&d<2&&Y.downlevelIteration&&_c(r,512),e.forEach(r.name.elements,eo)),e.isParameter(r)&&r.initializer&&e.nodeIsMissing(e.getContainingFunction(r).body)){Zr(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var ke=e.hasOnlyExpressionInitializer(r)&&r.initializer&&r.parent.parent.kind!==246,rr=!e.some(r.name.elements,e.not(e.isOmittedExpression));if(ke||rr){var $e=Lt(r);if(ke){var ar=Ds(r.initializer);Re&&rr?Yx(ar,r):R_(ar,Lt(r),r,r.initializer)}rr&&(e.isArrayBindingPattern(r.name)?J_(65,$e,zr,r):Re&&Yx($e,r))}return}var ir=zi(r);if(ir.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.kind===205?r.parent.parent:r)){I0(r);return}var Wr=bv(Li(ir));if(r===ir.valueDeclaration){var sn=e.hasOnlyExpressionInitializer(r)&&e.getEffectiveInitializer(r);if(sn){var In=e.isInJSFile(r)&&e.isObjectLiteralExpression(sn)&&(sn.properties.length===0||e.isPrototypeAccess(r.name))&&!!((n=ir.exports)===null||n===void 0?void 0:n.size);!In&&r.parent.parent.kind!==246&&R_(Ds(sn),Wr,r,sn,void 0)}ir.declarations&&ir.declarations.length>1&&e.some(ir.declarations,function(Kn){return Kn!==r&&e.isVariableLike(Kn)&&!kT(Kn,r)})&&Zr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var Sn=bv(Lt(r));!ca(Wr)&&!ca(Sn)&&!Lf(Wr,Sn)&&!(ir.flags&67108864)&&ET(ir.valueDeclaration,Wr,r,Sn),e.hasOnlyExpressionInitializer(r)&&r.initializer&&R_(Ds(r.initializer),Sn,r,r.initializer,void 0),ir.valueDeclaration&&!kT(r,ir.valueDeclaration)&&Zr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==169&&r.kind!==168&&(mv(r),(r.kind===257||r.kind===205)&&D8(r),Nm(r,r.name))}}function ET(r,n,i,a){var s=e.getNameOfDeclaration(i),l=i.kind===169||i.kind===168?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,g=e.declarationNameToString(s),W=Zr(s,l,g,Oi(n),Oi(a));r&&e.addRelatedInfo(W,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,g))}function kT(r,n){if(r.kind===166&&n.kind===257||r.kind===257&&n.kind===166)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(n))return!1;var i=8|16|512|256|64|32;return e.getSelectedEffectiveModifierFlags(r,i)===e.getSelectedEffectiveModifierFlags(n,i)}function FD(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),$5(r),E0(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function b8(r){return X5(r),E0(r)}function S8(r){!jf(r)&&!tb(r.declarationList)&&e7(r),e.forEach(r.declarationList.declarations,eo)}function x8(r){Uf(r),ya(r.expression)}function C8(r){Uf(r);var n=Qg(r.expression);MD(r.expression,n,r.thenStatement),eo(r.thenStatement),r.thenStatement.kind===239&&Zr(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),eo(r.elseStatement)}function MD(r,n,i){if(!Re)return;for(a(r,i);e.isBinaryExpression(r)&&r.operatorToken.kind===56;)r=r.left,a(r,i);function a(s,l){var g=e.isBinaryExpression(s)&&(s.operatorToken.kind===56||s.operatorToken.kind===55)?s.right:s;if(!e.isModuleExportsAccessExpression(g)){var W=g===s?n:Qg(g),ce=e.isPropertyAccessExpression(g)&&$C(g.expression);if(!(!(fc(W)&4194304)||ce)){var ke=_a(W,0),rr=!!vv(W);if(!(ke.length===0&&!rr)){var $e=e.isIdentifier(g)?g:e.isPropertyAccessExpression(g)?g.name:e.isBinaryExpression(g)&&e.isIdentifier(g.right)?g.right:void 0,ar=$e&&Ku($e);if(!(!ar&&!rr)){var ir=ar&&e.isBinaryExpression(s.parent)&&E8(s.parent,ar)||ar&&l&&T8(s,l,$e,ar);ir||(rr?$l(g,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,ad(W)):Zr(g,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}}function T8(r,n,i,a){return!!e.forEachChild(n,function s(l){if(e.isIdentifier(l)){var g=Ku(l);if(g&&g===a){if(e.isIdentifier(r)||e.isIdentifier(i)&&e.isBinaryExpression(i.parent))return!0;for(var W=i.parent,ce=l.parent;W&&ce;){if(e.isIdentifier(W)&&e.isIdentifier(ce)||W.kind===108&&ce.kind===108)return Ku(W)===Ku(ce);if(e.isPropertyAccessExpression(W)&&e.isPropertyAccessExpression(ce)){if(Ku(W.name)!==Ku(ce.name))return!1;ce=ce.expression,W=W.expression}else if(e.isCallExpression(W)&&e.isCallExpression(ce))ce=ce.expression,W=W.expression;else return!1}}}return e.forEachChild(l,s)})}function E8(r,n){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var i=e.forEachChild(r.right,function a(s){if(e.isIdentifier(s)){var l=Ku(s);if(l&&l===n)return!0}return e.forEachChild(s,a)});if(i)return!0;r=r.parent}return!1}function k8(r){Uf(r),eo(r.statement),Qg(r.expression)}function A8(r){Uf(r),Qg(r.expression),eo(r.statement)}function AT(r,n){return r.flags&16384&&Zr(n,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function Qg(r,n){return AT(ya(r,n),r)}function N8(r){Uf(r)||r.initializer&&r.initializer.kind===258&&tb(r.initializer),r.initializer&&(r.initializer.kind===258?e.forEach(r.initializer.declarations,FD):ya(r.initializer)),r.condition&&Qg(r.condition),r.incrementor&&ya(r.incrementor),eo(r.statement),r.locals&&B_(r)}function P8(r){xE(r);var n=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(n&&e.isClassStaticBlockDeclaration(n))mi(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var i=e.getFunctionFlags(n);(i&(4|2))==2&&d<99&&_c(r,16384)}else Y.downlevelIteration&&d<2&&_c(r,256);if(r.initializer.kind===258)NT(r);else{var a=r.initializer,s=By(r);if(a.kind===206||a.kind===207)Up(a,s||ue);else{var l=ya(a);pv(a,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),s&&R_(s,l,a,r.expression)}}eo(r.statement),r.locals&&B_(r)}function I8(r){xE(r);var n=$2(ya(r.expression));if(r.initializer.kind===258){var i=r.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Zr(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),NT(r)}else{var a=r.initializer,s=ya(a);a.kind===206||a.kind===207?Zr(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):io(Rk(n),s)?pv(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Zr(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(n===we||!Bs(n,67108864|58982400))&&Zr(r.expression,e.Diagnostics.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,Oi(n)),eo(r.statement),r.locals&&B_(r)}function NT(r){var n=r.initializer;if(n.declarations.length>=1){var i=n.declarations[0];FD(i)}}function By(r){var n=r.awaitModifier?15:13;return J_(n,Sm(r.expression),zr,r.expression)}function J_(r,n,i,a){return Ba(n)?n:LD(r,n,i,a,!0)||Te}function LD(r,n,i,a,s){var l=(r&2)!=0;if(n===we){jD(a,n,l);return}var g=d>=2,W=!g&&Y.downlevelIteration,ce=Y.noUncheckedIndexedAccess&&!!(r&128);if(g||W||l){var ke=A0(n,r,g?a:void 0);if(s&&ke){var rr=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?e.Diagnostics.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;rr&&Fc(i,ke.nextType,a,rr)}if(ke||g)return ce?av(ke&&ke.yieldType):ke&&ke.yieldType}var $e=n,ar=!1,ir=!1;if(r&4){if($e.flags&1048576){var Wr=n.types,sn=e.filter(Wr,function(pt){return!(pt.flags&402653316)});sn!==Wr&&($e=Ot(sn,2))}else $e.flags&402653316&&($e=we);if(ir=$e!==n,ir&&(d<1&&a&&(Zr(a,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),ar=!0),$e.flags&131072))return ce?av(yn):yn}if(!Td($e)){if(a&&!ar){var In=!!(r&4)&&!ir,Sn=Ri(In,W),Kn=Sn[0],ei=Sn[1];$l(a,ei&&!!vv($e),Kn,Oi($e))}return ir?ce?av(yn):yn:void 0}var Ti=cl($e,Hn);if(ir&&Ti)return Ti.flags&402653316&&!Y.noUncheckedIndexedAccess?yn:Ot(ce?[Ti,yn,zr]:[Ti,yn],2);return r&128?av(Ti):Ti;function Ri(pt,rt){var Da;if(rt)return pt?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var St=PT(r,0,n,void 0);return St?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:w8((Da=n.symbol)===null||Da===void 0?void 0:Da.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:pt?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function w8(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 PT(r,n,i,a){if(!Ba(i)){var s=A0(i,r,a);return s&&s[q(n)]}}function d_(r,n,i){if(r===void 0&&(r=we),n===void 0&&(n=we),i===void 0&&(i=_r),r.flags&67359327&&n.flags&(1|131072|2|16384|32768)&&i.flags&(1|131072|2|16384|32768)){var a=wu([r,n,i]),s=Dt.get(a);return s||(s={yieldType:r,returnType:n,nextType:i},Dt.set(a,s)),s}return{yieldType:r,returnType:n,nextType:i}}function IT(r){for(var n,i,a,s=0,l=r;s<l.length;s++){var g=l[s];if(!(g===void 0||g===Ft)){if(g===Pa)return Pa;n=e.append(n,g.yieldType),i=e.append(i,g.returnType),a=e.append(a,g.nextType)}}return n||i||a?d_(n&&Ot(n),i&&Ot(i),a&&ro(a)):Ft}function k0(r,n){return r[n]}function vf(r,n,i){return r[n]=i}function A0(r,n,i){var a,s;if(Ba(r))return Pa;if(!(r.flags&1048576)){var l=i?{errors:void 0}:void 0,g=wT(r,n,i,l);if(g===Ft){if(i){var W=jD(i,r,!!(n&2));(l==null?void 0:l.errors)&&e.addRelatedInfo.apply(void 0,zn([W],l.errors,!1))}return}else if((a=l==null?void 0:l.errors)===null||a===void 0?void 0:a.length)for(var ce=0,ke=l.errors;ce<ke.length;ce++){var rr=ke[ce];fe.add(rr)}return g}var $e=n&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",ar=k0(r,$e);if(ar)return ar===Ft?void 0:ar;for(var ir,Wr=0,sn=r.types;Wr<sn.length;Wr++){var In=sn[Wr],l=i?{errors:void 0}:void 0,Sn=wT(In,n,i,l);if(Sn===Ft){if(i){var W=jD(i,r,!!(n&2));(l==null?void 0:l.errors)&&e.addRelatedInfo.apply(void 0,zn([W],l.errors,!1))}vf(r,$e,Ft);return}else if((s=l==null?void 0:l.errors)===null||s===void 0?void 0:s.length)for(var Kn=0,ei=l.errors;Kn<ei.length;Kn++){var rr=ei[Kn];fe.add(rr)}ir=e.append(ir,Sn)}var Ti=ir?IT(ir):Ft;return vf(r,$e,Ti),Ti===Ft?void 0:Ti}function RD(r,n){if(r===Ft)return Ft;if(r===Pa)return Pa;var i=r.yieldType,a=r.returnType,s=r.nextType;return n&&h1(!0),d_(ug(i,n)||Te,ug(a,n)||Te,s)}function wT(r,n,i,a){if(Ba(r))return Pa;var s=!1;if(n&2){var l=BD(r,Nn)||FT(r,Nn);if(l)if(l===Ft&&i)s=!0;else return n&8?RD(l,i):l}if(n&1){var l=BD(r,wn)||FT(r,wn);if(l)if(l===Ft&&i)s=!0;else if(n&2){if(l!==Ft)return l=RD(l,i),s?l:vf(r,"iterationTypesOfAsyncIterable",l)}else return l}if(n&2){var l=JD(r,Nn,i,a,s);if(l!==Ft)return l}if(n&1){var l=JD(r,wn,i,a,s);if(l!==Ft)return n&2?(l=RD(l,i),s?l:vf(r,"iterationTypesOfAsyncIterable",l)):l}return Ft}function BD(r,n){return k0(r,n.iterableCacheKey)}function OT(r,n){var i=BD(r,n)||JD(r,n,void 0,void 0,!1);return i===Ft?tn:i}function FT(r,n){var i;if(yu(r,i=n.getGlobalIterableType(!1))||yu(r,i=n.getGlobalIterableIteratorType(!1))){var a=No(r)[0],s=OT(i,n),l=s.returnType,g=s.nextType;return vf(r,n.iterableCacheKey,d_(n.resolveIterationType(a,void 0)||a,n.resolveIterationType(l,void 0)||l,g))}if(yu(r,n.getGlobalGeneratorType(!1))){var W=No(r),a=W[0],l=W[1],g=W[2];return vf(r,n.iterableCacheKey,d_(n.resolveIterationType(a,void 0)||a,n.resolveIterationType(l,void 0)||l,g))}}function O8(r){var n=Ab(!1),i=n&&Na(Li(n),e.escapeLeadingUnderscores(r));return i&&hu(i)?Du(i):"__@".concat(r)}function JD(r,n,i,a,s){var l,g=Zt(r,O8(n.iteratorSymbolName)),W=g&&!(g.flags&16777216)?Li(g):void 0;if(Ba(W))return s?Pa:vf(r,n.iterableCacheKey,Pa);var ce=W?_a(W,0):void 0;if(!e.some(ce))return s?Ft:vf(r,n.iterableCacheKey,Ft);var ke=ro(e.map(ce,Ao)),rr=(l=MT(ke,n,i,a,s))!==null&&l!==void 0?l:Ft;return s?rr:vf(r,n.iterableCacheKey,rr)}function jD(r,n,i){var a=i?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,s=!!vv(n)||!i&&e.isForOfStatement(r.parent)&&r.parent.expression===r&&gh(!1)!==Ea&&io(n,gh(!1));return $l(r,s,a,Oi(n))}function F8(r,n,i,a){return MT(r,n,i,a,!1)}function MT(r,n,i,a,s){if(Ba(r))return Pa;var l=LT(r,n)||M8(r,n);return l===Ft&&i&&(l=void 0,s=!0),l!=null||(l=BT(r,n,i,a,s)),l===Ft?void 0:l}function LT(r,n){return k0(r,n.iteratorCacheKey)}function M8(r,n){var i=n.getGlobalIterableIteratorType(!1);if(yu(r,i)){var a=No(r)[0],s=LT(i,n)||BT(i,n,void 0,void 0,!1),l=s===Ft?tn:s,g=l.returnType,W=l.nextType;return vf(r,n.iteratorCacheKey,d_(a,g,W))}if(yu(r,n.getGlobalIteratorType(!1))||yu(r,n.getGlobalGeneratorType(!1))){var ce=No(r),a=ce[0],g=ce[1],W=ce[2];return vf(r,n.iteratorCacheKey,d_(a,g,W))}}function RT(r,n){var i=Na(r,"done")||ti;return io(n===0?ti:Ni,i)}function L8(r){return RT(r,0)}function R8(r){return RT(r,1)}function B8(r){if(Ba(r))return Pa;var n=k0(r,"iterationTypesOfIteratorResult");if(n)return n;if(yu(r,tk(!1))){var i=No(r)[0];return vf(r,"iterationTypesOfIteratorResult",d_(i,void 0,void 0))}if(yu(r,ak(!1))){var a=No(r)[0];return vf(r,"iterationTypesOfIteratorResult",d_(void 0,a,void 0))}var s=Qs(r,L8),l=s!==we?Na(s,"value"):void 0,g=Qs(r,R8),W=g!==we?Na(g,"value"):void 0;return!l&&!W?vf(r,"iterationTypesOfIteratorResult",Ft):vf(r,"iterationTypesOfIteratorResult",d_(l,W||Ir,void 0))}function UD(r,n,i,a,s){var l,g,W,ce,ke,rr,$e=Zt(r,i);if(!(!$e&&i!=="next")){var ar=$e&&!(i==="next"&&$e.flags&16777216)?i==="next"?Li($e):bu(Li($e),2097152):void 0;if(Ba(ar))return i==="next"?Pa:Ve;var ir=ar?_a(ar,0):e.emptyArray;if(ir.length===0){if(a){var Wr=i==="next"?n.mustHaveANextMethodDiagnostic:n.mustBeAMethodDiagnostic;s?((l=s.errors)!==null&&l!==void 0||(s.errors=[]),s.errors.push(e.createDiagnosticForNode(a,Wr,i))):Zr(a,Wr,i)}return i==="next"?Ft:void 0}if((ar==null?void 0:ar.symbol)&&ir.length===1){var sn=n.getGlobalGeneratorType(!1),In=n.getGlobalIteratorType(!1),Sn=((W=(g=sn.symbol)===null||g===void 0?void 0:g.members)===null||W===void 0?void 0:W.get(i))===ar.symbol,Kn=!Sn&&((ke=(ce=In.symbol)===null||ce===void 0?void 0:ce.members)===null||ke===void 0?void 0:ke.get(i))===ar.symbol;if(Sn||Kn){var ei=Sn?sn:In,Ti=ar.mapper;return d_(Sd(ei.typeParameters[0],Ti),Sd(ei.typeParameters[1],Ti),i==="next"?Sd(ei.typeParameters[2],Ti):void 0)}}for(var Ri,pt,rt=0,Da=ir;rt<Da.length;rt++){var St=Da[rt];i!=="throw"&&e.some(St.parameters)&&(Ri=e.append(Ri,fl(St,0))),pt=e.append(pt,Ao(St))}var ba,Ta;if(i!=="throw"){var wa=Ri?Ot(Ri):_r;if(i==="next")Ta=wa;else if(i==="return"){var So=n.resolveIterationType(wa,a)||Te;ba=e.append(ba,So)}}var xo,uo=pt?ro(pt):we,sa=n.resolveIterationType(uo,a)||Te,si=B8(sa);return si===Ft?(a&&(s?((rr=s.errors)!==null&&rr!==void 0||(s.errors=[]),s.errors.push(e.createDiagnosticForNode(a,n.mustHaveAValueDiagnostic,i))):Zr(a,n.mustHaveAValueDiagnostic,i)),xo=Te,ba=e.append(ba,Te)):(xo=si.yieldType,ba=e.append(ba,si.returnType)),d_(xo,Ot(ba),Ta)}}function BT(r,n,i,a,s){var l=IT([UD(r,n,"next",i,a),UD(r,n,"return",i,a),UD(r,n,"throw",i,a)]);return s?l:vf(r,n.iteratorCacheKey,l)}function sp(r,n,i){if(!Ba(n)){var a=JT(n,i);return a&&a[q(r)]}}function JT(r,n){if(Ba(r))return Pa;var i=n?2:1,a=n?Nn:wn;return A0(r,i,void 0)||F8(r,a,void 0,void 0)}function J8(r){Uf(r)||Q5(r)}function N0(r,n){var i=!!(n&1),a=!!(n&2);if(i){var s=sp(1,r,a);return s?a?__(km(s)):s:ue}return a?__(r)||ue:r}function jT(r,n){var i=N0(n,e.getFunctionFlags(r));return!!i&&rs(i,16384|3)}function j8(r){var n;if(!Uf(r)){var i=e.getContainingFunctionOrClassStaticBlock(r);if(i&&e.isClassStaticBlockDeclaration(i)){Ws(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!i){Ws(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var a=Vu(i),s=Ao(a),l=e.getFunctionFlags(i);if(Re||r.expression||s.flags&131072){var g=r.expression?Ds(r.expression):zr;if(i.kind===175)r.expression&&Zr(r,e.Diagnostics.Setters_cannot_return_a_value);else if(i.kind===173)r.expression&&!R_(g,s,r,r.expression)&&Zr(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Pg(i)){var W=(n=N0(s,l))!==null&&n!==void 0?n:s,ce=l&2?hv(g,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g;W&&R_(ce,W,r,r.expression)}}else i.kind!==173&&Y.noImplicitReturns&&!jT(i,s)&&Zr(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function U8(r){Uf(r)||r.flags&32768&&Ws(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ya(r.expression);var n=e.getSourceFileOfNode(r);if(!zp(n)){var i=e.getSpanOfTokenAtPosition(n,r.pos).start,a=r.statement.pos;cp(n,i,a-i,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function z8(r){Uf(r);var n,i=!1,a=ya(r.expression),s=Bg(a);e.forEach(r.caseBlock.clauses,function(l){l.kind===293&&!i&&(n===void 0?n=l:(mi(l,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),l.kind===292&&Z(g(l)),e.forEach(l.statements,eo),Y.noFallthroughCasesInSwitch&&l.fallthroughFlowNode&&dy(l.fallthroughFlowNode)&&Zr(l,e.Diagnostics.Fallthrough_case_in_switch);function g(W){return function(){var ce=ya(W.expression),ke=Bg(ce),rr=a;(!ke||!s)&&(ce=ke?ql(ce):ce,rr=ql(a)),xD(rr,ce)||xS(ce,rr,W.expression,void 0)}}}),r.caseBlock.locals&&B_(r.caseBlock)}function W8(r){Uf(r)||e.findAncestor(r.parent,function(n){return e.isFunctionLike(n)?"quit":n.kind===253&&n.label.escapedText===r.label.escapedText?(mi(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),eo(r.statement)}function V8(r){Uf(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&f7(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&ya(r.expression)}function q8(r){Uf(r),T0(r.tryBlock);var n=r.catchClause;if(n){if(n.variableDeclaration){var i=n.variableDeclaration,a=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(i));if(a){var s=yl(i,!1,0);s&&!(s.flags&3)&&Ws(a,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(i.initializer)Ws(i.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var l=n.block.locals;l&&e.forEachKey(n.locals,function(g){var W=l.get(g);(W==null?void 0:W.valueDeclaration)&&(W.flags&2)!=0&&mi(W.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,g)})}}T0(n.block)}r.finallyBlock&&T0(r.finallyBlock)}function P0(r,n,i){var a=hs(r);if(a.length!==0){for(var s=0,l=Mf(r);s<l.length;s++){var g=l[s];i&&g.flags&4194304||UT(r,g,pm(g,8576,!0),ju(g))}var W=n.valueDeclaration;if(W&&e.isClassLike(W))for(var ce=0,ke=W.members;ce<ke.length;ce++){var rr=ke[ce];if(!e.isStatic(rr)&&!Pp(rr)){var $e=zi(rr);UT(r,$e,Xs(rr.name.expression),ju($e))}}if(a.length>1)for(var ar=0,ir=a;ar<ir.length;ar++){var Wr=ir[ar];G8(r,Wr)}}}function UT(r,n,i,a){var s=n.valueDeclaration,l=e.getNameOfDeclaration(s);if(!(l&&e.isPrivateIdentifier(l)))for(var g=Jm(r,i),W=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,261):void 0,ce=s&&s.kind===223||l&&l.kind===164?s:void 0,ke=Nc(n)===r.symbol?s:void 0,rr=function(Wr){var sn=Wr.declaration&&Nc(zi(Wr.declaration))===r.symbol?Wr.declaration:void 0,In=ke||sn||(W&&!e.some(nu(r),function(Kn){return!!w_(Kn,n.escapedName)&&!!cl(Kn,Wr.keyType)})?W:void 0);if(In&&!io(a,Wr.type)){var Sn=Zl(In,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Xt(n),Oi(a),Oi(Wr.keyType),Oi(Wr.type));ce&&In!==ce&&e.addRelatedInfo(Sn,e.createDiagnosticForNode(ce,e.Diagnostics._0_is_declared_here,Xt(n))),fe.add(Sn)}},$e=0,ar=g;$e<ar.length;$e++){var ir=ar[$e];rr(ir)}}function G8(r,n){for(var i=n.declaration,a=Jm(r,n.keyType),s=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,261):void 0,l=i&&Nc(zi(i))===r.symbol?i:void 0,g=function(rr){if(rr===n)return"continue";var $e=rr.declaration&&Nc(zi(rr.declaration))===r.symbol?rr.declaration:void 0,ar=l||$e||(s&&!e.some(nu(r),function(ir){return!!Wu(ir,n.keyType)&&!!cl(ir,rr.keyType)})?s:void 0);ar&&!io(n.type,rr.type)&&Zr(ar,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Oi(n.keyType),Oi(n.type),Oi(rr.keyType),Oi(rr.type))},W=0,ce=a;W<ce.length;W++){var ke=ce[W];g(ke)}}function Pm(r,n){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Zr(r,n,r.escapedText)}}function H8(r){d>=1&&r.escapedText==="Object"&&(j<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Zr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[j])}function K8(r){var n=e.filter(e.getJSDocTags(r),e.isJSDocParameterTag);if(!!e.length(n)){var i=e.isInJSFile(r),a=new e.Set,s=new e.Set;e.forEach(r.parameters,function(W,ce){var ke=W.name;e.isIdentifier(ke)&&a.add(ke.escapedText),e.isBindingPattern(ke)&&s.add(ce)});var l=c1(r);if(l){var g=e.lastOrUndefined(n);i&&g&&e.isIdentifier(g.name)&&g.typeExpression&&g.typeExpression.type&&!a.has(g.name.escapedText)&&!Fu(zt(g.typeExpression.type))&&Zr(g.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(g.name))}else e.forEach(n,function(W,ce){var ke=W.name,rr=W.isNameFirst;s.has(ce)||e.isIdentifier(ke)&&a.has(ke.escapedText)||(e.isQualifiedName(ke)?i&&Zr(ke,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(ke),e.entityNameToString(ke.left)):rr||xu(i,ke,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(ke)))})}}function Jy(r){var n=!1;if(r)for(var i=0;i<r.length;i++){var a=r[i];oT(a),Z(s(a,i))}function s(l,g){return function(){l.default?(n=!0,Q8(l.default,r,g)):n&&Zr(l,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var W=0;W<g;W++)r[W].symbol===l.symbol&&Zr(l.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(l.name))}}}function Q8(r,n,i){a(r);function a(s){if(s.kind===180){var l=Kv(s);if(l.flags&262144)for(var g=i;g<n.length;g++)l.symbol===zi(n[g])&&Zr(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,a)}}function zT(r){if(!(r.declarations&&r.declarations.length===1)){var n=Qt(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=nI(r);if(!i||i.length<=1)return;var a=nt(r);if(!WT(i,a.localTypeParameters,e.getEffectiveTypeParameterDeclarations))for(var s=Xt(r),l=0,g=i;l<g.length;l++){var W=g[l];Zr(W.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function WT(r,n,i){for(var a=e.length(n),s=ul(n),l=0,g=r;l<g.length;l++){var W=g[l],ce=i(W),ke=ce.length;if(ke<s||ke>a)return!1;for(var rr=0;rr<ke;rr++){var $e=ce[rr],ar=n[rr];if($e.name.escapedText!==ar.symbol.escapedName)return!1;var ir=e.getEffectiveConstraintOfTypeParameter($e),Wr=ir&&zt(ir),sn=rc(ar);if(Wr&&sn&&!Lf(Wr,sn))return!1;var In=$e.default&&zt($e.default),Sn=pd(ar);if(In&&Sn&&!Lf(In,Sn))return!1}}return!0}function X8(r){return VT(r),Im(r),Li(zi(r))}function Z8(r){e.forEach(r.members,eo),B_(r)}function Y8(r){var n=e.find(r.modifiers,e.isDecorator);n&&e.some(r.members,function(i){return e.hasStaticModifier(i)&&e.isPrivateIdentifierClassElementDeclaration(i)})&&mi(n,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,1024)&&Ws(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),VT(r),e.forEach(r.members,eo),B_(r)}function VT(r){F5(r),Fy(r),Nm(r,r.name),Jy(e.getEffectiveTypeParameterDeclarations(r)),mv(r);var n=zi(r),i=nt(n),a=Qc(i),s=Li(n);zT(n),x0(n),vP(r);var l=!!(r.flags&16777216);l||yP(r);var g=e.getEffectiveBaseTypeNode(r);if(g){e.forEach(g.typeArguments,eo),d<2&&_c(g.parent,1);var W=e.getClassExtendsHeritageElement(r);W&&W!==g&&ya(W.expression);var ce=nu(i);ce.length&&Z(function(){var Wr=ce[0],sn=cc(i),In=re(sn);if(eI(In,g),eo(g.expression),e.some(g.typeArguments)){e.forEach(g.typeArguments,eo);for(var Sn=0,Kn=nm(In,g.typeArguments,g);Sn<Kn.length;Sn++){var ei=Kn[Sn];if(!dT(g,ei.typeParameters))break}}var Ti=Qc(Wr,i.thisType);if(Fc(a,Ti,void 0)?Fc(s,hS(In),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):HT(r,a,Ti,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),sn.flags&8650752)if(!vg(s))Zr(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Ri=_a(sn,1);Ri.some(function(rt){return rt.flags&4})&&!e.hasSyntacticModifier(r,256)&&Zr(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(In.symbol&&In.symbol.flags&32)&&!(sn.flags&8650752)){var pt=Qp(In,g.typeArguments,g);e.forEach(pt,function(rt){return!Sl(rt.declaration)&&!Lf(Ao(rt),Wr)})&&Zr(g.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}iI(i,Wr)})}$8(r,i,a,s);var ke=e.getEffectiveImplementsTypeNodes(r);if(ke)for(var rr=0,$e=ke;rr<$e.length;rr++){var ar=$e[rr];(!e.isEntityNameExpression(ar.expression)||e.isOptionalChain(ar.expression))&&Zr(ar.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),ND(ar),Z(ir(ar))}Z(function(){P0(i,n),P0(s,n,!0),ED(r),oI(r)});function ir(Wr){return function(){var sn=ct(zt(Wr));if(!ca(sn))if(Ap(sn)){var In=sn.symbol&&sn.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,Sn=Qc(sn,i.thisType);Fc(a,Sn,void 0)||HT(r,a,Sn,In)}else Zr(Wr,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function $8(r,n,i,a){for(var s=e.getEffectiveBaseTypeNode(r),l=s&&nu(n),g=(l==null?void 0:l.length)?Qc(e.first(l),n.thisType):void 0,W=cc(n),ce=function(ar){if(e.hasAmbientModifier(ar))return"continue";e.isConstructorDeclaration(ar)&&e.forEach(ar.parameters,function(ir){e.isParameterPropertyDeclaration(ir,ar)&&qT(r,a,W,g,n,i,ir,!0)}),qT(r,a,W,g,n,i,ar,!1)},ke=0,rr=r.members;ke<rr.length;ke++){var $e=rr[ke];ce($e)}}function qT(r,n,i,a,s,l,g,W,ce){ce===void 0&&(ce=!0);var ke=g.name&&Ku(g.name)||Ku(g);return ke?GT(r,n,i,a,s,l,e.hasOverrideModifier(g),e.hasAbstractModifier(g),e.isStatic(g),W,e.symbolName(ke),ce?g:void 0):0}function GT(r,n,i,a,s,l,g,W,ce,ke,rr,$e){var ar=e.isInJSFile(r),ir=!!(r.flags&16777216);if(a&&(g||Y.noImplicitOverride)){var Wr=e.escapeLeadingUnderscores(rr),sn=ce?n:l,In=ce?i:a,Sn=Zt(sn,Wr),Kn=Zt(In,Wr),ei=Oi(a);if(Sn&&!Kn&&g){if($e){var Ti=sC(rr,In);Ti?Zr($e,ar?e.Diagnostics.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:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,ei,Xt(Ti)):Zr($e,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,ei)}return 2}else if(Sn&&(Kn==null?void 0:Kn.declarations)&&Y.noImplicitOverride&&!ir){var Ri=e.some(Kn.declarations,e.hasAbstractModifier);if(g)return 0;if(Ri){if(W&&Ri)return $e&&Zr($e,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,ei),1}else{if($e){var pt=ke?ar?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ar?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Zr($e,pt,ei)}return 1}}}else if(g){if($e){var rt=Oi(s);Zr($e,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,rt)}return 2}return 0}function HT(r,n,i,a){for(var s=!1,l=function(ke){if(e.isStatic(ke))return"continue";var rr=ke.name&&Ku(ke.name)||Ku(ke);if(rr){var $e=Zt(n,rr.escapedName),ar=Zt(i,rr.escapedName);if($e&&ar){var ir=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Xt(rr),Oi(n),Oi(i))};Fc(Li($e),Li(ar),ke.name||ke,void 0,ir)||(s=!0)}}},g=0,W=r.members;g<W.length;g++){var ce=W[g];l(ce)}s||Fc(n,i,r.name||r,a)}function eI(r,n){var i=_a(r,1);if(i.length){var a=i[0].declaration;if(a&&e.hasEffectiveModifier(a,8)){var s=e.getClassLikeDeclarationOfSymbol(r.symbol);HD(n,s)||Zr(n,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,kc(r.symbol))}}}function rI(r,n){if(!n.name)return 0;var i=zi(r),a=nt(i),s=Qc(a),l=Li(i),g=e.getEffectiveBaseTypeNode(r),W=g&&nu(a),ce=(W==null?void 0:W.length)?Qc(e.first(W),a.thisType):void 0,ke=cc(a),rr=n.parent?e.hasOverrideModifier(n):e.hasSyntacticModifier(n,16384),$e=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n.name));return GT(r,l,ke,ce,a,s,rr,e.hasAbstractModifier(n),e.isStatic(n),!1,$e)}function Xg(r){return e.getCheckFlags(r)&1?r.target:r}function nI(r){return e.filter(r.declarations,function(n){return n.kind===260||n.kind===261})}function iI(r,n){var i,a,s,l,g=vo(n),W=function(ar){var ir=Xg(ar);if(ir.flags&4194304)return"continue";var Wr=w_(r,ir.escapedName);if(!Wr)return"continue";var sn=Xg(Wr),In=e.getDeclarationModifierFlagsFromSymbol(ir);if(e.Debug.assert(!!sn,"derived should point to something, even if it is the base class' declaration."),sn===ir){var Sn=e.getClassLikeDeclarationOfSymbol(r.symbol);if(In&256&&(!Sn||!e.hasSyntacticModifier(Sn,256))){for(var Kn=0,ei=nu(r);Kn<ei.length;Kn++){var Ti=ei[Kn];if(Ti!==n){var Ri=w_(Ti,ir.escapedName),pt=Ri&&Xg(Ri);if(pt&&pt!==ir)return"continue-basePropertyCheck"}}Sn.kind===228?Zr(Sn,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Xt(ar),Oi(n)):Zr(Sn,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Oi(r),Xt(ar),Oi(n))}}else{var rt=e.getDeclarationModifierFlagsFromSymbol(sn);if(In&8||rt&8)return"continue";var Da=void 0,St=ir.flags&98308,ba=sn.flags&98308;if(St&&ba){if((e.getCheckFlags(ir)&6?(i=ir.declarations)===null||i===void 0?void 0:i.some(function(Rn){return KT(Rn,In)}):(a=ir.declarations)===null||a===void 0?void 0:a.every(function(Rn){return KT(Rn,In)}))||e.getCheckFlags(ir)&262144||sn.valueDeclaration&&e.isBinaryExpression(sn.valueDeclaration))return"continue";var Ta=St!==4&&ba===4,wa=St===4&&ba!==4;if(Ta||wa){var So=Ta?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Zr(e.getNameOfDeclaration(sn.valueDeclaration)||sn.valueDeclaration,So,Xt(ir),Oi(n),Oi(r))}else if(Ce){var xo=(s=sn.declarations)===null||s===void 0?void 0:s.find(function(Rn){return Rn.kind===169&&!Rn.initializer});if(xo&&!(sn.flags&33554432)&&!(In&256)&&!(rt&256)&&!((l=sn.declarations)===null||l===void 0?void 0:l.some(function(Rn){return!!(Rn.flags&16777216)}))){var uo=kf(e.getClassLikeDeclarationOfSymbol(r.symbol)),sa=xo.name;if(xo.exclamationToken||!uo||!e.isIdentifier(sa)||!Re||!XT(sa,r,uo)){var si=e.Diagnostics.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;Zr(e.getNameOfDeclaration(sn.valueDeclaration)||sn.valueDeclaration,si,Xt(ir),Oi(n))}}}return"continue"}else if(Z2(ir)){if(Z2(sn)||sn.flags&4)return"continue";e.Debug.assert(!!(sn.flags&98304)),Da=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ir.flags&98304?Da=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Da=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Zr(e.getNameOfDeclaration(sn.valueDeclaration)||sn.valueDeclaration,Da,Oi(n),Xt(ir),Oi(r))}};e:for(var ce=0,ke=g;ce<ke.length;ce++){var rr=ke[ce],$e=W(rr);switch($e){case"continue-basePropertyCheck":continue e}}}function KT(r,n){return n&256&&(!e.isPropertyDeclaration(r)||!r.initializer)||e.isInterfaceDeclaration(r.parent)}function tI(r,n,i){if(!e.length(n))return i;var a=new e.Map;e.forEach(i,function(ar){a.set(ar.escapedName,ar)});for(var s=0,l=n;s<l.length;s++)for(var g=l[s],W=vo(Qc(g,r.thisType)),ce=0,ke=W;ce<ke.length;ce++){var rr=ke[ce],$e=a.get(rr.escapedName);$e&&rr.parent===$e.parent&&a.delete(rr.escapedName)}return e.arrayFrom(a.values())}function aI(r,n){var i=nu(r);if(i.length<2)return!0;var a=new e.Map;e.forEach(Np(r).declaredProperties,function(Sn){a.set(Sn.escapedName,{prop:Sn,containingType:r})});for(var s=!0,l=0,g=i;l<g.length;l++)for(var W=g[l],ce=vo(Qc(W,r.thisType)),ke=0,rr=ce;ke<rr.length;ke++){var $e=rr[ke],ar=a.get($e.escapedName);if(!ar)a.set($e.escapedName,{prop:$e,containingType:W});else{var ir=ar.containingType!==r;if(ir&&!G6(ar.prop,$e)){s=!1;var Wr=Oi(ar.containingType),sn=Oi(W),In=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Xt($e),Wr,sn);In=e.chainDiagnosticMessages(In,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Oi(r),Wr,sn),fe.add(e.createDiagnosticForNodeFromMessageChain(n,In))}}}return s}function oI(r){if(!(!Re||!mr||r.flags&16777216))for(var n=kf(r),i=0,a=r.members;i<a.length;i++){var s=a[i];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&QT(s)){var l=s.name;if(e.isIdentifier(l)||e.isPrivateIdentifier(l)||e.isComputedPropertyName(l)){var g=Li(zi(s));g.flags&3||gm(g)||(!n||!XT(l,g,n))&&Zr(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(l))}}}}function QT(r){return r.kind===169&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function sI(r,n,i,a,s){for(var l=0,g=i;l<g.length;l++){var W=g[l];if(W.pos>=a&&W.pos<=s){var ce=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(ce.expression,ce),e.setParent(ce,W),ce.flowNode=W.returnFlowNode;var ke=Ed(ce,n,u_(n));if(!gm(ke))return!0}}return!1}function XT(r,n,i){var a=e.isComputedPropertyName(r)?e.factory.createElementAccessExpression(e.factory.createThis(),r.expression):e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(a.expression,a),e.setParent(a,i),a.flowNode=i.returnFlowNode;var s=Ed(a,n,u_(n));return!gm(s)}function cI(r){jf(r)||U5(r),Jy(r.typeParameters),Z(function(){Pm(r.name,e.Diagnostics.Interface_name_cannot_be_0),mv(r);var n=zi(r);zT(n);var i=e.getDeclarationOfKind(n,261);if(r===i){var a=nt(n),s=Qc(a);if(aI(a,r.name)){for(var l=0,g=nu(a);l<g.length;l++){var W=g[l];Fc(s,Qc(W,a.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}P0(a,n)}}uT(r)}),e.forEach(e.getInterfaceBaseTypeNodes(r),function(n){(!e.isEntityNameExpression(n.expression)||e.isOptionalChain(n.expression))&&Zr(n.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),ND(n)}),e.forEach(r.members,eo),Z(function(){ED(r),B_(r)})}function uI(r){jf(r),Pm(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),mv(r),Jy(r.typeParameters),r.type.kind===139?(!X.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&Zr(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(eo(r.type),B_(r))}function ZT(r){var n=At(r);if(!(n.flags&16384)){n.flags|=16384;for(var i=0,a=0,s=r.members;a<s.length;a++){var l=s[a],g=lI(l,i);At(l).enumMemberValue=g,i=typeof g=="number"?g+1:void 0}}}function lI(r,n){if(e.isComputedNonLiteralName(r.name))Zr(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var i=e.getTextOfPropertyName(r.name);e.isNumericLiteralName(i)&&!e.isInfinityOrNaNString(i)&&Zr(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return fI(r);if(!(r.parent.flags&16777216&&!e.isEnumConst(r.parent)&&t_(zi(r.parent))===0)){if(n!==void 0)return n;Zr(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function fI(r){var n=t_(zi(r.parent)),i=e.isEnumConst(r.parent),a=r.initializer,s=n===1&&!am(r)?void 0:g(a);if(s!==void 0)i&&typeof s=="number"&&!isFinite(s)&&Zr(a,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(n===1)return Zr(a,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(i)Zr(a,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&16777216)Zr(a,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var l=ya(a);Bs(l,296)?Fc(l,nt(zi(r.parent)),a,void 0):Zr(a,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Oi(l))}}return s;function g(ce){switch(ce.kind){case 221:var ke=g(ce.operand);if(typeof ke=="number")switch(ce.operator){case 39:return ke;case 40:return-ke;case 54:return~ke}break;case 223:var rr=g(ce.left),$e=g(ce.right);if(typeof rr=="number"&&typeof $e=="number")switch(ce.operatorToken.kind){case 51:return rr|$e;case 50:return rr&$e;case 48:return rr>>$e;case 49:return rr>>>$e;case 47:return rr<<$e;case 52:return rr^$e;case 41:return rr*$e;case 43:return rr/$e;case 39:return rr+$e;case 40:return rr-$e;case 44:return rr%$e;case 42:return Math.pow(rr,$e)}else if(typeof rr=="string"&&typeof $e=="string"&&ce.operatorToken.kind===39)return rr+$e;break;case 10:case 14:return ce.text;case 8:return ab(ce),+ce.text;case 214:return g(ce.expression);case 79:var ar=ce;return e.isInfinityOrNaNString(ar.escapedText)?+ar.escapedText:e.nodeIsMissing(ce)?0:W(ce,zi(r.parent),ar.escapedText);case 209:case 208:if(zD(ce)){var ir=Xs(ce.expression);if(ir.symbol&&ir.symbol.flags&384){var Wr=void 0;return ce.kind===208?Wr=ce.name.escapedText:Wr=e.escapeLeadingUnderscores(e.cast(ce.argumentExpression,e.isLiteralExpression).text),W(ce,ir.symbol,Wr)}}break}}function W(ce,ke,rr){var $e=ke.exports.get(rr);if($e){var ar=$e.valueDeclaration;if(ar!==r)return ar&&Sf(ar,r)&&e.isEnumDeclaration(ar.parent)?B0(ar):(Zr(ce,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Zr(ce,e.Diagnostics.Property_0_is_used_before_being_assigned,Xt($e))}}}function zD(r){var n=Xs(r);return n===ue?!1:r.kind===79||r.kind===208&&zD(r.expression)||r.kind===209&&zD(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function _I(r){Z(function(){return dI(r)})}function dI(r){jf(r),Nm(r,r.name),mv(r),r.members.forEach(pI),ZT(r);var n=zi(r),i=e.getDeclarationOfKind(n,r.kind);if(r===i){if(n.declarations&&n.declarations.length>1){var a=e.isEnumConst(r);e.forEach(n.declarations,function(l){e.isEnumDeclaration(l)&&e.isEnumConst(l)!==a&&Zr(e.getNameOfDeclaration(l),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(n.declarations,function(l){if(l.kind!==263)return!1;var g=l;if(!g.members.length)return!1;var W=g.members[0];W.initializer||(s?Zr(W.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}function pI(r){e.isPrivateIdentifier(r.name)&&Zr(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function gI(r){var n=r.declarations;if(n)for(var i=0,a=n;i<a.length;i++){var s=a[i];if((s.kind===260||s.kind===259&&e.nodeIsPresent(s.body))&&!(s.flags&16777216))return s}}function mI(r,n){var i=e.getEnclosingBlockScopeContainer(r),a=e.getEnclosingBlockScopeContainer(n);return Cu(i)?Cu(a):Cu(a)?!1:i===a}function vI(r){r.body&&(eo(r.body),e.isGlobalScopeAugmentation(r)||B_(r)),Z(n);function n(){var i=e.isGlobalScopeAugmentation(r),a=r.flags&16777216;i&&!a&&Zr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var s=e.isAmbientModule(r),l=s?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!jy(r,l)){jf(r)||!a&&r.name.kind===10&&mi(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&Nm(r,r.name),mv(r);var g=zi(r);if(g.flags&512&&!a&&g.declarations&&g.declarations.length>1&&F(r,e.shouldPreserveConstEnums(Y))){var W=gI(g);W&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(W)?Zr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<W.pos&&Zr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var ce=e.getDeclarationOfKind(g,260);ce&&mI(r,ce)&&(At(r).flags|=32768)}if(s)if(e.isExternalModuleAugmentation(r)){var ke=i||zi(r).flags&33554432;if(ke&&r.body)for(var rr=0,$e=r.body.statements;rr<$e.length;rr++){var ar=$e[rr];WD(ar,i)}}else Cu(r.parent)?i?Zr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&Zr(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):i?Zr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Zr(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}}function WD(r,n){switch(r.kind){case 240:for(var i=0,a=r.declarationList.declarations;i<a.length;i++){var s=a[i];WD(s,n)}break;case 274:case 275:Ws(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:Ws(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:var l=r.name;if(e.isBindingPattern(l)){for(var g=0,W=l.elements;g<W.length;g++){var ce=W[g];WD(ce,n)}break}case 260:case 263:case 259:case 261:case 264:case 262:if(n)return;break}}function yI(r){switch(r.kind){case 79:return r;case 163:do r=r.left;while(r.kind!==79);return r;case 208:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function VD(r){var n=e.getExternalModuleName(r);if(!n||e.nodeIsMissing(n))return!1;if(!e.isStringLiteral(n))return Zr(n,e.Diagnostics.String_literal_expected),!1;var i=r.parent.kind===265&&e.isAmbientModule(r.parent.parent);if(r.parent.kind!==308&&!i)return Zr(n,r.kind===275?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(i&&e.isExternalModuleNameRelative(n.text)&&!Tp(r))return Zr(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(r)&&r.assertClause){for(var a=!1,s=0,l=r.assertClause.elements;s<l.length;s++){var g=l[s];e.isStringLiteral(g.value)||(a=!0,Zr(g.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!a}return!0}function I0(r){var n,i,a,s,l,g=zi(r),W=wi(g);if(W!==jr){if(g=Ya(g.exportSymbol||g),e.isInJSFile(r)&&!(W.flags&111551)&&!e.isTypeOnlyImportOrExportDeclaration(r)){var ce=e.isImportOrExportSpecifier(r)?r.propertyName||r.name:e.isNamedDeclaration(r)?r.name:r;if(e.Debug.assert(r.kind!==277),r.kind===278){var ke=Zr(ce,e.Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files),rr=(i=(n=e.getSourceFileOfNode(r).symbol)===null||n===void 0?void 0:n.exports)===null||i===void 0?void 0:i.get((r.propertyName||r.name).escapedText);if(rr===W){var $e=(a=rr.declarations)===null||a===void 0?void 0:a.find(e.isJSDocNode);$e&&e.addRelatedInfo(ke,e.createDiagnosticForNode($e,e.Diagnostics._0_is_automatically_exported_here,e.unescapeLeadingUnderscores(rr.escapedName)))}}else{e.Debug.assert(r.kind!==257);var ar=e.findAncestor(r,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration)),ir=(l=ar&&((s=e.tryGetModuleSpecifierFromDeclaration(ar))===null||s===void 0?void 0:s.text))!==null&&l!==void 0?l:"...",Wr=e.unescapeLeadingUnderscores(e.isIdentifier(ce)?ce.escapedText:g.escapedName);Zr(ce,e.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Wr,'import("'.concat(ir,'").').concat(Wr))}return}var sn=Kt(W),In=(g.flags&(111551|1048576)?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(sn&In){var Sn=r.kind===278?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Zr(r,Sn,Xt(g))}if(Y.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&16777216)){var Kn=Ec(g),ei=!(sn&111551);if(ei||Kn)switch(r.kind){case 270:case 273:case 268:{if(Y.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var Sn=ei?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Ti=e.idText(r.kind===273&&r.propertyName||r.name);xs(Zr(r,Sn,Ti),ei?void 0:Kn,Ti)}ei&&r.kind===268&&e.hasEffectiveModifier(r,1)&&Zr(r,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break}case 278:if(e.getSourceFileOfNode(Kn)!==e.getSourceFileOfNode(r)){var Sn=ei?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,Ti=e.idText(r.propertyName||r.name);xs(Zr(r,Sn,Ti),ei?void 0:Kn,Ti);return}}}if(e.isImportSpecifier(r)){var Ri=$T(g,r);YT(Ri)&&Ri.declarations&&Tl(r,Ri.declarations,Ri.escapedName)}}}function YT(r){return!!r.declarations&&e.every(r.declarations,function(n){return!!(e.getCombinedNodeFlags(n)&268435456)})}function $T(r,n){if(!(r.flags&2097152))return r;var i=wi(r);if(i===jr)return i;for(;r.flags&2097152;){var a=q2(r);if(a){if(a===i)break;if(a.declarations&&e.length(a.declarations))if(YT(a)){Tl(n,a.declarations,a.escapedName);break}else{if(r===i)break;r=a}}else break}return i}function w0(r){Nm(r,r.name),I0(r),r.kind===273&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(Y)&&j!==e.ModuleKind.System&&(j<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&_c(r,131072)}function eE(r){var n;if(r.assertClause){var i=e.isExclusivelyTypeOnlyImportOrExport(r),a=e.getResolutionModeOverrideForClause(r.assertClause,i?mi:void 0);if(i&&a)return e.isNightly()||mi(r.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(Y)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(Y)!==e.ModuleResolutionKind.NodeNext?mi(r.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;var s=j===e.ModuleKind.NodeNext&&r.moduleSpecifier&&tf(r.moduleSpecifier);if(s!==e.ModuleKind.ESNext&&j!==e.ModuleKind.ESNext)return mi(r.assertClause,j===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(r)?(n=r.importClause)===null||n===void 0?void 0:n.isTypeOnly:r.isTypeOnly)return mi(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(a)return mi(r.assertClause,e.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)}}function hI(r){if(!jy(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!jf(r)&&e.hasEffectiveModifiers(r)&&Ws(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),VD(r)){var n=r.importClause;if(n&&!d7(n)&&(n.name&&w0(n),n.namedBindings))if(n.namedBindings.kind===271)w0(n.namedBindings),j!==e.ModuleKind.System&&(j<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(Y)&&_c(r,65536);else{var i=Ms(r,r.moduleSpecifier);i&&e.forEach(n.namedBindings.elements,w0)}}eE(r)}}function DI(r){if(!jy(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(jf(r),e.isInternalModuleImportEqualsDeclaration(r)||VD(r)))if(w0(r),e.hasSyntacticModifier(r,1)&&ji(r),r.moduleReference.kind!==280){var n=wi(zi(r));if(n!==jr){var i=Kt(n);if(i&111551){var a=e.getFirstIdentifier(r.moduleReference);ts(a,111551|1920).flags&1920||Zr(a,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(a))}i&788968&&Pm(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&mi(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else j>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&16777216)&&mi(r,e.Diagnostics.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 bI(r){if(!jy(r,e.isInJSFile(r)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!jf(r)&&e.hasSyntacticModifiers(r)&&Ws(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&d===0&&_c(r,4194304),SI(r),!r.moduleSpecifier||VD(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,AI);var n=r.parent.kind===265&&e.isAmbientModule(r.parent.parent),i=!n&&r.parent.kind===265&&!r.moduleSpecifier&&r.flags&16777216;r.parent.kind!==308&&!n&&!i&&Zr(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var a=Ms(r,r.moduleSpecifier);a&&uf(a)?Zr(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Xt(a)):r.exportClause&&I0(r.exportClause),j!==e.ModuleKind.System&&(j<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(Y)&&_c(r,65536):_c(r,32768))}eE(r)}}function SI(r){var n;return r.isTypeOnly?((n=r.exportClause)===null||n===void 0?void 0:n.kind)===276?PE(r.exportClause):mi(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function jy(r,n){var i=r.parent.kind===308||r.parent.kind===265||r.parent.kind===264;return i||Ws(r,n),!i}function xI(r){return e.forEachImportClauseDeclaration(r,function(n){return!!zi(n).isReferenced})}function CI(r){return e.forEachImportClauseDeclaration(r,function(n){return!!Qt(zi(n)).constEnumReferenced})}function TI(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&xI(r.importClause)&&!R0(r.importClause,!0)&&!CI(r.importClause)}function EI(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&zi(r).isReferenced&&!R0(r,!1)&&!Qt(zi(r)).constEnumReferenced}function kI(r){for(var n=0,i=r.statements;n<i.length;n++){var a=i[n];(TI(a)||EI(a))&&Zr(a,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function AI(r){if(I0(r),e.getEmitDeclarations(Y)&&Zn(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(Y)&&j!==e.ModuleKind.System&&(j<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&_c(r,131072);else{var n=r.propertyName||r.name,i=is(n,n.escapedText,111551|788968|1920|2097152,void 0,void 0,!0);if(i&&(i===Br||i===pn||i.declarations&&Cu(Wa(i.declarations[0]))))Zr(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(n));else{!r.isTypeOnly&&!r.parent.parent.isTypeOnly&&ji(r);var a=i&&(i.flags&2097152?wi(i):i);(!a||Kt(a)&111551)&&Ds(r.propertyName||r.name)}}}function NI(r){var n=r.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!jy(r,n)){var i=r.parent.kind===308?r.parent:r.parent.parent;if(i.kind===264&&!e.isAmbientModule(i)){r.isExportEquals?Zr(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Zr(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!jf(r)&&e.hasEffectiveModifiers(r)&&Ws(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var a=e.getEffectiveTypeAnnotationNode(r);if(a&&Fc(Ds(r.expression),zt(a),r.expression),r.expression.kind===79){var s=r.expression,l=ts(s,67108863,!0,!0,r);if(l){Yh(l,s);var g=l.flags&2097152?wi(l):l;Kt(g)&111551&&Ds(r.expression)}else Ds(r.expression);e.getEmitDeclarations(Y)&&Zn(r.expression,!0)}else Ds(r.expression);rE(i),r.flags&16777216&&!e.isEntityNameExpression(r.expression)&&mi(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&16777216)&&(j>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?mi(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===e.ModuleKind.System&&mi(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function PI(r){return e.forEachEntry(r.exports,function(n,i){return i!=="export="})}function rE(r){var n=zi(r),i=Qt(n);if(!i.exportsChecked){var a=n.exports.get("export=");if(a&&PI(n)){var s=Mu(a)||a.valueDeclaration;s&&!Tp(s)&&!e.isInJSFile(s)&&Zr(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var l=Ls(n);l&&l.forEach(function(g,W){var ce=g.declarations,ke=g.flags;if(W!=="__export"&&!(ke&(1920|384))){var rr=e.countWhere(ce,e.and(S,e.not(e.isInterfaceDeclaration)));if(!(ke&524288&&rr<=2)&&rr>1&&!O0(ce))for(var $e=0,ar=ce;$e<ar.length;$e++){var ir=ar[$e];P(ir)&&fe.add(e.createDiagnosticForNode(ir,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(W)))}}}),i.exportsChecked=!0}}function O0(r){return r&&r.length>1&&r.every(function(n){return e.isInJSFile(n)&&e.isAccessExpression(n)&&(e.isExportsIdentifier(n.expression)||e.isModuleExportsAccessExpression(n.expression))})}function eo(r){if(r){var n=Xe;Xe=r,Me=0,II(r),Xe=n}}function II(r){e.forEach(r.jsDoc,function(i){var a=i.comment,s=i.tags;nE(a),e.forEach(s,function(l){nE(l.comment),e.isInJSFile(r)&&eo(l)})});var n=r.kind;if(B)switch(n){case 264:case 260:case 261:case 259:B.throwIfCancellationRequested()}switch(n>=240&&n<=256&&r.flowNode&&!dy(r.flowNode)&&xu(Y.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),n){case 165:return oT(r);case 166:return sT(r);case 169:return lT(r);case 168:return hP(r);case 182:case 181:case 176:case 177:case 178:return gv(r);case 171:case 170:return DP(r);case 172:return bP(r);case 173:return SP(r);case 174:case 175:return _T(r);case 180:return ND(r);case 179:return gP(r);case 183:return kP(r);case 184:return AP(r);case 185:return NP(r);case 186:return PP(r);case 189:case 190:return IP(r);case 193:case 187:case 188:return eo(r.type);case 194:return MP(r);case 195:return LP(r);case 191:return RP(r);case 192:return BP(r);case 200:return JP(r);case 202:return jP(r);case 199:return UP(r);case 331:return t8(r);case 332:return i8(r);case 348:case 341:case 342:return XP(r);case 347:return ZP(r);case 346:return YP(r);case 327:case 328:case 329:return $P(r);case 343:return e8(r);case 350:return r8(r);case 320:n8(r);case 318:case 317:case 315:case 316:case 325:iE(r),e.forEachChild(r,eo);return;case 321:wI(r);return;case 312:return eo(r.type);case 336:case 338:case 337:return a8(r);case 196:return wP(r);case 197:return OP(r);case 259:return QP(r);case 238:case 265:return T0(r);case 240:return S8(r);case 241:return x8(r);case 242:return C8(r);case 243:return k8(r);case 244:return A8(r);case 245:return N8(r);case 246:return I8(r);case 247:return P8(r);case 248:case 249:return J8(r);case 250:return j8(r);case 251:return U8(r);case 252:return z8(r);case 253:return W8(r);case 254:return V8(r);case 255:return q8(r);case 257:return FD(r);case 205:return b8(r);case 260:return Y8(r);case 261:return cI(r);case 262:return uI(r);case 263:return _I(r);case 264:return vI(r);case 269:return hI(r);case 268:return DI(r);case 275:return bI(r);case 274:return NI(r);case 239:case 256:Uf(r);return;case 279:return CP(r)}}function nE(r){e.isArray(r)&&e.forEach(r,function(n){e.isJSDocLinkLike(n)&&eo(n)})}function iE(r){e.isInJSFile(r)||mi(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function wI(r){iE(r),eo(r.type);var n=r.parent;if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent)){e.last(n.parent.parameters)!==n&&Zr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(n)||Zr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var i=r.parent.parent;if(!e.isJSDocParameterTag(i)){Zr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var a=e.getParameterSymbolFromJSDoc(i);if(!!a){var s=e.getHostSignatureFromJSDoc(i);(!s||e.last(s.parameters).symbol!==a)&&Zr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function OI(r){var n=zt(r.type),i=r.parent,a=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(a)){var s=e.getHostSignatureFromJSDoc(a),l=e.isJSDocCallbackTag(a.parent.parent);if(s||l){var g=l?e.lastOrUndefined(a.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),W=e.getParameterSymbolFromJSDoc(a);if(!g||W&&g.symbol===W&&e.isRestParameter(g))return ic(n)}}return e.isParameter(i)&&e.isJSDocFunctionType(i.parent)?ic(n):fu(n)}function Im(r){var n=e.getSourceFileOfNode(r),i=At(n);i.flags&1||(i.deferredNodes||(i.deferredNodes=new e.Set),i.deferredNodes.add(r))}function FI(r){var n=At(r);n.deferredNodes&&n.deferredNodes.forEach(MI)}function MI(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var n=Xe;switch(Xe=r,Me=0,r.kind){case 210:case 211:case 212:case 167:case 283:qg(r);break;case 215:case 216:case 171:case 170:O3(r);break;case 174:case 175:_T(r);break;case 228:Z8(r);break;case 165:pP(r);break;case 282:aN(r);break;case 281:sN(r);break}Xe=n,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function LI(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),RI(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function tE(r,n){if(n)return!1;switch(r){case 0:return!!Y.noUnusedLocals;case 1:return!!Y.noUnusedParameters;default:return e.Debug.assertNever(r)}}function aE(r){return Lc.get(r.path)||e.emptyArray}function RI(r){var n=At(r);if(!(n.flags&1)){if(e.skipTypeChecking(r,Y,b))return;c7(r),e.clear(po),e.clear(Do),e.clear(Ns),e.clear(jo),e.clear(ys),e.forEach(r.statements,eo),eo(r.endOfFileToken),FI(r),e.isExternalOrCommonJsModule(r)&&B_(r),Z(function(){!r.isDeclarationFile&&(Y.noUnusedLocals||Y.noUnusedParameters)&&bT(aE(r),function(i,a,s){!e.containsParseError(i)&&tE(a,!!(i.flags&16777216))&&fe.add(s)}),r.isDeclarationFile||u8()}),Y.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&kI(r),e.isExternalOrCommonJsModule(r)&&rE(r),po.length&&(e.forEach(po,_8),e.clear(po)),Do.length&&(e.forEach(Do,d8),e.clear(Do)),Ns.length&&(e.forEach(Ns,v8),e.clear(Ns)),jo.length&&(e.forEach(jo,h8),e.clear(jo)),n.flags|=1}}function oE(r,n){try{return B=n,BI(r)}finally{B=void 0}}function qD(){for(var r=0,n=T;r<n.length;r++){var i=n[r];i()}T=[]}function GD(r){qD();var n=Z;Z=function(i){return i()},LI(r),Z=n}function BI(r){if(r){qD();var n=fe.getGlobalDiagnostics(),i=n.length;GD(r);var a=fe.getDiagnostics(r.fileName),s=fe.getGlobalDiagnostics();if(s!==n){var l=e.relativeComplement(n,s,e.compareDiagnostics);return e.concatenate(l,a)}else if(i===0&&s.length>0)return e.concatenate(s,a);return a}return e.forEach(b.getSourceFiles(),GD),fe.getDiagnostics()}function JI(){return qD(),fe.getGlobalDiagnostics()}function jI(r,n){if(r.flags&33554432)return[];var i=e.createSymbolTable(),a=!1;return s(),i.delete("this"),Gv(i);function s(){for(;r;){switch(r.locals&&!Cu(r)&&g(r.locals,n),r.kind){case 308:if(!e.isExternalModule(r))break;case 264:W(zi(r).exports,n&2623475);break;case 263:g(zi(r).exports,n&8);break;case 228:var ce=r.name;ce&&l(r.symbol,n);case 260:case 261:a||g(pf(zi(r)),n&788968);break;case 215:var ke=r.name;ke&&l(r.symbol,n);break}e.introducesArgumentsExoticObject(r)&&l(ve,n),a=e.isStatic(r),r=r.parent}g(rn,n)}function l(ce,ke){if(e.getCombinedLocalAndExportSymbolFlags(ce)&ke){var rr=ce.escapedName;i.has(rr)||i.set(rr,ce)}}function g(ce,ke){ke&&ce.forEach(function(rr){l(rr,ke)})}function W(ce,ke){ke&&ce.forEach(function(rr){!e.getDeclarationOfKind(rr,278)&&!e.getDeclarationOfKind(rr,277)&&l(rr,ke)})}}function UI(r){return r.kind===79&&e.isTypeDeclaration(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function sE(r){for(;r.parent.kind===163;)r=r.parent;return r.parent.kind===180}function zI(r){for(;r.parent.kind===208;)r=r.parent;return r.parent.kind===230}function cE(r,n){for(var i;r=e.getContainingClass(r),!(!r||(i=n(r))););return i}function WI(r){return!!e.findAncestor(r,function(n){return e.isConstructorDeclaration(n)&&e.nodeIsPresent(n.body)||e.isPropertyDeclaration(n)?!0:e.isClassLike(n)||e.isFunctionLikeDeclaration(n)?"quit":!1})}function HD(r,n){return!!cE(r,function(i){return i===n})}function VI(r){for(;r.parent.kind===163;)r=r.parent;if(r.parent.kind===268)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===274)return r.parent.expression===r?r.parent:void 0}function F0(r){return VI(r)!==void 0}function qI(r){var n=e.getAssignmentDeclarationKind(r.parent.parent);switch(n){case 1:case 3:return zi(r.parent);case 4:case 2:case 5:return zi(r.parent.parent)}}function GI(r){for(var n=r.parent;e.isQualifiedName(n);)r=n,n=n.parent;if(n&&n.kind===202&&n.qualifier===r)return n}function uE(r){if(e.isDeclarationName(r))return zi(r.parent);if(e.isInJSFile(r)&&r.parent.kind===208&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var n=qI(r);if(n)return n}if(r.parent.kind===274&&e.isEntityNameExpression(r)){var i=ts(r,111551|788968|1920|2097152,!0);if(i&&i!==jr)return i}else if(e.isEntityName(r)&&F0(r)){var a=e.getAncestor(r,268);return e.Debug.assert(a!==void 0),Wo(r,!0)}if(e.isEntityName(r)){var s=GI(r);if(s){zt(s);var l=At(r).resolvedSymbol;return l===jr?void 0:l}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(zI(r)){var g=0;r.parent.kind===230?(g=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(g|=111551)):g=1920,g|=2097152;var W=e.isEntityNameExpression(r)?ts(r,g):void 0;if(W)return W}if(r.parent.kind===343)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===165&&r.parent.parent.kind===347){e.Debug.assert(!e.isInJSFile(r));var ce=e.getTypeParameterFromJsDoc(r.parent);return ce&&ce.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var ke=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),g=ke?788968|1920|111551:111551;if(r.kind===79){if(e.isJSXTagName(r)&&bm(r)){var rr=H2(r.parent);return rr===jr?void 0:rr}var $e=ts(r,g,!1,!0,e.getHostSignatureFromJSDoc(r));if(!$e&&ke){var ar=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(ar)return Uy(r,!1,zi(ar))}if($e&&ke){var ar=e.getJSDocHost(r);if(ar&&e.isEnumMember(ar)&&ar===$e.valueDeclaration)return ts(r,g,!0,!0,e.getSourceFileOfNode(ar))||$e}return $e}else{if(e.isPrivateIdentifier(r))return c0(r);if(r.kind===208||r.kind===163){var ir=At(r);if(ir.resolvedSymbol)return ir.resolvedSymbol;if(r.kind===208){if($x(r,0),!ir.resolvedSymbol){var Wr=Ds(r.expression),sn=Jm(Wr,L_(r.name));if(sn.length&&Wr.members){var In=Iu(Wr),rr=In.members.get("__index");if(sn===hs(Wr))ir.resolvedSymbol=rr;else if(rr){var Sn=Qt(rr),Kn=e.mapDefined(sn,function(rt){return rt.declaration}),ei=e.map(Kn,V).join(",");if(Sn.filteredIndexSymbolCache||(Sn.filteredIndexSymbolCache=new e.Map),Sn.filteredIndexSymbolCache.has(ei))ir.resolvedSymbol=Sn.filteredIndexSymbolCache.get(ei);else{var Ti=go(131072,"__index");Ti.declarations=e.mapDefined(sn,function(rt){return rt.declaration}),Ti.parent=Wr.aliasSymbol?Wr.aliasSymbol:Wr.symbol?Wr.symbol:Ku(Ti.declarations[0].parent),Sn.filteredIndexSymbolCache.set(ei,Ti),ir.resolvedSymbol=Sn.filteredIndexSymbolCache.get(ei)}}}}}else eC(r,0);return!ir.resolvedSymbol&&ke&&e.isQualifiedName(r)?Uy(r):ir.resolvedSymbol}else if(e.isJSDocMemberName(r))return Uy(r)}}else if(sE(r)){var g=r.parent.kind===180?788968:1920,rr=ts(r,g,!1,!0);return rr&&rr!==jr?rr:lh(r)}if(r.parent.kind===179)return ts(r,1)}function Uy(r,n,i){if(e.isEntityName(r)){var a=788968|1920|111551,s=ts(r,a,n,!0,e.getHostSignatureFromJSDoc(r));if(!s&&e.isIdentifier(r)&&i&&(s=Ya(Wc(Ac(i),r.escapedText,a))),s)return s}var l=e.isIdentifier(r)?i:Uy(r.left,n,i),g=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(l){var W=l.flags&111551&&Zt(Li(l),"prototype"),ce=W?Li(W):nt(l);return Zt(ce,g)}}function Ku(r,n){if(r.kind===308)return e.isExternalModule(r)?Ya(r.symbol):void 0;var i=r.parent,a=i.parent;if(!(r.flags&33554432)){if(N(r)){var s=zi(i);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?q2(s):s}else if(e.isLiteralComputedPropertyDeclarationName(r))return zi(i.parent);if(r.kind===79){if(F0(r))return uE(r);if(i.kind===205&&a.kind===203&&r===i.propertyName){var l=lg(a),g=Zt(l,r.escapedText);if(g)return g}else if(e.isMetaProperty(i)&&i.name===r)return i.keywordToken===103&&e.idText(r)==="target"?mD(i).symbol:i.keywordToken===100&&e.idText(r)==="meta"?Eb().members.get("meta"):void 0}switch(r.kind){case 79:case 80:case 208:case 163:if(!e.isThisInTypeQuery(r))return uE(r);case 108:var W=e.getThisContainer(r,!1);if(e.isFunctionLike(W)){var ce=Vu(W);if(ce.thisParameter)return ce.thisParameter}if(e.isInExpressionContext(r))return ya(r).symbol;case 194:return bh(r).symbol;case 106:return ya(r).symbol;case 135:var ke=r.parent;return ke&&ke.kind===173?ke.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===269||r.parent.kind===275)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return Ms(r,r,n);if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i)&&i.arguments[1]===r)return zi(i);case 8:var rr=e.isElementAccessExpression(i)?i.argumentExpression===r?Xs(i.expression):void 0:e.isLiteralTypeNode(i)&&e.isIndexedAccessTypeNode(a)?zt(a.objectType):void 0;return rr&&Zt(rr,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return zi(r.parent);case 202:return e.isLiteralImportTypeNode(r)?Ku(r.argument.literal,n):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?LC(r.parent).symbol:void 0;case 233:return ya(r).symbol;default:return}}}function HI(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var n=L_(r),i=Xs(r.parent.expression),a=i.flags&1048576?i.types:[i];return e.flatMap(a,function(s){return e.filter(hs(s),function(l){return jl(n,l.keyType)})})}}function KI(r){if(r&&r.kind===300)return ts(r.name,111551|2097152)}function QI(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?Bu(r.parent.parent,r):ts(r.propertyName||r.name,111551|788968|1920|2097152):ts(r,111551|788968|1920|2097152)}function lg(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&33554432)return ue;var n=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),i=n&&_u(zi(n.class));if(e.isPartOfTypeNode(r)){var a=zt(r);return i?Qc(a,i.thisType):a}if(e.isExpressionNode(r))return lE(r);if(i&&!n.isImplements){var s=e.firstOrUndefined(nu(i));return s?Qc(s,i.thisType):ue}if(e.isTypeDeclaration(r)){var l=zi(r);return nt(l)}if(UI(r)){var l=Ku(r);return l?nt(l):ue}if(e.isDeclaration(r)){var l=zi(r);return l?Li(l):ue}if(N(r)){var l=Ku(r);return l?Li(l):ue}if(e.isBindingPattern(r))return yl(r.parent,!0,0)||ue;if(F0(r)){var l=Ku(r);if(l){var g=nt(l);return ca(g)?Li(l):g}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?LC(r.parent):ue}function M0(r){if(e.Debug.assert(r.kind===207||r.kind===206),r.parent.kind===247){var n=By(r.parent);return Up(r,n||ue)}if(r.parent.kind===223){var n=Xs(r.parent.right);return Up(r,n||ue)}if(r.parent.kind===299){var i=e.cast(r.parent.parent,e.isObjectLiteralExpression),a=M0(i)||ue,s=e.indexOfNode(i.properties,r.parent);return QC(i,a,s)}var l=e.cast(r.parent,e.isArrayLiteralExpression),g=M0(l)||ue,W=J_(65,g,zr,r.parent)||ue;return XC(l,g,l.elements.indexOf(r),W)}function XI(r){var n=M0(e.cast(r.parent.parent,e.isAssignmentPattern));return n&&Zt(n,r.escapedText)}function lE(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),Jc(Xs(r))}function ZI(r){var n=zi(r.parent);return e.isStatic(r)?Li(n):nt(n)}function YI(r){var n=r.name;switch(n.kind){case 79:return Ou(e.idText(n));case 8:case 10:return Ou(n.text);case 164:var i=f_(n);return Bs(i,12288)?i:yn;default:return e.Debug.fail("Unsupported property name.")}}function KD(r){r=re(r);var n=e.createSymbolTable(vo(r)),i=_a(r,0).length?Nt:_a(r,1).length?Gt:void 0;return i&&e.forEach(vo(i),function(a){n.has(a.escapedName)||n.set(a.escapedName,a)}),Zf(n)}function QD(r){return e.typeHasCallOrConstructSignatures(r,ze)}function fE(r){var n=$I(r);return n?e.flatMap(n,fE):[r]}function $I(r){if(e.getCheckFlags(r)&6)return e.mapDefined(Qt(r).containingType.types,function(l){return Zt(l,r.escapedName)});if(r.flags&33554432){var n=r,i=n.leftSpread,a=n.rightSpread,s=n.syntheticOrigin;return i?[i,a]:s?[s]:e.singleElementArray(e5(r))}}function e5(r){for(var n,i=r;i=Qt(i).target;)n=i;return n}function r5(r){if(e.isGeneratedIdentifier(r))return!1;var n=e.getParseTreeNode(r,e.isIdentifier);if(!n)return!1;var i=n.parent;if(!i)return!1;var a=(e.isPropertyAccessExpression(i)||e.isPropertyAssignment(i))&&i.name===n;return!a&&zy(n)===ve}function n5(r){var n=Ms(r.parent,r);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var i=uf(n);n=Us(n);var a=Qt(n);return a.exportsSomeValue===void 0&&(a.exportsSomeValue=i?!!(n.flags&111551):e.forEachEntry(Ls(n),s)),a.exportsSomeValue;function s(l){return l=ss(l),l&&!!(Kt(l)&111551)}}function i5(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function t5(r,n){var i,a=e.getParseTreeNode(r,e.isIdentifier);if(a){var s=zy(a,i5(a));if(s){if(s.flags&1048576){var l=Ya(s.exportSymbol);if(!n&&l.flags&944&&!(l.flags&3))return;s=l}var g=Nc(s);if(g){if(g.flags&512&&((i=g.valueDeclaration)===null||i===void 0?void 0:i.kind)===308){var W=g.valueDeclaration,ce=e.getSourceFileOfNode(a),ke=W!==ce;return ke?void 0:W}return e.findAncestor(a.parent,function(rr){return e.isModuleOrEnumDeclaration(rr)&&zi(rr)===g})}}}}function a5(r){if(r.generatedImportReference)return r.generatedImportReference;var n=e.getParseTreeNode(r,e.isIdentifier);if(n){var i=y5(n);if(Md(i,111551)&&!Ec(i,111551))return Mu(i)}}function o5(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===295}function _E(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var n=Qt(r);if(n.isDeclarationWithCollidingName===void 0){var i=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(i)||o5(r)){var a=At(r.valueDeclaration);if(is(i.parent,r.escapedName,111551,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(a.flags&262144){var s=a.flags&524288,l=e.isIterationStatement(i,!1),g=i.kind===238&&e.isIterationStatement(i.parent,!1);n.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(i)&&(!s||!l&&!g)}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function s5(r){if(!e.isGeneratedIdentifier(r)){var n=e.getParseTreeNode(r,e.isIdentifier);if(n){var i=zy(n);if(i&&_E(i))return i.valueDeclaration}}}function c5(r){var n=e.getParseTreeNode(r,e.isDeclaration);if(n){var i=zi(n);if(i)return _E(i)}return!1}function dE(r){switch(r.kind){case 268:return L0(zi(r));case 270:case 271:case 273:case 278:var n=zi(r);return!!n&&L0(n)&&!Ec(n,111551);case 275:var i=r.exportClause;return!!i&&(e.isNamespaceExport(i)||e.some(i.elements,dE));case 274:return r.expression&&r.expression.kind===79?L0(zi(r)):!0}return!1}function u5(r){var n=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(n===void 0||n.parent.kind!==308||!e.isInternalModuleImportEqualsDeclaration(n))return!1;var i=L0(zi(n));return i&&n.moduleReference&&!e.nodeIsMissing(n.moduleReference)}function L0(r){var n;if(!r)return!1;var i=il(wi(r));return i===jr?!0:!!(((n=Kt(i))!==null&&n!==void 0?n:-1)&111551)&&(e.shouldPreserveConstEnums(Y)||!Sv(i))}function Sv(r){return SD(r)||!!r.constEnumOnlyModule}function R0(r,n){if(nf(r)){var i=zi(r),a=i&&Qt(i);if(a==null?void 0:a.referenced)return!0;var s=Qt(i).aliasTarget;if(s&&e.getEffectiveModifierFlags(r)&1&&Kt(s)&111551&&(e.shouldPreserveConstEnums(Y)||!Sv(s)))return!0}return n?!!e.forEachChild(r,function(l){return R0(l,n)}):!1}function pE(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var n=zi(r),i=Gd(n);return i.length>1||i.length===1&&i[0].declaration!==r}return!1}function gE(r){return!!Re&&!qd(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function l5(r){return Re&&qd(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function f5(r){var n=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!n)return!1;var i=zi(n);return!i||!(i.flags&16)?!1:!!e.forEachEntry(Ac(i),function(a){return a.flags&111551&&a.valueDeclaration&&e.isPropertyAccessExpression(a.valueDeclaration)})}function _5(r){var n=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!n)return e.emptyArray;var i=zi(n);return i&&vo(Li(i))||e.emptyArray}function Zg(r){var n,i=r.id||0;return i<0||i>=Ei.length?0:((n=Ei[i])===null||n===void 0?void 0:n.flags)||0}function B0(r){return ZT(r.parent),At(r).enumMemberValue}function mE(r){switch(r.kind){case 302:case 208:case 209:return!0}return!1}function XD(r){if(r.kind===302)return B0(r);var n=At(r).resolvedSymbol;if(n&&n.flags&8){var i=n.valueDeclaration;if(e.isEnumConst(i.parent))return B0(i)}}function ZD(r){return!!(r.flags&524288)&&_a(r,0).length>0}function d5(r,n){var i,a,s=e.getParseTreeNode(r,e.isEntityName);if(!s||n&&(n=e.getParseTreeNode(n),!n))return e.TypeReferenceSerializationKind.Unknown;var l=!1;if(e.isQualifiedName(s)){var g=ts(e.getFirstIdentifier(s),111551,!0,!0,n);l=!!((i=g==null?void 0:g.declarations)===null||i===void 0?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration))}var W=ts(s,111551,!0,!0,n),ce=W&&W.flags&2097152?wi(W):W;l||(l=!!((a=W==null?void 0:W.declarations)===null||a===void 0?void 0:a.every(e.isTypeOnlyImportOrExportDeclaration)));var ke=ts(s,788968,!0,!1,n);if(ce&&ce===ke){var rr=y1(!1);if(rr&&ce===rr)return e.TypeReferenceSerializationKind.Promise;var $e=Li(ce);if($e&&yg($e))return l?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!ke)return l?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var ar=nt(ke);return ca(ar)?l?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:ar.flags&3?e.TypeReferenceSerializationKind.ObjectType:Bs(ar,16384|98304|131072)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Bs(ar,528)?e.TypeReferenceSerializationKind.BooleanType:Bs(ar,296)?e.TypeReferenceSerializationKind.NumberLikeType:Bs(ar,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Bs(ar,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Xa(ar)?e.TypeReferenceSerializationKind.ArrayLikeType:Bs(ar,12288)?e.TypeReferenceSerializationKind.ESSymbolType:ZD(ar)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Fu(ar)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function p5(r,n,i,a,s){var l=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!l)return e.factory.createToken(131);var g=zi(l),W=g&&!(g.flags&(2048|131072))?ep(Li(g)):ue;return W.flags&8192&&W.symbol===g&&(i|=1048576),s&&(W=u_(W)),Cr.typeToTypeNode(W,n,i|1024,a)}function g5(r,n,i,a){var s=e.getParseTreeNode(r,e.isFunctionLike);if(!s)return e.factory.createToken(131);var l=Vu(s);return Cr.typeToTypeNode(Ao(l),n,i|1024,a)}function m5(r,n,i,a){var s=e.getParseTreeNode(r,e.isExpression);if(!s)return e.factory.createToken(131);var l=tu(lE(s));return Cr.typeToTypeNode(l,n,i|1024,a)}function v5(r){return rn.has(e.escapeLeadingUnderscores(r))}function zy(r,n){var i=At(r).resolvedSymbol;if(i)return i;var a=r;if(n){var s=r.parent;e.isDeclaration(s)&&r===s.name&&(a=Wa(s))}return is(a,r.escapedText,111551|1048576|2097152,void 0,void 0,!0)}function y5(r){var n=At(r).resolvedSymbol;return n&&n!==jr?n:is(r,r.escapedText,111551|1048576|2097152,void 0,void 0,!0,void 0,void 0)}function h5(r){if(!e.isGeneratedIdentifier(r)){var n=e.getParseTreeNode(r,e.isIdentifier);if(n){var i=zy(n);if(i)return il(i).valueDeclaration}}}function D5(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?Zd(Li(zi(r))):!1}function b5(r,n,i){var a=r.flags&1024?Cr.symbolToExpression(r.symbol,111551,n,void 0,i):r===Ni?e.factory.createTrue():r===ti&&e.factory.createFalse();if(a)return a;var s=r.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function S5(r,n){var i=Li(zi(r));return b5(i,r,n)}function vE(r){return r?(ms(r),e.getSourceFileOfNode(r).localJsxFactory||Si):Si}function YD(r){if(r){var n=e.getSourceFileOfNode(r);if(n){if(n.localJsxFragmentFactory)return n.localJsxFragmentFactory;var i=n.pragmas.get("jsxfrag"),a=e.isArray(i)?i[0]:i;if(a)return n.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,d),n.localJsxFragmentFactory}}if(Y.jsxFragmentFactory)return e.parseIsolatedEntityName(Y.jsxFragmentFactory,d)}function x5(){var r=b.getResolvedTypeReferenceDirectives(),n;return r&&(n=new e.Map,r.forEach(function(ce,ke,rr){if(!(!ce||!ce.resolvedFileName)){var $e=b.getSourceFile(ce.resolvedFileName);$e&&W($e,ke,rr)}})),{getReferencedExportContainer:t5,getReferencedImportDeclaration:a5,getReferencedDeclarationWithCollidingName:s5,isDeclarationWithCollidingName:c5,isValueAliasDeclaration:function(ce){var ke=e.getParseTreeNode(ce);return ke?dE(ke):!0},hasGlobalName:v5,isReferencedAliasDeclaration:function(ce,ke){var rr=e.getParseTreeNode(ce);return rr?R0(rr,ke):!0},getNodeCheckFlags:function(ce){var ke=e.getParseTreeNode(ce);return ke?Zg(ke):0},isTopLevelValueImportEqualsWithEntityName:u5,isDeclarationVisible:_n,isImplementationOfOverload:pE,isRequiredInitializedParameter:gE,isOptionalUninitializedParameterProperty:l5,isExpandoFunctionDeclaration:f5,getPropertiesOfContainerFunction:_5,createTypeOfDeclaration:p5,createReturnTypeOfSignatureDeclaration:g5,createTypeOfExpression:m5,createLiteralConstValue:S5,isSymbolAccessible:Fl,isEntityNameVisible:qp,getConstantValue:function(ce){var ke=e.getParseTreeNode(ce,mE);return ke?XD(ke):void 0},collectLinkedAliases:Zn,getReferencedValueDeclaration:h5,getTypeReferenceSerializationKind:d5,isOptionalParameter:qd,moduleExportsSomeValue:n5,isArgumentsLocalBinding:r5,getExternalModuleFileFromDeclaration:function(ce){var ke=e.getParseTreeNode(ce,e.hasPossibleExternalModuleReference);return ke&&$D(ke)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:l,isLiteralConstDeclaration:D5,isLateBound:function(ce){var ke=e.getParseTreeNode(ce,e.isDeclaration),rr=ke&&zi(ke);return!!(rr&&e.getCheckFlags(rr)&4096)},getJsxFactoryEntity:vE,getJsxFragmentFactoryEntity:YD,getAllAccessorDeclarations:function(ce){ce=e.getParseTreeNode(ce,e.isGetOrSetAccessorDeclaration);var ke=ce.kind===175?174:175,rr=e.getDeclarationOfKind(zi(ce),ke),$e=rr&&rr.pos<ce.pos?rr:ce,ar=rr&&rr.pos<ce.pos?ce:rr,ir=ce.kind===175?ce:rr,Wr=ce.kind===174?ce:rr;return{firstAccessor:$e,secondAccessor:ar,setAccessor:ir,getAccessor:Wr}},getSymbolOfExternalModuleSpecifier:function(ce){return ml(ce,ce,void 0)},isBindingCapturedByNode:function(ce,ke){var rr=e.getParseTreeNode(ce),$e=e.getParseTreeNode(ke);return!!rr&&!!$e&&(e.isVariableDeclaration($e)||e.isBindingElement($e))&&h4(rr,$e)},getDeclarationStatementsForSourceFile:function(ce,ke,rr,$e){var ar=e.getParseTreeNode(ce);e.Debug.assert(ar&&ar.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");var ir=zi(ce);return ir?ir.exports?Cr.symbolTableToDeclarationStatements(ir.exports,ce,ke,rr,$e):[]:ce.locals?Cr.symbolTableToDeclarationStatements(ce.locals,ce,ke,rr,$e):[]},isImportRequiredByAugmentation:i};function i(ce){var ke=e.getSourceFileOfNode(ce);if(!ke.symbol)return!1;var rr=$D(ce);if(!rr||rr===ke)return!1;for(var $e=Ls(ke.symbol),ar=0,ir=e.arrayFrom($e.values());ar<ir.length;ar++){var Wr=ir[ar];if(Wr.mergeId){var sn=Ya(Wr);if(sn.declarations)for(var In=0,Sn=sn.declarations;In<Sn.length;In++){var Kn=Sn[In],ei=e.getSourceFileOfNode(Kn);if(ei===rr)return!0}}}return!1}function a(ce){return ce.parent&&ce.parent.kind===230&&ce.parent.parent&&ce.parent.parent.kind===294}function s(ce){if(!!n){var ke;ce.parent.kind===164?ke=111551|1048576:(ke=788968|1920,(ce.kind===79&&ym(ce)||ce.kind===208&&!a(ce))&&(ke=111551|1048576));var rr=ts(ce,ke,!0);return rr&&rr!==jr?l(rr,ke):void 0}}function l(ce,ke){if(!(!n||!g(ce))){for(var rr,$e=0,ar=ce.declarations;$e<ar.length;$e++){var ir=ar[$e];if(ir.symbol&&ir.symbol.flags&ke){var Wr=e.getSourceFileOfNode(ir),sn=n.get(Wr.path);if(sn)(rr||(rr=[])).push(sn);else return}}return rr}}function g(ce){if(!ce.declarations)return!1;for(var ke=ce;;){var rr=Nc(ke);if(rr)ke=rr;else break}if(ke.valueDeclaration&&ke.valueDeclaration.kind===308&&ke.flags&512)return!1;for(var $e=0,ar=ce.declarations;$e<ar.length;$e++){var ir=ar[$e],Wr=e.getSourceFileOfNode(ir);if(n.has(Wr.path))return!0}return!1}function W(ce,ke,rr){if(!n.has(ce.path)){n.set(ce.path,[ke,rr]);for(var $e=0,ar=ce.referencedFiles;$e<ar.length;$e++){var ir=ar[$e],Wr=ir.fileName,sn=ir.resolutionMode,In=e.resolveTripleslashReference(Wr,ce.fileName),Sn=b.getSourceFile(In);Sn&&W(Sn,ke,sn||ce.impliedNodeFormat)}}}}function $D(r){var n=r.kind===264?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),i=ml(n,n,void 0);if(!!i)return e.getDeclarationOfKind(i,308)}function C5(){for(var r=0,n=b.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,Y)}Je=new e.Map;for(var a,s=0,l=b.getSourceFiles();s<l.length;s++){var i=l[s];if(!i.redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var g=i.locals.get("globalThis");if(g==null?void 0:g.declarations)for(var W=0,ce=g.declarations;W<ce.length;W++){var ke=ce[W];fe.add(e.createDiagnosticForNode(ke,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}ou(rn,i.locals)}if(i.jsGlobalAugmentations&&ou(rn,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Mn=e.concatenate(Mn,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports){var rr=i.symbol.globalExports;rr.forEach(function(pt,rt){rn.has(rt)||rn.set(rt,pt)})}}}if(a)for(var $e=0,ar=a;$e<ar.length;$e++)for(var ir=ar[$e],Wr=0,sn=ir;Wr<sn.length;Wr++){var In=sn[Wr];!e.isGlobalScopeAugmentation(In.parent)||V_(In)}if(y_(rn,Fa,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Qt(Br).type=fn,Qt(ve).type=lc("IArguments",0,!0),Qt(jr).type=ue,Qt(pn).type=Gc(16,pn),la=lc("Array",1,!0),di=lc("Object",0,!0),fi=lc("Function",0,!0),Nt=wr&&lc("CallableFunction",0,!0)||fi,Gt=wr&&lc("NewableFunction",0,!0)||fi,Ia=lc("String",0,!0),bs=lc("Number",0,!0),ds=lc("Boolean",0,!0),ps=lc("RegExp",0,!0),Es=ic(Te),ns=ic(Ye),ns===Zi&&(ns=Yo(void 0,Oe,e.emptyArray,e.emptyArray,e.emptyArray)),na=wb("ReadonlyArray",1)||la,dc=na?qm(na,[Te]):Es,ac=wb("ThisType",1),a)for(var Sn=0,Kn=a;Sn<Kn.length;Sn++)for(var ir=Kn[Sn],ei=0,Ti=ir;ei<Ti.length;ei++){var In=Ti[ei];e.isGlobalScopeAugmentation(In.parent)||V_(In)}Je.forEach(function(Ri){var pt=Ri.firstFile,rt=Ri.secondFile,Da=Ri.conflictingSymbols;if(Da.size<8)Da.forEach(function(ba,Ta){for(var wa=ba.isBlockScoped,So=ba.firstFileLocations,xo=ba.secondFileLocations,uo=wa?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,sa=0,si=So;sa<si.length;sa++){var Rn=si[sa];v_(Rn,uo,Ta,xo)}for(var ut=0,Pt=xo;ut<Pt.length;ut++){var Rn=Pt[ut];v_(Rn,uo,Ta,So)}});else{var St=e.arrayFrom(Da.keys()).join(", ");fe.add(e.addRelatedInfo(e.createDiagnosticForNode(pt,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,St),e.createDiagnosticForNode(rt,e.Diagnostics.Conflicts_are_in_this_file))),fe.add(e.addRelatedInfo(e.createDiagnosticForNode(rt,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,St),e.createDiagnosticForNode(pt,e.Diagnostics.Conflicts_are_in_this_file)))}}),Je=void 0}function _c(r,n){if((u&n)!==n&&Y.importHelpers){var i=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(i,Y)&&!(r.flags&16777216)){var a=E5(i,r);if(a!==jr){for(var s=n&~u,l=1;l<=4194304;l<<=1)if(s&l){var g=T5(l),W=Wc(a.exports,e.escapeLeadingUnderscores(g),111551);W?l&524288?e.some(Gd(W),function(ce){return au(ce)>3})||Zr(r,e.Diagnostics.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,e.externalHelpersModuleNameText,g,4):l&1048576?e.some(Gd(W),function(ce){return au(ce)>4})||Zr(r,e.Diagnostics.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,e.externalHelpersModuleNameText,g,5):l&1024&&(e.some(Gd(W),function(ce){return au(ce)>2})||Zr(r,e.Diagnostics.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,e.externalHelpersModuleNameText,g,3)):Zr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,g)}}u|=n}}}function T5(r){switch(r){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";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";default:return e.Debug.fail("Unrecognized helper")}}function E5(r,n){return A||(A=Hf(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||jr),A}function jf(r){return k5(r)||yE(r)}function k5(r){if(e.canHaveIllegalDecorators(r)&&e.some(r.illegalDecorators))return Ws(r,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(r)||!e.hasDecorators(r))return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===174||r.kind===175){var n=e.getAllAccessorDeclarations(r.parent.members,r);if(e.hasDecorators(n.firstAccessor)&&r===n.secondAccessor)return Ws(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===171&&!e.nodeIsPresent(r.body)?Ws(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Ws(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function yE(r){var n=A5(r);if(n!==void 0)return n;for(var i,a,s,l,g=0,W=0,ce=r.modifiers;W<ce.length;W++){var ke=ce[W];if(!e.isDecorator(ke)){if(ke.kind!==146){if(r.kind===168||r.kind===170)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(ke.kind));if(r.kind===178&&(ke.kind!==124||!e.isClassLike(r.parent)))return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(ke.kind))}if(ke.kind!==101&&ke.kind!==145&&r.kind===165)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter,e.tokenToString(ke.kind));switch(ke.kind){case 85:if(r.kind!==263)return mi(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 161:if(g&16384)return mi(ke,e.Diagnostics._0_modifier_already_seen,"override");if(g&2)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(g&64)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(g&128)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","accessor");if(g&512)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");g|=16384,l=ke;break;case 123:case 122:case 121:var rr=e_(e.modifierToFlag(ke.kind));if(g&28)return mi(ke,e.Diagnostics.Accessibility_modifier_already_seen);if(g&16384)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,rr,"override");if(g&32)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,rr,"static");if(g&128)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,rr,"accessor");if(g&64)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,rr,"readonly");if(g&512)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,rr,"async");if(r.parent.kind===265||r.parent.kind===308)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,rr);if(g&256)return ke.kind===121?mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,rr,"abstract"):mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,rr,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return mi(ke,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);g|=e.modifierToFlag(ke.kind);break;case 124:if(g&32)return mi(ke,e.Diagnostics._0_modifier_already_seen,"static");if(g&64)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(g&512)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(g&128)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===265||r.parent.kind===308)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===166)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(g&256)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(g&16384)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");g|=32,i=ke;break;case 127:if(g&128)return mi(ke,e.Diagnostics._0_modifier_already_seen,"accessor");if(g&64)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(g&2)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==169)return mi(ke,e.Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration);g|=128;break;case 146:if(g&64)return mi(ke,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==169&&r.kind!==168&&r.kind!==178&&r.kind!==166)return mi(ke,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);g|=64;break;case 93:if(g&1)return mi(ke,e.Diagnostics._0_modifier_already_seen,"export");if(g&2)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(g&256)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(g&512)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===166)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");g|=1;break;case 88:var $e=r.parent.kind===308?r.parent:r.parent.parent;if($e.kind===264&&!e.isAmbientModule($e))return mi(ke,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(g&1))return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");g|=1024;break;case 136:if(g&2)return mi(ke,e.Diagnostics._0_modifier_already_seen,"declare");if(g&512)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(g&16384)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===166)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&16777216&&r.parent.kind===265)return mi(ke,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");g|=2,a=ke;break;case 126:if(g&256)return mi(ke,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==260&&r.kind!==182){if(r.kind!==171&&r.kind!==169&&r.kind!==174&&r.kind!==175)return mi(ke,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===260&&e.hasSyntacticModifier(r.parent,256)))return mi(ke,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(g&32)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(g&8)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(g&512&&s)return mi(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(g&16384)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override");if(g&128)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");g|=256;break;case 132:if(g&512)return mi(ke,e.Diagnostics._0_modifier_already_seen,"async");if(g&2||r.parent.flags&16777216)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===166)return mi(ke,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(g&256)return mi(ke,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");g|=512,s=ke;break;case 101:case 145:var ar=ke.kind===101?32768:65536,ir=ke.kind===101?"in":"out";if(r.kind!==165||!(e.isInterfaceDeclaration(r.parent)||e.isClassLike(r.parent)||e.isTypeAliasDeclaration(r.parent)))return mi(ke,e.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,ir);if(g&ar)return mi(ke,e.Diagnostics._0_modifier_already_seen,ir);if(ar&32768&&g&65536)return mi(ke,e.Diagnostics._0_modifier_must_precede_1_modifier,"in","out");g|=ar;break}}}return r.kind===173?g&32?mi(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):g&16384?mi(l,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):g&512?mi(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===269||r.kind===268)&&g&2?mi(a,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===166&&g&16476&&e.isBindingPattern(r.name)?mi(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===166&&g&16476&&r.dotDotDotToken?mi(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):g&512?P5(r,s):!1}function A5(r){return r.modifiers?N5(r)?Ws(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function N5(r){switch(r.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return!1;case 172:case 299:case 300:case 267:case 181:case 279:return!0;default:if(r.parent.kind===265||r.parent.kind===308)return!1;switch(r.kind){case 259:return eb(r,132);case 260:case 182:return eb(r,126);case 228:case 261:case 240:case 262:return!0;case 263:return eb(r,85);default:e.Debug.assertNever(r)}}}function eb(r,n){for(var i=0,a=r.modifiers;i<a.length;i++){var s=a[i];if(!e.isDecorator(s))return s.kind!==n}return!1}function P5(r,n){switch(r.kind){case 171:case 259:case 215:case 216:return!1}return mi(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function fg(r,n){return n===void 0&&(n=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?cp(r[0],r.end-",".length,",".length,n):!1}function hE(r,n){if(r&&r.length===0){var i=r.pos-"<".length,a=e.skipTrivia(n.text,r.end)+">".length;return cp(n,i,a-i,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function I5(r){for(var n=!1,i=r.length,a=0;a<i;a++){var s=r[a];if(s.dotDotDotToken){if(a!==i-1)return mi(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&16777216||fg(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return mi(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return mi(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(qd(s)){if(n=!0,s.questionToken&&s.initializer)return mi(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(n&&!s.initializer)return mi(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function w5(r){return e.filter(r,function(n){return!!n.initializer||e.isBindingPattern(n.name)||e.isRestParameter(n)})}function O5(r){if(d>=3){var n=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(n){var i=w5(r.parameters);if(e.length(i)){e.forEach(i,function(s){e.addRelatedInfo(Zr(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(n,e.Diagnostics.use_strict_directive_used_here))});var a=i.map(function(s,l){return l===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,zn([Zr(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}return!1}function J0(r){var n=e.getSourceFileOfNode(r);return jf(r)||hE(r.typeParameters,n)||I5(r.parameters)||M5(r,n)||e.isFunctionLikeDeclaration(r)&&O5(r)}function F5(r){var n=e.getSourceFileOfNode(r);return j5(r)||hE(r.typeParameters,n)}function M5(r,n){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&n&&e.fileExtensionIsOneOf(n.fileName,[".mts",".cts"])&&mi(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var i=r.equalsGreaterThanToken,a=e.getLineAndCharacterOfPosition(n,i.pos).line,s=e.getLineAndCharacterOfPosition(n,i.end).line;return a!==s&&mi(i,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function L5(r){var n=r.parameters[0];if(r.parameters.length!==1)return mi(n?n.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(fg(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),n.dotDotDotToken)return mi(n.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(n))return mi(n.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(n.questionToken)return mi(n.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(n.initializer)return mi(n.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!n.type)return mi(n.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var i=zt(n.type);return Jf(i,function(a){return!!(a.flags&8576)})||rg(i)?mi(n.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):mf(i,ch)?r.type?!1:mi(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):mi(n.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function R5(r){return jf(r)||L5(r)}function B5(r,n){if(n&&n.length===0){var i=e.getSourceFileOfNode(r),a=n.pos-"<".length,s=e.skipTrivia(i.text,n.end)+">".length;return cp(i,a,s-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Wy(r,n){return fg(n)||B5(r,n)}function J5(r){return r.questionDotToken||r.flags&32?mi(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function DE(r){var n=r.types;if(fg(n))return!0;if(n&&n.length===0){var i=e.tokenToString(r.token);return cp(r,n.pos,0,e.Diagnostics._0_list_cannot_be_empty,i)}return e.some(n,bE)}function bE(r){return e.isExpressionWithTypeArguments(r)&&e.isImportKeyword(r.expression)&&r.typeArguments?mi(r,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Wy(r,r.typeArguments)}function j5(r){var n=!1,i=!1;if(!jf(r)&&r.heritageClauses)for(var a=0,s=r.heritageClauses;a<s.length;a++){var l=s[a];if(l.token===94){if(n)return Ws(l,e.Diagnostics.extends_clause_already_seen);if(i)return Ws(l,e.Diagnostics.extends_clause_must_precede_implements_clause);if(l.types.length>1)return Ws(l.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(l.token===117),i)return Ws(l,e.Diagnostics.implements_clause_already_seen);i=!0}DE(l)}}function U5(r){var n=!1;if(r.heritageClauses)for(var i=0,a=r.heritageClauses;i<a.length;i++){var s=a[i];if(s.token===94){if(n)return Ws(s,e.Diagnostics.extends_clause_already_seen);n=!0}else return e.Debug.assert(s.token===117),Ws(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);DE(s)}return!1}function j0(r){if(r.kind!==164)return!1;var n=r;return n.expression.kind===223&&n.expression.operatorToken.kind===27?mi(n.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function rb(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===259||r.kind===215||r.kind===171),r.flags&16777216)return mi(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return mi(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function nb(r,n){return!!r&&mi(r,n)}function SE(r,n){return!!r&&mi(r,n)}function z5(r,n){for(var i=new e.Map,a=0,s=r.properties;a<s.length;a++){var l=s[a];if(l.kind===301){if(n){var g=e.skipParentheses(l.expression);if(e.isArrayLiteralExpression(g)||e.isObjectLiteralExpression(g))return mi(l.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var W=l.name;if(W.kind===164&&j0(W),l.kind===300&&!n&&l.objectAssignmentInitializer&&mi(l.equalsToken,e.Diagnostics.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),W.kind===80&&mi(W,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),e.canHaveModifiers(l)&&l.modifiers)for(var ce=0,ke=l.modifiers;ce<ke.length;ce++){var rr=ke[ce];e.isModifier(rr)&&(rr.kind!==132||l.kind!==171)&&mi(rr,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(rr))}else if(e.canHaveIllegalModifiers(l)&&l.modifiers)for(var $e=0,ar=l.modifiers;$e<ar.length;$e++){var rr=ar[$e];mi(rr,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(rr))}var ir=void 0;switch(l.kind){case 300:case 299:SE(l.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context),nb(l.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),W.kind===8&&ab(W),ir=4;break;case 171:ir=8;break;case 174:ir=1;break;case 175:ir=2;break;default:throw e.Debug.assertNever(l,"Unexpected syntax kind:"+l.kind)}if(!n){var Wr=e.getPropertyNameForPropertyNameNode(W);if(Wr===void 0)continue;var sn=i.get(Wr);if(!sn)i.set(Wr,ir);else if(ir&8&&sn&8)mi(W,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(W));else if(ir&4&&sn&4)mi(W,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(W));else if(ir&3&&sn&3)if(sn!==3&&ir!==sn)i.set(Wr,ir|sn);else return mi(W,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return mi(W,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function W5(r){V5(r.tagName),Wy(r,r.typeArguments);for(var n=new e.Map,i=0,a=r.attributes.properties;i<a.length;i++){var s=a[i];if(s.kind!==290){var l=s.name,g=s.initializer;if(!n.get(l.escapedText))n.set(l.escapedText,!0);else return mi(l,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(g&&g.kind===291&&!g.expression)return mi(g,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function V5(r){if(e.isPropertyAccessExpression(r)){var n=r;do{var i=s(n.name);if(i)return i;n=n.expression}while(e.isPropertyAccessExpression(n));var a=s(n);if(a)return a}function s(l){if(e.isIdentifier(l)&&e.idText(l).indexOf(":")!==-1)return mi(l,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function q5(r){if(r.expression&&e.isCommaSequence(r.expression))return mi(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function xE(r){if(Uf(r))return!0;if(r.kind===247&&r.awaitModifier&&!(r.flags&32768)){var n=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r)){if(!zp(n))switch(e.isEffectiveExternalModule(n,Y)||fe.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.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)),j){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(n.impliedNodeFormat===e.ModuleKind.CommonJS){fe.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(d>=4)break;default:fe.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!zp(n)){var i=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),a=e.getContainingFunction(r);if(a&&a.kind!==173){e.Debug.assert((e.getFunctionFlags(a)&2)==0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(a,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,s)}return fe.add(i),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return mi(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===258){var l=r.initializer;if(!tb(l)){var g=l.declarations;if(!g.length)return!1;if(g.length>1){var i=r.kind===246?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Ws(l.declarations[1],i)}var W=g[0];if(W.initializer){var i=r.kind===246?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return mi(W.name,i)}if(W.type){var i=r.kind===246?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return mi(W,i)}}}return!1}function G5(r){if(!(r.flags&16777216)&&r.parent.kind!==184&&r.parent.kind!==261){if(d<1)return mi(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(d<2&&e.isPrivateIdentifier(r.name))return mi(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,256))return cp(r,r.end-1,";".length,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,256))return mi(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===184||r.parent.kind===261)return mi(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return mi(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!H5(r))return mi(r.name,r.kind===174?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===175){if(r.type)return mi(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(n.dotDotDotToken)return mi(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return mi(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return mi(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function H5(r){return ib(r)||r.parameters.length===(r.kind===174?0:1)}function ib(r){if(r.parameters.length===(r.kind===174?1:2))return e.getThisParameter(r)}function K5(r){if(r.operator===156){if(r.type.kind!==153)return mi(r.type,e.Diagnostics._0_expected,e.tokenToString(153));var n=e.walkUpParenthesizedTypes(r.parent);if(e.isInJSFile(n)&&e.isJSDocTypeExpression(n)){var i=e.getJSDocHost(n);i&&(n=e.getSingleVariableOfVariableStatement(i)||i)}switch(n.kind){case 257:var a=n;if(a.name.kind!==79)return mi(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(a))return mi(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(a.parent.flags&2))return mi(n.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!e.isStatic(n)||!e.hasEffectiveReadonlyModifier(n))return mi(n.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!e.hasSyntacticModifier(n,64))return mi(n.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return mi(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===146&&r.type.kind!==185&&r.type.kind!==186)return Ws(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(153))}function wm(r,n){if(Vy(r))return mi(r,n)}function CE(r){if(J0(r))return!0;if(r.kind===171){if(r.parent.kind===207){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===132))return Ws(r,e.Diagnostics.Modifiers_cannot_appear_here);if(nb(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(SE(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return cp(r,r.end-1,";".length,e.Diagnostics._0_expected,"{")}if(rb(r))return!0}if(e.isClassLike(r.parent)){if(d<2&&e.isPrivateIdentifier(r.name))return mi(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&16777216)return wm(r.name,e.Diagnostics.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===171&&!r.body)return wm(r.name,e.Diagnostics.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===261)return wm(r.name,e.Diagnostics.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===184)return wm(r.name,e.Diagnostics.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 Q5(r){for(var n=r;n;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(n))return mi(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 253:if(r.label&&n.label.escapedText===r.label.escapedText){var i=r.kind===248&&!e.isIterationStatement(n.statement,!0);return i?mi(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 252:if(r.kind===249&&!r.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!r.label)return!1;break}n=n.parent}if(r.label){var a=r.kind===249?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return mi(r,a)}else{var a=r.kind===249?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return mi(r,a)}}function X5(r){if(r.dotDotDotToken){var n=r.parent.elements;if(r!==e.last(n))return mi(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(fg(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return mi(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return cp(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function TE(r){return e.isStringOrNumericLiteralLike(r)||r.kind===221&&r.operator===40&&r.operand.kind===8}function Z5(r){return r.kind===9||r.kind===221&&r.operator===40&&r.operand.kind===9}function Y5(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&TE(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(Ds(r).flags&1024)}function EE(r){var n=r.initializer;if(n){var i=!(TE(n)||Y5(n)||n.kind===110||n.kind===95||Z5(n)),a=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(a&&!r.type){if(i)return mi(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return mi(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function $5(r){if(r.parent.parent.kind!==246&&r.parent.parent.kind!==247){if(r.flags&16777216)EE(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return mi(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return mi(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==240||!r.type||r.initializer||r.flags&16777216)){var n=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return mi(r.exclamationToken,n)}(j<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&j!==e.ModuleKind.System&&!(r.parent.parent.flags&16777216)&&e.hasSyntacticModifier(r.parent.parent,1)&&kE(r.name);var i=e.isLet(r)||e.isVarConst(r);return i&&AE(r.name)}function kE(r){if(r.kind===79){if(e.idText(r)==="__esModule")return n7("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var s=a[i];if(!e.isOmittedExpression(s))return kE(s.name)}return!1}function AE(r){if(r.kind===79){if(r.originalKeywordKind===119)return mi(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var s=a[i];e.isOmittedExpression(s)||AE(s.name)}return!1}function tb(r){var n=r.declarations;return fg(r.declarations)?!0:r.declarations.length?!1:cp(r,n.pos,n.end-n.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function NE(r){switch(r.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return NE(r.parent)}return!0}function e7(r){if(!NE(r.parent)){if(e.isLet(r.declarationList))return mi(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return mi(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function r7(r){var n=r.name.escapedText;switch(r.keywordToken){case 103:if(n!=="target")return mi(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(n!=="meta")return mi(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function zp(r){return r.parseDiagnostics.length>0}function Ws(r,n,i,a,s){var l=e.getSourceFileOfNode(r);if(!zp(l)){var g=e.getSpanOfTokenAtPosition(l,r.pos);return fe.add(e.createFileDiagnostic(l,g.start,g.length,n,i,a,s)),!0}return!1}function cp(r,n,i,a,s,l,g){var W=e.getSourceFileOfNode(r);return zp(W)?!1:(fe.add(e.createFileDiagnostic(W,n,i,a,s,l,g)),!0)}function n7(r,n,i,a,s,l){var g=e.getSourceFileOfNode(n);return zp(g)?!1:(pl(r,n,i,a,s,l),!0)}function mi(r,n,i,a,s){var l=e.getSourceFileOfNode(r);return zp(l)?!1:(fe.add(e.createDiagnosticForNode(r,n,i,a,s)),!0)}function i7(r){var n=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,i=r.typeParameters||n&&e.firstOrUndefined(n);if(i){var a=i.pos===i.end?i.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,i.pos);return cp(r,a,i.end-a,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function t7(r){var n=r.type||e.getEffectiveReturnTypeNode(r);if(n)return mi(n,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function a7(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return mi(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return mi(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(wm(r.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(d<2&&e.isPrivateIdentifier(r.name))return mi(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(d<2&&e.isAutoAccessorPropertyDeclaration(r))return mi(r.name,e.Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(e.isAutoAccessorPropertyDeclaration(r)&&nb(r.questionToken,e.Diagnostics.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===261){if(wm(r.name,e.Diagnostics.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.Debug.assertNode(r,e.isPropertySignature),r.initializer)return mi(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(wm(r.name,e.Diagnostics.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.Debug.assertNode(r,e.isPropertySignature),r.initializer)return mi(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&16777216&&EE(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&16777216||e.isStatic(r)||e.hasAbstractModifier(r))){var n=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return mi(r.exclamationToken,n)}}function o7(r){return r.kind===261||r.kind===262||r.kind===269||r.kind===268||r.kind===275||r.kind===274||r.kind===267||e.hasSyntacticModifier(r,2|1|1024)?!1:Ws(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function s7(r){for(var n=0,i=r.statements;n<i.length;n++){var a=i[n];if((e.isDeclaration(a)||a.kind===240)&&o7(a))return!0}return!1}function c7(r){return!!(r.flags&16777216)&&s7(r)}function Uf(r){if(r.flags&16777216){var n=At(r);if(!n.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return At(r).hasReportedStatementInAmbientContext=Ws(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===238||r.parent.kind===265||r.parent.kind===308){var i=At(r.parent);if(!i.hasReportedStatementInAmbientContext)return i.hasReportedStatementInAmbientContext=Ws(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ab(r){if(r.numericLiteralFlags&32){var n=void 0;if(d>=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,198)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,302)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var i=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,a=(i?"-":"")+"0o"+r.text;return mi(i?r.parent:r,n,a)}}return u7(r),!1}function u7(r){var n=e.getTextOfNode(r).indexOf(".")!==-1,i=r.numericLiteralFlags&16;if(!(n||i)){var a=+r.text;a<=Math.pow(2,53)-1||Yl(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function l7(r){var n=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!n&&d<7&&mi(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function f7(r,n,i,a,s){var l=e.getSourceFileOfNode(r);if(!zp(l)){var g=e.getSpanOfTokenAtPosition(l,r.pos);return fe.add(e.createFileDiagnostic(l,e.textSpanEnd(g),0,n,i,a,s)),!0}return!1}function _7(){return Jr||(Jr=[],rn.forEach(function(r,n){o.test(n)&&Jr.push(r)})),Jr}function d7(r){var n;return r.isTypeOnly&&r.name&&r.namedBindings?mi(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((n=r.namedBindings)===null||n===void 0?void 0:n.kind)===272?PE(r.namedBindings):!1}function PE(r){return!!e.forEach(r.elements,function(n){if(n.isTypeOnly)return Ws(n,n.kind===273?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function p7(r){if(j===e.ModuleKind.ES2015)return mi(r,e.Diagnostics.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 mi(r,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var n=r.arguments;if(j!==e.ModuleKind.ESNext&&j!==e.ModuleKind.NodeNext&&j!==e.ModuleKind.Node16&&(fg(n),n.length>1)){var i=n[1];return mi(i,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(n.length===0||n.length>2)return mi(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var a=e.find(n,e.isSpreadElement);return a?mi(a,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function g7(r,n){var i=e.getObjectFlags(r);if(i&(4|16)&&n.flags&1048576)return e.find(n.types,function(a){if(a.flags&524288){var s=i&e.getObjectFlags(a);if(s&4)return r.target===a.target;if(s&16)return!!r.aliasSymbol&&r.aliasSymbol===a.aliasSymbol}return!1})}function m7(r,n){if(e.getObjectFlags(r)&128&&Jf(n,Td))return e.find(n.types,function(i){return!Td(i)})}function v7(r,n){var i=0,a=_a(r,i).length>0||(i=1,_a(r,i).length>0);if(a)return e.find(n.types,function(s){return _a(s,i).length>0})}function y7(r,n){var i;if(!(r.flags&(131068|406847488)))for(var a=0,s=0,l=n.types;s<l.length;s++){var g=l[s];if(!(g.flags&(131068|406847488))){var W=ro([Wl(r),Wl(g)]);if(W.flags&4194304)return g;if(ll(W)||W.flags&1048576){var ce=W.flags&1048576?e.countWhere(W.types,ll):1;ce>=a&&(i=g,a=ce)}}}return i}function h7(r){if(rs(r,67108864)){var n=Qs(r,function(i){return!(i.flags&131068)});if(!(n.flags&131072))return n}return r}function IE(r,n,i,a){if(n.flags&1048576&&r.flags&(2097152|524288)){var s=ix(n,r);if(s)return s;var l=vo(r);if(l){var g=nx(l,n);if(g)return Y1(n,e.map(g,function(W){return[function(){return Li(W)},W.escapedName]}),i,void 0,a)}}}}e.createTypeChecker=$;function L(b){return!e.isAccessor(b)}function P(b){return b.kind!==259&&b.kind!==171||!!b.body}function N(b){switch(b.parent.kind){case 273:case 278:return e.isIdentifier(b);default:return e.isDeclarationName(b)}}var J;(function(b){b.JSX="JSX",b.IntrinsicElements="IntrinsicElements",b.ElementClass="ElementClass",b.ElementAttributesPropertyNameContainer="ElementAttributesProperty",b.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",b.Element="Element",b.IntrinsicAttributes="IntrinsicAttributes",b.IntrinsicClassAttributes="IntrinsicClassAttributes",b.LibraryManagedAttributes="LibraryManagedAttributes"})(J||(J={}));function q(b){switch(b){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function G(b){return!!(b.flags&1)}e.signatureHasRestParameter=G;function ye(b){return!!(b.flags&2)}e.signatureHasLiteralTypes=ye})(fr||(fr={}));var fr;(function(e){var o;function ne(I,f,m,y){if(I===void 0||f===void 0)return I;var S=f(I);if(S===I)return I;var k;if(S!==void 0)return e.isArray(S)?k=(y||E)(S):k=S,e.Debug.assertNode(k,m),k}e.visitNode=ne;function K(I,f,m,y,S){if(I===void 0||f===void 0)return I;var k=I.length;(y===void 0||y<0)&&(y=0),(S===void 0||S>k-y)&&(S=k-y);var C,me=-1,De=-1;y>0||S<k?C=I.hasTrailingComma&&y+S===k:(me=I.pos,De=I.end,C=I.hasTrailingComma);var X=O(I,f,m,y,S);if(X!==I){var M=e.factory.createNodeArray(X,C);return e.setTextRangePosEnd(M,me,De),M}return I}e.visitNodes=K;function se(I,f,m,y,S){if(I===void 0)return I;var k=I.length;return(y===void 0||y<0)&&(y=0),(S===void 0||S>k-y)&&(S=k-y),O(I,f,m,y,S)}e.visitArray=se;function O(I,f,m,y,S){var k,C=I.length;(y>0||S<C)&&(k=[]);for(var me=0;me<S;me++){var De=I[me+y],X=De!==void 0?f(De):void 0;if((k!==void 0||X===void 0||X!==De)&&(k===void 0&&(k=I.slice(0,me)),X))if(e.isArray(X))for(var M=0,H=X;M<H.length;M++){var V=H[M];e.Debug.assertNode(V,m),k.push(V)}else e.Debug.assertNode(X,m),k.push(X)}return k!=null?k:I}function ie(I,f,m,y,S,k){return k===void 0&&(k=K),m.startLexicalEnvironment(),I=k(I,f,e.isStatement,y),S&&(I=m.factory.ensureUseStrict(I)),e.factory.mergeLexicalEnvironment(I,m.endLexicalEnvironment())}e.visitLexicalEnvironment=ie;function _e(I,f,m,y){y===void 0&&(y=K);var S;return m.startLexicalEnvironment(),I&&(m.setLexicalEnvironmentFlags(1,!0),S=y(I,f,e.isParameterDeclaration),m.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(m.getCompilerOptions())>=2&&(S=Q(S,m)),m.setLexicalEnvironmentFlags(1,!1)),m.suspendLexicalEnvironment(),S}e.visitParameterList=_e;function Q(I,f){for(var m,y=0;y<I.length;y++){var S=I[y],k=p(S,f);(m||k!==S)&&(m||(m=I.slice(0,y)),m[y]=k)}return m?e.setTextRange(f.factory.createNodeArray(m,I.hasTrailingComma),I):I}function p(I,f){return I.dotDotDotToken?I:e.isBindingPattern(I.name)?D(I,f):I.initializer?le(I,I.name,I.initializer,f):I}function D(I,f){var m=f.factory;return f.addInitializationStatement(m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(I.name,void 0,I.type,I.initializer?m.createConditionalExpression(m.createStrictEquality(m.getGeneratedNameForNode(I),m.createVoidZero()),void 0,I.initializer,void 0,m.getGeneratedNameForNode(I)):m.getGeneratedNameForNode(I))]))),m.updateParameterDeclaration(I,I.modifiers,I.dotDotDotToken,m.getGeneratedNameForNode(I),I.questionToken,I.type,void 0)}function le(I,f,m,y){var S=y.factory;return y.addInitializationStatement(S.createIfStatement(S.createTypeCheck(S.cloneNode(f),"undefined"),e.setEmitFlags(e.setTextRange(S.createBlock([S.createExpressionStatement(e.setEmitFlags(e.setTextRange(S.createAssignment(e.setEmitFlags(S.cloneNode(f),48),e.setEmitFlags(m,48|e.getEmitFlags(m)|1536)),I),1536))]),I),1|32|384|1536))),S.updateParameterDeclaration(I,I.modifiers,I.dotDotDotToken,I.name,I.questionToken,I.type,void 0)}function de(I,f,m,y){y===void 0&&(y=ne),m.resumeLexicalEnvironment();var S=y(I,f,e.isConciseBody),k=m.endLexicalEnvironment();if(e.some(k)){if(!S)return m.factory.createBlock(k);var C=m.factory.converters.convertToFunctionBlock(S),me=e.factory.mergeLexicalEnvironment(C.statements,k);return m.factory.updateBlock(C,me)}return S}e.visitFunctionBody=de;function te(I,f,m,y){y===void 0&&(y=ne),m.startBlockScope();var S=y(I,f,e.isStatement,m.factory.liftToBlock),k=m.endBlockScope();return e.some(k)?e.isBlock(S)?(k.push.apply(k,S.statements),m.factory.updateBlock(S,k)):(k.push(S),m.factory.createBlock(k)):S}e.visitIterationBody=te;function oe(I,f,m,y,S,k){if(y===void 0&&(y=K),k===void 0&&(k=ne),I!==void 0){var C=ae[I.kind];return C===void 0?I:C(I,f,m,y,k,S)}}e.visitEachChild=oe;var ae=(o={},o[79]=function(f,m,y,S,k,C){return y.factory.updateIdentifier(f,S(f.typeArguments,m,e.isTypeNodeOrTypeParameterDeclaration))},o[163]=function(f,m,y,S,k,C){return y.factory.updateQualifiedName(f,k(f.left,m,e.isEntityName),k(f.right,m,e.isIdentifier))},o[164]=function(f,m,y,S,k,C){return y.factory.updateComputedPropertyName(f,k(f.expression,m,e.isExpression))},o[165]=function(f,m,y,S,k,C){return y.factory.updateTypeParameterDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isIdentifier),k(f.constraint,m,e.isTypeNode),k(f.default,m,e.isTypeNode))},o[166]=function(f,m,y,S,k,C){return y.factory.updateParameterDeclaration(f,S(f.modifiers,m,e.isModifierLike),k(f.dotDotDotToken,C,e.isDotDotDotToken),k(f.name,m,e.isBindingName),k(f.questionToken,C,e.isQuestionToken),k(f.type,m,e.isTypeNode),k(f.initializer,m,e.isExpression))},o[167]=function(f,m,y,S,k,C){return y.factory.updateDecorator(f,k(f.expression,m,e.isExpression))},o[168]=function(f,m,y,S,k,C){return y.factory.updatePropertySignature(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isPropertyName),k(f.questionToken,C,e.isToken),k(f.type,m,e.isTypeNode))},o[169]=function(f,m,y,S,k,C){var me;return y.factory.updatePropertyDeclaration(f,S(f.modifiers,m,e.isModifierLike),k(f.name,m,e.isPropertyName),k((me=f.questionToken)!==null&&me!==void 0?me:f.exclamationToken,C,e.isQuestionOrExclamationToken),k(f.type,m,e.isTypeNode),k(f.initializer,m,e.isExpression))},o[170]=function(f,m,y,S,k,C){return y.factory.updateMethodSignature(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isPropertyName),k(f.questionToken,C,e.isQuestionToken),S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.parameters,m,e.isParameterDeclaration),k(f.type,m,e.isTypeNode))},o[171]=function(f,m,y,S,k,C){return y.factory.updateMethodDeclaration(f,S(f.modifiers,m,e.isModifierLike),k(f.asteriskToken,C,e.isAsteriskToken),k(f.name,m,e.isPropertyName),k(f.questionToken,C,e.isQuestionToken),S(f.typeParameters,m,e.isTypeParameterDeclaration),_e(f.parameters,m,y,S),k(f.type,m,e.isTypeNode),de(f.body,m,y,k))},o[173]=function(f,m,y,S,k,C){return y.factory.updateConstructorDeclaration(f,S(f.modifiers,m,e.isModifier),_e(f.parameters,m,y,S),de(f.body,m,y,k))},o[174]=function(f,m,y,S,k,C){return y.factory.updateGetAccessorDeclaration(f,S(f.modifiers,m,e.isModifierLike),k(f.name,m,e.isPropertyName),_e(f.parameters,m,y,S),k(f.type,m,e.isTypeNode),de(f.body,m,y,k))},o[175]=function(f,m,y,S,k,C){return y.factory.updateSetAccessorDeclaration(f,S(f.modifiers,m,e.isModifierLike),k(f.name,m,e.isPropertyName),_e(f.parameters,m,y,S),de(f.body,m,y,k))},o[172]=function(f,m,y,S,k,C){return y.startLexicalEnvironment(),y.suspendLexicalEnvironment(),y.factory.updateClassStaticBlockDeclaration(f,de(f.body,m,y,k))},o[176]=function(f,m,y,S,k,C){return y.factory.updateCallSignature(f,S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.parameters,m,e.isParameterDeclaration),k(f.type,m,e.isTypeNode))},o[177]=function(f,m,y,S,k,C){return y.factory.updateConstructSignature(f,S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.parameters,m,e.isParameterDeclaration),k(f.type,m,e.isTypeNode))},o[178]=function(f,m,y,S,k,C){return y.factory.updateIndexSignature(f,S(f.modifiers,m,e.isModifier),S(f.parameters,m,e.isParameterDeclaration),k(f.type,m,e.isTypeNode))},o[179]=function(f,m,y,S,k,C){return y.factory.updateTypePredicateNode(f,k(f.assertsModifier,m,e.isAssertsKeyword),k(f.parameterName,m,e.isIdentifierOrThisTypeNode),k(f.type,m,e.isTypeNode))},o[180]=function(f,m,y,S,k,C){return y.factory.updateTypeReferenceNode(f,k(f.typeName,m,e.isEntityName),S(f.typeArguments,m,e.isTypeNode))},o[181]=function(f,m,y,S,k,C){return y.factory.updateFunctionTypeNode(f,S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.parameters,m,e.isParameterDeclaration),k(f.type,m,e.isTypeNode))},o[182]=function(f,m,y,S,k,C){return y.factory.updateConstructorTypeNode(f,S(f.modifiers,m,e.isModifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.parameters,m,e.isParameterDeclaration),k(f.type,m,e.isTypeNode))},o[183]=function(f,m,y,S,k,C){return y.factory.updateTypeQueryNode(f,k(f.exprName,m,e.isEntityName),S(f.typeArguments,m,e.isTypeNode))},o[184]=function(f,m,y,S,k,C){return y.factory.updateTypeLiteralNode(f,S(f.members,m,e.isTypeElement))},o[185]=function(f,m,y,S,k,C){return y.factory.updateArrayTypeNode(f,k(f.elementType,m,e.isTypeNode))},o[186]=function(f,m,y,S,k,C){return y.factory.updateTupleTypeNode(f,S(f.elements,m,e.isTypeNode))},o[187]=function(f,m,y,S,k,C){return y.factory.updateOptionalTypeNode(f,k(f.type,m,e.isTypeNode))},o[188]=function(f,m,y,S,k,C){return y.factory.updateRestTypeNode(f,k(f.type,m,e.isTypeNode))},o[189]=function(f,m,y,S,k,C){return y.factory.updateUnionTypeNode(f,S(f.types,m,e.isTypeNode))},o[190]=function(f,m,y,S,k,C){return y.factory.updateIntersectionTypeNode(f,S(f.types,m,e.isTypeNode))},o[191]=function(f,m,y,S,k,C){return y.factory.updateConditionalTypeNode(f,k(f.checkType,m,e.isTypeNode),k(f.extendsType,m,e.isTypeNode),k(f.trueType,m,e.isTypeNode),k(f.falseType,m,e.isTypeNode))},o[192]=function(f,m,y,S,k,C){return y.factory.updateInferTypeNode(f,k(f.typeParameter,m,e.isTypeParameterDeclaration))},o[202]=function(f,m,y,S,k,C){return y.factory.updateImportTypeNode(f,k(f.argument,m,e.isTypeNode),k(f.assertions,m,e.isImportTypeAssertionContainer),k(f.qualifier,m,e.isEntityName),S(f.typeArguments,m,e.isTypeNode),f.isTypeOf)},o[298]=function(f,m,y,S,k,C){return y.factory.updateImportTypeAssertionContainer(f,k(f.assertClause,m,e.isAssertClause),f.multiLine)},o[199]=function(f,m,y,S,k,C){return y.factory.updateNamedTupleMember(f,k(f.dotDotDotToken,C,e.isDotDotDotToken),k(f.name,m,e.isIdentifier),k(f.questionToken,C,e.isQuestionToken),k(f.type,m,e.isTypeNode))},o[193]=function(f,m,y,S,k,C){return y.factory.updateParenthesizedType(f,k(f.type,m,e.isTypeNode))},o[195]=function(f,m,y,S,k,C){return y.factory.updateTypeOperatorNode(f,k(f.type,m,e.isTypeNode))},o[196]=function(f,m,y,S,k,C){return y.factory.updateIndexedAccessTypeNode(f,k(f.objectType,m,e.isTypeNode),k(f.indexType,m,e.isTypeNode))},o[197]=function(f,m,y,S,k,C){return y.factory.updateMappedTypeNode(f,k(f.readonlyToken,C,e.isReadonlyKeywordOrPlusOrMinusToken),k(f.typeParameter,m,e.isTypeParameterDeclaration),k(f.nameType,m,e.isTypeNode),k(f.questionToken,C,e.isQuestionOrPlusOrMinusToken),k(f.type,m,e.isTypeNode),S(f.members,m,e.isTypeElement))},o[198]=function(f,m,y,S,k,C){return y.factory.updateLiteralTypeNode(f,k(f.literal,m,e.isExpression))},o[200]=function(f,m,y,S,k,C){return y.factory.updateTemplateLiteralType(f,k(f.head,m,e.isTemplateHead),S(f.templateSpans,m,e.isTemplateLiteralTypeSpan))},o[201]=function(f,m,y,S,k,C){return y.factory.updateTemplateLiteralTypeSpan(f,k(f.type,m,e.isTypeNode),k(f.literal,m,e.isTemplateMiddleOrTemplateTail))},o[203]=function(f,m,y,S,k,C){return y.factory.updateObjectBindingPattern(f,S(f.elements,m,e.isBindingElement))},o[204]=function(f,m,y,S,k,C){return y.factory.updateArrayBindingPattern(f,S(f.elements,m,e.isArrayBindingElement))},o[205]=function(f,m,y,S,k,C){return y.factory.updateBindingElement(f,k(f.dotDotDotToken,C,e.isDotDotDotToken),k(f.propertyName,m,e.isPropertyName),k(f.name,m,e.isBindingName),k(f.initializer,m,e.isExpression))},o[206]=function(f,m,y,S,k,C){return y.factory.updateArrayLiteralExpression(f,S(f.elements,m,e.isExpression))},o[207]=function(f,m,y,S,k,C){return y.factory.updateObjectLiteralExpression(f,S(f.properties,m,e.isObjectLiteralElementLike))},o[208]=function(f,m,y,S,k,C){return e.isPropertyAccessChain(f)?y.factory.updatePropertyAccessChain(f,k(f.expression,m,e.isExpression),k(f.questionDotToken,C,e.isQuestionDotToken),k(f.name,m,e.isMemberName)):y.factory.updatePropertyAccessExpression(f,k(f.expression,m,e.isExpression),k(f.name,m,e.isMemberName))},o[209]=function(f,m,y,S,k,C){return e.isElementAccessChain(f)?y.factory.updateElementAccessChain(f,k(f.expression,m,e.isExpression),k(f.questionDotToken,C,e.isQuestionDotToken),k(f.argumentExpression,m,e.isExpression)):y.factory.updateElementAccessExpression(f,k(f.expression,m,e.isExpression),k(f.argumentExpression,m,e.isExpression))},o[210]=function(f,m,y,S,k,C){return e.isCallChain(f)?y.factory.updateCallChain(f,k(f.expression,m,e.isExpression),k(f.questionDotToken,C,e.isQuestionDotToken),S(f.typeArguments,m,e.isTypeNode),S(f.arguments,m,e.isExpression)):y.factory.updateCallExpression(f,k(f.expression,m,e.isExpression),S(f.typeArguments,m,e.isTypeNode),S(f.arguments,m,e.isExpression))},o[211]=function(f,m,y,S,k,C){return y.factory.updateNewExpression(f,k(f.expression,m,e.isExpression),S(f.typeArguments,m,e.isTypeNode),S(f.arguments,m,e.isExpression))},o[212]=function(f,m,y,S,k,C){return y.factory.updateTaggedTemplateExpression(f,k(f.tag,m,e.isExpression),S(f.typeArguments,m,e.isTypeNode),k(f.template,m,e.isTemplateLiteral))},o[213]=function(f,m,y,S,k,C){return y.factory.updateTypeAssertion(f,k(f.type,m,e.isTypeNode),k(f.expression,m,e.isExpression))},o[214]=function(f,m,y,S,k,C){return y.factory.updateParenthesizedExpression(f,k(f.expression,m,e.isExpression))},o[215]=function(f,m,y,S,k,C){return y.factory.updateFunctionExpression(f,S(f.modifiers,m,e.isModifier),k(f.asteriskToken,C,e.isAsteriskToken),k(f.name,m,e.isIdentifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),_e(f.parameters,m,y,S),k(f.type,m,e.isTypeNode),de(f.body,m,y,k))},o[216]=function(f,m,y,S,k,C){return y.factory.updateArrowFunction(f,S(f.modifiers,m,e.isModifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),_e(f.parameters,m,y,S),k(f.type,m,e.isTypeNode),k(f.equalsGreaterThanToken,C,e.isEqualsGreaterThanToken),de(f.body,m,y,k))},o[217]=function(f,m,y,S,k,C){return y.factory.updateDeleteExpression(f,k(f.expression,m,e.isExpression))},o[218]=function(f,m,y,S,k,C){return y.factory.updateTypeOfExpression(f,k(f.expression,m,e.isExpression))},o[219]=function(f,m,y,S,k,C){return y.factory.updateVoidExpression(f,k(f.expression,m,e.isExpression))},o[220]=function(f,m,y,S,k,C){return y.factory.updateAwaitExpression(f,k(f.expression,m,e.isExpression))},o[221]=function(f,m,y,S,k,C){return y.factory.updatePrefixUnaryExpression(f,k(f.operand,m,e.isExpression))},o[222]=function(f,m,y,S,k,C){return y.factory.updatePostfixUnaryExpression(f,k(f.operand,m,e.isExpression))},o[223]=function(f,m,y,S,k,C){return y.factory.updateBinaryExpression(f,k(f.left,m,e.isExpression),k(f.operatorToken,C,e.isBinaryOperatorToken),k(f.right,m,e.isExpression))},o[224]=function(f,m,y,S,k,C){return y.factory.updateConditionalExpression(f,k(f.condition,m,e.isExpression),k(f.questionToken,C,e.isQuestionToken),k(f.whenTrue,m,e.isExpression),k(f.colonToken,C,e.isColonToken),k(f.whenFalse,m,e.isExpression))},o[225]=function(f,m,y,S,k,C){return y.factory.updateTemplateExpression(f,k(f.head,m,e.isTemplateHead),S(f.templateSpans,m,e.isTemplateSpan))},o[226]=function(f,m,y,S,k,C){return y.factory.updateYieldExpression(f,k(f.asteriskToken,C,e.isAsteriskToken),k(f.expression,m,e.isExpression))},o[227]=function(f,m,y,S,k,C){return y.factory.updateSpreadElement(f,k(f.expression,m,e.isExpression))},o[228]=function(f,m,y,S,k,C){return y.factory.updateClassExpression(f,S(f.modifiers,m,e.isModifierLike),k(f.name,m,e.isIdentifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.heritageClauses,m,e.isHeritageClause),S(f.members,m,e.isClassElement))},o[230]=function(f,m,y,S,k,C){return y.factory.updateExpressionWithTypeArguments(f,k(f.expression,m,e.isExpression),S(f.typeArguments,m,e.isTypeNode))},o[231]=function(f,m,y,S,k,C){return y.factory.updateAsExpression(f,k(f.expression,m,e.isExpression),k(f.type,m,e.isTypeNode))},o[235]=function(f,m,y,S,k,C){return y.factory.updateSatisfiesExpression(f,k(f.expression,m,e.isExpression),k(f.type,m,e.isTypeNode))},o[232]=function(f,m,y,S,k,C){return e.isOptionalChain(f)?y.factory.updateNonNullChain(f,k(f.expression,m,e.isExpression)):y.factory.updateNonNullExpression(f,k(f.expression,m,e.isExpression))},o[233]=function(f,m,y,S,k,C){return y.factory.updateMetaProperty(f,k(f.name,m,e.isIdentifier))},o[236]=function(f,m,y,S,k,C){return y.factory.updateTemplateSpan(f,k(f.expression,m,e.isExpression),k(f.literal,m,e.isTemplateMiddleOrTemplateTail))},o[238]=function(f,m,y,S,k,C){return y.factory.updateBlock(f,S(f.statements,m,e.isStatement))},o[240]=function(f,m,y,S,k,C){return y.factory.updateVariableStatement(f,S(f.modifiers,m,e.isModifier),k(f.declarationList,m,e.isVariableDeclarationList))},o[241]=function(f,m,y,S,k,C){return y.factory.updateExpressionStatement(f,k(f.expression,m,e.isExpression))},o[242]=function(f,m,y,S,k,C){return y.factory.updateIfStatement(f,k(f.expression,m,e.isExpression),k(f.thenStatement,m,e.isStatement,y.factory.liftToBlock),k(f.elseStatement,m,e.isStatement,y.factory.liftToBlock))},o[243]=function(f,m,y,S,k,C){return y.factory.updateDoStatement(f,te(f.statement,m,y,k),k(f.expression,m,e.isExpression))},o[244]=function(f,m,y,S,k,C){return y.factory.updateWhileStatement(f,k(f.expression,m,e.isExpression),te(f.statement,m,y,k))},o[245]=function(f,m,y,S,k,C){return y.factory.updateForStatement(f,k(f.initializer,m,e.isForInitializer),k(f.condition,m,e.isExpression),k(f.incrementor,m,e.isExpression),te(f.statement,m,y,k))},o[246]=function(f,m,y,S,k,C){return y.factory.updateForInStatement(f,k(f.initializer,m,e.isForInitializer),k(f.expression,m,e.isExpression),te(f.statement,m,y,k))},o[247]=function(f,m,y,S,k,C){return y.factory.updateForOfStatement(f,k(f.awaitModifier,C,e.isAwaitKeyword),k(f.initializer,m,e.isForInitializer),k(f.expression,m,e.isExpression),te(f.statement,m,y,k))},o[248]=function(f,m,y,S,k,C){return y.factory.updateContinueStatement(f,k(f.label,m,e.isIdentifier))},o[249]=function(f,m,y,S,k,C){return y.factory.updateBreakStatement(f,k(f.label,m,e.isIdentifier))},o[250]=function(f,m,y,S,k,C){return y.factory.updateReturnStatement(f,k(f.expression,m,e.isExpression))},o[251]=function(f,m,y,S,k,C){return y.factory.updateWithStatement(f,k(f.expression,m,e.isExpression),k(f.statement,m,e.isStatement,y.factory.liftToBlock))},o[252]=function(f,m,y,S,k,C){return y.factory.updateSwitchStatement(f,k(f.expression,m,e.isExpression),k(f.caseBlock,m,e.isCaseBlock))},o[253]=function(f,m,y,S,k,C){return y.factory.updateLabeledStatement(f,k(f.label,m,e.isIdentifier),k(f.statement,m,e.isStatement,y.factory.liftToBlock))},o[254]=function(f,m,y,S,k,C){return y.factory.updateThrowStatement(f,k(f.expression,m,e.isExpression))},o[255]=function(f,m,y,S,k,C){return y.factory.updateTryStatement(f,k(f.tryBlock,m,e.isBlock),k(f.catchClause,m,e.isCatchClause),k(f.finallyBlock,m,e.isBlock))},o[257]=function(f,m,y,S,k,C){return y.factory.updateVariableDeclaration(f,k(f.name,m,e.isBindingName),k(f.exclamationToken,C,e.isExclamationToken),k(f.type,m,e.isTypeNode),k(f.initializer,m,e.isExpression))},o[258]=function(f,m,y,S,k,C){return y.factory.updateVariableDeclarationList(f,S(f.declarations,m,e.isVariableDeclaration))},o[259]=function(f,m,y,S,k,C){return y.factory.updateFunctionDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.asteriskToken,C,e.isAsteriskToken),k(f.name,m,e.isIdentifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),_e(f.parameters,m,y,S),k(f.type,m,e.isTypeNode),de(f.body,m,y,k))},o[260]=function(f,m,y,S,k,C){return y.factory.updateClassDeclaration(f,S(f.modifiers,m,e.isModifierLike),k(f.name,m,e.isIdentifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.heritageClauses,m,e.isHeritageClause),S(f.members,m,e.isClassElement))},o[261]=function(f,m,y,S,k,C){return y.factory.updateInterfaceDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isIdentifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),S(f.heritageClauses,m,e.isHeritageClause),S(f.members,m,e.isTypeElement))},o[262]=function(f,m,y,S,k,C){return y.factory.updateTypeAliasDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isIdentifier),S(f.typeParameters,m,e.isTypeParameterDeclaration),k(f.type,m,e.isTypeNode))},o[263]=function(f,m,y,S,k,C){return y.factory.updateEnumDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isIdentifier),S(f.members,m,e.isEnumMember))},o[264]=function(f,m,y,S,k,C){return y.factory.updateModuleDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.name,m,e.isModuleName),k(f.body,m,e.isModuleBody))},o[265]=function(f,m,y,S,k,C){return y.factory.updateModuleBlock(f,S(f.statements,m,e.isStatement))},o[266]=function(f,m,y,S,k,C){return y.factory.updateCaseBlock(f,S(f.clauses,m,e.isCaseOrDefaultClause))},o[267]=function(f,m,y,S,k,C){return y.factory.updateNamespaceExportDeclaration(f,k(f.name,m,e.isIdentifier))},o[268]=function(f,m,y,S,k,C){return y.factory.updateImportEqualsDeclaration(f,S(f.modifiers,m,e.isModifier),f.isTypeOnly,k(f.name,m,e.isIdentifier),k(f.moduleReference,m,e.isModuleReference))},o[269]=function(f,m,y,S,k,C){return y.factory.updateImportDeclaration(f,S(f.modifiers,m,e.isModifier),k(f.importClause,m,e.isImportClause),k(f.moduleSpecifier,m,e.isExpression),k(f.assertClause,m,e.isAssertClause))},o[296]=function(f,m,y,S,k,C){return y.factory.updateAssertClause(f,S(f.elements,m,e.isAssertEntry),f.multiLine)},o[297]=function(f,m,y,S,k,C){return y.factory.updateAssertEntry(f,k(f.name,m,e.isAssertionKey),k(f.value,m,e.isExpression))},o[270]=function(f,m,y,S,k,C){return y.factory.updateImportClause(f,f.isTypeOnly,k(f.name,m,e.isIdentifier),k(f.namedBindings,m,e.isNamedImportBindings))},o[271]=function(f,m,y,S,k,C){return y.factory.updateNamespaceImport(f,k(f.name,m,e.isIdentifier))},o[277]=function(f,m,y,S,k,C){return y.factory.updateNamespaceExport(f,k(f.name,m,e.isIdentifier))},o[272]=function(f,m,y,S,k,C){return y.factory.updateNamedImports(f,S(f.elements,m,e.isImportSpecifier))},o[273]=function(f,m,y,S,k,C){return y.factory.updateImportSpecifier(f,f.isTypeOnly,k(f.propertyName,m,e.isIdentifier),k(f.name,m,e.isIdentifier))},o[274]=function(f,m,y,S,k,C){return y.factory.updateExportAssignment(f,S(f.modifiers,m,e.isModifier),k(f.expression,m,e.isExpression))},o[275]=function(f,m,y,S,k,C){return y.factory.updateExportDeclaration(f,S(f.modifiers,m,e.isModifier),f.isTypeOnly,k(f.exportClause,m,e.isNamedExportBindings),k(f.moduleSpecifier,m,e.isExpression),k(f.assertClause,m,e.isAssertClause))},o[276]=function(f,m,y,S,k,C){return y.factory.updateNamedExports(f,S(f.elements,m,e.isExportSpecifier))},o[278]=function(f,m,y,S,k,C){return y.factory.updateExportSpecifier(f,f.isTypeOnly,k(f.propertyName,m,e.isIdentifier),k(f.name,m,e.isIdentifier))},o[280]=function(f,m,y,S,k,C){return y.factory.updateExternalModuleReference(f,k(f.expression,m,e.isExpression))},o[281]=function(f,m,y,S,k,C){return y.factory.updateJsxElement(f,k(f.openingElement,m,e.isJsxOpeningElement),S(f.children,m,e.isJsxChild),k(f.closingElement,m,e.isJsxClosingElement))},o[282]=function(f,m,y,S,k,C){return y.factory.updateJsxSelfClosingElement(f,k(f.tagName,m,e.isJsxTagNameExpression),S(f.typeArguments,m,e.isTypeNode),k(f.attributes,m,e.isJsxAttributes))},o[283]=function(f,m,y,S,k,C){return y.factory.updateJsxOpeningElement(f,k(f.tagName,m,e.isJsxTagNameExpression),S(f.typeArguments,m,e.isTypeNode),k(f.attributes,m,e.isJsxAttributes))},o[284]=function(f,m,y,S,k,C){return y.factory.updateJsxClosingElement(f,k(f.tagName,m,e.isJsxTagNameExpression))},o[285]=function(f,m,y,S,k,C){return y.factory.updateJsxFragment(f,k(f.openingFragment,m,e.isJsxOpeningFragment),S(f.children,m,e.isJsxChild),k(f.closingFragment,m,e.isJsxClosingFragment))},o[288]=function(f,m,y,S,k,C){return y.factory.updateJsxAttribute(f,k(f.name,m,e.isIdentifier),k(f.initializer,m,e.isStringLiteralOrJsxExpression))},o[289]=function(f,m,y,S,k,C){return y.factory.updateJsxAttributes(f,S(f.properties,m,e.isJsxAttributeLike))},o[290]=function(f,m,y,S,k,C){return y.factory.updateJsxSpreadAttribute(f,k(f.expression,m,e.isExpression))},o[291]=function(f,m,y,S,k,C){return y.factory.updateJsxExpression(f,k(f.expression,m,e.isExpression))},o[292]=function(f,m,y,S,k,C){return y.factory.updateCaseClause(f,k(f.expression,m,e.isExpression),S(f.statements,m,e.isStatement))},o[293]=function(f,m,y,S,k,C){return y.factory.updateDefaultClause(f,S(f.statements,m,e.isStatement))},o[294]=function(f,m,y,S,k,C){return y.factory.updateHeritageClause(f,S(f.types,m,e.isExpressionWithTypeArguments))},o[295]=function(f,m,y,S,k,C){return y.factory.updateCatchClause(f,k(f.variableDeclaration,m,e.isVariableDeclaration),k(f.block,m,e.isBlock))},o[299]=function(f,m,y,S,k,C){return y.factory.updatePropertyAssignment(f,k(f.name,m,e.isPropertyName),k(f.initializer,m,e.isExpression))},o[300]=function(f,m,y,S,k,C){return y.factory.updateShorthandPropertyAssignment(f,k(f.name,m,e.isIdentifier),k(f.objectAssignmentInitializer,m,e.isExpression))},o[301]=function(f,m,y,S,k,C){return y.factory.updateSpreadAssignment(f,k(f.expression,m,e.isExpression))},o[302]=function(f,m,y,S,k,C){return y.factory.updateEnumMember(f,k(f.name,m,e.isPropertyName),k(f.initializer,m,e.isExpression))},o[308]=function(f,m,y,S,k,C){return y.factory.updateSourceFile(f,ie(f.statements,m,y))},o[353]=function(f,m,y,S,k,C){return y.factory.updatePartiallyEmittedExpression(f,k(f.expression,m,e.isExpression))},o[354]=function(f,m,y,S,k,C){return y.factory.updateCommaListExpression(f,S(f.elements,m,e.isExpression))},o);function E(I){return e.Debug.assert(I.length<=1,"Too many nodes written to output."),e.singleOrUndefined(I)}})(fr||(fr={}));var fr;(function(e){function o(S,k,C,me,De){var X=De.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,M=X.enter,H=X.exit,V=[],h=[],F=new e.Map,$,L=[],P,N=[],J="",q=0,G=0,ye=0,b=0,x=0,T=0,Z=!1,B=0,u=0,A=0,w=0,z=0,U=0,ge=!1,pe=!1,He=!1;return{getSources:function(){return V},addSource:Be,setSourceContent:Me,addName:Le,addMapping:Ne,appendSourceMap:Oe,toJSON:Ce,toString:function(){return JSON.stringify(Ce())}};function Be(Re){M();var er=e.getRelativePathToDirectoryOrUrl(me,Re,S.getCurrentDirectory(),S.getCanonicalFileName,!0),wr=F.get(er);return wr===void 0&&(wr=h.length,h.push(er),V.push(Re),F.set(er,wr)),H(),wr}function Me(Re,er){if(M(),er!==null){for($||($=[]);$.length<Re;)$.push(null);$[Re]=er}H()}function Le(Re){M(),P||(P=new e.Map);var er=P.get(Re);return er===void 0&&(er=L.length,L.push(Re),P.set(Re,er)),H(),er}function Ae(Re,er){return!ge||B!==Re||u!==er}function Xe(Re,er,wr){return Re!==void 0&&er!==void 0&&wr!==void 0&&A===Re&&(w>er||w===er&&z>wr)}function Ne(Re,er,wr,mr,Ue,t){e.Debug.assert(Re>=B,"generatedLine cannot backtrack"),e.Debug.assert(er>=0,"generatedCharacter cannot be negative"),e.Debug.assert(wr===void 0||wr>=0,"sourceIndex cannot be negative"),e.Debug.assert(mr===void 0||mr>=0,"sourceLine cannot be negative"),e.Debug.assert(Ue===void 0||Ue>=0,"sourceCharacter cannot be negative"),M(),(Ae(Re,er)||Xe(wr,mr,Ue))&&(d(),B=Re,u=er,pe=!1,He=!1,ge=!0),wr!==void 0&&mr!==void 0&&Ue!==void 0&&(A=wr,w=mr,z=Ue,pe=!0,t!==void 0&&(U=t,He=!0)),H()}function Oe(Re,er,wr,mr,Ue,t){e.Debug.assert(Re>=B,"generatedLine cannot backtrack"),e.Debug.assert(er>=0,"generatedCharacter cannot be negative"),M();for(var qr=[],ln,dr=p(wr.mappings),vr=dr.next();!vr.done;vr=dr.next()){var kr=vr.value;if(t&&(kr.generatedLine>t.line||kr.generatedLine===t.line&&kr.generatedCharacter>t.character))break;if(!(Ue&&(kr.generatedLine<Ue.line||Ue.line===kr.generatedLine&&kr.generatedCharacter<Ue.character))){var Ur=void 0,Cr=void 0,rn=void 0,Br=void 0;if(kr.sourceIndex!==void 0){if(Ur=qr[kr.sourceIndex],Ur===void 0){var pn=wr.sources[kr.sourceIndex],ve=wr.sourceRoot?e.combinePaths(wr.sourceRoot,pn):pn,or=e.combinePaths(e.getDirectoryPath(mr),ve);qr[kr.sourceIndex]=Ur=Be(or),wr.sourcesContent&&typeof wr.sourcesContent[kr.sourceIndex]=="string"&&Me(Ur,wr.sourcesContent[kr.sourceIndex])}Cr=kr.sourceLine,rn=kr.sourceCharacter,wr.names&&kr.nameIndex!==void 0&&(ln||(ln=[]),Br=ln[kr.nameIndex],Br===void 0&&(ln[kr.nameIndex]=Br=Le(wr.names[kr.nameIndex])))}var Ee=kr.generatedLine-(Ue?Ue.line:0),ze=Ee+Re,Ar=Ue&&Ue.line===kr.generatedLine?kr.generatedCharacter-Ue.character:kr.generatedCharacter,xe=Ee===0?Ar+er:Ar;Ne(ze,xe,Ur,Cr,rn,Br)}}H()}function be(){return!Z||q!==B||G!==u||ye!==A||b!==w||x!==z||T!==U}function Y(Re){N.push(Re),N.length>=1024&&j()}function d(){if(!(!ge||!be())){if(M(),q<B){do Y(59),q++;while(q<B);G=0}else e.Debug.assertEqual(q,B,"generatedLine cannot backtrack"),Z&&Y(44);Se(u-G),G=u,pe&&(Se(A-ye),ye=A,Se(w-b),b=w,Se(z-x),x=z,He&&(Se(U-T),T=U)),Z=!0,H()}}function j(){N.length>0&&(J+=String.fromCharCode.apply(void 0,N),N.length=0)}function Ce(){return d(),j(),{version:3,file:k,sourceRoot:C,sources:h,names:L,mappings:J,sourcesContent:$}}function Se(Re){Re<0?Re=(-Re<<1)+1:Re=Re<<1;do{var er=Re&31;Re=Re>>5,Re>0&&(er=er|32),Y(de(er))}while(Re>0)}}e.createSourceMapGenerator=o;var ne=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,K=/^\s*(\/\/[@#] .*)?$/;function se(S,k){return{getLineCount:function(){return k.length},getLineText:function(C){return S.substring(k[C],k[C+1])}}}e.getLineInfo=se;function O(S){for(var k=S.getLineCount()-1;k>=0;k--){var C=S.getLineText(k),me=ne.exec(C);if(me)return e.trimStringEnd(me[1]);if(!C.match(K))break}}e.tryGetSourceMappingURL=O;function ie(S){return typeof S=="string"||S===null}function _e(S){return S!==null&&typeof S=="object"&&S.version===3&&typeof S.file=="string"&&typeof S.mappings=="string"&&e.isArray(S.sources)&&e.every(S.sources,e.isString)&&(S.sourceRoot===void 0||S.sourceRoot===null||typeof S.sourceRoot=="string")&&(S.sourcesContent===void 0||S.sourcesContent===null||e.isArray(S.sourcesContent)&&e.every(S.sourcesContent,ie))&&(S.names===void 0||S.names===null||e.isArray(S.names)&&e.every(S.names,e.isString))}e.isRawSourceMap=_e;function Q(S){try{var k=JSON.parse(S);if(_e(k))return k}catch(C){}}e.tryParseRawSourceMap=Q;function p(S){var k=!1,C=0,me=0,De=0,X=0,M=0,H=0,V=0,h;return{get pos(){return C},get error(){return h},get state(){return F(!0,!0)},next:function(){for(;!k&&C<S.length;){var G=S.charCodeAt(C);if(G===59){me++,De=0,C++;continue}if(G===44){C++;continue}var ye=!1,b=!1;if(De+=q(),N())return $();if(De<0)return P("Invalid generatedCharacter found");if(!J()){if(ye=!0,X+=q(),N())return $();if(X<0)return P("Invalid sourceIndex found");if(J())return P("Unsupported Format: No entries after sourceIndex");if(M+=q(),N())return $();if(M<0)return P("Invalid sourceLine found");if(J())return P("Unsupported Format: No entries after sourceLine");if(H+=q(),N())return $();if(H<0)return P("Invalid sourceCharacter found");if(!J()){if(b=!0,V+=q(),N())return $();if(V<0)return P("Invalid nameIndex found");if(!J())return P("Unsupported Error Format: Entries after nameIndex")}}return{value:F(ye,b),done:k}}return $()}};function F(G,ye){return{generatedLine:me,generatedCharacter:De,sourceIndex:G?X:void 0,sourceLine:G?M:void 0,sourceCharacter:G?H:void 0,nameIndex:ye?V:void 0}}function $(){return k=!0,{value:void 0,done:!0}}function L(G){h===void 0&&(h=G)}function P(G){return L(G),$()}function N(){return h!==void 0}function J(){return C===S.length||S.charCodeAt(C)===44||S.charCodeAt(C)===59}function q(){for(var G=!0,ye=0,b=0;G;C++){if(C>=S.length)return L("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var x=te(S.charCodeAt(C));if(x===-1)return L("Invalid character in VLQ"),-1;G=(x&32)!=0,b=b|(x&31)<<ye,ye+=5}return(b&1)==0?b=b>>1:(b=b>>1,b=-b),b}}e.decodeMappings=p;function D(S,k){return S===k||S.generatedLine===k.generatedLine&&S.generatedCharacter===k.generatedCharacter&&S.sourceIndex===k.sourceIndex&&S.sourceLine===k.sourceLine&&S.sourceCharacter===k.sourceCharacter&&S.nameIndex===k.nameIndex}e.sameMapping=D;function le(S){return S.sourceIndex!==void 0&&S.sourceLine!==void 0&&S.sourceCharacter!==void 0}e.isSourceMapping=le;function de(S){return S>=0&&S<26?65+S:S>=26&&S<52?97+S-26:S>=52&&S<62?48+S-52:S===62?43:S===63?47:e.Debug.fail("".concat(S,": not a base64 value"))}function te(S){return S>=65&&S<=90?S-65:S>=97&&S<=122?S-97+26:S>=48&&S<=57?S-48+52:S===43?62:S===47?63:-1}function oe(S){return S.sourceIndex!==void 0&&S.sourcePosition!==void 0}function ae(S,k){return S.generatedPosition===k.generatedPosition&&S.sourceIndex===k.sourceIndex&&S.sourcePosition===k.sourcePosition}function E(S,k){return e.Debug.assert(S.sourceIndex===k.sourceIndex),e.compareValues(S.sourcePosition,k.sourcePosition)}function I(S,k){return e.compareValues(S.generatedPosition,k.generatedPosition)}function f(S){return S.sourcePosition}function m(S){return S.generatedPosition}function y(S,k,C){var me=e.getDirectoryPath(C),De=k.sourceRoot?e.getNormalizedAbsolutePath(k.sourceRoot,me):me,X=e.getNormalizedAbsolutePath(k.file,me),M=S.getSourceFileLike(X),H=k.sources.map(function(ye){return e.getNormalizedAbsolutePath(ye,De)}),V=new e.Map(H.map(function(ye,b){return[S.getCanonicalFileName(ye),b]})),h,F,$;return{getSourcePosition:G,getGeneratedPosition:q};function L(ye){var b=M!==void 0?e.getPositionOfLineAndCharacter(M,ye.generatedLine,ye.generatedCharacter,!0):-1,x,T;if(le(ye)){var Z=S.getSourceFileLike(H[ye.sourceIndex]);x=k.sources[ye.sourceIndex],T=Z!==void 0?e.getPositionOfLineAndCharacter(Z,ye.sourceLine,ye.sourceCharacter,!0):-1}return{generatedPosition:b,source:x,sourceIndex:ye.sourceIndex,sourcePosition:T,nameIndex:ye.nameIndex}}function P(){if(h===void 0){var ye=p(k.mappings),b=e.arrayFrom(ye,L);ye.error!==void 0?(S.log&&S.log("Encountered error while decoding sourcemap: ".concat(ye.error)),h=e.emptyArray):h=b}return h}function N(ye){if($===void 0){for(var b=[],x=0,T=P();x<T.length;x++){var Z=T[x];if(!!oe(Z)){var B=b[Z.sourceIndex];B||(b[Z.sourceIndex]=B=[]),B.push(Z)}}$=b.map(function(u){return e.sortAndDeduplicate(u,E,ae)})}return $[ye]}function J(){if(F===void 0){for(var ye=[],b=0,x=P();b<x.length;b++){var T=x[b];ye.push(T)}F=e.sortAndDeduplicate(ye,I,ae)}return F}function q(ye){var b=V.get(S.getCanonicalFileName(ye.fileName));if(b===void 0)return ye;var x=N(b);if(!e.some(x))return ye;var T=e.binarySearchKey(x,ye.pos,f,e.compareValues);T<0&&(T=~T);var Z=x[T];return Z===void 0||Z.sourceIndex!==b?ye:{fileName:X,pos:Z.generatedPosition}}function G(ye){var b=J();if(!e.some(b))return ye;var x=e.binarySearchKey(b,ye.pos,m,e.compareValues);x<0&&(x=~x);var T=b[x];return T===void 0||!oe(T)?ye:{fileName:H[T.sourceIndex],pos:T.sourcePosition}}}e.createDocumentPositionMapper=y,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(fr||(fr={}));var fr;(function(e){function o(h){return h=e.getOriginalNode(h),h?e.getNodeId(h):0}e.getOriginalNodeId=o;function ne(h){return!h||!e.isNamedImports(h)?!1:e.some(h.elements,K)}function K(h){return h.propertyName!==void 0&&h.propertyName.escapedText==="default"}function se(h,F){return $;function $(P){return P.kind===308?F(P):L(P)}function L(P){return h.factory.createBundle(e.map(P.sourceFiles,F),P.prepends)}}e.chainBundle=se;function O(h){return!!e.getNamespaceDeclarationNode(h)}e.getExportNeedsImportStarHelper=O;function ie(h){if(e.getNamespaceDeclarationNode(h))return!0;var F=h.importClause&&h.importClause.namedBindings;if(!F||!e.isNamedImports(F))return!1;for(var $=0,L=0,P=F.elements;L<P.length;L++){var N=P[L];K(N)&&$++}return $>0&&$!==F.elements.length||!!(F.elements.length-$)&&e.isDefaultImport(h)}e.getImportNeedsImportStarHelper=ie;function _e(h){return!ie(h)&&(e.isDefaultImport(h)||!!h.importClause&&e.isNamedImports(h.importClause.namedBindings)&&ne(h.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=_e;function Q(h,F,$,L){for(var P=[],N=e.createMultiMap(),J=[],q=new e.Map,G,ye=!1,b,x=!1,T=!1,Z=!1,B=0,u=F.statements;B<u.length;B++){var A=u[B];switch(A.kind){case 269:P.push(A),!T&&ie(A)&&(T=!0),!Z&&_e(A)&&(Z=!0);break;case 268:A.moduleReference.kind===280&&P.push(A);break;case 275:if(A.moduleSpecifier)if(!A.exportClause)P.push(A),x=!0;else if(P.push(A),e.isNamedExports(A.exportClause))He(A);else{var w=A.exportClause.name;q.get(e.idText(w))||(D(J,o(A),w),q.set(e.idText(w),!0),G=e.append(G,w)),T=!0}else He(A);break;case 274:A.isExportEquals&&!b&&(b=A);break;case 240:if(e.hasSyntacticModifier(A,1))for(var z=0,U=A.declarationList.declarations;z<U.length;z++){var ge=U[z];G=p(ge,q,G)}break;case 259:if(e.hasSyntacticModifier(A,1))if(e.hasSyntacticModifier(A,1024))ye||(D(J,o(A),h.factory.getDeclarationName(A)),ye=!0);else{var w=A.name;q.get(e.idText(w))||(D(J,o(A),w),q.set(e.idText(w),!0),G=e.append(G,w))}break;case 260:if(e.hasSyntacticModifier(A,1))if(e.hasSyntacticModifier(A,1024))ye||(D(J,o(A),h.factory.getDeclarationName(A)),ye=!0);else{var w=A.name;w&&!q.get(e.idText(w))&&(D(J,o(A),w),q.set(e.idText(w),!0),G=e.append(G,w))}break}}var pe=e.createExternalHelpersImportDeclarationIfNeeded(h.factory,h.getEmitHelperFactory(),F,L,x,T,Z);return pe&&P.unshift(pe),{externalImports:P,exportSpecifiers:N,exportEquals:b,hasExportStarsToExportValues:x,exportedBindings:J,exportedNames:G,externalHelpersImportDeclaration:pe};function He(Be){for(var Me=0,Le=e.cast(Be.exportClause,e.isNamedExports).elements;Me<Le.length;Me++){var Ae=Le[Me];if(!q.get(e.idText(Ae.name))){var Xe=Ae.propertyName||Ae.name;Be.moduleSpecifier||N.add(e.idText(Xe),Ae);var Ne=$.getReferencedImportDeclaration(Xe)||$.getReferencedValueDeclaration(Xe);Ne&&D(J,o(Ne),Ae.name),q.set(e.idText(Ae.name),!0),G=e.append(G,Ae.name)}}}}e.collectExternalModuleInfo=Q;function p(h,F,$){if(e.isBindingPattern(h.name))for(var L=0,P=h.name.elements;L<P.length;L++){var N=P[L];e.isOmittedExpression(N)||($=p(N,F,$))}else if(!e.isGeneratedIdentifier(h.name)){var J=e.idText(h.name);F.get(J)||(F.set(J,!0),$=e.append($,h.name))}return $}function D(h,F,$){var L=h[F];return L?L.push($):h[F]=L=[$],L}function le(h){return e.isStringLiteralLike(h)||h.kind===8||e.isKeyword(h.kind)||e.isIdentifier(h)}e.isSimpleCopiableExpression=le;function de(h){return!e.isIdentifier(h)&&le(h)}e.isSimpleInlineableExpression=de;function te(h){return h>=64&&h<=78}e.isCompoundAssignment=te;function oe(h){switch(h){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=oe;function ae(h){if(!!e.isExpressionStatement(h)){var F=e.skipParentheses(h.expression);return e.isSuperCall(F)?F:void 0}}e.getSuperCallFromStatement=ae;function E(h,F){for(var $=F;$<h.length;$+=1){var L=h[$];if(ae(L))return $}return-1}e.findSuperStatementIndex=E;function I(h,F,$){return e.filter(h.members,function(L){return y(L,F,$)})}e.getProperties=I;function f(h){return S(h)||e.isClassStaticBlockDeclaration(h)}function m(h){return e.filter(h.members,f)}e.getStaticPropertiesAndClassStaticBlock=m;function y(h,F,$){return e.isPropertyDeclaration(h)&&(!!h.initializer||!F)&&e.hasStaticModifier(h)===$}function S(h){return e.isPropertyDeclaration(h)&&e.hasStaticModifier(h)}function k(h){return h.kind===169&&h.initializer!==void 0}e.isInitializedProperty=k;function C(h){return!e.isStatic(h)&&(e.isMethodOrAccessor(h)||e.isAutoAccessorPropertyDeclaration(h))&&e.isPrivateIdentifier(h.name)}e.isNonStaticMethodOrAccessorWithPrivateName=C;function me(h){var F;if(h)for(var $=h.parameters,L=$.length>0&&e.parameterIsThisKeyword($[0]),P=L?1:0,N=L?$.length-1:$.length,J=0;J<N;J++){var q=$[J+P];(F||e.hasDecorators(q))&&(F||(F=new Array(N)),F[J]=e.getDecorators(q))}return F}function De(h){var F=e.getDecorators(h),$=me(e.getFirstConstructorWithBody(h));if(!(!e.some(F)&&!e.some($)))return{decorators:F,parameters:$}}e.getAllDecoratorsOfClass=De;function X(h,F){switch(h.kind){case 174:case 175:return M(h,F);case 171:return H(h);case 169:return V(h);default:return}}e.getAllDecoratorsOfClassElement=X;function M(h,F){if(!!h.body){var $=e.getAllAccessorDeclarations(F.members,h),L=$.firstAccessor,P=$.secondAccessor,N=$.getAccessor,J=$.setAccessor,q=e.hasDecorators(L)?L:P&&e.hasDecorators(P)?P:void 0;if(!(!q||h!==q)){var G=e.getDecorators(q),ye=me(J);if(!(!e.some(G)&&!e.some(ye)))return{decorators:G,parameters:ye,getDecorators:N&&e.getDecorators(N),setDecorators:J&&e.getDecorators(J)}}}}function H(h){if(!!h.body){var F=e.getDecorators(h),$=me(h);if(!(!e.some(F)&&!e.some($)))return{decorators:F,parameters:$}}}function V(h){var F=e.getDecorators(h);if(!!e.some(F))return{decorators:F}}})(fr||(fr={}));var fr;(function(e){var o;(function(S){S[S.All=0]="All",S[S.ObjectRest=1]="ObjectRest"})(o=e.FlattenLevel||(e.FlattenLevel={}));function ne(S,k,C,me,De,X){var M=S,H;if(e.isDestructuringAssignment(S))for(H=S.right;e.isEmptyArrayLiteral(S.left)||e.isEmptyObjectLiteral(S.left);)if(e.isDestructuringAssignment(H))M=S=H,H=S.right;else return e.visitNode(H,k,e.isExpression);var V,h={context:C,level:me,downlevelIteration:!!C.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:F,emitBindingOrAssignment:$,createArrayBindingOrAssignmentPattern:function(L){return E(C.factory,L)},createObjectBindingOrAssignmentPattern:function(L){return f(C.factory,L)},createArrayBindingOrAssignmentElement:y,visitor:k};if(H&&(H=e.visitNode(H,k,e.isExpression),e.isIdentifier(H)&&K(S,H.escapedText)||O(S)?H=oe(h,H,!1,M):De?H=oe(h,H,!0,M):e.nodeIsSynthesized(S)&&(M=H)),Q(h,S,H,M,e.isDestructuringAssignment(S)),H&&De){if(!e.some(V))return H;V.push(H)}return C.factory.inlineExpressions(V)||C.factory.createOmittedExpression();function F(L){V=e.append(V,L)}function $(L,P,N,J){e.Debug.assertNode(L,X?e.isIdentifier:e.isExpression);var q=X?X(L,P,N):e.setTextRange(C.factory.createAssignment(e.visitNode(L,k,e.isExpression),P),N);q.original=J,F(q)}}e.flattenDestructuringAssignment=ne;function K(S,k){var C=e.getTargetOfBindingOrAssignmentElement(S);return e.isBindingOrAssignmentPattern(C)?se(C,k):e.isIdentifier(C)?C.escapedText===k:!1}function se(S,k){for(var C=e.getElementsOfBindingOrAssignmentPattern(S),me=0,De=C;me<De.length;me++){var X=De[me];if(K(X,k))return!0}return!1}function O(S){var k=e.tryGetPropertyNameOfBindingOrAssignmentElement(S);if(k&&e.isComputedPropertyName(k)&&!e.isLiteralExpression(k.expression))return!0;var C=e.getTargetOfBindingOrAssignmentElement(S);return!!C&&e.isBindingOrAssignmentPattern(C)&&ie(C)}function ie(S){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(S),O)}function _e(S,k,C,me,De,X,M){X===void 0&&(X=!1);var H,V=[],h=[],F={context:C,level:me,downlevelIteration:!!C.getCompilerOptions().downlevelIteration,hoistTempVariables:X,emitExpression:B,emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:function(A){return ae(C.factory,A)},createObjectBindingOrAssignmentPattern:function(A){return I(C.factory,A)},createArrayBindingOrAssignmentElement:function(A){return m(C.factory,A)},visitor:k};if(e.isVariableDeclaration(S)){var $=e.getInitializerOfBindingOrAssignmentElement(S);$&&(e.isIdentifier($)&&K(S,$.escapedText)||O(S))&&($=oe(F,e.visitNode($,F.visitor),!1,$),S=C.factory.updateVariableDeclaration(S,S.name,void 0,void 0,$))}if(Q(F,S,De,S,M),H){var L=C.factory.createTempVariable(void 0);if(X){var P=C.factory.inlineExpressions(H);H=void 0,u(L,P,void 0,void 0)}else{C.hoistVariableDeclaration(L);var N=e.last(V);N.pendingExpressions=e.append(N.pendingExpressions,C.factory.createAssignment(L,N.value)),e.addRange(N.pendingExpressions,H),N.value=L}}for(var J=0,q=V;J<q.length;J++){var G=q[J],ye=G.pendingExpressions,b=G.name,P=G.value,x=G.location,T=G.original,Z=C.factory.createVariableDeclaration(b,void 0,void 0,ye?C.factory.inlineExpressions(e.append(ye,P)):P);Z.original=T,e.setTextRange(Z,x),h.push(Z)}return h;function B(A){H=e.append(H,A)}function u(A,w,z,U){e.Debug.assertNode(A,e.isBindingName),H&&(w=C.factory.inlineExpressions(e.append(H,w)),H=void 0),V.push({pendingExpressions:H,name:A,value:w,location:z,original:U})}}e.flattenDestructuringBinding=_e;function Q(S,k,C,me,De){var X=e.getTargetOfBindingOrAssignmentElement(k);if(!De){var M=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(k),S.visitor,e.isExpression);M?C?(C=de(S,C,M,me),!e.isSimpleInlineableExpression(M)&&e.isBindingOrAssignmentPattern(X)&&(C=oe(S,C,!0,me))):C=M:C||(C=S.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(X)?p(S,k,X,C,me):e.isArrayBindingOrAssignmentPattern(X)?D(S,k,X,C,me):S.emitBindingOrAssignment(X,C,me,k)}function p(S,k,C,me,De){var X=e.getElementsOfBindingOrAssignmentPattern(C),M=X.length;if(M!==1){var H=!e.isDeclarationBindingElement(k)||M!==0;me=oe(S,me,H,De)}for(var V,h,F=0;F<M;F++){var $=X[F];if(e.getRestIndicatorOfBindingOrAssignmentElement($)){if(F===M-1){V&&(S.emitBindingOrAssignment(S.createObjectBindingOrAssignmentPattern(V),me,De,C),V=void 0);var P=S.context.getEmitHelperFactory().createRestHelper(me,X,h,C);Q(S,$,P,$)}}else{var L=e.getPropertyNameOfBindingOrAssignmentElement($);if(S.level>=1&&!($.transformFlags&(32768|65536))&&!(e.getTargetOfBindingOrAssignmentElement($).transformFlags&(32768|65536))&&!e.isComputedPropertyName(L))V=e.append(V,e.visitNode($,S.visitor));else{V&&(S.emitBindingOrAssignment(S.createObjectBindingOrAssignmentPattern(V),me,De,C),V=void 0);var P=te(S,me,L);e.isComputedPropertyName(L)&&(h=e.append(h,P.argumentExpression)),Q(S,$,P,$)}}}V&&S.emitBindingOrAssignment(S.createObjectBindingOrAssignmentPattern(V),me,De,C)}function D(S,k,C,me,De){var X=e.getElementsOfBindingOrAssignmentPattern(C),M=X.length;if(S.level<1&&S.downlevelIteration)me=oe(S,e.setTextRange(S.context.getEmitHelperFactory().createReadHelper(me,M>0&&e.getRestIndicatorOfBindingOrAssignmentElement(X[M-1])?void 0:M),De),!1,De);else if(M!==1&&(S.level<1||M===0)||e.every(X,e.isOmittedExpression)){var H=!e.isDeclarationBindingElement(k)||M!==0;me=oe(S,me,H,De)}for(var V,h,F=0;F<M;F++){var $=X[F];if(S.level>=1)if($.transformFlags&65536||S.hasTransformedPriorElement&&!le($)){S.hasTransformedPriorElement=!0;var L=S.context.factory.createTempVariable(void 0);S.hoistTempVariables&&S.context.hoistVariableDeclaration(L),h=e.append(h,[L,$]),V=e.append(V,S.createArrayBindingOrAssignmentElement(L))}else V=e.append(V,$);else{if(e.isOmittedExpression($))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement($)){if(F===M-1){var P=S.context.factory.createArraySliceCall(me,F);Q(S,$,P,$)}}else{var P=S.context.factory.createElementAccessExpression(me,F);Q(S,$,P,$)}}}if(V&&S.emitBindingOrAssignment(S.createArrayBindingOrAssignmentPattern(V),me,De,C),h)for(var N=0,J=h;N<J.length;N++){var q=J[N],G=q[0],$=q[1];Q(S,$,G,$)}}function le(S){var k=e.getTargetOfBindingOrAssignmentElement(S);if(!k||e.isOmittedExpression(k))return!0;var C=e.tryGetPropertyNameOfBindingOrAssignmentElement(S);if(C&&!e.isPropertyNameLiteral(C))return!1;var me=e.getInitializerOfBindingOrAssignmentElement(S);return me&&!e.isSimpleInlineableExpression(me)?!1:e.isBindingOrAssignmentPattern(k)?e.every(e.getElementsOfBindingOrAssignmentPattern(k),le):e.isIdentifier(k)}function de(S,k,C,me){return k=oe(S,k,!0,me),S.context.factory.createConditionalExpression(S.context.factory.createTypeCheck(k,"undefined"),void 0,C,void 0,k)}function te(S,k,C){if(e.isComputedPropertyName(C)){var me=oe(S,e.visitNode(C.expression,S.visitor),!1,C);return S.context.factory.createElementAccessExpression(k,me)}else if(e.isStringOrNumericLiteralLike(C)){var me=e.factory.cloneNode(C);return S.context.factory.createElementAccessExpression(k,me)}else{var De=S.context.factory.createIdentifier(e.idText(C));return S.context.factory.createPropertyAccessExpression(k,De)}}function oe(S,k,C,me){if(e.isIdentifier(k)&&C)return k;var De=S.context.factory.createTempVariable(void 0);return S.hoistTempVariables?(S.context.hoistVariableDeclaration(De),S.emitExpression(e.setTextRange(S.context.factory.createAssignment(De,k),me))):S.emitBindingOrAssignment(De,k,me,void 0),De}function ae(S,k){return e.Debug.assertEachNode(k,e.isArrayBindingElement),S.createArrayBindingPattern(k)}function E(S,k){return S.createArrayLiteralExpression(e.map(k,S.converters.convertToArrayAssignmentElement))}function I(S,k){return e.Debug.assertEachNode(k,e.isBindingElement),S.createObjectBindingPattern(k)}function f(S,k){return S.createObjectLiteralExpression(e.map(k,S.converters.convertToObjectAssignmentElement))}function m(S,k){return S.createBindingElement(void 0,void 0,k)}function y(S){return S}})(fr||(fr={}));var fr;(function(e){var o;(function(O){O[O.LiftRestriction=0]="LiftRestriction",O[O.All=1]="All"})(o=e.ProcessLevel||(e.ProcessLevel={}));function ne(O,ie,_e,Q,p,D){var le=e.visitNode(ie.tag,_e,e.isExpression),de=[void 0],te=[],oe=[],ae=ie.template;if(D===o.LiftRestriction&&!e.hasInvalidEscape(ae))return e.visitEachChild(ie,_e,O);if(e.isNoSubstitutionTemplateLiteral(ae))te.push(K(ae)),oe.push(se(ae,Q));else{te.push(K(ae.head)),oe.push(se(ae.head,Q));for(var E=0,I=ae.templateSpans;E<I.length;E++){var f=I[E];te.push(K(f.literal)),oe.push(se(f.literal,Q)),de.push(e.visitNode(f.expression,_e,e.isExpression))}}var m=O.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(te),e.factory.createArrayLiteralExpression(oe));if(e.isExternalModule(Q)){var y=e.factory.createUniqueName("templateObject");p(y),de[0]=e.factory.createLogicalOr(y,e.factory.createAssignment(y,m))}else de[0]=m;return e.factory.createCallExpression(le,void 0,de)}e.processTaggedTemplateExpression=ne;function K(O){return O.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(O.text)}function se(O,ie){var _e=O.rawText;if(_e===void 0){e.Debug.assertIsDefined(ie,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),_e=e.getSourceTextOfNodeFromSourceFile(ie,O);var Q=O.kind===14||O.kind===17;_e=_e.substring(1,_e.length-(Q?1:2))}return _e=_e.replace(/\r\n?/g,`
  245. `),e.setTextRange(e.factory.createStringLiteral(_e),O)}})(fr||(fr={}));var fr;(function(e){var o=!1,ne;(function(O){O[O.NamespaceExports=2]="NamespaceExports",O[O.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(ne||(ne={}));var K;(function(O){O[O.None=0]="None",O[O.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",O[O.HasConstructorDecorators=2]="HasConstructorDecorators",O[O.HasMemberDecorators=4]="HasMemberDecorators",O[O.IsExportOfNamespace=8]="IsExportOfNamespace",O[O.IsNamedExternalExport=16]="IsNamedExternalExport",O[O.IsDefaultExternalExport=32]="IsDefaultExternalExport",O[O.IsDerivedClass=64]="IsDerivedClass",O[O.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",O[O.HasAnyDecorators=6]="HasAnyDecorators",O[O.NeedsName=5]="NeedsName",O[O.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",O[O.IsExported=56]="IsExported"})(K||(K={}));function se(O){var ie=O.factory,_e=O.getEmitHelperFactory,Q=O.startLexicalEnvironment,p=O.resumeLexicalEnvironment,D=O.endLexicalEnvironment,le=O.hoistVariableDeclaration,de=O.getEmitResolver(),te=O.getCompilerOptions(),oe=e.getEmitScriptTarget(te),ae=e.getEmitModuleKind(te),E=te.emitDecoratorMetadata?e.createRuntimeTypeSerializer(O):void 0,I=O.onEmitNode,f=O.onSubstituteNode;O.onEmitNode=Pn,O.onSubstituteNode=Pe,O.enableSubstitution(208),O.enableSubstitution(209);var m,y,S,k,C,me,De,X;return M;function M(Ge){return Ge.kind===309?H(Ge):V(Ge)}function H(Ge){return ie.createBundle(Ge.sourceFiles.map(V),e.mapDefined(Ge.prepends,function(cn){return cn.kind===311?e.createUnparsedSourceFile(cn,"js"):cn}))}function V(Ge){if(Ge.isDeclarationFile)return Ge;m=Ge;var cn=h(Ge,u);return e.addEmitHelpers(cn,O.readEmitHelpers()),m=void 0,cn}function h(Ge,cn){var Vn=k,Ki=C,dt=me;F(Ge);var qi=cn(Ge);return k!==Vn&&(C=Ki),k=Vn,me=dt,qi}function F(Ge){switch(Ge.kind){case 308:case 266:case 265:case 238:k=Ge,C=void 0;break;case 260:case 259:if(e.hasSyntacticModifier(Ge,2))break;Ge.name?Lr(Ge):e.Debug.assert(Ge.kind===260||e.hasSyntacticModifier(Ge,1024));break}}function $(Ge){return h(Ge,L)}function L(Ge){return Ge.transformFlags&1?B(Ge):Ge}function P(Ge){return h(Ge,N)}function N(Ge){switch(Ge.kind){case 269:case 268:case 274:case 275:return J(Ge);default:return L(Ge)}}function J(Ge){var cn=e.getParseTreeNode(Ge);if(cn!==Ge)return Ge.transformFlags&1?e.visitEachChild(Ge,$,O):Ge;switch(Ge.kind){case 269:return jr(Ge);case 268:return _r(Ge);case 274:return Te(Ge);case 275:return Ye(Ge);default:e.Debug.fail("Unhandled ellided statement")}}function q(Ge){return h(Ge,G)}function G(Ge){if(!(Ge.kind===275||Ge.kind===269||Ge.kind===270||Ge.kind===268&&Ge.moduleReference.kind===280))return Ge.transformFlags&1||e.hasSyntacticModifier(Ge,1)?B(Ge):Ge}function ye(Ge){return function(cn){return h(cn,function(Vn){return b(Vn,Ge)})}}function b(Ge,cn){switch(Ge.kind){case 173:return er(Ge);case 169:return Re(Ge,cn);case 174:return qr(Ge,cn);case 175:return ln(Ge,cn);case 171:return Ue(Ge,cn);case 172:return e.visitEachChild(Ge,$,O);case 237:return Ge;case 178:return;default:return e.Debug.failBadSyntaxKind(Ge)}}function x(Ge){return function(cn){return h(cn,function(Vn){return T(Vn,Ge)})}}function T(Ge,cn){switch(Ge.kind){case 299:case 300:case 301:return $(Ge);case 174:return qr(Ge,cn);case 175:return ln(Ge,cn);case 171:return Ue(Ge,cn);default:return e.Debug.failBadSyntaxKind(Ge)}}function Z(Ge){if(!e.isDecorator(Ge)&&!(e.modifierToFlag(Ge.kind)&117086)&&!(y&&Ge.kind===93))return Ge}function B(Ge){if(e.isStatement(Ge)&&e.hasSyntacticModifier(Ge,2))return ie.createNotEmittedStatement(Ge);switch(Ge.kind){case 93:case 88:return y?void 0:Ge;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return ie.createNotEmittedStatement(Ge);case 267:return;case 261:return ie.createNotEmittedStatement(Ge);case 260:return ge(Ge);case 228:return pe(Ge);case 294:return j(Ge);case 230:return Ce(Ge);case 207:return A(Ge);case 173:case 169:case 171:case 174:case 175:case 172:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 259:return dr(Ge);case 215:return vr(Ge);case 216:return kr(Ge);case 166:return Ur(Ge);case 214:return pn(Ge);case 213:case 231:return ve(Ge);case 235:return Ee(Ge);case 210:return ze(Ge);case 211:return Ar(Ge);case 212:return xe(Ge);case 232:return or(Ge);case 263:return Qr(Ge);case 240:return Cr(Ge);case 257:return Br(Ge);case 264:return ai(Ge);case 268:return _r(Ge);case 282:return cr(Ge);case 283:return Mr(Ge);default:return e.visitEachChild(Ge,$,O)}}function u(Ge){var cn=e.getStrictOptionValue(te,"alwaysStrict")&&!(e.isExternalModule(Ge)&&ae>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(Ge);return ie.updateSourceFile(Ge,e.visitLexicalEnvironment(Ge.statements,P,O,0,cn))}function A(Ge){return ie.updateObjectLiteralExpression(Ge,e.visitNodes(Ge.properties,x(Ge),e.isObjectLiteralElement))}function w(Ge,cn){var Vn=0;e.some(cn)&&(Vn|=1);var Ki=e.getEffectiveBaseTypeNode(Ge);return Ki&&e.skipOuterExpressions(Ki.expression).kind!==104&&(Vn|=64),e.classOrConstructorParameterIsDecorated(Ge)&&(Vn|=2),e.childIsDecorated(Ge)&&(Vn|=4),Or(Ge)?Vn|=8:Vr(Ge)?Vn|=32:fn(Ge)&&(Vn|=16),oe<=1&&Vn&7&&(Vn|=128),Vn}function z(Ge){return!!(Ge.transformFlags&8192)}function U(Ge){return e.hasDecorators(Ge)||e.some(Ge.typeParameters)||e.some(Ge.heritageClauses,z)||e.some(Ge.members,z)}function ge(Ge){if(!U(Ge)&&!(y&&e.hasSyntacticModifier(Ge,1)))return ie.updateClassDeclaration(Ge,e.visitNodes(Ge.modifiers,Z,e.isModifier),Ge.name,void 0,e.visitNodes(Ge.heritageClauses,$,e.isHeritageClause),e.visitNodes(Ge.members,ye(Ge),e.isClassElement));var cn=e.getProperties(Ge,!0,!0),Vn=w(Ge,cn);Vn&128&&O.startLexicalEnvironment();var Ki=Ge.name||(Vn&5?ie.getGeneratedNameForNode(Ge):void 0),dt=e.getAllDecoratorsOfClass(Ge),qi=Be(Ge,Ge,dt),Ci=Vn&128?e.elideNodes(ie,Ge.modifiers):e.visitNodes(Ge.modifiers,Z,e.isModifier),Tt=ie.updateClassDeclaration(Ge,e.concatenate(qi,Ci),Ki,void 0,e.visitNodes(Ge.heritageClauses,$,e.isHeritageClause),He(Ge)),ot=e.getEmitFlags(Ge);Vn&1&&(ot|=32),e.setEmitFlags(Tt,ot);var Zi=[Tt];if(Vn&128){var ni=e.createTokenRange(e.skipTrivia(m.text,Ge.members.end),19),Va=ie.getInternalName(Ge),Ua=ie.createPartiallyEmittedExpression(Va);e.setTextRangeEnd(Ua,ni.end),e.setEmitFlags(Ua,1536);var za=ie.createReturnStatement(Ua);e.setTextRangePos(za,ni.pos),e.setEmitFlags(za,1536|384),Zi.push(za),e.insertStatementsAfterStandardPrologue(Zi,O.endLexicalEnvironment());var Co=ie.createImmediatelyInvokedArrowFunction(Zi);e.setEmitFlags(Co,33554432);var Ea=ie.createVariableStatement(void 0,ie.createVariableDeclarationList([ie.createVariableDeclaration(ie.getLocalName(Ge,!1,!1),void 0,void 0,Co)]));e.setOriginalNode(Ea,Ge),e.setCommentRange(Ea,Ge),e.setSourceMapRange(Ea,e.moveRangePastDecorators(Ge)),e.startOnNewLine(Ea),Zi=[Ea]}return Vn&8?Wn(Zi,Ge):(Vn&128||Vn&2)&&(Vn&32?Zi.push(ie.createExportDefault(ie.getLocalName(Ge,!1,!0))):Vn&16&&Zi.push(ie.createExternalModuleExport(ie.getLocalName(Ge,!1,!0)))),Zi.length>1&&(Zi.push(ie.createEndOfDeclarationMarker(Ge)),e.setEmitFlags(Tt,e.getEmitFlags(Tt)|4194304)),e.singleOrMany(Zi)}function pe(Ge){var cn=e.getAllDecoratorsOfClass(Ge),Vn=Be(Ge,Ge,cn);return ie.updateClassExpression(Ge,Vn,Ge.name,void 0,e.visitNodes(Ge.heritageClauses,$,e.isHeritageClause),U(Ge)?He(Ge):e.visitNodes(Ge.members,ye(Ge),e.isClassElement))}function He(Ge){var cn=[],Vn=e.getFirstConstructorWithBody(Ge),Ki=Vn&&e.filter(Vn.parameters,function(Tt){return e.isParameterPropertyDeclaration(Tt,Vn)});if(Ki)for(var dt=0,qi=Ki;dt<qi.length;dt++){var Ci=qi[dt];e.isIdentifier(Ci.name)&&cn.push(e.setOriginalNode(ie.createPropertyDeclaration(void 0,Ci.name,void 0,void 0,void 0),Ci))}return e.addRange(cn,e.visitNodes(Ge.members,ye(Ge),e.isClassElement)),e.setTextRange(ie.createNodeArray(cn),Ge.members)}function Be(Ge,cn,Vn){var Ki,dt,qi,Ci;if(!!Vn){var Tt=e.visitArray(Vn.decorators,$,e.isDecorator),ot=e.flatMap(Vn.parameters,Me),Zi=e.some(Tt)||e.some(ot)?Le(Ge,cn):void 0,ni=ie.createNodeArray(e.concatenate(e.concatenate(Tt,ot),Zi)),Va=(dt=(Ki=e.firstOrUndefined(Vn.decorators))===null||Ki===void 0?void 0:Ki.pos)!==null&&dt!==void 0?dt:-1,Ua=(Ci=(qi=e.lastOrUndefined(Vn.decorators))===null||qi===void 0?void 0:qi.end)!==null&&Ci!==void 0?Ci:-1;return e.setTextRangePosEnd(ni,Va,Ua),ni}}function Me(Ge,cn){if(Ge){for(var Vn=[],Ki=0,dt=Ge;Ki<dt.length;Ki++){var qi=dt[Ki],Ci=e.visitNode(qi.expression,$,e.isExpression),Tt=_e().createParamHelper(Ci,cn);e.setTextRange(Tt,qi.expression),e.setEmitFlags(Tt,1536);var ot=ie.createDecorator(Tt);e.setSourceMapRange(ot,qi.expression),e.setCommentRange(ot,qi.expression),e.setEmitFlags(ot,1536),Vn.push(ot)}return Vn}}function Le(Ge,cn){return o?Xe(Ge,cn):Ae(Ge,cn)}function Ae(Ge,cn){if(E){var Vn=void 0;if(Ne(Ge)){var Ki=_e().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:k,currentNameScope:cn},Ge));Vn=e.append(Vn,ie.createDecorator(Ki))}if(be(Ge)){var dt=_e().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:k,currentNameScope:cn},Ge,cn));Vn=e.append(Vn,ie.createDecorator(dt))}if(Oe(Ge)){var qi=_e().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:k,currentNameScope:cn},Ge));Vn=e.append(Vn,ie.createDecorator(qi))}return Vn}}function Xe(Ge,cn){if(E){var Vn=void 0;if(Ne(Ge)){var Ki=ie.createPropertyAssignment("type",ie.createArrowFunction(void 0,void 0,[],void 0,ie.createToken(38),E.serializeTypeOfNode({currentLexicalScope:k,currentNameScope:cn},Ge)));Vn=e.append(Vn,Ki)}if(be(Ge)){var dt=ie.createPropertyAssignment("paramTypes",ie.createArrowFunction(void 0,void 0,[],void 0,ie.createToken(38),E.serializeParameterTypesOfNode({currentLexicalScope:k,currentNameScope:cn},Ge,cn)));Vn=e.append(Vn,dt)}if(Oe(Ge)){var qi=ie.createPropertyAssignment("returnType",ie.createArrowFunction(void 0,void 0,[],void 0,ie.createToken(38),E.serializeReturnTypeOfNode({currentLexicalScope:k,currentNameScope:cn},Ge)));Vn=e.append(Vn,qi)}if(Vn){var Ci=_e().createMetadataHelper("design:typeinfo",ie.createObjectLiteralExpression(Vn,!0));return[ie.createDecorator(Ci)]}}}function Ne(Ge){var cn=Ge.kind;return cn===171||cn===174||cn===175||cn===169}function Oe(Ge){return Ge.kind===171}function be(Ge){switch(Ge.kind){case 260:case 228:return e.getFirstConstructorWithBody(Ge)!==void 0;case 171:case 174:case 175:return!0}return!1}function Y(Ge,cn){var Vn=Ge.name;return e.isPrivateIdentifier(Vn)?ie.createIdentifier(""):e.isComputedPropertyName(Vn)?cn&&!e.isSimpleInlineableExpression(Vn.expression)?ie.getGeneratedNameForNode(Vn):Vn.expression:e.isIdentifier(Vn)?ie.createStringLiteral(e.idText(Vn)):ie.cloneNode(Vn)}function d(Ge){var cn=Ge.name;if(e.isComputedPropertyName(cn)&&(!e.hasStaticModifier(Ge)&&me||e.hasDecorators(Ge))){var Vn=e.visitNode(cn.expression,$,e.isExpression),Ki=e.skipPartiallyEmittedExpressions(Vn);if(!e.isSimpleInlineableExpression(Ki)){var dt=ie.getGeneratedNameForNode(cn);return le(dt),ie.updateComputedPropertyName(cn,ie.createAssignment(dt,Vn))}}return e.visitNode(cn,$,e.isPropertyName)}function j(Ge){if(Ge.token!==117)return e.visitEachChild(Ge,$,O)}function Ce(Ge){return ie.updateExpressionWithTypeArguments(Ge,e.visitNode(Ge.expression,$,e.isLeftHandSideExpression),void 0)}function Se(Ge){return!e.nodeIsMissing(Ge.body)}function Re(Ge,cn){var Vn=Ge.flags&16777216||e.hasSyntacticModifier(Ge,256);if(!(Vn&&!e.hasDecorators(Ge))){var Ki=e.getAllDecoratorsOfClassElement(Ge,cn),dt=Be(Ge,cn,Ki);return Vn?ie.updatePropertyDeclaration(Ge,e.concatenate(dt,ie.createModifiersFromModifierFlags(2)),e.visitNode(Ge.name,$,e.isPropertyName),void 0,void 0,void 0):ie.updatePropertyDeclaration(Ge,e.concatenate(dt,e.visitNodes(Ge.modifiers,Z,e.isModifierLike)),d(Ge),void 0,void 0,e.visitNode(Ge.initializer,$))}}function er(Ge){if(!!Se(Ge))return ie.updateConstructorDeclaration(Ge,void 0,e.visitParameterList(Ge.parameters,$,O),wr(Ge.body,Ge))}function wr(Ge,cn){var Vn=cn&&e.filter(cn.parameters,function(Zi){return e.isParameterPropertyDeclaration(Zi,cn)});if(!e.some(Vn))return e.visitFunctionBody(Ge,$,O);var Ki=[];p();var dt=ie.copyPrologue(Ge.statements,Ki,!1,$),qi=e.findSuperStatementIndex(Ge.statements,dt);qi>=0&&e.addRange(Ki,e.visitNodes(Ge.statements,$,e.isStatement,dt,qi+1-dt));var Ci=e.mapDefined(Vn,mr);qi>=0?e.addRange(Ki,Ci):Ki=zn(zn(zn([],Ki.slice(0,dt),!0),Ci,!0),Ki.slice(dt),!0);var Tt=qi>=0?qi+1:dt;e.addRange(Ki,e.visitNodes(Ge.statements,$,e.isStatement,Tt)),Ki=ie.mergeLexicalEnvironment(Ki,D());var ot=ie.createBlock(e.setTextRange(ie.createNodeArray(Ki),Ge.statements),!0);return e.setTextRange(ot,Ge),e.setOriginalNode(ot,Ge),ot}function mr(Ge){var cn=Ge.name;if(!!e.isIdentifier(cn)){var Vn=e.setParent(e.setTextRange(ie.cloneNode(cn),cn),cn.parent);e.setEmitFlags(Vn,1536|48);var Ki=e.setParent(e.setTextRange(ie.cloneNode(cn),cn),cn.parent);return e.setEmitFlags(Ki,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(ie.createExpressionStatement(ie.createAssignment(e.setTextRange(ie.createPropertyAccessExpression(ie.createThis(),Vn),Ge.name),Ki)),Ge),e.moveRangePos(Ge,-1))))}}function Ue(Ge,cn){if(!(Ge.transformFlags&1))return Ge;if(!!Se(Ge)){var Vn=e.isClassLike(cn)?e.getAllDecoratorsOfClassElement(Ge,cn):void 0,Ki=e.isClassLike(cn)?Be(Ge,cn,Vn):void 0;return ie.updateMethodDeclaration(Ge,e.concatenate(Ki,e.visitNodes(Ge.modifiers,Z,e.isModifierLike)),Ge.asteriskToken,d(Ge),void 0,void 0,e.visitParameterList(Ge.parameters,$,O),void 0,e.visitFunctionBody(Ge.body,$,O))}}function t(Ge){return!(e.nodeIsMissing(Ge.body)&&e.hasSyntacticModifier(Ge,256))}function qr(Ge,cn){if(!(Ge.transformFlags&1))return Ge;if(!!t(Ge)){var Vn=e.isClassLike(cn)?Be(Ge,cn,e.getAllDecoratorsOfClassElement(Ge,cn)):void 0;return ie.updateGetAccessorDeclaration(Ge,e.concatenate(Vn,e.visitNodes(Ge.modifiers,Z,e.isModifierLike)),d(Ge),e.visitParameterList(Ge.parameters,$,O),void 0,e.visitFunctionBody(Ge.body,$,O)||ie.createBlock([]))}}function ln(Ge,cn){if(!(Ge.transformFlags&1))return Ge;if(!!t(Ge)){var Vn=e.isClassLike(cn)?Be(Ge,cn,e.getAllDecoratorsOfClassElement(Ge,cn)):void 0;return ie.updateSetAccessorDeclaration(Ge,e.concatenate(Vn,e.visitNodes(Ge.modifiers,Z,e.isModifierLike)),d(Ge),e.visitParameterList(Ge.parameters,$,O),e.visitFunctionBody(Ge.body,$,O)||ie.createBlock([]))}}function dr(Ge){if(!Se(Ge))return ie.createNotEmittedStatement(Ge);var cn=ie.updateFunctionDeclaration(Ge,e.visitNodes(Ge.modifiers,Z,e.isModifier),Ge.asteriskToken,Ge.name,void 0,e.visitParameterList(Ge.parameters,$,O),void 0,e.visitFunctionBody(Ge.body,$,O)||ie.createBlock([]));if(Or(Ge)){var Vn=[cn];return Wn(Vn,Ge),Vn}return cn}function vr(Ge){if(!Se(Ge))return ie.createOmittedExpression();var cn=ie.updateFunctionExpression(Ge,e.visitNodes(Ge.modifiers,Z,e.isModifier),Ge.asteriskToken,Ge.name,void 0,e.visitParameterList(Ge.parameters,$,O),void 0,e.visitFunctionBody(Ge.body,$,O)||ie.createBlock([]));return cn}function kr(Ge){var cn=ie.updateArrowFunction(Ge,e.visitNodes(Ge.modifiers,Z,e.isModifier),void 0,e.visitParameterList(Ge.parameters,$,O),void 0,Ge.equalsGreaterThanToken,e.visitFunctionBody(Ge.body,$,O));return cn}function Ur(Ge){if(!e.parameterIsThisKeyword(Ge)){var cn=ie.updateParameterDeclaration(Ge,e.elideNodes(ie,Ge.modifiers),Ge.dotDotDotToken,e.visitNode(Ge.name,$,e.isBindingName),void 0,void 0,e.visitNode(Ge.initializer,$,e.isExpression));return cn!==Ge&&(e.setCommentRange(cn,Ge),e.setTextRange(cn,e.moveRangePastModifiers(Ge)),e.setSourceMapRange(cn,e.moveRangePastModifiers(Ge)),e.setEmitFlags(cn.name,32)),cn}}function Cr(Ge){if(Or(Ge)){var cn=e.getInitializedVariables(Ge.declarationList);return cn.length===0?void 0:e.setTextRange(ie.createExpressionStatement(ie.inlineExpressions(e.map(cn,rn))),Ge)}else return e.visitEachChild(Ge,$,O)}function rn(Ge){var cn=Ge.name;return e.isBindingPattern(cn)?e.flattenDestructuringAssignment(Ge,$,O,0,!1,qn):e.setTextRange(ie.createAssignment(yn(cn),e.visitNode(Ge.initializer,$,e.isExpression)),Ge)}function Br(Ge){var cn=ie.updateVariableDeclaration(Ge,e.visitNode(Ge.name,$,e.isBindingName),void 0,void 0,e.visitNode(Ge.initializer,$,e.isExpression));return Ge.type&&e.setTypeNode(cn.name,Ge.type),cn}function pn(Ge){var cn=e.skipOuterExpressions(Ge.expression,~6);if(e.isAssertionExpression(cn)){var Vn=e.visitNode(Ge.expression,$,e.isExpression);return ie.createPartiallyEmittedExpression(Vn,Ge)}return e.visitEachChild(Ge,$,O)}function ve(Ge){var cn=e.visitNode(Ge.expression,$,e.isExpression);return ie.createPartiallyEmittedExpression(cn,Ge)}function or(Ge){var cn=e.visitNode(Ge.expression,$,e.isLeftHandSideExpression);return ie.createPartiallyEmittedExpression(cn,Ge)}function Ee(Ge){var cn=e.visitNode(Ge.expression,$,e.isExpression);return ie.createPartiallyEmittedExpression(cn,Ge)}function ze(Ge){return ie.updateCallExpression(Ge,e.visitNode(Ge.expression,$,e.isExpression),void 0,e.visitNodes(Ge.arguments,$,e.isExpression))}function Ar(Ge){return ie.updateNewExpression(Ge,e.visitNode(Ge.expression,$,e.isExpression),void 0,e.visitNodes(Ge.arguments,$,e.isExpression))}function xe(Ge){return ie.updateTaggedTemplateExpression(Ge,e.visitNode(Ge.tag,$,e.isExpression),void 0,e.visitNode(Ge.template,$,e.isExpression))}function cr(Ge){return ie.updateJsxSelfClosingElement(Ge,e.visitNode(Ge.tagName,$,e.isJsxTagNameExpression),void 0,e.visitNode(Ge.attributes,$,e.isJsxAttributes))}function Mr(Ge){return ie.updateJsxOpeningElement(Ge,e.visitNode(Ge.tagName,$,e.isJsxTagNameExpression),void 0,e.visitNode(Ge.attributes,$,e.isJsxAttributes))}function Rr(Ge){return!e.isEnumConst(Ge)||e.shouldPreserveConstEnums(te)}function Qr(Ge){if(!Rr(Ge))return ie.createNotEmittedStatement(Ge);var cn=[],Vn=2,Ki=Qn(cn,Ge);Ki&&(ae!==e.ModuleKind.System||k!==m)&&(Vn|=512);var dt=Hn(Ge),qi=Ai(Ge),Ci=e.hasSyntacticModifier(Ge,1)?ie.getExternalModuleOrNamespaceExportName(S,Ge,!1,!0):ie.getLocalName(Ge,!1,!0),Tt=ie.createLogicalOr(Ci,ie.createAssignment(Ci,ie.createObjectLiteralExpression()));if(xr(Ge)){var ot=ie.getLocalName(Ge,!1,!0);Tt=ie.createAssignment(ot,Tt)}var Zi=ie.createExpressionStatement(ie.createCallExpression(ie.createFunctionExpression(void 0,void 0,void 0,void 0,[ie.createParameterDeclaration(void 0,void 0,dt)],void 0,en(Ge,qi)),void 0,[Tt]));return e.setOriginalNode(Zi,Ge),Ki&&(e.setSyntheticLeadingComments(Zi,void 0),e.setSyntheticTrailingComments(Zi,void 0)),e.setTextRange(Zi,Ge),e.addEmitFlags(Zi,Vn),cn.push(Zi),cn.push(ie.createEndOfDeclarationMarker(Ge)),cn}function en(Ge,cn){var Vn=S;S=cn;var Ki=[];Q();var dt=e.map(Ge.members,vn);return e.insertStatementsAfterStandardPrologue(Ki,D()),e.addRange(Ki,dt),S=Vn,ie.createBlock(e.setTextRange(ie.createNodeArray(Ki),Ge.members),!0)}function vn(Ge){var cn=Y(Ge,!1),Vn=Ie(Ge),Ki=ie.createAssignment(ie.createElementAccessExpression(S,cn),Vn),dt=Vn.kind===10?Ki:ie.createAssignment(ie.createElementAccessExpression(S,Ki),cn);return e.setTextRange(ie.createExpressionStatement(e.setTextRange(dt,Ge)),Ge)}function Ie(Ge){var cn=de.getConstantValue(Ge);return cn!==void 0?typeof cn=="string"?ie.createStringLiteral(cn):ie.createNumericLiteral(cn):(ti(),Ge.initializer?e.visitNode(Ge.initializer,$,e.isExpression):ie.createVoidZero())}function We(Ge){var cn=e.getParseTreeNode(Ge,e.isModuleDeclaration);return cn?e.isInstantiatedModule(cn,e.shouldPreserveConstEnums(te)):!0}function xr(Ge){return Or(Ge)||zr(Ge)&&ae!==e.ModuleKind.ES2015&&ae!==e.ModuleKind.ES2020&&ae!==e.ModuleKind.ES2022&&ae!==e.ModuleKind.ESNext&&ae!==e.ModuleKind.System}function Lr(Ge){C||(C=new e.Map);var cn=An(Ge);C.has(cn)||C.set(cn,Ge)}function xn(Ge){if(C){var cn=An(Ge);return C.get(cn)===Ge}return!0}function An(Ge){return e.Debug.assertNode(Ge.name,e.isIdentifier),Ge.name.escapedText}function Qn(Ge,cn){var Vn=ie.createVariableStatement(e.visitNodes(cn.modifiers,Z,e.isModifier),ie.createVariableDeclarationList([ie.createVariableDeclaration(ie.getLocalName(cn,!1,!0))],k.kind===308?0:1));if(e.setOriginalNode(Vn,cn),Lr(cn),xn(cn))return cn.kind===263?e.setSourceMapRange(Vn.declarationList,cn):e.setSourceMapRange(Vn,cn),e.setCommentRange(Vn,cn),e.addEmitFlags(Vn,1024|4194304),Ge.push(Vn),!0;var Ki=ie.createMergeDeclarationMarker(Vn);return e.setEmitFlags(Ki,1536|4194304),Ge.push(Ki),!1}function ai(Ge){if(!We(Ge))return ie.createNotEmittedStatement(Ge);e.Debug.assertNode(Ge.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),Hi();var cn=[],Vn=2,Ki=Qn(cn,Ge);Ki&&(ae!==e.ModuleKind.System||k!==m)&&(Vn|=512);var dt=Hn(Ge),qi=Ai(Ge),Ci=e.hasSyntacticModifier(Ge,1)?ie.getExternalModuleOrNamespaceExportName(S,Ge,!1,!0):ie.getLocalName(Ge,!1,!0),Tt=ie.createLogicalOr(Ci,ie.createAssignment(Ci,ie.createObjectLiteralExpression()));if(xr(Ge)){var ot=ie.getLocalName(Ge,!1,!0);Tt=ie.createAssignment(ot,Tt)}var Zi=ie.createExpressionStatement(ie.createCallExpression(ie.createFunctionExpression(void 0,void 0,void 0,void 0,[ie.createParameterDeclaration(void 0,void 0,dt)],void 0,Dr(Ge,qi)),void 0,[Tt]));return e.setOriginalNode(Zi,Ge),Ki&&(e.setSyntheticLeadingComments(Zi,void 0),e.setSyntheticTrailingComments(Zi,void 0)),e.setTextRange(Zi,Ge),e.addEmitFlags(Zi,Vn),cn.push(Zi),cn.push(ie.createEndOfDeclarationMarker(Ge)),cn}function Dr(Ge,cn){var Vn=S,Ki=y,dt=C;S=cn,y=Ge,C=void 0;var qi=[];Q();var Ci,Tt;if(Ge.body)if(Ge.body.kind===265)h(Ge.body,function(Va){return e.addRange(qi,e.visitNodes(Va.statements,q,e.isStatement))}),Ci=Ge.body.statements,Tt=Ge.body;else{var ot=ai(Ge.body);ot&&(e.isArray(ot)?e.addRange(qi,ot):qi.push(ot));var Zi=Pr(Ge).body;Ci=e.moveRangePos(Zi.statements,-1)}e.insertStatementsAfterStandardPrologue(qi,D()),S=Vn,y=Ki,C=dt;var ni=ie.createBlock(e.setTextRange(ie.createNodeArray(qi),Ci),!0);return e.setTextRange(ni,Tt),(!Ge.body||Ge.body.kind!==265)&&e.setEmitFlags(ni,e.getEmitFlags(ni)|1536),ni}function Pr(Ge){if(Ge.body.kind===264){var cn=Pr(Ge.body);return cn||Ge.body}}function jr(Ge){if(!Ge.importClause)return Ge;if(!Ge.importClause.isTypeOnly){var cn=e.visitNode(Ge.importClause,on,e.isImportClause);return cn||te.importsNotUsedAsValues===1||te.importsNotUsedAsValues===2?ie.updateImportDeclaration(Ge,void 0,cn,Ge.moduleSpecifier,Ge.assertClause):void 0}}function on(Ge){e.Debug.assert(!Ge.isTypeOnly);var cn=Xn(Ge)?Ge.name:void 0,Vn=e.visitNode(Ge.namedBindings,je,e.isNamedImportBindings);return cn||Vn?ie.updateImportClause(Ge,!1,cn,Vn):void 0}function je(Ge){if(Ge.kind===271)return Xn(Ge)?Ge:void 0;var cn=te.preserveValueImports&&(te.importsNotUsedAsValues===1||te.importsNotUsedAsValues===2),Vn=e.visitNodes(Ge.elements,Sr,e.isImportSpecifier);return cn||e.some(Vn)?ie.updateNamedImports(Ge,Vn):void 0}function Sr(Ge){return!Ge.isTypeOnly&&Xn(Ge)?Ge:void 0}function Te(Ge){return de.isValueAliasDeclaration(Ge)?e.visitEachChild(Ge,$,O):void 0}function Ye(Ge){if(!Ge.isTypeOnly){if(!Ge.exportClause||e.isNamespaceExport(Ge.exportClause))return Ge;var cn=!!Ge.moduleSpecifier&&(te.importsNotUsedAsValues===1||te.importsNotUsedAsValues===2),Vn=e.visitNode(Ge.exportClause,function(Ki){return Ke(Ki,cn)},e.isNamedExportBindings);return Vn?ie.updateExportDeclaration(Ge,void 0,Ge.isTypeOnly,Vn,Ge.moduleSpecifier,Ge.assertClause):void 0}}function Qe(Ge,cn){var Vn=e.visitNodes(Ge.elements,tr,e.isExportSpecifier);return cn||e.some(Vn)?ie.updateNamedExports(Ge,Vn):void 0}function ue(Ge){return ie.updateNamespaceExport(Ge,e.visitNode(Ge.name,$,e.isIdentifier))}function Ke(Ge,cn){return e.isNamespaceExport(Ge)?ue(Ge):Qe(Ge,cn)}function tr(Ge){return!Ge.isTypeOnly&&de.isValueAliasDeclaration(Ge)?Ge:void 0}function hr(Ge){return Xn(Ge)||!e.isExternalModule(m)&&de.isTopLevelValueImportEqualsWithEntityName(Ge)}function _r(Ge){if(!Ge.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(Ge)){var cn=Xn(Ge);return!cn&&te.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(ie.createImportDeclaration(void 0,void 0,Ge.moduleReference.expression,void 0),Ge),Ge):cn?e.visitEachChild(Ge,$,O):void 0}if(!!hr(Ge)){var Vn=e.createExpressionFromEntityName(ie,Ge.moduleReference);return e.setEmitFlags(Vn,1536|2048),fn(Ge)||!Or(Ge)?e.setOriginalNode(e.setTextRange(ie.createVariableStatement(e.visitNodes(Ge.modifiers,Z,e.isModifier),ie.createVariableDeclarationList([e.setOriginalNode(ie.createVariableDeclaration(Ge.name,void 0,void 0,Vn),Ge)])),Ge),Ge):e.setOriginalNode(bn(Ge.name,Vn,Ge),Ge)}}}function Or(Ge){return y!==void 0&&e.hasSyntacticModifier(Ge,1)}function zr(Ge){return y===void 0&&e.hasSyntacticModifier(Ge,1)}function fn(Ge){return zr(Ge)&&!e.hasSyntacticModifier(Ge,1024)}function Vr(Ge){return zr(Ge)&&e.hasSyntacticModifier(Ge,1024)}function Wn(Ge,cn){var Vn=ie.createAssignment(ie.getExternalModuleOrNamespaceExportName(S,cn,!1,!0),ie.getLocalName(cn));e.setSourceMapRange(Vn,e.createRange(cn.name?cn.name.pos:cn.pos,cn.end));var Ki=ie.createExpressionStatement(Vn);e.setSourceMapRange(Ki,e.createRange(-1,cn.end)),Ge.push(Ki)}function bn(Ge,cn,Vn){return e.setTextRange(ie.createExpressionStatement(ie.createAssignment(ie.getNamespaceMemberName(S,Ge,!1,!0),cn)),Vn)}function qn(Ge,cn,Vn){return e.setTextRange(ie.createAssignment(yn(Ge),cn),Vn)}function yn(Ge){return ie.getNamespaceMemberName(S,Ge,!1,!0)}function Hn(Ge){var cn=ie.getGeneratedNameForNode(Ge);return e.setSourceMapRange(cn,Ge.name),cn}function Ai(Ge){return ie.getGeneratedNameForNode(Ge)}function ti(){(De&8)==0&&(De|=8,O.enableSubstitution(79))}function Hi(){(De&2)==0&&(De|=2,O.enableSubstitution(79),O.enableSubstitution(300),O.enableEmitNotification(264))}function Ni(Ge){return e.getOriginalNode(Ge).kind===264}function gi(Ge){return e.getOriginalNode(Ge).kind===263}function Pn(Ge,cn,Vn){var Ki=X,dt=m;e.isSourceFile(cn)&&(m=cn),De&2&&Ni(cn)&&(X|=2),De&8&&gi(cn)&&(X|=8),I(Ge,cn,Vn),X=Ki,m=dt}function Pe(Ge,cn){return cn=f(Ge,cn),Ge===1?we(cn):e.isShorthandPropertyAssignment(cn)?Ir(cn):cn}function Ir(Ge){if(De&2){var cn=Ge.name,Vn=jn(cn);if(Vn){if(Ge.objectAssignmentInitializer){var Ki=ie.createAssignment(Vn,Ge.objectAssignmentInitializer);return e.setTextRange(ie.createPropertyAssignment(cn,Ki),Ge)}return e.setTextRange(ie.createPropertyAssignment(cn,Vn),Ge)}}return Ge}function we(Ge){switch(Ge.kind){case 79:return hn(Ge);case 208:return gn(Ge);case 209:return nn(Ge)}return Ge}function hn(Ge){return jn(Ge)||Ge}function jn(Ge){if(De&X&&!e.isGeneratedIdentifier(Ge)&&!e.isLocalName(Ge)){var cn=de.getReferencedExportContainer(Ge,!1);if(cn&&cn.kind!==308){var Vn=X&2&&cn.kind===264||X&8&&cn.kind===263;if(Vn)return e.setTextRange(ie.createPropertyAccessExpression(ie.getGeneratedNameForNode(cn),Ge),Ge)}}}function gn(Ge){return Dn(Ge)}function nn(Ge){return Dn(Ge)}function Cn(Ge){return Ge.replace(/\*\//g,"*_/")}function Dn(Ge){var cn=On(Ge);if(cn!==void 0){e.setConstantValue(Ge,cn);var Vn=typeof cn=="string"?ie.createStringLiteral(cn):ie.createNumericLiteral(cn);if(!te.removeComments){var Ki=e.getOriginalNode(Ge,e.isAccessExpression);e.addSyntheticTrailingComment(Vn,3," ".concat(Cn(e.getTextOfNode(Ki))," "))}return Vn}return Ge}function On(Ge){if(!te.isolatedModules)return e.isPropertyAccessExpression(Ge)||e.isElementAccessExpression(Ge)?de.getConstantValue(Ge):void 0}function Xn(Ge){return e.isInJSFile(Ge)||(te.preserveValueImports?de.isValueAliasDeclaration(Ge):de.isReferencedAliasDeclaration(Ge))}}e.transformTypeScript=se})(fr||(fr={}));var fr;(function(e){var o;(function(te){te[te.ClassAliases=1]="ClassAliases",te[te.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(o||(o={}));var ne;(function(te){te.Field="f",te.Method="m",te.Accessor="a"})(ne=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var K;(function(te){te[te.None=0]="None",te[te.ClassWasDecorated=1]="ClassWasDecorated",te[te.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",te[te.NeedsClassSuperReference=4]="NeedsClassSuperReference",te[te.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(K||(K={}));function se(te){var oe=te.factory,ae=te.hoistVariableDeclaration,E=te.endLexicalEnvironment,I=te.startLexicalEnvironment,f=te.resumeLexicalEnvironment,m=te.addBlockScopedVariable,y=te.getEmitResolver(),S=te.getCompilerOptions(),k=e.getEmitScriptTarget(S),C=e.getUseDefineForClassFields(S),me=!C,De=C&&k<9,X=me||De,M=k<9,H=k<99,V=k<9,h=V&&k>=2,F=X||M||H,$=te.onSubstituteNode;te.onSubstituteNode=Pr;var L=te.onEmitNode;te.onEmitNode=Dr;var P,N,J,q,G=[],ye=new e.Map,b,x,T,Z;return e.chainBundle(te,B);function B(Pe){if(Pe.isDeclarationFile||!F)return Pe;var Ir=e.visitEachChild(Pe,u,te);return e.addEmitHelpers(Ir,te.readEmitHelpers()),Ir}function u(Pe){if(!(Pe.transformFlags&16777216)&&!(Pe.transformFlags&134234112))return Pe;switch(Pe.kind){case 127:return H?void 0:Pe;case 260:return or(Pe);case 228:return ze(Pe);case 172:return xe(Pe);case 169:return Se(Pe);case 240:return Le(Pe);case 80:return He(Pe);case 208:return wr(Pe);case 209:return mr(Pe);case 221:case 222:return Ue(Pe,!1);case 223:return Ur(Pe,!1);case 210:return dr(Pe);case 241:return qr(Pe);case 212:return vr(Pe);case 245:return t(Pe);case 259:case 215:case 173:case 171:case 174:case 175:return Oe(void 0,A,Pe);default:return A(Pe)}}function A(Pe){return e.visitEachChild(Pe,u,te)}function w(Pe){switch(Pe.kind){case 221:case 222:return Ue(Pe,!0);case 223:return Ur(Pe,!0);default:return u(Pe)}}function z(Pe){switch(Pe.kind){case 294:return e.visitEachChild(Pe,z,te);case 230:return pn(Pe);default:return u(Pe)}}function U(Pe){switch(Pe.kind){case 207:case 206:return Pn(Pe);default:return u(Pe)}}function ge(Pe){switch(Pe.kind){case 173:return Xe(Pe);case 174:case 175:case 171:return Oe(void 0,Ne,Pe);case 169:return Oe(void 0,Se,Pe);case 164:return Ae(Pe);case 237:return Pe;default:return u(Pe)}}function pe(Pe){switch(Pe.kind){case 169:return Ce(Pe);case 174:case 175:return ge(Pe);default:e.Debug.assertMissingNode(Pe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function He(Pe){return!M||e.isStatement(Pe.parent)?Pe:e.setOriginalNode(oe.createIdentifier(""),Pe)}function Be(Pe){return e.isPrivateIdentifier(Pe.left)&&Pe.operatorToken.kind===101}function Me(Pe){var Ir=yn(Pe.left);if(Ir){var we=e.visitNode(Pe.right,u,e.isExpression);return e.setOriginalNode(te.getEmitHelperFactory().createClassPrivateFieldInHelper(Ir.brandCheckIdentifier,we),Pe)}return e.visitEachChild(Pe,u,te)}function Le(Pe){var Ir=q;q=[];var we=e.visitEachChild(Pe,u,te),hn=e.some(q)?zn([we],q,!0):we;return q=Ir,hn}function Ae(Pe){var Ir=e.visitNode(Pe.expression,u,e.isExpression);return e.some(J)&&(e.isParenthesizedExpression(Ir)?Ir=oe.updateParenthesizedExpression(Ir,oe.inlineExpressions(zn(zn([],J,!0),[Ir.expression],!1))):Ir=oe.inlineExpressions(zn(zn([],J,!0),[Ir],!1)),J=void 0),oe.updateComputedPropertyName(Pe,Ir)}function Xe(Pe){return x?Qr(Pe,x):A(Pe)}function Ne(Pe){if(e.Debug.assert(!e.hasDecorators(Pe)),!M||!e.isPrivateIdentifier(Pe.name))return e.visitEachChild(Pe,ge,te);var Ir=yn(Pe.name);if(e.Debug.assert(Ir,"Undeclared private name for property declaration."),!Ir.isValid)return Pe;var we=be(Pe);we&&tr().push(oe.createAssignment(we,oe.createFunctionExpression(e.filter(Pe.modifiers,function(hn){return e.isModifier(hn)&&!e.isStaticModifier(hn)&&!e.isAccessorModifier(hn)}),Pe.asteriskToken,we,void 0,e.visitParameterList(Pe.parameters,u,te),void 0,e.visitFunctionBody(Pe.body,u,te))))}function Oe(Pe,Ir,we){var hn=Z;Z=Pe;var jn=Ir(we);return Z=hn,jn}function be(Pe){e.Debug.assert(e.isPrivateIdentifier(Pe.name));var Ir=yn(Pe.name);if(e.Debug.assert(Ir,"Undeclared private name for property declaration."),Ir.kind==="m")return Ir.methodName;if(Ir.kind==="a"){if(e.isGetAccessor(Pe))return Ir.getterName;if(e.isSetAccessor(Pe))return Ir.setterName}}function Y(Pe){e.Debug.assertEachNode(Pe.modifiers,e.isModifier);var Ir=e.getCommentRange(Pe),we=e.getSourceMapRange(Pe),hn=Pe.name,jn=hn,gn=hn;if(e.isComputedPropertyName(hn)&&!e.isSimpleInlineableExpression(hn.expression)){var nn=oe.createTempVariable(ae);e.setSourceMapRange(nn,hn.expression);var Cn=e.visitNode(hn.expression,u,e.isExpression),Dn=oe.createAssignment(nn,Cn);e.setSourceMapRange(Dn,hn.expression),jn=oe.updateComputedPropertyName(hn,oe.inlineExpressions([Dn,nn])),gn=oe.updateComputedPropertyName(hn,nn)}var On=e.createAccessorPropertyBackingField(oe,Pe,Pe.modifiers,Pe.initializer);e.setOriginalNode(On,Pe),e.setEmitFlags(On,1536),e.setSourceMapRange(On,we);var Xn=e.createAccessorPropertyGetRedirector(oe,Pe,Pe.modifiers,jn);e.setOriginalNode(Xn,Pe),e.setCommentRange(Xn,Ir),e.setSourceMapRange(Xn,we);var Ge=e.createAccessorPropertySetRedirector(oe,Pe,Pe.modifiers,gn);return e.setOriginalNode(Ge,Pe),e.setEmitFlags(Ge,1536),e.setSourceMapRange(Ge,we),e.visitArray([On,Xn,Ge],pe,e.isClassElement)}function d(Pe){if(M){var Ir=yn(Pe.name);return e.Debug.assert(Ir,"Undeclared private name for property declaration."),Ir.isValid?void 0:Pe}return me&&!e.isStatic(Pe)?oe.updatePropertyDeclaration(Pe,e.visitNodes(Pe.modifiers,u,e.isModifierLike),Pe.name,void 0,void 0,void 0):e.visitEachChild(Pe,u,te)}function j(Pe){if(X){var Ir=Te(Pe.name,!!Pe.initializer||C);if(Ir&&tr().push(Ir),e.isStatic(Pe)&&!M){var we=Ie(Pe,oe.createThis());if(we){var hn=oe.createClassStaticBlockDeclaration(oe.createBlock([we]));return e.setOriginalNode(hn,Pe),e.setCommentRange(hn,Pe),e.setCommentRange(we,{pos:-1,end:-1}),e.setSyntheticLeadingComments(we,void 0),e.setSyntheticTrailingComments(we,void 0),hn}}return}return e.visitEachChild(Pe,ge,te)}function Ce(Pe){return e.Debug.assert(!e.hasDecorators(Pe),"Decorators should already have been transformed and elided."),e.isPrivateIdentifierClassElementDeclaration(Pe)?d(Pe):j(Pe)}function Se(Pe){return H&&e.isAutoAccessorPropertyDeclaration(Pe)?Y(Pe):Ce(Pe)}function Re(Pe,Ir){return er(Pe,e.visitNode(Ir,u,e.isExpression))}function er(Pe,Ir){switch(e.setCommentRange(Ir,e.moveRangePos(Ir,-1)),Pe.kind){case"a":return te.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ir,Pe.brandCheckIdentifier,Pe.kind,Pe.getterName);case"m":return te.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ir,Pe.brandCheckIdentifier,Pe.kind,Pe.methodName);case"f":return te.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ir,Pe.brandCheckIdentifier,Pe.kind,Pe.variableName);default:e.Debug.assertNever(Pe,"Unknown private element type")}}function wr(Pe){if(M&&e.isPrivateIdentifier(Pe.name)){var Ir=yn(Pe.name);if(Ir)return e.setTextRange(e.setOriginalNode(Re(Ir,Pe.expression),Pe),Pe)}if(h&&e.isSuperProperty(Pe)&&e.isIdentifier(Pe.name)&&Z&&b){var we=b.classConstructor,hn=b.superClassReference,jn=b.facts;if(jn&1)return ai(Pe);if(we&&hn){var gn=oe.createReflectGetCall(hn,oe.createStringLiteralFromNode(Pe.name),we);return e.setOriginalNode(gn,Pe.expression),e.setTextRange(gn,Pe.expression),gn}}return e.visitEachChild(Pe,u,te)}function mr(Pe){if(h&&e.isSuperProperty(Pe)&&Z&&b){var Ir=b.classConstructor,we=b.superClassReference,hn=b.facts;if(hn&1)return ai(Pe);if(Ir&&we){var jn=oe.createReflectGetCall(we,e.visitNode(Pe.argumentExpression,u,e.isExpression),Ir);return e.setOriginalNode(jn,Pe.expression),e.setTextRange(jn,Pe.expression),jn}}return e.visitEachChild(Pe,u,te)}function Ue(Pe,Ir){if(Pe.operator===45||Pe.operator===46){var we=e.skipParentheses(Pe.operand);if(M&&e.isPrivateIdentifierPropertyAccessExpression(we)){var hn=void 0;if(hn=yn(we.name)){var jn=e.visitNode(we.expression,u,e.isExpression),gn=ln(jn),nn=gn.readExpression,Cn=gn.initializeExpression,Dn=Re(hn,nn),On=e.isPrefixUnaryExpression(Pe)||Ir?void 0:oe.createTempVariable(ae);return Dn=e.expandPreOrPostfixIncrementOrDecrementExpression(oe,Pe,Dn,ae,On),Dn=Cr(hn,Cn||nn,Dn,63),e.setOriginalNode(Dn,Pe),e.setTextRange(Dn,Pe),On&&(Dn=oe.createComma(Dn,On),e.setTextRange(Dn,Pe)),Dn}}else if(h&&e.isSuperProperty(we)&&Z&&b){var Xn=b.classConstructor,Ge=b.superClassReference,cn=b.facts;if(cn&1){var Dn=ai(we);return e.isPrefixUnaryExpression(Pe)?oe.updatePrefixUnaryExpression(Pe,Dn):oe.updatePostfixUnaryExpression(Pe,Dn)}if(Xn&&Ge){var Vn=void 0,Ki=void 0;if(e.isPropertyAccessExpression(we)?e.isIdentifier(we.name)&&(Ki=Vn=oe.createStringLiteralFromNode(we.name)):e.isSimpleInlineableExpression(we.argumentExpression)?Ki=Vn=we.argumentExpression:(Ki=oe.createTempVariable(ae),Vn=oe.createAssignment(Ki,e.visitNode(we.argumentExpression,u,e.isExpression))),Vn&&Ki){var Dn=oe.createReflectGetCall(Ge,Ki,Xn);e.setTextRange(Dn,we);var On=Ir?void 0:oe.createTempVariable(ae);return Dn=e.expandPreOrPostfixIncrementOrDecrementExpression(oe,Pe,Dn,ae,On),Dn=oe.createReflectSetCall(Ge,Vn,Dn,Xn),e.setOriginalNode(Dn,Pe),e.setTextRange(Dn,Pe),On&&(Dn=oe.createComma(Dn,On),e.setTextRange(Dn,Pe)),Dn}}}}return e.visitEachChild(Pe,u,te)}function t(Pe){return oe.updateForStatement(Pe,e.visitNode(Pe.initializer,w,e.isForInitializer),e.visitNode(Pe.condition,u,e.isExpression),e.visitNode(Pe.incrementor,w,e.isExpression),e.visitIterationBody(Pe.statement,u,te))}function qr(Pe){return oe.updateExpressionStatement(Pe,e.visitNode(Pe.expression,w,e.isExpression))}function ln(Pe){var Ir=e.nodeIsSynthesized(Pe)?Pe:oe.cloneNode(Pe);if(e.isSimpleInlineableExpression(Pe))return{readExpression:Ir,initializeExpression:void 0};var we=oe.createTempVariable(ae),hn=oe.createAssignment(we,Ir);return{readExpression:we,initializeExpression:hn}}function dr(Pe){if(M&&e.isPrivateIdentifierPropertyAccessExpression(Pe.expression)){var Ir=oe.createCallBinding(Pe.expression,ae,k),we=Ir.thisArg,hn=Ir.target;return e.isCallChain(Pe)?oe.updateCallChain(Pe,oe.createPropertyAccessChain(e.visitNode(hn,u),Pe.questionDotToken,"call"),void 0,void 0,zn([e.visitNode(we,u,e.isExpression)],e.visitNodes(Pe.arguments,u,e.isExpression),!0)):oe.updateCallExpression(Pe,oe.createPropertyAccessExpression(e.visitNode(hn,u),"call"),void 0,zn([e.visitNode(we,u,e.isExpression)],e.visitNodes(Pe.arguments,u,e.isExpression),!0))}if(h&&e.isSuperProperty(Pe.expression)&&Z&&(b==null?void 0:b.classConstructor)){var jn=oe.createFunctionCallCall(e.visitNode(Pe.expression,u,e.isExpression),b.classConstructor,e.visitNodes(Pe.arguments,u,e.isExpression));return e.setOriginalNode(jn,Pe),e.setTextRange(jn,Pe),jn}return e.visitEachChild(Pe,u,te)}function vr(Pe){if(M&&e.isPrivateIdentifierPropertyAccessExpression(Pe.tag)){var Ir=oe.createCallBinding(Pe.tag,ae,k),we=Ir.thisArg,hn=Ir.target;return oe.updateTaggedTemplateExpression(Pe,oe.createCallExpression(oe.createPropertyAccessExpression(e.visitNode(hn,u),"bind"),void 0,[e.visitNode(we,u,e.isExpression)]),void 0,e.visitNode(Pe.template,u,e.isTemplateLiteral))}if(h&&e.isSuperProperty(Pe.tag)&&Z&&(b==null?void 0:b.classConstructor)){var jn=oe.createFunctionBindCall(e.visitNode(Pe.tag,u,e.isExpression),b.classConstructor,[]);return e.setOriginalNode(jn,Pe),e.setTextRange(jn,Pe),oe.updateTaggedTemplateExpression(Pe,jn,void 0,e.visitNode(Pe.template,u,e.isTemplateLiteral))}return e.visitEachChild(Pe,u,te)}function kr(Pe){if(M){b&&ye.set(e.getOriginalNodeId(Pe),b),I();var Ir=Oe(Pe,function(hn){return e.visitNodes(hn,u,e.isStatement)},Pe.body.statements);Ir=oe.mergeLexicalEnvironment(Ir,E());var we=oe.createImmediatelyInvokedArrowFunction(Ir);return e.setOriginalNode(we,Pe),e.setTextRange(we,Pe),e.addEmitFlags(we,2),we}}function Ur(Pe,Ir){if(e.isDestructuringAssignment(Pe)){var we=J;J=void 0,Pe=oe.updateBinaryExpression(Pe,e.visitNode(Pe.left,U),Pe.operatorToken,e.visitNode(Pe.right,u));var hn=e.some(J)?oe.inlineExpressions(e.compact(zn(zn([],J,!0),[Pe],!1))):Pe;return J=we,hn}if(e.isAssignmentExpression(Pe)){if(M&&e.isPrivateIdentifierPropertyAccessExpression(Pe.left)){var jn=yn(Pe.left.name);if(jn)return e.setTextRange(e.setOriginalNode(Cr(jn,Pe.left.expression,Pe.right,Pe.operatorToken.kind),Pe),Pe)}else if(h&&e.isSuperProperty(Pe.left)&&Z&&b){var gn=b.classConstructor,nn=b.superClassReference,Cn=b.facts;if(Cn&1)return oe.updateBinaryExpression(Pe,ai(Pe.left),Pe.operatorToken,e.visitNode(Pe.right,u,e.isExpression));if(gn&&nn){var Dn=e.isElementAccessExpression(Pe.left)?e.visitNode(Pe.left.argumentExpression,u,e.isExpression):e.isIdentifier(Pe.left.name)?oe.createStringLiteralFromNode(Pe.left.name):void 0;if(Dn){var On=e.visitNode(Pe.right,u,e.isExpression);if(e.isCompoundAssignment(Pe.operatorToken.kind)){var Xn=Dn;e.isSimpleInlineableExpression(Dn)||(Xn=oe.createTempVariable(ae),Dn=oe.createAssignment(Xn,Dn));var Ge=oe.createReflectGetCall(nn,Xn,gn);e.setOriginalNode(Ge,Pe.left),e.setTextRange(Ge,Pe.left),On=oe.createBinaryExpression(Ge,e.getNonAssignmentOperatorForCompoundAssignment(Pe.operatorToken.kind),On),e.setTextRange(On,Pe)}var cn=Ir?void 0:oe.createTempVariable(ae);return cn&&(On=oe.createAssignment(cn,On),e.setTextRange(cn,Pe)),On=oe.createReflectSetCall(nn,Dn,On,gn),e.setOriginalNode(On,Pe),e.setTextRange(On,Pe),cn&&(On=oe.createComma(On,cn),e.setTextRange(On,Pe)),On}}}}return M&&Be(Pe)?Me(Pe):e.visitEachChild(Pe,u,te)}function Cr(Pe,Ir,we,hn){if(Ir=e.visitNode(Ir,u,e.isExpression),we=e.visitNode(we,u,e.isExpression),e.isCompoundAssignment(hn)){var jn=ln(Ir),gn=jn.readExpression,nn=jn.initializeExpression;Ir=nn||gn,we=oe.createBinaryExpression(er(Pe,gn),e.getNonAssignmentOperatorForCompoundAssignment(hn),we)}switch(e.setCommentRange(Ir,e.moveRangePos(Ir,-1)),Pe.kind){case"a":return te.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ir,Pe.brandCheckIdentifier,we,Pe.kind,Pe.setterName);case"m":return te.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ir,Pe.brandCheckIdentifier,we,Pe.kind,void 0);case"f":return te.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ir,Pe.brandCheckIdentifier,we,Pe.kind,Pe.variableName);default:e.Debug.assertNever(Pe,"Unknown private element type")}}function rn(Pe){return e.filter(Pe.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function Br(Pe){var Ir=0,we=e.getOriginalNode(Pe);e.isClassDeclaration(we)&&e.classOrConstructorParameterIsDecorated(we)&&(Ir|=1);for(var hn=0,jn=Pe.members;hn<jn.length;hn++){var gn=jn[hn];!e.isStatic(gn)||(gn.name&&(e.isPrivateIdentifier(gn.name)||e.isAutoAccessorPropertyDeclaration(gn))&&M&&(Ir|=2),(e.isPropertyDeclaration(gn)||e.isClassStaticBlockDeclaration(gn))&&(V&&gn.transformFlags&16384&&(Ir|=8,Ir&1||(Ir|=2)),h&&gn.transformFlags&134217728&&(Ir&1||(Ir|=2|4))))}return Ir}function pn(Pe){var Ir=(b==null?void 0:b.facts)||0;if(Ir&4){var we=oe.createTempVariable(ae,!0);return ue().superClassReference=we,oe.updateExpressionWithTypeArguments(Pe,oe.createAssignment(we,e.visitNode(Pe.expression,u,e.isExpression)),void 0)}return e.visitEachChild(Pe,u,te)}function ve(Pe,Ir){var we=x,hn=J;if(x=Pe,J=void 0,Ye(),M){var jn=e.getNameOfDeclaration(Pe);jn&&e.isIdentifier(jn)&&(Ke().className=jn);var gn=rn(Pe);e.some(gn)&&(Ke().weakSetName=bn("instances",gn[0].name))}var nn=Br(Pe);nn&&(ue().facts=nn),nn&8&&An();var Cn=Ir(Pe,nn);return Qe(),x=we,J=hn,Cn}function or(Pe){return ve(Pe,Ee)}function Ee(Pe,Ir){var we;if(Ir&2){var hn=oe.createTempVariable(ae,!0);ue().classConstructor=oe.cloneNode(hn),we=oe.createAssignment(hn,oe.getInternalName(Pe))}var jn=e.visitNodes(Pe.modifiers,u,e.isModifierLike),gn=e.visitNodes(Pe.heritageClauses,z,e.isHeritageClause),nn=cr(Pe),Cn=nn.members,Dn=nn.prologue,On=oe.updateClassDeclaration(Pe,jn,Pe.name,void 0,gn,Cn),Xn=[];if(Dn&&Xn.push(oe.createExpressionStatement(Dn)),Xn.push(On),we&&tr().unshift(we),e.some(J)&&Xn.push(oe.createExpressionStatement(oe.inlineExpressions(J))),me||M){var Ge=e.getStaticPropertiesAndClassStaticBlock(Pe);e.some(Ge)&&vn(Xn,Ge,oe.getInternalName(Pe))}return Xn}function ze(Pe){return ve(Pe,Ar)}function Ar(Pe,Ir){var we=!!(Ir&1),hn=e.getStaticPropertiesAndClassStaticBlock(Pe),jn=y.getNodeCheckFlags(Pe)&16777216,gn;function nn(){var qi=y.getNodeCheckFlags(Pe),Ci=qi&16777216,Tt=qi&524288;return oe.createTempVariable(Tt?m:ae,!!Ci)}Ir&2&&(gn=nn(),ue().classConstructor=oe.cloneNode(gn));var Cn=e.visitNodes(Pe.modifiers,u,e.isModifierLike),Dn=e.visitNodes(Pe.heritageClauses,z,e.isHeritageClause),On=cr(Pe),Xn=On.members,Ge=On.prologue,cn=oe.updateClassExpression(Pe,Cn,Pe.name,void 0,Dn,Xn),Vn=[];Ge&&Vn.push(Ge);var Ki=M&&e.some(hn,function(qi){return e.isClassStaticBlockDeclaration(qi)||e.isPrivateIdentifierClassElementDeclaration(qi)||X&&e.isInitializedProperty(qi)});if(Ki||e.some(J))if(we)e.Debug.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),q&&J&&e.some(J)&&q.push(oe.createExpressionStatement(oe.inlineExpressions(J))),q&&e.some(hn)&&vn(q,hn,oe.getInternalName(Pe)),gn?Vn.push(e.startOnNewLine(oe.createAssignment(gn,cn)),e.startOnNewLine(gn)):(Vn.push(cn),Ge&&e.startOnNewLine(cn));else{if(gn||(gn=nn()),jn){xn();var dt=oe.cloneNode(gn);dt.autoGenerateFlags&=~8,N[e.getOriginalNodeId(Pe)]=dt}e.setEmitFlags(cn,65536|e.getEmitFlags(cn)),Vn.push(e.startOnNewLine(oe.createAssignment(gn,cn))),e.addRange(Vn,e.map(J,e.startOnNewLine)),e.addRange(Vn,We(hn,gn)),Vn.push(e.startOnNewLine(gn))}else Vn.push(cn),Ge&&e.startOnNewLine(cn);return oe.inlineExpressions(Vn)}function xe(Pe){if(!M)return e.visitEachChild(Pe,u,te)}function cr(Pe){if(M){for(var Ir=0,we=Pe.members;Ir<we.length;Ir++){var hn=we[Ir];e.isPrivateIdentifierClassElementDeclaration(hn)&&Wn(hn,hn.name,hr)}if(e.some(rn(Pe))&&Mr(),H)for(var jn=0,gn=Pe.members;jn<gn.length;jn++){var hn=gn[jn];if(e.isAutoAccessorPropertyDeclaration(hn)){var nn=oe.getGeneratedPrivateNameForNode(hn.name,void 0,"_accessor_storage");Wn(hn,nn,_r)}}}var Cn=e.visitNodes(Pe.members,ge,e.isClassElement),Dn;e.some(Cn,e.isConstructorDeclaration)||(Dn=Qr(void 0,Pe));var On,Xn;if(!M&&e.some(J)){var Ge=oe.createExpressionStatement(oe.inlineExpressions(J));if(Ge.transformFlags&134234112){var cn=oe.createTempVariable(ae),Vn=oe.createArrowFunction(void 0,void 0,[],void 0,void 0,oe.createBlock([Ge]));On=oe.createAssignment(cn,Vn),Ge=oe.createExpressionStatement(oe.createCallExpression(cn,void 0,[]))}var Ki=oe.createBlock([Ge]);Xn=oe.createClassStaticBlockDeclaration(Ki),J=void 0}if(Dn||Xn){var dt=void 0;dt=e.append(dt,Dn),dt=e.append(dt,Xn),dt=e.addRange(dt,Cn),Cn=e.setTextRange(oe.createNodeArray(dt),Pe.members)}return{members:Cn,prologue:On}}function Mr(){var Pe=Ke().weakSetName;e.Debug.assert(Pe,"weakSetName should be set in private identifier environment"),tr().push(oe.createAssignment(Pe,oe.createNewExpression(oe.createIdentifier("WeakSet"),void 0,[])))}function Rr(Pe){return e.isStatic(Pe)||e.hasAbstractModifier(e.getOriginalNode(Pe))?!1:De&&e.isPropertyDeclaration(Pe)||me&&e.isInitializedProperty(Pe)||M&&e.isPrivateIdentifierClassElementDeclaration(Pe)||M&&H&&e.isAutoAccessorPropertyDeclaration(Pe)}function Qr(Pe,Ir){if(Pe=e.visitNode(Pe,u,e.isConstructorDeclaration),!e.some(Ir.members,Rr))return Pe;var we=e.getEffectiveBaseTypeNode(Ir),hn=!!(we&&e.skipOuterExpressions(we.expression).kind!==104),jn=e.visitParameterList(Pe?Pe.parameters:void 0,u,te),gn=en(Ir,Pe,hn);return gn?Pe?(e.Debug.assert(jn),oe.updateConstructorDeclaration(Pe,void 0,jn,gn)):e.startOnNewLine(e.setOriginalNode(e.setTextRange(oe.createConstructorDeclaration(void 0,jn!=null?jn:[],gn),Pe||Ir),Pe)):Pe}function en(Pe,Ir,we){var hn,jn,gn=e.getProperties(Pe,!1,!1);C||(gn=e.filter(gn,function(Va){return!!Va.initializer||e.isPrivateIdentifier(Va.name)||e.hasAccessorModifier(Va)}));var nn=rn(Pe),Cn=e.some(gn)||e.some(nn);if(!Ir&&!Cn)return e.visitFunctionBody(void 0,u,te);f();var Dn=!Ir&&we,On=0,Xn=0,Ge=-1,cn=[];((hn=Ir==null?void 0:Ir.body)===null||hn===void 0?void 0:hn.statements)&&(Xn=oe.copyPrologue(Ir.body.statements,cn,!1,u),Ge=e.findSuperStatementIndex(Ir.body.statements,Xn),Ge>=0?(On=Ge+1,cn=zn(zn(zn([],cn.slice(0,Xn),!0),e.visitNodes(Ir.body.statements,u,e.isStatement,Xn,On-Xn),!0),cn.slice(Xn),!0)):Xn>=0&&(On=Xn)),Dn&&cn.push(oe.createExpressionStatement(oe.createCallExpression(oe.createSuper(),void 0,[oe.createSpreadElement(oe.createIdentifier("arguments"))])));var Vn=0;if(Ir==null?void 0:Ir.body)if(C)cn=cn.filter(function(Va){return!e.isParameterPropertyDeclaration(e.getOriginalNode(Va),Ir)});else{for(var Ki=0,dt=Ir.body.statements;Ki<dt.length;Ki++){var qi=dt[Ki];e.isParameterPropertyDeclaration(e.getOriginalNode(qi),Ir)&&Vn++}if(Vn>0){var Ci=e.visitNodes(Ir.body.statements,u,e.isStatement,On,Vn);if(Ge>=0)e.addRange(cn,Ci);else{var Tt=Xn;Dn&&Tt++,cn=zn(zn(zn([],cn.slice(0,Tt),!0),Ci,!0),cn.slice(Tt),!0)}On+=Vn}}var ot=oe.createThis();if(Qn(cn,nn,ot),vn(cn,gn,ot),Ir&&e.addRange(cn,e.visitNodes(Ir.body.statements,ni,e.isStatement,On)),cn=oe.mergeLexicalEnvironment(cn,E()),cn.length===0&&!Ir)return;var Zi=(Ir==null?void 0:Ir.body)&&Ir.body.statements.length>=cn.length&&(jn=Ir.body.multiLine)!==null&&jn!==void 0?jn:cn.length>0;return e.setTextRange(oe.createBlock(e.setTextRange(oe.createNodeArray(cn),Ir?Ir.body.statements:Pe.members),Zi),Ir?Ir.body:void 0);function ni(Va){if(!(C&&e.isParameterPropertyDeclaration(e.getOriginalNode(Va),Ir)))return u(Va)}}function vn(Pe,Ir,we){for(var hn=0,jn=Ir;hn<jn.length;hn++){var gn=jn[hn];if(!(e.isStatic(gn)&&!M&&!C)){var nn=Ie(gn,we);!nn||Pe.push(nn)}}}function Ie(Pe,Ir){var we=e.isClassStaticBlockDeclaration(Pe)?kr(Pe):xr(Pe,Ir);if(!!we){var hn=oe.createExpressionStatement(we);return e.setOriginalNode(hn,Pe),e.addEmitFlags(hn,e.getEmitFlags(Pe)&1536),e.setSourceMapRange(hn,e.moveRangePastModifiers(Pe)),e.setCommentRange(hn,Pe),e.setSyntheticLeadingComments(we,void 0),e.setSyntheticTrailingComments(we,void 0),hn}}function We(Pe,Ir){for(var we=[],hn=0,jn=Pe;hn<jn.length;hn++){var gn=jn[hn],nn=e.isClassStaticBlockDeclaration(gn)?kr(gn):xr(gn,Ir);!nn||(e.startOnNewLine(nn),e.setOriginalNode(nn,gn),e.addEmitFlags(nn,e.getEmitFlags(gn)&1536),e.setSourceMapRange(nn,e.moveRangePastModifiers(gn)),e.setCommentRange(nn,gn),we.push(nn))}return we}function xr(Pe,Ir){var we=Z,hn=Lr(Pe,Ir);return hn&&e.hasStaticModifier(Pe)&&(b==null?void 0:b.facts)&&(e.setOriginalNode(hn,Pe),e.addEmitFlags(hn,2),ye.set(e.getOriginalNodeId(hn),b)),Z=we,hn}function Lr(Pe,Ir){var we,hn=!C,jn=e.hasAccessorModifier(Pe)?oe.getGeneratedPrivateNameForNode(Pe.name):e.isComputedPropertyName(Pe.name)&&!e.isSimpleInlineableExpression(Pe.name.expression)?oe.updateComputedPropertyName(Pe.name,oe.getGeneratedNameForNode(Pe.name)):Pe.name;if(e.hasStaticModifier(Pe)&&(Z=Pe),M&&e.isPrivateIdentifier(jn)){var gn=yn(jn);if(gn)return gn.kind==="f"?gn.isStatic?O(gn.variableName,e.visitNode(Pe.initializer,u,e.isExpression)):ie(Ir,e.visitNode(Pe.initializer,u,e.isExpression),gn.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(jn)||e.hasStaticModifier(Pe))&&!Pe.initializer)){var nn=e.getOriginalNode(Pe);if(!e.hasSyntacticModifier(nn,256)){var Cn=Pe.initializer||hn?(we=e.visitNode(Pe.initializer,u,e.isExpression))!==null&&we!==void 0?we:oe.createVoidZero():e.isParameterPropertyDeclaration(nn,nn.parent)&&e.isIdentifier(jn)?jn:oe.createVoidZero();if(hn||e.isPrivateIdentifier(jn)){var Dn=e.createMemberAccessForPropertyName(oe,Ir,jn,jn);return oe.createAssignment(Dn,Cn)}else{var On=e.isComputedPropertyName(jn)?jn.expression:e.isIdentifier(jn)?oe.createStringLiteral(e.unescapeLeadingUnderscores(jn.escapedText)):jn,Xn=oe.createPropertyDescriptor({value:Cn,configurable:!0,writable:!0,enumerable:!0});return oe.createObjectDefinePropertyCall(Ir,On,Xn)}}}}function xn(){(P&1)==0&&(P|=1,te.enableSubstitution(79),N=[])}function An(){(P&2)==0&&(P|=2,te.enableSubstitution(108),te.enableEmitNotification(259),te.enableEmitNotification(215),te.enableEmitNotification(173),te.enableEmitNotification(174),te.enableEmitNotification(175),te.enableEmitNotification(171),te.enableEmitNotification(169),te.enableEmitNotification(164))}function Qn(Pe,Ir,we){if(!(!M||!e.some(Ir))){var hn=Ke().weakSetName;e.Debug.assert(hn,"weakSetName should be set in private identifier environment"),Pe.push(oe.createExpressionStatement(_e(we,hn)))}}function ai(Pe){return e.isPropertyAccessExpression(Pe)?oe.updatePropertyAccessExpression(Pe,oe.createVoidZero(),Pe.name):oe.updateElementAccessExpression(Pe,oe.createVoidZero(),e.visitNode(Pe.argumentExpression,u,e.isExpression))}function Dr(Pe,Ir,we){var hn=e.getOriginalNode(Ir);if(hn.id){var jn=ye.get(hn.id);if(jn){var gn=b,nn=T;b=jn,T=jn,L(Pe,Ir,we),b=gn,T=nn;return}}switch(Ir.kind){case 215:if(e.isArrowFunction(hn)||e.getEmitFlags(Ir)&262144)break;case 259:case 173:{var gn=b,nn=T;b=void 0,T=void 0,L(Pe,Ir,we),b=gn,T=nn;return}case 174:case 175:case 171:case 169:{var gn=b,nn=T;T=b,b=void 0,L(Pe,Ir,we),b=gn,T=nn;return}case 164:{var gn=b,nn=T;b=T,T=void 0,L(Pe,Ir,we),b=gn,T=nn;return}}L(Pe,Ir,we)}function Pr(Pe,Ir){return Ir=$(Pe,Ir),Pe===1?jr(Ir):Ir}function jr(Pe){switch(Pe.kind){case 79:return je(Pe);case 108:return on(Pe)}return Pe}function on(Pe){if(P&2&&b){var Ir=b.facts,we=b.classConstructor;if(Ir&1)return oe.createParenthesizedExpression(oe.createVoidZero());if(we)return e.setTextRange(e.setOriginalNode(oe.cloneNode(we),Pe),Pe)}return Pe}function je(Pe){return Sr(Pe)||Pe}function Sr(Pe){if(P&1&&y.getNodeCheckFlags(Pe)&33554432){var Ir=y.getReferencedValueDeclaration(Pe);if(Ir){var we=N[Ir.id];if(we){var hn=oe.cloneNode(we);return e.setSourceMapRange(hn,Pe),e.setCommentRange(hn,Pe),hn}}}}function Te(Pe,Ir){if(e.isComputedPropertyName(Pe)){var we=e.visitNode(Pe.expression,u,e.isExpression),hn=e.skipPartiallyEmittedExpressions(we),jn=e.isSimpleInlineableExpression(hn),gn=e.isAssignmentExpression(hn)&&e.isGeneratedIdentifier(hn.left);if(!gn&&!jn&&Ir){var nn=oe.getGeneratedNameForNode(Pe);return y.getNodeCheckFlags(Pe)&524288?m(nn):ae(nn),oe.createAssignment(nn,we)}return jn||e.isIdentifier(hn)?void 0:we}}function Ye(){G.push(b),b=void 0}function Qe(){b=G.pop()}function ue(){return b||(b={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Ke(){var Pe=ue();return Pe.privateIdentifierEnvironment||(Pe.privateIdentifierEnvironment={className:void 0,weakSetName:void 0,identifiers:void 0,generatedIdentifiers:void 0}),Pe.privateIdentifierEnvironment}function tr(){return J!=null?J:J=[]}function hr(Pe,Ir,we,hn,jn,gn,nn){e.isAutoAccessorPropertyDeclaration(Pe)?Vr(Pe,Ir,we,hn,jn,gn,nn):e.isPropertyDeclaration(Pe)?_r(Pe,Ir,we,hn,jn,gn,nn):e.isMethodDeclaration(Pe)?Or(Pe,Ir,we,hn,jn,gn,nn):e.isGetAccessorDeclaration(Pe)?zr(Pe,Ir,we,hn,jn,gn,nn):e.isSetAccessorDeclaration(Pe)&&fn(Pe,Ir,we,hn,jn,gn,nn)}function _r(Pe,Ir,we,hn,jn,gn,nn){if(jn){e.Debug.assert(we.classConstructor,"classConstructor should be set in private identifier environment");var Cn=qn(Ir);D(hn,Ir,{kind:"f",brandCheckIdentifier:we.classConstructor,variableName:Cn,isStatic:!0,isValid:gn})}else{var Dn=qn(Ir);D(hn,Ir,{kind:"f",brandCheckIdentifier:Dn,variableName:void 0,isStatic:!1,isValid:gn}),tr().push(oe.createAssignment(Dn,oe.createNewExpression(oe.createIdentifier("WeakMap"),void 0,[])))}}function Or(Pe,Ir,we,hn,jn,gn,nn){var Cn=qn(Ir),Dn=jn?e.Debug.checkDefined(we.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(hn.weakSetName,"weakSetName should be set in private identifier environment");D(hn,Ir,{kind:"m",methodName:Cn,brandCheckIdentifier:Dn,isStatic:jn,isValid:gn})}function zr(Pe,Ir,we,hn,jn,gn,nn){var Cn=qn(Ir,"_get"),Dn=jn?e.Debug.checkDefined(we.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(hn.weakSetName,"weakSetName should be set in private identifier environment");(nn==null?void 0:nn.kind)==="a"&&nn.isStatic===jn&&!nn.getterName?nn.getterName=Cn:D(hn,Ir,{kind:"a",getterName:Cn,setterName:void 0,brandCheckIdentifier:Dn,isStatic:jn,isValid:gn})}function fn(Pe,Ir,we,hn,jn,gn,nn){var Cn=qn(Ir,"_set"),Dn=jn?e.Debug.checkDefined(we.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(hn.weakSetName,"weakSetName should be set in private identifier environment");(nn==null?void 0:nn.kind)==="a"&&nn.isStatic===jn&&!nn.setterName?nn.setterName=Cn:D(hn,Ir,{kind:"a",getterName:void 0,setterName:Cn,brandCheckIdentifier:Dn,isStatic:jn,isValid:gn})}function Vr(Pe,Ir,we,hn,jn,gn,nn){var Cn=qn(Ir,"_get"),Dn=qn(Ir,"_set"),On=jn?e.Debug.checkDefined(we.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(hn.weakSetName,"weakSetName should be set in private identifier environment");D(hn,Ir,{kind:"a",getterName:Cn,setterName:Dn,brandCheckIdentifier:On,isStatic:jn,isValid:gn})}function Wn(Pe,Ir,we){var hn=ue(),jn=Ke(),gn=p(jn,Ir),nn=e.hasStaticModifier(Pe),Cn=!Q(Ir)&&gn===void 0;we(Pe,Ir,hn,jn,nn,Cn,gn)}function bn(Pe,Ir,we){var hn=Ke().className,jn=hn?{prefix:"_",node:hn,suffix:"_"}:"_",gn=typeof Pe=="object"?oe.getGeneratedNameForNode(Pe,16|8,jn,we):typeof Pe=="string"?oe.createUniqueName(Pe,16,jn,we):oe.createTempVariable(void 0,!0,jn,we);return y.getNodeCheckFlags(Ir)&524288?m(gn):ae(gn),gn}function qn(Pe,Ir){var we,hn=e.tryGetTextOfPropertyName(Pe);return bn((we=hn==null?void 0:hn.substring(1))!==null&&we!==void 0?we:Pe,Pe,Ir)}function yn(Pe){return e.isGeneratedPrivateIdentifier(Pe)?Ai(Pe):Hn(Pe.escapedText)}function Hn(Pe){return ti(le,Pe)}function Ai(Pe){return ti(de,e.getNodeForGeneratedName(Pe))}function ti(Pe,Ir){if(b==null?void 0:b.privateIdentifierEnvironment){var we=Pe(b.privateIdentifierEnvironment,Ir);if(we)return we}for(var hn=G.length-1;hn>=0;--hn){var jn=G[hn];if(!!jn&&jn.privateIdentifierEnvironment){var we=Pe(jn.privateIdentifierEnvironment,Ir);if(we)return we}}}function Hi(Pe){var Ir=oe.getGeneratedNameForNode(Pe),we=yn(Pe.name);if(!we)return e.visitEachChild(Pe,u,te);var hn=Pe.expression;return(e.isThisProperty(Pe)||e.isSuperProperty(Pe)||!e.isSimpleCopiableExpression(Pe.expression))&&(hn=oe.createTempVariable(ae,!0),tr().push(oe.createBinaryExpression(hn,63,e.visitNode(Pe.expression,u,e.isExpression)))),oe.createAssignmentTargetWrapper(Ir,Cr(we,hn,Ir,63))}function Ni(Pe){var Ir=e.getTargetOfBindingOrAssignmentElement(Pe);if(Ir){var we=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(Ir))we=Hi(Ir);else if(h&&e.isSuperProperty(Ir)&&Z&&b){var hn=b.classConstructor,jn=b.superClassReference,gn=b.facts;if(gn&1)we=ai(Ir);else if(hn&&jn){var nn=e.isElementAccessExpression(Ir)?e.visitNode(Ir.argumentExpression,u,e.isExpression):e.isIdentifier(Ir.name)?oe.createStringLiteralFromNode(Ir.name):void 0;if(nn){var Cn=oe.createTempVariable(void 0);we=oe.createAssignmentTargetWrapper(Cn,oe.createReflectSetCall(jn,nn,Cn,hn))}}}if(we)return e.isAssignmentExpression(Pe)?oe.updateBinaryExpression(Pe,we,Pe.operatorToken,e.visitNode(Pe.right,u,e.isExpression)):e.isSpreadElement(Pe)?oe.updateSpreadElement(Pe,we):we}return e.visitNode(Pe,U)}function gi(Pe){if(e.isObjectBindingOrAssignmentElement(Pe)&&!e.isShorthandPropertyAssignment(Pe)){var Ir=e.getTargetOfBindingOrAssignmentElement(Pe),we=void 0;if(Ir){if(e.isPrivateIdentifierPropertyAccessExpression(Ir))we=Hi(Ir);else if(h&&e.isSuperProperty(Ir)&&Z&&b){var hn=b.classConstructor,jn=b.superClassReference,gn=b.facts;if(gn&1)we=ai(Ir);else if(hn&&jn){var nn=e.isElementAccessExpression(Ir)?e.visitNode(Ir.argumentExpression,u,e.isExpression):e.isIdentifier(Ir.name)?oe.createStringLiteralFromNode(Ir.name):void 0;if(nn){var Cn=oe.createTempVariable(void 0);we=oe.createAssignmentTargetWrapper(Cn,oe.createReflectSetCall(jn,nn,Cn,hn))}}}}if(e.isPropertyAssignment(Pe)){var Dn=e.getInitializerOfBindingOrAssignmentElement(Pe);return oe.updatePropertyAssignment(Pe,e.visitNode(Pe.name,u,e.isPropertyName),we?Dn?oe.createAssignment(we,e.visitNode(Dn,u)):we:e.visitNode(Pe.initializer,U,e.isExpression))}if(e.isSpreadAssignment(Pe))return oe.updateSpreadAssignment(Pe,we||e.visitNode(Pe.expression,U,e.isExpression));e.Debug.assert(we===void 0,"Should not have generated a wrapped target")}return e.visitNode(Pe,u)}function Pn(Pe){return e.isArrayLiteralExpression(Pe)?oe.updateArrayLiteralExpression(Pe,e.visitNodes(Pe.elements,Ni,e.isExpression)):oe.updateObjectLiteralExpression(Pe,e.visitNodes(Pe.properties,gi,e.isObjectLiteralElementLike))}}e.transformClassFields=se;function O(te,oe){return e.factory.createAssignment(te,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",oe||e.factory.createVoidZero())]))}function ie(te,oe,ae){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(ae,"set"),void 0,[te,oe||e.factory.createVoidZero()])}function _e(te,oe){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(oe,"add"),void 0,[te])}function Q(te){return!e.isGeneratedPrivateIdentifier(te)&&te.escapedText==="#constructor"}function p(te,oe){return e.isGeneratedPrivateIdentifier(oe)?de(te,e.getNodeForGeneratedName(oe)):le(te,oe.escapedText)}function D(te,oe,ae){var E,I;e.isGeneratedPrivateIdentifier(oe)?((E=te.generatedIdentifiers)!==null&&E!==void 0||(te.generatedIdentifiers=new e.Map),te.generatedIdentifiers.set(e.getNodeForGeneratedName(oe),ae)):((I=te.identifiers)!==null&&I!==void 0||(te.identifiers=new e.Map),te.identifiers.set(oe.escapedText,ae))}function le(te,oe){var ae;return(ae=te.identifiers)===null||ae===void 0?void 0:ae.get(oe)}function de(te,oe){var ae;return(ae=te.generatedIdentifiers)===null||ae===void 0?void 0:ae.get(oe)}})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.hoistVariableDeclaration,se=ne.getEmitResolver(),O=ne.getCompilerOptions(),ie=e.getEmitScriptTarget(O),_e=e.getStrictOptionValue(O,"strictNullChecks"),Q,p;return{serializeTypeNode:function(M,H){return D(M,E,H)},serializeTypeOfNode:function(M,H){return D(M,de,H)},serializeParameterTypesOfNode:function(M,H,V){return D(M,te,H,V)},serializeReturnTypeOfNode:function(M,H){return D(M,ae,H)}};function D(M,H,V,h){var F=Q,$=p;Q=M.currentLexicalScope,p=M.currentNameScope;var L=h===void 0?H(V):H(V,h);return Q=F,p=$,L}function le(M){var H=se.getAllAccessorDeclarations(M);return H.setAccessor&&e.getSetAccessorTypeAnnotationNode(H.setAccessor)||H.getAccessor&&e.getEffectiveReturnTypeNode(H.getAccessor)}function de(M){switch(M.kind){case 169:case 166:return E(M.type);case 175:case 174:return E(le(M));case 260:case 228:case 171:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function te(M,H){var V=e.isClassLike(M)?e.getFirstConstructorWithBody(M):e.isFunctionLike(M)&&e.nodeIsPresent(M.body)?M:void 0,h=[];if(V)for(var F=oe(V,H),$=F.length,L=0;L<$;L++){var P=F[L];L===0&&e.isIdentifier(P.name)&&P.name.escapedText==="this"||(P.dotDotDotToken?h.push(E(e.getRestParameterElementType(P.type))):h.push(de(P)))}return e.factory.createArrayLiteralExpression(h)}function oe(M,H){if(H&&M.kind===174){var V=e.getAllAccessorDeclarations(H.members,M).setAccessor;if(V)return V.parameters}return M.parameters}function ae(M){return e.isFunctionLike(M)&&M.type?E(M.type):e.isAsyncFunction(M)?e.factory.createIdentifier("Promise"):e.factory.createVoidZero()}function E(M){if(M===void 0)return e.factory.createIdentifier("Object");switch(M=e.skipTypeParentheses(M),M.kind){case 114:case 155:case 144:return e.factory.createVoidZero();case 181:case 182:return e.factory.createIdentifier("Function");case 185:case 186:return e.factory.createIdentifier("Array");case 179:return M.assertsModifier?e.factory.createVoidZero():e.factory.createIdentifier("Boolean");case 134:return e.factory.createIdentifier("Boolean");case 200:case 152:return e.factory.createIdentifier("String");case 149:return e.factory.createIdentifier("Object");case 198:return I(M.literal);case 148:return e.factory.createIdentifier("Number");case 160:return X("BigInt",7);case 153:return X("Symbol",2);case 180:return y(M);case 190:return f(M.types,!0);case 189:return f(M.types,!1);case 191:return f([M.trueType,M.falseType],!1);case 195:if(M.operator===146)return E(M.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return E(M.type);default:return e.Debug.failBadSyntaxKind(M)}return e.factory.createIdentifier("Object")}function I(M){switch(M.kind){case 10:case 14:return e.factory.createIdentifier("String");case 221:{var H=M.operand;switch(H.kind){case 8:case 9:return I(H);default:return e.Debug.failBadSyntaxKind(H)}}case 8:return e.factory.createIdentifier("Number");case 9:return X("BigInt",7);case 110:case 95:return e.factory.createIdentifier("Boolean");case 104:return e.factory.createVoidZero();default:return e.Debug.failBadSyntaxKind(M)}}function f(M,H){for(var V,h=0,F=M;h<F.length;h++){var $=F[h];if($=e.skipTypeParentheses($),$.kind===144){if(H)return e.factory.createVoidZero();continue}if($.kind===157){if(!H)return e.factory.createIdentifier("Object");continue}if($.kind===131)return e.factory.createIdentifier("Object");if(!(!_e&&(e.isLiteralTypeNode($)&&$.literal.kind===104||$.kind===155))){var L=E($);if(e.isIdentifier(L)&&L.escapedText==="Object")return L;if(V){if(!m(V,L))return e.factory.createIdentifier("Object")}else V=L}}return V!=null?V:e.factory.createVoidZero()}function m(M,H){return e.isGeneratedIdentifier(M)?e.isGeneratedIdentifier(H):e.isIdentifier(M)?e.isIdentifier(H)&&M.escapedText===H.escapedText:e.isPropertyAccessExpression(M)?e.isPropertyAccessExpression(H)&&m(M.expression,H.expression)&&m(M.name,H.name):e.isVoidExpression(M)?e.isVoidExpression(H)&&e.isNumericLiteral(M.expression)&&M.expression.text==="0"&&e.isNumericLiteral(H.expression)&&H.expression.text==="0":e.isStringLiteral(M)?e.isStringLiteral(H)&&M.text===H.text:e.isTypeOfExpression(M)?e.isTypeOfExpression(H)&&m(M.expression,H.expression):e.isParenthesizedExpression(M)?e.isParenthesizedExpression(H)&&m(M.expression,H.expression):e.isConditionalExpression(M)?e.isConditionalExpression(H)&&m(M.condition,H.condition)&&m(M.whenTrue,H.whenTrue)&&m(M.whenFalse,H.whenFalse):e.isBinaryExpression(M)?e.isBinaryExpression(H)&&M.operatorToken.kind===H.operatorToken.kind&&m(M.left,H.left)&&m(M.right,H.right):!1}function y(M){var H=se.getTypeReferenceSerializationKind(M.typeName,p!=null?p:Q);switch(H){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(M,function(F){return F.parent&&e.isConditionalTypeNode(F.parent)&&(F.parent.trueType===F||F.parent.falseType===F)}))return e.factory.createIdentifier("Object");var V=k(M.typeName),h=e.factory.createTempVariable(K);return e.factory.createConditionalExpression(e.factory.createTypeCheck(e.factory.createAssignment(h,V),"function"),void 0,h,void 0,e.factory.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return C(M.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.factory.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return X("BigInt",7);case e.TypeReferenceSerializationKind.BooleanType:return e.factory.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.factory.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.factory.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.factory.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return X("Symbol",2);case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.factory.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.factory.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.factory.createIdentifier("Object");default:return e.Debug.assertNever(H)}}function S(M,H){return e.factory.createLogicalAnd(e.factory.createStrictInequality(e.factory.createTypeOfExpression(M),e.factory.createStringLiteral("undefined")),H)}function k(M){if(M.kind===79){var H=C(M);return S(H,H)}if(M.left.kind===79)return S(C(M.left),C(M));var V=k(M.left),h=e.factory.createTempVariable(K);return e.factory.createLogicalAnd(e.factory.createLogicalAnd(V.left,e.factory.createStrictInequality(e.factory.createAssignment(h,V.right),e.factory.createVoidZero())),e.factory.createPropertyAccessExpression(h,M.right))}function C(M){switch(M.kind){case 79:var H=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(M),M),M.parent);return H.original=void 0,e.setParent(H,e.getParseTreeNode(Q)),H;case 163:return me(M)}}function me(M){return e.factory.createPropertyAccessExpression(C(M.left),M.right)}function De(M){return e.factory.createConditionalExpression(e.factory.createTypeCheck(e.factory.createIdentifier(M),"function"),void 0,e.factory.createIdentifier(M),void 0,e.factory.createIdentifier("Object"))}function X(M,H){return ie<H?De(M):e.factory.createIdentifier(M)}}e.createRuntimeTypeSerializer=o})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory,se=ne.getEmitHelperFactory,O=ne.hoistVariableDeclaration,ie=ne.getEmitResolver(),_e=ne.getCompilerOptions(),Q=e.getEmitScriptTarget(_e),p=ne.onSubstituteNode;ne.onSubstituteNode=B;var D;return e.chainBundle(ne,le);function le(z){var U=e.visitEachChild(z,te,ne);return e.addEmitHelpers(U,ne.readEmitHelpers()),U}function de(z){return e.isDecorator(z)?void 0:z}function te(z){if(!(z.transformFlags&33554432))return z;switch(z.kind){case 167:return;case 260:return oe(z);case 228:return S(z);case 173:return k(z);case 171:return me(z);case 175:return X(z);case 174:return De(z);case 169:return M(z);case 166:return H(z);default:return e.visitEachChild(z,te,ne)}}function oe(z){if(!(e.classOrConstructorParameterIsDecorated(z)||e.childIsDecorated(z)))return e.visitEachChild(z,te,ne);var U=e.hasDecorators(z)?y(z,z.name):m(z,z.name);return U.length>1&&(U.push(K.createEndOfDeclarationMarker(z)),e.setEmitFlags(U[0],e.getEmitFlags(U[0])|4194304)),e.singleOrMany(U)}function ae(z){return!!(z.transformFlags&536870912)}function E(z){return e.some(z,ae)}function I(z){for(var U=0,ge=z.members;U<ge.length;U++){var pe=ge[U];if(!!e.canHaveDecorators(pe)){var He=e.getAllDecoratorsOfClassElement(pe,z);if(e.some(He==null?void 0:He.decorators,ae)||e.some(He==null?void 0:He.parameters,E))return!0}}return!1}function f(z,U){var ge=[];return h(ge,z,!1),h(ge,z,!0),I(z)&&(U=e.setTextRange(K.createNodeArray(zn(zn([],U,!0),[K.createClassStaticBlockDeclaration(K.createBlock(ge,!0))],!1)),U),ge=void 0),{decorationStatements:ge,members:U}}function m(z,U){var ge,pe=e.visitNodes(z.modifiers,de,e.isModifier),He=e.visitNodes(z.heritageClauses,te,e.isHeritageClause),Be=e.visitNodes(z.members,te,e.isClassElement),Me=[];ge=f(z,Be),Be=ge.members,Me=ge.decorationStatements;var Le=K.updateClassDeclaration(z,pe,U,void 0,He,Be);return e.addRange([Le],Me)}function y(z,U){var ge,pe=e.moveRangePastModifiers(z),He=x(z),Be=Q<=2?K.getInternalName(z,!1,!0):K.getLocalName(z,!1,!0),Me=e.visitNodes(z.heritageClauses,te,e.isHeritageClause),Le=e.visitNodes(z.members,te,e.isClassElement),Ae=[];ge=f(z,Le),Le=ge.members,Ae=ge.decorationStatements;var Xe=K.createClassExpression(void 0,U,void 0,Me,Le);e.setOriginalNode(Xe,z),e.setTextRange(Xe,pe);var Ne=K.createVariableStatement(void 0,K.createVariableDeclarationList([K.createVariableDeclaration(Be,void 0,void 0,He?K.createAssignment(He,Xe):Xe)],1));e.setOriginalNode(Ne,z),e.setTextRange(Ne,pe),e.setCommentRange(Ne,z);var Oe=[Ne];return e.addRange(Oe,Ae),N(Oe,z),Oe}function S(z){return K.updateClassExpression(z,e.visitNodes(z.modifiers,de,e.isModifier),z.name,void 0,e.visitNodes(z.heritageClauses,te,e.isHeritageClause),e.visitNodes(z.members,te,e.isClassElement))}function k(z){return K.updateConstructorDeclaration(z,e.visitNodes(z.modifiers,de,e.isModifier),e.visitNodes(z.parameters,te,e.isParameterDeclaration),e.visitNode(z.body,te,e.isBlock))}function C(z,U){return z!==U&&(e.setCommentRange(z,U),e.setSourceMapRange(z,e.moveRangePastModifiers(U))),z}function me(z){return C(K.updateMethodDeclaration(z,e.visitNodes(z.modifiers,de,e.isModifier),z.asteriskToken,e.visitNode(z.name,te,e.isPropertyName),void 0,void 0,e.visitNodes(z.parameters,te,e.isParameterDeclaration),void 0,e.visitNode(z.body,te,e.isBlock)),z)}function De(z){return C(K.updateGetAccessorDeclaration(z,e.visitNodes(z.modifiers,de,e.isModifier),e.visitNode(z.name,te,e.isPropertyName),e.visitNodes(z.parameters,te,e.isParameterDeclaration),void 0,e.visitNode(z.body,te,e.isBlock)),z)}function X(z){return C(K.updateSetAccessorDeclaration(z,e.visitNodes(z.modifiers,de,e.isModifier),e.visitNode(z.name,te,e.isPropertyName),e.visitNodes(z.parameters,te,e.isParameterDeclaration),e.visitNode(z.body,te,e.isBlock)),z)}function M(z){if(!(z.flags&16777216||e.hasSyntacticModifier(z,2)))return C(K.updatePropertyDeclaration(z,e.visitNodes(z.modifiers,de,e.isModifier),e.visitNode(z.name,te,e.isPropertyName),void 0,void 0,e.visitNode(z.initializer,te,e.isExpression)),z)}function H(z){var U=K.updateParameterDeclaration(z,e.elideNodes(K,z.modifiers),z.dotDotDotToken,e.visitNode(z.name,te,e.isBindingName),void 0,void 0,e.visitNode(z.initializer,te,e.isExpression));return U!==z&&(e.setCommentRange(U,z),e.setTextRange(U,e.moveRangePastModifiers(z)),e.setSourceMapRange(U,e.moveRangePastModifiers(z)),e.setEmitFlags(U.name,32)),U}function V(z){if(!!z){var U=[];return e.addRange(U,e.map(z.decorators,q)),e.addRange(U,e.flatMap(z.parameters,G)),U}}function h(z,U,ge){e.addRange(z,e.map(L(U,ge),function(pe){return K.createExpressionStatement(pe)}))}function F(z,U,ge){return e.nodeOrChildIsDecorated(z,ge)&&U===e.isStatic(z)}function $(z,U){return e.filter(z.members,function(ge){return F(ge,U,z)})}function L(z,U){for(var ge=$(z,U),pe,He=0,Be=ge;He<Be.length;He++){var Me=Be[He];pe=e.append(pe,P(z,Me))}return pe}function P(z,U){var ge=e.getAllDecoratorsOfClassElement(U,z),pe=V(ge);if(!!pe){var He=Z(z,U),Be=ye(U,!e.hasSyntacticModifier(U,2)),Me=Q>0?e.isPropertyDeclaration(U)&&!e.hasAccessorModifier(U)?K.createVoidZero():K.createNull():void 0,Le=se().createDecorateHelper(pe,He,Be,Me);return e.setEmitFlags(Le,1536),e.setSourceMapRange(Le,e.moveRangePastModifiers(U)),Le}}function N(z,U){var ge=J(U);ge&&z.push(e.setOriginalNode(K.createExpressionStatement(ge),U))}function J(z){var U=e.getAllDecoratorsOfClass(z),ge=V(U);if(!!ge){var pe=D&&D[e.getOriginalNodeId(z)],He=Q<=2?K.getInternalName(z,!1,!0):K.getLocalName(z,!1,!0),Be=se().createDecorateHelper(ge,He),Me=K.createAssignment(He,pe?K.createAssignment(pe,Be):Be);return e.setEmitFlags(Me,1536),e.setSourceMapRange(Me,e.moveRangePastModifiers(z)),Me}}function q(z){return e.visitNode(z.expression,te,e.isExpression)}function G(z,U){var ge;if(z){ge=[];for(var pe=0,He=z;pe<He.length;pe++){var Be=He[pe],Me=se().createParamHelper(q(Be),U);e.setTextRange(Me,Be.expression),e.setEmitFlags(Me,1536),ge.push(Me)}}return ge}function ye(z,U){var ge=z.name;return e.isPrivateIdentifier(ge)?K.createIdentifier(""):e.isComputedPropertyName(ge)?U&&!e.isSimpleInlineableExpression(ge.expression)?K.getGeneratedNameForNode(ge):ge.expression:e.isIdentifier(ge)?K.createStringLiteral(e.idText(ge)):K.cloneNode(ge)}function b(){D||(ne.enableSubstitution(79),D=[])}function x(z){if(ie.getNodeCheckFlags(z)&16777216){b();var U=K.createUniqueName(z.name&&!e.isGeneratedIdentifier(z.name)?e.idText(z.name):"default");return D[e.getOriginalNodeId(z)]=U,O(U),U}}function T(z){return K.createPropertyAccessExpression(K.getDeclarationName(z),"prototype")}function Z(z,U){return e.isStatic(U)?K.getDeclarationName(z):T(z)}function B(z,U){return U=p(z,U),z===1?u(U):U}function u(z){switch(z.kind){case 79:return A(z)}return z}function A(z){var U;return(U=w(z))!==null&&U!==void 0?U:z}function w(z){if(D&&ie.getNodeCheckFlags(z)&33554432){var U=ie.getReferencedValueDeclaration(z);if(U){var ge=D[U.id];if(ge){var pe=K.cloneNode(ge);return e.setSourceMapRange(pe,z),e.setCommentRange(pe,z),pe}}}}}e.transformLegacyDecorators=o})(fr||(fr={}));var fr;(function(e){var o;(function(O){O[O.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));var ne;(function(O){O[O.NonTopLevel=1]="NonTopLevel",O[O.HasLexicalThis=2]="HasLexicalThis"})(ne||(ne={}));function K(O){var ie=O.factory,_e=O.getEmitHelperFactory,Q=O.resumeLexicalEnvironment,p=O.endLexicalEnvironment,D=O.hoistVariableDeclaration,le=O.getEmitResolver(),de=O.getCompilerOptions(),te=e.getEmitScriptTarget(de),oe,ae=0,E,I,f,m=[],y=0,S=O.onEmitNode,k=O.onSubstituteNode;return O.onEmitNode=Xe,O.onSubstituteNode=Ne,e.chainBundle(O,C);function C(Se){if(Se.isDeclarationFile)return Se;me(1,!1),me(2,!e.isEffectiveStrictModeSourceFile(Se,de));var Re=e.visitEachChild(Se,h,O);return e.addEmitHelpers(Re,O.readEmitHelpers()),Re}function me(Se,Re){y=Re?y|Se:y&~Se}function De(Se){return(y&Se)!=0}function X(){return!De(1)}function M(){return De(2)}function H(Se,Re,er){var wr=Se&~y;if(wr){me(wr,!0);var mr=Re(er);return me(wr,!1),mr}return Re(er)}function V(Se){return e.visitEachChild(Se,h,O)}function h(Se){if((Se.transformFlags&256)==0)return Se;switch(Se.kind){case 132:return;case 220:return q(Se);case 171:return H(1|2,ye,Se);case 259:return H(1|2,T,Se);case 215:return H(1|2,Z,Se);case 216:return H(1,B,Se);case 208:return I&&e.isPropertyAccessExpression(Se)&&Se.expression.kind===106&&I.add(Se.name.escapedText),e.visitEachChild(Se,h,O);case 209:return I&&Se.expression.kind===106&&(f=!0),e.visitEachChild(Se,h,O);case 174:return H(1|2,b,Se);case 175:return H(1|2,x,Se);case 173:return H(1|2,G,Se);case 260:case 228:return H(1|2,V,Se);default:return e.visitEachChild(Se,h,O)}}function F(Se){if(e.isNodeWithPossibleHoistedDeclaration(Se))switch(Se.kind){case 240:return L(Se);case 245:return J(Se);case 246:return P(Se);case 247:return N(Se);case 295:return $(Se);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return e.visitEachChild(Se,F,O);default:return e.Debug.assertNever(Se,"Unhandled node.")}return h(Se)}function $(Se){var Re=new e.Set;u(Se.variableDeclaration,Re);var er;if(Re.forEach(function(Ue,t){E.has(t)&&(er||(er=new e.Set(E)),er.delete(t))}),er){var wr=E;E=er;var mr=e.visitEachChild(Se,F,O);return E=wr,mr}else return e.visitEachChild(Se,F,O)}function L(Se){if(A(Se.declarationList)){var Re=w(Se.declarationList,!1);return Re?ie.createExpressionStatement(Re):void 0}return e.visitEachChild(Se,h,O)}function P(Se){return ie.updateForInStatement(Se,A(Se.initializer)?w(Se.initializer,!0):e.visitNode(Se.initializer,h,e.isForInitializer),e.visitNode(Se.expression,h,e.isExpression),e.visitIterationBody(Se.statement,F,O))}function N(Se){return ie.updateForOfStatement(Se,e.visitNode(Se.awaitModifier,h,e.isToken),A(Se.initializer)?w(Se.initializer,!0):e.visitNode(Se.initializer,h,e.isForInitializer),e.visitNode(Se.expression,h,e.isExpression),e.visitIterationBody(Se.statement,F,O))}function J(Se){var Re=Se.initializer;return ie.updateForStatement(Se,A(Re)?w(Re,!1):e.visitNode(Se.initializer,h,e.isForInitializer),e.visitNode(Se.condition,h,e.isExpression),e.visitNode(Se.incrementor,h,e.isExpression),e.visitIterationBody(Se.statement,F,O))}function q(Se){return X()?e.visitEachChild(Se,h,O):e.setOriginalNode(e.setTextRange(ie.createYieldExpression(void 0,e.visitNode(Se.expression,h,e.isExpression)),Se),Se)}function G(Se){return ie.updateConstructorDeclaration(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),e.visitParameterList(Se.parameters,h,O),He(Se))}function ye(Se){return ie.updateMethodDeclaration(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),Se.asteriskToken,Se.name,void 0,void 0,e.visitParameterList(Se.parameters,h,O),void 0,e.getFunctionFlags(Se)&2?Be(Se):He(Se))}function b(Se){return ie.updateGetAccessorDeclaration(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),Se.name,e.visitParameterList(Se.parameters,h,O),void 0,He(Se))}function x(Se){return ie.updateSetAccessorDeclaration(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),Se.name,e.visitParameterList(Se.parameters,h,O),He(Se))}function T(Se){return ie.updateFunctionDeclaration(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),Se.asteriskToken,Se.name,void 0,e.visitParameterList(Se.parameters,h,O),void 0,e.getFunctionFlags(Se)&2?Be(Se):e.visitFunctionBody(Se.body,h,O))}function Z(Se){return ie.updateFunctionExpression(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),Se.asteriskToken,Se.name,void 0,e.visitParameterList(Se.parameters,h,O),void 0,e.getFunctionFlags(Se)&2?Be(Se):e.visitFunctionBody(Se.body,h,O))}function B(Se){return ie.updateArrowFunction(Se,e.visitNodes(Se.modifiers,h,e.isModifierLike),void 0,e.visitParameterList(Se.parameters,h,O),void 0,Se.equalsGreaterThanToken,e.getFunctionFlags(Se)&2?Be(Se):e.visitFunctionBody(Se.body,h,O))}function u(Se,Re){var er=Se.name;if(e.isIdentifier(er))Re.add(er.escapedText);else for(var wr=0,mr=er.elements;wr<mr.length;wr++){var Ue=mr[wr];e.isOmittedExpression(Ue)||u(Ue,Re)}}function A(Se){return!!Se&&e.isVariableDeclarationList(Se)&&!(Se.flags&3)&&Se.declarations.some(pe)}function w(Se,Re){z(Se);var er=e.getInitializedVariables(Se);return er.length===0?Re?e.visitNode(ie.converters.convertToAssignmentElementTarget(Se.declarations[0].name),h,e.isExpression):void 0:ie.inlineExpressions(e.map(er,ge))}function z(Se){e.forEach(Se.declarations,U)}function U(Se){var Re=Se.name;if(e.isIdentifier(Re))D(Re);else for(var er=0,wr=Re.elements;er<wr.length;er++){var mr=wr[er];e.isOmittedExpression(mr)||U(mr)}}function ge(Se){var Re=e.setSourceMapRange(ie.createAssignment(ie.converters.convertToAssignmentElementTarget(Se.name),Se.initializer),Se);return e.visitNode(Re,h,e.isExpression)}function pe(Se){var Re=Se.name;if(e.isIdentifier(Re))return E.has(Re.escapedText);for(var er=0,wr=Re.elements;er<wr.length;er++){var mr=wr[er];if(!e.isOmittedExpression(mr)&&pe(mr))return!0}return!1}function He(Se){e.Debug.assertIsDefined(Se.body);var Re=I,er=f;I=new e.Set,f=!1;var wr=e.visitFunctionBody(Se.body,h,O),mr=e.getOriginalNode(Se,e.isFunctionLikeDeclaration),Ue=te>=2&&le.getNodeCheckFlags(Se)&(4096|2048)&&(e.getFunctionFlags(mr)&3)!=3;if(Ue){if(Ae(),I.size){var t=se(ie,le,Se,I);m[e.getNodeId(t)]=!0;var qr=wr.statements.slice();e.insertStatementsAfterStandardPrologue(qr,[t]),wr=ie.updateBlock(wr,qr)}f&&(le.getNodeCheckFlags(Se)&4096?e.addEmitHelper(wr,e.advancedAsyncSuperHelper):le.getNodeCheckFlags(Se)&2048&&e.addEmitHelper(wr,e.asyncSuperHelper))}return I=Re,f=er,wr}function Be(Se){Q();var Re=e.getOriginalNode(Se,e.isFunctionLike),er=Re.type,wr=te<2?Le(er):void 0,mr=Se.kind===216,Ue=(le.getNodeCheckFlags(Se)&8192)!=0,t=E;E=new e.Set;for(var qr=0,ln=Se.parameters;qr<ln.length;qr++){var dr=ln[qr];u(dr,E)}var vr=I,kr=f;mr||(I=new e.Set,f=!1);var Ur;if(mr){var or=_e().createAwaiterHelper(M(),Ue,wr,Me(Se.body)),Ee=p();if(e.some(Ee)){var ve=ie.converters.convertToFunctionBlock(or);Ur=ie.updateBlock(ve,e.setTextRange(ie.createNodeArray(e.concatenate(Ee,ve.statements)),ve.statements))}else Ur=or}else{var Cr=[],rn=ie.copyPrologue(Se.body.statements,Cr,!1,h);Cr.push(ie.createReturnStatement(_e().createAwaiterHelper(M(),Ue,wr,Me(Se.body,rn)))),e.insertStatementsAfterStandardPrologue(Cr,p());var Br=te>=2&&le.getNodeCheckFlags(Se)&(4096|2048);if(Br&&(Ae(),I.size)){var pn=se(ie,le,Se,I);m[e.getNodeId(pn)]=!0,e.insertStatementsAfterStandardPrologue(Cr,[pn])}var ve=ie.createBlock(Cr,!0);e.setTextRange(ve,Se.body),Br&&f&&(le.getNodeCheckFlags(Se)&4096?e.addEmitHelper(ve,e.advancedAsyncSuperHelper):le.getNodeCheckFlags(Se)&2048&&e.addEmitHelper(ve,e.asyncSuperHelper)),Ur=ve}return E=t,mr||(I=vr,f=kr),Ur}function Me(Se,Re){return e.isBlock(Se)?ie.updateBlock(Se,e.visitNodes(Se.statements,F,e.isStatement,Re)):ie.converters.convertToFunctionBlock(e.visitNode(Se,F,e.isConciseBody))}function Le(Se){var Re=Se&&e.getEntityNameFromTypeNode(Se);if(Re&&e.isEntityName(Re)){var er=le.getTypeReferenceSerializationKind(Re);if(er===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||er===e.TypeReferenceSerializationKind.Unknown)return Re}}function Ae(){(oe&1)==0&&(oe|=1,O.enableSubstitution(210),O.enableSubstitution(208),O.enableSubstitution(209),O.enableEmitNotification(260),O.enableEmitNotification(171),O.enableEmitNotification(174),O.enableEmitNotification(175),O.enableEmitNotification(173),O.enableEmitNotification(240))}function Xe(Se,Re,er){if(oe&1&&j(Re)){var wr=le.getNodeCheckFlags(Re)&(2048|4096);if(wr!==ae){var mr=ae;ae=wr,S(Se,Re,er),ae=mr;return}}else if(oe&&m[e.getNodeId(Re)]){var mr=ae;ae=0,S(Se,Re,er),ae=mr;return}S(Se,Re,er)}function Ne(Se,Re){return Re=k(Se,Re),Se===1&&ae?Oe(Re):Re}function Oe(Se){switch(Se.kind){case 208:return be(Se);case 209:return Y(Se);case 210:return d(Se)}return Se}function be(Se){return Se.expression.kind===106?e.setTextRange(ie.createPropertyAccessExpression(ie.createUniqueName("_super",16|32),Se.name),Se):Se}function Y(Se){return Se.expression.kind===106?Ce(Se.argumentExpression,Se):Se}function d(Se){var Re=Se.expression;if(e.isSuperProperty(Re)){var er=e.isPropertyAccessExpression(Re)?be(Re):Y(Re);return ie.createCallExpression(ie.createPropertyAccessExpression(er,"call"),void 0,zn([ie.createThis()],Se.arguments,!0))}return Se}function j(Se){var Re=Se.kind;return Re===260||Re===173||Re===171||Re===174||Re===175}function Ce(Se,Re){return ae&4096?e.setTextRange(ie.createPropertyAccessExpression(ie.createCallExpression(ie.createUniqueName("_superIndex",16|32),void 0,[Se]),"value"),Re):e.setTextRange(ie.createCallExpression(ie.createUniqueName("_superIndex",16|32),void 0,[Se]),Re)}}e.transformES2017=K;function se(O,ie,_e,Q){var p=(ie.getNodeCheckFlags(_e)&4096)!=0,D=[];return Q.forEach(function(le,de){var te=e.unescapeLeadingUnderscores(de),oe=[];oe.push(O.createPropertyAssignment("get",O.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(O.createPropertyAccessExpression(e.setEmitFlags(O.createSuper(),4),te),4)))),p&&oe.push(O.createPropertyAssignment("set",O.createArrowFunction(void 0,void 0,[O.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,O.createAssignment(e.setEmitFlags(O.createPropertyAccessExpression(e.setEmitFlags(O.createSuper(),4),te),4),O.createIdentifier("v"))))),D.push(O.createPropertyAssignment(te,O.createObjectLiteralExpression(oe)))}),O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(O.createUniqueName("_super",16|32),void 0,void 0,O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Object"),"create"),void 0,[O.createNull(),O.createObjectLiteralExpression(D,!0)]))],2))}e.createSuperAccessVariableStatement=se})(fr||(fr={}));var fr;(function(e){var o;(function(se){se[se.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));var ne;(function(se){se[se.None=0]="None",se[se.HasLexicalThis=1]="HasLexicalThis",se[se.IterationContainer=2]="IterationContainer",se[se.AncestorFactsMask=3]="AncestorFactsMask",se[se.SourceFileIncludes=1]="SourceFileIncludes",se[se.SourceFileExcludes=2]="SourceFileExcludes",se[se.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",se[se.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",se[se.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",se[se.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",se[se.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",se[se.IterationStatementIncludes=2]="IterationStatementIncludes",se[se.IterationStatementExcludes=0]="IterationStatementExcludes"})(ne||(ne={}));function K(se){var O=se.factory,ie=se.getEmitHelperFactory,_e=se.resumeLexicalEnvironment,Q=se.endLexicalEnvironment,p=se.hoistVariableDeclaration,D=se.getEmitResolver(),le=se.getCompilerOptions(),de=e.getEmitScriptTarget(le),te=se.onEmitNode;se.onEmitNode=dr;var oe=se.onSubstituteNode;se.onSubstituteNode=vr;var ae=!1,E,I,f,m=0,y=0,S,k,C,me,De=[];return e.chainBundle(se,h);function X(ve,or){return y!==(y&~ve|or)}function M(ve,or){var Ee=y;return y=(y&~ve|or)&3,Ee}function H(ve){y=ve}function V(ve){k=e.append(k,O.createVariableDeclaration(ve))}function h(ve){if(ve.isDeclarationFile)return ve;S=ve;var or=u(ve);return e.addEmitHelpers(or,se.readEmitHelpers()),S=void 0,k=void 0,or}function F(ve){return J(ve,!1)}function $(ve){return J(ve,!0)}function L(ve){if(ve.kind!==132)return ve}function P(ve,or,Ee,ze){if(X(Ee,ze)){var Ar=M(Ee,ze),xe=ve(or);return H(Ar),xe}return ve(or)}function N(ve){return e.visitEachChild(ve,F,se)}function J(ve,or){if((ve.transformFlags&128)==0)return ve;switch(ve.kind){case 220:return q(ve);case 226:return G(ve);case 250:return ye(ve);case 253:return b(ve);case 207:return T(ve);case 223:return w(ve,or);case 354:return z(ve,or);case 295:return U(ve);case 240:return ge(ve);case 257:return pe(ve);case 243:case 244:case 246:return P(N,ve,0,2);case 247:return Le(ve,void 0);case 245:return P(Be,ve,0,2);case 219:return Me(ve);case 173:return P(j,ve,2,1);case 171:return P(Re,ve,2,1);case 174:return P(Ce,ve,2,1);case 175:return P(Se,ve,2,1);case 259:return P(er,ve,2,1);case 215:return P(mr,ve,2,1);case 216:return P(wr,ve,2,0);case 166:return Y(ve);case 241:return Z(ve);case 214:return B(ve,or);case 212:return A(ve);case 208:return C&&e.isPropertyAccessExpression(ve)&&ve.expression.kind===106&&C.add(ve.name.escapedText),e.visitEachChild(ve,F,se);case 209:return C&&ve.expression.kind===106&&(me=!0),e.visitEachChild(ve,F,se);case 260:case 228:return P(N,ve,2,1);default:return e.visitEachChild(ve,F,se)}}function q(ve){return I&2&&I&1?e.setOriginalNode(e.setTextRange(O.createYieldExpression(void 0,ie().createAwaitHelper(e.visitNode(ve.expression,F,e.isExpression))),ve),ve):e.visitEachChild(ve,F,se)}function G(ve){if(I&2&&I&1){if(ve.asteriskToken){var or=e.visitNode(e.Debug.checkDefined(ve.expression),F,e.isExpression);return e.setOriginalNode(e.setTextRange(O.createYieldExpression(void 0,ie().createAwaitHelper(O.updateYieldExpression(ve,ve.asteriskToken,e.setTextRange(ie().createAsyncDelegatorHelper(e.setTextRange(ie().createAsyncValuesHelper(or),or)),or)))),ve),ve)}return e.setOriginalNode(e.setTextRange(O.createYieldExpression(void 0,Ne(ve.expression?e.visitNode(ve.expression,F,e.isExpression):O.createVoidZero())),ve),ve)}return e.visitEachChild(ve,F,se)}function ye(ve){return I&2&&I&1?O.updateReturnStatement(ve,Ne(ve.expression?e.visitNode(ve.expression,F,e.isExpression):O.createVoidZero())):e.visitEachChild(ve,F,se)}function b(ve){if(I&2){var or=e.unwrapInnermostStatementOfLabel(ve);return or.kind===247&&or.awaitModifier?Le(or,ve):O.restoreEnclosingLabel(e.visitNode(or,F,e.isStatement,O.liftToBlock),ve)}return e.visitEachChild(ve,F,se)}function x(ve){for(var or,Ee=[],ze=0,Ar=ve;ze<Ar.length;ze++){var xe=Ar[ze];if(xe.kind===301){or&&(Ee.push(O.createObjectLiteralExpression(or)),or=void 0);var cr=xe.expression;Ee.push(e.visitNode(cr,F,e.isExpression))}else or=e.append(or,xe.kind===299?O.createPropertyAssignment(xe.name,e.visitNode(xe.initializer,F,e.isExpression)):e.visitNode(xe,F,e.isObjectLiteralElementLike))}return or&&Ee.push(O.createObjectLiteralExpression(or)),Ee}function T(ve){if(ve.transformFlags&65536){var or=x(ve.properties);or.length&&or[0].kind!==207&&or.unshift(O.createObjectLiteralExpression());var Ee=or[0];if(or.length>1){for(var ze=1;ze<or.length;ze++)Ee=ie().createAssignHelper([Ee,or[ze]]);return Ee}else return ie().createAssignHelper(or)}return e.visitEachChild(ve,F,se)}function Z(ve){return e.visitEachChild(ve,$,se)}function B(ve,or){return e.visitEachChild(ve,or?$:F,se)}function u(ve){var or=M(2,e.isEffectiveStrictModeSourceFile(ve,le)?0:1);ae=!1;var Ee=e.visitEachChild(ve,F,se),ze=e.concatenate(Ee.statements,k&&[O.createVariableStatement(void 0,O.createVariableDeclarationList(k))]),Ar=O.updateSourceFile(Ee,e.setTextRange(O.createNodeArray(ze),ve.statements));return H(or),Ar}function A(ve){return e.processTaggedTemplateExpression(se,ve,F,S,V,e.ProcessLevel.LiftRestriction)}function w(ve,or){return e.isDestructuringAssignment(ve)&&ve.left.transformFlags&65536?e.flattenDestructuringAssignment(ve,F,se,1,!or):ve.operatorToken.kind===27?O.updateBinaryExpression(ve,e.visitNode(ve.left,$,e.isExpression),ve.operatorToken,e.visitNode(ve.right,or?$:F,e.isExpression)):e.visitEachChild(ve,F,se)}function z(ve,or){if(or)return e.visitEachChild(ve,$,se);for(var Ee,ze=0;ze<ve.elements.length;ze++){var Ar=ve.elements[ze],xe=e.visitNode(Ar,ze<ve.elements.length-1?$:F,e.isExpression);(Ee||xe!==Ar)&&(Ee||(Ee=ve.elements.slice(0,ze)),Ee.push(xe))}var cr=Ee?e.setTextRange(O.createNodeArray(Ee),ve.elements):ve.elements;return O.updateCommaListExpression(ve,cr)}function U(ve){if(ve.variableDeclaration&&e.isBindingPattern(ve.variableDeclaration.name)&&ve.variableDeclaration.name.transformFlags&65536){var or=O.getGeneratedNameForNode(ve.variableDeclaration.name),Ee=O.updateVariableDeclaration(ve.variableDeclaration,ve.variableDeclaration.name,void 0,void 0,or),ze=e.flattenDestructuringBinding(Ee,F,se,1),Ar=e.visitNode(ve.block,F,e.isBlock);return e.some(ze)&&(Ar=O.updateBlock(Ar,zn([O.createVariableStatement(void 0,ze)],Ar.statements,!0))),O.updateCatchClause(ve,O.updateVariableDeclaration(ve.variableDeclaration,or,void 0,void 0,void 0),Ar)}return e.visitEachChild(ve,F,se)}function ge(ve){if(e.hasSyntacticModifier(ve,1)){var or=ae;ae=!0;var Ee=e.visitEachChild(ve,F,se);return ae=or,Ee}return e.visitEachChild(ve,F,se)}function pe(ve){if(ae){var or=ae;ae=!1;var Ee=He(ve,!0);return ae=or,Ee}return He(ve,!1)}function He(ve,or){return e.isBindingPattern(ve.name)&&ve.name.transformFlags&65536?e.flattenDestructuringBinding(ve,F,se,1,void 0,or):e.visitEachChild(ve,F,se)}function Be(ve){return O.updateForStatement(ve,e.visitNode(ve.initializer,$,e.isForInitializer),e.visitNode(ve.condition,F,e.isExpression),e.visitNode(ve.incrementor,$,e.isExpression),e.visitIterationBody(ve.statement,F,se))}function Me(ve){return e.visitEachChild(ve,$,se)}function Le(ve,or){var Ee=M(0,2);ve.initializer.transformFlags&65536&&(ve=Ae(ve));var ze=ve.awaitModifier?Oe(ve,or,Ee):O.restoreEnclosingLabel(e.visitEachChild(ve,F,se),or);return H(Ee),ze}function Ae(ve){var or=e.skipParentheses(ve.initializer);if(e.isVariableDeclarationList(or)||e.isAssignmentPattern(or)){var Ee=void 0,ze=void 0,Ar=O.createTempVariable(void 0),xe=[e.createForOfBindingStatement(O,or,Ar)];return e.isBlock(ve.statement)?(e.addRange(xe,ve.statement.statements),Ee=ve.statement,ze=ve.statement.statements):ve.statement&&(e.append(xe,ve.statement),Ee=ve.statement,ze=ve.statement),O.updateForOfStatement(ve,ve.awaitModifier,e.setTextRange(O.createVariableDeclarationList([e.setTextRange(O.createVariableDeclaration(Ar),ve.initializer)],1),ve.initializer),ve.expression,e.setTextRange(O.createBlock(e.setTextRange(O.createNodeArray(xe),ze),!0),Ee))}return ve}function Xe(ve,or,Ee){var ze=O.createTempVariable(p),Ar=O.createAssignment(ze,or),xe=O.createExpressionStatement(Ar);e.setSourceMapRange(xe,ve.expression);var cr=O.createAssignment(Ee,O.createFalse()),Mr=O.createExpressionStatement(cr);e.setSourceMapRange(Mr,ve.expression);var Rr=O.createAssignment(Ee,O.createTrue()),Qr=O.createExpressionStatement(Rr);e.setSourceMapRange(Mr,ve.expression);var en=[],vn=e.createForOfBindingStatement(O,ve.initializer,ze);en.push(e.visitNode(vn,F,e.isStatement));var Ie,We,xr=e.visitIterationBody(ve.statement,F,se);e.isBlock(xr)?(e.addRange(en,xr.statements),Ie=xr,We=xr.statements):en.push(xr);var Lr=e.setEmitFlags(e.setTextRange(O.createBlock(e.setTextRange(O.createNodeArray(en),We),!0),Ie),48|384);return O.createBlock([xe,Mr,O.createTryStatement(Lr,void 0,O.createBlock([Qr]))])}function Ne(ve){return I&1?O.createYieldExpression(void 0,ie().createAwaitHelper(ve)):O.createAwaitExpression(ve)}function Oe(ve,or,Ee){var ze=e.visitNode(ve.expression,F,e.isExpression),Ar=e.isIdentifier(ze)?O.getGeneratedNameForNode(ze):O.createTempVariable(void 0),xe=e.isIdentifier(ze)?O.getGeneratedNameForNode(Ar):O.createTempVariable(void 0),cr=O.createTempVariable(void 0),Mr=O.createTempVariable(p),Rr=O.createUniqueName("e"),Qr=O.getGeneratedNameForNode(Rr),en=O.createTempVariable(void 0),vn=e.setTextRange(ie().createAsyncValuesHelper(ze),ve.expression),Ie=O.createCallExpression(O.createPropertyAccessExpression(Ar,"next"),void 0,[]),We=O.createPropertyAccessExpression(xe,"done"),xr=O.createPropertyAccessExpression(xe,"value"),Lr=O.createFunctionCallCall(en,Ar,[]);p(Rr),p(en);var xn=Ee&2?O.inlineExpressions([O.createAssignment(Rr,O.createVoidZero()),vn]):vn,An=e.setEmitFlags(e.setTextRange(O.createForStatement(e.setEmitFlags(e.setTextRange(O.createVariableDeclarationList([O.createVariableDeclaration(cr,void 0,void 0,O.createTrue()),e.setTextRange(O.createVariableDeclaration(Ar,void 0,void 0,xn),ve.expression),O.createVariableDeclaration(xe)]),ve.expression),2097152),O.inlineExpressions([O.createAssignment(xe,Ne(Ie)),O.createAssignment(Mr,We),O.createLogicalNot(Mr)]),void 0,Xe(ve,xr,cr)),ve),256);return e.setOriginalNode(An,ve),O.createTryStatement(O.createBlock([O.restoreEnclosingLabel(An,or)]),O.createCatchClause(O.createVariableDeclaration(Qr),e.setEmitFlags(O.createBlock([O.createExpressionStatement(O.createAssignment(Rr,O.createObjectLiteralExpression([O.createPropertyAssignment("error",Qr)])))]),1)),O.createBlock([O.createTryStatement(O.createBlock([e.setEmitFlags(O.createIfStatement(O.createLogicalAnd(O.createLogicalAnd(O.createLogicalNot(cr),O.createLogicalNot(Mr)),O.createAssignment(en,O.createPropertyAccessExpression(Ar,"return"))),O.createExpressionStatement(Ne(Lr))),1)]),void 0,e.setEmitFlags(O.createBlock([e.setEmitFlags(O.createIfStatement(Rr,O.createThrowStatement(O.createPropertyAccessExpression(Rr,"error"))),1)]),1))]))}function be(ve){return e.Debug.assertNode(ve,e.isParameter),Y(ve)}function Y(ve){return(f==null?void 0:f.has(ve))?O.updateParameterDeclaration(ve,void 0,ve.dotDotDotToken,e.isBindingPattern(ve.name)?O.getGeneratedNameForNode(ve):ve.name,void 0,void 0,void 0):ve.transformFlags&65536?O.updateParameterDeclaration(ve,void 0,ve.dotDotDotToken,O.getGeneratedNameForNode(ve),void 0,void 0,e.visitNode(ve.initializer,F,e.isExpression)):e.visitEachChild(ve,F,se)}function d(ve){for(var or,Ee=0,ze=ve.parameters;Ee<ze.length;Ee++){var Ar=ze[Ee];or?or.add(Ar):Ar.transformFlags&65536&&(or=new e.Set)}return or}function j(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateConstructorDeclaration(ve,ve.modifiers,e.visitParameterList(ve.parameters,be,se),t(ve));return I=or,f=Ee,ze}function Ce(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateGetAccessorDeclaration(ve,ve.modifiers,e.visitNode(ve.name,F,e.isPropertyName),e.visitParameterList(ve.parameters,be,se),void 0,t(ve));return I=or,f=Ee,ze}function Se(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateSetAccessorDeclaration(ve,ve.modifiers,e.visitNode(ve.name,F,e.isPropertyName),e.visitParameterList(ve.parameters,be,se),t(ve));return I=or,f=Ee,ze}function Re(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateMethodDeclaration(ve,I&1?e.visitNodes(ve.modifiers,L,e.isModifierLike):ve.modifiers,I&2?void 0:ve.asteriskToken,e.visitNode(ve.name,F,e.isPropertyName),e.visitNode(void 0,F,e.isToken),void 0,e.visitParameterList(ve.parameters,be,se),void 0,I&2&&I&1?Ue(ve):t(ve));return I=or,f=Ee,ze}function er(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateFunctionDeclaration(ve,I&1?e.visitNodes(ve.modifiers,L,e.isModifier):ve.modifiers,I&2?void 0:ve.asteriskToken,ve.name,void 0,e.visitParameterList(ve.parameters,be,se),void 0,I&2&&I&1?Ue(ve):t(ve));return I=or,f=Ee,ze}function wr(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateArrowFunction(ve,ve.modifiers,void 0,e.visitParameterList(ve.parameters,be,se),void 0,ve.equalsGreaterThanToken,t(ve));return I=or,f=Ee,ze}function mr(ve){var or=I,Ee=f;I=e.getFunctionFlags(ve),f=d(ve);var ze=O.updateFunctionExpression(ve,I&1?e.visitNodes(ve.modifiers,L,e.isModifier):ve.modifiers,I&2?void 0:ve.asteriskToken,ve.name,void 0,e.visitParameterList(ve.parameters,be,se),void 0,I&2&&I&1?Ue(ve):t(ve));return I=or,f=Ee,ze}function Ue(ve){_e();var or=[],Ee=O.copyPrologue(ve.body.statements,or,!1,F);qr(or,ve);var ze=C,Ar=me;C=new e.Set,me=!1;var xe=O.createReturnStatement(ie().createAsyncGeneratorHelper(O.createFunctionExpression(void 0,O.createToken(41),ve.name&&O.getGeneratedNameForNode(ve.name),void 0,[],void 0,O.updateBlock(ve.body,e.visitLexicalEnvironment(ve.body.statements,F,se,Ee))),!!(y&1))),cr=de>=2&&D.getNodeCheckFlags(ve)&(4096|2048);if(cr){ln();var Mr=e.createSuperAccessVariableStatement(O,D,ve,C);De[e.getNodeId(Mr)]=!0,e.insertStatementsAfterStandardPrologue(or,[Mr])}or.push(xe),e.insertStatementsAfterStandardPrologue(or,Q());var Rr=O.updateBlock(ve.body,or);return cr&&me&&(D.getNodeCheckFlags(ve)&4096?e.addEmitHelper(Rr,e.advancedAsyncSuperHelper):D.getNodeCheckFlags(ve)&2048&&e.addEmitHelper(Rr,e.asyncSuperHelper)),C=ze,me=Ar,Rr}function t(ve){var or;_e();var Ee=0,ze=[],Ar=(or=e.visitNode(ve.body,F,e.isConciseBody))!==null&&or!==void 0?or:O.createBlock([]);e.isBlock(Ar)&&(Ee=O.copyPrologue(Ar.statements,ze,!1,F)),e.addRange(ze,qr(void 0,ve));var xe=Q();if(Ee>0||e.some(ze)||e.some(xe)){var cr=O.converters.convertToFunctionBlock(Ar,!0);return e.insertStatementsAfterStandardPrologue(ze,xe),e.addRange(ze,cr.statements.slice(Ee)),O.updateBlock(cr,e.setTextRange(O.createNodeArray(ze),cr.statements))}return Ar}function qr(ve,or){for(var Ee=!1,ze=0,Ar=or.parameters;ze<Ar.length;ze++){var xe=Ar[ze];if(Ee){if(e.isBindingPattern(xe.name)){if(xe.name.elements.length>0){var cr=e.flattenDestructuringBinding(xe,F,se,0,O.getGeneratedNameForNode(xe));if(e.some(cr)){var Mr=O.createVariableDeclarationList(cr),Rr=O.createVariableStatement(void 0,Mr);e.setEmitFlags(Rr,1048576),ve=e.append(ve,Rr)}}else if(xe.initializer){var Qr=O.getGeneratedNameForNode(xe),en=e.visitNode(xe.initializer,F,e.isExpression),vn=O.createAssignment(Qr,en),Rr=O.createExpressionStatement(vn);e.setEmitFlags(Rr,1048576),ve=e.append(ve,Rr)}}else if(xe.initializer){var Qr=O.cloneNode(xe.name);e.setTextRange(Qr,xe.name),e.setEmitFlags(Qr,48);var en=e.visitNode(xe.initializer,F,e.isExpression);e.addEmitFlags(en,48|1536);var vn=O.createAssignment(Qr,en);e.setTextRange(vn,xe),e.setEmitFlags(vn,1536);var Ie=O.createBlock([O.createExpressionStatement(vn)]);e.setTextRange(Ie,xe),e.setEmitFlags(Ie,1|32|384|1536);var We=O.createTypeCheck(O.cloneNode(xe.name),"undefined"),Rr=O.createIfStatement(We,Ie);e.startOnNewLine(Rr),e.setTextRange(Rr,xe),e.setEmitFlags(Rr,384|32|1048576|1536),ve=e.append(ve,Rr)}}else if(xe.transformFlags&65536){Ee=!0;var cr=e.flattenDestructuringBinding(xe,F,se,1,O.getGeneratedNameForNode(xe),!1,!0);if(e.some(cr)){var Mr=O.createVariableDeclarationList(cr),Rr=O.createVariableStatement(void 0,Mr);e.setEmitFlags(Rr,1048576),ve=e.append(ve,Rr)}}}return ve}function ln(){(E&1)==0&&(E|=1,se.enableSubstitution(210),se.enableSubstitution(208),se.enableSubstitution(209),se.enableEmitNotification(260),se.enableEmitNotification(171),se.enableEmitNotification(174),se.enableEmitNotification(175),se.enableEmitNotification(173),se.enableEmitNotification(240))}function dr(ve,or,Ee){if(E&1&&Br(or)){var ze=D.getNodeCheckFlags(or)&(2048|4096);if(ze!==m){var Ar=m;m=ze,te(ve,or,Ee),m=Ar;return}}else if(E&&De[e.getNodeId(or)]){var Ar=m;m=0,te(ve,or,Ee),m=Ar;return}te(ve,or,Ee)}function vr(ve,or){return or=oe(ve,or),ve===1&&m?kr(or):or}function kr(ve){switch(ve.kind){case 208:return Ur(ve);case 209:return Cr(ve);case 210:return rn(ve)}return ve}function Ur(ve){return ve.expression.kind===106?e.setTextRange(O.createPropertyAccessExpression(O.createUniqueName("_super",16|32),ve.name),ve):ve}function Cr(ve){return ve.expression.kind===106?pn(ve.argumentExpression,ve):ve}function rn(ve){var or=ve.expression;if(e.isSuperProperty(or)){var Ee=e.isPropertyAccessExpression(or)?Ur(or):Cr(or);return O.createCallExpression(O.createPropertyAccessExpression(Ee,"call"),void 0,zn([O.createThis()],ve.arguments,!0))}return ve}function Br(ve){var or=ve.kind;return or===260||or===173||or===171||or===174||or===175}function pn(ve,or){return m&4096?e.setTextRange(O.createPropertyAccessExpression(O.createCallExpression(O.createIdentifier("_superIndex"),void 0,[ve]),"value"),or):e.setTextRange(O.createCallExpression(O.createIdentifier("_superIndex"),void 0,[ve]),or)}}e.transformES2018=K})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory;return e.chainBundle(ne,se);function se(_e){return _e.isDeclarationFile?_e:e.visitEachChild(_e,O,ne)}function O(_e){if((_e.transformFlags&64)==0)return _e;switch(_e.kind){case 295:return ie(_e);default:return e.visitEachChild(_e,O,ne)}}function ie(_e){return _e.variableDeclaration?e.visitEachChild(_e,O,ne):K.updateCatchClause(_e,K.createVariableDeclaration(K.createTempVariable(void 0)),e.visitNode(_e.block,O,e.isBlock))}}e.transformES2019=o})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory,se=ne.hoistVariableDeclaration;return e.chainBundle(ne,O);function O(E){return E.isDeclarationFile?E:e.visitEachChild(E,ie,ne)}function ie(E){if((E.transformFlags&32)==0)return E;switch(E.kind){case 210:{var I=D(E,!1);return e.Debug.assertNotNode(I,e.isSyntheticReference),I}case 208:case 209:if(e.isOptionalChain(E)){var I=de(E,!1,!1);return e.Debug.assertNotNode(I,e.isSyntheticReference),I}return e.visitEachChild(E,ie,ne);case 223:return E.operatorToken.kind===60?oe(E):e.visitEachChild(E,ie,ne);case 217:return ae(E);default:return e.visitEachChild(E,ie,ne)}}function _e(E){e.Debug.assertNotNode(E,e.isNonNullChain);for(var I=[E];!E.questionDotToken&&!e.isTaggedTemplateExpression(E);)E=e.cast(e.skipPartiallyEmittedExpressions(E.expression),e.isOptionalChain),e.Debug.assertNotNode(E,e.isNonNullChain),I.unshift(E);return{expression:E.expression,chain:I}}function Q(E,I,f){var m=le(E.expression,I,f);return e.isSyntheticReference(m)?K.createSyntheticReferenceExpression(K.updateParenthesizedExpression(E,m.expression),m.thisArg):K.updateParenthesizedExpression(E,m)}function p(E,I,f){if(e.isOptionalChain(E))return de(E,I,f);var m=e.visitNode(E.expression,ie,e.isExpression);e.Debug.assertNotNode(m,e.isSyntheticReference);var y;return I&&(e.isSimpleCopiableExpression(m)?y=m:(y=K.createTempVariable(se),m=K.createAssignment(y,m))),m=E.kind===208?K.updatePropertyAccessExpression(E,m,e.visitNode(E.name,ie,e.isIdentifier)):K.updateElementAccessExpression(E,m,e.visitNode(E.argumentExpression,ie,e.isExpression)),y?K.createSyntheticReferenceExpression(m,y):m}function D(E,I){if(e.isOptionalChain(E))return de(E,I,!1);if(e.isParenthesizedExpression(E.expression)&&e.isOptionalChain(e.skipParentheses(E.expression))){var f=Q(E.expression,!0,!1),m=e.visitNodes(E.arguments,ie,e.isExpression);return e.isSyntheticReference(f)?e.setTextRange(K.createFunctionCallCall(f.expression,f.thisArg,m),E):K.updateCallExpression(E,f,void 0,m)}return e.visitEachChild(E,ie,ne)}function le(E,I,f){switch(E.kind){case 214:return Q(E,I,f);case 208:case 209:return p(E,I,f);case 210:return D(E,I);default:return e.visitNode(E,ie,e.isExpression)}}function de(E,I,f){var m=_e(E),y=m.expression,S=m.chain,k=le(e.skipPartiallyEmittedExpressions(y),e.isCallChain(S[0]),!1),C=e.isSyntheticReference(k)?k.thisArg:void 0,me=e.isSyntheticReference(k)?k.expression:k,De=K.restoreOuterExpressions(y,me,8);e.isSimpleCopiableExpression(me)||(me=K.createTempVariable(se),De=K.createAssignment(me,De));for(var X=me,M,H=0;H<S.length;H++){var V=S[H];switch(V.kind){case 208:case 209:H===S.length-1&&I&&(e.isSimpleCopiableExpression(X)?M=X:(M=K.createTempVariable(se),X=K.createAssignment(M,X))),X=V.kind===208?K.createPropertyAccessExpression(X,e.visitNode(V.name,ie,e.isIdentifier)):K.createElementAccessExpression(X,e.visitNode(V.argumentExpression,ie,e.isExpression));break;case 210:H===0&&C?(e.isGeneratedIdentifier(C)||(C=K.cloneNode(C),e.addEmitFlags(C,1536)),X=K.createFunctionCallCall(X,C.kind===106?K.createThis():C,e.visitNodes(V.arguments,ie,e.isExpression))):X=K.createCallExpression(X,void 0,e.visitNodes(V.arguments,ie,e.isExpression));break}e.setOriginalNode(X,V)}var h=f?K.createConditionalExpression(te(De,me,!0),void 0,K.createTrue(),void 0,K.createDeleteExpression(X)):K.createConditionalExpression(te(De,me,!0),void 0,K.createVoidZero(),void 0,X);return e.setTextRange(h,E),M?K.createSyntheticReferenceExpression(h,M):h}function te(E,I,f){return K.createBinaryExpression(K.createBinaryExpression(E,K.createToken(f?36:37),K.createNull()),K.createToken(f?56:55),K.createBinaryExpression(I,K.createToken(f?36:37),K.createVoidZero()))}function oe(E){var I=e.visitNode(E.left,ie,e.isExpression),f=I;return e.isSimpleCopiableExpression(I)||(f=K.createTempVariable(se),I=K.createAssignment(f,I)),e.setTextRange(K.createConditionalExpression(te(I,f),void 0,f,void 0,e.visitNode(E.right,ie,e.isExpression)),E)}function ae(E){return e.isOptionalChain(e.skipParentheses(E.expression))?e.setOriginalNode(le(E.expression,!1,!0),E):K.updateDeleteExpression(E,e.visitNode(E.expression,ie,e.isExpression))}}e.transformES2020=o})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.hoistVariableDeclaration,se=ne.factory;return e.chainBundle(ne,O);function O(Q){return Q.isDeclarationFile?Q:e.visitEachChild(Q,ie,ne)}function ie(Q){if((Q.transformFlags&16)==0)return Q;switch(Q.kind){case 223:var p=Q;if(e.isLogicalOrCoalescingAssignmentExpression(p))return _e(p);default:return e.visitEachChild(Q,ie,ne)}}function _e(Q){var p=Q.operatorToken,D=e.getNonAssignmentOperatorForCompoundAssignment(p.kind),le=e.skipParentheses(e.visitNode(Q.left,ie,e.isLeftHandSideExpression)),de=le,te=e.skipParentheses(e.visitNode(Q.right,ie,e.isExpression));if(e.isAccessExpression(le)){var oe=e.isSimpleCopiableExpression(le.expression),ae=oe?le.expression:se.createTempVariable(K),E=oe?le.expression:se.createAssignment(ae,le.expression);if(e.isPropertyAccessExpression(le))de=se.createPropertyAccessExpression(ae,le.name),le=se.createPropertyAccessExpression(E,le.name);else{var I=e.isSimpleCopiableExpression(le.argumentExpression),f=I?le.argumentExpression:se.createTempVariable(K);de=se.createElementAccessExpression(ae,f),le=se.createElementAccessExpression(E,I?le.argumentExpression:se.createAssignment(f,le.argumentExpression))}}return se.createBinaryExpression(le,D,se.createParenthesizedExpression(se.createAssignment(de,te)))}}e.transformES2021=o})(fr||(fr={}));var fr;(function(e){function o(ne){return e.chainBundle(ne,K);function K(O){return O.isDeclarationFile?O:e.visitEachChild(O,se,ne)}function se(O){if((O.transformFlags&4)==0)return O;switch(O.kind){default:return e.visitEachChild(O,se,ne)}}}e.transformESNext=o})(fr||(fr={}));var fr;(function(e){function o(K){var se=K.factory,O=K.getEmitHelperFactory,ie=K.getCompilerOptions(),_e,Q;return e.chainBundle(K,oe);function p(){if(Q.filenameDeclaration)return Q.filenameDeclaration.name;var u=se.createVariableDeclaration(se.createUniqueName("_jsxFileName",16|32),void 0,void 0,se.createStringLiteral(_e.fileName));return Q.filenameDeclaration=u,Q.filenameDeclaration.name}function D(u){return ie.jsx===5?"jsxDEV":u?"jsxs":"jsx"}function le(u){var A=D(u);return te(A)}function de(){return te("Fragment")}function te(u){var A,w,z=u==="createElement"?Q.importSpecifier:e.getJSXRuntimeImport(Q.importSpecifier,ie),U=(w=(A=Q.utilizedImplicitRuntimeImports)===null||A===void 0?void 0:A.get(z))===null||w===void 0?void 0:w.get(u);if(U)return U.name;Q.utilizedImplicitRuntimeImports||(Q.utilizedImplicitRuntimeImports=new e.Map);var ge=Q.utilizedImplicitRuntimeImports.get(z);ge||(ge=new e.Map,Q.utilizedImplicitRuntimeImports.set(z,ge));var pe=se.createUniqueName("_".concat(u),16|32|64),He=se.createImportSpecifier(!1,se.createIdentifier(u),pe);return pe.generatedImportReference=He,ge.set(u,He),pe}function oe(u){if(u.isDeclarationFile)return u;_e=u,Q={},Q.importSpecifier=e.getJSXImplicitImportBase(ie,u);var A=e.visitEachChild(u,ae,K);e.addEmitHelpers(A,K.readEmitHelpers());var w=A.statements;if(Q.filenameDeclaration&&(w=e.insertStatementAfterCustomPrologue(w.slice(),se.createVariableStatement(void 0,se.createVariableDeclarationList([Q.filenameDeclaration],2)))),Q.utilizedImplicitRuntimeImports)for(var z=0,U=e.arrayFrom(Q.utilizedImplicitRuntimeImports.entries());z<U.length;z++){var ge=U[z],pe=ge[0],He=ge[1];if(e.isExternalModule(u)){var Be=se.createImportDeclaration(void 0,se.createImportClause(!1,void 0,se.createNamedImports(e.arrayFrom(He.values()))),se.createStringLiteral(pe),void 0);e.setParentRecursive(Be,!1),w=e.insertStatementAfterCustomPrologue(w.slice(),Be)}else if(e.isExternalOrCommonJsModule(u)){var Me=se.createVariableStatement(void 0,se.createVariableDeclarationList([se.createVariableDeclaration(se.createObjectBindingPattern(e.map(e.arrayFrom(He.values()),function(Le){return se.createBindingElement(void 0,Le.propertyName,Le.name)})),void 0,void 0,se.createCallExpression(se.createIdentifier("require"),void 0,[se.createStringLiteral(pe)]))],2));e.setParentRecursive(Me,!1),w=e.insertStatementAfterCustomPrologue(w.slice(),Me)}}return w!==A.statements&&(A=se.updateSourceFile(A,w)),Q=void 0,A}function ae(u){return u.transformFlags&2?E(u):u}function E(u){switch(u.kind){case 281:return y(u,!1);case 282:return S(u,!1);case 285:return k(u,!1);case 291:return B(u);default:return e.visitEachChild(u,ae,K)}}function I(u){switch(u.kind){case 11:return q(u);case 291:return B(u);case 281:return y(u,!0);case 282:return S(u,!0);case 285:return k(u,!0);default:return e.Debug.failBadSyntaxKind(u)}}function f(u){for(var A=!1,w=0,z=u.attributes.properties;w<z.length;w++){var U=z[w];if(e.isJsxSpreadAttribute(U))A=!0;else if(A&&e.isJsxAttribute(U)&&U.name.escapedText==="key")return!0}return!1}function m(u){return Q.importSpecifier===void 0||f(u)}function y(u,A){var w=m(u.openingElement)?M:De;return w(u.openingElement,u.children,A,u)}function S(u,A){var w=m(u)?M:De;return w(u,void 0,A,u)}function k(u,A){var w=Q.importSpecifier===void 0?V:H;return w(u.openingFragment,u.children,A,u)}function C(u){var A=me(u);return A&&se.createObjectLiteralExpression([A])}function me(u){var A=e.getSemanticJsxChildren(u);if(e.length(A)===1&&!A[0].dotDotDotToken){var w=I(A[0]);return w&&se.createPropertyAssignment("children",w)}var z=e.mapDefined(u,I);return e.length(z)?se.createPropertyAssignment("children",se.createArrayLiteralExpression(z)):void 0}function De(u,A,w,z){var U=T(u),ge=A&&A.length?me(A):void 0,pe=e.find(u.attributes.properties,function(Me){return!!Me.name&&e.isIdentifier(Me.name)&&Me.name.escapedText==="key"}),He=pe?e.filter(u.attributes.properties,function(Me){return Me!==pe}):u.attributes.properties,Be=e.length(He)?F(He,ge):se.createObjectLiteralExpression(ge?[ge]:e.emptyArray);return X(U,Be,pe,A||e.emptyArray,w,z)}function X(u,A,w,z,U,ge){var pe,He=e.getSemanticJsxChildren(z),Be=e.length(He)>1||!!((pe=He[0])===null||pe===void 0?void 0:pe.dotDotDotToken),Me=[u,A];if(w&&Me.push(J(w.initializer)),ie.jsx===5){var Le=e.getOriginalNode(_e);if(Le&&e.isSourceFile(Le)){w===void 0&&Me.push(se.createVoidZero()),Me.push(Be?se.createTrue():se.createFalse());var Ae=e.getLineAndCharacterOfPosition(Le,ge.pos);Me.push(se.createObjectLiteralExpression([se.createPropertyAssignment("fileName",p()),se.createPropertyAssignment("lineNumber",se.createNumericLiteral(Ae.line+1)),se.createPropertyAssignment("columnNumber",se.createNumericLiteral(Ae.character+1))])),Me.push(se.createThis())}}var Xe=e.setTextRange(se.createCallExpression(le(Be),void 0,Me),ge);return U&&e.startOnNewLine(Xe),Xe}function M(u,A,w,z){var U=T(u),ge=u.attributes.properties,pe=e.length(ge)?F(ge):se.createNull(),He=Q.importSpecifier===void 0?e.createJsxFactoryExpression(se,K.getEmitResolver().getJsxFactoryEntity(_e),ie.reactNamespace,u):te("createElement"),Be=e.createExpressionForJsxElement(se,He,U,pe,e.mapDefined(A,I),z);return w&&e.startOnNewLine(Be),Be}function H(u,A,w,z){var U;if(A&&A.length){var ge=C(A);ge&&(U=ge)}return X(de(),U||se.createObjectLiteralExpression([]),void 0,A,w,z)}function V(u,A,w,z){var U=e.createExpressionForJsxFragment(se,K.getEmitResolver().getJsxFactoryEntity(_e),K.getEmitResolver().getJsxFragmentFactoryEntity(_e),ie.reactNamespace,e.mapDefined(A,I),u,z);return w&&e.startOnNewLine(U),U}function h(u){return se.createSpreadAssignment(e.visitNode(u.expression,ae,e.isExpression))}function F(u,A){var w=e.getEmitScriptTarget(ie);return w&&w>=5?se.createObjectLiteralExpression($(u,A)):L(u,A)}function $(u,A){var w=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(z,U){return e.map(z,function(ge){return U?h(ge):N(ge)})}));return A&&w.push(A),w}function L(u,A){var w=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(z,U){return U?e.map(z,P):se.createObjectLiteralExpression(e.map(z,N))}));return e.isJsxSpreadAttribute(u[0])&&w.unshift(se.createObjectLiteralExpression()),A&&w.push(se.createObjectLiteralExpression([A])),e.singleOrUndefined(w)||O().createAssignHelper(w)}function P(u){return e.visitNode(u.expression,ae,e.isExpression)}function N(u){var A=Z(u),w=J(u.initializer);return se.createPropertyAssignment(A,w)}function J(u){if(u===void 0)return se.createTrue();if(u.kind===10){var A=u.singleQuote!==void 0?u.singleQuote:!e.isStringDoubleQuoted(u,_e),w=se.createStringLiteral(x(u.text)||u.text,A);return e.setTextRange(w,u)}return u.kind===291?u.expression===void 0?se.createTrue():e.visitNode(u.expression,ae,e.isExpression):e.isJsxElement(u)?y(u,!1):e.isJsxSelfClosingElement(u)?S(u,!1):e.isJsxFragment(u)?k(u,!1):e.Debug.failBadSyntaxKind(u)}function q(u){var A=G(u.text);return A===void 0?void 0:se.createStringLiteral(A)}function G(u){for(var A,w=0,z=-1,U=0;U<u.length;U++){var ge=u.charCodeAt(U);e.isLineBreak(ge)?(w!==-1&&z!==-1&&(A=ye(A,u.substr(w,z-w+1))),w=-1):e.isWhiteSpaceSingleLine(ge)||(z=U,w===-1&&(w=U))}return w!==-1?ye(A,u.substr(w)):A}function ye(u,A){var w=b(A);return u===void 0?w:u+" "+w}function b(u){return u.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(A,w,z,U,ge,pe,He){if(ge)return e.utf16EncodeAsString(parseInt(ge,10));if(pe)return e.utf16EncodeAsString(parseInt(pe,16));var Be=ne.get(He);return Be?e.utf16EncodeAsString(Be):A})}function x(u){var A=b(u);return A===u?void 0:A}function T(u){if(u.kind===281)return T(u.openingElement);var A=u.tagName;return e.isIdentifier(A)&&e.isIntrinsicJsxName(A.escapedText)?se.createStringLiteral(e.idText(A)):e.createExpressionFromEntityName(se,A)}function Z(u){var A=u.name,w=e.idText(A);return/^[A-Za-z_]\w*$/.test(w)?A:se.createStringLiteral(w)}function B(u){var A=e.visitNode(u.expression,ae,e.isExpression);return u.dotDotDotToken?se.createSpreadElement(A):A}}e.transformJsx=o;var ne=new e.Map(e.getEntries({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}))})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory,se=ne.hoistVariableDeclaration;return e.chainBundle(ne,O);function O(D){return D.isDeclarationFile?D:e.visitEachChild(D,ie,ne)}function ie(D){if((D.transformFlags&512)==0)return D;switch(D.kind){case 223:return _e(D);default:return e.visitEachChild(D,ie,ne)}}function _e(D){switch(D.operatorToken.kind){case 67:return Q(D);case 42:return p(D);default:return e.visitEachChild(D,ie,ne)}}function Q(D){var le,de,te=e.visitNode(D.left,ie,e.isExpression),oe=e.visitNode(D.right,ie,e.isExpression);if(e.isElementAccessExpression(te)){var ae=K.createTempVariable(se),E=K.createTempVariable(se);le=e.setTextRange(K.createElementAccessExpression(e.setTextRange(K.createAssignment(ae,te.expression),te.expression),e.setTextRange(K.createAssignment(E,te.argumentExpression),te.argumentExpression)),te),de=e.setTextRange(K.createElementAccessExpression(ae,E),te)}else if(e.isPropertyAccessExpression(te)){var ae=K.createTempVariable(se);le=e.setTextRange(K.createPropertyAccessExpression(e.setTextRange(K.createAssignment(ae,te.expression),te.expression),te.name),te),de=e.setTextRange(K.createPropertyAccessExpression(ae,te.name),te)}else le=te,de=te;return e.setTextRange(K.createAssignment(le,e.setTextRange(K.createGlobalMethodCall("Math","pow",[de,oe]),D)),D)}function p(D){var le=e.visitNode(D.left,ie,e.isExpression),de=e.visitNode(D.right,ie,e.isExpression);return e.setTextRange(K.createGlobalMethodCall("Math","pow",[le,de]),D)}}e.transformES2016=o})(fr||(fr={}));var fr;(function(e){var o;(function(p){p[p.CapturedThis=1]="CapturedThis",p[p.BlockScopedBindings=2]="BlockScopedBindings"})(o||(o={}));var ne;(function(p){p[p.Body=1]="Body",p[p.Initializer=2]="Initializer"})(ne||(ne={}));var K;(function(p){p[p.ToOriginal=0]="ToOriginal",p[p.ToOutParameter=1]="ToOutParameter"})(K||(K={}));var se;(function(p){p[p.Break=2]="Break",p[p.Continue=4]="Continue",p[p.Return=8]="Return"})(se||(se={}));var O;(function(p){p[p.None=0]="None",p[p.Function=1]="Function",p[p.ArrowFunction=2]="ArrowFunction",p[p.AsyncFunctionBody=4]="AsyncFunctionBody",p[p.NonStaticClassElement=8]="NonStaticClassElement",p[p.CapturesThis=16]="CapturesThis",p[p.ExportedVariableStatement=32]="ExportedVariableStatement",p[p.TopLevel=64]="TopLevel",p[p.Block=128]="Block",p[p.IterationStatement=256]="IterationStatement",p[p.IterationStatementBlock=512]="IterationStatementBlock",p[p.IterationContainer=1024]="IterationContainer",p[p.ForStatement=2048]="ForStatement",p[p.ForInOrForOfStatement=4096]="ForInOrForOfStatement",p[p.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",p[p.StaticInitializer=16384]="StaticInitializer",p[p.AncestorFactsMask=32767]="AncestorFactsMask",p[p.BlockScopeIncludes=0]="BlockScopeIncludes",p[p.BlockScopeExcludes=7104]="BlockScopeExcludes",p[p.SourceFileIncludes=64]="SourceFileIncludes",p[p.SourceFileExcludes=8064]="SourceFileExcludes",p[p.FunctionIncludes=65]="FunctionIncludes",p[p.FunctionExcludes=32670]="FunctionExcludes",p[p.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",p[p.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",p[p.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",p[p.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",p[p.ConstructorIncludes=73]="ConstructorIncludes",p[p.ConstructorExcludes=32662]="ConstructorExcludes",p[p.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",p[p.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",p[p.ForStatementIncludes=3328]="ForStatementIncludes",p[p.ForStatementExcludes=5056]="ForStatementExcludes",p[p.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",p[p.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",p[p.BlockIncludes=128]="BlockIncludes",p[p.BlockExcludes=6976]="BlockExcludes",p[p.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",p[p.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",p[p.StaticInitializerIncludes=16449]="StaticInitializerIncludes",p[p.StaticInitializerExcludes=32670]="StaticInitializerExcludes",p[p.NewTarget=32768]="NewTarget",p[p.CapturedLexicalThis=65536]="CapturedLexicalThis",p[p.SubtreeFactsMask=-32768]="SubtreeFactsMask",p[p.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",p[p.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(O||(O={}));var ie;(function(p){p[p.None=0]="None",p[p.UnpackedSpread=1]="UnpackedSpread",p[p.PackedSpread=2]="PackedSpread"})(ie||(ie={}));function _e(p,D){return{kind:p,expression:D}}function Q(p){var D=p.factory,le=p.getEmitHelperFactory,de=p.startLexicalEnvironment,te=p.resumeLexicalEnvironment,oe=p.endLexicalEnvironment,ae=p.hoistVariableDeclaration,E=p.getCompilerOptions(),I=p.getEmitResolver(),f=p.onSubstituteNode,m=p.onEmitNode;p.onEmitNode=As,p.onSubstituteNode=Ho;var y,S,k,C;function me(Ve){C=e.append(C,D.createVariableDeclaration(Ve))}var De,X;return e.chainBundle(p,M);function M(Ve){if(Ve.isDeclarationFile)return Ve;y=Ve,S=Ve.text;var tn=G(Ve);return e.addEmitHelpers(tn,p.readEmitHelpers()),y=void 0,S=void 0,C=void 0,k=0,tn}function H(Ve,tn){var Nn=k;return k=(k&~Ve|tn)&32767,Nn}function V(Ve,tn,Nn){k=(k&~tn|Nn)&-32768|Ve}function h(Ve){return(k&8192)!=0&&Ve.kind===250&&!Ve.expression}function F(Ve){return Ve.transformFlags&4194304&&(e.isReturnStatement(Ve)||e.isIfStatement(Ve)||e.isWithStatement(Ve)||e.isSwitchStatement(Ve)||e.isCaseBlock(Ve)||e.isCaseClause(Ve)||e.isDefaultClause(Ve)||e.isTryStatement(Ve)||e.isCatchClause(Ve)||e.isLabeledStatement(Ve)||e.isIterationStatement(Ve,!1)||e.isBlock(Ve))}function $(Ve){return(Ve.transformFlags&1024)!=0||De!==void 0||k&8192&&F(Ve)||e.isIterationStatement(Ve,!1)&&Ke(Ve)||(e.getEmitFlags(Ve)&33554432)!=0}function L(Ve){return $(Ve)?q(Ve,!1):Ve}function P(Ve){return $(Ve)?q(Ve,!0):Ve}function N(Ve){if($(Ve)){var tn=e.getOriginalNode(Ve);if(e.isPropertyDeclaration(tn)&&e.hasStaticModifier(tn)){var Nn=H(32670,16449),wn=q(Ve,!1);return V(Nn,98304,0),wn}return q(Ve,!1)}return Ve}function J(Ve){return Ve.kind===106?ao(!0):L(Ve)}function q(Ve,tn){switch(Ve.kind){case 124:return;case 260:return w(Ve);case 228:return z(Ve);case 166:return be(Ve);case 259:return Cr(Ve);case 216:return kr(Ve);case 215:return Ur(Ve);case 257:return en(Ve);case 79:return u(Ve);case 258:return cr(Ve);case 252:return ye(Ve);case 266:return b(Ve);case 238:return pn(Ve,!1);case 249:case 248:return A(Ve);case 253:return We(Ve);case 243:case 244:return xn(Ve,void 0);case 245:return An(Ve,void 0);case 246:return ai(Ve,void 0);case 247:return Dr(Ve,void 0);case 241:return ve(Ve);case 207:return Sr(Ve);case 295:return Cn(Ve);case 300:return Ge(Ve);case 164:return cn(Ve);case 206:return Ki(Ve);case 210:return dt(Ve);case 211:return ot(Ve);case 214:return or(Ve,tn);case 223:return Ee(Ve,tn);case 354:return ze(Ve,tn);case 14:case 15:case 16:case 17:return Ea(Ve);case 10:return ho(Ve);case 8:return Aa(Ve);case 212:return Vi(Ve);case 225:return Xi(Ve);case 226:return Vn(Ve);case 227:return Co(Ve);case 106:return ao(!1);case 108:return Z(Ve);case 233:return fo(Ve);case 171:return On(Ve);case 174:case 175:return Xn(Ve);case 240:return xe(Ve);case 250:return T(Ve);case 219:return B(Ve);default:return e.visitEachChild(Ve,L,p)}}function G(Ve){var tn=H(8064,64),Nn=[],wn=[];de();var Je=D.copyPrologue(Ve.statements,Nn,!1,L);return e.addRange(wn,e.visitNodes(Ve.statements,L,e.isStatement,Je)),C&&wn.push(D.createVariableStatement(void 0,D.createVariableDeclarationList(C))),D.mergeLexicalEnvironment(Nn,oe()),er(Nn,Ve),V(tn,0,0),D.updateSourceFile(Ve,e.setTextRange(D.createNodeArray(e.concatenate(Nn,wn)),Ve.statements))}function ye(Ve){if(De!==void 0){var tn=De.allowedNonLabeledJumps;De.allowedNonLabeledJumps|=2;var Nn=e.visitEachChild(Ve,L,p);return De.allowedNonLabeledJumps=tn,Nn}return e.visitEachChild(Ve,L,p)}function b(Ve){var tn=H(7104,0),Nn=e.visitEachChild(Ve,L,p);return V(tn,0,0),Nn}function x(Ve){return e.setOriginalNode(D.createReturnStatement(D.createUniqueName("_this",16|32)),Ve)}function T(Ve){return De?(De.nonLocalJumps|=8,h(Ve)&&(Ve=x(Ve)),D.createReturnStatement(D.createObjectLiteralExpression([D.createPropertyAssignment(D.createIdentifier("value"),Ve.expression?e.visitNode(Ve.expression,L,e.isExpression):D.createVoidZero())]))):h(Ve)?x(Ve):e.visitEachChild(Ve,L,p)}function Z(Ve){return k&2&&!(k&16384)&&(k|=65536),De?k&2?(De.containsLexicalThis=!0,Ve):De.thisName||(De.thisName=D.createUniqueName("this")):Ve}function B(Ve){return e.visitEachChild(Ve,P,p)}function u(Ve){return De&&I.isArgumentsLocalBinding(Ve)?De.argumentsName||(De.argumentsName=D.createUniqueName("arguments")):Ve.hasExtendedUnicodeEscape?e.setOriginalNode(e.setTextRange(D.createIdentifier(e.unescapeLeadingUnderscores(Ve.escapedText)),Ve),Ve):Ve}function A(Ve){if(De){var tn=Ve.kind===249?2:4,Nn=Ve.label&&De.labels&&De.labels.get(e.idText(Ve.label))||!Ve.label&&De.allowedNonLabeledJumps&tn;if(!Nn){var wn=void 0,Je=Ve.label;Je?Ve.kind===249?(wn="break-".concat(Je.escapedText),Pe(De,!0,e.idText(Je),wn)):(wn="continue-".concat(Je.escapedText),Pe(De,!1,e.idText(Je),wn)):Ve.kind===249?(De.nonLocalJumps|=2,wn="break"):(De.nonLocalJumps|=4,wn="continue");var ur=D.createStringLiteral(wn);if(De.loopOutParameters.length){for(var yr=De.loopOutParameters,Jr=void 0,Mn=0;Mn<yr.length;Mn++){var _i=Hi(yr[Mn],1);Mn===0?Jr=_i:Jr=D.createBinaryExpression(Jr,27,_i)}ur=D.createBinaryExpression(Jr,27,ur)}return D.createReturnStatement(ur)}}return e.visitEachChild(Ve,L,p)}function w(Ve){var tn=D.createVariableDeclaration(D.getLocalName(Ve,!0),void 0,void 0,U(Ve));e.setOriginalNode(tn,Ve);var Nn=[],wn=D.createVariableStatement(void 0,D.createVariableDeclarationList([tn]));if(e.setOriginalNode(wn,Ve),e.setTextRange(wn,Ve),e.startOnNewLine(wn),Nn.push(wn),e.hasSyntacticModifier(Ve,1)){var Je=e.hasSyntacticModifier(Ve,1024)?D.createExportDefault(D.getLocalName(Ve)):D.createExternalModuleExport(D.getLocalName(Ve));e.setOriginalNode(Je,wn),Nn.push(Je)}var ur=e.getEmitFlags(Ve);return(ur&4194304)==0&&(Nn.push(D.createEndOfDeclarationMarker(Ve)),e.setEmitFlags(wn,ur|4194304)),e.singleOrMany(Nn)}function z(Ve){return U(Ve)}function U(Ve){Ve.name&&so();var tn=e.getClassExtendsHeritageElement(Ve),Nn=D.createFunctionExpression(void 0,void 0,void 0,void 0,tn?[D.createParameterDeclaration(void 0,void 0,D.createUniqueName("_super",16|32))]:[],void 0,ge(Ve,tn));e.setEmitFlags(Nn,e.getEmitFlags(Ve)&65536|524288);var wn=D.createPartiallyEmittedExpression(Nn);e.setTextRangeEnd(wn,Ve.end),e.setEmitFlags(wn,1536);var Je=D.createPartiallyEmittedExpression(wn);e.setTextRangeEnd(Je,e.skipTrivia(S,Ve.pos)),e.setEmitFlags(Je,1536);var ur=D.createParenthesizedExpression(D.createCallExpression(Je,void 0,tn?[e.visitNode(tn.expression,L,e.isExpression)]:[]));return e.addSyntheticLeadingComment(ur,3,"* @class "),ur}function ge(Ve,tn){var Nn=[],wn=D.getInternalName(Ve),Je=e.isIdentifierANonContextualKeyword(wn)?D.getGeneratedNameForNode(wn):wn;de(),pe(Nn,Ve,tn),He(Nn,Ve,Je,tn),t(Nn,Ve);var ur=e.createTokenRange(e.skipTrivia(S,Ve.members.end),19),yr=D.createPartiallyEmittedExpression(Je);e.setTextRangeEnd(yr,ur.end),e.setEmitFlags(yr,1536);var Jr=D.createReturnStatement(yr);e.setTextRangePos(Jr,ur.pos),e.setEmitFlags(Jr,1536|384),Nn.push(Jr),e.insertStatementsAfterStandardPrologue(Nn,oe());var Mn=D.createBlock(e.setTextRange(D.createNodeArray(Nn),Ve.members),!0);return e.setEmitFlags(Mn,1536),Mn}function pe(Ve,tn,Nn){Nn&&Ve.push(e.setTextRange(D.createExpressionStatement(le().createExtendsHelper(D.getInternalName(tn))),Nn))}function He(Ve,tn,Nn,wn){var Je=De;De=void 0;var ur=H(32662,73),yr=e.getFirstConstructorWithBody(tn),Jr=Pa(yr,wn!==void 0),Mn=D.createFunctionDeclaration(void 0,void 0,Nn,void 0,Be(yr,Jr),void 0,Le(yr,tn,wn,Jr));e.setTextRange(Mn,yr||tn),wn&&e.setEmitFlags(Mn,8),Ve.push(Mn),V(ur,98304,0),De=Je}function Be(Ve,tn){return e.visitParameterList(Ve&&!tn?Ve.parameters:void 0,L,p)||[]}function Me(Ve,tn){var Nn=[];te(),D.mergeLexicalEnvironment(Nn,oe()),tn&&Nn.push(D.createReturnStatement(Oe()));var wn=D.createNodeArray(Nn);e.setTextRange(wn,Ve.members);var Je=D.createBlock(wn,!0);return e.setTextRange(Je,Ve),e.setEmitFlags(Je,1536),Je}function Le(Ve,tn,Nn,wn){var Je=!!Nn&&e.skipOuterExpressions(Nn.expression).kind!==104;if(!Ve)return Me(tn,Je);var ur=[],yr=[];te();var Jr=e.takeWhile(Ve.body.statements,e.isPrologueDirective),Mn=Ae(Ve.body.statements,Jr),_i=Mn.superCall,di=Mn.superStatementIndex,fi=di===-1?Jr.length:di+1,Nt=fi;wn||(Nt=D.copyStandardPrologue(Ve.body.statements,ur,Nt,!1)),wn||(Nt=D.copyCustomPrologue(Ve.body.statements,yr,Nt,L,void 0));var Gt;if(wn?Gt=Oe():_i&&(Gt=Ci(_i)),Gt&&(k|=8192),d(ur,Ve),Re(ur,Ve,wn),e.addRange(yr,e.visitNodes(Ve.body.statements,L,e.isStatement,Nt)),D.mergeLexicalEnvironment(ur,oe()),Ue(ur,Ve,!1),Je||Gt)if(Gt&&fi===Ve.body.statements.length&&!(Ve.body.transformFlags&16384)){var la=e.cast(e.cast(Gt,e.isBinaryExpression).left,e.isCallExpression),na=D.createReturnStatement(Gt);e.setCommentRange(na,e.getCommentRange(la)),e.setEmitFlags(la,1536),yr.push(na)}else di<=Jr.length?mr(yr,Ve,Gt||Ne()):(mr(ur,Ve,Ne()),Gt&&wr(yr,Gt)),Xe(Ve.body)||yr.push(D.createReturnStatement(D.createUniqueName("_this",16|32)));else er(ur,Ve);var Ia=D.createBlock(e.setTextRange(D.createNodeArray(zn(zn(zn(zn([],Jr,!0),ur,!0),di<=Jr.length?e.emptyArray:e.visitNodes(Ve.body.statements,L,e.isStatement,Jr.length,di-Jr.length),!0),yr,!0)),Ve.body.statements),!0);return e.setTextRange(Ia,Ve.body),Ia}function Ae(Ve,tn){for(var Nn=tn.length;Nn<Ve.length;Nn+=1){var wn=e.getSuperCallFromStatement(Ve[Nn]);if(wn)return{superCall:wn,superStatementIndex:Nn}}return{superStatementIndex:-1}}function Xe(Ve){if(Ve.kind===250)return!0;if(Ve.kind===242){var tn=Ve;if(tn.elseStatement)return Xe(tn.thenStatement)&&Xe(tn.elseStatement)}else if(Ve.kind===238){var Nn=e.lastOrUndefined(Ve.statements);if(Nn&&Xe(Nn))return!0}return!1}function Ne(){return e.setEmitFlags(D.createThis(),4)}function Oe(){return D.createLogicalOr(D.createLogicalAnd(D.createStrictInequality(D.createUniqueName("_super",16|32),D.createNull()),D.createFunctionApplyCall(D.createUniqueName("_super",16|32),Ne(),D.createIdentifier("arguments"))),Ne())}function be(Ve){if(!Ve.dotDotDotToken)return e.isBindingPattern(Ve.name)?e.setOriginalNode(e.setTextRange(D.createParameterDeclaration(void 0,void 0,D.getGeneratedNameForNode(Ve),void 0,void 0,void 0),Ve),Ve):Ve.initializer?e.setOriginalNode(e.setTextRange(D.createParameterDeclaration(void 0,void 0,Ve.name,void 0,void 0,void 0),Ve),Ve):Ve}function Y(Ve){return Ve.initializer!==void 0||e.isBindingPattern(Ve.name)}function d(Ve,tn){if(!e.some(tn.parameters,Y))return!1;for(var Nn=!1,wn=0,Je=tn.parameters;wn<Je.length;wn++){var ur=Je[wn],yr=ur.name,Jr=ur.initializer,Mn=ur.dotDotDotToken;Mn||(e.isBindingPattern(yr)?Nn=j(Ve,ur,yr,Jr)||Nn:Jr&&(Ce(Ve,ur,yr,Jr),Nn=!0))}return Nn}function j(Ve,tn,Nn,wn){return Nn.elements.length>0?(e.insertStatementAfterCustomPrologue(Ve,e.setEmitFlags(D.createVariableStatement(void 0,D.createVariableDeclarationList(e.flattenDestructuringBinding(tn,L,p,0,D.getGeneratedNameForNode(tn)))),1048576)),!0):wn?(e.insertStatementAfterCustomPrologue(Ve,e.setEmitFlags(D.createExpressionStatement(D.createAssignment(D.getGeneratedNameForNode(tn),e.visitNode(wn,L,e.isExpression))),1048576)),!0):!1}function Ce(Ve,tn,Nn,wn){wn=e.visitNode(wn,L,e.isExpression);var Je=D.createIfStatement(D.createTypeCheck(D.cloneNode(Nn),"undefined"),e.setEmitFlags(e.setTextRange(D.createBlock([D.createExpressionStatement(e.setEmitFlags(e.setTextRange(D.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(D.cloneNode(Nn),Nn),Nn.parent),48),e.setEmitFlags(wn,48|e.getEmitFlags(wn)|1536)),tn),1536))]),tn),1|32|384|1536));e.startOnNewLine(Je),e.setTextRange(Je,tn),e.setEmitFlags(Je,384|32|1048576|1536),e.insertStatementAfterCustomPrologue(Ve,Je)}function Se(Ve,tn){return!!(Ve&&Ve.dotDotDotToken&&!tn)}function Re(Ve,tn,Nn){var wn=[],Je=e.lastOrUndefined(tn.parameters);if(!Se(Je,Nn))return!1;var ur=Je.name.kind===79?e.setParent(e.setTextRange(D.cloneNode(Je.name),Je.name),Je.name.parent):D.createTempVariable(void 0);e.setEmitFlags(ur,48);var yr=Je.name.kind===79?D.cloneNode(Je.name):ur,Jr=tn.parameters.length-1,Mn=D.createLoopVariable();wn.push(e.setEmitFlags(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(ur,void 0,void 0,D.createArrayLiteralExpression([]))])),Je),1048576));var _i=D.createForStatement(e.setTextRange(D.createVariableDeclarationList([D.createVariableDeclaration(Mn,void 0,void 0,D.createNumericLiteral(Jr))]),Je),e.setTextRange(D.createLessThan(Mn,D.createPropertyAccessExpression(D.createIdentifier("arguments"),"length")),Je),e.setTextRange(D.createPostfixIncrement(Mn),Je),D.createBlock([e.startOnNewLine(e.setTextRange(D.createExpressionStatement(D.createAssignment(D.createElementAccessExpression(yr,Jr===0?Mn:D.createSubtract(Mn,D.createNumericLiteral(Jr))),D.createElementAccessExpression(D.createIdentifier("arguments"),Mn))),Je))]));return e.setEmitFlags(_i,1048576),e.startOnNewLine(_i),wn.push(_i),Je.name.kind!==79&&wn.push(e.setEmitFlags(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList(e.flattenDestructuringBinding(Je,L,p,0,yr))),Je),1048576)),e.insertStatementsAfterCustomPrologue(Ve,wn),!0}function er(Ve,tn){return k&65536&&tn.kind!==216?(mr(Ve,tn,D.createThis()),!0):!1}function wr(Ve,tn){Xo();var Nn=D.createExpressionStatement(D.createBinaryExpression(D.createThis(),63,tn));e.insertStatementAfterCustomPrologue(Ve,Nn),e.setCommentRange(Nn,e.getOriginalNode(tn).parent)}function mr(Ve,tn,Nn){Xo();var wn=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.createUniqueName("_this",16|32),void 0,void 0,Nn)]));e.setEmitFlags(wn,1536|1048576),e.setSourceMapRange(wn,tn),e.insertStatementAfterCustomPrologue(Ve,wn)}function Ue(Ve,tn,Nn){if(k&32768){var wn=void 0;switch(tn.kind){case 216:return Ve;case 171:case 174:case 175:wn=D.createVoidZero();break;case 173:wn=D.createPropertyAccessExpression(e.setEmitFlags(D.createThis(),4),"constructor");break;case 259:case 215:wn=D.createConditionalExpression(D.createLogicalAnd(e.setEmitFlags(D.createThis(),4),D.createBinaryExpression(e.setEmitFlags(D.createThis(),4),102,D.getLocalName(tn))),void 0,D.createPropertyAccessExpression(e.setEmitFlags(D.createThis(),4),"constructor"),void 0,D.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(tn)}var Je=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.createUniqueName("_newTarget",16|32),void 0,void 0,wn)]));e.setEmitFlags(Je,1536|1048576),Nn&&(Ve=Ve.slice()),e.insertStatementAfterCustomPrologue(Ve,Je)}return Ve}function t(Ve,tn){for(var Nn=0,wn=tn.members;Nn<wn.length;Nn++){var Je=wn[Nn];switch(Je.kind){case 237:Ve.push(qr(Je));break;case 171:Ve.push(ln(Ft(tn,Je),Je,tn));break;case 174:case 175:var ur=e.getAllAccessorDeclarations(tn.members,Je);Je===ur.firstAccessor&&Ve.push(dr(Ft(tn,Je),ur,tn));break;case 173:case 172:break;default:e.Debug.failBadSyntaxKind(Je,y&&y.fileName);break}}}function qr(Ve){return e.setTextRange(D.createEmptyStatement(),Ve)}function ln(Ve,tn,Nn){var wn=e.getCommentRange(tn),Je=e.getSourceMapRange(tn),ur=rn(tn,tn,void 0,Nn),yr=e.visitNode(tn.name,L,e.isPropertyName),Jr;if(!e.isPrivateIdentifier(yr)&&e.getUseDefineForClassFields(p.getCompilerOptions())){var Mn=e.isComputedPropertyName(yr)?yr.expression:e.isIdentifier(yr)?D.createStringLiteral(e.unescapeLeadingUnderscores(yr.escapedText)):yr;Jr=D.createObjectDefinePropertyCall(Ve,Mn,D.createPropertyDescriptor({value:ur,enumerable:!1,writable:!0,configurable:!0}))}else{var _i=e.createMemberAccessForPropertyName(D,Ve,yr,tn.name);Jr=D.createAssignment(_i,ur)}e.setEmitFlags(ur,1536),e.setSourceMapRange(ur,Je);var di=e.setTextRange(D.createExpressionStatement(Jr),tn);return e.setOriginalNode(di,tn),e.setCommentRange(di,wn),e.setEmitFlags(di,48),di}function dr(Ve,tn,Nn){var wn=D.createExpressionStatement(vr(Ve,tn,Nn,!1));return e.setEmitFlags(wn,1536),e.setSourceMapRange(wn,e.getSourceMapRange(tn.firstAccessor)),wn}function vr(Ve,tn,Nn,wn){var Je=tn.firstAccessor,ur=tn.getAccessor,yr=tn.setAccessor,Jr=e.setParent(e.setTextRange(D.cloneNode(Ve),Ve),Ve.parent);e.setEmitFlags(Jr,1536|32),e.setSourceMapRange(Jr,Je.name);var Mn=e.visitNode(Je.name,L,e.isPropertyName);if(e.isPrivateIdentifier(Mn))return e.Debug.failBadSyntaxKind(Mn,"Encountered unhandled private identifier while transforming ES2015.");var _i=e.createExpressionForPropertyName(D,Mn);e.setEmitFlags(_i,1536|16),e.setSourceMapRange(_i,Je.name);var di=[];if(ur){var fi=rn(ur,void 0,void 0,Nn);e.setSourceMapRange(fi,e.getSourceMapRange(ur)),e.setEmitFlags(fi,512);var Nt=D.createPropertyAssignment("get",fi);e.setCommentRange(Nt,e.getCommentRange(ur)),di.push(Nt)}if(yr){var Gt=rn(yr,void 0,void 0,Nn);e.setSourceMapRange(Gt,e.getSourceMapRange(yr)),e.setEmitFlags(Gt,512);var la=D.createPropertyAssignment("set",Gt);e.setCommentRange(la,e.getCommentRange(yr)),di.push(la)}di.push(D.createPropertyAssignment("enumerable",ur||yr?D.createFalse():D.createTrue()),D.createPropertyAssignment("configurable",D.createTrue()));var na=D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Object"),"defineProperty"),void 0,[Jr,_i,D.createObjectLiteralExpression(di,!0)]);return wn&&e.startOnNewLine(na),na}function kr(Ve){Ve.transformFlags&16384&&!(k&16384)&&(k|=65536);var tn=De;De=void 0;var Nn=H(15232,66),wn=D.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Ve.parameters,L,p),void 0,Br(Ve));return e.setTextRange(wn,Ve),e.setOriginalNode(wn,Ve),e.setEmitFlags(wn,8),V(Nn,0,0),De=tn,wn}function Ur(Ve){var tn=e.getEmitFlags(Ve)&262144?H(32662,69):H(32670,65),Nn=De;De=void 0;var wn=e.visitParameterList(Ve.parameters,L,p),Je=Br(Ve),ur=k&32768?D.getLocalName(Ve):Ve.name;return V(tn,98304,0),De=Nn,D.updateFunctionExpression(Ve,void 0,Ve.asteriskToken,ur,void 0,wn,void 0,Je)}function Cr(Ve){var tn=De;De=void 0;var Nn=H(32670,65),wn=e.visitParameterList(Ve.parameters,L,p),Je=Br(Ve),ur=k&32768?D.getLocalName(Ve):Ve.name;return V(Nn,98304,0),De=tn,D.updateFunctionDeclaration(Ve,e.visitNodes(Ve.modifiers,L,e.isModifier),Ve.asteriskToken,ur,void 0,wn,void 0,Je)}function rn(Ve,tn,Nn,wn){var Je=De;De=void 0;var ur=wn&&e.isClassLike(wn)&&!e.isStatic(Ve)?H(32670,65|8):H(32670,65),yr=e.visitParameterList(Ve.parameters,L,p),Jr=Br(Ve);return k&32768&&!Nn&&(Ve.kind===259||Ve.kind===215)&&(Nn=D.getGeneratedNameForNode(Ve)),V(ur,98304,0),De=Je,e.setOriginalNode(e.setTextRange(D.createFunctionExpression(void 0,Ve.asteriskToken,Nn,void 0,yr,void 0,Jr),tn),Ve)}function Br(Ve){var tn=!1,Nn=!1,wn,Je,ur=[],yr=[],Jr=Ve.body,Mn;if(te(),e.isBlock(Jr)&&(Mn=D.copyStandardPrologue(Jr.statements,ur,0,!1),Mn=D.copyCustomPrologue(Jr.statements,yr,Mn,L,e.isHoistedFunction),Mn=D.copyCustomPrologue(Jr.statements,yr,Mn,L,e.isHoistedVariableStatement)),tn=d(yr,Ve)||tn,tn=Re(yr,Ve,!1)||tn,e.isBlock(Jr))Mn=D.copyCustomPrologue(Jr.statements,yr,Mn,L),wn=Jr.statements,e.addRange(yr,e.visitNodes(Jr.statements,L,e.isStatement,Mn)),!tn&&Jr.multiLine&&(tn=!0);else{e.Debug.assert(Ve.kind===216),wn=e.moveRangeEnd(Jr,-1);var _i=Ve.equalsGreaterThanToken;!e.nodeIsSynthesized(_i)&&!e.nodeIsSynthesized(Jr)&&(e.rangeEndIsOnSameLineAsRangeStart(_i,Jr,y)?Nn=!0:tn=!0);var di=e.visitNode(Jr,L,e.isExpression),fi=D.createReturnStatement(di);e.setTextRange(fi,Jr),e.moveSyntheticComments(fi,Jr),e.setEmitFlags(fi,384|32|1024),yr.push(fi),Je=Jr}if(D.mergeLexicalEnvironment(ur,oe()),Ue(ur,Ve,!1),er(ur,Ve),e.some(ur)&&(tn=!0),yr.unshift.apply(yr,ur),e.isBlock(Jr)&&e.arrayIsEqualTo(yr,Jr.statements))return Jr;var Nt=D.createBlock(e.setTextRange(D.createNodeArray(yr),wn),tn);return e.setTextRange(Nt,Ve.body),!tn&&Nn&&e.setEmitFlags(Nt,1),Je&&e.setTokenSourceMapRange(Nt,19,Je),e.setOriginalNode(Nt,Ve.body),Nt}function pn(Ve,tn){if(tn)return e.visitEachChild(Ve,L,p);var Nn=k&256?H(7104,512):H(6976,128),wn=e.visitEachChild(Ve,L,p);return V(Nn,0,0),wn}function ve(Ve){return e.visitEachChild(Ve,P,p)}function or(Ve,tn){return e.visitEachChild(Ve,tn?P:L,p)}function Ee(Ve,tn){return e.isDestructuringAssignment(Ve)?e.flattenDestructuringAssignment(Ve,L,p,0,!tn):Ve.operatorToken.kind===27?D.updateBinaryExpression(Ve,e.visitNode(Ve.left,P,e.isExpression),Ve.operatorToken,e.visitNode(Ve.right,tn?P:L,e.isExpression)):e.visitEachChild(Ve,L,p)}function ze(Ve,tn){if(tn)return e.visitEachChild(Ve,P,p);for(var Nn,wn=0;wn<Ve.elements.length;wn++){var Je=Ve.elements[wn],ur=e.visitNode(Je,wn<Ve.elements.length-1?P:L,e.isExpression);(Nn||ur!==Je)&&(Nn||(Nn=Ve.elements.slice(0,wn)),Nn.push(ur))}var yr=Nn?e.setTextRange(D.createNodeArray(Nn),Ve.elements):Ve.elements;return D.updateCommaListExpression(Ve,yr)}function Ar(Ve){return Ve.declarationList.declarations.length===1&&!!Ve.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Ve.declarationList.declarations[0].initializer)&33554432)}function xe(Ve){var tn=H(0,e.hasSyntacticModifier(Ve,1)?32:0),Nn;if(De&&(Ve.declarationList.flags&3)==0&&!Ar(Ve)){for(var wn=void 0,Je=0,ur=Ve.declarationList.declarations;Je<ur.length;Je++){var yr=ur[Je];if(hr(De,yr),yr.initializer){var Jr=void 0;e.isBindingPattern(yr.name)?Jr=e.flattenDestructuringAssignment(yr,L,p,0):(Jr=D.createBinaryExpression(yr.name,63,e.visitNode(yr.initializer,L,e.isExpression)),e.setTextRange(Jr,yr)),wn=e.append(wn,Jr)}}wn?Nn=e.setTextRange(D.createExpressionStatement(D.inlineExpressions(wn)),Ve):Nn=void 0}else Nn=e.visitEachChild(Ve,L,p);return V(tn,0,0),Nn}function cr(Ve){if(Ve.flags&3||Ve.transformFlags&524288){Ve.flags&3&&so();var tn=e.flatMap(Ve.declarations,Ve.flags&1?Qr:en),Nn=D.createVariableDeclarationList(tn);return e.setOriginalNode(Nn,Ve),e.setTextRange(Nn,Ve),e.setCommentRange(Nn,Ve),Ve.transformFlags&524288&&(e.isBindingPattern(Ve.declarations[0].name)||e.isBindingPattern(e.last(Ve.declarations).name))&&e.setSourceMapRange(Nn,Mr(tn)),Nn}return e.visitEachChild(Ve,L,p)}function Mr(Ve){for(var tn=-1,Nn=-1,wn=0,Je=Ve;wn<Je.length;wn++){var ur=Je[wn];tn=tn===-1?ur.pos:ur.pos===-1?tn:Math.min(tn,ur.pos),Nn=Math.max(Nn,ur.end)}return e.createRange(tn,Nn)}function Rr(Ve){var tn=I.getNodeCheckFlags(Ve),Nn=tn&262144,wn=tn&524288,Je=(k&64)!=0||Nn&&wn&&(k&512)!=0,ur=!Je&&(k&4096)==0&&(!I.isDeclarationWithCollidingName(Ve)||wn&&!Nn&&(k&(2048|4096))==0);return ur}function Qr(Ve){var tn=Ve.name;return e.isBindingPattern(tn)?en(Ve):!Ve.initializer&&Rr(Ve)?D.updateVariableDeclaration(Ve,Ve.name,void 0,void 0,D.createVoidZero()):e.visitEachChild(Ve,L,p)}function en(Ve){var tn=H(32,0),Nn;return e.isBindingPattern(Ve.name)?Nn=e.flattenDestructuringBinding(Ve,L,p,0,void 0,(tn&32)!=0):Nn=e.visitEachChild(Ve,L,p),V(tn,0,0),Nn}function vn(Ve){De.labels.set(e.idText(Ve.label),!0)}function Ie(Ve){De.labels.set(e.idText(Ve.label),!1)}function We(Ve){De&&!De.labels&&(De.labels=new e.Map);var tn=e.unwrapInnermostStatementOfLabel(Ve,De&&vn);return e.isIterationStatement(tn,!1)?xr(tn,Ve):D.restoreEnclosingLabel(e.visitNode(tn,L,e.isStatement,D.liftToBlock),Ve,De&&Ie)}function xr(Ve,tn){switch(Ve.kind){case 243:case 244:return xn(Ve,tn);case 245:return An(Ve,tn);case 246:return ai(Ve,tn);case 247:return Dr(Ve,tn)}}function Lr(Ve,tn,Nn,wn,Je){var ur=H(Ve,tn),yr=_r(Nn,wn,ur,Je);return V(ur,0,0),yr}function xn(Ve,tn){return Lr(0,1280,Ve,tn)}function An(Ve,tn){return Lr(5056,3328,Ve,tn)}function Qn(Ve){return D.updateForStatement(Ve,e.visitNode(Ve.initializer,P,e.isForInitializer),e.visitNode(Ve.condition,L,e.isExpression),e.visitNode(Ve.incrementor,P,e.isExpression),e.visitNode(Ve.statement,L,e.isStatement,D.liftToBlock))}function ai(Ve,tn){return Lr(3008,5376,Ve,tn)}function Dr(Ve,tn){return Lr(3008,5376,Ve,tn,E.downlevelIteration?je:on)}function Pr(Ve,tn,Nn){var wn=[],Je=Ve.initializer;if(e.isVariableDeclarationList(Je)){Ve.initializer.flags&3&&so();var ur=e.firstOrUndefined(Je.declarations);if(ur&&e.isBindingPattern(ur.name)){var yr=e.flattenDestructuringBinding(ur,L,p,0,tn),Jr=e.setTextRange(D.createVariableDeclarationList(yr),Ve.initializer);e.setOriginalNode(Jr,Ve.initializer),e.setSourceMapRange(Jr,e.createRange(yr[0].pos,e.last(yr).end)),wn.push(D.createVariableStatement(void 0,Jr))}else wn.push(e.setTextRange(D.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(D.createVariableDeclarationList([D.createVariableDeclaration(ur?ur.name:D.createTempVariable(void 0),void 0,void 0,tn)]),e.moveRangePos(Je,-1)),Je)),e.moveRangeEnd(Je,-1)))}else{var Mn=D.createAssignment(Je,tn);e.isDestructuringAssignment(Mn)?wn.push(D.createExpressionStatement(Ee(Mn,!0))):(e.setTextRangeEnd(Mn,Je.end),wn.push(e.setTextRange(D.createExpressionStatement(e.visitNode(Mn,L,e.isExpression)),e.moveRangeEnd(Je,-1))))}if(Nn)return jr(e.addRange(wn,Nn));var _i=e.visitNode(Ve.statement,L,e.isStatement,D.liftToBlock);return e.isBlock(_i)?D.updateBlock(_i,e.setTextRange(D.createNodeArray(e.concatenate(wn,_i.statements)),_i.statements)):(wn.push(_i),jr(wn))}function jr(Ve){return e.setEmitFlags(D.createBlock(D.createNodeArray(Ve),!0),48|384)}function on(Ve,tn,Nn){var wn=e.visitNode(Ve.expression,L,e.isExpression),Je=D.createLoopVariable(),ur=e.isIdentifier(wn)?D.getGeneratedNameForNode(wn):D.createTempVariable(void 0);e.setEmitFlags(wn,48|e.getEmitFlags(wn));var yr=e.setTextRange(D.createForStatement(e.setEmitFlags(e.setTextRange(D.createVariableDeclarationList([e.setTextRange(D.createVariableDeclaration(Je,void 0,void 0,D.createNumericLiteral(0)),e.moveRangePos(Ve.expression,-1)),e.setTextRange(D.createVariableDeclaration(ur,void 0,void 0,wn),Ve.expression)]),Ve.expression),2097152),e.setTextRange(D.createLessThan(Je,D.createPropertyAccessExpression(ur,"length")),Ve.expression),e.setTextRange(D.createPostfixIncrement(Je),Ve.expression),Pr(Ve,D.createElementAccessExpression(ur,Je),Nn)),Ve);return e.setEmitFlags(yr,256),e.setTextRange(yr,Ve),D.restoreEnclosingLabel(yr,tn,De&&Ie)}function je(Ve,tn,Nn,wn){var Je=e.visitNode(Ve.expression,L,e.isExpression),ur=e.isIdentifier(Je)?D.getGeneratedNameForNode(Je):D.createTempVariable(void 0),yr=e.isIdentifier(Je)?D.getGeneratedNameForNode(ur):D.createTempVariable(void 0),Jr=D.createUniqueName("e"),Mn=D.getGeneratedNameForNode(Jr),_i=D.createTempVariable(void 0),di=e.setTextRange(le().createValuesHelper(Je),Ve.expression),fi=D.createCallExpression(D.createPropertyAccessExpression(ur,"next"),void 0,[]);ae(Jr),ae(_i);var Nt=wn&1024?D.inlineExpressions([D.createAssignment(Jr,D.createVoidZero()),di]):di,Gt=e.setEmitFlags(e.setTextRange(D.createForStatement(e.setEmitFlags(e.setTextRange(D.createVariableDeclarationList([e.setTextRange(D.createVariableDeclaration(ur,void 0,void 0,Nt),Ve.expression),D.createVariableDeclaration(yr,void 0,void 0,fi)]),Ve.expression),2097152),D.createLogicalNot(D.createPropertyAccessExpression(yr,"done")),D.createAssignment(yr,fi),Pr(Ve,D.createPropertyAccessExpression(yr,"value"),Nn)),Ve),256);return D.createTryStatement(D.createBlock([D.restoreEnclosingLabel(Gt,tn,De&&Ie)]),D.createCatchClause(D.createVariableDeclaration(Mn),e.setEmitFlags(D.createBlock([D.createExpressionStatement(D.createAssignment(Jr,D.createObjectLiteralExpression([D.createPropertyAssignment("error",Mn)])))]),1)),D.createBlock([D.createTryStatement(D.createBlock([e.setEmitFlags(D.createIfStatement(D.createLogicalAnd(D.createLogicalAnd(yr,D.createLogicalNot(D.createPropertyAccessExpression(yr,"done"))),D.createAssignment(_i,D.createPropertyAccessExpression(ur,"return"))),D.createExpressionStatement(D.createFunctionCallCall(_i,ur,[]))),1)]),void 0,e.setEmitFlags(D.createBlock([e.setEmitFlags(D.createIfStatement(Jr,D.createThrowStatement(D.createPropertyAccessExpression(Jr,"error"))),1)]),1))]))}function Sr(Ve){for(var tn=Ve.properties,Nn=-1,wn=!1,Je=0;Je<tn.length;Je++){var ur=tn[Je];if(ur.transformFlags&1048576&&k&4||(wn=e.Debug.checkDefined(ur.name).kind===164)){Nn=Je;break}}if(Nn<0)return e.visitEachChild(Ve,L,p);var yr=D.createTempVariable(ae),Jr=[],Mn=D.createAssignment(yr,e.setEmitFlags(D.createObjectLiteralExpression(e.visitNodes(tn,L,e.isObjectLiteralElementLike,0,Nn),Ve.multiLine),wn?65536:0));return Ve.multiLine&&e.startOnNewLine(Mn),Jr.push(Mn),hn(Jr,Ve,yr,Nn),Jr.push(Ve.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(D.cloneNode(yr),yr),yr.parent)):yr),D.inlineExpressions(Jr)}function Te(Ve){return(I.getNodeCheckFlags(Ve)&131072)!=0}function Ye(Ve){return e.isForStatement(Ve)&&!!Ve.initializer&&Te(Ve.initializer)}function Qe(Ve){return e.isForStatement(Ve)&&!!Ve.condition&&Te(Ve.condition)}function ue(Ve){return e.isForStatement(Ve)&&!!Ve.incrementor&&Te(Ve.incrementor)}function Ke(Ve){return tr(Ve)||Ye(Ve)}function tr(Ve){return(I.getNodeCheckFlags(Ve)&65536)!=0}function hr(Ve,tn){Ve.hoistedLocalVariables||(Ve.hoistedLocalVariables=[]),Nn(tn.name);function Nn(wn){if(wn.kind===79)Ve.hoistedLocalVariables.push(wn);else for(var Je=0,ur=wn.elements;Je<ur.length;Je++){var yr=ur[Je];e.isOmittedExpression(yr)||Nn(yr.name)}}}function _r(Ve,tn,Nn,wn){if(!Ke(Ve)){var Je=void 0;De&&(Je=De.allowedNonLabeledJumps,De.allowedNonLabeledJumps=2|4);var ur=wn?wn(Ve,tn,void 0,Nn):D.restoreEnclosingLabel(e.isForStatement(Ve)?Qn(Ve):e.visitEachChild(Ve,L,p),tn,De&&Ie);return De&&(De.allowedNonLabeledJumps=Je),ur}var yr=qn(Ve),Jr=[],Mn=De;De=yr;var _i=Ye(Ve)?Ai(Ve,yr):void 0,di=tr(Ve)?ti(Ve,yr,Mn):void 0;De=Mn,_i&&Jr.push(_i.functionDeclaration),di&&Jr.push(di.functionDeclaration),yn(Jr,yr,Mn),_i&&Jr.push(gi(_i.functionName,_i.containsYield));var fi;if(di)if(wn)fi=wn(Ve,tn,di.part,Nn);else{var Nt=Or(Ve,_i,D.createBlock(di.part,!0));fi=D.restoreEnclosingLabel(Nt,tn,De&&Ie)}else{var Gt=Or(Ve,_i,e.visitNode(Ve.statement,L,e.isStatement,D.liftToBlock));fi=D.restoreEnclosingLabel(Gt,tn,De&&Ie)}return Jr.push(fi),Jr}function Or(Ve,tn,Nn){switch(Ve.kind){case 245:return zr(Ve,tn,Nn);case 246:return Vr(Ve,Nn);case 247:return fn(Ve,Nn);case 243:return Wn(Ve,Nn);case 244:return bn(Ve,Nn);default:return e.Debug.failBadSyntaxKind(Ve,"IterationStatement expected")}}function zr(Ve,tn,Nn){var wn=Ve.condition&&Te(Ve.condition),Je=wn||Ve.incrementor&&Te(Ve.incrementor);return D.updateForStatement(Ve,e.visitNode(tn?tn.part:Ve.initializer,P,e.isForInitializer),e.visitNode(wn?void 0:Ve.condition,L,e.isExpression),e.visitNode(Je?void 0:Ve.incrementor,P,e.isExpression),Nn)}function fn(Ve,tn){return D.updateForOfStatement(Ve,void 0,e.visitNode(Ve.initializer,L,e.isForInitializer),e.visitNode(Ve.expression,L,e.isExpression),tn)}function Vr(Ve,tn){return D.updateForInStatement(Ve,e.visitNode(Ve.initializer,L,e.isForInitializer),e.visitNode(Ve.expression,L,e.isExpression),tn)}function Wn(Ve,tn){return D.updateDoStatement(Ve,tn,e.visitNode(Ve.expression,L,e.isExpression))}function bn(Ve,tn){return D.updateWhileStatement(Ve,e.visitNode(Ve.expression,L,e.isExpression),tn)}function qn(Ve){var tn;switch(Ve.kind){case 245:case 246:case 247:var Nn=Ve.initializer;Nn&&Nn.kind===258&&(tn=Nn);break}var wn=[],Je=[];if(tn&&e.getCombinedNodeFlags(tn)&3)for(var ur=Ye(Ve)||Qe(Ve)||ue(Ve),yr=0,Jr=tn.declarations;yr<Jr.length;yr++){var Mn=Jr[yr];we(Ve,Mn,wn,Je,ur)}var _i={loopParameters:wn,loopOutParameters:Je};return De&&(De.argumentsName&&(_i.argumentsName=De.argumentsName),De.thisName&&(_i.thisName=De.thisName),De.hoistedLocalVariables&&(_i.hoistedLocalVariables=De.hoistedLocalVariables)),_i}function yn(Ve,tn,Nn){var wn;if(tn.argumentsName&&(Nn?Nn.argumentsName=tn.argumentsName:(wn||(wn=[])).push(D.createVariableDeclaration(tn.argumentsName,void 0,void 0,D.createIdentifier("arguments")))),tn.thisName&&(Nn?Nn.thisName=tn.thisName:(wn||(wn=[])).push(D.createVariableDeclaration(tn.thisName,void 0,void 0,D.createIdentifier("this")))),tn.hoistedLocalVariables)if(Nn)Nn.hoistedLocalVariables=tn.hoistedLocalVariables;else{wn||(wn=[]);for(var Je=0,ur=tn.hoistedLocalVariables;Je<ur.length;Je++){var yr=ur[Je];wn.push(D.createVariableDeclaration(yr))}}if(tn.loopOutParameters.length){wn||(wn=[]);for(var Jr=0,Mn=tn.loopOutParameters;Jr<Mn.length;Jr++){var _i=Mn[Jr];wn.push(D.createVariableDeclaration(_i.outParamName))}}tn.conditionVariable&&(wn||(wn=[]),wn.push(D.createVariableDeclaration(tn.conditionVariable,void 0,void 0,D.createFalse()))),wn&&Ve.push(D.createVariableStatement(void 0,D.createVariableDeclarationList(wn)))}function Hn(Ve){return D.createVariableDeclaration(Ve.originalName,void 0,void 0,Ve.outParamName)}function Ai(Ve,tn){var Nn=D.createUniqueName("_loop_init"),wn=(Ve.initializer.transformFlags&1048576)!=0,Je=0;tn.containsLexicalThis&&(Je|=8),wn&&k&4&&(Je|=262144);var ur=[];ur.push(D.createVariableStatement(void 0,Ve.initializer)),Ni(tn.loopOutParameters,2,1,ur);var yr=D.createVariableStatement(void 0,e.setEmitFlags(D.createVariableDeclarationList([D.createVariableDeclaration(Nn,void 0,void 0,e.setEmitFlags(D.createFunctionExpression(void 0,wn?D.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(D.createBlock(ur,!0),L,e.isBlock)),Je))]),2097152)),Jr=D.createVariableDeclarationList(e.map(tn.loopOutParameters,Hn));return{functionName:Nn,containsYield:wn,functionDeclaration:yr,part:Jr}}function ti(Ve,tn,Nn){var wn=D.createUniqueName("_loop");de();var Je=e.visitNode(Ve.statement,L,e.isStatement,D.liftToBlock),ur=oe(),yr=[];(Qe(Ve)||ue(Ve))&&(tn.conditionVariable=D.createUniqueName("inc"),Ve.incrementor?yr.push(D.createIfStatement(tn.conditionVariable,D.createExpressionStatement(e.visitNode(Ve.incrementor,L,e.isExpression)),D.createExpressionStatement(D.createAssignment(tn.conditionVariable,D.createTrue())))):yr.push(D.createIfStatement(D.createLogicalNot(tn.conditionVariable),D.createExpressionStatement(D.createAssignment(tn.conditionVariable,D.createTrue())))),Qe(Ve)&&yr.push(D.createIfStatement(D.createPrefixUnaryExpression(53,e.visitNode(Ve.condition,L,e.isExpression)),e.visitNode(D.createBreakStatement(),L,e.isStatement)))),e.isBlock(Je)?e.addRange(yr,Je.statements):yr.push(Je),Ni(tn.loopOutParameters,1,1,yr),e.insertStatementsAfterStandardPrologue(yr,ur);var Jr=D.createBlock(yr,!0);e.isBlock(Je)&&e.setOriginalNode(Jr,Je);var Mn=(Ve.statement.transformFlags&1048576)!=0,_i=524288;tn.containsLexicalThis&&(_i|=8),Mn&&(k&4)!=0&&(_i|=262144);var di=D.createVariableStatement(void 0,e.setEmitFlags(D.createVariableDeclarationList([D.createVariableDeclaration(wn,void 0,void 0,e.setEmitFlags(D.createFunctionExpression(void 0,Mn?D.createToken(41):void 0,void 0,void 0,tn.loopParameters,void 0,Jr),_i))]),2097152)),fi=Pn(wn,tn,Nn,Mn);return{functionName:wn,containsYield:Mn,functionDeclaration:di,part:fi}}function Hi(Ve,tn){var Nn=tn===0?Ve.outParamName:Ve.originalName,wn=tn===0?Ve.originalName:Ve.outParamName;return D.createBinaryExpression(wn,63,Nn)}function Ni(Ve,tn,Nn,wn){for(var Je=0,ur=Ve;Je<ur.length;Je++){var yr=ur[Je];yr.flags&tn&&wn.push(D.createExpressionStatement(Hi(yr,Nn)))}}function gi(Ve,tn){var Nn=D.createCallExpression(Ve,void 0,[]),wn=tn?D.createYieldExpression(D.createToken(41),e.setEmitFlags(Nn,8388608)):Nn;return D.createExpressionStatement(wn)}function Pn(Ve,tn,Nn,wn){var Je=[],ur=!(tn.nonLocalJumps&~4)&&!tn.labeledNonLocalBreaks&&!tn.labeledNonLocalContinues,yr=D.createCallExpression(Ve,void 0,e.map(tn.loopParameters,function(Nt){return Nt.name})),Jr=wn?D.createYieldExpression(D.createToken(41),e.setEmitFlags(yr,8388608)):yr;if(ur)Je.push(D.createExpressionStatement(Jr)),Ni(tn.loopOutParameters,1,0,Je);else{var Mn=D.createUniqueName("state"),_i=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(Mn,void 0,void 0,Jr)]));if(Je.push(_i),Ni(tn.loopOutParameters,1,0,Je),tn.nonLocalJumps&8){var di=void 0;Nn?(Nn.nonLocalJumps|=8,di=D.createReturnStatement(Mn)):di=D.createReturnStatement(D.createPropertyAccessExpression(Mn,"value")),Je.push(D.createIfStatement(D.createTypeCheck(Mn,"object"),di))}if(tn.nonLocalJumps&2&&Je.push(D.createIfStatement(D.createStrictEquality(Mn,D.createStringLiteral("break")),D.createBreakStatement())),tn.labeledNonLocalBreaks||tn.labeledNonLocalContinues){var fi=[];Ir(tn.labeledNonLocalBreaks,!0,Mn,Nn,fi),Ir(tn.labeledNonLocalContinues,!1,Mn,Nn,fi),Je.push(D.createSwitchStatement(Mn,D.createCaseBlock(fi)))}}return Je}function Pe(Ve,tn,Nn,wn){tn?(Ve.labeledNonLocalBreaks||(Ve.labeledNonLocalBreaks=new e.Map),Ve.labeledNonLocalBreaks.set(Nn,wn)):(Ve.labeledNonLocalContinues||(Ve.labeledNonLocalContinues=new e.Map),Ve.labeledNonLocalContinues.set(Nn,wn))}function Ir(Ve,tn,Nn,wn,Je){!Ve||Ve.forEach(function(ur,yr){var Jr=[];if(!wn||wn.labels&&wn.labels.get(yr)){var Mn=D.createIdentifier(yr);Jr.push(tn?D.createBreakStatement(Mn):D.createContinueStatement(Mn))}else Pe(wn,tn,yr,ur),Jr.push(D.createReturnStatement(Nn));Je.push(D.createCaseClause(D.createStringLiteral(ur),Jr))})}function we(Ve,tn,Nn,wn,Je){var ur=tn.name;if(e.isBindingPattern(ur))for(var yr=0,Jr=ur.elements;yr<Jr.length;yr++){var Mn=Jr[yr];e.isOmittedExpression(Mn)||we(Ve,Mn,Nn,wn,Je)}else{Nn.push(D.createParameterDeclaration(void 0,void 0,ur));var _i=I.getNodeCheckFlags(tn);if(_i&4194304||Je){var di=D.createUniqueName("out_"+e.idText(ur)),fi=0;_i&4194304&&(fi|=1),e.isForStatement(Ve)&&(Ve.initializer&&I.isBindingCapturedByNode(Ve.initializer,tn)&&(fi|=2),(Ve.condition&&I.isBindingCapturedByNode(Ve.condition,tn)||Ve.incrementor&&I.isBindingCapturedByNode(Ve.incrementor,tn))&&(fi|=1)),wn.push({flags:fi,originalName:ur,outParamName:di})}}}function hn(Ve,tn,Nn,wn){for(var Je=tn.properties,ur=Je.length,yr=wn;yr<ur;yr++){var Jr=Je[yr];switch(Jr.kind){case 174:case 175:var Mn=e.getAllAccessorDeclarations(tn.properties,Jr);Jr===Mn.firstAccessor&&Ve.push(vr(Nn,Mn,tn,!!tn.multiLine));break;case 171:Ve.push(nn(Jr,Nn,tn,tn.multiLine));break;case 299:Ve.push(jn(Jr,Nn,tn.multiLine));break;case 300:Ve.push(gn(Jr,Nn,tn.multiLine));break;default:e.Debug.failBadSyntaxKind(tn);break}}}function jn(Ve,tn,Nn){var wn=D.createAssignment(e.createMemberAccessForPropertyName(D,tn,e.visitNode(Ve.name,L,e.isPropertyName)),e.visitNode(Ve.initializer,L,e.isExpression));return e.setTextRange(wn,Ve),Nn&&e.startOnNewLine(wn),wn}function gn(Ve,tn,Nn){var wn=D.createAssignment(e.createMemberAccessForPropertyName(D,tn,e.visitNode(Ve.name,L,e.isPropertyName)),D.cloneNode(Ve.name));return e.setTextRange(wn,Ve),Nn&&e.startOnNewLine(wn),wn}function nn(Ve,tn,Nn,wn){var Je=D.createAssignment(e.createMemberAccessForPropertyName(D,tn,e.visitNode(Ve.name,L,e.isPropertyName)),rn(Ve,Ve,void 0,Nn));return e.setTextRange(Je,Ve),wn&&e.startOnNewLine(Je),Je}function Cn(Ve){var tn=H(7104,0),Nn;if(e.Debug.assert(!!Ve.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Ve.variableDeclaration.name)){var wn=D.createTempVariable(void 0),Je=D.createVariableDeclaration(wn);e.setTextRange(Je,Ve.variableDeclaration);var ur=e.flattenDestructuringBinding(Ve.variableDeclaration,L,p,0,wn),yr=D.createVariableDeclarationList(ur);e.setTextRange(yr,Ve.variableDeclaration);var Jr=D.createVariableStatement(void 0,yr);Nn=D.updateCatchClause(Ve,Je,Dn(Ve.block,Jr))}else Nn=e.visitEachChild(Ve,L,p);return V(tn,0,0),Nn}function Dn(Ve,tn){var Nn=e.visitNodes(Ve.statements,L,e.isStatement);return D.updateBlock(Ve,zn([tn],Nn,!0))}function On(Ve){e.Debug.assert(!e.isComputedPropertyName(Ve.name));var tn=rn(Ve,e.moveRangePos(Ve,-1),void 0,void 0);return e.setEmitFlags(tn,512|e.getEmitFlags(tn)),e.setTextRange(D.createPropertyAssignment(Ve.name,tn),Ve)}function Xn(Ve){e.Debug.assert(!e.isComputedPropertyName(Ve.name));var tn=De;De=void 0;var Nn=H(32670,65),wn,Je=e.visitParameterList(Ve.parameters,L,p),ur=Br(Ve);return Ve.kind===174?wn=D.updateGetAccessorDeclaration(Ve,Ve.modifiers,Ve.name,Je,Ve.type,ur):wn=D.updateSetAccessorDeclaration(Ve,Ve.modifiers,Ve.name,Je,ur),V(Nn,98304,0),De=tn,wn}function Ge(Ve){return e.setTextRange(D.createPropertyAssignment(Ve.name,u(D.cloneNode(Ve.name))),Ve)}function cn(Ve){return e.visitEachChild(Ve,L,p)}function Vn(Ve){return e.visitEachChild(Ve,L,p)}function Ki(Ve){return e.some(Ve.elements,e.isSpreadElement)?Zi(Ve.elements,!1,!!Ve.multiLine,!!Ve.elements.hasTrailingComma):e.visitEachChild(Ve,L,p)}function dt(Ve){if(e.getEmitFlags(Ve)&33554432)return qi(Ve);var tn=e.skipOuterExpressions(Ve.expression);return tn.kind===106||e.isSuperProperty(tn)||e.some(Ve.arguments,e.isSpreadElement)?Tt(Ve,!0):D.updateCallExpression(Ve,e.visitNode(Ve.expression,J,e.isExpression),void 0,e.visitNodes(Ve.arguments,L,e.isExpression))}function qi(Ve){var tn=e.cast(e.cast(e.skipOuterExpressions(Ve.expression),e.isArrowFunction).body,e.isBlock),Nn=function(ds){return e.isVariableStatement(ds)&&!!e.first(ds.declarationList.declarations).initializer},wn=De;De=void 0;var Je=e.visitNodes(tn.statements,N,e.isStatement);De=wn;var ur=e.filter(Je,Nn),yr=e.filter(Je,function(ds){return!Nn(ds)}),Jr=e.cast(e.first(ur),e.isVariableStatement),Mn=Jr.declarationList.declarations[0],_i=e.skipOuterExpressions(Mn.initializer),di=e.tryCast(_i,e.isAssignmentExpression);!di&&e.isBinaryExpression(_i)&&_i.operatorToken.kind===27&&(di=e.tryCast(_i.left,e.isAssignmentExpression));var fi=e.cast(di?e.skipOuterExpressions(di.right):_i,e.isCallExpression),Nt=e.cast(e.skipOuterExpressions(fi.expression),e.isFunctionExpression),Gt=Nt.body.statements,la=0,na=-1,Ia=[];if(di){var bs=e.tryCast(Gt[la],e.isExpressionStatement);bs&&(Ia.push(bs),la++),Ia.push(Gt[la]),la++,Ia.push(D.createExpressionStatement(D.createAssignment(di.left,e.cast(Mn.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(Gt,na));)na--;return e.addRange(Ia,Gt,la,na),na<-1&&e.addRange(Ia,Gt,na+1),e.addRange(Ia,yr),e.addRange(Ia,ur,1),D.restoreOuterExpressions(Ve.expression,D.restoreOuterExpressions(Mn.initializer,D.restoreOuterExpressions(di&&di.right,D.updateCallExpression(fi,D.restoreOuterExpressions(fi.expression,D.updateFunctionExpression(Nt,void 0,void 0,void 0,void 0,Nt.parameters,void 0,D.updateBlock(Nt.body,Ia))),void 0,fi.arguments))))}function Ci(Ve){return Tt(Ve,!1)}function Tt(Ve,tn){if(Ve.transformFlags&32768||Ve.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Ve.expression))){var Nn=D.createCallBinding(Ve.expression,ae),wn=Nn.target,Je=Nn.thisArg;Ve.expression.kind===106&&e.setEmitFlags(Je,4);var ur=void 0;if(Ve.transformFlags&32768?ur=D.createFunctionApplyCall(e.visitNode(wn,J,e.isExpression),Ve.expression.kind===106?Je:e.visitNode(Je,L,e.isExpression),Zi(Ve.arguments,!0,!1,!1)):ur=e.setTextRange(D.createFunctionCallCall(e.visitNode(wn,J,e.isExpression),Ve.expression.kind===106?Je:e.visitNode(Je,L,e.isExpression),e.visitNodes(Ve.arguments,L,e.isExpression)),Ve),Ve.expression.kind===106){var yr=D.createLogicalOr(ur,Ne());ur=tn?D.createAssignment(D.createUniqueName("_this",16|32),yr):yr}return e.setOriginalNode(ur,Ve)}return e.visitEachChild(Ve,L,p)}function ot(Ve){if(e.some(Ve.arguments,e.isSpreadElement)){var tn=D.createCallBinding(D.createPropertyAccessExpression(Ve.expression,"bind"),ae),Nn=tn.target,wn=tn.thisArg;return D.createNewExpression(D.createFunctionApplyCall(e.visitNode(Nn,L,e.isExpression),wn,Zi(D.createNodeArray(zn([D.createVoidZero()],Ve.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Ve,L,p)}function Zi(Ve,tn,Nn,wn){var Je=Ve.length,ur=e.flatten(e.spanMap(Ve,ni,function(Nt,Gt,la,na){return Gt(Nt,Nn,wn&&na===Je)}));if(ur.length===1){var yr=ur[0];if(tn&&!E.downlevelIteration||e.isPackedArrayLiteral(yr.expression)||e.isCallToHelper(yr.expression,"___spreadArray"))return yr.expression}for(var Jr=le(),Mn=ur[0].kind!==0,_i=Mn?D.createArrayLiteralExpression():ur[0].expression,di=Mn?0:1;di<ur.length;di++){var fi=ur[di];_i=Jr.createSpreadArrayHelper(_i,fi.expression,fi.kind===1&&!tn)}return _i}function ni(Ve){return e.isSpreadElement(Ve)?Va:za}function Va(Ve){return e.map(Ve,Ua)}function Ua(Ve){var tn=e.visitNode(Ve.expression,L,e.isExpression),Nn=e.isCallToHelper(tn,"___read"),wn=Nn||e.isPackedArrayLiteral(tn)?2:1;return E.downlevelIteration&&wn===1&&!e.isArrayLiteralExpression(tn)&&!Nn&&(tn=le().createReadHelper(tn,void 0),wn=2),_e(wn,tn)}function za(Ve,tn,Nn){var wn=D.createArrayLiteralExpression(e.visitNodes(D.createNodeArray(Ve,Nn),L,e.isExpression),tn);return _e(0,wn)}function Co(Ve){return e.visitNode(Ve.expression,L,e.isExpression)}function Ea(Ve){return e.setTextRange(D.createStringLiteral(Ve.text),Ve)}function ho(Ve){return Ve.hasExtendedUnicodeEscape?e.setTextRange(D.createStringLiteral(Ve.text),Ve):Ve}function Aa(Ve){return Ve.numericLiteralFlags&384?e.setTextRange(D.createNumericLiteral(Ve.text),Ve):Ve}function Vi(Ve){return e.processTaggedTemplateExpression(p,Ve,L,y,me,e.ProcessLevel.All)}function Xi(Ve){for(var tn=D.createStringLiteral(Ve.head.text),Nn=0,wn=Ve.templateSpans;Nn<wn.length;Nn++){var Je=wn[Nn],ur=[e.visitNode(Je.expression,L,e.isExpression)];Je.literal.text.length>0&&ur.push(D.createStringLiteral(Je.literal.text)),tn=D.createCallExpression(D.createPropertyAccessExpression(tn,"concat"),void 0,ur)}return e.setTextRange(tn,Ve)}function ao(Ve){return k&8&&!Ve?D.createPropertyAccessExpression(D.createUniqueName("_super",16|32),"prototype"):D.createUniqueName("_super",16|32)}function fo(Ve){return Ve.keywordToken===103&&Ve.name.escapedText==="target"?(k|=32768,D.createUniqueName("_newTarget",16|32)):Ve}function As(Ve,tn,Nn){if(X&1&&e.isFunctionLike(tn)){var wn=H(32670,e.getEmitFlags(tn)&8?65|16:65);m(Ve,tn,Nn),V(wn,0,0);return}m(Ve,tn,Nn)}function so(){(X&2)==0&&(X|=2,p.enableSubstitution(79))}function Xo(){(X&1)==0&&(X|=1,p.enableSubstitution(108),p.enableEmitNotification(173),p.enableEmitNotification(171),p.enableEmitNotification(174),p.enableEmitNotification(175),p.enableEmitNotification(216),p.enableEmitNotification(215),p.enableEmitNotification(259))}function Ho(Ve,tn){return tn=f(Ve,tn),Ve===1?pr(tn):e.isIdentifier(tn)?Zo(tn):tn}function Zo(Ve){if(X&2&&!e.isInternalName(Ve)){var tn=e.getParseTreeNode(Ve,e.isIdentifier);if(tn&&To(tn))return e.setTextRange(D.getGeneratedNameForNode(tn),Ve)}return Ve}function To(Ve){switch(Ve.parent.kind){case 205:case 260:case 263:case 257:return Ve.parent.name===Ve&&I.isDeclarationWithCollidingName(Ve.parent)}return!1}function pr(Ve){switch(Ve.kind){case 79:return Fr(Ve);case 108:return Dt(Ve)}return Ve}function Fr(Ve){if(X&2&&!e.isInternalName(Ve)){var tn=I.getReferencedDeclarationWithCollidingName(Ve);if(tn&&!(e.isClassLike(tn)&&yi(tn,Ve)))return e.setTextRange(D.getGeneratedNameForNode(e.getNameOfDeclaration(tn)),Ve)}return Ve}function yi(Ve,tn){var Nn=e.getParseTreeNode(tn);if(!Nn||Nn===Ve||Nn.end<=Ve.pos||Nn.pos>=Ve.end)return!1;for(var wn=e.getEnclosingBlockScopeContainer(Ve);Nn;){if(Nn===wn||Nn===Ve)return!1;if(e.isClassElement(Nn)&&Nn.parent===Ve)return!0;Nn=Nn.parent}return!1}function Dt(Ve){return X&1&&k&16?e.setTextRange(D.createUniqueName("_this",16|32),Ve):Ve}function Ft(Ve,tn){return e.isStatic(tn)?D.getInternalName(Ve):D.createPropertyAccessExpression(D.getInternalName(Ve),"prototype")}function Pa(Ve,tn){if(!Ve||!tn||e.some(Ve.parameters))return!1;var Nn=e.firstOrUndefined(Ve.body.statements);if(!Nn||!e.nodeIsSynthesized(Nn)||Nn.kind!==241)return!1;var wn=Nn.expression;if(!e.nodeIsSynthesized(wn)||wn.kind!==210)return!1;var Je=wn.expression;if(!e.nodeIsSynthesized(Je)||Je.kind!==106)return!1;var ur=e.singleOrUndefined(wn.arguments);if(!ur||!e.nodeIsSynthesized(ur)||ur.kind!==227)return!1;var yr=ur.expression;return e.isIdentifier(yr)&&yr.escapedText==="arguments"}}e.transformES2015=Q})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory,se=ne.getCompilerOptions(),O,ie;(se.jsx===1||se.jsx===3)&&(O=ne.onEmitNode,ne.onEmitNode=p,ne.enableEmitNotification(283),ne.enableEmitNotification(284),ne.enableEmitNotification(282),ie=[]);var _e=ne.onSubstituteNode;return ne.onSubstituteNode=D,ne.enableSubstitution(208),ne.enableSubstitution(299),e.chainBundle(ne,Q);function Q(oe){return oe}function p(oe,ae,E){switch(ae.kind){case 283:case 284:case 282:var I=ae.tagName;ie[e.getOriginalNodeId(I)]=!0;break}O(oe,ae,E)}function D(oe,ae){return ae.id&&ie&&ie[ae.id]?_e(oe,ae):(ae=_e(oe,ae),e.isPropertyAccessExpression(ae)?le(ae):e.isPropertyAssignment(ae)?de(ae):ae)}function le(oe){if(e.isPrivateIdentifier(oe.name))return oe;var ae=te(oe.name);return ae?e.setTextRange(K.createElementAccessExpression(oe.expression,ae),oe):oe}function de(oe){var ae=e.isIdentifier(oe.name)&&te(oe.name);return ae?K.updatePropertyAssignment(oe,ae,oe.initializer):oe}function te(oe){var ae=oe.originalKeywordKind||(e.nodeIsSynthesized(oe)?e.stringToToken(e.idText(oe)):void 0);if(ae!==void 0&&ae>=81&&ae<=116)return e.setTextRange(K.createStringLiteralFromNode(oe),oe)}}e.transformES5=o})(fr||(fr={}));var fr;(function(e){var o;(function(Q){Q[Q.Nop=0]="Nop",Q[Q.Statement=1]="Statement",Q[Q.Assign=2]="Assign",Q[Q.Break=3]="Break",Q[Q.BreakWhenTrue=4]="BreakWhenTrue",Q[Q.BreakWhenFalse=5]="BreakWhenFalse",Q[Q.Yield=6]="Yield",Q[Q.YieldStar=7]="YieldStar",Q[Q.Return=8]="Return",Q[Q.Throw=9]="Throw",Q[Q.Endfinally=10]="Endfinally"})(o||(o={}));var ne;(function(Q){Q[Q.Open=0]="Open",Q[Q.Close=1]="Close"})(ne||(ne={}));var K;(function(Q){Q[Q.Exception=0]="Exception",Q[Q.With=1]="With",Q[Q.Switch=2]="Switch",Q[Q.Loop=3]="Loop",Q[Q.Labeled=4]="Labeled"})(K||(K={}));var se;(function(Q){Q[Q.Try=0]="Try",Q[Q.Catch=1]="Catch",Q[Q.Finally=2]="Finally",Q[Q.Done=3]="Done"})(se||(se={}));var O;(function(Q){Q[Q.Next=0]="Next",Q[Q.Throw=1]="Throw",Q[Q.Return=2]="Return",Q[Q.Break=3]="Break",Q[Q.Yield=4]="Yield",Q[Q.YieldStar=5]="YieldStar",Q[Q.Catch=6]="Catch",Q[Q.Endfinally=7]="Endfinally"})(O||(O={}));function ie(Q){switch(Q){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function _e(Q){var p=Q.factory,D=Q.getEmitHelperFactory,le=Q.resumeLexicalEnvironment,de=Q.endLexicalEnvironment,te=Q.hoistFunctionDeclaration,oe=Q.hoistVariableDeclaration,ae=Q.getCompilerOptions(),E=e.getEmitScriptTarget(ae),I=Q.getEmitResolver(),f=Q.onSubstituteNode;Q.onSubstituteNode=ai;var m,y,S,k,C,me,De,X,M,H,V=1,h,F,$,L,P=0,N=0,J,q,G,ye,b,x,T,Z;return e.chainBundle(Q,B);function B(pr){if(pr.isDeclarationFile||(pr.transformFlags&2048)==0)return pr;var Fr=e.visitEachChild(pr,u,Q);return e.addEmitHelpers(Fr,Q.readEmitHelpers()),Fr}function u(pr){var Fr=pr.transformFlags;return k?A(pr):S?w(pr):e.isFunctionLikeDeclaration(pr)&&pr.asteriskToken?U(pr):Fr&2048?e.visitEachChild(pr,u,Q):pr}function A(pr){switch(pr.kind){case 243:return rn(pr);case 244:return pn(pr);case 252:return Ie(pr);case 253:return xr(pr);default:return w(pr)}}function w(pr){switch(pr.kind){case 259:return ge(pr);case 215:return pe(pr);case 174:case 175:return He(pr);case 240:return Me(pr);case 245:return or(pr);case 246:return ze(pr);case 249:return Mr(pr);case 248:return xe(pr);case 250:return Qr(pr);default:return pr.transformFlags&1048576?z(pr):pr.transformFlags&(2048|4194304)?e.visitEachChild(pr,u,Q):pr}}function z(pr){switch(pr.kind){case 223:return Le(pr);case 354:return Oe(pr);case 224:return Y(pr);case 226:return d(pr);case 206:return j(pr);case 207:return Se(pr);case 209:return Re(pr);case 210:return er(pr);case 211:return wr(pr);default:return e.visitEachChild(pr,u,Q)}}function U(pr){switch(pr.kind){case 259:return ge(pr);case 215:return pe(pr);default:return e.Debug.failBadSyntaxKind(pr)}}function ge(pr){if(pr.asteriskToken)pr=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(pr.modifiers,void 0,pr.name,void 0,e.visitParameterList(pr.parameters,u,Q),void 0,Be(pr.body)),pr),pr);else{var Fr=S,yi=k;S=!1,k=!1,pr=e.visitEachChild(pr,u,Q),S=Fr,k=yi}if(S){te(pr);return}else return pr}function pe(pr){if(pr.asteriskToken)pr=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,pr.name,void 0,e.visitParameterList(pr.parameters,u,Q),void 0,Be(pr.body)),pr),pr);else{var Fr=S,yi=k;S=!1,k=!1,pr=e.visitEachChild(pr,u,Q),S=Fr,k=yi}return pr}function He(pr){var Fr=S,yi=k;return S=!1,k=!1,pr=e.visitEachChild(pr,u,Q),S=Fr,k=yi,pr}function Be(pr){var Fr=[],yi=S,Dt=k,Ft=C,Pa=me,Ve=De,tn=X,Nn=M,wn=H,Je=V,ur=h,yr=F,Jr=$,Mn=L;S=!0,k=!1,C=void 0,me=void 0,De=void 0,X=void 0,M=void 0,H=void 0,V=1,h=void 0,F=void 0,$=void 0,L=p.createTempVariable(void 0),le();var _i=p.copyPrologue(pr.statements,Fr,!1,u);mr(pr.statements,_i);var di=ot();return e.insertStatementsAfterStandardPrologue(Fr,de()),Fr.push(p.createReturnStatement(di)),S=yi,k=Dt,C=Ft,me=Pa,De=Ve,X=tn,M=Nn,H=wn,V=Je,h=ur,F=yr,$=Jr,L=Mn,e.setTextRange(p.createBlock(Fr,pr.multiLine),pr)}function Me(pr){if(pr.transformFlags&1048576){vr(pr.declarationList);return}else{if(e.getEmitFlags(pr)&1048576)return pr;for(var Fr=0,yi=pr.declarationList.declarations;Fr<yi.length;Fr++){var Dt=yi[Fr];oe(Dt.name)}var Ft=e.getInitializedVariables(pr.declarationList);return Ft.length===0?void 0:e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(Ft,kr))),pr)}}function Le(pr){var Fr=e.getExpressionAssociativity(pr);switch(Fr){case 0:return Xe(pr);case 1:return Ae(pr);default:return e.Debug.assertNever(Fr)}}function Ae(pr){var Fr=pr.left,yi=pr.right;if(An(yi)){var Dt=void 0;switch(Fr.kind){case 208:Dt=p.updatePropertyAccessExpression(Fr,jr(e.visitNode(Fr.expression,u,e.isLeftHandSideExpression)),Fr.name);break;case 209:Dt=p.updateElementAccessExpression(Fr,jr(e.visitNode(Fr.expression,u,e.isLeftHandSideExpression)),jr(e.visitNode(Fr.argumentExpression,u,e.isExpression)));break;default:Dt=e.visitNode(Fr,u,e.isExpression);break}var Ft=pr.operatorToken.kind;return e.isCompoundAssignment(Ft)?e.setTextRange(p.createAssignment(Dt,e.setTextRange(p.createBinaryExpression(jr(Dt),e.getNonAssignmentOperatorForCompoundAssignment(Ft),e.visitNode(yi,u,e.isExpression)),pr)),pr):p.updateBinaryExpression(pr,Dt,pr.operatorToken,e.visitNode(yi,u,e.isExpression))}return e.visitEachChild(pr,u,Q)}function Xe(pr){return An(pr.right)?e.isLogicalOperator(pr.operatorToken.kind)?be(pr):pr.operatorToken.kind===27?Ne(pr):p.updateBinaryExpression(pr,jr(e.visitNode(pr.left,u,e.isExpression)),pr.operatorToken,e.visitNode(pr.right,u,e.isExpression)):e.visitEachChild(pr,u,Q)}function Ne(pr){var Fr=[];return yi(pr.left),yi(pr.right),p.inlineExpressions(Fr);function yi(Dt){e.isBinaryExpression(Dt)&&Dt.operatorToken.kind===27?(yi(Dt.left),yi(Dt.right)):(An(Dt)&&Fr.length>0&&(Tt(1,[p.createExpressionStatement(p.inlineExpressions(Fr))]),Fr=[]),Fr.push(e.visitNode(Dt,u,e.isExpression)))}}function Oe(pr){for(var Fr=[],yi=0,Dt=pr.elements;yi<Dt.length;yi++){var Ft=Dt[yi];e.isBinaryExpression(Ft)&&Ft.operatorToken.kind===27?Fr.push(Ne(Ft)):(An(Ft)&&Fr.length>0&&(Tt(1,[p.createExpressionStatement(p.inlineExpressions(Fr))]),Fr=[]),Fr.push(e.visitNode(Ft,u,e.isExpression)))}return p.inlineExpressions(Fr)}function be(pr){var Fr=je(),yi=on();return On(yi,e.visitNode(pr.left,u,e.isExpression),pr.left),pr.operatorToken.kind===55?cn(Fr,yi,pr.left):Ge(Fr,yi,pr.left),On(yi,e.visitNode(pr.right,u,e.isExpression),pr.right),Sr(Fr),yi}function Y(pr){if(An(pr.whenTrue)||An(pr.whenFalse)){var Fr=je(),yi=je(),Dt=on();return cn(Fr,e.visitNode(pr.condition,u,e.isExpression),pr.condition),On(Dt,e.visitNode(pr.whenTrue,u,e.isExpression),pr.whenTrue),Xn(yi),Sr(Fr),On(Dt,e.visitNode(pr.whenFalse,u,e.isExpression),pr.whenFalse),Sr(yi),Dt}return e.visitEachChild(pr,u,Q)}function d(pr){var Fr=je(),yi=e.visitNode(pr.expression,u,e.isExpression);if(pr.asteriskToken){var Dt=(e.getEmitFlags(pr.expression)&8388608)==0?e.setTextRange(D().createValuesHelper(yi),pr):yi;Vn(Dt,pr)}else Ki(yi,pr);return Sr(Fr),nn(pr)}function j(pr){return Ce(pr.elements,void 0,void 0,pr.multiLine)}function Ce(pr,Fr,yi,Dt){var Ft=Qn(pr),Pa;if(Ft>0){Pa=on();var Ve=e.visitNodes(pr,u,e.isExpression,0,Ft);On(Pa,p.createArrayLiteralExpression(Fr?zn([Fr],Ve,!0):Ve)),Fr=void 0}var tn=e.reduceLeft(pr,Nn,[],Ft);return Pa?p.createArrayConcatCall(Pa,[p.createArrayLiteralExpression(tn,Dt)]):e.setTextRange(p.createArrayLiteralExpression(Fr?zn([Fr],tn,!0):tn,Dt),yi);function Nn(wn,Je){if(An(Je)&&wn.length>0){var ur=Pa!==void 0;Pa||(Pa=on()),On(Pa,ur?p.createArrayConcatCall(Pa,[p.createArrayLiteralExpression(wn,Dt)]):p.createArrayLiteralExpression(Fr?zn([Fr],wn,!0):wn,Dt)),Fr=void 0,wn=[]}return wn.push(e.visitNode(Je,u,e.isExpression)),wn}}function Se(pr){var Fr=pr.properties,yi=pr.multiLine,Dt=Qn(Fr),Ft=on();On(Ft,p.createObjectLiteralExpression(e.visitNodes(Fr,u,e.isObjectLiteralElementLike,0,Dt),yi));var Pa=e.reduceLeft(Fr,Ve,[],Dt);return Pa.push(yi?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(Ft),Ft),Ft.parent)):Ft),p.inlineExpressions(Pa);function Ve(tn,Nn){An(Nn)&&tn.length>0&&(Dn(p.createExpressionStatement(p.inlineExpressions(tn))),tn=[]);var wn=e.createExpressionForObjectLiteralElementLike(p,pr,Nn,Ft),Je=e.visitNode(wn,u,e.isExpression);return Je&&(yi&&e.startOnNewLine(Je),tn.push(Je)),tn}}function Re(pr){return An(pr.argumentExpression)?p.updateElementAccessExpression(pr,jr(e.visitNode(pr.expression,u,e.isLeftHandSideExpression)),e.visitNode(pr.argumentExpression,u,e.isExpression)):e.visitEachChild(pr,u,Q)}function er(pr){if(!e.isImportCall(pr)&&e.forEach(pr.arguments,An)){var Fr=p.createCallBinding(pr.expression,oe,E,!0),yi=Fr.target,Dt=Fr.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(jr(e.visitNode(yi,u,e.isLeftHandSideExpression)),Dt,Ce(pr.arguments)),pr),pr)}return e.visitEachChild(pr,u,Q)}function wr(pr){if(e.forEach(pr.arguments,An)){var Fr=p.createCallBinding(p.createPropertyAccessExpression(pr.expression,"bind"),oe),yi=Fr.target,Dt=Fr.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(jr(e.visitNode(yi,u,e.isExpression)),Dt,Ce(pr.arguments,p.createVoidZero())),void 0,[]),pr),pr)}return e.visitEachChild(pr,u,Q)}function mr(pr,Fr){Fr===void 0&&(Fr=0);for(var yi=pr.length,Dt=Fr;Dt<yi;Dt++)t(pr[Dt])}function Ue(pr){e.isBlock(pr)?mr(pr.statements):t(pr)}function t(pr){var Fr=k;k||(k=An(pr)),qr(pr),k=Fr}function qr(pr){switch(pr.kind){case 238:return ln(pr);case 241:return dr(pr);case 242:return Ur(pr);case 243:return Cr(pr);case 244:return Br(pr);case 245:return ve(pr);case 246:return Ee(pr);case 248:return Ar(pr);case 249:return cr(pr);case 250:return Rr(pr);case 251:return en(pr);case 252:return vn(pr);case 253:return We(pr);case 254:return Lr(pr);case 255:return xn(pr);default:return Dn(e.visitNode(pr,u,e.isStatement))}}function ln(pr){An(pr)?mr(pr.statements):Dn(e.visitNode(pr,u,e.isStatement))}function dr(pr){Dn(e.visitNode(pr,u,e.isStatement))}function vr(pr){for(var Fr=0,yi=pr.declarations;Fr<yi.length;Fr++){var Dt=yi[Fr],Ft=p.cloneNode(Dt.name);e.setCommentRange(Ft,Dt.name),oe(Ft)}for(var Pa=e.getInitializedVariables(pr),Ve=Pa.length,tn=0,Nn=[];tn<Ve;){for(var wn=tn;wn<Ve;wn++){var Dt=Pa[wn];if(An(Dt.initializer)&&Nn.length>0)break;Nn.push(kr(Dt))}Nn.length&&(Dn(p.createExpressionStatement(p.inlineExpressions(Nn))),tn+=Nn.length,Nn=[])}}function kr(pr){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(pr.name),pr.name),e.visitNode(pr.initializer,u,e.isExpression)),pr)}function Ur(pr){if(An(pr))if(An(pr.thenStatement)||An(pr.elseStatement)){var Fr=je(),yi=pr.elseStatement?je():void 0;cn(pr.elseStatement?yi:Fr,e.visitNode(pr.expression,u,e.isExpression),pr.expression),Ue(pr.thenStatement),pr.elseStatement&&(Xn(Fr),Sr(yi),Ue(pr.elseStatement)),Sr(Fr)}else Dn(e.visitNode(pr,u,e.isStatement));else Dn(e.visitNode(pr,u,e.isStatement))}function Cr(pr){if(An(pr)){var Fr=je(),yi=je();Vr(Fr),Sr(yi),Ue(pr.statement),Sr(Fr),Ge(yi,e.visitNode(pr.expression,u,e.isExpression)),Wn()}else Dn(e.visitNode(pr,u,e.isStatement))}function rn(pr){return k?(fn(),pr=e.visitEachChild(pr,u,Q),Wn(),pr):e.visitEachChild(pr,u,Q)}function Br(pr){if(An(pr)){var Fr=je(),yi=Vr(Fr);Sr(Fr),cn(yi,e.visitNode(pr.expression,u,e.isExpression)),Ue(pr.statement),Xn(Fr),Wn()}else Dn(e.visitNode(pr,u,e.isStatement))}function pn(pr){return k?(fn(),pr=e.visitEachChild(pr,u,Q),Wn(),pr):e.visitEachChild(pr,u,Q)}function ve(pr){if(An(pr)){var Fr=je(),yi=je(),Dt=Vr(yi);if(pr.initializer){var Ft=pr.initializer;e.isVariableDeclarationList(Ft)?vr(Ft):Dn(e.setTextRange(p.createExpressionStatement(e.visitNode(Ft,u,e.isExpression)),Ft))}Sr(Fr),pr.condition&&cn(Dt,e.visitNode(pr.condition,u,e.isExpression)),Ue(pr.statement),Sr(yi),pr.incrementor&&Dn(e.setTextRange(p.createExpressionStatement(e.visitNode(pr.incrementor,u,e.isExpression)),pr.incrementor)),Xn(Fr),Wn()}else Dn(e.visitNode(pr,u,e.isStatement))}function or(pr){k&&fn();var Fr=pr.initializer;if(Fr&&e.isVariableDeclarationList(Fr)){for(var yi=0,Dt=Fr.declarations;yi<Dt.length;yi++){var Ft=Dt[yi];oe(Ft.name)}var Pa=e.getInitializedVariables(Fr);pr=p.updateForStatement(pr,Pa.length>0?p.inlineExpressions(e.map(Pa,kr)):void 0,e.visitNode(pr.condition,u,e.isExpression),e.visitNode(pr.incrementor,u,e.isExpression),e.visitIterationBody(pr.statement,u,Q))}else pr=e.visitEachChild(pr,u,Q);return k&&Wn(),pr}function Ee(pr){if(An(pr)){var Fr=on(),yi=on(),Dt=on(),Ft=p.createLoopVariable(),Pa=pr.initializer;oe(Ft),On(Fr,e.visitNode(pr.expression,u,e.isExpression)),On(yi,p.createArrayLiteralExpression()),Dn(p.createForInStatement(Dt,Fr,p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(yi,"push"),void 0,[Dt])))),On(Ft,p.createNumericLiteral(0));var Ve=je(),tn=je(),Nn=Vr(tn);Sr(Ve),cn(Nn,p.createLessThan(Ft,p.createPropertyAccessExpression(yi,"length"))),On(Dt,p.createElementAccessExpression(yi,Ft)),cn(tn,p.createBinaryExpression(Dt,101,Fr));var wn=void 0;if(e.isVariableDeclarationList(Pa)){for(var Je=0,ur=Pa.declarations;Je<ur.length;Je++){var yr=ur[Je];oe(yr.name)}wn=p.cloneNode(Pa.declarations[0].name)}else wn=e.visitNode(Pa,u,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(wn));On(wn,Dt),Ue(pr.statement),Sr(tn),Dn(p.createExpressionStatement(p.createPostfixIncrement(Ft))),Xn(Ve),Wn()}else Dn(e.visitNode(pr,u,e.isStatement))}function ze(pr){k&&fn();var Fr=pr.initializer;if(e.isVariableDeclarationList(Fr)){for(var yi=0,Dt=Fr.declarations;yi<Dt.length;yi++){var Ft=Dt[yi];oe(Ft.name)}pr=p.updateForInStatement(pr,Fr.declarations[0].name,e.visitNode(pr.expression,u,e.isExpression),e.visitNode(pr.statement,u,e.isStatement,p.liftToBlock))}else pr=e.visitEachChild(pr,u,Q);return k&&Wn(),pr}function Ar(pr){var Fr=Ir(pr.label?e.idText(pr.label):void 0);Fr>0?Xn(Fr,pr):Dn(pr)}function xe(pr){if(k){var Fr=Ir(pr.label&&e.idText(pr.label));if(Fr>0)return jn(Fr,pr)}return e.visitEachChild(pr,u,Q)}function cr(pr){var Fr=Pe(pr.label?e.idText(pr.label):void 0);Fr>0?Xn(Fr,pr):Dn(pr)}function Mr(pr){if(k){var Fr=Pe(pr.label&&e.idText(pr.label));if(Fr>0)return jn(Fr,pr)}return e.visitEachChild(pr,u,Q)}function Rr(pr){dt(e.visitNode(pr.expression,u,e.isExpression),pr)}function Qr(pr){return gn(e.visitNode(pr.expression,u,e.isExpression),pr)}function en(pr){An(pr)?(Ke(jr(e.visitNode(pr.expression,u,e.isExpression))),Ue(pr.statement),tr()):Dn(e.visitNode(pr,u,e.isStatement))}function vn(pr){if(An(pr.caseBlock)){for(var Fr=pr.caseBlock,yi=Fr.clauses.length,Dt=qn(),Ft=jr(e.visitNode(pr.expression,u,e.isExpression)),Pa=[],Ve=-1,tn=0;tn<yi;tn++){var Nn=Fr.clauses[tn];Pa.push(je()),Nn.kind===293&&Ve===-1&&(Ve=tn)}for(var wn=0,Je=[];wn<yi;){for(var ur=0,tn=wn;tn<yi;tn++){var Nn=Fr.clauses[tn];if(Nn.kind===292){if(An(Nn.expression)&&Je.length>0)break;Je.push(p.createCaseClause(e.visitNode(Nn.expression,u,e.isExpression),[jn(Pa[tn],Nn.expression)]))}else ur++}Je.length&&(Dn(p.createSwitchStatement(Ft,p.createCaseBlock(Je))),wn+=Je.length,Je=[]),ur>0&&(wn+=ur,ur=0)}Ve>=0?Xn(Pa[Ve]):Xn(Dt);for(var tn=0;tn<yi;tn++)Sr(Pa[tn]),mr(Fr.clauses[tn].statements);yn()}else Dn(e.visitNode(pr,u,e.isStatement))}function Ie(pr){return k&&bn(),pr=e.visitEachChild(pr,u,Q),k&&yn(),pr}function We(pr){An(pr)?(Ai(e.idText(pr.label)),Ue(pr.statement),ti()):Dn(e.visitNode(pr,u,e.isStatement))}function xr(pr){return k&&Hn(e.idText(pr.label)),pr=e.visitEachChild(pr,u,Q),k&&ti(),pr}function Lr(pr){var Fr;qi(e.visitNode((Fr=pr.expression)!==null&&Fr!==void 0?Fr:p.createVoidZero(),u,e.isExpression),pr)}function xn(pr){An(pr)?(hr(),Ue(pr.tryBlock),pr.catchClause&&(_r(pr.catchClause.variableDeclaration),Ue(pr.catchClause.block)),pr.finallyBlock&&(Or(),Ue(pr.finallyBlock)),zr()):Dn(e.visitEachChild(pr,u,Q))}function An(pr){return!!pr&&(pr.transformFlags&1048576)!=0}function Qn(pr){for(var Fr=pr.length,yi=0;yi<Fr;yi++)if(An(pr[yi]))return yi;return-1}function ai(pr,Fr){return Fr=f(pr,Fr),pr===1?Dr(Fr):Fr}function Dr(pr){return e.isIdentifier(pr)?Pr(pr):pr}function Pr(pr){if(!e.isGeneratedIdentifier(pr)&&m&&m.has(e.idText(pr))){var Fr=e.getOriginalNode(pr);if(e.isIdentifier(Fr)&&Fr.parent){var yi=I.getReferencedValueDeclaration(Fr);if(yi){var Dt=y[e.getOriginalNodeId(yi)];if(Dt){var Ft=e.setParent(e.setTextRange(p.cloneNode(Dt),Dt),Dt.parent);return e.setSourceMapRange(Ft,pr),e.setCommentRange(Ft,pr),Ft}}}}return pr}function jr(pr){if(e.isGeneratedIdentifier(pr)||e.getEmitFlags(pr)&4096)return pr;var Fr=p.createTempVariable(oe);return On(Fr,pr,pr),Fr}function on(pr){var Fr=pr?p.createUniqueName(pr):p.createTempVariable(void 0);return oe(Fr),Fr}function je(){M||(M=[]);var pr=V;return V++,M[pr]=-1,pr}function Sr(pr){e.Debug.assert(M!==void 0,"No labels were defined."),M[pr]=h?h.length:0}function Te(pr){C||(C=[],De=[],me=[],X=[]);var Fr=De.length;return De[Fr]=0,me[Fr]=h?h.length:0,C[Fr]=pr,X.push(pr),Fr}function Ye(){var pr=Qe();if(pr===void 0)return e.Debug.fail("beginBlock was never called.");var Fr=De.length;return De[Fr]=1,me[Fr]=h?h.length:0,C[Fr]=pr,X.pop(),pr}function Qe(){return e.lastOrUndefined(X)}function ue(){var pr=Qe();return pr&&pr.kind}function Ke(pr){var Fr=je(),yi=je();Sr(Fr),Te({kind:1,expression:pr,startLabel:Fr,endLabel:yi})}function tr(){e.Debug.assert(ue()===1);var pr=Ye();Sr(pr.endLabel)}function hr(){var pr=je(),Fr=je();return Sr(pr),Te({kind:0,state:0,startLabel:pr,endLabel:Fr}),Cn(),Fr}function _r(pr){e.Debug.assert(ue()===0);var Fr;if(e.isGeneratedIdentifier(pr.name))Fr=pr.name,oe(pr.name);else{var yi=e.idText(pr.name);Fr=on(yi),m||(m=new e.Map,y=[],Q.enableSubstitution(79)),m.set(yi,!0),y[e.getOriginalNodeId(pr)]=Fr}var Dt=Qe();e.Debug.assert(Dt.state<1);var Ft=Dt.endLabel;Xn(Ft);var Pa=je();Sr(Pa),Dt.state=1,Dt.catchVariable=Fr,Dt.catchLabel=Pa,On(Fr,p.createCallExpression(p.createPropertyAccessExpression(L,"sent"),void 0,[])),Cn()}function Or(){e.Debug.assert(ue()===0);var pr=Qe();e.Debug.assert(pr.state<2);var Fr=pr.endLabel;Xn(Fr);var yi=je();Sr(yi),pr.state=2,pr.finallyLabel=yi}function zr(){e.Debug.assert(ue()===0);var pr=Ye(),Fr=pr.state;Fr<2?Xn(pr.endLabel):Ci(),Sr(pr.endLabel),Cn(),pr.state=3}function fn(){Te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Vr(pr){var Fr=je();return Te({kind:3,isScript:!1,breakLabel:Fr,continueLabel:pr}),Fr}function Wn(){e.Debug.assert(ue()===3);var pr=Ye(),Fr=pr.breakLabel;pr.isScript||Sr(Fr)}function bn(){Te({kind:2,isScript:!0,breakLabel:-1})}function qn(){var pr=je();return Te({kind:2,isScript:!1,breakLabel:pr}),pr}function yn(){e.Debug.assert(ue()===2);var pr=Ye(),Fr=pr.breakLabel;pr.isScript||Sr(Fr)}function Hn(pr){Te({kind:4,isScript:!0,labelText:pr,breakLabel:-1})}function Ai(pr){var Fr=je();Te({kind:4,isScript:!1,labelText:pr,breakLabel:Fr})}function ti(){e.Debug.assert(ue()===4);var pr=Ye();pr.isScript||Sr(pr.breakLabel)}function Hi(pr){return pr.kind===2||pr.kind===3}function Ni(pr){return pr.kind===4}function gi(pr){return pr.kind===3}function Pn(pr,Fr){for(var yi=Fr;yi>=0;yi--){var Dt=X[yi];if(Ni(Dt)){if(Dt.labelText===pr)return!0}else break}return!1}function Pe(pr){if(X)if(pr)for(var Fr=X.length-1;Fr>=0;Fr--){var yi=X[Fr];if(Ni(yi)&&yi.labelText===pr)return yi.breakLabel;if(Hi(yi)&&Pn(pr,Fr-1))return yi.breakLabel}else for(var Fr=X.length-1;Fr>=0;Fr--){var yi=X[Fr];if(Hi(yi))return yi.breakLabel}return 0}function Ir(pr){if(X)if(pr)for(var Fr=X.length-1;Fr>=0;Fr--){var yi=X[Fr];if(gi(yi)&&Pn(pr,Fr-1))return yi.continueLabel}else for(var Fr=X.length-1;Fr>=0;Fr--){var yi=X[Fr];if(gi(yi))return yi.continueLabel}return 0}function we(pr){if(pr!==void 0&&pr>0){H===void 0&&(H=[]);var Fr=p.createNumericLiteral(-1);return H[pr]===void 0?H[pr]=[Fr]:H[pr].push(Fr),Fr}return p.createOmittedExpression()}function hn(pr){var Fr=p.createNumericLiteral(pr);return e.addSyntheticTrailingComment(Fr,3,ie(pr)),Fr}function jn(pr,Fr){return e.Debug.assertLessThan(0,pr,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([hn(3),we(pr)])),Fr)}function gn(pr,Fr){return e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(pr?[hn(2),pr]:[hn(2)])),Fr)}function nn(pr){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(L,"sent"),void 0,[]),pr)}function Cn(){Tt(0)}function Dn(pr){pr?Tt(1,[pr]):Cn()}function On(pr,Fr,yi){Tt(2,[pr,Fr],yi)}function Xn(pr,Fr){Tt(3,[pr],Fr)}function Ge(pr,Fr,yi){Tt(4,[pr,Fr],yi)}function cn(pr,Fr,yi){Tt(5,[pr,Fr],yi)}function Vn(pr,Fr){Tt(7,[pr],Fr)}function Ki(pr,Fr){Tt(6,[pr],Fr)}function dt(pr,Fr){Tt(8,[pr],Fr)}function qi(pr,Fr){Tt(9,[pr],Fr)}function Ci(){Tt(10)}function Tt(pr,Fr,yi){h===void 0&&(h=[],F=[],$=[]),M===void 0&&Sr(je());var Dt=h.length;h[Dt]=pr,F[Dt]=Fr,$[Dt]=yi}function ot(){P=0,N=0,J=void 0,q=!1,G=!1,ye=void 0,b=void 0,x=void 0,T=void 0,Z=void 0;var pr=Zi();return D().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,L)],void 0,p.createBlock(pr,pr.length>0)),524288))}function Zi(){if(h){for(var pr=0;pr<h.length;pr++)Aa(pr);Va(h.length)}else Va(0);if(ye){var Fr=p.createPropertyAccessExpression(L,"label"),yi=p.createSwitchStatement(Fr,p.createCaseBlock(ye));return[e.startOnNewLine(yi)]}return b||[]}function ni(){!b||(za(!q),q=!1,G=!1,N++)}function Va(pr){Ua(pr)&&(Co(pr),Z=void 0,fo(void 0,void 0)),b&&ye&&za(!1),Ea()}function Ua(pr){if(!G)return!0;if(!M||!H)return!1;for(var Fr=0;Fr<M.length;Fr++)if(M[Fr]===pr&&H[Fr])return!0;return!1}function za(pr){if(ye||(ye=[]),b){if(Z)for(var Fr=Z.length-1;Fr>=0;Fr--){var yi=Z[Fr];b=[p.createWithStatement(yi.expression,p.createBlock(b))]}if(T){var Dt=T.startLabel,Ft=T.catchLabel,Pa=T.finallyLabel,Ve=T.endLabel;b.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(L,"trys"),"push"),void 0,[p.createArrayLiteralExpression([we(Dt),we(Ft),we(Pa),we(Ve)])]))),T=void 0}pr&&b.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(L,"label"),p.createNumericLiteral(N+1))))}ye.push(p.createCaseClause(p.createNumericLiteral(N),b||[])),b=void 0}function Co(pr){if(!!M)for(var Fr=0;Fr<M.length;Fr++)M[Fr]===pr&&(ni(),J===void 0&&(J=[]),J[N]===void 0?J[N]=[Fr]:J[N].push(Fr))}function Ea(){if(H!==void 0&&J!==void 0)for(var pr=0;pr<J.length;pr++){var Fr=J[pr];if(Fr!==void 0)for(var yi=0,Dt=Fr;yi<Dt.length;yi++){var Ft=Dt[yi],Pa=H[Ft];if(Pa!==void 0)for(var Ve=0,tn=Pa;Ve<tn.length;Ve++){var Nn=tn[Ve];Nn.text=String(pr)}}}}function ho(pr){if(C)for(;P<De.length&&me[P]<=pr;P++){var Fr=C[P],yi=De[P];switch(Fr.kind){case 0:yi===0?(x||(x=[]),b||(b=[]),x.push(T),T=Fr):yi===1&&(T=x.pop());break;case 1:yi===0?(Z||(Z=[]),Z.push(Fr)):yi===1&&Z.pop();break}}}function Aa(pr){if(Co(pr),ho(pr),!q){q=!1,G=!1;var Fr=h[pr];if(Fr!==0){if(Fr===10)return To();var yi=F[pr];if(Fr===1)return Vi(yi[0]);var Dt=$[pr];switch(Fr){case 2:return Xi(yi[0],yi[1],Dt);case 3:return As(yi[0],Dt);case 4:return so(yi[0],yi[1],Dt);case 5:return Xo(yi[0],yi[1],Dt);case 6:return Ho(yi[0],Dt);case 7:return Zo(yi[0],Dt);case 8:return fo(yi[0],Dt);case 9:return ao(yi[0],Dt)}}}}function Vi(pr){pr&&(b?b.push(pr):b=[pr])}function Xi(pr,Fr,yi){Vi(e.setTextRange(p.createExpressionStatement(p.createAssignment(pr,Fr)),yi))}function ao(pr,Fr){q=!0,G=!0,Vi(e.setTextRange(p.createThrowStatement(pr),Fr))}function fo(pr,Fr){q=!0,G=!0,Vi(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(pr?[hn(2),pr]:[hn(2)])),Fr),384))}function As(pr,Fr){q=!0,Vi(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([hn(3),we(pr)])),Fr),384))}function so(pr,Fr,yi){Vi(e.setEmitFlags(p.createIfStatement(Fr,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([hn(3),we(pr)])),yi),384)),1))}function Xo(pr,Fr,yi){Vi(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(Fr),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([hn(3),we(pr)])),yi),384)),1))}function Ho(pr,Fr){q=!0,Vi(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(pr?[hn(4),pr]:[hn(4)])),Fr),384))}function Zo(pr,Fr){q=!0,Vi(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([hn(5),pr])),Fr),384))}function To(){q=!0,Vi(p.createReturnStatement(p.createArrayLiteralExpression([hn(7)])))}}e.transformGenerators=_e})(fr||(fr={}));var fr;(function(e){function o(K){function se(ve){switch(ve){case e.ModuleKind.AMD:return X;case e.ModuleKind.UMD:return M;default:return De}}var O=K.factory,ie=K.getEmitHelperFactory,_e=K.startLexicalEnvironment,Q=K.endLexicalEnvironment,p=K.hoistVariableDeclaration,D=K.getCompilerOptions(),le=K.getEmitResolver(),de=K.getEmitHost(),te=e.getEmitScriptTarget(D),oe=e.getEmitModuleKind(D),ae=K.onSubstituteNode,E=K.onEmitNode;K.onSubstituteNode=dr,K.onEmitNode=ln,K.enableSubstitution(210),K.enableSubstitution(212),K.enableSubstitution(79),K.enableSubstitution(223),K.enableSubstitution(300),K.enableEmitNotification(308);var I=[],f=[],m,y,S=[],k;return e.chainBundle(K,C);function C(ve){if(ve.isDeclarationFile||!(e.isEffectiveExternalModule(ve,D)||ve.transformFlags&8388608||e.isJsonSourceFile(ve)&&e.hasJsonModuleEmitEnabled(D)&&e.outFile(D)))return ve;m=ve,y=e.collectExternalModuleInfo(K,ve,le,D),I[e.getOriginalNodeId(ve)]=y;var or=se(oe),Ee=or(ve);return m=void 0,y=void 0,k=!1,Ee}function me(){return!!(!y.exportEquals&&e.isExternalModule(m))}function De(ve){_e();var or=[],Ee=e.getStrictOptionValue(D,"alwaysStrict")||!D.noImplicitUseStrict&&e.isExternalModule(m),ze=O.copyPrologue(ve.statements,or,Ee&&!e.isJsonSourceFile(ve),$);if(me()&&e.append(or,mr()),e.length(y.exportedNames))for(var Ar=50,xe=0;xe<y.exportedNames.length;xe+=Ar)e.append(or,O.createExpressionStatement(e.reduceLeft(y.exportedNames.slice(xe,xe+Ar),function(Mr,Rr){return O.createAssignment(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.createIdentifier(e.idText(Rr))),Mr)},O.createVoidZero())));e.append(or,e.visitNode(y.externalHelpersImportDeclaration,$,e.isStatement)),e.addRange(or,e.visitNodes(ve.statements,$,e.isStatement,ze)),F(or,!1),e.insertStatementsAfterStandardPrologue(or,Q());var cr=O.updateSourceFile(ve,e.setTextRange(O.createNodeArray(or),ve.statements));return e.addEmitHelpers(cr,K.readEmitHelpers()),cr}function X(ve){var or=O.createIdentifier("define"),Ee=e.tryGetModuleNameFromFile(O,ve,de,D),ze=e.isJsonSourceFile(ve)&&ve,Ar=H(ve,!0),xe=Ar.aliasedModuleNames,cr=Ar.unaliasedModuleNames,Mr=Ar.importAliasNames,Rr=O.updateSourceFile(ve,e.setTextRange(O.createNodeArray([O.createExpressionStatement(O.createCallExpression(or,void 0,zn(zn([],Ee?[Ee]:[],!0),[O.createArrayLiteralExpression(ze?e.emptyArray:zn(zn([O.createStringLiteral("require"),O.createStringLiteral("exports")],xe,!0),cr,!0)),ze?ze.statements.length?ze.statements[0].expression:O.createObjectLiteralExpression():O.createFunctionExpression(void 0,void 0,void 0,void 0,zn([O.createParameterDeclaration(void 0,void 0,"require"),O.createParameterDeclaration(void 0,void 0,"exports")],Mr,!0),void 0,h(ve))],!1)))]),ve.statements));return e.addEmitHelpers(Rr,K.readEmitHelpers()),Rr}function M(ve){var or=H(ve,!1),Ee=or.aliasedModuleNames,ze=or.unaliasedModuleNames,Ar=or.importAliasNames,xe=e.tryGetModuleNameFromFile(O,ve,de,D),cr=O.createFunctionExpression(void 0,void 0,void 0,void 0,[O.createParameterDeclaration(void 0,void 0,"factory")],void 0,e.setTextRange(O.createBlock([O.createIfStatement(O.createLogicalAnd(O.createTypeCheck(O.createIdentifier("module"),"object"),O.createTypeCheck(O.createPropertyAccessExpression(O.createIdentifier("module"),"exports"),"object")),O.createBlock([O.createVariableStatement(void 0,[O.createVariableDeclaration("v",void 0,void 0,O.createCallExpression(O.createIdentifier("factory"),void 0,[O.createIdentifier("require"),O.createIdentifier("exports")]))]),e.setEmitFlags(O.createIfStatement(O.createStrictInequality(O.createIdentifier("v"),O.createIdentifier("undefined")),O.createExpressionStatement(O.createAssignment(O.createPropertyAccessExpression(O.createIdentifier("module"),"exports"),O.createIdentifier("v")))),1)]),O.createIfStatement(O.createLogicalAnd(O.createTypeCheck(O.createIdentifier("define"),"function"),O.createPropertyAccessExpression(O.createIdentifier("define"),"amd")),O.createBlock([O.createExpressionStatement(O.createCallExpression(O.createIdentifier("define"),void 0,zn(zn([],xe?[xe]:[],!0),[O.createArrayLiteralExpression(zn(zn([O.createStringLiteral("require"),O.createStringLiteral("exports")],Ee,!0),ze,!0)),O.createIdentifier("factory")],!1)))])))],!0),void 0)),Mr=O.updateSourceFile(ve,e.setTextRange(O.createNodeArray([O.createExpressionStatement(O.createCallExpression(cr,void 0,[O.createFunctionExpression(void 0,void 0,void 0,void 0,zn([O.createParameterDeclaration(void 0,void 0,"require"),O.createParameterDeclaration(void 0,void 0,"exports")],Ar,!0),void 0,h(ve))]))]),ve.statements));return e.addEmitHelpers(Mr,K.readEmitHelpers()),Mr}function H(ve,or){for(var Ee=[],ze=[],Ar=[],xe=0,cr=ve.amdDependencies;xe<cr.length;xe++){var Mr=cr[xe];Mr.name?(Ee.push(O.createStringLiteral(Mr.path)),Ar.push(O.createParameterDeclaration(void 0,void 0,Mr.name))):ze.push(O.createStringLiteral(Mr.path))}for(var Rr=0,Qr=y.externalImports;Rr<Qr.length;Rr++){var en=Qr[Rr],vn=e.getExternalModuleNameLiteral(O,en,m,de,le,D),Ie=e.getLocalNameForExternalImport(O,en,m);vn&&(or&&Ie?(e.setEmitFlags(Ie,4),Ee.push(vn),Ar.push(O.createParameterDeclaration(void 0,void 0,Ie))):ze.push(vn))}return{aliasedModuleNames:Ee,unaliasedModuleNames:ze,importAliasNames:Ar}}function V(ve){if(!(e.isImportEqualsDeclaration(ve)||e.isExportDeclaration(ve)||!e.getExternalModuleNameLiteral(O,ve,m,de,le,D))){var or=e.getLocalNameForExternalImport(O,ve,m),Ee=z(ve,or);if(Ee!==or)return O.createExpressionStatement(O.createAssignment(or,Ee))}}function h(ve){_e();var or=[],Ee=O.copyPrologue(ve.statements,or,!D.noImplicitUseStrict,$);me()&&e.append(or,mr()),e.length(y.exportedNames)&&e.append(or,O.createExpressionStatement(e.reduceLeft(y.exportedNames,function(Ar,xe){return O.createAssignment(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.createIdentifier(e.idText(xe))),Ar)},O.createVoidZero()))),e.append(or,e.visitNode(y.externalHelpersImportDeclaration,$,e.isStatement)),oe===e.ModuleKind.AMD&&e.addRange(or,e.mapDefined(y.externalImports,V)),e.addRange(or,e.visitNodes(ve.statements,$,e.isStatement,Ee)),F(or,!0),e.insertStatementsAfterStandardPrologue(or,Q());var ze=O.createBlock(or,!0);return k&&e.addEmitHelper(ze,ne),ze}function F(ve,or){if(y.exportEquals){var Ee=e.visitNode(y.exportEquals.expression,P);if(Ee)if(or){var ze=O.createReturnStatement(Ee);e.setTextRange(ze,y.exportEquals),e.setEmitFlags(ze,384|1536),ve.push(ze)}else{var ze=O.createExpressionStatement(O.createAssignment(O.createPropertyAccessExpression(O.createIdentifier("module"),"exports"),Ee));e.setTextRange(ze,y.exportEquals),e.setEmitFlags(ze,1536),ve.push(ze)}}}function $(ve){switch(ve.kind){case 269:return U(ve);case 268:return pe(ve);case 275:return He(ve);case 274:return Be(ve);case 240:return Ae(ve);case 259:return Me(ve);case 260:return Le(ve);case 355:return Oe(ve);case 356:return Y(ve);default:return P(ve)}}function L(ve,or){if(!(ve.transformFlags&(8388608|4096|268435456)))return ve;switch(ve.kind){case 245:return G(ve);case 241:return ye(ve);case 214:return b(ve,or);case 353:return x(ve,or);case 210:if(e.isImportCall(ve)&&m.impliedNodeFormat===void 0)return Z(ve);break;case 223:if(e.isDestructuringAssignment(ve))return q(ve,or);break;case 221:case 222:return T(ve,or)}return e.visitEachChild(ve,P,K)}function P(ve){return L(ve,!1)}function N(ve){return L(ve,!0)}function J(ve){if(e.isObjectLiteralExpression(ve))for(var or=0,Ee=ve.properties;or<Ee.length;or++){var ze=Ee[or];switch(ze.kind){case 299:if(J(ze.initializer))return!0;break;case 300:if(J(ze.name))return!0;break;case 301:if(J(ze.expression))return!0;break;case 171:case 174:case 175:return!1;default:e.Debug.assertNever(ze,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(ve))for(var Ar=0,xe=ve.elements;Ar<xe.length;Ar++){var ze=xe[Ar];if(e.isSpreadElement(ze)){if(J(ze.expression))return!0}else if(J(ze))return!0}else if(e.isIdentifier(ve))return e.length(pn(ve))>(e.isExportName(ve)?1:0);return!1}function q(ve,or){return J(ve.left)?e.flattenDestructuringAssignment(ve,P,K,0,!or,Xe):e.visitEachChild(ve,P,K)}function G(ve){return O.updateForStatement(ve,e.visitNode(ve.initializer,N,e.isForInitializer),e.visitNode(ve.condition,P,e.isExpression),e.visitNode(ve.incrementor,N,e.isExpression),e.visitIterationBody(ve.statement,P,K))}function ye(ve){return O.updateExpressionStatement(ve,e.visitNode(ve.expression,N,e.isExpression))}function b(ve,or){return O.updateParenthesizedExpression(ve,e.visitNode(ve.expression,or?N:P,e.isExpression))}function x(ve,or){return O.updatePartiallyEmittedExpression(ve,e.visitNode(ve.expression,or?N:P,e.isExpression))}function T(ve,or){if((ve.operator===45||ve.operator===46)&&e.isIdentifier(ve.operand)&&!e.isGeneratedIdentifier(ve.operand)&&!e.isLocalName(ve.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ve.operand)){var Ee=pn(ve.operand);if(Ee){var ze=void 0,Ar=e.visitNode(ve.operand,P,e.isExpression);e.isPrefixUnaryExpression(ve)?Ar=O.updatePrefixUnaryExpression(ve,Ar):(Ar=O.updatePostfixUnaryExpression(ve,Ar),or||(ze=O.createTempVariable(p),Ar=O.createAssignment(ze,Ar),e.setTextRange(Ar,ve)),Ar=O.createComma(Ar,O.cloneNode(ve.operand)),e.setTextRange(Ar,ve));for(var xe=0,cr=Ee;xe<cr.length;xe++){var Mr=cr[xe];S[e.getNodeId(Ar)]=!0,Ar=t(Mr,Ar),e.setTextRange(Ar,ve)}return ze&&(S[e.getNodeId(Ar)]=!0,Ar=O.createComma(Ar,ze),e.setTextRange(Ar,ve)),Ar}}return e.visitEachChild(ve,P,K)}function Z(ve){var or=e.getExternalModuleNameLiteral(O,ve,m,de,le,D),Ee=e.visitNode(e.firstOrUndefined(ve.arguments),P),ze=or&&(!Ee||!e.isStringLiteral(Ee)||Ee.text!==or.text)?or:Ee,Ar=!!(ve.transformFlags&16384);switch(D.module){case e.ModuleKind.AMD:return u(ze,Ar);case e.ModuleKind.UMD:return B(ze!=null?ze:O.createVoidZero(),Ar);case e.ModuleKind.CommonJS:default:return A(ze)}}function B(ve,or){if(k=!0,e.isSimpleCopiableExpression(ve)){var Ee=e.isGeneratedIdentifier(ve)?ve:e.isStringLiteral(ve)?O.createStringLiteralFromNode(ve):e.setEmitFlags(e.setTextRange(O.cloneNode(ve),ve),1536);return O.createConditionalExpression(O.createIdentifier("__syncRequire"),void 0,A(ve),void 0,u(Ee,or))}else{var ze=O.createTempVariable(p);return O.createComma(O.createAssignment(ze,ve),O.createConditionalExpression(O.createIdentifier("__syncRequire"),void 0,A(ze,!0),void 0,u(ze,or)))}}function u(ve,or){var Ee=O.createUniqueName("resolve"),ze=O.createUniqueName("reject"),Ar=[O.createParameterDeclaration(void 0,void 0,Ee),O.createParameterDeclaration(void 0,void 0,ze)],xe=O.createBlock([O.createExpressionStatement(O.createCallExpression(O.createIdentifier("require"),void 0,[O.createArrayLiteralExpression([ve||O.createOmittedExpression()]),Ee,ze]))]),cr;te>=2?cr=O.createArrowFunction(void 0,void 0,Ar,void 0,void 0,xe):(cr=O.createFunctionExpression(void 0,void 0,void 0,void 0,Ar,void 0,xe),or&&e.setEmitFlags(cr,8));var Mr=O.createNewExpression(O.createIdentifier("Promise"),void 0,[cr]);return e.getESModuleInterop(D)?O.createCallExpression(O.createPropertyAccessExpression(Mr,O.createIdentifier("then")),void 0,[ie().createImportStarCallbackHelper()]):Mr}function A(ve,or){var Ee=ve&&!e.isSimpleInlineableExpression(ve)&&!or?O.createTempVariable(p):void 0,ze=O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Promise"),"resolve"),void 0,[]),Ar=O.createCallExpression(O.createIdentifier("require"),void 0,Ee?[Ee]:ve?[ve]:[]);e.getESModuleInterop(D)&&(Ar=ie().createImportStarHelper(Ar));var xe;te>=2?xe=O.createArrowFunction(void 0,void 0,[],void 0,void 0,Ar):xe=O.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,O.createBlock([O.createReturnStatement(Ar)]));var cr=O.createCallExpression(O.createPropertyAccessExpression(ze,"then"),void 0,[xe]);return Ee===void 0?cr:O.createCommaListExpression([O.createAssignment(Ee,ve),cr])}function w(ve,or){return!e.getESModuleInterop(D)||e.getEmitFlags(ve)&67108864?or:e.getExportNeedsImportStarHelper(ve)?ie().createImportStarHelper(or):or}function z(ve,or){return!e.getESModuleInterop(D)||e.getEmitFlags(ve)&67108864?or:e.getImportNeedsImportStarHelper(ve)?ie().createImportStarHelper(or):e.getImportNeedsImportDefaultHelper(ve)?ie().createImportDefaultHelper(or):or}function U(ve){var or,Ee=e.getNamespaceDeclarationNode(ve);if(oe!==e.ModuleKind.AMD)if(ve.importClause){var ze=[];Ee&&!e.isDefaultImport(ve)?ze.push(O.createVariableDeclaration(O.cloneNode(Ee.name),void 0,void 0,z(ve,ge(ve)))):(ze.push(O.createVariableDeclaration(O.getGeneratedNameForNode(ve),void 0,void 0,z(ve,ge(ve)))),Ee&&e.isDefaultImport(ve)&&ze.push(O.createVariableDeclaration(O.cloneNode(Ee.name),void 0,void 0,O.getGeneratedNameForNode(ve)))),or=e.append(or,e.setOriginalNode(e.setTextRange(O.createVariableStatement(void 0,O.createVariableDeclarationList(ze,te>=2?2:0)),ve),ve))}else return e.setOriginalNode(e.setTextRange(O.createExpressionStatement(ge(ve)),ve),ve);else Ee&&e.isDefaultImport(ve)&&(or=e.append(or,O.createVariableStatement(void 0,O.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(O.createVariableDeclaration(O.cloneNode(Ee.name),void 0,void 0,O.getGeneratedNameForNode(ve)),ve),ve)],te>=2?2:0))));if(be(ve)){var Ar=e.getOriginalNodeId(ve);f[Ar]=d(f[Ar],ve)}else or=d(or,ve);return e.singleOrMany(or)}function ge(ve){var or=e.getExternalModuleNameLiteral(O,ve,m,de,le,D),Ee=[];return or&&Ee.push(or),O.createCallExpression(O.createIdentifier("require"),void 0,Ee)}function pe(ve){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ve),"import= for internal module references should be handled in an earlier transformer.");var or;if(oe!==e.ModuleKind.AMD?e.hasSyntacticModifier(ve,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(O.createExpressionStatement(t(ve.name,ge(ve))),ve),ve)):or=e.append(or,e.setOriginalNode(e.setTextRange(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(O.cloneNode(ve.name),void 0,void 0,ge(ve))],te>=2?2:0)),ve),ve)):e.hasSyntacticModifier(ve,1)&&(or=e.append(or,e.setOriginalNode(e.setTextRange(O.createExpressionStatement(t(O.getExportName(ve),O.getLocalName(ve))),ve),ve))),be(ve)){var Ee=e.getOriginalNodeId(ve);f[Ee]=j(f[Ee],ve)}else or=j(or,ve);return e.singleOrMany(or)}function He(ve){if(!!ve.moduleSpecifier){var or=O.getGeneratedNameForNode(ve);if(ve.exportClause&&e.isNamedExports(ve.exportClause)){var Ee=[];oe!==e.ModuleKind.AMD&&Ee.push(e.setOriginalNode(e.setTextRange(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(or,void 0,void 0,ge(ve))])),ve),ve));for(var ze=0,Ar=ve.exportClause.elements;ze<Ar.length;ze++){var xe=Ar[ze];if(te===0)Ee.push(e.setOriginalNode(e.setTextRange(O.createExpressionStatement(ie().createCreateBindingHelper(or,O.createStringLiteralFromNode(xe.propertyName||xe.name),xe.propertyName?O.createStringLiteralFromNode(xe.name):void 0)),xe),xe));else{var cr=!!e.getESModuleInterop(D)&&!(e.getEmitFlags(ve)&67108864)&&e.idText(xe.propertyName||xe.name)==="default",Mr=O.createPropertyAccessExpression(cr?ie().createImportDefaultHelper(or):or,xe.propertyName||xe.name);Ee.push(e.setOriginalNode(e.setTextRange(O.createExpressionStatement(t(O.getExportName(xe),Mr,void 0,!0)),xe),xe))}}return e.singleOrMany(Ee)}else if(ve.exportClause){var Ee=[];return Ee.push(e.setOriginalNode(e.setTextRange(O.createExpressionStatement(t(O.cloneNode(ve.exportClause.name),w(ve,oe!==e.ModuleKind.AMD?ge(ve):e.isExportNamespaceAsDefaultDeclaration(ve)?or:O.createIdentifier(e.idText(ve.exportClause.name))))),ve),ve)),e.singleOrMany(Ee)}else return e.setOriginalNode(e.setTextRange(O.createExpressionStatement(ie().createExportStarHelper(oe!==e.ModuleKind.AMD?ge(ve):or)),ve),ve)}}function Be(ve){if(!ve.isExportEquals){var or,Ee=ve.original;if(Ee&&be(Ee)){var ze=e.getOriginalNodeId(ve);f[ze]=wr(f[ze],O.createIdentifier("default"),e.visitNode(ve.expression,P),ve,!0)}else or=wr(or,O.createIdentifier("default"),e.visitNode(ve.expression,P),ve,!0);return e.singleOrMany(or)}}function Me(ve){var or;if(e.hasSyntacticModifier(ve,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(O.createFunctionDeclaration(e.visitNodes(ve.modifiers,qr,e.isModifier),ve.asteriskToken,O.getDeclarationName(ve,!0,!0),void 0,e.visitNodes(ve.parameters,P),void 0,e.visitEachChild(ve.body,P,K)),ve),ve)):or=e.append(or,e.visitEachChild(ve,P,K)),be(ve)){var Ee=e.getOriginalNodeId(ve);f[Ee]=Re(f[Ee],ve)}else or=Re(or,ve);return e.singleOrMany(or)}function Le(ve){var or;if(e.hasSyntacticModifier(ve,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(O.createClassDeclaration(e.visitNodes(ve.modifiers,qr,e.isModifierLike),O.getDeclarationName(ve,!0,!0),void 0,e.visitNodes(ve.heritageClauses,P),e.visitNodes(ve.members,P)),ve),ve)):or=e.append(or,e.visitEachChild(ve,P,K)),be(ve)){var Ee=e.getOriginalNodeId(ve);f[Ee]=Re(f[Ee],ve)}else or=Re(or,ve);return e.singleOrMany(or)}function Ae(ve){var or,Ee,ze;if(e.hasSyntacticModifier(ve,1)){for(var Ar=void 0,xe=!1,cr=0,Mr=ve.declarationList.declarations;cr<Mr.length;cr++){var Rr=Mr[cr];if(e.isIdentifier(Rr.name)&&e.isLocalName(Rr.name))Ar||(Ar=e.visitNodes(ve.modifiers,qr,e.isModifier)),Ee=e.append(Ee,Rr);else if(Rr.initializer)if(!e.isBindingPattern(Rr.name)&&(e.isArrowFunction(Rr.initializer)||e.isFunctionExpression(Rr.initializer)||e.isClassExpression(Rr.initializer))){var Qr=O.createAssignment(e.setTextRange(O.createPropertyAccessExpression(O.createIdentifier("exports"),Rr.name),Rr.name),O.createIdentifier(e.getTextOfIdentifierOrLiteral(Rr.name))),en=O.createVariableDeclaration(Rr.name,Rr.exclamationToken,Rr.type,e.visitNode(Rr.initializer,P));Ee=e.append(Ee,en),ze=e.append(ze,Qr),xe=!0}else ze=e.append(ze,Ne(Rr))}if(Ee&&(or=e.append(or,O.updateVariableStatement(ve,Ar,O.updateVariableDeclarationList(ve.declarationList,Ee)))),ze){var vn=e.setOriginalNode(e.setTextRange(O.createExpressionStatement(O.inlineExpressions(ze)),ve),ve);xe&&e.removeAllComments(vn),or=e.append(or,vn)}}else or=e.append(or,e.visitEachChild(ve,P,K));if(be(ve)){var Ie=e.getOriginalNodeId(ve);f[Ie]=Ce(f[Ie],ve)}else or=Ce(or,ve);return e.singleOrMany(or)}function Xe(ve,or,Ee){var ze=pn(ve);if(ze){for(var Ar=e.isExportName(ve)?or:O.createAssignment(ve,or),xe=0,cr=ze;xe<cr.length;xe++){var Mr=cr[xe];e.setEmitFlags(Ar,4),Ar=t(Mr,Ar,Ee)}return Ar}return O.createAssignment(ve,or)}function Ne(ve){return e.isBindingPattern(ve.name)?e.flattenDestructuringAssignment(e.visitNode(ve,P),void 0,K,0,!1,Xe):O.createAssignment(e.setTextRange(O.createPropertyAccessExpression(O.createIdentifier("exports"),ve.name),ve.name),ve.initializer?e.visitNode(ve.initializer,P):O.createVoidZero())}function Oe(ve){if(be(ve)&&ve.original.kind===240){var or=e.getOriginalNodeId(ve);f[or]=Ce(f[or],ve.original)}return ve}function be(ve){return(e.getEmitFlags(ve)&4194304)!=0}function Y(ve){var or=e.getOriginalNodeId(ve),Ee=f[or];return Ee?(delete f[or],e.append(Ee,ve)):ve}function d(ve,or){if(y.exportEquals)return ve;var Ee=or.importClause;if(!Ee)return ve;Ee.name&&(ve=er(ve,Ee));var ze=Ee.namedBindings;if(ze)switch(ze.kind){case 271:ve=er(ve,ze);break;case 272:for(var Ar=0,xe=ze.elements;Ar<xe.length;Ar++){var cr=xe[Ar];ve=er(ve,cr,!0)}break}return ve}function j(ve,or){return y.exportEquals?ve:er(ve,or)}function Ce(ve,or){if(y.exportEquals)return ve;for(var Ee=0,ze=or.declarationList.declarations;Ee<ze.length;Ee++){var Ar=ze[Ee];ve=Se(ve,Ar)}return ve}function Se(ve,or){if(y.exportEquals)return ve;if(e.isBindingPattern(or.name))for(var Ee=0,ze=or.name.elements;Ee<ze.length;Ee++){var Ar=ze[Ee];e.isOmittedExpression(Ar)||(ve=Se(ve,Ar))}else e.isGeneratedIdentifier(or.name)||(ve=er(ve,or));return ve}function Re(ve,or){if(y.exportEquals)return ve;if(e.hasSyntacticModifier(or,1)){var Ee=e.hasSyntacticModifier(or,1024)?O.createIdentifier("default"):O.getDeclarationName(or);ve=wr(ve,Ee,O.getLocalName(or),or)}return or.name&&(ve=er(ve,or)),ve}function er(ve,or,Ee){var ze=O.getDeclarationName(or),Ar=y.exportSpecifiers.get(e.idText(ze));if(Ar)for(var xe=0,cr=Ar;xe<cr.length;xe++){var Mr=cr[xe];ve=wr(ve,Mr.name,ze,Mr.name,void 0,Ee)}return ve}function wr(ve,or,Ee,ze,Ar,xe){return ve=e.append(ve,Ue(or,Ee,ze,Ar,xe)),ve}function mr(){var ve;return te===0?ve=O.createExpressionStatement(t(O.createIdentifier("__esModule"),O.createTrue())):ve=O.createExpressionStatement(O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Object"),"defineProperty"),void 0,[O.createIdentifier("exports"),O.createStringLiteral("__esModule"),O.createObjectLiteralExpression([O.createPropertyAssignment("value",O.createTrue())])])),e.setEmitFlags(ve,1048576),ve}function Ue(ve,or,Ee,ze,Ar){var xe=e.setTextRange(O.createExpressionStatement(t(ve,or,void 0,Ar)),Ee);return e.startOnNewLine(xe),ze||e.setEmitFlags(xe,1536),xe}function t(ve,or,Ee,ze){return e.setTextRange(ze&&te!==0?O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Object"),"defineProperty"),void 0,[O.createIdentifier("exports"),O.createStringLiteralFromNode(ve),O.createObjectLiteralExpression([O.createPropertyAssignment("enumerable",O.createTrue()),O.createPropertyAssignment("get",O.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,O.createBlock([O.createReturnStatement(or)])))])]):O.createAssignment(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.cloneNode(ve)),or),Ee)}function qr(ve){switch(ve.kind){case 93:case 88:return}return ve}function ln(ve,or,Ee){or.kind===308?(m=or,y=I[e.getOriginalNodeId(m)],E(ve,or,Ee),m=void 0,y=void 0):E(ve,or,Ee)}function dr(ve,or){return or=ae(ve,or),or.id&&S[or.id]?or:ve===1?kr(or):e.isShorthandPropertyAssignment(or)?vr(or):or}function vr(ve){var or=ve.name,Ee=rn(or);if(Ee!==or){if(ve.objectAssignmentInitializer){var ze=O.createAssignment(Ee,ve.objectAssignmentInitializer);return e.setTextRange(O.createPropertyAssignment(or,ze),ve)}return e.setTextRange(O.createPropertyAssignment(or,Ee),ve)}return ve}function kr(ve){switch(ve.kind){case 79:return rn(ve);case 210:return Ur(ve);case 212:return Cr(ve);case 223:return Br(ve)}return ve}function Ur(ve){if(e.isIdentifier(ve.expression)){var or=rn(ve.expression);if(S[e.getNodeId(or)]=!0,!e.isIdentifier(or)&&!(e.getEmitFlags(ve.expression)&4096))return e.addEmitFlags(O.updateCallExpression(ve,or,void 0,ve.arguments),536870912)}return ve}function Cr(ve){if(e.isIdentifier(ve.tag)){var or=rn(ve.tag);if(S[e.getNodeId(or)]=!0,!e.isIdentifier(or)&&!(e.getEmitFlags(ve.tag)&4096))return e.addEmitFlags(O.updateTaggedTemplateExpression(ve,or,void 0,ve.template),536870912)}return ve}function rn(ve){var or,Ee;if(e.getEmitFlags(ve)&4096){var ze=e.getExternalHelpersModuleName(m);return ze?O.createPropertyAccessExpression(ze,ve):ve}else if(!(e.isGeneratedIdentifier(ve)&&!(ve.autoGenerateFlags&64))&&!e.isLocalName(ve)){var Ar=le.getReferencedExportContainer(ve,e.isExportName(ve));if(Ar&&Ar.kind===308)return e.setTextRange(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.cloneNode(ve)),ve);var xe=le.getReferencedImportDeclaration(ve);if(xe){if(e.isImportClause(xe))return e.setTextRange(O.createPropertyAccessExpression(O.getGeneratedNameForNode(xe.parent),O.createIdentifier("default")),ve);if(e.isImportSpecifier(xe)){var cr=xe.propertyName||xe.name;return e.setTextRange(O.createPropertyAccessExpression(O.getGeneratedNameForNode(((Ee=(or=xe.parent)===null||or===void 0?void 0:or.parent)===null||Ee===void 0?void 0:Ee.parent)||xe),O.cloneNode(cr)),ve)}}}return ve}function Br(ve){if(e.isAssignmentOperator(ve.operatorToken.kind)&&e.isIdentifier(ve.left)&&!e.isGeneratedIdentifier(ve.left)&&!e.isLocalName(ve.left)&&!e.isDeclarationNameOfEnumOrNamespace(ve.left)){var or=pn(ve.left);if(or){for(var Ee=ve,ze=0,Ar=or;ze<Ar.length;ze++){var xe=Ar[ze];S[e.getNodeId(Ee)]=!0,Ee=t(xe,Ee,ve)}return Ee}}return ve}function pn(ve){if(!e.isGeneratedIdentifier(ve)){var or=le.getReferencedImportDeclaration(ve)||le.getReferencedValueDeclaration(ve);if(or)return y&&y.exportedBindings[e.getOriginalNodeId(or)]}}}e.transformModule=o;var ne={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
  246. var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory,se=ne.startLexicalEnvironment,O=ne.endLexicalEnvironment,ie=ne.hoistVariableDeclaration,_e=ne.getCompilerOptions(),Q=ne.getEmitResolver(),p=ne.getEmitHost(),D=ne.onSubstituteNode,le=ne.onEmitNode;ne.onSubstituteNode=ze,ne.onEmitNode=Ee,ne.enableSubstitution(79),ne.enableSubstitution(300),ne.enableSubstitution(223),ne.enableSubstitution(233),ne.enableEmitNotification(308);var de=[],te=[],oe=[],ae=[],E=[],I,f,m,y,S,k,C;return e.chainBundle(ne,me);function me(We){if(We.isDeclarationFile||!(e.isEffectiveExternalModule(We,_e)||We.transformFlags&8388608))return We;var xr=e.getOriginalNodeId(We);I=We,k=We,f=de[xr]=e.collectExternalModuleInfo(ne,We,Q,_e),m=K.createUniqueName("exports"),oe[xr]=m,y=E[xr]=K.createUniqueName("context");var Lr=De(f.externalImports),xn=X(We,Lr),An=K.createFunctionExpression(void 0,void 0,void 0,void 0,[K.createParameterDeclaration(void 0,void 0,m),K.createParameterDeclaration(void 0,void 0,y)],void 0,xn),Qn=e.tryGetModuleNameFromFile(K,We,p,_e),ai=K.createArrayLiteralExpression(e.map(Lr,function(Pr){return Pr.name})),Dr=e.setEmitFlags(K.updateSourceFile(We,e.setTextRange(K.createNodeArray([K.createExpressionStatement(K.createCallExpression(K.createPropertyAccessExpression(K.createIdentifier("System"),"register"),void 0,Qn?[Qn,ai,An]:[ai,An]))]),We.statements)),1024);return e.outFile(_e)||e.moveEmitHelpers(Dr,xn,function(Pr){return!Pr.scoped}),C&&(ae[xr]=C,C=void 0),I=void 0,f=void 0,m=void 0,y=void 0,S=void 0,k=void 0,Dr}function De(We){for(var xr=new e.Map,Lr=[],xn=0,An=We;xn<An.length;xn++){var Qn=An[xn],ai=e.getExternalModuleNameLiteral(K,Qn,I,p,Q,_e);if(ai){var Dr=ai.text,Pr=xr.get(Dr);Pr!==void 0?Lr[Pr].externalImports.push(Qn):(xr.set(Dr,Lr.length),Lr.push({name:ai,externalImports:[Qn]}))}}return Lr}function X(We,xr){var Lr=[];se();var xn=e.getStrictOptionValue(_e,"alwaysStrict")||!_e.noImplicitUseStrict&&e.isExternalModule(I),An=K.copyPrologue(We.statements,Lr,xn,h);Lr.push(K.createVariableStatement(void 0,K.createVariableDeclarationList([K.createVariableDeclaration("__moduleName",void 0,void 0,K.createLogicalAnd(y,K.createPropertyAccessExpression(y,"id")))]))),e.visitNode(f.externalHelpersImportDeclaration,h,e.isStatement);var Qn=e.visitNodes(We.statements,h,e.isStatement,An);e.addRange(Lr,S),e.insertStatementsAfterStandardPrologue(Lr,O());var ai=M(Lr),Dr=We.transformFlags&2097152?K.createModifiersFromModifierFlags(512):void 0,Pr=K.createObjectLiteralExpression([K.createPropertyAssignment("setters",V(ai,xr)),K.createPropertyAssignment("execute",K.createFunctionExpression(Dr,void 0,void 0,void 0,[],void 0,K.createBlock(Qn,!0)))],!0);return Lr.push(K.createReturnStatement(Pr)),K.createBlock(Lr,!0)}function M(We){if(!!f.hasExportStarsToExportValues){if(!f.exportedNames&&f.exportSpecifiers.size===0){for(var xr=!1,Lr=0,xn=f.externalImports;Lr<xn.length;Lr++){var An=xn[Lr];if(An.kind===275&&An.exportClause){xr=!0;break}}if(!xr){var Qn=H(void 0);return We.push(Qn),Qn.name}}var ai=[];if(f.exportedNames)for(var Dr=0,Pr=f.exportedNames;Dr<Pr.length;Dr++){var jr=Pr[Dr];jr.escapedText!=="default"&&ai.push(K.createPropertyAssignment(K.createStringLiteralFromNode(jr),K.createTrue()))}var on=K.createUniqueName("exportedNames");We.push(K.createVariableStatement(void 0,K.createVariableDeclarationList([K.createVariableDeclaration(on,void 0,void 0,K.createObjectLiteralExpression(ai,!0))])));var je=H(on);return We.push(je),je.name}}function H(We){var xr=K.createUniqueName("exportStar"),Lr=K.createIdentifier("m"),xn=K.createIdentifier("n"),An=K.createIdentifier("exports"),Qn=K.createStrictInequality(xn,K.createStringLiteral("default"));return We&&(Qn=K.createLogicalAnd(Qn,K.createLogicalNot(K.createCallExpression(K.createPropertyAccessExpression(We,"hasOwnProperty"),void 0,[xn])))),K.createFunctionDeclaration(void 0,void 0,xr,void 0,[K.createParameterDeclaration(void 0,void 0,Lr)],void 0,K.createBlock([K.createVariableStatement(void 0,K.createVariableDeclarationList([K.createVariableDeclaration(An,void 0,void 0,K.createObjectLiteralExpression([]))])),K.createForInStatement(K.createVariableDeclarationList([K.createVariableDeclaration(xn)]),Lr,K.createBlock([e.setEmitFlags(K.createIfStatement(Qn,K.createExpressionStatement(K.createAssignment(K.createElementAccessExpression(An,xn),K.createElementAccessExpression(Lr,xn)))),1)])),K.createExpressionStatement(K.createCallExpression(m,void 0,[An]))],!0))}function V(We,xr){for(var Lr=[],xn=0,An=xr;xn<An.length;xn++){for(var Qn=An[xn],ai=e.forEach(Qn.externalImports,function(Ke){return e.getLocalNameForExternalImport(K,Ke,I)}),Dr=ai?K.getGeneratedNameForNode(ai):K.createUniqueName(""),Pr=[],jr=0,on=Qn.externalImports;jr<on.length;jr++){var je=on[jr],Sr=e.getLocalNameForExternalImport(K,je,I);switch(je.kind){case 269:if(!je.importClause)break;case 268:e.Debug.assert(Sr!==void 0),Pr.push(K.createExpressionStatement(K.createAssignment(Sr,Dr))),e.hasSyntacticModifier(je,1)&&Pr.push(K.createExpressionStatement(K.createCallExpression(m,void 0,[K.createStringLiteral(e.idText(Sr)),Dr])));break;case 275:if(e.Debug.assert(Sr!==void 0),je.exportClause)if(e.isNamedExports(je.exportClause)){for(var Te=[],Ye=0,Qe=je.exportClause.elements;Ye<Qe.length;Ye++){var ue=Qe[Ye];Te.push(K.createPropertyAssignment(K.createStringLiteral(e.idText(ue.name)),K.createElementAccessExpression(Dr,K.createStringLiteral(e.idText(ue.propertyName||ue.name)))))}Pr.push(K.createExpressionStatement(K.createCallExpression(m,void 0,[K.createObjectLiteralExpression(Te,!0)])))}else Pr.push(K.createExpressionStatement(K.createCallExpression(m,void 0,[K.createStringLiteral(e.idText(je.exportClause.name)),Dr])));else Pr.push(K.createExpressionStatement(K.createCallExpression(We,void 0,[Dr])));break}}Lr.push(K.createFunctionExpression(void 0,void 0,void 0,void 0,[K.createParameterDeclaration(void 0,void 0,Dr)],void 0,K.createBlock(Pr,!0)))}return K.createArrayLiteralExpression(Lr,!0)}function h(We){switch(We.kind){case 269:return F(We);case 268:return L(We);case 275:return $(We);case 274:return P(We);default:return Ae(We)}}function F(We){var xr;if(We.importClause&&ie(e.getLocalNameForExternalImport(K,We,I)),u(We)){var Lr=e.getOriginalNodeId(We);te[Lr]=w(te[Lr],We)}else xr=w(xr,We);return e.singleOrMany(xr)}function $(We){e.Debug.assertIsDefined(We)}function L(We){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(We),"import= for internal module references should be handled in an earlier transformer.");var xr;if(ie(e.getLocalNameForExternalImport(K,We,I)),u(We)){var Lr=e.getOriginalNodeId(We);te[Lr]=z(te[Lr],We)}else xr=z(xr,We);return e.singleOrMany(xr)}function P(We){if(!We.isExportEquals){var xr=e.visitNode(We.expression,dr,e.isExpression),Lr=We.original;if(Lr&&u(Lr)){var xn=e.getOriginalNodeId(We);te[xn]=Be(te[xn],K.createIdentifier("default"),xr,!0)}else return Me(K.createIdentifier("default"),xr,!0)}}function N(We){if(e.hasSyntacticModifier(We,1)?S=e.append(S,K.updateFunctionDeclaration(We,e.visitNodes(We.modifiers,or,e.isModifierLike),We.asteriskToken,K.getDeclarationName(We,!0,!0),void 0,e.visitNodes(We.parameters,dr,e.isParameterDeclaration),void 0,e.visitNode(We.body,dr,e.isBlock))):S=e.append(S,e.visitEachChild(We,dr,ne)),u(We)){var xr=e.getOriginalNodeId(We);te[xr]=pe(te[xr],We)}else S=pe(S,We)}function J(We){var xr,Lr=K.getLocalName(We);if(ie(Lr),xr=e.append(xr,e.setTextRange(K.createExpressionStatement(K.createAssignment(Lr,e.setTextRange(K.createClassExpression(e.visitNodes(We.modifiers,or,e.isModifierLike),We.name,void 0,e.visitNodes(We.heritageClauses,dr,e.isHeritageClause),e.visitNodes(We.members,dr,e.isClassElement)),We))),We)),u(We)){var xn=e.getOriginalNodeId(We);te[xn]=pe(te[xn],We)}else xr=pe(xr,We);return e.singleOrMany(xr)}function q(We){if(!ye(We.declarationList))return e.visitNode(We,dr,e.isStatement);for(var xr,Lr=e.hasSyntacticModifier(We,1),xn=u(We),An=0,Qn=We.declarationList.declarations;An<Qn.length;An++){var ai=Qn[An];ai.initializer?xr=e.append(xr,b(ai,Lr&&!xn)):G(ai)}var Dr;if(xr&&(Dr=e.append(Dr,e.setTextRange(K.createExpressionStatement(K.inlineExpressions(xr)),We))),xn){var Pr=e.getOriginalNodeId(We);te[Pr]=U(te[Pr],We,Lr)}else Dr=U(Dr,We,!1);return e.singleOrMany(Dr)}function G(We){if(e.isBindingPattern(We.name))for(var xr=0,Lr=We.name.elements;xr<Lr.length;xr++){var xn=Lr[xr];e.isOmittedExpression(xn)||G(xn)}else ie(K.cloneNode(We.name))}function ye(We){return(e.getEmitFlags(We)&2097152)==0&&(k.kind===308||(e.getOriginalNode(We).flags&3)==0)}function b(We,xr){var Lr=xr?x:T;return e.isBindingPattern(We.name)?e.flattenDestructuringAssignment(We,dr,ne,0,!1,Lr):We.initializer?Lr(We.name,e.visitNode(We.initializer,dr,e.isExpression)):We.name}function x(We,xr,Lr){return Z(We,xr,Lr,!0)}function T(We,xr,Lr){return Z(We,xr,Lr,!1)}function Z(We,xr,Lr,xn){return ie(K.cloneNode(We)),xn?Le(We,vn(e.setTextRange(K.createAssignment(We,xr),Lr))):vn(e.setTextRange(K.createAssignment(We,xr),Lr))}function B(We){if(u(We)&&We.original.kind===240){var xr=e.getOriginalNodeId(We),Lr=e.hasSyntacticModifier(We.original,1);te[xr]=U(te[xr],We.original,Lr)}return We}function u(We){return(e.getEmitFlags(We)&4194304)!=0}function A(We){var xr=e.getOriginalNodeId(We),Lr=te[xr];if(Lr)return delete te[xr],e.append(Lr,We);var xn=e.getOriginalNode(We);return e.isModuleOrEnumDeclaration(xn)?e.append(He(Lr,xn),We):We}function w(We,xr){if(f.exportEquals)return We;var Lr=xr.importClause;if(!Lr)return We;Lr.name&&(We=He(We,Lr));var xn=Lr.namedBindings;if(xn)switch(xn.kind){case 271:We=He(We,xn);break;case 272:for(var An=0,Qn=xn.elements;An<Qn.length;An++){var ai=Qn[An];We=He(We,ai)}break}return We}function z(We,xr){return f.exportEquals?We:He(We,xr)}function U(We,xr,Lr){if(f.exportEquals)return We;for(var xn=0,An=xr.declarationList.declarations;xn<An.length;xn++){var Qn=An[xn];(Qn.initializer||Lr)&&(We=ge(We,Qn,Lr))}return We}function ge(We,xr,Lr){if(f.exportEquals)return We;if(e.isBindingPattern(xr.name))for(var xn=0,An=xr.name.elements;xn<An.length;xn++){var Qn=An[xn];e.isOmittedExpression(Qn)||(We=ge(We,Qn,Lr))}else if(!e.isGeneratedIdentifier(xr.name)){var ai=void 0;Lr&&(We=Be(We,xr.name,K.getLocalName(xr)),ai=e.idText(xr.name)),We=He(We,xr,ai)}return We}function pe(We,xr){if(f.exportEquals)return We;var Lr;if(e.hasSyntacticModifier(xr,1)){var xn=e.hasSyntacticModifier(xr,1024)?K.createStringLiteral("default"):xr.name;We=Be(We,xn,K.getLocalName(xr)),Lr=e.getTextOfIdentifierOrLiteral(xn)}return xr.name&&(We=He(We,xr,Lr)),We}function He(We,xr,Lr){if(f.exportEquals)return We;var xn=K.getDeclarationName(xr),An=f.exportSpecifiers.get(e.idText(xn));if(An)for(var Qn=0,ai=An;Qn<ai.length;Qn++){var Dr=ai[Qn];Dr.name.escapedText!==Lr&&(We=Be(We,Dr.name,xn))}return We}function Be(We,xr,Lr,xn){return We=e.append(We,Me(xr,Lr,xn)),We}function Me(We,xr,Lr){var xn=K.createExpressionStatement(Le(We,xr));return e.startOnNewLine(xn),Lr||e.setEmitFlags(xn,1536),xn}function Le(We,xr){var Lr=e.isIdentifier(We)?K.createStringLiteralFromNode(We):We;return e.setEmitFlags(xr,e.getEmitFlags(xr)|1536),e.setCommentRange(K.createCallExpression(m,void 0,[Lr,xr]),xr)}function Ae(We){switch(We.kind){case 240:return q(We);case 259:return N(We);case 260:return J(We);case 245:return Xe(We,!0);case 246:return Ne(We);case 247:return Oe(We);case 243:return d(We);case 244:return j(We);case 253:return Ce(We);case 251:return Se(We);case 252:return Re(We);case 266:return er(We);case 292:return wr(We);case 293:return mr(We);case 255:return Ue(We);case 295:return t(We);case 238:return qr(We);case 355:return B(We);case 356:return A(We);default:return dr(We)}}function Xe(We,xr){var Lr=k;return k=We,We=K.updateForStatement(We,e.visitNode(We.initializer,xr?Y:vr,e.isForInitializer),e.visitNode(We.condition,dr,e.isExpression),e.visitNode(We.incrementor,vr,e.isExpression),e.visitIterationBody(We.statement,xr?Ae:dr,ne)),k=Lr,We}function Ne(We){var xr=k;return k=We,We=K.updateForInStatement(We,Y(We.initializer),e.visitNode(We.expression,dr,e.isExpression),e.visitIterationBody(We.statement,Ae,ne)),k=xr,We}function Oe(We){var xr=k;return k=We,We=K.updateForOfStatement(We,We.awaitModifier,Y(We.initializer),e.visitNode(We.expression,dr,e.isExpression),e.visitIterationBody(We.statement,Ae,ne)),k=xr,We}function be(We){return e.isVariableDeclarationList(We)&&ye(We)}function Y(We){if(be(We)){for(var xr=void 0,Lr=0,xn=We.declarations;Lr<xn.length;Lr++){var An=xn[Lr];xr=e.append(xr,b(An,!1)),An.initializer||G(An)}return xr?K.inlineExpressions(xr):K.createOmittedExpression()}else return e.visitNode(We,vr,e.isExpression)}function d(We){return K.updateDoStatement(We,e.visitIterationBody(We.statement,Ae,ne),e.visitNode(We.expression,dr,e.isExpression))}function j(We){return K.updateWhileStatement(We,e.visitNode(We.expression,dr,e.isExpression),e.visitIterationBody(We.statement,Ae,ne))}function Ce(We){return K.updateLabeledStatement(We,We.label,e.visitNode(We.statement,Ae,e.isStatement,K.liftToBlock))}function Se(We){return K.updateWithStatement(We,e.visitNode(We.expression,dr,e.isExpression),e.visitNode(We.statement,Ae,e.isStatement,K.liftToBlock))}function Re(We){return K.updateSwitchStatement(We,e.visitNode(We.expression,dr,e.isExpression),e.visitNode(We.caseBlock,Ae,e.isCaseBlock))}function er(We){var xr=k;return k=We,We=K.updateCaseBlock(We,e.visitNodes(We.clauses,Ae,e.isCaseOrDefaultClause)),k=xr,We}function wr(We){return K.updateCaseClause(We,e.visitNode(We.expression,dr,e.isExpression),e.visitNodes(We.statements,Ae,e.isStatement))}function mr(We){return e.visitEachChild(We,Ae,ne)}function Ue(We){return e.visitEachChild(We,Ae,ne)}function t(We){var xr=k;return k=We,We=K.updateCatchClause(We,We.variableDeclaration,e.visitNode(We.block,Ae,e.isBlock)),k=xr,We}function qr(We){var xr=k;return k=We,We=e.visitEachChild(We,Ae,ne),k=xr,We}function ln(We,xr){if(!(We.transformFlags&(4096|8388608|268435456)))return We;switch(We.kind){case 245:return Xe(We,!1);case 241:return kr(We);case 214:return Ur(We,xr);case 353:return Cr(We,xr);case 223:if(e.isDestructuringAssignment(We))return Br(We,xr);break;case 210:if(e.isImportCall(We))return rn(We);break;case 221:case 222:return ve(We,xr)}return e.visitEachChild(We,dr,ne)}function dr(We){return ln(We,!1)}function vr(We){return ln(We,!0)}function kr(We){return K.updateExpressionStatement(We,e.visitNode(We.expression,vr,e.isExpression))}function Ur(We,xr){return K.updateParenthesizedExpression(We,e.visitNode(We.expression,xr?vr:dr,e.isExpression))}function Cr(We,xr){return K.updatePartiallyEmittedExpression(We,e.visitNode(We.expression,xr?vr:dr,e.isExpression))}function rn(We){var xr=e.getExternalModuleNameLiteral(K,We,I,p,Q,_e),Lr=e.visitNode(e.firstOrUndefined(We.arguments),dr),xn=xr&&(!Lr||!e.isStringLiteral(Lr)||Lr.text!==xr.text)?xr:Lr;return K.createCallExpression(K.createPropertyAccessExpression(y,K.createIdentifier("import")),void 0,xn?[xn]:[])}function Br(We,xr){return pn(We.left)?e.flattenDestructuringAssignment(We,dr,ne,0,!xr):e.visitEachChild(We,dr,ne)}function pn(We){if(e.isAssignmentExpression(We,!0))return pn(We.left);if(e.isSpreadElement(We))return pn(We.expression);if(e.isObjectLiteralExpression(We))return e.some(We.properties,pn);if(e.isArrayLiteralExpression(We))return e.some(We.elements,pn);if(e.isShorthandPropertyAssignment(We))return pn(We.name);if(e.isPropertyAssignment(We))return pn(We.initializer);if(e.isIdentifier(We)){var xr=Q.getReferencedExportContainer(We);return xr!==void 0&&xr.kind===308}else return!1}function ve(We,xr){if((We.operator===45||We.operator===46)&&e.isIdentifier(We.operand)&&!e.isGeneratedIdentifier(We.operand)&&!e.isLocalName(We.operand)&&!e.isDeclarationNameOfEnumOrNamespace(We.operand)){var Lr=en(We.operand);if(Lr){var xn=void 0,An=e.visitNode(We.operand,dr,e.isExpression);e.isPrefixUnaryExpression(We)?An=K.updatePrefixUnaryExpression(We,An):(An=K.updatePostfixUnaryExpression(We,An),xr||(xn=K.createTempVariable(ie),An=K.createAssignment(xn,An),e.setTextRange(An,We)),An=K.createComma(An,K.cloneNode(We.operand)),e.setTextRange(An,We));for(var Qn=0,ai=Lr;Qn<ai.length;Qn++){var Dr=ai[Qn];An=Le(Dr,vn(An))}return xn&&(An=K.createComma(An,xn),e.setTextRange(An,We)),An}}return e.visitEachChild(We,dr,ne)}function or(We){switch(We.kind){case 93:case 88:return}return We}function Ee(We,xr,Lr){if(xr.kind===308){var xn=e.getOriginalNodeId(xr);I=xr,f=de[xn],m=oe[xn],C=ae[xn],y=E[xn],C&&delete ae[xn],le(We,xr,Lr),I=void 0,f=void 0,m=void 0,y=void 0,C=void 0}else le(We,xr,Lr)}function ze(We,xr){return xr=D(We,xr),Ie(xr)?xr:We===1?cr(xr):We===4?Ar(xr):xr}function Ar(We){switch(We.kind){case 300:return xe(We)}return We}function xe(We){var xr,Lr,xn=We.name;if(!e.isGeneratedIdentifier(xn)&&!e.isLocalName(xn)){var An=Q.getReferencedImportDeclaration(xn);if(An){if(e.isImportClause(An))return e.setTextRange(K.createPropertyAssignment(K.cloneNode(xn),K.createPropertyAccessExpression(K.getGeneratedNameForNode(An.parent),K.createIdentifier("default"))),We);if(e.isImportSpecifier(An))return e.setTextRange(K.createPropertyAssignment(K.cloneNode(xn),K.createPropertyAccessExpression(K.getGeneratedNameForNode(((Lr=(xr=An.parent)===null||xr===void 0?void 0:xr.parent)===null||Lr===void 0?void 0:Lr.parent)||An),K.cloneNode(An.propertyName||An.name))),We)}}return We}function cr(We){switch(We.kind){case 79:return Mr(We);case 223:return Rr(We);case 233:return Qr(We)}return We}function Mr(We){var xr,Lr;if(e.getEmitFlags(We)&4096){var xn=e.getExternalHelpersModuleName(I);return xn?K.createPropertyAccessExpression(xn,We):We}if(!e.isGeneratedIdentifier(We)&&!e.isLocalName(We)){var An=Q.getReferencedImportDeclaration(We);if(An){if(e.isImportClause(An))return e.setTextRange(K.createPropertyAccessExpression(K.getGeneratedNameForNode(An.parent),K.createIdentifier("default")),We);if(e.isImportSpecifier(An))return e.setTextRange(K.createPropertyAccessExpression(K.getGeneratedNameForNode(((Lr=(xr=An.parent)===null||xr===void 0?void 0:xr.parent)===null||Lr===void 0?void 0:Lr.parent)||An),K.cloneNode(An.propertyName||An.name)),We)}}return We}function Rr(We){if(e.isAssignmentOperator(We.operatorToken.kind)&&e.isIdentifier(We.left)&&!e.isGeneratedIdentifier(We.left)&&!e.isLocalName(We.left)&&!e.isDeclarationNameOfEnumOrNamespace(We.left)){var xr=en(We.left);if(xr){for(var Lr=We,xn=0,An=xr;xn<An.length;xn++){var Qn=An[xn];Lr=Le(Qn,vn(Lr))}return Lr}}return We}function Qr(We){return e.isImportMeta(We)?K.createPropertyAccessExpression(y,K.createIdentifier("meta")):We}function en(We){var xr;if(!e.isGeneratedIdentifier(We)){var Lr=Q.getReferencedImportDeclaration(We)||Q.getReferencedValueDeclaration(We);if(Lr){var xn=Q.getReferencedExportContainer(We,!1);xn&&xn.kind===308&&(xr=e.append(xr,K.getDeclarationName(Lr))),xr=e.addRange(xr,f&&f.exportedBindings[e.getOriginalNodeId(Lr)])}}return xr}function vn(We){return C===void 0&&(C=[]),C[e.getNodeId(We)]=!0,We}function Ie(We){return C&&We.id&&C[We.id]}}e.transformSystemModule=o})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.factory,se=ne.getEmitHelperFactory,O=ne.getEmitHost(),ie=ne.getEmitResolver(),_e=ne.getCompilerOptions(),Q=e.getEmitScriptTarget(_e),p=ne.onEmitNode,D=ne.onSubstituteNode;ne.onEmitNode=k,ne.onSubstituteNode=C,ne.enableEmitNotification(308),ne.enableSubstitution(79);var le,de,te;return e.chainBundle(ne,oe);function oe(De){if(De.isDeclarationFile)return De;if(e.isExternalModule(De)||_e.isolatedModules){de=De,te=void 0;var X=ae(De);return de=void 0,te&&(X=K.updateSourceFile(X,e.setTextRange(K.createNodeArray(e.insertStatementsAfterCustomPrologue(X.statements.slice(),te)),X.statements))),!e.isExternalModule(De)||e.some(X.statements,e.isExternalModuleIndicator)?X:K.updateSourceFile(X,e.setTextRange(K.createNodeArray(zn(zn([],X.statements,!0),[e.createEmptyExports(K)],!1)),X.statements))}return De}function ae(De){var X=e.createExternalHelpersImportDeclarationIfNeeded(K,se(),De,_e);if(X){var M=[],H=K.copyPrologue(De.statements,M);return e.append(M,X),e.addRange(M,e.visitNodes(De.statements,E,e.isStatement,H)),K.updateSourceFile(De,e.setTextRange(K.createNodeArray(M),De.statements))}else return e.visitEachChild(De,E,ne)}function E(De){switch(De.kind){case 268:return e.getEmitModuleKind(_e)>=e.ModuleKind.Node16?f(De):void 0;case 274:return y(De);case 275:var X=De;return S(X)}return De}function I(De){var X=e.getExternalModuleNameLiteral(K,De,e.Debug.checkDefined(de),O,ie,_e),M=[];if(X&&M.push(X),!te){var H=K.createUniqueName("_createRequire",16|32),V=K.createImportDeclaration(void 0,K.createImportClause(!1,void 0,K.createNamedImports([K.createImportSpecifier(!1,K.createIdentifier("createRequire"),H)])),K.createStringLiteral("module")),h=K.createUniqueName("__require",16|32),F=K.createVariableStatement(void 0,K.createVariableDeclarationList([K.createVariableDeclaration(h,void 0,void 0,K.createCallExpression(K.cloneNode(H),void 0,[K.createPropertyAccessExpression(K.createMetaProperty(100,K.createIdentifier("meta")),K.createIdentifier("url"))]))],Q>=2?2:0));te=[V,F]}var $=te[1].declarationList.declarations[0].name;return e.Debug.assertNode($,e.isIdentifier),K.createCallExpression(K.cloneNode($),void 0,M)}function f(De){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(De),"import= for internal module references should be handled in an earlier transformer.");var X;return X=e.append(X,e.setOriginalNode(e.setTextRange(K.createVariableStatement(void 0,K.createVariableDeclarationList([K.createVariableDeclaration(K.cloneNode(De.name),void 0,void 0,I(De))],Q>=2?2:0)),De),De)),X=m(X,De),e.singleOrMany(X)}function m(De,X){return e.hasSyntacticModifier(X,1)&&(De=e.append(De,K.createExportDeclaration(void 0,X.isTypeOnly,K.createNamedExports([K.createExportSpecifier(!1,void 0,e.idText(X.name))])))),De}function y(De){return De.isExportEquals?void 0:De}function S(De){if(_e.module!==void 0&&_e.module>e.ModuleKind.ES2015||!De.exportClause||!e.isNamespaceExport(De.exportClause)||!De.moduleSpecifier)return De;var X=De.exportClause.name,M=K.getGeneratedNameForNode(X),H=K.createImportDeclaration(void 0,K.createImportClause(!1,void 0,K.createNamespaceImport(M)),De.moduleSpecifier,De.assertClause);e.setOriginalNode(H,De.exportClause);var V=e.isExportNamespaceAsDefaultDeclaration(De)?K.createExportDefault(M):K.createExportDeclaration(void 0,!1,K.createNamedExports([K.createExportSpecifier(!1,M,X)]));return e.setOriginalNode(V,De),[H,V]}function k(De,X,M){e.isSourceFile(X)?((e.isExternalModule(X)||_e.isolatedModules)&&_e.importHelpers&&(le=new e.Map),p(De,X,M),le=void 0):p(De,X,M)}function C(De,X){return X=D(De,X),le&&e.isIdentifier(X)&&e.getEmitFlags(X)&4096?me(X):X}function me(De){var X=e.idText(De),M=le.get(X);return M||le.set(X,M=K.createUniqueName(X,16|32)),M}}e.transformECMAScriptModule=o})(fr||(fr={}));var fr;(function(e){function o(ne){var K=ne.onSubstituteNode,se=ne.onEmitNode,O=e.transformECMAScriptModule(ne),ie=ne.onSubstituteNode,_e=ne.onEmitNode;ne.onSubstituteNode=K,ne.onEmitNode=se;var Q=e.transformModule(ne),p=ne.onSubstituteNode,D=ne.onEmitNode;ne.onSubstituteNode=de,ne.onEmitNode=te,ne.enableSubstitution(308),ne.enableEmitNotification(308);var le;return E;function de(f,m){return e.isSourceFile(m)?(le=m,K(f,m)):le?le.impliedNodeFormat===e.ModuleKind.ESNext?ie(f,m):p(f,m):K(f,m)}function te(f,m,y){return e.isSourceFile(m)&&(le=m),le?le.impliedNodeFormat===e.ModuleKind.ESNext?_e(f,m,y):D(f,m,y):se(f,m,y)}function oe(f){return f.impliedNodeFormat===e.ModuleKind.ESNext?O:Q}function ae(f){if(f.isDeclarationFile)return f;le=f;var m=oe(f)(f);return le=void 0,e.Debug.assert(e.isSourceFile(m)),m}function E(f){return f.kind===308?ae(f):I(f)}function I(f){return ne.factory.createBundle(e.map(f.sourceFiles,ae),f.prepends)}}e.transformNodeModule=o})(fr||(fr={}));var fr;(function(e){function o(se){return e.isVariableDeclaration(se)||e.isPropertyDeclaration(se)||e.isPropertySignature(se)||e.isBindingElement(se)||e.isSetAccessor(se)||e.isGetAccessor(se)||e.isConstructSignatureDeclaration(se)||e.isCallSignatureDeclaration(se)||e.isMethodDeclaration(se)||e.isMethodSignature(se)||e.isFunctionDeclaration(se)||e.isParameter(se)||e.isTypeParameterDeclaration(se)||e.isExpressionWithTypeArguments(se)||e.isImportEqualsDeclaration(se)||e.isTypeAliasDeclaration(se)||e.isConstructorDeclaration(se)||e.isIndexSignatureDeclaration(se)||e.isPropertyAccessExpression(se)||e.isJSDocTypeAlias(se)}e.canProduceDiagnostics=o;function ne(se){if(e.isSetAccessor(se)||e.isGetAccessor(se))return O;return e.isMethodSignature(se)||e.isMethodDeclaration(se)?_e:K(se);function O(p){var D=ie(p);return D!==void 0?{diagnosticMessage:D,errorNode:se,typeName:se.name}:void 0}function ie(p){return e.isStatic(se)?p.errorModuleName?p.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:se.parent.kind===260?p.errorModuleName?p.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function _e(p){var D=Q(p);return D!==void 0?{diagnosticMessage:D,errorNode:se,typeName:se.name}:void 0}function Q(p){return e.isStatic(se)?p.errorModuleName?p.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:se.parent.kind===260?p.errorModuleName?p.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=ne;function K(se){if(e.isVariableDeclaration(se)||e.isPropertyDeclaration(se)||e.isPropertySignature(se)||e.isPropertyAccessExpression(se)||e.isBindingElement(se)||e.isConstructorDeclaration(se))return ie;return e.isSetAccessor(se)||e.isGetAccessor(se)?_e:e.isConstructSignatureDeclaration(se)||e.isCallSignatureDeclaration(se)||e.isMethodDeclaration(se)||e.isMethodSignature(se)||e.isFunctionDeclaration(se)||e.isIndexSignatureDeclaration(se)?Q:e.isParameter(se)?e.isParameterPropertyDeclaration(se,se.parent)&&e.hasSyntacticModifier(se.parent,8)?ie:p:e.isTypeParameterDeclaration(se)?le:e.isExpressionWithTypeArguments(se)?de:e.isImportEqualsDeclaration(se)?te:e.isTypeAliasDeclaration(se)||e.isJSDocTypeAlias(se)?oe:e.Debug.assertNever(se,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(se.kind)));function O(ae){if(se.kind===257||se.kind===205)return ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(se.kind===169||se.kind===208||se.kind===168||se.kind===166&&e.hasSyntacticModifier(se.parent,8))return e.isStatic(se)?ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:se.parent.kind===260||se.kind===166?ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:ae.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function ie(ae){var E=O(ae);return E!==void 0?{diagnosticMessage:E,errorNode:se,typeName:se.name}:void 0}function _e(ae){var E;return se.kind===175?e.isStatic(se)?E=ae.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=ae.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(se)?E=ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:se.name,typeName:se.name}}function Q(ae){var E;switch(se.kind){case 177:E=ae.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:E=ae.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:E=ae.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:e.isStatic(se)?E=ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:se.parent.kind===260?E=ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=ae.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:E=ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+se.kind)}return{diagnosticMessage:E,errorNode:se.name||se}}function p(ae){var E=D(ae);return E!==void 0?{diagnosticMessage:E,errorNode:se,typeName:se.name}:void 0}function D(ae){switch(se.parent.kind){case 173:return ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return ae.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return ae.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return ae.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return e.isStatic(se.parent)?ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:se.parent.parent.kind===260?ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ae.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return ae.errorModuleName?ae.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.Debug.formatSyntaxKind(se.parent.kind)))}}function le(){var ae;switch(se.parent.kind){case 260:ae=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:ae=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:ae=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:ae=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:ae=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:e.isStatic(se.parent)?ae=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:se.parent.parent.kind===260?ae=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ae=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:ae=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 262:ae=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+se.parent.kind)}return{diagnosticMessage:ae,errorNode:se,typeName:se.name}}function de(){var ae;return e.isClassDeclaration(se.parent.parent)?ae=e.isHeritageClause(se.parent)&&se.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:se.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:ae=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:ae,errorNode:se,typeName:e.getNameOfDeclaration(se.parent.parent)}}function te(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:se,typeName:se.name}}function oe(ae){return{diagnosticMessage:ae.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(se)?e.Debug.checkDefined(se.typeExpression):se.type,typeName:e.isJSDocTypeAlias(se)?e.getNameOfDeclaration(se):se.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=K})(fr||(fr={}));var fr;(function(e){function o(te,oe,ae){var E=te.getCompilerOptions(),I=e.transformNodes(oe,te,e.factory,E,ae?[ae]:e.filter(te.getSourceFiles(),e.isSourceFileNotJson),[O],!1);return I.diagnostics}e.getDeclarationDiagnostics=o;function ne(te,oe){var ae=oe.text.substring(te.pos,te.end);return e.stringContains(ae,"@internal")}function K(te,oe){var ae=e.getParseTreeNode(te);if(ae&&ae.kind===166){var E=ae.parent.parameters.indexOf(ae),I=E>0?ae.parent.parameters[E-1]:void 0,f=oe.text,m=I?e.concatenate(e.getTrailingCommentRanges(f,e.skipTrivia(f,I.end+1,!1,!0)),e.getLeadingCommentRanges(f,te.pos)):e.getTrailingCommentRanges(f,e.skipTrivia(f,te.pos,!1,!0));return m&&m.length&&ne(e.last(m),oe)}var y=ae&&e.getLeadingCommentRangesOfNode(ae,oe);return!!e.forEach(y,function(S){return ne(S,oe)})}e.isInternalDeclaration=K;var se=1024|2048|4096|8|524288|4|1;function O(te){var oe=function(){return e.Debug.fail("Diagnostic emitted without context")},ae=oe,E=!0,I=!1,f=!1,m=!1,y=!1,S,k,C,me,De,X,M=te.factory,H=te.getEmitHost(),V={trackSymbol:B,reportInaccessibleThisError:U,reportInaccessibleUniqueSymbolError:w,reportCyclicStructureError:z,reportPrivateInBaseOfClassExpression:u,reportLikelyUnsafeImportRequiredError:ge,reportTruncationError:pe,moduleResolverHost:H,trackReferencedAmbientModule:x,trackExternalModuleSymbolOfImportTypeNode:Z,reportNonlocalAugmentation:He,reportNonSerializableProperty:Be,reportImportTypeNodeResolutionModeOverride:Me},h,F,$,L,P,N,J=te.getEmitResolver(),q=te.getCompilerOptions(),G=q.noResolve,ye=q.stripInternal;return Ae;function b(Ie){if(!!Ie){k=k||new e.Set;for(var We=0,xr=Ie;We<xr.length;We++){var Lr=xr[We];k.add(Lr)}}}function x(Ie,We){var xr=J.getTypeReferenceDirectivesForSymbol(We,67108863);if(e.length(xr))return b(xr);var Lr=e.getSourceFileOfNode(Ie);L.set(e.getOriginalNodeId(Lr),Lr)}function T(Ie){if(Ie.accessibility===0){if(Ie&&Ie.aliasesToMakeVisible)if(!C)C=Ie.aliasesToMakeVisible;else for(var We=0,xr=Ie.aliasesToMakeVisible;We<xr.length;We++){var Lr=xr[We];e.pushIfUnique(C,Lr)}}else{var xn=ae(Ie);if(xn)return xn.typeName?te.addDiagnostic(e.createDiagnosticForNode(Ie.errorNode||xn.errorNode,xn.diagnosticMessage,e.getTextOfNode(xn.typeName),Ie.errorSymbolName,Ie.errorModuleName)):te.addDiagnostic(e.createDiagnosticForNode(Ie.errorNode||xn.errorNode,xn.diagnosticMessage,Ie.errorSymbolName,Ie.errorModuleName)),!0}return!1}function Z(Ie){I||(X||(X=[])).push(Ie)}function B(Ie,We,xr){if(Ie.flags&262144)return!1;var Lr=T(J.isSymbolAccessible(Ie,We,xr,!0));return b(J.getTypeReferenceDirectivesForSymbol(Ie,xr)),Lr}function u(Ie){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Ie))}function A(){return h?e.declarationNameToString(h):F&&e.getNameOfDeclaration(F)?e.declarationNameToString(e.getNameOfDeclaration(F)):F&&e.isExportAssignment(F)?F.isExportEquals?"export=":"default":"(Missing)"}function w(){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,A(),"unique symbol"))}function z(){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,A()))}function U(){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,A(),"this"))}function ge(Ie){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,A(),Ie))}function pe(){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function He(Ie,We,xr){var Lr,xn=(Lr=We.declarations)===null||Lr===void 0?void 0:Lr.find(function(Pr){return e.getSourceFileOfNode(Pr)===Ie}),An=e.filter(xr.declarations,function(Pr){return e.getSourceFileOfNode(Pr)!==Ie});if(xn&&An)for(var Qn=0,ai=An;Qn<ai.length;Qn++){var Dr=ai[Qn];te.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(Dr,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(xn,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function Be(Ie){(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ie))}function Me(){!e.isNightly()&&(h||F)&&te.addDiagnostic(e.createDiagnosticForNode(h||F,e.Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Le(Ie,We){var xr=ae;ae=function(xn){return xn.errorNode&&e.canProduceDiagnostics(xn.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(xn.errorNode)(xn):{diagnosticMessage:xn.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:xn.errorNode||Ie}};var Lr=J.getDeclarationStatementsForSourceFile(Ie,se,V,We);return ae=xr,Lr}function Ae(Ie){if(Ie.kind===308&&Ie.isDeclarationFile)return Ie;if(Ie.kind===309){I=!0,L=new e.Map,P=new e.Map;var We=!1,xr=M.createBundle(e.map(Ie.sourceFiles,function(Ye){if(!Ye.isDeclarationFile){if(We=We||Ye.hasNoDefaultLib,$=Ye,S=Ye,C=void 0,De=!1,me=new e.Map,ae=oe,m=!1,y=!1,Xe(Ye,L),Ne(Ye,P),e.isExternalOrCommonJsModule(Ye)||e.isJsonSourceFile(Ye)){f=!1,E=!1;var Qe=e.isSourceFileJS(Ye)?M.createNodeArray(Le(Ye,!0)):e.visitNodes(Ye.statements,Br),ue=M.updateSourceFile(Ye,[M.createModuleDeclaration([M.createModifier(136)],M.createStringLiteral(e.getResolvedExternalModuleName(te.getEmitHost(),Ye)),M.createModuleBlock(e.setTextRange(M.createNodeArray(Ur(Qe)),Ye.statements)))],!0,[],[],!1,[]);return ue}E=!0;var Ke=e.isSourceFileJS(Ye)?M.createNodeArray(Le(Ye)):e.visitNodes(Ye.statements,Br);return M.updateSourceFile(Ye,Ur(Ke),!0,[],[],!1,[])}}),e.mapDefined(Ie.prepends,function(Ye){if(Ye.kind===311){var Qe=e.createUnparsedSourceFile(Ye,"dts",ye);return We=We||!!Qe.hasNoDefaultLib,Xe(Qe,L),b(e.map(Qe.typeReferenceDirectives,function(ue){return[ue.fileName,ue.resolutionMode]})),Ne(Qe,P),Qe}return Ye}));xr.syntheticFileReferences=[],xr.syntheticTypeReferences=je(),xr.syntheticLibReferences=on(),xr.hasNoDefaultLib=We;var Lr=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Ie,H,!0).declarationFilePath)),xn=Te(xr.syntheticFileReferences,Lr);return L.forEach(xn),xr}E=!0,m=!1,y=!1,S=Ie,$=Ie,ae=oe,I=!1,f=!1,De=!1,C=void 0,me=new e.Map,k=void 0,L=Xe($,new e.Map),P=Ne($,new e.Map);var An=[],Qn=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Ie,H,!0).declarationFilePath)),ai=Te(An,Qn),Dr;if(e.isSourceFileJS($))Dr=M.createNodeArray(Le(Ie)),L.forEach(ai),N=e.filter(Dr,e.isAnyImportSyntax);else{var Pr=e.visitNodes(Ie.statements,Br);Dr=e.setTextRange(M.createNodeArray(Ur(Pr)),Ie.statements),L.forEach(ai),N=e.filter(Dr,e.isAnyImportSyntax),e.isExternalModule(Ie)&&(!f||m&&!y)&&(Dr=e.setTextRange(M.createNodeArray(zn(zn([],Dr,!0),[e.createEmptyExports(M)],!1)),Dr))}var jr=M.updateSourceFile(Ie,Dr,!0,An,je(),Ie.hasNoDefaultLib,on());return jr.exportedModulesFromDeclarationEmit=X,jr;function on(){return e.map(e.arrayFrom(P.keys()),function(Ye){return{fileName:Ye,pos:-1,end:-1}})}function je(){return k?e.mapDefined(e.arrayFrom(k.keys()),Sr):[]}function Sr(Ye){var Qe=Ye[0],ue=Ye[1];if(N)for(var Ke=0,tr=N;Ke<tr.length;Ke++){var hr=tr[Ke];if(e.isImportEqualsDeclaration(hr)&&e.isExternalModuleReference(hr.moduleReference)){var _r=hr.moduleReference.expression;if(e.isStringLiteralLike(_r)&&_r.text===Qe)return}else if(e.isImportDeclaration(hr)&&e.isStringLiteral(hr.moduleSpecifier)&&hr.moduleSpecifier.text===Qe)return}return vi({fileName:Qe,pos:-1,end:-1},ue?{resolutionMode:ue}:void 0)}function Te(Ye,Qe){return function(ue){var Ke;if(ue.isDeclarationFile)Ke=ue.fileName;else{if(I&&e.contains(Ie.sourceFiles,ue))return;var tr=e.getOutputPathsFor(ue,H,!0);Ke=tr.declarationFilePath||tr.jsFilePath||ue.fileName}if(Ke){var hr=e.moduleSpecifiers.getModuleSpecifier(q,$,e.toPath(Qe,H.getCurrentDirectory(),H.getCanonicalFileName),e.toPath(Ke,H.getCurrentDirectory(),H.getCanonicalFileName),H);if(!e.pathIsRelative(hr)){b([[hr,void 0]]);return}var _r=e.getRelativePathToDirectoryOrUrl(Qe,Ke,H.getCurrentDirectory(),H.getCanonicalFileName,!1);if(e.startsWith(_r,"./")&&e.hasExtension(_r)&&(_r=_r.substring(2)),e.startsWith(_r,"node_modules/")||e.pathContainsNodeModules(_r))return;Ye.push({pos:-1,end:-1,fileName:_r})}}}}function Xe(Ie,We){return G||!e.isUnparsedSource(Ie)&&e.isSourceFileJS(Ie)||e.forEach(Ie.referencedFiles,function(xr){var Lr=H.getSourceFileFromReference(Ie,xr);Lr&&We.set(e.getOriginalNodeId(Lr),Lr)}),We}function Ne(Ie,We){return e.forEach(Ie.libReferenceDirectives,function(xr){var Lr=H.getLibFileFromReference(xr);Lr&&We.set(e.toFileNameLowerCase(xr.fileName),!0)}),We}function Oe(Ie){if(Ie.kind===79)return Ie;return Ie.kind===204?M.updateArrayBindingPattern(Ie,e.visitNodes(Ie.elements,We)):M.updateObjectBindingPattern(Ie,e.visitNodes(Ie.elements,We));function We(xr){return xr.kind===229?xr:xr.propertyName&&e.isIdentifier(xr.propertyName)&&e.isIdentifier(xr.name)&&!xr.symbol.isReferenced?M.updateBindingElement(xr,xr.dotDotDotToken,void 0,xr.propertyName,Y(xr)?xr.initializer:void 0):M.updateBindingElement(xr,xr.dotDotDotToken,xr.propertyName,Oe(xr.name),Y(xr)?xr.initializer:void 0)}}function be(Ie,We,xr){var Lr;De||(Lr=ae,ae=e.createGetSymbolAccessibilityDiagnosticForNode(Ie));var xn=M.updateParameterDeclaration(Ie,_e(Ie,We),Ie.dotDotDotToken,Oe(Ie.name),J.isOptionalParameter(Ie)?Ie.questionToken||M.createToken(57):void 0,j(Ie,xr||Ie.type,!0),d(Ie));return De||(ae=Lr),xn}function Y(Ie){return D(Ie)&&J.isLiteralConstDeclaration(e.getParseTreeNode(Ie))}function d(Ie){if(Y(Ie))return J.createLiteralConstValue(e.getParseTreeNode(Ie),V)}function j(Ie,We,xr){if(!xr&&e.hasEffectiveModifier(Ie,8)||Y(Ie))return;var Lr=Ie.kind===166&&(J.isRequiredInitializedParameter(Ie)||J.isOptionalUninitializedParameterProperty(Ie));if(We&&!Lr)return e.visitNode(We,Cr);if(!e.getParseTreeNode(Ie))return We?e.visitNode(We,Cr):M.createKeywordTypeNode(131);if(Ie.kind===175)return M.createKeywordTypeNode(131);h=Ie.name;var xn;if(De||(xn=ae,ae=e.createGetSymbolAccessibilityDiagnosticForNode(Ie)),Ie.kind===257||Ie.kind===205)return An(J.createTypeOfDeclaration(Ie,S,se,V));if(Ie.kind===166||Ie.kind===169||Ie.kind===168)return e.isPropertySignature(Ie)||!Ie.initializer?An(J.createTypeOfDeclaration(Ie,S,se,V,Lr)):An(J.createTypeOfDeclaration(Ie,S,se,V,Lr)||J.createTypeOfExpression(Ie.initializer,S,se,V));return An(J.createReturnTypeOfSignatureDeclaration(Ie,S,se,V));function An(Qn){return h=void 0,De||(ae=xn),Qn||M.createKeywordTypeNode(131)}}function Ce(Ie){switch(Ie=e.getParseTreeNode(Ie),Ie.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!J.isDeclarationVisible(Ie);case 257:return!Re(Ie);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function Se(Ie){var We;if(Ie.body)return!0;var xr=(We=Ie.symbol.declarations)===null||We===void 0?void 0:We.filter(function(Lr){return e.isFunctionDeclaration(Lr)&&!Lr.body});return!xr||xr.indexOf(Ie)===xr.length-1}function Re(Ie){return e.isOmittedExpression(Ie)?!1:e.isBindingPattern(Ie.name)?e.some(Ie.name.elements,Re):J.isDeclarationVisible(Ie)}function er(Ie,We,xr){if(!e.hasEffectiveModifier(Ie,8)){var Lr=e.map(We,function(xn){return be(xn,xr)});if(!!Lr)return M.createNodeArray(Lr,We.hasTrailingComma)}}function wr(Ie,We){var xr;if(!We){var Lr=e.getThisParameter(Ie);Lr&&(xr=[be(Lr)])}if(e.isSetAccessorDeclaration(Ie)){var xn=void 0;if(!We){var An=e.getSetAccessorValueParameter(Ie);if(An){var Qn=en(Ie,J.getAllAccessorDeclarations(Ie));xn=be(An,void 0,Qn)}}xn||(xn=M.createParameterDeclaration(void 0,void 0,"value")),xr=e.append(xr,xn)}return M.createNodeArray(xr||e.emptyArray)}function mr(Ie,We){return e.hasEffectiveModifier(Ie,8)?void 0:e.visitNodes(We,Cr)}function Ue(Ie){return e.isSourceFile(Ie)||e.isTypeAliasDeclaration(Ie)||e.isModuleDeclaration(Ie)||e.isClassDeclaration(Ie)||e.isInterfaceDeclaration(Ie)||e.isFunctionLike(Ie)||e.isIndexSignatureDeclaration(Ie)||e.isMappedTypeNode(Ie)}function t(Ie,We){var xr=J.isEntityNameVisible(Ie,We);T(xr),b(J.getTypeReferenceDirectivesForEntityName(Ie))}function qr(Ie,We){return e.hasJSDocNodes(Ie)&&e.hasJSDocNodes(We)&&(Ie.jsDoc=We.jsDoc),e.setCommentRange(Ie,e.getCommentRange(We))}function ln(Ie,We){if(!!We){if(f=f||Ie.kind!==264&&Ie.kind!==202,e.isStringLiteralLike(We))if(I){var xr=e.getExternalModuleNameFromDeclaration(te.getEmitHost(),J,Ie);if(xr)return M.createStringLiteral(xr)}else{var Lr=J.getSymbolOfExternalModuleSpecifier(We);Lr&&(X||(X=[])).push(Lr)}return We}}function dr(Ie){if(!!J.isDeclarationVisible(Ie))if(Ie.moduleReference.kind===280){var We=e.getExternalModuleImportEqualsDeclarationExpression(Ie);return M.updateImportEqualsDeclaration(Ie,Ie.modifiers,Ie.isTypeOnly,Ie.name,M.updateExternalModuleReference(Ie.moduleReference,ln(Ie,We)))}else{var xr=ae;return ae=e.createGetSymbolAccessibilityDiagnosticForNode(Ie),t(Ie.moduleReference,S),ae=xr,Ie}}function vr(Ie){if(!Ie.importClause)return M.updateImportDeclaration(Ie,Ie.modifiers,Ie.importClause,ln(Ie,Ie.moduleSpecifier),kr(Ie.assertClause));var We=Ie.importClause&&Ie.importClause.name&&J.isDeclarationVisible(Ie.importClause)?Ie.importClause.name:void 0;if(!Ie.importClause.namedBindings)return We&&M.updateImportDeclaration(Ie,Ie.modifiers,M.updateImportClause(Ie.importClause,Ie.importClause.isTypeOnly,We,void 0),ln(Ie,Ie.moduleSpecifier),kr(Ie.assertClause));if(Ie.importClause.namedBindings.kind===271){var xr=J.isDeclarationVisible(Ie.importClause.namedBindings)?Ie.importClause.namedBindings:void 0;return We||xr?M.updateImportDeclaration(Ie,Ie.modifiers,M.updateImportClause(Ie.importClause,Ie.importClause.isTypeOnly,We,xr),ln(Ie,Ie.moduleSpecifier),kr(Ie.assertClause)):void 0}var Lr=e.mapDefined(Ie.importClause.namedBindings.elements,function(xn){return J.isDeclarationVisible(xn)?xn:void 0});if(Lr&&Lr.length||We)return M.updateImportDeclaration(Ie,Ie.modifiers,M.updateImportClause(Ie.importClause,Ie.importClause.isTypeOnly,We,Lr&&Lr.length?M.updateNamedImports(Ie.importClause.namedBindings,Lr):void 0),ln(Ie,Ie.moduleSpecifier),kr(Ie.assertClause));if(J.isImportRequiredByAugmentation(Ie))return M.updateImportDeclaration(Ie,Ie.modifiers,void 0,ln(Ie,Ie.moduleSpecifier),kr(Ie.assertClause))}function kr(Ie){var We=e.getResolutionModeOverrideForClause(Ie);if(We!==void 0)return e.isNightly()||te.addDiagnostic(e.createDiagnosticForNode(Ie,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),Ie}function Ur(Ie){for(;e.length(C);){var We=C.shift();if(!e.isLateVisibilityPaintedStatement(We))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.Debug.formatSyntaxKind(We.kind)));var xr=E;E=We.parent&&e.isSourceFile(We.parent)&&!(e.isExternalModule(We.parent)&&I);var Lr=ve(We);E=xr,me.set(e.getOriginalNodeId(We),Lr)}return e.visitNodes(Ie,xn);function xn(An){if(e.isLateVisibilityPaintedStatement(An)){var Qn=e.getOriginalNodeId(An);if(me.has(Qn)){var ai=me.get(Qn);return me.delete(Qn),ai&&((e.isArray(ai)?e.some(ai,e.needsScopeMarker):e.needsScopeMarker(ai))&&(m=!0),e.isSourceFile(An.parent)&&(e.isArray(ai)?e.some(ai,e.isExternalModuleIndicator):e.isExternalModuleIndicator(ai))&&(f=!0)),ai}}return An}}function Cr(Ie){if(xe(Ie)||e.isDeclaration(Ie)&&(Ce(Ie)||e.hasDynamicName(Ie)&&!J.isLateBound(e.getParseTreeNode(Ie)))||e.isFunctionLike(Ie)&&J.isImplementationOfOverload(Ie)||e.isSemicolonClassElement(Ie))return;var We;Ue(Ie)&&(We=S,S=Ie);var xr=ae,Lr=e.canProduceDiagnostics(Ie),xn=De,An=(Ie.kind===184||Ie.kind===197)&&Ie.parent.kind!==262;if((e.isMethodDeclaration(Ie)||e.isMethodSignature(Ie))&&e.hasEffectiveModifier(Ie,8))return Ie.symbol&&Ie.symbol.declarations&&Ie.symbol.declarations[0]!==Ie?void 0:Ye(M.createPropertyDeclaration(Rr(Ie),Ie.name,void 0,void 0,void 0));if(Lr&&!De&&(ae=e.createGetSymbolAccessibilityDiagnosticForNode(Ie)),e.isTypeQueryNode(Ie)&&t(Ie.exprName,S),An&&(De=!0),de(Ie))switch(Ie.kind){case 230:{(e.isEntityName(Ie.expression)||e.isEntityNameExpression(Ie.expression))&&t(Ie.expression,S);var Qn=e.visitEachChild(Ie,Cr,te);return Ye(M.updateExpressionWithTypeArguments(Qn,Qn.expression,Qn.typeArguments))}case 180:{t(Ie.typeName,S);var Qn=e.visitEachChild(Ie,Cr,te);return Ye(M.updateTypeReferenceNode(Qn,Qn.typeName,Qn.typeArguments))}case 177:return Ye(M.updateConstructSignature(Ie,mr(Ie,Ie.typeParameters),er(Ie,Ie.parameters),j(Ie,Ie.type)));case 173:{var ai=M.createConstructorDeclaration(Rr(Ie),er(Ie,Ie.parameters,0),void 0);return Ye(ai)}case 171:{if(e.isPrivateIdentifier(Ie.name))return Ye(void 0);var Dr=M.createMethodDeclaration(Rr(Ie),void 0,Ie.name,Ie.questionToken,mr(Ie,Ie.typeParameters),er(Ie,Ie.parameters),j(Ie,Ie.type),void 0);return Ye(Dr)}case 174:{if(e.isPrivateIdentifier(Ie.name))return Ye(void 0);var Pr=en(Ie,J.getAllAccessorDeclarations(Ie));return Ye(M.updateGetAccessorDeclaration(Ie,Rr(Ie),Ie.name,wr(Ie,e.hasEffectiveModifier(Ie,8)),j(Ie,Pr),void 0))}case 175:return e.isPrivateIdentifier(Ie.name)?Ye(void 0):Ye(M.updateSetAccessorDeclaration(Ie,Rr(Ie),Ie.name,wr(Ie,e.hasEffectiveModifier(Ie,8)),void 0));case 169:return e.isPrivateIdentifier(Ie.name)?Ye(void 0):Ye(M.updatePropertyDeclaration(Ie,Rr(Ie),Ie.name,Ie.questionToken,j(Ie,Ie.type),d(Ie)));case 168:return e.isPrivateIdentifier(Ie.name)?Ye(void 0):Ye(M.updatePropertySignature(Ie,Rr(Ie),Ie.name,Ie.questionToken,j(Ie,Ie.type)));case 170:return e.isPrivateIdentifier(Ie.name)?Ye(void 0):Ye(M.updateMethodSignature(Ie,Rr(Ie),Ie.name,Ie.questionToken,mr(Ie,Ie.typeParameters),er(Ie,Ie.parameters),j(Ie,Ie.type)));case 176:return Ye(M.updateCallSignature(Ie,mr(Ie,Ie.typeParameters),er(Ie,Ie.parameters),j(Ie,Ie.type)));case 178:return Ye(M.updateIndexSignature(Ie,Rr(Ie),er(Ie,Ie.parameters),e.visitNode(Ie.type,Cr)||M.createKeywordTypeNode(131)));case 257:return e.isBindingPattern(Ie.name)?Ee(Ie.name):(An=!0,De=!0,Ye(M.updateVariableDeclaration(Ie,Ie.name,void 0,j(Ie,Ie.type),d(Ie))));case 165:return rn(Ie)&&(Ie.default||Ie.constraint)?Ye(M.updateTypeParameterDeclaration(Ie,Ie.modifiers,Ie.name,void 0,void 0)):Ye(e.visitEachChild(Ie,Cr,te));case 191:{var jr=e.visitNode(Ie.checkType,Cr),on=e.visitNode(Ie.extendsType,Cr),je=S;S=Ie.trueType;var Sr=e.visitNode(Ie.trueType,Cr);S=je;var Te=e.visitNode(Ie.falseType,Cr);return Ye(M.updateConditionalTypeNode(Ie,jr,on,Sr,Te))}case 181:return Ye(M.updateFunctionTypeNode(Ie,e.visitNodes(Ie.typeParameters,Cr),er(Ie,Ie.parameters),e.visitNode(Ie.type,Cr)));case 182:return Ye(M.updateConstructorTypeNode(Ie,Rr(Ie),e.visitNodes(Ie.typeParameters,Cr),er(Ie,Ie.parameters),e.visitNode(Ie.type,Cr)));case 202:return e.isLiteralImportTypeNode(Ie)?Ye(M.updateImportTypeNode(Ie,M.updateLiteralTypeNode(Ie.argument,ln(Ie,Ie.argument.literal)),Ie.assertions,Ie.qualifier,e.visitNodes(Ie.typeArguments,Cr,e.isTypeNode),Ie.isTypeOf)):Ye(Ie);default:e.Debug.assertNever(Ie,"Attempted to process unhandled node kind: ".concat(e.Debug.formatSyntaxKind(Ie.kind)))}return e.isTupleTypeNode(Ie)&&e.getLineAndCharacterOfPosition($,Ie.pos).line===e.getLineAndCharacterOfPosition($,Ie.end).line&&e.setEmitFlags(Ie,1),Ye(e.visitEachChild(Ie,Cr,te));function Ye(Qe){return Qe&&Lr&&e.hasDynamicName(Ie)&&Ar(Ie),Ue(Ie)&&(S=We),Lr&&!De&&(ae=xr),An&&(De=xn),Qe===Ie?Qe:Qe&&e.setOriginalNode(qr(Qe,Ie),Ie)}}function rn(Ie){return Ie.parent.kind===171&&e.hasEffectiveModifier(Ie.parent,8)}function Br(Ie){if(!!le(Ie)&&!xe(Ie)){switch(Ie.kind){case 275:return e.isSourceFile(Ie.parent)&&(f=!0),y=!0,M.updateExportDeclaration(Ie,Ie.modifiers,Ie.isTypeOnly,Ie.exportClause,ln(Ie,Ie.moduleSpecifier),e.getResolutionModeOverrideForClause(Ie.assertClause)?Ie.assertClause:void 0);case 274:{if(e.isSourceFile(Ie.parent)&&(f=!0),y=!0,Ie.expression.kind===79)return Ie;var We=M.createUniqueName("_default",16);ae=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ie}},F=Ie;var xr=M.createVariableDeclaration(We,void 0,J.createTypeOfExpression(Ie.expression,Ie,se,V),void 0);F=void 0;var Lr=M.createVariableStatement(E?[M.createModifier(136)]:[],M.createVariableDeclarationList([xr],2));return qr(Lr,Ie),e.removeAllComments(Ie),[Lr,M.updateExportAssignment(Ie,Ie.modifiers,We)]}}var xn=ve(Ie);return me.set(e.getOriginalNodeId(Ie),xn),Ie}}function pn(Ie){if(e.isImportEqualsDeclaration(Ie)||e.hasEffectiveModifier(Ie,1024)||!e.canHaveModifiers(Ie))return Ie;var We=M.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Ie)&(258047^1));return M.updateModifiers(Ie,We)}function ve(Ie){if(C)for(;e.orderedRemoveItem(C,Ie););if(xe(Ie))return;switch(Ie.kind){case 268:return dr(Ie);case 269:return vr(Ie)}if(e.isDeclaration(Ie)&&Ce(Ie)||e.isFunctionLike(Ie)&&J.isImplementationOfOverload(Ie))return;var We;Ue(Ie)&&(We=S,S=Ie);var xr=e.canProduceDiagnostics(Ie),Lr=ae;xr&&(ae=e.createGetSymbolAccessibilityDiagnosticForNode(Ie));var xn=E;switch(Ie.kind){case 262:{E=!1;var An=Pe(M.updateTypeAliasDeclaration(Ie,Rr(Ie),Ie.name,e.visitNodes(Ie.typeParameters,Cr,e.isTypeParameterDeclaration),e.visitNode(Ie.type,Cr,e.isTypeNode)));return E=xn,An}case 261:return Pe(M.updateInterfaceDeclaration(Ie,Rr(Ie),Ie.name,mr(Ie,Ie.typeParameters),vn(Ie.heritageClauses),e.visitNodes(Ie.members,Cr)));case 259:{var An=Pe(M.updateFunctionDeclaration(Ie,Rr(Ie),void 0,Ie.name,mr(Ie,Ie.typeParameters),er(Ie,Ie.parameters),j(Ie,Ie.type),void 0));if(An&&J.isExpandoFunctionDeclaration(Ie)&&Se(Ie)){var Qn=J.getPropertiesOfContainerFunction(Ie),ai=e.parseNodeFactory.createModuleDeclaration(void 0,An.name||M.createIdentifier("_default"),M.createModuleBlock([]),16);e.setParent(ai,S),ai.locals=e.createSymbolTable(Qn),ai.symbol=Qn[0].parent;var Dr=[],Pr=e.mapDefined(Qn,function(we){if(!(!we.valueDeclaration||!e.isPropertyAccessExpression(we.valueDeclaration))){ae=e.createGetSymbolAccessibilityDiagnosticForNode(we.valueDeclaration);var hn=J.createTypeOfDeclaration(we.valueDeclaration,ai,se,V);ae=Lr;var jn=e.unescapeLeadingUnderscores(we.escapedName),gn=e.isStringANonContextualKeyword(jn),nn=gn?M.getGeneratedNameForNode(we.valueDeclaration):M.createIdentifier(jn);gn&&Dr.push([nn,jn]);var Cn=M.createVariableDeclaration(nn,void 0,hn,void 0);return M.createVariableStatement(gn?void 0:[M.createToken(93)],M.createVariableDeclarationList([Cn]))}});Dr.length?Pr.push(M.createExportDeclaration(void 0,!1,M.createNamedExports(e.map(Dr,function(we){var hn=we[0],jn=we[1];return M.createExportSpecifier(!1,hn,jn)})))):Pr=e.mapDefined(Pr,function(we){return M.updateModifiers(we,0)});var jr=M.createModuleDeclaration(Rr(Ie),Ie.name,M.createModuleBlock(Pr),16);if(!e.hasEffectiveModifier(An,1024))return[An,jr];var on=M.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(An)&~1025|2),je=M.updateFunctionDeclaration(An,on,void 0,An.name,An.typeParameters,An.parameters,An.type,void 0),Sr=M.updateModuleDeclaration(jr,on,jr.name,jr.body),Te=M.createExportAssignment(void 0,!1,jr.name);return e.isSourceFile(Ie.parent)&&(f=!0),y=!0,[je,Sr,Te]}else return An}case 264:{E=!1;var Ye=Ie.body;if(Ye&&Ye.kind===265){var Qe=m,ue=y;y=!1,m=!1;var Ke=e.visitNodes(Ye.statements,Br),tr=Ur(Ke);Ie.flags&16777216&&(m=!1),!e.isGlobalScopeAugmentation(Ie)&&!Mr(tr)&&!y&&(m?tr=M.createNodeArray(zn(zn([],tr,!0),[e.createEmptyExports(M)],!1)):tr=e.visitNodes(tr,pn));var hr=M.updateModuleBlock(Ye,tr);E=xn,m=Qe,y=ue;var _r=Rr(Ie);return Pe(M.updateModuleDeclaration(Ie,_r,e.isExternalModuleAugmentation(Ie)?ln(Ie,Ie.name):Ie.name,hr))}else{E=xn;var _r=Rr(Ie);E=!1,e.visitNode(Ye,Br);var Or=e.getOriginalNodeId(Ye),hr=me.get(Or);return me.delete(Or),Pe(M.updateModuleDeclaration(Ie,_r,Ie.name,hr))}}case 260:{h=Ie.name,F=Ie;var on=M.createNodeArray(Rr(Ie)),zr=mr(Ie,Ie.typeParameters),fn=e.getFirstConstructorWithBody(Ie),Vr=void 0;if(fn){var Wn=ae;Vr=e.compact(e.flatMap(fn.parameters,function(we){if(!e.hasSyntacticModifier(we,16476)||xe(we))return;if(ae=e.createGetSymbolAccessibilityDiagnosticForNode(we),we.name.kind===79)return qr(M.createPropertyDeclaration(Rr(we),we.name,we.questionToken,j(we,we.type),d(we)),we);return hn(we.name);function hn(jn){for(var gn,nn=0,Cn=jn.elements;nn<Cn.length;nn++){var Dn=Cn[nn];e.isOmittedExpression(Dn)||(e.isBindingPattern(Dn.name)&&(gn=e.concatenate(gn,hn(Dn.name))),gn=gn||[],gn.push(M.createPropertyDeclaration(Rr(we),Dn.name,void 0,j(Dn,void 0),void 0)))}return gn}})),ae=Wn}var bn=e.some(Ie.members,function(we){return!!we.name&&e.isPrivateIdentifier(we.name)}),qn=bn?[M.createPropertyDeclaration(void 0,M.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,yn=e.concatenate(e.concatenate(qn,Vr),e.visitNodes(Ie.members,Cr)),Hn=M.createNodeArray(yn),Ai=e.getEffectiveBaseTypeNode(Ie);if(Ai&&!e.isEntityNameExpression(Ai.expression)&&Ai.expression.kind!==104){var ti=Ie.name?e.unescapeLeadingUnderscores(Ie.name.escapedText):"default",Hi=M.createUniqueName("".concat(ti,"_base"),16);ae=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Ai,typeName:Ie.name}};var Ni=M.createVariableDeclaration(Hi,void 0,J.createTypeOfExpression(Ai.expression,Ie,se,V),void 0),gi=M.createVariableStatement(E?[M.createModifier(136)]:[],M.createVariableDeclarationList([Ni],2)),Pn=M.createNodeArray(e.map(Ie.heritageClauses,function(we){if(we.token===94){var hn=ae;ae=e.createGetSymbolAccessibilityDiagnosticForNode(we.types[0]);var jn=M.updateHeritageClause(we,e.map(we.types,function(gn){return M.updateExpressionWithTypeArguments(gn,Hi,e.visitNodes(gn.typeArguments,Cr))}));return ae=hn,jn}return M.updateHeritageClause(we,e.visitNodes(M.createNodeArray(e.filter(we.types,function(gn){return e.isEntityNameExpression(gn.expression)||gn.expression.kind===104})),Cr))}));return[gi,Pe(M.updateClassDeclaration(Ie,on,Ie.name,zr,Pn,Hn))]}else{var Pn=vn(Ie.heritageClauses);return Pe(M.updateClassDeclaration(Ie,on,Ie.name,zr,Pn,Hn))}}case 240:return Pe(or(Ie));case 263:return Pe(M.updateEnumDeclaration(Ie,M.createNodeArray(Rr(Ie)),Ie.name,M.createNodeArray(e.mapDefined(Ie.members,function(Ir){if(!xe(Ir)){var we=J.getConstantValue(Ir);return qr(M.updateEnumMember(Ir,Ir.name,we!==void 0?typeof we=="string"?M.createStringLiteral(we):M.createNumericLiteral(we):void 0),Ir)}}))))}return e.Debug.assertNever(Ie,"Unhandled top-level node in declaration emit: ".concat(e.Debug.formatSyntaxKind(Ie.kind)));function Pe(Ir){return Ue(Ie)&&(S=We),xr&&(ae=Lr),Ie.kind===264&&(E=xn),Ir===Ie?Ir:(F=void 0,h=void 0,Ir&&e.setOriginalNode(qr(Ir,Ie),Ie))}}function or(Ie){if(!!e.forEach(Ie.declarationList.declarations,Re)){var We=e.visitNodes(Ie.declarationList.declarations,Cr);if(!!e.length(We))return M.updateVariableStatement(Ie,M.createNodeArray(Rr(Ie)),M.updateVariableDeclarationList(Ie.declarationList,We))}}function Ee(Ie){return e.flatten(e.mapDefined(Ie.elements,function(We){return ze(We)}))}function ze(Ie){if(Ie.kind!==229&&Ie.name)return Re(Ie)?e.isBindingPattern(Ie.name)?Ee(Ie.name):M.createVariableDeclaration(Ie.name,void 0,j(Ie,void 0),void 0):void 0}function Ar(Ie){var We;De||(We=ae,ae=e.createGetSymbolAccessibilityDiagnosticForNodeName(Ie)),h=Ie.name,e.Debug.assert(J.isLateBound(e.getParseTreeNode(Ie)));var xr=Ie,Lr=xr.name.expression;t(Lr,S),De||(ae=We),h=void 0}function xe(Ie){return!!ye&&!!Ie&&K(Ie,$)}function cr(Ie){return e.isExportAssignment(Ie)||e.isExportDeclaration(Ie)}function Mr(Ie){return e.some(Ie,cr)}function Rr(Ie){var We=e.getEffectiveModifierFlags(Ie),xr=Qr(Ie);return We===xr?e.visitArray(Ie.modifiers,function(Lr){return e.tryCast(Lr,e.isModifier)},e.isModifier):M.createModifiersFromModifierFlags(xr)}function Qr(Ie){var We=258047^(4|512|16384),xr=E&&!ie(Ie)?2:0,Lr=Ie.parent.kind===308;return(!Lr||I&&Lr&&e.isExternalModule(Ie.parent))&&(We^=2,xr=0),Q(Ie,We,xr)}function en(Ie,We){var xr=p(Ie);return!xr&&Ie!==We.firstAccessor&&(xr=p(We.firstAccessor),ae=e.createGetSymbolAccessibilityDiagnosticForNode(We.firstAccessor)),!xr&&We.secondAccessor&&Ie!==We.secondAccessor&&(xr=p(We.secondAccessor),ae=e.createGetSymbolAccessibilityDiagnosticForNode(We.secondAccessor)),xr}function vn(Ie){return M.createNodeArray(e.filter(e.map(Ie,function(We){return M.updateHeritageClause(We,e.visitNodes(M.createNodeArray(e.filter(We.types,function(xr){return e.isEntityNameExpression(xr.expression)||We.token===94&&xr.expression.kind===104})),Cr))}),function(We){return We.types&&!!We.types.length}))}}e.transformDeclarations=O;function ie(te){return te.kind===261}function _e(te,oe,ae){return e.factory.createModifiersFromModifierFlags(Q(te,oe,ae))}function Q(te,oe,ae){oe===void 0&&(oe=258047^4),ae===void 0&&(ae=0);var E=e.getEffectiveModifierFlags(te)&oe|ae;return E&1024&&!(E&1)&&(E^=1),E&1024&&E&2&&(E^=2),E}function p(te){if(te)return te.kind===174?te.type:te.parameters.length>0?te.parameters[0].type:void 0}function D(te){switch(te.kind){case 169:case 168:return!e.hasEffectiveModifier(te,8);case 166:case 257:return!0}return!1}function le(te){switch(te.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function de(te){switch(te.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}})(fr||(fr={}));var fr;(function(e){function o(oe){switch(oe){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var ne;(function(oe){oe[oe.Uninitialized=0]="Uninitialized",oe[oe.Initialized=1]="Initialized",oe[oe.Completed=2]="Completed",oe[oe.Disposed=3]="Disposed"})(ne||(ne={}));var K;(function(oe){oe[oe.Substitution=1]="Substitution",oe[oe.EmitNotifications=2]="EmitNotifications"})(K||(K={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function se(oe,ae,E){return{scriptTransformers:O(oe,ae,E),declarationTransformers:ie(ae)}}e.getTransformers=se;function O(oe,ae,E){if(E)return e.emptyArray;var I=e.getEmitScriptTarget(oe),f=e.getEmitModuleKind(oe),m=[];return e.addRange(m,ae&&e.map(ae.before,p)),m.push(e.transformTypeScript),m.push(e.transformLegacyDecorators),m.push(e.transformClassFields),e.getJSXTransformEnabled(oe)&&m.push(e.transformJsx),I<99&&m.push(e.transformESNext),I<8&&m.push(e.transformES2021),I<7&&m.push(e.transformES2020),I<6&&m.push(e.transformES2019),I<5&&m.push(e.transformES2018),I<4&&m.push(e.transformES2017),I<3&&m.push(e.transformES2016),I<2&&(m.push(e.transformES2015),m.push(e.transformGenerators)),m.push(o(f)),I<1&&m.push(e.transformES5),e.addRange(m,ae&&e.map(ae.after,p)),m}function ie(oe){var ae=[];return ae.push(e.transformDeclarations),e.addRange(ae,oe&&e.map(oe.afterDeclarations,D)),ae}function _e(oe){return function(ae){return e.isBundle(ae)?oe.transformBundle(ae):oe.transformSourceFile(ae)}}function Q(oe,ae){return function(E){var I=oe(E);return typeof I=="function"?ae(E,I):_e(I)}}function p(oe){return Q(oe,e.chainBundle)}function D(oe){return Q(oe,function(ae,E){return E})}function le(oe,ae){return ae}e.noEmitSubstitution=le;function de(oe,ae,E){E(oe,ae)}e.noEmitNotification=de;function te(oe,ae,E,I,f,m,y){for(var S=new Array(358),k,C,me,De=0,X=[],M=[],H=[],V=[],h=0,F=!1,$=[],L=0,P,N,J=le,q=de,G=0,ye=[],b={factory:E,getCompilerOptions:function(){return I},getEmitResolver:function(){return oe},getEmitHost:function(){return ae},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(b)}),startLexicalEnvironment:Oe,suspendLexicalEnvironment:be,resumeLexicalEnvironment:Y,endLexicalEnvironment:d,setLexicalEnvironmentFlags:j,getLexicalEnvironmentFlags:Ce,hoistVariableDeclaration:Ae,hoistFunctionDeclaration:Xe,addInitializationStatement:Ne,startBlockScope:Se,endBlockScope:Re,addBlockScopedVariable:er,requestEmitHelper:wr,readEmitHelpers:mr,enableSubstitution:ge,enableEmitNotification:Be,isSubstitutionEnabled:pe,isEmitNotificationEnabled:Me,get onSubstituteNode(){return J},set onSubstituteNode(t){e.Debug.assert(G<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(t!==void 0,"Value must not be 'undefined'"),J=t},get onEmitNode(){return q},set onEmitNode(t){e.Debug.assert(G<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(t!==void 0,"Value must not be 'undefined'"),q=t},addDiagnostic:function(t){ye.push(t)}},x=0,T=f;x<T.length;x++){var Z=T[x];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Z)))}e.performance.mark("beforeTransform");var B=m.map(function(t){return t(b)}),u=function(t){for(var qr=0,ln=B;qr<ln.length;qr++){var dr=ln[qr];t=dr(t)}return t};G=1;for(var A=[],w=0,z=f;w<z.length;w++){var Z=z[w];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",Z.kind===308?{path:Z.path}:{kind:Z.kind,pos:Z.pos,end:Z.end}),A.push((y?u:U)(Z)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return G=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:A,substituteNode:He,emitNodeWithNotification:Le,isEmitNotificationEnabled:Me,dispose:Ue,diagnostics:ye};function U(t){return t&&(!e.isSourceFile(t)||!t.isDeclarationFile)?u(t):t}function ge(t){e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed."),S[t]|=1}function pe(t){return(S[t.kind]&1)!=0&&(e.getEmitFlags(t)&4)==0}function He(t,qr){return e.Debug.assert(G<3,"Cannot substitute a node after the result is disposed."),qr&&pe(qr)&&J(t,qr)||qr}function Be(t){e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed."),S[t]|=2}function Me(t){return(S[t.kind]&2)!=0||(e.getEmitFlags(t)&2)!=0}function Le(t,qr,ln){e.Debug.assert(G<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),qr&&(Me(qr)?q(t,qr,ln):ln(t,qr))}function Ae(t){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed.");var qr=e.setEmitFlags(E.createVariableDeclaration(t),64);k?k.push(qr):k=[qr],De&1&&(De|=2)}function Xe(t){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),C?C.push(t):C=[t]}function Ne(t){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),me?me.push(t):me=[t]}function Oe(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!F,"Lexical environment is suspended."),X[h]=k,M[h]=C,H[h]=me,V[h]=De,h++,k=void 0,C=void 0,me=void 0,De=0}function be(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!F,"Lexical environment is already suspended."),F=!0}function Y(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(F,"Lexical environment is not suspended."),F=!1}function d(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!F,"Lexical environment is suspended.");var t;if(k||C||me){if(C&&(t=zn([],C,!0)),k){var qr=E.createVariableStatement(void 0,E.createVariableDeclarationList(k));e.setEmitFlags(qr,1048576),t?t.push(qr):t=[qr]}me&&(t?t=zn(zn([],t,!0),me,!0):t=zn([],me,!0))}return h--,k=X[h],C=M[h],me=H[h],De=V[h],h===0&&(X=[],M=[],H=[],V=[]),t}function j(t,qr){De=qr?De|t:De&~t}function Ce(){return De}function Se(){e.Debug.assert(G>0,"Cannot start a block scope during initialization."),e.Debug.assert(G<2,"Cannot start a block scope after transformation has completed."),$[L]=P,L++,P=void 0}function Re(){e.Debug.assert(G>0,"Cannot end a block scope during initialization."),e.Debug.assert(G<2,"Cannot end a block scope after transformation has completed.");var t=e.some(P)?[E.createVariableStatement(void 0,E.createVariableDeclarationList(P.map(function(qr){return E.createVariableDeclaration(qr)}),1))]:void 0;return L--,P=$[L],L===0&&($=[]),t}function er(t){e.Debug.assert(L>0,"Cannot add a block scoped variable outside of an iteration body."),(P||(P=[])).push(t)}function wr(t){if(e.Debug.assert(G>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(var qr=0,ln=t.dependencies;qr<ln.length;qr++){var dr=ln[qr];wr(dr)}N=e.append(N,t)}function mr(){e.Debug.assert(G>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed.");var t=N;return N=void 0,t}function Ue(){if(G<3){for(var t=0,qr=f;t<qr.length;t++){var ln=qr[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(ln)))}k=void 0,X=void 0,C=void 0,M=void 0,J=void 0,q=void 0,N=void 0,G=3}}}e.transformNodes=te,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:le,onEmitNode:de,addDiagnostic:e.noop}})(fr||(fr={}));var fr;(function(e){var o=M();function ne(N){return e.fileExtensionIs(N,".tsbuildinfo")}e.isBuildInfoFile=ne;function K(N,J,q,G,ye,b){G===void 0&&(G=!1);var x=e.isArray(q)?q:e.getSourceFilesToEmit(N,q,G),T=N.getCompilerOptions();if(e.outFile(T)){var Z=N.getPrependNodes();if(x.length||Z.length){var B=e.factory.createBundle(x,Z),u=J(ie(B,N,G),B);if(u)return u}}else{if(!ye)for(var A=0,w=x;A<w.length;A++){var z=w[A],u=J(ie(z,N,G),z);if(u)return u}if(b){var U=se(T);if(U)return J({buildInfoPath:U},void 0)}}}e.forEachEmittedFile=K;function se(N){var J=N.configFilePath;if(!!e.isIncrementalCompilation(N)){if(N.tsBuildInfoFile)return N.tsBuildInfoFile;var q=e.outFile(N),G;if(q)G=e.removeFileExtension(q);else{if(!J)return;var ye=e.removeFileExtension(J);G=N.outDir?N.rootDir?e.resolvePath(N.outDir,e.getRelativePathFromDirectory(N.rootDir,ye,!0)):e.combinePaths(N.outDir,e.getBaseFileName(ye)):ye}return G+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=se;function O(N,J){var q=e.outFile(N),G=N.emitDeclarationOnly?void 0:q,ye=G&&_e(G,N),b=J||e.getEmitDeclarations(N)?e.removeFileExtension(q)+".d.ts":void 0,x=b&&e.getAreDeclarationMapsEnabled(N)?b+".map":void 0,T=se(N);return{jsFilePath:G,sourceMapFilePath:ye,declarationFilePath:b,declarationMapPath:x,buildInfoPath:T}}e.getOutputPathsForBundle=O;function ie(N,J,q){var G=J.getCompilerOptions();if(N.kind===309)return O(G,q);var ye=e.getOwnEmitOutputFilePath(N.fileName,J,Q(N.fileName,G)),b=e.isJsonSourceFile(N),x=b&&e.comparePaths(N.fileName,ye,J.getCurrentDirectory(),!J.useCaseSensitiveFileNames())===0,T=G.emitDeclarationOnly||x?void 0:ye,Z=!T||e.isJsonSourceFile(N)?void 0:_e(T,G),B=q||e.getEmitDeclarations(G)&&!b?e.getDeclarationEmitOutputFilePath(N.fileName,J):void 0,u=B&&e.getAreDeclarationMapsEnabled(G)?B+".map":void 0;return{jsFilePath:T,sourceMapFilePath:Z,declarationFilePath:B,declarationMapPath:u,buildInfoPath:void 0}}e.getOutputPathsFor=ie;function _e(N,J){return J.sourceMap&&!J.inlineSourceMap?N+".map":void 0}function Q(N,J){return e.fileExtensionIs(N,".json")?".json":J.jsx===1&&e.fileExtensionIsOneOf(N,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(N,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(N,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=Q;function p(N,J,q,G,ye){return G?e.resolvePath(G,e.getRelativePathFromDirectory(ye?ye():E(J,q),N,q)):N}function D(N,J,q,G){return e.changeExtension(p(N,J,q,J.options.declarationDir||J.options.outDir,G),e.getDeclarationEmitExtensionForPath(N))}e.getOutputDeclarationFileName=D;function le(N,J,q,G){if(!J.options.emitDeclarationOnly){var ye=e.fileExtensionIs(N,".json"),b=e.changeExtension(p(N,J,q,J.options.outDir,G),Q(N,J.options));return!ye||e.comparePaths(N,b,e.Debug.checkDefined(J.options.configFilePath),q)!==0?b:void 0}}function de(){var N;return{addOutput:J,getOutputs:q};function J(G){G&&(N||(N=[])).push(G)}function q(){return N||e.emptyArray}}function te(N,J){var q=O(N.options,!1),G=q.jsFilePath,ye=q.sourceMapFilePath,b=q.declarationFilePath,x=q.declarationMapPath,T=q.buildInfoPath;J(G),J(ye),J(b),J(x),J(T)}function oe(N,J,q,G,ye){if(!e.isDeclarationFileName(J)){var b=le(J,N,q,ye);if(G(b),!e.fileExtensionIs(J,".json")&&(b&&N.options.sourceMap&&G("".concat(b,".map")),e.getEmitDeclarations(N.options))){var x=D(J,N,q,ye);G(x),N.options.declarationMap&&G("".concat(x,".map"))}}}function ae(N,J,q,G,ye){var b;return N.rootDir?(b=e.getNormalizedAbsolutePath(N.rootDir,q),ye==null||ye(N.rootDir)):N.composite&&N.configFilePath?(b=e.getDirectoryPath(e.normalizeSlashes(N.configFilePath)),ye==null||ye(b)):b=e.computeCommonSourceDirectoryOfFilenames(J(),q,G),b&&b[b.length-1]!==e.directorySeparator&&(b+=e.directorySeparator),b}e.getCommonSourceDirectory=ae;function E(N,J){var q=N.options,G=N.fileNames;return ae(q,function(){return e.filter(G,function(ye){return!(q.noEmitForJsFiles&&e.fileExtensionIsOneOf(ye,e.supportedJSExtensionsFlat))&&!e.isDeclarationFileName(ye)})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(q.configFilePath))),e.createGetCanonicalFileName(!J))}e.getCommonSourceDirectoryOfConfig=E;function I(N,J){var q=de(),G=q.addOutput,ye=q.getOutputs;if(e.outFile(N.options))te(N,G);else{for(var b=e.memoize(function(){return E(N,J)}),x=0,T=N.fileNames;x<T.length;x++){var Z=T[x];oe(N,Z,J,G,b)}G(se(N.options))}return ye()}e.getAllProjectOutputs=I;function f(N,J,q){J=e.normalizePath(J),e.Debug.assert(e.contains(N.fileNames,J),"Expected fileName to be present in command line");var G=de(),ye=G.addOutput,b=G.getOutputs;return e.outFile(N.options)?te(N,ye):oe(N,J,q,ye),b()}e.getOutputFileNames=f;function m(N,J){if(e.outFile(N.options)){var q=O(N.options,!1).jsFilePath;return e.Debug.checkDefined(q,"project ".concat(N.options.configFilePath," expected to have at least one output"))}for(var G=e.memoize(function(){return E(N,J)}),ye=0,b=N.fileNames;ye<b.length;ye++){var x=b[ye];if(!e.isDeclarationFileName(x)){var q=le(x,N,J,G);if(q)return q;if(!e.fileExtensionIs(x,".json")&&e.getEmitDeclarations(N.options))return D(x,N,J,G)}}var T=se(N.options);return T||e.Debug.fail("project ".concat(N.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=m;function y(N,J,q,G,ye,b,x){var T=G.scriptTransformers,Z=G.declarationTransformers,B=J.getCompilerOptions(),u=B.sourceMap||B.inlineSourceMap||e.getAreDeclarationMapsEnabled(B)?[]:void 0,A=B.listEmittedFiles?[]:void 0,w=e.createDiagnosticCollection(),z=e.getNewLineCharacter(B,function(){return J.getNewLine()}),U=e.createTextWriter(z),ge=e.performance.createTimer("printTime","beforePrint","afterPrint"),pe=ge.enter,He=ge.exit,Be,Me=!1;return pe(),K(J,Le,e.getSourceFilesToEmit(J,q,x),x,b,!q),He(),{emitSkipped:Me,diagnostics:w.getDiagnostics(),emittedFiles:A,sourceMaps:u};function Le(Se,Re){var er=Se.jsFilePath,wr=Se.sourceMapFilePath,mr=Se.declarationFilePath,Ue=Se.declarationMapPath,t=Se.buildInfoPath,qr;t&&Re&&e.isBundle(Re)&&(qr=e.getDirectoryPath(e.getNormalizedAbsolutePath(t,J.getCurrentDirectory())),Be={commonSourceDirectory:ln(J.getCommonSourceDirectory()),sourceFiles:Re.sourceFiles.map(function(dr){return ln(e.getNormalizedAbsolutePath(dr.fileName,J.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:er}),Xe(Re,er,wr,ln),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:mr}),Ne(Re,mr,Ue,ln),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:t}),Ae(Be,t),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!Me&&A&&(ye||(er&&A.push(er),wr&&A.push(wr),t&&A.push(t)),mr&&A.push(mr),Ue&&A.push(Ue));function ln(dr){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(qr,dr,J.getCanonicalFileName))}}function Ae(Se,Re){if(!(!Re||q||Me)){var er=J.getProgramBuildInfo();if(J.isEmitBlocked(Re)){Me=!0;return}var wr=e.version,mr={bundle:Se,program:er,version:wr};e.writeFile(J,w,Re,S(mr),!1,void 0,{buildInfo:mr})}}function Xe(Se,Re,er,wr){if(!(!Se||ye||!Re)){if(J.isEmitBlocked(Re)||B.noEmit){Me=!0;return}var mr=e.transformNodes(N,J,e.factory,B,[Se],T,!1),Ue={removeComments:B.removeComments,newLine:B.newLine,noEmitHelpers:B.noEmitHelpers,module:B.module,target:B.target,sourceMap:B.sourceMap,inlineSourceMap:B.inlineSourceMap,inlineSources:B.inlineSources,extendedDiagnostics:B.extendedDiagnostics,writeBundleFileInfo:!!Be,relativeToBuildInfo:wr},t=X(Ue,{hasGlobalName:N.hasGlobalName,onEmitNode:mr.emitNodeWithNotification,isEmitNotificationEnabled:mr.isEmitNotificationEnabled,substituteNode:mr.substituteNode});e.Debug.assert(mr.transformed.length===1,"Should only see one output from the transform"),be(Re,er,mr,t,B),mr.dispose(),Be&&(Be.js=t.bundleFileInfo)}}function Ne(Se,Re,er,wr){if(!!Se){if(!Re){(ye||B.emitDeclarationOnly)&&(Me=!0);return}var mr=e.isSourceFile(Se)?[Se]:Se.sourceFiles,Ue=x?mr:e.filter(mr,e.isSourceFileNotJson),t=e.outFile(B)?[e.factory.createBundle(Ue,e.isSourceFile(Se)?void 0:Se.prepends)]:Ue;ye&&!e.getEmitDeclarations(B)&&Ue.forEach(Oe);var qr=e.transformNodes(N,J,e.factory,B,t,Z,!1);if(e.length(qr.diagnostics))for(var ln=0,dr=qr.diagnostics;ln<dr.length;ln++){var vr=dr[ln];w.add(vr)}var kr={removeComments:B.removeComments,newLine:B.newLine,noEmitHelpers:!0,module:B.module,target:B.target,sourceMap:!x&&B.declarationMap,inlineSourceMap:B.inlineSourceMap,extendedDiagnostics:B.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!Be,recordInternalSection:!!Be,relativeToBuildInfo:wr},Ur=X(kr,{hasGlobalName:N.hasGlobalName,onEmitNode:qr.emitNodeWithNotification,isEmitNotificationEnabled:qr.isEmitNotificationEnabled,substituteNode:qr.substituteNode}),Cr=!!qr.diagnostics&&!!qr.diagnostics.length||!!J.isEmitBlocked(Re)||!!B.noEmit;Me=Me||Cr,(!Cr||x)&&(e.Debug.assert(qr.transformed.length===1,"Should only see one output from the decl transform"),be(Re,er,qr,Ur,{sourceMap:kr.sourceMap,sourceRoot:B.sourceRoot,mapRoot:B.mapRoot,extendedDiagnostics:B.extendedDiagnostics})),qr.dispose(),Be&&(Be.dts=Ur.bundleFileInfo)}}function Oe(Se){if(e.isExportAssignment(Se)){Se.expression.kind===79&&N.collectLinkedAliases(Se.expression,!0);return}else if(e.isExportSpecifier(Se)){N.collectLinkedAliases(Se.propertyName||Se.name,!0);return}e.forEachChild(Se,Oe)}function be(Se,Re,er,wr,mr){var Ue=er.transformed[0],t=Ue.kind===309?Ue:void 0,qr=Ue.kind===308?Ue:void 0,ln=t?t.sourceFiles:[qr],dr;Y(mr,Ue)&&(dr=e.createSourceMapGenerator(J,e.getBaseFileName(e.normalizeSlashes(Se)),d(mr),j(mr,Se,qr),mr)),t?wr.writeBundle(t,U,dr):wr.writeFile(qr,U,dr);var vr;if(dr){u&&u.push({inputSourceFileNames:dr.getSources(),sourceMap:dr.toJSON()});var kr=Ce(mr,dr,Se,Re,qr);if(kr&&(U.isAtStartOfLine()||U.rawWrite(z),vr=U.getTextPos(),U.writeComment("//# ".concat("sourceMappingURL","=").concat(kr))),Re){var Ur=dr.toString();e.writeFile(J,w,Re,Ur,!1,ln),wr.bundleFileInfo&&(wr.bundleFileInfo.mapHash=e.computeSignature(Ur,e.maybeBind(J,J.createHash)))}}else U.writeLine();var Cr=U.getText();e.writeFile(J,w,Se,Cr,!!B.emitBOM,ln,{sourceMapUrlPos:vr,diagnostics:er.diagnostics}),wr.bundleFileInfo&&(wr.bundleFileInfo.hash=e.computeSignature(Cr,e.maybeBind(J,J.createHash))),U.clear()}function Y(Se,Re){return(Se.sourceMap||Se.inlineSourceMap)&&(Re.kind!==308||!e.fileExtensionIs(Re.fileName,".json"))}function d(Se){var Re=e.normalizeSlashes(Se.sourceRoot||"");return Re&&e.ensureTrailingDirectorySeparator(Re)}function j(Se,Re,er){if(Se.sourceRoot)return J.getCommonSourceDirectory();if(Se.mapRoot){var wr=e.normalizeSlashes(Se.mapRoot);return er&&(wr=e.getDirectoryPath(e.getSourceFilePathInNewDir(er.fileName,J,wr))),e.getRootLength(wr)===0&&(wr=e.combinePaths(J.getCommonSourceDirectory(),wr)),wr}return e.getDirectoryPath(e.normalizePath(Re))}function Ce(Se,Re,er,wr,mr){if(Se.inlineSourceMap){var Ue=Re.toString(),t=e.base64encode(e.sys,Ue);return"data:application/json;base64,".concat(t)}var qr=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(wr)));if(Se.mapRoot){var ln=e.normalizeSlashes(Se.mapRoot);return mr&&(ln=e.getDirectoryPath(e.getSourceFilePathInNewDir(mr.fileName,J,ln))),e.getRootLength(ln)===0?(ln=e.combinePaths(J.getCommonSourceDirectory(),ln),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(er)),e.combinePaths(ln,qr),J.getCurrentDirectory(),J.getCanonicalFileName,!0))):encodeURI(e.combinePaths(ln,qr))}return encodeURI(qr)}}e.emitFiles=y;function S(N){return JSON.stringify(N)}e.getBuildInfoText=S;function k(N,J){return e.readJsonOrUndefined(N,J)}e.getBuildInfo=k,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(N){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function C(N,J,q){var G,ye=e.Debug.checkDefined(N.js),b=((G=ye.sources)===null||G===void 0?void 0:G.prologues)&&e.arrayToMap(ye.sources.prologues,function(x){return x.file});return N.sourceFiles.map(function(x,T){var Z,B,u=b==null?void 0:b.get(T),A=u==null?void 0:u.directives.map(function(U){var ge=e.setTextRange(e.factory.createStringLiteral(U.expression.text),U.expression),pe=e.setTextRange(e.factory.createExpressionStatement(ge),U);return e.setParent(ge,pe),pe}),w=e.factory.createToken(1),z=e.factory.createSourceFile(A!=null?A:[],w,0);return z.fileName=e.getRelativePathFromDirectory(q.getCurrentDirectory(),e.getNormalizedAbsolutePath(x,J),!q.useCaseSensitiveFileNames()),z.text=(Z=u==null?void 0:u.text)!==null&&Z!==void 0?Z:"",e.setTextRangePosWidth(z,0,(B=u==null?void 0:u.text.length)!==null&&B!==void 0?B:0),e.setEachParent(z.statements,z),e.setTextRangePosWidth(w,z.end,0),e.setParent(w,z),z})}function me(N,J,q,G){var ye=e.maybeBind(J,J.createHash),b=O(N.options,!1),x=b.buildInfoPath,T=b.jsFilePath,Z=b.sourceMapFilePath,B=b.declarationFilePath,u=b.declarationMapPath,A;if(J.getBuildInfo)A=J.getBuildInfo(x,N.options.configFilePath);else{var w=J.readFile(x);if(!w)return x;A=k(x,w)}if(!A||!A.bundle||!A.bundle.js||B&&!A.bundle.dts)return x;var z=J.readFile(e.Debug.checkDefined(T));if(!z||e.computeSignature(z,ye)!==A.bundle.js.hash)return T;var U=Z&&J.readFile(Z);if(Z&&!U||N.options.inlineSourceMap)return Z||"inline sourcemap decoding";if(Z&&e.computeSignature(U,ye)!==A.bundle.js.mapHash)return Z;var ge=B&&J.readFile(B);if(B&&!ge||B&&e.computeSignature(ge,ye)!==A.bundle.dts.hash)return B;var pe=u&&J.readFile(u);if(u&&!pe||N.options.inlineSourceMap)return u||"inline sourcemap decoding";if(u&&e.computeSignature(pe,ye)!==A.bundle.dts.mapHash)return u;var He=e.getDirectoryPath(e.getNormalizedAbsolutePath(x,J.getCurrentDirectory())),Be=e.createInputFiles(z,ge,Z,U,u,pe,T,B,x,A,!0),Me=[],Le=e.createPrependNodes(N.projectReferences,q,function(be){return J.readFile(be)}),Ae=C(A.bundle,He,J),Xe,Ne,Oe={getPrependNodes:e.memoize(function(){return zn(zn([],Le,!0),[Be],!1)}),getCanonicalFileName:J.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(A.bundle.commonSourceDirectory,He)},getCompilerOptions:function(){return N.options},getCurrentDirectory:function(){return J.getCurrentDirectory()},getNewLine:function(){return J.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Ae},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(be,Y,d,j,Ce,Se){switch(be){case T:if(z===Y)return;break;case Z:if(U===Y)return;break;case x:var Re=Se.buildInfo;Re.program=A.program,Re.program&&Xe!==void 0&&N.options.composite&&(Re.program.outSignature=e.computeSignature(Xe,ye,Ne));var er=A.bundle,wr=er.js,mr=er.dts,Ue=er.sourceFiles;Re.bundle.js.sources=wr.sources,mr&&(Re.bundle.dts.sources=mr.sources),Re.bundle.sourceFiles=Ue,Me.push({name:be,text:S(Re),writeByteOrderMark:d,buildInfo:Re});return;case B:if(ge===Y)return;Xe=Y,Ne=Se;break;case u:if(pe===Y)return;break;default:e.Debug.fail("Unexpected path: ".concat(be))}Me.push({name:be,text:Y,writeByteOrderMark:d})},isEmitBlocked:e.returnFalse,readFile:function(be){return J.readFile(be)},fileExists:function(be){return J.fileExists(be)},useCaseSensitiveFileNames:function(){return J.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented,createHash:ye};return y(e.notImplementedResolver,Oe,void 0,e.getTransformers(N.options,G)),Me}e.emitUsingBuildInfo=me;var De;(function(N){N[N.Notification=0]="Notification",N[N.Substitution=1]="Substitution",N[N.Comments=2]="Comments",N[N.SourceMaps=3]="SourceMaps",N[N.Emit=4]="Emit"})(De||(De={}));function X(N,J){N===void 0&&(N={}),J===void 0&&(J={});var q=J.hasGlobalName,G=J.onEmitNode,ye=G===void 0?e.noEmitNotification:G,b=J.isEmitNotificationEnabled,x=J.substituteNode,T=x===void 0?e.noEmitSubstitution:x,Z=J.onBeforeEmitNode,B=J.onAfterEmitNode,u=J.onBeforeEmitNodeArray,A=J.onAfterEmitNodeArray,w=J.onBeforeEmitToken,z=J.onAfterEmitToken,U=!!N.extendedDiagnostics,ge=e.getNewLineCharacter(N),pe=e.getEmitModuleKind(N),He=new e.Map,Be,Me,Le,Ae,Xe,Ne,Oe,be,Y,d,j,Ce,Se=N.preserveSourceNewlines,Re,er,wr,mr=Md,Ue,t=N.writeBundleFileInfo?{sections:[]}:void 0,qr=t?e.Debug.checkDefined(N.relativeToBuildInfo):void 0,ln=N.recordInternalSection,dr=0,vr="text",kr=!0,Ur,Cr,rn=-1,Br,pn=-1,ve=-1,or=-1,Ee=-1,ze,Ar,xe=!1,cr=!!N.removeComments,Mr,Rr,Qr=e.performance.createTimerIf(U,"commentTime","beforeComment","afterComment"),en=Qr.enter,vn=Qr.exit,Ie=e.factory.parenthesizer,We={select:function(v){return v===0?Ie.parenthesizeLeadingTypeArgument:void 0}},xr=Ht();return zr(),{printNode:Lr,printList:xn,printFile:Qn,printBundle:An,writeNode:Dr,writeList:Pr,writeFile:ue,writeBundle:Ye,bundleFileInfo:t};function Lr(v,Ze,_n){switch(v){case 0:e.Debug.assert(e.isSourceFile(Ze),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(Ze),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(Ze),"Expected an Expression node.");break}switch(Ze.kind){case 308:return Qn(Ze);case 309:return An(Ze);case 310:return ai(Ze)}return Dr(v,Ze,_n,Ke()),tr()}function xn(v,Ze,_n){return Pr(v,Ze,_n,Ke()),tr()}function An(v){return Ye(v,Ke(),void 0),tr()}function Qn(v){return ue(v,Ke(),void 0),tr()}function ai(v){return Qe(v,Ke()),tr()}function Dr(v,Ze,_n,Zn){var $i=er;Or(Zn,void 0),hr(v,Ze,_n),zr(),er=$i}function Pr(v,Ze,_n,Zn){var $i=er;Or(Zn,void 0),_n&&_r(_n),Fo(void 0,Ze,v),zr(),er=$i}function jr(){return er.getTextPosWithWriteLine?er.getTextPosWithWriteLine():er.getTextPos()}function on(v,Ze,_n){var Zn=e.lastOrUndefined(t.sections);Zn&&Zn.kind===_n?Zn.end=Ze:t.sections.push({pos:v,end:Ze,kind:_n})}function je(v){if(ln&&t&&Be&&(e.isDeclaration(v)||e.isVariableStatement(v))&&e.isInternalDeclaration(v,Be)&&vr!=="internal"){var Ze=vr;return Te(er.getTextPos()),dr=jr(),vr="internal",Ze}}function Sr(v){v&&(Te(er.getTextPos()),dr=jr(),vr=v)}function Te(v){return dr<v?(on(dr,v,vr),!0):!1}function Ye(v,Ze,_n){var Zn;Ue=!1;var $i=er;Or(Ze,_n),tf(v),xf(v),gn(v),yp(v);for(var kt=0,Mt=v.prepends;kt<Mt.length;kt++){var wt=Mt[kt];Wo();var Wa=er.getTextPos(),Lo=t&&t.sections;if(Lo&&(t.sections=[]),hr(4,wt,void 0),t){var Na=t.sections;t.sections=Lo,wt.oldFileOfCurrentEmit?(Zn=t.sections).push.apply(Zn,Na):(Na.forEach(function(Nu){return e.Debug.assert(e.isBundleFileTextLike(Nu))}),t.sections.push({pos:Wa,end:er.getTextPos(),kind:"prepend",data:qr(wt.fileName),texts:Na}))}}dr=jr();for(var Pc=0,Ba=v.sourceFiles;Pc<Ba.length;Pc++){var ca=Ba[Pc];hr(0,ca,ca)}if(t&&v.sourceFiles.length){var Bc=er.getTextPos();if(Te(Bc)){var mu=qf(v);mu&&(t.sources||(t.sources={}),t.sources.prologues=mu);var If=jn(v);If&&(t.sources||(t.sources={}),t.sources.helpers=If)}}zr(),er=$i}function Qe(v,Ze){var _n=er;Or(Ze,void 0),hr(4,v,void 0),zr(),er=_n}function ue(v,Ze,_n){Ue=!0;var Zn=er;Or(Ze,_n),tf(v),xf(v),hr(0,v,v),zr(),er=Zn}function Ke(){return wr||(wr=e.createTextWriter(ge))}function tr(){var v=wr.getText();return wr.clear(),v}function hr(v,Ze,_n){_n&&_r(_n),Ai(v,Ze,void 0)}function _r(v){Be=v,ze=void 0,Ar=void 0,v&&N_(v)}function Or(v,Ze){v&&N.omitTrailingSemicolon&&(v=e.getTrailingSemicolonDeferringWriter(v)),er=v,Ur=Ze,kr=!er||!Ur}function zr(){Me=[],Le=[],Ae=new e.Set,Xe=[],Ne=new e.Map,Oe=[],be=0,Y=[],d=0,j=[],Be=void 0,ze=void 0,Ar=void 0,Or(void 0,void 0)}function fn(){return ze||(ze=e.getLineStarts(e.Debug.checkDefined(Be)))}function Vr(v,Ze){if(v!==void 0){var _n=je(v);Ai(4,v,Ze),Sr(_n)}}function Wn(v){v!==void 0&&Ai(2,v,void 0)}function bn(v,Ze){v!==void 0&&Ai(1,v,Ze)}function qn(v){Ai(e.isStringLiteral(v)?6:4,v)}function yn(v){Se&&e.getEmitFlags(v)&134217728&&(Se=!1)}function Hn(v){Se=v}function Ai(v,Ze,_n){Rr=_n;var Zn=Ni(0,v,Ze);Zn(v,Ze),Rr=void 0}function ti(v){return!cr&&!e.isSourceFile(v)}function Hi(v){return!kr&&!e.isSourceFile(v)&&!e.isInJsonFile(v)&&!e.isUnparsedSource(v)&&!e.isUnparsedPrepend(v)}function Ni(v,Ze,_n){switch(v){case 0:if(ye!==e.noEmitNotification&&(!b||b(_n)))return Pn;case 1:if(T!==e.noEmitSubstitution&&(Mr=T(Ze,_n)||_n)!==_n)return Rr&&(Mr=Rr(Mr)),hn;case 2:if(ti(_n))return Gc;case 3:if(Hi(_n))return al;case 4:return Pe;default:return e.Debug.assertNever(v)}}function gi(v,Ze,_n){return Ni(v+1,Ze,_n)}function Pn(v,Ze){var _n=gi(0,v,Ze);ye(v,Ze,_n)}function Pe(v,Ze){if(Z==null||Z(Ze),Se){var _n=Se;yn(Ze),Ir(v,Ze),Hn(_n)}else Ir(v,Ze);B==null||B(Ze),Rr=void 0}function Ir(v,Ze,_n){if(_n===void 0&&(_n=!0),_n){var Zn=e.getSnippetElement(Ze);if(Zn)return Vn(v,Ze,Zn)}if(v===0)return Id(e.cast(Ze,e.isSourceFile));if(v===2)return qi(e.cast(Ze,e.isIdentifier));if(v===6)return Dn(e.cast(Ze,e.isStringLiteral),!0);if(v===3)return we(e.cast(Ze,e.isTypeParameterDeclaration));if(v===5)return e.Debug.assertNode(Ze,e.isEmptyStatement),Rc(!0);if(v===4){switch(Ze.kind){case 15:case 16:case 17:return Dn(Ze,!1);case 79:return qi(Ze);case 80:return Ci(Ze);case 163:return Tt(Ze);case 164:return Zi(Ze);case 165:return ni(Ze);case 166:return Va(Ze);case 167:return Ua(Ze);case 168:return za(Ze);case 169:return Co(Ze);case 170:return Ea(Ze);case 171:return ho(Ze);case 172:return Aa(Ze);case 173:return Vi(Ze);case 174:case 175:return Xi(Ze);case 176:return ao(Ze);case 177:return fo(Ze);case 178:return As(Ze);case 179:return Ho(Ze);case 180:return Zo(Ze);case 181:return To(Ze);case 182:return Ft(Ze);case 183:return Pa(Ze);case 184:return Ve(Ze);case 185:return tn(Ze);case 186:return wn(Ze);case 187:return ur(Ze);case 189:return yr(Ze);case 190:return Jr(Ze);case 191:return Mn(Ze);case 192:return _i(Ze);case 193:return di(Ze);case 230:return ga(Ze);case 194:return fi();case 195:return Nt(Ze);case 196:return Gt(Ze);case 197:return la(Ze);case 198:return na(Ze);case 199:return Je(Ze);case 200:return Ia(Ze);case 201:return so(Ze);case 202:return bs(Ze);case 203:return ds(Ze);case 204:return ps(Ze);case 205:return ac(Ze);case 236:return ws(Ze);case 237:return Xo();case 238:return Lc(Ze);case 240:return ec(Ze);case 239:return Rc(!1);case 241:return _o(Ze);case 242:return Gs(Ze);case 243:return xl(Ze);case 244:return $c(Ze);case 245:return Qu(Ze);case 246:return Df(Ze);case 247:return Xu(Ze);case 248:return Zu(Ze);case 249:return Hr(Ze);case 250:return st(Ze);case 251:return Bi(Ze);case 252:return Jt(Ze);case 253:return Ca(Ze);case 254:return Yt(Ze);case 255:return Wt(Ze);case 256:return Ga(Ze);case 257:return $t(Ze);case 258:return po(Ze);case 259:return Do(Ze);case 260:return Fn(Ze);case 261:return gt(Ze);case 262:return jt(Ze);case 263:return fa(Ze);case 264:return Ka(Ze);case 265:return no(Ze);case 266:return Eo(Ze);case 267:return Zr(Ze);case 268:return Fa(Ze);case 269:return zo(Ze);case 270:return Uo(Ze);case 271:return ms(Ze);case 277:return Yl(Ze);case 272:return xc(Ze);case 273:return Os(Ze);case 274:return Cl(Ze);case 275:return m_(Ze);case 276:return xu(Ze);case 278:return $l(Ze);case 296:return pl(Ze);case 297:return Zl(Ze);case 279:return;case 280:return Tl(Ze);case 11:return z_(Ze);case 283:case 286:return bf(Ze);case 284:case 287:return Vf(Ze);case 288:return v_(Ze);case 289:return W_(Ze);case 290:return rf(Ze);case 291:return Qt(Ze);case 292:return Cu(Ze);case 293:return Wc(Ze);case 294:return Sf(Ze);case 295:return Wp(Ze);case 299:return Nd(Ze);case 300:return is(Ze);case 301:return dp(Ze);case 302:return xs(Ze);case 303:return Xn(Ze);case 310:case 304:return On(Ze);case 305:case 306:return Ge(Ze);case 307:return cn(Ze);case 308:return Id(Ze);case 309:return e.Debug.fail("Bundles should be printed using printBundle");case 311:return e.Debug.fail("InputFiles should not be printed");case 312:return h_(Ze);case 313:return gp(Ze);case 315:return wi("*");case 316:return wi("?");case 317:return Fr(Ze);case 318:return yi(Ze);case 319:return Dt(Ze);case 320:return pr(Ze);case 188:case 321:return Nn(Ze);case 322:return;case 323:return Yu(Ze);case 325:return G_(Ze);case 326:return H_(Ze);case 330:case 335:case 340:return Pd(Ze);case 331:case 332:return sc(Ze);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return mp(Ze);case 343:case 350:return vp(Ze);case 342:case 344:case 345:case 346:return pp(Ze);case 347:return El(Ze);case 348:return Cc(Ze);case 349:return vc(Ze);case 352:case 356:case 355:return}if(e.isExpression(Ze)&&(v=1,T!==e.noEmitSubstitution)){var $i=T(v,Ze)||Ze;$i!==Ze&&(Ze=$i,Rr&&(Ze=Rr(Ze)))}}if(v===1)switch(Ze.kind){case 8:case 9:return Cn(Ze);case 10:case 13:case 14:return Dn(Ze,!1);case 79:return qi(Ze);case 80:return Ci(Ze);case 206:return Es(Ze);case 207:return ns(Ze);case 208:return dc(Ze);case 209:return pc(Ze);case 210:return js(Ze);case 211:return Sc(Ze);case 212:return Ko(Ze);case 213:return Mc(Ze);case 214:return Vs(Ze);case 215:return oc(Ze);case 216:return Ss(Ze);case 217:return Er(Ze);case 218:return un(Ze);case 219:return $n(Ze);case 220:return Ii(Ze);case 221:return at(Ze);case 222:return _t(Ze);case 223:return xr(Ze);case 224:return Rt(Ze);case 225:return va(Ze);case 226:return qe(Ze);case 227:return Tn(Ze);case 228:return Nr(Ze);case 229:return;case 231:return xa(Ze);case 232:return co(Ze);case 230:return ga(Ze);case 235:return gs(Ze);case 233:return gc(Ze);case 234:return e.Debug.fail("SyntheticExpression should never be printed.");case 281:return Ad(Ze);case 282:return go(Ze);case 285:return U_(Ze);case 351:return e.Debug.fail("SyntaxList should not be printed");case 352:return;case 353:return nf(Ze);case 354:return K_(Ze);case 355:case 356:return;case 357:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(Ze.kind))return ts(Ze,Kt);if(e.isTokenKind(Ze.kind))return ts(Ze,wi);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(Ze.kind),"."))}function we(v){Vr(v.name),ji(),Kt("in"),ji(),Vr(v.constraint)}function hn(v,Ze){var _n=gi(1,v,Ze);e.Debug.assertIsDefined(Mr),Ze=Mr,Mr=void 0,_n(v,Ze)}function jn(v){var Ze;if(!(pe===e.ModuleKind.None||N.noEmitHelpers)){for(var _n=new e.Map,Zn=0,$i=v.sourceFiles;Zn<$i.length;Zn++){var kt=$i[Zn],Mt=e.getExternalHelpersModuleName(kt)!==void 0,wt=nn(kt);if(!!wt)for(var Wa=0,Lo=wt;Wa<Lo.length;Wa++){var Na=Lo[Wa];!Na.scoped&&!Mt&&!_n.get(Na.name)&&(_n.set(Na.name,!0),(Ze||(Ze=[])).push(Na.name))}}return Ze}}function gn(v){var Ze=!1,_n=v.kind===309?v:void 0;if(!(_n&&pe===e.ModuleKind.None)){for(var Zn=_n?_n.prepends.length:0,$i=_n?_n.sourceFiles.length+Zn:1,kt=0;kt<$i;kt++){var Mt=_n?kt<Zn?_n.prepends[kt]:_n.sourceFiles[kt-Zn]:v,wt=e.isSourceFile(Mt)?Mt:e.isUnparsedSource(Mt)?void 0:Be,Wa=N.noEmitHelpers||!!wt&&e.hasRecordedExternalHelpers(wt),Lo=(e.isSourceFile(Mt)||e.isUnparsedSource(Mt))&&!Ue,Na=e.isUnparsedSource(Mt)?Mt.helpers:nn(Mt);if(Na)for(var Pc=0,Ba=Na;Pc<Ba.length;Pc++){var ca=Ba[Pc];if(ca.scoped){if(_n)continue}else{if(Wa)continue;if(Lo){if(He.get(ca.name))continue;He.set(ca.name,!0)}}var Bc=jr();typeof ca.text=="string"?T_(ca.text):T_(ca.text(Xf)),t&&t.sections.push({pos:Bc,end:er.getTextPos(),kind:"emitHelpers",data:ca.name}),Ze=!0}}return Ze}}function nn(v){var Ze=e.getEmitHelpers(v);return Ze&&e.stableSort(Ze,e.compareEmitHelpers)}function Cn(v){Dn(v,!1)}function Dn(v,Ze){var _n=rd(v,N.neverAsciiEscape,Ze);(N.sourceMap||N.inlineSourceMap)&&(v.kind===10||e.isTemplateLiteralKind(v.kind))?Gf(_n):Tf(_n)}function On(v){for(var Ze=0,_n=v.texts;Ze<_n.length;Ze++){var Zn=_n[Ze];Wo(),Vr(Zn)}}function Xn(v){er.rawWrite(v.parent.text.substring(v.pos,v.end))}function Ge(v){var Ze=jr();Xn(v),t&&on(Ze,er.getTextPos(),v.kind===305?"text":"internal")}function cn(v){var Ze=jr();if(Xn(v),t){var _n=e.clone(v.section);_n.pos=Ze,_n.end=er.getTextPos(),t.sections.push(_n)}}function Vn(v,Ze,_n){switch(_n.kind){case 1:Ki(v,Ze,_n);break;case 0:dt(v,Ze,_n);break}}function Ki(v,Ze,_n){cu("${".concat(_n.order,":")),Ir(v,Ze,!1),cu("}")}function dt(v,Ze,_n){e.Debug.assert(Ze.kind===239,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(Ze.kind),".")),e.Debug.assert(v!==5,"A tab stop cannot be attached to an embedded statement."),cu("$".concat(_n.order))}function qi(v){var Ze=v.symbol?ss:mr;Ze(lf(v,!1),v.symbol),Fo(v,v.typeArguments,53776)}function Ci(v){var Ze=v.symbol?ss:mr;Ze(lf(v,!1),v.symbol)}function Tt(v){ot(v.left),wi("."),Vr(v.right)}function ot(v){v.kind===79?bn(v):Vr(v)}function Zi(v){wi("["),bn(v.expression,Ie.parenthesizeExpressionOfComputedPropertyName),wi("]")}function ni(v){Tc(v,v.modifiers),Vr(v.name),v.constraint&&(ji(),Kt("extends"),ji(),Vr(v.constraint)),v.default&&(ji(),Hs("="),ji(),Vr(v.default))}function Va(v){af(v,v.modifiers),Vr(v.dotDotDotToken),Q_(v.name,$_),Vr(v.questionToken),v.parent&&v.parent.kind===320&&!v.name?Vr(v.type):$u(v.type),of(v.initializer,v.type?v.type.end:v.questionToken?v.questionToken.end:v.name?v.name.end:v.modifiers?v.modifiers.end:v.pos,v,Ie.parenthesizeExpressionForDisallowedComma)}function Ua(v){wi("@"),bn(v.expression,Ie.parenthesizeLeftSideOfAccess)}function za(v){Tc(v,v.modifiers),Q_(v.name,su),Vr(v.questionToken),$u(v.type),Fs()}function Co(v){af(v,v.modifiers),Vr(v.name),Vr(v.questionToken),Vr(v.exclamationToken),$u(v.type),of(v.initializer,v.type?v.type.end:v.questionToken?v.questionToken.end:v.name.end,v),Fs()}function Ea(v){Pl(v),Tc(v,v.modifiers),Vr(v.name),Vr(v.questionToken),Bu(v,v.typeParameters),Eu(v,v.parameters),$u(v.type),Fs(),nl(v)}function ho(v){af(v,v.modifiers),Vr(v.asteriskToken),Vr(v.name),Vr(v.questionToken),jo(v,ys)}function Aa(v){Kt("static"),fe(v.body)}function Vi(v){Tc(v,v.modifiers),Kt("constructor"),jo(v,ys)}function Xi(v){af(v,v.modifiers),Kt(v.kind===174?"get":"set"),ji(),Vr(v.name),jo(v,ys)}function ao(v){Pl(v),Bu(v,v.typeParameters),Eu(v,v.parameters),$u(v.type),Fs(),nl(v)}function fo(v){Pl(v),Kt("new"),ji(),Bu(v,v.typeParameters),Eu(v,v.parameters),$u(v.type),Fs(),nl(v)}function As(v){Tc(v,v.modifiers),Od(v,v.parameters),$u(v.type),Fs()}function so(v){Vr(v.type),Vr(v.literal)}function Xo(){Fs()}function Ho(v){v.assertsModifier&&(Vr(v.assertsModifier),ji()),Vr(v.parameterName),v.type&&(ji(),Kt("is"),ji(),Vr(v.type))}function Zo(v){Vr(v.typeName),Ru(v,v.typeArguments)}function To(v){Pl(v),Bu(v,v.typeParameters),Z_(v,v.parameters),ji(),wi("=>"),ji(),Vr(v.type),nl(v)}function pr(v){Kt("function"),Eu(v,v.parameters),wi(":"),Vr(v.type)}function Fr(v){wi("?"),Vr(v.type)}function yi(v){wi("!"),Vr(v.type)}function Dt(v){Vr(v.type),wi("=")}function Ft(v){Pl(v),Tc(v,v.modifiers),Kt("new"),ji(),Bu(v,v.typeParameters),Eu(v,v.parameters),ji(),wi("=>"),ji(),Vr(v.type),nl(v)}function Pa(v){Kt("typeof"),ji(),Vr(v.exprName),Ru(v,v.typeArguments)}function Ve(v){wi("{");var Ze=e.getEmitFlags(v)&1?768:32897;Fo(v,v.members,Ze|524288),wi("}")}function tn(v){Vr(v.elementType,Ie.parenthesizeNonArrayTypeOfPostfixType),wi("["),wi("]")}function Nn(v){wi("..."),Vr(v.type)}function wn(v){Gr(22,v.pos,wi,v);var Ze=e.getEmitFlags(v)&1?528:657;Fo(v,v.elements,Ze|524288,Ie.parenthesizeElementTypeOfTupleType),Gr(23,v.elements.end,wi,v)}function Je(v){Vr(v.dotDotDotToken),Vr(v.name),Vr(v.questionToken),Gr(58,v.name.end,wi,v),ji(),Vr(v.type)}function ur(v){Vr(v.type,Ie.parenthesizeTypeOfOptionalType),wi("?")}function yr(v){Fo(v,v.types,516,Ie.parenthesizeConstituentTypeOfUnionType)}function Jr(v){Fo(v,v.types,520,Ie.parenthesizeConstituentTypeOfIntersectionType)}function Mn(v){Vr(v.checkType,Ie.parenthesizeCheckTypeOfConditionalType),ji(),Kt("extends"),ji(),Vr(v.extendsType,Ie.parenthesizeExtendsTypeOfConditionalType),ji(),wi("?"),ji(),Vr(v.trueType),ji(),wi(":"),ji(),Vr(v.falseType)}function _i(v){Kt("infer"),ji(),Vr(v.typeParameter)}function di(v){wi("("),Vr(v.type),wi(")")}function fi(){Kt("this")}function Nt(v){gl(v.operator,Kt),ji();var Ze=v.operator===146?Ie.parenthesizeOperandOfReadonlyTypeOperator:Ie.parenthesizeOperandOfTypeOperator;Vr(v.type,Ze)}function Gt(v){Vr(v.objectType,Ie.parenthesizeNonArrayTypeOfPostfixType),wi("["),Vr(v.indexType),wi("]")}function la(v){var Ze=e.getEmitFlags(v);wi("{"),Ze&1?ji():(Wo(),kc()),v.readonlyToken&&(Vr(v.readonlyToken),v.readonlyToken.kind!==146&&Kt("readonly"),ji()),wi("["),Ai(3,v.typeParameter),v.nameType&&(ji(),Kt("as"),ji(),Vr(v.nameType)),wi("]"),v.questionToken&&(Vr(v.questionToken),v.questionToken.kind!==57&&wi("?")),wi(":"),ji(),Vr(v.type),Fs(),Ze&1?ji():(Wo(),Vc()),Fo(v,v.members,2),wi("}")}function na(v){bn(v.literal)}function Ia(v){Vr(v.head),Fo(v,v.templateSpans,262144)}function bs(v){if(v.isTypeOf&&(Kt("typeof"),ji()),Kt("import"),wi("("),Vr(v.argument),v.assertions){wi(","),ji(),wi("{"),ji(),Kt("assert"),wi(":"),ji();var Ze=v.assertions.assertClause.elements;Fo(v.assertions.assertClause,Ze,526226),ji(),wi("}")}wi(")"),v.qualifier&&(wi("."),Vr(v.qualifier)),Ru(v,v.typeArguments)}function ds(v){wi("{"),Fo(v,v.elements,525136),wi("}")}function ps(v){wi("["),Fo(v,v.elements,524880),wi("]")}function ac(v){Vr(v.dotDotDotToken),v.propertyName&&(Vr(v.propertyName),wi(":"),ji()),Vr(v.name),of(v.initializer,v.name.end,v,Ie.parenthesizeExpressionForDisallowedComma)}function Es(v){var Ze=v.elements,_n=v.multiLine?65536:0;sf(v,Ze,8914|_n,Ie.parenthesizeExpressionForDisallowedComma)}function ns(v){e.forEach(v.properties,Ac);var Ze=e.getEmitFlags(v)&65536;Ze&&kc();var _n=v.multiLine?65536:0,Zn=Be&&Be.languageVersion>=1&&!e.isJsonSourceFile(Be)?64:0;Fo(v,v.properties,526226|Zn|_n),Ze&&Vc()}function dc(v){bn(v.expression,Ie.parenthesizeLeftSideOfAccess);var Ze=v.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),v.expression.end,v.name.pos),_n=eu(v,v.expression,Ze),Zn=eu(v,Ze,v.name);rl(_n,!1);var $i=Ze.kind!==28&&$s(v.expression)&&!er.hasTrailingComment()&&!er.hasTrailingWhitespace();$i&&wi("."),v.questionDotToken?Vr(Ze):Gr(Ze.kind,v.expression.end,wi,v),rl(Zn,!1),Vr(v.name),Ms(_n,Zn)}function $s(v){if(v=e.skipPartiallyEmittedExpressions(v),e.isNumericLiteral(v)){var Ze=rd(v,!0,!1);return!v.numericLiteralFlags&&!e.stringContains(Ze,e.tokenToString(24))}else if(e.isAccessExpression(v)){var _n=e.getConstantValue(v);return typeof _n=="number"&&isFinite(_n)&&Math.floor(_n)===_n}}function pc(v){bn(v.expression,Ie.parenthesizeLeftSideOfAccess),Vr(v.questionDotToken),Gr(22,v.expression.end,wi,v),bn(v.argumentExpression),Gr(23,v.argumentExpression.end,wi,v)}function js(v){var Ze=e.getEmitFlags(v)&536870912;Ze&&(wi("("),Gf("0"),wi(","),ji()),bn(v.expression,Ie.parenthesizeLeftSideOfAccess),Ze&&wi(")"),Vr(v.questionDotToken),Ru(v,v.typeArguments),sf(v,v.arguments,2576,Ie.parenthesizeExpressionForDisallowedComma)}function Sc(v){Gr(103,v.pos,Kt,v),ji(),bn(v.expression,Ie.parenthesizeExpressionOfNew),Ru(v,v.typeArguments),sf(v,v.arguments,18960,Ie.parenthesizeExpressionForDisallowedComma)}function Ko(v){var Ze=e.getEmitFlags(v)&536870912;Ze&&(wi("("),Gf("0"),wi(","),ji()),bn(v.tag,Ie.parenthesizeLeftSideOfAccess),Ze&&wi(")"),Ru(v,v.typeArguments),ji(),bn(v.template)}function Mc(v){wi("<"),Vr(v.type),wi(">"),bn(v.expression,Ie.parenthesizeOperandOfPrefixUnary)}function Vs(v){var Ze=Gr(20,v.pos,wi,v),_n=Dp(v.expression,v);bn(v.expression,void 0),Us(v.expression,v),Ms(_n),Gr(21,v.expression?v.expression.end:Ze,wi,v)}function oc(v){Ls(v.name),Ns(v)}function Ss(v){Tc(v,v.modifiers),jo(v,ee)}function ee(v){Bu(v,v.typeParameters),Z_(v,v.parameters),$u(v.type),ji(),Vr(v.equalsGreaterThanToken)}function Er(v){Gr(89,v.pos,Kt,v),ji(),bn(v.expression,Ie.parenthesizeOperandOfPrefixUnary)}function un(v){Gr(112,v.pos,Kt,v),ji(),bn(v.expression,Ie.parenthesizeOperandOfPrefixUnary)}function $n(v){Gr(114,v.pos,Kt,v),ji(),bn(v.expression,Ie.parenthesizeOperandOfPrefixUnary)}function Ii(v){Gr(133,v.pos,Kt,v),ji(),bn(v.expression,Ie.parenthesizeOperandOfPrefixUnary)}function at(v){gl(v.operator,Hs),Ji(v)&&ji(),bn(v.operand,Ie.parenthesizeOperandOfPrefixUnary)}function Ji(v){var Ze=v.operand;return Ze.kind===221&&(v.operator===39&&(Ze.operator===39||Ze.operator===45)||v.operator===40&&(Ze.operator===40||Ze.operator===46))}function _t(v){bn(v.operand,Ie.parenthesizeOperandOfPostfixUnary),gl(v.operator,Hs)}function Ht(){return e.createBinaryExpressionTrampoline(v,Ze,_n,Zn,$i,void 0);function v(Mt,wt){if(wt){wt.stackIndex++,wt.preserveSourceNewlinesStack[wt.stackIndex]=Se,wt.containerPosStack[wt.stackIndex]=ve,wt.containerEndStack[wt.stackIndex]=or,wt.declarationListContainerEndStack[wt.stackIndex]=Ee;var Wa=wt.shouldEmitCommentsStack[wt.stackIndex]=ti(Mt),Lo=wt.shouldEmitSourceMapsStack[wt.stackIndex]=Hi(Mt);Z==null||Z(Mt),Wa&&Af(Mt),Lo&&Ju(Mt),yn(Mt)}else wt={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return wt}function Ze(Mt,wt,Wa){return kt(Mt,Wa,"left")}function _n(Mt,wt,Wa){var Lo=Mt.kind!==27,Na=eu(Wa,Wa.left,Mt),Pc=eu(Wa,Mt,Wa.right);rl(Na,Lo),Au(Mt.pos),ts(Mt,Mt.kind===101?Kt:Hs),tl(Mt.end,!0),rl(Pc,!0)}function Zn(Mt,wt,Wa){return kt(Mt,Wa,"right")}function $i(Mt,wt){var Wa=eu(Mt,Mt.left,Mt.operatorToken),Lo=eu(Mt,Mt.operatorToken,Mt.right);if(Ms(Wa,Lo),wt.stackIndex>0){var Na=wt.preserveSourceNewlinesStack[wt.stackIndex],Pc=wt.containerPosStack[wt.stackIndex],Ba=wt.containerEndStack[wt.stackIndex],ca=wt.declarationListContainerEndStack[wt.stackIndex],Bc=wt.shouldEmitCommentsStack[wt.stackIndex],mu=wt.shouldEmitSourceMapsStack[wt.stackIndex];Hn(Na),mu&&od(Mt),Bc&&uu(Mt,Pc,Ba,ca),B==null||B(Mt),wt.stackIndex--}}function kt(Mt,wt,Wa){var Lo=Wa==="left"?Ie.getParenthesizeLeftSideOfBinaryForOperator(wt.operatorToken.kind):Ie.getParenthesizeRightSideOfBinaryForOperator(wt.operatorToken.kind),Na=Ni(0,1,Mt);if(Na===hn&&(e.Debug.assertIsDefined(Mr),Mt=Lo(e.cast(Mr,e.isExpression)),Na=gi(1,1,Mt),Mr=void 0),(Na===Gc||Na===al||Na===Pe)&&e.isBinaryExpression(Mt))return Mt;Rr=Lo,Na(1,Mt)}}function Rt(v){var Ze=eu(v,v.condition,v.questionToken),_n=eu(v,v.questionToken,v.whenTrue),Zn=eu(v,v.whenTrue,v.colonToken),$i=eu(v,v.colonToken,v.whenFalse);bn(v.condition,Ie.parenthesizeConditionOfConditionalExpression),rl(Ze,!0),Vr(v.questionToken),rl(_n,!0),bn(v.whenTrue,Ie.parenthesizeBranchOfConditionalExpression),Ms(Ze,_n),rl(Zn,!0),Vr(v.colonToken),rl($i,!0),bn(v.whenFalse,Ie.parenthesizeBranchOfConditionalExpression),Ms(Zn,$i)}function va(v){Vr(v.head),Fo(v,v.templateSpans,262144)}function qe(v){Gr(125,v.pos,Kt,v),Vr(v.asteriskToken),Tu(v.expression&&hi(v.expression),Ei)}function Tn(v){Gr(25,v.pos,wi,v),bn(v.expression,Ie.parenthesizeExpressionForDisallowedComma)}function Nr(v){Ls(v.name),Si(v)}function ga(v){bn(v.expression,Ie.parenthesizeLeftSideOfAccess),Ru(v,v.typeArguments)}function xa(v){bn(v.expression,void 0),v.type&&(ji(),Kt("as"),ji(),Vr(v.type))}function co(v){bn(v.expression,Ie.parenthesizeLeftSideOfAccess),Hs("!")}function gs(v){bn(v.expression,void 0),v.type&&(ji(),Kt("satisfies"),ji(),Vr(v.type))}function gc(v){ed(v.keywordToken,v.pos,wi),wi("."),Vr(v.name)}function ws(v){bn(v.expression),Vr(v.literal)}function Lc(v){qs(v,!v.multiLine&&Ld(v))}function qs(v,Ze){Gr(18,v.pos,wi,v);var _n=Ze||e.getEmitFlags(v)&1?768:129;Fo(v,v.statements,_n),Gr(19,v.statements.end,wi,v,!!(_n&1))}function ec(v){Tc(v,v.modifiers),Vr(v.declarationList),Fs()}function Rc(v){v?wi(";"):Fs()}function _o(v){bn(v.expression,Ie.parenthesizeExpressionOfExpressionStatement),(!Be||!e.isJsonSourceFile(Be)||e.nodeIsSynthesized(v.expression))&&Fs()}function Gs(v){var Ze=Gr(99,v.pos,Kt,v);ji(),Gr(20,Ze,wi,v),bn(v.expression),Gr(21,v.expression.end,wi,v),el(v,v.thenStatement),v.elseStatement&&(Ef(v,v.thenStatement,v.elseStatement),Gr(91,v.thenStatement.end,Kt,v),v.elseStatement.kind===242?(ji(),Vr(v.elseStatement)):el(v,v.elseStatement))}function mc(v,Ze){var _n=Gr(115,Ze,Kt,v);ji(),Gr(20,_n,wi,v),bn(v.expression),Gr(21,v.expression.end,wi,v)}function xl(v){Gr(90,v.pos,Kt,v),el(v,v.statement),e.isBlock(v.statement)&&!Se?ji():Ef(v,v.statement,v.expression),mc(v,v.statement.end),Fs()}function $c(v){mc(v,v.pos),el(v,v.statement)}function Qu(v){var Ze=Gr(97,v.pos,Kt,v);ji();var _n=Gr(20,Ze,wi,v);zc(v.initializer),_n=Gr(26,v.initializer?v.initializer.end:_n,wi,v),Tu(v.condition),_n=Gr(26,v.condition?v.condition.end:_n,wi,v),Tu(v.incrementor),Gr(21,v.incrementor?v.incrementor.end:_n,wi,v),el(v,v.statement)}function Df(v){var Ze=Gr(97,v.pos,Kt,v);ji(),Gr(20,Ze,wi,v),zc(v.initializer),ji(),Gr(101,v.initializer.end,Kt,v),ji(),bn(v.expression),Gr(21,v.expression.end,wi,v),el(v,v.statement)}function Xu(v){var Ze=Gr(97,v.pos,Kt,v);ji(),Cf(v.awaitModifier),Gr(20,Ze,wi,v),zc(v.initializer),ji(),Gr(162,v.initializer.end,Kt,v),ji(),bn(v.expression),Gr(21,v.expression.end,wi,v),el(v,v.statement)}function zc(v){v!==void 0&&(v.kind===258?Vr(v):bn(v))}function Zu(v){Gr(86,v.pos,Kt,v),x_(v.label),Fs()}function Hr(v){Gr(81,v.pos,Kt,v),x_(v.label),Fs()}function Gr(v,Ze,_n,Zn,$i){var kt=e.getParseTreeNode(Zn),Mt=kt&&kt.kind===Zn.kind,wt=Ze;if(Mt&&Be&&(Ze=e.skipTrivia(Be.text,Ze)),Mt&&Zn.pos!==wt){var Wa=$i&&Be&&!e.positionsAreOnSameLine(wt,Ze,Be);Wa&&kc(),Au(wt),Wa&&Vc()}if(Ze=gl(v,_n,Ze),Mt&&Zn.end!==Ze){var Lo=Zn.kind===291;tl(Ze,!Lo,Lo)}return Ze}function Bn(v){return v.kind===2||!!v.hasTrailingNewLine}function ui(v){return Be?e.some(e.getLeadingCommentRanges(Be.text,v.pos),Bn)||e.some(e.getSyntheticLeadingComments(v),Bn)?!0:e.isPartiallyEmittedExpression(v)?v.pos!==v.expression.pos&&e.some(e.getTrailingCommentRanges(Be.text,v.expression.pos),Bn)?!0:ui(v.expression):!1:!1}function hi(v){if(!cr&&e.isPartiallyEmittedExpression(v)&&ui(v)){var Ze=e.getParseTreeNode(v);if(Ze&&e.isParenthesizedExpression(Ze)){var _n=e.factory.createParenthesizedExpression(v.expression);return e.setOriginalNode(_n,v),e.setTextRange(_n,Ze),_n}return e.factory.createParenthesizedExpression(v)}return v}function Ei(v){return hi(Ie.parenthesizeExpressionForDisallowedComma(v))}function st(v){Gr(105,v.pos,Kt,v),Tu(v.expression&&hi(v.expression),hi),Fs()}function Bi(v){var Ze=Gr(116,v.pos,Kt,v);ji(),Gr(20,Ze,wi,v),bn(v.expression),Gr(21,v.expression.end,wi,v),el(v,v.statement)}function Jt(v){var Ze=Gr(107,v.pos,Kt,v);ji(),Gr(20,Ze,wi,v),bn(v.expression),Gr(21,v.expression.end,wi,v),ji(),Vr(v.caseBlock)}function Ca(v){Vr(v.label),Gr(58,v.label.end,wi,v),ji(),Vr(v.statement)}function Yt(v){Gr(109,v.pos,Kt,v),Tu(hi(v.expression),hi),Fs()}function Wt(v){Gr(111,v.pos,Kt,v),ji(),Vr(v.tryBlock),v.catchClause&&(Ef(v,v.tryBlock,v.catchClause),Vr(v.catchClause)),v.finallyBlock&&(Ef(v,v.catchClause||v.tryBlock,v.finallyBlock),Gr(96,(v.catchClause||v.tryBlock).end,Kt,v),ji(),Vr(v.finallyBlock))}function Ga(v){ed(87,v.pos,Kt),Fs()}function $t(v){var Ze,_n,Zn,$i,kt;Vr(v.name),Vr(v.exclamationToken),$u(v.type),of(v.initializer,(kt=(_n=(Ze=v.type)===null||Ze===void 0?void 0:Ze.end)!==null&&_n!==void 0?_n:($i=(Zn=v.name.emitNode)===null||Zn===void 0?void 0:Zn.typeNode)===null||$i===void 0?void 0:$i.end)!==null&&kt!==void 0?kt:v.name.end,v,Ie.parenthesizeExpressionForDisallowedComma)}function po(v){Kt(e.isLet(v)?"let":e.isVarConst(v)?"const":"var"),ji(),Fo(v,v.declarations,528)}function Do(v){Ns(v)}function Ns(v){Tc(v,v.modifiers),Kt("function"),Vr(v.asteriskToken),ji(),Wn(v.name),jo(v,ys)}function jo(v,Ze){var _n=v.body;if(_n)if(e.isBlock(_n)){var Zn=e.getEmitFlags(v)&65536;Zn&&kc(),Pl(v),e.forEach(v.parameters,ks),ks(v.body),Ze(v),fe(_n),nl(v),Zn&&Vc()}else Ze(v),ji(),bn(_n,Ie.parenthesizeConciseBodyOfArrowFunction);else Ze(v),Fs()}function ys(v){Bu(v,v.typeParameters),Eu(v,v.parameters),$u(v.type)}function Vo(v){if(e.getEmitFlags(v)&1)return!0;if(v.multiLine||!e.nodeIsSynthesized(v)&&Be&&!e.rangeIsOnSingleLine(v,Be)||ml(v,e.firstOrUndefined(v.statements),2)||Kf(v,e.lastOrUndefined(v.statements),2,v.statements))return!1;for(var Ze,_n=0,Zn=v.statements;_n<Zn.length;_n++){var $i=Zn[_n];if(Hf(Ze,$i,2)>0)return!1;Ze=$i}return!0}function fe(v){Z==null||Z(v),ji(),wi("{"),kc();var Ze=Vo(v)?sr:Tr;Rd(v,v.statements,Ze),Vc(),ed(19,v.statements.end,wi,v),B==null||B(v)}function sr(v){Tr(v,!0)}function Tr(v,Ze){var _n=b_(v.statements),Zn=er.getTextPos();gn(v),_n===0&&Zn===er.getTextPos()&&Ze?(Vc(),Fo(v,v.statements,768),kc()):Fo(v,v.statements,1,void 0,_n)}function Fn(v){Si(v)}function Si(v){e.forEach(v.members,Ac),af(v,v.modifiers),Kt("class"),v.name&&(ji(),Wn(v.name));var Ze=e.getEmitFlags(v)&65536;Ze&&kc(),Bu(v,v.typeParameters),Fo(v,v.heritageClauses,0),ji(),wi("{"),Fo(v,v.members,129),wi("}"),Ze&&Vc()}function gt(v){Tc(v,v.modifiers),Kt("interface"),ji(),Vr(v.name),Bu(v,v.typeParameters),Fo(v,v.heritageClauses,512),ji(),wi("{"),Fo(v,v.members,129),wi("}")}function jt(v){Tc(v,v.modifiers),Kt("type"),ji(),Vr(v.name),Bu(v,v.typeParameters),ji(),wi("="),ji(),Vr(v.type),Fs()}function fa(v){Tc(v,v.modifiers),Kt("enum"),ji(),Vr(v.name),ji(),wi("{"),Fo(v,v.members,145),wi("}")}function Ka(v){Tc(v,v.modifiers),~v.flags&1024&&(Kt(v.flags&16?"namespace":"module"),ji()),Vr(v.name);var Ze=v.body;if(!Ze)return Fs();for(;Ze&&e.isModuleDeclaration(Ze);)wi("."),Vr(Ze.name),Ze=Ze.body;ji(),Vr(Ze)}function no(v){Pl(v),e.forEach(v.statements,ks),qs(v,Ld(v)),nl(v)}function Eo(v){Gr(18,v.pos,wi,v),Fo(v,v.clauses,129),Gr(19,v.clauses.end,wi,v,!0)}function Fa(v){Tc(v,v.modifiers),Gr(100,v.modifiers?v.modifiers.end:v.pos,Kt,v),ji(),v.isTypeOnly&&(Gr(154,v.pos,Kt,v),ji()),Vr(v.name),ji(),Gr(63,v.name.end,wi,v),ji(),Qa(v.moduleReference),Fs()}function Qa(v){v.kind===79?bn(v):Vr(v)}function zo(v){Tc(v,v.modifiers),Gr(100,v.modifiers?v.modifiers.end:v.pos,Kt,v),ji(),v.importClause&&(Vr(v.importClause),ji(),Gr(158,v.importClause.end,Kt,v),ji()),bn(v.moduleSpecifier),v.assertClause&&x_(v.assertClause),Fs()}function Uo(v){v.isTypeOnly&&(Gr(154,v.pos,Kt,v),ji()),Vr(v.name),v.name&&v.namedBindings&&(Gr(27,v.name.end,wi,v),ji()),Vr(v.namedBindings)}function ms(v){var Ze=Gr(41,v.pos,wi,v);ji(),Gr(128,Ze,Kt,v),ji(),Vr(v.name)}function xc(v){Wf(v)}function Os(v){ef(v)}function Cl(v){var Ze=Gr(93,v.pos,Kt,v);ji(),v.isExportEquals?Gr(63,Ze,Hs,v):Gr(88,Ze,Kt,v),ji(),bn(v.expression,v.isExportEquals?Ie.getParenthesizeRightSideOfBinaryForOperator(63):Ie.parenthesizeExpressionOfExportDefault),Fs()}function m_(v){Tc(v,v.modifiers);var Ze=Gr(93,v.pos,Kt,v);if(ji(),v.isTypeOnly&&(Ze=Gr(154,Ze,Kt,v),ji()),v.exportClause?Vr(v.exportClause):Ze=Gr(41,Ze,wi,v),v.moduleSpecifier){ji();var _n=v.exportClause?v.exportClause.end:Ze;Gr(158,_n,Kt,v),ji(),bn(v.moduleSpecifier)}v.assertClause&&x_(v.assertClause),Fs()}function pl(v){Gr(130,v.pos,Kt,v),ji();var Ze=v.elements;Fo(v,Ze,526226)}function Zl(v){Vr(v.name),wi(":"),ji();var Ze=v.value;if((e.getEmitFlags(Ze)&512)==0){var _n=e.getCommentRange(Ze);tl(_n.pos)}Vr(Ze)}function Zr(v){var Ze=Gr(93,v.pos,Kt,v);ji(),Ze=Gr(128,Ze,Kt,v),ji(),Ze=Gr(143,Ze,Kt,v),ji(),Vr(v.name),Fs()}function Yl(v){var Ze=Gr(41,v.pos,wi,v);ji(),Gr(128,Ze,Kt,v),ji(),Vr(v.name)}function xu(v){Wf(v)}function $l(v){ef(v)}function Wf(v){wi("{"),Fo(v,v.elements,525136),wi("}")}function ef(v){v.isTypeOnly&&(Kt("type"),ji()),v.propertyName&&(Vr(v.propertyName),ji(),Gr(128,v.propertyName.end,Kt,v),ji()),Vr(v.name)}function Tl(v){Kt("require"),wi("("),bn(v.expression),wi(")")}function Ad(v){Vr(v.openingElement),Fo(v,v.children,262144),Vr(v.closingElement)}function go(v){wi("<"),At(v.tagName),Ru(v,v.typeArguments),ji(),Vr(v.attributes),wi("/>")}function U_(v){Vr(v.openingFragment),Fo(v,v.children,262144),Vr(v.closingFragment)}function bf(v){if(wi("<"),e.isJsxOpeningElement(v)){var Ze=Dp(v.tagName,v);At(v.tagName),Ru(v,v.typeArguments),v.attributes.properties&&v.attributes.properties.length>0&&ji(),Vr(v.attributes),Us(v.attributes,v),Ms(Ze)}wi(">")}function z_(v){er.writeLiteral(v.text)}function Vf(v){wi("</"),e.isJsxClosingElement(v)&&At(v.tagName),wi(">")}function W_(v){Fo(v,v.properties,262656)}function v_(v){Vr(v.name),X_("=",wi,v.initializer,qn)}function rf(v){wi("{..."),bn(v.expression),wi("}")}function ou(v){var Ze=!1;return e.forEachTrailingCommentRange((Be==null?void 0:Be.text)||"",v+1,function(){return Ze=!0}),Ze}function V_(v){var Ze=!1;return e.forEachLeadingCommentRange((Be==null?void 0:Be.text)||"",v+1,function(){return Ze=!0}),Ze}function y_(v){return ou(v)||V_(v)}function Qt(v){var Ze;if(v.expression||!cr&&!e.nodeIsSynthesized(v)&&y_(v.pos)){var _n=Be&&!e.nodeIsSynthesized(v)&&e.getLineAndCharacterOfPosition(Be,v.pos).line!==e.getLineAndCharacterOfPosition(Be,v.end).line;_n&&er.increaseIndent();var Zn=Gr(18,v.pos,wi,v);Vr(v.dotDotDotToken),bn(v.expression),Gr(19,((Ze=v.expression)===null||Ze===void 0?void 0:Ze.end)||Zn,wi,v),_n&&er.decreaseIndent()}}function At(v){v.kind===79?bn(v):Vr(v)}function Cu(v){Gr(82,v.pos,Kt,v),ji(),bn(v.expression,Ie.parenthesizeExpressionForDisallowedComma),q_(v,v.statements,v.expression.end)}function Wc(v){var Ze=Gr(88,v.pos,Kt,v);q_(v,v.statements,Ze)}function q_(v,Ze,_n){var Zn=Ze.length===1&&(!Be||e.nodeIsSynthesized(v)||e.nodeIsSynthesized(Ze[0])||e.rangeStartPositionsAreOnSameLine(v,Ze[0],Be)),$i=163969;Zn?(ed(58,_n,wi,v),ji(),$i&=~(1|128)):Gr(58,_n,wi,v),Fo(v,Ze,$i)}function Sf(v){ji(),gl(v.token,Kt),ji(),Fo(v,v.types,528)}function Wp(v){var Ze=Gr(83,v.pos,Kt,v);ji(),v.variableDeclaration&&(Gr(20,Ze,wi,v),Vr(v.variableDeclaration),Gr(21,v.variableDeclaration.end,wi,v),ji()),Vr(v.block)}function Nd(v){Vr(v.name),wi(":"),ji();var Ze=v.initializer;if((e.getEmitFlags(Ze)&512)==0){var _n=e.getCommentRange(Ze);tl(_n.pos)}bn(Ze,Ie.parenthesizeExpressionForDisallowedComma)}function is(v){Vr(v.name),v.objectAssignmentInitializer&&(ji(),wi("="),ji(),bn(v.objectAssignmentInitializer,Ie.parenthesizeExpressionForDisallowedComma))}function dp(v){v.expression&&(Gr(25,v.pos,wi,v),bn(v.expression,Ie.parenthesizeExpressionForDisallowedComma))}function xs(v){Vr(v.name),of(v.initializer,v.name.end,v,Ie.parenthesizeExpressionForDisallowedComma)}function Yu(v){if(mr("/**"),v.comment){var Ze=e.getTextOfJSDocComment(v.comment);if(Ze)for(var _n=Ze.split(/\r\n?|\n/g),Zn=0,$i=_n;Zn<$i.length;Zn++){var kt=$i[Zn];Wo(),ji(),wi("*"),ji(),mr(kt)}}v.tags&&(v.tags.length===1&&v.tags[0].kind===346&&!v.comment?(ji(),Vr(v.tags[0])):Fo(v,v.tags,33)),ji(),mr("*/")}function pp(v){kl(v.tagName),h_(v.typeExpression),Al(v.comment)}function vc(v){kl(v.tagName),Vr(v.name),Al(v.comment)}function gp(v){ji(),wi("{"),Vr(v.name),wi("}")}function sc(v){kl(v.tagName),ji(),wi("{"),Vr(v.class),wi("}"),Al(v.comment)}function El(v){kl(v.tagName),h_(v.constraint),ji(),Fo(v,v.typeParameters,528),Al(v.comment)}function Cc(v){kl(v.tagName),v.typeExpression&&(v.typeExpression.kind===312?h_(v.typeExpression):(ji(),wi("{"),mr("Object"),v.typeExpression.isArrayType&&(wi("["),wi("]")),wi("}"))),v.fullName&&(ji(),Vr(v.fullName)),Al(v.comment),v.typeExpression&&v.typeExpression.kind===325&&G_(v.typeExpression)}function mp(v){kl(v.tagName),v.name&&(ji(),Vr(v.name)),Al(v.comment),H_(v.typeExpression)}function Pd(v){kl(v.tagName),Al(v.comment)}function G_(v){Fo(v,e.factory.createNodeArray(v.jsDocPropertyTags),33)}function H_(v){v.typeParameters&&Fo(v,e.factory.createNodeArray(v.typeParameters),33),v.parameters&&Fo(v,e.factory.createNodeArray(v.parameters),33),v.type&&(Wo(),ji(),wi("*"),ji(),Vr(v.type))}function vp(v){kl(v.tagName),h_(v.typeExpression),ji(),v.isBracketed&&wi("["),Vr(v.name),v.isBracketed&&wi("]"),Al(v.comment)}function kl(v){wi("@"),Vr(v)}function Al(v){var Ze=e.getTextOfJSDocComment(v);Ze&&(ji(),mr(Ze))}function h_(v){v&&(ji(),wi("{"),Vr(v.type),wi("}"))}function Id(v){Wo();var Ze=v.statements,_n=Ze.length===0||!e.isPrologueDirective(Ze[0])||e.nodeIsSynthesized(Ze[0]);if(_n){Rd(v,Ze,Mu);return}Mu(v)}function yp(v){D_(!!v.hasNoDefaultLib,v.syntheticFileReferences||[],v.syntheticTypeReferences||[],v.syntheticLibReferences||[]);for(var Ze=0,_n=v.prepends;Ze<_n.length;Ze++){var Zn=_n[Ze];if(e.isUnparsedSource(Zn)&&Zn.syntheticReferences)for(var $i=0,kt=Zn.syntheticReferences;$i<kt.length;$i++){var Mt=kt[$i];Vr(Mt),Wo()}}}function wd(v){v.isDeclarationFile&&D_(v.hasNoDefaultLib,v.referencedFiles,v.typeReferenceDirectives,v.libReferenceDirectives)}function D_(v,Ze,_n,Zn){if(v){var $i=er.getTextPos();Ec('/// <reference no-default-lib="true"/>'),t&&t.sections.push({pos:$i,end:er.getTextPos(),kind:"no-default-lib"}),Wo()}if(Be&&Be.moduleName&&(Ec('/// <amd-module name="'.concat(Be.moduleName,'" />')),Wo()),Be&&Be.amdDependencies)for(var kt=0,Mt=Be.amdDependencies;kt<Mt.length;kt++){var wt=Mt[kt];wt.name?Ec('/// <amd-dependency name="'.concat(wt.name,'" path="').concat(wt.path,'" />')):Ec('/// <amd-dependency path="'.concat(wt.path,'" />')),Wo()}for(var Wa=0,Lo=Ze;Wa<Lo.length;Wa++){var Na=Lo[Wa],$i=er.getTextPos();Ec('/// <reference path="'.concat(Na.fileName,'" />')),t&&t.sections.push({pos:$i,end:er.getTextPos(),kind:"reference",data:Na.fileName}),Wo()}for(var Pc=0,Ba=_n;Pc<Ba.length;Pc++){var Na=Ba[Pc],$i=er.getTextPos(),ca=Na.resolutionMode&&Na.resolutionMode!==(Be==null?void 0:Be.impliedNodeFormat)?'resolution-mode="'.concat(Na.resolutionMode===e.ModuleKind.ESNext?"import":"require",'"'):"";Ec('/// <reference types="'.concat(Na.fileName,'" ').concat(ca,"/>")),t&&t.sections.push({pos:$i,end:er.getTextPos(),kind:Na.resolutionMode?Na.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:Na.fileName}),Wo()}for(var Bc=0,mu=Zn;Bc<mu.length;Bc++){var Na=mu[Bc],$i=er.getTextPos();Ec('/// <reference lib="'.concat(Na.fileName,'" />')),t&&t.sections.push({pos:$i,end:er.getTextPos(),kind:"lib",data:Na.fileName}),Wo()}}function Mu(v){var Ze=v.statements;Pl(v),e.forEach(v.statements,ks),gn(v);var _n=e.findIndex(Ze,function(Zn){return!e.isPrologueDirective(Zn)});wd(v),Fo(v,Ze,1,void 0,_n===-1?Ze.length:_n),nl(v)}function nf(v){var Ze=e.getEmitFlags(v);!(Ze&512)&&v.pos!==v.expression.pos&&tl(v.expression.pos),bn(v.expression),!(Ze&1024)&&v.end!==v.expression.end&&Au(v.expression.end)}function K_(v){sf(v,v.elements,528,void 0)}function b_(v,Ze,_n,Zn){for(var $i=!!Ze,kt=0;kt<v.length;kt++){var Mt=v[kt];if(e.isPrologueDirective(Mt)){var wt=_n?!_n.has(Mt.expression.text):!0;if(wt){$i&&($i=!1,_r(Ze)),Wo();var Wa=er.getTextPos();Vr(Mt),Zn&&t&&t.sections.push({pos:Wa,end:er.getTextPos(),kind:"prologue",data:Mt.expression.text}),_n&&_n.add(Mt.expression.text)}}else return kt}return v.length}function S_(v,Ze){for(var _n=0,Zn=v;_n<Zn.length;_n++){var $i=Zn[_n];if(!Ze.has($i.data)){Wo();var kt=er.getTextPos();Vr($i),t&&t.sections.push({pos:kt,end:er.getTextPos(),kind:"prologue",data:$i.data}),Ze&&Ze.add($i.data)}}}function xf(v){if(e.isSourceFile(v))b_(v.statements,v);else{for(var Ze=new e.Set,_n=0,Zn=v.prepends;_n<Zn.length;_n++){var $i=Zn[_n];S_($i.prologues,Ze)}for(var kt=0,Mt=v.sourceFiles;kt<Mt.length;kt++){var wt=Mt[kt];b_(wt.statements,wt,Ze,!0)}_r(void 0)}}function qf(v){for(var Ze=new e.Set,_n,Zn=0;Zn<v.sourceFiles.length;Zn++){for(var $i=v.sourceFiles[Zn],kt=void 0,Mt=0,wt=0,Wa=$i.statements;wt<Wa.length;wt++){var Lo=Wa[wt];if(!e.isPrologueDirective(Lo))break;Ze.has(Lo.expression.text)||(Ze.add(Lo.expression.text),(kt||(kt=[])).push({pos:Lo.pos,end:Lo.end,expression:{pos:Lo.expression.pos,end:Lo.expression.end,text:Lo.expression.text}}),Mt=Mt<Lo.end?Lo.end:Mt)}kt&&(_n||(_n=[])).push({file:Zn,text:$i.text.substring(0,Mt),directives:kt})}return _n}function tf(v){if(e.isSourceFile(v)||e.isUnparsedSource(v)){var Ze=e.getShebang(v.text);if(Ze)return Ec(Ze),Wo(),!0}else{for(var _n=0,Zn=v.prepends;_n<Zn.length;_n++){var $i=Zn[_n];if(e.Debug.assertNode($i,e.isUnparsedSource),tf($i))return!0}for(var kt=0,Mt=v.sourceFiles;kt<Mt.length;kt++){var wt=Mt[kt];if(tf(wt))return!0}}}function Q_(v,Ze){if(!!v){var _n=mr;mr=Ze,Vr(v),mr=_n}}function af(v,Ze){if(Ze==null?void 0:Ze.length){if(e.every(Ze,e.isModifier))return Tc(v,Ze);if(e.every(Ze,e.isDecorator))return Lu(v,Ze);u==null||u(Ze);for(var _n=void 0,Zn=void 0,$i=0,kt=0;$i<Ze.length;){for(;kt<Ze.length;){var Mt=Ze[kt];if(Zn=e.isDecorator(Mt)?"decorators":"modifiers",_n===void 0)_n=Zn;else if(Zn!==_n)break;kt++}var wt={pos:-1,end:-1};$i===0&&(wt.pos=Ze.pos),kt===Ze.length-1&&(wt.end=Ze.end),C_(Vr,v,Ze,_n==="modifiers"?2359808:2146305,void 0,$i,kt-$i,!1,wt),$i=kt,_n=Zn,kt++}A==null||A(Ze)}}function Tc(v,Ze){Fo(v,Ze,2359808)}function $u(v){v&&(wi(":"),ji(),Vr(v))}function of(v,Ze,_n,Zn){v&&(ji(),Gr(63,Ze,Hs,_n),ji(),bn(v,Zn))}function X_(v,Ze,_n,Zn){_n&&(Ze(v),Zn(_n))}function x_(v){v&&(ji(),Vr(v))}function Tu(v,Ze){v&&(ji(),bn(v,Ze))}function Cf(v){v&&(Vr(v),ji())}function el(v,Ze){e.isBlock(Ze)||e.getEmitFlags(v)&1?(ji(),Vr(Ze)):(Wo(),kc(),e.isEmptyStatement(Ze)?Ai(5,Ze):Vr(Ze),Vc())}function Lu(v,Ze){Fo(v,Ze,2146305)}function Ru(v,Ze){Fo(v,Ze,53776,We)}function Bu(v,Ze){if(e.isFunctionLike(v)&&v.typeArguments)return Ru(v,v.typeArguments);Fo(v,Ze,53776)}function Eu(v,Ze){Fo(v,Ze,2576)}function hp(v,Ze){var _n=e.singleOrUndefined(Ze);return _n&&_n.pos===v.pos&&e.isArrowFunction(v)&&!v.type&&!e.some(v.modifiers)&&!e.some(v.typeParameters)&&!e.some(_n.modifiers)&&!_n.dotDotDotToken&&!_n.questionToken&&!_n.type&&!_n.initializer&&e.isIdentifier(_n.name)}function Z_(v,Ze){hp(v,Ze)?Fo(v,Ze,2576&~2048):Eu(v,Ze)}function Od(v,Ze){Fo(v,Ze,8848)}function Y_(v){switch(v&60){case 0:break;case 16:wi(",");break;case 4:ji(),wi("|");break;case 32:ji(),wi("*"),ji();break;case 8:ji(),wi("&");break}}function Fo(v,Ze,_n,Zn,$i,kt){Fd(Vr,v,Ze,_n,Zn,$i,kt)}function sf(v,Ze,_n,Zn,$i,kt){Fd(bn,v,Ze,_n,Zn,$i,kt)}function Fd(v,Ze,_n,Zn,$i,kt,Mt){kt===void 0&&(kt=0),Mt===void 0&&(Mt=_n?_n.length-kt:0);var wt=_n===void 0;if(!(wt&&Zn&16384)){var Wa=_n===void 0||kt>=_n.length||Mt===0;if(Wa&&Zn&32768){u==null||u(_n),A==null||A(_n);return}Zn&15360&&(wi(H(Zn)),Wa&&_n&&tl(_n.pos,!0)),u==null||u(_n),Wa?Zn&1&&!(Se&&(!Ze||Be&&e.rangeIsOnSingleLine(Ze,Be)))?Wo():Zn&256&&!(Zn&524288)&&ji():C_(v,Ze,_n,Zn,$i,kt,Mt,_n.hasTrailingComma,_n),A==null||A(_n),Zn&15360&&(Wa&&_n&&Au(_n.end),wi(V(Zn)))}}function C_(v,Ze,_n,Zn,$i,kt,Mt,wt,Wa){var Lo=(Zn&262144)==0,Na=Lo,Pc=ml(Ze,_n[kt],Zn);Pc?(Wo(Pc),Na=!1):Zn&256&&ji(),Zn&128&&kc();for(var Ba=P(v,$i),ca,Bc,mu=!1,If=0;If<Mt;If++){var Nu=_n[kt+If];if(Zn&32)Wo(),Y_(Zn);else if(ca){Zn&60&&ca.end!==(Ze?Ze.end:-1)&&Au(ca.end),Y_(Zn),Sr(Bc);var P_=Hf(ca,Nu,Zn);P_>0?((Zn&(3|128))==0&&(kc(),mu=!0),Wo(P_),Na=!1):ca&&Zn&512&&ji()}if(Bc=je(Nu),Na){var Jd=e.getCommentRange(Nu);tl(Jd.pos)}else Na=Lo;Re=Nu.pos,Ba(Nu,v,$i,If),mu&&(Vc(),mu=!1),ca=Nu}var jd=ca?e.getEmitFlags(ca):0,Ll=cr||!!(jd&1024),sd=wt&&Zn&64&&Zn&16;sd&&(ca&&!Ll?Gr(27,ca.end,wi,ca):wi(",")),ca&&(Ze?Ze.end:-1)!==ca.end&&Zn&60&&!Ll&&Au(sd&&(Wa==null?void 0:Wa.end)?Wa.end:ca.end),Zn&128&&Vc(),Sr(Bc);var Ep=Kf(Ze,_n[kt+Mt-1],Zn,Wa);Ep?Wo(Ep):Zn&(2097152|256)&&ji()}function Gf(v){er.writeLiteral(v)}function Tf(v){er.writeStringLiteral(v)}function Md(v){er.write(v)}function ss(v,Ze){er.writeSymbol(v,Ze)}function wi(v){er.writePunctuation(v)}function Fs(){er.writeTrailingSemicolon(";")}function Kt(v){er.writeKeyword(v)}function Hs(v){er.writeOperator(v)}function $_(v){er.writeParameter(v)}function Ec(v){er.writeComment(v)}function ji(){er.writeSpace(" ")}function su(v){er.writeProperty(v)}function cu(v){er.nonEscapingWrite?er.nonEscapingWrite(v):er.write(v)}function Wo(v){v===void 0&&(v=1);for(var Ze=0;Ze<v;Ze++)er.writeLine(Ze>0)}function kc(){er.increaseIndent()}function Vc(){er.decreaseIndent()}function ed(v,Ze,_n,Zn){return kr?gl(v,_n,Ze):e_(Zn,v,_n,Ze,gl)}function ts(v,Ze){w&&w(v),Ze(e.tokenToString(v.kind)),z&&z(v)}function gl(v,Ze,_n){var Zn=e.tokenToString(v);return Ze(Zn),_n<0?_n:_n+Zn.length}function Ef(v,Ze,_n){if(e.getEmitFlags(v)&1)ji();else if(Se){var Zn=eu(v,Ze,_n);Zn?Wo(Zn):ji()}else Wo()}function T_(v){for(var Ze=v.split(/\r\n?|\n/g),_n=e.guessIndentation(Ze),Zn=0,$i=Ze;Zn<$i.length;Zn++){var kt=$i[Zn],Mt=_n?kt.slice(_n):kt;Mt.length&&(Wo(),mr(Mt))}}function rl(v,Ze){v?(kc(),Wo(v)):Ze&&ji()}function Ms(v,Ze){v&&Vc(),Ze&&Vc()}function ml(v,Ze,_n){if(_n&2||Se){if(_n&65536)return 1;if(Ze===void 0)return!v||Be&&e.rangeIsOnSingleLine(v,Be)?0:1;if(Ze.pos===Re||Ze.kind===11)return 0;if(Be&&v&&!e.positionIsSynthesized(v.pos)&&!e.nodeIsSynthesized(Ze)&&(!Ze.parent||e.getOriginalNode(Ze.parent)===e.getOriginalNode(v)))return Se?Nl(function(Zn){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Ze.pos,v.pos,Be,Zn)}):e.rangeStartPositionsAreOnSameLine(v,Ze,Be)?0:1;if(cf(Ze,_n))return 1}return _n&1?1:0}function Hf(v,Ze,_n){if(_n&2||Se){if(v===void 0||Ze===void 0||Ze.kind===11)return 0;if(Be&&!e.nodeIsSynthesized(v)&&!e.nodeIsSynthesized(Ze))return Se&&lu(v,Ze)?Nl(function(Zn){return e.getLinesBetweenRangeEndAndRangeStart(v,Ze,Be,Zn)}):!Se&&Yf(v,Ze)?e.rangeEndIsOnSameLineAsRangeStart(v,Ze,Be)?0:1:_n&65536?1:0;if(cf(v,_n)||cf(Ze,_n))return 1}else if(e.getStartsOnNewLine(Ze))return 1;return _n&1?1:0}function Kf(v,Ze,_n,Zn){if(_n&2||Se){if(_n&65536)return 1;if(Ze===void 0)return!v||Be&&e.rangeIsOnSingleLine(v,Be)?0:1;if(Be&&v&&!e.positionIsSynthesized(v.pos)&&!e.nodeIsSynthesized(Ze)&&(!Ze.parent||Ze.parent===v)){if(Se){var $i=Zn&&!e.positionIsSynthesized(Zn.end)?Zn.end:Ze.end;return Nl(function(kt){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter($i,v.end,Be,kt)})}return e.rangeEndPositionsAreOnSameLine(v,Ze,Be)?0:1}if(cf(Ze,_n))return 1}return _n&1&&!(_n&131072)?1:0}function Nl(v){e.Debug.assert(!!Se);var Ze=v(!0);return Ze===0?v(!1):Ze}function Dp(v,Ze){var _n=Se&&ml(Ze,v,0);return _n&&rl(_n,!1),!!_n}function Us(v,Ze){var _n=Se&&Kf(Ze,v,0,void 0);_n&&Wo(_n)}function cf(v,Ze){if(e.nodeIsSynthesized(v)){var _n=e.getStartsOnNewLine(v);return _n===void 0?(Ze&65536)!=0:_n}return(Ze&65536)!=0}function eu(v,Ze,_n){return e.getEmitFlags(v)&131072?0:(v=uf(v),Ze=uf(Ze),_n=uf(_n),e.getStartsOnNewLine(_n)?1:Be&&!e.nodeIsSynthesized(v)&&!e.nodeIsSynthesized(Ze)&&!e.nodeIsSynthesized(_n)?Se?Nl(function(Zn){return e.getLinesBetweenRangeEndAndRangeStart(Ze,_n,Be,Zn)}):e.rangeEndIsOnSameLineAsRangeStart(Ze,_n,Be)?0:1:0)}function Ld(v){return v.statements.length===0&&(!Be||e.rangeEndIsOnSameLineAsRangeStart(v,v,Be))}function uf(v){for(;v.kind===214&&e.nodeIsSynthesized(v);)v=v.expression;return v}function lf(v,Ze){if(e.isGeneratedIdentifier(v)||e.isGeneratedPrivateIdentifier(v))return ff(v);if(e.isStringLiteral(v)&&v.textSourceNode)return lf(v.textSourceNode,Ze);var _n=Be,Zn=!!_n&&!!v.parent&&!e.nodeIsSynthesized(v);if(e.isMemberName(v)){if(!Zn||e.getSourceFileOfNode(v)!==e.getOriginalNode(_n))return e.idText(v)}else if(e.Debug.assertNode(v,e.isLiteralExpression),!Zn)return v.text;return e.getSourceTextOfNodeFromSourceFile(_n,v,Ze)}function rd(v,Ze,_n){if(v.kind===10&&v.textSourceNode){var Zn=v.textSourceNode;if(e.isIdentifier(Zn)||e.isPrivateIdentifier(Zn)||e.isNumericLiteral(Zn)){var $i=e.isNumericLiteral(Zn)?Zn.text:lf(Zn);return _n?'"'.concat(e.escapeJsxAttributeString($i),'"'):Ze||e.getEmitFlags(v)&16777216?'"'.concat(e.escapeString($i),'"'):'"'.concat(e.escapeNonAsciiString($i),'"')}else return rd(Zn,Ze,_n)}var kt=(Ze?1:0)|(_n?2:0)|(N.terminateUnterminatedLiterals?4:0)|(N.target&&N.target===99?8:0);return e.getLiteralText(v,Be,kt)}function Pl(v){v&&e.getEmitFlags(v)&524288||(Y.push(d),d=0,Oe.push(be),be=0,Xe.push(Ne),Ne=void 0,j.push(Ce))}function nl(v){v&&e.getEmitFlags(v)&524288||(d=Y.pop(),be=Oe.pop(),Ne=Xe.pop(),Ce=j.pop())}function nd(v){(!Ce||Ce===e.lastOrUndefined(j))&&(Ce=new e.Set),Ce.add(v)}function ks(v){if(!!v)switch(v.kind){case 238:e.forEach(v.statements,ks);break;case 253:case 251:case 243:case 244:ks(v.statement);break;case 242:ks(v.thenStatement),ks(v.elseStatement);break;case 245:case 247:case 246:ks(v.initializer),ks(v.statement);break;case 252:ks(v.caseBlock);break;case 266:e.forEach(v.clauses,ks);break;case 292:case 293:e.forEach(v.statements,ks);break;case 255:ks(v.tryBlock),ks(v.catchClause),ks(v.finallyBlock);break;case 295:ks(v.variableDeclaration),ks(v.block);break;case 240:ks(v.declarationList);break;case 258:e.forEach(v.declarations,ks);break;case 257:case 166:case 205:case 260:Ls(v.name);break;case 259:Ls(v.name),e.getEmitFlags(v)&524288&&(e.forEach(v.parameters,ks),ks(v.body));break;case 203:case 204:e.forEach(v.elements,ks);break;case 269:ks(v.importClause);break;case 270:Ls(v.name),ks(v.namedBindings);break;case 271:Ls(v.name);break;case 277:Ls(v.name);break;case 272:e.forEach(v.elements,ks);break;case 273:Ls(v.propertyName||v.name);break}}function Ac(v){if(!!v)switch(v.kind){case 299:case 300:case 169:case 171:case 174:case 175:Ls(v.name);break}}function Ls(v){v&&(e.isGeneratedIdentifier(v)||e.isGeneratedPrivateIdentifier(v)?ff(v):e.isBindingPattern(v)&&ks(v))}function ff(v){if((v.autoGenerateFlags&7)==4)return E_(e.getNodeForGeneratedName(v),e.isPrivateIdentifier(v),v.autoGenerateFlags,v.autoGeneratePrefix,v.autoGenerateSuffix);var Ze=v.autoGenerateId;return Le[Ze]||(Le[Ze]=ko(v))}function E_(v,Ze,_n,Zn,$i){var kt=e.getNodeId(v);return Me[kt]||(Me[kt]=bp(v,Ze,_n!=null?_n:0,e.formatGeneratedNamePart(Zn,ff),e.formatGeneratedNamePart($i)))}function Ya(v){return zi(v)&&!Ae.has(v)&&!(Ce&&Ce.has(v))}function zi(v){return Be?e.isFileLevelUniqueName(Be,v,q):!0}function Nc(v,Ze){for(var _n=Ze;e.isNodeDescendantOf(_n,Ze);_n=_n.nextContainer)if(_n.locals){var Zn=_n.locals.get(e.escapeLeadingUnderscores(v));if(Zn&&Zn.flags&(111551|1048576|2097152))return!1}return!0}function Vp(v){var Ze;switch(v){case"":return d;case"#":return be;default:return(Ze=Ne==null?void 0:Ne.get(v))!==null&&Ze!==void 0?Ze:0}}function Qf(v,Ze){switch(v){case"":d=Ze;break;case"#":be=Ze;break;default:Ne!=null||(Ne=new e.Map),Ne.set(v,Ze);break}}function _f(v,Ze,_n,Zn,$i){Zn.length>0&&Zn.charCodeAt(0)===35&&(Zn=Zn.slice(1));var kt=e.formatGeneratedName(_n,Zn,"",$i),Mt=Vp(kt);if(v&&!(Mt&v)){var wt=v===268435456?"_i":"_n",Wa=e.formatGeneratedName(_n,Zn,wt,$i);if(Ya(Wa))return Mt|=v,Ze&&nd(Wa),Qf(kt,Mt),Wa}for(;;){var Lo=Mt&268435455;if(Mt++,Lo!==8&&Lo!==13){var wt=Lo<26?"_"+String.fromCharCode(97+Lo):"_"+(Lo-26),Wa=e.formatGeneratedName(_n,Zn,wt,$i);if(Ya(Wa))return Ze&&nd(Wa),Qf(kt,Mt),Wa}}}function vl(v,Ze,_n,Zn,$i,kt,Mt){if(Ze===void 0&&(Ze=Ya),v.length>0&&v.charCodeAt(0)===35&&(v=v.slice(1)),kt.length>0&&kt.charCodeAt(0)===35&&(kt=kt.slice(1)),_n){var wt=e.formatGeneratedName($i,kt,v,Mt);if(Ze(wt))return Zn?nd(wt):Ae.add(wt),wt}v.charCodeAt(v.length-1)!==95&&(v+="_");for(var Wa=1;;){var wt=e.formatGeneratedName($i,kt,v+Wa,Mt);if(Ze(wt))return Zn?nd(wt):Ae.add(wt),wt;Wa++}}function Xf(v){return vl(v,zi,!0,!1,!1,"","")}function ku(v){var Ze=lf(v.name);return Nc(Ze,v)?Ze:vl(Ze,Ya,!1,!1,!1,"","")}function il(v){var Ze=e.getExternalModuleName(v),_n=e.isStringLiteral(Ze)?e.makeIdentifierFromModuleName(Ze.text):"module";return vl(_n,Ya,!1,!1,!1,"","")}function Il(){return vl("default",Ya,!1,!1,!1,"","")}function kf(){return vl("class",Ya,!1,!1,!1,"","")}function qc(v,Ze,_n,Zn){return e.isIdentifier(v.name)?E_(v.name,Ze):_f(0,!1,Ze,_n,Zn)}function bp(v,Ze,_n,Zn,$i){switch(v.kind){case 79:case 80:return vl(lf(v),Ya,!!(_n&16),!!(_n&8),Ze,Zn,$i);case 264:case 263:return e.Debug.assert(!Zn&&!$i&&!Ze),ku(v);case 269:case 275:return e.Debug.assert(!Zn&&!$i&&!Ze),il(v);case 259:case 260:case 274:return e.Debug.assert(!Zn&&!$i&&!Ze),Il();case 228:return e.Debug.assert(!Zn&&!$i&&!Ze),kf();case 171:case 174:case 175:return qc(v,Ze,Zn,$i);case 164:return _f(0,!0,Ze,Zn,$i);default:return _f(0,!1,Ze,Zn,$i)}}function ko(v){var Ze=e.formatGeneratedNamePart(v.autoGeneratePrefix,ff),_n=e.formatGeneratedNamePart(v.autoGenerateSuffix);switch(v.autoGenerateFlags&7){case 1:return _f(0,!!(v.autoGenerateFlags&8),e.isPrivateIdentifier(v),Ze,_n);case 2:return e.Debug.assertNode(v,e.isIdentifier),_f(268435456,!!(v.autoGenerateFlags&8),!1,Ze,_n);case 3:return vl(e.idText(v),v.autoGenerateFlags&32?zi:Ya,!!(v.autoGenerateFlags&16),!!(v.autoGenerateFlags&8),e.isPrivateIdentifier(v),Ze,_n)}return e.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(e.Debug.formatEnum(v.autoGenerateFlags&7,e.GeneratedIdentifierFlags,!0),"."))}function Gc(v,Ze){var _n=gi(2,v,Ze),Zn=ve,$i=or,kt=Ee;Af(Ze),_n(v,Ze),uu(Ze,Zn,$i,kt)}function Af(v){var Ze=e.getEmitFlags(v),_n=e.getCommentRange(v);Nf(v,Ze,_n.pos,_n.end),Ze&2048&&(cr=!0)}function uu(v,Ze,_n,Zn){var $i=e.getEmitFlags(v),kt=e.getCommentRange(v);$i&2048&&(cr=!1),Zf(v,$i,kt.pos,kt.end,Ze,_n,Zn);var Mt=e.getTypeNode(v);Mt&&Zf(v,$i,Mt.pos,Mt.end,Ze,_n,Zn)}function Nf(v,Ze,_n,Zn){en(),xe=!1;var $i=_n<0||(Ze&512)!=0||v.kind===11,kt=Zn<0||(Ze&1024)!=0||v.kind===11;(_n>0||Zn>0)&&_n!==Zn&&($i||pu(_n,v.kind!==352),(!$i||_n>=0&&(Ze&512)!=0)&&(ve=_n),(!kt||Zn>=0&&(Ze&1024)!=0)&&(or=Zn,v.kind===258&&(Ee=Zn))),e.forEach(e.getSyntheticLeadingComments(v),wl),vn()}function Zf(v,Ze,_n,Zn,$i,kt,Mt){en();var wt=Zn<0||(Ze&1024)!=0||v.kind===11;e.forEach(e.getSyntheticTrailingComments(v),Sp),(_n>0||Zn>0)&&_n!==Zn&&(ve=$i,or=kt,Ee=Mt,!wt&&v.kind!==352&&xp(Zn)),vn()}function wl(v){(v.hasLeadingNewline||v.kind===2)&&er.writeLine(),Hc(v),v.hasTrailingNewLine||v.kind===2?er.writeLine():er.writeSpace(" ")}function Sp(v){er.isAtStartOfLine()||er.writeSpace(" "),Hc(v),v.hasTrailingNewLine&&er.writeLine()}function Hc(v){var Ze=Yo(v),_n=v.kind===3?e.computeLineStarts(Ze):void 0;e.writeCommentRange(Ze,_n,er,0,Ze.length,ge)}function Yo(v){return v.kind===3?"/*".concat(v.text,"*/"):"//".concat(v.text)}function Rd(v,Ze,_n){en();var Zn=Ze.pos,$i=Ze.end,kt=e.getEmitFlags(v),Mt=Zn<0||(kt&512)!=0,wt=cr||$i<0||(kt&1024)!=0;Mt||ru(Ze),vn(),kt&2048&&!cr?(cr=!0,_n(v),cr=!1):_n(v),en(),wt||(pu(Ze.end,!0),xe&&!er.isAtStartOfLine()&&er.writeLine()),vn()}function Yf(v,Ze){return v=e.getOriginalNode(v),v.parent&&v.parent===e.getOriginalNode(Ze).parent}function lu(v,Ze){if(Ze.pos<v.end)return!1;v=e.getOriginalNode(v),Ze=e.getOriginalNode(Ze);var _n=v.parent;if(!_n||_n!==Ze.parent)return!1;var Zn=e.getContainingNodeArray(v),$i=Zn==null?void 0:Zn.indexOf(v);return $i!==void 0&&$i>-1&&Zn.indexOf(Ze)===$i+1}function pu(v,Ze){xe=!1,Ze?v===0&&(Be==null?void 0:Be.isDeclarationFile)?gu(v,id):gu(v,Ol):v===0&&gu(v,k_)}function k_(v,Ze,_n,Zn,$i){Ml(v,Ze)&&Ol(v,Ze,_n,Zn,$i)}function id(v,Ze,_n,Zn,$i){Ml(v,Ze)||Ol(v,Ze,_n,Zn,$i)}function Pf(v,Ze){return N.onlyPrintJsDocStyle?e.isJSDocLikeText(v,Ze)||e.isPinnedComment(v,Ze):!0}function Ol(v,Ze,_n,Zn,$i){!Be||!Pf(Be.text,v)||(xe||(e.emitNewLineBeforeLeadingCommentOfPosition(fn(),er,$i,v),xe=!0),yc(v),e.writeCommentRange(Be.text,fn(),er,v,Ze,ge),yc(Ze),Zn?er.writeLine():_n===3&&er.writeSpace(" "))}function Au(v){cr||v===-1||pu(v,!0)}function xp(v){td(v,Fl)}function Fl(v,Ze,_n,Zn){!Be||!Pf(Be.text,v)||(er.isAtStartOfLine()||er.writeSpace(" "),yc(v),e.writeCommentRange(Be.text,fn(),er,v,Ze,ge),yc(Ze),Zn&&er.writeLine())}function tl(v,Ze,_n){cr||(en(),td(v,Ze?Fl:_n?$f:Cp),vn())}function $f(v,Ze,_n){!Be||(yc(v),e.writeCommentRange(Be.text,fn(),er,v,Ze,ge),yc(Ze),_n===2&&er.writeLine())}function Cp(v,Ze,_n,Zn){!Be||(yc(v),e.writeCommentRange(Be.text,fn(),er,v,Ze,ge),yc(Ze),Zn?er.writeLine():er.writeSpace(" "))}function gu(v,Ze){Be&&(ve===-1||v!==ve)&&(qp(v)?Xt(Ze):e.forEachLeadingCommentRange(Be.text,v,Ze,v))}function td(v,Ze){Be&&(or===-1||v!==or&&v!==Ee)&&e.forEachTrailingCommentRange(Be.text,v,Ze)}function qp(v){return Ar!==void 0&&e.last(Ar).nodePos===v}function Xt(v){if(!!Be){var Ze=e.last(Ar).detachedCommentEndPos;Ar.length-1?Ar.pop():Ar=void 0,e.forEachLeadingCommentRange(Be.text,Ze,v,Ze)}}function ru(v){var Ze=Be&&e.emitDetachedComments(Be.text,fn(),er,Oi,v,ge,cr);Ze&&(Ar?Ar.push(Ze):Ar=[Ze])}function Oi(v,Ze,_n,Zn,$i,kt){!Be||!Pf(Be.text,Zn)||(yc(Zn),e.writeCommentRange(v,Ze,_n,Zn,$i,kt),yc($i))}function Ml(v,Ze){return!!Be&&e.isRecognizedTripleSlashComment(Be.text,v,Ze)}function ad(v){return v.parsedSourceMap===void 0&&v.sourceMapText!==void 0&&(v.parsedSourceMap=e.tryParseRawSourceMap(v.sourceMapText)||!1),v.parsedSourceMap||void 0}function al(v,Ze){var _n=gi(3,v,Ze);Ju(Ze),_n(v,Ze),od(Ze)}function Ju(v){var Ze=e.getEmitFlags(v),_n=e.getSourceMapRange(v);if(e.isUnparsedNode(v)){e.Debug.assertIsDefined(v.parent,"UnparsedNodes must have parent pointers");var Zn=ad(v.parent);Zn&&Ur&&Ur.appendSourceMap(er.getLine(),er.getColumn(),Zn,v.parent.sourceMapPath,v.parent.getLineAndCharacterOfPosition(v.pos),v.parent.getLineAndCharacterOfPosition(v.end))}else{var $i=_n.source||Cr;v.kind!==352&&(Ze&16)==0&&_n.pos>=0&&A_(_n.source||Cr,Bd($i,_n.pos)),Ze&64&&(kr=!0)}}function od(v){var Ze=e.getEmitFlags(v),_n=e.getSourceMapRange(v);e.isUnparsedNode(v)||(Ze&64&&(kr=!1),v.kind!==352&&(Ze&32)==0&&_n.end>=0&&A_(_n.source||Cr,_n.end))}function Bd(v,Ze){return v.skipTrivia?v.skipTrivia(Ze):e.skipTrivia(v.text,Ze)}function yc(v){if(!(kr||e.positionIsSynthesized(v)||r_(Cr))){var Ze=e.getLineAndCharacterOfPosition(Cr,v),_n=Ze.line,Zn=Ze.character;Ur.addMapping(er.getLine(),er.getColumn(),rn,_n,Zn,void 0)}}function A_(v,Ze){if(v!==Cr){var _n=Cr,Zn=rn;N_(v),yc(Ze),Tp(_n,Zn)}else yc(Ze)}function e_(v,Ze,_n,Zn,$i){if(kr||v&&e.isInJsonFile(v))return $i(Ze,_n,Zn);var kt=v&&v.emitNode,Mt=kt&&kt.flags||0,wt=kt&&kt.tokenSourceMapRanges&&kt.tokenSourceMapRanges[Ze],Wa=wt&&wt.source||Cr;return Zn=Bd(Wa,wt?wt.pos:Zn),(Mt&128)==0&&Zn>=0&&A_(Wa,Zn),Zn=$i(Ze,_n,Zn),wt&&(Zn=wt.end),(Mt&256)==0&&Zn>=0&&A_(Wa,Zn),Zn}function N_(v){if(!kr){if(Cr=v,v===Br){rn=pn;return}r_(v)||(rn=Ur.addSource(v.fileName),N.inlineSources&&Ur.setSourceContent(rn,v.text),Br=v,pn=rn)}}function Tp(v,Ze){Cr=v,rn=Ze}function r_(v){return e.fileExtensionIs(v.fileName,".json")}}e.createPrinter=X;function M(){var N=[];return N[1024]=["{","}"],N[2048]=["(",")"],N[4096]=["<",">"],N[8192]=["[","]"],N}function H(N){return o[N&15360][0]}function V(N){return o[N&15360][1]}var h;(function(N){N[N.Auto=0]="Auto",N[N.CountMask=268435455]="CountMask",N[N._i=268435456]="_i"})(h||(h={}));function F(N,J,q,G){J(N)}function $(N,J,q,G){J(N,q.select(G))}function L(N,J,q,G){J(N,q)}function P(N,J){return N.length===1?F:typeof J=="object"?$:L}})(fr||(fr={}));var fr;(function(e){function o(E,I,f){if(!E.getDirectories||!E.readDirectory)return;var m=new e.Map,y=e.createGetCanonicalFileName(f);return{useCaseSensitiveFileNames:f,fileExists:V,readFile:function(ye,b){return E.readFile(ye,b)},directoryExists:E.directoryExists&&h,getDirectories:$,readDirectory:L,createDirectory:E.createDirectory&&F,writeFile:E.writeFile&&H,addOrDeleteFileOrDirectory:N,addOrDeleteFile:J,clearCache:G,realpath:E.realpath&&P};function S(ye){return e.toPath(ye,I,y)}function k(ye){return m.get(e.ensureTrailingDirectorySeparator(ye))}function C(ye){var b=k(e.getDirectoryPath(ye));return b&&(b.sortedAndCanonicalizedFiles||(b.sortedAndCanonicalizedFiles=b.files.map(y).sort(),b.sortedAndCanonicalizedDirectories=b.directories.map(y).sort()),b)}function me(ye){return e.getBaseFileName(e.normalizePath(ye))}function De(ye,b){var x;if(!E.realpath||e.ensureTrailingDirectorySeparator(S(E.realpath(ye)))===b){var T={files:e.map(E.readDirectory(ye,void 0,void 0,["*.*"]),me)||[],directories:E.getDirectories(ye)||[]};return m.set(e.ensureTrailingDirectorySeparator(b),T),T}if((x=E.directoryExists)===null||x===void 0?void 0:x.call(E,ye))return m.set(b,!1),!1}function X(ye,b){b=e.ensureTrailingDirectorySeparator(b);var x=k(b);if(x)return x;try{return De(ye,b)}catch(T){e.Debug.assert(!m.has(e.ensureTrailingDirectorySeparator(b)));return}}function M(ye,b){var x=e.binarySearch(ye,b,e.identity,e.compareStringsCaseSensitive);return x>=0}function H(ye,b,x){var T=S(ye),Z=C(T);return Z&&q(Z,me(ye),!0),E.writeFile(ye,b,x)}function V(ye){var b=S(ye),x=C(b);return x&&M(x.sortedAndCanonicalizedFiles,y(me(ye)))||E.fileExists(ye)}function h(ye){var b=S(ye);return m.has(e.ensureTrailingDirectorySeparator(b))||E.directoryExists(ye)}function F(ye){var b=S(ye),x=C(b);if(x){var T=me(ye),Z=y(T),B=x.sortedAndCanonicalizedDirectories;e.insertSorted(B,Z,e.compareStringsCaseSensitive)&&x.directories.push(T)}E.createDirectory(ye)}function $(ye){var b=S(ye),x=X(ye,b);return x?x.directories.slice():E.getDirectories(ye)}function L(ye,b,x,T,Z){var B=S(ye),u=X(ye,B),A;if(u!==void 0)return e.matchFiles(ye,b,x,T,f,I,Z,w,P);return E.readDirectory(ye,b,x,T,Z);function w(U){var ge=S(U);if(ge===B)return u||z(U,ge);var pe=X(U,ge);return pe!==void 0?pe||z(U,ge):e.emptyFileSystemEntries}function z(U,ge){if(A&&ge===B)return A;var pe={files:e.map(E.readDirectory(U,void 0,void 0,["*.*"]),me)||e.emptyArray,directories:E.getDirectories(U)||e.emptyArray};return ge===B&&(A=pe),pe}}function P(ye){return E.realpath?E.realpath(ye):ye}function N(ye,b){var x=k(b);if(x!==void 0){G();return}var T=C(b);if(!!T){if(!E.directoryExists){G();return}var Z=me(ye),B={fileExists:E.fileExists(b),directoryExists:E.directoryExists(b)};return B.directoryExists||M(T.sortedAndCanonicalizedDirectories,y(Z))?G():q(T,Z,B.fileExists),B}}function J(ye,b,x){if(x!==e.FileWatcherEventKind.Changed){var T=C(b);T&&q(T,me(ye),x===e.FileWatcherEventKind.Created)}}function q(ye,b,x){var T=ye.sortedAndCanonicalizedFiles,Z=y(b);if(x)e.insertSorted(T,Z,e.compareStringsCaseSensitive)&&ye.files.push(b);else{var B=e.binarySearch(T,Z,e.identity,e.compareStringsCaseSensitive);if(B>=0){T.splice(B,1);var u=ye.files.findIndex(function(A){return y(A)===Z});ye.files.splice(u,1)}}}function G(){m.clear()}}e.createCachedDirectoryStructureHost=o;var ne;(function(E){E[E.None=0]="None",E[E.Partial=1]="Partial",E[E.Full=2]="Full"})(ne=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function K(E,I,f,m,y){var S,k=e.arrayToMap(((S=I==null?void 0:I.configFile)===null||S===void 0?void 0:S.extendedSourceFiles)||e.emptyArray,y);f.forEach(function(C,me){k.has(me)||(C.projects.delete(E),C.close())}),k.forEach(function(C,me){var De=f.get(me);De?De.projects.add(E):f.set(me,{projects:new e.Set([E]),watcher:m(C,me),close:function(){var X=f.get(me);!X||X.projects.size!==0||(X.watcher.close(),f.delete(me))}})})}e.updateSharedExtendedConfigFileWatcher=K;function se(E,I){I.forEach(function(f){f.projects.delete(E)&&f.close()})}e.clearSharedExtendedConfigFileWatcher=se;function O(E,I,f){!E.delete(I)||E.forEach(function(m,y){var S,k=m.extendedResult;((S=k.extendedSourceFiles)===null||S===void 0?void 0:S.some(function(C){return f(C)===I}))&&O(E,y,f)})}e.cleanExtendedConfigCache=O;function ie(E,I,f){var m=new e.Map(E);e.mutateMap(I,m,{createNewValue:f,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=ie;function _e(E,I,f){var m=E.getMissingFilePaths(),y=e.arrayToMap(m,e.identity,e.returnTrue);e.mutateMap(I,y,{createNewValue:f,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=_e;function Q(E,I,f){e.mutateMap(E,I,{createNewValue:m,onDeleteValue:ae,onExistingValue:y});function m(S,k){return{watcher:f(S,k),flags:k}}function y(S,k,C){S.flags!==k&&(S.watcher.close(),E.set(C,m(C,k)))}}e.updateWatchingWildcardDirectories=Q;function p(E){var I=E.watchedDirPath,f=E.fileOrDirectory,m=E.fileOrDirectoryPath,y=E.configFileName,S=E.options,k=E.program,C=E.extraFileExtensions,me=E.currentDirectory,De=E.useCaseSensitiveFileNames,X=E.writeLog,M=E.toPath,H=e.removeIgnoredPath(m);if(!H)return X("Project: ".concat(y," Detected ignored path: ").concat(f)),!0;if(m=H,m===I)return!1;if(e.hasExtension(m)&&!e.isSupportedSourceFileName(f,S,C))return X("Project: ".concat(y," Detected file add/remove of non supported extension: ").concat(f)),!0;if(e.isExcludedFile(f,S.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(y),me),De,me))return X("Project: ".concat(y," Detected excluded file: ").concat(f)),!0;if(!k||e.outFile(S)||S.outDir)return!1;if(e.isDeclarationFileName(m)){if(S.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(m,e.supportedJSExtensionsFlat))return!1;var V=e.removeFileExtension(m),h=e.isArray(k)?void 0:D(k)?k.getProgramOrUndefined():k,F=!h&&!e.isArray(k)?k:void 0;if($(V+".ts")||$(V+".tsx"))return X("Project: ".concat(y," Detected output file: ").concat(f)),!0;return!1;function $(L){return h?!!h.getSourceFileByPath(L):F?F.getState().fileInfos.has(L):!!e.find(k,function(P){return M(P)===L})}}e.isIgnoredFileFromWildCardWatching=p;function D(E){return!!E.getState}function le(E,I){return E?E.isEmittedFile(I):!1}e.isEmittedFileOfProgram=le;var de;(function(E){E[E.None=0]="None",E[E.TriggerOnly=1]="TriggerOnly",E[E.Verbose=2]="Verbose"})(de=e.WatchLogLevel||(e.WatchLogLevel={}));function te(E,I,f,m){e.setSysLog(I===de.Verbose?f:e.noop);var y={watchFile:function(F,$,L,P){return E.watchFile(F,$,L,P)},watchDirectory:function(F,$,L,P){return E.watchDirectory(F,$,(L&1)!=0,P)}},S=I!==de.None?{watchFile:V("watchFile"),watchDirectory:V("watchDirectory")}:void 0,k=I===de.Verbose?{watchFile:M,watchDirectory:H}:S||y,C=I===de.Verbose?X:e.returnNoopFileWatcher;return{watchFile:me("watchFile"),watchDirectory:me("watchDirectory")};function me(F){return function($,L,P,N,J,q){var G;return e.matchesExclude($,F==="watchFile"?N==null?void 0:N.excludeFiles:N==null?void 0:N.excludeDirectories,De(),((G=E.getCurrentDirectory)===null||G===void 0?void 0:G.call(E))||"")?C($,P,N,J,q):k[F].call(void 0,$,L,P,N,J,q)}}function De(){return typeof E.useCaseSensitiveFileNames=="boolean"?E.useCaseSensitiveFileNames:E.useCaseSensitiveFileNames()}function X(F,$,L,P,N){return f("ExcludeWatcher:: Added:: ".concat(h(F,$,L,P,N,m))),{close:function(){return f("ExcludeWatcher:: Close:: ".concat(h(F,$,L,P,N,m)))}}}function M(F,$,L,P,N,J){f("FileWatcher:: Added:: ".concat(h(F,L,P,N,J,m)));var q=S.watchFile(F,$,L,P,N,J);return{close:function(){f("FileWatcher:: Close:: ".concat(h(F,L,P,N,J,m))),q.close()}}}function H(F,$,L,P,N,J){var q="DirectoryWatcher:: Added:: ".concat(h(F,L,P,N,J,m));f(q);var G=e.timestamp(),ye=S.watchDirectory(F,$,L,P,N,J),b=e.timestamp()-G;return f("Elapsed:: ".concat(b,"ms ").concat(q)),{close:function(){var x="DirectoryWatcher:: Close:: ".concat(h(F,L,P,N,J,m));f(x);var T=e.timestamp();ye.close();var Z=e.timestamp()-T;f("Elapsed:: ".concat(Z,"ms ").concat(x))}}}function V(F){return function($,L,P,N,J,q){return y[F].call(void 0,$,function(){for(var G=[],ye=0;ye<arguments.length;ye++)G[ye]=arguments[ye];var b="".concat(F==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(G[0]," ").concat(G[1]!==void 0?G[1]:"",":: ").concat(h($,P,N,J,q,m));f(b);var x=e.timestamp();L.call.apply(L,zn([void 0],G,!1));var T=e.timestamp()-x;f("Elapsed:: ".concat(T,"ms ").concat(b))},P,N,J,q)}}function h(F,$,L,P,N,J){return"WatchInfo: ".concat(F," ").concat($," ").concat(JSON.stringify(L)," ").concat(J?J(P,N):N===void 0?P:"".concat(P," ").concat(N))}}e.getWatchFactory=te;function oe(E){var I=E==null?void 0:E.fallbackPolling;return{watchFile:I!==void 0?I:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=oe;function ae(E){E.watcher.close()}e.closeFileWatcherOf=ae})(fr||(fr={}));var fr;(function(e){function o(pe,He,Be){return Be===void 0&&(Be="tsconfig.json"),e.forEachAncestorDirectory(pe,function(Me){var Le=e.combinePaths(Me,Be);return He(Le)?Le:void 0})}e.findConfigFile=o;function ne(pe,He){var Be=e.getDirectoryPath(He),Me=e.isRootedDiskPath(pe)?pe:e.combinePaths(Be,pe);return e.normalizePath(Me)}e.resolveTripleslashReference=ne;function K(pe,He,Be){var Me,Le=e.forEach(pe,function(Ae){var Xe=e.getNormalizedPathComponents(Ae,He);if(Xe.pop(),!Me){Me=Xe;return}for(var Ne=Math.min(Me.length,Xe.length),Oe=0;Oe<Ne;Oe++)if(Be(Me[Oe])!==Be(Xe[Oe])){if(Oe===0)return!0;Me.length=Oe;break}Xe.length<Me.length&&(Me.length=Xe.length)});return Le?"":Me?e.getPathFromPathComponents(Me):He}e.computeCommonSourceDirectoryOfFilenames=K;function se(pe,He){return O(pe,He)}e.createCompilerHost=se;function O(pe,He,Be){Be===void 0&&(Be=e.sys);var Me=new e.Map,Le=e.createGetCanonicalFileName(Be.useCaseSensitiveFileNames);function Ae(j,Ce,Se){var Re;try{e.performance.mark("beforeIORead"),Re=d.readFile(j),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(er){Se&&Se(er.message),Re=""}return Re!==void 0?e.createSourceFile(j,Re,Ce,He):void 0}function Xe(j){return Me.has(j)?!0:(d.directoryExists||Be.directoryExists)(j)?(Me.set(j,!0),!0):!1}function Ne(j,Ce,Se,Re){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(j,Ce,Se,function(er,wr,mr){return Be.writeFile(er,wr,mr)},function(er){return(d.createDirectory||Be.createDirectory)(er)},function(er){return Xe(er)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(er){Re&&Re(er.message)}}function Oe(){return e.getDirectoryPath(e.normalizePath(Be.getExecutingFilePath()))}var be=e.getNewLineCharacter(pe,function(){return Be.newLine}),Y=Be.realpath&&function(j){return Be.realpath(j)},d={getSourceFile:Ae,getDefaultLibLocation:Oe,getDefaultLibFileName:function(j){return e.combinePaths(Oe(),e.getDefaultLibFileName(j))},writeFile:Ne,getCurrentDirectory:e.memoize(function(){return Be.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return Be.useCaseSensitiveFileNames},getCanonicalFileName:Le,getNewLine:function(){return be},fileExists:function(j){return Be.fileExists(j)},readFile:function(j){return Be.readFile(j)},trace:function(j){return Be.write(j+be)},directoryExists:function(j){return Be.directoryExists(j)},getEnvironmentVariable:function(j){return Be.getEnvironmentVariable?Be.getEnvironmentVariable(j):""},getDirectories:function(j){return Be.getDirectories(j)},realpath:Y,readDirectory:function(j,Ce,Se,Re,er){return Be.readDirectory(j,Ce,Se,Re,er)},createDirectory:function(j){return Be.createDirectory(j)},createHash:e.maybeBind(Be,Be.createHash)};return d}e.createCompilerHostWorker=O;function ie(pe,He,Be){var Me=pe.readFile,Le=pe.fileExists,Ae=pe.directoryExists,Xe=pe.createDirectory,Ne=pe.writeFile,Oe=new e.Map,be=new e.Map,Y=new e.Map,d=new e.Map,j=function(Re){var er=He(Re),wr=Oe.get(er);return wr!==void 0?wr!==!1?wr:void 0:Ce(er,Re)},Ce=function(Re,er){var wr=Me.call(pe,er);return Oe.set(Re,wr!==void 0?wr:!1),wr};pe.readFile=function(Re){var er=He(Re),wr=Oe.get(er);return wr!==void 0?wr!==!1?wr:void 0:!e.fileExtensionIs(Re,".json")&&!e.isBuildInfoFile(Re)?Me.call(pe,Re):Ce(er,Re)};var Se=Be?function(Re,er,wr,mr){var Ue=He(Re),t=typeof er=="object"?er.impliedNodeFormat:void 0,qr=d.get(t),ln=qr==null?void 0:qr.get(Ue);if(ln)return ln;var dr=Be(Re,er,wr,mr);return dr&&(e.isDeclarationFileName(Re)||e.fileExtensionIs(Re,".json"))&&d.set(t,(qr||new e.Map).set(Ue,dr)),dr}:void 0;return pe.fileExists=function(Re){var er=He(Re),wr=be.get(er);if(wr!==void 0)return wr;var mr=Le.call(pe,Re);return be.set(er,!!mr),mr},Ne&&(pe.writeFile=function(Re,er){for(var wr=[],mr=2;mr<arguments.length;mr++)wr[mr-2]=arguments[mr];var Ue=He(Re);be.delete(Ue);var t=Oe.get(Ue);t!==void 0&&t!==er?(Oe.delete(Ue),d.forEach(function(qr){return qr.delete(Ue)})):Se&&d.forEach(function(qr){var ln=qr.get(Ue);ln&&ln.text!==er&&qr.delete(Ue)}),Ne.call.apply(Ne,zn([pe,Re,er],wr,!1))}),Ae&&(pe.directoryExists=function(Re){var er=He(Re),wr=Y.get(er);if(wr!==void 0)return wr;var mr=Ae.call(pe,Re);return Y.set(er,!!mr),mr},Xe&&(pe.createDirectory=function(Re){var er=He(Re);Y.delete(er),Xe.call(pe,Re)})),{originalReadFile:Me,originalFileExists:Le,originalDirectoryExists:Ae,originalCreateDirectory:Xe,originalWriteFile:Ne,getSourceFileWithCache:Se,readFileWithCache:j}}e.changeCompilerHostLikeToUseCache=ie;function _e(pe,He,Be){var Me;return Me=e.addRange(Me,pe.getConfigFileParsingDiagnostics()),Me=e.addRange(Me,pe.getOptionsDiagnostics(Be)),Me=e.addRange(Me,pe.getSyntacticDiagnostics(He,Be)),Me=e.addRange(Me,pe.getGlobalDiagnostics(Be)),Me=e.addRange(Me,pe.getSemanticDiagnostics(He,Be)),e.getEmitDeclarations(pe.getCompilerOptions())&&(Me=e.addRange(Me,pe.getDeclarationDiagnostics(He,Be))),e.sortAndDeduplicateDiagnostics(Me||e.emptyArray)}e.getPreEmitDiagnostics=_e;function Q(pe,He){for(var Be="",Me=0,Le=pe;Me<Le.length;Me++){var Ae=Le[Me];Be+=p(Ae,He)}return Be}e.formatDiagnostics=Q;function p(pe,He){var Be="".concat(e.diagnosticCategoryName(pe)," TS").concat(pe.code,": ").concat(k(pe.messageText,He.getNewLine())).concat(He.getNewLine());if(pe.file){var Me=e.getLineAndCharacterOfPosition(pe.file,pe.start),Le=Me.line,Ae=Me.character,Xe=pe.file.fileName,Ne=e.convertToRelativePath(Xe,He.getCurrentDirectory(),function(Oe){return He.getCanonicalFileName(Oe)});return"".concat(Ne,"(").concat(Le+1,",").concat(Ae+1,"): ")+Be}return Be}e.formatDiagnostic=p;var D;(function(pe){pe.Grey="",pe.Red="",pe.Yellow="",pe.Blue="",pe.Cyan=""})(D=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var le="",de=" ",te="",oe="...",ae=" ",E=" ";function I(pe){switch(pe){case e.DiagnosticCategory.Error:return D.Red;case e.DiagnosticCategory.Warning:return D.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return D.Blue}}function f(pe,He){return He+pe+te}e.formatColorAndReset=f;function m(pe,He,Be,Me,Le,Ae){var Xe=e.getLineAndCharacterOfPosition(pe,He),Ne=Xe.line,Oe=Xe.character,be=e.getLineAndCharacterOfPosition(pe,He+Be),Y=be.line,d=be.character,j=e.getLineAndCharacterOfPosition(pe,pe.text.length).line,Ce=Y-Ne>=4,Se=(Y+1+"").length;Ce&&(Se=Math.max(oe.length,Se));for(var Re="",er=Ne;er<=Y;er++){Re+=Ae.getNewLine(),Ce&&Ne+1<er&&er<Y-1&&(Re+=Me+f(e.padLeft(oe,Se),le)+de+Ae.getNewLine(),er=Y-1);var wr=e.getPositionOfLineAndCharacter(pe,er,0),mr=er<j?e.getPositionOfLineAndCharacter(pe,er+1,0):pe.text.length,Ue=pe.text.slice(wr,mr);if(Ue=e.trimStringEnd(Ue),Ue=Ue.replace(/\t/g," "),Re+=Me+f(e.padLeft(er+1+"",Se),le)+de,Re+=Ue+Ae.getNewLine(),Re+=Me+f(e.padLeft("",Se),le)+de,Re+=Le,er===Ne){var t=er===Y?d:void 0;Re+=Ue.slice(0,Oe).replace(/\S/g," "),Re+=Ue.slice(Oe,t).replace(/./g,"~")}else er===Y?Re+=Ue.slice(0,d).replace(/./g,"~"):Re+=Ue.replace(/./g,"~");Re+=te}return Re}function y(pe,He,Be,Me){Me===void 0&&(Me=f);var Le=e.getLineAndCharacterOfPosition(pe,He),Ae=Le.line,Xe=Le.character,Ne=Be?e.convertToRelativePath(pe.fileName,Be.getCurrentDirectory(),function(be){return Be.getCanonicalFileName(be)}):pe.fileName,Oe="";return Oe+=Me(Ne,D.Cyan),Oe+=":",Oe+=Me("".concat(Ae+1),D.Yellow),Oe+=":",Oe+=Me("".concat(Xe+1),D.Yellow),Oe}e.formatLocation=y;function S(pe,He){for(var Be="",Me=0,Le=pe;Me<Le.length;Me++){var Ae=Le[Me];if(Ae.file){var Xe=Ae.file,Ne=Ae.start;Be+=y(Xe,Ne,He),Be+=" - "}if(Be+=f(e.diagnosticCategoryName(Ae),I(Ae.category)),Be+=f(" TS".concat(Ae.code,": "),D.Grey),Be+=k(Ae.messageText,He.getNewLine()),Ae.file&&(Be+=He.getNewLine(),Be+=m(Ae.file,Ae.start,Ae.length,"",I(Ae.category),He)),Ae.relatedInformation){Be+=He.getNewLine();for(var Oe=0,be=Ae.relatedInformation;Oe<be.length;Oe++){var Y=be[Oe],Xe=Y.file,Ne=Y.start,d=Y.length,j=Y.messageText;Xe&&(Be+=He.getNewLine(),Be+=ae+y(Xe,Ne,He),Be+=m(Xe,Ne,d,E,D.Cyan,He)),Be+=He.getNewLine(),Be+=E+k(j,He.getNewLine())}}Be+=He.getNewLine()}return Be}e.formatDiagnosticsWithColorAndContext=S;function k(pe,He,Be){if(Be===void 0&&(Be=0),e.isString(pe))return pe;if(pe===void 0)return"";var Me="";if(Be){Me+=He;for(var Le=0;Le<Be;Le++)Me+=" "}if(Me+=pe.messageText,Be++,pe.next)for(var Ae=0,Xe=pe.next;Ae<Xe.length;Ae++){var Ne=Xe[Ae];Me+=k(Ne,He,Be)}return Me}e.flattenDiagnosticMessageText=k;function C(pe,He,Be,Me,Le){if(pe.length===0)return[];for(var Ae=[],Xe=new e.Map,Ne=0,Oe=pe;Ne<Oe.length;Ne++){var be=Oe[Ne],Y=void 0,d=me(be,Me),j=e.isString(be)?be:be.fileName.toLowerCase(),Ce=d!==void 0?"".concat(d,"|").concat(j):j;Xe.has(Ce)?Y=Xe.get(Ce):Xe.set(Ce,Y=Le(j,He,Be,d)),Ae.push(Y)}return Ae}e.loadWithTypeDirectiveCache=C;function me(pe,He){return(e.isString(pe)?He:pe.resolutionMode)||He}e.getModeForFileReference=me;function De(pe,He){if(pe.impliedNodeFormat!==void 0)return M(pe,ge(pe,He))}e.getModeForResolutionAtIndex=De;function X(pe){var He;return e.isExportDeclaration(pe)?pe.isTypeOnly:!!((He=pe.importClause)===null||He===void 0?void 0:He.isTypeOnly)}e.isExclusivelyTypeOnlyImportOrExport=X;function M(pe,He){var Be,Me;if(pe.impliedNodeFormat!==void 0){if(e.isImportDeclaration(He.parent)||e.isExportDeclaration(He.parent)){var Le=X(He.parent);if(Le){var Ae=H(He.parent.assertClause);if(Ae)return Ae}}if(He.parent.parent&&e.isImportTypeNode(He.parent.parent)){var Ae=H((Be=He.parent.parent.assertions)===null||Be===void 0?void 0:Be.assertClause);if(Ae)return Ae}if(pe.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(He.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var Xe=(Me=e.walkUpParenthesizedExpressions(He.parent))===null||Me===void 0?void 0:Me.parent;return Xe&&e.isImportEqualsDeclaration(Xe)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=M;function H(pe,He){if(!!pe){if(e.length(pe.elements)!==1){He==null||He(pe,e.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}var Be=pe.elements[0];if(!!e.isStringLiteralLike(Be.name)){if(Be.name.text!=="resolution-mode"){He==null||He(Be.name,e.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(!!e.isStringLiteralLike(Be.value)){if(Be.value.text!=="import"&&Be.value.text!=="require"){He==null||He(Be.value,e.Diagnostics.resolution_mode_should_be_either_require_or_import);return}return Be.value.text==="import"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}}}e.getResolutionModeOverrideForClause=H;function V(pe,He,Be,Me,Le){if(pe.length===0)return[];for(var Ae=[],Xe=new e.Map,Ne=0,Oe=0,be=pe;Oe<be.length;Oe++){var Y=be[Oe],d=void 0,j=De(He,Ne);Ne++;var Ce=j!==void 0?"".concat(j,"|").concat(Y):Y;Xe.has(Ce)?d=Xe.get(Ce):Xe.set(Ce,d=Le(Y,j,Be,Me)),Ae.push(d)}return Ae}e.loadWithModeAwareCache=V;function h(pe,He){return F(void 0,pe,function(Be,Me){return Be&&He(Be,Me)})}e.forEachResolvedProjectReference=h;function F(pe,He,Be,Me){var Le;return Ae(pe,He,void 0);function Ae(Xe,Ne,Oe){if(Me){var be=Me(Xe,Oe);if(be)return be}return e.forEach(Ne,function(Y,d){if(!(Y&&(Le==null?void 0:Le.has(Y.sourceFile.path)))){var j=Be(Y,Oe,d);return j||!Y?j:((Le||(Le=new e.Set)).add(Y.sourceFile.path),Ae(Y.commandLine.projectReferences,Y.references,Y))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function $(pe){switch(pe==null?void 0:pe.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=$;function L(pe){return pe.pos!==void 0}e.isReferenceFileLocation=L;function P(pe,He){var Be,Me,Le,Ae,Xe,Ne,Oe,be=e.Debug.checkDefined(pe(He.file)),Y=He.kind,d=He.index,j,Ce,Se,Re;switch(Y){case e.FileIncludeKind.Import:var er=ge(be,d);if(Se=(Xe=(Ae=be.resolvedModules)===null||Ae===void 0?void 0:Ae.get(er.text,De(be,d)))===null||Xe===void 0?void 0:Xe.packageId,er.pos===-1)return{file:be,packageId:Se,text:er.text};j=e.skipTrivia(be.text,er.pos),Ce=er.end;break;case e.FileIncludeKind.ReferenceFile:Be=be.referencedFiles[d],j=Be.pos,Ce=Be.end;break;case e.FileIncludeKind.TypeReferenceDirective:Me=be.typeReferenceDirectives[d],j=Me.pos,Ce=Me.end,Re=Me.resolutionMode,Se=(Oe=(Ne=be.resolvedTypeReferenceDirectiveNames)===null||Ne===void 0?void 0:Ne.get(e.toFileNameLowerCase(be.typeReferenceDirectives[d].fileName),Re||be.impliedNodeFormat))===null||Oe===void 0?void 0:Oe.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Le=be.libReferenceDirectives[d],j=Le.pos,Ce=Le.end;break;default:return e.Debug.assertNever(Y)}return{file:be,pos:j,end:Ce,packageId:Se}}e.getReferencedFileLocation=P;function N(pe,He,Be,Me,Le,Ae,Xe,Ne,Oe){if(!pe||(Xe==null?void 0:Xe())||!e.arrayIsEqualTo(pe.getRootFileNames(),He))return!1;var be;if(!e.arrayIsEqualTo(pe.getProjectReferences(),Oe,Ce)||pe.getSourceFiles().some(d)||pe.getMissingFilePaths().some(Le))return!1;var Y=pe.getCompilerOptions();if(!e.compareDataObjects(Y,Be))return!1;if(Y.configFile&&Be.configFile)return Y.configFile.text===Be.configFile.text;return!0;function d(Re){return!j(Re)||Ae(Re.path)}function j(Re){return Re.version===Me(Re.resolvedPath,Re.fileName)}function Ce(Re,er,wr){return e.projectReferenceIsEqualTo(Re,er)&&Se(pe.getResolvedProjectReferences()[wr],Re)}function Se(Re,er){if(Re){if(e.contains(be,Re))return!0;var wr=w(er),mr=Ne(wr);return!mr||Re.commandLine.options.configFile!==mr.options.configFile||!e.arrayIsEqualTo(Re.commandLine.fileNames,mr.fileNames)?!1:((be||(be=[])).push(Re),!e.forEach(Re.references,function(t,qr){return!Se(t,Re.commandLine.projectReferences[qr])}))}var Ue=w(er);return!Ne(Ue)}}e.isProgramUptoDate=N;function J(pe){return pe.options.configFile?zn(zn([],pe.options.configFile.parseDiagnostics,!0),pe.errors,!0):pe.errors}e.getConfigFileParsingDiagnostics=J;function q(pe,He,Be,Me){var Le=G(pe,He,Be,Me);return typeof Le=="object"?Le.impliedNodeFormat:Le}e.getImpliedNodeFormatForFile=q;function G(pe,He,Be,Me){switch(e.getEmitModuleResolutionKind(Me)){case e.ModuleResolutionKind.Node16:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(pe,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(pe,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(pe,[".d.ts",".ts",".tsx",".js",".jsx"])?Le():void 0;default:return}function Le(){var Ae=e.getTemporaryModuleResolutionState(He,Be,Me),Xe=[];Ae.failedLookupLocations=Xe,Ae.affectingLocations=Xe;var Ne=e.getPackageScopeForPath(pe,Ae),Oe=(Ne==null?void 0:Ne.contents.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;return{impliedNodeFormat:Oe,packageJsonLocations:Xe,packageJsonScope:Ne}}}e.getImpliedNodeFormatForFileWorker=G,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.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,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,e.Diagnostics.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,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.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,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,e.Diagnostics.Class_constructor_may_not_be_a_generator.code,e.Diagnostics.Class_constructor_may_not_be_an_accessor.code,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]);function ye(pe,He){return pe?e.optionsHaveChanges(pe.getCompilerOptions(),He,e.sourceFileAffectingCompilerOptions):!1}function b(pe,He,Be,Me,Le){return{rootNames:pe,options:He,host:Be,oldProgram:Me,configFileParsingDiagnostics:Le}}function x(pe,He,Be,Me,Le){var Ae,Xe,Ne,Oe,be=e.isArray(pe)?b(pe,He,Be,Me,Le):pe,Y=be.rootNames,d=be.options,j=be.configFileParsingDiagnostics,Ce=be.projectReferences,Se=be.oldProgram,Re,er,wr,mr,Ue,t,qr,ln=new e.Map,dr=e.createMultiMap(),vr={},kr={},Ur=e.createModeAwareCache(),Cr,rn=typeof d.maxNodeModuleJsDepth=="number"?d.maxNodeModuleJsDepth:0,Br=0,pn=new e.Map,ve=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:d.configFilePath,rootDir:d.rootDir},!0),e.performance.mark("beforeProgram");var or=be.host||se(d),Ee=u(or),ze=d.noLib,Ar=e.memoize(function(){return or.getDefaultLibFileName(d)}),xe=or.getDefaultLibLocation?or.getDefaultLibLocation():e.getDirectoryPath(Ar()),cr=e.createDiagnosticCollection(),Mr=or.getCurrentDirectory(),Rr=e.getSupportedExtensions(d),Qr=e.getSupportedExtensionsWithJsonIfResolveJsonModule(d,Rr),en=new e.Map,vn,Ie,We,xr,Lr=or.hasInvalidatedResolutions||e.returnFalse;if(or.resolveModuleNames)xr=function(Hr,Gr,Bn,ui,hi){return or.resolveModuleNames(e.Debug.checkEachDefined(Hr),Bn,ui,hi,d,Gr).map(function(Ei){if(!Ei||Ei.extension!==void 0)return Ei;var st=e.clone(Ei);return st.extension=e.extensionFromPath(Ei.resolvedFileName),st})},Ie=(Ae=or.getModuleResolutionCache)===null||Ae===void 0?void 0:Ae.call(or);else{Ie=e.createModuleResolutionCache(Mr,Ht,d);var xn=function(Hr,Gr,Bn,ui){return e.resolveModuleName(Hr,Bn,d,or,Ie,ui,Gr).resolvedModule};xr=function(Hr,Gr,Bn,ui,hi){return V(e.Debug.checkEachDefined(Hr),Gr,Bn,hi,xn)}}var An;if(or.resolveTypeReferenceDirectives)An=function(Hr,Gr,Bn,ui){return or.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(Hr),Gr,Bn,d,ui)};else{We=e.createTypeReferenceDirectiveResolutionCache(Mr,Ht,void 0,Ie==null?void 0:Ie.getPackageJsonInfoCache());var Qn=function(Hr,Gr,Bn,ui){return e.resolveTypeReferenceDirective(Hr,Gr,d,or,Bn,We,ui).resolvedTypeReferenceDirective};An=function(Hr,Gr,Bn,ui){return C(e.Debug.checkEachDefined(Hr),Gr,Bn,ui,Qn)}}var ai=new e.Map,Dr=new e.Map,Pr=e.createMultiMap(),jr=!1,on=new e.Map,je,Sr=or.useCaseSensitiveFileNames()?new e.Map:void 0,Te,Ye,Qe,ue,Ke=!!((Xe=or.useSourceOfProjectReferenceRedirect)===null||Xe===void 0?void 0:Xe.call(or))&&!d.disableSourceOfProjectReferenceRedirect,tr=T({compilerHost:or,getSymlinkCache:Zu,useSourceOfProjectReferenceRedirect:Ke,toPath:Xn,getResolvedProjectReferences:ot,getSourceOfProjectReferenceRedirect:Ss,forEachResolvedProjectReference:oc}),hr=tr.onProgramCreateComplete,_r=tr.fileExists,Or=tr.directoryExists,zr=or.readFile.bind(or);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Se});var fn=ye(Se,d);e.tracing===null||e.tracing===void 0||e.tracing.pop();var Vr;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Vr=dt(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Vr!==2){Re=[],er=[],Ce&&(Te||(Te=Ce.map(qe)),Y.length&&(Te==null||Te.forEach(function(Hr,Gr){if(!!Hr){var Bn=e.outFile(Hr.commandLine.options);if(Ke){if(Bn||e.getEmitModuleKind(Hr.commandLine.options)===e.ModuleKind.None)for(var ui=0,hi=Hr.commandLine.fileNames;ui<hi.length;ui++){var Ei=hi[ui];ps(Ei,{kind:e.FileIncludeKind.SourceFromProjectReference,index:Gr})}}else if(Bn)ps(e.changeExtension(Bn,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:Gr});else if(e.getEmitModuleKind(Hr.commandLine.options)===e.ModuleKind.None)for(var st=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Hr.commandLine,!or.useCaseSensitiveFileNames())}),Bi=0,Jt=Hr.commandLine.fileNames;Bi<Jt.length;Bi++){var Ei=Jt[Bi];!e.isDeclarationFileName(Ei)&&!e.fileExtensionIs(Ei,".json")&&ps(e.getOutputDeclarationFileName(Ei,Hr.commandLine,!or.useCaseSensitiveFileNames(),st),{kind:e.FileIncludeKind.OutputFromProjectReference,index:Gr})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:Y.length}),e.forEach(Y,function(Hr,Gr){return di(Hr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:Gr})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var Wn=Y.length?e.getAutomaticTypeDirectiveNames(d,or):e.emptyArray;if(Wn.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:Wn.length});for(var bn=d.configFilePath?e.getDirectoryPath(d.configFilePath):or.getCurrentDirectory(),qn=e.combinePaths(bn,e.inferredTypesContainingFile),yn=jn(Wn,qn),Hn=0;Hn<Wn.length;Hn++)Ii(Wn[Hn],void 0,yn[Hn],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Wn[Hn],packageId:(Ne=yn[Hn])===null||Ne===void 0?void 0:Ne.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(Y.length&&!ze){var Ai=Ar();!d.lib&&Ai?di(Ai,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(d.lib,function(Hr,Gr){di(Ji(Hr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:Gr})})}je=e.arrayFrom(e.mapDefinedIterator(on.entries(),function(Hr){var Gr=Hr[0],Bn=Hr[1];return Bn===void 0?Gr:void 0})),wr=e.stableSort(Re,Cn).concat(er),Re=void 0,er=void 0}if(e.Debug.assert(!!je),Se&&or.onReleaseOldSourceFile){for(var ti=Se.getSourceFiles(),Hi=0,Ni=ti;Hi<Ni.length;Hi++){var gi=Ni[Hi],Pn=Vi(gi.resolvedPath);(fn||!Pn||Pn.impliedNodeFormat!==gi.impliedNodeFormat||gi.resolvedPath===gi.path&&Pn.resolvedPath!==gi.path)&&or.onReleaseOldSourceFile(gi,Se.getCompilerOptions(),!!Vi(gi.path))}or.getParsedCommandLine||Se.forEachResolvedProjectReference(function(Hr){Er(Hr.sourceFile.path)||or.onReleaseOldSourceFile(Hr.sourceFile,Se.getCompilerOptions(),!1)})}Se&&or.onReleaseParsedCommandLine&&F(Se.getProjectReferences(),Se.getResolvedProjectReferences(),function(Hr,Gr,Bn){var ui=(Gr==null?void 0:Gr.commandLine.projectReferences[Bn])||Se.getProjectReferences()[Bn],hi=w(ui);(Ye==null?void 0:Ye.has(Xn(hi)))||or.onReleaseParsedCommandLine(hi,Hr,Se.getCompilerOptions())}),We=void 0,Se=void 0;var Pe={getRootFileNames:function(){return Y},getSourceFile:Aa,getSourceFileByPath:Vi,getSourceFiles:function(){return wr},getMissingFilePaths:function(){return je},getModuleResolutionCache:function(){return Ie},getFilesByNameMap:function(){return on},getCompilerOptions:function(){return d},getSyntacticDiagnostics:ao,getOptionsDiagnostics:yr,getGlobalDiagnostics:Mn,getSemanticDiagnostics:fo,getCachedSemanticDiagnostics:As,getSuggestionDiagnostics:Pa,getDeclarationDiagnostics:Ho,getBindAndCheckDiagnostics:so,getProgramDiagnostics:Xo,getTypeChecker:za,getClassifiableNames:cn,getCommonSourceDirectory:Ge,emit:Co,getCurrentDirectory:function(){return Mr},getNodeCount:function(){return za().getNodeCount()},getIdentifierCount:function(){return za().getIdentifierCount()},getSymbolCount:function(){return za().getSymbolCount()},getTypeCount:function(){return za().getTypeCount()},getInstantiationCount:function(){return za().getInstantiationCount()},getRelationCacheSizes:function(){return za().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Cr},getResolvedTypeReferenceDirectives:function(){return Ur},isSourceFileFromExternalLibrary:Va,isSourceFileDefaultLibrary:Ua,getSourceFileFromReference:Ia,getLibFileFromReference:na,sourceFileToPackageName:Dr,redirectTargetsMap:Pr,usesUriStyleNodeCoreModules:jr,isEmittedFile:Xu,getConfigFileParsingDiagnostics:_i,getResolvedModuleWithFailedLookupLocationsFromCache:On,getProjectReferences:Zi,getResolvedProjectReferences:ot,getProjectReferenceRedirect:Sc,getResolvedProjectReferenceToRedirect:Vs,getResolvedProjectReferenceByPath:Er,forEachResolvedProjectReference:oc,isSourceOfProjectReferenceRedirect:ee,emitBuildInfo:Tt,fileExists:_r,readFile:zr,directoryExists:Or,getSymlinkCache:Zu,realpath:(Oe=or.realpath)===null||Oe===void 0?void 0:Oe.bind(or),useCaseSensitiveFileNames:function(){return or.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return dr},structureIsReused:Vr,writeFile:Ci};return hr(),Cr==null||Cr.forEach(function(Hr){switch(Hr.kind){case 1:return cr.add(Nr(Hr.file&&Vi(Hr.file),Hr.fileProcessingReason,Hr.diagnostic,Hr.args||e.emptyArray));case 0:var Gr=P(Vi,Hr.reason),Bn=Gr.file,ui=Gr.pos,hi=Gr.end;return cr.add(e.createFileDiagnostic.apply(void 0,zn([Bn,e.Debug.checkDefined(ui),e.Debug.checkDefined(hi)-ui,Hr.diagnostic],Hr.args||e.emptyArray,!1)));default:e.Debug.assertNever(Hr)}}),Tn(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Pe;function Ir(Hr){if(!!Hr)for(var Gr=0,Bn=Hr;Gr<Bn.length;Gr++){var ui=Bn[Gr];cr.add(ui)}}function we(Hr,Gr){var Bn;if(!!Ie)for(var ui=e.getNormalizedAbsolutePath(Gr.originalFileName,Mr),hi=e.isString(Gr)?void 0:Gr.impliedNodeFormat,Ei=e.getDirectoryPath(ui),st=gn(Gr),Bi=0,Jt=0,Ca=Hr;Jt<Ca.length;Jt++){var Yt=Ca[Jt],Wt=typeof Yt=="string"?De(Gr,Bi):me(Yt,hi),Ga=typeof Yt=="string"?Yt:Yt.fileName;if(Bi++,!e.isExternalModuleNameRelative(Ga)){var $t=(Bn=Ie.getOrCreateCacheForModuleName(Ga,Wt,st).get(Ei))===null||Bn===void 0?void 0:Bn.resolutionDiagnostics;Ir($t)}}}function hn(Hr,Gr,Bn){if(!Hr.length)return e.emptyArray;var ui=e.getNormalizedAbsolutePath(Gr.originalFileName,Mr),hi=gn(Gr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:ui}),e.performance.mark("beforeResolveModule");var Ei=xr(Hr,Gr,ui,Bn,hi);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),we(Hr,Gr),Ei}function jn(Hr,Gr){if(!Hr.length)return[];var Bn=e.isString(Gr)?Gr:e.getNormalizedAbsolutePath(Gr.originalFileName,Mr),ui=e.isString(Gr)?void 0:gn(Gr),hi=e.isString(Gr)?void 0:Gr.impliedNodeFormat;e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Bn}),e.performance.mark("beforeResolveTypeReference");var Ei=An(Hr,Bn,ui,hi);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Ei}function gn(Hr){var Gr=Vs(Hr.originalFileName);if(Gr||!e.isDeclarationFileName(Hr.originalFileName))return Gr;var Bn=nn(Hr.path);if(Bn)return Bn;if(!(!or.realpath||!d.preserveSymlinks||!e.stringContains(Hr.originalFileName,e.nodeModulesPathPart))){var ui=Xn(or.realpath(Hr.originalFileName));return ui===Hr.path?void 0:nn(ui)}}function nn(Hr){var Gr=Ss(Hr);if(e.isString(Gr))return Vs(Gr);if(!!Gr)return oc(function(Bn){var ui=e.outFile(Bn.commandLine.options);if(!!ui)return Xn(ui)===Hr?Bn:void 0})}function Cn(Hr,Gr){return e.compareValues(Dn(Hr),Dn(Gr))}function Dn(Hr){if(e.containsPath(xe,Hr.fileName,!1)){var Gr=e.getBaseFileName(Hr.fileName);if(Gr==="lib.d.ts"||Gr==="lib.es6.d.ts")return 0;var Bn=e.removeSuffix(e.removePrefix(Gr,"lib."),".d.ts"),ui=e.libs.indexOf(Bn);if(ui!==-1)return ui+1}return e.libs.length+2}function On(Hr,Gr,Bn){return Ie&&e.resolveModuleNameFromCache(Hr,Gr,Ie,Bn)}function Xn(Hr){return e.toPath(Hr,Mr,Ht)}function Ge(){if(Ue===void 0){var Hr=e.filter(wr,function(Gr){return e.sourceFileMayBeEmitted(Gr,Pe)});Ue=e.getCommonSourceDirectory(d,function(){return e.mapDefined(Hr,function(Gr){return Gr.isDeclarationFile?void 0:Gr.fileName})},Mr,Ht,function(Gr){return va(Hr,Gr)})}return Ue}function cn(){var Hr;if(!qr){za(),qr=new e.Set;for(var Gr=0,Bn=wr;Gr<Bn.length;Gr++){var ui=Bn[Gr];(Hr=ui.classifiableNames)===null||Hr===void 0||Hr.forEach(function(hi){return qr.add(hi)})}}return qr}function Vn(Hr,Gr){if(Vr===0&&!Gr.ambientModuleNames.length)return hn(Hr,Gr,void 0);var Bn=Se&&Se.getSourceFile(Gr.fileName);if(Bn!==Gr&&Gr.resolvedModules){for(var ui=[],hi=0,Ei=0,st=Hr;Ei<st.length;Ei++){var Bi=st[Ei],Jt=Gr.resolvedModules.get(Bi,De(Gr,hi));hi++,ui.push(Jt)}return ui}for(var Ca,Yt,Wt,Ga={},hi=0;hi<Hr.length;hi++){var Bi=Hr[hi];if(Gr===Bn&&!Lr(Bn.path)){var $t=e.getResolvedModule(Bn,Bi,De(Bn,hi));if($t){e.isTraceEnabled(d,or)&&e.trace(or,$t.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Bi,e.getNormalizedAbsolutePath(Gr.originalFileName,Mr),$t.resolvedFileName,$t.packageId&&e.packageIdToString($t.packageId)),(Yt||(Yt=new Array(Hr.length)))[hi]=$t,(Wt||(Wt=[])).push(Bi);continue}}var po=!1;e.contains(Gr.ambientModuleNames,Bi)?(po=!0,e.isTraceEnabled(d,or)&&e.trace(or,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Bi,e.getNormalizedAbsolutePath(Gr.originalFileName,Mr))):po=jo(Bi,hi),po?(Yt||(Yt=new Array(Hr.length)))[hi]=Ga:(Ca||(Ca=[])).push(Bi)}var Do=Ca&&Ca.length?hn(Ca,Gr,Wt):e.emptyArray;if(!Yt)return e.Debug.assert(Do.length===Hr.length),Do;for(var Ns=0,hi=0;hi<Yt.length;hi++)Yt[hi]?Yt[hi]===Ga&&(Yt[hi]=void 0):(Yt[hi]=Do[Ns],Ns++);return e.Debug.assert(Ns===Do.length),Yt;function jo(ys,Vo){if(Vo>=e.length(Bn==null?void 0:Bn.imports)+e.length(Bn==null?void 0:Bn.moduleAugmentations))return!1;var fe=e.getResolvedModule(Bn,ys,Bn&&De(Bn,Vo)),sr=fe&&Se.getSourceFile(fe.resolvedFileName);if(fe&&sr)return!1;var Tr=ln.get(ys);return Tr?(e.isTraceEnabled(d,or)&&e.trace(or,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,ys,Tr),!0):!1}}function Ki(){return!F(Se.getProjectReferences(),Se.getResolvedProjectReferences(),function(Hr,Gr,Bn){var ui=(Gr?Gr.commandLine.projectReferences:Ce)[Bn],hi=qe(ui);return Hr?!hi||hi.sourceFile!==Hr.sourceFile||!e.arrayIsEqualTo(Hr.commandLine.fileNames,hi.commandLine.fileNames):hi!==void 0},function(Hr,Gr){var Bn=Gr?Er(Gr.sourceFile.path).commandLine.projectReferences:Ce;return!e.arrayIsEqualTo(Hr,Bn,e.projectReferenceIsEqualTo)})}function dt(){var Hr,Gr;if(!Se)return 0;var Bn=Se.getCompilerOptions();if(e.changesAffectModuleResolution(Bn,d))return 0;var ui=Se.getRootFileNames();if(!e.arrayIsEqualTo(ui,Y)||!Ki())return 0;Ce&&(Te=Ce.map(qe));var hi=[],Ei=[];if(Vr=2,Se.getMissingFilePaths().some(function(Os){return or.fileExists(Os)}))return 0;var st=Se.getSourceFiles(),Bi;(function(Os){Os[Os.Exists=0]="Exists",Os[Os.Modified=1]="Modified"})(Bi||(Bi={}));for(var Jt=new e.Map,Ca=0,Yt=st;Ca<Yt.length;Ca++){var Wt=Yt[Ca],Ga=dc(Wt.fileName,Ie,or,d),$t=or.getSourceFileByPath?or.getSourceFileByPath(Wt.fileName,Wt.resolvedPath,Ga,void 0,fn||Ga.impliedNodeFormat!==Wt.impliedNodeFormat):or.getSourceFile(Wt.fileName,Ga,void 0,fn||Ga.impliedNodeFormat!==Wt.impliedNodeFormat);if(!$t)return 0;$t.packageJsonLocations=((Hr=Ga.packageJsonLocations)===null||Hr===void 0?void 0:Hr.length)?Ga.packageJsonLocations:void 0,$t.packageJsonScope=Ga.packageJsonScope,e.Debug.assert(!$t.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var po=void 0;if(Wt.redirectInfo){if($t!==Wt.redirectInfo.unredirected)return 0;po=!1,$t=Wt}else if(Se.redirectTargetsMap.has(Wt.path)){if($t!==Wt)return 0;po=!1}else po=$t!==Wt;$t.path=Wt.path,$t.originalFileName=Wt.originalFileName,$t.resolvedPath=Wt.resolvedPath,$t.fileName=Wt.fileName;var Do=Se.sourceFileToPackageName.get(Wt.path);if(Do!==void 0){var Ns=Jt.get(Do),jo=po?1:0;if(Ns!==void 0&&jo===1||Ns===1)return 0;Jt.set(Do,jo)}po?(Wt.impliedNodeFormat!==$t.impliedNodeFormat?Vr=1:e.arrayIsEqualTo(Wt.libReferenceDirectives,$t.libReferenceDirectives,fi)?Wt.hasNoDefaultLib!==$t.hasNoDefaultLib?Vr=1:e.arrayIsEqualTo(Wt.referencedFiles,$t.referencedFiles,fi)?(la($t),e.arrayIsEqualTo(Wt.imports,$t.imports,Nt)&&e.arrayIsEqualTo(Wt.moduleAugmentations,$t.moduleAugmentations,Nt)?(Wt.flags&6291456)!=($t.flags&6291456)?Vr=1:e.arrayIsEqualTo(Wt.typeReferenceDirectives,$t.typeReferenceDirectives,fi)||(Vr=1):Vr=1):Vr=1:Vr=1,Ei.push({oldFile:Wt,newFile:$t})):Lr(Wt.path)&&(Vr=1,Ei.push({oldFile:Wt,newFile:$t})),hi.push($t)}if(Vr!==2)return Vr;for(var ys=Ei.map(function(Os){return Os.oldFile}),Vo=0,fe=st;Vo<fe.length;Vo++){var sr=fe[Vo];if(!e.contains(ys,sr))for(var Tr=0,Fn=sr.ambientModuleNames;Tr<Fn.length;Tr++){var Si=Fn[Tr];ln.set(Si,sr.fileName)}}for(var gt=0,jt=Ei;gt<jt.length;gt++){var fa=jt[gt],Wt=fa.oldFile,$t=fa.newFile,Ka=U($t),no=Vn(Ka,$t),Eo=e.hasChangesInResolutions(Ka,no,Wt.resolvedModules,Wt,e.moduleResolutionIsEqualTo);Eo?(Vr=1,$t.resolvedModules=e.zipToModeAwareCache($t,Ka,no)):$t.resolvedModules=Wt.resolvedModules;var Fa=$t.typeReferenceDirectives,Qa=jn(Fa,$t),zo=e.hasChangesInResolutions(Fa,Qa,Wt.resolvedTypeReferenceDirectiveNames,Wt,e.typeDirectiveIsEqualTo);zo?(Vr=1,$t.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache($t,Fa,Qa)):$t.resolvedTypeReferenceDirectiveNames=Wt.resolvedTypeReferenceDirectiveNames}if(Vr!==2)return Vr;if(e.changesAffectingProgramStructure(Bn,d)||((Gr=or.hasChangedAutomaticTypeDirectiveNames)===null||Gr===void 0?void 0:Gr.call(or)))return 1;je=Se.getMissingFilePaths(),e.Debug.assert(hi.length===Se.getSourceFiles().length);for(var Uo=0,ms=hi;Uo<ms.length;Uo++){var $t=ms[Uo];on.set($t.path,$t)}var xc=Se.getFilesByNameMap();return xc.forEach(function(Os,Cl){if(!Os){on.set(Cl,Os);return}if(Os.path===Cl){Se.isSourceFileFromExternalLibrary(Os)&&ve.set(Os.path,!0);return}on.set(Cl,on.get(Os.path))}),wr=hi,dr=Se.getFileIncludeReasons(),Cr=Se.getFileProcessingDiagnostics(),Ur=Se.getResolvedTypeReferenceDirectives(),Dr=Se.sourceFileToPackageName,Pr=Se.redirectTargetsMap,jr=Se.usesUriStyleNodeCoreModules,2}function qi(Hr){return{getPrependNodes:ni,getCanonicalFileName:Ht,getCommonSourceDirectory:Pe.getCommonSourceDirectory,getCompilerOptions:Pe.getCompilerOptions,getCurrentDirectory:function(){return Mr},getNewLine:function(){return or.getNewLine()},getSourceFile:Pe.getSourceFile,getSourceFileByPath:Pe.getSourceFileByPath,getSourceFiles:Pe.getSourceFiles,getLibFileFromReference:Pe.getLibFileFromReference,isSourceFileFromExternalLibrary:Va,getResolvedProjectReferenceToRedirect:Vs,getProjectReferenceRedirect:Sc,isSourceOfProjectReferenceRedirect:ee,getSymlinkCache:Zu,writeFile:Hr||Ci,isEmitBlocked:Ea,readFile:function(Gr){return or.readFile(Gr)},fileExists:function(Gr){var Bn=Xn(Gr);return Vi(Bn)?!0:e.contains(je,Bn)?!1:or.fileExists(Gr)},useCaseSensitiveFileNames:function(){return or.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Pe.getProgramBuildInfo&&Pe.getProgramBuildInfo()},getSourceFileFromReference:function(Gr,Bn){return Pe.getSourceFileFromReference(Gr,Bn)},redirectTargetsMap:Pr,getFileIncludeReasons:Pe.getFileIncludeReasons,createHash:e.maybeBind(or,or.createHash)}}function Ci(Hr,Gr,Bn,ui,hi,Ei){or.writeFile(Hr,Gr,Bn,ui,hi,Ei)}function Tt(Hr){e.Debug.assert(!e.outFile(d)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var Gr=e.emitFiles(e.notImplementedResolver,qi(Hr),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Gr}function ot(){return Te}function Zi(){return Ce}function ni(){return A(Ce,function(Hr,Gr){var Bn;return(Bn=Te[Gr])===null||Bn===void 0?void 0:Bn.commandLine},function(Hr){var Gr=Xn(Hr),Bn=Vi(Gr);return Bn?Bn.text:on.has(Gr)?void 0:or.readFile(Gr)})}function Va(Hr){return!!ve.get(Hr.path)}function Ua(Hr){if(!Hr.isDeclarationFile)return!1;if(Hr.hasNoDefaultLib)return!0;if(!d.noLib)return!1;var Gr=or.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return d.lib?e.some(d.lib,function(Bn){return Gr(Hr.fileName,Ji(Bn))}):Gr(Hr.fileName,Ar())}function za(){return t||(t=e.createTypeChecker(Pe))}function Co(Hr,Gr,Bn,ui,hi,Ei){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:Hr==null?void 0:Hr.path},!0);var st=To(function(){return ho(Pe,Hr,Gr,Bn,ui,hi,Ei)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),st}function Ea(Hr){return en.has(Xn(Hr))}function ho(Hr,Gr,Bn,ui,hi,Ei,st){if(!st){var Bi=Z(Hr,Gr,Bn,ui);if(Bi)return Bi}var Jt=za().getEmitResolver(e.outFile(d)?void 0:Gr,ui);e.performance.mark("beforeEmit");var Ca=e.emitFiles(Jt,qi(Bn),Gr,e.getTransformers(d,Ei,hi),hi,!1,st);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),Ca}function Aa(Hr){return Vi(Xn(Hr))}function Vi(Hr){return on.get(Hr)||void 0}function Xi(Hr,Gr,Bn){return Hr?Gr(Hr,Bn):e.sortAndDeduplicateDiagnostics(e.flatMap(Pe.getSourceFiles(),function(ui){return Bn&&Bn.throwIfCancellationRequested(),Gr(ui,Bn)}))}function ao(Hr,Gr){return Xi(Hr,Zo,Gr)}function fo(Hr,Gr){return Xi(Hr,pr,Gr)}function As(Hr){var Gr;return Hr?(Gr=vr.perFile)===null||Gr===void 0?void 0:Gr.get(Hr.path):vr.allDiagnostics}function so(Hr,Gr){return Fr(Hr,Gr)}function Xo(Hr){var Gr;if(e.skipTypeChecking(Hr,d,Pe))return e.emptyArray;var Bn=cr.getDiagnostics(Hr.fileName);return((Gr=Hr.commentDirectives)===null||Gr===void 0?void 0:Gr.length)?Ft(Hr,Hr.commentDirectives,Bn).diagnostics:Bn}function Ho(Hr,Gr){var Bn=Pe.getCompilerOptions();return!Hr||e.outFile(Bn)?Nn(Hr,Gr):Xi(Hr,ur,Gr)}function Zo(Hr){return e.isSourceFileJS(Hr)?(Hr.additionalSyntacticDiagnostics||(Hr.additionalSyntacticDiagnostics=tn(Hr)),e.concatenate(Hr.additionalSyntacticDiagnostics,Hr.parseDiagnostics)):Hr.parseDiagnostics}function To(Hr){try{return Hr()}catch(Gr){throw Gr instanceof e.OperationCanceledException&&(t=void 0),Gr}}function pr(Hr,Gr){return e.concatenate(B(Fr(Hr,Gr),d),Xo(Hr))}function Fr(Hr,Gr){return Je(Hr,Gr,vr,yi)}function yi(Hr,Gr){return To(function(){if(e.skipTypeChecking(Hr,d,Pe))return e.emptyArray;var Bn=za();e.Debug.assert(!!Hr.bindDiagnostics);var ui=Hr.scriptKind===1||Hr.scriptKind===2,hi=ui&&e.isCheckJsEnabledForFile(Hr,d),Ei=e.isPlainJsFile(Hr,d.checkJs),st=!!Hr.checkJsDirective&&Hr.checkJsDirective.enabled===!1,Bi=!st&&(Hr.scriptKind===3||Hr.scriptKind===4||Hr.scriptKind===5||Ei||hi||Hr.scriptKind===7),Jt=Bi?Hr.bindDiagnostics:e.emptyArray,Ca=Bi?Bn.getDiagnostics(Hr,Gr):e.emptyArray;return Ei&&(Jt=e.filter(Jt,function(Yt){return e.plainJSErrors.has(Yt.code)}),Ca=e.filter(Ca,function(Yt){return e.plainJSErrors.has(Yt.code)})),Dt(Hr,Bi&&!Ei,Jt,Ca,hi?Hr.jsDocDiagnostics:void 0)})}function Dt(Hr,Gr){for(var Bn,ui=[],hi=2;hi<arguments.length;hi++)ui[hi-2]=arguments[hi];var Ei=e.flatten(ui);if(!Gr||!((Bn=Hr.commentDirectives)===null||Bn===void 0?void 0:Bn.length))return Ei;for(var st=Ft(Hr,Hr.commentDirectives,Ei),Bi=st.diagnostics,Jt=st.directives,Ca=0,Yt=Jt.getUnusedExpectations();Ca<Yt.length;Ca++){var Wt=Yt[Ca];Bi.push(e.createDiagnosticForRange(Hr,Wt.range,e.Diagnostics.Unused_ts_expect_error_directive))}return Bi}function Ft(Hr,Gr,Bn){var ui=e.createCommentDirectivesMap(Hr,Gr),hi=Bn.filter(function(Ei){return Ve(Ei,ui)===-1});return{diagnostics:hi,directives:ui}}function Pa(Hr,Gr){return To(function(){return za().getSuggestionDiagnostics(Hr,Gr)})}function Ve(Hr,Gr){var Bn=Hr.file,ui=Hr.start;if(!Bn)return-1;for(var hi=e.getLineStarts(Bn),Ei=e.computeLineAndCharacterOfPosition(hi,ui).line-1;Ei>=0;){if(Gr.markUsed(Ei))return Ei;var st=Bn.text.slice(hi[Ei],hi[Ei+1]).trim();if(st!==""&&!/^(\s*)\/\/(.*)$/.test(st))return-1;Ei--}return-1}function tn(Hr){return To(function(){var Gr=[];return Bn(Hr,Hr),e.forEachChildRecursively(Hr,Bn,ui),Gr;function Bn(Bi,Jt){switch(Jt.kind){case 166:case 169:case 171:if(Jt.questionToken===Bi)return Gr.push(st(Bi,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(Jt.type===Bi)return Gr.push(st(Bi,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Bi.kind){case 270:if(Bi.isTypeOnly)return Gr.push(st(Jt,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Bi.isTypeOnly)return Gr.push(st(Bi,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Bi.isTypeOnly)return Gr.push(st(Bi,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(Bi)?"import...type":"export...type")),"skip";break;case 268:return Gr.push(st(Bi,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Bi.isExportEquals)return Gr.push(st(Bi,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:var Ca=Bi;if(Ca.token===117)return Gr.push(st(Bi,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:var Yt=e.tokenToString(118);return e.Debug.assertIsDefined(Yt),Gr.push(st(Bi,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Yt)),"skip";case 264:var Wt=Bi.flags&16?e.tokenToString(143):e.tokenToString(142);return e.Debug.assertIsDefined(Wt),Gr.push(st(Bi,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Wt)),"skip";case 262:return Gr.push(st(Bi,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:var Ga=e.Debug.checkDefined(e.tokenToString(92));return Gr.push(st(Bi,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Ga)),"skip";case 232:return Gr.push(st(Bi,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return Gr.push(st(Bi.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Gr.push(st(Bi.type,e.Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:e.Debug.fail()}}function ui(Bi,Jt){switch(e.canHaveModifiers(Jt)&&Jt.modifiers===Bi&&e.some(Bi,e.isDecorator)&&!d.experimentalDecorators&&Gr.push(st(Jt,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),Jt.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Bi===Jt.typeParameters)return Gr.push(Ei(Bi,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Bi===Jt.modifiers)return hi(Jt.modifiers,Jt.kind===240),"skip";break;case 169:if(Bi===Jt.modifiers){for(var Ca=0,Yt=Bi;Ca<Yt.length;Ca++){var Wt=Yt[Ca];e.isModifier(Wt)&&Wt.kind!==124&&Wt.kind!==127&&Gr.push(st(Wt,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Wt.kind)))}return"skip"}break;case 166:if(Bi===Jt.modifiers&&e.some(Bi,e.isModifier))return Gr.push(Ei(Bi,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Bi===Jt.typeArguments)return Gr.push(Ei(Bi,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function hi(Bi,Jt){for(var Ca=0,Yt=Bi;Ca<Yt.length;Ca++){var Wt=Yt[Ca];switch(Wt.kind){case 85:if(Jt)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:Gr.push(st(Wt,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Wt.kind)));break;case 124:case 93:case 88:case 127:}}}function Ei(Bi,Jt,Ca,Yt,Wt){var Ga=Bi.pos;return e.createFileDiagnostic(Hr,Ga,Bi.end-Ga,Jt,Ca,Yt,Wt)}function st(Bi,Jt,Ca,Yt,Wt){return e.createDiagnosticForNodeInSourceFile(Hr,Bi,Jt,Ca,Yt,Wt)}})}function Nn(Hr,Gr){return Je(Hr,Gr,kr,wn)}function wn(Hr,Gr){return To(function(){var Bn=za().getEmitResolver(Hr,Gr);return e.getDeclarationDiagnostics(qi(e.noop),Bn,Hr)||e.emptyArray})}function Je(Hr,Gr,Bn,ui){var hi,Ei=Hr?(hi=Bn.perFile)===null||hi===void 0?void 0:hi.get(Hr.path):Bn.allDiagnostics;if(Ei)return Ei;var st=ui(Hr,Gr);return Hr?(Bn.perFile||(Bn.perFile=new e.Map)).set(Hr.path,st):Bn.allDiagnostics=st,st}function ur(Hr,Gr){return Hr.isDeclarationFile?[]:Nn(Hr,Gr)}function yr(){return e.sortAndDeduplicateDiagnostics(e.concatenate(cr.getGlobalDiagnostics(),Jr()))}function Jr(){if(!d.configFile)return e.emptyArray;var Hr=cr.getDiagnostics(d.configFile.fileName);return oc(function(Gr){Hr=e.concatenate(Hr,cr.getDiagnostics(Gr.sourceFile.fileName))}),Hr}function Mn(){return Y.length?e.sortAndDeduplicateDiagnostics(za().getGlobalDiagnostics().slice()):e.emptyArray}function _i(){return j||e.emptyArray}function di(Hr,Gr,Bn,ui){ds(e.normalizePath(Hr),Gr,Bn,void 0,ui)}function fi(Hr,Gr){return Hr.fileName===Gr.fileName}function Nt(Hr,Gr){return Hr.kind===79?Gr.kind===79&&Hr.escapedText===Gr.escapedText:Gr.kind===10&&Hr.text===Gr.text}function Gt(Hr,Gr){var Bn=e.factory.createStringLiteral(Hr),ui=e.factory.createImportDeclaration(void 0,void 0,Bn,void 0);return e.addEmitFlags(ui,67108864),e.setParent(Bn,ui),e.setParent(ui,Gr),Bn.flags&=~8,ui.flags&=~8,Bn}function la(Hr){if(Hr.imports)return;var Gr=e.isSourceFileJS(Hr),Bn=e.isExternalModule(Hr),ui,hi,Ei;if((d.isolatedModules||Bn)&&!Hr.isDeclarationFile){d.importHelpers&&(ui=[Gt(e.externalHelpersModuleNameText,Hr)]);var st=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(d,Hr),d);st&&(ui||(ui=[])).push(Gt(st,Hr))}for(var Bi=0,Jt=Hr.statements;Bi<Jt.length;Bi++){var Ca=Jt[Bi];Yt(Ca,!1)}(Hr.flags&2097152||Gr)&&Wt(Hr),Hr.imports=ui||e.emptyArray,Hr.moduleAugmentations=hi||e.emptyArray,Hr.ambientModuleNames=Ei||e.emptyArray;return;function Yt($t,po){if(e.isAnyImportOrReExport($t)){var Do=e.getExternalModuleName($t);Do&&e.isStringLiteral(Do)&&Do.text&&(!po||!e.isExternalModuleNameRelative(Do.text))&&(e.setParentRecursive($t,!1),ui=e.append(ui,Do),!jr&&Br===0&&!Hr.isDeclarationFile&&(jr=e.startsWith(Do.text,"node:")))}else if(e.isModuleDeclaration($t)&&e.isAmbientModule($t)&&(po||e.hasSyntacticModifier($t,2)||Hr.isDeclarationFile)){$t.name.parent=$t;var Ns=e.getTextOfIdentifierOrLiteral($t.name);if(Bn||po&&!e.isExternalModuleNameRelative(Ns))(hi||(hi=[])).push($t.name);else if(!po){Hr.isDeclarationFile&&(Ei||(Ei=[])).push(Ns);var jo=$t.body;if(jo)for(var ys=0,Vo=jo.statements;ys<Vo.length;ys++){var fe=Vo[ys];Yt(fe,!0)}}}}function Wt($t){for(var po=/import|require/g;po.exec($t.text)!==null;){var Do=Ga($t,po.lastIndex);Gr&&e.isRequireCall(Do,!0)||e.isImportCall(Do)&&Do.arguments.length>=1&&e.isStringLiteralLike(Do.arguments[0])?(e.setParentRecursive(Do,!1),ui=e.append(ui,Do.arguments[0])):e.isLiteralImportTypeNode(Do)&&(e.setParentRecursive(Do,!1),ui=e.append(ui,Do.argument.literal))}}function Ga($t,po){for(var Do=$t,Ns=function(ys){if(ys.pos<=po&&(po<ys.end||po===ys.end&&ys.kind===1))return ys};;){var jo=Gr&&e.hasJSDocNodes(Do)&&e.forEach(Do.jsDoc,Ns)||e.forEachChild(Do,Ns);if(!jo)return Do;Do=jo}}}function na(Hr){var Gr=e.toFileNameLowerCase(Hr.fileName),Bn=e.libMap.get(Gr);if(Bn)return Aa(Ji(Bn))}function Ia(Hr,Gr){return bs(ne(Gr.fileName,Hr.fileName),Aa)}function bs(Hr,Gr,Bn,ui){if(e.hasExtension(Hr)){var hi=or.getCanonicalFileName(Hr);if(!d.allowNonTsExtensions&&!e.forEach(e.flatten(Qr),function(Ca){return e.fileExtensionIs(hi,Ca)})){Bn&&(e.hasJSFileExtension(hi)?Bn(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Hr):Bn(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Hr,"'"+e.flatten(Rr).join("', '")+"'"));return}var Ei=Gr(Hr);if(Bn)if(Ei)$(ui)&&hi===or.getCanonicalFileName(Vi(ui.file).fileName)&&Bn(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var st=Sc(Hr);st?Bn(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,st,Hr):Bn(e.Diagnostics.File_0_not_found,Hr)}return Ei}else{var Bi=d.allowNonTsExtensions&&Gr(Hr);if(Bi)return Bi;if(Bn&&d.allowNonTsExtensions){Bn(e.Diagnostics.File_0_not_found,Hr);return}var Jt=e.forEach(Rr[0],function(Ca){return Gr(Hr+Ca)});return Bn&&!Jt&&Bn(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Hr,"'"+e.flatten(Rr).join("', '")+"'"),Jt}}function ds(Hr,Gr,Bn,ui,hi){bs(Hr,function(Ei){return ns(Ei,Gr,Bn,hi,ui)},function(Ei){for(var st=[],Bi=1;Bi<arguments.length;Bi++)st[Bi-1]=arguments[Bi];return ga(void 0,hi,Ei,st)},hi)}function ps(Hr,Gr){return ds(Hr,!1,!1,void 0,Gr)}function ac(Hr,Gr,Bn){var ui=!$(Bn)&&e.some(dr.get(Gr.path),$);ui?ga(Gr,Bn,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Gr.fileName,Hr]):ga(Gr,Bn,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Hr,Gr.fileName])}function Es(Hr,Gr,Bn,ui,hi,Ei,st){var Bi,Jt=Object.create(Hr);return Jt.fileName=Bn,Jt.path=ui,Jt.resolvedPath=hi,Jt.originalFileName=Ei,Jt.redirectInfo={redirectTarget:Hr,unredirected:Gr},Jt.packageJsonLocations=((Bi=st.packageJsonLocations)===null||Bi===void 0?void 0:Bi.length)?st.packageJsonLocations:void 0,Jt.packageJsonScope=st.packageJsonScope,ve.set(ui,Br>0),Object.defineProperties(Jt,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(Ca){this.redirectInfo.redirectTarget.id=Ca}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(Ca){this.redirectInfo.redirectTarget.symbol=Ca}}}),Jt}function ns(Hr,Gr,Bn,ui,hi){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:Hr,isDefaultLib:Gr||void 0,fileIncludeKind:e.FileIncludeKind[ui.kind]});var Ei=$s(Hr,Gr,Bn,ui,hi);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Ei}function dc(Hr,Gr,Bn,ui){var hi=G(e.getNormalizedAbsolutePath(Hr,Mr),Gr==null?void 0:Gr.getPackageJsonInfoCache(),Bn,ui),Ei=e.getEmitScriptTarget(ui),st=e.getSetExternalModuleIndicator(ui);return typeof hi=="object"?vi(vi({},hi),{languageVersion:Ei,setExternalModuleIndicator:st}):{languageVersion:Ei,impliedNodeFormat:hi,setExternalModuleIndicator:st}}function $s(Hr,Gr,Bn,ui,hi){var Ei,st,Bi=Xn(Hr);if(Ke){var Jt=Ss(Bi);if(!Jt&&or.realpath&&d.preserveSymlinks&&e.isDeclarationFileName(Hr)&&e.stringContains(Hr,e.nodeModulesPathPart)){var Ca=Xn(or.realpath(Hr));Ca!==Bi&&(Jt=Ss(Ca))}if(Jt){var Yt=e.isString(Jt)?ns(Jt,Gr,Bn,ui,hi):void 0;return Yt&&js(Yt,Bi,void 0),Yt}}var Wt=Hr;if(on.has(Bi)){var Ga=on.get(Bi);if(pc(Ga||void 0,ui),Ga&&d.forceConsistentCasingInFileNames){var $t=Ga.fileName,po=Xn($t)!==Xn(Hr);po&&(Hr=Sc(Hr)||Hr);var Do=e.getNormalizedAbsolutePathWithoutRoot($t,Mr),Ns=e.getNormalizedAbsolutePathWithoutRoot(Hr,Mr);Do!==Ns&&ac(Hr,Ga,ui)}return Ga&&ve.get(Ga.path)&&Br===0?(ve.set(Ga.path,!1),d.noResolve||(un(Ga,Gr),$n(Ga)),d.noLib||_t(Ga),pn.set(Ga.path,!1),Rt(Ga)):Ga&&pn.get(Ga.path)&&Br<rn&&(pn.set(Ga.path,!1),Rt(Ga)),Ga||void 0}var jo;if($(ui)&&!Ke){var ys=Ko(Hr);if(ys){if(e.outFile(ys.commandLine.options))return;var Vo=Mc(ys,Hr);Hr=Vo,jo=Xn(Vo)}}var fe=dc(Hr,Ie,or,d),sr=or.getSourceFile(Hr,fe,function(fa){return ga(void 0,ui,e.Diagnostics.Cannot_read_file_0_Colon_1,[Hr,fa])},fn||((Ei=Se==null?void 0:Se.getSourceFileByPath(Xn(Hr)))===null||Ei===void 0?void 0:Ei.impliedNodeFormat)!==fe.impliedNodeFormat);if(hi){var Tr=e.packageIdToString(hi),Fn=ai.get(Tr);if(Fn){var Si=Es(Fn,sr,Hr,Bi,Xn(Hr),Wt,fe);return Pr.add(Fn.path,Hr),js(Si,Bi,jo),pc(Si,ui),Dr.set(Bi,e.packageIdToPackageName(hi)),er.push(Si),Si}else sr&&(ai.set(Tr,sr),Dr.set(Bi,e.packageIdToPackageName(hi)))}if(js(sr,Bi,jo),sr){if(ve.set(Bi,Br>0),sr.fileName=Hr,sr.path=Bi,sr.resolvedPath=Xn(Hr),sr.originalFileName=Wt,sr.packageJsonLocations=((st=fe.packageJsonLocations)===null||st===void 0?void 0:st.length)?fe.packageJsonLocations:void 0,sr.packageJsonScope=fe.packageJsonScope,pc(sr,ui),or.useCaseSensitiveFileNames()){var gt=e.toFileNameLowerCase(Bi),jt=Sr.get(gt);jt?ac(Hr,jt,ui):Sr.set(gt,sr)}ze=ze||sr.hasNoDefaultLib&&!Bn,d.noResolve||(un(sr,Gr),$n(sr)),d.noLib||_t(sr),Rt(sr),Gr?Re.push(sr):er.push(sr)}return sr}function pc(Hr,Gr){Hr&&dr.add(Hr.path,Gr)}function js(Hr,Gr,Bn){Bn?(on.set(Bn,Hr),on.set(Gr,Hr||!1)):on.set(Gr,Hr)}function Sc(Hr){var Gr=Ko(Hr);return Gr&&Mc(Gr,Hr)}function Ko(Hr){if(!(!Te||!Te.length||e.isDeclarationFileName(Hr)||e.fileExtensionIs(Hr,".json")))return Vs(Hr)}function Mc(Hr,Gr){var Bn=e.outFile(Hr.commandLine.options);return Bn?e.changeExtension(Bn,".d.ts"):e.getOutputDeclarationFileName(Gr,Hr.commandLine,!or.useCaseSensitiveFileNames())}function Vs(Hr){Qe===void 0&&(Qe=new e.Map,oc(function(Bn){Xn(d.configFilePath)!==Bn.sourceFile.path&&Bn.commandLine.fileNames.forEach(function(ui){return Qe.set(Xn(ui),Bn.sourceFile.path)})}));var Gr=Qe.get(Xn(Hr));return Gr&&Er(Gr)}function oc(Hr){return e.forEachResolvedProjectReference(Te,Hr)}function Ss(Hr){if(!!e.isDeclarationFileName(Hr))return ue===void 0&&(ue=new e.Map,oc(function(Gr){var Bn=e.outFile(Gr.commandLine.options);if(Bn){var ui=e.changeExtension(Bn,".d.ts");ue.set(Xn(ui),!0)}else{var hi=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Gr.commandLine,!or.useCaseSensitiveFileNames())});e.forEach(Gr.commandLine.fileNames,function(Ei){if(!e.isDeclarationFileName(Ei)&&!e.fileExtensionIs(Ei,".json")){var st=e.getOutputDeclarationFileName(Ei,Gr.commandLine,!or.useCaseSensitiveFileNames(),hi);ue.set(Xn(st),Ei)}})}})),ue.get(Hr)}function ee(Hr){return Ke&&!!Vs(Hr)}function Er(Hr){if(!!Ye)return Ye.get(Hr)||void 0}function un(Hr,Gr){e.forEach(Hr.referencedFiles,function(Bn,ui){ds(ne(Bn.fileName,Hr.fileName),Gr,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:Hr.path,index:ui})})}function $n(Hr){var Gr=Hr.typeReferenceDirectives;if(!!Gr)for(var Bn=jn(Gr,Hr),ui=0;ui<Gr.length;ui++){var hi=Hr.typeReferenceDirectives[ui],Ei=Bn[ui],st=e.toFileNameLowerCase(hi.fileName);e.setResolvedTypeReferenceDirective(Hr,st,Ei);var Bi=hi.resolutionMode||Hr.impliedNodeFormat;Bi&&e.getEmitModuleResolutionKind(d)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(d)!==e.ModuleResolutionKind.NodeNext&&cr.add(e.createDiagnosticForRange(Hr,hi,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Ii(st,Bi,Ei,{kind:e.FileIncludeKind.TypeReferenceDirective,file:Hr.path,index:ui})}}function Ii(Hr,Gr,Bn,ui){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:Hr,hasResolved:!!Bn,refKind:ui.kind,refPath:$(ui)?ui.file:void 0}),at(Hr,Gr,Bn,ui),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function at(Hr,Gr,Bn,ui){var hi=Ur.get(Hr,Gr);if(!(hi&&hi.primary)){var Ei=!0;if(Bn){if(Bn.isExternalLibraryImport&&Br++,Bn.primary)ds(Bn.resolvedFileName,!1,!1,Bn.packageId,ui);else if(hi){if(Bn.resolvedFileName!==hi.resolvedFileName){var st=or.readFile(Bn.resolvedFileName),Bi=Aa(hi.resolvedFileName);st!==Bi.text&&ga(Bi,ui,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Hr,Bn.resolvedFileName,hi.resolvedFileName])}Ei=!1}else ds(Bn.resolvedFileName,!1,!1,Bn.packageId,ui);Bn.isExternalLibraryImport&&Br--}else ga(void 0,ui,e.Diagnostics.Cannot_find_type_definition_file_for_0,[Hr]);Ei&&Ur.set(Hr,Gr,Bn)}}function Ji(Hr){for(var Gr=Hr.split("."),Bn=Gr[1],ui=2;Gr[ui]&&Gr[ui]!=="d";)Bn+=(ui===2?"/":"-")+Gr[ui],ui++;var hi=e.combinePaths(Mr,"__lib_node_modules_lookup_".concat(Hr,"__.ts")),Ei=e.resolveModuleName("@typescript/lib-"+Bn,hi,{moduleResolution:e.ModuleResolutionKind.NodeJs},or,Ie);return(Ei==null?void 0:Ei.resolvedModule)?Ei.resolvedModule.resolvedFileName:e.combinePaths(xe,Hr)}function _t(Hr){e.forEach(Hr.libReferenceDirectives,function(Gr,Bn){var ui=e.toFileNameLowerCase(Gr.fileName),hi=e.libMap.get(ui);if(hi)di(Ji(hi),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:Hr.path,index:Bn});else{var Ei=e.removeSuffix(e.removePrefix(ui,"lib."),".d.ts"),st=e.getSpellingSuggestion(Ei,e.libs,e.identity),Bi=st?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(Cr||(Cr=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:Hr.path,index:Bn},diagnostic:Bi,args:[ui,st]})}})}function Ht(Hr){return or.getCanonicalFileName(Hr)}function Rt(Hr){var Gr;if(la(Hr),Hr.imports.length||Hr.moduleAugmentations.length){var Bn=U(Hr),ui=Vn(Bn,Hr);e.Debug.assert(ui.length===Bn.length);for(var hi=(Ke?(Gr=gn(Hr))===null||Gr===void 0?void 0:Gr.commandLine.options:void 0)||d,Ei=0;Ei<Bn.length;Ei++){var st=ui[Ei];if(e.setResolvedModule(Hr,Bn[Ei],st,De(Hr,Ei)),!!st){var Bi=st.isExternalLibraryImport,Jt=!e.resolutionExtensionIsTSOrJson(st.extension),Ca=Bi&&Jt,Yt=st.resolvedFileName;Bi&&Br++;var Wt=Ca&&Br>rn,Ga=Yt&&!z(hi,st)&&!hi.noResolve&&Ei<Hr.imports.length&&!Wt&&!(Jt&&!e.getAllowJSCompilerOption(hi))&&(e.isInJSFile(Hr.imports[Ei])||!(Hr.imports[Ei].flags&8388608));Wt?pn.set(Hr.path,!0):Ga&&ns(Yt,!1,!1,{kind:e.FileIncludeKind.Import,file:Hr.path,index:Ei},st.packageId),Bi&&Br--}}}else Hr.resolvedModules=void 0}function va(Hr,Gr){for(var Bn=!0,ui=or.getCanonicalFileName(e.getNormalizedAbsolutePath(Gr,Mr)),hi=0,Ei=Hr;hi<Ei.length;hi++){var st=Ei[hi];if(!st.isDeclarationFile){var Bi=or.getCanonicalFileName(e.getNormalizedAbsolutePath(st.fileName,Mr));Bi.indexOf(ui)!==0&&(xa(st,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[st.fileName,Gr]),Bn=!1)}}return Bn}function qe(Hr){Ye||(Ye=new e.Map);var Gr=w(Hr),Bn=Xn(Gr),ui=Ye.get(Bn);if(ui!==void 0)return ui||void 0;var hi,Ei;if(or.getParsedCommandLine){if(hi=or.getParsedCommandLine(Gr),!hi){js(void 0,Bn,void 0),Ye.set(Bn,!1);return}Ei=e.Debug.checkDefined(hi.options.configFile),e.Debug.assert(!Ei.path||Ei.path===Bn),js(Ei,Bn,void 0)}else{var st=e.getNormalizedAbsolutePath(e.getDirectoryPath(Gr),or.getCurrentDirectory());if(Ei=or.getSourceFile(Gr,100),js(Ei,Bn,void 0),Ei===void 0){Ye.set(Bn,!1);return}hi=e.parseJsonSourceFileConfigFileContent(Ei,Ee,st,void 0,Gr)}Ei.fileName=Gr,Ei.path=Bn,Ei.resolvedPath=Bn,Ei.originalFileName=Gr;var Bi={commandLine:hi,sourceFile:Ei};return Ye.set(Bn,Bi),hi.projectReferences&&(Bi.references=hi.projectReferences.map(qe)),Bi}function Tn(){d.strictPropertyInitialization&&!e.getStrictOptionValue(d,"strictNullChecks")&&_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),d.exactOptionalPropertyTypes&&!e.getStrictOptionValue(d,"strictNullChecks")&&_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),d.isolatedModules&&(d.out&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),d.outFile&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),d.inlineSourceMap&&(d.sourceMap&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),d.mapRoot&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),d.composite&&(d.declaration===!1&&_o(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),d.incremental===!1&&_o(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var Hr=e.outFile(d);if(d.tsBuildInfoFile?e.isIncrementalCompilation(d)||_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):d.incremental&&!Hr&&!d.configFilePath&&cr.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),gs(),d.composite)for(var Gr=new e.Set(Y.map(Xn)),Bn=0,ui=wr;Bn<ui.length;Bn++){var hi=ui[Bn];e.sourceFileMayBeEmitted(hi,Pe)&&!Gr.has(hi.path)&&xa(hi,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[hi.fileName,d.configFilePath||""])}if(d.paths){for(var Ei in d.paths)if(!!e.hasProperty(d.paths,Ei))if(e.hasZeroOrOneAsteriskCharacter(Ei)||ws(!0,Ei,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Ei),e.isArray(d.paths[Ei])){var st=d.paths[Ei].length;st===0&&ws(!1,Ei,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Ei);for(var Bi=0;Bi<st;Bi++){var Jt=d.paths[Ei][Bi],Ca=typeof Jt;Ca==="string"?(e.hasZeroOrOneAsteriskCharacter(Jt)||gc(Ei,Bi,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Jt,Ei),!d.baseUrl&&!e.pathIsRelative(Jt)&&!e.pathIsAbsolute(Jt)&&gc(Ei,Bi,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):gc(Ei,Bi,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Jt,Ei,Ca)}}else ws(!1,Ei,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,Ei)}!d.sourceMap&&!d.inlineSourceMap&&(d.inlineSources&&_o(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),d.sourceRoot&&_o(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),d.out&&d.outFile&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),d.mapRoot&&!(d.sourceMap||d.declarationMap)&&_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),d.declarationDir&&(e.getEmitDeclarations(d)||_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Hr&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",d.out?"out":"outFile")),d.declarationMap&&!e.getEmitDeclarations(d)&&_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),d.lib&&d.noLib&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),d.noImplicitUseStrict&&e.getStrictOptionValue(d,"alwaysStrict")&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Yt=e.getEmitScriptTarget(d),Wt=e.find(wr,function(Vo){return e.isExternalModule(Vo)&&!Vo.isDeclarationFile});if(d.isolatedModules){d.module===e.ModuleKind.None&&Yt<2&&_o(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),d.preserveConstEnums===!1&&_o(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");for(var Ga=0,$t=wr;Ga<$t.length;Ga++){var hi=$t[Ga];if(!e.isExternalModule(hi)&&!e.isSourceFileJS(hi)&&!hi.isDeclarationFile&&hi.scriptKind!==6){var po=e.getErrorSpanForNode(hi,hi);cr.add(e.createFileDiagnostic(hi,po.start,po.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(hi.fileName)))}}}else if(Wt&&Yt<2&&d.module===e.ModuleKind.None){var po=e.getErrorSpanForNode(Wt,typeof Wt.externalModuleIndicator=="boolean"?Wt:Wt.externalModuleIndicator);cr.add(e.createFileDiagnostic(Wt,po.start,po.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Hr&&!d.emitDeclarationOnly){if(d.module&&!(d.module===e.ModuleKind.AMD||d.module===e.ModuleKind.System))_o(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,d.out?"out":"outFile","module");else if(d.module===void 0&&Wt){var po=e.getErrorSpanForNode(Wt,typeof Wt.externalModuleIndicator=="boolean"?Wt:Wt.externalModuleIndicator);cr.add(e.createFileDiagnostic(Wt,po.start,po.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,d.out?"out":"outFile"))}}if(d.resolveJsonModule&&(e.getEmitModuleResolutionKind(d)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(d)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(d)!==e.ModuleResolutionKind.NodeNext?_o(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(d)||_o(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),d.outDir||d.rootDir||d.sourceRoot||d.mapRoot){var Do=Ge();d.outDir&&Do===""&&wr.some(function(Vo){return e.getRootLength(Vo.fileName)>1})&&_o(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(d.useDefineForClassFields&&Yt===0&&_o(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),d.checkJs&&!e.getAllowJSCompilerOption(d)&&cr.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),d.emitDeclarationOnly&&(e.getEmitDeclarations(d)||_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),d.noEmit&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),d.emitDecoratorMetadata&&!d.experimentalDecorators&&_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),d.jsxFactory?(d.reactNamespace&&_o(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(d.jsx===4||d.jsx===5)&&_o(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+d.jsx)),e.parseIsolatedEntityName(d.jsxFactory,Yt)||Gs("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,d.jsxFactory)):d.reactNamespace&&!e.isIdentifierText(d.reactNamespace,Yt)&&Gs("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,d.reactNamespace),d.jsxFragmentFactory&&(d.jsxFactory||_o(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(d.jsx===4||d.jsx===5)&&_o(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+d.jsx)),e.parseIsolatedEntityName(d.jsxFragmentFactory,Yt)||Gs("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,d.jsxFragmentFactory)),d.reactNamespace&&(d.jsx===4||d.jsx===5)&&_o(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+d.jsx)),d.jsxImportSource&&d.jsx===2&&_o(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+d.jsx)),d.preserveValueImports&&e.getEmitModuleKind(d)<e.ModuleKind.ES2015&&Gs("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!d.noEmit&&!d.suppressOutputPathCheck){var Ns=qi(),jo=new e.Set;e.forEachEmittedFile(Ns,function(Vo){d.emitDeclarationOnly||ys(Vo.jsFilePath,jo),ys(Vo.declarationFilePath,jo)})}function ys(Vo,fe){if(Vo){var sr=Xn(Vo);if(on.has(sr)){var Tr=void 0;d.configFilePath||(Tr=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),Tr=e.chainDiagnosticMessages(Tr,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Vo),Df(Vo,e.createCompilerDiagnosticFromMessageChain(Tr))}var Fn=or.useCaseSensitiveFileNames()?sr:e.toFileNameLowerCase(sr);fe.has(Fn)?Df(Vo,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Vo)):fe.add(Fn)}}}function Nr(Hr,Gr,Bn,ui){var hi,Ei,st,Bi=$(Gr)?Gr:void 0;Hr&&((hi=dr.get(Hr.path))===null||hi===void 0||hi.forEach(Ga)),Gr&&Ga(Gr),Bi&&(Ei==null?void 0:Ei.length)===1&&(Ei=void 0);var Jt=Bi&&P(Vi,Bi),Ca=Ei&&e.chainDiagnosticMessages(Ei,e.Diagnostics.The_file_is_in_the_program_because_Colon),Yt=Hr&&e.explainIfFileIsRedirectAndImpliedFormat(Hr),Wt=e.chainDiagnosticMessages.apply(void 0,zn([Yt?Ca?zn([Ca],Yt,!0):Yt:Ca,Bn],ui||e.emptyArray,!1));return Jt&&L(Jt)?e.createFileDiagnosticFromMessageChain(Jt.file,Jt.pos,Jt.end-Jt.pos,Wt,st):e.createCompilerDiagnosticFromMessageChain(Wt,st);function Ga($t){(Ei||(Ei=[])).push(e.fileIncludeReasonToDiagnostics(Pe,$t)),!Bi&&$($t)?Bi=$t:Bi!==$t&&(st=e.append(st,co($t))),$t===Gr&&(Gr=void 0)}}function ga(Hr,Gr,Bn,ui){(Cr||(Cr=[])).push({kind:1,file:Hr&&Hr.path,fileProcessingReason:Gr,diagnostic:Bn,args:ui})}function xa(Hr,Gr,Bn){cr.add(Nr(Hr,void 0,Gr,Bn))}function co(Hr){if($(Hr)){var Gr=P(Vi,Hr),Bn;switch(Hr.kind){case e.FileIncludeKind.Import:Bn=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Bn=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Bn=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Bn=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(Hr)}return L(Gr)?e.createFileDiagnostic(Gr.file,Gr.pos,Gr.end-Gr.pos,Bn):void 0}if(!!d.configFile){var ui,hi;switch(Hr.kind){case e.FileIncludeKind.RootFile:if(!d.configFile.configFileSpecs)return;var Ei=e.getNormalizedAbsolutePath(Y[Hr.index],Mr),st=e.getMatchedFileSpec(Pe,Ei);if(st){ui=e.getTsConfigPropArrayElementValue(d.configFile,"files",st),hi=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var Bi=e.getMatchedIncludeSpec(Pe,Ei);if(!Bi||!e.isString(Bi))return;ui=e.getTsConfigPropArrayElementValue(d.configFile,"include",Bi),hi=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Jt=e.Debug.checkDefined(Te==null?void 0:Te[Hr.index]),Ca=F(Ce,Te,function(po,Do,Ns){return po===Jt?{sourceFile:(Do==null?void 0:Do.sourceFile)||d.configFile,index:Ns}:void 0});if(!Ca)return;var Yt=Ca.sourceFile,Wt=Ca.index,Ga=e.firstDefined(e.getTsConfigPropArray(Yt,"references"),function(po){return e.isArrayLiteralExpression(po.initializer)?po.initializer:void 0});return Ga&&Ga.elements.length>Wt?e.createDiagnosticForNodeInSourceFile(Yt,Ga.elements[Wt],Hr.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!d.types)return;ui=Rc("types",Hr.typeReference),hi=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(Hr.index!==void 0){ui=Rc("lib",d.lib[Hr.index]),hi=e.Diagnostics.File_is_library_specified_here;break}var $t=e.forEachEntry(e.targetOptionDeclaration.type,function(po,Do){return po===e.getEmitScriptTarget(d)?Do:void 0});ui=$t?ec("target",$t):void 0,hi=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(Hr)}return ui&&e.createDiagnosticForNodeInSourceFile(d.configFile,ui,hi)}}function gs(){var Hr=d.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(d);F(Ce,Te,function(Gr,Bn,ui){var hi=(Bn?Bn.commandLine.projectReferences:Ce)[ui],Ei=Bn&&Bn.sourceFile;if(!Gr){mc(Ei,ui,e.Diagnostics.File_0_not_found,hi.path);return}var st=Gr.commandLine.options;if(!st.composite||st.noEmit){var Bi=Bn?Bn.commandLine.fileNames:Y;Bi.length&&(st.composite||mc(Ei,ui,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,hi.path),st.noEmit&&mc(Ei,ui,e.Diagnostics.Referenced_project_0_may_not_disable_emit,hi.path))}if(hi.prepend){var Jt=e.outFile(st);Jt?or.fileExists(Jt)||mc(Ei,ui,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Jt,hi.path):mc(Ei,ui,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,hi.path)}!Bn&&Hr&&Hr===e.getTsBuildInfoEmitOutputFilePath(st)&&(mc(Ei,ui,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Hr,hi.path),en.set(Xn(Hr),!0))})}function gc(Hr,Gr,Bn,ui,hi,Ei){for(var st=!0,Bi=qs(),Jt=0,Ca=Bi;Jt<Ca.length;Jt++){var Yt=Ca[Jt];if(e.isObjectLiteralExpression(Yt.initializer))for(var Wt=0,Ga=e.getPropertyAssignment(Yt.initializer,Hr);Wt<Ga.length;Wt++){var $t=Ga[Wt],po=$t.initializer;e.isArrayLiteralExpression(po)&&po.elements.length>Gr&&(cr.add(e.createDiagnosticForNodeInSourceFile(d.configFile,po.elements[Gr],Bn,ui,hi,Ei)),st=!1)}}st&&cr.add(e.createCompilerDiagnostic(Bn,ui,hi,Ei))}function ws(Hr,Gr,Bn,ui){for(var hi=!0,Ei=qs(),st=0,Bi=Ei;st<Bi.length;st++){var Jt=Bi[st];e.isObjectLiteralExpression(Jt.initializer)&&Qu(Jt.initializer,Hr,Gr,void 0,Bn,ui)&&(hi=!1)}hi&&cr.add(e.createCompilerDiagnostic(Bn,ui))}function Lc(Hr){var Gr=$c();return Gr&&e.getPropertyAssignment(Gr,Hr)}function qs(){return Lc("paths")||e.emptyArray}function ec(Hr,Gr){var Bn=Lc(Hr);return Bn&&e.firstDefined(Bn,function(ui){return e.isStringLiteral(ui.initializer)&&ui.initializer.text===Gr?ui.initializer:void 0})}function Rc(Hr,Gr){var Bn=$c();return Bn&&e.getPropertyArrayElementValue(Bn,Hr,Gr)}function _o(Hr,Gr,Bn,ui){xl(!0,Gr,Bn,Hr,Gr,Bn,ui)}function Gs(Hr,Gr,Bn,ui){xl(!1,Hr,void 0,Gr,Bn,ui)}function mc(Hr,Gr,Bn,ui,hi){var Ei=e.firstDefined(e.getTsConfigPropArray(Hr||d.configFile,"references"),function(st){return e.isArrayLiteralExpression(st.initializer)?st.initializer:void 0});Ei&&Ei.elements.length>Gr?cr.add(e.createDiagnosticForNodeInSourceFile(Hr||d.configFile,Ei.elements[Gr],Bn,ui,hi)):cr.add(e.createCompilerDiagnostic(Bn,ui,hi))}function xl(Hr,Gr,Bn,ui,hi,Ei,st){var Bi=$c(),Jt=!Bi||!Qu(Bi,Hr,Gr,Bn,ui,hi,Ei,st);Jt&&cr.add(e.createCompilerDiagnostic(ui,hi,Ei,st))}function $c(){if(vn===void 0){vn=!1;var Hr=e.getTsConfigObjectLiteralExpression(d.configFile);if(Hr)for(var Gr=0,Bn=e.getPropertyAssignment(Hr,"compilerOptions");Gr<Bn.length;Gr++){var ui=Bn[Gr];if(e.isObjectLiteralExpression(ui.initializer)){vn=ui.initializer;break}}}return vn||void 0}function Qu(Hr,Gr,Bn,ui,hi,Ei,st,Bi){for(var Jt=e.getPropertyAssignment(Hr,Bn,ui),Ca=0,Yt=Jt;Ca<Yt.length;Ca++){var Wt=Yt[Ca];cr.add(e.createDiagnosticForNodeInSourceFile(d.configFile,Gr?Wt.name:Wt.initializer,hi,Ei,st,Bi))}return!!Jt.length}function Df(Hr,Gr){en.set(Xn(Hr),!0),cr.add(Gr)}function Xu(Hr){if(d.noEmit)return!1;var Gr=Xn(Hr);if(Vi(Gr))return!1;var Bn=e.outFile(d);if(Bn)return zc(Gr,Bn)||zc(Gr,e.removeFileExtension(Bn)+".d.ts");if(d.declarationDir&&e.containsPath(d.declarationDir,Gr,Mr,!or.useCaseSensitiveFileNames()))return!0;if(d.outDir)return e.containsPath(d.outDir,Gr,Mr,!or.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(Gr,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(Gr)){var ui=e.removeFileExtension(Gr);return!!Vi(ui+".ts")||!!Vi(ui+".tsx")}return!1}function zc(Hr,Gr){return e.comparePaths(Hr,Gr,Mr,!or.useCaseSensitiveFileNames())===0}function Zu(){return or.getSymlinkCache?or.getSymlinkCache():(mr||(mr=e.createSymlinkCache(Mr,Ht)),wr&&Ur&&!mr.hasProcessedResolutions()&&mr.setSymlinksFromResolutions(wr,Ur),mr)}}e.createProgram=x;function T(pe){var He,Be=pe.compilerHost.fileExists,Me=pe.compilerHost.directoryExists,Le=pe.compilerHost.getDirectories,Ae=pe.compilerHost.realpath;if(!pe.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:Oe};pe.compilerHost.fileExists=Oe;var Xe;return Me&&(Xe=pe.compilerHost.directoryExists=function(Ce){return Me.call(pe.compilerHost,Ce)?(d(Ce),!0):pe.getResolvedProjectReferences()?(He||(He=new e.Set,pe.forEachResolvedProjectReference(function(Se){var Re=e.outFile(Se.commandLine.options);if(Re)He.add(e.getDirectoryPath(pe.toPath(Re)));else{var er=Se.commandLine.options.declarationDir||Se.commandLine.options.outDir;er&&He.add(pe.toPath(er))}})),j(Ce,!1)):!1}),Le&&(pe.compilerHost.getDirectories=function(Ce){return!pe.getResolvedProjectReferences()||Me&&Me.call(pe.compilerHost,Ce)?Le.call(pe.compilerHost,Ce):[]}),Ae&&(pe.compilerHost.realpath=function(Ce){var Se;return((Se=pe.getSymlinkCache().getSymlinkedFiles())===null||Se===void 0?void 0:Se.get(pe.toPath(Ce)))||Ae.call(pe.compilerHost,Ce)}),{onProgramCreateComplete:Ne,fileExists:Oe,directoryExists:Xe};function Ne(){pe.compilerHost.fileExists=Be,pe.compilerHost.directoryExists=Me,pe.compilerHost.getDirectories=Le}function Oe(Ce){return Be.call(pe.compilerHost,Ce)?!0:!pe.getResolvedProjectReferences()||!e.isDeclarationFileName(Ce)?!1:j(Ce,!0)}function be(Ce){var Se=pe.getSourceOfProjectReferenceRedirect(pe.toPath(Ce));return Se!==void 0?e.isString(Se)?Be.call(pe.compilerHost,Se):!0:void 0}function Y(Ce){var Se=pe.toPath(Ce),Re="".concat(Se).concat(e.directorySeparator);return e.forEachKey(He,function(er){return Se===er||e.startsWith(er,Re)||e.startsWith(Se,"".concat(er,"/"))})}function d(Ce){var Se;if(!(!pe.getResolvedProjectReferences()||e.containsIgnoredPath(Ce))&&!(!Ae||!e.stringContains(Ce,e.nodeModulesPathPart))){var Re=pe.getSymlinkCache(),er=e.ensureTrailingDirectorySeparator(pe.toPath(Ce));if(!((Se=Re.getSymlinkedDirectories())===null||Se===void 0?void 0:Se.has(er))){var wr=e.normalizePath(Ae.call(pe.compilerHost,Ce)),mr;if(wr===Ce||(mr=e.ensureTrailingDirectorySeparator(pe.toPath(wr)))===er){Re.setSymlinkedDirectory(er,!1);return}Re.setSymlinkedDirectory(Ce,{real:e.ensureTrailingDirectorySeparator(wr),realPath:mr})}}}function j(Ce,Se){var Re,er=Se?function(qr){return be(qr)}:function(qr){return Y(qr)},wr=er(Ce);if(wr!==void 0)return wr;var mr=pe.getSymlinkCache(),Ue=mr.getSymlinkedDirectories();if(!Ue)return!1;var t=pe.toPath(Ce);return e.stringContains(t,e.nodeModulesPathPart)?Se&&((Re=mr.getSymlinkedFiles())===null||Re===void 0?void 0:Re.has(t))?!0:e.firstDefinedIterator(Ue.entries(),function(qr){var ln=qr[0],dr=qr[1];if(!(!dr||!e.startsWith(t,ln))){var vr=er(t.replace(ln,dr.realPath));if(Se&&vr){var kr=e.getNormalizedAbsolutePath(Ce,pe.compilerHost.getCurrentDirectory());mr.setSymlinkedFile(t,"".concat(dr.real).concat(kr.replace(new RegExp(ln,"i"),"")))}return vr}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function Z(pe,He,Be,Me){var Le=pe.getCompilerOptions();if(Le.noEmit)return pe.getSemanticDiagnostics(He,Me),He||e.outFile(Le)?e.emitSkippedWithNoDiagnostics:pe.emitBuildInfo(Be,Me);if(!!Le.noEmitOnError){var Ae=zn(zn(zn(zn([],pe.getOptionsDiagnostics(Me),!0),pe.getSyntacticDiagnostics(He,Me),!0),pe.getGlobalDiagnostics(Me),!0),pe.getSemanticDiagnostics(He,Me),!0);if(Ae.length===0&&e.getEmitDeclarations(pe.getCompilerOptions())&&(Ae=pe.getDeclarationDiagnostics(void 0,Me)),!!Ae.length){var Xe;if(!He&&!e.outFile(Le)){var Ne=pe.emitBuildInfo(Be,Me);Ne.diagnostics&&(Ae=zn(zn([],Ae,!0),Ne.diagnostics,!0)),Xe=Ne.emittedFiles}return{diagnostics:Ae,sourceMaps:void 0,emittedFiles:Xe,emitSkipped:!0}}}}e.handleNoEmitOptions=Z;function B(pe,He){return e.filter(pe,function(Be){return!Be.skippedOn||!He[Be.skippedOn]})}e.filterSemanticDiagnostics=B;function u(pe,He){return He===void 0&&(He=pe),{fileExists:function(Be){return He.fileExists(Be)},readDirectory:function(Be,Me,Le,Ae,Xe){return e.Debug.assertIsDefined(He.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),He.readDirectory(Be,Me,Le,Ae,Xe)},readFile:function(Be){return He.readFile(Be)},useCaseSensitiveFileNames:pe.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return pe.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:pe.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:pe.trace?function(Be){return pe.trace(Be)}:void 0}}e.parseConfigHostFromCompilerHostLike=u;function A(pe,He,Be){if(!pe)return e.emptyArray;for(var Me,Le=0;Le<pe.length;Le++){var Ae=pe[Le],Xe=He(Ae,Le);if(Ae.prepend&&Xe&&Xe.options){var Ne=e.outFile(Xe.options);if(!Ne)continue;var Oe=e.getOutputPathsForBundle(Xe.options,!0),be=Oe.jsFilePath,Y=Oe.sourceMapFilePath,d=Oe.declarationFilePath,j=Oe.declarationMapPath,Ce=Oe.buildInfoPath,Se=e.createInputFiles(Be,be,Y,d,j,Ce);(Me||(Me=[])).push(Se)}}return Me||e.emptyArray}e.createPrependNodes=A;function w(pe,He){var Be=He||pe;return e.resolveConfigFileProjectName(Be.path)}e.resolveProjectReferencePath=w;function z(pe,He){var Be=He.extension;switch(Be){case".ts":case".d.ts":return;case".tsx":return Me();case".jsx":return Me()||Le();case".js":return Le();case".json":return Ae()}function Me(){return pe.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Le(){return e.getAllowJSCompilerOption(pe)||!e.getStrictOptionValue(pe,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function Ae(){return pe.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=z;function U(pe){for(var He=pe.imports,Be=pe.moduleAugmentations,Me=He.map(function(Ne){return Ne.text}),Le=0,Ae=Be;Le<Ae.length;Le++){var Xe=Ae[Le];Xe.kind===10&&Me.push(Xe.text)}return Me}function ge(pe,He){var Be=pe.imports,Me=pe.moduleAugmentations;if(He<Be.length)return Be[He];for(var Le=Be.length,Ae=0,Xe=Me;Ae<Xe.length;Ae++){var Ne=Xe[Ae];if(Ne.kind===10){if(He===Le)return Ne;Le++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=ge})(fr||(fr={}));var fr;(function(e){function o(K,se,O,ie,_e,Q){var p=[],D=K.emit(se,te,ie,O,_e,Q),le=D.emitSkipped,de=D.diagnostics;return{outputFiles:p,emitSkipped:le,diagnostics:de};function te(oe,ae,E){p.push({name:oe,writeByteOrderMark:E,text:ae})}}e.getFileEmitOutput=o;var ne;(function(K){function se(){function H(V,h,F){var $={getKeys:function(L){return h.get(L)},getValues:function(L){return V.get(L)},keys:function(){return V.keys()},deleteKey:function(L){(F||(F=new e.Set)).add(L);var P=V.get(L);return P?(P.forEach(function(N){return ie(h,N,L)}),V.delete(L),!0):!1},set:function(L,P){F==null||F.delete(L);var N=V.get(L);return V.set(L,P),N==null||N.forEach(function(J){P.has(J)||ie(h,J,L)}),P.forEach(function(J){(N==null?void 0:N.has(J))||O(h,J,L)}),$}};return $}return H(new e.Map,new e.Map,void 0)}K.createManyToManyPathMap=se;function O(H,V,h){var F=H.get(V);F||(F=new e.Set,H.set(V,F)),F.add(h)}function ie(H,V,h){var F=H.get(V);return(F==null?void 0:F.delete(h))?(F.size||H.delete(V),!0):!1}function _e(H){return e.mapDefined(H.declarations,function(V){var h;return(h=e.getSourceFileOfNode(V))===null||h===void 0?void 0:h.resolvedPath})}function Q(H,V){var h=H.getSymbolAtLocation(V);return h&&_e(h)}function p(H,V,h,F){return e.toPath(H.getProjectReferenceRedirect(V)||V,h,F)}function D(H,V,h){var F;if(V.imports&&V.imports.length>0)for(var $=H.getTypeChecker(),L=0,P=V.imports;L<P.length;L++){var N=P[L],J=Q($,N);J==null||J.forEach(ge)}var q=e.getDirectoryPath(V.resolvedPath);if(V.referencedFiles&&V.referencedFiles.length>0)for(var G=0,ye=V.referencedFiles;G<ye.length;G++){var b=ye[G],x=p(H,b.fileName,q,h);ge(x)}if(V.resolvedTypeReferenceDirectiveNames&&V.resolvedTypeReferenceDirectiveNames.forEach(function(pe){if(!!pe){var He=pe.resolvedFileName,Be=p(H,He,q,h);ge(Be)}}),V.moduleAugmentations.length)for(var $=H.getTypeChecker(),T=0,Z=V.moduleAugmentations;T<Z.length;T++){var B=Z[T];if(!!e.isStringLiteral(B)){var u=$.getSymbolAtLocation(B);!u||U(u)}}for(var A=0,w=H.getTypeChecker().getAmbientModules();A<w.length;A++){var z=w[A];z.declarations&&z.declarations.length>1&&U(z)}return F;function U(pe){if(!!pe.declarations)for(var He=0,Be=pe.declarations;He<Be.length;He++){var Me=Be[He],Le=e.getSourceFileOfNode(Me);Le&&Le!==V&&ge(Le.resolvedPath)}}function ge(pe){(F||(F=new e.Set)).add(pe)}}function le(H,V){return V&&!V.referencedMap==!H}K.canReuseOldState=le;function de(H,V,h,F){var $,L,P,N=new e.Map,J=H.getCompilerOptions().module!==e.ModuleKind.None?se():void 0,q=J?se():void 0,G=le(J,h);H.getTypeChecker();for(var ye=0,b=H.getSourceFiles();ye<b.length;ye++){var x=b[ye],T=e.Debug.checkDefined(x.version,"Program intended to be used with Builder should have source files with versions set"),Z=G?($=h.oldSignatures)===null||$===void 0?void 0:$.get(x.resolvedPath):void 0,B=Z===void 0?G?(L=h.fileInfos.get(x.resolvedPath))===null||L===void 0?void 0:L.signature:void 0:Z||void 0;if(J){var u=D(H,x,V);if(u&&J.set(x.resolvedPath,u),G){var A=(P=h.oldExportedModulesMap)===null||P===void 0?void 0:P.get(x.resolvedPath),w=A===void 0?h.exportedModulesMap.getValues(x.resolvedPath):A||void 0;w&&q.set(x.resolvedPath,w)}}N.set(x.resolvedPath,{version:T,signature:B,affectsGlobalScope:me(x)||void 0,impliedFormat:x.impliedNodeFormat})}return{fileInfos:N,referencedMap:J,exportedModulesMap:q,useFileVersionAsSignature:!F&&!G}}K.create=de;function te(H){H.allFilesExcludingDefaultLibraryFile=void 0,H.allFileNames=void 0}K.releaseCache=te;function oe(H,V,h,F,$,L){var P,N,J=ae(H,V,h,F,$,L);return(P=H.oldSignatures)===null||P===void 0||P.clear(),(N=H.oldExportedModulesMap)===null||N===void 0||N.clear(),J}K.getFilesAffectedBy=oe;function ae(H,V,h,F,$,L){var P=V.getSourceFileByPath(h);return P?I(H,V,P,F,$,L)?(H.referencedMap?M:X)(H,V,P,F,$,L):[P]:e.emptyArray}K.getFilesAffectedByWithOldState=ae;function E(H,V,h){H.fileInfos.get(h).signature=V,(H.hasCalledUpdateShapeSignature||(H.hasCalledUpdateShapeSignature=new e.Set)).add(h)}K.updateSignatureOfFile=E;function I(H,V,h,F,$,L,P){var N;if(P===void 0&&(P=H.useFileVersionAsSignature),(N=H.hasCalledUpdateShapeSignature)===null||N===void 0?void 0:N.has(h.resolvedPath))return!1;var J=H.fileInfos.get(h.resolvedPath),q=J.signature,G;if(!h.isDeclarationFile&&!P&&V.emit(h,function(b,x,T,Z,B,u){e.Debug.assert(e.isDeclarationFileName(b),"File extension for signature expected to be dts: Got:: ".concat(b)),G=e.computeSignatureWithDiagnostics(h,x,$,L,u),G!==q&&f(H,h,B[0].exportedModulesFromDeclarationEmit)},F,!0,void 0,!0),G===void 0&&(G=h.version,H.exportedModulesMap&&G!==q)){(H.oldExportedModulesMap||(H.oldExportedModulesMap=new e.Map)).set(h.resolvedPath,H.exportedModulesMap.getValues(h.resolvedPath)||!1);var ye=H.referencedMap?H.referencedMap.getValues(h.resolvedPath):void 0;ye?H.exportedModulesMap.set(h.resolvedPath,ye):H.exportedModulesMap.deleteKey(h.resolvedPath)}return(H.oldSignatures||(H.oldSignatures=new e.Map)).set(h.resolvedPath,q||!1),(H.hasCalledUpdateShapeSignature||(H.hasCalledUpdateShapeSignature=new e.Set)).add(h.resolvedPath),J.signature=G,G!==q}K.updateShapeSignature=I;function f(H,V,h){if(!H.exportedModulesMap)return;if((H.oldExportedModulesMap||(H.oldExportedModulesMap=new e.Map)).set(V.resolvedPath,H.exportedModulesMap.getValues(V.resolvedPath)||!1),!h){H.exportedModulesMap.deleteKey(V.resolvedPath);return}var F;h.forEach(function(L){return $(_e(L))}),F?H.exportedModulesMap.set(V.resolvedPath,F):H.exportedModulesMap.deleteKey(V.resolvedPath);function $(L){(L==null?void 0:L.length)&&(F||(F=new e.Set),L.forEach(function(P){return F.add(P)}))}}K.updateExportedModules=f;function m(H,V,h){var F=V.getCompilerOptions();if(e.outFile(F)||!H.referencedMap||me(h))return y(H,V);for(var $=new e.Set,L=[h.resolvedPath];L.length;){var P=L.pop();if(!$.has(P)){$.add(P);var N=H.referencedMap.getValues(P);if(N)for(var J=N.keys(),q=J.next();!q.done;q=J.next())L.push(q.value)}}return e.arrayFrom(e.mapDefinedIterator($.keys(),function(G){var ye,b;return(b=(ye=V.getSourceFileByPath(G))===null||ye===void 0?void 0:ye.fileName)!==null&&b!==void 0?b:G}))}K.getAllDependencies=m;function y(H,V){if(!H.allFileNames){var h=V.getSourceFiles();H.allFileNames=h===e.emptyArray?e.emptyArray:h.map(function(F){return F.fileName})}return H.allFileNames}function S(H,V){var h=H.referencedMap.getKeys(V);return h?e.arrayFrom(h.keys()):[]}K.getReferencedByPaths=S;function k(H){for(var V=0,h=H.statements;V<h.length;V++){var F=h[V];if(!e.isModuleWithStringLiteralName(F))return!1}return!0}function C(H){return e.some(H.moduleAugmentations,function(V){return e.isGlobalScopeAugmentation(V.parent)})}function me(H){return C(H)||!e.isExternalOrCommonJsModule(H)&&!e.isJsonSourceFile(H)&&!k(H)}function De(H,V,h){if(H.allFilesExcludingDefaultLibraryFile)return H.allFilesExcludingDefaultLibraryFile;var F;h&&N(h);for(var $=0,L=V.getSourceFiles();$<L.length;$++){var P=L[$];P!==h&&N(P)}return H.allFilesExcludingDefaultLibraryFile=F||e.emptyArray,H.allFilesExcludingDefaultLibraryFile;function N(J){V.isSourceFileDefaultLibrary(J)||(F||(F=[])).push(J)}}K.getAllFilesExcludingDefaultLibraryFile=De;function X(H,V,h){var F=V.getCompilerOptions();return F&&e.outFile(F)?[h]:De(H,V,h)}function M(H,V,h,F,$,L){if(me(h))return De(H,V,h);var P=V.getCompilerOptions();if(P&&(P.isolatedModules||e.outFile(P)))return[h];var N=new e.Map;N.set(h.resolvedPath,h);for(var J=S(H,h.resolvedPath);J.length>0;){var q=J.pop();if(!N.has(q)){var G=V.getSourceFileByPath(q);N.set(q,G),G&&I(H,V,G,F,$,L)&&J.push.apply(J,S(H,G.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(N.values(),function(ye){return ye}))}})(ne=e.BuilderState||(e.BuilderState={}))})(fr||(fr={}));var fr;(function(e){var o;(function(T){T[T.DtsOnly=0]="DtsOnly",T[T.Full=1]="Full"})(o=e.BuilderFileEmit||(e.BuilderFileEmit={}));function ne(T,Z){return T===Z||T!==void 0&&Z!==void 0&&T.size===Z.size&&!e.forEachKey(T,function(B){return!Z.has(B)})}function K(T,Z,B,u){var A,w,z=e.BuilderState.create(T,Z,B,u);z.program=T;var U=T.getCompilerOptions();z.compilerOptions=U;var ge=e.outFile(U);ge?U.composite&&(B==null?void 0:B.outSignature)&&ge===e.outFile(B==null?void 0:B.compilerOptions)&&(z.outSignature=B==null?void 0:B.outSignature):z.semanticDiagnosticsPerFile=new e.Map,z.changedFilesSet=new e.Set,z.latestChangedDtsFile=U.composite?B==null?void 0:B.latestChangedDtsFile:void 0;var pe=e.BuilderState.canReuseOldState(z.referencedMap,B),He=pe?B.compilerOptions:void 0,Be=pe&&B.semanticDiagnosticsPerFile&&!!z.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(U,He),Me=U.composite&&(B==null?void 0:B.emitSignatures)&&!ge&&!e.compilerOptionsAffectDeclarationPath(U,B.compilerOptions);pe&&((A=B.changedFilesSet)===null||A===void 0||A.forEach(function(Oe){return z.changedFilesSet.add(Oe)}),!ge&&B.affectedFilesPendingEmit&&(z.affectedFilesPendingEmit=B.affectedFilesPendingEmit.slice(),z.affectedFilesPendingEmitKind=B.affectedFilesPendingEmitKind&&new e.Map(B.affectedFilesPendingEmitKind),z.affectedFilesPendingEmitIndex=B.affectedFilesPendingEmitIndex,z.seenAffectedFiles=new e.Set));var Le=z.referencedMap,Ae=pe?B.referencedMap:void 0,Xe=Be&&!U.skipLibCheck==!He.skipLibCheck,Ne=Xe&&!U.skipDefaultLibCheck==!He.skipDefaultLibCheck;return z.fileInfos.forEach(function(Oe,be){var Y,d;if(!pe||!(Y=B.fileInfos.get(be))||Y.version!==Oe.version||Y.impliedFormat!==Oe.impliedFormat||!ne(d=Le&&Le.getValues(be),Ae&&Ae.getValues(be))||d&&e.forEachKey(d,function(Re){return!z.fileInfos.has(Re)&&B.fileInfos.has(Re)}))z.changedFilesSet.add(be);else if(Be){var j=T.getSourceFileByPath(be);if(j.isDeclarationFile&&!Xe||j.hasNoDefaultLib&&!Ne)return;var Ce=B.semanticDiagnosticsPerFile.get(be);Ce&&(z.semanticDiagnosticsPerFile.set(be,B.hasReusableDiagnostic?se(Ce,T,Z):Ce),z.semanticDiagnosticsFromOldState||(z.semanticDiagnosticsFromOldState=new e.Set),z.semanticDiagnosticsFromOldState.add(be))}if(Me){var Se=B.emitSignatures.get(be);Se&&(z.emitSignatures||(z.emitSignatures=new e.Map)).set(be,Se)}}),pe&&e.forEachEntry(B.fileInfos,function(Oe,be){return Oe.affectsGlobalScope&&!z.fileInfos.has(be)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(z,T,void 0).forEach(function(Oe){return z.changedFilesSet.add(Oe.resolvedPath)}):He&&!ge&&e.compilerOptionsAffectEmit(U,He)&&(T.getSourceFiles().forEach(function(Oe){return q(z,Oe.resolvedPath,1)}),e.Debug.assert(!z.seenAffectedFiles||!z.seenAffectedFiles.size),z.seenAffectedFiles=z.seenAffectedFiles||new e.Set),z.buildInfoEmitPending=!pe||z.changedFilesSet.size!==(((w=B.changedFilesSet)===null||w===void 0?void 0:w.size)||0),z}function se(T,Z,B){if(!T.length)return e.emptyArray;var u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(Z.getCompilerOptions()),Z.getCurrentDirectory()));return T.map(function(w){var z=O(w,Z,A);z.reportsUnnecessary=w.reportsUnnecessary,z.reportsDeprecated=w.reportDeprecated,z.source=w.source,z.skippedOn=w.skippedOn;var U=w.relatedInformation;return z.relatedInformation=U?U.length?U.map(function(ge){return O(ge,Z,A)}):[]:void 0,z});function A(w){return e.toPath(w,u,B)}}function O(T,Z,B){var u=T.file;return vi(vi({},T),{file:u?Z.getSourceFileByPath(B(u)):void 0})}function ie(T){e.BuilderState.releaseCache(T),T.program=void 0}function _e(T){var Z=e.outFile(T.compilerOptions);return e.Debug.assert(!T.changedFilesSet.size||Z),{affectedFilesPendingEmit:T.affectedFilesPendingEmit&&T.affectedFilesPendingEmit.slice(),affectedFilesPendingEmitKind:T.affectedFilesPendingEmitKind&&new e.Map(T.affectedFilesPendingEmitKind),affectedFilesPendingEmitIndex:T.affectedFilesPendingEmitIndex,seenEmittedFiles:T.seenEmittedFiles&&new e.Map(T.seenEmittedFiles),programEmitComplete:T.programEmitComplete,emitSignatures:T.emitSignatures&&new e.Map(T.emitSignatures),outSignature:T.outSignature,latestChangedDtsFile:T.latestChangedDtsFile,hasChangedEmitSignature:T.hasChangedEmitSignature,changedFilesSet:Z?new e.Set(T.changedFilesSet):void 0}}function Q(T,Z){T.affectedFilesPendingEmit=Z.affectedFilesPendingEmit,T.affectedFilesPendingEmitKind=Z.affectedFilesPendingEmitKind,T.affectedFilesPendingEmitIndex=Z.affectedFilesPendingEmitIndex,T.seenEmittedFiles=Z.seenEmittedFiles,T.programEmitComplete=Z.programEmitComplete,T.emitSignatures=Z.emitSignatures,T.outSignature=Z.outSignature,T.latestChangedDtsFile=Z.latestChangedDtsFile,T.hasChangedEmitSignature=Z.hasChangedEmitSignature,Z.changedFilesSet&&(T.changedFilesSet=Z.changedFilesSet)}function p(T,Z){e.Debug.assert(!Z||!T.affectedFiles||T.affectedFiles[T.affectedFilesIndex-1]!==Z||!T.semanticDiagnosticsPerFile.has(Z.resolvedPath))}function D(T,Z,B,u,A){for(var w,z;;){var U=T.affectedFiles;if(U){for(var ge=T.seenAffectedFiles,pe=T.affectedFilesIndex;pe<U.length;){var He=U[pe];if(!ge.has(He.resolvedPath))return T.affectedFilesIndex=pe,oe(T,He,Z,B,u,A),He;pe++}T.changedFilesSet.delete(T.currentChangedFilePath),T.currentChangedFilePath=void 0,(w=T.oldSignatures)===null||w===void 0||w.clear(),(z=T.oldExportedModulesMap)===null||z===void 0||z.clear(),T.affectedFiles=void 0}var Be=T.changedFilesSet.keys().next();if(Be.done)return;var Me=e.Debug.checkDefined(T.program),Le=Me.getCompilerOptions();if(e.outFile(Le))return e.Debug.assert(!T.semanticDiagnosticsPerFile),Me;T.affectedFiles=e.BuilderState.getFilesAffectedByWithOldState(T,Me,Be.value,Z,B,u),T.currentChangedFilePath=Be.value,T.affectedFilesIndex=0,T.seenAffectedFiles||(T.seenAffectedFiles=new e.Set)}}function le(T){T.affectedFilesPendingEmit=void 0,T.affectedFilesPendingEmitKind=void 0,T.affectedFilesPendingEmitIndex=void 0}function de(T){var Z=T.affectedFilesPendingEmit;if(Z){for(var B=T.seenEmittedFiles||(T.seenEmittedFiles=new e.Map),u=T.affectedFilesPendingEmitIndex;u<Z.length;u++){var A=e.Debug.checkDefined(T.program).getSourceFileByPath(Z[u]);if(A){var w=B.get(A.resolvedPath),z=e.Debug.checkDefined(e.Debug.checkDefined(T.affectedFilesPendingEmitKind).get(A.resolvedPath));if(w===void 0||w<z)return T.affectedFilesPendingEmitIndex=u,{affectedFile:A,emitKind:z}}}le(T)}}function te(T){if(!T.cleanedDiagnosticsOfLibFiles){T.cleanedDiagnosticsOfLibFiles=!0;var Z=e.Debug.checkDefined(T.program),B=Z.getCompilerOptions();e.forEach(Z.getSourceFiles(),function(u){return Z.isSourceFileDefaultLibrary(u)&&!e.skipTypeChecking(u,B,Z)&&E(T,u.resolvedPath)})}}function oe(T,Z,B,u,A,w){if(E(T,Z.resolvedPath),T.allFilesExcludingDefaultLibraryFile===T.affectedFiles){te(T),e.BuilderState.updateShapeSignature(T,e.Debug.checkDefined(T.program),Z,B,u,A);return}T.compilerOptions.assumeChangesOnlyAffectDirectDependencies||m(T,Z,B,u,A,w)}function ae(T,Z,B,u,A,w){if(E(T,Z),!T.changedFilesSet.has(Z)){var z=e.Debug.checkDefined(T.program),U=z.getSourceFileByPath(Z);U&&(e.BuilderState.updateShapeSignature(T,z,U,B,u,A,!w.disableUseFileVersionAsSignature),e.getEmitDeclarations(T.compilerOptions)&&q(T,Z,0))}}function E(T,Z){return T.semanticDiagnosticsFromOldState?(T.semanticDiagnosticsFromOldState.delete(Z),T.semanticDiagnosticsPerFile.delete(Z),!T.semanticDiagnosticsFromOldState.size):!0}function I(T,Z){var B=e.Debug.checkDefined(T.oldSignatures).get(Z)||void 0,u=e.Debug.checkDefined(T.fileInfos.get(Z)).signature;return u!==B}function f(T,Z,B,u,A,w){var z;return((z=T.fileInfos.get(Z))===null||z===void 0?void 0:z.affectsGlobalScope)?(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(T,T.program,void 0).forEach(function(U){return ae(T,U.resolvedPath,B,u,A,w)}),te(T),!0):!1}function m(T,Z,B,u,A,w){var z;if(!(!T.exportedModulesMap||!T.changedFilesSet.has(Z.resolvedPath))&&!!I(T,Z.resolvedPath)){if(T.compilerOptions.isolatedModules){var U=new e.Map;U.set(Z.resolvedPath,!0);for(var ge=e.BuilderState.getReferencedByPaths(T,Z.resolvedPath);ge.length>0;){var pe=ge.pop();if(!U.has(pe)){if(U.set(pe,!0),f(T,pe,B,u,A,w))return;if(ae(T,pe,B,u,A,w),I(T,pe)){var He=e.Debug.checkDefined(T.program).getSourceFileByPath(pe);ge.push.apply(ge,e.BuilderState.getReferencedByPaths(T,He.resolvedPath))}}}}var Be=new e.Set;(z=T.exportedModulesMap.getKeys(Z.resolvedPath))===null||z===void 0||z.forEach(function(Me){if(f(T,Me,B,u,A,w))return!0;var Le=T.referencedMap.getKeys(Me);return Le&&e.forEachKey(Le,function(Ae){return y(T,Ae,Be,B,u,A,w)})})}}function y(T,Z,B,u,A,w,z){var U,ge;if(!!e.tryAddToSet(B,Z)){if(f(T,Z,u,A,w,z))return!0;ae(T,Z,u,A,w,z),(U=T.exportedModulesMap.getKeys(Z))===null||U===void 0||U.forEach(function(pe){return y(T,pe,B,u,A,w,z)}),(ge=T.referencedMap.getKeys(Z))===null||ge===void 0||ge.forEach(function(pe){return!B.has(pe)&&ae(T,pe,u,A,w,z)})}}function S(T,Z,B,u,A){A?T.buildInfoEmitPending=!1:Z===T.program?(T.changedFilesSet.clear(),T.programEmitComplete=!0):(T.seenAffectedFiles.add(Z.resolvedPath),T.buildInfoEmitPending=!0,B!==void 0&&(T.seenEmittedFiles||(T.seenEmittedFiles=new e.Map)).set(Z.resolvedPath,B),u?T.affectedFilesPendingEmitIndex++:T.affectedFilesIndex++)}function k(T,Z,B){return S(T,B),{result:Z,affected:B}}function C(T,Z,B,u,A,w){return S(T,B,u,A,w),{result:Z,affected:B}}function me(T,Z,B){return e.concatenate(De(T,Z,B),e.Debug.checkDefined(T.program).getProgramDiagnostics(Z))}function De(T,Z,B){var u=Z.resolvedPath;if(T.semanticDiagnosticsPerFile){var A=T.semanticDiagnosticsPerFile.get(u);if(A)return e.filterSemanticDiagnostics(A,T.compilerOptions)}var w=e.Debug.checkDefined(T.program).getBindAndCheckDiagnostics(Z,B);return T.semanticDiagnosticsPerFile&&T.semanticDiagnosticsPerFile.set(u,w),e.filterSemanticDiagnostics(w,T.compilerOptions)}function X(T){return!!e.outFile(T.options||{})}e.isProgramBundleEmitBuildInfo=X;function M(T,Z){var B=e.outFile(T.compilerOptions);if(B&&!T.compilerOptions.composite)return;var u=e.Debug.checkDefined(T.program).getCurrentDirectory(),A=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(T.compilerOptions),u)),w=T.latestChangedDtsFile?ln(T.latestChangedDtsFile):void 0;if(B){var z=[],U=[];T.program.getRootFileNames().forEach(function(Cr){var rn=T.program.getSourceFile(Cr);!rn||(z.push(dr(rn.resolvedPath)),U.push(rn.version))});var ge={fileNames:z,fileInfos:U,options:Ur(T.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:T.outSignature,latestChangedDtsFile:w};return ge}var pe=[],He=new e.Map,Be,Me,Le,Ae=e.arrayFrom(T.fileInfos.entries(),function(Cr){var rn,Br,pn=Cr[0],ve=Cr[1],or=vr(pn);e.Debug.assert(pe[or-1]===dr(pn));var Ee=(rn=T.oldSignatures)===null||rn===void 0?void 0:rn.get(pn),ze=Ee!==void 0?Ee||void 0:ve.signature;if(T.compilerOptions.composite){var Ar=T.program.getSourceFileByPath(pn);if(!e.isJsonSourceFile(Ar)&&e.sourceFileMayBeEmitted(Ar,T.program)){var xe=(Br=T.emitSignatures)===null||Br===void 0?void 0:Br.get(pn);xe!==ze&&(Le||(Le=[])).push(xe===void 0?or:[or,xe])}}return ve.version===ze?ve.affectsGlobalScope||ve.impliedFormat?{version:ve.version,signature:void 0,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}:ve.version:ze!==void 0?Ee===void 0?ve:{version:ve.version,signature:ze,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}:{version:ve.version,signature:!1,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}}),Xe;T.referencedMap&&(Xe=e.arrayFrom(T.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(Cr){return[vr(Cr),kr(T.referencedMap.getValues(Cr))]}));var Ne;T.exportedModulesMap&&(Ne=e.mapDefined(e.arrayFrom(T.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(Cr){var rn,Br=(rn=T.oldExportedModulesMap)===null||rn===void 0?void 0:rn.get(Cr);if(Br===void 0)return[vr(Cr),kr(T.exportedModulesMap.getValues(Cr))];if(Br)return[vr(Cr),kr(Br)]}));var Oe;if(T.semanticDiagnosticsPerFile)for(var be=0,Y=e.arrayFrom(T.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);be<Y.length;be++){var d=Y[be],j=T.semanticDiagnosticsPerFile.get(d);(Oe||(Oe=[])).push(j.length?[vr(d),V(j,dr)]:vr(d))}var Ce;if(T.affectedFilesPendingEmit)for(var Se=new e.Set,Re=0,er=T.affectedFilesPendingEmit.slice(T.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);Re<er.length;Re++){var wr=er[Re];e.tryAddToSet(Se,wr)&&(Ce||(Ce=[])).push([vr(wr),T.affectedFilesPendingEmitKind.get(wr)])}var mr;if(T.changedFilesSet.size)for(var Ue=0,t=e.arrayFrom(T.changedFilesSet.keys()).sort(e.compareStringsCaseSensitive);Ue<t.length;Ue++){var wr=t[Ue];(mr||(mr=[])).push(vr(wr))}var qr={fileNames:pe,fileInfos:Ae,options:Ur(T.compilerOptions,"affectsMultiFileEmitBuildInfo"),fileIdsList:Be,referencedMap:Xe,exportedModulesMap:Ne,semanticDiagnosticsPerFile:Oe,affectedFilesPendingEmit:Ce,changeFileSet:mr,emitSignatures:Le,latestChangedDtsFile:w};return qr;function ln(Cr){return dr(e.getNormalizedAbsolutePath(Cr,u))}function dr(Cr){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(A,Cr,Z))}function vr(Cr){var rn=He.get(Cr);return rn===void 0&&(pe.push(dr(Cr)),He.set(Cr,rn=pe.length)),rn}function kr(Cr){var rn=e.arrayFrom(Cr.keys(),vr).sort(e.compareValues),Br=rn.join(),pn=Me==null?void 0:Me.get(Br);return pn===void 0&&((Be||(Be=[])).push(rn),(Me||(Me=new e.Map)).set(Br,pn=Be.length)),pn}function Ur(Cr,rn){for(var Br,pn=e.getOptionsNameMap().optionsNameMap,ve=0,or=e.getOwnKeys(Cr).sort(e.compareStringsCaseSensitive);ve<or.length;ve++){var Ee=or[ve],ze=pn.get(Ee.toLowerCase());(ze==null?void 0:ze[rn])&&((Br||(Br={}))[Ee]=H(ze,Cr[Ee],ln))}return Br}}function H(T,Z,B){if(T){if(T.type==="list"){var u=Z;if(T.element.isFilePath&&u.length)return u.map(B)}else if(T.isFilePath)return B(Z)}return Z}function V(T,Z){return e.Debug.assert(!!T.length),T.map(function(B){var u=h(B,Z);u.reportsUnnecessary=B.reportsUnnecessary,u.reportDeprecated=B.reportsDeprecated,u.source=B.source,u.skippedOn=B.skippedOn;var A=B.relatedInformation;return u.relatedInformation=A?A.length?A.map(function(w){return h(w,Z)}):[]:void 0,u})}function h(T,Z){var B=T.file;return vi(vi({},T),{file:B?Z(B.resolvedPath):void 0})}var F;(function(T){T[T.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",T[T.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(F=e.BuilderProgramKind||(e.BuilderProgramKind={}));function $(T,Z,B,u,A,w){var z,U,ge;return T===void 0?(e.Debug.assert(Z===void 0),z=B,ge=u,e.Debug.assert(!!ge),U=ge.getProgram()):e.isArray(T)?(ge=u,U=e.createProgram({rootNames:T,options:Z,host:B,oldProgram:ge&&ge.getProgramOrUndefined(),configFileParsingDiagnostics:A,projectReferences:w}),z=B):(U=T,z=Z,ge=B,A=u),{host:z,newProgram:U,oldProgram:ge,configFileParsingDiagnostics:A||e.emptyArray}}e.getBuilderCreationParameters=$;function L(T,Z){return(Z==null?void 0:Z.sourceMapUrlPos)!==void 0?T.substring(0,Z.sourceMapUrlPos):T}function P(T,Z,B,u,A){var w;Z=L(Z,A);var z;return((w=A==null?void 0:A.diagnostics)===null||w===void 0?void 0:w.length)&&(Z+=A.diagnostics.map(function(pe){return"".concat(ge(pe)).concat(e.DiagnosticCategory[pe.category]).concat(pe.code,": ").concat(U(pe.messageText))}).join(`
  247. `)),(B!=null?B:e.generateDjb2Hash)(Z);function U(pe){return e.isString(pe)?pe:pe===void 0?"":pe.next?pe.messageText+pe.next.map(U).join(`
  248. `):pe.messageText}function ge(pe){return pe.file.resolvedPath===T.resolvedPath?"(".concat(pe.start,",").concat(pe.length,")"):(z===void 0&&(z=e.getDirectoryPath(T.resolvedPath)),"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(z,pe.file.resolvedPath,u)),"(").concat(pe.start,",").concat(pe.length,")"))}}e.computeSignatureWithDiagnostics=P;function N(T,Z,B){return(Z!=null?Z:e.generateDjb2Hash)(L(T,B))}e.computeSignature=N;function J(T,Z){var B=Z.newProgram,u=Z.host,A=Z.oldProgram,w=Z.configFileParsingDiagnostics,z=A&&A.getState();if(z&&B===z.program&&w===B.getConfigFileParsingDiagnostics())return B=void 0,z=void 0,A;var U=e.createGetCanonicalFileName(u.useCaseSensitiveFileNames()),ge=e.maybeBind(u,u.createHash),pe=K(B,U,z,u.disableUseFileVersionAsSignature);B.getProgramBuildInfo=function(){return M(pe,U)},B=void 0,A=void 0,z=void 0;var He=function(){return pe},Be=x(He,w);return Be.getState=He,Be.saveEmitState=function(){return _e(pe)},Be.restoreEmitState=function(be){return Q(pe,be)},Be.hasChangedEmitSignature=function(){return!!pe.hasChangedEmitSignature},Be.getAllDependencies=function(be){return e.BuilderState.getAllDependencies(pe,e.Debug.checkDefined(pe.program),be)},Be.getSemanticDiagnostics=Oe,Be.emit=Xe,Be.releaseProgram=function(){return ie(pe)},T===F.SemanticDiagnosticsBuilderProgram?Be.getSemanticDiagnosticsOfNextAffectedFile=Ne:T===F.EmitAndSemanticDiagnosticsBuilderProgram?(Be.getSemanticDiagnosticsOfNextAffectedFile=Ne,Be.emitNextAffectedFile=Le,Be.emitBuildInfo=Me):e.notImplemented(),Be;function Me(be,Y){if(pe.buildInfoEmitPending){var d=e.Debug.checkDefined(pe.program).emitBuildInfo(be||e.maybeBind(u,u.writeFile),Y);return pe.buildInfoEmitPending=!1,d}return e.emitSkippedWithNoDiagnostics}function Le(be,Y,d,j){var Ce=D(pe,Y,ge,U,u),Se=1,Re=!1;if(!Ce)if(e.outFile(pe.compilerOptions)){var mr=e.Debug.checkDefined(pe.program);if(pe.programEmitComplete)return;Ce=mr}else{var er=de(pe);if(!er){if(!pe.buildInfoEmitPending)return;var wr=e.Debug.checkDefined(pe.program);return C(pe,wr.emitBuildInfo(be||e.maybeBind(u,u.writeFile),Y),wr,1,!1,!0)}Ce=er.affectedFile,Se=er.emitKind,Re=!0}return C(pe,e.Debug.checkDefined(pe.program).emit(Ce===pe.program?void 0:Ce,e.getEmitDeclarations(pe.compilerOptions)?Ae(be,j):be||e.maybeBind(u,u.writeFile),Y,d||Se===0,j),Ce,Se,Re)}function Ae(be,Y){return function(d,j,Ce,Se,Re,er){var wr,mr,Ue,t,qr,ln,dr;if(e.isDeclarationFileName(d))if(e.outFile(pe.compilerOptions)){if(pe.compilerOptions.composite){var ve=N(j,ge,er);if(ve===pe.outSignature)return;pe.outSignature=ve,pe.hasChangedEmitSignature=!0,pe.latestChangedDtsFile=d}}else{e.Debug.assert((Re==null?void 0:Re.length)===1);var vr=void 0;if(!Y){var kr=Re[0],Ur=pe.fileInfos.get(kr.resolvedPath);if(Ur.signature===kr.version){var Cr=P(kr,j,ge,U,er);if(((wr=er==null?void 0:er.diagnostics)===null||wr===void 0?void 0:wr.length)||(vr=Cr),Cr!==kr.version)if(u.storeFilesChangingSignatureDuringEmit&&((mr=pe.filesChangingSignature)!==null&&mr!==void 0?mr:pe.filesChangingSignature=new e.Set).add(kr.resolvedPath),pe.exportedModulesMap&&e.BuilderState.updateExportedModules(pe,kr,kr.exportedModulesFromDeclarationEmit),pe.affectedFiles){var rn=(Ue=pe.oldSignatures)===null||Ue===void 0?void 0:Ue.get(kr.resolvedPath);rn===void 0&&((t=pe.oldSignatures)!==null&&t!==void 0?t:pe.oldSignatures=new e.Map).set(kr.resolvedPath,Ur.signature||!1),Ur.signature=Cr}else Ur.signature=Cr,(qr=pe.oldExportedModulesMap)===null||qr===void 0||qr.clear()}}if(pe.compilerOptions.composite){var Br=Re[0].resolvedPath,pn=(ln=pe.emitSignatures)===null||ln===void 0?void 0:ln.get(Br);if(vr!=null||(vr=N(j,ge,er)),vr===pn)return;((dr=pe.emitSignatures)!==null&&dr!==void 0?dr:pe.emitSignatures=new e.Map).set(Br,vr),pe.hasChangedEmitSignature=!0,pe.latestChangedDtsFile=d}}be?be(d,j,Ce,Se,Re,er):u.writeFile?u.writeFile(d,j,Ce,Se,Re,er):pe.program.writeFile(d,j,Ce,Se,Re,er)}}function Xe(be,Y,d,j,Ce){var Se;T===F.EmitAndSemanticDiagnosticsBuilderProgram&&p(pe,be);var Re=e.handleNoEmitOptions(Be,be,Y,d);if(Re)return Re;if(!be)if(T===F.EmitAndSemanticDiagnosticsBuilderProgram){for(var er=[],wr=!1,mr=void 0,Ue=[],t=void 0;t=Le(Y,d,j,Ce);)wr=wr||t.result.emitSkipped,mr=e.addRange(mr,t.result.diagnostics),Ue=e.addRange(Ue,t.result.emittedFiles),er=e.addRange(er,t.result.sourceMaps);return{emitSkipped:wr,diagnostics:mr||e.emptyArray,emittedFiles:Ue,sourceMaps:er}}else((Se=pe.affectedFilesPendingEmitKind)===null||Se===void 0?void 0:Se.size)&&(e.Debug.assert(T===F.SemanticDiagnosticsBuilderProgram),(!j||e.every(pe.affectedFilesPendingEmit,function(qr,ln){return ln<pe.affectedFilesPendingEmitIndex||pe.affectedFilesPendingEmitKind.get(qr)===0}))&&le(pe));return e.Debug.checkDefined(pe.program).emit(be,e.getEmitDeclarations(pe.compilerOptions)?Ae(Y,Ce):Y||e.maybeBind(u,u.writeFile),d,j,Ce)}function Ne(be,Y){for(;;){var d=D(pe,be,ge,U,u);if(d){if(d===pe.program)return k(pe,pe.program.getSemanticDiagnostics(void 0,be),d)}else return;if((T===F.EmitAndSemanticDiagnosticsBuilderProgram||pe.compilerOptions.noEmit||pe.compilerOptions.noEmitOnError)&&q(pe,d.resolvedPath,1),Y&&Y(d)){S(pe,d);continue}return k(pe,me(pe,d,be),d)}}function Oe(be,Y){p(pe,be);var d=e.Debug.checkDefined(pe.program).getCompilerOptions();if(e.outFile(d))return e.Debug.assert(!pe.semanticDiagnosticsPerFile),e.Debug.checkDefined(pe.program).getSemanticDiagnostics(be,Y);if(be)return me(pe,be,Y);for(;Ne(Y););for(var j,Ce=0,Se=e.Debug.checkDefined(pe.program).getSourceFiles();Ce<Se.length;Ce++){var Re=Se[Ce];j=e.addRange(j,me(pe,Re,Y))}return j||e.emptyArray}}e.createBuilderProgram=J;function q(T,Z,B){T.affectedFilesPendingEmit||(T.affectedFilesPendingEmit=[]),T.affectedFilesPendingEmitKind||(T.affectedFilesPendingEmitKind=new e.Map);var u=T.affectedFilesPendingEmitKind.get(Z);T.affectedFilesPendingEmit.push(Z),T.affectedFilesPendingEmitKind.set(Z,u||B),T.affectedFilesPendingEmitIndex===void 0&&(T.affectedFilesPendingEmitIndex=0)}function G(T){return e.isString(T)?{version:T,signature:T,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(T.signature)?T:{version:T.version,signature:T.signature===!1?void 0:T.version,affectsGlobalScope:T.affectsGlobalScope,impliedFormat:T.impliedFormat}}e.toBuilderStateFileInfo=G;function ye(T,Z,B){var u,A,w,z,U=e.getDirectoryPath(e.getNormalizedAbsolutePath(Z,B.getCurrentDirectory())),ge=e.createGetCanonicalFileName(B.useCaseSensitiveFileNames()),pe,He,Be,Me=T.latestChangedDtsFile?Ne(T.latestChangedDtsFile):void 0;if(X(T))pe={fileInfos:new e.Map,compilerOptions:T.options?e.convertToOptionsWithAbsolutePaths(T.options,Ne):{},latestChangedDtsFile:Me,outSignature:T.outSignature};else{He=(u=T.fileNames)===null||u===void 0?void 0:u.map(Xe),Be=(A=T.fileIdsList)===null||A===void 0?void 0:A.map(function(d){return new e.Set(d.map(Oe))});var Le=new e.Map,Ae=((w=T.options)===null||w===void 0?void 0:w.composite)&&!e.outFile(T.options)?new e.Map:void 0;T.fileInfos.forEach(function(d,j){var Ce=Oe(j+1),Se=G(d);Le.set(Ce,Se),Ae&&Se.signature&&Ae.set(Ce,Se.signature)}),(z=T.emitSignatures)===null||z===void 0||z.forEach(function(d){e.isNumber(d)?Ae.delete(Oe(d)):Ae.set(Oe(d[0]),d[1])}),pe={fileInfos:Le,compilerOptions:T.options?e.convertToOptionsWithAbsolutePaths(T.options,Ne):{},referencedMap:Y(T.referencedMap),exportedModulesMap:Y(T.exportedModulesMap),semanticDiagnosticsPerFile:T.semanticDiagnosticsPerFile&&e.arrayToMap(T.semanticDiagnosticsPerFile,function(d){return Oe(e.isNumber(d)?d:d[0])},function(d){return e.isNumber(d)?e.emptyArray:d[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(T.affectedFilesPendingEmit,function(d){return Oe(d[0])}),affectedFilesPendingEmitKind:T.affectedFilesPendingEmit&&e.arrayToMap(T.affectedFilesPendingEmit,function(d){return Oe(d[0])},function(d){return d[1]}),affectedFilesPendingEmitIndex:T.affectedFilesPendingEmit&&0,changedFilesSet:new e.Set(e.map(T.changeFileSet,Oe)),latestChangedDtsFile:Me,emitSignatures:(Ae==null?void 0:Ae.size)?Ae:void 0}}return{getState:function(){return pe},saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return pe.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop,hasChangedEmitSignature:e.returnFalse};function Xe(d){return e.toPath(d,U,ge)}function Ne(d){return e.getNormalizedAbsolutePath(d,U)}function Oe(d){return He[d-1]}function be(d){return Be[d-1]}function Y(d){if(!!d){var j=e.BuilderState.createManyToManyPathMap();return d.forEach(function(Ce){var Se=Ce[0],Re=Ce[1];return j.set(Oe(Se),be(Re))}),j}}}e.createBuilderProgramUsingProgramBuildInfo=ye;function b(T,Z,B){var u=e.getDirectoryPath(e.getNormalizedAbsolutePath(Z,B.getCurrentDirectory())),A=e.createGetCanonicalFileName(B.useCaseSensitiveFileNames()),w=new e.Map;return T.fileInfos.forEach(function(z,U){var ge=e.toPath(T.fileNames[U],u,A),pe=e.isString(z)?z:z.version;w.set(ge,pe)}),w}e.getBuildInfoFileVersionMap=b;function x(T,Z){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:B,getProgramOrUndefined:function(){return T().program},releaseProgram:function(){return T().program=void 0},getCompilerOptions:function(){return T().compilerOptions},getSourceFile:function(u){return B().getSourceFile(u)},getSourceFiles:function(){return B().getSourceFiles()},getOptionsDiagnostics:function(u){return B().getOptionsDiagnostics(u)},getGlobalDiagnostics:function(u){return B().getGlobalDiagnostics(u)},getConfigFileParsingDiagnostics:function(){return Z},getSyntacticDiagnostics:function(u,A){return B().getSyntacticDiagnostics(u,A)},getDeclarationDiagnostics:function(u,A){return B().getDeclarationDiagnostics(u,A)},getSemanticDiagnostics:function(u,A){return B().getSemanticDiagnostics(u,A)},emit:function(u,A,w,z,U){return B().emit(u,A,w,z,U)},emitBuildInfo:function(u,A){return B().emitBuildInfo(u,A)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return B().getCurrentDirectory()},close:e.noop};function B(){return e.Debug.checkDefined(T().program)}}e.createRedirectedBuilderProgram=x})(fr||(fr={}));var fr;(function(e){function o(se,O,ie,_e,Q,p){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(se,O,ie,_e,Q,p))}e.createSemanticDiagnosticsBuilderProgram=o;function ne(se,O,ie,_e,Q,p){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(se,O,ie,_e,Q,p))}e.createEmitAndSemanticDiagnosticsBuilderProgram=ne;function K(se,O,ie,_e,Q,p){var D=e.getBuilderCreationParameters(se,O,ie,_e,Q,p),le=D.newProgram,de=D.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:le,compilerOptions:le.getCompilerOptions()}},de)}e.createAbstractBuilder=K})(fr||(fr={}));var fr;(function(e){function o(O){return e.endsWith(O,"/node_modules/.staging")?e.removeSuffix(O,"/.staging"):e.some(e.ignoredPaths,function(ie){return e.stringContains(O,ie)})?void 0:O}e.removeIgnoredPath=o;function ne(O){var ie=e.getRootLength(O);if(O.length===ie)return!1;var _e=O.indexOf(e.directorySeparator,ie);if(_e===-1)return!1;var Q=O.substring(ie,_e+1),p=ie>1||O.charCodeAt(0)!==47;if(p&&O.search(/[a-zA-Z]:/)!==0&&Q.search(/[a-zA-Z]\$\//)===0){if(_e=O.indexOf(e.directorySeparator,_e+1),_e===-1)return!1;Q=O.substring(ie+Q.length,_e+1)}if(p&&Q.search(/users\//i)!==0)return!0;for(var D=_e+1,le=2;le>0;le--)if(D=O.indexOf(e.directorySeparator,D)+1,D===0)return!1;return!0}e.canWatchDirectoryOrFile=ne;function K(O,ie,_e){var Q,p,D,le=e.createMultiMap(),de=[],te=[],oe=e.createMultiMap(),ae=new e.Map,E=!1,I,f,m,y,S,k=e.memoize(function(){return O.getCurrentDirectory()}),C=O.getCachedDirectoryStructureHost(),me=new e.Map,De=e.createCacheWithRedirects(),X=e.createCacheWithRedirects(),M=e.createModuleResolutionCache(k(),O.getCanonicalFileName,void 0,De,X),H=new e.Map,V=e.createCacheWithRedirects(),h=e.createTypeReferenceDirectiveResolutionCache(k(),O.getCanonicalFileName,void 0,M.getPackageJsonInfoCache(),V),F=[".ts",".tsx",".js",".jsx",".json"],$=new e.Map,L=new e.Map,P=new e.Map,N=ie&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(ie,k())),J=N&&O.toPath(N),q=J!==void 0?J.split(e.directorySeparator).length:0,G=new e.Map;return{getModuleResolutionCache:function(){return M},startRecordingFilesWithChangedResolutions:Z,finishRecordingFilesWithChangedResolutions:B,startCachingPerDirectoryResolution:w,finishCachingPerDirectoryResolution:z,resolveModuleNames:Be,getResolvedModuleWithFailedLookupLocationsFromCache:Me,resolveTypeReferenceDirectives:He,removeResolutionsFromProjectReferenceRedirects:mr,removeResolutionsOfFile:Ue,hasChangedAutomaticTypeDirectiveNames:function(){return E},invalidateResolutionOfFile:qr,invalidateResolutionsOfFailedLookupLocations:vr,setFilesWithInvalidatedNonRelativeUnresolvedImports:ln,createHasInvalidatedResolutions:A,isFileWithInvalidatedNonRelativeUnresolvedImports:u,updateTypeRootsWatch:ve,closeTypeRootsWatch:rn,clear:T};function ye(Ee){return Ee.resolvedModule}function b(Ee){return Ee.resolvedTypeReferenceDirective}function x(Ee,ze){return Ee===void 0||ze.length<=Ee.length?!1:e.startsWith(ze,Ee)&&ze[Ee.length]===e.directorySeparator}function T(){e.clearMap(L,e.closeFileWatcherOf),e.clearMap(P,e.closeFileWatcherOf),$.clear(),le.clear(),rn(),me.clear(),H.clear(),oe.clear(),de.length=0,te.length=0,m=void 0,y=void 0,S=void 0,f=void 0,I=void 0,M.clear(),h.clear(),ae.clear(),E=!1}function Z(){Q=[]}function B(){var Ee=Q;return Q=void 0,Ee}function u(Ee){if(!D)return!1;var ze=D.get(Ee);return!!ze&&!!ze.length}function A(Ee){vr();var ze=p;return p=void 0,function(Ar){return Ee(Ar)||!!(ze==null?void 0:ze.has(Ar))||u(Ar)}}function w(){M.clearAllExceptPackageJsonInfoCache(),h.clearAllExceptPackageJsonInfoCache(),le.forEach(j),le.clear()}function z(Ee,ze){D=void 0,le.forEach(j),le.clear(),Ee!==ze&&(Ee==null||Ee.getSourceFiles().forEach(function(Ar){for(var xe,cr,Mr,Rr=e.isExternalOrCommonJsModule(Ar)&&(cr=(xe=Ar.packageJsonLocations)===null||xe===void 0?void 0:xe.length)!==null&&cr!==void 0?cr:0,Qr=(Mr=ae.get(Ar.path))!==null&&Mr!==void 0?Mr:e.emptyArray,en=Qr.length;en<Rr;en++)d(Ar.packageJsonLocations[en],!1);if(Qr.length>Rr)for(var en=Rr;en<Qr.length;en++)P.get(Qr[en]).files--;Rr?ae.set(Ar.path,Ar.packageJsonLocations):ae.delete(Ar.path)}),ae.forEach(function(Ar,xe){(Ee==null?void 0:Ee.getSourceFileByPath(xe))||(Ar.forEach(function(cr){return P.get(cr).files--}),ae.delete(xe))})),L.forEach(function(Ar,xe){Ar.refCount===0&&(L.delete(xe),Ar.watcher.close())}),P.forEach(function(Ar,xe){Ar.files===0&&Ar.resolutions===0&&(P.delete(xe),Ar.watcher.close())}),E=!1}function U(Ee,ze,Ar,xe,cr,Mr,Rr){var Qr,en,vn=e.resolveModuleName(Ee,ze,Ar,xe,M,cr,Rr);if(!O.getGlobalCache)return vn;var Ie=O.getGlobalCache();if(Ie!==void 0&&!e.isExternalModuleNameRelative(Ee)&&!(vn.resolvedModule&&e.extensionIsTS(vn.resolvedModule.extension))){var We=e.loadModuleFromGlobalCache(e.Debug.checkDefined(O.globalCacheResolutionModuleName)(Ee),O.projectName,Ar,xe,Ie,M),xr=We.resolvedModule,Lr=We.failedLookupLocations,xn=We.affectingLocations;if(xr)return vn.resolvedModule=xr,(Qr=vn.failedLookupLocations).push.apply(Qr,Lr),(en=vn.affectingLocations).push.apply(en,xn),vn}return vn}function ge(Ee,ze,Ar,xe,cr,Mr,Rr){return e.resolveTypeReferenceDirective(Ee,ze,Ar,xe,cr,h,Rr)}function pe(Ee){var ze,Ar,xe,cr=Ee.names,Mr=Ee.containingFile,Rr=Ee.redirectedReference,Qr=Ee.cache,en=Ee.perDirectoryCacheWithRedirects,vn=Ee.loader,Ie=Ee.getResolutionWithResolvedFileName,We=Ee.shouldRetryResolution,xr=Ee.reusedNames,Lr=Ee.logChanges,xn=Ee.containingSourceFile,An=Ee.containingSourceFileMode,Qn=O.toPath(Mr),ai=Qr.get(Qn)||Qr.set(Qn,e.createModeAwareCache()).get(Qn),Dr=e.getDirectoryPath(Qn),Pr=en.getOrCreateMapOfCacheRedirects(Rr),jr=Pr.get(Dr);jr||(jr=e.createModeAwareCache(),Pr.set(Dr,jr));for(var on=[],je=O.getCompilationSettings(),Sr=Lr&&u(Qn),Te=O.getCurrentProgram(),Ye=Te&&Te.getResolvedProjectReferenceToRedirect(Mr),Qe=Ye?!Rr||Rr.sourceFile.path!==Ye.sourceFile.path:!!Rr,ue=e.createModeAwareCache(),Ke=0,tr=0,hr=cr;tr<hr.length;tr++){var _r=hr[tr],Or=e.isString(_r)?_r:_r.fileName.toLowerCase(),zr=e.isString(_r)?xn?e.getModeForResolutionAtIndex(xn,Ke):void 0:e.getModeForFileReference(_r,An);Ke++;var fn=ai.get(Or,zr);if(!ue.has(Or,zr)&&Qe||!fn||fn.isInvalidated||Sr&&!e.isExternalModuleNameRelative(Or)&&We(fn)){var Vr=fn,Wn=jr.get(Or,zr);if(Wn){fn=Wn;var bn=((ze=O.getCompilerHost)===null||ze===void 0?void 0:ze.call(O))||O;if(e.isTraceEnabled(je,bn)){var qn=Ie(fn);e.trace(bn,vn===U?(qn==null?void 0:qn.resolvedFileName)?qn.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(qn==null?void 0:qn.resolvedFileName)?qn.packagetId?e.Diagnostics.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:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,Or,Mr,e.getDirectoryPath(Mr),qn==null?void 0:qn.resolvedFileName,(qn==null?void 0:qn.packagetId)&&e.packageIdToString(qn.packagetId))}}else fn=vn(Or,Mr,je,((Ar=O.getCompilerHost)===null||Ar===void 0?void 0:Ar.call(O))||O,Rr,xn,zr),jr.set(Or,zr,fn),O.onDiscoveredSymlink&&se(fn)&&O.onDiscoveredSymlink();ai.set(Or,zr,fn),Oe(Or,fn,Qn,Ie),Vr&&Se(Vr,Qn,Ie),Lr&&Q&&!yn(Vr,fn)&&(Q.push(Qn),Lr=!1)}else{var bn=((xe=O.getCompilerHost)===null||xe===void 0?void 0:xe.call(O))||O;if(e.isTraceEnabled(je,bn)&&!ue.has(Or,zr)){var qn=Ie(fn);e.trace(bn,vn===U?(qn==null?void 0:qn.resolvedFileName)?qn.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(qn==null?void 0:qn.resolvedFileName)?qn.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Or,Mr,qn==null?void 0:qn.resolvedFileName,(qn==null?void 0:qn.packagetId)&&e.packageIdToString(qn.packagetId))}}e.Debug.assert(fn!==void 0&&!fn.isInvalidated),ue.set(Or,zr,!0),on.push(Ie(fn))}return ai.forEach(function(Hn,Ai,ti){!ue.has(Ai,ti)&&!e.contains(xr,Ai)&&(Se(Hn,Qn,Ie),ai.delete(Ai,ti))}),on;function yn(Hn,Ai){if(Hn===Ai)return!0;if(!Hn||!Ai)return!1;var ti=Ie(Hn),Hi=Ie(Ai);return ti===Hi?!0:!ti||!Hi?!1:ti.resolvedFileName===Hi.resolvedFileName}}function He(Ee,ze,Ar,xe){return pe({names:Ee,containingFile:ze,redirectedReference:Ar,cache:H,perDirectoryCacheWithRedirects:V,loader:ge,getResolutionWithResolvedFileName:b,shouldRetryResolution:function(cr){return cr.resolvedTypeReferenceDirective===void 0},containingSourceFileMode:xe})}function Be(Ee,ze,Ar,xe,cr){return pe({names:Ee,containingFile:ze,redirectedReference:xe,cache:me,perDirectoryCacheWithRedirects:De,loader:U,getResolutionWithResolvedFileName:ye,shouldRetryResolution:function(Mr){return!Mr.resolvedModule||!e.resolutionExtensionIsTSOrJson(Mr.resolvedModule.extension)},reusedNames:Ar,logChanges:_e,containingSourceFile:cr})}function Me(Ee,ze,Ar){var xe=me.get(O.toPath(ze));if(!!xe)return xe.get(Ee,Ar)}function Le(Ee){return e.endsWith(Ee,"/node_modules/@types")}function Ae(Ee,ze){if(x(J,ze)){Ee=e.isRootedDiskPath(Ee)?e.normalizePath(Ee):e.getNormalizedAbsolutePath(Ee,k());var Ar=ze.split(e.directorySeparator),xe=Ee.split(e.directorySeparator);return e.Debug.assert(xe.length===Ar.length,"FailedLookup: ".concat(Ee," failedLookupLocationPath: ").concat(ze)),Ar.length>q+1?{dir:xe.slice(0,q+1).join(e.directorySeparator),dirPath:Ar.slice(0,q+1).join(e.directorySeparator)}:{dir:N,dirPath:J,nonRecursive:!1}}return Xe(e.getDirectoryPath(e.getNormalizedAbsolutePath(Ee,k())),e.getDirectoryPath(ze))}function Xe(Ee,ze){for(;e.pathContainsNodeModules(ze);)Ee=e.getDirectoryPath(Ee),ze=e.getDirectoryPath(ze);if(e.isNodeModulesDirectory(ze))return ne(e.getDirectoryPath(ze))?{dir:Ee,dirPath:ze}:void 0;var Ar=!0,xe,cr;if(J!==void 0)for(;!x(ze,J);){var Mr=e.getDirectoryPath(ze);if(Mr===ze)break;Ar=!1,xe=ze,cr=Ee,ze=Mr,Ee=e.getDirectoryPath(Ee)}return ne(ze)?{dir:cr||Ee,dirPath:xe||ze,nonRecursive:Ar}:void 0}function Ne(Ee){return e.fileExtensionIsOneOf(Ee,F)}function Oe(Ee,ze,Ar,xe){if(ze.refCount)ze.refCount++,e.Debug.assertIsDefined(ze.files);else{ze.refCount=1,e.Debug.assert(e.length(ze.files)===0),e.isExternalModuleNameRelative(Ee)?be(ze):le.add(Ee,ze);var cr=xe(ze);cr&&cr.resolvedFileName&&oe.add(O.toPath(cr.resolvedFileName),ze)}(ze.files||(ze.files=[])).push(Ar)}function be(Ee){e.Debug.assert(!!Ee.refCount);var ze=Ee.failedLookupLocations,Ar=Ee.affectingLocations;if(!(!ze.length&&!Ar.length)){ze.length&&de.push(Ee);for(var xe=!1,cr=0,Mr=ze;cr<Mr.length;cr++){var Rr=Mr[cr],Qr=O.toPath(Rr),en=Ae(Rr,Qr);if(en){var vn=en.dir,Ie=en.dirPath,We=en.nonRecursive;if(!Ne(Qr)){var xr=$.get(Qr)||0;$.set(Qr,xr+1)}Ie===J?(e.Debug.assert(!We),xe=!0):Ce(vn,Ie,We)}}xe&&Ce(N,J,!0),Y(Ee,!ze.length)}}function Y(Ee,ze){e.Debug.assert(!!Ee.refCount);var Ar=Ee.affectingLocations;if(!!Ar.length){ze&&te.push(Ee);for(var xe=0,cr=Ar;xe<cr.length;xe++){var Mr=cr[xe];d(Mr,!0)}}}function d(Ee,ze){var Ar=P.get(Ee);if(Ar){ze?Ar.resolutions++:Ar.files++;return}var xe=Ee;if(O.realpath&&(xe=O.realpath(Ee),Ee!==xe)){var cr=P.get(xe);if(cr){ze?cr.resolutions++:cr.files++,cr.paths.add(Ee),P.set(Ee,cr);return}}var Mr=new e.Set;Mr.add(xe);var Rr=ne(O.toPath(xe))?O.watchAffectingFileLocation(xe,function(en,vn){C==null||C.addOrDeleteFile(en,O.toPath(xe),vn);var Ie=M.getPackageJsonInfoCache().getInternalMap();Mr.forEach(function(We){Qr.resolutions&&(f!=null?f:f=new e.Set).add(We),Qr.files&&(I!=null?I:I=new e.Set).add(We),Ie==null||Ie.delete(O.toPath(We))}),O.scheduleInvalidateResolutionsOfFailedLookupLocations()}):e.noopFileWatcher,Qr={watcher:Rr!==e.noopFileWatcher?{close:function(){Rr.close(),Rr=e.noopFileWatcher}}:Rr,resolutions:ze?1:0,files:ze?0:1,paths:Mr};P.set(xe,Qr),Ee!==xe&&(P.set(Ee,Qr),Mr.add(Ee))}function j(Ee,ze){var Ar=O.getCurrentProgram();!Ar||!Ar.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ze)?Ee.forEach(be):Ee.forEach(function(xe){return Y(xe,!0)})}function Ce(Ee,ze,Ar){var xe=L.get(ze);xe?(e.Debug.assert(!!Ar==!!xe.nonRecursive),xe.refCount++):L.set(ze,{watcher:er(Ee,ze,Ar),refCount:1,nonRecursive:Ar})}function Se(Ee,ze,Ar){if(e.unorderedRemoveItem(e.Debug.checkDefined(Ee.files),ze),Ee.refCount--,!Ee.refCount){var xe=Ar(Ee);xe&&xe.resolvedFileName&&oe.remove(O.toPath(xe.resolvedFileName),Ee);var cr=Ee.failedLookupLocations,Mr=Ee.affectingLocations;if(e.unorderedRemoveItem(de,Ee)){for(var Rr=!1,Qr=0,en=cr;Qr<en.length;Qr++){var vn=en[Qr],Ie=O.toPath(vn),We=Ae(vn,Ie);if(We){var xr=We.dirPath,Lr=$.get(Ie);Lr&&(Lr===1?$.delete(Ie):(e.Debug.assert(Lr>1),$.set(Ie,Lr-1))),xr===J?Rr=!0:Re(xr)}}Rr&&Re(J)}else Mr.length&&e.unorderedRemoveItem(te,Ee);for(var xn=0,An=Mr;xn<An.length;xn++){var Qn=An[xn],ai=P.get(Qn);ai.resolutions--}}}function Re(Ee){var ze=L.get(Ee);ze.refCount--}function er(Ee,ze,Ar){return O.watchDirectoryOfFailedLookupLocation(Ee,function(xe){var cr=O.toPath(xe);C&&C.addOrDeleteFileOrDirectory(xe,cr),dr(cr,ze===cr)},Ar?0:1)}function wr(Ee,ze,Ar){var xe=Ee.get(ze);xe&&(xe.forEach(function(cr){return Se(cr,ze,Ar)}),Ee.delete(ze))}function mr(Ee){if(!!e.fileExtensionIs(Ee,".json")){var ze=O.getCurrentProgram();if(!!ze){var Ar=ze.getResolvedProjectReferenceByPath(Ee);!Ar||Ar.commandLine.fileNames.forEach(function(xe){return Ue(O.toPath(xe))})}}}function Ue(Ee){wr(me,Ee,ye),wr(H,Ee,b)}function t(Ee,ze){if(!Ee)return!1;for(var Ar=!1,xe=0,cr=Ee;xe<cr.length;xe++){var Mr=cr[xe];if(!(Mr.isInvalidated||!ze(Mr))){Mr.isInvalidated=Ar=!0;for(var Rr=0,Qr=e.Debug.checkDefined(Mr.files);Rr<Qr.length;Rr++){var en=Qr[Rr];(p!=null?p:p=new e.Set).add(en),E=E||e.endsWith(en,e.inferredTypesContainingFile)}}}return Ar}function qr(Ee){Ue(Ee);var ze=E;t(oe.get(Ee),e.returnTrue)&&E&&!ze&&O.onChangedAutomaticTypeDirectiveNames()}function ln(Ee){e.Debug.assert(D===Ee||D===void 0),D=Ee}function dr(Ee,ze){if(ze)(S||(S=new e.Set)).add(Ee);else{var Ar=o(Ee);if(!Ar||(Ee=Ar,O.fileIsOpen(Ee)))return!1;var xe=e.getDirectoryPath(Ee);if(Le(Ee)||e.isNodeModulesDirectory(Ee)||Le(xe)||e.isNodeModulesDirectory(xe))(m||(m=new e.Set)).add(Ee),(y||(y=new e.Set)).add(Ee);else{if(!Ne(Ee)&&!$.has(Ee)||e.isEmittedFileOfProgram(O.getCurrentProgram(),Ee))return!1;(m||(m=new e.Set)).add(Ee);var cr=e.parseNodeModuleFromPath(Ee);cr&&(y||(y=new e.Set)).add(cr)}}O.scheduleInvalidateResolutionsOfFailedLookupLocations()}function vr(){var Ee,ze=!1;if(I&&((Ee=O.getCurrentProgram())===null||Ee===void 0||Ee.getSourceFiles().forEach(function(xe){e.some(xe.packageJsonLocations,function(cr){return I.has(cr)})&&((p!=null?p:p=new e.Set).add(xe.path),ze=!0)}),I=void 0),!m&&!y&&!S&&!f)return ze;ze=t(de,kr)||ze;var Ar=M.getPackageJsonInfoCache().getInternalMap();return Ar&&(m||y||S)&&Ar.forEach(function(xe,cr){return Ur(cr)?Ar.delete(cr):void 0}),m=void 0,y=void 0,S=void 0,ze=t(te,Cr)||ze,f=void 0,ze}function kr(Ee){return Cr(Ee)?!0:!m&&!y&&!S?!1:Ee.failedLookupLocations.some(function(ze){return Ur(O.toPath(ze))})}function Ur(Ee){return(m==null?void 0:m.has(Ee))||e.firstDefinedIterator((y==null?void 0:y.keys())||e.emptyIterator,function(ze){return e.startsWith(Ee,ze)?!0:void 0})||e.firstDefinedIterator((S==null?void 0:S.keys())||e.emptyIterator,function(ze){return x(ze,Ee)?!0:void 0})}function Cr(Ee){return!!f&&Ee.affectingLocations.some(function(ze){return f.has(ze)})}function rn(){e.clearMap(G,e.closeFileWatcher)}function Br(Ee,ze){if(x(J,ze))return J;var Ar=Xe(Ee,ze);return Ar&&L.has(Ar.dirPath)?Ar.dirPath:void 0}function pn(Ee,ze){return O.watchTypeRootsDirectory(ze,function(Ar){var xe=O.toPath(Ar);C&&C.addOrDeleteFileOrDirectory(Ar,xe),E=!0,O.onChangedAutomaticTypeDirectiveNames();var cr=Br(ze,Ee);cr&&dr(xe,cr===xe)},1)}function ve(){var Ee=O.getCompilationSettings();if(Ee.types){rn();return}var ze=e.getEffectiveTypeRoots(Ee,{directoryExists:or,getCurrentDirectory:k});ze?e.mutateMap(G,e.arrayToMap(ze,function(Ar){return O.toPath(Ar)}),{createNewValue:pn,onDeleteValue:e.closeFileWatcher}):rn()}function or(Ee){var ze=e.getDirectoryPath(e.getDirectoryPath(Ee)),Ar=O.toPath(ze);return Ar===J||ne(Ar)}}e.createResolutionCache=K;function se(O){var ie,_e;return!!(((ie=O.resolvedModule)===null||ie===void 0?void 0:ie.originalPath)||((_e=O.resolvedTypeReferenceDirective)===null||_e===void 0?void 0:_e.originalPath))}})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(x){x[x.Relative=0]="Relative",x[x.NonRelative=1]="NonRelative",x[x.Shortest=2]="Shortest",x[x.ExternalNonRelative=3]="ExternalNonRelative"})(K||(K={}));var se;(function(x){x[x.Minimal=0]="Minimal",x[x.Index=1]="Index",x[x.JsExtension=2]="JsExtension"})(se||(se={}));function O(x,T,Z,B){var u=T.importModuleSpecifierPreference,A=T.importModuleSpecifierEnding;return{relativePreference:u==="relative"?0:u==="non-relative"?1:u==="project-relative"?3:2,ending:w()};function w(){switch(A){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return S(B)||_e(Z,B.path,x)?2:e.getEmitModuleResolutionKind(Z)!==e.ModuleResolutionKind.NodeJs?1:0}}}function ie(x,T,Z,B){return{relativePreference:e.isExternalModuleNameRelative(T)?0:1,ending:e.hasJSFileExtension(T)||_e(x,Z,B)?2:e.getEmitModuleResolutionKind(x)!==e.ModuleResolutionKind.NodeJs||e.endsWith(T,"index")?1:0}}function _e(x,T,Z){var B;return e.getEmitModuleResolutionKind(x)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(x)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(T,(B=Z.getPackageJsonInfoCache)===null||B===void 0?void 0:B.call(Z),Q(Z),x)!==e.ModuleKind.CommonJS}function Q(x){var T;return{fileExists:x.fileExists,readFile:e.Debug.checkDefined(x.readFile),directoryExists:x.directoryExists,getCurrentDirectory:x.getCurrentDirectory,realpath:x.realpath,useCaseSensitiveFileNames:(T=x.useCaseSensitiveFileNames)===null||T===void 0?void 0:T.call(x)}}function p(x,T,Z,B,u,A,w){w===void 0&&(w={});var z=de(x,T,Z,B,u,ie(x,A,Z,u),{},w);if(z!==A)return z}ne.updateModuleSpecifier=p;function D(x,T,Z,B,u,A){return A===void 0&&(A={}),de(x,T,Z,B,u,O(u,{},x,T),{},A)}ne.getModuleSpecifier=D;function le(x,T,Z,B,u,A){A===void 0&&(A={});var w=f(T.path,B),z=De(T.path,Z,B,u,A);return e.firstDefined(z,function(U){return L(U,w,T,B,x,u,!0,A.overrideImportMode)})}ne.getNodeModulesPackageName=le;function de(x,T,Z,B,u,A,w,z){z===void 0&&(z={});var U=f(Z,u),ge=De(Z,B,u,w,z);return e.firstDefined(ge,function(pe){return L(pe,U,T,u,x,w,void 0,z.overrideImportMode)})||m(B,U,x,u,z.overrideImportMode||T.impliedNodeFormat,A)}function te(x,T,Z,B,u){return u===void 0&&(u={}),oe(x,T,Z,B,u)[0]}ne.tryGetModuleSpecifiersFromCache=te;function oe(x,T,Z,B,u){var A;u===void 0&&(u={});var w=e.getSourceFileOfModule(x);if(!w)return e.emptyArray;var z=(A=Z.getModuleSpecifierCache)===null||A===void 0?void 0:A.call(Z),U=z==null?void 0:z.get(T.path,w.path,B,u);return[U==null?void 0:U.moduleSpecifiers,w,U==null?void 0:U.modulePaths,z]}function ae(x,T,Z,B,u,A,w){return w===void 0&&(w={}),E(x,T,Z,B,u,A,w).moduleSpecifiers}ne.getModuleSpecifiers=ae;function E(x,T,Z,B,u,A,w){w===void 0&&(w={});var z=!1,U=M(x,T);if(U)return{moduleSpecifiers:[U],computedWithoutCache:z};var ge=oe(x,B,u,A,w),pe=ge[0],He=ge[1],Be=ge[2],Me=ge[3];if(pe)return{moduleSpecifiers:pe,computedWithoutCache:z};if(!He)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:z};z=!0,Be||(Be=X(B.path,He.originalFileName,u));var Le=I(Be,Z,B,u,A,w);return Me==null||Me.set(B.path,He.path,A,w,Be,Le),{moduleSpecifiers:Le,computedWithoutCache:z}}ne.getModuleSpecifiersWithCacheInfo=E;function I(x,T,Z,B,u,A){A===void 0&&(A={});var w=f(Z.path,B),z=O(B,u,T,Z),U=e.forEach(x,function(be){return e.forEach(B.getFileIncludeReasons().get(e.toPath(be.path,B.getCurrentDirectory(),w.getCanonicalFileName)),function(Y){if(!(Y.kind!==e.FileIncludeKind.Import||Y.file!==Z.path)&&!(Z.impliedNodeFormat&&Z.impliedNodeFormat!==e.getModeForResolutionAtIndex(Z,Y.index))){var d=e.getModuleNameStringLiteralAt(Z,Y.index).text;return z.relativePreference!==1||!e.pathIsRelative(d)?d:void 0}})});if(U){var ge=[U];return ge}for(var pe=e.some(x,function(be){return be.isInNodeModules}),He,Be,Me,Le=0,Ae=x;Le<Ae.length;Le++){var Xe=Ae[Le],Ne=L(Xe,w,Z,B,T,u,void 0,A.overrideImportMode);if(He=e.append(He,Ne),Ne&&Xe.isRedirect)return He;if(!Ne&&!Xe.isRedirect){var Oe=m(Xe.path,w,T,B,A.overrideImportMode||Z.impliedNodeFormat,z);e.pathIsBareSpecifier(Oe)?Be=e.append(Be,Oe):(!pe||Xe.isInNodeModules)&&(Me=e.append(Me,Oe))}}return(Be==null?void 0:Be.length)?Be:(He==null?void 0:He.length)?He:e.Debug.checkDefined(Me)}function f(x,T){var Z=e.createGetCanonicalFileName(T.useCaseSensitiveFileNames?T.useCaseSensitiveFileNames():!0),B=e.getDirectoryPath(x);return{getCanonicalFileName:Z,importingSourceFileName:x,sourceDirectory:B}}function m(x,T,Z,B,u,A){var w=A.ending,z=A.relativePreference,U=Z.baseUrl,ge=Z.paths,pe=Z.rootDirs,He=T.sourceDirectory,Be=T.getCanonicalFileName,Me=pe&&$(pe,x,He,Be,w,Z)||J(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(He,x,Be)),w,Z);if(!U&&!ge||z===0)return Me;var Le=e.getNormalizedAbsolutePath(e.getPathsBasePath(Z,B)||U,B.getCurrentDirectory()),Ae=ye(x,Le,Be);if(!Ae)return Me;var Xe=ge&&V(Ae,ge,H(w,Z,u),B,Z),Ne=Xe===void 0&&U!==void 0?J(Ae,w,Z):Xe;if(!Ne)return Me;if(z===1)return Ne;if(z===3){var Oe=Z.configFilePath?e.toPath(e.getDirectoryPath(Z.configFilePath),B.getCurrentDirectory(),T.getCanonicalFileName):T.getCanonicalFileName(B.getCurrentDirectory()),be=e.toPath(x,Oe,Be),Y=e.startsWith(He,Oe),d=e.startsWith(be,Oe);if(Y&&!d||!Y&&d)return Ne;var j=C(B,e.getDirectoryPath(be)),Ce=C(B,He);return Ce!==j?Ne:Me}return z!==2&&e.Debug.assertNever(z),b(Ne)||y(Me)<y(Ne)?Me:Ne}function y(x){for(var T=0,Z=e.startsWith(x,"./")?2:0;Z<x.length;Z++)x.charCodeAt(Z)===47&&T++;return T}ne.countPathComponents=y;function S(x){var T=x.imports;return e.firstDefined(T,function(Z){var B=Z.text;return e.pathIsRelative(B)?e.hasJSFileExtension(B):void 0})||!1}function k(x,T){return e.compareBooleans(T.isRedirect,x.isRedirect)||e.compareNumberOfDirectorySeparators(x.path,T.path)}function C(x,T){return x.getNearestAncestorDirectoryWithPackageJson?x.getNearestAncestorDirectoryWithPackageJson(T):!!e.forEachAncestorDirectory(T,function(Z){return x.fileExists(e.combinePaths(Z,"package.json"))?!0:void 0})}function me(x,T,Z,B,u){var A,w=e.hostGetCanonicalFileName(Z),z=Z.getCurrentDirectory(),U=Z.isSourceOfProjectReferenceRedirect(T)?Z.getProjectReferenceRedirect(T):void 0,ge=e.toPath(T,z,w),pe=Z.redirectTargetsMap.get(ge)||e.emptyArray,He=zn(zn(zn([],U?[U]:e.emptyArray,!0),[T],!1),pe,!0),Be=He.map(function(Oe){return e.getNormalizedAbsolutePath(Oe,z)}),Me=!e.every(Be,e.containsIgnoredPath);if(!B){var Le=e.forEach(Be,function(Oe){return!(Me&&e.containsIgnoredPath(Oe))&&u(Oe,U===Oe)});if(Le)return Le}var Ae=(A=Z.getSymlinkCache)===null||A===void 0?void 0:A.call(Z).getSymlinkedDirectoriesByRealpath(),Xe=e.getNormalizedAbsolutePath(T,z),Ne=Ae&&e.forEachAncestorDirectory(e.getDirectoryPath(Xe),function(Oe){var be=Ae.get(e.ensureTrailingDirectorySeparator(e.toPath(Oe,z,w)));if(!!be)return e.startsWithDirectory(x,Oe,w)?!1:e.forEach(Be,function(Y){if(!!e.startsWithDirectory(Y,Oe,w))for(var d=e.getRelativePathFromDirectory(Oe,Y,w),j=0,Ce=be;j<Ce.length;j++){var Se=Ce[j],Re=e.resolvePath(Se,d),er=u(Re,Y===U);if(Me=!0,er)return er}})});return Ne||(B?e.forEach(Be,function(Oe){return Me&&e.containsIgnoredPath(Oe)?void 0:u(Oe,Oe===U)}):void 0)}ne.forEachFileNameOfModule=me;function De(x,T,Z,B,u){var A;u===void 0&&(u={});var w=e.toPath(T,Z.getCurrentDirectory(),e.hostGetCanonicalFileName(Z)),z=(A=Z.getModuleSpecifierCache)===null||A===void 0?void 0:A.call(Z);if(z){var U=z.get(x,w,B,u);if(U==null?void 0:U.modulePaths)return U.modulePaths}var ge=X(x,T,Z);return z&&z.setModulePaths(x,w,B,u,ge),ge}function X(x,T,Z){var B=e.hostGetCanonicalFileName(Z),u=new e.Map,A=!1;me(x,T,Z,!0,function(Be,Me){var Le=e.pathContainsNodeModules(Be);u.set(Be,{path:B(Be),isRedirect:Me,isInNodeModules:Le}),A=A||Le});for(var w=[],z=function(Be){var Me=e.ensureTrailingDirectorySeparator(Be),Le;u.forEach(function(Xe,Ne){var Oe=Xe.path,be=Xe.isRedirect,Y=Xe.isInNodeModules;e.startsWith(Oe,Me)&&((Le||(Le=[])).push({path:Ne,isRedirect:be,isInNodeModules:Y}),u.delete(Ne))}),Le&&(Le.length>1&&Le.sort(k),w.push.apply(w,Le));var Ae=e.getDirectoryPath(Be);if(Ae===Be)return U=Be,"break";Be=Ae,U=Be},U,ge=e.getDirectoryPath(x);u.size!==0;){var pe=z(ge);if(ge=U,pe==="break")break}if(u.size){var He=e.arrayFrom(u.values());He.length>1&&He.sort(k),w.push.apply(w,He)}return w}function M(x,T){var Z,B=(Z=x.declarations)===null||Z===void 0?void 0:Z.find(function(w){return e.isNonGlobalAmbientModule(w)&&(!e.isExternalModuleAugmentation(w)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(w.name)))});if(B)return B.name.text;var u=e.mapDefined(x.declarations,function(w){var z,U,ge,pe;if(!e.isModuleDeclaration(w))return;var He=Ae(w);if(!(((z=He==null?void 0:He.parent)===null||z===void 0?void 0:z.parent)&&e.isModuleBlock(He.parent)&&e.isAmbientModule(He.parent.parent)&&e.isSourceFile(He.parent.parent.parent)))return;var Be=(pe=(ge=(U=He.parent.parent.symbol.exports)===null||U===void 0?void 0:U.get("export="))===null||ge===void 0?void 0:ge.valueDeclaration)===null||pe===void 0?void 0:pe.expression;if(!Be)return;var Me=T.getSymbolAtLocation(Be);if(!Me)return;var Le=(Me==null?void 0:Me.flags)&2097152?T.getAliasedSymbol(Me):Me;if(Le===w.symbol)return He.parent.parent;function Ae(Xe){for(;Xe.flags&4;)Xe=Xe.parent;return Xe}}),A=u[0];if(A)return A.name.text}function H(x,T,Z){if(e.getEmitModuleResolutionKind(T)>=e.ModuleResolutionKind.Node16&&Z===e.ModuleKind.ESNext)return[2];switch(x){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(x)}}function V(x,T,Z,B,u){for(var A in T)for(var w=function(Be){var Me=e.normalizePath(Be),Le=Me.indexOf("*"),Ae=Z.map(function(Se){return{ending:Se,value:J(x,Se,u)}});if(e.tryGetExtensionFromPath(Me)&&Ae.push({ending:void 0,value:x}),Le!==-1)for(var Xe=Me.substring(0,Le),Ne=Me.substring(Le+1),Oe=0,be=Ae;Oe<be.length;Oe++){var Y=be[Oe],d=Y.ending,j=Y.value;if(j.length>=Xe.length+Ne.length&&e.startsWith(j,Xe)&&e.endsWith(j,Ne)&&He({ending:d,value:j})){var Ce=j.substring(Xe.length,j.length-Ne.length);return{value:A.replace("*",Ce)}}}else if(e.some(Ae,function(Se){return Se.ending!==0&&Me===Se.value})||e.some(Ae,function(Se){return Se.ending===0&&Me===Se.value&&He(Se)}))return{value:A}},z=0,U=T[A];z<U.length;z++){var ge=U[z],pe=w(ge);if(typeof pe=="object")return pe.value}function He(Be){var Me=Be.ending,Le=Be.value;return Me!==0||Le===J(x,Me,u,B)}}var h;(function(x){x[x.Exact=0]="Exact",x[x.Directory=1]="Directory",x[x.Pattern=2]="Pattern"})(h||(h={}));function F(x,T,Z,B,u,A,w){if(w===void 0&&(w=0),typeof u=="string"){var z=e.getNormalizedAbsolutePath(e.combinePaths(Z,u),void 0),U=e.hasTSFileExtension(T)?e.removeFileExtension(T)+G(T,x):void 0;switch(w){case 0:if(e.comparePaths(T,z)===0||U&&e.comparePaths(U,z)===0)return{moduleFileToTry:B};break;case 1:if(e.containsPath(z,T)){var ge=e.getRelativePathFromDirectory(z,T,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(B,u),ge),void 0)}}break;case 2:var pe=z.indexOf("*"),He=z.slice(0,pe),Be=z.slice(pe+1);if(e.startsWith(T,He)&&e.endsWith(T,Be)){var Me=T.slice(He.length,T.length-Be.length);return{moduleFileToTry:B.replace("*",Me)}}if(U&&e.startsWith(U,He)&&e.endsWith(U,Be)){var Me=U.slice(He.length,U.length-Be.length);return{moduleFileToTry:B.replace("*",Me)}}break}}else{if(Array.isArray(u))return e.forEach(u,function(be){return F(x,T,Z,B,be,A)});if(typeof u=="object"&&u!==null){if(e.allKeysStartWithDot(u))return e.forEach(e.getOwnKeys(u),function(be){var Y=e.getNormalizedAbsolutePath(e.combinePaths(B,be),void 0),d=e.endsWith(be,"/")?1:e.stringContains(be,"*")?2:0;return F(x,T,Z,Y,u[be],A,d)});for(var Le=0,Ae=e.getOwnKeys(u);Le<Ae.length;Le++){var Xe=Ae[Le];if(Xe==="default"||A.indexOf(Xe)>=0||e.isApplicableVersionedTypesKey(A,Xe)){var Ne=u[Xe],Oe=F(x,T,Z,B,Ne,A);if(Oe)return Oe}}}}}function $(x,T,Z,B,u,A){var w=N(T,x,B);if(w!==void 0){var z=N(Z,x,B),U=e.flatMap(z,function(pe){return e.map(w,function(He){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(pe,He,B))})}),ge=e.min(U,e.compareNumberOfDirectorySeparators);if(!!ge)return e.getEmitModuleResolutionKind(A)===e.ModuleResolutionKind.NodeJs?J(ge,u,A):e.removeFileExtension(ge)}}function L(x,T,Z,B,u,A,w,z){var U=x.path,ge=x.isRedirect,pe=T.getCanonicalFileName,He=T.sourceDirectory;if(!B.fileExists||!B.readFile)return;var Be=e.getNodeModulePathParts(U);if(!Be)return;var Me=O(B,A,u,Z),Le=U,Ae=!1;if(!w)for(var Xe=Be.packageRootIndex,Ne=void 0;;){var Oe=wr(Xe),be=Oe.moduleFileToTry,Y=Oe.packageRootPath,d=Oe.blockedByExports,j=Oe.verbatimFromExports;if(e.getEmitModuleResolutionKind(u)!==e.ModuleResolutionKind.Classic){if(d)return;if(j)return be}if(Y){Le=Y,Ae=!0;break}if(Ne||(Ne=be),Xe=U.indexOf(e.directorySeparator,Xe+1),Xe===-1){Le=J(Ne,Me.ending,u,B);break}}if(ge&&!Ae)return;var Ce=B.getGlobalTypingsCacheLocation&&B.getGlobalTypingsCacheLocation(),Se=pe(Le.substring(0,Be.topLevelNodeModulesIndex));if(!(e.startsWith(He,Se)||Ce&&e.startsWith(pe(Ce),Se)))return;var Re=Le.substring(Be.topLevelPackageNameIndex+1),er=e.getPackageNameFromTypesPackageName(Re);return e.getEmitModuleResolutionKind(u)===e.ModuleResolutionKind.Classic&&er===Re?void 0:er;function wr(mr){var Ue,t,qr=U.substring(0,mr),ln=e.combinePaths(qr,"package.json"),dr=U,vr=!1,kr=(t=(Ue=B.getPackageJsonInfoCache)===null||Ue===void 0?void 0:Ue.call(B))===null||t===void 0?void 0:t.getPackageJsonInfo(ln);if(typeof kr=="object"||kr===void 0&&B.fileExists(ln)){var Ur=(kr==null?void 0:kr.contents.packageJsonContent)||JSON.parse(B.readFile(ln)),Cr=z||Z.impliedNodeFormat;if(e.getEmitModuleResolutionKind(u)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(u)===e.ModuleResolutionKind.NodeNext){var rn=["node",Cr===e.ModuleKind.ESNext?"import":"require","types"],Br=Ur.exports&&typeof Ur.name=="string"?F(u,U,qr,e.getPackageNameFromTypesPackageName(Ur.name),Ur.exports,rn):void 0;if(Br){var pn=e.hasTSFileExtension(Br.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(Br.moduleFileToTry)+G(Br.moduleFileToTry,u)}:Br;return vi(vi({},pn),{verbatimFromExports:!0})}if(Ur.exports)return{moduleFileToTry:U,blockedByExports:!0}}var ve=Ur.typesVersions?e.getPackageJsonTypesVersionsPaths(Ur.typesVersions):void 0;if(ve){var or=U.slice(qr.length+1),Ee=V(or,ve.paths,H(Me.ending,u,Cr),B,u);Ee===void 0?vr=!0:dr=e.combinePaths(qr,Ee)}var ze=Ur.typings||Ur.types||Ur.main||"index.js";if(e.isString(ze)&&!(vr&&e.matchPatternOrExact(e.tryParsePatterns(ve.paths),ze))){var Ar=e.toPath(ze,qr,pe);if(e.removeFileExtension(Ar)===e.removeFileExtension(pe(dr)))return{packageRootPath:qr,moduleFileToTry:dr}}}else{var xe=pe(dr.substring(Be.packageRootIndex+1));if(xe==="index.d.ts"||xe==="index.js"||xe==="index.ts"||xe==="index.tsx")return{moduleFileToTry:dr,packageRootPath:qr}}return{moduleFileToTry:dr}}}function P(x,T){if(!!x.fileExists)for(var Z=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),B=0,u=Z;B<u.length;B++){var A=u[B],w=T+A;if(x.fileExists(w))return w}}function N(x,T,Z){return e.mapDefined(T,function(B){var u=ye(x,B,Z);return u!==void 0&&b(u)?void 0:u})}function J(x,T,Z,B){if(e.fileExtensionIsOneOf(x,[".json",".mjs",".cjs"]))return x;var u=e.removeFileExtension(x);if(x===u)return x;if(e.fileExtensionIsOneOf(x,[".d.mts",".mts",".d.cts",".cts"]))return u+q(x,Z);switch(T){case 0:var A=e.removeSuffix(u,"/index");return B&&A!==u&&P(B,A)?u:A;case 1:return u;case 2:return u+q(x,Z);default:return e.Debug.assertNever(T)}}function q(x,T){var Z;return(Z=G(x,T))!==null&&Z!==void 0?Z:e.Debug.fail("Extension ".concat(e.extensionFromPath(x)," is unsupported:: FileName:: ").concat(x))}function G(x,T){var Z=e.tryGetExtensionFromPath(x);switch(Z){case".ts":case".d.ts":return".js";case".tsx":return T.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return Z;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}ne.tryGetJSExtensionForFile=G;function ye(x,T,Z){var B=e.getRelativePathToDirectoryOrUrl(T,x,T,Z,!1);return e.isRootedDiskPath(B)?void 0:B}function b(x){return e.startsWith(x,"..")}})(o=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(fr||(fr={}));var fr;(function(e){var o=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function ne(P,N){var J=P===e.sys&&o?o:{getCurrentDirectory:function(){return P.getCurrentDirectory()},getNewLine:function(){return P.newLine},getCanonicalFileName:e.createGetCanonicalFileName(P.useCaseSensitiveFileNames)};if(!N)return function(G){return P.write(e.formatDiagnostic(G,J))};var q=new Array(1);return function(G){q[0]=G,P.write(e.formatDiagnosticsWithColorAndContext(q,J)+J.getNewLine()),q[0]=void 0}}e.createDiagnosticReporter=ne;function K(P,N,J){return P.clearScreen&&!J.preserveWatchOutput&&!J.extendedDiagnostics&&!J.diagnostics&&e.contains(e.screenStartingMessageCodes,N.code)?(P.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function se(P,N){return e.contains(e.screenStartingMessageCodes,P.code)?N+N:N}function O(P){return P.now?P.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}e.getLocaleTimeString=O;function ie(P,N){return N?function(J,q,G){K(P,J,G);var ye="[".concat(e.formatColorAndReset(O(P),e.ForegroundColorEscapeSequences.Grey),"] ");ye+="".concat(e.flattenDiagnosticMessageText(J.messageText,P.newLine)).concat(q+q),P.write(ye)}:function(J,q,G){var ye="";K(P,J,G)||(ye+=q),ye+="".concat(O(P)," - "),ye+="".concat(e.flattenDiagnosticMessageText(J.messageText,P.newLine)).concat(se(J,q)),P.write(ye)}}e.createWatchStatusReporter=ie;function _e(P,N,J,q,G,ye){var b=G;b.onUnRecoverableConfigFileDiagnostic=function(T){return h(G,ye,T)};var x=e.getParsedCommandLineOfConfigFile(P,N,b,J,q);return b.onUnRecoverableConfigFileDiagnostic=void 0,x}e.parseConfigFileWithSystem=_e;function Q(P){return e.countWhere(P,function(N){return N.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=Q;function p(P){var N=e.filter(P,function(J){return J.category===e.DiagnosticCategory.Error}).map(function(J){if(J.file!==void 0)return"".concat(J.file.fileName)});return N.map(function(J){var q=e.find(P,function(ye){return ye.file!==void 0&&ye.file.fileName===J});if(q!==void 0){var G=e.getLineAndCharacterOfPosition(q.file,q.start).line;return{fileName:J,line:G+1}}})}e.getFilesInErrorForSummary=p;function D(P){return P===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=D;function le(P,N){var J=e.formatColorAndReset(":"+P.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(P.fileName)&&e.pathIsAbsolute(N)?e.getRelativePathFromDirectory(N,P.fileName,!1)+J:P.fileName+J}function de(P,N,J,q){if(P===0)return"";var G=N.filter(function(Z){return Z!==void 0}),ye=G.map(function(Z){return"".concat(Z.fileName,":").concat(Z.line)}).filter(function(Z,B,u){return u.indexOf(Z)===B}),b=G[0]&&le(G[0],q.getCurrentDirectory()),x=P===1?e.createCompilerDiagnostic(N[0]!==void 0?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,P,b):e.createCompilerDiagnostic(ye.length===0?e.Diagnostics.Found_0_errors:ye.length===1?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,P,ye.length===1?b:ye.length),T=ye.length>1?te(G,q):"";return"".concat(J).concat(e.flattenDiagnosticMessageText(x.messageText,J)).concat(J).concat(J).concat(T)}e.getErrorSummaryText=de;function te(P,N){var J=P.filter(function(u,A,w){return A===w.findIndex(function(z){return(z==null?void 0:z.fileName)===(u==null?void 0:u.fileName)})});if(J.length===0)return"";var q=function(u){return Math.log(u)*Math.LOG10E+1},G=J.map(function(u){return[u,e.countWhere(P,function(A){return A.fileName===u.fileName})]}),ye=G.reduce(function(u,A){return Math.max(u,A[1]||0)},0),b=e.Diagnostics.Errors_Files.message,x=b.split(" ")[0].length,T=Math.max(x,q(ye)),Z=Math.max(q(ye)-x,0),B="";return B+=" ".repeat(Z)+b+`
  249. `,G.forEach(function(u){var A=u[0],w=u[1],z=Math.log(w)*Math.LOG10E+1|0,U=z<T?" ".repeat(T-z):"",ge=le(A,N.getCurrentDirectory());B+="".concat(U).concat(w," ").concat(ge,`
  250. `)}),B}function oe(P){return!!P.getState}e.isBuilderProgram=oe;function ae(P,N){var J=P.getCompilerOptions();J.explainFiles?E(oe(P)?P.getProgram():P,N):(J.listFiles||J.listFilesOnly)&&e.forEach(P.getSourceFiles(),function(q){N(q.fileName)})}e.listFiles=ae;function E(P,N){for(var J,q,G=P.getFileIncludeReasons(),ye=e.createGetCanonicalFileName(P.useCaseSensitiveFileNames()),b=function(B){return e.convertToRelativePath(B,P.getCurrentDirectory(),ye)},x=0,T=P.getSourceFiles();x<T.length;x++){var Z=T[x];N("".concat(S(Z,b))),(J=G.get(Z.path))===null||J===void 0||J.forEach(function(B){return N(" ".concat(y(P,B,b).messageText))}),(q=I(Z,b))===null||q===void 0||q.forEach(function(B){return N(" ".concat(B.messageText))})}}e.explainFiles=E;function I(P,N){var J,q;if(P.path!==P.resolvedPath&&(q!=null?q:q=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,S(P.originalFileName,N))),P.redirectInfo&&(q!=null?q:q=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,S(P.redirectInfo.redirectTarget,N))),e.isExternalOrCommonJsModule(P))switch(P.impliedNodeFormat){case e.ModuleKind.ESNext:P.packageJsonScope&&(q!=null?q:q=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,S(e.last(P.packageJsonLocations),N)));break;case e.ModuleKind.CommonJS:P.packageJsonScope?(q!=null?q:q=[]).push(e.chainDiagnosticMessages(void 0,P.packageJsonScope.contents.packageJsonContent.type?e.Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:e.Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type,S(e.last(P.packageJsonLocations),N))):((J=P.packageJsonLocations)===null||J===void 0?void 0:J.length)&&(q!=null?q:q=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found));break}return q}e.explainIfFileIsRedirectAndImpliedFormat=I;function f(P,N){var J,q=P.getCompilerOptions().configFile;if(!!((J=q==null?void 0:q.configFileSpecs)===null||J===void 0?void 0:J.validatedFilesSpec)){var G=e.createGetCanonicalFileName(P.useCaseSensitiveFileNames()),ye=G(N),b=e.getDirectoryPath(e.getNormalizedAbsolutePath(q.fileName,P.getCurrentDirectory()));return e.find(q.configFileSpecs.validatedFilesSpec,function(x){return G(e.getNormalizedAbsolutePath(x,b))===ye})}}e.getMatchedFileSpec=f;function m(P,N){var J,q,G=P.getCompilerOptions().configFile;if(!!((J=G==null?void 0:G.configFileSpecs)===null||J===void 0?void 0:J.validatedIncludeSpecs)){if(G.configFileSpecs.isDefaultIncludeSpec)return!0;var ye=e.fileExtensionIs(N,".json"),b=e.getDirectoryPath(e.getNormalizedAbsolutePath(G.fileName,P.getCurrentDirectory())),x=P.useCaseSensitiveFileNames();return e.find((q=G==null?void 0:G.configFileSpecs)===null||q===void 0?void 0:q.validatedIncludeSpecs,function(T){if(ye&&!e.endsWith(T,".json"))return!1;var Z=e.getPatternFromSpec(T,b,"files");return!!Z&&e.getRegexFromPattern("(".concat(Z,")$"),x).test(N)})}}e.getMatchedIncludeSpec=m;function y(P,N,J){var q,G,ye=P.getCompilerOptions();if(e.isReferencedFile(N)){var b=e.getReferencedFileLocation(function(U){return P.getSourceFileByPath(U)},N),x=e.isReferenceFileLocation(b)?b.file.text.substring(b.pos,b.end):'"'.concat(b.text,'"'),T=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(b)||N.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),N.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(b)?T=b.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:b.text===e.externalHelpersModuleNameText?T=b.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:T=b.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!b.packageId),T=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:T=b.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!b.packageId),T=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(N)}return e.chainDiagnosticMessages(void 0,T,x,S(b.file,J),b.packageId&&e.packageIdToString(b.packageId))}switch(N.kind){case e.FileIncludeKind.RootFile:if(!((q=ye.configFile)===null||q===void 0?void 0:q.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var Z=e.getNormalizedAbsolutePath(P.getRootFileNames()[N.index],P.getCurrentDirectory()),B=f(P,Z);if(B)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var u=m(P,Z);return e.isString(u)?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,u,S(ye.configFile,J)):e.chainDiagnosticMessages(void 0,u?e.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var A=N.kind===e.FileIncludeKind.OutputFromProjectReference,w=e.Debug.checkDefined((G=P.getResolvedProjectReferences())===null||G===void 0?void 0:G[N.index]);return e.chainDiagnosticMessages(void 0,e.outFile(ye)?A?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:A?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,S(w.sourceFile.fileName,J),ye.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,ye.types?N.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:N.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,N.typeReference,N.packageId&&e.packageIdToString(N.packageId));case e.FileIncludeKind.LibFile:if(N.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,ye.lib[N.index]);var z=e.forEachEntry(e.targetOptionDeclaration.type,function(U,ge){return U===e.getEmitScriptTarget(ye)?ge:void 0});return e.chainDiagnosticMessages(void 0,z?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,z);default:e.Debug.assertNever(N)}}e.fileIncludeReasonToDiagnostics=y;function S(P,N){var J=e.isString(P)?P:P.fileName;return N?N(J):J}function k(P,N,J,q,G,ye,b,x){var T=!!P.getCompilerOptions().listFilesOnly,Z=P.getConfigFileParsingDiagnostics().slice(),B=Z.length;e.addRange(Z,P.getSyntacticDiagnostics(void 0,ye)),Z.length===B&&(e.addRange(Z,P.getOptionsDiagnostics(ye)),T||(e.addRange(Z,P.getGlobalDiagnostics(ye)),Z.length===B&&e.addRange(Z,P.getSemanticDiagnostics(void 0,ye))));var u=T?{emitSkipped:!0,diagnostics:e.emptyArray}:P.emit(void 0,G,ye,b,x),A=u.emittedFiles,w=u.diagnostics;e.addRange(Z,w);var z=e.sortAndDeduplicateDiagnostics(Z);if(z.forEach(N),J){var U=P.getCurrentDirectory();e.forEach(A,function(ge){var pe=e.getNormalizedAbsolutePath(ge,U);J("TSFILE: ".concat(pe))}),ae(P,J)}return q&&q(Q(z),p(z)),{emitResult:u,diagnostics:z}}e.emitFilesAndReportErrors=k;function C(P,N,J,q,G,ye,b,x){var T=k(P,N,J,q,G,ye,b,x),Z=T.emitResult,B=T.diagnostics;return Z.emitSkipped&&B.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:B.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=C,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function me(P,N){P===void 0&&(P=e.sys);var J=N||ie(P);return{onWatchStatusChange:J,watchFile:e.maybeBind(P,P.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(P,P.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(P,P.setTimeout)||e.noop,clearTimeout:e.maybeBind(P,P.clearTimeout)||e.noop}}e.createWatchHost=me,e.WatchType={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"};function De(P,N){var J=P.trace?N.extendedDiagnostics?e.WatchLogLevel.Verbose:N.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,q=J!==e.WatchLogLevel.None?function(ye){return P.trace(ye)}:e.noop,G=e.getWatchFactory(P,J,q);return G.writeLog=q,G}e.createWatchFactory=De;function X(P,N,J){J===void 0&&(J=P);var q=P.useCaseSensitiveFileNames(),G=e.memoize(function(){return P.getNewLine()}),ye={getSourceFile:function(x,T,Z){var B;try{e.performance.mark("beforeIORead");var u=N().charset;B=u?P.readFile(x,u):ye.readFile(x),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(A){Z&&Z(A.message),B=""}return B!==void 0?e.createSourceFile(x,B,T):void 0},getDefaultLibLocation:e.maybeBind(P,P.getDefaultLibLocation),getDefaultLibFileName:function(x){return P.getDefaultLibFileName(x)},writeFile:b,getCurrentDirectory:e.memoize(function(){return P.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return q},getCanonicalFileName:e.createGetCanonicalFileName(q),getNewLine:function(){return e.getNewLineCharacter(N(),G)},fileExists:function(x){return P.fileExists(x)},readFile:function(x){return P.readFile(x)},trace:e.maybeBind(P,P.trace),directoryExists:e.maybeBind(J,J.directoryExists),getDirectories:e.maybeBind(J,J.getDirectories),realpath:e.maybeBind(P,P.realpath),getEnvironmentVariable:e.maybeBind(P,P.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(P,P.createHash),readDirectory:e.maybeBind(P,P.readDirectory),disableUseFileVersionAsSignature:P.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:P.storeFilesChangingSignatureDuringEmit};return ye;function b(x,T,Z,B){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(x,T,Z,function(u,A,w){return P.writeFile(u,A,w)},function(u){return P.createDirectory(u)},function(u){return P.directoryExists(u)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){B&&B(u.message)}}}e.createCompilerHostFromProgramHost=X;function M(P){var N=P.getSourceFile,J=e.maybeBind(P,P.createHash)||e.generateDjb2Hash;P.getSourceFile=function(){for(var q=[],G=0;G<arguments.length;G++)q[G]=arguments[G];var ye=N.call.apply(N,zn([P],q,!1));return ye&&(ye.version=J(ye.text)),ye}}e.setGetSourceFileAsHashVersioned=M;function H(P,N){var J=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(P.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return P.useCaseSensitiveFileNames},getNewLine:function(){return P.newLine},getCurrentDirectory:e.memoize(function(){return P.getCurrentDirectory()}),getDefaultLibLocation:J,getDefaultLibFileName:function(q){return e.combinePaths(J(),e.getDefaultLibFileName(q))},fileExists:function(q){return P.fileExists(q)},readFile:function(q,G){return P.readFile(q,G)},directoryExists:function(q){return P.directoryExists(q)},getDirectories:function(q){return P.getDirectories(q)},readDirectory:function(q,G,ye,b,x){return P.readDirectory(q,G,ye,b,x)},realpath:e.maybeBind(P,P.realpath),getEnvironmentVariable:e.maybeBind(P,P.getEnvironmentVariable),trace:function(q){return P.write(q+P.newLine)},createDirectory:function(q){return P.createDirectory(q)},writeFile:function(q,G,ye){return P.writeFile(q,G,ye)},createHash:e.maybeBind(P,P.createHash),createProgram:N||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:P.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:P.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(P,P.now)}}e.createProgramHost=H;function V(P,N,J,q){P===void 0&&(P=e.sys);var G=function(b){return P.write(b+P.newLine)},ye=H(P,N);return e.copyProperties(ye,me(P,q)),ye.afterProgramCreate=function(b){var x=b.getCompilerOptions(),T=e.getNewLineCharacter(x,function(){return P.newLine});k(b,J,G,function(Z){return ye.onWatchStatusChange(e.createCompilerDiagnostic(D(Z),Z),T,x,Z)})},ye}function h(P,N,J){N(J),P.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function F(P){var N=P.configFileName,J=P.optionsToExtend,q=P.watchOptionsToExtend,G=P.extraFileExtensions,ye=P.system,b=P.createProgram,x=P.reportDiagnostic,T=P.reportWatchStatus,Z=x||ne(ye),B=V(ye,b,Z,T);return B.onUnRecoverableConfigFileDiagnostic=function(u){return h(ye,Z,u)},B.configFileName=N,B.optionsToExtend=J,B.watchOptionsToExtend=q,B.extraFileExtensions=G,B}e.createWatchCompilerHostOfConfigFile=F;function $(P){var N=P.rootFiles,J=P.options,q=P.watchOptions,G=P.projectReferences,ye=P.system,b=P.createProgram,x=P.reportDiagnostic,T=P.reportWatchStatus,Z=V(ye,b,x||ne(ye),T);return Z.rootFiles=N,Z.options=J,Z.watchOptions=q,Z.projectReferences=G,Z}e.createWatchCompilerHostOfFilesAndCompilerOptions=$;function L(P){var N=P.system||e.sys,J=P.host||(P.host=e.createIncrementalCompilerHost(P.options,N)),q=e.createIncrementalProgram(P),G=C(q,P.reportDiagnostic||ne(N),function(ye){return J.trace&&J.trace(ye)},P.reportErrorSummary||P.options.pretty?function(ye,b){return N.write(de(ye,b,N.newLine,J))}:void 0);return P.afterProgramEmitAndDiagnostics&&P.afterProgramEmitAndDiagnostics(q),G}e.performIncrementalCompilation=L})(fr||(fr={}));var fr;(function(e){function o(ie,_e){var Q=e.getTsBuildInfoEmitOutputFilePath(ie);if(!!Q){var p;if(_e.getBuildInfo)p=_e.getBuildInfo(Q,ie.configFilePath);else{var D=_e.readFile(Q);if(!D)return;p=e.getBuildInfo(Q,D)}if(!(!p||p.version!==e.version||!p.program))return e.createBuilderProgramUsingProgramBuildInfo(p.program,Q,_e)}}e.readBuilderProgram=o;function ne(ie,_e){_e===void 0&&(_e=e.sys);var Q=e.createCompilerHostWorker(ie,void 0,_e);return Q.createHash=e.maybeBind(_e,_e.createHash),Q.disableUseFileVersionAsSignature=_e.disableUseFileVersionAsSignature,Q.storeFilesChangingSignatureDuringEmit=_e.storeFilesChangingSignatureDuringEmit,e.setGetSourceFileAsHashVersioned(Q),e.changeCompilerHostLikeToUseCache(Q,function(p){return e.toPath(p,Q.getCurrentDirectory(),Q.getCanonicalFileName)}),Q}e.createIncrementalCompilerHost=ne;function K(ie){var _e=ie.rootNames,Q=ie.options,p=ie.configFileParsingDiagnostics,D=ie.projectReferences,le=ie.host,de=ie.createProgram;le=le||ne(Q),de=de||e.createEmitAndSemanticDiagnosticsBuilderProgram;var te=o(Q,le);return de(_e,Q,le,te,p,D)}e.createIncrementalProgram=K;function se(ie,_e,Q,p,D,le,de,te){return e.isArray(ie)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:ie,options:_e,watchOptions:te,projectReferences:de,system:Q,createProgram:p,reportDiagnostic:D,reportWatchStatus:le}):e.createWatchCompilerHostOfConfigFile({configFileName:ie,optionsToExtend:_e,watchOptionsToExtend:de,extraFileExtensions:te,system:Q,createProgram:p,reportDiagnostic:D,reportWatchStatus:le})}e.createWatchCompilerHost=se;function O(ie){var _e,Q,p,D,le,de,te,oe,ae=ie.extendedConfigCache,E=!1,I=new e.Map,f,m=!1,y=ie.useCaseSensitiveFileNames(),S=ie.getCurrentDirectory(),k=ie.configFileName,C=ie.optionsToExtend,me=C===void 0?{}:C,De=ie.watchOptionsToExtend,X=ie.extraFileExtensions,M=ie.createProgram,H=ie.rootFiles,V=ie.options,h=ie.watchOptions,F=ie.projectReferences,$,L,P=!1,N=!1,J=k===void 0?void 0:e.createCachedDirectoryStructureHost(ie,S,y),q=J||ie,G=e.parseConfigHostFromCompilerHostLike(ie,q),ye=Xe();k&&ie.configFileParsingResult&&(Cr(ie.configFileParsingResult),ye=Xe()),Re(e.Diagnostics.Starting_compilation_in_watch_mode),k&&!ie.configFileParsingResult&&(ye=e.getNewLineCharacter(me,function(){return ie.getNewLine()}),e.Debug.assert(!H),Ur(),ye=Xe());var b=e.createWatchFactory(ie,V),x=b.watchFile,T=b.watchDirectory,Z=b.writeLog,B=e.createGetCanonicalFileName(y);Z("Current directory: ".concat(S," CaseSensitiveFileNames: ").concat(y));var u;k&&(u=x(k,qr,e.PollingInterval.High,h,e.WatchType.ConfigFile));var A=e.createCompilerHostFromProgramHost(ie,function(){return V},q);e.setGetSourceFileAsHashVersioned(A);var w=A.getSourceFile;A.getSourceFile=function(Qr){for(var en=[],vn=1;vn<arguments.length;vn++)en[vn-1]=arguments[vn];return d.apply(void 0,zn([Qr,Ne(Qr)],en,!1))},A.getSourceFileByPath=d,A.getNewLine=function(){return ye},A.fileExists=Y,A.onReleaseOldSourceFile=Se,A.onReleaseParsedCommandLine=pn,A.toPath=Ne,A.getCompilationSettings=function(){return V},A.useSourceOfProjectReferenceRedirect=e.maybeBind(ie,ie.useSourceOfProjectReferenceRedirect),A.watchDirectoryOfFailedLookupLocation=function(Qr,en,vn){return T(Qr,en,vn,h,e.WatchType.FailedLookupLocations)},A.watchAffectingFileLocation=function(Qr,en){return x(Qr,en,e.PollingInterval.High,h,e.WatchType.AffectingFileLocation)},A.watchTypeRootsDirectory=function(Qr,en,vn){return T(Qr,en,vn,h,e.WatchType.TypeRoots)},A.getCachedDirectoryStructureHost=function(){return J},A.scheduleInvalidateResolutionsOfFailedLookupLocations=mr,A.onInvalidatedResolution=t,A.onChangedAutomaticTypeDirectiveNames=t,A.fileIsOpen=e.returnFalse,A.getCurrentProgram=Be,A.writeLog=Z,A.getParsedCommandLine=rn;var z=e.createResolutionCache(A,k?e.getDirectoryPath(e.getNormalizedAbsolutePath(k,S)):S,!1);A.resolveModuleNames=ie.resolveModuleNames?function(){for(var Qr=[],en=0;en<arguments.length;en++)Qr[en]=arguments[en];return ie.resolveModuleNames.apply(ie,Qr)}:function(Qr,en,vn,Ie,We,xr){return z.resolveModuleNames(Qr,en,vn,Ie,xr)},A.resolveTypeReferenceDirectives=ie.resolveTypeReferenceDirectives?function(){for(var Qr=[],en=0;en<arguments.length;en++)Qr[en]=arguments[en];return ie.resolveTypeReferenceDirectives.apply(ie,Qr)}:function(Qr,en,vn,Ie,We){return z.resolveTypeReferenceDirectives(Qr,en,vn,We)},A.getModuleResolutionCache=ie.resolveModuleNames?e.maybeBind(ie,ie.getModuleResolutionCache):function(){return z.getModuleResolutionCache()};var U=!!ie.resolveModuleNames||!!ie.resolveTypeReferenceDirectives,ge=U?e.maybeBind(ie,ie.hasInvalidatedResolutions)||e.returnTrue:e.returnFalse;return _e=o(V,A),Me(),xe(),k&&Mr(Ne(k),V,h,e.WatchType.ExtendedConfigFile),k?{getCurrentProgram:He,getProgram:dr,close:pe}:{getCurrentProgram:He,getProgram:dr,updateRootFileNames:Ae,close:pe};function pe(){wr(),z.clear(),e.clearMap(I,function(Qr){Qr&&Qr.fileWatcher&&(Qr.fileWatcher.close(),Qr.fileWatcher=void 0)}),u&&(u.close(),u=void 0),ae==null||ae.clear(),ae=void 0,oe&&(e.clearMap(oe,e.closeFileWatcherOf),oe=void 0),D&&(e.clearMap(D,e.closeFileWatcherOf),D=void 0),p&&(e.clearMap(p,e.closeFileWatcher),p=void 0),te&&(e.clearMap(te,function(Qr){var en;(en=Qr.watcher)===null||en===void 0||en.close(),Qr.watcher=void 0,Qr.watchedDirectories&&e.clearMap(Qr.watchedDirectories,e.closeFileWatcherOf),Qr.watchedDirectories=void 0}),te=void 0)}function He(){return _e}function Be(){return _e&&_e.getProgramOrUndefined()}function Me(){Z("Synchronizing program"),wr();var Qr=He();m&&(ye=Xe(),Qr&&e.changesAffectModuleResolution(Qr.getCompilerOptions(),V)&&z.clear());var en=z.createHasInvalidatedResolutions(ge),vn=e.changeCompilerHostLikeToUseCache(A,Ne),Ie=vn.originalReadFile,We=vn.originalFileExists,xr=vn.originalDirectoryExists,Lr=vn.originalCreateDirectory,xn=vn.originalWriteFile,An=vn.readFileWithCache;return e.isProgramUptoDate(Be(),H,V,function(Qn){return Ce(Qn,An)},function(Qn){return A.fileExists(Qn)},en,er,rn,F)?N&&(E&&Re(e.Diagnostics.File_change_detected_Starting_incremental_compilation),_e=M(void 0,void 0,A,_e,L,F),N=!1):(E&&Re(e.Diagnostics.File_change_detected_Starting_incremental_compilation),Le(en)),E=!1,ie.afterProgramCreate&&Qr!==_e&&ie.afterProgramCreate(_e),A.readFile=Ie,A.fileExists=We,A.directoryExists=xr,A.createDirectory=Lr,A.writeFile=xn,_e}function Le(Qr){Z("CreatingProgramWith::"),Z(" roots: ".concat(JSON.stringify(H))),Z(" options: ".concat(JSON.stringify(V))),F&&Z(" projectReferences: ".concat(JSON.stringify(F)));var en=m||!Be();m=!1,N=!1,z.startCachingPerDirectoryResolution(),A.hasInvalidatedResolutions=Qr,A.hasChangedAutomaticTypeDirectiveNames=er;var vn=Be();if(_e=M(H,V,A,_e,L,F),z.finishCachingPerDirectoryResolution(_e.getProgram(),vn),e.updateMissingFilePathsWatch(_e.getProgram(),p||(p=new e.Map),ze),en&&z.updateTypeRootsWatch(),f){for(var Ie=0,We=f;Ie<We.length;Ie++){var xr=We[Ie];p.has(xr)||I.delete(xr)}f=void 0}}function Ae(Qr){e.Debug.assert(!k,"Cannot update root file names with config file watch mode"),H=Qr,t()}function Xe(){return e.getNewLineCharacter(V||me,function(){return ie.getNewLine()})}function Ne(Qr){return e.toPath(Qr,S,B)}function Oe(Qr){return typeof Qr=="boolean"}function be(Qr){return typeof Qr.version=="boolean"}function Y(Qr){var en=Ne(Qr);return Oe(I.get(en))?!1:q.fileExists(Qr)}function d(Qr,en,vn,Ie,We){var xr=I.get(en);if(!Oe(xr)){if(xr===void 0||We||be(xr)){var Lr=w(Qr,vn,Ie);if(xr)Lr?(xr.sourceFile=Lr,xr.version=Lr.version,xr.fileWatcher||(xr.fileWatcher=ve(en,Qr,or,e.PollingInterval.Low,h,e.WatchType.SourceFile))):(xr.fileWatcher&&xr.fileWatcher.close(),I.set(en,!1));else if(Lr){var xn=ve(en,Qr,or,e.PollingInterval.Low,h,e.WatchType.SourceFile);I.set(en,{sourceFile:Lr,version:Lr.version,fileWatcher:xn})}else I.set(en,!1);return Lr}return xr.sourceFile}}function j(Qr){var en=I.get(Qr);en!==void 0&&(Oe(en)?I.set(Qr,{version:!1}):en.version=!1)}function Ce(Qr,en){var vn=I.get(Qr);if(!!vn){if(vn.version)return vn.version;var Ie=en(Qr);return Ie!==void 0?(A.createHash||e.generateDjb2Hash)(Ie):void 0}}function Se(Qr,en,vn){var Ie=I.get(Qr.resolvedPath);Ie!==void 0&&(Oe(Ie)?(f||(f=[])).push(Qr.path):Ie.sourceFile===Qr&&(Ie.fileWatcher&&Ie.fileWatcher.close(),I.delete(Qr.resolvedPath),vn||z.removeResolutionsOfFile(Qr.path)))}function Re(Qr){ie.onWatchStatusChange&&ie.onWatchStatusChange(e.createCompilerDiagnostic(Qr),ye,V||me)}function er(){return z.hasChangedAutomaticTypeDirectiveNames()}function wr(){return de?(ie.clearTimeout(de),de=void 0,!0):!1}function mr(){if(!ie.setTimeout||!ie.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();var Qr=wr();Z("Scheduling invalidateFailedLookup".concat(Qr?", Cancelled earlier one":"")),de=ie.setTimeout(Ue,250)}function Ue(){de=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&t()}function t(){!ie.setTimeout||!ie.clearTimeout||(le&&ie.clearTimeout(le),Z("Scheduling update"),le=ie.setTimeout(ln,250))}function qr(){e.Debug.assert(!!k),Q=e.ConfigFileProgramReloadLevel.Full,t()}function ln(){le=void 0,E=!0,dr()}function dr(){switch(Q){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),vr();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),kr();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Me();break}return e.perfLogger.logStopUpdateProgram("Done"),He()}function vr(){Z("Reloading new file names and options"),Q=e.ConfigFileProgramReloadLevel.None,H=e.getFileNamesFromConfigSpecs(V.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(k),S),V,G,X),e.updateErrorForNoInputFiles(H,e.getNormalizedAbsolutePath(k,S),V.configFile.configFileSpecs,L,P)&&(N=!0),Me()}function kr(){Z("Reloading config file: ".concat(k)),Q=e.ConfigFileProgramReloadLevel.None,J&&J.clearCache(),Ur(),m=!0,Me(),xe(),Mr(Ne(k),V,h,e.WatchType.ExtendedConfigFile)}function Ur(){Cr(e.getParsedCommandLineOfConfigFile(k,me,G,ae||(ae=new e.Map),De,X))}function Cr(Qr){H=Qr.fileNames,V=Qr.options,h=Qr.watchOptions,F=Qr.projectReferences,$=Qr.wildcardDirectories,L=e.getConfigFileParsingDiagnostics(Qr).slice(),P=e.canJsonReportNoInputFiles(Qr.raw),N=!0}function rn(Qr){var en=Ne(Qr),vn=te==null?void 0:te.get(en);if(vn){if(!vn.reloadLevel)return vn.parsedCommandLine;if(vn.parsedCommandLine&&vn.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!ie.getParsedCommandLine){Z("Reloading new file names and options");var Ie=e.getFileNamesFromConfigSpecs(vn.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Qr),S),V,G);return vn.parsedCommandLine=vi(vi({},vn.parsedCommandLine),{fileNames:Ie}),vn.reloadLevel=void 0,vn.parsedCommandLine}}Z("Loading config file: ".concat(Qr));var We=ie.getParsedCommandLine?ie.getParsedCommandLine(Qr):Br(Qr);return vn?(vn.parsedCommandLine=We,vn.reloadLevel=void 0):(te||(te=new e.Map)).set(en,vn={parsedCommandLine:We}),Rr(Qr,en,vn),We}function Br(Qr){var en=G.onUnRecoverableConfigFileDiagnostic;G.onUnRecoverableConfigFileDiagnostic=e.noop;var vn=e.getParsedCommandLineOfConfigFile(Qr,void 0,G,ae||(ae=new e.Map),De);return G.onUnRecoverableConfigFileDiagnostic=en,vn}function pn(Qr){var en,vn=Ne(Qr),Ie=te==null?void 0:te.get(vn);!Ie||(te.delete(vn),Ie.watchedDirectories&&e.clearMap(Ie.watchedDirectories,e.closeFileWatcherOf),(en=Ie.watcher)===null||en===void 0||en.close(),e.clearSharedExtendedConfigFileWatcher(vn,oe))}function ve(Qr,en,vn,Ie,We,xr){return x(en,function(Lr,xn){return vn(Lr,xn,Qr)},Ie,We,xr)}function or(Qr,en,vn){Ee(Qr,vn,en),en===e.FileWatcherEventKind.Deleted&&I.has(vn)&&z.invalidateResolutionOfFile(vn),j(vn),t()}function Ee(Qr,en,vn){J&&J.addOrDeleteFile(Qr,en,vn)}function ze(Qr){return(te==null?void 0:te.has(Qr))?e.noopFileWatcher:ve(Qr,Qr,Ar,e.PollingInterval.Medium,h,e.WatchType.MissingFile)}function Ar(Qr,en,vn){Ee(Qr,vn,en),en===e.FileWatcherEventKind.Created&&p.has(vn)&&(p.get(vn).close(),p.delete(vn),j(vn),t())}function xe(){$?e.updateWatchingWildcardDirectories(D||(D=new e.Map),new e.Map(e.getEntries($)),cr):D&&e.clearMap(D,e.closeFileWatcherOf)}function cr(Qr,en){return T(Qr,function(vn){e.Debug.assert(!!k);var Ie=Ne(vn);J&&J.addOrDeleteFileOrDirectory(vn,Ie),j(Ie),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:Ne(Qr),fileOrDirectory:vn,fileOrDirectoryPath:Ie,configFileName:k,extraFileExtensions:X,options:V,program:He()||H,currentDirectory:S,useCaseSensitiveFileNames:y,writeLog:Z,toPath:Ne})&&Q!==e.ConfigFileProgramReloadLevel.Full&&(Q=e.ConfigFileProgramReloadLevel.Partial,t())},en,h,e.WatchType.WildcardDirectory)}function Mr(Qr,en,vn,Ie){e.updateSharedExtendedConfigFileWatcher(Qr,en,oe||(oe=new e.Map),function(We,xr){return x(We,function(Lr,xn){var An;Ee(We,xr,xn),ae&&e.cleanExtendedConfigCache(ae,xr,Ne);var Qn=(An=oe.get(xr))===null||An===void 0?void 0:An.projects;!(Qn==null?void 0:Qn.size)||Qn.forEach(function(ai){if(Ne(k)===ai)Q=e.ConfigFileProgramReloadLevel.Full;else{var Dr=te==null?void 0:te.get(ai);Dr&&(Dr.reloadLevel=e.ConfigFileProgramReloadLevel.Full),z.removeResolutionsFromProjectReferenceRedirects(ai)}t()})},e.PollingInterval.High,vn,Ie)},Ne)}function Rr(Qr,en,vn){var Ie,We,xr,Lr,xn;vn.watcher||(vn.watcher=x(Qr,function(An,Qn){Ee(Qr,en,Qn);var ai=te==null?void 0:te.get(en);ai&&(ai.reloadLevel=e.ConfigFileProgramReloadLevel.Full),z.removeResolutionsFromProjectReferenceRedirects(en),t()},e.PollingInterval.High,((Ie=vn.parsedCommandLine)===null||Ie===void 0?void 0:Ie.watchOptions)||h,e.WatchType.ConfigFileOfReferencedProject)),((We=vn.parsedCommandLine)===null||We===void 0?void 0:We.wildcardDirectories)?e.updateWatchingWildcardDirectories(vn.watchedDirectories||(vn.watchedDirectories=new e.Map),new e.Map(e.getEntries((xr=vn.parsedCommandLine)===null||xr===void 0?void 0:xr.wildcardDirectories)),function(An,Qn){var ai;return T(An,function(Dr){var Pr=Ne(Dr);J&&J.addOrDeleteFileOrDirectory(Dr,Pr),j(Pr);var jr=te==null?void 0:te.get(en);!(jr==null?void 0:jr.parsedCommandLine)||e.isIgnoredFileFromWildCardWatching({watchedDirPath:Ne(An),fileOrDirectory:Dr,fileOrDirectoryPath:Pr,configFileName:Qr,options:jr.parsedCommandLine.options,program:jr.parsedCommandLine.fileNames,currentDirectory:S,useCaseSensitiveFileNames:y,writeLog:Z,toPath:Ne})||jr.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(jr.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,t())},Qn,((ai=vn.parsedCommandLine)===null||ai===void 0?void 0:ai.watchOptions)||h,e.WatchType.WildcardDirectoryOfReferencedProject)}):vn.watchedDirectories&&(e.clearMap(vn.watchedDirectories,e.closeFileWatcherOf),vn.watchedDirectories=void 0),Mr(en,(Lr=vn.parsedCommandLine)===null||Lr===void 0?void 0:Lr.options,((xn=vn.parsedCommandLine)===null||xn===void 0?void 0:xn.watchOptions)||h,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=O})(fr||(fr={}));var fr;(function(e){var o;(function(K){K[K.Unbuildable=0]="Unbuildable",K[K.UpToDate=1]="UpToDate",K[K.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",K[K.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",K[K.OutputMissing=4]="OutputMissing",K[K.ErrorReadingFile=5]="ErrorReadingFile",K[K.OutOfDateWithSelf=6]="OutOfDateWithSelf",K[K.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",K[K.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",K[K.UpstreamOutOfDate=9]="UpstreamOutOfDate",K[K.UpstreamBlocked=10]="UpstreamBlocked",K[K.ComputingUpstream=11]="ComputingUpstream",K[K.TsVersionOutputOfDate=12]="TsVersionOutputOfDate",K[K.UpToDateWithInputFileText=13]="UpToDateWithInputFileText",K[K.ContainerOnly=14]="ContainerOnly",K[K.ForceBuild=15]="ForceBuild"})(o=e.UpToDateStatusType||(e.UpToDateStatusType={}));function ne(K){return e.fileExtensionIs(K,".json")?K:e.combinePaths(K,"tsconfig.json")}e.resolveConfigFileProjectName=ne})(fr||(fr={}));var fr;(function(e){var o=new Date(-864e13),ne=new Date(864e13),K;(function(xe){xe[xe.None=0]="None",xe[xe.Success=1]="Success",xe[xe.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",xe[xe.ConfigFileErrors=4]="ConfigFileErrors",xe[xe.SyntaxErrors=8]="SyntaxErrors",xe[xe.TypeErrors=16]="TypeErrors",xe[xe.DeclarationEmitErrors=32]="DeclarationEmitErrors",xe[xe.EmitErrors=64]="EmitErrors",xe[xe.AnyErrors=124]="AnyErrors"})(K||(K={}));function se(xe,cr,Mr){var Rr=xe.get(cr),Qr;return Rr||(Qr=Mr(),xe.set(cr,Qr)),Rr||Qr}function O(xe,cr){return se(xe,cr,function(){return new e.Map})}function ie(xe){return xe.now?xe.now():new Date}e.getCurrentTime=ie;function _e(xe){return!!xe&&!!xe.buildOrder}e.isCircularBuildOrder=_e;function Q(xe){return _e(xe)?xe.buildOrder:xe}e.getBuildOrderFromAnyBuildOrder=Q;function p(xe,cr){return function(Mr){var Rr=cr?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(xe),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(xe)," - ");Rr+="".concat(e.flattenDiagnosticMessageText(Mr.messageText,xe.newLine)).concat(xe.newLine+xe.newLine),xe.write(Rr)}}e.createBuilderStatusReporter=p;function D(xe,cr,Mr,Rr){var Qr=e.createProgramHost(xe,cr);return Qr.getModifiedTime=xe.getModifiedTime?function(en){return xe.getModifiedTime(en)}:e.returnUndefined,Qr.setModifiedTime=xe.setModifiedTime?function(en,vn){return xe.setModifiedTime(en,vn)}:e.noop,Qr.deleteFile=xe.deleteFile?function(en){return xe.deleteFile(en)}:e.noop,Qr.reportDiagnostic=Mr||e.createDiagnosticReporter(xe),Qr.reportSolutionBuilderStatus=Rr||p(xe),Qr.now=e.maybeBind(xe,xe.now),Qr}function le(xe,cr,Mr,Rr,Qr){xe===void 0&&(xe=e.sys);var en=D(xe,cr,Mr,Rr);return en.reportErrorSummary=Qr,en}e.createSolutionBuilderHost=le;function de(xe,cr,Mr,Rr,Qr){xe===void 0&&(xe=e.sys);var en=D(xe,cr,Mr,Rr),vn=e.createWatchHost(xe,Qr);return e.copyProperties(en,vn),en}e.createSolutionBuilderWithWatchHost=de;function te(xe){var cr={};return e.commonOptionsWithBuild.forEach(function(Mr){e.hasProperty(xe,Mr.name)&&(cr[Mr.name]=xe[Mr.name])}),cr}function oe(xe,cr,Mr){return kr(!1,xe,cr,Mr)}e.createSolutionBuilder=oe;function ae(xe,cr,Mr,Rr){return kr(!0,xe,cr,Mr,Rr)}e.createSolutionBuilderWithWatch=ae;function E(xe,cr,Mr,Rr,Qr){var en=cr,vn=cr,Ie=en.getCurrentDirectory(),We=e.createGetCanonicalFileName(en.useCaseSensitiveFileNames()),xr=te(Rr),Lr=e.createCompilerHostFromProgramHost(en,function(){return je.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Lr),Lr.getParsedCommandLine=function(Sr){return S(je,Sr,f(je,Sr))},Lr.resolveModuleNames=e.maybeBind(en,en.resolveModuleNames),Lr.resolveTypeReferenceDirectives=e.maybeBind(en,en.resolveTypeReferenceDirectives),Lr.getModuleResolutionCache=e.maybeBind(en,en.getModuleResolutionCache);var xn=Lr.resolveModuleNames?void 0:e.createModuleResolutionCache(Ie,We),An=Lr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(Ie,We,void 0,xn==null?void 0:xn.getPackageJsonInfoCache());if(!Lr.resolveModuleNames){var Qn=function(Sr,Te,Ye,Qe){return e.resolveModuleName(Sr,Ye,je.projectCompilerOptions,Lr,xn,Qe,Te).resolvedModule};Lr.resolveModuleNames=function(Sr,Te,Ye,Qe,ue,Ke){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(Sr),e.Debug.checkDefined(Ke),Te,Qe,Qn)},Lr.getModuleResolutionCache=function(){return xn}}if(!Lr.resolveTypeReferenceDirectives){var ai=function(Sr,Te,Ye,Qe){return e.resolveTypeReferenceDirective(Sr,Te,je.projectCompilerOptions,Lr,Ye,je.typeReferenceDirectiveResolutionCache,Qe).resolvedTypeReferenceDirective};Lr.resolveTypeReferenceDirectives=function(Sr,Te,Ye,Qe,ue){return e.loadWithTypeDirectiveCache(e.Debug.checkEachDefined(Sr),Te,Ye,ue,ai)}}Lr.getBuildInfo=function(Sr,Te){return pe(je,Sr,f(je,Te),void 0)};var Dr=e.createWatchFactory(vn,Rr),Pr=Dr.watchFile,jr=Dr.watchDirectory,on=Dr.writeLog,je={host:en,hostWithWatch:vn,currentDirectory:Ie,getCanonicalFileName:We,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(en),write:e.maybeBind(en,en.trace),options:Rr,baseCompilerOptions:xr,rootNames:Mr,baseWatchOptions:Qr,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,extendedConfigCache:new e.Map,buildInfoCache:new e.Map,outputTimeStamps:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Lr,moduleResolutionCache:xn,typeReferenceDirectiveResolutionCache:An,buildOrder:void 0,readFileWithCache:function(Sr){return en.readFile(Sr)},projectCompilerOptions:xr,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:xe,watch:xe,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,filesWatched:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:Pr,watchDirectory:jr,writeLog:on};return je}function I(xe,cr){return e.toPath(cr,xe.currentDirectory,xe.getCanonicalFileName)}function f(xe,cr){var Mr=xe.resolvedConfigFilePaths,Rr=Mr.get(cr);if(Rr!==void 0)return Rr;var Qr=I(xe,cr);return Mr.set(cr,Qr),Qr}function m(xe){return!!xe.options}function y(xe,cr){var Mr=xe.configFileCache.get(cr);return Mr&&m(Mr)?Mr:void 0}function S(xe,cr,Mr){var Rr=xe.configFileCache,Qr=Rr.get(Mr);if(Qr)return m(Qr)?Qr:void 0;e.performance.mark("SolutionBuilder::beforeConfigFileParsing");var en,vn=xe.parseConfigFileHost,Ie=xe.baseCompilerOptions,We=xe.baseWatchOptions,xr=xe.extendedConfigCache,Lr=xe.host,xn;return Lr.getParsedCommandLine?(xn=Lr.getParsedCommandLine(cr),xn||(en=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,cr))):(vn.onUnRecoverableConfigFileDiagnostic=function(An){return en=An},xn=e.getParsedCommandLineOfConfigFile(cr,Ie,vn,xr,We),vn.onUnRecoverableConfigFileDiagnostic=e.noop),Rr.set(Mr,xn||en),e.performance.mark("SolutionBuilder::afterConfigFileParsing"),e.performance.measure("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),xn}function k(xe,cr){return e.resolveConfigFileProjectName(e.resolvePath(xe.currentDirectory,cr))}function C(xe,cr){for(var Mr=new e.Map,Rr=new e.Map,Qr=[],en,vn,Ie=0,We=cr;Ie<We.length;Ie++){var xr=We[Ie];Lr(xr)}return vn?{buildOrder:en||e.emptyArray,circularDiagnostics:vn}:en||e.emptyArray;function Lr(xn,An){var Qn=f(xe,xn);if(!Rr.has(Qn)){if(Mr.has(Qn)){An||(vn||(vn=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Qr.join(`\r
  251. `)));return}Mr.set(Qn,!0),Qr.push(xn);var ai=S(xe,xn,Qn);if(ai&&ai.projectReferences)for(var Dr=0,Pr=ai.projectReferences;Dr<Pr.length;Dr++){var jr=Pr[Dr],on=k(xe,jr.path);Lr(on,An||jr.circular)}Qr.pop(),Rr.set(Qn,!0),(en||(en=[])).push(xn)}}}function me(xe){return xe.buildOrder||De(xe)}function De(xe){var cr=C(xe,xe.rootNames.map(function(Qr){return k(xe,Qr)}));xe.resolvedConfigFilePaths.clear();var Mr=new e.Map(Q(cr).map(function(Qr){return[f(xe,Qr),!0]})),Rr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(xe.configFileCache,Mr,Rr),e.mutateMapSkippingNewValues(xe.projectStatus,Mr,Rr),e.mutateMapSkippingNewValues(xe.builderPrograms,Mr,Rr),e.mutateMapSkippingNewValues(xe.diagnostics,Mr,Rr),e.mutateMapSkippingNewValues(xe.projectPendingBuild,Mr,Rr),e.mutateMapSkippingNewValues(xe.projectErrorsReported,Mr,Rr),e.mutateMapSkippingNewValues(xe.buildInfoCache,Mr,Rr),e.mutateMapSkippingNewValues(xe.outputTimeStamps,Mr,Rr),xe.watch&&(e.mutateMapSkippingNewValues(xe.allWatchedConfigFiles,Mr,{onDeleteValue:e.closeFileWatcher}),xe.allWatchedExtendedConfigFiles.forEach(function(Qr){Qr.projects.forEach(function(en){Mr.has(en)||Qr.projects.delete(en)}),Qr.close()}),e.mutateMapSkippingNewValues(xe.allWatchedWildcardDirectories,Mr,{onDeleteValue:function(Qr){return Qr.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(xe.allWatchedInputFiles,Mr,{onDeleteValue:function(Qr){return Qr.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(xe.allWatchedPackageJsonFiles,Mr,{onDeleteValue:function(Qr){return Qr.forEach(e.closeFileWatcher)}})),xe.buildOrder=cr}function X(xe,cr,Mr){var Rr=cr&&k(xe,cr),Qr=me(xe);if(_e(Qr))return Qr;if(Rr){var en=f(xe,Rr),vn=e.findIndex(Qr,function(We){return f(xe,We)===en});if(vn===-1)return}var Ie=Rr?C(xe,[Rr]):Qr;return e.Debug.assert(!_e(Ie)),e.Debug.assert(!Mr||Rr!==void 0),e.Debug.assert(!Mr||Ie[Ie.length-1]===Rr),Mr?Ie.slice(0,Ie.length-1):Ie}function M(xe){xe.cache&&H(xe);var cr=xe.compilerHost,Mr=xe.host,Rr=xe.readFileWithCache,Qr=cr.getSourceFile,en=e.changeCompilerHostLikeToUseCache(Mr,function(Qn){return I(xe,Qn)},function(){for(var Qn=[],ai=0;ai<arguments.length;ai++)Qn[ai]=arguments[ai];return Qr.call.apply(Qr,zn([cr],Qn,!1))}),vn=en.originalReadFile,Ie=en.originalFileExists,We=en.originalDirectoryExists,xr=en.originalCreateDirectory,Lr=en.originalWriteFile,xn=en.getSourceFileWithCache,An=en.readFileWithCache;xe.readFileWithCache=An,cr.getSourceFile=xn,xe.cache={originalReadFile:vn,originalFileExists:Ie,originalDirectoryExists:We,originalCreateDirectory:xr,originalWriteFile:Lr,originalReadFileWithCache:Rr,originalGetSourceFile:Qr}}function H(xe){if(!!xe.cache){var cr=xe.cache,Mr=xe.host,Rr=xe.compilerHost,Qr=xe.extendedConfigCache,en=xe.moduleResolutionCache,vn=xe.typeReferenceDirectiveResolutionCache;Mr.readFile=cr.originalReadFile,Mr.fileExists=cr.originalFileExists,Mr.directoryExists=cr.originalDirectoryExists,Mr.createDirectory=cr.originalCreateDirectory,Mr.writeFile=cr.originalWriteFile,Rr.getSourceFile=cr.originalGetSourceFile,xe.readFileWithCache=cr.originalReadFileWithCache,Qr.clear(),en==null||en.clear(),vn==null||vn.clear(),xe.cache=void 0}}function V(xe,cr){xe.projectStatus.delete(cr),xe.diagnostics.delete(cr)}function h(xe,cr,Mr){var Rr=xe.projectPendingBuild,Qr=Rr.get(cr);(Qr===void 0||Qr<Mr)&&Rr.set(cr,Mr)}function F(xe,cr){if(!!xe.allProjectBuildPending){xe.allProjectBuildPending=!1,xe.options.watch&&rn(xe,e.Diagnostics.Starting_compilation_in_watch_mode),M(xe);var Mr=Q(me(xe));Mr.forEach(function(Rr){return xe.projectPendingBuild.set(f(xe,Rr),e.ConfigFileProgramReloadLevel.None)}),cr&&cr.throwIfCancellationRequested()}}var $;(function(xe){xe[xe.Build=0]="Build",xe[xe.UpdateBundle=1]="UpdateBundle",xe[xe.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})($=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function L(xe,cr){return xe.projectPendingBuild.delete(cr),xe.diagnostics.has(cr)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function P(xe,cr,Mr,Rr,Qr){var en=!0;return{kind:$.UpdateOutputFileStamps,project:cr,projectPath:Mr,buildOrder:Qr,getCompilerOptions:function(){return Rr.options},getCurrentDirectory:function(){return xe.currentDirectory},updateOutputFileStatmps:function(){Ne(xe,Rr,Mr),en=!1},done:function(){return en&&Ne(xe,Rr,Mr),e.performance.mark("SolutionBuilder::Timestamps only updates"),L(xe,Mr)}}}var N;(function(xe){xe[xe.CreateProgram=0]="CreateProgram",xe[xe.SyntaxDiagnostics=1]="SyntaxDiagnostics",xe[xe.SemanticDiagnostics=2]="SemanticDiagnostics",xe[xe.Emit=3]="Emit",xe[xe.EmitBundle=4]="EmitBundle",xe[xe.EmitBuildInfo=5]="EmitBuildInfo",xe[xe.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",xe[xe.QueueReferencingProjects=7]="QueueReferencingProjects",xe[xe.Done=8]="Done"})(N||(N={}));function J(xe,cr,Mr,Rr,Qr,en,vn){var Ie=xe===$.Build?N.CreateProgram:N.EmitBundle,We,xr,Lr;return xe===$.Build?{kind:xe,project:Mr,projectPath:Rr,buildOrder:vn,getCompilerOptions:function(){return en.options},getCurrentDirectory:function(){return cr.currentDirectory},getBuilderProgram:function(){return An(e.identity)},getProgram:function(){return An(function(Qe){return Qe.getProgramOrUndefined()})},getSourceFile:function(Qe){return An(function(ue){return ue.getSourceFile(Qe)})},getSourceFiles:function(){return Qn(function(Qe){return Qe.getSourceFiles()})},getOptionsDiagnostics:function(Qe){return Qn(function(ue){return ue.getOptionsDiagnostics(Qe)})},getGlobalDiagnostics:function(Qe){return Qn(function(ue){return ue.getGlobalDiagnostics(Qe)})},getConfigFileParsingDiagnostics:function(){return Qn(function(Qe){return Qe.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(Qe,ue){return Qn(function(Ke){return Ke.getSyntacticDiagnostics(Qe,ue)})},getAllDependencies:function(Qe){return Qn(function(ue){return ue.getAllDependencies(Qe)})},getSemanticDiagnostics:function(Qe,ue){return Qn(function(Ke){return Ke.getSemanticDiagnostics(Qe,ue)})},getSemanticDiagnosticsOfNextAffectedFile:function(Qe,ue){return An(function(Ke){return Ke.getSemanticDiagnosticsOfNextAffectedFile&&Ke.getSemanticDiagnosticsOfNextAffectedFile(Qe,ue)})},emit:function(Qe,ue,Ke,tr,hr){if(Qe||tr)return An(function(_r){var Or,zr;return _r.emit(Qe,ue,Ke,tr,hr||((zr=(Or=cr.host).getCustomTransformers)===null||zr===void 0?void 0:zr.call(Or,Mr)))});if(Ye(N.SemanticDiagnostics,Ke),Ie===N.EmitBuildInfo)return je(ue,Ke);if(Ie===N.Emit)return on(ue,Ke,hr)},done:xn}:{kind:xe,project:Mr,projectPath:Rr,buildOrder:vn,getCompilerOptions:function(){return en.options},getCurrentDirectory:function(){return cr.currentDirectory},emit:function(Qe,ue){return Ie!==N.EmitBundle?Lr:Te(Qe,ue)},done:xn};function xn(Qe,ue,Ke){return Ye(N.Done,Qe,ue,Ke),xe===$.Build?e.performance.mark("SolutionBuilder::Projects built"):e.performance.mark("SolutionBuilder::Bundles updated"),L(cr,Rr)}function An(Qe){return Ye(N.CreateProgram),We&&Qe(We)}function Qn(Qe){return An(Qe)||e.emptyArray}function ai(){var Qe,ue;if(e.Debug.assert(We===void 0),cr.options.dry){Cr(cr,e.Diagnostics.A_non_dry_build_would_build_project_0,Mr),xr=K.Success,Ie=N.QueueReferencingProjects;return}if(cr.options.verbose&&Cr(cr,e.Diagnostics.Building_project_0,Mr),en.fileNames.length===0){pn(cr,Rr,e.getConfigFileParsingDiagnostics(en)),xr=K.None,Ie=N.QueueReferencingProjects;return}var Ke=cr.host,tr=cr.compilerHost;cr.projectCompilerOptions=en.options,(Qe=cr.moduleResolutionCache)===null||Qe===void 0||Qe.update(en.options),(ue=cr.typeReferenceDirectiveResolutionCache)===null||ue===void 0||ue.update(en.options),We=Ke.createProgram(en.fileNames,en.options,tr,T(cr,Rr,en),e.getConfigFileParsingDiagnostics(en),en.projectReferences),cr.watch&&(cr.lastCachedPackageJsonLookups.set(Rr,cr.moduleResolutionCache&&e.map(cr.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(hr){var _r=hr[0],Or=hr[1];return[cr.host.realpath&&Or?I(cr,cr.host.realpath(_r)):_r,Or]})),cr.builderPrograms.set(Rr,We)),Ie++}function Dr(Qe,ue,Ke){var tr;Qe.length?(tr=B(cr,Rr,We,en,Qe,ue,Ke),xr=tr.buildResult,Ie=tr.step):Ie++}function Pr(Qe){e.Debug.assertIsDefined(We),Dr(zn(zn(zn(zn([],We.getConfigFileParsingDiagnostics(),!0),We.getOptionsDiagnostics(Qe),!0),We.getGlobalDiagnostics(Qe),!0),We.getSyntacticDiagnostics(void 0,Qe),!0),K.SyntaxErrors,"Syntactic")}function jr(Qe){Dr(e.Debug.checkDefined(We).getSemanticDiagnostics(void 0,Qe),K.TypeErrors,"Semantic")}function on(Qe,ue,Ke){var tr,hr,_r,Or;e.Debug.assertIsDefined(We),e.Debug.assert(Ie===N.Emit);var zr=We.saveEmitState(),fn,Vr=function(Pe){return(fn||(fn=[])).push(Pe)},Wn=[],bn=e.emitFilesAndReportErrors(We,Vr,void 0,void 0,function(Pe,Ir,we,hn,jn,gn){return Wn.push({name:Pe,text:Ir,writeByteOrderMark:we,buildInfo:gn==null?void 0:gn.buildInfo})},ue,!1,Ke||((_r=(hr=cr.host).getCustomTransformers)===null||_r===void 0?void 0:_r.call(hr,Mr))).emitResult;if(fn)return We.restoreEmitState(zr),tr=B(cr,Rr,We,en,fn,K.DeclarationEmitErrors,"Declaration file"),xr=tr.buildResult,Ie=tr.step,{emitSkipped:!0,diagnostics:bn.diagnostics};var qn=cr.host,yn=cr.compilerHost,Hn=((Or=We.hasChangedEmitSignature)===null||Or===void 0?void 0:Or.call(We))?K.None:K.DeclarationOutputUnchanged,Ai=e.createDiagnosticCollection(),ti=new e.Map,Hi=We.getCompilerOptions(),Ni=e.isIncrementalCompilation(Hi),gi,Pn;return Wn.forEach(function(Pe){var Ir=Pe.name,we=Pe.text,hn=Pe.writeByteOrderMark,jn=Pe.buildInfo,gn=I(cr,Ir);ti.set(I(cr,Ir),Ir),jn&&U(cr,jn,Rr,Hi,Hn),e.writeFile(Qe?{writeFile:Qe}:yn,Ai,Ir,we,hn),!Ni&&cr.watch&&(gi||(gi=z(cr,Rr))).set(gn,Pn||(Pn=ie(cr.host)))}),Sr(Ai,ti,Wn.length?Wn[0].name:e.getFirstProjectOutput(en,!qn.useCaseSensitiveFileNames()),Hn),bn}function je(Qe,ue){e.Debug.assertIsDefined(We),e.Debug.assert(Ie===N.EmitBuildInfo);var Ke=We.emitBuildInfo(function(tr,hr,_r,Or,zr,fn){(fn==null?void 0:fn.buildInfo)&&U(cr,fn.buildInfo,Rr,We.getCompilerOptions(),K.DeclarationOutputUnchanged),Qe?Qe(tr,hr,_r,Or,zr,fn):cr.compilerHost.writeFile(tr,hr,_r,Or,zr,fn)},ue);return Ke.diagnostics.length&&(Br(cr,Ke.diagnostics),cr.diagnostics.set(Rr,zn(zn([],cr.diagnostics.get(Rr),!0),Ke.diagnostics,!0)),xr=K.EmitErrors&xr),Ke.emittedFiles&&cr.write&&Ke.emittedFiles.forEach(function(tr){return x(cr,en,tr)}),Z(cr,We,en),Ie=N.QueueReferencingProjects,Ke}function Sr(Qe,ue,Ke,tr){var hr,_r=Qe.getDiagnostics();return _r.length?(hr=B(cr,Rr,We,en,_r,K.EmitErrors,"Emit"),xr=hr.buildResult,Ie=hr.step,_r):(cr.write&&ue.forEach(function(Or){return x(cr,en,Or)}),Ae(cr,en,Rr,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,ue),cr.diagnostics.delete(Rr),cr.projectStatus.set(Rr,{type:e.UpToDateStatusType.UpToDate,oldestOutputFileName:Ke}),Z(cr,We,en),Ie=N.QueueReferencingProjects,xr=tr,_r)}function Te(Qe,ue){var Ke,tr;if(e.Debug.assert(xe===$.UpdateBundle),cr.options.dry){Cr(cr,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,Mr),xr=K.Success,Ie=N.QueueReferencingProjects;return}cr.options.verbose&&Cr(cr,e.Diagnostics.Updating_output_of_project_0,Mr);var hr=cr.compilerHost;cr.projectCompilerOptions=en.options;var _r=e.emitUsingBuildInfo(en,hr,function(bn){var qn=k(cr,bn.path);return S(cr,qn,f(cr,qn))},ue||((tr=(Ke=cr.host).getCustomTransformers)===null||tr===void 0?void 0:tr.call(Ke,Mr)));if(e.isString(_r))return Cr(cr,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,Mr,Ur(cr,_r)),Ie=N.BuildInvalidatedProjectOfBundle,Lr=J($.Build,cr,Mr,Rr,Qr,en,vn);e.Debug.assert(!!_r.length);var Or=e.createDiagnosticCollection(),zr=new e.Map,fn=K.DeclarationOutputUnchanged,Vr=cr.buildInfoCache.get(Rr).buildInfo||void 0;_r.forEach(function(bn){var qn,yn,Hn=bn.name,Ai=bn.text,ti=bn.writeByteOrderMark,Hi=bn.buildInfo;zr.set(I(cr,Hn),Hn),Hi&&(((qn=Hi.program)===null||qn===void 0?void 0:qn.outSignature)!==((yn=Vr==null?void 0:Vr.program)===null||yn===void 0?void 0:yn.outSignature)&&(fn&=~K.DeclarationOutputUnchanged),U(cr,Hi,Rr,en.options,fn)),e.writeFile(Qe?{writeFile:Qe}:hr,Or,Hn,Ai,ti)});var Wn=Sr(Or,zr,_r[0].name,fn);return{emitSkipped:!1,diagnostics:Wn}}function Ye(Qe,ue,Ke,tr){for(;Ie<=Qe&&Ie<N.Done;){var hr=Ie;switch(Ie){case N.CreateProgram:ai();break;case N.SyntaxDiagnostics:Pr(ue);break;case N.SemanticDiagnostics:jr(ue);break;case N.Emit:on(Ke,ue,tr);break;case N.EmitBuildInfo:je(Ke,ue);break;case N.EmitBundle:Te(Ke,tr);break;case N.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Lr).done(ue,Ke,tr),Ie=N.Done;break;case N.QueueReferencingProjects:Oe(cr,Mr,Rr,Qr,en,vn,e.Debug.checkDefined(xr)),Ie++;break;case N.Done:default:e.assertType(Ie)}e.Debug.assert(Ie>hr)}}}function q(xe,cr,Mr){var Rr=xe.options;return cr.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Rr.force?!0:Mr.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(Mr).length||!e.isIncrementalCompilation(Mr.options)}function G(xe,cr,Mr){if(!!xe.projectPendingBuild.size&&!_e(cr))for(var Rr=xe.options,Qr=xe.projectPendingBuild,en=0;en<cr.length;en++){var vn=cr[en],Ie=f(xe,vn),We=xe.projectPendingBuild.get(Ie);if(We!==void 0){Mr&&(Mr=!1,Ee(xe,cr));var xr=S(xe,vn,Ie);if(!xr){ve(xe,Ie),Qr.delete(Ie);continue}We===e.ConfigFileProgramReloadLevel.Full?(mr(xe,vn,Ie,xr),Ue(xe,Ie,xr),t(xe,vn,Ie,xr),qr(xe,vn,Ie,xr),ln(xe,vn,Ie,xr)):We===e.ConfigFileProgramReloadLevel.Partial&&(xr.fileNames=e.getFileNamesFromConfigSpecs(xr.options.configFile.configFileSpecs,e.getDirectoryPath(vn),xr.options,xe.parseConfigFileHost),e.updateErrorForNoInputFiles(xr.fileNames,vn,xr.options.configFile.configFileSpecs,xr.errors,e.canJsonReportNoInputFiles(xr.raw)),qr(xe,vn,Ie,xr),ln(xe,vn,Ie,xr));var Lr=Le(xe,xr,Ie);if(!Rr.force){if(Lr.type===e.UpToDateStatusType.UpToDate){Ar(xe,vn,Lr),pn(xe,Ie,e.getConfigFileParsingDiagnostics(xr)),Qr.delete(Ie),Rr.dry&&Cr(xe,e.Diagnostics.Project_0_is_up_to_date,vn);continue}if(Lr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes||Lr.type===e.UpToDateStatusType.UpToDateWithInputFileText)return pn(xe,Ie,e.getConfigFileParsingDiagnostics(xr)),{kind:$.UpdateOutputFileStamps,status:Lr,project:vn,projectPath:Ie,projectIndex:en,config:xr}}if(Lr.type===e.UpToDateStatusType.UpstreamBlocked){Ar(xe,vn,Lr),pn(xe,Ie,e.getConfigFileParsingDiagnostics(xr)),Qr.delete(Ie),Rr.verbose&&Cr(xe,Lr.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,vn,Lr.upstreamProjectName);continue}if(Lr.type===e.UpToDateStatusType.ContainerOnly){Ar(xe,vn,Lr),pn(xe,Ie,e.getConfigFileParsingDiagnostics(xr)),Qr.delete(Ie);continue}return{kind:q(xe,Lr,xr)?$.Build:$.UpdateBundle,status:Lr,project:vn,projectPath:Ie,projectIndex:en,config:xr}}}}function ye(xe,cr,Mr){return Ar(xe,cr.project,cr.status),cr.kind!==$.UpdateOutputFileStamps?J(cr.kind,xe,cr.project,cr.projectPath,cr.projectIndex,cr.config,Mr):P(xe,cr.project,cr.projectPath,cr.config,Mr)}function b(xe,cr,Mr){var Rr=G(xe,cr,Mr);return Rr&&ye(xe,Rr,cr)}function x(xe,cr,Mr){var Rr=xe.write;Rr&&cr.options.listEmittedFiles&&Rr("TSFILE: ".concat(Mr))}function T(xe,cr,Mr){var Rr=xe.options,Qr=xe.builderPrograms,en=xe.compilerHost;if(!Rr.force){var vn=Qr.get(cr);return vn||e.readBuilderProgram(Mr.options,en)}}function Z(xe,cr,Mr){cr?(xe.write&&e.listFiles(cr,xe.write),xe.host.afterProgramEmitAndDiagnostics&&xe.host.afterProgramEmitAndDiagnostics(cr),cr.releaseProgram()):xe.host.afterEmitBundle&&xe.host.afterEmitBundle(Mr),xe.projectCompilerOptions=xe.baseCompilerOptions}function B(xe,cr,Mr,Rr,Qr,en,vn){var Ie=Mr&&!e.outFile(Mr.getCompilerOptions());return pn(xe,cr,Qr),xe.projectStatus.set(cr,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(vn," errors")}),Ie?{buildResult:en,step:N.EmitBuildInfo}:(Z(xe,Mr,Rr),{buildResult:en,step:N.QueueReferencingProjects})}function u(xe){return!!xe.watcher}function A(xe,cr){var Mr=I(xe,cr),Rr=xe.filesWatched.get(Mr);if(xe.watch&&!!Rr){if(!u(Rr))return Rr;if(Rr.modifiedTime)return Rr.modifiedTime}var Qr=e.getModifiedTime(xe.host,cr);return xe.watch&&(Rr?Rr.modifiedTime=Qr:xe.filesWatched.set(Mr,Qr)),Qr}function w(xe,cr,Mr,Rr,Qr,en,vn){var Ie=I(xe,cr),We=xe.filesWatched.get(Ie);if(We&&u(We))We.callbacks.push(Mr);else{var xr=xe.watchFile(cr,function(Lr,xn,An){var Qn=e.Debug.checkDefined(xe.filesWatched.get(Ie));e.Debug.assert(u(Qn)),Qn.modifiedTime=An,Qn.callbacks.forEach(function(ai){return ai(Lr,xn,An)})},Rr,Qr,en,vn);xe.filesWatched.set(Ie,{callbacks:[Mr],watcher:xr,modifiedTime:We})}return{close:function(){var Lr=e.Debug.checkDefined(xe.filesWatched.get(Ie));e.Debug.assert(u(Lr)),Lr.callbacks.length===1?(xe.filesWatched.delete(Ie),e.closeFileWatcherOf(Lr)):e.unorderedRemoveItem(Lr.callbacks,Mr)}}}function z(xe,cr){if(!!xe.watch){var Mr=xe.outputTimeStamps.get(cr);return Mr||xe.outputTimeStamps.set(cr,Mr=new e.Map),Mr}}function U(xe,cr,Mr,Rr,Qr){var en=e.getTsBuildInfoEmitOutputFilePath(Rr),vn=ge(xe,en,Mr),Ie=ie(xe.host);vn?(vn.buildInfo=cr,vn.modifiedTime=Ie,Qr&K.DeclarationOutputUnchanged||(vn.latestChangedDtsTime=Ie)):xe.buildInfoCache.set(Mr,{path:I(xe,en),buildInfo:cr,modifiedTime:Ie,latestChangedDtsTime:Qr&K.DeclarationOutputUnchanged?void 0:Ie})}function ge(xe,cr,Mr){var Rr=I(xe,cr),Qr=xe.buildInfoCache.get(Mr);return(Qr==null?void 0:Qr.path)===Rr?Qr:void 0}function pe(xe,cr,Mr,Rr){var Qr=I(xe,cr),en=xe.buildInfoCache.get(Mr);if(en!==void 0&&en.path===Qr)return en.buildInfo||void 0;var vn=xe.readFileWithCache(cr),Ie=vn?e.getBuildInfo(cr,vn):void 0;return xe.buildInfoCache.set(Mr,{path:Qr,buildInfo:Ie||!1,modifiedTime:Rr||e.missingFileModifiedTime}),Ie}function He(xe,cr,Mr,Rr){var Qr=A(xe,cr);if(Mr<Qr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Rr,newerInputFileName:cr}}function Be(xe,cr,Mr){var Rr,Qr;if(!cr.fileNames.length&&!e.canJsonReportNoInputFiles(cr.raw))return{type:e.UpToDateStatusType.ContainerOnly};var en,vn=!!xe.options.force;if(cr.projectReferences){xe.projectStatus.set(Mr,{type:e.UpToDateStatusType.ComputingUpstream});for(var Ie=0,We=cr.projectReferences;Ie<We.length;Ie++){var xr=We[Ie],Lr=e.resolveProjectReferencePath(xr),xn=f(xe,Lr),An=S(xe,Lr,xn),Qn=Le(xe,An,xn);if(!(Qn.type===e.UpToDateStatusType.ComputingUpstream||Qn.type===e.UpToDateStatusType.ContainerOnly)){if(Qn.type===e.UpToDateStatusType.Unbuildable||Qn.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:xr.path,upstreamProjectBlocked:Qn.type===e.UpToDateStatusType.UpstreamBlocked};if(Qn.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:xr.path};vn||(en||(en=[])).push({ref:xr,refStatus:Qn,resolvedRefPath:xn,resolvedConfig:An})}}}if(vn)return{type:e.UpToDateStatusType.ForceBuild};var ai=xe.host,Dr=e.getTsBuildInfoEmitOutputFilePath(cr.options),Pr,jr=ne,on,je,Sr;if(Dr){var Te=ge(xe,Dr,Mr);if(on=(Te==null?void 0:Te.modifiedTime)||e.getModifiedTime(ai,Dr),on===e.missingFileModifiedTime)return Te||xe.buildInfoCache.set(Mr,{path:I(xe,Dr),buildInfo:!1,modifiedTime:on}),{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:Dr};var Ye=pe(xe,Dr,Mr,on);if(!Ye)return{type:e.UpToDateStatusType.ErrorReadingFile,fileName:Dr};if((Ye.bundle||Ye.program)&&Ye.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:Ye.version};if(Ye.program){if(((Rr=Ye.program.changeFileSet)===null||Rr===void 0?void 0:Rr.length)||(cr.options.noEmit?e.some(Ye.program.semanticDiagnosticsPerFile,e.isArray):(Qr=Ye.program.affectedFilesPendingEmit)===null||Qr===void 0?void 0:Qr.length))return{type:e.UpToDateStatusType.OutOfDateBuildInfo,buildInfoFile:Dr};je=Ye.program}jr=on,Pr=Dr}for(var Qe=void 0,ue=o,Ke=!1,tr=0,hr=cr.fileNames;tr<hr.length;tr++){var _r=hr[tr],Or=A(xe,_r);if(Or===e.missingFileModifiedTime)return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(_r," does not exist")};if(on&&on<Or){var zr=void 0,fn=void 0;if(je){Sr||(Sr=e.getBuildInfoFileVersionMap(je,Dr,ai)),zr=Sr.get(I(xe,_r));var Vr=zr?xe.readFileWithCache(_r):void 0;fn=Vr!==void 0?(ai.createHash||e.generateDjb2Hash)(Vr):void 0,zr&&zr===fn&&(Ke=!0)}if(!zr||zr!==fn)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Dr,newerInputFileName:_r}}Or>ue&&(Qe=_r,ue=Or)}if(!Dr)for(var Wn=e.getAllProjectOutputs(cr,!ai.useCaseSensitiveFileNames()),bn=z(xe,Mr),qn=0,yn=Wn;qn<yn.length;qn++){var Hn=yn[qn],Ai=I(xe,Hn),ti=bn==null?void 0:bn.get(Ai);if(ti||(ti=e.getModifiedTime(xe.host,Hn),bn==null||bn.set(Ai,ti)),ti===e.missingFileModifiedTime)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:Hn};if(ti<ue)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Hn,newerInputFileName:Qe};ti<jr&&(jr=ti,Pr=Hn)}var Hi=xe.buildInfoCache.get(Mr),Ni=!1,gi=!1,Pn;if(en)for(var Pe=0,Ir=en;Pe<Ir.length;Pe++){var we=Ir[Pe],xr=we.ref,Qn=we.refStatus,An=we.resolvedConfig,xn=we.resolvedRefPath;if(gi=gi||!!xr.prepend,!(Qn.newestInputFileTime&&Qn.newestInputFileTime<=jr)){if(Hi&&Me(xe,Hi,xn))return{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Dr,newerProjectName:xr.path};var hn=Xe(xe,An.options,xn);if(hn&&hn<=jr){Ni=!0,Pn=xr.path;continue}return e.Debug.assert(Pr!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Pr,newerProjectName:xr.path}}}var jn=He(xe,cr.options.configFilePath,jr,Pr);if(jn)return jn;var gn=e.forEach(cr.options.configFile.extendedSourceFiles||e.emptyArray,function(Cn){return He(xe,Cn,jr,Pr)});if(gn)return gn;var nn=e.forEach(xe.lastCachedPackageJsonLookups.get(Mr)||e.emptyArray,function(Cn){var Dn=Cn[0];return He(xe,Dn,jr,Pr)});return nn||(gi&&Ni?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:Pr,newerProjectName:Pn}:{type:Ni?e.UpToDateStatusType.UpToDateWithUpstreamTypes:Ke?e.UpToDateStatusType.UpToDateWithInputFileText:e.UpToDateStatusType.UpToDate,newestInputFileTime:ue,newestInputFileName:Qe,oldestOutputFileName:Pr})}function Me(xe,cr,Mr){var Rr=xe.buildInfoCache.get(Mr);return Rr.path===cr.path}function Le(xe,cr,Mr){if(cr===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Rr=xe.projectStatus.get(Mr);if(Rr!==void 0)return Rr;e.performance.mark("SolutionBuilder::beforeUpToDateCheck");var Qr=Be(xe,cr,Mr);return e.performance.mark("SolutionBuilder::afterUpToDateCheck"),e.performance.measure("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),xe.projectStatus.set(Mr,Qr),Qr}function Ae(xe,cr,Mr,Rr,Qr){if(!cr.options.noEmit){var en,vn=e.getTsBuildInfoEmitOutputFilePath(cr.options);if(vn){(Qr==null?void 0:Qr.has(I(xe,vn)))||(xe.options.verbose&&Cr(xe,Rr,cr.options.configFilePath),xe.host.setModifiedTime(vn,en=ie(xe.host)),ge(xe,vn,Mr).modifiedTime=en),xe.outputTimeStamps.delete(Mr);return}var Ie=xe.host,We=e.getAllProjectOutputs(cr,!Ie.useCaseSensitiveFileNames()),xr=z(xe,Mr),Lr=xr?new e.Set:void 0;if(!Qr||We.length!==Qr.size)for(var xn=!!xe.options.verbose,An=0,Qn=We;An<Qn.length;An++){var ai=Qn[An],Dr=I(xe,ai);(Qr==null?void 0:Qr.has(Dr))||(xn&&(xn=!1,Cr(xe,Rr,cr.options.configFilePath)),Ie.setModifiedTime(ai,en||(en=ie(xe.host))),xr&&(xr.set(Dr,en),Lr.add(Dr)))}xr==null||xr.forEach(function(Pr,jr){!(Qr==null?void 0:Qr.has(jr))&&!Lr.has(jr)&&xr.delete(jr)})}}function Xe(xe,cr,Mr){if(!!cr.composite){var Rr=e.Debug.checkDefined(xe.buildInfoCache.get(Mr));if(Rr.latestChangedDtsTime!==void 0)return Rr.latestChangedDtsTime||void 0;var Qr=Rr.buildInfo&&Rr.buildInfo.program&&Rr.buildInfo.program.latestChangedDtsFile?xe.host.getModifiedTime(e.getNormalizedAbsolutePath(Rr.buildInfo.program.latestChangedDtsFile,e.getDirectoryPath(Rr.path))):void 0;return Rr.latestChangedDtsTime=Qr||!1,Qr}}function Ne(xe,cr,Mr){if(xe.options.dry)return Cr(xe,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,cr.options.configFilePath);Ae(xe,cr,Mr,e.Diagnostics.Updating_output_timestamps_of_project_0),xe.projectStatus.set(Mr,{type:e.UpToDateStatusType.UpToDate,oldestOutputFileName:e.getFirstProjectOutput(cr,!xe.host.useCaseSensitiveFileNames())})}function Oe(xe,cr,Mr,Rr,Qr,en,vn){if(!(vn&K.AnyErrors)&&!!Qr.options.composite)for(var Ie=Rr+1;Ie<en.length;Ie++){var We=en[Ie],xr=f(xe,We);if(!xe.projectPendingBuild.has(xr)){var Lr=S(xe,We,xr);if(!(!Lr||!Lr.projectReferences))for(var xn=0,An=Lr.projectReferences;xn<An.length;xn++){var Qn=An[xn],ai=k(xe,Qn.path);if(f(xe,ai)===Mr){var Dr=xe.projectStatus.get(xr);if(Dr)switch(Dr.type){case e.UpToDateStatusType.UpToDate:if(vn&K.DeclarationOutputUnchanged){Qn.prepend?xe.projectStatus.set(xr,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:Dr.oldestOutputFileName,newerProjectName:cr}):Dr.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithInputFileText:case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:vn&K.DeclarationOutputUnchanged||xe.projectStatus.set(xr,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Dr.type===e.UpToDateStatusType.OutOfDateWithPrepend?Dr.outOfDateOutputFileName:Dr.oldestOutputFileName,newerProjectName:cr});break;case e.UpToDateStatusType.UpstreamBlocked:f(xe,k(xe,Dr.upstreamProjectName))===Mr&&V(xe,xr);break}h(xe,xr,e.ConfigFileProgramReloadLevel.None);break}}}}}function be(xe,cr,Mr,Rr,Qr,en){e.performance.mark("SolutionBuilder::beforeBuild");var vn=Y(xe,cr,Mr,Rr,Qr,en);return e.performance.mark("SolutionBuilder::afterBuild"),e.performance.measure("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),vn}function Y(xe,cr,Mr,Rr,Qr,en){var vn=X(xe,cr,en);if(!vn)return e.ExitStatus.InvalidProject_OutputsSkipped;F(xe,Mr);for(var Ie=!0,We=0;;){var xr=b(xe,vn,Ie);if(!xr)break;Ie=!1,xr.done(Mr,Rr,Qr==null?void 0:Qr(xr.project)),xe.diagnostics.has(xr.projectPath)||We++}return H(xe),or(xe,vn),dr(xe,vn),_e(vn)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:vn.some(function(Lr){return xe.diagnostics.has(f(xe,Lr))})?We?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function d(xe,cr,Mr){e.performance.mark("SolutionBuilder::beforeClean");var Rr=j(xe,cr,Mr);return e.performance.mark("SolutionBuilder::afterClean"),e.performance.measure("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),Rr}function j(xe,cr,Mr){var Rr=X(xe,cr,Mr);if(!Rr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(_e(Rr))return Br(xe,Rr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Qr=xe.options,en=xe.host,vn=Qr.dry?[]:void 0,Ie=0,We=Rr;Ie<We.length;Ie++){var xr=We[Ie],Lr=f(xe,xr),xn=S(xe,xr,Lr);if(xn===void 0){ve(xe,Lr);continue}var An=e.getAllProjectOutputs(xn,!en.useCaseSensitiveFileNames());if(!!An.length)for(var Qn=new e.Set(xn.fileNames.map(function(jr){return I(xe,jr)})),ai=0,Dr=An;ai<Dr.length;ai++){var Pr=Dr[ai];Qn.has(I(xe,Pr))||en.fileExists(Pr)&&(vn?vn.push(Pr):(en.deleteFile(Pr),Ce(xe,Lr,e.ConfigFileProgramReloadLevel.None)))}}return vn&&Cr(xe,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,vn.map(function(jr){return`\r
  252. * `.concat(jr)}).join("")),e.ExitStatus.Success}function Ce(xe,cr,Mr){xe.host.getParsedCommandLine&&Mr===e.ConfigFileProgramReloadLevel.Partial&&(Mr=e.ConfigFileProgramReloadLevel.Full),Mr===e.ConfigFileProgramReloadLevel.Full&&(xe.configFileCache.delete(cr),xe.buildOrder=void 0),xe.needsSummary=!0,V(xe,cr),h(xe,cr,Mr),M(xe)}function Se(xe,cr,Mr){xe.reportFileChangeDetected=!0,Ce(xe,cr,Mr),Re(xe,250,!0)}function Re(xe,cr,Mr){var Rr=xe.hostWithWatch;!Rr.setTimeout||!Rr.clearTimeout||(xe.timerToBuildInvalidatedProject&&Rr.clearTimeout(xe.timerToBuildInvalidatedProject),xe.timerToBuildInvalidatedProject=Rr.setTimeout(er,cr,xe,Mr))}function er(xe,cr){e.performance.mark("SolutionBuilder::beforeBuild");var Mr=wr(xe,cr);e.performance.mark("SolutionBuilder::afterBuild"),e.performance.measure("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),Mr&&or(xe,Mr)}function wr(xe,cr){xe.timerToBuildInvalidatedProject=void 0,xe.reportFileChangeDetected&&(xe.reportFileChangeDetected=!1,xe.projectErrorsReported.clear(),rn(xe,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Mr=0,Rr=me(xe),Qr=b(xe,Rr,!1);if(Qr)for(Qr.done(),Mr++;xe.projectPendingBuild.size;){if(xe.timerToBuildInvalidatedProject)return;var en=G(xe,Rr,!1);if(!en)break;if(en.kind!==$.UpdateOutputFileStamps&&(cr||Mr===5)){Re(xe,100,!1);return}var vn=ye(xe,en,Rr);vn.done(),en.kind!==$.UpdateOutputFileStamps&&Mr++}return H(xe),Rr}function mr(xe,cr,Mr,Rr){!xe.watch||xe.allWatchedConfigFiles.has(Mr)||xe.allWatchedConfigFiles.set(Mr,w(xe,cr,function(){return Se(xe,Mr,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Rr==null?void 0:Rr.watchOptions,e.WatchType.ConfigFile,cr))}function Ue(xe,cr,Mr){e.updateSharedExtendedConfigFileWatcher(cr,Mr==null?void 0:Mr.options,xe.allWatchedExtendedConfigFiles,function(Rr,Qr){return w(xe,Rr,function(){var en;return(en=xe.allWatchedExtendedConfigFiles.get(Qr))===null||en===void 0?void 0:en.projects.forEach(function(vn){return Se(xe,vn,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,Mr==null?void 0:Mr.watchOptions,e.WatchType.ExtendedConfigFile)},function(Rr){return I(xe,Rr)})}function t(xe,cr,Mr,Rr){!xe.watch||e.updateWatchingWildcardDirectories(O(xe.allWatchedWildcardDirectories,Mr),new e.Map(e.getEntries(Rr.wildcardDirectories)),function(Qr,en){return xe.watchDirectory(Qr,function(vn){var Ie;e.isIgnoredFileFromWildCardWatching({watchedDirPath:I(xe,Qr),fileOrDirectory:vn,fileOrDirectoryPath:I(xe,vn),configFileName:cr,currentDirectory:xe.currentDirectory,options:Rr.options,program:xe.builderPrograms.get(Mr)||((Ie=y(xe,Mr))===null||Ie===void 0?void 0:Ie.fileNames),useCaseSensitiveFileNames:xe.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(We){return xe.writeLog(We)},toPath:function(We){return I(xe,We)}})||Se(xe,Mr,e.ConfigFileProgramReloadLevel.Partial)},en,Rr==null?void 0:Rr.watchOptions,e.WatchType.WildcardDirectory,cr)})}function qr(xe,cr,Mr,Rr){!xe.watch||e.mutateMap(O(xe.allWatchedInputFiles,Mr),e.arrayToMap(Rr.fileNames,function(Qr){return I(xe,Qr)}),{createNewValue:function(Qr,en){return w(xe,en,function(){return Se(xe,Mr,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Rr==null?void 0:Rr.watchOptions,e.WatchType.SourceFile,cr)},onDeleteValue:e.closeFileWatcher})}function ln(xe,cr,Mr,Rr){!xe.watch||!xe.lastCachedPackageJsonLookups||e.mutateMap(O(xe.allWatchedPackageJsonFiles,Mr),new e.Map(xe.lastCachedPackageJsonLookups.get(Mr)),{createNewValue:function(Qr,en){return w(xe,Qr,function(){return Se(xe,Mr,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.High,Rr==null?void 0:Rr.watchOptions,e.WatchType.PackageJson,cr)},onDeleteValue:e.closeFileWatcher})}function dr(xe,cr){if(!!xe.watchAllProjectsPending){e.performance.mark("SolutionBuilder::beforeWatcherCreation"),xe.watchAllProjectsPending=!1;for(var Mr=0,Rr=Q(cr);Mr<Rr.length;Mr++){var Qr=Rr[Mr],en=f(xe,Qr),vn=S(xe,Qr,en);mr(xe,Qr,en,vn),Ue(xe,en,vn),vn&&(t(xe,Qr,en,vn),qr(xe,Qr,en,vn),ln(xe,Qr,en,vn))}e.performance.mark("SolutionBuilder::afterWatcherCreation"),e.performance.measure("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function vr(xe){e.clearMap(xe.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(xe.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(xe.allWatchedWildcardDirectories,function(cr){return e.clearMap(cr,e.closeFileWatcherOf)}),e.clearMap(xe.allWatchedInputFiles,function(cr){return e.clearMap(cr,e.closeFileWatcher)}),e.clearMap(xe.allWatchedPackageJsonFiles,function(cr){return e.clearMap(cr,e.closeFileWatcher)})}function kr(xe,cr,Mr,Rr,Qr){var en=E(xe,cr,Mr,Rr,Qr);return{build:function(vn,Ie,We,xr){return be(en,vn,Ie,We,xr)},clean:function(vn){return d(en,vn)},buildReferences:function(vn,Ie,We,xr){return be(en,vn,Ie,We,xr,!0)},cleanReferences:function(vn){return d(en,vn,!0)},getNextInvalidatedProject:function(vn){return F(en,vn),b(en,me(en),!1)},getBuildOrder:function(){return me(en)},getUpToDateStatusOfProject:function(vn){var Ie=k(en,vn),We=f(en,Ie);return Le(en,S(en,Ie,We),We)},invalidateProject:function(vn,Ie){return Ce(en,vn,Ie||e.ConfigFileProgramReloadLevel.None)},close:function(){return vr(en)}}}function Ur(xe,cr){return e.convertToRelativePath(cr,xe.currentDirectory,function(Mr){return xe.getCanonicalFileName(Mr)})}function Cr(xe,cr){for(var Mr=[],Rr=2;Rr<arguments.length;Rr++)Mr[Rr-2]=arguments[Rr];xe.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,zn([cr],Mr,!1)))}function rn(xe,cr){for(var Mr,Rr,Qr=[],en=2;en<arguments.length;en++)Qr[en-2]=arguments[en];(Rr=(Mr=xe.hostWithWatch).onWatchStatusChange)===null||Rr===void 0||Rr.call(Mr,e.createCompilerDiagnostic.apply(void 0,zn([cr],Qr,!1)),xe.host.getNewLine(),xe.baseCompilerOptions)}function Br(xe,cr){var Mr=xe.host;cr.forEach(function(Rr){return Mr.reportDiagnostic(Rr)})}function pn(xe,cr,Mr){Br(xe,Mr),xe.projectErrorsReported.set(cr,!0),Mr.length&&xe.diagnostics.set(cr,Mr)}function ve(xe,cr){pn(xe,cr,[xe.configFileCache.get(cr)])}function or(xe,cr){if(!!xe.needsSummary){xe.needsSummary=!1;var Mr=xe.watch||!!xe.host.reportErrorSummary,Rr=xe.diagnostics,Qr=0,en=[];_e(cr)?(Ee(xe,cr.buildOrder),Br(xe,cr.circularDiagnostics),Mr&&(Qr+=e.getErrorCountForSummary(cr.circularDiagnostics)),Mr&&(en=zn(zn([],en,!0),e.getFilesInErrorForSummary(cr.circularDiagnostics),!0))):(cr.forEach(function(vn){var Ie=f(xe,vn);xe.projectErrorsReported.has(Ie)||Br(xe,Rr.get(Ie)||e.emptyArray)}),Mr&&Rr.forEach(function(vn){return Qr+=e.getErrorCountForSummary(vn)}),Mr&&Rr.forEach(function(vn){return zn(zn([],en,!0),e.getFilesInErrorForSummary(vn),!0)})),xe.watch?rn(xe,e.getWatchErrorSummaryDiagnosticMessage(Qr),Qr):xe.host.reportErrorSummary&&xe.host.reportErrorSummary(Qr,en)}}function Ee(xe,cr){xe.options.verbose&&Cr(xe,e.Diagnostics.Projects_in_this_build_Colon_0,cr.map(function(Mr){return`\r
  253. * `+Ur(xe,Mr)}).join(""))}function ze(xe,cr,Mr){switch(Mr.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Ur(xe,cr),Ur(xe,Mr.outOfDateOutputFileName),Ur(xe,Mr.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Ur(xe,cr),Ur(xe,Mr.outOfDateOutputFileName),Ur(xe,Mr.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Ur(xe,cr),Ur(xe,Mr.missingOutputFileName));case e.UpToDateStatusType.ErrorReadingFile:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Ur(xe,cr),Ur(xe,Mr.fileName));case e.UpToDateStatusType.OutOfDateBuildInfo:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Ur(xe,cr),Ur(xe,Mr.buildInfoFile));case e.UpToDateStatusType.UpToDate:if(Mr.newestInputFileTime!==void 0)return Cr(xe,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Ur(xe,cr),Ur(xe,Mr.newestInputFileName||""),Ur(xe,Mr.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Ur(xe,cr),Ur(xe,Mr.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Cr(xe,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Ur(xe,cr));case e.UpToDateStatusType.UpToDateWithInputFileText:return Cr(xe,e.Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Ur(xe,cr));case e.UpToDateStatusType.UpstreamOutOfDate:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Ur(xe,cr),Ur(xe,Mr.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Cr(xe,Mr.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Ur(xe,cr),Ur(xe,Mr.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Cr(xe,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Ur(xe,cr),Mr.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Cr(xe,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Ur(xe,cr),Mr.version,e.version);case e.UpToDateStatusType.ForceBuild:return Cr(xe,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Ur(xe,cr));case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(Mr)}}function Ar(xe,cr,Mr){xe.options.verbose&&ze(xe,cr,Mr)}})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.ActionSet="action::set",ne.ActionInvalidate="action::invalidate",ne.ActionPackageInstalled="action::packageInstalled",ne.EventTypesRegistry="event::typesRegistry",ne.EventBeginInstallTypes="event::beginInstallTypes",ne.EventEndInstallTypes="event::endInstallTypes",ne.EventInitializationFailed="event::initializationFailed";var K;(function(_e){_e.GlobalCacheLocation="--globalTypingsCacheLocation",_e.LogFile="--logFile",_e.EnableTelemetry="--enableTelemetry",_e.TypingSafeListLocation="--typingSafeListLocation",_e.TypesMapLocation="--typesMapLocation",_e.NpmLocation="--npmLocation",_e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(K=ne.Arguments||(ne.Arguments={}));function se(_e){return e.sys.args.indexOf(_e)>=0}ne.hasArgument=se;function O(_e){var Q=e.sys.args.indexOf(_e);return Q>=0&&Q<e.sys.args.length-1?e.sys.args[Q+1]:void 0}ne.findArgument=O;function ie(){var _e=new Date;return"".concat(e.padLeft(_e.getHours().toString(),2,"0"),":").concat(e.padLeft(_e.getMinutes().toString(),2,"0"),":").concat(e.padLeft(_e.getSeconds().toString(),2,"0"),".").concat(e.padLeft(_e.getMilliseconds().toString(),3,"0"))}ne.nowString=ie})(o=e.server||(e.server={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(ae,E){var I=new e.Version(e.getProperty(E,"ts".concat(e.versionMajorMinor))||e.getProperty(E,"latest"));return I.compareTo(ae.version)<=0}ne.isTypingUpToDate=K;var se=["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"];ne.prefixedNodeCoreModuleList=se.map(function(ae){return"node:".concat(ae)}),ne.nodeCoreModuleList=zn(zn([],se,!0),ne.prefixedNodeCoreModuleList,!0),ne.nodeCoreModules=new e.Set(ne.nodeCoreModuleList);function O(ae){return ne.nodeCoreModules.has(ae)?"node":ae}ne.nonRelativeModuleNameForTypingCache=O;function ie(ae,E){var I=e.readConfigFile(E,function(f){return ae.readFile(f)});return new e.Map(e.getEntries(I.config))}ne.loadSafeList=ie;function _e(ae,E){var I=e.readConfigFile(E,function(f){return ae.readFile(f)});if(I.config)return new e.Map(e.getEntries(I.config.simpleMap))}ne.loadTypesMap=_e;function Q(ae,E,I,f,m,y,S,k,C,me){if(!S||!S.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var De=new e.Map;I=e.mapDefined(I,function(x){var T=e.normalizePath(x);if(e.hasJSFileExtension(T))return T});var X=[];S.include&&G(S.include,"Explicitly included types");var M=S.exclude||[];if(!me.types){var H=new e.Set(I.map(e.getDirectoryPath));H.add(f),H.forEach(function(x){ye(x,"bower.json","bower_components",X),ye(x,"package.json","node_modules",X)})}if(S.disableFilenameBasedTypeAcquisition||b(I),k){var V=e.deduplicate(k.map(O),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);G(V,"Inferred typings from unresolved imports")}y.forEach(function(x,T){var Z=C.get(T);De.has(T)&&De.get(T)===void 0&&Z!==void 0&&K(x,Z)&&De.set(T,x.typingLocation)});for(var h=0,F=M;h<F.length;h++){var $=F[h],L=De.delete($);L&&E&&E("Typing for ".concat($," is in exclude list, will be ignored."))}var P=[],N=[];De.forEach(function(x,T){x!==void 0?N.push(x):P.push(T)});var J={cachedTypingPaths:N,newTypingNames:P,filesToWatch:X};return E&&E("Result: ".concat(JSON.stringify(J))),J;function q(x){De.has(x)||De.set(x,void 0)}function G(x,T){E&&E("".concat(T,": ").concat(JSON.stringify(x))),e.forEach(x,q)}function ye(x,T,Z,B){var u=e.combinePaths(x,T),A,w;ae.fileExists(u)&&(B.push(u),A=e.readConfigFile(u,function(Oe){return ae.readFile(Oe)}).config,w=e.flatMap([A.dependencies,A.devDependencies,A.optionalDependencies,A.peerDependencies],e.getOwnKeys),G(w,"Typing names in '".concat(u,"' dependencies")));var z=e.combinePaths(x,Z);if(B.push(z),!!ae.directoryExists(z)){var U=[],ge=w?w.map(function(Oe){return e.combinePaths(z,Oe,T)}):ae.readDirectory(z,[".json"],void 0,void 0,3).filter(function(Oe){if(e.getBaseFileName(Oe)!==T)return!1;var be=e.getPathComponents(e.normalizePath(Oe)),Y=be[be.length-3][0]==="@";return Y&&be[be.length-4].toLowerCase()===Z||!Y&&be[be.length-3].toLowerCase()===Z});E&&E("Searching for typing names in ".concat(z,"; all files: ").concat(JSON.stringify(ge)));for(var pe=0,He=ge;pe<He.length;pe++){var Be=He[pe],Me=e.normalizePath(Be),Le=e.readConfigFile(Me,function(Oe){return ae.readFile(Oe)}),Ae=Le.config;if(!!Ae.name){var Xe=Ae.types||Ae.typings;if(Xe){var Ne=e.getNormalizedAbsolutePath(Xe,e.getDirectoryPath(Me));ae.fileExists(Ne)?(E&&E(" Package '".concat(Ae.name,"' provides its own types.")),De.set(Ae.name,Ne)):E&&E(" Package '".concat(Ae.name,"' provides its own types but they are missing."))}else U.push(Ae.name)}}G(U," Found package names")}}function b(x){var T=e.mapDefined(x,function(B){if(!!e.hasJSFileExtension(B)){var u=e.removeFileExtension(e.getBaseFileName(B.toLowerCase())),A=e.removeMinAndVersionNumbers(u);return m.get(A)}});T.length&&G(T,"Inferred typings from file names");var Z=e.some(x,function(B){return e.fileExtensionIs(B,".jsx")});Z&&(E&&E("Inferred 'react' typings due to presence of '.jsx' extension"),q("react"))}}ne.discoverTypings=Q;var p;(function(ae){ae[ae.Ok=0]="Ok",ae[ae.EmptyName=1]="EmptyName",ae[ae.NameTooLong=2]="NameTooLong",ae[ae.NameStartsWithDot=3]="NameStartsWithDot",ae[ae.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",ae[ae.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(p=ne.NameValidationResult||(ne.NameValidationResult={}));var D=214;function le(ae){return de(ae,!0)}ne.validatePackageName=le;function de(ae,E){if(!ae)return 1;if(ae.length>D)return 2;if(ae.charCodeAt(0)===46)return 3;if(ae.charCodeAt(0)===95)return 4;if(E){var I=/^@([^/]+)\/([^/]+)$/.exec(ae);if(I){var f=de(I[1],!1);if(f!==0)return{name:I[1],isScopeName:!0,result:f};var m=de(I[2],!1);return m!==0?{name:I[2],isScopeName:!1,result:m}:0}}return encodeURIComponent(ae)!==ae?5:0}function te(ae,E){return typeof ae=="object"?oe(E,ae.result,ae.name,ae.isScopeName):oe(E,ae,E,!1)}ne.renderPackageNameValidationFailure=te;function oe(ae,E,I,f){var m=f?"Scope":"Package";switch(E){case 1:return"'".concat(ae,"':: ").concat(m," name '").concat(I,"' cannot be empty");case 2:return"'".concat(ae,"':: ").concat(m," name '").concat(I,"' should be less than ").concat(D," characters");case 3:return"'".concat(ae,"':: ").concat(m," name '").concat(I,"' cannot start with '.'");case 4:return"'".concat(ae,"':: ").concat(m," name '").concat(I,"' cannot start with '_'");case 5:return"'".concat(ae,"':: ").concat(m," name '").concat(I,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(E)}}})(o=e.JsTyping||(e.JsTyping={}))})(fr||(fr={}));var fr;(function(e){var o;(function(C){var me=function(){function X(M){this.text=M}return X.prototype.getText=function(M,H){return M===0&&H===this.text.length?this.text:this.text.substring(M,H)},X.prototype.getLength=function(){return this.text.length},X.prototype.getChangeRange=function(){},X}();function De(X){return new me(X)}C.fromString=De})(o=e.ScriptSnapshot||(e.ScriptSnapshot={}));var ne;(function(C){C[C.Dependencies=1]="Dependencies",C[C.DevDependencies=2]="DevDependencies",C[C.PeerDependencies=4]="PeerDependencies",C[C.OptionalDependencies=8]="OptionalDependencies",C[C.All=15]="All"})(ne=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var K;(function(C){C[C.Off=0]="Off",C[C.On=1]="On",C[C.Auto=2]="Auto"})(K=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var se;(function(C){C[C.Semantic=0]="Semantic",C[C.PartialSemantic=1]="PartialSemantic",C[C.Syntactic=2]="Syntactic"})(se=e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={};var O;(function(C){C.Original="original",C.TwentyTwenty="2020"})(O=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var ie;(function(C){C.All="All",C.SortAndCombine="SortAndCombine",C.RemoveUnused="RemoveUnused"})(ie=e.OrganizeImportsMode||(e.OrganizeImportsMode={}));var _e;(function(C){C[C.Invoked=1]="Invoked",C[C.TriggerCharacter=2]="TriggerCharacter",C[C.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"})(_e=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var Q;(function(C){C.Type="Type",C.Parameter="Parameter",C.Enum="Enum"})(Q=e.InlayHintKind||(e.InlayHintKind={}));var p;(function(C){C.none="none",C.definition="definition",C.reference="reference",C.writtenReference="writtenReference"})(p=e.HighlightSpanKind||(e.HighlightSpanKind={}));var D;(function(C){C[C.None=0]="None",C[C.Block=1]="Block",C[C.Smart=2]="Smart"})(D=e.IndentStyle||(e.IndentStyle={}));var le;(function(C){C.Ignore="ignore",C.Insert="insert",C.Remove="remove"})(le=e.SemicolonPreference||(e.SemicolonPreference={}));function de(C){return{indentSize:4,tabSize:4,newLineCharacter:C||`
  254. `,convertTabsToSpaces:!0,indentStyle:D.Smart,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:le.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=de,e.testFormatSettings=de(`
  255. `);var te;(function(C){C[C.aliasName=0]="aliasName",C[C.className=1]="className",C[C.enumName=2]="enumName",C[C.fieldName=3]="fieldName",C[C.interfaceName=4]="interfaceName",C[C.keyword=5]="keyword",C[C.lineBreak=6]="lineBreak",C[C.numericLiteral=7]="numericLiteral",C[C.stringLiteral=8]="stringLiteral",C[C.localName=9]="localName",C[C.methodName=10]="methodName",C[C.moduleName=11]="moduleName",C[C.operator=12]="operator",C[C.parameterName=13]="parameterName",C[C.propertyName=14]="propertyName",C[C.punctuation=15]="punctuation",C[C.space=16]="space",C[C.text=17]="text",C[C.typeParameterName=18]="typeParameterName",C[C.enumMemberName=19]="enumMemberName",C[C.functionName=20]="functionName",C[C.regularExpressionLiteral=21]="regularExpressionLiteral",C[C.link=22]="link",C[C.linkName=23]="linkName",C[C.linkText=24]="linkText"})(te=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var oe;(function(C){C[C.None=0]="None",C[C.MayIncludeAutoImports=1]="MayIncludeAutoImports",C[C.IsImportStatementCompletion=2]="IsImportStatementCompletion",C[C.IsContinuation=4]="IsContinuation",C[C.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",C[C.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",C[C.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets"})(oe=e.CompletionInfoFlags||(e.CompletionInfoFlags={}));var ae;(function(C){C.Comment="comment",C.Region="region",C.Code="code",C.Imports="imports"})(ae=e.OutliningSpanKind||(e.OutliningSpanKind={}));var E;(function(C){C[C.JavaScript=0]="JavaScript",C[C.SourceMap=1]="SourceMap",C[C.Declaration=2]="Declaration"})(E=e.OutputFileType||(e.OutputFileType={}));var I;(function(C){C[C.None=0]="None",C[C.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",C[C.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",C[C.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",C[C.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",C[C.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",C[C.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})(I=e.EndOfLineState||(e.EndOfLineState={}));var f;(function(C){C[C.Punctuation=0]="Punctuation",C[C.Keyword=1]="Keyword",C[C.Operator=2]="Operator",C[C.Comment=3]="Comment",C[C.Whitespace=4]="Whitespace",C[C.Identifier=5]="Identifier",C[C.NumberLiteral=6]="NumberLiteral",C[C.BigIntLiteral=7]="BigIntLiteral",C[C.StringLiteral=8]="StringLiteral",C[C.RegExpLiteral=9]="RegExpLiteral"})(f=e.TokenClass||(e.TokenClass={}));var m;(function(C){C.unknown="",C.warning="warning",C.keyword="keyword",C.scriptElement="script",C.moduleElement="module",C.classElement="class",C.localClassElement="local class",C.interfaceElement="interface",C.typeElement="type",C.enumElement="enum",C.enumMemberElement="enum member",C.variableElement="var",C.localVariableElement="local var",C.functionElement="function",C.localFunctionElement="local function",C.memberFunctionElement="method",C.memberGetAccessorElement="getter",C.memberSetAccessorElement="setter",C.memberVariableElement="property",C.memberAccessorVariableElement="accessor",C.constructorImplementationElement="constructor",C.callSignatureElement="call",C.indexSignatureElement="index",C.constructSignatureElement="construct",C.parameterElement="parameter",C.typeParameterElement="type parameter",C.primitiveType="primitive type",C.label="label",C.alias="alias",C.constElement="const",C.letElement="let",C.directory="directory",C.externalModuleName="external module name",C.jsxAttribute="JSX attribute",C.string="string",C.link="link",C.linkName="link name",C.linkText="link text"})(m=e.ScriptElementKind||(e.ScriptElementKind={}));var y;(function(C){C.none="",C.publicMemberModifier="public",C.privateMemberModifier="private",C.protectedMemberModifier="protected",C.exportedModifier="export",C.ambientModifier="declare",C.staticModifier="static",C.abstractModifier="abstract",C.optionalModifier="optional",C.deprecatedModifier="deprecated",C.dtsModifier=".d.ts",C.tsModifier=".ts",C.tsxModifier=".tsx",C.jsModifier=".js",C.jsxModifier=".jsx",C.jsonModifier=".json",C.dmtsModifier=".d.mts",C.mtsModifier=".mts",C.mjsModifier=".mjs",C.dctsModifier=".d.cts",C.ctsModifier=".cts",C.cjsModifier=".cjs"})(y=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var S;(function(C){C.comment="comment",C.identifier="identifier",C.keyword="keyword",C.numericLiteral="number",C.bigintLiteral="bigint",C.operator="operator",C.stringLiteral="string",C.whiteSpace="whitespace",C.text="text",C.punctuation="punctuation",C.className="class name",C.enumName="enum name",C.interfaceName="interface name",C.moduleName="module name",C.typeParameterName="type parameter name",C.typeAliasName="type alias name",C.parameterName="parameter name",C.docCommentTagName="doc comment tag name",C.jsxOpenTagName="jsx open tag name",C.jsxCloseTagName="jsx close tag name",C.jsxSelfClosingTagName="jsx self closing tag name",C.jsxAttribute="jsx attribute",C.jsxText="jsx text",C.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(S=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var k;(function(C){C[C.comment=1]="comment",C[C.identifier=2]="identifier",C[C.keyword=3]="keyword",C[C.numericLiteral=4]="numericLiteral",C[C.operator=5]="operator",C[C.stringLiteral=6]="stringLiteral",C[C.regularExpressionLiteral=7]="regularExpressionLiteral",C[C.whiteSpace=8]="whiteSpace",C[C.text=9]="text",C[C.punctuation=10]="punctuation",C[C.className=11]="className",C[C.enumName=12]="enumName",C[C.interfaceName=13]="interfaceName",C[C.moduleName=14]="moduleName",C[C.typeParameterName=15]="typeParameterName",C[C.typeAliasName=16]="typeAliasName",C[C.parameterName=17]="parameterName",C[C.docCommentTagName=18]="docCommentTagName",C[C.jsxOpenTagName=19]="jsxOpenTagName",C[C.jsxCloseTagName=20]="jsxCloseTagName",C[C.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",C[C.jsxAttribute=22]="jsxAttribute",C[C.jsxText=23]="jsxText",C[C.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",C[C.bigintLiteral=25]="bigintLiteral"})(k=e.ClassificationType||(e.ClassificationType={}))})(fr||(fr={}));var fr;(function(e){e.scanner=e.createScanner(99,!0);var o;(function(fe){fe[fe.None=0]="None",fe[fe.Value=1]="Value",fe[fe.Type=2]="Type",fe[fe.Namespace=4]="Namespace",fe[fe.All=7]="All"})(o=e.SemanticMeaning||(e.SemanticMeaning={}));function ne(fe){switch(fe.kind){case 257:return e.isInJSFile(fe)&&e.getJSDocEnumTag(fe)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 348:return fe.name===void 0?1|2:2;case 302:case 260:return 1|2;case 264:return e.isAmbientModule(fe)||e.getModuleInstanceState(fe)===1?4|1:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 4|1}return 7}e.getMeaningFromDeclaration=ne;function K(fe){fe=wr(fe);var sr=fe.parent;return fe.kind===308?1:e.isExportAssignment(sr)||e.isExportSpecifier(sr)||e.isExternalModuleReference(sr)||e.isImportSpecifier(sr)||e.isImportClause(sr)||e.isImportEqualsDeclaration(sr)&&fe===sr.name?7:O(fe)?se(fe):e.isDeclarationName(fe)?ne(sr):e.isEntityName(fe)&&e.findAncestor(fe,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:p(fe)?2:ie(fe)?4:e.isTypeParameterDeclaration(sr)?(e.Debug.assert(e.isJSDocTemplateTag(sr.parent)),2):e.isLiteralTypeNode(sr)?2|1:1}e.getMeaningFromLocation=K;function se(fe){var sr=fe.kind===163?fe:e.isQualifiedName(fe.parent)&&fe.parent.right===fe?fe.parent:void 0;return sr&&sr.parent.kind===268?7:4}function O(fe){for(;fe.parent.kind===163;)fe=fe.parent;return e.isInternalModuleImportEqualsDeclaration(fe.parent)&&fe.parent.moduleReference===fe}e.isInRightSideOfInternalImportEqualsDeclaration=O;function ie(fe){return _e(fe)||Q(fe)}function _e(fe){var sr=fe,Tr=!0;if(sr.parent.kind===163){for(;sr.parent&&sr.parent.kind===163;)sr=sr.parent;Tr=sr.right===fe}return sr.parent.kind===180&&!Tr}function Q(fe){var sr=fe,Tr=!0;if(sr.parent.kind===208){for(;sr.parent&&sr.parent.kind===208;)sr=sr.parent;Tr=sr.name===fe}if(!Tr&&sr.parent.kind===230&&sr.parent.parent.kind===294){var Fn=sr.parent.parent.parent;return Fn.kind===260&&sr.parent.parent.token===117||Fn.kind===261&&sr.parent.parent.token===94}return!1}function p(fe){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(fe)&&(fe=fe.parent),fe.kind){case 108:return!e.isExpressionNode(fe);case 194:return!0}switch(fe.parent.kind){case 180:return!0;case 202:return!fe.parent.isTypeOf;case 230:return e.isPartOfTypeNode(fe.parent)}return!1}function D(fe,sr,Tr){return sr===void 0&&(sr=!1),Tr===void 0&&(Tr=!1),m(fe,e.isCallExpression,E,sr,Tr)}e.isCallExpressionTarget=D;function le(fe,sr,Tr){return sr===void 0&&(sr=!1),Tr===void 0&&(Tr=!1),m(fe,e.isNewExpression,E,sr,Tr)}e.isNewExpressionTarget=le;function de(fe,sr,Tr){return sr===void 0&&(sr=!1),Tr===void 0&&(Tr=!1),m(fe,e.isCallOrNewExpression,E,sr,Tr)}e.isCallOrNewExpressionTarget=de;function te(fe,sr,Tr){return sr===void 0&&(sr=!1),Tr===void 0&&(Tr=!1),m(fe,e.isTaggedTemplateExpression,I,sr,Tr)}e.isTaggedTemplateTag=te;function oe(fe,sr,Tr){return sr===void 0&&(sr=!1),Tr===void 0&&(Tr=!1),m(fe,e.isDecorator,E,sr,Tr)}e.isDecoratorTarget=oe;function ae(fe,sr,Tr){return sr===void 0&&(sr=!1),Tr===void 0&&(Tr=!1),m(fe,e.isJsxOpeningLikeElement,f,sr,Tr)}e.isJsxOpeningLikeElementTagName=ae;function E(fe){return fe.expression}function I(fe){return fe.tag}function f(fe){return fe.tagName}function m(fe,sr,Tr,Fn,Si){var gt=Fn?S(fe):y(fe);return Si&&(gt=e.skipOuterExpressions(gt)),!!gt&&!!gt.parent&&sr(gt.parent)&&Tr(gt.parent)===gt}function y(fe){return V(fe)?fe.parent:fe}e.climbPastPropertyAccess=y;function S(fe){return V(fe)||h(fe)?fe.parent:fe}e.climbPastPropertyOrElementAccess=S;function k(fe,sr){for(;fe;){if(fe.kind===253&&fe.label.escapedText===sr)return fe.label;fe=fe.parent}}e.getTargetLabel=k;function C(fe,sr){return e.isPropertyAccessExpression(fe.expression)?fe.expression.name.text===sr:!1}e.hasPropertyAccessExpressionWithName=C;function me(fe){var sr;return e.isIdentifier(fe)&&((sr=e.tryCast(fe.parent,e.isBreakOrContinueStatement))===null||sr===void 0?void 0:sr.label)===fe}e.isJumpStatementTarget=me;function De(fe){var sr;return e.isIdentifier(fe)&&((sr=e.tryCast(fe.parent,e.isLabeledStatement))===null||sr===void 0?void 0:sr.label)===fe}e.isLabelOfLabeledStatement=De;function X(fe){return De(fe)||me(fe)}e.isLabelName=X;function M(fe){var sr;return((sr=e.tryCast(fe.parent,e.isJSDocTag))===null||sr===void 0?void 0:sr.tagName)===fe}e.isTagName=M;function H(fe){var sr;return((sr=e.tryCast(fe.parent,e.isQualifiedName))===null||sr===void 0?void 0:sr.right)===fe}e.isRightSideOfQualifiedName=H;function V(fe){var sr;return((sr=e.tryCast(fe.parent,e.isPropertyAccessExpression))===null||sr===void 0?void 0:sr.name)===fe}e.isRightSideOfPropertyAccess=V;function h(fe){var sr;return((sr=e.tryCast(fe.parent,e.isElementAccessExpression))===null||sr===void 0?void 0:sr.argumentExpression)===fe}e.isArgumentExpressionOfElementAccess=h;function F(fe){var sr;return((sr=e.tryCast(fe.parent,e.isModuleDeclaration))===null||sr===void 0?void 0:sr.name)===fe}e.isNameOfModuleDeclaration=F;function $(fe){var sr;return e.isIdentifier(fe)&&((sr=e.tryCast(fe.parent,e.isFunctionLike))===null||sr===void 0?void 0:sr.name)===fe}e.isNameOfFunctionDeclaration=$;function L(fe){switch(fe.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return e.getNameOfDeclaration(fe.parent)===fe;case 209:return fe.parent.argumentExpression===fe;case 164:return!0;case 198:return fe.parent.parent.kind===196;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=L;function P(fe){return e.isExternalModuleImportEqualsDeclaration(fe.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(fe.parent.parent)===fe}e.isExpressionOfExternalModuleImportEqualsDeclaration=P;function N(fe){for(e.isJSDocTypeAlias(fe)&&(fe=fe.parent.parent);;){if(fe=fe.parent,!fe)return;switch(fe.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return fe}}}e.getContainerNode=N;function J(fe){switch(fe.kind){case 308:return e.isExternalModule(fe)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 348:return"type";case 263:return"enum";case 257:return jt(fe);case 205:return jt(e.getRootDeclaration(fe));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:var sr=fe.initializer;return e.isFunctionLike(sr)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return e.hasSyntacticModifier(fe,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:var Tr=e.getAssignmentDeclarationKind(fe),Fn=fe.right;switch(Tr){case 7:case 8:case 9:case 0:return"";case 1:case 2:var Si=J(Fn);return Si===""?"const":Si;case 3:return e.isFunctionExpression(Fn)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(Fn)?"method":"property";case 6:return"local class";default:return e.assertType(Tr),""}case 79:return e.isImportClause(fe.parent)?"alias":"";case 274:var gt=J(fe.expression);return gt===""?"const":gt;default:return""}function jt(fa){return e.isVarConst(fa)?"const":e.isLet(fa)?"let":"var"}}e.getNodeKind=J;function q(fe){switch(fe.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(fe)&&fe.parent.kind===166;default:return!1}}e.isThis=q;var G=/^\/\/\/\s*</;function ye(fe,sr){var Tr=e.getLineStarts(sr),Fn=sr.getLineAndCharacterOfPosition(fe).line;return Tr[Fn]}e.getLineStartPositionForPosition=ye;function b(fe,sr){return B(fe.pos,fe.end,sr)}e.rangeContainsRange=b;function x(fe,sr){return Z(fe,sr.pos)&&Z(fe,sr.end)}e.rangeContainsRangeExclusive=x;function T(fe,sr){return fe.pos<=sr&&sr<=fe.end}e.rangeContainsPosition=T;function Z(fe,sr){return fe.pos<sr&&sr<fe.end}e.rangeContainsPositionExclusive=Z;function B(fe,sr,Tr){return fe<=Tr.pos&&sr>=Tr.end}e.startEndContainsRange=B;function u(fe,sr,Tr){return fe.pos<=sr&&fe.end>=Tr}e.rangeContainsStartEnd=u;function A(fe,sr,Tr){return z(fe.pos,fe.end,sr,Tr)}e.rangeOverlapsWithStartEnd=A;function w(fe,sr,Tr,Fn){return z(fe.getStart(sr),fe.end,Tr,Fn)}e.nodeOverlapsWithStartEnd=w;function z(fe,sr,Tr,Fn){var Si=Math.max(fe,Tr),gt=Math.min(sr,Fn);return Si<gt}e.startEndOverlapsWithStartEnd=z;function U(fe,sr,Tr){return e.Debug.assert(fe.pos<=sr),sr<fe.end||!ge(fe,Tr)}e.positionBelongsToNode=U;function ge(fe,sr){if(fe===void 0||e.nodeIsMissing(fe))return!1;switch(fe.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return pe(fe,19,sr);case 295:return ge(fe.block,sr);case 211:if(!fe.arguments)return!0;case 210:case 214:case 193:return pe(fe,21,sr);case 181:case 182:return ge(fe.type,sr);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return fe.body?ge(fe.body,sr):fe.type?ge(fe.type,sr):Be(fe,21,sr);case 264:return!!fe.body&&ge(fe.body,sr);case 242:return fe.elseStatement?ge(fe.elseStatement,sr):ge(fe.thenStatement,sr);case 241:return ge(fe.expression,sr)||Be(fe,26,sr);case 206:case 204:case 209:case 164:case 186:return pe(fe,23,sr);case 178:return fe.type?ge(fe.type,sr):Be(fe,23,sr);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return ge(fe.statement,sr);case 243:return Be(fe,115,sr)?pe(fe,21,sr):ge(fe.statement,sr);case 183:return ge(fe.exprName,sr);case 218:case 217:case 219:case 226:case 227:var Tr=fe;return ge(Tr.expression,sr);case 212:return ge(fe.template,sr);case 225:var Fn=e.lastOrUndefined(fe.templateSpans);return ge(Fn,sr);case 236:return e.nodeIsPresent(fe.literal);case 275:case 269:return e.nodeIsPresent(fe.moduleSpecifier);case 221:return ge(fe.operand,sr);case 223:return ge(fe.right,sr);case 224:return ge(fe.whenFalse,sr);default:return!0}}function pe(fe,sr,Tr){var Fn=fe.getChildren(Tr);if(Fn.length){var Si=e.last(Fn);if(Si.kind===sr)return!0;if(Si.kind===26&&Fn.length!==1)return Fn[Fn.length-2].kind===sr}return!1}function He(fe){var sr=Le(fe);if(!!sr){var Tr=sr.getChildren(),Fn=e.indexOfNode(Tr,fe);return{listItemIndex:Fn,list:sr}}}e.findListItemInfo=He;function Be(fe,sr,Tr){return!!Me(fe,sr,Tr)}e.hasChildOfKind=Be;function Me(fe,sr,Tr){return e.find(fe.getChildren(Tr),function(Fn){return Fn.kind===sr})}e.findChildOfKind=Me;function Le(fe){var sr=e.find(fe.parent.getChildren(),function(Tr){return e.isSyntaxList(Tr)&&b(Tr,fe)});return e.Debug.assert(!sr||e.contains(sr.getChildren(),fe)),sr}e.findContainingList=Le;function Ae(fe){return fe.kind===88}function Xe(fe){return fe.kind===84}function Ne(fe){return fe.kind===98}function Oe(fe){if(e.isNamedDeclaration(fe))return fe.name;if(e.isClassDeclaration(fe)){var sr=fe.modifiers&&e.find(fe.modifiers,Ae);if(sr)return sr}if(e.isClassExpression(fe)){var Tr=e.find(fe.getChildren(),Xe);if(Tr)return Tr}}function be(fe){if(e.isNamedDeclaration(fe))return fe.name;if(e.isFunctionDeclaration(fe)){var sr=e.find(fe.modifiers,Ae);if(sr)return sr}if(e.isFunctionExpression(fe)){var Tr=e.find(fe.getChildren(),Ne);if(Tr)return Tr}}function Y(fe){var sr;return e.findAncestor(fe,function(Tr){return e.isTypeNode(Tr)&&(sr=Tr),!e.isQualifiedName(Tr.parent)&&!e.isTypeNode(Tr.parent)&&!e.isTypeElement(Tr.parent)}),sr}function d(fe,sr){if(!(fe.flags&(8388608&~262144))){var Tr=$n(fe,sr);if(Tr)return Tr;var Fn=Y(fe);return Fn&&sr.getTypeAtLocation(Fn)}}e.getContextualTypeFromParentOrAncestorTypeNode=d;function j(fe,sr){if(!sr)switch(fe.kind){case 260:case 228:return Oe(fe);case 259:case 215:return be(fe);case 173:return fe}if(e.isNamedDeclaration(fe))return fe.name}function Ce(fe,sr){if(fe.importClause){if(fe.importClause.name&&fe.importClause.namedBindings)return;if(fe.importClause.name)return fe.importClause.name;if(fe.importClause.namedBindings){if(e.isNamedImports(fe.importClause.namedBindings)){var Tr=e.singleOrUndefined(fe.importClause.namedBindings.elements);return Tr?Tr.name:void 0}else if(e.isNamespaceImport(fe.importClause.namedBindings))return fe.importClause.namedBindings.name}}if(!sr)return fe.moduleSpecifier}function Se(fe,sr){if(fe.exportClause){if(e.isNamedExports(fe.exportClause)){var Tr=e.singleOrUndefined(fe.exportClause.elements);return Tr?fe.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(fe.exportClause))return fe.exportClause.name}if(!sr)return fe.moduleSpecifier}function Re(fe){if(fe.types.length===1)return fe.types[0].expression}function er(fe,sr){var Tr=fe.parent;if(e.isModifier(fe)&&(sr||fe.kind!==88)?e.canHaveModifiers(Tr)&&e.contains(Tr.modifiers,fe):fe.kind===84?e.isClassDeclaration(Tr)||e.isClassExpression(fe):fe.kind===98?e.isFunctionDeclaration(Tr)||e.isFunctionExpression(fe):fe.kind===118?e.isInterfaceDeclaration(Tr):fe.kind===92?e.isEnumDeclaration(Tr):fe.kind===154?e.isTypeAliasDeclaration(Tr):fe.kind===143||fe.kind===142?e.isModuleDeclaration(Tr):fe.kind===100?e.isImportEqualsDeclaration(Tr):fe.kind===137?e.isGetAccessorDeclaration(Tr):fe.kind===151&&e.isSetAccessorDeclaration(Tr)){var Fn=j(Tr,sr);if(Fn)return Fn}if((fe.kind===113||fe.kind===85||fe.kind===119)&&e.isVariableDeclarationList(Tr)&&Tr.declarations.length===1){var Si=Tr.declarations[0];if(e.isIdentifier(Si.name))return Si.name}if(fe.kind===154){if(e.isImportClause(Tr)&&Tr.isTypeOnly){var Fn=Ce(Tr.parent,sr);if(Fn)return Fn}if(e.isExportDeclaration(Tr)&&Tr.isTypeOnly){var Fn=Se(Tr,sr);if(Fn)return Fn}}if(fe.kind===128){if(e.isImportSpecifier(Tr)&&Tr.propertyName||e.isExportSpecifier(Tr)&&Tr.propertyName||e.isNamespaceImport(Tr)||e.isNamespaceExport(Tr))return Tr.name;if(e.isExportDeclaration(Tr)&&Tr.exportClause&&e.isNamespaceExport(Tr.exportClause))return Tr.exportClause.name}if(fe.kind===100&&e.isImportDeclaration(Tr)){var Fn=Ce(Tr,sr);if(Fn)return Fn}if(fe.kind===93){if(e.isExportDeclaration(Tr)){var Fn=Se(Tr,sr);if(Fn)return Fn}if(e.isExportAssignment(Tr))return e.skipOuterExpressions(Tr.expression)}if(fe.kind===147&&e.isExternalModuleReference(Tr))return Tr.expression;if(fe.kind===158&&(e.isImportDeclaration(Tr)||e.isExportDeclaration(Tr))&&Tr.moduleSpecifier)return Tr.moduleSpecifier;if((fe.kind===94||fe.kind===117)&&e.isHeritageClause(Tr)&&Tr.token===fe.kind){var Fn=Re(Tr);if(Fn)return Fn}if(fe.kind===94){if(e.isTypeParameterDeclaration(Tr)&&Tr.constraint&&e.isTypeReferenceNode(Tr.constraint))return Tr.constraint.typeName;if(e.isConditionalTypeNode(Tr)&&e.isTypeReferenceNode(Tr.extendsType))return Tr.extendsType.typeName}if(fe.kind===138&&e.isInferTypeNode(Tr))return Tr.typeParameter.name;if(fe.kind===101&&e.isTypeParameterDeclaration(Tr)&&e.isMappedTypeNode(Tr.parent))return Tr.name;if(fe.kind===141&&e.isTypeOperatorNode(Tr)&&Tr.operator===141&&e.isTypeReferenceNode(Tr.type))return Tr.type.typeName;if(fe.kind===146&&e.isTypeOperatorNode(Tr)&&Tr.operator===146&&e.isArrayTypeNode(Tr.type)&&e.isTypeReferenceNode(Tr.type.elementType))return Tr.type.elementType.typeName;if(!sr){if((fe.kind===103&&e.isNewExpression(Tr)||fe.kind===114&&e.isVoidExpression(Tr)||fe.kind===112&&e.isTypeOfExpression(Tr)||fe.kind===133&&e.isAwaitExpression(Tr)||fe.kind===125&&e.isYieldExpression(Tr)||fe.kind===89&&e.isDeleteExpression(Tr))&&Tr.expression)return e.skipOuterExpressions(Tr.expression);if((fe.kind===101||fe.kind===102)&&e.isBinaryExpression(Tr)&&Tr.operatorToken===fe)return e.skipOuterExpressions(Tr.right);if(fe.kind===128&&e.isAsExpression(Tr)&&e.isTypeReferenceNode(Tr.type))return Tr.type.typeName;if(fe.kind===101&&e.isForInStatement(Tr)||fe.kind===162&&e.isForOfStatement(Tr))return e.skipOuterExpressions(Tr.expression)}return fe}function wr(fe){return er(fe,!1)}e.getAdjustedReferenceLocation=wr;function mr(fe){return er(fe,!0)}e.getAdjustedRenameLocation=mr;function Ue(fe,sr){return t(fe,sr,function(Tr){return e.isPropertyNameLiteral(Tr)||e.isKeyword(Tr.kind)||e.isPrivateIdentifier(Tr)})}e.getTouchingPropertyName=Ue;function t(fe,sr,Tr){return ln(fe,sr,!1,Tr,!1)}e.getTouchingToken=t;function qr(fe,sr){return ln(fe,sr,!0,void 0,!1)}e.getTokenAtPosition=qr;function ln(fe,sr,Tr,Fn,Si){var gt=fe,jt,fa=function(){var Eo=gt.getChildren(fe),Fa=e.binarySearchKey(Eo,sr,function(Qa,zo){return zo},function(Qa,zo){var Uo=Eo[Qa].getEnd();if(Uo<sr)return-1;var ms=Tr?Eo[Qa].getFullStart():Eo[Qa].getStart(fe,!0);return ms>sr?1:no(Eo[Qa],ms,Uo)?Eo[Qa-1]&&no(Eo[Qa-1])?1:0:Fn&&ms===sr&&Eo[Qa-1]&&Eo[Qa-1].getEnd()===sr&&no(Eo[Qa-1])?1:-1});return jt?{value:jt}:Fa>=0&&Eo[Fa]?(gt=Eo[Fa],"continue-outer"):{value:gt}};e:for(;;){var Ka=fa();if(typeof Ka=="object")return Ka.value;switch(Ka){case"continue-outer":continue e}}function no(Eo,Fa,Qa){if(Qa!=null||(Qa=Eo.getEnd()),Qa<sr||(Fa!=null||(Fa=Tr?Eo.getFullStart():Eo.getStart(fe,!0)),Fa>sr))return!1;if(sr<Qa||sr===Qa&&(Eo.kind===1||Si))return!0;if(Fn&&Qa===sr){var zo=Ur(sr,fe,Eo);if(zo&&Fn(zo))return jt=zo,!0}return!1}}function dr(fe,sr){for(var Tr=qr(fe,sr);or(Tr);){var Fn=kr(Tr,Tr.parent,fe);if(!Fn)return;Tr=Fn}return Tr}e.findFirstNonJsxWhitespaceToken=dr;function vr(fe,sr){var Tr=qr(fe,sr);return e.isToken(Tr)&&sr>Tr.getStart(fe)&&sr<Tr.getEnd()?Tr:Ur(sr,fe)}e.findTokenOnLeftOfPosition=vr;function kr(fe,sr,Tr){return Fn(sr);function Fn(Si){return e.isToken(Si)&&Si.pos===fe.end?Si:e.firstDefined(Si.getChildren(Tr),function(gt){var jt=gt.pos<=fe.pos&&gt.end>fe.end||gt.pos===fe.end;return jt&&Ie(gt,Tr)?Fn(gt):void 0})}}e.findNextToken=kr;function Ur(fe,sr,Tr,Fn){var Si=gt(Tr||sr);return e.Debug.assert(!(Si&&or(Si))),Si;function gt(jt){if(Cr(jt)&&jt.kind!==1)return jt;var fa=jt.getChildren(sr),Ka=e.binarySearchKey(fa,fe,function(Uo,ms){return ms},function(Uo,ms){return fe<fa[Uo].end?!fa[Uo-1]||fe>=fa[Uo-1].end?0:1:-1});if(Ka>=0&&fa[Ka]){var no=fa[Ka];if(fe<no.end){var Eo=no.getStart(sr,!Fn),Fa=Eo>=fe||!Ie(no,sr)||or(no);if(Fa){var Qa=Br(fa,Ka,sr,jt.kind);return Qa&&rn(Qa,sr)}else return gt(no)}}e.Debug.assert(Tr!==void 0||jt.kind===308||jt.kind===1||e.isJSDocCommentContainingNode(jt));var zo=Br(fa,fa.length,sr,jt.kind);return zo&&rn(zo,sr)}}e.findPrecedingToken=Ur;function Cr(fe){return e.isToken(fe)&&!or(fe)}function rn(fe,sr){if(Cr(fe))return fe;var Tr=fe.getChildren(sr);if(Tr.length===0)return fe;var Fn=Br(Tr,Tr.length,sr,fe.kind);return Fn&&rn(Fn,sr)}function Br(fe,sr,Tr,Fn){for(var Si=sr-1;Si>=0;Si--){var gt=fe[Si];if(or(gt))Si===0&&(Fn===11||Fn===282)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Ie(fe[Si],Tr))return fe[Si]}}function pn(fe,sr,Tr){if(Tr===void 0&&(Tr=Ur(sr,fe)),Tr&&e.isStringTextContainingNode(Tr)){var Fn=Tr.getStart(fe),Si=Tr.getEnd();if(Fn<sr&&sr<Si)return!0;if(sr===Si)return!!Tr.isUnterminated}return!1}e.isInString=pn;function ve(fe,sr){var Tr=qr(fe,sr);return Tr?!!(Tr.kind===11||Tr.kind===29&&Tr.parent.kind===11||Tr.kind===29&&Tr.parent.kind===291||Tr&&Tr.kind===19&&Tr.parent.kind===291||Tr.kind===29&&Tr.parent.kind===284):!1}e.isInsideJsxElementOrAttribute=ve;function or(fe){return e.isJsxText(fe)&&fe.containsOnlyTriviaWhiteSpaces}function Ee(fe,sr){var Tr=qr(fe,sr);return e.isTemplateLiteralKind(Tr.kind)&&sr>Tr.getStart(fe)}e.isInTemplateString=Ee;function ze(fe,sr){var Tr=qr(fe,sr);return!!(e.isJsxText(Tr)||Tr.kind===18&&e.isJsxExpression(Tr.parent)&&e.isJsxElement(Tr.parent.parent)||Tr.kind===29&&e.isJsxOpeningLikeElement(Tr.parent)&&e.isJsxElement(Tr.parent.parent))}e.isInJSXText=ze;function Ar(fe,sr){function Tr(Fn){for(;Fn;)if(Fn.kind>=282&&Fn.kind<=291||Fn.kind===11||Fn.kind===29||Fn.kind===31||Fn.kind===79||Fn.kind===19||Fn.kind===18||Fn.kind===43)Fn=Fn.parent;else if(Fn.kind===281){if(sr>Fn.getStart(fe))return!0;Fn=Fn.parent}else return!1;return!1}return Tr(qr(fe,sr))}e.isInsideJsxElement=Ar;function xe(fe,sr,Tr){var Fn=e.tokenToString(fe.kind),Si=e.tokenToString(sr),gt=fe.getFullStart(),jt=Tr.text.lastIndexOf(Si,gt);if(jt!==-1){if(Tr.text.lastIndexOf(Fn,gt-1)<jt){var fa=Ur(jt+1,Tr);if(fa&&fa.kind===sr)return fa}for(var Ka=fe.kind,no=0;;){var Eo=Ur(fe.getFullStart(),Tr);if(!Eo)return;if(fe=Eo,fe.kind===sr){if(no===0)return fe;no--}else fe.kind===Ka&&no++}}}e.findPrecedingMatchingToken=xe;function cr(fe,sr,Tr){return sr?fe.getNonNullableType():Tr?fe.getNonOptionalType():fe}e.removeOptionality=cr;function Mr(fe,sr,Tr){var Fn=Qr(fe,sr);return Fn!==void 0&&(e.isPartOfTypeNode(Fn.called)||Rr(Fn.called,Fn.nTypeArguments,Tr).length!==0||Mr(Fn.called,sr,Tr))}e.isPossiblyTypeArgumentPosition=Mr;function Rr(fe,sr,Tr){var Fn=Tr.getTypeAtLocation(fe);e.isOptionalChain(fe.parent)&&(Fn=cr(Fn,e.isOptionalChainRoot(fe.parent),!0));var Si=e.isNewExpression(fe.parent)?Fn.getConstructSignatures():Fn.getCallSignatures();return Si.filter(function(gt){return!!gt.typeParameters&&gt.typeParameters.length>=sr})}e.getPossibleGenericSignatures=Rr;function Qr(fe,sr){if(sr.text.lastIndexOf("<",fe?fe.pos:sr.text.length)!==-1)for(var Tr=fe,Fn=0,Si=0;Tr;){switch(Tr.kind){case 29:if(Tr=Ur(Tr.getFullStart(),sr),Tr&&Tr.kind===28&&(Tr=Ur(Tr.getFullStart(),sr)),!Tr||!e.isIdentifier(Tr))return;if(!Fn)return e.isDeclarationName(Tr)?void 0:{called:Tr,nTypeArguments:Si};Fn--;break;case 49:Fn=3;break;case 48:Fn=2;break;case 31:Fn++;break;case 19:if(Tr=xe(Tr,18,sr),!Tr)return;break;case 21:if(Tr=xe(Tr,20,sr),!Tr)return;break;case 23:if(Tr=xe(Tr,22,sr),!Tr)return;break;case 27:Si++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(Tr))break;return}Tr=Ur(Tr.getFullStart(),sr)}}e.getPossibleTypeArgumentsInfo=Qr;function en(fe,sr,Tr){return e.formatting.getRangeOfEnclosingComment(fe,sr,void 0,Tr)}e.isInComment=en;function vn(fe,sr){var Tr=qr(fe,sr);return!!e.findAncestor(Tr,e.isJSDoc)}e.hasDocComment=vn;function Ie(fe,sr){return fe.kind===1?!!fe.jsDoc:fe.getWidth(sr)!==0}function We(fe,sr){sr===void 0&&(sr=0);var Tr=[],Fn=e.isDeclaration(fe)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(fe)&~sr:0;return Fn&8&&Tr.push("private"),Fn&16&&Tr.push("protected"),Fn&4&&Tr.push("public"),(Fn&32||e.isClassStaticBlockDeclaration(fe))&&Tr.push("static"),Fn&256&&Tr.push("abstract"),Fn&1&&Tr.push("export"),Fn&8192&&Tr.push("deprecated"),fe.flags&16777216&&Tr.push("declare"),fe.kind===274&&Tr.push("export"),Tr.length>0?Tr.join(","):""}e.getNodeModifiers=We;function xr(fe){if(fe.kind===180||fe.kind===210)return fe.typeArguments;if(e.isFunctionLike(fe)||fe.kind===260||fe.kind===261)return fe.typeParameters}e.getTypeArgumentOrTypeParameterList=xr;function Lr(fe){return fe===2||fe===3}e.isComment=Lr;function xn(fe){return!!(fe===10||fe===13||e.isTemplateLiteralKind(fe))}e.isStringOrRegularExpressionOrTemplateLiteral=xn;function An(fe){return 18<=fe&&fe<=78}e.isPunctuation=An;function Qn(fe,sr,Tr){return e.isTemplateLiteralKind(fe.kind)&&fe.getStart(Tr)<sr&&sr<fe.end||!!fe.isUnterminated&&sr===fe.end}e.isInsideTemplateLiteral=Qn;function ai(fe){switch(fe){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=ai;function Dr(fe){var sr=e.clone(fe);return e.setConfigFileInOptions(sr,fe&&fe.configFile),sr}e.cloneCompilerOptions=Dr;function Pr(fe){return!!((fe.kind===206||fe.kind===207)&&(fe.parent.kind===223&&fe.parent.left===fe&&fe.parent.operatorToken.kind===63||fe.parent.kind===247&&fe.parent.initializer===fe||Pr(fe.parent.kind===299?fe.parent.parent:fe.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=Pr;function jr(fe,sr){return je(fe,sr,!0)}e.isInReferenceComment=jr;function on(fe,sr){return je(fe,sr,!1)}e.isInNonReferenceComment=on;function je(fe,sr,Tr){var Fn=en(fe,sr,void 0);return!!Fn&&Tr===G.test(fe.text.substring(Fn.pos,Fn.end))}function Sr(fe){if(!!fe)switch(fe.kind){case 10:case 14:return Ye(fe);default:return Te(fe)}}e.getReplacementSpanForContextToken=Sr;function Te(fe,sr,Tr){return e.createTextSpanFromBounds(fe.getStart(sr),(Tr||fe).getEnd())}e.createTextSpanFromNode=Te;function Ye(fe){if(!fe.isUnterminated)return e.createTextSpanFromBounds(fe.getStart()+1,fe.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=Ye;function Qe(fe,sr){return e.createRange(fe.getStart(sr),fe.end)}e.createTextRangeFromNode=Qe;function ue(fe){return e.createTextSpanFromBounds(fe.pos,fe.end)}e.createTextSpanFromRange=ue;function Ke(fe){return e.createRange(fe.start,fe.start+fe.length)}e.createTextRangeFromSpan=Ke;function tr(fe,sr,Tr){return hr(e.createTextSpan(fe,sr),Tr)}e.createTextChangeFromStartLength=tr;function hr(fe,sr){return{span:fe,newText:sr}}e.createTextChange=hr,e.typeKeywords=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157];function _r(fe){return e.contains(e.typeKeywords,fe)}e.isTypeKeyword=_r;function Or(fe){return fe.kind===154}e.isTypeKeywordToken=Or;function zr(fe){return Or(fe)||e.isIdentifier(fe)&&fe.text==="type"}e.isTypeKeywordTokenOrIdentifier=zr;function fn(fe){return!!(fe.flags&1536)&&fe.name.charCodeAt(0)===34}e.isExternalModuleSymbol=fn;function Vr(){var fe=[];return function(sr){var Tr=e.getNodeId(sr);return!fe[Tr]&&(fe[Tr]=!0)}}e.nodeSeenTracker=Vr;function Wn(fe){return fe.getText(0,fe.getLength())}e.getSnapshotText=Wn;function bn(fe,sr){for(var Tr="",Fn=0;Fn<sr;Fn++)Tr+=fe;return Tr}e.repeatString=bn;function qn(fe){return fe.isTypeParameter()&&fe.getConstraint()||fe}e.skipConstraint=qn;function yn(fe){return fe.kind===164?e.isStringOrNumericLiteralLike(fe.expression)?fe.expression.text:void 0:e.isPrivateIdentifier(fe)?e.idText(fe):e.getTextOfIdentifierOrLiteral(fe)}e.getNameFromPropertyName=yn;function Hn(fe){return fe.getSourceFiles().some(function(sr){return!sr.isDeclarationFile&&!fe.isSourceFileFromExternalLibrary(sr)&&!!(sr.externalModuleIndicator||sr.commonJsModuleIndicator)})}e.programContainsModules=Hn;function Ai(fe){return fe.getSourceFiles().some(function(sr){return!sr.isDeclarationFile&&!fe.isSourceFileFromExternalLibrary(sr)&&!!sr.externalModuleIndicator})}e.programContainsEsModules=Ai;function ti(fe){return!!fe.module||e.getEmitScriptTarget(fe)>=2||!!fe.noEmit}e.compilerOptionsIndicateEsModules=ti;function Hi(fe,sr){return{fileExists:function(Tr){return fe.fileExists(Tr)},getCurrentDirectory:function(){return sr.getCurrentDirectory()},readFile:e.maybeBind(sr,sr.readFile),useCaseSensitiveFileNames:e.maybeBind(sr,sr.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(sr,sr.getSymlinkCache)||fe.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(sr,sr.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var Tr;return(Tr=fe.getModuleResolutionCache())===null||Tr===void 0?void 0:Tr.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(sr,sr.getGlobalTypingsCacheLocation),redirectTargetsMap:fe.redirectTargetsMap,getProjectReferenceRedirect:function(Tr){return fe.getProjectReferenceRedirect(Tr)},isSourceOfProjectReferenceRedirect:function(Tr){return fe.isSourceOfProjectReferenceRedirect(Tr)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(sr,sr.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return fe.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=Hi;function Ni(fe,sr){return vi(vi({},Hi(fe,sr)),{getCommonSourceDirectory:function(){return fe.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=Ni;function gi(fe){return fe>=e.ModuleResolutionKind.Node16&&fe<=e.ModuleResolutionKind.NodeNext}e.moduleResolutionRespectsExports=gi;function Pn(fe){return fe===e.ModuleResolutionKind.NodeJs||fe>=e.ModuleResolutionKind.Node16&&fe<=e.ModuleResolutionKind.NodeNext}e.moduleResolutionUsesNodeModules=Pn;function Pe(fe,sr,Tr,Fn){return fe||sr&&sr.length?Ir(fe,sr,Tr,Fn):void 0}e.makeImportIfNecessary=Pe;function Ir(fe,sr,Tr,Fn,Si){return e.factory.createImportDeclaration(void 0,fe||sr?e.factory.createImportClause(!!Si,fe,sr&&sr.length?e.factory.createNamedImports(sr):void 0):void 0,typeof Tr=="string"?we(Tr,Fn):Tr,void 0)}e.makeImport=Ir;function we(fe,sr){return e.factory.createStringLiteral(fe,sr===0)}e.makeStringLiteral=we;var hn;(function(fe){fe[fe.Single=0]="Single",fe[fe.Double=1]="Double"})(hn=e.QuotePreference||(e.QuotePreference={}));function jn(fe,sr){return e.isStringDoubleQuoted(fe,sr)?1:0}e.quotePreferenceFromString=jn;function gn(fe,sr){if(sr.quotePreference&&sr.quotePreference!=="auto")return sr.quotePreference==="single"?0:1;var Tr=fe.imports&&e.find(fe.imports,function(Fn){return e.isStringLiteral(Fn)&&!e.nodeIsSynthesized(Fn.parent)});return Tr?jn(Tr,fe):1}e.getQuotePreference=gn;function nn(fe){switch(fe){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(fe)}}e.getQuoteFromPreference=nn;function Cn(fe){var sr=Dn(fe);return sr===void 0?void 0:e.unescapeLeadingUnderscores(sr)}e.symbolNameNoDefault=Cn;function Dn(fe){return fe.escapedName!=="default"?fe.escapedName:e.firstDefined(fe.declarations,function(sr){var Tr=e.getNameOfDeclaration(sr);return Tr&&Tr.kind===79?Tr.escapedText:void 0})}e.symbolEscapedNameNoDefault=Dn;function On(fe){return e.isStringLiteralLike(fe)&&(e.isExternalModuleReference(fe.parent)||e.isImportDeclaration(fe.parent)||e.isRequireCall(fe.parent,!1)&&fe.parent.arguments[0]===fe||e.isImportCall(fe.parent)&&fe.parent.arguments[0]===fe)}e.isModuleSpecifierLike=On;function Xn(fe){return e.isBindingElement(fe)&&e.isObjectBindingPattern(fe.parent)&&e.isIdentifier(fe.name)&&!fe.propertyName}e.isObjectBindingElementWithoutPropertyName=Xn;function Ge(fe,sr){var Tr=fe.getTypeAtLocation(sr.parent);return Tr&&fe.getPropertyOfType(Tr,sr.name.text)}e.getPropertySymbolFromBindingElement=Ge;function cn(fe,sr,Tr){if(!!fe)for(;fe.parent;){if(e.isSourceFile(fe.parent)||!Vn(Tr,fe.parent,sr))return fe;fe=fe.parent}}e.getParentNodeInSpan=cn;function Vn(fe,sr,Tr){return e.textSpanContainsPosition(fe,sr.getStart(Tr))&&sr.getEnd()<=e.textSpanEnd(fe)}function Ki(fe,sr){return e.canHaveModifiers(fe)?e.find(fe.modifiers,function(Tr){return Tr.kind===sr}):void 0}e.findModifier=Ki;function dt(fe,sr,Tr,Fn){var Si=e.isArray(Tr)?Tr[0]:Tr,gt=Si.kind===240?e.isRequireVariableStatement:e.isAnyImportSyntax,jt=e.filter(sr.statements,gt),fa=e.isArray(Tr)?e.stableSort(Tr,e.OrganizeImports.compareImportsOrRequireStatements):[Tr];if(!jt.length)fe.insertNodesAtTopOfFile(sr,fa,Fn);else if(jt&&e.OrganizeImports.importsAreSorted(jt))for(var Ka=0,no=fa;Ka<no.length;Ka++){var Eo=no[Ka],Fa=e.OrganizeImports.getImportDeclarationInsertionIndex(jt,Eo);if(Fa===0){var Qa=jt[0]===sr.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};fe.insertNodeBefore(sr,jt[0],Eo,!1,Qa)}else{var zo=jt[Fa-1];fe.insertNodeAfter(sr,zo,Eo)}}else{var Uo=e.lastOrUndefined(jt);Uo?fe.insertNodesAfter(sr,Uo,fa):fe.insertNodesAtTopOfFile(sr,fa,Fn)}}e.insertImports=dt;function qi(fe,sr){return e.Debug.assert(fe.isTypeOnly),e.cast(fe.getChildAt(0,sr),Or)}e.getTypeKeywordOfTypeOnlyImport=qi;function Ci(fe,sr){return!!fe&&!!sr&&fe.start===sr.start&&fe.length===sr.length}e.textSpansEqual=Ci;function Tt(fe,sr){return fe.fileName===sr.fileName&&Ci(fe.textSpan,sr.textSpan)}e.documentSpansEqual=Tt;function ot(fe,sr){if(fe){for(var Tr=0;Tr<fe.length;Tr++)if(fe.indexOf(fe[Tr])===Tr){var Fn=sr(fe[Tr],Tr);if(Fn)return Fn}}}e.forEachUnique=ot;function Zi(fe,sr,Tr){for(var Fn=sr;Fn<Tr;Fn++)if(!e.isWhiteSpaceLike(fe.charCodeAt(Fn)))return!1;return!0}e.isTextWhiteSpaceLike=Zi;function ni(fe,sr,Tr){var Fn=sr.tryGetSourcePosition(fe);return Fn&&(!Tr||Tr(e.normalizePath(Fn.fileName))?Fn:void 0)}e.getMappedLocation=ni;function Va(fe,sr,Tr){var Fn=fe.fileName,Si=fe.textSpan,gt=ni({fileName:Fn,pos:Si.start},sr,Tr);if(!!gt){var jt=ni({fileName:Fn,pos:Si.start+Si.length},sr,Tr),fa=jt?jt.pos-gt.pos:Si.length;return{fileName:gt.fileName,textSpan:{start:gt.pos,length:fa},originalFileName:fe.fileName,originalTextSpan:fe.textSpan,contextSpan:Ua(fe,sr,Tr),originalContextSpan:fe.contextSpan}}}e.getMappedDocumentSpan=Va;function Ua(fe,sr,Tr){var Fn=fe.contextSpan&&ni({fileName:fe.fileName,pos:fe.contextSpan.start},sr,Tr),Si=fe.contextSpan&&ni({fileName:fe.fileName,pos:fe.contextSpan.start+fe.contextSpan.length},sr,Tr);return Fn&&Si?{start:Fn.pos,length:Si.pos-Fn.pos}:void 0}e.getMappedContextSpan=Ua;function za(fe){var sr=fe.declarations?e.firstOrUndefined(fe.declarations):void 0;return!!e.findAncestor(sr,function(Tr){return e.isParameter(Tr)?!0:e.isBindingElement(Tr)||e.isObjectBindingPattern(Tr)||e.isArrayBindingPattern(Tr)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=za;var Co=Ea();function Ea(){var fe=e.defaultMaximumTruncationLength*10,sr,Tr,Fn,Si;Eo();var gt=function(Fa){return fa(Fa,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Fa=sr.length&&sr[sr.length-1].text;return Si>fe&&Fa&&Fa!=="..."&&(e.isWhiteSpaceLike(Fa.charCodeAt(Fa.length-1))||sr.push(Aa(" ",e.SymbolDisplayPartKind.space)),sr.push(Aa("...",e.SymbolDisplayPartKind.punctuation))),sr},writeKeyword:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Fa){return fa(Fa,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:Ka,writeLine:no,write:gt,writeComment:gt,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return Fn},increaseIndent:function(){Fn++},decreaseIndent:function(){Fn--},clear:Eo,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function jt(){if(!(Si>fe)&&Tr){var Fa=e.getIndentString(Fn);Fa&&(Si+=Fa.length,sr.push(Aa(Fa,e.SymbolDisplayPartKind.space))),Tr=!1}}function fa(Fa,Qa){Si>fe||(jt(),Si+=Fa.length,sr.push(Aa(Fa,Qa)))}function Ka(Fa,Qa){Si>fe||(jt(),Si+=Fa.length,sr.push(ho(Fa,Qa)))}function no(){Si>fe||(Si+=1,sr.push(Nn()),Tr=!0)}function Eo(){sr=[],Tr=!0,Fn=0,Si=0}}function ho(fe,sr){return Aa(fe,Tr(sr));function Tr(Fn){var Si=Fn.flags;return Si&3?za(Fn)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:Si&4||Si&32768||Si&65536?e.SymbolDisplayPartKind.propertyName:Si&8?e.SymbolDisplayPartKind.enumMemberName:Si&16?e.SymbolDisplayPartKind.functionName:Si&32?e.SymbolDisplayPartKind.className:Si&64?e.SymbolDisplayPartKind.interfaceName:Si&384?e.SymbolDisplayPartKind.enumName:Si&1536?e.SymbolDisplayPartKind.moduleName:Si&8192?e.SymbolDisplayPartKind.methodName:Si&262144?e.SymbolDisplayPartKind.typeParameterName:Si&524288||Si&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=ho;function Aa(fe,sr){return{text:fe,kind:e.SymbolDisplayPartKind[sr]}}e.displayPart=Aa;function Vi(){return Aa(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Vi;function Xi(fe){return Aa(e.tokenToString(fe),e.SymbolDisplayPartKind.keyword)}e.keywordPart=Xi;function ao(fe){return Aa(e.tokenToString(fe),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=ao;function fo(fe){return Aa(e.tokenToString(fe),e.SymbolDisplayPartKind.operator)}e.operatorPart=fo;function As(fe){return Aa(fe,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=As;function so(fe){return Aa(fe,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=so;function Xo(fe){var sr=e.stringToToken(fe);return sr===void 0?Ho(fe):Xi(sr)}e.textOrKeywordPart=Xo;function Ho(fe){return Aa(fe,e.SymbolDisplayPartKind.text)}e.textPart=Ho;function Zo(fe){return Aa(fe,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=Zo;function To(fe){return Aa(fe,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=To;function pr(fe){return Aa(fe,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=pr;function Fr(fe,sr){return{text:fe,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(sr).fileName,textSpan:Te(sr)}}}e.linkNamePart=Fr;function yi(fe){return Aa(fe,e.SymbolDisplayPartKind.link)}e.linkPart=yi;function Dt(fe,sr){var Tr,Fn=e.isJSDocLink(fe)?"link":e.isJSDocLinkCode(fe)?"linkcode":"linkplain",Si=[yi("{@".concat(Fn," "))];if(!fe.name)fe.text&&Si.push(pr(fe.text));else{var gt=sr==null?void 0:sr.getSymbolAtLocation(fe.name),jt=Pa(fe.text),fa=e.getTextOfNode(fe.name)+fe.text.slice(0,jt),Ka=Ft(fe.text.slice(jt)),no=(gt==null?void 0:gt.valueDeclaration)||((Tr=gt==null?void 0:gt.declarations)===null||Tr===void 0?void 0:Tr[0]);no?(Si.push(Fr(fa,no)),Ka&&Si.push(pr(Ka))):Si.push(pr(fa+(jt||Ka.indexOf("://")===0?"":" ")+Ka))}return Si.push(yi("}")),Si}e.buildLinkParts=Dt;function Ft(fe){var sr=0;if(fe.charCodeAt(sr++)===124){for(;sr<fe.length&&fe.charCodeAt(sr)===32;)sr++;return fe.slice(sr)}return fe}function Pa(fe){if(fe.indexOf("()")===0)return 2;if(fe[0]!=="<")return 0;for(var sr=0,Tr=0;Tr<fe.length;)if(fe[Tr]==="<"&&sr++,fe[Tr]===">"&&sr--,Tr++,!sr)return Tr;return 0}var Ve=`\r
  256. `;function tn(fe,sr){var Tr;return(sr==null?void 0:sr.newLineCharacter)||((Tr=fe.getNewLine)===null||Tr===void 0?void 0:Tr.call(fe))||Ve}e.getNewLineOrDefaultFromHost=tn;function Nn(){return Aa(`
  257. `,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=Nn;function wn(fe){try{return fe(Co),Co.displayParts()}finally{Co.clear()}}e.mapToDisplayParts=wn;function Je(fe,sr,Tr,Fn){return Fn===void 0&&(Fn=0),wn(function(Si){fe.writeType(sr,Tr,Fn|1024|16384,Si)})}e.typeToDisplayParts=Je;function ur(fe,sr,Tr,Fn,Si){return Si===void 0&&(Si=0),wn(function(gt){fe.writeSymbol(sr,Tr,Fn,Si|8,gt)})}e.symbolToDisplayParts=ur;function yr(fe,sr,Tr,Fn){return Fn===void 0&&(Fn=0),Fn|=16384|1024|32|8192,wn(function(Si){fe.writeSignature(sr,Tr,Fn,void 0,Si)})}e.signatureToDisplayParts=yr;function Jr(fe,sr){var Tr=sr.getSourceFile();return wn(function(Fn){var Si=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});Si.writeNode(4,fe,Tr,Fn)})}e.nodeToDisplayParts=Jr;function Mn(fe){return!!fe.parent&&e.isImportOrExportSpecifier(fe.parent)&&fe.parent.propertyName===fe}e.isImportOrExportSpecifierName=Mn;function _i(fe,sr){return e.ensureScriptKind(fe,sr.getScriptKind&&sr.getScriptKind(fe))}e.getScriptKind=_i;function di(fe,sr){for(var Tr=fe;Nt(Tr)||fi(Tr)&&Tr.target;)fi(Tr)&&Tr.target?Tr=Tr.target:Tr=e.skipAlias(Tr,sr);return Tr}e.getSymbolTarget=di;function fi(fe){return(fe.flags&33554432)!=0}function Nt(fe){return(fe.flags&2097152)!=0}function Gt(fe,sr){return e.getSymbolId(e.skipAlias(fe,sr))}e.getUniqueSymbolId=Gt;function la(fe,sr){for(;e.isWhiteSpaceLike(fe.charCodeAt(sr));)sr+=1;return sr}e.getFirstNonSpaceCharacterPosition=la;function na(fe,sr){for(;sr>-1&&e.isWhiteSpaceSingleLine(fe.charCodeAt(sr));)sr-=1;return sr+1}e.getPrecedingNonSpaceCharacterPosition=na;function Ia(fe,sr){sr===void 0&&(sr=!0);var Tr=fe&&ds(fe);return Tr&&!sr&&Es(Tr),Tr}e.getSynthesizedDeepClone=Ia;function bs(fe,sr,Tr){var Fn=Tr(fe);return Fn?e.setOriginalNode(Fn,fe):Fn=ds(fe,Tr),Fn&&!sr&&Es(Fn),Fn}e.getSynthesizedDeepCloneWithReplacements=bs;function ds(fe,sr){var Tr=sr?function(jt){return bs(jt,!0,sr)}:Ia,Fn=sr?function(jt){return jt&&ac(jt,!0,sr)}:function(jt){return jt&&ps(jt)},Si=e.visitEachChild(fe,Tr,e.nullTransformationContext,Fn,Tr);if(Si===fe){var gt=e.isStringLiteral(fe)?e.setOriginalNode(e.factory.createStringLiteralFromNode(fe),fe):e.isNumericLiteral(fe)?e.setOriginalNode(e.factory.createNumericLiteral(fe.text,fe.numericLiteralFlags),fe):e.factory.cloneNode(fe);return e.setTextRange(gt,fe)}return Si.parent=void 0,Si}function ps(fe,sr){return sr===void 0&&(sr=!0),fe&&e.factory.createNodeArray(fe.map(function(Tr){return Ia(Tr,sr)}),fe.hasTrailingComma)}e.getSynthesizedDeepClones=ps;function ac(fe,sr,Tr){return e.factory.createNodeArray(fe.map(function(Fn){return bs(Fn,sr,Tr)}),fe.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=ac;function Es(fe){ns(fe),dc(fe)}e.suppressLeadingAndTrailingTrivia=Es;function ns(fe){js(fe,512,Sc)}e.suppressLeadingTrivia=ns;function dc(fe){js(fe,1024,e.getLastChild)}e.suppressTrailingTrivia=dc;function $s(fe,sr){var Tr=fe.getSourceFile(),Fn=Tr.text;pc(fe,Fn)?Vs(fe,sr,Tr):Ss(fe,sr,Tr),oc(fe,sr,Tr)}e.copyComments=$s;function pc(fe,sr){for(var Tr=fe.getFullStart(),Fn=fe.getStart(),Si=Tr;Si<Fn;Si++)if(sr.charCodeAt(Si)===10)return!0;return!1}function js(fe,sr,Tr){e.addEmitFlags(fe,sr);var Fn=Tr(fe);Fn&&js(Fn,sr,Tr)}function Sc(fe){return fe.forEachChild(function(sr){return sr})}function Ko(fe,sr){for(var Tr=fe,Fn=1;!e.isFileLevelUniqueName(sr,Tr);Fn++)Tr="".concat(fe,"_").concat(Fn);return Tr}e.getUniqueName=Ko;function Mc(fe,sr,Tr,Fn){for(var Si=0,gt=-1,jt=0,fa=fe;jt<fa.length;jt++){var Ka=fa[jt],no=Ka.fileName,Eo=Ka.textChanges;e.Debug.assert(no===sr);for(var Fa=0,Qa=Eo;Fa<Qa.length;Fa++){var zo=Qa[Fa],Uo=zo.span,ms=zo.newText,xc=Er(ms,e.escapeString(Tr));if(xc!==-1&&(gt=Uo.start+Si+xc,!Fn))return gt;Si+=ms.length-Uo.length}}return e.Debug.assert(Fn),e.Debug.assert(gt>=0),gt}e.getRenameLocation=Mc;function Vs(fe,sr,Tr,Fn,Si){e.forEachLeadingCommentRange(Tr.text,fe.pos,ee(sr,Tr,Fn,Si,e.addSyntheticLeadingComment))}e.copyLeadingComments=Vs;function oc(fe,sr,Tr,Fn,Si){e.forEachTrailingCommentRange(Tr.text,fe.end,ee(sr,Tr,Fn,Si,e.addSyntheticTrailingComment))}e.copyTrailingComments=oc;function Ss(fe,sr,Tr,Fn,Si){e.forEachTrailingCommentRange(Tr.text,fe.pos,ee(sr,Tr,Fn,Si,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=Ss;function ee(fe,sr,Tr,Fn,Si){return function(gt,jt,fa,Ka){fa===3?(gt+=2,jt-=2):gt+=2,Si(fe,Tr||fa,sr.text.slice(gt,jt),Fn!==void 0?Fn:Ka)}}function Er(fe,sr){if(e.startsWith(fe,sr))return 0;var Tr=fe.indexOf(" "+sr);return Tr===-1&&(Tr=fe.indexOf("."+sr)),Tr===-1&&(Tr=fe.indexOf('"'+sr)),Tr===-1?-1:Tr+1}function un(fe){return e.isBinaryExpression(fe)&&fe.operatorToken.kind===27||e.isObjectLiteralExpression(fe)||e.isAsExpression(fe)&&e.isObjectLiteralExpression(fe.expression)}e.needsParentheses=un;function $n(fe,sr){var Tr=fe.parent;switch(Tr.kind){case 211:return sr.getContextualType(Tr);case 223:{var Fn=Tr,Si=Fn.left,gt=Fn.operatorToken,jt=Fn.right;return at(gt.kind)?sr.getTypeAtLocation(fe===jt?Si:jt):sr.getContextualType(fe)}case 292:return Tr.expression===fe?Ht(Tr,sr):void 0;default:return sr.getContextualType(fe)}}e.getContextualTypeFromParent=$n;function Ii(fe,sr,Tr){var Fn=gn(fe,sr),Si=JSON.stringify(Tr);return Fn===0?"'".concat(e.stripQuotes(Si).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):Si}e.quote=Ii;function at(fe){switch(fe){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=at;function Ji(fe){switch(fe.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}e.isStringLiteralOrTemplate=Ji;function _t(fe){return!!fe.getStringIndexType()||!!fe.getNumberIndexType()}e.hasIndexSignature=_t;function Ht(fe,sr){return sr.getTypeAtLocation(fe.parent.parent.expression)}e.getSwitchedType=Ht,e.ANONYMOUS="anonymous function";function Rt(fe,sr,Tr,Fn){var Si=Tr.getTypeChecker(),gt=!0,jt=function(){return gt=!1},fa=Si.typeToTypeNode(fe,sr,1,{trackSymbol:function(Ka,no,Eo){return gt=gt&&Si.isSymbolAccessible(Ka,no,Eo,!1).accessibility===0,!gt},reportInaccessibleThisError:jt,reportPrivateInBaseOfClassExpression:jt,reportInaccessibleUniqueSymbolError:jt,moduleResolverHost:Ni(Tr,Fn)});return gt?fa:void 0}e.getTypeNodeIfAccessible=Rt;function va(fe){return fe===176||fe===177||fe===178||fe===168||fe===170}function qe(fe){return fe===259||fe===173||fe===171||fe===174||fe===175}function Tn(fe){return fe===264}function Nr(fe){return fe===240||fe===241||fe===243||fe===248||fe===249||fe===250||fe===254||fe===256||fe===169||fe===262||fe===269||fe===268||fe===275||fe===267||fe===274}e.syntaxRequiresTrailingSemicolonOrASI=Nr,e.syntaxMayBeASICandidate=e.or(va,qe,Tn,Nr);function ga(fe,sr){var Tr=fe.getLastToken(sr);if(Tr&&Tr.kind===26)return!1;if(va(fe.kind)){if(Tr&&Tr.kind===27)return!1}else if(Tn(fe.kind)){var Fn=e.last(fe.getChildren(sr));if(Fn&&e.isModuleBlock(Fn))return!1}else if(qe(fe.kind)){var Fn=e.last(fe.getChildren(sr));if(Fn&&e.isFunctionBlock(Fn))return!1}else if(!Nr(fe.kind))return!1;if(fe.kind===243)return!0;var Si=e.findAncestor(fe,function(Ka){return!Ka.parent}),gt=kr(fe,Si,sr);if(!gt||gt.kind===19)return!0;var jt=sr.getLineAndCharacterOfPosition(fe.getEnd()).line,fa=sr.getLineAndCharacterOfPosition(gt.getStart(sr)).line;return jt!==fa}function xa(fe,sr,Tr){var Fn=e.findAncestor(sr,function(Si){return Si.end!==fe?"quit":e.syntaxMayBeASICandidate(Si.kind)});return!!Fn&&ga(Fn,Tr)}e.positionIsASICandidate=xa;function co(fe){var sr=0,Tr=0,Fn=5;return e.forEachChild(fe,function Si(gt){if(Nr(gt.kind)){var jt=gt.getLastToken(fe);(jt==null?void 0:jt.kind)===26?sr++:Tr++}else if(va(gt.kind)){var jt=gt.getLastToken(fe);if((jt==null?void 0:jt.kind)===26)sr++;else if(jt&&jt.kind!==27){var fa=e.getLineAndCharacterOfPosition(fe,jt.getStart(fe)).line,Ka=e.getLineAndCharacterOfPosition(fe,e.getSpanOfTokenAtPosition(fe,jt.end).start).line;fa!==Ka&&Tr++}}return sr+Tr>=Fn?!0:e.forEachChild(gt,Si)}),sr===0&&Tr<=1?!0:sr/Tr>1/Fn}e.probablyUsesSemicolons=co;function gs(fe,sr){return ec(fe,fe.getDirectories,sr)||[]}e.tryGetDirectories=gs;function gc(fe,sr,Tr,Fn,Si){return ec(fe,fe.readDirectory,sr,Tr,Fn,Si)||e.emptyArray}e.tryReadDirectory=gc;function ws(fe,sr){return ec(fe,fe.fileExists,sr)}e.tryFileExists=ws;function Lc(fe,sr){return qs(function(){return e.directoryProbablyExists(sr,fe)})||!1}e.tryDirectoryExists=Lc;function qs(fe){try{return fe()}catch(sr){return}}e.tryAndIgnoreErrors=qs;function ec(fe,sr){for(var Tr=[],Fn=2;Fn<arguments.length;Fn++)Tr[Fn-2]=arguments[Fn];return qs(function(){return sr&&sr.apply(fe,Tr)})}e.tryIOAndConsumeErrors=ec;function Rc(fe,sr,Tr){var Fn=[];return e.forEachAncestorDirectory(fe,function(Si){if(Si===Tr)return!0;var gt=e.combinePaths(Si,"package.json");ws(sr,gt)&&Fn.push(gt)}),Fn}e.findPackageJsons=Rc;function _o(fe,sr){var Tr;return e.forEachAncestorDirectory(fe,function(Fn){if(Fn==="node_modules"||(Tr=e.findConfigFile(Fn,function(Si){return ws(sr,Si)},"package.json"),Tr))return!0}),Tr}e.findPackageJson=_o;function Gs(fe,sr){if(!sr.fileExists)return[];var Tr=[];return e.forEachAncestorDirectory(e.getDirectoryPath(fe),function(Fn){var Si=e.combinePaths(Fn,"package.json");if(sr.fileExists(Si)){var gt=mc(Si,sr);gt&&Tr.push(gt)}}),Tr}e.getPackageJsonsVisibleToFile=Gs;function mc(fe,sr){if(!sr.readFile)return;var Tr=["dependencies","devDependencies","optionalDependencies","peerDependencies"],Fn=sr.readFile(fe)||"",Si=$c(Fn),gt={};if(Si)for(var jt=0,fa=Tr;jt<fa.length;jt++){var Ka=fa[jt],no=Si[Ka];if(!!no){var Eo=new e.Map;for(var Fa in no)Eo.set(Fa,no[Fa]);gt[Ka]=Eo}}var Qa=[[1,gt.dependencies],[2,gt.devDependencies],[8,gt.optionalDependencies],[4,gt.peerDependencies]];return vi(vi({},gt),{parseable:!!Si,fileName:fe,get:zo,has:function(Uo,ms){return!!zo(Uo,ms)}});function zo(Uo,ms){ms===void 0&&(ms=15);for(var xc=0,Os=Qa;xc<Os.length;xc++){var Cl=Os[xc],m_=Cl[0],pl=Cl[1];if(pl&&ms&m_){var Zl=pl.get(Uo);if(Zl!==void 0)return Zl}}}}e.createPackageJsonInfo=mc;function xl(fe,sr,Tr){var Fn=(Tr.getPackageJsonsVisibleToFile&&Tr.getPackageJsonsVisibleToFile(fe.fileName)||Gs(fe.fileName,Tr)).filter(function(Qa){return Qa.parseable}),Si;return{allowsImportingAmbientModule:jt,allowsImportingSourceFile:fa,allowsImportingSpecifier:Ka};function gt(Qa){for(var zo=Fa(Qa),Uo=0,ms=Fn;Uo<ms.length;Uo++){var xc=ms[Uo];if(xc.has(zo)||xc.has(e.getTypesPackageName(zo)))return!0}return!1}function jt(Qa,zo){if(!Fn.length||!Qa.valueDeclaration)return!0;var Uo=Qa.valueDeclaration.getSourceFile(),ms=Eo(Uo.fileName,zo);if(typeof ms=="undefined")return!0;var xc=e.stripQuotes(Qa.getName());return no(xc)?!0:gt(ms)||gt(xc)}function fa(Qa,zo){if(!Fn.length)return!0;var Uo=Eo(Qa.fileName,zo);return Uo?gt(Uo):!0}function Ka(Qa){return!Fn.length||no(Qa)||e.pathIsRelative(Qa)||e.isRootedDiskPath(Qa)?!0:gt(Qa)}function no(Qa){return!!(e.isSourceFileJS(fe)&&e.JsTyping.nodeCoreModules.has(Qa)&&(Si===void 0&&(Si=Qu(fe)),Si))}function Eo(Qa,zo){if(!!e.stringContains(Qa,"node_modules")){var Uo=e.moduleSpecifiers.getNodeModulesPackageName(Tr.getCompilationSettings(),fe,Qa,zo,sr);if(!!Uo&&!e.pathIsRelative(Uo)&&!e.isRootedDiskPath(Uo))return Fa(Uo)}}function Fa(Qa){var zo=e.getPathComponents(e.getPackageNameFromTypesPackageName(Qa)).slice(1);return e.startsWith(zo[0],"@")?"".concat(zo[0],"/").concat(zo[1]):zo[0]}}e.createPackageJsonImportFilter=xl;function $c(fe){try{return JSON.parse(fe)}catch(sr){return}}function Qu(fe){return e.some(fe.imports,function(sr){var Tr=sr.text;return e.JsTyping.nodeCoreModules.has(Tr)})}e.consumesNodeCoreModules=Qu;function Df(fe){return e.contains(e.getPathComponents(fe),"node_modules")}e.isInsideNodeModules=Df;function Xu(fe){return fe.file!==void 0&&fe.start!==void 0&&fe.length!==void 0}e.isDiagnosticWithLocation=Xu;function zc(fe,sr){var Tr=Te(fe),Fn=e.binarySearchKey(sr,Tr,e.identity,e.compareTextSpans);if(Fn>=0){var Si=sr[Fn];return e.Debug.assertEqual(Si.file,fe.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(Si,Xu)}}e.findDiagnosticForNode=zc;function Zu(fe,sr){var Tr,Fn=e.binarySearchKey(sr,fe.start,function(fa){return fa.start},e.compareValues);for(Fn<0&&(Fn=~Fn);((Tr=sr[Fn-1])===null||Tr===void 0?void 0:Tr.start)===fe.start;)Fn--;for(var Si=[],gt=e.textSpanEnd(fe);;){var jt=e.tryCast(sr[Fn],Xu);if(!jt||jt.start>gt)break;e.textSpanContainsTextSpan(fe,jt)&&Si.push(jt),Fn++}return Si}e.getDiagnosticsWithinSpan=Zu;function Hr(fe){var sr=fe.startPosition,Tr=fe.endPosition;return e.createTextSpanFromBounds(sr,Tr===void 0?sr:Tr)}e.getRefactorContextSpan=Hr;function Gr(fe,sr){var Tr=qr(fe,sr.start),Fn=e.findAncestor(Tr,function(Si){return Si.getStart(fe)<sr.start||Si.getEnd()>e.textSpanEnd(sr)?"quit":e.isExpression(Si)&&Ci(sr,Te(Si,fe))});return Fn}e.getFixableErrorSpanExpression=Gr;function Bn(fe,sr,Tr){return Tr===void 0&&(Tr=e.identity),fe?e.isArray(fe)?Tr(e.map(fe,sr)):sr(fe,0):void 0}e.mapOneOrMany=Bn;function ui(fe){return e.isArray(fe)?e.first(fe):fe}e.firstOrOnly=ui;function hi(fe,sr){if(st(fe)){var Tr=Bi(fe);if(Tr)return Tr;var Fn=e.codefix.moduleSymbolToValidIdentifier(Jt(fe),sr,!1),Si=e.codefix.moduleSymbolToValidIdentifier(Jt(fe),sr,!0);return Fn===Si?Fn:[Fn,Si]}return fe.name}e.getNamesForExportedSymbol=hi;function Ei(fe,sr,Tr){return st(fe)?Bi(fe)||e.codefix.moduleSymbolToValidIdentifier(Jt(fe),sr,!!Tr):fe.name}e.getNameForExportedSymbol=Ei;function st(fe){return!(fe.flags&33554432)&&(fe.escapedName==="export="||fe.escapedName==="default")}function Bi(fe){return e.firstDefined(fe.declarations,function(sr){var Tr;return e.isExportAssignment(sr)?(Tr=e.tryCast(e.skipOuterExpressions(sr.expression),e.isIdentifier))===null||Tr===void 0?void 0:Tr.text:void 0})}function Jt(fe){var sr;return e.Debug.checkDefined(fe.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(fe.flags),". ")+"Declarations: ".concat((sr=fe.declarations)===null||sr===void 0?void 0:sr.map(function(Tr){var Fn=e.Debug.formatSyntaxKind(Tr.kind),Si=e.isInJSFile(Tr),gt=Tr.expression;return(Si?"[JS]":"")+Fn+(gt?" (expression: ".concat(e.Debug.formatSyntaxKind(gt.kind),")"):"")}).join(", "),"."))}function Ca(fe,sr,Tr){var Fn=sr.length;if(Fn+Tr>fe.length)return!1;for(var Si=0;Si<Fn;Si++)if(sr.charCodeAt(Si)!==fe.charCodeAt(Si+Tr))return!1;return!0}e.stringContainsAt=Ca;function Yt(fe){return fe.charCodeAt(0)===95}e.startsWithUnderscore=Yt;function Wt(fe){return!Ga(fe)}e.isGlobalDeclaration=Wt;function Ga(fe){var sr=fe.getSourceFile();return!sr.externalModuleIndicator&&!sr.commonJsModuleIndicator?!1:e.isInJSFile(fe)||!e.findAncestor(fe,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=Ga;function $t(fe){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(fe)&8192)}e.isDeprecatedDeclaration=$t;function po(fe,sr){var Tr=e.firstDefined(fe.imports,function(Fn){if(e.JsTyping.nodeCoreModules.has(Fn.text))return e.startsWith(Fn.text,"node:")});return Tr!=null?Tr:sr.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=po;function Do(fe){return fe===`
  258. `?1:0}e.getNewLineKind=Do;function Ns(fe){return e.isArray(fe)?e.formatStringFromArgs(e.getLocaleSpecificMessage(fe[0]),fe.slice(1)):e.getLocaleSpecificMessage(fe)}e.diagnosticToString=Ns;function jo(fe,sr){var Tr=fe.options,Fn=!Tr.semicolons||Tr.semicolons===e.SemicolonPreference.Ignore,Si=Tr.semicolons===e.SemicolonPreference.Remove||Fn&&!co(sr);return vi(vi({},Tr),{semicolons:Si?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}e.getFormatCodeSettingsForWriting=jo;function ys(fe){return fe===2||fe===3}e.jsxModeNeedsExplicitImport=ys;function Vo(fe,sr){return fe.isSourceFileFromExternalLibrary(sr)||fe.isSourceFileDefaultLibrary(sr)}e.isSourceFileFromLibrary=Vo})(fr||(fr={}));var fr;(function(e){var o;(function(oe){oe[oe.Named=0]="Named",oe[oe.Default=1]="Default",oe[oe.Namespace=2]="Namespace",oe[oe.CommonJS=3]="CommonJS"})(o=e.ImportKind||(e.ImportKind={}));var ne;(function(oe){oe[oe.Named=0]="Named",oe[oe.Default=1]="Default",oe[oe.ExportEquals=2]="ExportEquals",oe[oe.UMD=3]="UMD"})(ne=e.ExportKind||(e.ExportKind={}));function K(oe){var ae=1,E=e.createMultiMap(),I=new e.Map,f=new e.Map,m,y={isUsableByFile:function(M){return M===m},isEmpty:function(){return!E.size},clear:function(){E.clear(),I.clear(),m=void 0},add:function(M,H,V,h,F,$,L,P){M!==m&&(y.clear(),m=M);var N;if(F){var J=e.getNodeModulePathParts(F.fileName);if(J){var q=J.topLevelNodeModulesIndex,G=J.topLevelPackageNameIndex,ye=J.packageRootIndex;if(N=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(F.fileName.substring(G+1,ye))),e.startsWith(M,F.path.substring(0,q))){var b=f.get(N),x=F.fileName.substring(0,G+1);if(b){var T=b.indexOf(e.nodeModulesPathPart);q>T&&f.set(N,x)}else f.set(N,x)}}}var Z=$===1,B=Z&&e.getLocalSymbolForExportDefault(H)||H,u=$===0||e.isExternalModuleSymbol(B)?e.unescapeLeadingUnderscores(V):e.getNamesForExportedSymbol(B,void 0),A=typeof u=="string"?u:u[0],w=typeof u=="string"?void 0:u[1],z=e.stripQuotes(h.name),U=ae++,ge=e.skipAlias(H,P),pe=H.flags&33554432?void 0:H,He=h.flags&33554432?void 0:h;(!pe||!He)&&I.set(U,[H,h]),E.add(k(A,H,e.isExternalModuleNameRelative(z)?void 0:z,P),{id:U,symbolTableKey:V,symbolName:A,capitalizedSymbolName:w,moduleName:z,moduleFile:F,moduleFileName:F==null?void 0:F.fileName,packageName:N,exportKind:$,targetFlags:ge.flags,isFromPackageJson:L,symbol:pe,moduleSymbol:He})},get:function(M,H){if(M===m){var V=E.get(H);return V==null?void 0:V.map(S)}},search:function(M,H,V,h){if(M===m)return e.forEachEntry(E,function(F,$){var L=C($),P=L.symbolName,N=L.ambientModuleName,J=H&&F[0].capitalizedSymbolName||P;if(V(J,F[0].targetFlags)){var q=F.map(S),G=q.filter(function(b,x){return X(b,F[x].packageName)});if(G.length){var ye=h(G,J,!!N,$);if(ye!==void 0)return ye}}})},releaseSymbols:function(){I.clear()},onFileChanged:function(M,H,V){return me(M)&&me(H)?!1:m&&m!==H.path||V&&e.consumesNodeCoreModules(M)!==e.consumesNodeCoreModules(H)||!e.arrayIsEqualTo(M.moduleAugmentations,H.moduleAugmentations)||!De(M,H)?(y.clear(),!0):(m=H.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(y,"__cache",{get:function(){return E}}),y;function S(M){if(M.symbol&&M.moduleSymbol)return M;var H=M.id,V=M.exportKind,h=M.targetFlags,F=M.isFromPackageJson,$=M.moduleFileName,L=I.get(H)||e.emptyArray,P=L[0],N=L[1];if(P&&N)return{symbol:P,moduleSymbol:N,moduleFileName:$,exportKind:V,targetFlags:h,isFromPackageJson:F};var J=(F?oe.getPackageJsonAutoImportProvider():oe.getCurrentProgram()).getTypeChecker(),q=M.moduleSymbol||N||e.Debug.checkDefined(M.moduleFile?J.getMergedSymbol(M.moduleFile.symbol):J.tryFindAmbientModule(M.moduleName)),G=M.symbol||P||e.Debug.checkDefined(V===2?J.resolveExternalModuleSymbol(q):J.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(M.symbolTableKey),q),"Could not find symbol '".concat(M.symbolName,"' by key '").concat(M.symbolTableKey,"' in module ").concat(q.name));return I.set(H,[G,q]),{symbol:G,moduleSymbol:q,moduleFileName:$,exportKind:V,targetFlags:h,isFromPackageJson:F}}function k(M,H,V,h){var F=V||"";return"".concat(M,"|").concat(e.getSymbolId(e.skipAlias(H,h)),"|").concat(F)}function C(M){var H=M.substring(0,M.indexOf("|")),V=M.substring(M.lastIndexOf("|")+1),h=V===""?void 0:V;return{symbolName:H,ambientModuleName:h}}function me(M){return!M.commonJsModuleIndicator&&!M.externalModuleIndicator&&!M.moduleAugmentations&&!M.ambientModuleNames}function De(M,H){if(!e.arrayIsEqualTo(M.ambientModuleNames,H.ambientModuleNames))return!1;for(var V=-1,h=-1,F=function(J){var q=function(G){return e.isNonGlobalAmbientModule(G)&&G.name.text===J};if(V=e.findIndex(M.statements,q,V+1),h=e.findIndex(H.statements,q,h+1),M.statements[V]!==H.statements[h])return{value:!1}},$=0,L=H.ambientModuleNames;$<L.length;$++){var P=L[$],N=F(P);if(typeof N=="object")return N.value}return!0}function X(M,H){if(!H||!M.moduleFileName)return!0;var V=oe.getGlobalTypingsCacheLocation();if(V&&e.startsWith(M.moduleFileName,V))return!0;var h=f.get(H);return!h||e.startsWith(M.moduleFileName,h)}}e.createCacheableExportInfoMap=K;function se(oe,ae,E,I,f,m,y){var S;if(ae===E)return!1;var k=y==null?void 0:y.get(ae.path,E.path,I,{});if((k==null?void 0:k.isBlockedByPackageJsonDependencies)!==void 0)return!k.isBlockedByPackageJsonDependencies;var C=e.hostGetCanonicalFileName(m),me=(S=m.getGlobalTypingsCacheLocation)===null||S===void 0?void 0:S.call(m),De=!!e.moduleSpecifiers.forEachFileNameOfModule(ae.fileName,E.fileName,m,!1,function(M){var H=oe.getSourceFile(M);return(H===E||!H)&&O(ae.fileName,M,C,me)});if(f){var X=De&&f.allowsImportingSourceFile(E,m);return y==null||y.setBlockedByPackageJsonDependencies(ae.path,E.path,I,{},!X),X}return De}e.isImportableFile=se;function O(oe,ae,E,I){var f=e.forEachAncestorDirectory(ae,function(y){return e.getBaseFileName(y)==="node_modules"?y:void 0}),m=f&&e.getDirectoryPath(E(f));return m===void 0||e.startsWith(E(oe),m)||!!I&&e.startsWith(E(I),m)}function ie(oe,ae,E,I,f){var m,y,S=e.hostUsesCaseSensitiveFileNames(ae),k=E.autoImportFileExcludePatterns&&e.mapDefined(E.autoImportFileExcludePatterns,function(De){var X=e.getPatternFromSpec(De,"","exclude");return X?e.getRegexFromPattern(X,S):void 0});_e(oe.getTypeChecker(),oe.getSourceFiles(),k,function(De,X){return f(De,X,oe,!1)});var C=I&&((m=ae.getPackageJsonAutoImportProvider)===null||m===void 0?void 0:m.call(ae));if(C){var me=e.timestamp();_e(C.getTypeChecker(),C.getSourceFiles(),k,function(De,X){return f(De,X,C,!0)}),(y=ae.log)===null||y===void 0||y.call(ae,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-me))}}e.forEachExternalModuleToImportFrom=ie;function _e(oe,ae,E,I){for(var f,m=function(X){return E==null?void 0:E.some(function(M){return M.test(X)})},y=0,S=oe.getAmbientModules();y<S.length;y++){var k=S[y];!e.stringContains(k.name,"*")&&!(E&&((f=k.declarations)===null||f===void 0?void 0:f.every(function(X){return m(X.getSourceFile().fileName)})))&&I(k,void 0)}for(var C=0,me=ae;C<me.length;C++){var De=me[C];e.isExternalOrCommonJsModule(De)&&!m(De.fileName)&&I(oe.getMergedSymbol(De.symbol),De)}}function Q(oe,ae,E,I,f){var m,y,S,k,C,me=e.timestamp();(m=ae.getPackageJsonAutoImportProvider)===null||m===void 0||m.call(ae);var De=((y=ae.getCachedExportInfoMap)===null||y===void 0?void 0:y.call(ae))||K({getCurrentProgram:function(){return E},getPackageJsonAutoImportProvider:function(){var H;return(H=ae.getPackageJsonAutoImportProvider)===null||H===void 0?void 0:H.call(ae)},getGlobalTypingsCacheLocation:function(){var H;return(H=ae.getGlobalTypingsCacheLocation)===null||H===void 0?void 0:H.call(ae)}});if(De.isUsableByFile(oe.path))return(S=ae.log)===null||S===void 0||S.call(ae,"getExportInfoMap: cache hit"),De;(k=ae.log)===null||k===void 0||k.call(ae,"getExportInfoMap: cache miss or empty; calculating new results");var X=E.getCompilerOptions(),M=0;try{ie(E,ae,I,!0,function(H,V,h,F){++M%100==0&&(f==null||f.throwIfCancellationRequested());var $=new e.Map,L=h.getTypeChecker(),P=p(H,L,X);P&&D(P.symbol,L)&&De.add(oe.path,P.symbol,P.exportKind===1?"default":"export=",H,V,P.exportKind,F,L),L.forEachExportAndPropertyOfModule(H,function(N,J){N!==(P==null?void 0:P.symbol)&&D(N,L)&&e.addToSeen($,J)&&De.add(oe.path,N,J,H,V,0,F,L)})})}catch(H){throw De.clear(),H}return(C=ae.log)===null||C===void 0||C.call(ae,"getExportInfoMap: done in ".concat(e.timestamp()-me," ms")),De}e.getExportInfoMap=Q;function p(oe,ae,E){var I=le(oe,ae);if(!!I){var f=I.symbol,m=I.exportKind,y=de(f,ae,E);return y&&vi({symbol:f,exportKind:m},y)}}e.getDefaultLikeExportInfo=p;function D(oe,ae){return!ae.isUndefinedSymbol(oe)&&!ae.isUnknownSymbol(oe)&&!e.isKnownSymbol(oe)&&!e.isPrivateIdentifierSymbol(oe)}function le(oe,ae){var E=ae.resolveExternalModuleSymbol(oe);if(E!==oe)return{symbol:E,exportKind:2};var I=ae.tryGetMemberInModuleExports("default",oe);if(I)return{symbol:I,exportKind:1}}function de(oe,ae,E){var I=e.getLocalSymbolForExportDefault(oe);if(I)return{symbolForMeaning:I,name:I.name};var f=te(oe);if(f!==void 0)return{symbolForMeaning:oe,name:f};if(oe.flags&2097152){var m=ae.getImmediateAliasedSymbol(oe);if(m&&m.parent)return de(m,ae,E)}return oe.escapedName!=="default"&&oe.escapedName!=="export="?{symbolForMeaning:oe,name:oe.getName()}:{symbolForMeaning:oe,name:e.getNameForExportedSymbol(oe,E.target)}}function te(oe){return oe.declarations&&e.firstDefined(oe.declarations,function(ae){var E;if(e.isExportAssignment(ae))return(E=e.tryCast(e.skipOuterExpressions(ae.expression),e.isIdentifier))===null||E===void 0?void 0:E.text;if(e.isExportSpecifier(ae))return e.Debug.assert(ae.name.text==="default","Expected the specifier to be a default export"),ae.propertyName&&ae.propertyName.text})}})(fr||(fr={}));var fr;(function(e){function o(){var S=e.createScanner(99,!1);function k(me,De,X){return O(C(me,De,X),me)}function C(me,De,X){var M=0,H=0,V=[],h=Q(De),F=h.prefix,$=h.pushTemplate;me=F+me;var L=F.length;$&&V.push(15),S.setText(me);var P=0,N=[],J=0;do{M=S.scan(),e.isTrivia(M)||(ye(),H=M);var q=S.getTextPos();if(se(S.getTokenPos(),q,L,le(M),N),q>=me.length){var G=K(S,M,e.lastOrUndefined(V));G!==void 0&&(P=G)}}while(M!==1);function ye(){switch(M){case 43:case 68:!ne[H]&&S.reScanSlashToken()===13&&(M=13);break;case 29:H===79&&J++;break;case 31:J>0&&J--;break;case 131:case 152:case 148:case 134:case 153:J>0&&!X&&(M=79);break;case 15:V.push(M);break;case 18:V.length>0&&V.push(M);break;case 19:if(V.length>0){var b=e.lastOrUndefined(V);b===15?(M=S.reScanTemplateToken(!1),M===17?V.pop():e.Debug.assertEqual(M,16,"Should have been a template middle.")):(e.Debug.assertEqual(b,18,"Should have been an open brace"),V.pop())}break;default:if(!e.isKeyword(M))break;(H===24||e.isKeyword(H)&&e.isKeyword(M)&&!_e(H,M))&&(M=79)}}return{endOfLineState:P,spans:N}}return{getClassificationsForLine:k,getEncodedLexicalClassifications:C}}e.createClassifier=o;var ne=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(S){return S},function(){return!0});function K(S,k,C){switch(k){case 10:{if(!S.isUnterminated())return;for(var me=S.getTokenText(),De=me.length-1,X=0;me.charCodeAt(De-X)===92;)X++;return(X&1)==0?void 0:me.charCodeAt(0)===34?3:2}case 3:return S.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(k)){if(!S.isUnterminated())return;switch(k){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+k)}}return C===15?6:void 0}}function se(S,k,C,me,De){if(me!==8){S===0&&C>0&&(S+=C);var X=k-S;X>0&&De.push(S-C,X,me)}}function O(S,k){for(var C=[],me=S.spans,De=0,X=0;X<me.length;X+=3){var M=me[X],H=me[X+1],V=me[X+2];if(De>=0){var h=M-De;h>0&&C.push({length:h,classification:e.TokenClass.Whitespace})}C.push({length:H,classification:ie(V)}),De=M+H}var F=k.length-De;return F>0&&C.push({length:F,classification:e.TokenClass.Whitespace}),{entries:C,finalLexState:S.endOfLineState}}function ie(S){switch(S){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function _e(S,k){if(!e.isAccessibilityModifier(S))return!0;switch(k){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function Q(S){switch(S){case 3:return{prefix:`"\\
  259. `};case 2:return{prefix:`'\\
  260. `};case 1:return{prefix:`/*
  261. `};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
  262. `,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(S)}}function p(S){switch(S){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function D(S){switch(S){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function le(S){if(e.isKeyword(S))return 3;if(p(S)||D(S))return 5;if(S>=18&&S<=78)return 10;switch(S){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(S)?6:2}}function de(S,k,C,me,De){return f(oe(S,k,C,me,De))}e.getSemanticClassifications=de;function te(S,k){switch(k){case 264:case 260:case 261:case 259:case 228:case 215:case 216:S.throwIfCancellationRequested()}}function oe(S,k,C,me,De){var X=[];return C.forEachChild(function H(V){if(!(!V||!e.textSpanIntersectsWith(De,V.pos,V.getFullWidth()))){if(te(k,V.kind),e.isIdentifier(V)&&!e.nodeIsMissing(V)&&me.has(V.escapedText)){var h=S.getSymbolAtLocation(V),F=h&&ae(h,e.getMeaningFromLocation(V),S);F&&M(V.getStart(C),V.getEnd(),F)}V.forEachChild(H)}}),{spans:X,endOfLineState:0};function M(H,V,h){var F=V-H;e.Debug.assert(F>0,"Classification had non-positive length of ".concat(F)),X.push(H),X.push(F),X.push(h)}}e.getEncodedSemanticClassifications=oe;function ae(S,k,C){var me=S.getFlags();if((me&2885600)!=0)return me&32?11:me&384?12:me&524288?16:me&1536?k&4||k&1&&E(S)?14:void 0:me&2097152?ae(C.getAliasedSymbol(S),k,C):k&2?me&64?13:me&262144?15:void 0:void 0}function E(S){return e.some(S.declarations,function(k){return e.isModuleDeclaration(k)&&e.getModuleInstanceState(k)===1})}function I(S){switch(S){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 f(S){e.Debug.assert(S.spans.length%3==0);for(var k=S.spans,C=[],me=0;me<k.length;me+=3)C.push({textSpan:e.createTextSpan(k[me],k[me+1]),classificationType:I(k[me+2])});return C}function m(S,k,C){return f(y(S,k,C))}e.getSyntacticClassifications=m;function y(S,k,C){var me=C.start,De=C.length,X=e.createScanner(99,!1,k.languageVariant,k.text),M=e.createScanner(99,!1,k.languageVariant,k.text),H=[];return x(k),{spans:H,endOfLineState:0};function V(T,Z,B){H.push(T),H.push(Z),H.push(B)}function h(T){for(X.setTextPos(T.pos);;){var Z=X.getTextPos();if(!e.couldStartTrivia(k.text,Z))return Z;var B=X.scan(),u=X.getTextPos(),A=u-Z;if(!e.isTrivia(B))return Z;switch(B){case 4:case 5:continue;case 2:case 3:F(T,B,Z,A),X.setTextPos(u);continue;case 7:var w=k.text,z=w.charCodeAt(Z);if(z===60||z===62){V(Z,A,1);continue}e.Debug.assert(z===124||z===61),J(w,Z,u);break;case 6:break;default:e.Debug.assertNever(B)}}}function F(T,Z,B,u){if(Z===3){var A=e.parseIsolatedJSDocComment(k.text,B,u);if(A&&A.jsDoc){e.setParent(A.jsDoc,T),L(A.jsDoc);return}}else if(Z===2&&P(B,u))return;$(B,u)}function $(T,Z){V(T,Z,1)}function L(T){var Z,B,u,A,w,z,U,ge=T.pos;if(T.tags)for(var pe=0,He=T.tags;pe<He.length;pe++){var Be=He[pe];Be.pos!==ge&&$(ge,Be.pos-ge),V(Be.pos,1,10),V(Be.tagName.pos,Be.tagName.end-Be.tagName.pos,18),ge=Be.tagName.end;var Me=Be.tagName.end;switch(Be.kind){case 343:var Le=Be;Ne(Le),Me=Le.isNameFirst&&((Z=Le.typeExpression)===null||Z===void 0?void 0:Z.end)||Le.name.end;break;case 350:var Ae=Be;Me=Ae.isNameFirst&&((B=Ae.typeExpression)===null||B===void 0?void 0:B.end)||Ae.name.end;break;case 347:N(Be),ge=Be.end,Me=Be.typeParameters.end;break;case 348:var Xe=Be;Me=((u=Xe.typeExpression)===null||u===void 0?void 0:u.kind)===312&&((A=Xe.fullName)===null||A===void 0?void 0:A.end)||((w=Xe.typeExpression)===null||w===void 0?void 0:w.end)||Me;break;case 341:Me=Be.typeExpression.end;break;case 346:x(Be.typeExpression),ge=Be.end,Me=Be.typeExpression.end;break;case 345:case 342:Me=Be.typeExpression.end;break;case 344:x(Be.typeExpression),ge=Be.end,Me=((z=Be.typeExpression)===null||z===void 0?void 0:z.end)||Me;break;case 349:Me=((U=Be.name)===null||U===void 0?void 0:U.end)||Me;break;case 331:case 332:Me=Be.class.end;break}typeof Be.comment=="object"?$(Be.comment.pos,Be.comment.end-Be.comment.pos):typeof Be.comment=="string"&&$(Me,Be.end-Me)}ge!==T.end&&$(ge,T.end-ge);return;function Ne(Oe){Oe.isNameFirst&&($(ge,Oe.name.pos-ge),V(Oe.name.pos,Oe.name.end-Oe.name.pos,17),ge=Oe.name.end),Oe.typeExpression&&($(ge,Oe.typeExpression.pos-ge),x(Oe.typeExpression),ge=Oe.typeExpression.end),Oe.isNameFirst||($(ge,Oe.name.pos-ge),V(Oe.name.pos,Oe.name.end-Oe.name.pos,17),ge=Oe.name.end)}}function P(T,Z){var B=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,u=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,A=k.text.substr(T,Z),w=B.exec(A);if(!w||!w[3]||!(w[3]in e.commentPragmas))return!1;var z=T;$(z,w[1].length),z+=w[1].length,V(z,w[2].length,10),z+=w[2].length,V(z,w[3].length,21),z+=w[3].length;for(var U=w[4],ge=z;;){var pe=u.exec(U);if(!pe)break;var He=z+pe.index+pe[1].length;He>ge&&($(ge,He-ge),ge=He),V(ge,pe[2].length,22),ge+=pe[2].length,pe[3].length&&($(ge,pe[3].length),ge+=pe[3].length),V(ge,pe[4].length,5),ge+=pe[4].length,pe[5].length&&($(ge,pe[5].length),ge+=pe[5].length),V(ge,pe[6].length,24),ge+=pe[6].length}z+=w[4].length,z>ge&&$(ge,z-ge),w[5]&&(V(z,w[5].length,10),z+=w[5].length);var Be=T+Z;return z<Be&&$(z,Be-z),!0}function N(T){for(var Z=0,B=T.getChildren();Z<B.length;Z++){var u=B[Z];x(u)}}function J(T,Z,B){var u;for(u=Z;u<B&&!e.isLineBreak(T.charCodeAt(u));u++);for(V(Z,u-Z,1),M.setTextPos(u);M.getTextPos()<B;)q()}function q(){var T=M.getTextPos(),Z=M.scan(),B=M.getTextPos(),u=b(Z);u&&V(T,B-T,u)}function G(T){if(e.isJSDoc(T)||e.nodeIsMissing(T))return!0;var Z=ye(T);if(!e.isToken(T)&&T.kind!==11&&Z===void 0)return!1;var B=T.kind===11?T.pos:h(T),u=T.end-B;if(e.Debug.assert(u>=0),u>0){var A=Z||b(T.kind,T);A&&V(B,u,A)}return!0}function ye(T){switch(T.parent&&T.parent.kind){case 283:if(T.parent.tagName===T)return 19;break;case 284:if(T.parent.tagName===T)return 20;break;case 282:if(T.parent.tagName===T)return 21;break;case 288:if(T.parent.name===T)return 22;break}}function b(T,Z){if(e.isKeyword(T))return 3;if((T===29||T===31)&&Z&&e.getTypeArgumentOrTypeParameterList(Z.parent))return 10;if(e.isPunctuation(T)){if(Z){var B=Z.parent;if(T===63&&(B.kind===257||B.kind===169||B.kind===166||B.kind===288)||B.kind===223||B.kind===221||B.kind===222||B.kind===224)return 5}return 10}else{if(T===8)return 4;if(T===9)return 25;if(T===10)return Z&&Z.parent.kind===288?24:6;if(T===13)return 6;if(e.isTemplateLiteralKind(T))return 6;if(T===11)return 23;if(T===79){if(Z){switch(Z.parent.kind){case 260:return Z.parent.name===Z?11:void 0;case 165:return Z.parent.name===Z?15:void 0;case 261:return Z.parent.name===Z?13:void 0;case 263:return Z.parent.name===Z?12:void 0;case 264:return Z.parent.name===Z?14:void 0;case 166:return Z.parent.name===Z?e.isThisIdentifier(Z)?3:17:void 0}if(e.isConstTypeReference(Z.parent))return 3}return 2}}}function x(T){if(!!T&&e.decodedTextSpanIntersectsWith(me,De,T.pos,T.getFullWidth())){te(S,T.kind);for(var Z=0,B=T.getChildren(k);Z<B.length;Z++){var u=B[Z];G(u)||x(u)}}}}e.getEncodedSyntacticClassifications=y})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O;(function(y){y[y.typeOffset=8]="typeOffset",y[y.modifierMask=255]="modifierMask"})(O=se.TokenEncodingConsts||(se.TokenEncodingConsts={}));var ie;(function(y){y[y.class=0]="class",y[y.enum=1]="enum",y[y.interface=2]="interface",y[y.namespace=3]="namespace",y[y.typeParameter=4]="typeParameter",y[y.type=5]="type",y[y.parameter=6]="parameter",y[y.variable=7]="variable",y[y.enumMember=8]="enumMember",y[y.property=9]="property",y[y.function=10]="function",y[y.member=11]="member"})(ie=se.TokenType||(se.TokenType={}));var _e;(function(y){y[y.declaration=0]="declaration",y[y.static=1]="static",y[y.async=2]="async",y[y.readonly=3]="readonly",y[y.defaultLibrary=4]="defaultLibrary",y[y.local=5]="local"})(_e=se.TokenModifier||(se.TokenModifier={}));function Q(y,S,k,C){var me=p(y,S,k,C);e.Debug.assert(me.spans.length%3==0);for(var De=me.spans,X=[],M=0;M<De.length;M+=3)X.push({textSpan:e.createTextSpan(De[M],De[M+1]),classificationType:De[M+2]});return X}se.getSemanticClassifications=Q;function p(y,S,k,C){return{spans:D(y,k,C,S),endOfLineState:0}}se.getEncodedSemanticClassifications=p;function D(y,S,k,C){var me=[],De=function(X,M,H){me.push(X.getStart(S),X.getWidth(S),(M+1<<8)+H)};return y&&S&&le(y,S,k,De,C),me}function le(y,S,k,C,me){var De=y.getTypeChecker(),X=!1;function M(H){switch(H.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:me.throwIfCancellationRequested()}if(!(!H||!e.textSpanIntersectsWith(k,H.pos,H.getFullWidth())||H.getFullWidth()===0)){var V=X;if((e.isJsxElement(H)||e.isJsxSelfClosingElement(H))&&(X=!0),e.isJsxExpression(H)&&(X=!1),e.isIdentifier(H)&&!X&&!E(H)&&!e.isInfinityOrNaNString(H.escapedText)){var h=De.getSymbolAtLocation(H);if(h){h.flags&2097152&&(h=De.getAliasedSymbol(h));var F=de(h,e.getMeaningFromLocation(H));if(F!==void 0){var $=0;if(H.parent){var L=e.isBindingElement(H.parent)||m.get(H.parent.kind)===F;L&&H.parent.name===H&&($=1<<0)}F===6&&f(H)&&(F=9),F=te(De,H,F);var P=h.valueDeclaration;if(P){var N=e.getCombinedModifierFlags(P),J=e.getCombinedNodeFlags(P);N&32&&($|=1<<1),N&512&&($|=1<<2),F!==0&&F!==2&&(N&64||J&2||h.getFlags()&8)&&($|=1<<3),(F===7||F===10)&&oe(P,S)&&($|=1<<5),y.isSourceFileDefaultLibrary(P.getSourceFile())&&($|=1<<4)}else h.declarations&&h.declarations.some(function(q){return y.isSourceFileDefaultLibrary(q.getSourceFile())})&&($|=1<<4);C(H,F,$)}}}e.forEachChild(H,M),X=V}}M(S)}function de(y,S){var k=y.getFlags();if(k&32)return 0;if(k&384)return 1;if(k&524288)return 5;if(k&64){if(S&2)return 2}else if(k&262144)return 4;var C=y.valueDeclaration||y.declarations&&y.declarations[0];return C&&e.isBindingElement(C)&&(C=ae(C)),C&&m.get(C.kind)}function te(y,S,k){if(k===7||k===9||k===6){var C=y.getTypeAtLocation(S);if(C){var me=function(De){return De(C)||C.isUnion()&&C.types.some(De)};if(k!==6&&me(function(De){return De.getConstructSignatures().length>0}))return 0;if(me(function(De){return De.getCallSignatures().length>0})&&!me(function(De){return De.getProperties().length>0})||I(S))return k===9?11:10}}return k}function oe(y,S){return e.isBindingElement(y)&&(y=ae(y)),e.isVariableDeclaration(y)?(!e.isSourceFile(y.parent.parent.parent)||e.isCatchClause(y.parent))&&y.getSourceFile()===S:e.isFunctionDeclaration(y)?!e.isSourceFile(y.parent)&&y.getSourceFile()===S:!1}function ae(y){for(;;)if(e.isBindingElement(y.parent.parent))y=y.parent.parent;else return y.parent.parent}function E(y){var S=y.parent;return S&&(e.isImportClause(S)||e.isImportSpecifier(S)||e.isNamespaceImport(S))}function I(y){for(;f(y);)y=y.parent;return e.isCallExpression(y.parent)&&y.parent.expression===y}function f(y){return e.isQualifiedName(y.parent)&&y.parent.right===y||e.isPropertyAccessExpression(y.parent)&&y.parent.name===y}var m=new e.Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])})(K=ne.v2020||(ne.v2020={}))})(o=e.classifier||(e.classifier={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O,ie=(O={},O.directory=0,O.script=1,O["external module name"]=2,O);function _e(){var Ae=new e.Map;function Xe(Ne){var Oe=Ae.get(Ne.name);(!Oe||ie[Oe.kind]<ie[Ne.kind])&&Ae.set(Ne.name,Ne)}return{add:Xe,has:Ae.has.bind(Ae),values:Ae.values.bind(Ae)}}function Q(Ae,Xe,Ne,Oe,be,Y,d,j){if(e.isInReferenceComment(Ae,Xe)){var Ce=w(Ae,Xe,Oe,be);return Ce&&de(Ce)}if(e.isInString(Ae,Xe,Ne)){if(!Ne||!e.isStringLiteralLike(Ne))return;var Ce=ae(Ae,Ne,Xe,Y.getTypeChecker(),Oe,be,j);return p(Ce,Ne,Ae,be,Y,d,Oe,j)}}se.getStringLiteralCompletions=Q;function p(Ae,Xe,Ne,Oe,be,Y,d,j){if(Ae!==void 0){var Ce=e.createTextSpanFromStringLiteralLikeContent(Xe);switch(Ae.kind){case 0:return de(Ae.paths);case 1:{var Se=e.createSortedArray();return ne.getCompletionEntriesFromSymbols(Ae.symbols,Se,Xe,Xe,Ne,Ne,Oe,be,99,Y,4,j,d,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:Ae.hasIndexSignature,optionalReplacementSpan:Ce,entries:Se}}case 2:{var Se=Ae.types.map(function(er){return{name:er.value,kindModifiers:"",kind:"string",sortText:ne.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(Xe)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:Ae.isNewIdentifier,optionalReplacementSpan:Ce,entries:Se}}default:return e.Debug.assertNever(Ae)}}}function D(Ae,Xe,Ne,Oe,be,Y,d,j,Ce){if(!(!Oe||!e.isStringLiteralLike(Oe))){var Se=ae(Xe,Oe,Ne,be,Y,d,Ce);return Se&&le(Ae,Oe,Se,Xe,be,j)}}se.getStringLiteralCompletionDetails=D;function le(Ae,Xe,Ne,Oe,be,Y){switch(Ne.kind){case 0:{var d=e.find(Ne.paths,function(j){return j.name===Ae});return d&&ne.createCompletionDetails(Ae,te(d.extension),d.kind,[e.textPart(Ae)])}case 1:{var d=e.find(Ne.symbols,function(Ce){return Ce.name===Ae});return d&&ne.createCompletionDetailsForSymbol(d,be,Oe,Xe,Y)}case 2:return e.find(Ne.types,function(j){return j.value===Ae})?ne.createCompletionDetails(Ae,"","type",[e.textPart(Ae)]):void 0;default:return e.Debug.assertNever(Ne)}}function de(Ae){var Xe=!1,Ne=!0,Oe=Ae.map(function(be){var Y=be.name,d=be.kind,j=be.span,Ce=be.extension;return{name:Y,kind:d,kindModifiers:te(Ce),sortText:ne.SortText.LocationPriority,replacementSpan:j}});return{isGlobalCompletion:Xe,isMemberCompletion:!1,isNewIdentifierLocation:Ne,entries:Oe}}function te(Ae){switch(Ae){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.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(Ae)}}var oe;(function(Ae){Ae[Ae.Paths=0]="Paths",Ae[Ae.Properties=1]="Properties",Ae[Ae.Types=2]="Types"})(oe||(oe={}));function ae(Ae,Xe,Ne,Oe,be,Y,d){var j=E(Xe.parent);switch(j.kind){case 198:{var Ce=E(j.parent);switch(Ce.kind){case 230:case 180:{var Se=e.findAncestor(j,function(kr){return kr.parent===Ce});return Se?{kind:2,types:S(Oe.getTypeArgumentConstraint(Se)),isNewIdentifier:!1}:void 0}case 196:var Re=Ce,er=Re.indexType,wr=Re.objectType;return e.rangeContainsPosition(er,Ne)?m(Oe.getTypeFromTypeNode(wr)):void 0;case 202:return{kind:0,paths:De(Ae,Xe,be,Y,Oe,d)};case 189:{if(!e.isTypeReferenceNode(Ce.parent))return;var mr=I(Ce,j),Ue=S(Oe.getTypeArgumentConstraint(Ce)).filter(function(kr){return!e.contains(mr,kr.value)});return{kind:2,types:Ue,isNewIdentifier:!1}}default:return}}case 299:return e.isObjectLiteralExpression(j.parent)&&j.name===Xe?y(Oe,j.parent):vr();case 209:{var t=j,qr=t.expression,ln=t.argumentExpression;return Xe===e.skipParentheses(ln)?m(Oe.getTypeAtLocation(qr)):void 0}case 210:case 211:case 288:if(!Le(Xe)&&!e.isImportCall(j)){var dr=e.SignatureHelp.getArgumentInfoForCompletions(j.kind===288?j.parent:Xe,Ne,Ae);return dr&&f(dr.invocation,Xe,dr,Oe)||vr()}case 269:case 275:case 280:return{kind:0,paths:De(Ae,Xe,be,Y,Oe,d)};default:return vr()}function vr(){return{kind:2,types:S(e.getContextualTypeFromParent(Xe,Oe)),isNewIdentifier:!1}}}function E(Ae){switch(Ae.kind){case 193:return e.walkUpParenthesizedTypes(Ae);case 214:return e.walkUpParenthesizedExpressions(Ae);default:return Ae}}function I(Ae,Xe){return e.mapDefined(Ae.types,function(Ne){return Ne!==Xe&&e.isLiteralTypeNode(Ne)&&e.isStringLiteral(Ne.literal)?Ne.literal.text:void 0})}function f(Ae,Xe,Ne,Oe){var be=!1,Y=new e.Map,d=[],j=e.isJsxOpeningLikeElement(Ae)?e.Debug.checkDefined(e.findAncestor(Xe.parent,e.isJsxAttribute)):Xe;Oe.getResolvedSignatureForStringLiteralCompletions(Ae,j,d);var Ce=e.flatMap(d,function(Se){if(!(!e.signatureHasRestParameter(Se)&&Ne.argumentCount>Se.parameters.length)){var Re=Se.getTypeParameterAtPosition(Ne.argumentIndex);if(e.isJsxOpeningLikeElement(Ae)){var er=Oe.getTypeOfPropertyOfType(Re,j.name.text);er&&(Re=er)}return be=be||!!(Re.flags&4),S(Re,Y)}});return e.length(Ce)?{kind:2,types:Ce,isNewIdentifier:be}:void 0}function m(Ae){return Ae&&{kind:1,symbols:e.filter(Ae.getApparentProperties(),function(Xe){return!(Xe.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Xe.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(Ae)}}function y(Ae,Xe){var Ne=Ae.getContextualType(Xe);if(!!Ne){var Oe=Ae.getContextualType(Xe,4),be=ne.getPropertiesForObjectExpression(Ne,Oe,Xe,Ae);return{kind:1,symbols:be,hasIndexSignature:e.hasIndexSignature(Ne)}}}function S(Ae,Xe){return Xe===void 0&&(Xe=new e.Map),Ae?(Ae=e.skipConstraint(Ae),Ae.isUnion()?e.flatMap(Ae.types,function(Ne){return S(Ne,Xe)}):Ae.isStringLiteral()&&!(Ae.flags&1024)&&e.addToSeen(Xe,Ae.value)?[Ae]:e.emptyArray):e.emptyArray}function k(Ae,Xe,Ne){return{name:Ae,kind:Xe,extension:Ne}}function C(Ae){return k(Ae,"directory",void 0)}function me(Ae,Xe,Ne){var Oe=ge(Ae,Xe),be=Ae.length===0?void 0:e.createTextSpan(Xe,Ae.length);return Ne.map(function(Y){var d=Y.name,j=Y.kind,Ce=Y.extension;return Math.max(d.indexOf(e.directorySeparator),d.indexOf(e.altDirectorySeparator))!==-1?{name:d,kind:j,extension:Ce,span:be}:{name:d,kind:j,extension:Ce,span:Oe}})}function De(Ae,Xe,Ne,Oe,be,Y){return me(Xe.text,Xe.getStart(Ae)+1,X(Ae,Xe,Ne,Oe,be,Y))}function X(Ae,Xe,Ne,Oe,be,Y){var d=e.normalizeSlashes(Xe.text),j=e.isStringLiteralLike(Xe)?e.getModeForUsageLocation(Ae,Xe):void 0,Ce=Ae.path,Se=e.getDirectoryPath(Ce);return pe(d)||!Ne.baseUrl&&(e.isRootedDiskPath(d)||e.isUrl(d))?H(d,Se,Ne,Oe,Ce,Re()):ye(d,Se,j,Ne,Oe,Re(),be);function Re(){var er=e.isStringLiteralLike(Xe)?e.getModeForUsageLocation(Ae,Xe):void 0;return Y.importModuleSpecifierEnding==="js"||er===e.ModuleKind.ESNext?2:0}}function M(Ae,Xe){return Xe===void 0&&(Xe=0),{extensions:e.flatten(F(Ae)),includeExtensionsOption:Xe}}function H(Ae,Xe,Ne,Oe,be,Y){var d=M(Ne,Y);return Ne.rootDirs?L(Ne.rootDirs,Ae,Xe,d,Ne,Oe,be):e.arrayFrom(N(Ae,Xe,d,Oe,be).values())}function V(Ae){return e.getEmitModuleResolutionKind(Ae)===e.ModuleResolutionKind.NodeJs||e.getEmitModuleResolutionKind(Ae)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Ae)===e.ModuleResolutionKind.NodeNext}function h(Ae){return e.getEmitModuleResolutionKind(Ae)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Ae)===e.ModuleResolutionKind.NodeNext}function F(Ae){var Xe=e.getSupportedExtensions(Ae);return V(Ae)?e.getSupportedExtensionsWithJsonIfResolveJsonModule(Ae,Xe):Xe}function $(Ae,Xe,Ne,Oe){Ae=Ae.map(function(Y){return e.normalizePath(e.isRootedDiskPath(Y)?Y:e.combinePaths(Xe,Y))});var be=e.firstDefined(Ae,function(Y){return e.containsPath(Y,Ne,Xe,Oe)?Ne.substr(Y.length):void 0});return e.deduplicate(zn(zn([],Ae.map(function(Y){return e.combinePaths(Y,be)}),!0),[Ne],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function L(Ae,Xe,Ne,Oe,be,Y,d){var j=be.project||Y.getCurrentDirectory(),Ce=!(Y.useCaseSensitiveFileNames&&Y.useCaseSensitiveFileNames()),Se=$(Ae,j,Ne,Ce);return e.flatMap(Se,function(Re){return e.arrayFrom(N(Xe,Re,Oe,Y,d).values())})}var P;(function(Ae){Ae[Ae.Exclude=0]="Exclude",Ae[Ae.Include=1]="Include",Ae[Ae.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(P||(P={}));function N(Ae,Xe,Ne,Oe,be,Y){var d;Y===void 0&&(Y=_e()),Ae===void 0&&(Ae=""),Ae=e.normalizeSlashes(Ae),e.hasTrailingDirectorySeparator(Ae)||(Ae=e.getDirectoryPath(Ae)),Ae===""&&(Ae="."+e.directorySeparator),Ae=e.ensureTrailingDirectorySeparator(Ae);var j=e.resolvePath(Xe,Ae),Ce=e.hasTrailingDirectorySeparator(j)?j:e.getDirectoryPath(j),Se=e.findPackageJson(Ce,Oe);if(Se){var Re=e.readJson(Se,Oe),er=Re.typesVersions;if(typeof er=="object"){var wr=(d=e.getPackageJsonTypesVersionsPaths(er))===null||d===void 0?void 0:d.paths;if(wr){var mr=e.getDirectoryPath(Se),Ue=j.slice(e.ensureTrailingDirectorySeparator(mr).length);if(q(Y,Ue,mr,Ne,Oe,wr))return Y}}}var t=!(Oe.useCaseSensitiveFileNames&&Oe.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Oe,Ce))return Y;var qr=e.tryReadDirectory(Oe,Ce,Ne.extensions,void 0,["./*"]);if(qr)for(var ln=0,dr=qr;ln<dr.length;ln++){var vr=dr[ln];if(vr=e.normalizePath(vr),!(be&&e.comparePaths(vr,be,Xe,t)===0)){var kr=J(e.getBaseFileName(vr),Oe.getCompilationSettings(),Ne.includeExtensionsOption),Ur=kr.name,Cr=kr.extension;Y.add(k(Ur,"script",Cr))}}var rn=e.tryGetDirectories(Oe,Ce);if(rn)for(var Br=0,pn=rn;Br<pn.length;Br++){var ve=pn[Br],or=e.getBaseFileName(e.normalizePath(ve));or!=="@types"&&Y.add(C(or))}return Y}function J(Ae,Xe,Ne){var Oe=e.moduleSpecifiers.tryGetJSExtensionForFile(Ae,Xe);return Ne===0&&!e.fileExtensionIsOneOf(Ae,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?{name:e.removeFileExtension(Ae),extension:e.tryGetExtensionFromPath(Ae)}:(e.fileExtensionIsOneOf(Ae,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||Ne===2)&&Oe?{name:e.changeExtension(Ae,Oe),extension:Oe}:{name:Ae,extension:e.tryGetExtensionFromPath(Ae)}}function q(Ae,Xe,Ne,Oe,be,Y){var d=function(Ce){return Y[Ce]},j=function(Ce,Se){var Re=e.tryParsePattern(Ce),er=e.tryParsePattern(Se),wr=typeof Re=="object"?Re.prefix.length:Ce.length,mr=typeof er=="object"?er.prefix.length:Se.length;return e.compareValues(mr,wr)};return G(Ae,Xe,Ne,Oe,be,e.getOwnKeys(Y),d,j)}function G(Ae,Xe,Ne,Oe,be,Y,d,j){for(var Ce=[],Se,Re=0,er=Y;Re<er.length;Re++){var wr=er[Re];if(wr!=="."){var mr=wr.replace(/^\.\//,""),Ue=d(wr);if(Ue){var t=e.tryParsePattern(mr);if(!t)continue;var qr=typeof t=="object"&&e.isPatternMatch(t,Xe),ln=qr&&(Se===void 0||j(wr,Se)===-1);ln&&(Se=wr,Ce=Ce.filter(function(dr){return!dr.matchedPattern})),(typeof t=="string"||Se===void 0||j(wr,Se)!==1)&&Ce.push({matchedPattern:qr,results:T(mr,Ue,Xe,Ne,Oe,be).map(function(dr){var vr=dr.name,kr=dr.kind,Ur=dr.extension;return k(vr,kr,Ur)})})}}}return Ce.forEach(function(dr){return dr.results.forEach(function(vr){return Ae.add(vr)})}),Se!==void 0}function ye(Ae,Xe,Ne,Oe,be,Y,d){var j=Oe.baseUrl,Ce=Oe.paths,Se=_e(),Re=M(Oe,Y);if(j){var er=Oe.project||be.getCurrentDirectory(),wr=e.normalizePath(e.combinePaths(er,j));N(Ae,wr,Re,be,void 0,Se),Ce&&q(Se,Ae,wr,Re,be,Ce)}for(var mr=x(Ae),Ue=0,t=A(Ae,mr,d);Ue<t.length;Ue++){var qr=t[Ue];Se.add(k(qr,"external module name",void 0))}if(z(be,Oe,Xe,mr,Re,Se),V(Oe)){var ln=!1;if(mr===void 0)for(var dr=0,vr=U(be,Xe);dr<vr.length;dr++){var kr=vr[dr],Ur=k(kr,"external module name",void 0);Se.has(Ur.name)||(ln=!0,Se.add(Ur))}if(!ln){var Cr=function(Br){var pn=e.combinePaths(Br,"node_modules");e.tryDirectoryExists(be,pn)&&N(Ae,pn,Re,be,void 0,Se)};if(mr&&h(Oe)){var rn=Cr;Cr=function(Br){var pn=e.getPathComponents(Ae);pn.shift();var ve=pn.shift();if(!ve)return rn(Br);if(e.startsWith(ve,"@")){var or=pn.shift();if(!or)return rn(Br);ve=e.combinePaths(ve,or)}var Ee=e.combinePaths(Br,"node_modules",ve),ze=e.combinePaths(Ee,"package.json");if(e.tryFileExists(be,ze)){var Ar=e.readJson(ze,be),xe=Ar.exports;if(xe){if(typeof xe!="object"||xe===null)return;var cr=e.getOwnKeys(xe),Mr=pn.join("/")+(pn.length&&e.hasTrailingDirectorySeparator(Ae)?"/":""),Rr=Ne===e.ModuleKind.ESNext?["node","import","types"]:["node","require","types"];G(Se,Mr,Ee,Re,be,cr,function(Qr){return e.singleElementArray(b(xe[Qr],Rr))},e.comparePatternKeys);return}}return rn(Br)}}e.forEachAncestorDirectory(Xe,Cr)}}return e.arrayFrom(Se.values())}function b(Ae,Xe){if(typeof Ae=="string")return Ae;if(Ae&&typeof Ae=="object"&&!e.isArray(Ae)){for(var Ne in Ae)if(Ne==="default"||Xe.indexOf(Ne)>-1||e.isApplicableVersionedTypesKey(Xe,Ne)){var Oe=Ae[Ne];return b(Oe,Xe)}}}function x(Ae){return Me(Ae)?e.hasTrailingDirectorySeparator(Ae)?Ae:e.getDirectoryPath(Ae):void 0}function T(Ae,Xe,Ne,Oe,be,Y){if(!e.endsWith(Ae,"*"))return e.stringContains(Ae,"*")?e.emptyArray:Se(Ae,"script");var d=Ae.slice(0,Ae.length-1),j=e.tryRemovePrefix(Ne,d);if(j===void 0){var Ce=Ae[Ae.length-2]==="/";return Ce?Se(d,"directory"):e.flatMap(Xe,function(Re){var er;return(er=Z("",Oe,Re,be,Y))===null||er===void 0?void 0:er.map(function(wr){var mr=wr.name,Ue=Mm(wr,["name"]);return vi({name:d+mr},Ue)})})}return e.flatMap(Xe,function(Re){return Z(j,Oe,Re,be,Y)});function Se(Re,er){return e.startsWith(Re,Ne)?[{name:e.removeTrailingDirectorySeparator(Re),kind:er,extension:void 0}]:e.emptyArray}}function Z(Ae,Xe,Ne,Oe,be){if(!be.readDirectory)return;var Y=e.tryParsePattern(Ne);if(Y===void 0||e.isString(Y))return;var d=e.resolvePath(Y.prefix),j=e.hasTrailingDirectorySeparator(Y.prefix)?d:e.getDirectoryPath(d),Ce=e.hasTrailingDirectorySeparator(Y.prefix)?"":e.getBaseFileName(d),Se=Me(Ae),Re=Se?e.hasTrailingDirectorySeparator(Ae)?Ae:e.getDirectoryPath(Ae):void 0,er=Se?e.combinePaths(j,Ce+Re):j,wr=e.normalizePath(Y.suffix),mr=e.normalizePath(e.combinePaths(Xe,er)),Ue=Se?mr:e.ensureTrailingDirectorySeparator(mr)+Ce,t=wr?"**/*"+wr:"./*",qr=e.mapDefined(e.tryReadDirectory(be,mr,Oe.extensions,void 0,[t]),function(vr){var kr=dr(vr);if(kr){if(Me(kr))return C(e.getPathComponents(u(kr))[1]);var Ur=J(kr,be.getCompilationSettings(),Oe.includeExtensionsOption),Cr=Ur.name,rn=Ur.extension;return k(Cr,"script",rn)}}),ln=wr?e.emptyArray:e.mapDefined(e.tryGetDirectories(be,mr),function(vr){return vr==="node_modules"?void 0:C(vr)});return zn(zn([],qr,!0),ln,!0);function dr(vr){var kr=B(e.normalizePath(vr),Ue,wr);return kr===void 0?void 0:u(kr)}}function B(Ae,Xe,Ne){return e.startsWith(Ae,Xe)&&e.endsWith(Ae,Ne)?Ae.slice(Xe.length,Ae.length-Ne.length):void 0}function u(Ae){return Ae[0]===e.directorySeparator?Ae.slice(1):Ae}function A(Ae,Xe,Ne){var Oe=Ne.getAmbientModules().map(function(d){return e.stripQuotes(d.name)}),be=Oe.filter(function(d){return e.startsWith(d,Ae)});if(Xe!==void 0){var Y=e.ensureTrailingDirectorySeparator(Xe);return be.map(function(d){return e.removePrefix(d,Y)})}return be}function w(Ae,Xe,Ne,Oe){var be=e.getTokenAtPosition(Ae,Xe),Y=e.getLeadingCommentRanges(Ae.text,be.pos),d=Y&&e.find(Y,function(Ue){return Xe>=Ue.pos&&Xe<=Ue.end});if(!!d){var j=Ae.text.slice(d.pos,Xe),Ce=He.exec(j);if(!!Ce){var Se=Ce[1],Re=Ce[2],er=Ce[3],wr=e.getDirectoryPath(Ae.path),mr=Re==="path"?N(er,wr,M(Ne,1),Oe,Ae.path):Re==="types"?z(Oe,Ne,wr,x(er),M(Ne)):e.Debug.fail();return me(er,d.pos+Se.length,e.arrayFrom(mr.values()))}}}function z(Ae,Xe,Ne,Oe,be,Y){Y===void 0&&(Y=_e());for(var d=new e.Map,j=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(Xe,Ae)})||e.emptyArray,Ce=0,Se=j;Ce<Se.length;Ce++){var Re=Se[Ce];t(Re)}for(var er=0,wr=e.findPackageJsons(Ne,Ae);er<wr.length;er++){var mr=wr[er],Ue=e.combinePaths(e.getDirectoryPath(mr),"node_modules/@types");t(Ue)}return Y;function t(qr){if(!!e.tryDirectoryExists(Ae,qr))for(var ln=0,dr=e.tryGetDirectories(Ae,qr);ln<dr.length;ln++){var vr=dr[ln],kr=e.unmangleScopedPackageName(vr);if(!(Xe.types&&!e.contains(Xe.types,kr)))if(Oe===void 0)d.has(kr)||(Y.add(k(kr,"external module name",void 0)),d.set(kr,!0));else{var Ur=e.combinePaths(qr,vr),Cr=e.tryRemoveDirectoryPrefix(Oe,kr,e.hostGetCanonicalFileName(Ae));Cr!==void 0&&N(Cr,Ur,be,Ae,void 0,Y)}}}}function U(Ae,Xe){if(!Ae.readFile||!Ae.fileExists)return e.emptyArray;for(var Ne=[],Oe=0,be=e.findPackageJsons(Xe,Ae);Oe<be.length;Oe++)for(var Y=be[Oe],d=e.readJson(Y,Ae),j=0,Ce=Be;j<Ce.length;j++){var Se=Ce[j],Re=d[Se];if(!!Re)for(var er in Re)e.hasProperty(Re,er)&&!e.startsWith(er,"@types/")&&Ne.push(er)}return Ne}function ge(Ae,Xe){var Ne=Math.max(Ae.lastIndexOf(e.directorySeparator),Ae.lastIndexOf(e.altDirectorySeparator)),Oe=Ne!==-1?Ne+1:0,be=Ae.length-Oe;return be===0||e.isIdentifierText(Ae.substr(Oe,be),99)?void 0:e.createTextSpan(Xe+Oe,be)}function pe(Ae){if(Ae&&Ae.length>=2&&Ae.charCodeAt(0)===46){var Xe=Ae.length>=3&&Ae.charCodeAt(1)===46?2:1,Ne=Ae.charCodeAt(Xe);return Ne===47||Ne===92}return!1}var He=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,Be=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function Me(Ae){return e.stringContains(Ae,e.directorySeparator)}function Le(Ae){return e.isCallExpression(Ae.parent)&&e.firstOrUndefined(Ae.parent.arguments)===Ae&&e.isIdentifier(Ae.parent.expression)&&Ae.parent.expression.escapedText==="require"}})(K=ne.StringCompletions||(ne.StringCompletions={}))})(o=e.Completions||(e.Completions={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.moduleSpecifierResolutionLimit=100,ne.moduleSpecifierResolutionCacheAttemptLimit=1e3,ne.SortText={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:function(je){return"z"+je},ObjectLiteralProperty:function(je,Sr){return"".concat(je,"\0").concat(Sr,"\0")},SortBelow:function(je){return je+"1"}};var K;(function(je){je.ThisProperty="ThisProperty/",je.ClassMemberSnippet="ClassMemberSnippet/",je.TypeOnlyAlias="TypeOnlyAlias/",je.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/"})(K=ne.CompletionSource||(ne.CompletionSource={}));var se;(function(je){je[je.ThisType=1]="ThisType",je[je.SymbolMember=2]="SymbolMember",je[je.Export=4]="Export",je[je.Promise=8]="Promise",je[je.Nullable=16]="Nullable",je[je.ResolvedExport=32]="ResolvedExport",je[je.TypeOnlyAlias=64]="TypeOnlyAlias",je[je.ObjectLiteralMethod=128]="ObjectLiteralMethod",je[je.SymbolMemberNoExport=2]="SymbolMemberNoExport",je[je.SymbolMemberExport=6]="SymbolMemberExport"})(se||(se={}));function O(je){return!!(je.kind&1)}function ie(je){return!!(je.kind&2)}function _e(je){return!!(je&&je.kind&4)}function Q(je){return!!(je&&je.kind===32)}function p(je){return _e(je)||Q(je)}function D(je){return(_e(je)||Q(je))&&!!je.isFromPackageJson}function le(je){return!!(je.kind&8)}function de(je){return!!(je.kind&16)}function te(je){return!!(je&&je.kind&64)}function oe(je){return!!(je&&je.kind&128)}var ae;(function(je){je[je.None=0]="None",je[je.All=1]="All",je[je.ClassElementKeywords=2]="ClassElementKeywords",je[je.InterfaceElementKeywords=3]="InterfaceElementKeywords",je[je.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",je[je.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",je[je.TypeAssertionKeywords=6]="TypeAssertionKeywords",je[je.TypeKeywords=7]="TypeKeywords",je[je.TypeKeyword=8]="TypeKeyword",je[je.Last=8]="Last"})(ae||(ae={}));var E;(function(je){je[je.Continue=0]="Continue",je[je.Success=1]="Success",je[je.Fail=2]="Fail"})(E||(E={}));function I(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr){var _r,Or,zr,fn=e.timestamp(),Vr=Ke||e.moduleResolutionRespectsExports(e.getEmitModuleResolutionKind(Ye.getCompilerOptions())),Wn=!1,bn=0,qn=0,yn=0,Hn=0,Ai=hr({tryResolve:Hi,skippedAny:function(){return Wn},resolvedAny:function(){return qn>0},resolvedBeyondLimit:function(){return qn>ne.moduleSpecifierResolutionLimit}}),ti=Hn?" (".concat((yn/Hn*100).toFixed(1),"% hit rate)"):"";return(_r=Sr.log)===null||_r===void 0||_r.call(Sr,"".concat(je,": resolved ").concat(qn," module specifiers, plus ").concat(bn," ambient and ").concat(yn," from cache").concat(ti)),(Or=Sr.log)===null||Or===void 0||Or.call(Sr,"".concat(je,": response is ").concat(Wn?"incomplete":"complete")),(zr=Sr.log)===null||zr===void 0||zr.call(Sr,"".concat(je,": ").concat(e.timestamp()-fn)),Ai;function Hi(Ni,gi,Pn){if(Pn){var Pe=Te.getModuleSpecifierForBestExportInfo(Ni,gi,Qe,tr);return Pe&&bn++,Pe||"failed"}var Ir=Vr||ue.allowIncompleteCompletions&&qn<ne.moduleSpecifierResolutionLimit,we=!Ir&&ue.allowIncompleteCompletions&&Hn<ne.moduleSpecifierResolutionCacheAttemptLimit,hn=Ir||we?Te.getModuleSpecifierForBestExportInfo(Ni,gi,Qe,tr,we):void 0;return(!Ir&&!we||we&&!hn)&&(Wn=!0),qn+=(hn==null?void 0:hn.computedWithoutCacheCount)||0,yn+=Ni.length-((hn==null?void 0:hn.computedWithoutCacheCount)||0),we&&Hn++,hn||(Vr?"failed":"skipped")}}function f(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr,_r){var Or,zr=er(Qe,Ye).previousToken;if(!(Ke&&!e.isInString(Ye,Qe,zr)&&!Mr(Ye,Ke,zr,Qe))){if(Ke===" ")return ue.includeCompletionsForImportStatements&&ue.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var fn=Sr.getCompilerOptions(),Vr=ue.allowIncompleteCompletions?(Or=je.getIncompleteCompletionsCache)===null||Or===void 0?void 0:Or.call(je):void 0;if(Vr&&tr===3&&zr&&e.isIdentifier(zr)){var Wn=S(Vr,Ye,zr,Sr,je,ue,hr);if(Wn)return Wn}else Vr==null||Vr.clear();var bn=ne.StringCompletions.getStringLiteralCompletions(Ye,Qe,zr,fn,je,Sr,Te,ue);if(bn)return bn;if(zr&&e.isBreakOrContinueStatement(zr.parent)&&(zr.kind===81||zr.kind===86||zr.kind===79))return ge(zr.parent);var qn=Se(Sr,Te,Ye,fn,Qe,ue,void 0,je,_r,hr);if(!!qn)switch(qn.kind){case 0:var yn=H(Ye,je,Sr,fn,Te,qn,ue,_r,Qe);return(yn==null?void 0:yn.isIncomplete)&&(Vr==null||Vr.set(yn)),yn;case 1:return k(e.JsDoc.getJSDocTagNameCompletions());case 2:return k(e.JsDoc.getJSDocTagCompletions());case 3:return k(e.JsDoc.getJSDocParameterNameCompletions(qn.tag));case 4:return me(qn.keywordCompletions,qn.isNewIdentifierLocation);default:return e.Debug.assertNever(qn)}}}ne.getCompletionsAtPosition=f;function m(je,Sr){var Te,Ye,Qe=e.compareStringsCaseSensitiveUI(je.sortText,Sr.sortText);return Qe===0&&(Qe=e.compareStringsCaseSensitiveUI(je.name,Sr.name)),Qe===0&&((Te=je.data)===null||Te===void 0?void 0:Te.moduleSpecifier)&&((Ye=Sr.data)===null||Ye===void 0?void 0:Ye.moduleSpecifier)&&(Qe=e.compareNumberOfDirectorySeparators(je.data.moduleSpecifier,Sr.data.moduleSpecifier)),Qe===0?-1:Qe}function y(je){return!!(je==null?void 0:je.moduleSpecifier)}function S(je,Sr,Te,Ye,Qe,ue,Ke){var tr=je.get();if(!!tr){var hr=Te.text.toLowerCase(),_r=e.getExportInfoMap(Sr,Qe,Ye,ue,Ke),Or=I("continuePreviousIncompleteResponse",Qe,e.codefix.createImportSpecifierResolver(Sr,Ye,Qe,ue),Ye,Te.getStart(),ue,!1,e.isValidTypeOnlyAliasUseSite(Te),function(zr){var fn=e.mapDefined(tr.entries,function(Vr){var Wn;if(!Vr.hasAction||!Vr.source||!Vr.data||y(Vr.data))return Vr;if(!!jr(Vr.name,hr)){var bn=e.Debug.checkDefined(wr(Vr.name,Vr.data,Ye,Qe)).origin,qn=_r.get(Sr.path,Vr.data.exportMapKey),yn=qn&&zr.tryResolve(qn,Vr.name,!e.isExternalModuleNameRelative(e.stripQuotes(bn.moduleSymbol.name)));if(yn==="skipped")return Vr;if(!yn||yn==="failed"){(Wn=Qe.log)===null||Wn===void 0||Wn.call(Qe,"Unexpected failure resolving auto import for '".concat(Vr.name,"' from '").concat(Vr.source,"'"));return}var Hn=vi(vi({},bn),{kind:32,moduleSpecifier:yn.moduleSpecifier});return Vr.data=Z(Hn),Vr.source=z(Hn),Vr.sourceDisplay=[e.textPart(Hn.moduleSpecifier)],Vr}});return zr.skippedAny()||(tr.isIncomplete=void 0),fn});return tr.entries=Or,tr.flags=(tr.flags||0)|4,tr}}function k(je){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:je}}function C(je){return{name:e.tokenToString(je),kind:"keyword",kindModifiers:"",sortText:ne.SortText.GlobalsOrKeywords}}function me(je,Sr){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:Sr,entries:je.slice()}}function De(je,Sr,Te){return{kind:4,keywordCompletions:qr(je,Sr),isNewIdentifierLocation:Te}}function X(je){switch(je){case 154:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function M(je){return(je==null?void 0:je.kind)===79?e.createTextSpanFromNode(je):void 0}function H(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr){var _r=ue.symbols,Or=ue.contextToken,zr=ue.completionKind,fn=ue.isInSnippetScope,Vr=ue.isNewIdentifierLocation,Wn=ue.location,bn=ue.propertyAccessToConvert,qn=ue.keywordFilters,yn=ue.literals,Hn=ue.symbolToOriginInfoMap,Ai=ue.recommendedCompletion,ti=ue.isJsxInitializer,Hi=ue.isTypeOnlyLocation,Ni=ue.isJsxIdentifierExpected,gi=ue.isRightOfOpenTag,Pn=ue.importStatementCompletion,Pe=ue.insideJsDocTagTypeExpression,Ir=ue.symbolToSortTextMap,we=ue.hasUnresolvedAutoImports;if(e.getLanguageVariant(je.scriptKind)===1){var hn=F(Wn,je);if(hn)return hn}var jn=e.createSortedArray(),gn=V(je,Ye);if(!(gn&&!Vr&&(!_r||_r.length===0)&&qn===0)){var nn=U(_r,jn,void 0,Or,Wn,je,Sr,Te,e.getEmitScriptTarget(Ye),Qe,zr,Ke,Ye,tr,Hi,bn,Ni,ti,Pn,Ai,Hn,Ir,Ni,gi);if(qn!==0)for(var Cn=0,Dn=qr(qn,!Pe&&e.isSourceFileJS(je));Cn<Dn.length;Cn++){var On=Dn[Cn];(Hi&&e.isTypeKeyword(e.stringToToken(On.name))||!nn.has(On.name))&&(nn.add(On.name),e.insertSorted(jn,On,m,!0))}for(var Xn=0,Ge=rn(Or,hr);Xn<Ge.length;Xn++){var On=Ge[Xn];nn.has(On.name)||(nn.add(On.name),e.insertSorted(jn,On,m,!0))}for(var cn=0,Vn=yn;cn<Vn.length;cn++){var Ki=Vn[cn],dt=P(je,Ke,Ki);nn.add(dt.name),e.insertSorted(jn,dt,m,!0)}return gn||$(je,Wn.pos,nn,e.getEmitScriptTarget(Ye),jn),{flags:ue.flags,isGlobalCompletion:fn,isIncomplete:Ke.allowIncompleteCompletions&&we?!0:void 0,isMemberCompletion:h(zr),isNewIdentifierLocation:Vr,optionalReplacementSpan:M(Wn),entries:jn}}}function V(je,Sr){return!e.isSourceFileJS(je)||!!e.isCheckJsEnabledForFile(je,Sr)}function h(je){switch(je){case 0:case 3:case 2:return!0;default:return!1}}function F(je,Sr){var Te=e.findAncestor(je,function(_r){switch(_r.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(Te){var Ye=!!e.findChildOfKind(Te,31,Sr),Qe=Te.parent.openingElement.tagName,ue=Qe.getText(Sr),Ke=ue+(Ye?"":">"),tr=e.createTextSpanFromNode(Te.tagName),hr={name:Ke,kind:"class",kindModifiers:void 0,sortText:ne.SortText.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:tr,entries:[hr]}}}function $(je,Sr,Te,Ye,Qe){e.getNameTable(je).forEach(function(ue,Ke){if(ue!==Sr){var tr=e.unescapeLeadingUnderscores(Ke);!Te.has(tr)&&e.isIdentifierText(tr,Ye)&&(Te.add(tr),e.insertSorted(Qe,{name:tr,kind:"warning",kindModifiers:"",sortText:ne.SortText.JavascriptIdentifiers,isFromUncheckedFile:!0},m))}})}function L(je,Sr,Te){return typeof Te=="object"?e.pseudoBigIntToString(Te)+"n":e.isString(Te)?e.quote(je,Sr,Te):JSON.stringify(Te)}function P(je,Sr,Te){return{name:L(je,Sr,Te),kind:"string",kindModifiers:"",sortText:ne.SortText.LocationPriority}}function N(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr,_r,Or,zr,fn,Vr,Wn,bn,qn,yn,Hn,Ai,ti,Hi){var Ni,gi,Pn,Pe=e.getReplacementSpanForContextToken(Te),Ir,we,hn=z(Or),jn,gn,nn,Cn=tr.getTypeChecker(),Dn=Or&&de(Or),On=Or&&ie(Or)||_r;if(Or&&O(Or))Pn=_r?"this".concat(Dn?"?.":"","[").concat(A(ue,yn,hr),"]"):"this".concat(Dn?"?.":".").concat(hr);else if((On||Dn)&&fn){Pn=On?_r?"[".concat(A(ue,yn,hr),"]"):"[".concat(hr,"]"):hr,(Dn||fn.questionDotToken)&&(Pn="?.".concat(Pn));var Xn=e.findChildOfKind(fn,24,ue)||e.findChildOfKind(fn,28,ue);if(!Xn)return;var Ge=e.startsWith(hr,fn.name.text)?fn.name.end:Xn.end;Pe=e.createTextSpanFromBounds(Xn.getStart(ue),Ge)}if(Vr&&(Pn===void 0&&(Pn=hr),Pn="{".concat(Pn,"}"),typeof Vr!="boolean"&&(Pe=e.createTextSpanFromNode(Vr,ue))),Or&&le(Or)&&fn){Pn===void 0&&(Pn=hr);var cn=e.findPrecedingToken(fn.pos,ue),Vn="";cn&&e.positionIsASICandidate(cn.end,cn.parent,ue)&&(Vn=";"),Vn+="(await ".concat(fn.expression.getText(),")"),Pn=_r?"".concat(Vn).concat(Pn):"".concat(Vn).concat(Dn?"?.":".").concat(Pn),Pe=e.createTextSpanFromBounds(fn.getStart(ue),fn.end)}if(Q(Or)&&(jn=[e.textPart(Or.moduleSpecifier)],Wn&&(Ni=u(hr,Wn,Or,bn,ue,qn,yn),Pn=Ni.insertText,Pe=Ni.replacementSpan,we=yn.includeCompletionsWithSnippetText?!0:void 0)),(Or==null?void 0:Or.kind)===64&&(gn=!0),yn.includeCompletionsWithClassMemberSnippets&&yn.includeCompletionsWithInsertText&&Hn===3&&J(je,Qe,ue)){var Ki=void 0;gi=q(Ke,tr,qn,yn,hr,je,Qe,Ye,Ai),Pn=gi.insertText,we=gi.isSnippet,Ki=gi.importAdder,Pe=gi.replacementSpan,Sr=ne.SortText.ClassMemberSnippets,(Ki==null?void 0:Ki.hasFixes())&&(gn=!0,hn=K.ClassMemberSnippet)}if(Or&&oe(Or)&&(Pn=Or.insertText,we=Or.isSnippet,nn=Or.labelDetails,yn.useLabelDetailsInCompletionEntries||(hr=hr+nn.detail,nn=void 0),hn=K.ObjectLiteralMethodSnippet,Sr=ne.SortText.SortBelow(Sr)),ti&&!Hi&&yn.includeCompletionsWithSnippetText&&yn.jsxAttributeCompletionStyle&&yn.jsxAttributeCompletionStyle!=="none"){var dt=yn.jsxAttributeCompletionStyle==="braces",qi=Cn.getTypeOfSymbolAtLocation(je,Qe);yn.jsxAttributeCompletionStyle==="auto"&&!(qi.flags&528)&&!(qi.flags&1048576&&e.find(qi.types,function(Ci){return!!(Ci.flags&528)}))&&(qi.flags&402653316||qi.flags&1048576&&e.every(qi.types,function(Ci){return!!(Ci.flags&(402653316|32768))})?(Pn="".concat(e.escapeSnippetText(hr),"=").concat(e.quote(ue,yn,"$1")),we=!0):dt=!0),dt&&(Pn="".concat(e.escapeSnippetText(hr),"={$1}"),we=!0)}if(!(Pn!==void 0&&!yn.includeCompletionsWithInsertText))return(_e(Or)||Q(Or))&&(Ir=Z(Or),gn=!Wn),{name:hr,kind:e.SymbolDisplay.getSymbolKind(Cn,je,Qe),kindModifiers:e.SymbolDisplay.getSymbolModifiers(Cn,je),sortText:Sr,source:hn,hasAction:gn?!0:void 0,isRecommended:w(je,zr,Cn)||void 0,insertText:Pn,replacementSpan:Pe,sourceDisplay:jn,labelDetails:nn,isSnippet:we,isPackageJsonImport:D(Or)||void 0,isImportStatementCompletion:!!Wn||void 0,data:Ir}}function J(je,Sr,Te){if(e.isInJSFile(Sr))return!1;var Ye=106500&900095;return!!(je.flags&Ye)&&(e.isClassLike(Sr)||Sr.parent&&Sr.parent.parent&&e.isClassElement(Sr.parent)&&Sr===Sr.parent.name&&Sr.parent.getLastToken(Te)===Sr.parent.name&&e.isClassLike(Sr.parent.parent)||Sr.parent&&e.isSyntaxList(Sr)&&e.isClassLike(Sr.parent))}function q(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr){var _r=e.findAncestor(Ke,e.isClassLike);if(!_r)return{insertText:Qe};var Or,zr,fn=Qe,Vr=Sr.getTypeChecker(),Wn=Ke.getSourceFile(),bn=T({removeComments:!0,module:Te.module,target:Te.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(Te,e.maybeBind(je,je.getNewLine)))}),qn=e.codefix.createImportAdder(Wn,Sr,Ye,je),yn;if(Ye.includeCompletionsWithSnippetText){Or=!0;var Hn=e.factory.createEmptyStatement();yn=e.factory.createBlock([Hn],!0),e.setSnippetElement(Hn,{kind:0,order:0})}else yn=e.factory.createBlock([],!0);var Ai=0,ti=G(tr),Hi=ti.modifiers,Ni=ti.span,gi=!!(Hi&256),Pn=[];if(e.codefix.addNewNodeForMemberSymbol(ue,_r,Wn,{program:Sr,host:je},Ye,qn,function(Ir){var we=0;gi&&(we|=256),e.isClassElement(Ir)&&Vr.getMemberOverrideModifierStatus(_r,Ir)===1&&(we|=16384),Pn.length||(Ai=Ir.modifierFlagsCache|we|Hi),Ir=e.factory.updateModifiers(Ir,Ai),Pn.push(Ir)},yn,2,gi),Pn.length){var Pe=1|131072;zr=Ni,hr?fn=bn.printAndFormatSnippetList(Pe,e.factory.createNodeArray(Pn),Wn,hr):fn=bn.printSnippetList(Pe,e.factory.createNodeArray(Pn),Wn)}return{insertText:fn,isSnippet:Or,importAdder:qn,replacementSpan:zr}}function G(je){if(!je)return{modifiers:0};var Sr=0,Te,Ye;return(Ye=ye(je))&&(Sr|=e.modifierToFlag(Ye),Te=e.createTextSpanFromNode(je)),e.isPropertyDeclaration(je.parent)&&(Sr|=e.modifiersToFlags(je.parent.modifiers)&126975,Te=e.createTextSpanFromNode(je.parent)),{modifiers:Sr,span:Te}}function ye(je){if(e.isModifier(je))return je.kind;if(e.isIdentifier(je)&&je.originalKeywordKind&&e.isModifierKind(je.originalKeywordKind))return je.originalKeywordKind}function b(je,Sr,Te,Ye,Qe,ue,Ke,tr){var hr=Ke.includeCompletionsWithSnippetText||void 0,_r=Sr,Or=Te.getSourceFile(),zr=x(je,Te,Or,Ye,Qe,Ke);if(!!zr){var fn=T({removeComments:!0,module:ue.module,target:ue.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(ue,e.maybeBind(Qe,Qe.getNewLine)))});tr?_r=fn.printAndFormatSnippetList(16|64,e.factory.createNodeArray([zr],!0),Or,tr):_r=fn.printSnippetList(16|64,e.factory.createNodeArray([zr],!0),Or);var Vr=e.createPrinter({removeComments:!0,module:ue.module,target:ue.target,omitTrailingSemicolon:!0}),Wn=e.factory.createMethodSignature(void 0,"",zr.questionToken,zr.typeParameters,zr.parameters,zr.type),bn={detail:Vr.printNode(4,Wn,Or)};return{isSnippet:hr,insertText:_r,labelDetails:bn}}}function x(je,Sr,Te,Ye,Qe,ue){var Ke=je.getDeclarations();if(!!(Ke&&Ke.length)){var tr=Ye.getTypeChecker(),hr=Ke[0],_r=e.getSynthesizedDeepClone(e.getNameOfDeclaration(hr),!1),Or=tr.getWidenedType(tr.getTypeOfSymbolAtLocation(je,Sr)),zr=e.getQuotePreference(Te,ue),fn=33554432|(zr===0?268435456:0);switch(hr.kind){case 168:case 169:case 170:case 171:{var Vr=Or.flags&1048576&&Or.types.length<10?tr.getUnionType(Or.types,2):Or;if(Vr.flags&1048576){var Wn=e.filter(Vr.types,function(ti){return tr.getSignaturesOfType(ti,0).length>0});if(Wn.length===1)Vr=Wn[0];else return}var bn=tr.getSignaturesOfType(Vr,0);if(bn.length!==1)return;var qn=tr.typeToTypeNode(Vr,Sr,fn,e.codefix.getNoopSymbolTrackerWithResolver({program:Ye,host:Qe}));if(!qn||!e.isFunctionTypeNode(qn))return;var yn=void 0;if(ue.includeCompletionsWithSnippetText){var Hn=e.factory.createEmptyStatement();yn=e.factory.createBlock([Hn],!0),e.setSnippetElement(Hn,{kind:0,order:0})}else yn=e.factory.createBlock([],!0);var Ai=qn.parameters.map(function(ti){return e.factory.createParameterDeclaration(void 0,ti.dotDotDotToken,ti.name,void 0,void 0,ti.initializer)});return e.factory.createMethodDeclaration(void 0,void 0,_r,void 0,void 0,Ai,void 0,yn)}default:return}}}function T(je){var Sr,Te=e.textChanges.createWriter(e.getNewLineCharacter(je)),Ye=e.createPrinter(je,Te),Qe=vi(vi({},Te),{write:function(_r){return ue(_r,function(){return Te.write(_r)})},nonEscapingWrite:Te.write,writeLiteral:function(_r){return ue(_r,function(){return Te.writeLiteral(_r)})},writeStringLiteral:function(_r){return ue(_r,function(){return Te.writeStringLiteral(_r)})},writeSymbol:function(_r,Or){return ue(_r,function(){return Te.writeSymbol(_r,Or)})},writeParameter:function(_r){return ue(_r,function(){return Te.writeParameter(_r)})},writeComment:function(_r){return ue(_r,function(){return Te.writeComment(_r)})},writeProperty:function(_r){return ue(_r,function(){return Te.writeProperty(_r)})}});return{printSnippetList:Ke,printAndFormatSnippetList:hr};function ue(_r,Or){var zr=e.escapeSnippetText(_r);if(zr!==_r){var fn=Te.getTextPos();Or();var Vr=Te.getTextPos();Sr=e.append(Sr||(Sr=[]),{newText:zr,span:{start:fn,length:Vr-fn}})}else Or()}function Ke(_r,Or,zr){var fn=tr(_r,Or,zr);return Sr?e.textChanges.applyChanges(fn,Sr):fn}function tr(_r,Or,zr){return Sr=void 0,Qe.clear(),Ye.writeList(_r,Or,zr,Qe),Qe.getText()}function hr(_r,Or,zr,fn){var Vr={text:tr(_r,Or,zr),getLineAndCharacterOfPosition:function(yn){return e.getLineAndCharacterOfPosition(this,yn)}},Wn=e.getFormatCodeSettingsForWriting(fn,zr),bn=e.flatMap(Or,function(yn){var Hn=e.textChanges.assignPositionsToNode(yn);return e.formatting.formatNodeGivenIndentation(Hn,Vr,zr.languageVariant,0,0,vi(vi({},fn),{options:Wn}))}),qn=Sr?e.stableSort(e.concatenate(bn,Sr),function(yn,Hn){return e.compareTextSpans(yn.span,Hn.span)}):bn;return e.textChanges.applyChanges(Vr.text,qn)}}function Z(je){var Sr=je.fileName?void 0:e.stripQuotes(je.moduleSymbol.name),Te=je.isFromPackageJson?!0:void 0;if(Q(je)){var Ye={exportName:je.exportName,moduleSpecifier:je.moduleSpecifier,ambientModuleName:Sr,fileName:je.fileName,isPackageJsonImport:Te};return Ye}var Qe={exportName:je.exportName,exportMapKey:je.exportMapKey,fileName:je.fileName,ambientModuleName:je.fileName?void 0:e.stripQuotes(je.moduleSymbol.name),isPackageJsonImport:je.isFromPackageJson?!0:void 0};return Qe}function B(je,Sr,Te){var Ye=je.exportName==="default",Qe=!!je.isPackageJsonImport;if(y(je)){var ue={kind:32,exportName:je.exportName,moduleSpecifier:je.moduleSpecifier,symbolName:Sr,fileName:je.fileName,moduleSymbol:Te,isDefaultExport:Ye,isFromPackageJson:Qe};return ue}var Ke={kind:4,exportName:je.exportName,exportMapKey:je.exportMapKey,symbolName:Sr,fileName:je.fileName,moduleSymbol:Te,isDefaultExport:Ye,isFromPackageJson:Qe};return Ke}function u(je,Sr,Te,Ye,Qe,ue,Ke){var tr=Sr.replacementSpan,hr=e.quote(Qe,Ke,Te.moduleSpecifier),_r=Te.isDefaultExport?1:Te.exportName==="export="?2:0,Or=Ke.includeCompletionsWithSnippetText?"$1":"",zr=e.codefix.getImportKind(Qe,_r,ue,!0),fn=Sr.couldBeTypeOnlyImportSpecifier,Vr=Sr.isTopLevelTypeOnly?" ".concat(e.tokenToString(154)," "):" ",Wn=fn?"".concat(e.tokenToString(154)," "):"",bn=Ye?";":"";switch(zr){case 3:return{replacementSpan:tr,insertText:"import".concat(Vr).concat(e.escapeSnippetText(je)).concat(Or," = require(").concat(hr,")").concat(bn)};case 1:return{replacementSpan:tr,insertText:"import".concat(Vr).concat(e.escapeSnippetText(je)).concat(Or," from ").concat(hr).concat(bn)};case 2:return{replacementSpan:tr,insertText:"import".concat(Vr,"* as ").concat(e.escapeSnippetText(je)," from ").concat(hr).concat(bn)};case 0:return{replacementSpan:tr,insertText:"import".concat(Vr,"{ ").concat(Wn).concat(e.escapeSnippetText(je)).concat(Or," } from ").concat(hr).concat(bn)}}}function A(je,Sr,Te){return/^\d+$/.test(Te)?Te:e.quote(je,Sr,Te)}function w(je,Sr,Te){return je===Sr||!!(je.flags&1048576)&&Te.getExportSymbolOfSymbol(je)===Sr}function z(je){if(_e(je))return e.stripQuotes(je.moduleSymbol.name);if(Q(je))return je.moduleSpecifier;if((je==null?void 0:je.kind)===1)return K.ThisProperty;if((je==null?void 0:je.kind)===64)return K.TypeOnlyAlias}function U(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr,_r,Or,zr,fn,Vr,Wn,bn,qn,yn,Hn,Ai,ti,Hi,Ni,gi){for(var Pn,Pe=e.timestamp(),Ir=Qn(Qe),we=e.probablyUsesSemicolons(ue),hn=tr.getTypeChecker(),jn=new e.Map,gn=0;gn<je.length;gn++){var nn=je[gn],Cn=ti==null?void 0:ti[gn],Dn=mr(nn,hr,Cn,Or,!!qn);if(!(!Dn||jn.get(Dn.name)&&(!Cn||!oe(Cn))||Or===1&&Hi&&!dt(nn,Hi))){var On=Dn.name,Xn=Dn.needsConvertPropertyAccess,Ge=(Pn=Hi==null?void 0:Hi[e.getSymbolId(nn)])!==null&&Pn!==void 0?Pn:ne.SortText.LocationPriority,cn=Pr(nn,hn)?ne.SortText.Deprecated(Ge):Ge,Vn=N(nn,cn,Te,Ye,Qe,ue,Ke,tr,On,Xn,Cn,Ai,bn,yn,Hn,we,fn,zr,Or,Vr,Ni,gi);if(!!Vn){var Ki=(!Cn||te(Cn))&&!(nn.parent===void 0&&!e.some(nn.declarations,function(qi){return qi.getSourceFile()===Qe.getSourceFile()}));jn.set(On,Ki),e.insertSorted(Sr,Vn,m,!0)}}}return _r("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-Pe)),{has:function(qi){return jn.has(qi)},add:function(qi){return jn.set(qi,!0)}};function dt(qi,Ci){var Tt=qi.flags;if(!e.isSourceFile(Qe)){if(e.isExportAssignment(Qe.parent))return!0;if(Ir&&qi.valueDeclaration===Ir)return!1;var ot=e.skipAlias(qi,hn);if(!!ue.externalModuleIndicator&&!fn.allowUmdGlobalAccess&&Ci[e.getSymbolId(qi)]===ne.SortText.GlobalsOrKeywords&&(Ci[e.getSymbolId(ot)]===ne.SortText.AutoImportSuggestions||Ci[e.getSymbolId(ot)]===ne.SortText.LocationPriority))return!1;if(Tt|=e.getCombinedLocalAndExportSymbolFlags(ot),e.isInRightSideOfInternalImportEqualsDeclaration(Qe))return!!(Tt&1920);if(Wn)return Dr(qi,hn)}return!!(Tt&111551)}}ne.getCompletionEntriesFromSymbols=U;function ge(je){var Sr=pe(je);if(Sr.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Sr}}function pe(je){for(var Sr=[],Te=new e.Map,Ye=je;Ye&&!e.isFunctionLike(Ye);){if(e.isLabeledStatement(Ye)){var Qe=Ye.label.text;Te.has(Qe)||(Te.set(Qe,!0),Sr.push({name:Qe,kindModifiers:"",kind:"label",sortText:ne.SortText.LocationPriority}))}Ye=Ye.parent}return Sr}function He(je,Sr,Te,Ye,Qe,ue,Ke){if(Qe.data){var tr=wr(Qe.name,Qe.data,je,ue);if(tr){var hr=er(Ye,Te),_r=hr.contextToken,Or=hr.previousToken;return{type:"symbol",symbol:tr.symbol,location:e.getTouchingPropertyName(Te,Ye),previousToken:Or,contextToken:_r,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:tr.origin}}}var zr=je.getCompilerOptions(),fn=Se(je,Sr,Te,zr,Ye,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},Qe,ue,void 0);if(!fn)return{type:"none"};if(fn.kind!==0)return{type:"request",request:fn};var Vr=fn.symbols,Wn=fn.literals,bn=fn.location,qn=fn.completionKind,yn=fn.symbolToOriginInfoMap,Hn=fn.contextToken,Ai=fn.previousToken,ti=fn.isJsxInitializer,Hi=fn.isTypeOnlyLocation,Ni=e.find(Wn,function(gi){return L(Te,Ke,gi)===Qe.name});return Ni!==void 0?{type:"literal",literal:Ni}:e.firstDefined(Vr,function(gi,Pn){var Pe=yn[Pn],Ir=mr(gi,e.getEmitScriptTarget(zr),Pe,qn,fn.isJsxIdentifierExpected);return Ir&&Ir.name===Qe.name&&(Qe.source===K.ClassMemberSnippet&&gi.flags&106500||Qe.source===K.ObjectLiteralMethodSnippet&&gi.flags&(4|8192)||z(Pe)===Qe.source)?{type:"symbol",symbol:gi,location:bn,origin:Pe,contextToken:Hn,previousToken:Ai,isJsxInitializer:ti,isTypeOnlyLocation:Hi}:void 0})||{type:"none"}}function Be(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr){var _r=je.getTypeChecker(),Or=je.getCompilerOptions(),zr=Qe.name,fn=Qe.source,Vr=Qe.data,Wn=e.findPrecedingToken(Ye,Te);if(e.isInString(Te,Ye,Wn))return ne.StringCompletions.getStringLiteralCompletionDetails(zr,Te,Ye,Wn,_r,Or,ue,hr,tr);var bn=He(je,Sr,Te,Ye,Qe,ue,tr);switch(bn.type){case"request":{var qn=bn.request;switch(qn.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(zr);case 2:return e.JsDoc.getJSDocTagCompletionDetails(zr);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(zr);case 4:return e.some(qn.keywordCompletions,function(Ir){return Ir.name===zr})?Me(zr,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(qn)}}case"symbol":{var yn=bn.symbol,Hn=bn.location,Ai=bn.contextToken,ti=bn.origin,Hi=bn.previousToken,Ni=Xe(zr,Hn,Ai,ti,yn,je,ue,Or,Te,Ye,Hi,Ke,tr,Vr,fn,hr),gi=Ni.codeActions,Pn=Ni.sourceDisplay;return Le(yn,_r,Te,Hn,hr,gi,Pn)}case"literal":{var Pe=bn.literal;return Me(L(Te,tr,Pe),"string",typeof Pe=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return t().some(function(Ir){return Ir.name===zr})?Me(zr,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(bn)}}ne.getCompletionEntryDetails=Be;function Me(je,Sr,Te){return Ae(je,"",Sr,[e.displayPart(je,Te)])}function Le(je,Sr,Te,Ye,Qe,ue,Ke){var tr=Sr.runWithCancellationToken(Qe,function(fn){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(fn,je,Te,Ye,Ye,7)}),hr=tr.displayParts,_r=tr.documentation,Or=tr.symbolKind,zr=tr.tags;return Ae(je.name,e.SymbolDisplay.getSymbolModifiers(Sr,je),Or,hr,_r,zr,ue,Ke)}ne.createCompletionDetailsForSymbol=Le;function Ae(je,Sr,Te,Ye,Qe,ue,Ke,tr){return{name:je,kindModifiers:Sr,kind:Te,displayParts:Ye,documentation:Qe,tags:ue,codeActions:Ke,source:tr,sourceDisplay:tr}}ne.createCompletionDetails=Ae;function Xe(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr,_r,Or,zr,fn,Vr,Wn,bn){if((Vr==null?void 0:Vr.moduleSpecifier)&&Or&&Ie(Te||Or).replacementSpan)return{codeActions:void 0,sourceDisplay:[e.textPart(Vr.moduleSpecifier)]};if(Wn===K.ClassMemberSnippet){var qn=q(Ke,ue,tr,fn,je,Qe,Sr,Te,zr).importAdder;if(qn){var yn=e.textChanges.ChangeTracker.with({host:Ke,formatContext:zr,preferences:fn},qn.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:yn,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,je])}]}}}if(te(Ye)){var Hn=e.codefix.getPromoteTypeOnlyCompletionAction(hr,Ye.declaration.name,ue,Ke,zr,fn);return e.Debug.assertIsDefined(Hn,"Expected to have a code action for promoting type-only alias"),{codeActions:[Hn],sourceDisplay:void 0}}if(!Ye||!(_e(Ye)||Q(Ye)))return{codeActions:void 0,sourceDisplay:void 0};var Ai=Ye.isFromPackageJson?Ke.getPackageJsonAutoImportProvider().getTypeChecker():ue.getTypeChecker(),ti=Ye.moduleSymbol,Hi=Ai.getMergedSymbol(e.skipAlias(Qe.exportSymbol||Qe,Ai)),Ni=(Te==null?void 0:Te.kind)===29&&e.isJsxOpeningLikeElement(Te.parent),gi=e.codefix.getImportCompletionAction(Hi,ti,hr,e.getNameForExportedSymbol(Qe,e.getEmitScriptTarget(tr),Ni),Ni,Ke,ue,zr,Or&&e.isIdentifier(Or)?Or.getStart(hr):_r,fn,bn),Pn=gi.moduleSpecifier,Pe=gi.codeAction;return e.Debug.assert(!(Vr==null?void 0:Vr.moduleSpecifier)||Pn===Vr.moduleSpecifier),{sourceDisplay:[e.textPart(Pn)],codeActions:[Pe]}}function Ne(je,Sr,Te,Ye,Qe,ue,Ke){var tr=He(je,Sr,Te,Ye,Qe,ue,Ke);return tr.type==="symbol"?tr.symbol:void 0}ne.getCompletionEntrySymbol=Ne;var Oe;(function(je){je[je.Data=0]="Data",je[je.JsDocTagName=1]="JsDocTagName",je[je.JsDocTag=2]="JsDocTag",je[je.JsDocParameterName=3]="JsDocParameterName",je[je.Keywords=4]="Keywords"})(Oe||(Oe={}));var be;(function(je){je[je.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",je[je.Global=1]="Global",je[je.PropertyAccess=2]="PropertyAccess",je[je.MemberLike=3]="MemberLike",je[je.String=4]="String",je[je.None=5]="None"})(be=ne.CompletionKind||(ne.CompletionKind={}));function Y(je,Sr,Te){return e.firstDefined(Sr&&(Sr.isUnion()?Sr.types:[Sr]),function(Ye){var Qe=Ye&&Ye.symbol;return Qe&&Qe.flags&(8|384|32)&&!e.isAbstractConstructorSymbol(Qe)?j(Qe,je,Te):void 0})}function d(je,Sr,Te,Ye){var Qe=je.parent;switch(je.kind){case 79:return e.getContextualTypeFromParent(je,Ye);case 63:switch(Qe.kind){case 257:return Ye.getContextualType(Qe.initializer);case 223:return Ye.getTypeAtLocation(Qe.left);case 288:return Ye.getContextualTypeForJsxAttribute(Qe);default:return}case 103:return Ye.getContextualType(Qe);case 82:var ue=e.tryCast(Qe,e.isCaseClause);return ue?e.getSwitchedType(ue,Ye):void 0;case 18:return e.isJsxExpression(Qe)&&!e.isJsxElement(Qe.parent)&&!e.isJsxFragment(Qe.parent)?Ye.getContextualTypeForJsxAttribute(Qe.parent):void 0;default:var Ke=e.SignatureHelp.getArgumentInfoForCompletions(je,Sr,Te);return Ke?Ye.getContextualTypeForArgumentAtIndex(Ke.invocation,Ke.argumentIndex+(je.kind===27?1:0)):e.isEqualityOperatorKind(je.kind)&&e.isBinaryExpression(Qe)&&e.isEqualityOperatorKind(Qe.operatorToken.kind)?Ye.getTypeAtLocation(Qe.left):Ye.getContextualType(je)}}function j(je,Sr,Te){var Ye=Te.getAccessibleSymbolChain(je,Sr,67108863,!1);return Ye?e.first(Ye):je.parent&&(Ce(je.parent)?je:j(je.parent,Sr,Te))}function Ce(je){var Sr;return!!((Sr=je.declarations)===null||Sr===void 0?void 0:Sr.some(function(Te){return Te.kind===308}))}function Se(je,Sr,Te,Ye,Qe,ue,Ke,tr,hr,_r){var Or=je.getTypeChecker(),zr=V(Te,Ye),fn=e.timestamp(),Vr=e.getTokenAtPosition(Te,Qe);Sr("getCompletionData: Get current token: "+(e.timestamp()-fn)),fn=e.timestamp();var Wn=e.isInComment(Te,Qe,Vr);Sr("getCompletionData: Is inside comment: "+(e.timestamp()-fn));var bn=!1,qn=!1;if(Wn){if(e.hasDocComment(Te,Qe)){if(Te.text.charCodeAt(Qe-1)===64)return{kind:1};var yn=e.getLineStartPositionForPosition(Qe,Te);if(!/[^\*|\s(/)]/.test(Te.text.substring(yn,Qe)))return{kind:2}}var Hn=Br(Vr,Qe);if(Hn){if(Hn.tagName.pos<=Qe&&Qe<=Hn.tagName.end)return{kind:1};var Ai=fo(Hn);if(Ai&&(Vr=e.getTokenAtPosition(Te,Qe),(!Vr||!e.isDeclarationName(Vr)&&(Vr.parent.kind!==350||Vr.parent.name!==Vr))&&(bn=Ss(Ai))),!bn&&e.isJSDocParameterTag(Hn)&&(e.nodeIsMissing(Hn.name)||Hn.name.pos<=Qe&&Qe<=Hn.name.end))return{kind:3,tag:Hn}}if(!bn){Sr("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}fn=e.timestamp();var ti=!bn&&e.isSourceFileJS(Te),Hi=er(Qe,Te),Ni=Hi.previousToken,gi=Hi.contextToken;Sr("getCompletionData: Get previous token: "+(e.timestamp()-fn));var Pn=Vr,Pe,Ir=!1,we=!1,hn=!1,jn=!1,gn=!1,nn=!1,Cn,Dn=e.getTouchingPropertyName(Te,Qe),On=0,Xn=!1,Ge=0;if(gi){var cn=Ie(gi);if(cn.keywordCompletion){if(cn.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[C(cn.keywordCompletion)],isNewIdentifierLocation:cn.isNewIdentifierLocation};On=X(cn.keywordCompletion)}if(cn.replacementSpan&&ue.includeCompletionsForImportStatements&&ue.includeCompletionsWithInsertText&&(Ge|=2,Cn=cn,Xn=cn.isNewIdentifierLocation),!cn.replacementSpan&&Jr(gi))return Sr("Returning an empty list because completion was requested in an invalid position."),On?De(On,ti,_i()):void 0;var Vn=gi.parent;if(gi.kind===24||gi.kind===28)switch(Ir=gi.kind===24,we=gi.kind===28,Vn.kind){case 208:Pe=Vn,Pn=Pe.expression;var Ki=e.getLeftmostAccessExpression(Pe);if(e.nodeIsMissing(Ki)||(e.isCallExpression(Pn)||e.isFunctionLike(Pn))&&Pn.end===gi.pos&&Pn.getChildCount(Te)&&e.last(Pn.getChildren(Te)).kind!==21)return;break;case 163:Pn=Vn.left;break;case 264:Pn=Vn.name;break;case 202:Pn=Vn;break;case 233:Pn=Vn.getFirstToken(Te),e.Debug.assert(Pn.kind===100||Pn.kind===103);break;default:return}else if(!Cn){if(Vn&&Vn.kind===208&&(gi=Vn,Vn=Vn.parent),Vr.parent===Dn)switch(Vr.kind){case 31:(Vr.parent.kind===281||Vr.parent.kind===283)&&(Dn=Vr);break;case 43:Vr.parent.kind===282&&(Dn=Vr);break}switch(Vn.kind){case 284:gi.kind===43&&(jn=!0,Dn=gi);break;case 223:if(!Rr(Vn))break;case 282:case 281:case 283:nn=!0,gi.kind===29&&(hn=!0,Dn=gi);break;case 291:case 290:Ni.kind===19&&Vr.kind===31&&(nn=!0);break;case 288:if(Vn.initializer===Ni&&Ni.end<Qe){nn=!0;break}switch(Ni.kind){case 63:gn=!0;break;case 79:nn=!0,Vn!==Ni.parent&&!Vn.initializer&&e.findChildOfKind(Vn,63,Te)&&(gn=Ni)}break}}}var dt=e.timestamp(),qi=5,Ci=!1,Tt=!1,ot=[],Zi,ni=[],Va=[],Ua=new e.Map,za=Pa(),Co=e.memoizeOne(function(ee){return e.createModuleSpecifierResolutionHost(ee?tr.getPackageJsonAutoImportProvider():je,tr)});if(Ir||we)As();else if(hn)ot=Or.getJsxIntrinsicTagNamesAt(Dn),e.Debug.assertEachIsDefined(ot,"getJsxIntrinsicTagNames() should all be defined"),Zo(),qi=1,On=0;else if(jn){var Ea=gi.parent.parent.openingElement.tagName,ho=Or.getSymbolAtLocation(Ea);ho&&(ot=[ho]),qi=1,On=0}else if(!Zo())return On?De(On,ti,Xn):void 0;Sr("getCompletionData: Semantic work: "+(e.timestamp()-dt));var Aa=Ni&&d(Ni,Qe,Te,Or),Vi=e.mapDefined(Aa&&(Aa.isUnion()?Aa.types:[Aa]),function(ee){return ee.isLiteral()&&!(ee.flags&1024)?ee.value:void 0}),Xi=Ni&&Aa&&Y(Ni,Aa,Or);return{kind:0,symbols:ot,completionKind:qi,isInSnippetScope:qn,propertyAccessToConvert:Pe,isNewIdentifierLocation:Xn,location:Dn,keywordFilters:On,literals:Vi,symbolToOriginInfoMap:ni,recommendedCompletion:Xi,previousToken:Ni,contextToken:gi,isJsxInitializer:gn,insideJsDocTagTypeExpression:bn,symbolToSortTextMap:Va,isTypeOnlyLocation:za,isJsxIdentifierExpected:nn,isRightOfOpenTag:hn,importStatementCompletion:Cn,hasUnresolvedAutoImports:Tt,flags:Ge};function ao(ee){switch(ee.kind){case 343:case 350:case 344:case 346:case 348:return!0;case 347:return!!ee.constraint;default:return!1}}function fo(ee){if(ao(ee)){var Er=e.isJSDocTemplateTag(ee)?ee.constraint:ee.typeExpression;return Er&&Er.kind===312?Er:void 0}}function As(){qi=2;var ee=e.isLiteralImportTypeNode(Pn),Er=bn||ee&&!Pn.isTypeOf||e.isPartOfTypeNode(Pn.parent)||e.isPossiblyTypeArgumentPosition(gi,Te,Or),un=e.isInRightSideOfInternalImportEqualsDeclaration(Pn);if(e.isEntityName(Pn)||ee||e.isPropertyAccessExpression(Pn)){var $n=e.isModuleDeclaration(Pn.parent);$n&&(Xn=!0);var Ii=Or.getSymbolAtLocation(Pn);if(Ii&&(Ii=e.skipAlias(Ii,Or),Ii.flags&(1536|384))){var at=Or.getExportsOfModule(Ii);e.Debug.assertEachIsDefined(at,"getExportsOfModule() should all be defined");for(var Ji=function(xa){return Or.isValidPropertyAccess(ee?Pn:Pn.parent,xa.name)},_t=function(xa){return Dr(xa,Or)},Ht=$n?function(xa){var co;return!!(xa.flags&1920)&&!((co=xa.declarations)===null||co===void 0?void 0:co.every(function(gs){return gs.parent===Pn.parent}))}:un?function(xa){return _t(xa)||Ji(xa)}:Er?_t:Ji,Rt=0,va=at;Rt<va.length;Rt++){var qe=va[Rt];Ht(qe)&&ot.push(qe)}if(!Er&&Ii.declarations&&Ii.declarations.some(function(xa){return xa.kind!==308&&xa.kind!==264&&xa.kind!==263})){var Tn=Or.getTypeOfSymbolAtLocation(Ii,Pn).getNonOptionalType(),Nr=!1;if(Tn.isNullableType()){var ga=Ir&&!we&&ue.includeAutomaticOptionalChainCompletions!==!1;(ga||we)&&(Tn=Tn.getNonNullableType(),ga&&(Nr=!0))}so(Tn,!!(Pn.flags&32768),Nr)}return}}if(!Er){Or.tryGetThisTypeAt(Pn,!1);var Tn=Or.getTypeAtLocation(Pn).getNonOptionalType(),Nr=!1;if(Tn.isNullableType()){var ga=Ir&&!we&&ue.includeAutomaticOptionalChainCompletions!==!1;(ga||we)&&(Tn=Tn.getNonNullableType(),ga&&(Nr=!0))}so(Tn,!!(Pn.flags&32768),Nr)}}function so(ee,Er,un){Xn=!!ee.getStringIndexType(),we&&e.some(ee.getCallSignatures())&&(Xn=!0);var $n=Pn.kind===202?Pn:Pn.parent;if(zr)for(var Ii=0,at=ee.getApparentProperties();Ii<at.length;Ii++){var Ji=at[Ii];Or.isValidPropertyAccessForCompletions($n,ee,Ji)&&Xo(Ji,!1,un)}else ot.push.apply(ot,e.filter(Ee(ee,Or),function(va){return Or.isValidPropertyAccessForCompletions($n,ee,va)}));if(Er&&ue.includeCompletionsWithInsertText){var _t=Or.getPromisedTypeOfPromise(ee);if(_t)for(var Ht=0,Rt=_t.getApparentProperties();Ht<Rt.length;Ht++){var Ji=Rt[Ht];Or.isValidPropertyAccessForCompletions($n,_t,Ji)&&Xo(Ji,!0,un)}}}function Xo(ee,Er,un){var $n,Ii=e.firstDefined(ee.declarations,function(co){return e.tryCast(e.getNameOfDeclaration(co),e.isComputedPropertyName)});if(Ii){var at=Ho(Ii.expression),Ji=at&&Or.getSymbolAtLocation(at),_t=Ji&&j(Ji,gi,Or);if(_t&&e.addToSeen(Ua,e.getSymbolId(_t))){var Ht=ot.length;ot.push(_t);var Rt=_t.parent;if(!Rt||!e.isExternalModuleSymbol(Rt)||Or.tryGetMemberInModuleExportsAndProperties(_t.name,Rt)!==_t)ni[Ht]={kind:xa(2)};else{var va=e.isExternalModuleNameRelative(e.stripQuotes(Rt.name))?($n=e.getSourceFileOfModule(Rt))===null||$n===void 0?void 0:$n.fileName:void 0,qe=((Zi||(Zi=e.codefix.createImportSpecifierResolver(Te,je,tr,ue))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:va,isFromPackageJson:!1,moduleSymbol:Rt,symbol:_t,targetFlags:e.skipAlias(_t,Or).flags}],_t.name,Qe,e.isValidTypeOnlyAliasUseSite(Dn))||{}).moduleSpecifier;if(qe){var Tn={kind:xa(6),moduleSymbol:Rt,isDefaultExport:!1,symbolName:_t.name,exportName:_t.name,fileName:va,moduleSpecifier:qe};ni[Ht]=Tn}}}else ue.includeCompletionsWithInsertText&&(ga(ee),Nr(ee),ot.push(ee))}else ga(ee),Nr(ee),ot.push(ee);function Nr(co){en(co)&&(Va[e.getSymbolId(co)]=ne.SortText.LocalDeclarationPriority)}function ga(co){ue.includeCompletionsWithInsertText&&(Er&&e.addToSeen(Ua,e.getSymbolId(co))?ni[ot.length]={kind:xa(8)}:un&&(ni[ot.length]={kind:16}))}function xa(co){return un?co|16:co}}function Ho(ee){return e.isIdentifier(ee)?ee:e.isPropertyAccessExpression(ee)?Ho(ee.expression):void 0}function Zo(){var ee=fi()||Nt()||Fr()||Gt()||la()||To()||na()||pr()||(yi(),1);return ee===1}function To(){return bs(gi)?(qi=5,Xn=!0,On=4,1):0}function pr(){var ee=ps(gi),Er=ee&&Or.getContextualType(ee.attributes);if(!Er)return 0;var un=ee&&Or.getContextualType(ee.attributes,4);return ot=e.concatenate(ot,oc(pn(Er,un,ee.attributes,Or),ee.attributes.properties)),Sc(),qi=3,Xn=!1,1}function Fr(){return Cn?(Xn=!0,Nn(),1):0}function yi(){On=ds(gi)?5:1,qi=1,Xn=_i(),Ni!==gi&&e.Debug.assert(!!Ni,"Expected 'contextToken' to be defined when different from 'previousToken'.");var ee=Ni!==gi?Ni.getStart():Qe,Er=yr(gi,ee,Te)||Te;qn=Ft(Er);var un=(za?0:111551)|788968|1920|2097152,$n=Ni&&!e.isValidTypeOnlyAliasUseSite(Ni);ot=e.concatenate(ot,Or.getSymbolsInScope(Er,un)),e.Debug.assertEachIsDefined(ot,"getSymbolsInScope() should all be defined");for(var Ii=0;Ii<ot.length;Ii++){var at=ot[Ii];if(!Or.isArgumentsSymbol(at)&&!e.some(at.declarations,function(qe){return qe.getSourceFile()===Te})&&(Va[e.getSymbolId(at)]=ne.SortText.GlobalsOrKeywords),$n&&!(at.flags&111551)){var Ji=at.declarations&&e.find(at.declarations,e.isTypeOnlyImportOrExportDeclaration);if(Ji){var _t={kind:64,declaration:Ji};ni[Ii]=_t}}}if(ue.includeCompletionsWithInsertText&&Er.kind!==308){var Ht=Or.tryGetThisTypeAt(Er,!1,e.isClassLike(Er.parent)?Er:void 0);if(Ht&&!Qr(Ht,Te,Or))for(var Rt=0,va=Ee(Ht,Or);Rt<va.length;Rt++){var at=va[Rt];ni[ot.length]={kind:1},ot.push(at),Va[e.getSymbolId(at)]=ne.SortText.SuggestedClassMembers}}Nn(),za&&(On=gi&&e.isAssertionExpression(gi.parent)?6:7)}function Dt(){return Cn?!0:Ci||!ue.includeCompletionsForModuleExports?!1:Te.externalModuleIndicator||Te.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(je.getCompilerOptions())?!0:e.programContainsModules(je)}function Ft(ee){switch(ee.kind){case 308:case 225:case 291:case 238:return!0;default:return e.isStatement(ee)}}function Pa(){return bn||!!Cn&&e.isTypeOnlyImportOrExportDeclaration(Dn.parent)||!Ve(gi)&&(e.isPossiblyTypeArgumentPosition(gi,Te,Or)||e.isPartOfTypeNode(Dn)||tn(gi))}function Ve(ee){return ee&&(ee.kind===112&&(ee.parent.kind===183||e.isTypeOfExpression(ee.parent))||ee.kind===129&&ee.parent.kind===179)}function tn(ee){if(ee){var Er=ee.parent.kind;switch(ee.kind){case 58:return Er===169||Er===168||Er===166||Er===257||e.isFunctionLikeKind(Er);case 63:return Er===262;case 128:return Er===231;case 29:return Er===180||Er===213;case 94:return Er===165;case 150:return Er===235}}return!1}function Nn(){var ee,Er;if(!Dt()||(e.Debug.assert(!(Ke==null?void 0:Ke.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),Ke&&!Ke.source))return;Ge|=1;var un=Ni===gi&&Cn,$n=un?"":Ni&&e.isIdentifier(Ni)?Ni.text.toLowerCase():"",Ii=(ee=tr.getModuleSpecifierCache)===null||ee===void 0?void 0:ee.call(tr),at=e.getExportInfoMap(Te,tr,je,ue,_r),Ji=(Er=tr.getPackageJsonAutoImportProvider)===null||Er===void 0?void 0:Er.call(tr),_t=Ke?void 0:e.createPackageJsonImportFilter(Te,ue,tr);I("collectAutoImports",tr,Zi||(Zi=e.codefix.createImportSpecifierResolver(Te,je,tr,ue)),je,Qe,ue,!!Cn,e.isValidTypeOnlyAliasUseSite(Dn),function(Rt){at.search(Te.path,hn,function(va,qe){if(!e.isIdentifierText(va,e.getEmitScriptTarget(tr.getCompilationSettings()))||!Ke&&e.isStringANonContextualKeyword(va)||!za&&!Cn&&!(qe&111551)||za&&!(qe&(1536|788968)))return!1;var Tn=va.charCodeAt(0);return hn&&(Tn<65||Tn>90)?!1:Ke?!0:jr(va,$n)},function(va,qe,Tn,Nr){var ga;if(!(Ke&&!e.some(va,function(qs){return Ke.source===e.stripQuotes(qs.moduleSymbol.name)}))){var xa=e.find(va,Ht);if(!!xa){var co=Rt.tryResolve(va,qe,Tn)||{};if(co!=="failed"){var gs=xa,gc;co!=="skipped"&&(ga=co.exportInfo,gs=ga===void 0?xa:ga,gc=co.moduleSpecifier);var ws=gs.exportKind===1,Lc=ws&&e.getLocalSymbolForExportDefault(gs.symbol)||gs.symbol;wn(Lc,{kind:gc?32:4,moduleSpecifier:gc,symbolName:qe,exportMapKey:Nr,exportName:gs.exportKind===2?"export=":gs.symbol.name,fileName:gs.moduleFileName,isDefaultExport:ws,moduleSymbol:gs.moduleSymbol,isFromPackageJson:gs.isFromPackageJson})}}}}),Tt=Rt.skippedAny(),Ge|=Rt.resolvedAny()?8:0,Ge|=Rt.resolvedBeyondLimit()?16:0});function Ht(Rt){var va=e.tryCast(Rt.moduleSymbol.valueDeclaration,e.isSourceFile);if(!va){var qe=e.stripQuotes(Rt.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(qe)&&e.startsWith(qe,"node:")!==e.shouldUseUriStyleNodeCoreModules(Te,je)?!1:_t?_t.allowsImportingAmbientModule(Rt.moduleSymbol,Co(Rt.isFromPackageJson)):!0}return e.isImportableFile(Rt.isFromPackageJson?Ji:je,Te,va,ue,_t,Co(Rt.isFromPackageJson),Ii)}}function wn(ee,Er){var un=e.getSymbolId(ee);Va[un]!==ne.SortText.GlobalsOrKeywords&&(ni[ot.length]=Er,Va[un]=Cn?ne.SortText.LocationPriority:ne.SortText.AutoImportSuggestions,ot.push(ee))}function Je(ee,Er){e.isInJSFile(Dn)||ee.forEach(function(un){if(!!ur(un)){var $n=mr(un,e.getEmitScriptTarget(Ye),void 0,0,!1);if(!!$n){var Ii=$n.name,at=b(un,Ii,Er,je,tr,Ye,ue,hr);if(!!at){var Ji=vi({kind:128},at);Ge|=32,ni[ot.length]=Ji,ot.push(un)}}}})}function ur(ee){return!!(ee.flags&(4|8192))}function yr(ee,Er,un){for(var $n=ee;$n&&!e.positionBelongsToNode($n,Er,un);)$n=$n.parent;return $n}function Jr(ee){var Er=e.timestamp(),un=di(ee)||ac(ee)||dc(ee)||Mn(ee)||e.isBigIntLiteral(ee);return Sr("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Er)),un}function Mn(ee){if(ee.kind===11)return!0;if(ee.kind===31&&ee.parent){if(Dn===ee.parent&&(Dn.kind===283||Dn.kind===282))return!1;if(ee.parent.kind===283)return Dn.parent.kind!==283;if(ee.parent.kind===284||ee.parent.kind===282)return!!ee.parent.parent&&ee.parent.parent.kind===281}return!1}function _i(){if(gi){var ee=gi.parent.kind,Er=Cr(gi);switch(Er){case 27:return ee===210||ee===173||ee===211||ee===206||ee===223||ee===181||ee===207;case 20:return ee===210||ee===173||ee===211||ee===214||ee===193;case 22:return ee===206||ee===178||ee===164;case 142:case 143:case 100:return!0;case 24:return ee===264;case 18:return ee===260||ee===207;case 63:return ee===257||ee===223;case 15:return ee===225;case 16:return ee===236;case 132:return ee===171||ee===300;case 41:return ee===171}if(kr(Er))return!0}return!1}function di(ee){return(e.isRegularExpressionLiteral(ee)||e.isStringTextContainingNode(ee))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(ee)),Qe)||Qe===ee.end&&(!!ee.isUnterminated||e.isRegularExpressionLiteral(ee)))}function fi(){var ee=Ar(gi);if(!ee)return 0;var Er=e.isIntersectionTypeNode(ee.parent)?ee.parent:void 0,un=Er||ee,$n=xe(un,Or);if(!$n)return 0;var Ii=Or.getTypeFromTypeNode(un),at=Ee($n,Or),Ji=Ee(Ii,Or),_t=new e.Set;return Ji.forEach(function(Ht){return _t.add(Ht.escapedName)}),ot=e.concatenate(ot,e.filter(at,function(Ht){return!_t.has(Ht.escapedName)})),qi=0,Xn=!0,1}function Nt(){var ee=ot.length,Er=Re(gi);if(!Er)return 0;qi=0;var un,$n;if(Er.kind===207){var Ii=vn(Er,Or);if(Ii===void 0)return Er.flags&33554432?2:(Ci=!0,0);var at=Or.getContextualType(Er,4),Ji=(at||Ii).getStringIndexType(),_t=(at||Ii).getNumberIndexType();if(Xn=!!Ji||!!_t,un=pn(Ii,at,Er,Or),$n=Er.properties,un.length===0&&!_t)return Ci=!0,0}else{e.Debug.assert(Er.kind===203),Xn=!1;var Ht=e.getRootDeclaration(Er.parent);if(!e.isVariableLike(Ht))return e.Debug.fail("Root declaration is not variable-like.");var Rt=e.hasInitializer(Ht)||!!e.getEffectiveTypeAnnotationNode(Ht)||Ht.parent.parent.kind===247;if(!Rt&&Ht.kind===166&&(e.isExpression(Ht.parent)?Rt=!!Or.getContextualType(Ht.parent):(Ht.parent.kind===171||Ht.parent.kind===175)&&(Rt=e.isExpression(Ht.parent.parent)&&!!Or.getContextualType(Ht.parent.parent))),Rt){var va=Or.getTypeAtLocation(Er);if(!va)return 2;un=Or.getPropertiesOfType(va).filter(function(Tn){return Or.isPropertyAccessible(Er,!1,!1,va,Tn)}),$n=Er.elements}}if(un&&un.length>0){var qe=pc(un,e.Debug.checkDefined($n));ot=e.concatenate(ot,qe),Sc(),Er.kind===207&&ue.includeCompletionsWithObjectLiteralMethodSnippets&&ue.includeCompletionsWithInsertText&&(Mc(ee),Je(qe,Er))}return 1}function Gt(){if(!gi)return 0;var ee=gi.kind===18||gi.kind===27?e.tryCast(gi.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(gi)?e.tryCast(gi.parent.parent,e.isNamedImportsOrExports):void 0;if(!ee)return 0;e.isTypeKeywordTokenOrIdentifier(gi)||(On=8);var Er=(ee.kind===272?ee.parent.parent:ee.parent).moduleSpecifier;if(!Er)return Xn=!0,ee.kind===272?2:0;var un=Or.getSymbolAtLocation(Er);if(!un)return Xn=!0,2;qi=3,Xn=!1;var $n=Or.getExportsAndPropertiesOfModule(un),Ii=new e.Set(ee.elements.filter(function(Ji){return!Ss(Ji)}).map(function(Ji){return(Ji.propertyName||Ji.name).escapedText})),at=$n.filter(function(Ji){return Ji.escapedName!=="default"&&!Ii.has(Ji.escapedName)});return ot=e.concatenate(ot,at),at.length||(On=0),1}function la(){var ee,Er=gi&&(gi.kind===18||gi.kind===27)?e.tryCast(gi.parent,e.isNamedExports):void 0;if(!Er)return 0;var un=e.findAncestor(Er,e.or(e.isSourceFile,e.isModuleDeclaration));return qi=5,Xn=!1,(ee=un.locals)===null||ee===void 0||ee.forEach(function($n,Ii){var at,Ji;ot.push($n),((Ji=(at=un.symbol)===null||at===void 0?void 0:at.exports)===null||Ji===void 0?void 0:Ji.has(Ii))&&(Va[e.getSymbolId($n)]=ne.SortText.OptionalMember)}),1}function na(){var ee=ze(Te,gi,Dn,Qe);if(!ee)return 0;if(qi=3,Xn=!0,On=gi.kind===41?0:e.isClassLike(ee)?2:3,!e.isClassLike(ee))return 1;var Er=gi.kind===26?gi.parent.parent:gi.parent,un=e.isClassElement(Er)?e.getEffectiveModifierFlags(Er):0;if(gi.kind===79&&!Ss(gi))switch(gi.getText()){case"private":un=un|8;break;case"static":un=un|32;break;case"override":un=un|16384;break}if(e.isClassStaticBlockDeclaration(Er)&&(un|=32),!(un&8)){var $n=e.isClassLike(ee)&&un&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(ee)):e.getAllSuperTypeNodes(ee),Ii=e.flatMap($n,function(at){var Ji=Or.getTypeAtLocation(at);return un&32?(Ji==null?void 0:Ji.symbol)&&Or.getPropertiesOfType(Or.getTypeOfSymbolAtLocation(Ji.symbol,ee)):Ji&&Or.getPropertiesOfType(Ji)});ot=e.concatenate(ot,Vs(Ii,ee.members,un))}return 1}function Ia(ee){return!!ee.parent&&e.isParameter(ee.parent)&&e.isConstructorDeclaration(ee.parent.parent)&&(e.isParameterPropertyModifier(ee.kind)||e.isDeclarationName(ee))}function bs(ee){if(ee){var Er=ee.parent;switch(ee.kind){case 20:case 27:return e.isConstructorDeclaration(ee.parent)?ee.parent:void 0;default:if(Ia(ee))return Er.parent}}}function ds(ee){if(ee){var Er,un=e.findAncestor(ee.parent,function($n){return e.isClassLike($n)?"quit":e.isFunctionLikeDeclaration($n)&&Er===$n.body?!0:(Er=$n,!1)});return un&&un}}function ps(ee){if(ee){var Er=ee.parent;switch(ee.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(Er&&(Er.kind===282||Er.kind===283)){if(ee.kind===31){var un=e.findPrecedingToken(ee.pos,Te,void 0);if(!Er.typeArguments||un&&un.kind===43)break}return Er}else if(Er.kind===288)return Er.parent.parent;break;case 10:if(Er&&(Er.kind===288||Er.kind===290))return Er.parent.parent;break;case 19:if(Er&&Er.kind===291&&Er.parent&&Er.parent.kind===288)return Er.parent.parent.parent;if(Er&&Er.kind===290)return Er.parent.parent;break}}}function ac(ee){var Er=ee.parent,un=Er.kind;switch(ee.kind){case 27:return un===257||$s(ee)||un===240||un===263||ns(un)||un===261||un===204||un===262||e.isClassLike(Er)&&!!Er.typeParameters&&Er.typeParameters.end>=ee.pos;case 24:return un===204;case 58:return un===205;case 22:return un===204;case 20:return un===295||ns(un);case 18:return un===263;case 29:return un===260||un===228||un===261||un===262||e.isFunctionLikeKind(un);case 124:return un===169&&!e.isClassLike(Er.parent);case 25:return un===166||!!Er.parent&&Er.parent.kind===204;case 123:case 121:case 122:return un===166&&!e.isConstructorDeclaration(Er.parent);case 128:return un===273||un===278||un===271;case 137:case 151:return!cr(ee);case 79:if(un===273&&ee===Er.name&&ee.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return un!==273;case 41:return e.isFunctionLike(ee.parent)&&!e.isMethodDeclaration(ee.parent)}if(kr(Cr(ee))&&cr(ee)||Ia(ee)&&(!e.isIdentifier(ee)||e.isParameterPropertyModifier(Cr(ee))||Ss(ee)))return!1;switch(Cr(ee)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return e.isPropertyDeclaration(ee.parent)}var $n=e.findAncestor(ee.parent,e.isClassLike);if($n&&ee===Ni&&Es(ee,Qe))return!1;var Ii=e.getAncestor(ee.parent,169);if(Ii&&ee!==Ni&&e.isClassLike(Ni.parent.parent)&&Qe<=Ni.end){if(Es(ee,Ni.end))return!1;if(ee.kind!==63&&(e.isInitializedProperty(Ii)||e.hasType(Ii)))return!0}return e.isDeclarationName(ee)&&!e.isShorthandPropertyAssignment(ee.parent)&&!e.isJsxAttribute(ee.parent)&&!(e.isClassLike(ee.parent)&&(ee!==Ni||Qe>Ni.end))}function Es(ee,Er){return ee.kind!==63&&(ee.kind===26||!e.positionsAreOnSameLine(ee.end,Er,Te))}function ns(ee){return e.isFunctionLikeKind(ee)&&ee!==173}function dc(ee){if(ee.kind===8){var Er=ee.getFullText();return Er.charAt(Er.length-1)==="."}return!1}function $s(ee){return ee.parent.kind===258&&!e.isPossiblyTypeArgumentPosition(ee,Te,Or)}function pc(ee,Er){if(Er.length===0)return ee;for(var un=new e.Set,$n=new e.Set,Ii=0,at=Er;Ii<at.length;Ii++){var Ji=at[Ii];if(!(Ji.kind!==299&&Ji.kind!==300&&Ji.kind!==205&&Ji.kind!==171&&Ji.kind!==174&&Ji.kind!==175&&Ji.kind!==301)&&!Ss(Ji)){var _t=void 0;if(e.isSpreadAssignment(Ji))js(Ji,un);else if(e.isBindingElement(Ji)&&Ji.propertyName)Ji.propertyName.kind===79&&(_t=Ji.propertyName.escapedText);else{var Ht=e.getNameOfDeclaration(Ji);_t=Ht&&e.isPropertyNameLiteral(Ht)?e.getEscapedTextOfIdentifierOrLiteral(Ht):void 0}_t!==void 0&&$n.add(_t)}}var Rt=ee.filter(function(va){return!$n.has(va.escapedName)});return Ko(un,Rt),Rt}function js(ee,Er){var un=ee.expression,$n=Or.getSymbolAtLocation(un),Ii=$n&&Or.getTypeOfSymbolAtLocation($n,un),at=Ii&&Ii.properties;at&&at.forEach(function(Ji){Er.add(Ji.name)})}function Sc(){ot.forEach(function(ee){var Er;if(ee.flags&16777216){var un=e.getSymbolId(ee);Va[un]=(Er=Va[un])!==null&&Er!==void 0?Er:ne.SortText.OptionalMember}})}function Ko(ee,Er){if(ee.size!==0)for(var un=0,$n=Er;un<$n.length;un++){var Ii=$n[un];ee.has(Ii.name)&&(Va[e.getSymbolId(Ii)]=ne.SortText.MemberDeclaredBySpreadAssignment)}}function Mc(ee){for(var Er,un=ee;un<ot.length;un++){var $n=ot[un],Ii=e.getSymbolId($n),at=ni==null?void 0:ni[un],Ji=e.getEmitScriptTarget(Ye),_t=mr($n,Ji,at,0,!1);if(_t){var Ht=(Er=Va[Ii])!==null&&Er!==void 0?Er:ne.SortText.LocationPriority,Rt=_t.name;Va[Ii]=ne.SortText.ObjectLiteralProperty(Ht,Rt)}}}function Vs(ee,Er,un){for(var $n=new e.Set,Ii=0,at=Er;Ii<at.length;Ii++){var Ji=at[Ii];if(!(Ji.kind!==169&&Ji.kind!==171&&Ji.kind!==174&&Ji.kind!==175)&&!Ss(Ji)&&!e.hasEffectiveModifier(Ji,8)&&e.isStatic(Ji)===!!(un&32)){var _t=e.getPropertyNameForPropertyNameNode(Ji.name);_t&&$n.add(_t)}}return ee.filter(function(Ht){return!$n.has(Ht.escapedName)&&!!Ht.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Ht)&8)&&!(Ht.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Ht.valueDeclaration))})}function oc(ee,Er){for(var un=new e.Set,$n=new e.Set,Ii=0,at=Er;Ii<at.length;Ii++){var Ji=at[Ii];Ss(Ji)||(Ji.kind===288?un.add(Ji.name.escapedText):e.isJsxSpreadAttribute(Ji)&&js(Ji,$n))}var _t=ee.filter(function(Ht){return!un.has(Ht.escapedName)});return Ko($n,_t),_t}function Ss(ee){return ee.getStart(Te)<=Qe&&Qe<=ee.getEnd()}}function Re(je){if(je){var Sr=je.parent;switch(je.kind){case 18:case 27:if(e.isObjectLiteralExpression(Sr)||e.isObjectBindingPattern(Sr))return Sr;break;case 41:return e.isMethodDeclaration(Sr)?e.tryCast(Sr.parent,e.isObjectLiteralExpression):void 0;case 79:return je.text==="async"&&e.isShorthandPropertyAssignment(je.parent)?je.parent.parent:void 0}}}function er(je,Sr){var Te=e.findPrecedingToken(je,Sr);if(Te&&je<=Te.end&&(e.isMemberName(Te)||e.isKeyword(Te.kind))){var Ye=e.findPrecedingToken(Te.getFullStart(),Sr,void 0);return{contextToken:Ye,previousToken:Te}}return{contextToken:Te,previousToken:Te}}function wr(je,Sr,Te,Ye){var Qe=Sr.isPackageJsonImport?Ye.getPackageJsonAutoImportProvider():Te,ue=Qe.getTypeChecker(),Ke=Sr.ambientModuleName?ue.tryFindAmbientModule(Sr.ambientModuleName):Sr.fileName?ue.getMergedSymbol(e.Debug.checkDefined(Qe.getSourceFile(Sr.fileName)).symbol):void 0;if(!!Ke){var tr=Sr.exportName==="export="?ue.resolveExternalModuleSymbol(Ke):ue.tryGetMemberInModuleExportsAndProperties(Sr.exportName,Ke);if(!!tr){var hr=Sr.exportName==="default";return tr=hr&&e.getLocalSymbolForExportDefault(tr)||tr,{symbol:tr,origin:B(Sr,je,Ke)}}}}function mr(je,Sr,Te,Ye,Qe){var ue=p(Te)?Te.symbolName:je.name;if(!(ue===void 0||je.flags&1536&&e.isSingleOrDoubleQuote(ue.charCodeAt(0))||e.isKnownSymbol(je))){var Ke={name:ue,needsConvertPropertyAccess:!1};if(e.isIdentifierText(ue,Sr,Qe?1:0)||je.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(je.valueDeclaration))return Ke;switch(Ye){case 3:return;case 0:return{name:JSON.stringify(ue),needsConvertPropertyAccess:!1};case 2:case 1:return ue.charCodeAt(0)===32?void 0:{name:ue,needsConvertPropertyAccess:!0};case 5:case 4:return Ke;default:e.Debug.assertNever(Ye)}}}var Ue=[],t=e.memoize(function(){for(var je=[],Sr=81;Sr<=162;Sr++)je.push({name:e.tokenToString(Sr),kind:"keyword",kindModifiers:"",sortText:ne.SortText.GlobalsOrKeywords});return je});function qr(je,Sr){if(!Sr)return ln(je);var Te=je+8+1;return Ue[Te]||(Ue[Te]=ln(je).filter(function(Ye){return!dr(e.stringToToken(Ye.name))}))}function ln(je){return Ue[je]||(Ue[je]=t().filter(function(Sr){var Te=e.stringToToken(Sr.name);switch(je){case 0:return!1;case 1:return Ur(Te)||Te===136||Te===142||Te===154||Te===143||Te===126||e.isTypeKeyword(Te)&&Te!==155;case 5:return Ur(Te);case 2:return kr(Te);case 3:return vr(Te);case 4:return e.isParameterPropertyModifier(Te);case 6:return e.isTypeKeyword(Te)||Te===85;case 7:return e.isTypeKeyword(Te);case 8:return Te===154;default:return e.Debug.assertNever(je)}}))}function dr(je){switch(je){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function vr(je){return je===146}function kr(je){switch(je){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return e.isClassMemberModifier(je)}}function Ur(je){return je===132||je===133||je===128||je===150||je===154||!e.isContextualKeyword(je)&&!kr(je)}function Cr(je){return e.isIdentifier(je)?je.originalKeywordKind||0:je.kind}function rn(je,Sr){var Te=[];if(je){var Ye=je.getSourceFile(),Qe=je.parent,ue=Ye.getLineAndCharacterOfPosition(je.end).line,Ke=Ye.getLineAndCharacterOfPosition(Sr).line;(e.isImportDeclaration(Qe)||e.isExportDeclaration(Qe)&&Qe.moduleSpecifier)&&je===Qe.moduleSpecifier&&ue===Ke&&Te.push({name:e.tokenToString(130),kind:"keyword",kindModifiers:"",sortText:ne.SortText.GlobalsOrKeywords})}return Te}function Br(je,Sr){return e.findAncestor(je,function(Te){return e.isJSDocTag(Te)&&e.rangeContainsPosition(Te,Sr)?!0:e.isJSDoc(Te)?"quit":!1})}function pn(je,Sr,Te,Ye){var Qe=Sr&&Sr!==je,ue=Qe&&!(Sr.flags&3)?Ye.getUnionType([je,Sr]):je,Ke=ve(ue,Te,Ye);return ue.isClass()&&or(Ke)?[]:Qe?e.filter(Ke,tr):Ke;function tr(hr){return e.length(hr.declarations)?e.some(hr.declarations,function(_r){return _r.parent!==Te}):!0}}ne.getPropertiesForObjectExpression=pn;function ve(je,Sr,Te){return je.isUnion()?Te.getAllPossiblePropertiesOfTypes(e.filter(je.types,function(Ye){return!(Ye.flags&131068||Te.isArrayLikeType(Ye)||Te.isTypeInvalidDueToUnionDiscriminant(Ye,Sr)||e.typeHasCallOrConstructSignatures(Ye,Te)||Ye.isClass()&&or(Ye.getApparentProperties()))})):je.getApparentProperties()}function or(je){return e.some(je,function(Sr){return!!(e.getDeclarationModifierFlagsFromSymbol(Sr)&24)})}function Ee(je,Sr){return je.isUnion()?e.Debug.checkEachDefined(Sr.getAllPossiblePropertiesOfTypes(je.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(je.getApparentProperties(),"getApparentProperties() should all be defined")}function ze(je,Sr,Te,Ye){switch(Te.kind){case 351:return e.tryCast(Te.parent,e.isObjectTypeDeclaration);case 1:var Qe=e.tryCast(e.lastOrUndefined(e.cast(Te.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(Qe&&!e.findChildOfKind(Qe,19,je))return Qe;break;case 79:{var ue=Te.originalKeywordKind;if(ue&&e.isKeyword(ue)||e.isPropertyDeclaration(Te.parent)&&Te.parent.initializer===Te)return;if(cr(Te))return e.findAncestor(Te,e.isObjectTypeDeclaration)}}if(!!Sr){if(Te.kind===135||e.isIdentifier(Sr)&&e.isPropertyDeclaration(Sr.parent)&&e.isClassLike(Te))return e.findAncestor(Sr,e.isClassLike);switch(Sr.kind){case 63:return;case 26:case 19:return cr(Te)&&Te.parent.name===Te?Te.parent.parent:e.tryCast(Te,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(Sr.parent,e.isObjectTypeDeclaration);default:if(!cr(Sr))return e.getLineAndCharacterOfPosition(je,Sr.getEnd()).line!==e.getLineAndCharacterOfPosition(je,Ye).line&&e.isObjectTypeDeclaration(Te)?Te:void 0;var Ke=e.isClassLike(Sr.parent.parent)?kr:vr;return Ke(Sr.kind)||Sr.kind===41||e.isIdentifier(Sr)&&Ke(e.stringToToken(Sr.text))?Sr.parent.parent:void 0}}}function Ar(je){if(!!je){var Sr=je.parent;switch(je.kind){case 18:if(e.isTypeLiteralNode(Sr))return Sr;break;case 26:case 27:case 79:if(Sr.kind===168&&e.isTypeLiteralNode(Sr.parent))return Sr.parent;break}}}function xe(je,Sr){if(!!je){if(e.isTypeNode(je)&&e.isTypeReferenceType(je.parent))return Sr.getTypeArgumentConstraint(je);var Te=xe(je.parent,Sr);if(!!Te)switch(je.kind){case 168:return Sr.getTypeOfPropertyOfContextualType(Te,je.symbol.escapedName);case 190:case 184:case 189:return Te}}}function cr(je){return je.parent&&e.isClassOrTypeElement(je.parent)&&e.isObjectTypeDeclaration(je.parent.parent)}function Mr(je,Sr,Te,Ye){switch(Sr){case".":case"@":return!0;case'"':case"'":case"`":return!!Te&&e.isStringLiteralOrTemplate(Te)&&Ye===Te.getStart(je)+1;case"#":return!!Te&&e.isPrivateIdentifier(Te)&&!!e.getContainingClass(Te);case"<":return!!Te&&Te.kind===29&&(!e.isBinaryExpression(Te.parent)||Rr(Te.parent));case"/":return!!Te&&(e.isStringLiteralLike(Te)?!!e.tryGetImportFromModuleSpecifier(Te):Te.kind===43&&e.isJsxClosingElement(Te.parent));case" ":return!!Te&&e.isImportKeyword(Te)&&Te.parent.kind===308;default:return e.Debug.assertNever(Sr)}}function Rr(je){var Sr=je.left;return e.nodeIsMissing(Sr)}function Qr(je,Sr,Te){var Ye=Te.resolveName("self",void 0,111551,!1);if(Ye&&Te.getTypeOfSymbolAtLocation(Ye,Sr)===je)return!0;var Qe=Te.resolveName("global",void 0,111551,!1);if(Qe&&Te.getTypeOfSymbolAtLocation(Qe,Sr)===je)return!0;var ue=Te.resolveName("globalThis",void 0,111551,!1);return!!(ue&&Te.getTypeOfSymbolAtLocation(ue,Sr)===je)}function en(je){return!!(je.valueDeclaration&&e.getEffectiveModifierFlags(je.valueDeclaration)&32&&e.isClassLike(je.valueDeclaration.parent))}function vn(je,Sr){var Te=Sr.getContextualType(je);if(Te)return Te;var Ye=e.walkUpParenthesizedExpressions(je.parent);if(e.isBinaryExpression(Ye)&&Ye.operatorToken.kind===63&&je===Ye.left)return Sr.getTypeAtLocation(Ye);if(e.isExpression(Ye))return Sr.getContextualType(Ye)}function Ie(je){var Sr,Te,Ye,Qe,ue=!1,Ke=tr();return{isKeywordOnlyCompletion:ue,keywordCompletion:Qe,isNewIdentifierLocation:!!(Ke||Qe===154),isTopLevelTypeOnly:!!((Te=(Sr=e.tryCast(Ke,e.isImportDeclaration))===null||Sr===void 0?void 0:Sr.importClause)===null||Te===void 0?void 0:Te.isTypeOnly)||!!((Ye=e.tryCast(Ke,e.isImportEqualsDeclaration))===null||Ye===void 0?void 0:Ye.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!Ke&&Lr(Ke,je),replacementSpan:We(Ke)};function tr(){var hr=je.parent;if(e.isImportEqualsDeclaration(hr))return Qe=je.kind===154?void 0:154,An(hr.moduleReference)?hr:void 0;if(Lr(hr,je)&&xn(hr.parent))return hr;if(e.isNamedImports(hr)||e.isNamespaceImport(hr)){if(!hr.parent.isTypeOnly&&(je.kind===18||je.kind===100||je.kind===27)&&(Qe=154),xn(hr))if(je.kind===19||je.kind===79)ue=!0,Qe=158;else return hr.parent.parent;return}if(e.isImportKeyword(je)&&e.isSourceFile(hr))return Qe=154,je;if(e.isImportKeyword(je)&&e.isImportDeclaration(hr))return Qe=154,An(hr.moduleSpecifier)?hr:void 0}}function We(je){var Sr,Te,Ye;if(!!je){var Qe=(Sr=e.findAncestor(je,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration)))!==null&&Sr!==void 0?Sr:je,ue=Qe.getSourceFile();if(e.rangeIsOnSingleLine(Qe,ue))return e.createTextSpanFromNode(Qe,ue);e.Debug.assert(Qe.kind!==100&&Qe.kind!==273);var Ke=Qe.kind===269?(Ye=xr((Te=Qe.importClause)===null||Te===void 0?void 0:Te.namedBindings))!==null&&Ye!==void 0?Ye:Qe.moduleSpecifier:Qe.moduleReference,tr={pos:Qe.getFirstToken().getStart(),end:Ke.pos};if(e.rangeIsOnSingleLine(tr,ue))return e.createTextSpanFromRange(tr)}}function xr(je){var Sr;return e.find((Sr=e.tryCast(je,e.isNamedImports))===null||Sr===void 0?void 0:Sr.elements,function(Te){var Ye;return!Te.propertyName&&e.isStringANonContextualKeyword(Te.name.text)&&((Ye=e.findPrecedingToken(Te.name.pos,je.getSourceFile(),je))===null||Ye===void 0?void 0:Ye.kind)!==27})}function Lr(je,Sr){return e.isImportSpecifier(je)&&(je.isTypeOnly||Sr===je.name&&e.isTypeKeywordTokenOrIdentifier(Sr))}function xn(je){if(!An(je.parent.parent.moduleSpecifier)||je.parent.name)return!1;if(e.isNamedImports(je)){var Sr=xr(je),Te=Sr?je.elements.indexOf(Sr):je.elements.length;return Te<2}return!0}function An(je){var Sr;return e.nodeIsMissing(je)?!0:!((Sr=e.tryCast(e.isExternalModuleReference(je)?je.expression:je,e.isStringLiteralLike))===null||Sr===void 0?void 0:Sr.text)}function Qn(je){var Sr=e.findAncestor(je,function(Te){return e.isFunctionBlock(Te)||ai(Te)||e.isBindingPattern(Te)?"quit":e.isVariableDeclaration(Te)});return Sr}function ai(je){return je.parent&&e.isArrowFunction(je.parent)&&je.parent.body===je}function Dr(je,Sr,Te){return Te===void 0&&(Te=new e.Map),Ye(je)||Ye(e.skipAlias(je.exportSymbol||je,Sr));function Ye(Qe){return!!(Qe.flags&788968)||Sr.isUnknownSymbol(Qe)||!!(Qe.flags&1536)&&e.addToSeen(Te,e.getSymbolId(Qe))&&Sr.getExportsOfModule(Qe).some(function(ue){return Dr(ue,Sr,Te)})}}function Pr(je,Sr){var Te=e.skipAlias(je,Sr).declarations;return!!e.length(Te)&&e.every(Te,e.isDeprecatedDeclaration)}function jr(je,Sr){if(Sr.length===0)return!0;for(var Te=!1,Ye,Qe=0,ue=je.length,Ke=0;Ke<ue;Ke++){var tr=je.charCodeAt(Ke),hr=Sr.charCodeAt(Qe);if((tr===hr||tr===on(hr))&&(Te||(Te=Ye===void 0||97<=Ye&&Ye<=122&&65<=tr&&tr<=90||Ye===95&&tr!==95),Te&&Qe++,Qe===Sr.length))return!0;Ye=tr}return!1}function on(je){return 97<=je&&je<=122?je-32:je}})(o=e.Completions||(e.Completions={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(V,h,F,$,L){var P=e.getTouchingPropertyName(F,$);if(P.parent&&(e.isJsxOpeningElement(P.parent)&&P.parent.tagName===P||e.isJsxClosingElement(P.parent))){var N=P.parent.parent,J=N.openingElement,q=N.closingElement,G=[J,q].map(function(ye){var b=ye.tagName;return se(b,F)});return[{fileName:F.fileName,highlightSpans:G}]}return O($,P,V,h,L)||ie(P,F)}ne.getDocumentHighlights=K;function se(V,h){return{fileName:h.fileName,textSpan:e.createTextSpanFromNode(V,h),kind:"none"}}function O(V,h,F,$,L){var P=new e.Set(L.map(function(G){return G.fileName})),N=e.FindAllReferences.getReferenceEntriesForNode(V,h,F,L,$,void 0,P);if(!!N){var J=e.arrayToMultiMap(N.map(e.FindAllReferences.toHighlightSpan),function(G){return G.fileName},function(G){return G.span}),q=e.createGetCanonicalFileName(F.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(J.entries()),function(G){var ye=G[0],b=G[1];if(!P.has(ye)){if(!F.redirectTargetsMap.has(e.toPath(ye,F.getCurrentDirectory(),q)))return;var x=F.getSourceFile(ye),T=e.find(L,function(Z){return!!Z.redirectInfo&&Z.redirectInfo.redirectTarget===x});ye=T.fileName,e.Debug.assert(P.has(ye))}return{fileName:ye,highlightSpans:b}})}}function ie(V,h){var F=_e(V,h);return F&&[{fileName:h.fileName,highlightSpans:F}]}function _e(V,h){switch(V.kind){case 99:case 91:return e.isIfStatement(V.parent)?X(V.parent,h):void 0;case 105:return L(V.parent,e.isReturnStatement,k);case 109:return L(V.parent,e.isThrowStatement,S);case 111:case 83:case 96:var F=V.kind===83?V.parent.parent:V.parent;return L(F,e.isTryStatement,y);case 107:return L(V.parent,e.isSwitchStatement,m);case 82:case 88:return e.isDefaultClause(V.parent)||e.isCaseClause(V.parent)?L(V.parent.parent.parent,e.isSwitchStatement,m):void 0;case 81:case 86:return L(V.parent,e.isBreakOrContinueStatement,f);case 97:case 115:case 90:return L(V.parent,function(N){return e.isIterationStatement(N,!0)},I);case 135:return $(e.isConstructorDeclaration,[135]);case 137:case 151:return $(e.isAccessor,[137,151]);case 133:return L(V.parent,e.isAwaitExpression,C);case 132:return P(C(V));case 125:return P(me(V));case 101:return;default:return e.isModifierKind(V.kind)&&(e.isDeclaration(V.parent)||e.isVariableStatement(V.parent))?P(oe(V.kind,V.parent)):void 0}function $(N,J){return L(V.parent,N,function(q){return e.mapDefined(q.symbol.declarations,function(G){return N(G)?e.find(G.getChildren(h),function(ye){return e.contains(J,ye.kind)}):void 0})})}function L(N,J,q){return J(N)?P(q(N,h)):void 0}function P(N){return N&&N.map(function(J){return se(J,h)})}}function Q(V){return e.isThrowStatement(V)?[V]:e.isTryStatement(V)?e.concatenate(V.catchClause?Q(V.catchClause):V.tryBlock&&Q(V.tryBlock),V.finallyBlock&&Q(V.finallyBlock)):e.isFunctionLike(V)?void 0:le(V,Q)}function p(V){for(var h=V;h.parent;){var F=h.parent;if(e.isFunctionBlock(F)||F.kind===308)return F;if(e.isTryStatement(F)&&F.tryBlock===h&&F.catchClause)return h;h=F}}function D(V){return e.isBreakOrContinueStatement(V)?[V]:e.isFunctionLike(V)?void 0:le(V,D)}function le(V,h){var F=[];return V.forEachChild(function($){var L=h($);L!==void 0&&F.push.apply(F,e.toArray(L))}),F}function de(V,h){var F=te(h);return!!F&&F===V}function te(V){return e.findAncestor(V,function(h){switch(h.kind){case 252:if(V.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!V.label||H(h,V.label.escapedText);default:return e.isFunctionLike(h)&&"quit"}})}function oe(V,h){return e.mapDefined(ae(h,e.modifierToFlag(V)),function(F){return e.findModifier(F,V)})}function ae(V,h){var F=V.parent;switch(F.kind){case 265:case 308:case 238:case 292:case 293:return h&256&&e.isClassDeclaration(V)?zn(zn([],V.members,!0),[V],!1):F.statements;case 173:case 171:case 259:return zn(zn([],F.parameters,!0),e.isClassLike(F.parent)?F.parent.members:[],!0);case 260:case 228:case 261:case 184:var $=F.members;if(h&(28|64)){var L=e.find(F.members,e.isConstructorDeclaration);if(L)return zn(zn([],$,!0),L.parameters,!0)}else if(h&256)return zn(zn([],$,!0),[F],!1);return $;case 207:return;default:e.Debug.assertNever(F,"Invalid container kind.")}}function E(V,h){for(var F=[],$=2;$<arguments.length;$++)F[$-2]=arguments[$];return h&&e.contains(F,h.kind)?(V.push(h),!0):!1}function I(V){var h=[];if(E(h,V.getFirstToken(),97,115,90)&&V.kind===243)for(var F=V.getChildren(),$=F.length-1;$>=0&&!E(h,F[$],115);$--);return e.forEach(D(V.statement),function(L){de(V,L)&&E(h,L.getFirstToken(),81,86)}),h}function f(V){var h=te(V);if(h)switch(h.kind){case 245:case 246:case 247:case 243:case 244:return I(h);case 252:return m(h)}}function m(V){var h=[];return E(h,V.getFirstToken(),107),e.forEach(V.caseBlock.clauses,function(F){E(h,F.getFirstToken(),82,88),e.forEach(D(F),function($){de(V,$)&&E(h,$.getFirstToken(),81)})}),h}function y(V,h){var F=[];if(E(F,V.getFirstToken(),111),V.catchClause&&E(F,V.catchClause.getFirstToken(),83),V.finallyBlock){var $=e.findChildOfKind(V,96,h);E(F,$,96)}return F}function S(V,h){var F=p(V);if(!!F){var $=[];return e.forEach(Q(F),function(L){$.push(e.findChildOfKind(L,109,h))}),e.isFunctionBlock(F)&&e.forEachReturnStatement(F,function(L){$.push(e.findChildOfKind(L,105,h))}),$}}function k(V,h){var F=e.getContainingFunction(V);if(!!F){var $=[];return e.forEachReturnStatement(e.cast(F.body,e.isBlock),function(L){$.push(e.findChildOfKind(L,105,h))}),e.forEach(Q(F.body),function(L){$.push(e.findChildOfKind(L,109,h))}),$}}function C(V){var h=e.getContainingFunction(V);if(!!h){var F=[];return h.modifiers&&h.modifiers.forEach(function($){E(F,$,132)}),e.forEachChild(h,function($){De($,function(L){e.isAwaitExpression(L)&&E(F,L.getFirstToken(),133)})}),F}}function me(V){var h=e.getContainingFunction(V);if(!!h){var F=[];return e.forEachChild(h,function($){De($,function(L){e.isYieldExpression(L)&&E(F,L.getFirstToken(),125)})}),F}}function De(V,h){h(V),!e.isFunctionLike(V)&&!e.isClassLike(V)&&!e.isInterfaceDeclaration(V)&&!e.isModuleDeclaration(V)&&!e.isTypeAliasDeclaration(V)&&!e.isTypeNode(V)&&e.forEachChild(V,function(F){return De(F,h)})}function X(V,h){for(var F=M(V,h),$=[],L=0;L<F.length;L++){if(F[L].kind===91&&L<F.length-1){for(var P=F[L],N=F[L+1],J=!0,q=N.getStart(h)-1;q>=P.end;q--)if(!e.isWhiteSpaceSingleLine(h.text.charCodeAt(q))){J=!1;break}if(J){$.push({fileName:h.fileName,textSpan:e.createTextSpanFromBounds(P.getStart(),N.end),kind:"reference"}),L++;continue}}$.push(se(F[L],h))}return $}function M(V,h){for(var F=[];e.isIfStatement(V.parent)&&V.parent.elseStatement===V;)V=V.parent;for(;;){var $=V.getChildren(h);E(F,$[0],99);for(var L=$.length-1;L>=0&&!E(F,$[L],91);L--);if(!V.elseStatement||!e.isIfStatement(V.elseStatement))break;V=V.elseStatement}return F}function H(V,h){return!!e.findAncestor(V.parent,function(F){return e.isLabeledStatement(F)?F.label.escapedText===h:"quit"})}})(o=e.DocumentHighlights||(e.DocumentHighlights={}))})(fr||(fr={}));var fr;(function(e){function o(_e){return!!_e.sourceFile}function ne(_e,Q){return K(_e,Q)}e.createDocumentRegistry=ne;function K(_e,Q,p){Q===void 0&&(Q="");var D=new e.Map,le=e.createGetCanonicalFileName(!!_e);function de(){var C=e.arrayFrom(D.keys()).filter(function(me){return me&&me.charAt(0)==="_"}).map(function(me){var De=D.get(me),X=[];return De.forEach(function(M,H){o(M)?X.push({name:H,scriptKind:M.sourceFile.scriptKind,refCount:M.languageServiceRefCount}):M.forEach(function(V,h){return X.push({name:H,scriptKind:h,refCount:V.languageServiceRefCount})})}),X.sort(function(M,H){return H.refCount-M.refCount}),{bucket:me,sourceFiles:X}});return JSON.stringify(C,void 0,2)}function te(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function oe(C,me,De,X,M,H){var V=e.toPath(C,Q,le),h=O(te(me));return ae(C,V,me,h,De,X,M,H)}function ae(C,me,De,X,M,H,V,h){return m(C,me,De,X,M,H,!0,V,h)}function E(C,me,De,X,M,H){var V=e.toPath(C,Q,le),h=O(te(me));return I(C,V,me,h,De,X,M,H)}function I(C,me,De,X,M,H,V,h){return m(C,me,te(De),X,M,H,!1,V,h)}function f(C,me){var De=o(C)?C:C.get(e.Debug.checkDefined(me,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(me===void 0||!De||De.sourceFile.scriptKind===me,"Script kind should match provided ScriptKind:".concat(me," and sourceFile.scriptKind: ").concat(De==null?void 0:De.sourceFile.scriptKind,", !entry: ").concat(!De)),De}function m(C,me,De,X,M,H,V,h,F){var $,L,P,N;h=e.ensureScriptKind(C,h);var J=te(De),q=De===J?void 0:De,G=h===6?100:e.getEmitScriptTarget(J),ye=typeof F=="object"?F:{languageVersion:G,impliedNodeFormat:q&&e.getImpliedNodeFormatForFile(me,(N=(P=(L=($=q.getCompilerHost)===null||$===void 0?void 0:$.call(q))===null||L===void 0?void 0:L.getModuleResolutionCache)===null||P===void 0?void 0:P.call(L))===null||N===void 0?void 0:N.getPackageJsonInfoCache(),q,J),setExternalModuleIndicator:e.getSetExternalModuleIndicator(J)};ye.languageVersion=G;var b=D.size,x=ie(X,ye.impliedNodeFormat),T=e.getOrUpdate(D,x,function(){return new e.Map});if(e.tracing){D.size>b&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:J.configFilePath,key:x});var Z=!e.isDeclarationFileName(me)&&e.forEachEntry(D,function(z,U){return U!==x&&z.has(me)&&U});Z&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:me,key1:Z,key2:x})}var B=T.get(me),u=B&&f(B,h);if(!u&&p){var A=p.getDocument(x,me);A&&(e.Debug.assert(V),u={sourceFile:A,languageServiceRefCount:0},w())}if(u)u.sourceFile.version!==H&&(u.sourceFile=e.updateLanguageServiceSourceFile(u.sourceFile,M,H,M.getChangeRange(u.sourceFile.scriptSnapshot)),p&&p.setDocument(x,me,u.sourceFile)),V&&u.languageServiceRefCount++;else{var A=e.createLanguageServiceSourceFile(C,M,ye,H,!1,h);p&&p.setDocument(x,me,A),u={sourceFile:A,languageServiceRefCount:1},w()}return e.Debug.assert(u.languageServiceRefCount!==0),u.sourceFile;function w(){if(!B)T.set(me,u);else if(o(B)){var z=new e.Map;z.set(B.sourceFile.scriptKind,B),z.set(h,u),T.set(me,z)}else B.set(h,u)}}function y(C,me,De,X){var M=e.toPath(C,Q,le),H=O(me);return S(M,H,De,X)}function S(C,me,De,X){var M=e.Debug.checkDefined(D.get(ie(me,X))),H=M.get(C),V=f(H,De);V.languageServiceRefCount--,e.Debug.assert(V.languageServiceRefCount>=0),V.languageServiceRefCount===0&&(o(H)?M.delete(C):(H.delete(De),H.size===1&&M.set(C,e.firstDefinedIterator(H.values(),e.identity))))}function k(C,me){return e.arrayFrom(D.entries(),function(De){var X=De[0],M=De[1],H=M.get(C),V=H&&f(H,me);return[X,V&&V.languageServiceRefCount]})}return{acquireDocument:oe,acquireDocumentWithKey:ae,updateDocument:E,updateDocumentWithKey:I,releaseDocument:y,releaseDocumentWithKey:S,getLanguageServiceRefCounts:k,reportStats:de,getKeyForCompilationSettings:O}}e.createDocumentRegistryInternal=K;function se(_e){var Q;if(_e===null||typeof _e!="object")return""+_e;if(e.isArray(_e))return"[".concat((Q=e.map(_e,function(le){return se(le)}))===null||Q===void 0?void 0:Q.join(","),"]");var p="{";for(var D in _e)e.hasProperty(_e,D)&&(p+="".concat(D,": ").concat(se(_e[D])));return p+"}"}function O(_e){return e.sourceFileAffectingCompilerOptions.map(function(Q){return se(e.getCompilerOptionValue(_e,Q))}).join("|")+(_e.pathsBasePath?"|".concat(_e.pathsBasePath):void 0)}function ie(_e,Q){return Q?"".concat(_e,"|").concat(Q):_e}})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(C,me,De,X){var M=D(C,De,X);return function(H,V,h){var F=ie(C,me,M,V,De,X),$=F.directImports,L=F.indirectUsers;return vi({indirectUsers:L},_e($,H,V.exportKind,De,h))}}ne.createImportTracker=K;var se;(function(C){C[C.Named=0]="Named",C[C.Default=1]="Default",C[C.ExportEquals=2]="ExportEquals"})(se=ne.ExportKind||(ne.ExportKind={}));var O;(function(C){C[C.Import=0]="Import",C[C.Export=1]="Export"})(O=ne.ImportExport||(ne.ImportExport={}));function ie(C,me,De,X,M,H){var V=X.exportingModuleSymbol,h=X.exportKind,F=e.nodeSeenTracker(),$=e.nodeSeenTracker(),L=[],P=!!V.globalExports,N=P?void 0:[];return q(V),{directImports:L,indirectUsers:J()};function J(){if(P)return C;if(V.declarations)for(var Z=0,B=V.declarations;Z<B.length;Z++){var u=B[Z];e.isExternalModuleAugmentation(u)&&me.has(u.getSourceFile().fileName)&&x(u)}return N.map(e.getSourceFileOfNode)}function q(Z){var B=T(Z);if(B)for(var u=0,A=B;u<A.length;u++){var w=A[u];if(!!F(w))switch(H&&H.throwIfCancellationRequested(),w.kind){case 210:if(e.isImportCall(w)){G(w);break}if(!P){var z=w.parent;if(h===2&&z.kind===257){var U=z.name;if(U.kind===79){L.push(U);break}}}break;case 79:break;case 268:b(w,w.name,e.hasSyntacticModifier(w,1),!1);break;case 269:L.push(w);var ge=w.importClause&&w.importClause.namedBindings;ge&&ge.kind===271?b(w,ge.name,!1,!0):!P&&e.isDefaultImport(w)&&x(y(w));break;case 275:w.exportClause?w.exportClause.kind===277?x(y(w),!0):L.push(w):q(m(w,M));break;case 202:!P&&w.isTypeOf&&!w.qualifier&&ye(w)&&x(w.getSourceFile(),!0),L.push(w);break;default:e.Debug.failBadSyntaxKind(w,"Unexpected import kind.")}}}function G(Z){var B=e.findAncestor(Z,S)||Z.getSourceFile();x(B,!!ye(Z,!0))}function ye(Z,B){return B===void 0&&(B=!1),e.findAncestor(Z,function(u){return B&&S(u)?"quit":e.canHaveModifiers(u)&&e.some(u.modifiers,e.isExportModifier)})}function b(Z,B,u,A){if(h===2)A||L.push(Z);else if(!P){var w=y(Z);e.Debug.assert(w.kind===308||w.kind===264),u||Q(w,B,M)?x(w,!0):x(w)}}function x(Z,B){B===void 0&&(B=!1),e.Debug.assert(!P);var u=$(Z);if(!!u&&(N.push(Z),!!B)){var A=M.getMergedSymbol(Z.symbol);if(!!A){e.Debug.assert(!!(A.flags&1536));var w=T(A);if(w)for(var z=0,U=w;z<U.length;z++){var ge=U[z];e.isImportTypeNode(ge)||x(y(ge),!0)}}}}function T(Z){return De.get(e.getSymbolId(Z).toString())}}function _e(C,me,De,X,M){var H=[],V=[];function h(G,ye){H.push([G,ye])}if(C)for(var F=0,$=C;F<$.length;F++){var L=$[F];P(L)}return{importSearches:H,singleReferences:V};function P(G){if(G.kind===268){k(G)&&N(G.name);return}if(G.kind===79){N(G);return}if(G.kind===202){if(G.qualifier){var ye=e.getFirstIdentifier(G.qualifier);ye.escapedText===e.symbolName(me)&&V.push(ye)}else De===2&&V.push(G.argument.literal);return}if(G.moduleSpecifier.kind===10){if(G.kind===275){G.exportClause&&e.isNamedExports(G.exportClause)&&J(G.exportClause);return}var b=G.importClause||{name:void 0,namedBindings:void 0},x=b.name,T=b.namedBindings;if(T)switch(T.kind){case 271:N(T.name);break;case 272:(De===0||De===1)&&J(T);break;default:e.Debug.assertNever(T)}if(x&&(De===1||De===2)&&(!M||x.escapedText===e.symbolEscapedNameNoDefault(me))){var Z=X.getSymbolAtLocation(x);h(x,Z)}}}function N(G){De===2&&(!M||q(G.escapedText))&&h(G,X.getSymbolAtLocation(G))}function J(G){if(!!G)for(var ye=0,b=G.elements;ye<b.length;ye++){var x=b[ye],T=x.name,Z=x.propertyName;if(!!q((Z||T).escapedText))if(Z)V.push(Z),(!M||T.escapedText===me.escapedName)&&h(T,X.getSymbolAtLocation(T));else{var B=x.kind===278&&x.propertyName?X.getExportSpecifierLocalTargetSymbol(x):X.getSymbolAtLocation(T);h(T,B)}}}function q(G){return G===me.escapedName||De!==0&&G==="default"}}function Q(C,me,De){var X=De.getSymbolAtLocation(me);return!!le(C,function(M){if(!!e.isExportDeclaration(M)){var H=M.exportClause,V=M.moduleSpecifier;return!V&&H&&e.isNamedExports(H)&&H.elements.some(function(h){return De.getExportSpecifierLocalTargetSymbol(h)===X})}})}function p(C,me,De){for(var X=[],M=C.getTypeChecker(),H=0,V=me;H<V.length;H++){var h=V[H],F=De.valueDeclaration;if((F==null?void 0:F.kind)===308){for(var $=0,L=h.referencedFiles;$<L.length;$++){var P=L[$];C.getSourceFileFromReference(h,P)===F&&X.push({kind:"reference",referencingFile:h,ref:P})}for(var N=0,J=h.typeReferenceDirectives;N<J.length;N++){var P=J[N],q=C.getResolvedTypeReferenceDirectives().get(P.fileName,P.resolutionMode||h.impliedNodeFormat);q!==void 0&&q.resolvedFileName===F.fileName&&X.push({kind:"reference",referencingFile:h,ref:P})}}de(h,function(G,ye){var b=M.getSymbolAtLocation(ye);b===De&&X.push({kind:"import",literal:ye})})}return X}ne.findModuleReferences=p;function D(C,me,De){for(var X=new e.Map,M=0,H=C;M<H.length;M++){var V=H[M];De&&De.throwIfCancellationRequested(),de(V,function(h,F){var $=me.getSymbolAtLocation(F);if($){var L=e.getSymbolId($).toString(),P=X.get(L);P||X.set(L,P=[]),P.push(h)}})}return X}function le(C,me){return e.forEach(C.kind===308?C.statements:C.body.statements,function(De){return me(De)||S(De)&&e.forEach(De.body&&De.body.statements,me)})}function de(C,me){if(C.externalModuleIndicator||C.imports!==void 0)for(var De=0,X=C.imports;De<X.length;De++){var M=X[De];me(e.importFromModuleSpecifier(M),M)}else le(C,function(H){switch(H.kind){case 275:case 269:{var V=H;V.moduleSpecifier&&e.isStringLiteral(V.moduleSpecifier)&&me(V,V.moduleSpecifier);break}case 268:{var V=H;k(V)&&me(V,V.moduleReference.expression);break}}})}function te(C,me,De,X){return X?M():M()||H();function M(){var F,$=C.parent,L=$.parent;if(me.exportSymbol)return $.kind===208?((F=me.declarations)===null||F===void 0?void 0:F.some(function(G){return G===$}))&&e.isBinaryExpression(L)?q(L,!1):void 0:V(me.exportSymbol,h($));var P=ae($,C);if(P&&e.hasSyntacticModifier(P,1))if(e.isImportEqualsDeclaration(P)&&P.moduleReference===C){if(X)return;var N=De.getSymbolAtLocation(P.name);return{kind:0,symbol:N}}else return V(me,h(P));else{if(e.isNamespaceExport($))return V(me,0);if(e.isExportAssignment($))return J($);if(e.isExportAssignment(L))return J(L);if(e.isBinaryExpression($))return q($,!0);if(e.isBinaryExpression(L))return q(L,!0);if(e.isJSDocTypedefTag($))return V(me,0)}function J(G){if(!!G.symbol.parent){var ye=G.isExportEquals?2:1;return{kind:1,symbol:me,exportInfo:{exportingModuleSymbol:G.symbol.parent,exportKind:ye}}}}function q(G,ye){var b;switch(e.getAssignmentDeclarationKind(G)){case 1:b=0;break;case 2:b=2;break;default:return}var x=ye?De.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(G.left,e.isAccessExpression))):me;return x&&V(x,b)}}function H(){var F=E(C);if(!!F){var $=De.getImmediateAliasedSymbol(me);if(!!$&&($=f($,De),!($.escapedName==="export="&&($=oe($,De),$===void 0)))){var L=e.symbolEscapedNameNoDefault($);if(L===void 0||L==="default"||L===me.escapedName)return{kind:0,symbol:$}}}}function V(F,$){var L=I(F,$,De);return L&&{kind:1,symbol:F,exportInfo:L}}function h(F){return e.hasSyntacticModifier(F,1024)?1:0}}ne.getImportOrExportSymbol=te;function oe(C,me){if(C.flags&2097152)return me.getImmediateAliasedSymbol(C);var De=e.Debug.checkDefined(C.valueDeclaration);if(e.isExportAssignment(De))return De.expression.symbol;if(e.isBinaryExpression(De))return De.right.symbol;if(e.isSourceFile(De))return De.symbol}function ae(C,me){var De=e.isVariableDeclaration(C)?C:e.isBindingElement(C)?e.walkUpBindingElementsAndPatterns(C):void 0;return De?C.name!==me||e.isCatchClause(De.parent)?void 0:e.isVariableStatement(De.parent.parent)?De.parent.parent:void 0:C}function E(C){var me=C.parent;switch(me.kind){case 268:return me.name===C&&k(me);case 273:return!me.propertyName;case 270:case 271:return e.Debug.assert(me.name===C),!0;case 205:return e.isInJSFile(C)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(me.parent.parent);default:return!1}}function I(C,me,De){var X=C.parent;if(!!X){var M=De.getMergedSymbol(X);return e.isExternalModuleSymbol(M)?{exportingModuleSymbol:M,exportKind:me}:void 0}}ne.getExportInfo=I;function f(C,me){if(C.declarations)for(var De=0,X=C.declarations;De<X.length;De++){var M=X[De];if(e.isExportSpecifier(M)&&!M.propertyName&&!M.parent.parent.moduleSpecifier)return me.getExportSpecifierLocalTargetSymbol(M);if(e.isPropertyAccessExpression(M)&&e.isModuleExportsAccessExpression(M.expression)&&!e.isPrivateIdentifier(M.name))return me.getSymbolAtLocation(M);if(e.isShorthandPropertyAssignment(M)&&e.isBinaryExpression(M.parent.parent)&&e.getAssignmentDeclarationKind(M.parent.parent)===2)return me.getExportSpecifierLocalTargetSymbol(M.name)}return C}function m(C,me){return me.getMergedSymbol(y(C).symbol)}function y(C){if(C.kind===210)return C.getSourceFile();var me=C.parent;return me.kind===308?me:(e.Debug.assert(me.kind===265),e.cast(me.parent,S))}function S(C){return C.kind===264&&C.name.kind===10}function k(C){return C.moduleReference.kind===280&&C.moduleReference.expression.kind===10}})(o=e.FindAllReferences||(e.FindAllReferences={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(N){N[N.Symbol=0]="Symbol",N[N.Label=1]="Label",N[N.Keyword=2]="Keyword",N[N.This=3]="This",N[N.String=4]="String",N[N.TripleSlashReference=5]="TripleSlashReference"})(K=ne.DefinitionKind||(ne.DefinitionKind={}));var se;(function(N){N[N.Span=0]="Span",N[N.Node=1]="Node",N[N.StringLiteral=2]="StringLiteral",N[N.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",N[N.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(se=ne.EntryKind||(ne.EntryKind={}));function O(N,J){return J===void 0&&(J=1),{kind:J,node:N.name||N,context:_e(N)}}ne.nodeEntry=O;function ie(N){return N&&N.kind===void 0}ne.isContextWithStartAndEndNode=ie;function _e(N){if(e.isDeclaration(N))return Q(N);if(!!N.parent){if(!e.isDeclaration(N.parent)&&!e.isExportAssignment(N.parent)){if(e.isInJSFile(N)){var J=e.isBinaryExpression(N.parent)?N.parent:e.isAccessExpression(N.parent)&&e.isBinaryExpression(N.parent.parent)&&N.parent.parent.left===N.parent?N.parent.parent:void 0;if(J&&e.getAssignmentDeclarationKind(J)!==0)return Q(J)}if(e.isJsxOpeningElement(N.parent)||e.isJsxClosingElement(N.parent))return N.parent.parent;if(e.isJsxSelfClosingElement(N.parent)||e.isLabeledStatement(N.parent)||e.isBreakOrContinueStatement(N.parent))return N.parent;if(e.isStringLiteralLike(N)){var q=e.tryGetImportFromModuleSpecifier(N);if(q){var G=e.findAncestor(q,function(b){return e.isDeclaration(b)||e.isStatement(b)||e.isJSDocTag(b)});return e.isDeclaration(G)?Q(G):G}}var ye=e.findAncestor(N,e.isComputedPropertyName);return ye?Q(ye.parent):void 0}if(N.parent.name===N||e.isConstructorDeclaration(N.parent)||e.isExportAssignment(N.parent)||(e.isImportOrExportSpecifier(N.parent)||e.isBindingElement(N.parent))&&N.parent.propertyName===N||N.kind===88&&e.hasSyntacticModifier(N.parent,1025))return Q(N.parent)}}function Q(N){if(!!N)switch(N.kind){case 257:return!e.isVariableDeclarationList(N.parent)||N.parent.declarations.length!==1?N:e.isVariableStatement(N.parent.parent)?N.parent.parent:e.isForInOrOfStatement(N.parent.parent)?Q(N.parent.parent):N.parent;case 205:return Q(N.parent.parent);case 273:return N.parent.parent.parent;case 278:case 271:return N.parent.parent;case 270:case 277:return N.parent;case 223:return e.isExpressionStatement(N.parent)?N.parent:N;case 247:case 246:return{start:N.initializer,end:N.expression};case 299:case 300:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(N.parent)?Q(e.findAncestor(N.parent,function(J){return e.isBinaryExpression(J)||e.isForInOrOfStatement(J)})):N;default:return N}}ne.getContextNode=Q;function p(N,J,q){if(!!q){var G=ie(q)?V(q.start,J,q.end):V(q,J);return G.start!==N.start||G.length!==N.length?{contextSpan:G}:void 0}}ne.toContextSpan=p;var D;(function(N){N[N.Other=0]="Other",N[N.References=1]="References",N[N.Rename=2]="Rename"})(D=ne.FindReferencesUse||(ne.FindReferencesUse={}));function le(N,J,q,G,ye){var b=e.getTouchingPropertyName(G,ye),x={use:1},T=P.getReferencedSymbolsForNode(ye,b,N,q,J,x),Z=N.getTypeChecker(),B=P.getAdjustedNode(b,x),u=de(B)?Z.getSymbolAtLocation(B):void 0;return!T||!T.length?void 0:e.mapDefined(T,function(A){var w=A.definition,z=A.references;return w&&{definition:Z.runWithCancellationToken(J,function(U){return f(w,U,b)}),references:z.map(function(U){return k(U,u)})}})}ne.findReferencedSymbols=le;function de(N){return N.kind===88||!!e.getDeclarationFromName(N)||e.isLiteralComputedPropertyDeclarationName(N)||N.kind===135&&e.isConstructorDeclaration(N.parent)}function te(N,J,q,G,ye){var b=e.getTouchingPropertyName(G,ye),x,T=oe(N,J,q,b,ye);if(b.parent.kind===208||b.parent.kind===205||b.parent.kind===209||b.kind===106)x=T&&zn([],T,!0);else if(T)for(var Z=e.createQueue(T),B=new e.Map;!Z.isEmpty();){var u=Z.dequeue();if(!!e.addToSeen(B,e.getNodeId(u.node))){x=e.append(x,u);var A=oe(N,J,q,u.node,u.node.pos);A&&Z.enqueue.apply(Z,A)}}var w=N.getTypeChecker();return e.map(x,function(z){return X(z,w)})}ne.getImplementationsAtPosition=te;function oe(N,J,q,G,ye){if(G.kind!==308){var b=N.getTypeChecker();if(G.parent.kind===300){var x=[];return P.getReferenceEntriesForShorthandPropertyAssignment(G,b,function(Z){return x.push(O(Z))}),x}else if(G.kind===106||e.isSuperProperty(G.parent)){var T=b.getSymbolAtLocation(G);return T.valueDeclaration&&[O(T.valueDeclaration)]}else return E(ye,G,N,q,J,{implementations:!0,use:1})}}function ae(N,J,q,G,ye,b,x){return e.map(I(P.getReferencedSymbolsForNode(ye,G,N,q,J,b)),function(T){return x(T,G,N.getTypeChecker())})}ne.findReferenceOrRenameEntries=ae;function E(N,J,q,G,ye,b,x){return b===void 0&&(b={}),x===void 0&&(x=new e.Set(G.map(function(T){return T.fileName}))),I(P.getReferencedSymbolsForNode(N,J,q,G,ye,b,x))}ne.getReferenceEntriesForNode=E;function I(N){return N&&e.flatMap(N,function(J){return J.references})}function f(N,J,q){var G=function(){switch(N.type){case 0:{var u=N.symbol,A=y(u,J,q),w=A.displayParts,z=A.kind,U=w.map(function(Me){return Me.text}).join(""),ge=u.declarations&&e.firstOrUndefined(u.declarations),pe=ge?e.getNameOfDeclaration(ge)||ge:q;return vi(vi({},m(pe)),{name:U,kind:z,displayParts:w,context:Q(ge)})}case 1:{var pe=N.node;return vi(vi({},m(pe)),{name:pe.text,kind:"label",displayParts:[e.displayPart(pe.text,e.SymbolDisplayPartKind.text)]})}case 2:{var pe=N.node,He=e.tokenToString(pe.kind);return vi(vi({},m(pe)),{name:He,kind:"keyword",displayParts:[{text:He,kind:"keyword"}]})}case 3:{var pe=N.node,u=J.getSymbolAtLocation(pe),Be=u&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(J,u,pe.getSourceFile(),e.getContainerNode(pe),pe).displayParts||[e.textPart("this")];return vi(vi({},m(pe)),{name:"this",kind:"var",displayParts:Be})}case 4:{var pe=N.node;return vi(vi({},m(pe)),{name:pe.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(pe),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(N.reference),sourceFile:N.file,name:N.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(N.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(N)}}(),ye=G.sourceFile,b=G.textSpan,x=G.name,T=G.kind,Z=G.displayParts,B=G.context;return vi({containerKind:"",containerName:"",fileName:ye.fileName,kind:T,name:x,textSpan:b,displayParts:Z},p(b,ye,B))}function m(N){var J=N.getSourceFile();return{sourceFile:J,textSpan:V(e.isComputedPropertyName(N)?N.expression:N,J)}}function y(N,J,q){var G=P.getIntersectingMeaningFromDeclarations(q,N),ye=N.declarations&&e.firstOrUndefined(N.declarations)||q,b=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(J,N,ye.getSourceFile(),ye,ye,G),x=b.displayParts,T=b.symbolKind;return{displayParts:x,kind:T}}function S(N,J,q,G){return vi(vi({},me(N)),G&&De(N,J,q))}ne.toRenameLocation=S;function k(N,J){var q=C(N);return J?vi(vi({},q),{isDefinition:N.kind!==0&&$(N.node,J)}):q}function C(N){var J=me(N);if(N.kind===0)return vi(vi({},J),{isWriteAccess:!1});var q=N.kind,G=N.node;return vi(vi({},J),{isWriteAccess:F(G),isInString:q===2?!0:void 0})}ne.toReferenceEntry=C;function me(N){if(N.kind===0)return{textSpan:N.textSpan,fileName:N.fileName};var J=N.node.getSourceFile(),q=V(N.node,J);return vi({textSpan:q,fileName:J.fileName},p(q,J,N.context))}function De(N,J,q){if(N.kind!==0&&e.isIdentifier(J)){var G=N.node,ye=N.kind,b=G.parent,x=J.text,T=e.isShorthandPropertyAssignment(b);if(T||e.isObjectBindingElementWithoutPropertyName(b)&&b.name===G&&b.dotDotDotToken===void 0){var Z={prefixText:x+": "},B={suffixText:": "+x};if(ye===3)return Z;if(ye===4)return B;if(T){var u=b.parent;return e.isObjectLiteralExpression(u)&&e.isBinaryExpression(u.parent)&&e.isModuleExportsAccessExpression(u.parent.left)?Z:B}else return Z}else if(e.isImportSpecifier(b)&&!b.propertyName){var A=e.isExportSpecifier(J.parent)?q.getExportSpecifierLocalTargetSymbol(J.parent):q.getSymbolAtLocation(J);return e.contains(A.declarations,b)?{prefixText:x+" as "}:e.emptyOptions}else if(e.isExportSpecifier(b)&&!b.propertyName)return J===N.node||q.getSymbolAtLocation(J)===q.getSymbolAtLocation(N.node)?{prefixText:x+" as "}:{suffixText:" as "+x}}return e.emptyOptions}function X(N,J){var q=me(N);if(N.kind!==0){var G=N.node;return vi(vi({},q),M(G,J))}else return vi(vi({},q),{kind:"",displayParts:[]})}function M(N,J){var q=J.getSymbolAtLocation(e.isDeclaration(N)&&N.name?N.name:N);return q?y(q,J,N):N.kind===207?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:N.kind===228?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(N),displayParts:[]}}function H(N){var J=me(N);if(N.kind===0)return{fileName:J.fileName,span:{textSpan:J.textSpan,kind:"reference"}};var q=F(N.node),G=vi({textSpan:J.textSpan,kind:q?"writtenReference":"reference",isInString:N.kind===2?!0:void 0},J.contextSpan&&{contextSpan:J.contextSpan});return{fileName:J.fileName,span:G}}ne.toHighlightSpan=H;function V(N,J,q){var G=N.getStart(J),ye=(q||N).getEnd();return e.isStringLiteralLike(N)&&ye-G>2&&(e.Debug.assert(q===void 0),G+=1,ye-=1),e.createTextSpanFromBounds(G,ye)}function h(N){return N.kind===0?N.textSpan:V(N.node,N.node.getSourceFile())}ne.getTextSpanOfEntry=h;function F(N){var J=e.getDeclarationFromName(N);return!!J&&L(J)||N.kind===88||e.isWriteAccess(N)}function $(N,J){var q;if(!J)return!1;var G=e.getDeclarationFromName(N)||(N.kind===88?N.parent:e.isLiteralComputedPropertyDeclarationName(N)||N.kind===135&&e.isConstructorDeclaration(N.parent)?N.parent.parent:void 0),ye=G&&e.isBinaryExpression(G)?G.left:void 0;return!!(G&&((q=J.declarations)===null||q===void 0?void 0:q.some(function(b){return b===G||b===ye})))}ne.isDeclarationOfSymbol=$;function L(N){if(N.flags&16777216)return!0;switch(N.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 348:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(N.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!N.body;case 257:case 169:return!!N.initializer||e.isCatchClause(N.parent);case 170:case 168:case 350:case 343:return!1;default:return e.Debug.failBadSyntaxKind(N)}}var P;(function(N){function J(Te,Ye,Qe,ue,Ke,tr,hr){var _r,Or;if(tr===void 0&&(tr={}),hr===void 0&&(hr=new e.Set(ue.map(function(gi){return gi.fileName}))),Ye=q(Ye,tr),e.isSourceFile(Ye)){var zr=e.GoToDefinition.getReferenceAtPosition(Ye,Te,Qe);if(!(zr==null?void 0:zr.file))return;var fn=Qe.getTypeChecker().getMergedSymbol(zr.file.symbol);if(fn)return B(Qe,fn,!1,ue,hr);var Vr=Qe.getFileIncludeReasons();return Vr?[{definition:{type:5,reference:zr.reference,file:Ye},references:ye(zr.file,Vr,Qe)||e.emptyArray}]:void 0}if(!tr.implementations){var Wn=A(Ye,ue,Ke);if(Wn)return Wn}var bn=Qe.getTypeChecker(),qn=bn.getSymbolAtLocation(e.isConstructorDeclaration(Ye)&&Ye.parent.name||Ye);if(!qn){if(!tr.implementations&&e.isStringLiteralLike(Ye)){if(e.isModuleSpecifierLike(Ye)){var Vr=Qe.getFileIncludeReasons(),yn=(Or=(_r=Ye.getSourceFile().resolvedModules)===null||_r===void 0?void 0:_r.get(Ye.text,e.getModeForUsageLocation(Ye.getSourceFile(),Ye)))===null||Or===void 0?void 0:Or.resolvedFileName,Hn=yn?Qe.getSourceFile(yn):void 0;if(Hn)return[{definition:{type:4,node:Ye},references:ye(Hn,Vr,Qe)||e.emptyArray}]}return We(Ye,ue,bn,Ke)}return}if(qn.escapedName==="export=")return B(Qe,qn.parent,!1,ue,hr);var Ai=x(qn,Qe,ue,Ke,tr,hr);if(Ai&&!(qn.flags&33554432))return Ai;var ti=b(Ye,qn,bn),Hi=ti&&x(ti,Qe,ue,Ke,tr,hr),Ni=w(qn,Ye,ue,hr,bn,Ke,tr);return T(Qe,Ai,Ni,Hi)}N.getReferencedSymbolsForNode=J;function q(Te,Ye){return Ye.use===1?Te=e.getAdjustedReferenceLocation(Te):Ye.use===2&&(Te=e.getAdjustedRenameLocation(Te)),Te}N.getAdjustedNode=q;function G(Te,Ye,Qe,ue){var Ke,tr;ue===void 0&&(ue=new e.Set(Qe.map(function(zr){return zr.fileName})));var hr=(Ke=Ye.getSourceFile(Te))===null||Ke===void 0?void 0:Ke.symbol;if(hr)return((tr=B(Ye,hr,!1,Qe,ue)[0])===null||tr===void 0?void 0:tr.references)||e.emptyArray;var _r=Ye.getFileIncludeReasons(),Or=Ye.getSourceFile(Te);return Or&&_r&&ye(Or,_r,Ye)||e.emptyArray}N.getReferencesForFileName=G;function ye(Te,Ye,Qe){for(var ue,Ke=Ye.get(Te.path)||e.emptyArray,tr=0,hr=Ke;tr<hr.length;tr++){var _r=hr[tr];if(e.isReferencedFile(_r)){var Or=Qe.getSourceFileByPath(_r.file),zr=e.getReferencedFileLocation(Qe.getSourceFileByPath,_r);e.isReferenceFileLocation(zr)&&(ue=e.append(ue,{kind:0,fileName:Or.fileName,textSpan:e.createTextSpanFromRange(zr)}))}}return ue}function b(Te,Ye,Qe){if(Te.parent&&e.isNamespaceExportDeclaration(Te.parent)){var ue=Qe.getAliasedSymbol(Ye),Ke=Qe.getMergedSymbol(ue);if(ue!==Ke)return Ke}}function x(Te,Ye,Qe,ue,Ke,tr){var hr=Te.flags&1536&&Te.declarations&&e.find(Te.declarations,e.isSourceFile);if(!!hr){var _r=Te.exports.get("export="),Or=B(Ye,Te,!!_r,Qe,tr);if(!_r||!tr.has(hr.fileName))return Or;var zr=Ye.getTypeChecker();return Te=e.skipAlias(_r,zr),T(Ye,Or,w(Te,void 0,Qe,tr,zr,ue,Ke))}}function T(Te){for(var Ye=[],Qe=1;Qe<arguments.length;Qe++)Ye[Qe-1]=arguments[Qe];for(var ue,Ke=0,tr=Ye;Ke<tr.length;Ke++){var hr=tr[Ke];if(!(!hr||!hr.length)){if(!ue){ue=hr;continue}for(var _r=function(Vr){if(!Vr.definition||Vr.definition.type!==0)return ue.push(Vr),"continue";var Wn=Vr.definition.symbol,bn=e.findIndex(ue,function(yn){return!!yn.definition&&yn.definition.type===0&&yn.definition.symbol===Wn});if(bn===-1)return ue.push(Vr),"continue";var qn=ue[bn];ue[bn]={definition:qn.definition,references:qn.references.concat(Vr.references).sort(function(yn,Hn){var Ai=Z(Te,yn),ti=Z(Te,Hn);if(Ai!==ti)return e.compareValues(Ai,ti);var Hi=h(yn),Ni=h(Hn);return Hi.start!==Ni.start?e.compareValues(Hi.start,Ni.start):e.compareValues(Hi.length,Ni.length)})}},Or=0,zr=hr;Or<zr.length;Or++){var fn=zr[Or];_r(fn)}}}return ue}function Z(Te,Ye){var Qe=Ye.kind===0?Te.getSourceFile(Ye.fileName):Ye.node.getSourceFile();return Te.getSourceFiles().indexOf(Qe)}function B(Te,Ye,Qe,ue,Ke){e.Debug.assert(!!Ye.valueDeclaration);var tr=e.mapDefined(ne.findModuleReferences(Te,ue,Ye),function(qn){if(qn.kind==="import"){var yn=qn.literal.parent;if(e.isLiteralTypeNode(yn)){var Hn=e.cast(yn.parent,e.isImportTypeNode);if(Qe&&!Hn.qualifier)return}return O(qn.literal)}else return{kind:0,fileName:qn.referencingFile.fileName,textSpan:e.createTextSpanFromRange(qn.ref)}});if(Ye.declarations)for(var hr=0,_r=Ye.declarations;hr<_r.length;hr++){var Or=_r[hr];switch(Or.kind){case 308:break;case 264:Ke.has(Or.getSourceFile().fileName)&&tr.push(O(Or.name));break;default:e.Debug.assert(!!(Ye.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var zr=Ye.exports.get("export=");if(zr==null?void 0:zr.declarations)for(var fn=0,Vr=zr.declarations;fn<Vr.length;fn++){var Or=Vr[fn],Wn=Or.getSourceFile();if(Ke.has(Wn.fileName)){var bn=e.isBinaryExpression(Or)&&e.isPropertyAccessExpression(Or.left)?Or.left.expression:e.isExportAssignment(Or)?e.Debug.checkDefined(e.findChildOfKind(Or,93,Wn)):e.getNameOfDeclaration(Or)||Or;tr.push(O(bn))}}return tr.length?[{definition:{type:0,symbol:Ye},references:tr}]:e.emptyArray}function u(Te){return Te.kind===146&&e.isTypeOperatorNode(Te.parent)&&Te.parent.operator===146}function A(Te,Ye,Qe){if(e.isTypeKeyword(Te.kind))return Te.kind===114&&e.isVoidExpression(Te.parent)||Te.kind===146&&!u(Te)?void 0:Ue(Ye,Te.kind,Qe,Te.kind===146?u:void 0);if(e.isImportMeta(Te.parent)&&Te.parent.name===Te)return mr(Ye,Qe);if(e.isStaticModifier(Te)&&e.isClassStaticBlockDeclaration(Te.parent))return[{definition:{type:2,node:Te},references:[O(Te)]}];if(e.isJumpStatementTarget(Te)){var ue=e.getTargetLabel(Te.parent,Te.text);return ue&&er(ue.parent,ue)}else if(e.isLabelOfLabeledStatement(Te))return er(Te.parent,Te);if(e.isThis(Te))return Ie(Te,Ye,Qe);if(Te.kind===106)return en(Te)}function w(Te,Ye,Qe,ue,Ke,tr,hr){var _r=Ye&&ge(Te,Ye,Ke,!Sr(hr))||Te,Or=Ye?ai(Ye,_r):7,zr=[],fn=new Be(Qe,ue,Ye?U(Ye):0,Ke,tr,Or,hr,zr),Vr=!Sr(hr)||!_r.declarations?void 0:e.find(_r.declarations,e.isExportSpecifier);if(Vr)vr(Vr.name,_r,Vr,fn.createSearch(Ye,Te,void 0),fn,!0,!0);else if(Ye&&Ye.kind===88&&_r.escapedName==="default"&&_r.parent)Br(Ye,_r,fn),Me(Ye,_r,{exportingModuleSymbol:_r.parent,exportKind:1},fn);else{var Wn=fn.createSearch(Ye,_r,void 0,{allSearchSymbols:Ye?xr(_r,Ye,Ke,hr.use===2,!!hr.providePrefixAndSuffixTextForRename,!!hr.implementations):[_r]});z(_r,fn,Wn)}return zr}function z(Te,Ye,Qe){var ue=be(Te);if(ue)qr(ue,ue.getSourceFile(),Qe,Ye,!(e.isSourceFile(ue)&&!e.contains(Ye.sourceFiles,ue)));else for(var Ke=0,tr=Ye.sourceFiles;Ke<tr.length;Ke++){var hr=tr[Ke];Ye.cancellationToken.throwIfCancellationRequested(),Ne(hr,Qe,Ye)}}function U(Te){switch(Te.kind){case 173:case 135:return 1;case 79:if(e.isClassLike(Te.parent))return e.Debug.assert(Te.parent.name===Te),2;default:return 0}}function ge(Te,Ye,Qe,ue){var Ke=Ye.parent;return e.isExportSpecifier(Ke)&&ue?kr(Ye,Te,Ke,Qe):e.firstDefined(Te.declarations,function(tr){if(!tr.parent){if(Te.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(Ye.kind),": ").concat(e.Debug.formatSymbol(Te)))}return e.isTypeLiteralNode(tr.parent)&&e.isUnionTypeNode(tr.parent.parent)?Qe.getPropertyOfType(Qe.getTypeFromTypeNode(tr.parent.parent),Te.name):void 0})}var pe;(function(Te){Te[Te.None=0]="None",Te[Te.Constructor=1]="Constructor",Te[Te.Class=2]="Class"})(pe||(pe={}));function He(Te){if(!!(Te.flags&(1536|33554432))){var Ye=Te.declarations&&e.find(Te.declarations,function(Qe){return!e.isSourceFile(Qe)&&!e.isModuleDeclaration(Qe)});return Ye&&Ye.symbol}}var Be=function(){function Te(Ye,Qe,ue,Ke,tr,hr,_r,Or){this.sourceFiles=Ye,this.sourceFilesSet=Qe,this.specialSearchKind=ue,this.checker=Ke,this.cancellationToken=tr,this.searchMeaning=hr,this.options=_r,this.result=Or,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return Te.prototype.includesSourceFile=function(Ye){return this.sourceFilesSet.has(Ye.fileName)},Te.prototype.getImportSearches=function(Ye,Qe){return this.importTracker||(this.importTracker=ne.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ye,Qe,this.options.use===2)},Te.prototype.createSearch=function(Ye,Qe,ue,Ke){Ke===void 0&&(Ke={});var tr=Ke.text,hr=tr===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(Qe)||He(Qe)||Qe)):tr,_r=Ke.allSearchSymbols,Or=_r===void 0?[Qe]:_r,zr=e.escapeLeadingUnderscores(hr),fn=this.options.implementations&&Ye?je(Ye,Qe,this.checker):void 0;return{symbol:Qe,comingFrom:ue,text:hr,escapedText:zr,parents:fn,allSearchSymbols:Or,includes:function(Vr){return e.contains(Or,Vr)}}},Te.prototype.referenceAdder=function(Ye){var Qe=e.getSymbolId(Ye),ue=this.symbolIdToReferences[Qe];return ue||(ue=this.symbolIdToReferences[Qe]=[],this.result.push({definition:{type:0,symbol:Ye},references:ue})),function(Ke,tr){return ue.push(O(Ke,tr))}},Te.prototype.addStringOrCommentReference=function(Ye,Qe){this.result.push({definition:void 0,references:[{kind:0,fileName:Ye,textSpan:Qe}]})},Te.prototype.markSearchedSymbols=function(Ye,Qe){for(var ue=e.getNodeId(Ye),Ke=this.sourceFileToSeenSymbols[ue]||(this.sourceFileToSeenSymbols[ue]=new e.Set),tr=!1,hr=0,_r=Qe;hr<_r.length;hr++){var Or=_r[hr];tr=e.tryAddToSet(Ke,e.getSymbolId(Or))||tr}return tr},Te}();function Me(Te,Ye,Qe,ue){var Ke=ue.getImportSearches(Ye,Qe),tr=Ke.importSearches,hr=Ke.singleReferences,_r=Ke.indirectUsers;if(hr.length)for(var Or=ue.referenceAdder(Ye),zr=0,fn=hr;zr<fn.length;zr++){var Vr=fn[zr];Ae(Vr,ue)&&Or(Vr)}for(var Wn=0,bn=tr;Wn<bn.length;Wn++){var qn=bn[Wn],yn=qn[0],Hn=qn[1];t(yn.getSourceFile(),ue.createSearch(yn,Hn,1),ue)}if(_r.length){var Ai=void 0;switch(Qe.exportKind){case 0:Ai=ue.createSearch(Te,Ye,1);break;case 1:Ai=ue.options.use===2?void 0:ue.createSearch(Te,Ye,1,{text:"default"});break;case 2:break}if(Ai)for(var ti=0,Hi=_r;ti<Hi.length;ti++){var Ni=Hi[ti];Ne(Ni,Ai,ue)}}}function Le(Te,Ye,Qe,ue,Ke,tr,hr,_r){for(var Or=ne.createImportTracker(Te,new e.Set(Te.map(function(jn){return jn.fileName})),Ye,Qe),zr=Or(ue,{exportKind:hr?1:0,exportingModuleSymbol:Ke},!1),fn=zr.importSearches,Vr=zr.indirectUsers,Wn=zr.singleReferences,bn=0,qn=fn;bn<qn.length;bn++){var yn=qn[bn][0];_r(yn)}for(var Hn=0,Ai=Wn;Hn<Ai.length;Hn++){var ti=Ai[Hn];e.isIdentifier(ti)&&e.isImportTypeNode(ti.parent)&&_r(ti)}for(var Hi=0,Ni=Vr;Hi<Ni.length;Hi++)for(var gi=Ni[Hi],Pn=0,Pe=Se(gi,hr?"default":tr);Pn<Pe.length;Pn++){var Ir=Pe[Pn],we=Ye.getSymbolAtLocation(Ir),hn=e.some(we==null?void 0:we.declarations,function(jn){return!!e.tryCast(jn,e.isExportAssignment)});e.isIdentifier(Ir)&&!e.isImportOrExportSpecifier(Ir.parent)&&(we===ue||hn)&&_r(Ir)}}N.eachExportReference=Le;function Ae(Te,Ye){return ln(Te,Ye)?Ye.options.use!==2?!0:e.isIdentifier(Te)?!(e.isImportOrExportSpecifier(Te.parent)&&Te.escapedText==="default"):!1:!1}function Xe(Te,Ye){if(!!Te.declarations)for(var Qe=0,ue=Te.declarations;Qe<ue.length;Qe++){var Ke=ue[Qe],tr=Ke.getSourceFile();t(tr,Ye.createSearch(Ke,Te,0),Ye,Ye.includesSourceFile(tr))}}function Ne(Te,Ye,Qe){e.getNameTable(Te).get(Ye.escapedText)!==void 0&&t(Te,Ye,Qe)}function Oe(Te,Ye){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(Te.parent.parent)?Ye.getPropertySymbolOfDestructuringAssignment(Te):void 0}function be(Te){var Ye=Te.declarations,Qe=Te.flags,ue=Te.parent,Ke=Te.valueDeclaration;if(Ke&&(Ke.kind===215||Ke.kind===228))return Ke;if(!!Ye){if(Qe&(4|8192)){var tr=e.find(Ye,function(bn){return e.hasEffectiveModifier(bn,8)||e.isPrivateIdentifierClassElementDeclaration(bn)});return tr?e.getAncestor(tr,260):void 0}if(!Ye.some(e.isObjectBindingElementWithoutPropertyName)){var hr=ue&&!(Te.flags&262144);if(!(hr&&!(e.isExternalModuleSymbol(ue)&&!ue.globalExports))){for(var _r,Or=0,zr=Ye;Or<zr.length;Or++){var fn=zr[Or],Vr=e.getContainerNode(fn);if(_r&&_r!==Vr||!Vr||Vr.kind===308&&!e.isExternalOrCommonJsModule(Vr))return;if(_r=Vr,e.isFunctionExpression(_r))for(var Wn=void 0;Wn=e.getNextJSDocCommentLocation(_r);)_r=Wn}return hr?_r.getSourceFile():_r}}}}function Y(Te,Ye,Qe,ue){return ue===void 0&&(ue=Qe),d(Te,Ye,Qe,function(){return!0},ue)||!1}N.isSymbolReferencedInFile=Y;function d(Te,Ye,Qe,ue,Ke){Ke===void 0&&(Ke=Qe);var tr=e.isParameterPropertyDeclaration(Te.parent,Te.parent.parent)?e.first(Ye.getSymbolsOfParameterPropertyDeclaration(Te.parent,Te.text)):Ye.getSymbolAtLocation(Te);if(!!tr)for(var hr=0,_r=Se(Qe,tr.name,Ke);hr<_r.length;hr++){var Or=_r[hr];if(!(!e.isIdentifier(Or)||Or===Te||Or.escapedText!==Te.escapedText)){var zr=Ye.getSymbolAtLocation(Or);if(zr===tr||Ye.getShorthandAssignmentValueSymbol(Or.parent)===tr||e.isExportSpecifier(Or.parent)&&kr(Or,zr,Or.parent,Ye)===tr){var fn=ue(Or);if(fn)return fn}}}}N.eachSymbolReferenceInFile=d;function j(Te,Ye){var Qe=e.filter(Se(Ye,Te),function(Ke){return!!e.getDeclarationFromName(Ke)});return Qe.reduce(function(Ke,tr){var hr=ue(tr);return!e.some(Ke.declarationNames)||hr===Ke.depth?(Ke.declarationNames.push(tr),Ke.depth=hr):hr<Ke.depth&&(Ke.declarationNames=[tr],Ke.depth=hr),Ke},{depth:Infinity,declarationNames:[]}).declarationNames;function ue(Ke){for(var tr=0;Ke;)Ke=e.getContainerNode(Ke),tr++;return tr}}N.getTopMostDeclarationNamesInFile=j;function Ce(Te,Ye,Qe,ue){if(!Te.name||!e.isIdentifier(Te.name))return!1;for(var Ke=e.Debug.checkDefined(Qe.getSymbolAtLocation(Te.name)),tr=0,hr=Ye;tr<hr.length;tr++)for(var _r=hr[tr],Or=0,zr=Se(_r,Ke.name);Or<zr.length;Or++){var fn=zr[Or];if(!(!e.isIdentifier(fn)||fn===Te.name||fn.escapedText!==Te.name.escapedText)){var Vr=e.climbPastPropertyAccess(fn),Wn=e.isCallExpression(Vr.parent)&&Vr.parent.expression===Vr?Vr.parent:void 0,bn=Qe.getSymbolAtLocation(fn);if(bn&&Qe.getRootSymbols(bn).some(function(qn){return qn===Ke})&&ue(fn,Wn))return!0}}return!1}N.someSignatureUsage=Ce;function Se(Te,Ye,Qe){return Qe===void 0&&(Qe=Te),Re(Te,Ye,Qe).map(function(ue){return e.getTouchingPropertyName(Te,ue)})}function Re(Te,Ye,Qe){Qe===void 0&&(Qe=Te);var ue=[];if(!Ye||!Ye.length)return ue;for(var Ke=Te.text,tr=Ke.length,hr=Ye.length,_r=Ke.indexOf(Ye,Qe.pos);_r>=0&&!(_r>Qe.end);){var Or=_r+hr;(_r===0||!e.isIdentifierPart(Ke.charCodeAt(_r-1),99))&&(Or===tr||!e.isIdentifierPart(Ke.charCodeAt(Or),99))&&ue.push(_r),_r=Ke.indexOf(Ye,_r+hr+1)}return ue}function er(Te,Ye){var Qe=Te.getSourceFile(),ue=Ye.text,Ke=e.mapDefined(Se(Qe,ue,Te),function(tr){return tr===Ye||e.isJumpStatementTarget(tr)&&e.getTargetLabel(tr,ue)===Ye?O(tr):void 0});return[{definition:{type:1,node:Ye},references:Ke}]}function wr(Te,Ye){switch(Te.kind){case 80:if(e.isJSDocMemberName(Te.parent))return!0;case 79:return Te.text.length===Ye.length;case 14:case 10:{var Qe=Te;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Qe)||e.isNameOfModuleDeclaration(Te)||e.isExpressionOfExternalModuleImportEqualsDeclaration(Te)||e.isCallExpression(Te.parent)&&e.isBindableObjectDefinePropertyCall(Te.parent)&&Te.parent.arguments[1]===Te)&&Qe.text.length===Ye.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Te)&&Te.text.length===Ye.length;case 88:return"default".length===Ye.length;default:return!1}}function mr(Te,Ye){var Qe=e.flatMap(Te,function(ue){return Ye.throwIfCancellationRequested(),e.mapDefined(Se(ue,"meta",ue),function(Ke){var tr=Ke.parent;if(e.isImportMeta(tr))return O(tr)})});return Qe.length?[{definition:{type:2,node:Qe[0].node},references:Qe}]:void 0}function Ue(Te,Ye,Qe,ue){var Ke=e.flatMap(Te,function(tr){return Qe.throwIfCancellationRequested(),e.mapDefined(Se(tr,e.tokenToString(Ye),tr),function(hr){if(hr.kind===Ye&&(!ue||ue(hr)))return O(hr)})});return Ke.length?[{definition:{type:2,node:Ke[0].node},references:Ke}]:void 0}function t(Te,Ye,Qe,ue){return ue===void 0&&(ue=!0),Qe.cancellationToken.throwIfCancellationRequested(),qr(Te,Te,Ye,Qe,ue)}function qr(Te,Ye,Qe,ue,Ke){if(!!ue.markSearchedSymbols(Ye,Qe.allSearchSymbols))for(var tr=0,hr=Re(Ye,Qe.text,Te);tr<hr.length;tr++){var _r=hr[tr];dr(Ye,_r,Qe,ue,Ke)}}function ln(Te,Ye){return!!(e.getMeaningFromLocation(Te)&Ye.searchMeaning)}function dr(Te,Ye,Qe,ue,Ke){var tr=e.getTouchingPropertyName(Te,Ye);if(!wr(tr,Qe.text)){!ue.options.implementations&&(ue.options.findInStrings&&e.isInString(Te,Ye)||ue.options.findInComments&&e.isInNonReferenceComment(Te,Ye))&&ue.addStringOrCommentReference(Te.fileName,e.createTextSpan(Ye,Qe.text.length));return}if(!!ln(tr,ue)){var hr=ue.checker.getSymbolAtLocation(tr);if(!!hr){var _r=tr.parent;if(!(e.isImportSpecifier(_r)&&_r.propertyName===tr)){if(e.isExportSpecifier(_r)){e.Debug.assert(tr.kind===79),vr(tr,hr,_r,Qe,ue,Ke);return}var Or=Qn(Qe,hr,tr,ue);if(!Or){rn(hr,Qe,ue);return}switch(ue.specialSearchKind){case 0:Ke&&Br(tr,Or,ue);break;case 1:pn(tr,Te,Qe,ue);break;case 2:ve(tr,Qe,ue);break;default:e.Debug.assertNever(ue.specialSearchKind)}e.isInJSFile(tr)&&tr.parent.kind===205&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(tr.parent.parent.parent)&&(hr=tr.parent.symbol,!hr)||Cr(tr,hr,Qe,ue)}}}}function vr(Te,Ye,Qe,ue,Ke,tr,hr){e.Debug.assert(!hr||!!Ke.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var _r=Qe.parent,Or=Qe.propertyName,zr=Qe.name,fn=_r.parent,Vr=kr(Te,Ye,Qe,Ke.checker);if(!hr&&!ue.includes(Vr))return;if(Or?Te===Or?(fn.moduleSpecifier||Ai(),tr&&Ke.options.use!==2&&Ke.markSeenReExportRHS(zr)&&Br(zr,e.Debug.checkDefined(Qe.symbol),Ke)):Ke.markSeenReExportRHS(Te)&&Ai():Ke.options.use===2&&zr.escapedText==="default"||Ai(),!Sr(Ke.options)||hr){var Wn=Te.originalKeywordKind===88||Qe.name.originalKeywordKind===88,bn=Wn?1:0,qn=e.Debug.checkDefined(Qe.symbol),yn=ne.getExportInfo(qn,bn,Ke.checker);yn&&Me(Te,qn,yn,Ke)}if(ue.comingFrom!==1&&fn.moduleSpecifier&&!Or&&!Sr(Ke.options)){var Hn=Ke.checker.getExportSpecifierLocalTargetSymbol(Qe);Hn&&Xe(Hn,Ke)}function Ai(){tr&&Br(Te,Vr,Ke)}}function kr(Te,Ye,Qe,ue){return Ur(Te,Qe)&&ue.getExportSpecifierLocalTargetSymbol(Qe)||Ye}function Ur(Te,Ye){var Qe=Ye.parent,ue=Ye.propertyName,Ke=Ye.name;return e.Debug.assert(ue===Te||Ke===Te),ue?ue===Te:!Qe.parent.moduleSpecifier}function Cr(Te,Ye,Qe,ue){var Ke=ne.getImportOrExportSymbol(Te,Ye,ue.checker,Qe.comingFrom===1);if(!!Ke){var tr=Ke.symbol;Ke.kind===0?Sr(ue.options)||Xe(tr,ue):Me(Te,tr,Ke.exportInfo,ue)}}function rn(Te,Ye,Qe){var ue=Te.flags,Ke=Te.valueDeclaration,tr=Qe.checker.getShorthandAssignmentValueSymbol(Ke),hr=Ke&&e.getNameOfDeclaration(Ke);!(ue&33554432)&&hr&&Ye.includes(tr)&&Br(hr,tr,Qe)}function Br(Te,Ye,Qe){var ue="kind"in Ye?Ye:{kind:void 0,symbol:Ye},Ke=ue.kind,tr=ue.symbol;if(!(Qe.options.use===2&&Te.kind===88)){var hr=Qe.referenceAdder(tr);Qe.options.implementations?cr(Te,hr,Qe):hr(Te,Ke)}}function pn(Te,Ye,Qe,ue){e.isNewExpressionTarget(Te)&&Br(Te,Qe.symbol,ue);var Ke=function(){return ue.referenceAdder(Qe.symbol)};if(e.isClassLike(Te.parent))e.Debug.assert(Te.kind===88||Te.parent.name===Te),or(Qe.symbol,Ye,Ke());else{var tr=on(Te);tr&&(ze(tr,Ke()),xe(tr,ue))}}function ve(Te,Ye,Qe){Br(Te,Ye.symbol,Qe);var ue=Te.parent;if(!(Qe.options.use===2||!e.isClassLike(ue))){e.Debug.assert(ue.name===Te);for(var Ke=Qe.referenceAdder(Ye.symbol),tr=0,hr=ue.members;tr<hr.length;tr++){var _r=hr[tr];!(e.isMethodOrAccessor(_r)&&e.isStatic(_r))||_r.body&&_r.body.forEachChild(function Or(zr){zr.kind===108?Ke(zr):!e.isFunctionLike(zr)&&!e.isClassLike(zr)&&zr.forEachChild(Or)})}}}function or(Te,Ye,Qe){var ue=Ee(Te);if(ue&&ue.declarations)for(var Ke=0,tr=ue.declarations;Ke<tr.length;Ke++){var hr=tr[Ke],_r=e.findChildOfKind(hr,135,Ye);e.Debug.assert(hr.kind===173&&!!_r),Qe(_r)}Te.exports&&Te.exports.forEach(function(Or){var zr=Or.valueDeclaration;if(zr&&zr.kind===171){var fn=zr.body;fn&&jr(fn,108,function(Vr){e.isNewExpressionTarget(Vr)&&Qe(Vr)})}})}function Ee(Te){return Te.members&&Te.members.get("__constructor")}function ze(Te,Ye){var Qe=Ee(Te.symbol);if(!!(Qe&&Qe.declarations))for(var ue=0,Ke=Qe.declarations;ue<Ke.length;ue++){var tr=Ke[ue];e.Debug.assert(tr.kind===173);var hr=tr.body;hr&&jr(hr,106,function(_r){e.isCallExpressionTarget(_r)&&Ye(_r)})}}function Ar(Te){return!!Ee(Te.symbol)}function xe(Te,Ye){if(!Ar(Te)){var Qe=Te.symbol,ue=Ye.createSearch(void 0,Qe,void 0);z(Qe,Ye,ue)}}function cr(Te,Ye,Qe){if(e.isDeclarationName(Te)&&Dr(Te.parent)){Ye(Te);return}if(Te.kind!==79)return;Te.parent.kind===300&&Pr(Te,Qe.checker,Ye);var ue=Mr(Te);if(ue){Ye(ue);return}var Ke=e.findAncestor(Te,function(Or){return!e.isQualifiedName(Or.parent)&&!e.isTypeNode(Or.parent)&&!e.isTypeElement(Or.parent)}),tr=Ke.parent;if(e.hasType(tr)&&tr.type===Ke&&Qe.markSeenContainingTypeReference(tr))if(e.hasInitializer(tr))_r(tr.initializer);else if(e.isFunctionLike(tr)&&tr.body){var hr=tr.body;hr.kind===238?e.forEachReturnStatement(hr,function(Or){Or.expression&&_r(Or.expression)}):_r(hr)}else e.isAssertionExpression(tr)&&_r(tr.expression);function _r(Or){Rr(Or)&&Ye(Or)}}function Mr(Te){return e.isIdentifier(Te)||e.isPropertyAccessExpression(Te)?Mr(Te.parent):e.isExpressionWithTypeArguments(Te)?e.tryCast(Te.parent.parent,e.isClassLike):void 0}function Rr(Te){switch(Te.kind){case 214:return Rr(Te.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function Qr(Te,Ye,Qe,ue){if(Te===Ye)return!0;var Ke=e.getSymbolId(Te)+","+e.getSymbolId(Ye),tr=Qe.get(Ke);if(tr!==void 0)return tr;Qe.set(Ke,!1);var hr=!!Te.declarations&&Te.declarations.some(function(_r){return e.getAllSuperTypeNodes(_r).some(function(Or){var zr=ue.getTypeAtLocation(Or);return!!zr&&!!zr.symbol&&Qr(zr.symbol,Ye,Qe,ue)})});return Qe.set(Ke,hr),hr}function en(Te){var Ye=e.getSuperContainer(Te,!1);if(!!Ye){var Qe=32;switch(Ye.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:Qe&=e.getSyntacticModifierFlags(Ye),Ye=Ye.parent;break;default:return}var ue=Ye.getSourceFile(),Ke=e.mapDefined(Se(ue,"super",Ye),function(tr){if(tr.kind===106){var hr=e.getSuperContainer(tr,!1);return hr&&e.isStatic(hr)===!!Qe&&hr.parent.symbol===Ye.symbol?O(tr):void 0}});return[{definition:{type:0,symbol:Ye.symbol},references:Ke}]}}function vn(Te){return Te.kind===79&&Te.parent.kind===166&&Te.parent.name===Te}function Ie(Te,Ye,Qe){var ue=e.getThisContainer(Te,!1),Ke=32;switch(ue.kind){case 171:case 170:if(e.isObjectLiteralMethod(ue)){Ke&=e.getSyntacticModifierFlags(ue),ue=ue.parent;break}case 169:case 168:case 173:case 174:case 175:Ke&=e.getSyntacticModifierFlags(ue),ue=ue.parent;break;case 308:if(e.isExternalModule(ue)||vn(Te))return;case 259:case 215:break;default:return}var tr=e.flatMap(ue.kind===308?Ye:[ue.getSourceFile()],function(_r){return Qe.throwIfCancellationRequested(),Se(_r,"this",e.isSourceFile(ue)?_r:ue).filter(function(Or){if(!e.isThis(Or))return!1;var zr=e.getThisContainer(Or,!1);switch(ue.kind){case 215:case 259:return ue.symbol===zr.symbol;case 171:case 170:return e.isObjectLiteralMethod(ue)&&ue.symbol===zr.symbol;case 228:case 260:case 207:return zr.parent&&ue.symbol===zr.parent.symbol&&e.isStatic(zr)===!!Ke;case 308:return zr.kind===308&&!e.isExternalModule(zr)&&!vn(Or)}})}).map(function(_r){return O(_r)}),hr=e.firstDefined(tr,function(_r){return e.isParameter(_r.node.parent)?_r.node:void 0});return[{definition:{type:3,node:hr||Te},references:tr}]}function We(Te,Ye,Qe,ue){var Ke=e.getContextualTypeFromParentOrAncestorTypeNode(Te,Qe),tr=e.flatMap(Ye,function(hr){return ue.throwIfCancellationRequested(),e.mapDefined(Se(hr,Te.text),function(_r){if(e.isStringLiteralLike(_r)&&_r.text===Te.text)if(Ke){var Or=e.getContextualTypeFromParentOrAncestorTypeNode(_r,Qe);if(Ke!==Qe.getStringType()&&Ke===Or)return O(_r,2)}else return e.isNoSubstitutionTemplateLiteral(_r)&&!e.rangeIsOnSingleLine(_r,hr)?void 0:O(_r,2)})});return[{definition:{type:4,node:Te},references:tr}]}function xr(Te,Ye,Qe,ue,Ke,tr){var hr=[];return Lr(Te,Ye,Qe,ue,!(ue&&Ke),function(_r,Or,zr){zr&&An(Te)!==An(zr)&&(zr=void 0),hr.push(zr||Or||_r)},function(){return!tr}),hr}function Lr(Te,Ye,Qe,ue,Ke,tr,hr){var _r=e.getContainingObjectLiteralElement(Ye);if(_r){var Or=Qe.getShorthandAssignmentValueSymbol(Ye.parent);if(Or&&ue)return tr(Or,void 0,void 0,3);var zr=Qe.getContextualType(_r.parent),fn=zr&&e.firstDefined(e.getPropertySymbolsFromContextualType(_r,Qe,zr,!0),function(we){return Pe(we,4)});if(fn)return fn;var Vr=Oe(Ye,Qe),Wn=Vr&&tr(Vr,void 0,void 0,4);if(Wn)return Wn;var bn=Or&&tr(Or,void 0,void 0,3);if(bn)return bn}var qn=b(Ye,Te,Qe);if(qn){var yn=tr(qn,void 0,void 0,1);if(yn)return yn}var Hn=Pe(Te);if(Hn)return Hn;if(Te.valueDeclaration&&e.isParameterPropertyDeclaration(Te.valueDeclaration,Te.valueDeclaration.parent)){var Ai=Qe.getSymbolsOfParameterPropertyDeclaration(e.cast(Te.valueDeclaration,e.isParameter),Te.name);return e.Debug.assert(Ai.length===2&&!!(Ai[0].flags&1)&&!!(Ai[1].flags&4)),Pe(Te.flags&1?Ai[1]:Ai[0])}var ti=e.getDeclarationOfKind(Te,278);if(!ue||ti&&!ti.propertyName){var Hi=ti&&Qe.getExportSpecifierLocalTargetSymbol(ti);if(Hi){var Ni=tr(Hi,void 0,void 0,1);if(Ni)return Ni}}if(!ue){var gi=void 0;return Ke?gi=e.isObjectBindingElementWithoutPropertyName(Ye.parent)?e.getPropertySymbolFromBindingElement(Qe,Ye.parent):void 0:gi=Ir(Te,Qe),gi&&Pe(gi,4)}e.Debug.assert(ue);var Pn=Ke;if(Pn){var gi=Ir(Te,Qe);return gi&&Pe(gi,4)}function Pe(we,hn){return e.firstDefined(Qe.getRootSymbols(we),function(jn){return tr(we,jn,void 0,hn)||(jn.parent&&jn.parent.flags&(32|64)&&hr(jn)?xn(jn.parent,jn.name,Qe,function(gn){return tr(we,jn,gn,hn)}):void 0)})}function Ir(we,hn){var jn=e.getDeclarationOfKind(we,205);if(jn&&e.isObjectBindingElementWithoutPropertyName(jn))return e.getPropertySymbolFromBindingElement(hn,jn)}}function xn(Te,Ye,Qe,ue){var Ke=new e.Map;return tr(Te);function tr(hr){if(!(!(hr.flags&(32|64))||!e.addToSeen(Ke,e.getSymbolId(hr))))return e.firstDefined(hr.declarations,function(_r){return e.firstDefined(e.getAllSuperTypeNodes(_r),function(Or){var zr=Qe.getTypeAtLocation(Or),fn=zr&&zr.symbol&&Qe.getPropertyOfType(zr,Ye);return zr&&fn&&(e.firstDefined(Qe.getRootSymbols(fn),ue)||tr(zr.symbol))})})}}function An(Te){if(!Te.valueDeclaration)return!1;var Ye=e.getEffectiveModifierFlags(Te.valueDeclaration);return!!(Ye&32)}function Qn(Te,Ye,Qe,ue){var Ke=ue.checker;return Lr(Ye,Qe,Ke,!1,ue.options.use!==2||!!ue.options.providePrefixAndSuffixTextForRename,function(tr,hr,_r,Or){return _r&&An(Ye)!==An(_r)&&(_r=void 0),Te.includes(_r||hr||tr)?{symbol:hr&&!(e.getCheckFlags(tr)&6)?hr:tr,kind:Or}:void 0},function(tr){return!(Te.parents&&!Te.parents.some(function(hr){return Qr(tr.parent,hr,ue.inheritsFromCache,Ke)}))})}function ai(Te,Ye){var Qe=e.getMeaningFromLocation(Te),ue=Ye.declarations;if(ue){var Ke=void 0;do{Ke=Qe;for(var tr=0,hr=ue;tr<hr.length;tr++){var _r=hr[tr],Or=e.getMeaningFromDeclaration(_r);Or&Qe&&(Qe|=Or)}}while(Qe!==Ke)}return Qe}N.getIntersectingMeaningFromDeclarations=ai;function Dr(Te){return Te.flags&16777216?!(e.isInterfaceDeclaration(Te)||e.isTypeAliasDeclaration(Te)):e.isVariableLike(Te)?e.hasInitializer(Te):e.isFunctionLikeDeclaration(Te)?!!Te.body:e.isClassLike(Te)||e.isModuleOrEnumDeclaration(Te)}function Pr(Te,Ye,Qe){var ue=Ye.getSymbolAtLocation(Te),Ke=Ye.getShorthandAssignmentValueSymbol(ue.valueDeclaration);if(Ke)for(var tr=0,hr=Ke.getDeclarations();tr<hr.length;tr++){var _r=hr[tr];e.getMeaningFromDeclaration(_r)&1&&Qe(_r)}}N.getReferenceEntriesForShorthandPropertyAssignment=Pr;function jr(Te,Ye,Qe){e.forEachChild(Te,function(ue){ue.kind===Ye&&Qe(ue),jr(ue,Ye,Qe)})}function on(Te){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(Te).parent)}function je(Te,Ye,Qe){var ue=e.isRightSideOfPropertyAccess(Te)?Te.parent:void 0,Ke=ue&&Qe.getTypeAtLocation(ue.expression),tr=e.mapDefined(Ke&&(Ke.isUnionOrIntersection()?Ke.types:Ke.symbol===Ye.parent?void 0:[Ke]),function(hr){return hr.symbol&&hr.symbol.flags&(32|64)?hr.symbol:void 0});return tr.length===0?void 0:tr}function Sr(Te){return Te.use===2&&Te.providePrefixAndSuffixTextForRename}})(P=ne.Core||(ne.Core={}))})(o=e.FindAllReferences||(e.FindAllReferences={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(L){return(e.isFunctionExpression(L)||e.isClassExpression(L))&&e.isNamedDeclaration(L)}function se(L){return(e.isFunctionExpression(L)||e.isArrowFunction(L)||e.isClassExpression(L))&&e.isVariableDeclaration(L.parent)&&L===L.parent.initializer&&e.isIdentifier(L.parent.name)&&!!(e.getCombinedNodeFlags(L.parent)&2)}function O(L){return e.isSourceFile(L)||e.isModuleDeclaration(L)||e.isFunctionDeclaration(L)||e.isFunctionExpression(L)||e.isClassDeclaration(L)||e.isClassExpression(L)||e.isClassStaticBlockDeclaration(L)||e.isMethodDeclaration(L)||e.isMethodSignature(L)||e.isGetAccessorDeclaration(L)||e.isSetAccessorDeclaration(L)}function ie(L){return e.isSourceFile(L)||e.isModuleDeclaration(L)&&e.isIdentifier(L.name)||e.isFunctionDeclaration(L)||e.isClassDeclaration(L)||e.isClassStaticBlockDeclaration(L)||e.isMethodDeclaration(L)||e.isMethodSignature(L)||e.isGetAccessorDeclaration(L)||e.isSetAccessorDeclaration(L)||K(L)||se(L)}function _e(L){return e.isSourceFile(L)?L:e.isNamedDeclaration(L)?L.name:se(L)?L.parent.name:e.Debug.checkDefined(L.modifiers&&e.find(L.modifiers,Q))}function Q(L){return L.kind===88}function p(L,P){var N=_e(P);return N&&L.getSymbolAtLocation(N)}function D(L,P){if(e.isSourceFile(P))return{text:P.fileName,pos:0,end:0};if((e.isFunctionDeclaration(P)||e.isClassDeclaration(P))&&!e.isNamedDeclaration(P)){var N=P.modifiers&&e.find(P.modifiers,Q);if(N)return{text:"default",pos:N.getStart(),end:N.getEnd()}}if(e.isClassStaticBlockDeclaration(P)){var J=P.getSourceFile(),q=e.skipTrivia(J.text,e.moveRangePastModifiers(P).pos),G=q+6,ye=L.getTypeChecker(),b=ye.getSymbolAtLocation(P.parent),x=b?"".concat(ye.symbolToString(b,P.parent)," "):"";return{text:"".concat(x,"static {}"),pos:q,end:G}}var T=se(P)?P.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(P),"Expected call hierarchy item to have a name"),Z=e.isIdentifier(T)?e.idText(T):e.isStringOrNumericLiteralLike(T)?T.text:e.isComputedPropertyName(T)&&e.isStringOrNumericLiteralLike(T.expression)?T.expression.text:void 0;if(Z===void 0){var ye=L.getTypeChecker(),b=ye.getSymbolAtLocation(T);b&&(Z=ye.symbolToString(b,P))}if(Z===void 0){var B=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});Z=e.usingSingleLineStringWriter(function(u){return B.writeNode(4,P,P.getSourceFile(),u)})}return{text:Z,pos:T.getStart(),end:T.getEnd()}}function le(L){var P,N;if(se(L))return e.isModuleBlock(L.parent.parent.parent.parent)&&e.isIdentifier(L.parent.parent.parent.parent.parent.name)?L.parent.parent.parent.parent.parent.name.getText():void 0;switch(L.kind){case 174:case 175:case 171:return L.parent.kind===207?(P=e.getAssignedName(L.parent))===null||P===void 0?void 0:P.getText():(N=e.getNameOfDeclaration(L.parent))===null||N===void 0?void 0:N.getText();case 259:case 260:case 264:if(e.isModuleBlock(L.parent)&&e.isIdentifier(L.parent.parent.name))return L.parent.parent.name.getText()}}function de(L,P){if(P.body)return P;if(e.isConstructorDeclaration(P))return e.getFirstConstructorWithBody(P.parent);if(e.isFunctionDeclaration(P)||e.isMethodDeclaration(P)){var N=p(L,P);return N&&N.valueDeclaration&&e.isFunctionLikeDeclaration(N.valueDeclaration)&&N.valueDeclaration.body?N.valueDeclaration:void 0}return P}function te(L,P){var N=p(L,P),J;if(N&&N.declarations){var q=e.indicesOf(N.declarations),G=e.map(N.declarations,function(B){return{file:B.getSourceFile().fileName,pos:B.pos}});q.sort(function(B,u){return e.compareStringsCaseSensitive(G[B].file,G[u].file)||G[B].pos-G[u].pos});for(var ye=e.map(q,function(B){return N.declarations[B]}),b=void 0,x=0,T=ye;x<T.length;x++){var Z=T[x];ie(Z)&&((!b||b.parent!==Z.parent||b.end!==Z.pos)&&(J=e.append(J,Z)),b=Z)}}return J}function oe(L,P){var N,J,q;return e.isClassStaticBlockDeclaration(P)?P:e.isFunctionLikeDeclaration(P)?(J=(N=de(L,P))!==null&&N!==void 0?N:te(L,P))!==null&&J!==void 0?J:P:(q=te(L,P))!==null&&q!==void 0?q:P}function ae(L,P){for(var N=L.getTypeChecker(),J=!1;;){if(ie(P))return oe(N,P);if(O(P)){var q=e.findAncestor(P,ie);return q&&oe(N,q)}if(e.isDeclarationName(P)){if(ie(P.parent))return oe(N,P.parent);if(O(P.parent)){var q=e.findAncestor(P.parent,ie);return q&&oe(N,q)}return e.isVariableDeclaration(P.parent)&&P.parent.initializer&&se(P.parent.initializer)?P.parent.initializer:void 0}if(e.isConstructorDeclaration(P))return ie(P.parent)?P.parent:void 0;if(P.kind===124&&e.isClassStaticBlockDeclaration(P.parent)){P=P.parent;continue}if(e.isVariableDeclaration(P)&&P.initializer&&se(P.initializer))return P.initializer;if(!J){var G=N.getSymbolAtLocation(P);if(G&&(G.flags&2097152&&(G=N.getAliasedSymbol(G)),G.valueDeclaration)){J=!0,P=G.valueDeclaration;continue}}return}}ne.resolveCallHierarchyDeclaration=ae;function E(L,P){var N=P.getSourceFile(),J=D(L,P),q=le(P),G=e.getNodeKind(P),ye=e.getNodeModifiers(P),b=e.createTextSpanFromBounds(e.skipTrivia(N.text,P.getFullStart(),!1,!0),P.getEnd()),x=e.createTextSpanFromBounds(J.pos,J.end);return{file:N.fileName,kind:G,kindModifiers:ye,name:J.text,containerName:q,span:b,selectionSpan:x}}ne.createCallHierarchyItem=E;function I(L){return L!==void 0}function f(L){if(L.kind===1){var P=L.node;if(e.isCallOrNewExpressionTarget(P,!0,!0)||e.isTaggedTemplateTag(P,!0,!0)||e.isDecoratorTarget(P,!0,!0)||e.isJsxOpeningLikeElementTagName(P,!0,!0)||e.isRightSideOfPropertyAccess(P)||e.isArgumentExpressionOfElementAccess(P)){var N=P.getSourceFile(),J=e.findAncestor(P,ie)||N;return{declaration:J,range:e.createTextRangeFromNode(P,N)}}}}function m(L){return e.getNodeId(L.declaration)}function y(L,P){return{from:L,fromSpans:P}}function S(L,P){return y(E(L,P[0].declaration),e.map(P,function(N){return e.createTextSpanFromRange(N.range)}))}function k(L,P,N){if(e.isSourceFile(P)||e.isModuleDeclaration(P)||e.isClassStaticBlockDeclaration(P))return[];var J=_e(P),q=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(L,N,L.getSourceFiles(),J,0,{use:1},f),I);return q?e.group(q,m,function(G){return S(L,G)}):[]}ne.getIncomingCalls=k;function C(L,P){function N(q){var G=e.isTaggedTemplateExpression(q)?q.tag:e.isJsxOpeningLikeElement(q)?q.tagName:e.isAccessExpression(q)||e.isClassStaticBlockDeclaration(q)?q:q.expression,ye=ae(L,G);if(ye){var b=e.createTextRangeFromNode(G,q.getSourceFile());if(e.isArray(ye))for(var x=0,T=ye;x<T.length;x++){var Z=T[x];P.push({declaration:Z,range:b})}else P.push({declaration:ye,range:b})}}function J(q){if(!!q&&!(q.flags&16777216)){if(ie(q)){if(e.isClassLike(q))for(var G=0,ye=q.members;G<ye.length;G++){var b=ye[G];b.name&&e.isComputedPropertyName(b.name)&&J(b.name.expression)}return}switch(q.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:N(q);return;case 213:case 231:J(q.expression);return;case 257:case 166:J(q.name),J(q.initializer);return;case 210:N(q),J(q.expression),e.forEach(q.arguments,J);return;case 211:N(q),J(q.expression),e.forEach(q.arguments,J);return;case 212:N(q),J(q.tag),J(q.template);return;case 283:case 282:N(q),J(q.tagName),J(q.attributes);return;case 167:N(q),J(q.expression);return;case 208:case 209:N(q),e.forEachChild(q,J);break;case 235:J(q.expression);return}e.isPartOfTypeNode(q)||e.forEachChild(q,J)}}return J}function me(L,P){e.forEach(L.statements,P)}function De(L,P){!e.hasSyntacticModifier(L,2)&&L.body&&e.isModuleBlock(L.body)&&e.forEach(L.body.statements,P)}function X(L,P,N){var J=de(L,P);J&&(e.forEach(J.parameters,N),N(J.body))}function M(L,P){P(L.body)}function H(L,P){e.forEach(L.modifiers,P);var N=e.getClassExtendsHeritageElement(L);N&&P(N.expression);for(var J=0,q=L.members;J<q.length;J++){var G=q[J];e.canHaveModifiers(G)&&e.forEach(G.modifiers,P),e.isPropertyDeclaration(G)?P(G.initializer):e.isConstructorDeclaration(G)&&G.body?(e.forEach(G.parameters,P),P(G.body)):e.isClassStaticBlockDeclaration(G)&&P(G)}}function V(L,P){var N=[],J=C(L,N);switch(P.kind){case 308:me(P,J);break;case 264:De(P,J);break;case 259:case 215:case 216:case 171:case 174:case 175:X(L.getTypeChecker(),P,J);break;case 260:case 228:H(P,J);break;case 172:M(P,J);break;default:e.Debug.assertNever(P)}return N}function h(L,P){return{to:L,fromSpans:P}}function F(L,P){return h(E(L,P[0].declaration),e.map(P,function(N){return e.createTextSpanFromRange(N.range)}))}function $(L,P){return P.flags&16777216||e.isMethodSignature(P)?[]:e.group(V(L,P),m,function(N){return F(L,N)})}ne.getOutgoingCalls=$})(o=e.CallHierarchy||(e.CallHierarchy={}))})(fr||(fr={}));var fr;(function(e){function o(te,oe,ae,E,I,f,m){var y=e.hostUsesCaseSensitiveFileNames(E),S=e.createGetCanonicalFileName(y),k=ne(oe,ae,S,m),C=ne(ae,oe,S,m);return e.textChanges.ChangeTracker.with({host:E,formatContext:I,preferences:f},function(me){se(te,me,k,oe,ae,E.getCurrentDirectory(),y),O(te,me,k,C,E,S)})}e.getEditsForFileRename=o;function ne(te,oe,ae,E){var I=ae(te);return function(m){var y=E&&E.tryGetSourcePosition({fileName:m,pos:0}),S=f(y?y.fileName:m);return y?S===void 0?void 0:K(y.fileName,S,m,ae):S};function f(m){if(ae(m)===I)return oe;var y=e.tryRemoveDirectoryPrefix(m,I,ae);return y===void 0?void 0:oe+"/"+y}}e.getPathUpdater=ne;function K(te,oe,ae,E){var I=e.getRelativePathFromFile(te,oe,E);return _e(e.getDirectoryPath(ae),I)}function se(te,oe,ae,E,I,f,m){var y=te.getCompilerOptions().configFile;if(!y)return;var S=e.getDirectoryPath(y.fileName),k=e.getTsConfigObjectLiteralExpression(y);if(!k)return;de(k,function(X,M){switch(M){case"files":case"include":case"exclude":{var H=C(X);if(H||M!=="include"||!e.isArrayLiteralExpression(X.initializer))return;var V=e.mapDefined(X.initializer.elements,function(F){return e.isStringLiteral(F)?F.text:void 0});if(V.length===0)return;var h=e.getFileMatcherPatterns(S,[],V,m,f);e.getRegexFromPattern(e.Debug.checkDefined(h.includeFilePattern),m).test(E)&&!e.getRegexFromPattern(e.Debug.checkDefined(h.includeFilePattern),m).test(I)&&oe.insertNodeAfter(y,e.last(X.initializer.elements),e.factory.createStringLiteral(De(I)));return}case"compilerOptions":de(X.initializer,function(F,$){var L=e.getOptionFromName($);L&&(L.isFilePath||L.type==="list"&&L.element.isFilePath)?C(F):$==="paths"&&de(F.initializer,function(P){if(!!e.isArrayLiteralExpression(P.initializer))for(var N=0,J=P.initializer.elements;N<J.length;N++){var q=J[N];me(q)}})});return}});function C(X){for(var M=e.isArrayLiteralExpression(X.initializer)?X.initializer.elements:[X.initializer],H=!1,V=0,h=M;V<h.length;V++){var F=h[V];H=me(F)||H}return H}function me(X){if(!e.isStringLiteral(X))return!1;var M=_e(S,X.text),H=ae(M);return H!==void 0?(oe.replaceRangeWithText(y,le(X,y),De(H)),!0):!1}function De(X){return e.getRelativePathFromDirectory(S,X,!m)}}function O(te,oe,ae,E,I,f){for(var m=te.getSourceFiles(),y=function(me){var De=ae(me.fileName),X=De!=null?De:me.fileName,M=e.getDirectoryPath(X),H=E(me.fileName),V=H||me.fileName,h=e.getDirectoryPath(V),F=De!==void 0||H!==void 0;D(me,oe,function($){if(!!e.pathIsRelative($)){var L=_e(h,$),P=ae(L);return P===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(M,P,f))}},function($){var L=te.getTypeChecker().getSymbolAtLocation($);if(!((L==null?void 0:L.declarations)&&L.declarations.some(function(N){return e.isAmbientModule(N)}))){var P=H!==void 0?p($,e.resolveModuleName($.text,V,te.getCompilerOptions(),I),ae,m):Q(L,$,me,te,I,ae);return P!==void 0&&(P.updated||F&&e.pathIsRelative($.text))?e.moduleSpecifiers.updateModuleSpecifier(te.getCompilerOptions(),me,f(X),P.newFileName,e.createModuleSpecifierResolutionHost(te,I),$.text):void 0}})},S=0,k=m;S<k.length;S++){var C=k[S];y(C)}}function ie(te,oe){return e.normalizePath(e.combinePaths(te,oe))}function _e(te,oe){return e.ensurePathIsNonModuleName(ie(te,oe))}function Q(te,oe,ae,E,I,f){if(te){var m=e.find(te.declarations,e.isSourceFile).fileName,y=f(m);return y===void 0?{newFileName:m,updated:!1}:{newFileName:y,updated:!0}}else{var S=e.getModeForUsageLocation(ae,oe),k=I.resolveModuleNames?I.getResolvedModuleWithFailedLookupLocationsFromCache&&I.getResolvedModuleWithFailedLookupLocationsFromCache(oe.text,ae.fileName,S):E.getResolvedModuleWithFailedLookupLocationsFromCache(oe.text,ae.fileName,S);return p(oe,k,f,E.getSourceFiles())}}function p(te,oe,ae,E){if(!oe)return;if(oe.resolvedModule){var I=S(oe.resolvedModule.resolvedFileName);if(I)return I}var f=e.forEach(oe.failedLookupLocations,m)||e.pathIsRelative(te.text)&&e.forEach(oe.failedLookupLocations,y);if(f)return f;return oe.resolvedModule&&{newFileName:oe.resolvedModule.resolvedFileName,updated:!1};function m(k){var C=ae(k);return C&&e.find(E,function(me){return me.fileName===C})?y(k):void 0}function y(k){return e.endsWith(k,"/package.json")?void 0:S(k)}function S(k){var C=ae(k);return C&&{newFileName:C,updated:!0}}}function D(te,oe,ae,E){for(var I=0,f=te.referencedFiles||e.emptyArray;I<f.length;I++){var m=f[I],y=ae(m.fileName);y!==void 0&&y!==te.text.slice(m.pos,m.end)&&oe.replaceRangeWithText(te,m,y)}for(var S=0,k=te.imports;S<k.length;S++){var C=k[S],y=E(C);y!==void 0&&y!==C.text&&oe.replaceRangeWithText(te,le(C,te),y)}}function le(te,oe){return e.createRange(te.getStart(oe)+1,te.end-1)}function de(te,oe){if(!!e.isObjectLiteralExpression(te))for(var ae=0,E=te.properties;ae<E.length;ae++){var I=E[ae];e.isPropertyAssignment(I)&&e.isStringLiteral(I.name)&&oe(I,I.name.text)}}})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(X,M,H,V,h){var F,$,L=_e(M,H,X),P=L&&[k(L.reference.fileName,L.fileName,L.unverified)]||e.emptyArray;if(L==null?void 0:L.file)return P;var N=e.getTouchingPropertyName(M,H);if(N!==M){var J=N.parent,q=X.getTypeChecker();if(N.kind===161||e.isIdentifier(N)&&e.isJSDocOverrideTag(J)&&J.tagName===N)return ie(q,N)||e.emptyArray;if(e.isJumpStatementTarget(N)){var G=e.getTargetLabel(N.parent,N.text);return G?[f(q,G,"label",N.text,void 0)]:void 0}if(N.kind===105){var ye=e.findAncestor(N.parent,function(Y){return e.isClassStaticBlockDeclaration(Y)?"quit":e.isFunctionLikeDeclaration(Y)});return ye?[y(q,ye)]:void 0}if(e.isStaticModifier(N)&&e.isClassStaticBlockDeclaration(N.parent)){var b=N.parent.parent,x=te(b,q,h),T=x.symbol,Z=x.failedAliasResolution,B=e.filter(b.members,e.isClassStaticBlockDeclaration),u=T?q.symbolToString(T,b):"",A=N.getSourceFile();return e.map(B,function(Y){var d=e.moveRangePastModifiers(Y).pos;return d=e.skipTrivia(A.text,d),f(q,Y,"constructor","static {}",u,!1,Z,{start:d,length:"static".length})})}var w=te(N,q,h),z=w.symbol,U=w.failedAliasResolution,ge=N;if(V&&U){var pe=e.forEach(zn([N],(z==null?void 0:z.declarations)||e.emptyArray,!0),function(Y){return e.findAncestor(Y,e.isAnyImportOrBareOrAccessedRequire)}),He=pe&&e.tryGetModuleSpecifierFromDeclaration(pe);He&&(F=te(He,q,h),z=F.symbol,U=F.failedAliasResolution,ge=He)}if(!z&&e.isModuleSpecifierLike(ge)){var Be=($=M.resolvedModules)===null||$===void 0?void 0:$.get(ge.text,e.getModeForUsageLocation(M,ge));if(Be)return[{name:ge.text,fileName:Be.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:e.createTextSpan(0,0),failedAliasResolution:U,isAmbient:e.isDeclarationFileName(Be.resolvedFileName),unverified:ge!==N}]}if(!z)return e.concatenate(P,de(N,q));if(!(V&&e.every(z.declarations,function(Y){return Y.getSourceFile().fileName===M.fileName}))){var Me=me(q,N);if(Me&&!(e.isJsxOpeningLikeElement(N.parent)&&De(Me))){var Le=y(q,Me,U);if(q.getRootSymbols(z).some(function(Y){return se(Y,Me)}))return[Le];var Ae=E(q,z,N,U,Me)||e.emptyArray;return N.kind===106?zn([Le],Ae,!0):zn(zn([],Ae,!0),[Le],!1)}if(N.parent.kind===300){var Xe=q.getShorthandAssignmentValueSymbol(z.valueDeclaration),Ne=(Xe==null?void 0:Xe.declarations)?Xe.declarations.map(function(Y){return I(Y,q,Xe,N,!1,U)}):e.emptyArray;return e.concatenate(Ne,O(q,N)||e.emptyArray)}if(e.isPropertyName(N)&&e.isBindingElement(J)&&e.isObjectBindingPattern(J.parent)&&N===(J.propertyName||J.name)){var Oe=e.getNameFromPropertyName(N),be=q.getTypeAtLocation(J.parent);return Oe===void 0?e.emptyArray:e.flatMap(be.isUnion()?be.types:[be],function(Y){var d=Y.getProperty(Oe);return d&&E(q,d,N)})}return e.concatenate(P,O(q,N)||E(q,z,N,U))}}}ne.getDefinitionAtPosition=K;function se(X,M){return X===M.symbol||X===M.symbol.parent||e.isAssignmentExpression(M.parent)||!e.isCallLikeExpression(M.parent)&&X===M.parent.symbol}function O(X,M){var H=e.getContainingObjectLiteralElement(M);if(H){var V=H&&X.getContextualType(H.parent);if(V)return e.flatMap(e.getPropertySymbolsFromContextualType(H,X,V,!1),function(h){return E(X,h,M)})}}function ie(X,M){var H=e.findAncestor(M,e.isClassElement);if(!!(H&&H.name)){var V=e.findAncestor(H,e.isClassLike);if(!!V){var h=e.getEffectiveBaseTypeNode(V);if(!!h){var F=e.skipParentheses(h.expression),$=e.isClassExpression(F)?F.symbol:X.getSymbolAtLocation(F);if(!!$){var L=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(H.name)),P=e.hasStaticModifier(H)?X.getPropertyOfType(X.getTypeOfSymbol($),L):X.getPropertyOfType(X.getDeclaredTypeOfSymbol($),L);if(!!P)return E(X,P,M)}}}}}function _e(X,M,H){var V,h,F=S(X.referencedFiles,M);if(F){var $=H.getSourceFileFromReference(X,F);return $&&{reference:F,fileName:$.fileName,file:$,unverified:!1}}var L=S(X.typeReferenceDirectives,M);if(L){var P=H.getResolvedTypeReferenceDirectives().get(L.fileName,L.resolutionMode||X.impliedNodeFormat),$=P&&H.getSourceFile(P.resolvedFileName);return $&&{reference:L,fileName:$.fileName,file:$,unverified:!1}}var N=S(X.libReferenceDirectives,M);if(N){var $=H.getLibFileFromReference(N);return $&&{reference:N,fileName:$.fileName,file:$,unverified:!1}}if((V=X.resolvedModules)===null||V===void 0?void 0:V.size()){var J=e.getTouchingToken(X,M);if(e.isModuleSpecifierLike(J)&&e.isExternalModuleNameRelative(J.text)&&X.resolvedModules.has(J.text,e.getModeForUsageLocation(X,J))){var q=(h=X.resolvedModules.get(J.text,e.getModeForUsageLocation(X,J)))===null||h===void 0?void 0:h.resolvedFileName,G=q||e.resolvePath(e.getDirectoryPath(X.fileName),J.text);return{file:H.getSourceFile(G),fileName:G,reference:{pos:J.getStart(),end:J.getEnd(),fileName:J.text},unverified:!q}}}}ne.getReferenceAtPosition=_e;function Q(X,M,H){var V=e.getTouchingPropertyName(M,H);if(V!==M){if(e.isImportMeta(V.parent)&&V.parent.name===V)return p(X.getTypeAtLocation(V.parent),X,V.parent,!1);var h=te(V,X,!1),F=h.symbol,$=h.failedAliasResolution;if(!!F){var L=X.getTypeOfSymbolAtLocation(F,V),P=D(F,L,X),N=P&&p(P,X,V,$),J=N&&N.length!==0?N:p(L,X,V,$);return J.length?J:!(F.flags&111551)&&F.flags&788968?E(X,e.skipAlias(F,X),V,$):void 0}}}ne.getTypeDefinitionAtPosition=Q;function p(X,M,H,V){return e.flatMap(X.isUnion()&&!(X.flags&32)?X.types:[X],function(h){return h.symbol&&E(M,h.symbol,H,V)})}function D(X,M,H){if(M.symbol===X||X.valueDeclaration&&M.symbol&&e.isVariableDeclaration(X.valueDeclaration)&&X.valueDeclaration.initializer===M.symbol.valueDeclaration){var V=M.getCallSignatures();if(V.length===1)return H.getReturnTypeOfSignature(e.first(V))}}function le(X,M,H){var V=K(X,M,H);if(!(!V||V.length===0)){var h=S(M.referencedFiles,H)||S(M.typeReferenceDirectives,H)||S(M.libReferenceDirectives,H);if(h)return{definitions:V,textSpan:e.createTextSpanFromRange(h)};var F=e.getTouchingPropertyName(M,H),$=e.createTextSpan(F.getStart(),F.getWidth());return{definitions:V,textSpan:$}}}ne.getDefinitionAndBoundSpan=le;function de(X,M){return e.mapDefined(M.getIndexInfosAtLocation(X),function(H){return H.declaration&&y(M,H.declaration)})}function te(X,M,H){var V=M.getSymbolAtLocation(X),h=!1;if((V==null?void 0:V.declarations)&&V.flags&2097152&&!H&&oe(X,V.declarations[0])){var F=M.getAliasedSymbol(V);if(F.declarations)return{symbol:F};h=!0}return{symbol:V,failedAliasResolution:h}}function oe(X,M){return X.kind!==79?!1:X.parent===M?!0:M.kind!==271}function ae(X){if(!e.isAssignmentDeclaration(X))return!1;var M=e.findAncestor(X,function(H){return e.isAssignmentExpression(H)?!0:e.isAssignmentDeclaration(H)?!1:"quit"});return!!M&&e.getAssignmentDeclarationKind(M)===5}function E(X,M,H,V,h){var F=e.filter(M.declarations,function(q){return q!==h}),$=e.filter(F,function(q){return!ae(q)}),L=e.some($)?$:F;return P()||N()||e.map(L,function(q){return I(q,X,M,H,!1,V)});function P(){if(M.flags&32&&!(M.flags&(16|3))&&(e.isNewExpressionTarget(H)||H.kind===135)){var q=e.find(F,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return J(q.members,!0)}}function N(){return e.isCallOrNewExpressionTarget(H)||e.isNameOfFunctionDeclaration(H)?J(F,!1):void 0}function J(q,G){if(!!q){var ye=q.filter(G?e.isConstructorDeclaration:e.isFunctionLike),b=ye.filter(function(x){return!!x.body});return ye.length?b.length!==0?b.map(function(x){return I(x,X,M,H)}):[I(e.last(ye),X,M,H,!1,V)]:void 0}}}function I(X,M,H,V,h,F){var $=M.symbolToString(H),L=e.SymbolDisplay.getSymbolKind(M,H,V),P=H.parent?M.symbolToString(H.parent,V):"";return f(M,X,L,$,P,h,F)}ne.createDefinitionInfo=I;function f(X,M,H,V,h,F,$,L){var P=M.getSourceFile();if(!L){var N=e.getNameOfDeclaration(M)||M;L=e.createTextSpanFromNode(N,P)}return vi(vi({fileName:P.fileName,textSpan:L,kind:H,name:V,containerKind:void 0,containerName:h},e.FindAllReferences.toContextSpan(L,P,e.FindAllReferences.getContextNode(M))),{isLocal:!m(X,M),isAmbient:!!(M.flags&16777216),unverified:F,failedAliasResolution:$})}function m(X,M){if(X.isDeclarationVisible(M))return!0;if(!M.parent)return!1;if(e.hasInitializer(M.parent)&&M.parent.initializer===M)return m(X,M.parent);switch(M.kind){case 169:case 174:case 175:case 171:if(e.hasEffectiveModifier(M,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return m(X,M.parent);default:return!1}}function y(X,M,H){return I(M,X,M.symbol,M,!1,H)}function S(X,M){return e.find(X,function(H){return e.textRangeContainsPositionInclusive(H,M)})}ne.findReferenceInPosition=S;function k(X,M,H){return{fileName:M,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:X,containerName:void 0,containerKind:void 0,unverified:H}}function C(X){var M=e.findAncestor(X,function(V){return!e.isRightSideOfPropertyAccess(V)}),H=M==null?void 0:M.parent;return H&&e.isCallLikeExpression(H)&&e.getInvokedExpression(H)===M?H:void 0}function me(X,M){var H=C(M),V=H&&X.getResolvedSignature(H);return e.tryCast(V&&V.declaration,function(h){return e.isFunctionLike(h)&&!e.isFunctionTypeNode(h)})}function De(X){switch(X.kind){case 173:case 182:case 177:return!0;default:return!1}}})(o=e.GoToDefinition||(e.GoToDefinition={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=["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","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],se,O;function ie(X,M){var H=[];return e.forEachUnique(X,function(V){for(var h=0,F=Q(V);h<F.length;h++){var $=F[h],L=e.isJSDoc($)&&$.tags&&e.find($.tags,function(N){return N.kind===330&&(N.tagName.escapedText==="inheritDoc"||N.tagName.escapedText==="inheritdoc")});if(!($.comment===void 0&&!L||e.isJSDoc($)&&V.kind!==348&&V.kind!==341&&$.tags&&$.tags.some(function(N){return N.kind===348||N.kind===341})&&!$.tags.some(function(N){return N.kind===343||N.kind===344}))){var P=$.comment?D($.comment,M):[];L&&L.comment&&(P=P.concat(D(L.comment,M))),e.contains(H,P,_e)||H.push(P)}}}),e.flatten(e.intersperse(H,[e.lineBreakPart()]))}ne.getJsDocCommentsFromDeclarations=ie;function _e(X,M){return e.arraysEqual(X,M,function(H,V){return H.kind===V.kind&&H.text===V.text})}function Q(X){switch(X.kind){case 343:case 350:return[X];case 341:case 348:return[X,X.parent];default:return e.getJSDocCommentsAndTags(X)}}function p(X,M){var H=[];return e.forEachUnique(X,function(V){var h=e.getJSDocTags(V);if(!(h.some(function(P){return P.kind===348||P.kind===341})&&!h.some(function(P){return P.kind===343||P.kind===344})))for(var F=0,$=h;F<$.length;F++){var L=$[F];H.push({name:L.tagName.text,text:le(L,M)})}}),H}ne.getJsDocTagsFromDeclarations=p;function D(X,M){return typeof X=="string"?[e.textPart(X)]:e.flatMap(X,function(H){return H.kind===324?[e.textPart(H.text)]:e.buildLinkParts(H,M)})}function le(X,M){var H=X.comment,V=X.kind,h=de(V);switch(V){case 332:return N(X.class);case 331:return N(X.class);case 347:var F=X,$=[];if(F.constraint&&$.push(e.textPart(F.constraint.getText())),e.length(F.typeParameters)){e.length($)&&$.push(e.spacePart());var L=F.typeParameters[F.typeParameters.length-1];e.forEach(F.typeParameters,function(q){$.push(h(q.getText())),L!==q&&$.push.apply($,[e.punctuationPart(27),e.spacePart()])})}return H&&$.push.apply($,zn([e.spacePart()],D(H,M),!0)),$;case 346:return N(X.typeExpression);case 348:case 341:case 350:case 343:case 349:var P=X.name;return P?N(P):H===void 0?void 0:D(H,M);default:return H===void 0?void 0:D(H,M)}function N(q){return J(q.getText())}function J(q){return H?q.match(/^https?$/)?zn([e.textPart(q)],D(H,M),!0):zn([h(q),e.spacePart()],D(H,M),!0):[e.textPart(q)]}}function de(X){switch(X){case 343:return e.parameterNamePart;case 350:return e.propertyNamePart;case 347:return e.typeParameterNamePart;case 348:case 341:return e.typeAliasNamePart;default:return e.textPart}}function te(){return se||(se=e.map(K,function(X){return{name:X,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}ne.getJSDocTagNameCompletions=te,ne.getJSDocTagNameCompletionDetails=ae;function oe(){return O||(O=e.map(K,function(X){return{name:"@".concat(X),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}ne.getJSDocTagCompletions=oe;function ae(X){return{name:X,kind:"",kindModifiers:"",displayParts:[e.textPart(X)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}ne.getJSDocTagCompletionDetails=ae;function E(X){if(!e.isIdentifier(X.name))return e.emptyArray;var M=X.name.text,H=X.parent,V=H.parent;return e.isFunctionLike(V)?e.mapDefined(V.parameters,function(h){if(!!e.isIdentifier(h.name)){var F=h.name.text;if(!(H.tags.some(function($){return $!==X&&e.isJSDocParameterTag($)&&e.isIdentifier($.name)&&$.name.escapedText===F})||M!==void 0&&!e.startsWith(F,M)))return{name:F,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}ne.getJSDocParameterNameCompletions=E;function I(X){return{name:X,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(X)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}ne.getJSDocParameterNameCompletionDetails=I;function f(X,M,H,V){var h=e.getTokenAtPosition(M,H),F=e.findAncestor(h,e.isJSDoc);if(!(F&&(F.comment!==void 0||e.length(F.tags)))){var $=h.getStart(M);if(!(!F&&$<H)){var L=k(h,V);if(!!L){var P=L.commentOwner,N=L.parameters,J=L.hasReturn,q=e.hasJSDocNodes(P)&&P.jsDoc?P.jsDoc:void 0,G=e.lastOrUndefined(q);if(!(P.getStart(M)<H||G&&F&&G!==F)){var ye=m(M,H),b=e.hasJSFileExtension(M.fileName),x=(N?y(N||[],b,ye,X):"")+(J?S(ye,X):""),T="/**",Z=" */",B=(q||[]).some(function(z){return!!z.tags});if(x&&!B){var u=T+X+ye+" * ",A=$===H?X+ye:"",w=u+X+x+ye+Z+A;return{newText:w,caretOffset:u.length}}return{newText:T+Z,caretOffset:3}}}}}}ne.getDocCommentTemplateAtPosition=f;function m(X,M){for(var H=X.text,V=e.getLineStartPositionForPosition(M,X),h=V;h<=M&&e.isWhiteSpaceSingleLine(H.charCodeAt(h));h++);return H.slice(V,h)}function y(X,M,H,V){return X.map(function(h,F){var $=h.name,L=h.dotDotDotToken,P=$.kind===79?$.text:"param"+F,N=M?L?"{...any} ":"{any} ":"";return"".concat(H," * @param ").concat(N).concat(P).concat(V)}).join("")}function S(X,M){return"".concat(X," * @returns").concat(M)}function k(X,M){return e.forEachAncestor(X,function(H){return C(H,M)})}function C(X,M){switch(X.kind){case 259:case 215:case 171:case 173:case 170:case 216:var H=X;return{commentOwner:X,parameters:H.parameters,hasReturn:me(H,M)};case 299:return C(X.initializer,M);case 260:case 261:case 263:case 302:case 262:return{commentOwner:X};case 168:{var V=X;return V.type&&e.isFunctionTypeNode(V.type)?{commentOwner:X,parameters:V.type.parameters,hasReturn:me(V.type,M)}:{commentOwner:X}}case 240:{var h=X,F=h.declarationList.declarations,$=F.length===1&&F[0].initializer?De(F[0].initializer):void 0;return $?{commentOwner:X,parameters:$.parameters,hasReturn:me($,M)}:{commentOwner:X}}case 308:return"quit";case 264:return X.parent.kind===264?void 0:{commentOwner:X};case 241:return C(X.expression,M);case 223:{var L=X;return e.getAssignmentDeclarationKind(L)===0?"quit":e.isFunctionLike(L.right)?{commentOwner:X,parameters:L.right.parameters,hasReturn:me(L.right,M)}:{commentOwner:X}}case 169:var P=X.initializer;if(P&&(e.isFunctionExpression(P)||e.isArrowFunction(P)))return{commentOwner:X,parameters:P.parameters,hasReturn:me(P,M)}}}function me(X,M){return!!(M==null?void 0:M.generateReturnInDocTemplate)&&(e.isFunctionTypeNode(X)||e.isArrowFunction(X)&&e.isExpression(X.body)||e.isFunctionLikeDeclaration(X)&&X.body&&e.isBlock(X.body)&&!!e.forEachReturnStatement(X.body,function(H){return H}))}function De(X){for(;X.kind===214;)X=X.expression;switch(X.kind){case 215:case 216:return X;case 228:return e.find(X.members,e.isConstructorDeclaration)}}})(o=e.JsDoc||(e.JsDoc={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(de,te,oe,ae,E,I){var f=e.createPatternMatcher(ae);if(!f)return e.emptyArray;for(var m=[],y=function(me){if(oe.throwIfCancellationRequested(),I&&me.isDeclarationFile)return"continue";me.getNamedDeclarations().forEach(function(De,X){se(f,X,De,te,me.fileName,m)})},S=0,k=de;S<k.length;S++){var C=k[S];y(C)}return m.sort(D),(E===void 0?m:m.slice(0,E)).map(le)}ne.getNavigateToItems=K;function se(de,te,oe,ae,E,I){var f=de.getMatchForLastSegmentOfPattern(te);if(!!f)for(var m=0,y=oe;m<y.length;m++){var S=y[m];if(!!O(S,ae))if(de.patternContainsDots){var k=de.getFullMatch(p(S),te);k&&I.push({name:te,fileName:E,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:S})}else I.push({name:te,fileName:E,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:S})}}function O(de,te){switch(de.kind){case 270:case 273:case 268:var oe=te.getSymbolAtLocation(de.name),ae=te.getAliasedSymbol(oe);return oe.escapedName!==ae.escapedName;default:return!0}}function ie(de,te){var oe=e.getNameOfDeclaration(de);return!!oe&&(Q(oe,te)||oe.kind===164&&_e(oe.expression,te))}function _e(de,te){return Q(de,te)||e.isPropertyAccessExpression(de)&&(te.push(de.name.text),!0)&&_e(de.expression,te)}function Q(de,te){return e.isPropertyNameLiteral(de)&&(te.push(e.getTextOfIdentifierOrLiteral(de)),!0)}function p(de){var te=[],oe=e.getNameOfDeclaration(de);if(oe&&oe.kind===164&&!_e(oe.expression,te))return e.emptyArray;te.shift();for(var ae=e.getContainerNode(de);ae;){if(!ie(ae,te))return e.emptyArray;ae=e.getContainerNode(ae)}return te.reverse()}function D(de,te){return e.compareValues(de.matchKind,te.matchKind)||e.compareStringsCaseSensitiveUI(de.name,te.name)}function le(de){var te=de.declaration,oe=e.getContainerNode(te),ae=oe&&e.getNameOfDeclaration(oe);return{name:de.name,kind:e.getNodeKind(te),kindModifiers:e.getNodeModifiers(te),matchKind:e.PatternMatchKind[de.matchKind],isCaseSensitive:de.isCaseSensitive,fileName:de.fileName,textSpan:e.createTextSpanFromNode(te),containerName:ae?ae.text:"",containerKind:ae?e.getNodeKind(oe):""}}})(o=e.NavigateTo||(e.NavigateTo={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K,se=/\s+/g,O=150,ie,_e,Q=[],p,D=[],le,de=[];function te(Ne,Oe){ie=Oe,_e=Ne;try{return e.map(B(m(Ne)),A)}finally{ae()}}ne.getNavigationBarItems=te;function oe(Ne,Oe){ie=Oe,_e=Ne;try{return u(m(Ne))}finally{ae()}}ne.getNavigationTree=oe;function ae(){_e=void 0,ie=void 0,Q=[],p=void 0,de=[]}function E(Ne){return Xe(Ne.getText(_e))}function I(Ne){return Ne.node.kind}function f(Ne,Oe){Ne.children?Ne.children.push(Oe):Ne.children=[Oe]}function m(Ne){e.Debug.assert(!Q.length);var Oe={node:Ne,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};p=Oe;for(var be=0,Y=Ne.statements;be<Y.length;be++){var d=Y[be];h(d)}return X(),e.Debug.assert(!p&&!Q.length),Oe}function y(Ne,Oe){f(p,S(Ne,Oe))}function S(Ne,Oe){return{node:Ne,name:Oe||(e.isDeclaration(Ne)||e.isExpression(Ne)?e.getNameOfDeclaration(Ne):void 0),additionalNodes:void 0,parent:p,children:void 0,indent:p.indent+1}}function k(Ne){le||(le=new e.Map),le.set(Ne,!0)}function C(Ne){for(var Oe=0;Oe<Ne;Oe++)X()}function me(Ne,Oe){for(var be=[];!e.isPropertyNameLiteral(Oe);){var Y=e.getNameOrArgument(Oe),d=e.getElementOrPropertyAccessName(Oe);Oe=Oe.expression,!(d==="prototype"||e.isPrivateIdentifier(Y))&&be.push(Y)}be.push(Oe);for(var j=be.length-1;j>0;j--){var Y=be[j];De(Ne,Y)}return[be.length-1,be[0]]}function De(Ne,Oe){var be=S(Ne,Oe);f(p,be),Q.push(p),D.push(le),le=void 0,p=be}function X(){p.children&&(F(p.children,p),b(p.children)),p=Q.pop(),le=D.pop()}function M(Ne,Oe,be){De(Ne,be),h(Oe),X()}function H(Ne){Ne.initializer&&Ae(Ne.initializer)?(De(Ne),e.forEachChild(Ne.initializer,h),X()):M(Ne,Ne.initializer)}function V(Ne){return!e.hasDynamicName(Ne)||Ne.kind!==223&&e.isPropertyAccessExpression(Ne.name.expression)&&e.isIdentifier(Ne.name.expression.expression)&&e.idText(Ne.name.expression.expression)==="Symbol"}function h(Ne){var Oe;if(ie.throwIfCancellationRequested(),!(!Ne||e.isToken(Ne)))switch(Ne.kind){case 173:var be=Ne;M(be,be.body);for(var Y=0,d=be.parameters;Y<d.length;Y++){var j=d[Y];e.isParameterPropertyDeclaration(j,be)&&y(j)}break;case 171:case 174:case 175:case 170:V(Ne)&&M(Ne,Ne.body);break;case 169:V(Ne)&&H(Ne);break;case 168:V(Ne)&&y(Ne);break;case 270:var Ce=Ne;Ce.name&&y(Ce.name);var Se=Ce.namedBindings;if(Se)if(Se.kind===271)y(Se);else for(var Re=0,er=Se.elements;Re<er.length;Re++){var wr=er[Re];y(wr)}break;case 300:M(Ne,Ne.name);break;case 301:var mr=Ne.expression;e.isIdentifier(mr)?y(Ne,mr):y(Ne);break;case 205:case 299:case 257:{var Ue=Ne;e.isBindingPattern(Ue.name)?h(Ue.name):H(Ue);break}case 259:var t=Ne.name;t&&e.isIdentifier(t)&&k(t.text),M(Ne,Ne.body);break;case 216:case 215:M(Ne,Ne.body);break;case 263:De(Ne);for(var qr=0,ln=Ne.members;qr<ln.length;qr++){var dr=ln[qr];pe(dr)||y(dr)}X();break;case 260:case 228:case 261:De(Ne);for(var vr=0,kr=Ne.members;vr<kr.length;vr++){var dr=kr[vr];h(dr)}X();break;case 264:M(Ne,ge(Ne).body);break;case 274:{var Ur=Ne.expression,Ue=e.isObjectLiteralExpression(Ur)||e.isCallExpression(Ur)?Ur:e.isArrowFunction(Ur)||e.isFunctionExpression(Ur)?Ur.body:void 0;Ue?(De(Ne),h(Ue),X()):y(Ne);break}case 278:case 268:case 178:case 176:case 177:case 262:y(Ne);break;case 210:case 223:{var Cr=e.getAssignmentDeclarationKind(Ne);switch(Cr){case 1:case 2:M(Ne,Ne.right);return;case 6:case 3:{var rn=Ne,Br=rn.left,pn=Cr===3?Br.expression:Br,ve=0,or=void 0;e.isIdentifier(pn.expression)?(k(pn.expression.text),or=pn.expression):(Oe=me(rn,pn.expression),ve=Oe[0],or=Oe[1]),Cr===6?e.isObjectLiteralExpression(rn.right)&&rn.right.properties.length>0&&(De(rn,or),e.forEachChild(rn.right,h),X()):e.isFunctionExpression(rn.right)||e.isArrowFunction(rn.right)?M(Ne,rn.right,or):(De(rn,or),M(Ne,rn.right,Br.name),X()),C(ve);return}case 7:case 9:{var Ee=Ne,or=Cr===7?Ee.arguments[0]:Ee.arguments[0].expression,ze=Ee.arguments[1],Ar=me(Ne,or),ve=Ar[0],xe=Ar[1];De(Ne,xe),De(Ne,e.setTextRange(e.factory.createIdentifier(ze.text),ze)),h(Ne.arguments[2]),X(),X(),C(ve);return}case 5:{var rn=Ne,Br=rn.left,cr=Br.expression;if(e.isIdentifier(cr)&&e.getElementOrPropertyAccessName(Br)!=="prototype"&&le&&le.has(cr.text)){e.isFunctionExpression(rn.right)||e.isArrowFunction(rn.right)?M(Ne,rn.right,cr):e.isBindableStaticAccessExpression(Br)&&(De(rn,cr),M(rn.left,rn.right,e.getNameOrArgument(Br)),X());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(Cr)}}default:e.hasJSDocNodes(Ne)&&e.forEach(Ne.jsDoc,function(Mr){e.forEach(Mr.tags,function(Rr){e.isJSDocTypeAlias(Rr)&&y(Rr)})}),e.forEachChild(Ne,h)}}function F(Ne,Oe){var be=new e.Map;e.filterMutate(Ne,function(Y,d){var j=Y.name||e.getNameOfDeclaration(Y.node),Ce=j&&E(j);if(!Ce)return!0;var Se=be.get(Ce);if(!Se)return be.set(Ce,Y),!0;if(Se instanceof Array){for(var Re=0,er=Se;Re<er.length;Re++){var wr=er[Re];if(P(wr,Y,d,Oe))return!1}return Se.push(Y),!0}else{var wr=Se;return P(wr,Y,d,Oe)?!1:(be.set(Ce,[wr,Y]),!0)}})}var $=(K={},K[5]=!0,K[3]=!0,K[7]=!0,K[9]=!0,K[0]=!1,K[1]=!1,K[2]=!1,K[8]=!1,K[6]=!0,K[4]=!1,K);function L(Ne,Oe,be,Y){function d(Ue){return e.isFunctionExpression(Ue)||e.isFunctionDeclaration(Ue)||e.isVariableDeclaration(Ue)}var j=e.isBinaryExpression(Oe.node)||e.isCallExpression(Oe.node)?e.getAssignmentDeclarationKind(Oe.node):0,Ce=e.isBinaryExpression(Ne.node)||e.isCallExpression(Ne.node)?e.getAssignmentDeclarationKind(Ne.node):0;if($[j]&&$[Ce]||d(Ne.node)&&$[j]||d(Oe.node)&&$[Ce]||e.isClassDeclaration(Ne.node)&&J(Ne.node)&&$[j]||e.isClassDeclaration(Oe.node)&&$[Ce]||e.isClassDeclaration(Ne.node)&&J(Ne.node)&&d(Oe.node)||e.isClassDeclaration(Oe.node)&&d(Ne.node)&&J(Ne.node)){var Se=Ne.additionalNodes&&e.lastOrUndefined(Ne.additionalNodes)||Ne.node;if(!e.isClassDeclaration(Ne.node)&&!e.isClassDeclaration(Oe.node)||d(Ne.node)||d(Oe.node)){var Re=d(Ne.node)?Ne.node:d(Oe.node)?Oe.node:void 0;if(Re!==void 0){var er=e.setTextRange(e.factory.createConstructorDeclaration(void 0,[],void 0),Re),wr=S(er);wr.indent=Ne.indent+1,wr.children=Ne.node===Re?Ne.children:Oe.children,Ne.children=Ne.node===Re?e.concatenate([wr],Oe.children||[Oe]):e.concatenate(Ne.children||[vi({},Ne)],[wr])}else(Ne.children||Oe.children)&&(Ne.children=e.concatenate(Ne.children||[vi({},Ne)],Oe.children||[Oe]),Ne.children&&(F(Ne.children,Ne),b(Ne.children)));Se=Ne.node=e.setTextRange(e.factory.createClassDeclaration(void 0,Ne.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Ne.node)}else Ne.children=e.concatenate(Ne.children,Oe.children),Ne.children&&F(Ne.children,Ne);var mr=Oe.node;return Y.children[be-1].node.end===Se.end?e.setTextRange(Se,{pos:Se.pos,end:mr.end}):(Ne.additionalNodes||(Ne.additionalNodes=[]),Ne.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,Ne.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Oe.node))),!0}return j!==0}function P(Ne,Oe,be,Y){return L(Ne,Oe,be,Y)?!0:N(Ne.node,Oe.node,Y)?(ye(Ne,Oe),!0):!1}function N(Ne,Oe,be){if(Ne.kind!==Oe.kind||Ne.parent!==Oe.parent&&!(q(Ne,be)&&q(Oe,be)))return!1;switch(Ne.kind){case 169:case 171:case 174:case 175:return e.isStatic(Ne)===e.isStatic(Oe);case 264:return G(Ne,Oe)&&U(Ne)===U(Oe);default:return!0}}function J(Ne){return!!(Ne.flags&8)}function q(Ne,Oe){var be=e.isModuleBlock(Ne.parent)?Ne.parent.parent:Ne.parent;return be===Oe.node||e.contains(Oe.additionalNodes,be)}function G(Ne,Oe){return!Ne.body||!Oe.body?Ne.body===Oe.body:Ne.body.kind===Oe.body.kind&&(Ne.body.kind!==264||G(Ne.body,Oe.body))}function ye(Ne,Oe){var be;Ne.additionalNodes=Ne.additionalNodes||[],Ne.additionalNodes.push(Oe.node),Oe.additionalNodes&&(be=Ne.additionalNodes).push.apply(be,Oe.additionalNodes),Ne.children=e.concatenate(Ne.children,Oe.children),Ne.children&&(F(Ne.children,Ne),b(Ne.children))}function b(Ne){Ne.sort(x)}function x(Ne,Oe){return e.compareStringsCaseSensitiveUI(T(Ne.node),T(Oe.node))||e.compareValues(I(Ne),I(Oe))}function T(Ne){if(Ne.kind===264)return z(Ne);var Oe=e.getNameOfDeclaration(Ne);if(Oe&&e.isPropertyName(Oe)){var be=e.getPropertyNameForPropertyNameNode(Oe);return be&&e.unescapeLeadingUnderscores(be)}switch(Ne.kind){case 215:case 216:case 228:return Me(Ne);default:return}}function Z(Ne,Oe){if(Ne.kind===264)return Xe(z(Ne));if(Oe){var be=e.isIdentifier(Oe)?Oe.text:e.isElementAccessExpression(Oe)?"[".concat(E(Oe.argumentExpression),"]"):E(Oe);if(be.length>0)return Xe(be)}switch(Ne.kind){case 308:var Y=Ne;return e.isExternalModule(Y)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Y.fileName)))),'"'):"<global>";case 274:return e.isExportAssignment(Ne)&&Ne.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return e.getSyntacticModifierFlags(Ne)&1024?"default":Me(Ne);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function B(Ne){var Oe=[];function be(d){if(Y(d)&&(Oe.push(d),d.children))for(var j=0,Ce=d.children;j<Ce.length;j++){var Se=Ce[j];be(Se)}}return be(Ne),Oe;function Y(d){if(d.children)return!0;switch(I(d)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 348:case 341:return!0;case 216:case 259:case 215:return j(d);default:return!1}function j(Ce){if(!Ce.node.body)return!1;switch(I(Ce.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function u(Ne){return{text:Z(Ne.node,Ne.name),kind:e.getNodeKind(Ne.node),kindModifiers:Be(Ne.node),spans:w(Ne),nameSpan:Ne.name&&He(Ne.name),childItems:e.map(Ne.children,u)}}function A(Ne){return{text:Z(Ne.node,Ne.name),kind:e.getNodeKind(Ne.node),kindModifiers:Be(Ne.node),spans:w(Ne),childItems:e.map(Ne.children,Oe)||de,indent:Ne.indent,bolded:!1,grayed:!1};function Oe(be){return{text:Z(be.node,be.name),kind:e.getNodeKind(be.node),kindModifiers:e.getNodeModifiers(be.node),spans:w(be),childItems:de,indent:0,bolded:!1,grayed:!1}}}function w(Ne){var Oe=[He(Ne.node)];if(Ne.additionalNodes)for(var be=0,Y=Ne.additionalNodes;be<Y.length;be++){var d=Y[be];Oe.push(He(d))}return Oe}function z(Ne){return e.isAmbientModule(Ne)?e.getTextOfNode(Ne.name):U(Ne)}function U(Ne){for(var Oe=[e.getTextOfIdentifierOrLiteral(Ne.name)];Ne.body&&Ne.body.kind===264;)Ne=Ne.body,Oe.push(e.getTextOfIdentifierOrLiteral(Ne.name));return Oe.join(".")}function ge(Ne){return Ne.body&&e.isModuleDeclaration(Ne.body)?ge(Ne.body):Ne}function pe(Ne){return!Ne.name||Ne.name.kind===164}function He(Ne){return Ne.kind===308?e.createTextSpanFromRange(Ne):e.createTextSpanFromNode(Ne,_e)}function Be(Ne){return Ne.parent&&Ne.parent.kind===257&&(Ne=Ne.parent),e.getNodeModifiers(Ne)}function Me(Ne){var Oe=Ne.parent;if(Ne.name&&e.getFullWidth(Ne.name)>0)return Xe(e.declarationNameToString(Ne.name));if(e.isVariableDeclaration(Oe))return Xe(e.declarationNameToString(Oe.name));if(e.isBinaryExpression(Oe)&&Oe.operatorToken.kind===63)return E(Oe.left).replace(se,"");if(e.isPropertyAssignment(Oe))return E(Oe.name);if(e.getSyntacticModifierFlags(Ne)&1024)return"default";if(e.isClassLike(Ne))return"<class>";if(e.isCallExpression(Oe)){var be=Le(Oe.expression);if(be!==void 0){if(be=Xe(be),be.length>O)return"".concat(be," callback");var Y=Xe(e.mapDefined(Oe.arguments,function(d){return e.isStringLiteralLike(d)?d.getText(_e):void 0}).join(", "));return"".concat(be,"(").concat(Y,") callback")}}return"<function>"}function Le(Ne){if(e.isIdentifier(Ne))return Ne.text;if(e.isPropertyAccessExpression(Ne)){var Oe=Le(Ne.expression),be=Ne.name.text;return Oe===void 0?be:"".concat(Oe,".").concat(be)}else return}function Ae(Ne){switch(Ne.kind){case 216:case 215:case 228:return!0;default:return!1}}function Xe(Ne){return Ne=Ne.length>O?Ne.substring(0,O)+"...":Ne,Ne.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(o=e.NavigationBar||(e.NavigationBar={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(M,H,V,h,F,$){var L=e.textChanges.ChangeTracker.fromContext({host:V,formatContext:H,preferences:F}),P=$==="SortAndCombine"||$==="All",N=P,J=$==="RemoveUnused"||$==="All",q=J?ie:e.identity,G=N?p:e.identity,ye=function(z){var U=G(q(z,M,h));return P?e.stableSort(U,function(ge,pe){return k(ge,pe)}):U},b=se(M,M.statements.filter(e.isImportDeclaration));if(b.forEach(function(z){return w(z,ye)}),$!=="RemoveUnused"){var x=M.statements.filter(e.isExportDeclaration);w(x,le)}for(var T=0,Z=M.statements.filter(e.isAmbientModule);T<Z.length;T++){var B=Z[T];if(!!B.body){var u=se(M,B.body.statements.filter(e.isImportDeclaration));if(u.forEach(function(z){return w(z,ye)}),$!=="RemoveUnused"){var A=B.body.statements.filter(e.isExportDeclaration);w(A,le)}}}return L.getChanges();function w(z,U){if(e.length(z)!==0){e.suppressLeadingTrivia(z[0]);var ge=N?e.group(z,function(Le){return Q(Le.moduleSpecifier)}):[z],pe=P?e.stableSort(ge,function(Le,Ae){return ae(Le[0].moduleSpecifier,Ae[0].moduleSpecifier)}):ge,He=e.flatMap(pe,function(Le){return Q(Le[0].moduleSpecifier)?U(Le):Le});if(He.length===0)L.deleteNodes(M,z,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var Be={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(V,H.options)};L.replaceNodeWithNodes(M,z[0],He,Be);var Me=L.nodeHasTrailingComment(M,z[0],Be);L.deleteNodes(M,z.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},Me)}}}}ne.organizeImports=K;function se(M,H){for(var V=e.createScanner(M.languageVersion,!1,M.languageVariant),h=[],F=0,$=0,L=H;$<L.length;$++){var P=L[$];O(M,P,V)&&F++,h[F]||(h[F]=[]),h[F].push(P)}return h}function O(M,H,V){var h=H.getFullStart(),F=H.getStart();V.setText(M.text,h,F-h);for(var $=0;V.getTokenPos()<F;){var L=V.scan();if(L===4&&($++,$>=2))return!0}return!1}function ie(M,H,V){for(var h=V.getTypeChecker(),F=V.getCompilerOptions(),$=h.getJsxNamespace(H),L=h.getJsxFragmentFactory(H),P=!!(H.transformFlags&2),N=[],J=0,q=M;J<q.length;J++){var G=q[J],ye=G.importClause,b=G.moduleSpecifier;if(!ye){N.push(G);continue}var x=ye.name,T=ye.namedBindings;if(x&&!B(x)&&(x=void 0),T)if(e.isNamespaceImport(T))B(T.name)||(T=void 0);else{var Z=T.elements.filter(function(u){return B(u.name)});Z.length<T.elements.length&&(T=Z.length?e.factory.updateNamedImports(T,Z):void 0)}x||T?N.push(de(G,x,T)):_e(H,b)&&(H.isDeclarationFile?N.push(e.factory.createImportDeclaration(G.modifiers,void 0,b,void 0)):N.push(G))}return N;function B(u){return P&&(u.text===$||L&&u.text===L)&&e.jsxModeNeedsExplicitImport(F.jsx)||e.FindAllReferences.Core.isSymbolReferencedInFile(u,h,H)}}function _e(M,H){var V=e.isStringLiteral(H)&&H.text;return e.isString(V)&&e.some(M.moduleAugmentations,function(h){return e.isStringLiteral(h)&&h.text===V})}function Q(M){return M!==void 0&&e.isStringLiteralLike(M)?M.text:void 0}function p(M){var H;if(M.length===0)return M;var V=D(M),h=V.importWithoutClause,F=V.typeOnlyImports,$=V.regularImports,L=[];h&&L.push(h);for(var P=0,N=[$,F];P<N.length;P++){var J=N[P],q=J===F,G=J.defaultImports,ye=J.namespaceImports,b=J.namedImports;if(!q&&G.length===1&&ye.length===1&&b.length===0){var x=G[0];L.push(de(x,x.importClause.name,ye[0].importClause.namedBindings));continue}for(var T=e.stableSort(ye,function(Be,Me){return E(Be.importClause.namedBindings.name,Me.importClause.namedBindings.name)}),Z=0,B=T;Z<B.length;Z++){var u=B[Z];L.push(de(u,void 0,u.importClause.namedBindings))}if(!(G.length===0&&b.length===0)){var A=void 0,w=[];if(G.length===1)A=G[0].importClause.name;else for(var z=0,U=G;z<U.length;z++){var x=U[z];w.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),x.importClause.name))}w.push.apply(w,De(b));var ge=te(w),pe=G.length>0?G[0]:b[0],He=ge.length===0?A?void 0:e.factory.createNamedImports(e.emptyArray):b.length===0?e.factory.createNamedImports(ge):e.factory.updateNamedImports(b[0].importClause.namedBindings,ge);q&&A&&He?(L.push(de(pe,A,void 0)),L.push(de((H=b[0])!==null&&H!==void 0?H:pe,void 0,He))):L.push(de(pe,A,He))}}return L}ne.coalesceImports=p;function D(M){for(var H,V={defaultImports:[],namespaceImports:[],namedImports:[]},h={defaultImports:[],namespaceImports:[],namedImports:[]},F=0,$=M;F<$.length;F++){var L=$[F];if(L.importClause===void 0){H=H||L;continue}var P=L.importClause.isTypeOnly?V:h,N=L.importClause,J=N.name,q=N.namedBindings;J&&P.defaultImports.push(L),q&&(e.isNamespaceImport(q)?P.namespaceImports.push(L):P.namedImports.push(L))}return{importWithoutClause:H,typeOnlyImports:V,regularImports:h}}function le(M){if(M.length===0)return M;var H=ye(M),V=H.exportWithoutClause,h=H.namedExports,F=H.typeOnlyExports,$=[];V&&$.push(V);for(var L=0,P=[h,F];L<P.length;L++){var N=P[L];if(N.length!==0){var J=[];J.push.apply(J,e.flatMap(N,function(b){return b.exportClause&&e.isNamedExports(b.exportClause)?b.exportClause.elements:e.emptyArray}));var q=te(J),G=N[0];$.push(e.factory.updateExportDeclaration(G,G.modifiers,G.isTypeOnly,G.exportClause&&(e.isNamedExports(G.exportClause)?e.factory.updateNamedExports(G.exportClause,q):e.factory.updateNamespaceExport(G.exportClause,G.exportClause.name)),G.moduleSpecifier,G.assertClause))}}return $;function ye(b){for(var x,T=[],Z=[],B=0,u=b;B<u.length;B++){var A=u[B];A.exportClause===void 0?x=x||A:A.isTypeOnly?Z.push(A):T.push(A)}return{exportWithoutClause:x,namedExports:T,typeOnlyExports:Z}}}ne.coalesceExports=le;function de(M,H,V){return e.factory.updateImportDeclaration(M,M.modifiers,e.factory.updateImportClause(M.importClause,M.importClause.isTypeOnly,H,V),M.moduleSpecifier,M.assertClause)}function te(M){return e.stableSort(M,oe)}function oe(M,H){return e.compareBooleans(M.isTypeOnly,H.isTypeOnly)||E(M.propertyName||M.name,H.propertyName||H.name)||E(M.name,H.name)}ne.compareImportOrExportSpecifiers=oe;function ae(M,H){var V=M===void 0?void 0:Q(M),h=H===void 0?void 0:Q(H);return e.compareBooleans(V===void 0,h===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(V),e.isExternalModuleNameRelative(h))||e.compareStringsCaseInsensitive(V,h)}ne.compareModuleSpecifiers=ae;function E(M,H){return e.compareStringsCaseInsensitive(M.text,H.text)}function I(M){var H;switch(M.kind){case 268:return(H=e.tryCast(M.moduleReference,e.isExternalModuleReference))===null||H===void 0?void 0:H.expression;case 269:return M.moduleSpecifier;case 240:return M.declarationList.declarations[0].initializer.arguments[0]}}function f(M){return e.arrayIsSorted(M,k)}ne.importsAreSorted=f;function m(M){return e.arrayIsSorted(M,oe)}ne.importSpecifiersAreSorted=m;function y(M,H){var V=e.binarySearch(M,H,e.identity,k);return V<0?~V:V}ne.getImportDeclarationInsertionIndex=y;function S(M,H){var V=e.binarySearch(M,H,e.identity,oe);return V<0?~V:V}ne.getImportSpecifierInsertionIndex=S;function k(M,H){return ae(I(M),I(H))||C(M,H)}ne.compareImportsOrRequireStatements=k;function C(M,H){return e.compareValues(me(M),me(H))}function me(M){var H;switch(M.kind){case 269:return M.importClause?M.importClause.isTypeOnly?1:((H=M.importClause.namedBindings)===null||H===void 0?void 0:H.kind)===271?2:M.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function De(M){return e.flatMap(M,function(H){return e.map(X(H),function(V){return V.name&&V.propertyName&&V.name.escapedText===V.propertyName.escapedText?e.factory.updateImportSpecifier(V,V.isTypeOnly,void 0,V.name):V})})}function X(M){var H;return((H=M.importClause)===null||H===void 0?void 0:H.namedBindings)&&e.isNamedImports(M.importClause.namedBindings)?M.importClause.namedBindings.elements:void 0}})(o=e.OrganizeImports||(e.OrganizeImports={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(E,I){var f=[];return se(E,I,f),O(E,f),f.sort(function(m,y){return m.textSpan.start-y.textSpan.start})}ne.collectElements=K;function se(E,I,f){for(var m=40,y=0,S=zn(zn([],E.statements,!0),[E.endOfFileToken],!1),k=S.length;y<k;){for(;y<k&&!e.isAnyImportSyntax(S[y]);)De(S[y]),y++;if(y===k)break;for(var C=y;y<k&&e.isAnyImportSyntax(S[y]);)p(S[y],E,I,f),y++;var me=y-1;me!==C&&f.push(D(e.findChildOfKind(S[C],100,E).getStart(E),S[me].getEnd(),"imports"))}function De(X){var M;if(m!==0){I.throwIfCancellationRequested(),(e.isDeclaration(X)||e.isVariableStatement(X)||e.isReturnStatement(X)||e.isCallOrNewExpression(X)||X.kind===1)&&p(X,E,I,f),e.isFunctionLike(X)&&e.isBinaryExpression(X.parent)&&e.isPropertyAccessExpression(X.parent.left)&&p(X.parent.left,E,I,f),(e.isBlock(X)||e.isModuleBlock(X))&&Q(X.statements.end,E,I,f),(e.isClassLike(X)||e.isInterfaceDeclaration(X))&&Q(X.members.end,E,I,f);var H=le(X,E);H&&f.push(H),m--,e.isCallExpression(X)?(m++,De(X.expression),m--,X.arguments.forEach(De),(M=X.typeArguments)===null||M===void 0||M.forEach(De)):e.isIfStatement(X)&&X.elseStatement&&e.isIfStatement(X.elseStatement)?(De(X.expression),De(X.thenStatement),m++,De(X.elseStatement),m--):X.forEachChild(De),m++}}}function O(E,I){for(var f=[],m=E.getLineStarts(),y=0,S=m;y<S.length;y++){var k=S[y],C=E.getLineEndOfPosition(k),me=E.text.substring(k,C),De=_e(me);if(!(!De||e.isInComment(E,k)))if(De[1]){var M=f.pop();M&&(M.textSpan.length=C-M.textSpan.start,M.hintSpan.length=C-M.textSpan.start,I.push(M))}else{var X=e.createTextSpanFromBounds(E.text.indexOf("//",k),C);f.push(oe(X,"region",X,!1,De[2]||"#region"))}}}var ie=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function _e(E){return E=e.trimStringStart(E),e.startsWith(E,"//")?(E=e.trimString(E.slice(2)),ie.exec(E)):null}function Q(E,I,f,m){var y=e.getLeadingCommentRanges(I.text,E);if(!y)return;for(var S=-1,k=-1,C=0,me=I.getFullText(),De=0,X=y;De<X.length;De++){var M=X[De],H=M.kind,V=M.pos,h=M.end;switch(f.throwIfCancellationRequested(),H){case 2:var F=me.slice(V,h);if(_e(F)){$(),C=0;break}C===0&&(S=V),k=h,C++;break;case 3:$(),m.push(D(V,h,"comment")),C=0;break;default:e.Debug.assertNever(H)}}$();function $(){C>1&&m.push(D(S,k,"comment"))}}function p(E,I,f,m){e.isJsxText(E)||Q(E.pos,I,f,m)}function D(E,I,f){return oe(e.createTextSpanFromBounds(E,I),f)}function le(E,I){switch(E.kind){case 238:if(e.isFunctionLike(E.parent))return de(E.parent,E,I);switch(E.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return M(E.parent);case 255:var f=E.parent;if(f.tryBlock===E)return M(E.parent);if(f.finallyBlock===E){var m=e.findChildOfKind(f,96,I);if(m)return M(m)}default:return oe(e.createTextSpanFromNode(E,I),"code")}case 265:return M(E.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return M(E);case 186:return M(E,!1,!e.isTupleTypeNode(E.parent),22);case 292:case 293:return H(E.statements);case 207:return X(E);case 206:return X(E,22);case 281:return k(E);case 285:return C(E);case 282:case 283:return me(E.attributes);case 225:case 14:return De(E);case 204:return M(E,!1,!e.isBindingElement(E.parent),22);case 216:return S(E);case 210:return y(E);case 214:return V(E)}function y(h){if(!!h.arguments.length){var F=e.findChildOfKind(h,20,I),$=e.findChildOfKind(h,21,I);if(!(!F||!$||e.positionsAreOnSameLine(F.pos,$.pos,I)))return te(F,$,h,I,!1,!0)}}function S(h){if(!(e.isBlock(h.body)||e.isParenthesizedExpression(h.body)||e.positionsAreOnSameLine(h.body.getFullStart(),h.body.getEnd(),I))){var F=e.createTextSpanFromBounds(h.body.getFullStart(),h.body.getEnd());return oe(F,"code",e.createTextSpanFromNode(h))}}function k(h){var F=e.createTextSpanFromBounds(h.openingElement.getStart(I),h.closingElement.getEnd()),$=h.openingElement.tagName.getText(I),L="<"+$+">...</"+$+">";return oe(F,"code",F,!1,L)}function C(h){var F=e.createTextSpanFromBounds(h.openingFragment.getStart(I),h.closingFragment.getEnd()),$="<>...</>";return oe(F,"code",F,!1,$)}function me(h){if(h.properties.length!==0)return D(h.getStart(I),h.getEnd(),"code")}function De(h){if(!(h.kind===14&&h.text.length===0))return D(h.getStart(I),h.getEnd(),"code")}function X(h,F){return F===void 0&&(F=18),M(h,!1,!e.isArrayLiteralExpression(h.parent)&&!e.isCallExpression(h.parent),F)}function M(h,F,$,L,P){F===void 0&&(F=!1),$===void 0&&($=!0),L===void 0&&(L=18),P===void 0&&(P=L===18?19:23);var N=e.findChildOfKind(E,L,I),J=e.findChildOfKind(E,P,I);return N&&J&&te(N,J,h,I,F,$)}function H(h){return h.length?oe(e.createTextSpanFromRange(h),"code"):void 0}function V(h){if(!e.positionsAreOnSameLine(h.getStart(),h.getEnd(),I)){var F=e.createTextSpanFromBounds(h.getStart(),h.getEnd());return oe(F,"code",e.createTextSpanFromNode(h))}}}function de(E,I,f){var m=ae(E,I,f),y=e.findChildOfKind(I,19,f);return m&&y&&te(m,y,E,f,E.kind!==216)}function te(E,I,f,m,y,S){y===void 0&&(y=!1),S===void 0&&(S=!0);var k=e.createTextSpanFromBounds(S?E.getFullStart():E.getStart(m),I.getEnd());return oe(k,"code",e.createTextSpanFromNode(f,m),y)}function oe(E,I,f,m,y){return f===void 0&&(f=E),m===void 0&&(m=!1),y===void 0&&(y="..."),{textSpan:E,kind:I,hintSpan:f,bannerText:y,autoCollapse:m}}function ae(E,I,f){if(e.isNodeArrayMultiLine(E.parameters,f)){var m=e.findChildOfKind(E,20,f);if(m)return m}return e.findChildOfKind(I,18,f)}})(o=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(fr||(fr={}));var fr;(function(e){var o;(function(F){F[F.exact=0]="exact",F[F.prefix=1]="prefix",F[F.substring=2]="substring",F[F.camelCase=3]="camelCase"})(o=e.PatternMatchKind||(e.PatternMatchKind={}));function ne(F,$){return{kind:F,isCaseSensitive:$}}function K(F){var $=new e.Map,L=F.trim().split(".").map(function(P){return te(P.trim())});if(!L.some(function(P){return!P.subWordTextChunks.length}))return{getFullMatch:function(P,N){return se(P,N,L,$)},getMatchForLastSegmentOfPattern:function(P){return _e(P,e.last(L),$)},patternContainsDots:L.length>1}}e.createPatternMatcher=K;function se(F,$,L,P){var N=_e($,e.last(L),P);if(!!N&&!(L.length-1>F.length)){for(var J,q=L.length-2,G=F.length-1;q>=0;q-=1,G-=1)J=Q(J,_e(F[G],L[q],P));return J}}function O(F,$){var L=$.get(F);return L||$.set(F,L=C(F)),L}function ie(F,$,L){var P=E(F,$.textLowerCase);if(P===0)return ne($.text.length===F.length?o.exact:o.prefix,e.startsWith(F,$.text));if($.isLowerCase){if(P===-1)return;for(var N=O(F,L),J=0,q=N;J<q.length;J++){var G=q[J];if(D(F,G,$.text,!0))return ne(o.substring,D(F,G,$.text,!1))}if($.text.length<F.length&&oe(F.charCodeAt(P)))return ne(o.substring,!1)}else{if(F.indexOf($.text)>0)return ne(o.substring,!0);if($.characterSpans.length>0){var ye=O(F,L),b=de(F,ye,$,!1)?!0:de(F,ye,$,!0)?!1:void 0;if(b!==void 0)return ne(o.camelCase,b)}}}function _e(F,$,L){if(h($.totalTextChunk.text,function(b){return b!==32&&b!==42})){var P=ie(F,$.totalTextChunk,L);if(P)return P}for(var N=$.subWordTextChunks,J,q=0,G=N;q<G.length;q++){var ye=G[q];J=Q(J,ie(F,ye,L))}return J}function Q(F,$){return e.min([F,$],p)}function p(F,$){return F===void 0?1:$===void 0?-1:e.compareValues(F.kind,$.kind)||e.compareBooleans(!F.isCaseSensitive,!$.isCaseSensitive)}function D(F,$,L,P,N){return N===void 0&&(N={start:0,length:L.length}),N.length<=$.length&&V(0,N.length,function(J){return le(L.charCodeAt(N.start+J),F.charCodeAt($.start+J),P)})}function le(F,$,L){return L?I(F)===I($):F===$}function de(F,$,L,P){for(var N=L.characterSpans,J=0,q=0,G,ye;;){if(q===N.length)return!0;if(J===$.length)return!1;for(var b=$[J],x=!1;q<N.length;q++){var T=N[q];if(x&&(!oe(L.text.charCodeAt(N[q-1].start))||!oe(L.text.charCodeAt(N[q].start)))||!D(F,b,L.text,P,T))break;x=!0,G=G===void 0?J:G,ye=ye===void 0?!0:ye,b=e.createTextSpan(b.start+T.length,b.length-T.length)}!x&&ye!==void 0&&(ye=!1),J++}}function te(F){return{totalTextChunk:S(F),subWordTextChunks:y(F)}}function oe(F){if(F>=65&&F<=90)return!0;if(F<127||!e.isUnicodeIdentifierStart(F,99))return!1;var $=String.fromCharCode(F);return $===$.toUpperCase()}function ae(F){if(F>=97&&F<=122)return!0;if(F<127||!e.isUnicodeIdentifierStart(F,99))return!1;var $=String.fromCharCode(F);return $===$.toLowerCase()}function E(F,$){for(var L=F.length-$.length,P=function(q){if(h($,function(G,ye){return I(F.charCodeAt(ye+q))===G}))return{value:q}},N=0;N<=L;N++){var J=P(N);if(typeof J=="object")return J.value}return-1}function I(F){return F>=65&&F<=90?97+(F-65):F<127?F:String.fromCharCode(F).toLowerCase().charCodeAt(0)}function f(F){return F>=48&&F<=57}function m(F){return oe(F)||ae(F)||f(F)||F===95||F===36}function y(F){for(var $=[],L=0,P=0,N=0;N<F.length;N++){var J=F.charCodeAt(N);m(J)?(P===0&&(L=N),P++):P>0&&($.push(S(F.substr(L,P))),P=0)}return P>0&&$.push(S(F.substr(L,P))),$}function S(F){var $=F.toLowerCase();return{text:F,textLowerCase:$,isLowerCase:F===$,characterSpans:k(F)}}function k(F){return me(F,!1)}e.breakIntoCharacterSpans=k;function C(F){return me(F,!0)}e.breakIntoWordSpans=C;function me(F,$){for(var L=[],P=0,N=1;N<F.length;N++){var J=f(F.charCodeAt(N-1)),q=f(F.charCodeAt(N)),G=H(F,$,N),ye=$&&M(F,N,P);(De(F.charCodeAt(N-1))||De(F.charCodeAt(N))||J!==q||G||ye)&&(X(F,P,N)||L.push(e.createTextSpan(P,N-P)),P=N)}return X(F,P,F.length)||L.push(e.createTextSpan(P,F.length-P)),L}function De(F){switch(F){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function X(F,$,L){return h(F,function(P){return De(P)&&P!==95},$,L)}function M(F,$,L){return $!==L&&$+1<F.length&&oe(F.charCodeAt($))&&ae(F.charCodeAt($+1))&&h(F,oe,L,$)}function H(F,$,L){var P=oe(F.charCodeAt(L-1)),N=oe(F.charCodeAt(L));return N&&(!$||!P)}function V(F,$,L){for(var P=F;P<$;P++)if(!L(P))return!1;return!0}function h(F,$,L,P){return L===void 0&&(L=0),P===void 0&&(P=F.length),V(L,P,function(N){return $(F.charCodeAt(N),N)})}})(fr||(fr={}));var fr;(function(e){function o(ne,K,se){K===void 0&&(K=!0),se===void 0&&(se=!1);var O={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},ie=[],_e,Q,p,D=0,le=!1;function de(){return Q=p,p=e.scanner.scan(),p===18?D++:p===19&&D--,p}function te(){var V=e.scanner.getTokenValue(),h=e.scanner.getTokenPos();return{fileName:V,pos:h,end:h+V.length}}function oe(){_e||(_e=[]),_e.push({ref:te(),depth:D})}function ae(){ie.push(te()),E()}function E(){D===0&&(le=!0)}function I(){var V=e.scanner.getToken();return V===136?(V=de(),V===142&&(V=de(),V===10&&oe()),!0):!1}function f(){if(Q===24)return!1;var V=e.scanner.getToken();if(V===100){if(V=de(),V===20){if(V=de(),V===10||V===14)return ae(),!0}else{if(V===10)return ae(),!0;if(V===154){var h=e.scanner.lookAhead(function(){var F=e.scanner.scan();return F!==158&&(F===41||F===18||F===79||e.isKeyword(F))});h&&(V=de())}if(V===79||e.isKeyword(V))if(V=de(),V===158){if(V=de(),V===10)return ae(),!0}else if(V===63){if(y(!0))return!0}else if(V===27)V=de();else return!0;if(V===18){for(V=de();V!==19&&V!==1;)V=de();V===19&&(V=de(),V===158&&(V=de(),V===10&&ae()))}else V===41&&(V=de(),V===128&&(V=de(),(V===79||e.isKeyword(V))&&(V=de(),V===158&&(V=de(),V===10&&ae()))))}return!0}return!1}function m(){var V=e.scanner.getToken();if(V===93){if(E(),V=de(),V===154){var h=e.scanner.lookAhead(function(){var F=e.scanner.scan();return F===41||F===18});h&&(V=de())}if(V===18){for(V=de();V!==19&&V!==1;)V=de();V===19&&(V=de(),V===158&&(V=de(),V===10&&ae()))}else if(V===41)V=de(),V===158&&(V=de(),V===10&&ae());else if(V===100){if(V=de(),V===154){var h=e.scanner.lookAhead(function(){var $=e.scanner.scan();return $===79||e.isKeyword($)});h&&(V=de())}if((V===79||e.isKeyword(V))&&(V=de(),V===63&&y(!0)))return!0}return!0}return!1}function y(V,h){h===void 0&&(h=!1);var F=V?de():e.scanner.getToken();return F===147?(F=de(),F===20&&(F=de(),(F===10||h&&F===14)&&ae()),!0):!1}function S(){var V=e.scanner.getToken();if(V===79&&e.scanner.getTokenValue()==="define"){if(V=de(),V!==20)return!0;if(V=de(),V===10||V===14)if(V=de(),V===27)V=de();else return!0;if(V!==22)return!0;for(V=de();V!==23&&V!==1;)(V===10||V===14)&&ae(),V=de();return!0}return!1}function k(){for(e.scanner.setText(ne),de();e.scanner.getToken()!==1;){if(e.scanner.getToken()===15){var V=[e.scanner.getToken()];e:for(;e.length(V);){var h=e.scanner.scan();switch(h){case 1:break e;case 100:f();break;case 15:V.push(h);break;case 18:e.length(V)&&V.push(h);break;case 19:e.length(V)&&(e.lastOrUndefined(V)===15?e.scanner.reScanTemplateToken(!1)===17&&V.pop():V.pop());break}}de()}I()||f()||m()||se&&(y(!1,!0)||S())||de()}e.scanner.setText(void 0)}if(K&&k(),e.processCommentPragmas(O,ne),e.processPragmasIntoFields(O,e.noop),le){if(_e)for(var C=0,me=_e;C<me.length;C++){var De=me[C];ie.push(De.ref)}return{referencedFiles:O.referencedFiles,typeReferenceDirectives:O.typeReferenceDirectives,libReferenceDirectives:O.libReferenceDirectives,importedFiles:ie,isLibFile:!!O.hasNoDefaultLib,ambientExternalModules:void 0}}else{var X=void 0;if(_e)for(var M=0,H=_e;M<H.length;M++){var De=H[M];De.depth===0?(X||(X=[]),X.push(De.ref.fileName)):ie.push(De.ref)}return{referencedFiles:O.referencedFiles,typeReferenceDirectives:O.typeReferenceDirectives,libReferenceDirectives:O.libReferenceDirectives,importedFiles:ie,isLibFile:!!O.hasNoDefaultLib,ambientExternalModules:X}}}e.preProcessFile=o})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(te,oe,ae,E){var I=e.getAdjustedRenameLocation(e.getTouchingPropertyName(oe,ae));if(de(I)){var f=se(I,te.getTypeChecker(),oe,te,E);if(f)return f}return D(e.Diagnostics.You_cannot_rename_this_element)}ne.getRenameInfo=K;function se(te,oe,ae,E,I){var f=oe.getSymbolAtLocation(te);if(!f){if(e.isStringLiteralLike(te)){var m=e.getContextualTypeFromParentOrAncestorTypeNode(te,oe);if(m&&(m.flags&128||m.flags&1048576&&e.every(m.types,function(M){return!!(M.flags&128)})))return p(te.text,te.text,"string","",te,ae)}else if(e.isLabelName(te)){var y=e.getTextOfNode(te);return p(y,y,"label","",te,ae)}return}var S=f.declarations;if(!(!S||S.length===0)){if(S.some(function(M){return O(E,M)}))return D(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(te)&&te.originalKeywordKind===88&&f.parent&&f.parent.flags&1536)){if(e.isStringLiteralLike(te)&&e.tryGetImportFromModuleSpecifier(te))return I.allowRenameOfImportPath?Q(te,ae,f):void 0;var k=ie(ae,f,oe,I);if(k)return D(k);var C=e.SymbolDisplay.getSymbolKind(oe,f,te),me=e.isImportOrExportSpecifierName(te)||e.isStringOrNumericLiteralLike(te)&&te.parent.kind===164?e.stripQuotes(e.getTextOfIdentifierOrLiteral(te)):void 0,De=me||oe.symbolToString(f),X=me||oe.getFullyQualifiedName(f);return p(De,X,C,e.SymbolDisplay.getSymbolModifiers(oe,f),te,ae)}}}function O(te,oe){var ae=oe.getSourceFile();return te.isSourceFileDefaultLibrary(ae)&&e.fileExtensionIs(ae.fileName,".d.ts")}function ie(te,oe,ae,E){if(!E.providePrefixAndSuffixTextForRename&&oe.flags&2097152){var I=oe.declarations&&e.find(oe.declarations,function(X){return e.isImportSpecifier(X)});I&&!I.propertyName&&(oe=ae.getAliasedSymbol(oe))}var f=oe.declarations;if(!!f){var m=_e(te.path);if(m===void 0)return e.some(f,function(X){return e.isInsideNodeModules(X.getSourceFile().path)})?e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(var y=0,S=f;y<S.length;y++){var k=S[y],C=_e(k.getSourceFile().path);if(C){for(var me=Math.min(m.length,C.length),De=0;De<=me;De++)if(e.compareStringsCaseSensitive(m[De],C[De])!==0)return e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}}function _e(te){var oe=e.getPathComponents(te),ae=oe.lastIndexOf("node_modules");if(ae!==-1)return oe.slice(0,ae+2)}function Q(te,oe,ae){if(!e.isExternalModuleNameRelative(te.text))return D(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var E=ae.declarations&&e.find(ae.declarations,e.isSourceFile);if(!!E){var I=e.endsWith(te.text,"/index")||e.endsWith(te.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(E.fileName),"/index"),f=I===void 0?E.fileName:I,m=I===void 0?"module":"directory",y=te.text.lastIndexOf("/")+1,S=e.createTextSpan(te.getStart(oe)+1+y,te.text.length-y);return{canRename:!0,fileToRename:f,kind:m,displayName:f,fullDisplayName:f,kindModifiers:"",triggerSpan:S}}}function p(te,oe,ae,E,I,f){return{canRename:!0,fileToRename:void 0,kind:ae,displayName:te,fullDisplayName:oe,kindModifiers:E,triggerSpan:le(I,f)}}function D(te){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(te)}}function le(te,oe){var ae=te.getStart(oe),E=te.getWidth(oe);return e.isStringLiteralLike(te)&&(ae+=1,E-=2),e.createTextSpan(ae,E)}function de(te){switch(te.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(te);default:return!1}}ne.nodeIsEligibleForRename=de})(o=e.Rename||(e.Rename={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(te,oe){var ae,E,I={textSpan:e.createTextSpanFromBounds(oe.getFullStart(),oe.getEnd())},f=oe;e:for(;;){var m=ie(f);if(!m.length)break;for(var y=0;y<m.length;y++){var S=m[y-1],k=m[y],C=m[y+1];if(e.getTokenPosOfNode(k,oe,!0)>te)break e;var me=e.singleOrUndefined(e.getTrailingCommentRanges(oe.text,k.end));if(me&&me.kind===2&&$(me.pos,me.end),se(oe,te,k)){if(e.isFunctionBody(k)&&e.isFunctionLikeDeclaration(f)&&!e.positionsAreOnSameLine(k.getStart(oe),k.getEnd(),oe)&&F(k.getStart(oe),k.getEnd()),e.isBlock(k)||e.isTemplateSpan(k)||e.isTemplateHead(k)||e.isTemplateTail(k)||S&&e.isTemplateHead(S)||e.isVariableDeclarationList(k)&&e.isVariableStatement(f)||e.isSyntaxList(k)&&e.isVariableDeclarationList(f)||e.isVariableDeclaration(k)&&e.isSyntaxList(f)&&m.length===1||e.isJSDocTypeExpression(k)||e.isJSDocSignature(k)||e.isJSDocTypeLiteral(k)){f=k;break}if(e.isTemplateSpan(f)&&C&&e.isTemplateMiddleOrTemplateTail(C)){var De=k.getFullStart()-"${".length,X=C.getStart()+"}".length;F(De,X)}var M=e.isSyntaxList(k)&&D(S)&&le(C)&&!e.positionsAreOnSameLine(S.getStart(),C.getStart(),oe),H=M?S.getEnd():k.getStart(),V=M?C.getStart():de(oe,k);if(e.hasJSDocNodes(k)&&((ae=k.jsDoc)===null||ae===void 0?void 0:ae.length)&&F(e.first(k.jsDoc).getStart(),V),e.isSyntaxList(k)){var h=k.getChildren()[0];h&&e.hasJSDocNodes(h)&&((E=h.jsDoc)===null||E===void 0?void 0:E.length)&&h.getStart()!==k.pos&&(H=Math.min(H,e.first(h.jsDoc).getStart()))}F(H,V),(e.isStringLiteral(k)||e.isTemplateLiteral(k))&&F(H+1,V-1),f=k;break}if(y===m.length-1)break e}}return I;function F(L,P){if(L!==P){var N=e.createTextSpanFromBounds(L,P);(!I||!e.textSpansEqual(N,I.textSpan)&&e.textSpanIntersectsWithPosition(N,te))&&(I=vi({textSpan:N},I&&{parent:I}))}}function $(L,P){F(L,P);for(var N=L;oe.text.charCodeAt(N)===47;)N++;F(N,P)}}ne.getSmartSelectionRange=K;function se(te,oe,ae){if(e.Debug.assert(ae.pos<=oe),oe<ae.end)return!0;var E=ae.getEnd();return E===oe?e.getTouchingPropertyName(te,oe).pos<ae.end:!1}var O=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function ie(te){var oe;if(e.isSourceFile(te))return _e(te.getChildAt(0).getChildren(),O);if(e.isMappedTypeNode(te)){var ae=te.getChildren(),E=ae[0],I=ae.slice(1),f=e.Debug.checkDefined(I.pop());e.Debug.assertEqual(E.kind,18),e.Debug.assertEqual(f.kind,19);var m=_e(I,function(X){return X===te.readonlyToken||X.kind===146||X===te.questionToken||X.kind===57}),y=_e(m,function(X){var M=X.kind;return M===22||M===165||M===23});return[E,p(Q(y,function(X){var M=X.kind;return M===58})),f]}if(e.isPropertySignature(te)){var I=_e(te.getChildren(),function(M){return M===te.name||e.contains(te.modifiers,M)}),S=((oe=I[0])===null||oe===void 0?void 0:oe.kind)===323?I[0]:void 0,k=S?I.slice(1):I,C=Q(k,function(M){var H=M.kind;return H===58});return S?[S,p(C)]:C}if(e.isParameter(te)){var me=_e(te.getChildren(),function(X){return X===te.dotDotDotToken||X===te.name}),De=_e(me,function(X){return X===me[0]||X===te.questionToken});return Q(De,function(X){var M=X.kind;return M===63})}return e.isBindingElement(te)?Q(te.getChildren(),function(X){var M=X.kind;return M===63}):te.getChildren()}function _e(te,oe){for(var ae=[],E,I=0,f=te;I<f.length;I++){var m=f[I];oe(m)?(E=E||[],E.push(m)):(E&&(ae.push(p(E)),E=void 0),ae.push(m))}return E&&ae.push(p(E)),ae}function Q(te,oe,ae){if(ae===void 0&&(ae=!0),te.length<2)return te;var E=e.findIndex(te,oe);if(E===-1)return te;var I=te.slice(0,E),f=te[E],m=e.last(te),y=ae&&m.kind===26,S=te.slice(E+1,y?te.length-1:void 0),k=e.compact([I.length?p(I):void 0,f,S.length?p(S):void 0]);return y?k.concat(m):k}function p(te){return e.Debug.assertGreaterThanOrEqual(te.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(te),te[0].pos,e.last(te).end)}function D(te){var oe=te&&te.kind;return oe===18||oe===22||oe===20||oe===283}function le(te){var oe=te&&te.kind;return oe===19||oe===23||oe===21||oe===284}function de(te,oe){switch(oe.kind){case 343:case 341:case 350:case 348:case 345:return te.getLineEndOfPosition(oe.getStart());default:return oe.getEnd()}}})(o=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(x){x[x.Call=0]="Call",x[x.TypeArgs=1]="TypeArgs",x[x.Contextual=2]="Contextual"})(K||(K={}));function se(x,T,Z,B,u){var A=x.getTypeChecker(),w=e.findTokenOnLeftOfPosition(T,Z);if(!!w){var z=!!B&&B.kind==="characterTyped";if(!(z&&(e.isInString(T,Z,w)||e.isInComment(T,Z)))){var U=!!B&&B.kind==="invoked",ge=X(w,Z,T,A,U);if(!!ge){u.throwIfCancellationRequested();var pe=ie(ge,A,T,w,z);return u.throwIfCancellationRequested(),pe?A.runWithCancellationToken(u,function(He){return pe.kind===0?F(pe.candidates,pe.resolvedSignature,ge,T,He):$(pe.symbol,ge,T,He)}):e.isSourceFileJS(T)?Q(ge,x,u):void 0}}}}ne.getSignatureHelpItems=se;var O;(function(x){x[x.Candidate=0]="Candidate",x[x.Type=1]="Type"})(O||(O={}));function ie(x,T,Z,B,u){var A=x.invocation,w=x.argumentCount;switch(A.kind){case 0:{if(u&&!_e(B,A.node,Z))return;var z=[],U=T.getResolvedSignatureForSignatureHelp(A.node,z,w);return z.length===0?void 0:{kind:0,candidates:z,resolvedSignature:U}}case 1:{var ge=A.called;if(u&&!p(B,Z,e.isIdentifier(ge)?ge.parent:ge))return;var z=e.getPossibleGenericSignatures(ge,w,T);if(z.length!==0)return{kind:0,candidates:z,resolvedSignature:e.first(z)};var pe=T.getSymbolAtLocation(ge);return pe&&{kind:1,symbol:pe}}case 2:return{kind:0,candidates:[A.signature],resolvedSignature:A.signature};default:return e.Debug.assertNever(A)}}function _e(x,T,Z){if(!e.isCallOrNewExpression(T))return!1;var B=T.getChildren(Z);switch(x.kind){case 20:return e.contains(B,x);case 27:{var u=e.findContainingList(x);return!!u&&e.contains(B,u)}case 29:return p(x,Z,T.expression);default:return!1}}function Q(x,T,Z){if(x.invocation.kind!==2){var B=H(x.invocation),u=e.isPropertyAccessExpression(B)?B.name.text:void 0,A=T.getTypeChecker();return u===void 0?void 0:e.firstDefined(T.getSourceFiles(),function(w){return e.firstDefined(w.getNamedDeclarations().get(u),function(z){var U=z.symbol&&A.getTypeOfSymbolAtLocation(z.symbol,z),ge=U&&U.getCallSignatures();if(ge&&ge.length)return A.runWithCancellationToken(Z,function(pe){return F(ge,ge[0],x,w,pe,!0)})})})}}function p(x,T,Z){for(var B=x.getFullStart(),u=x.parent;u;){var A=e.findPrecedingToken(B,T,u,!0);if(A)return e.rangeContainsRange(Z,A);u=u.parent}return e.Debug.fail("Could not find preceding token")}function D(x,T,Z){var B=te(x,T,Z);return!B||B.isTypeParameterList||B.invocation.kind!==0?void 0:{invocation:B.invocation.node,argumentCount:B.argumentCount,argumentIndex:B.argumentIndex}}ne.getArgumentInfoForCompletions=D;function le(x,T,Z){var B=de(x,Z);if(!!B){var u=B.list,A=B.argumentIndex,w=S(u,e.isInString(Z,T,x));A!==0&&e.Debug.assertLessThan(A,w);var z=me(u,Z);return{list:u,argumentIndex:A,argumentCount:w,argumentsSpan:z}}}function de(x,T){if(x.kind===29||x.kind===20)return{list:M(x.parent,x,T),argumentIndex:0};var Z=e.findContainingList(x);return Z&&{list:Z,argumentIndex:y(Z,x)}}function te(x,T,Z){var B=x.parent;if(e.isCallOrNewExpression(B)){var u=B,A=le(x,T,Z);if(!A)return;var w=A.list,z=A.argumentIndex,U=A.argumentCount,ge=A.argumentsSpan,pe=!!B.typeArguments&&B.typeArguments.pos===w.pos;return{isTypeParameterList:pe,invocation:{kind:0,node:u},argumentsSpan:ge,argumentIndex:z,argumentCount:U}}else{if(e.isNoSubstitutionTemplateLiteral(x)&&e.isTaggedTemplateExpression(B))return e.isInsideTemplateLiteral(x,T,Z)?C(B,0,Z):void 0;if(e.isTemplateHead(x)&&B.parent.kind===212){var He=B,Be=He.parent;e.Debug.assert(He.kind===225);var z=e.isInsideTemplateLiteral(x,T,Z)?0:1;return C(Be,z,Z)}else if(e.isTemplateSpan(B)&&e.isTaggedTemplateExpression(B.parent.parent)){var Me=B,Be=B.parent.parent;if(e.isTemplateTail(x)&&!e.isInsideTemplateLiteral(x,T,Z))return;var Le=Me.parent.templateSpans.indexOf(Me),z=k(Le,x,T,Z);return C(Be,z,Z)}else if(e.isJsxOpeningLikeElement(B)){var Ae=B.attributes.pos,Xe=e.skipTrivia(Z.text,B.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:B},argumentsSpan:e.createTextSpan(Ae,Xe-Ae),argumentIndex:0,argumentCount:1}}else{var Ne=e.getPossibleTypeArgumentsInfo(x,Z);if(Ne){var Oe=Ne.called,be=Ne.nTypeArguments,u={kind:1,called:Oe},ge=e.createTextSpanFromBounds(Oe.getStart(Z),x.end);return{isTypeParameterList:!0,invocation:u,argumentsSpan:ge,argumentIndex:be,argumentCount:be+1}}return}}}function oe(x,T,Z,B){return I(x,T,Z,B)||te(x,T,Z)}function ae(x){return e.isBinaryExpression(x.parent)?ae(x.parent):x}function E(x){return e.isBinaryExpression(x.left)?E(x.left)+1:2}function I(x,T,Z,B){var u=f(x,Z,T,B);if(!!u){var A=u.contextualType,w=u.argumentIndex,z=u.argumentCount,U=u.argumentsSpan,ge=A.getNonNullableType(),pe=ge.symbol;if(pe!==void 0){var He=e.lastOrUndefined(ge.getCallSignatures());if(He!==void 0){var Be={kind:2,signature:He,node:x,symbol:m(pe)};return{isTypeParameterList:!1,invocation:Be,argumentsSpan:U,argumentIndex:w,argumentCount:z}}}}}function f(x,T,Z,B){if(!(x.kind!==20&&x.kind!==27)){var u=x.parent;switch(u.kind){case 214:case 171:case 215:case 216:var A=le(x,Z,T);if(!A)return;var w=A.argumentIndex,z=A.argumentCount,U=A.argumentsSpan,ge=e.isMethodDeclaration(u)?B.getContextualTypeForObjectLiteralElement(u):B.getContextualType(u);return ge&&{contextualType:ge,argumentIndex:w,argumentCount:z,argumentsSpan:U};case 223:{var pe=ae(u),He=B.getContextualType(pe),Be=x.kind===20?0:E(u)-1,Me=E(pe);return He&&{contextualType:He,argumentIndex:Be,argumentCount:Me,argumentsSpan:e.createTextSpanFromNode(u)}}default:return}}}function m(x){return x.name==="__type"&&e.firstDefined(x.declarations,function(T){return e.isFunctionTypeNode(T)?T.parent.symbol:void 0})||x}function y(x,T){for(var Z=0,B=0,u=x.getChildren();B<u.length;B++){var A=u[B];if(A===T)break;A.kind!==27&&Z++}return Z}function S(x,T){var Z=x.getChildren(),B=e.countWhere(Z,function(u){return u.kind!==27});return!T&&Z.length>0&&e.last(Z).kind===27&&B++,B}function k(x,T,Z,B){return e.Debug.assert(Z>=T.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(T)?e.isInsideTemplateLiteral(T,Z,B)?0:x+2:x+1}function C(x,T,Z){var B=e.isNoSubstitutionTemplateLiteral(x.template)?1:x.template.templateSpans.length+1;return T!==0&&e.Debug.assertLessThan(T,B),{isTypeParameterList:!1,invocation:{kind:0,node:x},argumentsSpan:De(x,Z),argumentIndex:T,argumentCount:B}}function me(x,T){var Z=x.getFullStart(),B=e.skipTrivia(T.text,x.getEnd(),!1);return e.createTextSpan(Z,B-Z)}function De(x,T){var Z=x.template,B=Z.getStart(),u=Z.getEnd();if(Z.kind===225){var A=e.last(Z.templateSpans);A.literal.getFullWidth()===0&&(u=e.skipTrivia(T.text,u,!1))}return e.createTextSpan(B,u-B)}function X(x,T,Z,B,u){for(var A=function(U){e.Debug.assert(e.rangeContainsRange(U.parent,U),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(U.kind),", parent: ").concat(e.Debug.formatSyntaxKind(U.parent.kind))});var ge=oe(U,T,Z,B);if(ge)return{value:ge}},w=x;!e.isSourceFile(w)&&(u||!e.isBlock(w));w=w.parent){var z=A(w);if(typeof z=="object")return z.value}}function M(x,T,Z){var B=x.getChildren(Z),u=B.indexOf(T);return e.Debug.assert(u>=0&&B.length>u+1),B[u+1]}function H(x){return x.kind===0?e.getInvokedExpression(x.node):x.called}function V(x){return x.kind===0?x.node:x.kind===1?x.called:x.node}var h=8192|70221824|16384;function F(x,T,Z,B,u,A){var w,z=Z.isTypeParameterList,U=Z.argumentCount,ge=Z.argumentsSpan,pe=Z.invocation,He=Z.argumentIndex,Be=V(pe),Me=pe.kind===2?pe.symbol:u.getSymbolAtLocation(H(pe))||A&&((w=T.declaration)===null||w===void 0?void 0:w.symbol),Le=Me?e.symbolToDisplayParts(u,Me,A?B:void 0,void 0):e.emptyArray,Ae=e.map(x,function(wr){return N(wr,Le,z,u,Be,B)});He!==0&&e.Debug.assertLessThan(He,U);for(var Xe=0,Ne=0,Oe=0;Oe<Ae.length;Oe++){var be=Ae[Oe];if(x[Oe]===T&&(Xe=Ne,be.length>1))for(var Y=0,d=0,j=be;d<j.length;d++){var Ce=j[d];if(Ce.isVariadic||Ce.parameters.length>=U){Xe=Ne+Y;break}Y++}Ne+=be.length}e.Debug.assert(Xe!==-1);var Se={items:e.flatMapToMutable(Ae,e.identity),applicableSpan:ge,selectedItemIndex:Xe,argumentIndex:He,argumentCount:U},Re=Se.items[Xe];if(Re.isVariadic){var er=e.findIndex(Re.parameters,function(wr){return!!wr.isRest});-1<er&&er<Re.parameters.length-1?Se.argumentIndex=Re.parameters.length:Se.argumentIndex=Math.min(Se.argumentIndex,Re.parameters.length-1)}return Se}function $(x,T,Z,B){var u=T.argumentCount,A=T.argumentsSpan,w=T.invocation,z=T.argumentIndex,U=B.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(x);if(!!U){var ge=[L(x,U,B,V(w),Z)];return{items:ge,applicableSpan:A,selectedItemIndex:0,argumentIndex:z,argumentCount:u}}}function L(x,T,Z,B,u){var A=e.symbolToDisplayParts(Z,x),w=e.createPrinter({removeComments:!0}),z=T.map(function(He){return b(He,Z,B,u,w)}),U=x.getDocumentationComment(Z),ge=x.getJsDocTags(Z),pe=zn(zn([],A,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:pe,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:P,parameters:z,documentation:U,tags:ge}}var P=[e.punctuationPart(27),e.spacePart()];function N(x,T,Z,B,u,A){var w=(Z?q:G)(x,B,u,A);return e.map(w,function(z){var U=z.isVariadic,ge=z.parameters,pe=z.prefix,He=z.suffix,Be=zn(zn([],T,!0),pe,!0),Me=zn(zn([],He,!0),J(x,u,B),!0),Le=x.getDocumentationComment(B),Ae=x.getJsDocTags();return{isVariadic:U,prefixDisplayParts:Be,suffixDisplayParts:Me,separatorDisplayParts:P,parameters:ge,documentation:Le,tags:Ae}})}function J(x,T,Z){return e.mapToDisplayParts(function(B){B.writePunctuation(":"),B.writeSpace(" ");var u=Z.getTypePredicateOfSignature(x);u?Z.writeTypePredicate(u,T,void 0,B):Z.writeType(Z.getReturnTypeOfSignature(x),T,void 0,B)})}function q(x,T,Z,B){var u=(x.target||x).typeParameters,A=e.createPrinter({removeComments:!0}),w=(u||e.emptyArray).map(function(U){return b(U,T,Z,B,A)}),z=x.thisParameter?[T.symbolToParameterDeclaration(x.thisParameter,Z,h)]:[];return T.getExpandedParameters(x).map(function(U){var ge=e.factory.createNodeArray(zn(zn([],z,!0),e.map(U,function(He){return T.symbolToParameterDeclaration(He,Z,h)}),!0)),pe=e.mapToDisplayParts(function(He){A.writeList(2576,ge,B,He)});return{isVariadic:!1,parameters:w,prefix:[e.punctuationPart(29)],suffix:zn([e.punctuationPart(31)],pe,!0)}})}function G(x,T,Z,B){var u=e.createPrinter({removeComments:!0}),A=e.mapToDisplayParts(function(U){if(x.typeParameters&&x.typeParameters.length){var ge=e.factory.createNodeArray(x.typeParameters.map(function(pe){return T.typeParameterToDeclaration(pe,Z,h)}));u.writeList(53776,ge,B,U)}}),w=T.getExpandedParameters(x),z=T.hasEffectiveRestParameter(x)?w.length===1?function(U){return!0}:function(U){return!!(U.length&&U[U.length-1].checkFlags&32768)}:function(U){return!1};return w.map(function(U){return{isVariadic:z(U),parameters:U.map(function(ge){return ye(ge,T,Z,B,u)}),prefix:zn(zn([],A,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function ye(x,T,Z,B,u){var A=e.mapToDisplayParts(function(U){var ge=T.symbolToParameterDeclaration(x,Z,h);u.writeNode(4,ge,B,U)}),w=T.isOptionalParameter(x.valueDeclaration),z=!!(x.checkFlags&32768);return{name:x.name,documentation:x.getDocumentationComment(T),displayParts:A,isOptional:w,isRest:z}}function b(x,T,Z,B,u){var A=e.mapToDisplayParts(function(w){var z=T.typeParameterToDeclaration(x,Z,h);u.writeNode(4,z,B,w)});return{name:x.symbol.name,documentation:x.symbol.getDocumentationComment(T),displayParts:A,isOptional:!1,isRest:!1}}})(o=e.SignatureHelp||(e.SignatureHelp={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=30,se=function(Q){return new RegExp("^\\s?/\\*\\*?\\s?".concat(Q,"\\s?\\*\\/\\s?$"))};function O(Q){return Q.includeInlayParameterNameHints==="literals"||Q.includeInlayParameterNameHints==="all"}function ie(Q){return Q.includeInlayParameterNameHints==="literals"}function _e(Q){var p=Q.file,D=Q.program,le=Q.span,de=Q.cancellationToken,te=Q.preferences,oe=p.text,ae=D.getCompilerOptions(),E=D.getTypeChecker(),I=[];return f(p),I;function f(G){if(!(!G||G.getFullWidth()===0)){switch(G.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:de.throwIfCancellationRequested()}if(!!e.textSpanIntersectsWith(le,G.pos,G.getFullWidth())&&!(e.isTypeNode(G)&&!e.isExpressionWithTypeArguments(G)))return te.includeInlayVariableTypeHints&&e.isVariableDeclaration(G)||te.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(G)?De(G):te.includeInlayEnumMemberValueHints&&e.isEnumMember(G)?C(G):O(te)&&(e.isCallExpression(G)||e.isNewExpression(G))?X(G):(te.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(G)&&e.hasContextSensitiveParameters(G)&&$(G),te.includeInlayFunctionLikeReturnTypeHints&&m(G)&&h(G)),e.forEachChild(G,f)}}function m(G){return e.isArrowFunction(G)||e.isFunctionExpression(G)||e.isFunctionDeclaration(G)||e.isMethodDeclaration(G)||e.isGetAccessorDeclaration(G)}function y(G,ye,b){I.push({text:"".concat(b?"...":"").concat(P(G,K),":"),position:ye,kind:"Parameter",whitespaceAfter:!0})}function S(G,ye){I.push({text:": ".concat(P(G,K)),position:ye,kind:"Type",whitespaceBefore:!0})}function k(G,ye){I.push({text:"= ".concat(P(G,K)),position:ye,kind:"Enum",whitespaceBefore:!0})}function C(G){if(!G.initializer){var ye=E.getConstantValue(G);ye!==void 0&&k(ye.toString(),G.end)}}function me(G){return G.symbol&&G.symbol.flags&1536}function De(G){if(!(!G.initializer||e.isBindingPattern(G.name)||e.isVariableDeclaration(G)&&!q(G))){var ye=e.getEffectiveTypeAnnotationNode(G);if(!ye){var b=E.getTypeAtLocation(G);if(!me(b)){var x=N(b);if(x){var T=te.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&e.equateStringsCaseInsensitive(G.name.getText(),x);if(T)return;S(x,G.name.end)}}}}}function X(G){var ye=G.arguments;if(!(!ye||!ye.length)){var b=[],x=E.getResolvedSignatureForSignatureHelp(G,b);if(!(!x||!b.length))for(var T=0;T<ye.length;++T){var Z=ye[T],B=e.skipParentheses(Z);if(!(ie(te)&&!V(B))){var u=E.getParameterIdentifierNameAtPosition(x,T);if(u){var A=u[0],w=u[1],z=te.includeInlayParameterNameHintsWhenArgumentMatchesName||!M(B,A);if(!z&&!w)continue;var U=e.unescapeLeadingUnderscores(A);if(H(B,U))continue;y(U,Z.getStart(),w)}}}}}function M(G,ye){return e.isIdentifier(G)?G.text===ye:e.isPropertyAccessExpression(G)?G.name.text===ye:!1}function H(G,ye){if(!e.isIdentifierText(ye,ae.target,e.getLanguageVariant(p.scriptKind)))return!1;var b=e.getLeadingCommentRanges(oe,G.pos);if(!(b==null?void 0:b.length))return!1;var x=se(ye);return e.some(b,function(T){return x.test(oe.substring(T.pos,T.end))})}function V(G){switch(G.kind){case 221:{var ye=G.operand;return e.isLiteralExpression(ye)||e.isIdentifier(ye)&&e.isInfinityOrNaNString(ye.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{var b=G.escapedText;return J(b)||e.isInfinityOrNaNString(b)}}return e.isLiteralExpression(G)}function h(G){if(!(e.isArrowFunction(G)&&!e.findChildOfKind(G,20,p))){var ye=e.getEffectiveReturnTypeNode(G);if(!(ye||!G.body)){var b=E.getSignatureFromDeclaration(G);if(!!b){var x=E.getReturnTypeOfSignature(b);if(!me(x)){var T=N(x);!T||S(T,F(G))}}}}}function F(G){var ye=e.findChildOfKind(G,21,p);return ye?ye.end:G.parameters.end}function $(G){var ye=E.getSignatureFromDeclaration(G);if(!!ye)for(var b=0;b<G.parameters.length&&b<ye.parameters.length;++b){var x=G.parameters[b];if(!!q(x)){var T=e.getEffectiveTypeAnnotationNode(x);if(!T){var Z=L(ye.parameters[b]);!Z||S(Z,x.questionToken?x.questionToken.end:x.name.end)}}}}function L(G){var ye=G.valueDeclaration;if(!(!ye||!e.isParameter(ye))){var b=E.getTypeOfSymbolAtLocation(G,ye);if(!me(b))return N(b)}}function P(G,ye){return G.length>ye?G.substr(0,ye-"...".length)+"...":G}function N(G){var ye=70221824|1048576|16384,b={removeComments:!0},x=e.createPrinter(b);return e.usingSingleLineStringWriter(function(T){var Z=E.typeToTypeNode(G,void 0,ye,T);e.Debug.assertIsDefined(Z,"should always get typenode"),x.writeNode(4,Z,p,T)})}function J(G){return G==="undefined"}function q(G){if((e.isParameterDeclaration(G)||e.isVariableDeclaration(G)&&e.isVarConst(G))&&G.initializer){var ye=e.skipParentheses(G.initializer);return!(V(ye)||e.isNewExpression(ye)||e.isObjectLiteralExpression(ye)||e.isAssertionExpression(ye))}return!0}}ne.provideInlayHints=_e})(o=e.InlayHints||(e.InlayHints={}))})(fr||(fr={}));var fr;(function(e){var o=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function ne(ie){var _e=e.createGetCanonicalFileName(ie.useCaseSensitiveFileNames()),Q=ie.getCurrentDirectory(),p=new e.Map,D=new e.Map;return{tryGetSourcePosition:te,tryGetGeneratedPosition:oe,toLineColumnOffset:f,clearCache:m};function le(y){return e.toPath(y,Q,_e)}function de(y,S){var k=le(y),C=D.get(k);if(C)return C;var me;if(ie.getDocumentPositionMapper)me=ie.getDocumentPositionMapper(y,S);else if(ie.readFile){var De=I(y);me=De&&e.getDocumentPositionMapper({getSourceFileLike:I,getCanonicalFileName:_e,log:function(X){return ie.log(X)}},y,e.getLineInfo(De.text,e.getLineStarts(De)),function(X){return!ie.fileExists||ie.fileExists(X)?ie.readFile(X):void 0})}return D.set(k,me||e.identitySourceMapConsumer),me||e.identitySourceMapConsumer}function te(y){if(!!e.isDeclarationFileName(y.fileName)){var S=ae(y.fileName);if(!!S){var k=de(y.fileName).getSourcePosition(y);return!k||k===y?void 0:te(k)||k}}}function oe(y){if(!e.isDeclarationFileName(y.fileName)){var S=ae(y.fileName);if(!!S){var k=ie.getProgram();if(!k.isSourceOfProjectReferenceRedirect(S.fileName)){var C=k.getCompilerOptions(),me=e.outFile(C),De=me?e.removeFileExtension(me)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(y.fileName,k.getCompilerOptions(),Q,k.getCommonSourceDirectory(),_e);if(De!==void 0){var X=de(De,y.fileName).getGeneratedPosition(y);return X===y?void 0:X}}}}}function ae(y){var S=ie.getProgram();if(!!S){var k=le(y),C=S.getSourceFileByPath(k);return C&&C.resolvedPath===k?C:void 0}}function E(y){var S=le(y),k=p.get(S);if(k!==void 0)return k||void 0;if(!ie.readFile||ie.fileExists&&!ie.fileExists(S)){p.set(S,!1);return}var C=ie.readFile(S),me=C?O(C):!1;return p.set(S,me),me||void 0}function I(y){return ie.getSourceFileLike?ie.getSourceFileLike(y):ae(y)||E(y)}function f(y,S){var k=I(y);return k.getLineAndCharacterOfPosition(S)}function m(){p.clear(),D.clear()}}e.getSourceMapper=ne;function K(ie,_e,Q,p){var D=e.tryGetSourceMappingURL(Q);if(D){var le=o.exec(D);if(le){if(le[1]){var de=le[1];return se(ie,e.base64decode(e.sys,de),_e)}D=void 0}}var te=[];D&&te.push(D),te.push(_e+".map");for(var oe=D&&e.getNormalizedAbsolutePath(D,e.getDirectoryPath(_e)),ae=0,E=te;ae<E.length;ae++){var I=E[ae],f=e.getNormalizedAbsolutePath(I,e.getDirectoryPath(_e)),m=p(f,oe);if(e.isString(m))return se(ie,m,f);if(m!==void 0)return m||void 0}}e.getDocumentPositionMapper=K;function se(ie,_e,Q){var p=e.tryParseRawSourceMap(_e);if(!(!p||!p.sources||!p.file||!p.mappings)&&!(p.sourcesContent&&p.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(ie,p,Q)}function O(ie,_e){return{text:ie,lineMap:_e,getLineAndCharacterOfPosition:function(Q){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),Q)}}}})(fr||(fr={}));var fr;(function(e){var o=new e.Map;function ne(m,y,S){y.getSemanticDiagnostics(m,S);var k=[],C=y.getTypeChecker(),me=m.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(m.fileName,[".cts",".cjs"]);!me&&m.commonJsModuleIndicator&&(e.programContainsEsModules(y)||e.compilerOptionsIndicateEsModules(y.getCompilerOptions()))&&K(m)&&k.push(e.createDiagnosticForNode(p(m.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var De=e.isSourceFileJS(m);if(o.clear(),L(m),e.getAllowSyntheticDefaultImports(y.getCompilerOptions()))for(var X=0,M=m.imports;X<M.length;X++){var H=M[X],V=e.importFromModuleSpecifier(H),h=O(V);if(!!h){var F=e.getResolvedModule(m,H.text,e.getModeForUsageLocation(m,H)),$=F&&y.getSourceFile(F.resolvedFileName);$&&$.externalModuleIndicator&&$.externalModuleIndicator!==!0&&e.isExportAssignment($.externalModuleIndicator)&&$.externalModuleIndicator.isExportEquals&&k.push(e.createDiagnosticForNode(h,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(k,m.bindSuggestionDiagnostics),e.addRange(k,y.getSuggestionDiagnostics(m,S)),k.sort(function(P,N){return P.start-N.start});function L(P){if(De)I(P,C)&&k.push(e.createDiagnosticForNode(e.isVariableDeclaration(P.parent)?P.parent.name:P,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(P)&&P.parent===m&&P.declarationList.flags&2&&P.declarationList.declarations.length===1){var N=P.declarationList.declarations[0].initializer;N&&e.isRequireCall(N,!0)&&k.push(e.createDiagnosticForNode(N,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(P)&&k.push(e.createDiagnosticForNode(P.name||P,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}f(P)&&ie(P,C,k),P.forEachChild(L)}}e.computeSuggestionDiagnostics=ne;function K(m){return m.statements.some(function(y){switch(y.kind){case 240:return y.declarationList.declarations.some(function(C){return!!C.initializer&&e.isRequireCall(se(C.initializer),!0)});case 241:{var S=y.expression;if(!e.isBinaryExpression(S))return e.isRequireCall(S,!0);var k=e.getAssignmentDeclarationKind(S);return k===1||k===2}default:return!1}})}function se(m){return e.isPropertyAccessExpression(m)?se(m.expression):m}function O(m){switch(m.kind){case 269:var y=m.importClause,S=m.moduleSpecifier;return y&&!y.name&&y.namedBindings&&y.namedBindings.kind===271&&e.isStringLiteral(S)?y.namedBindings.name:void 0;case 268:return m.name;default:return}}function ie(m,y,S){_e(m,y)&&!o.has(E(m))&&S.push(e.createDiagnosticForNode(!m.name&&e.isVariableDeclaration(m.parent)&&e.isIdentifier(m.parent.name)?m.parent.name:m,e.Diagnostics.This_may_be_converted_to_an_async_function))}function _e(m,y){return!e.isAsyncFunction(m)&&m.body&&e.isBlock(m.body)&&D(m.body,y)&&Q(m,y)}function Q(m,y){var S=y.getSignatureFromDeclaration(m),k=S?y.getReturnTypeOfSignature(S):void 0;return!!k&&!!y.getPromisedTypeOfPromise(k)}e.returnsPromise=Q;function p(m){return e.isBinaryExpression(m)?m.left:m}function D(m,y){return!!e.forEachReturnStatement(m,function(S){return le(S,y)})}function le(m,y){return e.isReturnStatement(m)&&!!m.expression&&de(m.expression,y)}e.isReturnStatementWithFixablePromiseHandler=le;function de(m,y){if(!te(m)||!oe(m)||!m.arguments.every(function(k){return ae(k,y)}))return!1;for(var S=m.expression.expression;te(S)||e.isPropertyAccessExpression(S);)if(e.isCallExpression(S)){if(!oe(S)||!S.arguments.every(function(k){return ae(k,y)}))return!1;S=S.expression.expression}else S=S.expression;return!0}e.isFixablePromiseHandler=de;function te(m){return e.isCallExpression(m)&&(e.hasPropertyAccessExpressionWithName(m,"then")||e.hasPropertyAccessExpressionWithName(m,"catch")||e.hasPropertyAccessExpressionWithName(m,"finally"))}function oe(m){var y=m.expression.name.text,S=y==="then"?2:y==="catch"||y==="finally"?1:0;return m.arguments.length>S?!1:m.arguments.length<S?!0:S===1||e.some(m.arguments,function(k){return k.kind===104||e.isIdentifier(k)&&k.text==="undefined"})}function ae(m,y){switch(m.kind){case 259:case 215:var S=e.getFunctionFlags(m);if(S&1)return!1;case 216:o.set(E(m),!0);case 104:return!0;case 79:case 208:{var k=y.getSymbolAtLocation(m);return k?y.isUndefinedSymbol(k)||e.some(e.skipAlias(k,y).declarations,function(C){return e.isFunctionLike(C)||e.hasInitializer(C)&&!!C.initializer&&e.isFunctionLike(C.initializer)}):!1}default:return!1}}function E(m){return"".concat(m.pos.toString(),":").concat(m.end.toString())}function I(m,y){var S,k,C,me;if(m.kind===215){if(e.isVariableDeclaration(m.parent)&&((S=m.symbol.members)===null||S===void 0?void 0:S.size))return!0;var De=y.getSymbolOfExpando(m,!1);return!!(De&&(((k=De.exports)===null||k===void 0?void 0:k.size)||((C=De.members)===null||C===void 0?void 0:C.size)))}return m.kind===259?!!((me=m.symbol.members)===null||me===void 0?void 0:me.size):!1}function f(m){switch(m.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}e.canBeConvertedToAsync=f})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=8192|70221824|16384;function se(D,le,de){var te=O(D,le,de);if(te!=="")return te;var oe=e.getCombinedLocalAndExportSymbolFlags(le);return oe&32?e.getDeclarationOfKind(le,228)?"local class":"class":oe&384?"enum":oe&524288?"type":oe&64?"interface":oe&262144?"type parameter":oe&8?"enum member":oe&2097152?"alias":oe&1536?"module":te}ne.getSymbolKind=se;function O(D,le,de){var te=D.getRootSymbols(le);if(te.length===1&&e.first(te).flags&8192&&D.getTypeOfSymbolAtLocation(le,de).getNonNullableType().getCallSignatures().length!==0)return"method";if(D.isUndefinedSymbol(le))return"var";if(D.isArgumentsSymbol(le))return"local var";if(de.kind===108&&e.isExpression(de)||e.isThisInTypeQuery(de))return"parameter";var oe=e.getCombinedLocalAndExportSymbolFlags(le);if(oe&3)return e.isFirstDeclarationOfSymbolParameter(le)?"parameter":le.valueDeclaration&&e.isVarConst(le.valueDeclaration)?"const":e.forEach(le.declarations,e.isLet)?"let":p(le)?"local var":"var";if(oe&16)return p(le)?"local function":"function";if(oe&32768)return"getter";if(oe&65536)return"setter";if(oe&8192)return"method";if(oe&16384)return"constructor";if(oe&131072)return"index";if(oe&4){if(oe&33554432&&le.checkFlags&6){var ae=e.forEach(D.getRootSymbols(le),function(I){var f=I.getFlags();if(f&(98308|3))return"property"});if(!ae){var E=D.getTypeOfSymbolAtLocation(le,de);return E.getCallSignatures().length?"method":"property"}return ae}return"property"}return""}function ie(D){if(D.declarations&&D.declarations.length){var le=D.declarations,de=le[0],te=le.slice(1),oe=e.length(te)&&e.isDeprecatedDeclaration(de)&&e.some(te,function(E){return!e.isDeprecatedDeclaration(E)})?8192:0,ae=e.getNodeModifiers(de,oe);if(ae)return ae.split(",")}return[]}function _e(D,le){if(!le)return"";var de=new e.Set(ie(le));if(le.flags&2097152){var te=D.getAliasedSymbol(le);te!==le&&e.forEach(ie(te),function(oe){de.add(oe)})}return le.flags&16777216&&de.add("optional"),de.size>0?e.arrayFrom(de.values()).join(","):""}ne.getSymbolModifiers=_e;function Q(D,le,de,te,oe,ae,E){var I;ae===void 0&&(ae=e.getMeaningFromLocation(oe));var f=[],m=[],y=[],S=e.getCombinedLocalAndExportSymbolFlags(le),k=ae&1?O(D,le,oe):"",C=!1,me=oe.kind===108&&e.isInExpressionContext(oe)||e.isThisInTypeQuery(oe),De,X,M,H,V=!1;if(oe.kind===108&&!me)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(k!==""||S&32||S&2097152){if(k==="getter"||k==="setter"){var h=e.find(le.declarations,function(Ce){return Ce.name===oe});if(h)switch(h.kind){case 174:k="getter";break;case 175:k="setter";break;case 169:k="accessor";break;default:e.Debug.assertNever(h)}else k="property"}var F=void 0;if(De=me?D.getTypeAtLocation(oe):D.getTypeOfSymbolAtLocation(le,oe),oe.parent&&oe.parent.kind===208){var $=oe.parent.name;($===oe||$&&$.getFullWidth()===0)&&(oe=oe.parent)}var L=void 0;if(e.isCallOrNewExpression(oe)?L=oe:(e.isCallExpressionTarget(oe)||e.isNewExpressionTarget(oe)||oe.parent&&(e.isJsxOpeningLikeElement(oe.parent)||e.isTaggedTemplateExpression(oe.parent))&&e.isFunctionLike(le.valueDeclaration))&&(L=oe.parent),L){F=D.getResolvedSignature(L);var P=L.kind===211||e.isCallExpression(L)&&L.expression.kind===106,N=P?De.getConstructSignatures():De.getCallSignatures();if(F&&!e.contains(N,F.target)&&!e.contains(N,F)&&(F=N.length?N[0]:void 0),F){switch(P&&S&32?(k="constructor",be(De.symbol,k)):S&2097152?(k="alias",Y(k),f.push(e.spacePart()),P&&(F.flags&4&&(f.push(e.keywordPart(126)),f.push(e.spacePart())),f.push(e.keywordPart(103)),f.push(e.spacePart())),Oe(le)):be(le,k),k){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":f.push(e.punctuationPart(58)),f.push(e.spacePart()),!(e.getObjectFlags(De)&16)&&De.symbol&&(e.addRange(f,e.symbolToDisplayParts(D,De.symbol,te,void 0,4|1)),f.push(e.lineBreakPart())),P&&(F.flags&4&&(f.push(e.keywordPart(126)),f.push(e.spacePart())),f.push(e.keywordPart(103)),f.push(e.spacePart())),d(F,N,262144);break;default:d(F,N)}C=!0,V=N.length>1}}else if(e.isNameOfFunctionDeclaration(oe)&&!(S&98304)||oe.kind===135&&oe.parent.kind===173){var J=oe.parent,q=le.declarations&&e.find(le.declarations,function(Ce){return Ce===(oe.kind===135?J.parent:J)});if(q){var N=J.kind===173?De.getNonNullableType().getConstructSignatures():De.getNonNullableType().getCallSignatures();D.isImplementationOfOverload(J)?F=N[0]:F=D.getSignatureFromDeclaration(J),J.kind===173?(k="constructor",be(De.symbol,k)):be(J.kind===176&&!(De.symbol.flags&2048||De.symbol.flags&4096)?De.symbol:le,k),F&&d(F,N),C=!0,V=N.length>1}}}if(S&32&&!C&&!me&&(Xe(),e.getDeclarationOfKind(le,228)?Y("local class"):f.push(e.keywordPart(84)),f.push(e.spacePart()),Oe(le),j(le,de)),S&64&&ae&2&&(Ae(),f.push(e.keywordPart(118)),f.push(e.spacePart()),Oe(le),j(le,de)),S&524288&&ae&2&&(Ae(),f.push(e.keywordPart(154)),f.push(e.spacePart()),Oe(le),j(le,de),f.push(e.spacePart()),f.push(e.operatorPart(63)),f.push(e.spacePart()),e.addRange(f,e.typeToDisplayParts(D,e.isConstTypeReference(oe.parent)?D.getTypeAtLocation(oe.parent):D.getDeclaredTypeOfSymbol(le),te,8388608))),S&384&&(Ae(),e.some(le.declarations,function(Ce){return e.isEnumDeclaration(Ce)&&e.isEnumConst(Ce)})&&(f.push(e.keywordPart(85)),f.push(e.spacePart())),f.push(e.keywordPart(92)),f.push(e.spacePart()),Oe(le)),S&1536&&!me){Ae();var h=e.getDeclarationOfKind(le,264),G=h&&h.name&&h.name.kind===79;f.push(e.keywordPart(G?143:142)),f.push(e.spacePart()),Oe(le)}if(S&262144&&ae&2)if(Ae(),f.push(e.punctuationPart(20)),f.push(e.textPart("type parameter")),f.push(e.punctuationPart(21)),f.push(e.spacePart()),Oe(le),le.parent)Ne(),Oe(le.parent,te),j(le.parent,te);else{var ye=e.getDeclarationOfKind(le,165);if(ye===void 0)return e.Debug.fail();var h=ye.parent;if(h)if(e.isFunctionLikeKind(h.kind)){Ne();var F=D.getSignatureFromDeclaration(h);h.kind===177?(f.push(e.keywordPart(103)),f.push(e.spacePart())):h.kind!==176&&h.name&&Oe(h.symbol),e.addRange(f,e.signatureToDisplayParts(D,F,de,32))}else h.kind===262&&(Ne(),f.push(e.keywordPart(154)),f.push(e.spacePart()),Oe(h.symbol),j(h.symbol,de))}if(S&8){k="enum member",be(le,"enum member");var h=(I=le.declarations)===null||I===void 0?void 0:I[0];if((h==null?void 0:h.kind)===302){var b=D.getConstantValue(h);b!==void 0&&(f.push(e.spacePart()),f.push(e.operatorPart(63)),f.push(e.spacePart()),f.push(e.displayPart(e.getTextOfConstantValue(b),typeof b=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(le.flags&2097152){if(Ae(),!C){var x=D.getAliasedSymbol(le);if(x!==le&&x.declarations&&x.declarations.length>0){var T=x.declarations[0],Z=e.getNameOfDeclaration(T);if(Z){var B=e.isModuleWithStringLiteralName(T)&&e.hasSyntacticModifier(T,2),u=le.name!=="default"&&!B,A=Q(D,x,e.getSourceFileOfNode(T),T,Z,ae,u?le:x);f.push.apply(f,A.displayParts),f.push(e.lineBreakPart()),M=A.documentation,H=A.tags}else M=x.getContextualDocumentationComment(T,D),H=x.getJsDocTags(D)}}if(le.declarations)switch(le.declarations[0].kind){case 267:f.push(e.keywordPart(93)),f.push(e.spacePart()),f.push(e.keywordPart(143));break;case 274:f.push(e.keywordPart(93)),f.push(e.spacePart()),f.push(e.keywordPart(le.declarations[0].isExportEquals?63:88));break;case 278:f.push(e.keywordPart(93));break;default:f.push(e.keywordPart(100))}f.push(e.spacePart()),Oe(le),e.forEach(le.declarations,function(Ce){if(Ce.kind===268){var Se=Ce;if(e.isExternalModuleImportEqualsDeclaration(Se))f.push(e.spacePart()),f.push(e.operatorPart(63)),f.push(e.spacePart()),f.push(e.keywordPart(147)),f.push(e.punctuationPart(20)),f.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(Se)),e.SymbolDisplayPartKind.stringLiteral)),f.push(e.punctuationPart(21));else{var Re=D.getSymbolAtLocation(Se.moduleReference);Re&&(f.push(e.spacePart()),f.push(e.operatorPart(63)),f.push(e.spacePart()),Oe(Re,te))}return!0}})}if(!C)if(k!==""){if(De){if(me?(Ae(),f.push(e.keywordPart(108))):be(le,k),k==="property"||k==="accessor"||k==="getter"||k==="setter"||k==="JSX attribute"||S&3||k==="local var"||k==="index"||me){if(f.push(e.punctuationPart(58)),f.push(e.spacePart()),De.symbol&&De.symbol.flags&262144&&k!=="index"){var w=e.mapToDisplayParts(function(Ce){var Se=D.typeParameterToDeclaration(De,te,K);Le().writeNode(4,Se,e.getSourceFileOfNode(e.getParseTreeNode(te)),Ce)});e.addRange(f,w)}else e.addRange(f,e.typeToDisplayParts(D,De,te));if(le.target&&le.target.tupleLabelDeclaration){var z=le.target.tupleLabelDeclaration;e.Debug.assertNode(z.name,e.isIdentifier),f.push(e.spacePart()),f.push(e.punctuationPart(20)),f.push(e.textPart(e.idText(z.name))),f.push(e.punctuationPart(21))}}else if(S&16||S&8192||S&16384||S&131072||S&98304||k==="method"){var N=De.getNonNullableType().getCallSignatures();N.length&&(d(N[0],N),V=N.length>1)}}}else k=se(D,le,oe);if(m.length===0&&!V&&(m=le.getContextualDocumentationComment(te,D)),m.length===0&&S&4&&le.parent&&le.declarations&&e.forEach(le.parent.declarations,function(Ce){return Ce.kind===308}))for(var U=0,ge=le.declarations;U<ge.length;U++){var h=ge[U];if(!(!h.parent||h.parent.kind!==223)){var pe=D.getSymbolAtLocation(h.parent.right);if(!!pe&&(m=pe.getDocumentationComment(D),y=pe.getJsDocTags(D),m.length>0))break}}if(m.length===0&&e.isIdentifier(oe)&&le.valueDeclaration&&e.isBindingElement(le.valueDeclaration)){var h=le.valueDeclaration,He=h.parent;if(e.isIdentifier(h.name)&&e.isObjectBindingPattern(He)){var Be=e.getTextOfIdentifierOrLiteral(h.name),Me=D.getTypeAtLocation(He);m=e.firstDefined(Me.isUnion()?Me.types:[Me],function(Se){var Re=Se.getProperty(Be);return Re?Re.getDocumentationComment(D):void 0})||e.emptyArray}}return y.length===0&&!V&&(y=le.getContextualJsDocTags(te,D)),m.length===0&&M&&(m=M),y.length===0&&H&&(y=H),{displayParts:f,documentation:m,symbolKind:k,tags:y.length===0?void 0:y};function Le(){return X||(X=e.createPrinter({removeComments:!0})),X}function Ae(){f.length&&f.push(e.lineBreakPart()),Xe()}function Xe(){E&&(Y("alias"),f.push(e.spacePart()))}function Ne(){f.push(e.spacePart()),f.push(e.keywordPart(101)),f.push(e.spacePart())}function Oe(Ce,Se){var Re;E&&Ce===le&&(Ce=E),k==="index"&&(Re=D.getIndexInfosOfIndexSymbol(Ce));var er=[];Ce.flags&131072&&Re?(Ce.parent&&(er=e.symbolToDisplayParts(D,Ce.parent)),er.push(e.punctuationPart(22)),Re.forEach(function(wr,mr){er.push.apply(er,e.typeToDisplayParts(D,wr.keyType)),mr!==Re.length-1&&(er.push(e.spacePart()),er.push(e.punctuationPart(51)),er.push(e.spacePart()))}),er.push(e.punctuationPart(23))):er=e.symbolToDisplayParts(D,Ce,Se||de,void 0,1|2|4),e.addRange(f,er),le.flags&16777216&&f.push(e.punctuationPart(57))}function be(Ce,Se){Ae(),Se&&(Y(Se),Ce&&!e.some(Ce.declarations,function(Re){return e.isArrowFunction(Re)||(e.isFunctionExpression(Re)||e.isClassExpression(Re))&&!Re.name})&&(f.push(e.spacePart()),Oe(Ce)))}function Y(Ce){switch(Ce){case"var":case"function":case"let":case"const":case"constructor":f.push(e.textOrKeywordPart(Ce));return;default:f.push(e.punctuationPart(20)),f.push(e.textOrKeywordPart(Ce)),f.push(e.punctuationPart(21));return}}function d(Ce,Se,Re){Re===void 0&&(Re=0),e.addRange(f,e.signatureToDisplayParts(D,Ce,te,Re|32)),Se.length>1&&(f.push(e.spacePart()),f.push(e.punctuationPart(20)),f.push(e.operatorPart(39)),f.push(e.displayPart((Se.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),f.push(e.spacePart()),f.push(e.textPart(Se.length===2?"overload":"overloads")),f.push(e.punctuationPart(21))),m=Ce.getDocumentationComment(D),y=Ce.getJsDocTags(),Se.length>1&&m.length===0&&y.length===0&&(m=Se[0].getDocumentationComment(D),y=Se[0].getJsDocTags().filter(function(er){return er.name!=="deprecated"}))}function j(Ce,Se){var Re=e.mapToDisplayParts(function(er){var wr=D.symbolToTypeParameterDeclarations(Ce,Se,K);Le().writeList(53776,wr,e.getSourceFileOfNode(e.getParseTreeNode(Se)),er)});e.addRange(f,Re)}}ne.getSymbolDisplayPartsDocumentationAndSymbolKind=Q;function p(D){return D.parent?!1:e.forEach(D.declarations,function(le){if(le.kind===215)return!0;if(le.kind!==257&&le.kind!==259)return!1;for(var de=le.parent;!e.isFunctionBlock(de);de=de.parent)if(de.kind===308||de.kind===265)return!1;return!0})}})(o=e.SymbolDisplay||(e.SymbolDisplay={}))})(fr||(fr={}));var fr;(function(e){function o(O,ie){var _e=[],Q=ie.compilerOptions?se(ie.compilerOptions,_e):{},p=e.getDefaultCompilerOptions();for(var D in p)e.hasProperty(p,D)&&Q[D]===void 0&&(Q[D]=p[D]);for(var le=0,de=e.transpileOptionValueCompilerOptions;le<de.length;le++){var te=de[le];Q[te.name]=te.transpileOptionValue}Q.suppressOutputPathCheck=!0,Q.allowNonTsExtensions=!0;var oe=e.getNewLineCharacter(Q),ae={getSourceFile:function(S){return S===e.normalizePath(E)?I:void 0},writeFile:function(S,k){e.fileExtensionIs(S,".map")?(e.Debug.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",S),m=k):(e.Debug.assertEqual(f,void 0,"Unexpected multiple outputs, file:",S),f=k)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(S){return S},getCurrentDirectory:function(){return""},getNewLine:function(){return oe},fileExists:function(S){return S===E},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},E=ie.fileName||(ie.compilerOptions&&ie.compilerOptions.jsx?"module.tsx":"module.ts"),I=e.createSourceFile(E,O,{languageVersion:e.getEmitScriptTarget(Q),impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(E,"",ae.getCanonicalFileName),void 0,ae,Q),setExternalModuleIndicator:e.getSetExternalModuleIndicator(Q)});ie.moduleName&&(I.moduleName=ie.moduleName),ie.renamedDependencies&&(I.renamedDependencies=new e.Map(e.getEntries(ie.renamedDependencies)));var f,m,y=e.createProgram([E],Q,ae);return ie.reportDiagnostics&&(e.addRange(_e,y.getSyntacticDiagnostics(I)),e.addRange(_e,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,ie.transformers),f===void 0?e.Debug.fail("Output generation failed"):{outputText:f,diagnostics:_e,sourceMapText:m}}e.transpileModule=o;function ne(O,ie,_e,Q,p){var D=o(O,{compilerOptions:ie,fileName:_e,reportDiagnostics:!!Q,moduleName:p});return e.addRange(Q,D.diagnostics),D.outputText}e.transpile=ne;var K;function se(O,ie){K=K||e.filter(e.optionDeclarations,function(le){return typeof le.type=="object"&&!e.forEachEntry(le.type,function(de){return typeof de!="number"})}),O=e.cloneCompilerOptions(O);for(var _e=function(le){if(!e.hasProperty(O,le.name))return"continue";var de=O[le.name];e.isString(de)?O[le.name]=e.parseCustomTypeOption(le,de,ie):e.forEachEntry(le.type,function(te){return te===de})||ie.push(e.createCompilerDiagnosticForInvalidCustomType(le))},Q=0,p=K;Q<p.length;Q++){var D=p[Q];_e(D)}return O}e.fixupCompilerOptions=se})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(O){O[O.FormatDocument=0]="FormatDocument",O[O.FormatSelection=1]="FormatSelection",O[O.FormatOnEnter=2]="FormatOnEnter",O[O.FormatOnSemicolon=3]="FormatOnSemicolon",O[O.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",O[O.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(K=ne.FormattingRequestKind||(ne.FormattingRequestKind={}));var se=function(){function O(ie,_e,Q){this.sourceFile=ie,this.formattingRequestKind=_e,this.options=Q}return O.prototype.updateContext=function(ie,_e,Q,p,D){this.currentTokenSpan=e.Debug.checkDefined(ie),this.currentTokenParent=e.Debug.checkDefined(_e),this.nextTokenSpan=e.Debug.checkDefined(Q),this.nextTokenParent=e.Debug.checkDefined(p),this.contextNode=e.Debug.checkDefined(D),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},O.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},O.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},O.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var ie=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,_e=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=ie===_e}return this.tokensAreOnSameLine},O.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},O.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},O.prototype.NodeIsOnOneLine=function(ie){var _e=this.sourceFile.getLineAndCharacterOfPosition(ie.getStart(this.sourceFile)).line,Q=this.sourceFile.getLineAndCharacterOfPosition(ie.getEnd()).line;return _e===Q},O.prototype.BlockIsOnOneLine=function(ie){var _e=e.findChildOfKind(ie,18,this.sourceFile),Q=e.findChildOfKind(ie,19,this.sourceFile);if(_e&&Q){var p=this.sourceFile.getLineAndCharacterOfPosition(_e.getEnd()).line,D=this.sourceFile.getLineAndCharacterOfPosition(Q.getStart(this.sourceFile)).line;return p===D}return!1},O}();ne.FormattingContext=se})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=e.createScanner(99,!1,0),se=e.createScanner(99,!1,1),O;(function(_e){_e[_e.Scan=0]="Scan",_e[_e.RescanGreaterThanToken=1]="RescanGreaterThanToken",_e[_e.RescanSlashToken=2]="RescanSlashToken",_e[_e.RescanTemplateToken=3]="RescanTemplateToken",_e[_e.RescanJsxIdentifier=4]="RescanJsxIdentifier",_e[_e.RescanJsxText=5]="RescanJsxText",_e[_e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(O||(O={}));function ie(_e,Q,p,D,le){var de=Q===1?se:K;de.setText(_e),de.setTextPos(p);var te=!0,oe,ae,E,I,f,m=le({advance:y,readTokenInfo:H,readEOFTokenRange:h,isOnToken:F,isOnEOF:$,getCurrentLeadingTrivia:function(){return oe},lastTrailingTriviaWasNewLine:function(){return te},skipToEndOf:P,skipToStartOf:N,getStartPos:function(){var J;return(J=f==null?void 0:f.token.pos)!==null&&J!==void 0?J:de.getTokenPos()}});return f=void 0,de.setText(void 0),m;function y(){f=void 0;var J=de.getStartPos()!==p;J?te=!!ae&&e.last(ae).kind===4:de.scan(),oe=void 0,ae=void 0;for(var q=de.getStartPos();q<D;){var G=de.getToken();if(!e.isTrivia(G))break;de.scan();var ye={pos:q,end:de.getStartPos(),kind:G};q=de.getStartPos(),oe=e.append(oe,ye)}E=de.getStartPos()}function S(J){switch(J.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function k(J){if(J.parent)switch(J.parent.kind){case 288:case 283:case 284:case 282:return e.isKeyword(J.kind)||J.kind===79}return!1}function C(J){return e.isJsxText(J)||e.isJsxElement(J)&&(f==null?void 0:f.token.kind)===11}function me(J){return J.kind===13}function De(J){return J.kind===16||J.kind===17}function X(J){return J.parent&&e.isJsxAttribute(J.parent)&&J.parent.initializer===J}function M(J){return J===43||J===68}function H(J){e.Debug.assert(F());var q=S(J)?1:me(J)?2:De(J)?3:k(J)?4:C(J)?5:X(J)?6:0;if(f&&q===I)return L(f,J);de.getStartPos()!==E&&(e.Debug.assert(f!==void 0),de.setTextPos(E),de.scan());var G=V(J,q),ye=ne.createTextRangeWithKind(de.getStartPos(),de.getTextPos(),G);for(ae&&(ae=void 0);de.getStartPos()<D&&(G=de.scan(),!!e.isTrivia(G));){var b=ne.createTextRangeWithKind(de.getStartPos(),de.getTextPos(),G);if(ae||(ae=[]),ae.push(b),G===4){de.scan();break}}return f={leadingTrivia:oe,trailingTrivia:ae,token:ye},L(f,J)}function V(J,q){var G=de.getToken();switch(I=0,q){case 1:if(G===31){I=1;var ye=de.reScanGreaterToken();return e.Debug.assert(J.kind===ye),ye}break;case 2:if(M(G)){I=2;var ye=de.reScanSlashToken();return e.Debug.assert(J.kind===ye),ye}break;case 3:if(G===19)return I=3,de.reScanTemplateToken(!1);break;case 4:return I=4,de.scanJsxIdentifier();case 5:return I=5,de.reScanJsxToken(!1);case 6:return I=6,de.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(q)}return G}function h(){return e.Debug.assert($()),ne.createTextRangeWithKind(de.getStartPos(),de.getTextPos(),1)}function F(){var J=f?f.token.kind:de.getToken();return J!==1&&!e.isTrivia(J)}function $(){var J=f?f.token.kind:de.getToken();return J===1}function L(J,q){return e.isToken(q)&&J.token.kind!==q.kind&&(J.token.kind=q.kind),J}function P(J){de.setTextPos(J.end),E=de.getStartPos(),I=void 0,f=void 0,te=!1,oe=void 0,ae=void 0}function N(J){de.setTextPos(J.pos),E=de.getStartPos(),I=void 0,f=void 0,te=!1,oe=void 0,ae=void 0}}ne.getFormattingScanner=ie})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.anyContext=e.emptyArray;var K;(function(O){O[O.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",O[O.StopProcessingTokenActions=2]="StopProcessingTokenActions",O[O.InsertSpace=4]="InsertSpace",O[O.InsertNewLine=8]="InsertNewLine",O[O.DeleteSpace=16]="DeleteSpace",O[O.DeleteToken=32]="DeleteToken",O[O.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",O[O.StopAction=3]="StopAction",O[O.ModifySpaceAction=28]="ModifySpaceAction",O[O.ModifyTokenAction=96]="ModifyTokenAction"})(K=ne.RuleAction||(ne.RuleAction={}));var se;(function(O){O[O.None=0]="None",O[O.CanDeleteNewLines=1]="CanDeleteNewLines"})(se=ne.RuleFlags||(ne.RuleFlags={}))})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(){for(var t=[],qr=0;qr<=162;qr++)qr!==1&&t.push(qr);function ln(){for(var Ie=[],We=0;We<arguments.length;We++)Ie[We]=arguments[We];return{tokens:t.filter(function(xr){return!Ie.some(function(Lr){return Lr===xr})}),isSpecific:!1}}var dr={tokens:t,isSpecific:!1},vr=O(zn(zn([],t,!0),[3],!1)),kr=O(zn(zn([],t,!0),[1],!1)),Ur=_e(81,162),Cr=_e(29,78),rn=[101,102,162,128,140],Br=[45,46,54,53],pn=[8,9,79,20,22,18,108,103],ve=[79,20,108,103],or=[79,21,23,103],Ee=[79,20,108,103],ze=[79,21,23,103],Ar=[2,3],xe=zn([79],e.typeKeywords,!0),cr=vr,Mr=O([79,3,84,93,100]),Rr=O([21,3,90,111,96,91]),Qr=[se("IgnoreBeforeComment",dr,Ar,ne.anyContext,1),se("IgnoreAfterLineComment",2,dr,ne.anyContext,1),se("NotSpaceBeforeColon",dr,58,[u,I,f],16),se("SpaceAfterColon",58,dr,[u,I],4),se("NoSpaceBeforeQuestionMark",dr,57,[u,I,f],16),se("SpaceAfterQuestionMarkInConditionalOperator",57,dr,[u,y],4),se("NoSpaceAfterQuestionMark",57,dr,[u],16),se("NoSpaceBeforeDot",dr,[24,28],[u,Ue],16),se("NoSpaceAfterDot",[24,28],dr,[u],16),se("NoSpaceBetweenImportParenInImportType",100,20,[u,B],16),se("NoSpaceAfterUnaryPrefixOperator",Br,pn,[u,I],16),se("NoSpaceAfterUnaryPreincrementOperator",45,ve,[u],16),se("NoSpaceAfterUnaryPredecrementOperator",46,Ee,[u],16),se("NoSpaceBeforeUnaryPostincrementOperator",or,45,[u,Re],16),se("NoSpaceBeforeUnaryPostdecrementOperator",ze,46,[u,Re],16),se("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[u,E],4),se("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[u,E],4),se("SpaceAfterAddWhenFollowedByPreincrement",39,45,[u,E],4),se("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[u,E],4),se("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[u,E],4),se("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[u,E],4),se("NoSpaceAfterCloseBrace",19,[27,26],[u],16),se("NewLineBeforeCloseBraceInBlockContext",vr,19,[me],8),se("SpaceAfterCloseBrace",19,ln(21),[u,P],4),se("SpaceBetweenCloseBraceAndElse",19,91,[u],4),se("SpaceBetweenCloseBraceAndWhile",19,115,[u],4),se("NoSpaceBetweenEmptyBraceBrackets",18,19,[u,J],16),se("SpaceAfterConditionalClosingParen",21,22,[N],4),se("NoSpaceBetweenFunctionKeywordAndStar",98,41,[F],16),se("SpaceAfterStarInGeneratorDeclaration",41,79,[F],4),se("SpaceAfterFunctionInFuncDecl",98,dr,[V],4),se("NewLineAfterOpenBraceInBlockContext",18,dr,[me],8),se("SpaceAfterGetSetInMember",[137,151],79,[V],4),se("NoSpaceBetweenYieldKeywordAndStar",125,41,[u,Ce],16),se("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],dr,[u,Ce],4),se("NoSpaceBetweenReturnAndSemicolon",105,26,[u],16),se("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],dr,[u],4),se("SpaceAfterLetConstInVariableDeclaration",[119,85],dr,[u,Le],4),se("NoSpaceBeforeOpenParenInFuncCall",dr,20,[u,ye,b],16),se("SpaceBeforeBinaryKeywordOperator",dr,rn,[u,E],4),se("SpaceAfterBinaryKeywordOperator",rn,dr,[u,E],4),se("SpaceAfterVoidOperator",114,dr,[u,j],4),se("SpaceBetweenAsyncAndOpenParen",132,20,[Z,u],4),se("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[u],4),se("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[u],16),se("SpaceBeforeJsxAttribute",dr,79,[U,u],4),se("SpaceBeforeSlashInJsxOpeningElement",dr,43,[pe,u],4),se("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[pe,u],16),se("NoSpaceBeforeEqualInJsxAttribute",dr,63,[ge,u],16),se("NoSpaceAfterEqualInJsxAttribute",63,dr,[ge,u],16),se("NoSpaceAfterModuleImport",[142,147],20,[u],16),se("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],dr,[u],4),se("SpaceBeforeCertainTypeScriptKeywords",dr,[94,117,158],[u],4),se("SpaceAfterModuleName",10,18,[Xe],4),se("SpaceBeforeArrow",dr,38,[u],4),se("SpaceAfterArrow",38,dr,[u],4),se("NoSpaceAfterEllipsis",25,79,[u],16),se("NoSpaceAfterOptionalParameters",57,[21,27],[u,I],16),se("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[u,Ne],16),se("NoSpaceBeforeOpenAngularBracket",xe,29,[u,Y],16),se("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[u,Y],16),se("NoSpaceAfterOpenAngularBracket",29,dr,[u,Y],16),se("NoSpaceBeforeCloseAngularBracket",dr,31,[u,Y],16),se("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[u,Y,h],16),se("SpaceBeforeAt",[21,79],59,[u],4),se("NoSpaceAfterAt",59,dr,[u],16),se("SpaceAfterDecorator",dr,[126,79,93,88,84,124,123,121,122,137,151,22,41],[Be],4),se("NoSpaceBeforeNonNullAssertionOperator",dr,53,[u,Se],16),se("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[u,Oe],16),se("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[u],4)],en=[se("SpaceAfterConstructor",135,20,[p("insertSpaceAfterConstructor"),u],4),se("NoSpaceAfterConstructor",135,20,[le("insertSpaceAfterConstructor"),u],16),se("SpaceAfterComma",27,dr,[p("insertSpaceAfterCommaDelimiter"),u,w,x,T],4),se("NoSpaceAfterComma",27,dr,[le("insertSpaceAfterCommaDelimiter"),u,w],16),se("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[p("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),V],4),se("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[le("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),V],16),se("SpaceAfterKeywordInControl",Ur,20,[p("insertSpaceAfterKeywordsInControlFlowStatements"),N],4),se("NoSpaceAfterKeywordInControl",Ur,20,[le("insertSpaceAfterKeywordsInControlFlowStatements"),N],16),se("SpaceAfterOpenParen",20,dr,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),u],4),se("SpaceBeforeCloseParen",dr,21,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),u],4),se("SpaceBetweenOpenParens",20,20,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),u],4),se("NoSpaceBetweenParens",20,21,[u],16),se("NoSpaceAfterOpenParen",20,dr,[le("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),u],16),se("NoSpaceBeforeCloseParen",dr,21,[le("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),u],16),se("SpaceAfterOpenBracket",22,dr,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),u],4),se("SpaceBeforeCloseBracket",dr,23,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),u],4),se("NoSpaceBetweenBrackets",22,23,[u],16),se("NoSpaceAfterOpenBracket",22,dr,[le("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),u],16),se("NoSpaceBeforeCloseBracket",dr,23,[le("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),u],16),se("SpaceAfterOpenBrace",18,dr,[te("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),k],4),se("SpaceBeforeCloseBrace",dr,19,[te("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),k],4),se("NoSpaceBetweenEmptyBraceBrackets",18,19,[u,J],16),se("NoSpaceAfterOpenBrace",18,dr,[D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),u],16),se("NoSpaceBeforeCloseBrace",dr,19,[D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),u],16),se("SpaceBetweenEmptyBraceBrackets",18,19,[p("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),se("NoSpaceBetweenEmptyBraceBrackets",18,19,[D("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),u],16),se("SpaceAfterTemplateHeadAndMiddle",[15,16],dr,[p("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),A],4,1),se("SpaceBeforeTemplateMiddleAndTail",dr,[16,17],[p("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),u],4),se("NoSpaceAfterTemplateHeadAndMiddle",[15,16],dr,[le("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),A],16,1),se("NoSpaceBeforeTemplateMiddleAndTail",dr,[16,17],[le("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),u],16),se("SpaceAfterOpenBraceInJsxExpression",18,dr,[p("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),u,z],4),se("SpaceBeforeCloseBraceInJsxExpression",dr,19,[p("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),u,z],4),se("NoSpaceAfterOpenBraceInJsxExpression",18,dr,[le("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),u,z],16),se("NoSpaceBeforeCloseBraceInJsxExpression",dr,19,[le("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),u,z],16),se("SpaceAfterSemicolonInFor",26,dr,[p("insertSpaceAfterSemicolonInForStatements"),u,oe],4),se("NoSpaceAfterSemicolonInFor",26,dr,[le("insertSpaceAfterSemicolonInForStatements"),u,oe],16),se("SpaceBeforeBinaryOperator",dr,Cr,[p("insertSpaceBeforeAndAfterBinaryOperators"),u,E],4),se("SpaceAfterBinaryOperator",Cr,dr,[p("insertSpaceBeforeAndAfterBinaryOperators"),u,E],4),se("NoSpaceBeforeBinaryOperator",dr,Cr,[le("insertSpaceBeforeAndAfterBinaryOperators"),u,E],16),se("NoSpaceAfterBinaryOperator",Cr,dr,[le("insertSpaceBeforeAndAfterBinaryOperators"),u,E],16),se("SpaceBeforeOpenParenInFuncDecl",dr,20,[p("insertSpaceBeforeFunctionParenthesis"),u,V],4),se("NoSpaceBeforeOpenParenInFuncDecl",dr,20,[le("insertSpaceBeforeFunctionParenthesis"),u,V],16),se("NewLineBeforeOpenBraceInControl",Rr,18,[p("placeOpenBraceOnNewLineForControlBlocks"),N,C],8,1),se("NewLineBeforeOpenBraceInFunction",cr,18,[p("placeOpenBraceOnNewLineForFunctions"),V,C],8,1),se("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Mr,18,[p("placeOpenBraceOnNewLineForFunctions"),$,C],8,1),se("SpaceAfterTypeAssertion",31,dr,[p("insertSpaceAfterTypeAssertion"),u,d],4),se("NoSpaceAfterTypeAssertion",31,dr,[le("insertSpaceAfterTypeAssertion"),u,d],16),se("SpaceBeforeTypeAnnotation",dr,[57,58],[p("insertSpaceBeforeTypeAnnotation"),u,m],4),se("NoSpaceBeforeTypeAnnotation",dr,[57,58],[le("insertSpaceBeforeTypeAnnotation"),u,m],16),se("NoOptionalSemicolon",26,kr,[Q("semicolons",e.SemicolonPreference.Remove),wr],32),se("OptionalSemicolon",dr,kr,[Q("semicolons",e.SemicolonPreference.Insert),mr],64)],vn=[se("NoSpaceBeforeSemicolon",dr,26,[u],16),se("SpaceBeforeOpenBraceInControl",Rr,18,[de("placeOpenBraceOnNewLineForControlBlocks"),N,Ae,S],4,1),se("SpaceBeforeOpenBraceInFunction",cr,18,[de("placeOpenBraceOnNewLineForFunctions"),V,M,Ae,S],4,1),se("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Mr,18,[de("placeOpenBraceOnNewLineForFunctions"),$,Ae,S],4,1),se("NoSpaceBeforeComma",dr,27,[u],16),se("NoSpaceBeforeOpenBracket",ln(132,82),22,[u],16),se("NoSpaceAfterCloseBracket",23,dr,[u,He],16),se("SpaceAfterSemicolon",26,dr,[u],4),se("SpaceBetweenForAndAwaitKeyword",97,133,[u],4),se("SpaceBetweenStatements",[21,90,91,82],dr,[u,w,ae],4),se("SpaceAfterTryCatchFinally",[111,83,96],18,[u],4)];return zn(zn(zn([],Qr,!0),en,!0),vn,!0)}ne.getAllRules=K;function se(t,qr,ln,dr,vr,kr){return kr===void 0&&(kr=0),{leftTokenRange:ie(qr),rightTokenRange:ie(ln),rule:{debugName:t,context:dr,action:vr,flags:kr}}}function O(t){return{tokens:t,isSpecific:!0}}function ie(t){return typeof t=="number"?O([t]):e.isArray(t)?O(t):t}function _e(t,qr,ln){ln===void 0&&(ln=[]);for(var dr=[],vr=t;vr<=qr;vr++)e.contains(ln,vr)||dr.push(vr);return O(dr)}function Q(t,qr){return function(ln){return ln.options&&ln.options[t]===qr}}function p(t){return function(qr){return qr.options&&e.hasProperty(qr.options,t)&&!!qr.options[t]}}function D(t){return function(qr){return qr.options&&e.hasProperty(qr.options,t)&&!qr.options[t]}}function le(t){return function(qr){return!qr.options||!e.hasProperty(qr.options,t)||!qr.options[t]}}function de(t){return function(qr){return!qr.options||!e.hasProperty(qr.options,t)||!qr.options[t]||qr.TokensAreOnSameLine()}}function te(t){return function(qr){return!qr.options||!e.hasProperty(qr.options,t)||!!qr.options[t]}}function oe(t){return t.contextNode.kind===245}function ae(t){return!oe(t)}function E(t){switch(t.contextNode.kind){case 223:return t.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return t.currentTokenSpan.kind===63||t.nextTokenSpan.kind===63;case 246:case 165:return t.currentTokenSpan.kind===101||t.nextTokenSpan.kind===101||t.currentTokenSpan.kind===63||t.nextTokenSpan.kind===63;case 247:return t.currentTokenSpan.kind===162||t.nextTokenSpan.kind===162}return!1}function I(t){return!E(t)}function f(t){return!m(t)}function m(t){var qr=t.contextNode.kind;return qr===169||qr===168||qr===166||qr===257||e.isFunctionLikeKind(qr)}function y(t){return t.contextNode.kind===224||t.contextNode.kind===191}function S(t){return t.TokensAreOnSameLine()||M(t)}function k(t){return t.contextNode.kind===203||t.contextNode.kind===197||De(t)}function C(t){return M(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function me(t){return X(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function De(t){return X(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function X(t){return H(t.contextNode)}function M(t){return H(t.nextTokenParent)}function H(t){if(L(t))return!0;switch(t.kind){case 238:case 266:case 207:case 265:return!0}return!1}function V(t){switch(t.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function h(t){return!V(t)}function F(t){return t.contextNode.kind===259||t.contextNode.kind===215}function $(t){return L(t.contextNode)}function L(t){switch(t.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function P(t){switch(t.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{var qr=t.currentTokenParent.parent;if(!qr||qr.kind!==216&&qr.kind!==215)return!0}}return!1}function N(t){switch(t.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function J(t){return t.contextNode.kind===207}function q(t){return t.contextNode.kind===210}function G(t){return t.contextNode.kind===211}function ye(t){return q(t)||G(t)}function b(t){return t.currentTokenSpan.kind!==27}function x(t){return t.nextTokenSpan.kind!==23}function T(t){return t.nextTokenSpan.kind!==21}function Z(t){return t.contextNode.kind===216}function B(t){return t.contextNode.kind===202}function u(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==11}function A(t){return t.contextNode.kind!==11}function w(t){return t.contextNode.kind!==281&&t.contextNode.kind!==285}function z(t){return t.contextNode.kind===291||t.contextNode.kind===290}function U(t){return t.nextTokenParent.kind===288}function ge(t){return t.contextNode.kind===288}function pe(t){return t.contextNode.kind===282}function He(t){return!V(t)&&!M(t)}function Be(t){return t.TokensAreOnSameLine()&&e.hasDecorators(t.contextNode)&&Me(t.currentTokenParent)&&!Me(t.nextTokenParent)}function Me(t){for(;t&&e.isExpression(t);)t=t.parent;return t&&t.kind===167}function Le(t){return t.currentTokenParent.kind===258&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function Ae(t){return t.formattingRequestKind!==2}function Xe(t){return t.contextNode.kind===264}function Ne(t){return t.contextNode.kind===184}function Oe(t){return t.contextNode.kind===177}function be(t,qr){if(t.kind!==29&&t.kind!==31)return!1;switch(qr.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function Y(t){return be(t.currentTokenSpan,t.currentTokenParent)||be(t.nextTokenSpan,t.nextTokenParent)}function d(t){return t.contextNode.kind===213}function j(t){return t.currentTokenSpan.kind===114&&t.currentTokenParent.kind===219}function Ce(t){return t.contextNode.kind===226&&t.contextNode.expression!==void 0}function Se(t){return t.contextNode.kind===232}function Re(t){return!er(t)}function er(t){switch(t.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function wr(t){var qr=t.nextTokenSpan.kind,ln=t.nextTokenSpan.pos;if(e.isTrivia(qr)){var dr=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,function(Ur){return!Ur.parent}),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!dr)return!0;qr=dr.kind,ln=dr.getStart(t.sourceFile)}var vr=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,kr=t.sourceFile.getLineAndCharacterOfPosition(ln).line;return vr===kr?qr===19||qr===1:qr===237||qr===26?!1:t.contextNode.kind===261||t.contextNode.kind===262?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||qr!==20:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==245&&t.currentTokenParent.kind!==239&&t.currentTokenParent.kind!==237&&qr!==22&&qr!==20&&qr!==39&&qr!==40&&qr!==43&&qr!==13&&qr!==27&&qr!==225&&qr!==15&&qr!==14&&qr!==24}function mr(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function Ue(t){return!e.isPropertyAccessExpression(t.contextNode)||!e.isNumericLiteral(t.contextNode.expression)||t.contextNode.expression.getText().indexOf(".")!==-1}})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(I,f){return{options:I,getRules:O(),host:f}}ne.getFormatContext=K;var se;function O(){return se===void 0&&(se=_e(ne.getAllRules())),se}function ie(I){var f=0;return I&1&&(f|=28),I&2&&(f|=96),I&28&&(f|=28),I&96&&(f|=96),f}function _e(I){var f=Q(I);return function(m){var y=f[p(m.currentTokenSpan.kind,m.nextTokenSpan.kind)];if(y){for(var S=[],k=0,C=0,me=y;C<me.length;C++){var De=me[C],X=~ie(k);De.action&X&&e.every(De.context,function(M){return M(m)})&&(S.push(De),k|=De.action)}if(S.length)return S}}}function Q(I){for(var f=new Array(de*de),m=new Array(f.length),y=0,S=I;y<S.length;y++)for(var k=S[y],C=k.leftTokenRange.isSpecific&&k.rightTokenRange.isSpecific,me=0,De=k.leftTokenRange.tokens;me<De.length;me++)for(var X=De[me],M=0,H=k.rightTokenRange.tokens;M<H.length;M++){var V=H[M],h=p(X,V),F=f[h];F===void 0&&(F=f[h]=[]),oe(F,k.rule,C,m,h)}return f}function p(I,f){return e.Debug.assert(I<=162&&f<=162,"Must compute formatting context from tokens"),I*de+f}var D=5,le=31,de=162+1,te;(function(I){I[I.StopRulesSpecific=0]="StopRulesSpecific",I[I.StopRulesAny=D*1]="StopRulesAny",I[I.ContextRulesSpecific=D*2]="ContextRulesSpecific",I[I.ContextRulesAny=D*3]="ContextRulesAny",I[I.NoContextRulesSpecific=D*4]="NoContextRulesSpecific",I[I.NoContextRulesAny=D*5]="NoContextRulesAny"})(te||(te={}));function oe(I,f,m,y,S){var k=f.action&3?m?te.StopRulesSpecific:te.StopRulesAny:f.context!==ne.anyContext?m?te.ContextRulesSpecific:te.ContextRulesAny:m?te.NoContextRulesSpecific:te.NoContextRulesAny,C=y[S]||0;I.splice(ae(C,k),0,f),y[S]=E(C,k)}function ae(I,f){for(var m=0,y=0;y<=f;y+=D)m+=I&le,I>>=D;return m}function E(I,f){var m=(I>>f&le)+1;return e.Debug.assert((m&le)===m,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),I&~(le<<f)|m<<f}})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(h,F,$){var L={pos:h,end:F,kind:$};return e.Debug.isDebugging&&Object.defineProperty(L,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind($)}}),L}ne.createTextRangeWithKind=K;var se;(function(h){h[h.Unknown=-1]="Unknown"})(se||(se={}));function O(h,F,$){var L=F.getLineAndCharacterOfPosition(h).line;if(L===0)return[];for(var P=e.getEndLinePosition(L,F);e.isWhiteSpaceSingleLine(F.text.charCodeAt(P));)P--;e.isLineBreak(F.text.charCodeAt(P))&&P--;var N={pos:e.getStartPositionOfLine(L-1,F),end:P+1};return y(N,F,$,2)}ne.formatOnEnter=O;function ie(h,F,$){var L=le(h,26,F);return m(de(L),F,$,3)}ne.formatOnSemicolon=ie;function _e(h,F,$){var L=le(h,18,F);if(!L)return[];var P=L.parent,N=de(P),J={pos:e.getLineStartPositionForPosition(N.getStart(F),F),end:h};return y(J,F,$,4)}ne.formatOnOpeningCurly=_e;function Q(h,F,$){var L=le(h,19,F);return m(de(L),F,$,5)}ne.formatOnClosingCurly=Q;function p(h,F){var $={pos:0,end:h.text.length};return y($,h,F,0)}ne.formatDocument=p;function D(h,F,$,L){var P={pos:e.getLineStartPositionForPosition(h,$),end:F};return y(P,$,L,1)}ne.formatSelection=D;function le(h,F,$){var L=e.findPrecedingToken(h,$);return L&&L.kind===F&&h===L.getEnd()?L:void 0}function de(h){for(var F=h;F&&F.parent&&F.parent.end===h.end&&!te(F.parent,F);)F=F.parent;return F}function te(h,F){switch(h.kind){case 260:case 261:return e.rangeContainsRange(h.members,F);case 264:var $=h.body;return!!$&&$.kind===265&&e.rangeContainsRange($.statements,F);case 308:case 238:case 265:return e.rangeContainsRange(h.statements,F);case 295:return e.rangeContainsRange(h.block.statements,F)}return!1}function oe(h,F){return $(F);function $(L){var P=e.forEachChild(L,function(J){return e.startEndContainsRange(J.getStart(F),J.end,h)&&J});if(P){var N=$(P);if(N)return N}return L}}function ae(h,F){if(!h.length)return P;var $=h.filter(function(N){return e.rangeOverlapsWithStartEnd(F,N.start,N.start+N.length)}).sort(function(N,J){return N.start-J.start});if(!$.length)return P;var L=0;return function(N){for(;;){if(L>=$.length)return!1;var J=$[L];if(N.end<=J.start)return!1;if(e.startEndOverlapsWithStartEnd(N.pos,N.end,J.start,J.start+J.length))return!0;L++}};function P(){return!1}}function E(h,F,$){var L=h.getStart($);if(L===F.pos&&h.end===F.end)return L;var P=e.findPrecedingToken(F.pos,$);return!P||P.end>=F.pos?h.pos:P.end}function I(h,F,$){for(var L=-1,P;h;){var N=$.getLineAndCharacterOfPosition(h.getStart($)).line;if(L!==-1&&N!==L)break;if(ne.SmartIndenter.shouldIndentChildNode(F,h,P,$))return F.indentSize;L=N,P=h,h=h.parent}return 0}function f(h,F,$,L,P,N){var J={pos:h.pos,end:h.end};return ne.getFormattingScanner(F.text,$,J.pos,J.end,function(q){return S(J,h,L,P,q,N,1,function(G){return!1},F)})}ne.formatNodeGivenIndentation=f;function m(h,F,$,L){if(!h)return[];var P={pos:e.getLineStartPositionForPosition(h.getStart(F),F),end:h.end};return y(P,F,$,L)}function y(h,F,$,L){var P=oe(h,F);return ne.getFormattingScanner(F.text,F.languageVariant,E(P,h,F),h.end,function(N){return S(h,P,ne.SmartIndenter.getIndentationForNode(P,h,F,$.options),I(P,$.options,F),N,$,L,ae(F.parseDiagnostics,h),F)})}function S(h,F,$,L,P,N,J,q,G){var ye,b=N.options,x=N.getRules,T=N.host,Z=new ne.FormattingContext(G,J,b),B,u,A,w,z,U=-1,ge=[];if(P.advance(),P.isOnToken()){var pe=G.getLineAndCharacterOfPosition(F.getStart(G)).line,He=pe;e.hasDecorators(F)&&(He=G.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(F,G)).line),Y(F,F,pe,He,$,L)}if(!P.isOnToken()){var Be=ne.SmartIndenter.nodeWillIndentChild(b,F,void 0,G,!1)?$+b.indentSize:$,Me=P.getCurrentLeadingTrivia();Me&&(d(Me,Be,!1,function(Cr){return Ce(Cr,G.getLineAndCharacterOfPosition(Cr.pos),F,F,void 0)}),b.trimTrailingWhitespace!==!1&&qr(Me))}if(u&&P.getStartPos()>=h.end){var Le=P.isOnEOF()?P.readEOFTokenRange():P.isOnToken()?P.readTokenInfo(F).token:void 0;if(Le&&Le.pos===B){var Ae=((ye=e.findPrecedingToken(Le.end,G,F))===null||ye===void 0?void 0:ye.parent)||A;Se(Le,G.getLineAndCharacterOfPosition(Le.pos).line,Ae,u,w,A,Ae,void 0)}}return ge;function Xe(Cr,rn,Br,pn,ve){if(e.rangeOverlapsWithStartEnd(pn,Cr,rn)||e.rangeContainsStartEnd(pn,Cr,rn)){if(ve!==-1)return ve}else{var or=G.getLineAndCharacterOfPosition(Cr).line,Ee=e.getLineStartPositionForPosition(Cr,G),ze=ne.SmartIndenter.findFirstNonWhitespaceColumn(Ee,Cr,G,b);if(or!==Br||Cr===ze){var Ar=ne.SmartIndenter.getBaseIndentation(b);return Ar>ze?Ar:ze}}return-1}function Ne(Cr,rn,Br,pn,ve,or){var Ee=ne.SmartIndenter.shouldIndentChildNode(b,Cr)?b.indentSize:0;return or===rn?{indentation:rn===z?U:ve.getIndentation(),delta:Math.min(b.indentSize,ve.getDelta(Cr)+Ee)}:Br===-1?Cr.kind===20&&rn===z?{indentation:U,delta:ve.getDelta(Cr)}:ne.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(pn,Cr,rn,G)||ne.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(pn,Cr,rn,G)||ne.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(pn,Cr,rn,G)?{indentation:ve.getIndentation(),delta:Ee}:{indentation:ve.getIndentation()+ve.getDelta(Cr),delta:Ee}:{indentation:Br,delta:Ee}}function Oe(Cr){if(e.canHaveModifiers(Cr)){var rn=e.find(Cr.modifiers,e.isModifier,e.findIndex(Cr.modifiers,e.isDecorator));if(rn)return rn.kind}switch(Cr.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(Cr.asteriskToken)return 41;case 169:case 166:var Br=e.getNameOfDeclaration(Cr);if(Br)return Br.kind}}function be(Cr,rn,Br,pn){return{getIndentationForComment:function(Ee,ze,Ar){switch(Ee){case 19:case 23:case 21:return Br+or(Ar)}return ze!==-1?ze:Br},getIndentationForToken:function(Ee,ze,Ar,xe){return!xe&&ve(Ee,ze,Ar)?Br+or(Ar):Br},getIndentation:function(){return Br},getDelta:or,recomputeIndentation:function(Ee,ze){ne.SmartIndenter.shouldIndentChildNode(b,ze,Cr,G)&&(Br+=Ee?b.indentSize:-b.indentSize,pn=ne.SmartIndenter.shouldIndentChildNode(b,Cr)?b.indentSize:0)}};function ve(Ee,ze,Ar){switch(ze){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(Ar.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(Ar.kind!==197)return!1;break}return rn!==Ee&&!(e.hasDecorators(Cr)&&ze===Oe(Cr))}function or(Ee){return ne.SmartIndenter.nodeWillIndentChild(b,Cr,Ee,G,!0)?pn:0}}function Y(Cr,rn,Br,pn,ve,or){if(!e.rangeOverlapsWithStartEnd(h,Cr.getStart(G),Cr.getEnd()))return;var Ee=be(Cr,Br,ve,or),ze=rn;for(e.forEachChild(Cr,function(Rr){xe(Rr,-1,Cr,Ee,Br,pn,!1)},function(Rr){cr(Rr,Cr,Br,Ee)});P.isOnToken()&&P.getStartPos()<h.end;){var Ar=P.readTokenInfo(Cr);if(Ar.token.end>Math.min(Cr.end,h.end))break;Mr(Ar,Cr,Ee,Cr)}function xe(Rr,Qr,en,vn,Ie,We,xr,Lr){if(e.Debug.assert(!e.nodeIsSynthesized(Rr)),e.nodeIsMissing(Rr))return Qr;var xn=Rr.getStart(G),An=G.getLineAndCharacterOfPosition(xn).line,Qn=An;e.hasDecorators(Rr)&&(Qn=G.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(Rr,G)).line);var ai=-1;if(xr&&e.rangeContainsRange(h,en)&&(ai=Xe(xn,Rr.end,Ie,h,Qr),ai!==-1&&(Qr=ai)),!e.rangeOverlapsWithStartEnd(h,Rr.pos,Rr.end))return Rr.end<h.pos&&P.skipToEndOf(Rr),Qr;if(Rr.getFullWidth()===0)return Qr;for(;P.isOnToken()&&P.getStartPos()<h.end;){var Dr=P.readTokenInfo(Cr);if(Dr.token.end>h.end)return Qr;if(Dr.token.end>xn){Dr.token.pos>xn&&P.skipToStartOf(Rr);break}Mr(Dr,Cr,vn,Cr)}if(!P.isOnToken()||P.getStartPos()>=h.end)return Qr;if(e.isToken(Rr)){var Dr=P.readTokenInfo(Rr);if(Rr.kind!==11)return e.Debug.assert(Dr.token.end===Rr.end,"Token end is child end"),Mr(Dr,Cr,vn,Rr),Qr}var Pr=Rr.kind===167?An:We,jr=Ne(Rr,An,ai,Cr,vn,Pr);return Y(Rr,ze,An,Qn,jr.indentation,jr.delta),ze=Cr,Lr&&en.kind===206&&Qr===-1&&(Qr=jr.indentation),Qr}function cr(Rr,Qr,en,vn){e.Debug.assert(e.isNodeArray(Rr)),e.Debug.assert(!e.nodeIsSynthesized(Rr));var Ie=me(Qr,Rr),We=vn,xr=en;if(!e.rangeOverlapsWithStartEnd(h,Rr.pos,Rr.end)){Rr.end<h.pos&&P.skipToEndOf(Rr);return}if(Ie!==0)for(;P.isOnToken()&&P.getStartPos()<h.end;){var Lr=P.readTokenInfo(Qr);if(Lr.token.end>Rr.pos)break;if(Lr.token.kind===Ie){xr=G.getLineAndCharacterOfPosition(Lr.token.pos).line,Mr(Lr,Qr,vn,Qr);var xn=void 0;if(U!==-1)xn=U;else{var An=e.getLineStartPositionForPosition(Lr.token.pos,G);xn=ne.SmartIndenter.findFirstNonWhitespaceColumn(An,Lr.token.pos,G,b)}We=be(Qr,en,xn,b.indentSize)}else Mr(Lr,Qr,vn,Qr)}for(var Qn=-1,ai=0;ai<Rr.length;ai++){var Dr=Rr[ai];Qn=xe(Dr,Qn,Cr,We,xr,xr,!0,ai===0)}var Pr=De(Ie);if(Pr!==0&&P.isOnToken()&&P.getStartPos()<h.end){var Lr=P.readTokenInfo(Qr);Lr.token.kind===27&&(Mr(Lr,Qr,We,Qr),Lr=P.isOnToken()?P.readTokenInfo(Qr):void 0),Lr&&Lr.token.kind===Pr&&e.rangeContainsRange(Qr,Lr.token)&&Mr(Lr,Qr,We,Qr,!0)}}function Mr(Rr,Qr,en,vn,Ie){e.Debug.assert(e.rangeContainsRange(Qr,Rr.token));var We=P.lastTrailingTriviaWasNewLine(),xr=!1;Rr.leadingTrivia&&j(Rr.leadingTrivia,Qr,ze,en);var Lr=0,xn=e.rangeContainsRange(h,Rr.token),An=G.getLineAndCharacterOfPosition(Rr.token.pos);if(xn){var Qn=q(Rr.token),ai=u;if(Lr=Ce(Rr.token,An,Qr,ze,en),!Qn)if(Lr===0){var Dr=ai&&G.getLineAndCharacterOfPosition(ai.end).line;xr=We&&An.line!==Dr}else xr=Lr===1}if(Rr.trailingTrivia&&(B=e.last(Rr.trailingTrivia).end,j(Rr.trailingTrivia,Qr,ze,en)),xr){var Pr=xn&&!q(Rr.token)?en.getIndentationForToken(An.line,Rr.token.kind,vn,!!Ie):-1,jr=!0;if(Rr.leadingTrivia){var on=en.getIndentationForComment(Rr.token.kind,Pr,vn);jr=d(Rr.leadingTrivia,on,jr,function(je){return Re(je.pos,on,!1)})}Pr!==-1&&jr&&(Re(Rr.token.pos,Pr,Lr===1),z=An.line,U=Pr)}P.advance(),ze=Qr}}function d(Cr,rn,Br,pn){for(var ve=0,or=Cr;ve<or.length;ve++){var Ee=or[ve],ze=e.rangeContainsRange(h,Ee);switch(Ee.kind){case 3:ze&&mr(Ee,rn,!Br),Br=!1;break;case 2:Br&&ze&&pn(Ee),Br=!1;break;case 4:Br=!0;break}}return Br}function j(Cr,rn,Br,pn){for(var ve=0,or=Cr;ve<or.length;ve++){var Ee=or[ve];if(e.isComment(Ee.kind)&&e.rangeContainsRange(h,Ee)){var ze=G.getLineAndCharacterOfPosition(Ee.pos);Ce(Ee,ze,rn,Br,pn)}}}function Ce(Cr,rn,Br,pn,ve){var or=q(Cr),Ee=0;if(!or)if(u)Ee=Se(Cr,rn.line,Br,u,w,A,pn,ve);else{var ze=G.getLineAndCharacterOfPosition(h.pos);Ue(ze.line,rn.line)}return u=Cr,B=Cr.end,A=Br,w=rn.line,Ee}function Se(Cr,rn,Br,pn,ve,or,Ee,ze){Z.updateContext(pn,or,Cr,Br,Ee);var Ar=x(Z),xe=Z.options.trimTrailingWhitespace!==!1,cr=0;return Ar?e.forEachRight(Ar,function(Mr){if(cr=Ur(Mr,pn,ve,Cr,rn),ze)switch(cr){case 2:Br.getStart(G)===Cr.pos&&ze.recomputeIndentation(!1,Ee);break;case 1:Br.getStart(G)===Cr.pos&&ze.recomputeIndentation(!0,Ee);break;default:e.Debug.assert(cr===0)}xe=xe&&!(Mr.action&16)&&Mr.flags!==1}):xe=xe&&Cr.kind!==1,rn!==ve&&xe&&Ue(ve,rn,pn),cr}function Re(Cr,rn,Br){var pn=V(rn,b);if(Br)vr(Cr,0,pn);else{var ve=G.getLineAndCharacterOfPosition(Cr),or=e.getStartPositionOfLine(ve.line,G);(rn!==er(or,ve.character)||wr(pn,or))&&vr(or,ve.character,pn)}}function er(Cr,rn){for(var Br=0,pn=0;pn<rn;pn++)G.text.charCodeAt(Cr+pn)===9?Br+=b.tabSize-Br%b.tabSize:Br++;return Br}function wr(Cr,rn){return Cr!==G.text.substr(rn,Cr.length)}function mr(Cr,rn,Br,pn){pn===void 0&&(pn=!0);var ve=G.getLineAndCharacterOfPosition(Cr.pos).line,or=G.getLineAndCharacterOfPosition(Cr.end).line;if(ve===or){Br||Re(Cr.pos,rn,!1);return}for(var Ee=[],ze=Cr.pos,Ar=ve;Ar<or;Ar++){var xe=e.getEndLinePosition(Ar,G);Ee.push({pos:ze,end:xe}),ze=e.getStartPositionOfLine(Ar+1,G)}if(pn&&Ee.push({pos:ze,end:Cr.end}),Ee.length!==0){var cr=e.getStartPositionOfLine(ve,G),Mr=ne.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(cr,Ee[0].pos,G,b),Rr=0;Br&&(Rr=1,ve++);for(var Qr=rn-Mr.column,en=Rr;en<Ee.length;en++,ve++){var vn=e.getStartPositionOfLine(ve,G),Ie=en===0?Mr:ne.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Ee[en].pos,Ee[en].end,G,b),We=Ie.column+Qr;if(We>0){var xr=V(We,b);vr(vn,Ie.character,xr)}else dr(vn,Ie.character)}}}function Ue(Cr,rn,Br){for(var pn=Cr;pn<rn;pn++){var ve=e.getStartPositionOfLine(pn,G),or=e.getEndLinePosition(pn,G);if(!(Br&&(e.isComment(Br.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Br.kind))&&Br.pos<=or&&Br.end>or)){var Ee=t(ve,or);Ee!==-1&&(e.Debug.assert(Ee===ve||!e.isWhiteSpaceSingleLine(G.text.charCodeAt(Ee-1))),dr(Ee,or+1-Ee))}}}function t(Cr,rn){for(var Br=rn;Br>=Cr&&e.isWhiteSpaceSingleLine(G.text.charCodeAt(Br));)Br--;return Br!==rn?Br+1:-1}function qr(Cr){for(var rn=u?u.end:h.pos,Br=0,pn=Cr;Br<pn.length;Br++){var ve=pn[Br];e.isComment(ve.kind)&&(rn<ve.pos&&ln(rn,ve.pos-1,u),rn=ve.end+1)}rn<h.end&&ln(rn,h.end,u)}function ln(Cr,rn,Br){var pn=G.getLineAndCharacterOfPosition(Cr).line,ve=G.getLineAndCharacterOfPosition(rn).line;Ue(pn,ve+1,Br)}function dr(Cr,rn){rn&&ge.push(e.createTextChangeFromStartLength(Cr,rn,""))}function vr(Cr,rn,Br){(rn||Br)&&ge.push(e.createTextChangeFromStartLength(Cr,rn,Br))}function kr(Cr,rn){rn&&ge.push(e.createTextChangeFromStartLength(Cr,0,rn))}function Ur(Cr,rn,Br,pn,ve){var or=ve!==Br;switch(Cr.action){case 1:return 0;case 16:if(rn.end!==pn.pos)return dr(rn.end,pn.pos-rn.end),or?2:0;break;case 32:dr(rn.pos,rn.end-rn.pos);break;case 8:if(Cr.flags!==1&&Br!==ve)return 0;var Ee=ve-Br;if(Ee!==1)return vr(rn.end,pn.pos-rn.end,e.getNewLineOrDefaultFromHost(T,b)),or?0:1;break;case 4:if(Cr.flags!==1&&Br!==ve)return 0;var ze=pn.pos-rn.end;if(ze!==1||G.text.charCodeAt(rn.end)!==32)return vr(rn.end,pn.pos-rn.end," "),or?2:0;break;case 64:kr(rn.end,";")}return 0}}var k;(function(h){h[h.None=0]="None",h[h.LineAdded=1]="LineAdded",h[h.LineRemoved=2]="LineRemoved"})(k||(k={}));function C(h,F,$,L){L===void 0&&(L=e.getTokenAtPosition(h,F));var P=e.findAncestor(L,e.isJSDoc);P&&(L=P.parent);var N=L.getStart(h);if(!(N<=F&&F<L.getEnd())){$=$===null?void 0:$===void 0?e.findPrecedingToken(F,h):$;var J=$&&e.getTrailingCommentRanges(h.text,$.end),q=e.getLeadingCommentRangesOfNode(L,h),G=e.concatenate(J,q);return G&&e.find(G,function(ye){return e.rangeContainsPositionExclusive(ye,F)||F===ye.end&&(ye.kind===2||F===h.getFullWidth())})}}ne.getRangeOfEnclosingComment=C;function me(h,F){switch(h.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(h.typeParameters===F)return 29;if(h.parameters===F)return 20;break;case 210:case 211:if(h.typeArguments===F)return 29;if(h.arguments===F)return 20;break;case 260:case 228:case 261:case 262:if(h.typeParameters===F)return 29;break;case 180:case 212:case 183:case 230:case 202:if(h.typeArguments===F)return 29;break;case 184:return 18}return 0}function De(h){switch(h){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var X,M,H;function V(h,F){var $=!X||X.tabSize!==F.tabSize||X.indentSize!==F.indentSize;if($&&(X={tabSize:F.tabSize,indentSize:F.indentSize},M=H=void 0),F.convertTabsToSpaces){var J=void 0,q=Math.floor(h/F.indentSize),G=h%F.indentSize;return H||(H=[]),H[q]===void 0?(J=e.repeatString(" ",F.indentSize*q),H[q]=J):J=H[q],G?J+e.repeatString(" ",G):J}else{var L=Math.floor(h/F.tabSize),P=h-L*F.tabSize,N=void 0;return M||(M=[]),M[L]===void 0?M[L]=N=e.repeatString(" ",L):N=M[L],P?N+e.repeatString(" ",P):N}}ne.getIndentationString=V})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O;(function(q){q[q.Unknown=-1]="Unknown"})(O||(O={}));function ie(q,G,ye,b){if(b===void 0&&(b=!1),q>G.text.length)return le(ye);if(ye.indentStyle===e.IndentStyle.None)return 0;var x=e.findPrecedingToken(q,G,void 0,!0),T=ne.getRangeOfEnclosingComment(G,q,x||null);if(T&&T.kind===3)return _e(G,q,ye,T);if(!x)return le(ye);var Z=e.isStringOrRegularExpressionOrTemplateLiteral(x.kind);if(Z&&x.getStart(G)<=q&&q<x.end)return 0;var B=G.getLineAndCharacterOfPosition(q).line,u=e.getTokenAtPosition(G,q),A=u.kind===18&&u.parent.kind===207;if(ye.indentStyle===e.IndentStyle.Block||A)return Q(G,q,ye);if(x.kind===27&&x.parent.kind!==223){var w=oe(x,G,ye);if(w!==-1)return w}var z=me(q,x.parent,G);if(z&&!e.rangeContainsRange(z,x)){var U=[215,216].indexOf(u.parent.kind)!==-1,ge=U?0:ye.indentSize;return M(z,G,ye)+ge}return p(G,q,x,B,b,ye)}se.getIndentation=ie;function _e(q,G,ye,b){var x=e.getLineAndCharacterOfPosition(q,G).line-1,T=e.getLineAndCharacterOfPosition(q,b.pos).line;if(e.Debug.assert(T>=0),x<=T)return $(e.getStartPositionOfLine(T,q),G,q,ye);var Z=e.getStartPositionOfLine(x,q),B=F(Z,G,q,ye),u=B.column,A=B.character;if(u===0)return u;var w=q.text.charCodeAt(Z+A);return w===42?u-1:u}function Q(q,G,ye){for(var b=G;b>0;){var x=q.text.charCodeAt(b);if(!e.isWhiteSpaceLike(x))break;b--}var T=e.getLineStartPositionForPosition(b,q);return $(T,b,q,ye)}function p(q,G,ye,b,x,T){for(var Z,B=ye;B;){if(e.positionBelongsToNode(B,G,q)&&N(T,B,Z,q,!0)){var u=f(B,q),A=I(ye,B,b,q),w=A!==0?x&&A===2?T.indentSize:0:b!==u.line?T.indentSize:0;return de(B,u,void 0,w,q,!0,T)}var z=H(B,q,T,!0);if(z!==-1)return z;Z=B,B=B.parent}return le(T)}function D(q,G,ye,b){var x=ye.getLineAndCharacterOfPosition(q.getStart(ye));return de(q,x,G,0,ye,!1,b)}se.getIndentationForNode=D;function le(q){return q.baseIndentSize||0}se.getBaseIndentation=le;function de(q,G,ye,b,x,T,Z){for(var B,u=q.parent;u;){var A=!0;if(ye){var w=q.getStart(x);A=w<ye.pos||w>ye.end}var z=te(u,q,x),U=z.line===G.line||y(u,q,G.line,x);if(A){var ge=(B=C(q,x))===null||B===void 0?void 0:B[0],pe=!!ge&&f(ge,x).line>z.line,He=H(q,x,Z,pe);if(He!==-1||(He=ae(q,u,G,U,x,Z),He!==-1))return He+b}N(Z,u,q,x,T)&&!U&&(b+=Z.indentSize);var Be=m(u,q,G.line,x);q=u,u=q.parent,G=Be?x.getLineAndCharacterOfPosition(q.getStart(x)):z}return b+le(Z)}function te(q,G,ye){var b=C(G,ye),x=b?b.pos:q.getStart(ye);return ye.getLineAndCharacterOfPosition(x)}function oe(q,G,ye){var b=e.findListItemInfo(q);return b&&b.listItemIndex>0?V(b.list.getChildren(),b.listItemIndex-1,G,ye):-1}function ae(q,G,ye,b,x,T){var Z=(e.isDeclaration(q)||e.isStatementButNotDeclaration(q))&&(G.kind===308||!b);return Z?h(ye,x,T):-1}var E;(function(q){q[q.Unknown=0]="Unknown",q[q.OpenBrace=1]="OpenBrace",q[q.CloseBrace=2]="CloseBrace"})(E||(E={}));function I(q,G,ye,b){var x=e.findNextToken(q,G,b);if(!x)return 0;if(x.kind===18)return 1;if(x.kind===19){var T=f(x,b).line;return ye===T?2:0}return 0}function f(q,G){return G.getLineAndCharacterOfPosition(q.getStart(G))}function m(q,G,ye,b){if(!(e.isCallExpression(q)&&e.contains(q.arguments,G)))return!1;var x=q.expression.getEnd(),T=e.getLineAndCharacterOfPosition(b,x).line;return T===ye}se.isArgumentAndStartLineOverlapsExpressionBeingCalled=m;function y(q,G,ye,b){if(q.kind===242&&q.elseStatement===G){var x=e.findChildOfKind(q,91,b);e.Debug.assert(x!==void 0);var T=f(x,b).line;return T===ye}return!1}se.childStartsOnTheSameLineWithElseInIfStatement=y;function S(q,G,ye,b){if(e.isConditionalExpression(q)&&(G===q.whenTrue||G===q.whenFalse)){var x=e.getLineAndCharacterOfPosition(b,q.condition.end).line;if(G===q.whenTrue)return ye===x;var T=f(q.whenTrue,b).line,Z=e.getLineAndCharacterOfPosition(b,q.whenTrue.end).line;return x===T&&Z===ye}return!1}se.childIsUnindentedBranchOfConditionalExpression=S;function k(q,G,ye,b){if(e.isCallOrNewExpression(q)){if(!q.arguments)return!1;var x=e.find(q.arguments,function(u){return u.pos===G.pos});if(!x)return!1;var T=q.arguments.indexOf(x);if(T===0)return!1;var Z=q.arguments[T-1],B=e.getLineAndCharacterOfPosition(b,Z.getEnd()).line;if(ye===B)return!0}return!1}se.argumentStartsOnSameLineAsPreviousArgument=k;function C(q,G){return q.parent&&De(q.getStart(G),q.getEnd(),q.parent,G)}se.getContainingList=C;function me(q,G,ye){return G&&De(q,q,G,ye)}function De(q,G,ye,b){switch(ye.kind){case 180:return x(ye.typeArguments);case 207:return x(ye.properties);case 206:return x(ye.elements);case 184:return x(ye.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return x(ye.typeParameters)||x(ye.parameters);case 174:return x(ye.parameters);case 260:case 228:case 261:case 262:case 347:return x(ye.typeParameters);case 211:case 210:return x(ye.typeArguments)||x(ye.arguments);case 258:return x(ye.declarations);case 272:case 276:return x(ye.elements);case 203:case 204:return x(ye.elements)}function x(T){return T&&e.rangeContainsStartEnd(X(ye,T,b),q,G)?T:void 0}}function X(q,G,ye){for(var b=q.getChildren(ye),x=1;x<b.length-1;x++)if(b[x].pos===G.pos&&b[x].end===G.end)return{pos:b[x-1].end,end:b[x+1].getStart(ye)};return G}function M(q,G,ye){return q?h(G.getLineAndCharacterOfPosition(q.pos),G,ye):-1}function H(q,G,ye,b){if(q.parent&&q.parent.kind===258)return-1;var x=C(q,G);if(x){var T=x.indexOf(q);if(T!==-1){var Z=V(x,T,G,ye);if(Z!==-1)return Z}return M(x,G,ye)+(b?ye.indentSize:0)}return-1}function V(q,G,ye,b){e.Debug.assert(G>=0&&G<q.length);for(var x=q[G],T=f(x,ye),Z=G-1;Z>=0;Z--)if(q[Z].kind!==27){var B=ye.getLineAndCharacterOfPosition(q[Z].end).line;if(B!==T.line)return h(T,ye,b);T=f(q[Z],ye)}return-1}function h(q,G,ye){var b=G.getPositionOfLineAndCharacter(q.line,0);return $(b,b+q.character,G,ye)}function F(q,G,ye,b){for(var x=0,T=0,Z=q;Z<G;Z++){var B=ye.text.charCodeAt(Z);if(!e.isWhiteSpaceSingleLine(B))break;B===9?T+=b.tabSize+T%b.tabSize:T++,x++}return{column:T,character:x}}se.findFirstNonWhitespaceCharacterAndColumn=F;function $(q,G,ye,b){return F(q,G,ye,b).column}se.findFirstNonWhitespaceColumn=$;function L(q,G,ye,b,x){var T=ye?ye.kind:0;switch(G.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!q.indentMultiLineObjectLiteralBeginningOnBlankLine&&b&&T===207)return J(b,ye);if(G.kind===223&&b&&ye&&T===281){var Z=b.getLineAndCharacterOfPosition(e.skipTrivia(b.text,G.pos)).line,B=b.getLineAndCharacterOfPosition(e.skipTrivia(b.text,ye.pos)).line;return Z!==B}if(G.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return T!==238;case 216:return b&&T===214?J(b,ye):T!==238;case 275:return T!==276;case 269:return T!==270||!!ye.namedBindings&&ye.namedBindings.kind!==272;case 281:return T!==284;case 285:return T!==287;case 190:case 189:if(T===184||T===186)return!1;break}return x}se.nodeWillIndentChild=L;function P(q,G){switch(q){case 250:case 254:case 248:case 249:return G.kind!==238;default:return!1}}function N(q,G,ye,b,x){return x===void 0&&(x=!1),L(q,G,ye,b,!1)&&!(x&&ye&&P(ye.kind,G))}se.shouldIndentChildNode=N;function J(q,G){var ye=e.skipTrivia(q.text,G.pos),b=q.getLineAndCharacterOfPosition(ye).line,x=q.getLineAndCharacterOfPosition(G.end).line;return b===x}})(K=ne.SmartIndenter||(ne.SmartIndenter={}))})(o=e.formatting||(e.formatting={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(b){var x=b.__pos;return e.Debug.assert(typeof x=="number"),x}function se(b,x){e.Debug.assert(typeof x=="number"),b.__pos=x}function O(b){var x=b.__end;return e.Debug.assert(typeof x=="number"),x}function ie(b,x){e.Debug.assert(typeof x=="number"),b.__end=x}var _e;(function(b){b[b.Exclude=0]="Exclude",b[b.IncludeAll=1]="IncludeAll",b[b.JSDoc=2]="JSDoc",b[b.StartLine=3]="StartLine"})(_e=ne.LeadingTriviaOption||(ne.LeadingTriviaOption={}));var Q;(function(b){b[b.Exclude=0]="Exclude",b[b.ExcludeWhitespace=1]="ExcludeWhitespace",b[b.Include=2]="Include"})(Q=ne.TrailingTriviaOption||(ne.TrailingTriviaOption={}));function p(b,x){return e.skipTrivia(b,x,!1,!0)}function D(b,x){for(var T=x;T<b.length;){var Z=b.charCodeAt(T);if(e.isWhiteSpaceSingleLine(Z)){T++;continue}return Z===47}return!1}var le={leadingTriviaOption:_e.Exclude,trailingTriviaOption:Q.Exclude},de;(function(b){b[b.Remove=0]="Remove",b[b.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",b[b.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",b[b.Text=3]="Text"})(de||(de={}));function te(b,x,T,Z){return{pos:oe(b,x,Z),end:E(b,T,Z)}}function oe(b,x,T,Z){var B,u;Z===void 0&&(Z=!1);var A=T.leadingTriviaOption;if(A===_e.Exclude)return x.getStart(b);if(A===_e.StartLine){var w=x.getStart(b),z=e.getLineStartPositionForPosition(w,b);return e.rangeContainsPosition(x,z)?z:w}if(A===_e.JSDoc){var U=e.getJSDocCommentRanges(x,b.text);if(U==null?void 0:U.length)return e.getLineStartPositionForPosition(U[0].pos,b)}var ge=x.getFullStart(),pe=x.getStart(b);if(ge===pe)return pe;var He=e.getLineStartPositionForPosition(ge,b),Be=e.getLineStartPositionForPosition(pe,b);if(Be===He)return A===_e.IncludeAll?ge:pe;if(Z){var Me=((B=e.getLeadingCommentRanges(b.text,ge))===null||B===void 0?void 0:B[0])||((u=e.getTrailingCommentRanges(b.text,ge))===null||u===void 0?void 0:u[0]);if(Me)return e.skipTrivia(b.text,Me.end,!0,!0)}var Le=ge>0?1:0,Ae=e.getStartPositionOfLine(e.getLineOfLocalPosition(b,He)+Le,b);return Ae=p(b.text,Ae),e.getStartPositionOfLine(e.getLineOfLocalPosition(b,Ae),b)}function ae(b,x,T){var Z=x.end,B=T.trailingTriviaOption;if(B===Q.Include){var u=e.getTrailingCommentRanges(b.text,Z);if(u)for(var A=e.getLineOfLocalPosition(b,x.end),w=0,z=u;w<z.length;w++){var U=z[w];if(U.kind===2||e.getLineOfLocalPosition(b,U.pos)>A)break;var ge=e.getLineOfLocalPosition(b,U.end);if(ge>A)return e.skipTrivia(b.text,U.end,!0,!0)}}}function E(b,x,T){var Z,B=x.end,u=T.trailingTriviaOption;if(u===Q.Exclude)return B;if(u===Q.ExcludeWhitespace){var A=e.concatenate(e.getTrailingCommentRanges(b.text,B),e.getLeadingCommentRanges(b.text,B)),w=(Z=A==null?void 0:A[A.length-1])===null||Z===void 0?void 0:Z.end;return w||B}var z=ae(b,x,T);if(z)return z;var U=e.skipTrivia(b.text,B,!0);return U!==B&&(u===Q.Include||e.isLineBreak(b.text.charCodeAt(U-1)))?U:B}function I(b,x){return!!x&&!!b.parent&&(x.kind===27||x.kind===26&&b.parent.kind===207)}function f(b){return e.isFunctionExpression(b)||e.isFunctionDeclaration(b)}ne.isThisTypeAnnotatable=f;var m=function(){function b(x,T){this.newLineCharacter=x,this.formatContext=T,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return b.fromContext=function(x){return new b(e.getNewLineOrDefaultFromHost(x.host,x.formatContext.options),x.formatContext)},b.with=function(x,T){var Z=b.fromContext(x);return T(Z),Z.getChanges()},b.prototype.pushRaw=function(x,T){e.Debug.assertEqual(x.fileName,T.fileName);for(var Z=0,B=T.textChanges;Z<B.length;Z++){var u=B[Z];this.changes.push({kind:de.Text,sourceFile:x,text:u.newText,range:e.createTextRangeFromSpan(u.span)})}},b.prototype.deleteRange=function(x,T){this.changes.push({kind:de.Remove,sourceFile:x,range:T})},b.prototype.delete=function(x,T){this.deletedNodes.push({sourceFile:x,node:T})},b.prototype.deleteNode=function(x,T,Z){Z===void 0&&(Z={leadingTriviaOption:_e.IncludeAll}),this.deleteRange(x,te(x,T,T,Z))},b.prototype.deleteNodes=function(x,T,Z,B){Z===void 0&&(Z={leadingTriviaOption:_e.IncludeAll});for(var u=0,A=T;u<A.length;u++){var w=A[u],z=oe(x,w,Z,B),U=E(x,w,Z);this.deleteRange(x,{pos:z,end:U}),B=!!ae(x,w,Z)}},b.prototype.deleteModifier=function(x,T){this.deleteRange(x,{pos:T.getStart(x),end:e.skipTrivia(x.text,T.end,!0)})},b.prototype.deleteNodeRange=function(x,T,Z,B){B===void 0&&(B={leadingTriviaOption:_e.IncludeAll});var u=oe(x,T,B),A=E(x,Z,B);this.deleteRange(x,{pos:u,end:A})},b.prototype.deleteNodeRangeExcludingEnd=function(x,T,Z,B){B===void 0&&(B={leadingTriviaOption:_e.IncludeAll});var u=oe(x,T,B),A=Z===void 0?x.text.length:oe(x,Z,B);this.deleteRange(x,{pos:u,end:A})},b.prototype.replaceRange=function(x,T,Z,B){B===void 0&&(B={}),this.changes.push({kind:de.ReplaceWithSingleNode,sourceFile:x,range:T,options:B,node:Z})},b.prototype.replaceNode=function(x,T,Z,B){B===void 0&&(B=le),this.replaceRange(x,te(x,T,T,B),Z,B)},b.prototype.replaceNodeRange=function(x,T,Z,B,u){u===void 0&&(u=le),this.replaceRange(x,te(x,T,Z,u),B,u)},b.prototype.replaceRangeWithNodes=function(x,T,Z,B){B===void 0&&(B={}),this.changes.push({kind:de.ReplaceWithMultipleNodes,sourceFile:x,range:T,options:B,nodes:Z})},b.prototype.replaceNodeWithNodes=function(x,T,Z,B){B===void 0&&(B=le),this.replaceRangeWithNodes(x,te(x,T,T,B),Z,B)},b.prototype.replaceNodeWithText=function(x,T,Z){this.replaceRangeWithText(x,te(x,T,T,le),Z)},b.prototype.replaceNodeRangeWithNodes=function(x,T,Z,B,u){u===void 0&&(u=le),this.replaceRangeWithNodes(x,te(x,T,Z,u),B,u)},b.prototype.nodeHasTrailingComment=function(x,T,Z){return Z===void 0&&(Z=le),!!ae(x,T,Z)},b.prototype.nextCommaToken=function(x,T){var Z=e.findNextToken(T,T.parent,x);return Z&&Z.kind===27?Z:void 0},b.prototype.replacePropertyAssignment=function(x,T,Z){var B=this.nextCommaToken(x,T)?"":","+this.newLineCharacter;this.replaceNode(x,T,Z,{suffix:B})},b.prototype.insertNodeAt=function(x,T,Z,B){B===void 0&&(B={}),this.replaceRange(x,e.createRange(T),Z,B)},b.prototype.insertNodesAt=function(x,T,Z,B){B===void 0&&(B={}),this.replaceRangeWithNodes(x,e.createRange(T),Z,B)},b.prototype.insertNodeAtTopOfFile=function(x,T,Z){this.insertAtTopOfFile(x,T,Z)},b.prototype.insertNodesAtTopOfFile=function(x,T,Z){this.insertAtTopOfFile(x,T,Z)},b.prototype.insertAtTopOfFile=function(x,T,Z){var B=P(x),u={prefix:B===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(x.text.charCodeAt(B))?"":this.newLineCharacter)+(Z?this.newLineCharacter:"")};e.isArray(T)?this.insertNodesAt(x,B,T,u):this.insertNodeAt(x,B,T,u)},b.prototype.insertFirstParameter=function(x,T,Z){var B=e.firstOrUndefined(T);B?this.insertNodeBefore(x,B,Z):this.insertNodeAt(x,T.pos,Z)},b.prototype.insertNodeBefore=function(x,T,Z,B,u){B===void 0&&(B=!1),u===void 0&&(u={}),this.insertNodeAt(x,oe(x,T,u),Z,this.getOptionsForInsertNodeBefore(T,Z,B))},b.prototype.insertModifierAt=function(x,T,Z,B){B===void 0&&(B={}),this.insertNodeAt(x,T,e.factory.createToken(Z),B)},b.prototype.insertModifierBefore=function(x,T,Z){return this.insertModifierAt(x,Z.getStart(x),T,{suffix:" "})},b.prototype.insertCommentBeforeLine=function(x,T,Z,B){var u=e.getStartPositionOfLine(T,x),A=e.getFirstNonSpaceCharacterPosition(x.text,u),w=N(x,A),z=e.getTouchingToken(x,w?A:Z),U=x.text.slice(u,A),ge="".concat(w?"":this.newLineCharacter,"//").concat(B).concat(this.newLineCharacter).concat(U);this.insertText(x,z.getStart(x),ge)},b.prototype.insertJsdocCommentBefore=function(x,T,Z){var B=T.getStart(x);if(T.jsDoc)for(var u=0,A=T.jsDoc;u<A.length;u++){var w=A[u];this.deleteRange(x,{pos:e.getLineStartPositionForPosition(w.getStart(x),x),end:E(x,w,{})})}var z=e.getPrecedingNonSpaceCharacterPosition(x.text,B-1),U=x.text.slice(z,B);this.insertNodeAt(x,B,Z,{suffix:this.newLineCharacter+U})},b.prototype.createJSDocText=function(x,T){var Z=e.flatMap(T.jsDoc,function(u){return e.isString(u.comment)?e.factory.createJSDocText(u.comment):u.comment}),B=e.singleOrUndefined(T.jsDoc);return B&&e.positionsAreOnSameLine(B.pos,B.end,x)&&e.length(Z)===0?void 0:e.factory.createNodeArray(e.intersperse(Z,e.factory.createJSDocText(`
  263. `)))},b.prototype.replaceJSDocComment=function(x,T,Z){this.insertJsdocCommentBefore(x,y(T),e.factory.createJSDocComment(this.createJSDocText(x,T),e.factory.createNodeArray(Z)))},b.prototype.addJSDocTags=function(x,T,Z){var B=e.flatMapToMutable(T.jsDoc,function(A){return A.tags}),u=Z.filter(function(A){return!B.some(function(w,z){var U=S(w,A);return U&&(B[z]=U),!!U})});this.replaceJSDocComment(x,T,zn(zn([],B,!0),u,!0))},b.prototype.filterJSDocTags=function(x,T,Z){this.replaceJSDocComment(x,T,e.filter(e.flatMapToMutable(T.jsDoc,function(B){return B.tags}),Z))},b.prototype.replaceRangeWithText=function(x,T,Z){this.changes.push({kind:de.Text,sourceFile:x,range:T,text:Z})},b.prototype.insertText=function(x,T,Z){this.replaceRangeWithText(x,e.createRange(T),Z)},b.prototype.tryInsertTypeAnnotation=function(x,T,Z){var B,u;if(e.isFunctionLike(T)){if(u=e.findChildOfKind(T,21,x),!u){if(!e.isArrowFunction(T))return!1;u=e.first(T.parameters)}}else u=(B=T.kind===257?T.exclamationToken:T.questionToken)!==null&&B!==void 0?B:T.name;return this.insertNodeAt(x,u.end,Z,{prefix:": "}),!0},b.prototype.tryInsertThisTypeAnnotation=function(x,T,Z){var B=e.findChildOfKind(T,20,x).getStart(x)+1,u=T.parameters.length?", ":"";this.insertNodeAt(x,B,Z,{prefix:"this: ",suffix:u})},b.prototype.insertTypeParameters=function(x,T,Z){var B=(e.findChildOfKind(T,20,x)||e.first(T.parameters)).getStart(x);this.insertNodesAt(x,B,Z,{prefix:"<",suffix:">",joiner:", "})},b.prototype.getOptionsForInsertNodeBefore=function(x,T,Z){return e.isStatement(x)||e.isClassElement(x)?{suffix:Z?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(x)?{suffix:", "}:e.isParameter(x)?e.isParameter(T)?{suffix:", "}:{}:e.isStringLiteral(x)&&e.isImportDeclaration(x.parent)||e.isNamedImports(x)?{suffix:", "}:e.isImportSpecifier(x)?{suffix:","+(Z?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(x)},b.prototype.insertNodeAtConstructorStart=function(x,T,Z){var B=e.firstOrUndefined(T.body.statements);!B||!T.body.multiLine?this.replaceConstructorBody(x,T,zn([Z],T.body.statements,!0)):this.insertNodeBefore(x,B,Z)},b.prototype.insertNodeAtConstructorStartAfterSuperCall=function(x,T,Z){var B=e.find(T.body.statements,function(u){return e.isExpressionStatement(u)&&e.isSuperCall(u.expression)});!B||!T.body.multiLine?this.replaceConstructorBody(x,T,zn(zn([],T.body.statements,!0),[Z],!1)):this.insertNodeAfter(x,B,Z)},b.prototype.insertNodeAtConstructorEnd=function(x,T,Z){var B=e.lastOrUndefined(T.body.statements);!B||!T.body.multiLine?this.replaceConstructorBody(x,T,zn(zn([],T.body.statements,!0),[Z],!1)):this.insertNodeAfter(x,B,Z)},b.prototype.replaceConstructorBody=function(x,T,Z){this.replaceNode(x,T.body,e.factory.createBlock(Z,!0))},b.prototype.insertNodeAtEndOfScope=function(x,T,Z){var B=oe(x,T.getLastToken(),{});this.insertNodeAt(x,B,Z,{prefix:e.isLineBreak(x.text.charCodeAt(T.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},b.prototype.insertMemberAtStart=function(x,T,Z){this.insertNodeAtStartWorker(x,T,Z)},b.prototype.insertNodeAtObjectStart=function(x,T,Z){this.insertNodeAtStartWorker(x,T,Z)},b.prototype.insertNodeAtStartWorker=function(x,T,Z){var B,u=(B=this.guessIndentationFromExistingMembers(x,T))!==null&&B!==void 0?B:this.computeIndentationForNewMember(x,T);this.insertNodeAt(x,De(T).pos,Z,this.getInsertNodeAtStartInsertOptions(x,T,u))},b.prototype.guessIndentationFromExistingMembers=function(x,T){for(var Z,B=T,u=0,A=De(T);u<A.length;u++){var w=A[u];if(e.rangeStartPositionsAreOnSameLine(B,w,x))return;var z=w.getStart(x),U=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(z,x),z,x,this.formatContext.options);if(Z===void 0)Z=U;else if(U!==Z)return;B=w}return Z},b.prototype.computeIndentationForNewMember=function(x,T){var Z,B=T.getStart(x);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(B,x),B,x,this.formatContext.options)+((Z=this.formatContext.options.indentSize)!==null&&Z!==void 0?Z:4)},b.prototype.getInsertNodeAtStartInsertOptions=function(x,T,Z){var B=De(T),u=B.length===0,A=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(T),{node:T,sourceFile:x}),w=e.isObjectLiteralExpression(T)&&(!e.isJsonSourceFile(x)||!u),z=e.isObjectLiteralExpression(T)&&e.isJsonSourceFile(x)&&u&&!A;return{indentation:Z,prefix:(z?",":"")+this.newLineCharacter,suffix:w?",":e.isInterfaceDeclaration(T)&&u?";":""}},b.prototype.insertNodeAfterComma=function(x,T,Z){var B=this.insertNodeAfterWorker(x,this.nextCommaToken(x,T)||T,Z);this.insertNodeAt(x,B,Z,this.getInsertNodeAfterOptions(x,T))},b.prototype.insertNodeAfter=function(x,T,Z){var B=this.insertNodeAfterWorker(x,T,Z);this.insertNodeAt(x,B,Z,this.getInsertNodeAfterOptions(x,T))},b.prototype.insertNodeAtEndOfList=function(x,T,Z){this.insertNodeAt(x,T.end,Z,{prefix:", "})},b.prototype.insertNodesAfter=function(x,T,Z){var B=this.insertNodeAfterWorker(x,T,e.first(Z));this.insertNodesAt(x,B,Z,this.getInsertNodeAfterOptions(x,T))},b.prototype.insertNodeAfterWorker=function(x,T,Z){J(T,Z)&&x.text.charCodeAt(T.end-1)!==59&&this.replaceRange(x,e.createRange(T.end),e.factory.createToken(26));var B=E(x,T,{});return B},b.prototype.getInsertNodeAfterOptions=function(x,T){var Z=this.getInsertNodeAfterOptionsWorker(T);return vi(vi({},Z),{prefix:T.end===x.end&&e.isStatement(T)?Z.prefix?`
  264. `.concat(Z.prefix):`
  265. `:Z.prefix})},b.prototype.getInsertNodeAfterOptionsWorker=function(x){switch(x.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return e.Debug.assert(e.isStatement(x)||e.isClassOrTypeElement(x)),{suffix:this.newLineCharacter}}},b.prototype.insertName=function(x,T,Z){if(e.Debug.assert(!T.name),T.kind===216){var B=e.findChildOfKind(T,38,x),u=e.findChildOfKind(T,20,x);u?(this.insertNodesAt(x,u.getStart(x),[e.factory.createToken(98),e.factory.createIdentifier(Z)],{joiner:" "}),G(this,x,B)):(this.insertText(x,e.first(T.parameters).getStart(x),"function ".concat(Z,"(")),this.replaceRange(x,B,e.factory.createToken(21))),T.body.kind!==238&&(this.insertNodesAt(x,T.body.getStart(x),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(x,T.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var A=e.findChildOfKind(T,T.kind===215?98:84,x).end;this.insertNodeAt(x,A,e.factory.createIdentifier(Z),{prefix:" "})}},b.prototype.insertExportModifier=function(x,T){this.insertText(x,T.getStart(x),"export ")},b.prototype.insertImportSpecifierAtIndex=function(x,T,Z,B){var u=Z.elements[B-1];u?this.insertNodeInListAfter(x,u,T):this.insertNodeBefore(x,Z.elements[0],T,!e.positionsAreOnSameLine(Z.elements[0].getStart(),Z.parent.parent.getStart(),x))},b.prototype.insertNodeInListAfter=function(x,T,Z,B){if(B===void 0&&(B=e.formatting.SmartIndenter.getContainingList(T,x)),!B){e.Debug.fail("node is not a list element");return}var u=e.indexOfNode(B,T);if(!(u<0)){var A=T.getEnd();if(u!==B.length-1){var w=e.getTokenAtPosition(x,T.end);if(w&&I(T,w)){var z=B[u+1],U=p(x.text,z.getFullStart()),ge="".concat(e.tokenToString(w.kind)).concat(x.text.substring(w.end,U));this.insertNodesAt(x,U,[Z],{suffix:ge})}}else{var pe=T.getStart(x),He=e.getLineStartPositionForPosition(pe,x),Be=void 0,Me=!1;if(B.length===1)Be=27;else{var Le=e.findPrecedingToken(T.pos,x);Be=I(T,Le)?Le.kind:27;var Ae=e.getLineStartPositionForPosition(B[u-1].getStart(x),x);Me=Ae!==He}if(D(x.text,T.end)&&(Me=!0),Me){this.replaceRange(x,e.createRange(A),e.factory.createToken(Be));for(var Xe=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(He,pe,x,this.formatContext.options),Ne=e.skipTrivia(x.text,A,!0,!1);Ne!==A&&e.isLineBreak(x.text.charCodeAt(Ne-1));)Ne--;this.replaceRange(x,e.createRange(Ne),Z,{indentation:Xe,prefix:this.newLineCharacter})}else this.replaceRange(x,e.createRange(A),Z,{prefix:"".concat(e.tokenToString(Be)," ")})}}},b.prototype.parenthesizeExpression=function(x,T){this.replaceRange(x,e.rangeOfNode(T),e.factory.createParenthesizedExpression(T))},b.prototype.finishClassesWithNodesInsertedAtStart=function(){var x=this;this.classesWithNodesInsertedAtStart.forEach(function(T){var Z=T.node,B=T.sourceFile,u=me(Z,B),A=u[0],w=u[1];if(A!==void 0&&w!==void 0){var z=De(Z).length===0,U=e.positionsAreOnSameLine(A,w,B);z&&U&&A!==w-1&&x.deleteRange(B,e.createRange(A,w-1)),U&&x.insertText(B,w-1,x.newLineCharacter)}})},b.prototype.finishDeleteDeclarations=function(){for(var x=this,T=new e.Set,Z=function(ge,pe){B.deletedNodes.some(function(He){return He.sourceFile===ge&&e.rangeContainsRangeExclusive(He.node,pe)})||(e.isArray(pe)?B.deleteRange(ge,e.rangeOfTypeParameters(ge,pe)):q.deleteDeclaration(B,T,ge,pe))},B=this,u=0,A=this.deletedNodes;u<A.length;u++){var w=A[u],z=w.sourceFile,U=w.node;Z(z,U)}T.forEach(function(ge){var pe=ge.getSourceFile(),He=e.formatting.SmartIndenter.getContainingList(ge,pe);if(ge===e.last(He)){var Be=e.findLastIndex(He,function(Me){return!T.has(Me)},He.length-2);Be!==-1&&x.deleteRange(pe,{pos:He[Be].end,end:k(pe,He[Be+1])})}})},b.prototype.getChanges=function(x){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var T=M.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,x),Z=0,B=this.newFiles;Z<B.length;Z++){var u=B[Z],A=u.oldFile,w=u.fileName,z=u.statements;T.push(M.newFileChanges(A,w,z,this.newLineCharacter,this.formatContext))}return T},b.prototype.createNewFile=function(x,T,Z){this.newFiles.push({oldFile:x,fileName:T,statements:Z})},b}();ne.ChangeTracker=m;function y(b){if(b.kind!==216)return b;var x=b.parent.kind===169?b.parent:b.parent.parent;return x.jsDoc=b.jsDoc,x.jsDocCache=b.jsDocCache,x}function S(b,x){if(b.kind===x.kind)switch(b.kind){case 343:{var T=b,Z=x;return e.isIdentifier(T.name)&&e.isIdentifier(Z.name)&&T.name.escapedText===Z.name.escapedText?e.factory.createJSDocParameterTag(void 0,Z.name,!1,Z.typeExpression,Z.isNameFirst,T.comment):void 0}case 344:return e.factory.createJSDocReturnTag(void 0,x.typeExpression,b.comment);case 346:return e.factory.createJSDocTypeTag(void 0,x.typeExpression,b.comment)}}function k(b,x){return e.skipTrivia(b.text,oe(b,x,{leadingTriviaOption:_e.IncludeAll}),!1,!0)}function C(b,x,T,Z){var B=k(b,Z);if(T===void 0||e.positionsAreOnSameLine(E(b,x,{}),B,b))return B;var u=e.findPrecedingToken(Z.getStart(b),b);if(I(x,u)){var A=e.findPrecedingToken(x.getStart(b),b);if(I(T,A)){var w=e.skipTrivia(b.text,u.getEnd(),!0,!0);if(e.positionsAreOnSameLine(A.getStart(b),u.getStart(b),b))return e.isLineBreak(b.text.charCodeAt(w-1))?w-1:w;if(e.isLineBreak(b.text.charCodeAt(w)))return w}}return B}function me(b,x){var T=e.findChildOfKind(b,18,x),Z=e.findChildOfKind(b,19,x);return[T==null?void 0:T.end,Z==null?void 0:Z.end]}function De(b){return e.isObjectLiteralExpression(b)?b.properties:b.members}function X(b,x,T,Z){return M.newFileChangesWorker(void 0,x,b,T,Z)}ne.getNewFileText=X;var M;(function(b){function x(w,z,U,ge){return e.mapDefined(e.group(w,function(pe){return pe.sourceFile.path}),function(pe){for(var He=pe[0].sourceFile,Be=e.stableSort(pe,function(Xe,Ne){return Xe.range.pos-Ne.range.pos||Xe.range.end-Ne.range.end}),Me=function(Xe){e.Debug.assert(Be[Xe].range.end<=Be[Xe+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(Be[Xe].range)," and ").concat(JSON.stringify(Be[Xe+1].range))})},Le=0;Le<Be.length-1;Le++)Me(Le);var Ae=e.mapDefined(Be,function(Xe){var Ne=e.createTextSpanFromRange(Xe.range),Oe=B(Xe,He,z,U,ge);if(!(Ne.length===Oe.length&&e.stringContainsAt(He.text,Oe,Ne.start)))return e.createTextChange(Ne,Oe)});return Ae.length>0?{fileName:He.fileName,textChanges:Ae}:void 0})}b.getTextChangesFromChanges=x;function T(w,z,U,ge,pe){var He=Z(w,e.getScriptKindFromFileName(z),U,ge,pe);return{fileName:z,textChanges:[e.createTextChange(e.createTextSpan(0,0),He)],isNewFile:!0}}b.newFileChanges=T;function Z(w,z,U,ge,pe){var He=U.map(function(Le){return Le===4?"":A(Le,w,ge).text}).join(ge),Be=e.createSourceFile("any file name",He,99,!0,z),Me=e.formatting.formatDocument(Be,pe);return H(He,Me)+ge}b.newFileChangesWorker=Z;function B(w,z,U,ge,pe){var He;if(w.kind===de.Remove)return"";if(w.kind===de.Text)return w.text;var Be=w.options,Me=Be===void 0?{}:Be,Le=w.range.pos,Ae=function(Oe){return u(Oe,z,Le,Me,U,ge,pe)},Xe=w.kind===de.ReplaceWithMultipleNodes?w.nodes.map(function(Oe){return e.removeSuffix(Ae(Oe),U)}).join(((He=w.options)===null||He===void 0?void 0:He.joiner)||U):Ae(w.node),Ne=Me.indentation!==void 0||e.getLineStartPositionForPosition(Le,z)===Le?Xe:Xe.replace(/^\s+/,"");return(Me.prefix||"")+Ne+(!Me.suffix||e.endsWith(Ne,Me.suffix)?"":Me.suffix)}function u(w,z,U,ge,pe,He,Be){var Me=ge.indentation,Le=ge.prefix,Ae=ge.delta,Xe=A(w,z,pe),Ne=Xe.node,Oe=Xe.text;Be&&Be(Ne,Oe);var be=e.getFormatCodeSettingsForWriting(He,z),Y=Me!==void 0?Me:e.formatting.SmartIndenter.getIndentation(U,z,be,Le===pe||e.getLineStartPositionForPosition(U,z)===U);Ae===void 0&&(Ae=e.formatting.SmartIndenter.shouldIndentChildNode(be,w)&&be.indentSize||0);var d={text:Oe,getLineAndCharacterOfPosition:function(Ce){return e.getLineAndCharacterOfPosition(this,Ce)}},j=e.formatting.formatNodeGivenIndentation(Ne,d,z.languageVariant,Y,Ae,vi(vi({},He),{options:be}));return H(Oe,j)}function A(w,z,U){var ge=L(U),pe=e.getNewLineKind(U);return e.createPrinter({newLine:pe,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},ge).writeNode(4,w,z,ge),{text:ge.getText(),node:F(w)}}b.getNonformattedText=A})(M||(M={}));function H(b,x){for(var T=x.length-1;T>=0;T--){var Z=x[T],B=Z.span,u=Z.newText;b="".concat(b.substring(0,B.start)).concat(u).concat(b.substring(e.textSpanEnd(B)))}return b}ne.applyChanges=H;function V(b){return e.skipTrivia(b,0)===b.length}var h=vi(vi({},e.nullTransformationContext),{factory:e.createNodeFactory(e.nullTransformationContext.factory.flags|1,e.nullTransformationContext.factory.baseFactory)});function F(b){var x=e.visitEachChild(b,F,h,$,F),T=e.nodeIsSynthesized(x)?x:Object.create(x);return e.setTextRangePosEnd(T,K(b),O(b)),T}ne.assignPositionsToNode=F;function $(b,x,T,Z,B){var u=e.visitNodes(b,x,T,Z,B);if(!u)return u;var A=u===b?e.factory.createNodeArray(u.slice(0)):u;return e.setTextRangePosEnd(A,K(b),O(b)),A}function L(b){var x=0,T=e.createTextWriter(b),Z=function(ln){ln&&se(ln,x)},B=function(ln){ln&&ie(ln,x)},u=function(ln){ln&&se(ln,x)},A=function(ln){ln&&ie(ln,x)},w=function(ln){ln&&se(ln,x)},z=function(ln){ln&&ie(ln,x)};function U(ln,dr){if(dr||!V(ln)){x=T.getTextPos();for(var vr=0;e.isWhiteSpaceLike(ln.charCodeAt(ln.length-vr-1));)vr++;x-=vr}}function ge(ln){T.write(ln),U(ln,!1)}function pe(ln){T.writeComment(ln)}function He(ln){T.writeKeyword(ln),U(ln,!1)}function Be(ln){T.writeOperator(ln),U(ln,!1)}function Me(ln){T.writePunctuation(ln),U(ln,!1)}function Le(ln){T.writeTrailingSemicolon(ln),U(ln,!1)}function Ae(ln){T.writeParameter(ln),U(ln,!1)}function Xe(ln){T.writeProperty(ln),U(ln,!1)}function Ne(ln){T.writeSpace(ln),U(ln,!1)}function Oe(ln){T.writeStringLiteral(ln),U(ln,!1)}function be(ln,dr){T.writeSymbol(ln,dr),U(ln,!1)}function Y(ln){T.writeLine(ln)}function d(){T.increaseIndent()}function j(){T.decreaseIndent()}function Ce(){return T.getText()}function Se(ln){T.rawWrite(ln),U(ln,!1)}function Re(ln){T.writeLiteral(ln),U(ln,!0)}function er(){return T.getTextPos()}function wr(){return T.getLine()}function mr(){return T.getColumn()}function Ue(){return T.getIndent()}function t(){return T.isAtStartOfLine()}function qr(){T.clear(),x=0}return{onBeforeEmitNode:Z,onAfterEmitNode:B,onBeforeEmitNodeArray:u,onAfterEmitNodeArray:A,onBeforeEmitToken:w,onAfterEmitToken:z,write:ge,writeComment:pe,writeKeyword:He,writeOperator:Be,writePunctuation:Me,writeTrailingSemicolon:Le,writeParameter:Ae,writeProperty:Xe,writeSpace:Ne,writeStringLiteral:Oe,writeSymbol:be,writeLine:Y,increaseIndent:d,decreaseIndent:j,getText:Ce,rawWrite:Se,writeLiteral:Re,getTextPos:er,getLine:wr,getColumn:mr,getIndent:Ue,isAtStartOfLine:t,hasTrailingComment:function(){return T.hasTrailingComment()},hasTrailingWhitespace:function(){return T.hasTrailingWhitespace()},clear:qr}}ne.createWriter=L;function P(b){for(var x,T=0,Z=b.statements;T<Z.length;T++){var B=Z[T];if(e.isPrologueDirective(B))x=B;else break}var u=0,A=b.text;if(x)return u=x.end,Xe(),u;var w=e.getShebang(A);w!==void 0&&(u=w.length,Xe());var z=e.getLeadingCommentRanges(A,u);if(!z)return u;for(var U,ge,pe=0,He=z;pe<He.length;pe++){var Be=He[pe];if(Be.kind===3){if(e.isPinnedComment(A,Be.pos)){U={range:Be,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(A,Be.pos,Be.end)){U={range:Be,pinnedOrTripleSlash:!0};continue}if(U){if(U.pinnedOrTripleSlash)break;var Me=b.getLineAndCharacterOfPosition(Be.pos).line,Le=b.getLineAndCharacterOfPosition(U.range.end).line;if(Me>=Le+2)break}if(b.statements.length){ge===void 0&&(ge=b.getLineAndCharacterOfPosition(b.statements[0].getStart()).line);var Ae=b.getLineAndCharacterOfPosition(Be.end).line;if(ge<Ae+2)break}U={range:Be,pinnedOrTripleSlash:!1}}return U&&(u=U.range.end,Xe()),u;function Xe(){if(u<A.length){var Ne=A.charCodeAt(u);e.isLineBreak(Ne)&&(u++,u<A.length&&Ne===13&&A.charCodeAt(u)===10&&u++)}}}function N(b,x){return!e.isInComment(b,x)&&!e.isInString(b,x)&&!e.isInTemplateString(b,x)&&!e.isInJSXText(b,x)}ne.isValidLocationToAddComment=N;function J(b,x){return(e.isPropertySignature(b)||e.isPropertyDeclaration(b))&&e.isClassOrTypeElement(x)&&x.name.kind===164||e.isStatementButNotDeclaration(b)&&e.isStatementButNotDeclaration(x)}var q;(function(b){function x(u,A,w,z){switch(z.kind){case 166:{var U=z.parent;e.isArrowFunction(U)&&U.parameters.length===1&&!e.findChildOfKind(U,20,w)?u.replaceNodeWithText(w,z,"()"):ye(u,A,w,z);break}case 269:case 268:var ge=w.imports.length&&z===e.first(w.imports).parent||z===e.find(w.statements,e.isAnyImportSyntax);G(u,w,z,{leadingTriviaOption:ge?_e.Exclude:e.hasJSDocNodes(z)?_e.JSDoc:_e.StartLine});break;case 205:var pe=z.parent,He=pe.kind===204&&z!==e.last(pe.elements);He?G(u,w,z):ye(u,A,w,z);break;case 257:B(u,A,w,z);break;case 165:ye(u,A,w,z);break;case 273:var Be=z.parent;Be.elements.length===1?Z(u,w,Be):ye(u,A,w,z);break;case 271:Z(u,w,z);break;case 26:G(u,w,z,{trailingTriviaOption:Q.Exclude});break;case 98:G(u,w,z,{leadingTriviaOption:_e.Exclude});break;case 260:case 259:G(u,w,z,{leadingTriviaOption:e.hasJSDocNodes(z)?_e.JSDoc:_e.StartLine});break;default:z.parent?e.isImportClause(z.parent)&&z.parent.name===z?T(u,w,z.parent):e.isCallExpression(z.parent)&&e.contains(z.parent.arguments,z)?ye(u,A,w,z):G(u,w,z):G(u,w,z)}}b.deleteDeclaration=x;function T(u,A,w){if(!w.namedBindings)G(u,A,w.parent);else{var z=w.name.getStart(A),U=e.getTokenAtPosition(A,w.name.end);if(U&&U.kind===27){var ge=e.skipTrivia(A.text,U.end,!1,!0);u.deleteRange(A,{pos:z,end:ge})}else G(u,A,w.name)}}function Z(u,A,w){if(w.parent.name){var z=e.Debug.checkDefined(e.getTokenAtPosition(A,w.pos-1));u.deleteRange(A,{pos:z.getStart(A),end:w.end})}else{var U=e.getAncestor(w,269);G(u,A,U)}}function B(u,A,w,z){var U=z.parent;if(U.kind===295){u.deleteNodeRange(w,e.findChildOfKind(U,20,w),e.findChildOfKind(U,21,w));return}if(U.declarations.length!==1){ye(u,A,w,z);return}var ge=U.parent;switch(ge.kind){case 247:case 246:u.replaceNode(w,z,e.factory.createObjectLiteralExpression());break;case 245:G(u,w,U);break;case 240:G(u,w,ge,{leadingTriviaOption:e.hasJSDocNodes(ge)?_e.JSDoc:_e.StartLine});break;default:e.Debug.assertNever(ge)}}})(q||(q={}));function G(b,x,T,Z){Z===void 0&&(Z={leadingTriviaOption:_e.IncludeAll});var B=oe(x,T,Z),u=E(x,T,Z);b.deleteRange(x,{pos:B,end:u})}ne.deleteNode=G;function ye(b,x,T,Z){var B=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(Z,T)),u=e.indexOfNode(B,Z);if(e.Debug.assert(u!==-1),B.length===1){G(b,T,Z);return}e.Debug.assert(!x.has(Z),"Deleting a node twice"),x.add(Z),b.deleteRange(T,{pos:k(T,Z),end:u===B.length-1?E(T,Z,{}):C(T,Z,B[u-1],B[u+1])})}})(o=e.textChanges||(e.textChanges={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=e.createMultiMap(),se=new e.Map;function O(m,y,S){return Q(m,e.diagnosticToString(S),y,void 0,void 0)}ne.createCodeFixActionWithoutFixAll=O;function ie(m,y,S,k,C,me){return Q(m,e.diagnosticToString(S),y,k,e.diagnosticToString(C),me)}ne.createCodeFixAction=ie;function _e(m,y,S,k,C,me){return Q(m,e.diagnosticToString(S),y,k,C&&e.diagnosticToString(C),me)}ne.createCodeFixActionMaybeFixAll=_e;function Q(m,y,S,k,C,me){return{fixName:m,description:y,changes:S,fixId:k,fixAllDescription:C,commands:me?[me]:void 0}}function p(m){for(var y=0,S=m.errorCodes;y<S.length;y++){var k=S[y];K.add(String(k),m)}if(m.fixIds)for(var C=0,me=m.fixIds;C<me.length;C++){var De=me[C];e.Debug.assert(!se.has(De)),se.set(De,m)}}ne.registerCodeFix=p;function D(){return e.arrayFrom(K.keys())}ne.getSupportedErrorCodes=D;function le(m,y){for(var S=m.errorCodes,k=0,C=0,me=y;C<me.length;C++){var De=me[C];if(e.contains(S,De.code)&&k++,k>1)break}var X=k<2;return function(M){var H=M.fixId,V=M.fixAllDescription,h=Mm(M,["fixId","fixAllDescription"]);return X?h:vi(vi({},h),{fixId:H,fixAllDescription:V})}}function de(m){var y=f(m),S=K.get(String(m.errorCode));return e.flatMap(S,function(k){return e.map(k.getCodeActions(m),le(k,y))})}ne.getFixes=de;function te(m){return se.get(e.cast(m.fixId,e.isString)).getAllCodeActions(m)}ne.getAllFixes=te;function oe(m,y){return{changes:m,commands:y}}ne.createCombinedCodeActions=oe;function ae(m,y){return{fileName:m,textChanges:y}}ne.createFileTextChanges=ae;function E(m,y,S){var k=[],C=e.textChanges.ChangeTracker.with(m,function(me){return I(m,y,function(De){return S(me,De,k)})});return oe(C,k.length===0?void 0:k)}ne.codeFixAll=E;function I(m,y,S){for(var k=0,C=f(m);k<C.length;k++){var me=C[k];e.contains(y,me.code)&&S(me)}}ne.eachDiagnostic=I;function f(m){var y=m.program,S=m.sourceFile,k=m.cancellationToken;return zn(zn(zn([],y.getSemanticDiagnostics(S,k),!0),y.getSyntacticDiagnostics(S,k),!0),e.computeSuggestionDiagnostics(S,y,k),!0)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=new e.Map;function se(_e,Q){K.set(_e,Q)}ne.registerRefactor=se;function O(_e){return e.arrayFrom(e.flatMapIterator(K.values(),function(Q){var p;return _e.cancellationToken&&_e.cancellationToken.isCancellationRequested()||!((p=Q.kinds)===null||p===void 0?void 0:p.some(function(D){return ne.refactorKindBeginsWith(D,_e.kind)}))?void 0:Q.getAvailableActions(_e)}))}ne.getApplicableRefactors=O;function ie(_e,Q,p){var D=K.get(Q);return D&&D.getEditsForAction(_e,p)}ne.getEditsForRefactor=ie})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addConvertToUnknownForNonOverlappingTypes",se=[e.Diagnostics.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];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=ie(Q.sourceFile,Q.span.start);if(p!==void 0){var D=e.textChanges.ChangeTracker.with(Q,function(le){return O(le,Q.sourceFile,p)});return[ne.createCodeFixAction(K,D,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,K,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=ie(p.file,p.start);D&&O(Q,p.file,D)})}});function O(_e,Q,p){var D=e.isAsExpression(p)?e.factory.createAsExpression(p.expression,e.factory.createKeywordTypeNode(157)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(157),p.expression);_e.replaceNode(Q,p.expression,D)}function ie(_e,Q){if(!e.isInJSFile(_e))return e.findAncestor(e.getTokenAtPosition(_e,Q),function(p){return e.isAsExpression(p)||e.isTypeAssertionExpression(p)})}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.registerCodeFix({errorCodes:[e.Diagnostics.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,e.Diagnostics.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(se){var O=se.sourceFile,ie=e.textChanges.ChangeTracker.with(se,function(_e){var Q=e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([]),void 0);_e.insertNodeAtEndOfScope(O,O,Q)});return[ne.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",ie,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingAsync",se=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];ne.registerCodeFix({fixIds:[K],errorCodes:se,getCodeActions:function(D){var le=D.sourceFile,de=D.errorCode,te=D.cancellationToken,oe=D.program,ae=D.span,E=e.find(oe.getTypeChecker().getDiagnostics(le,te),Q(ae,de)),I=E&&E.relatedInformation&&e.find(E.relatedInformation,function(y){return y.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),f=_e(le,I);if(!!f){var m=function(y){return e.textChanges.ChangeTracker.with(D,y)};return[O(D,f,m)]}},getAllCodeActions:function(p){var D=p.sourceFile,le=new e.Set;return ne.codeFixAll(p,se,function(de,te){var oe=te.relatedInformation&&e.find(te.relatedInformation,function(I){return I.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),ae=_e(D,oe);if(!!ae){var E=function(I){return I(de),[]};return O(p,ae,E,le)}})}});function O(p,D,le,de){var te=le(function(oe){return ie(oe,p.sourceFile,D,de)});return ne.createCodeFixAction(K,te,e.Diagnostics.Add_async_modifier_to_containing_function,K,e.Diagnostics.Add_all_missing_async_modifiers)}function ie(p,D,le,de){if(!(de&&de.has(e.getNodeId(le)))){de==null||de.add(e.getNodeId(le));var te=e.factory.updateModifiers(e.getSynthesizedDeepClone(le,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(le)|512)));p.replaceNode(D,le,te)}}function _e(p,D){if(!!D){var le=e.getTokenAtPosition(p,D.start),de=e.findAncestor(le,function(te){return te.getStart(p)<D.start||te.getEnd()>e.textSpanEnd(D)?"quit":(e.isArrowFunction(te)||e.isMethodDeclaration(te)||e.isFunctionExpression(te)||e.isFunctionDeclaration(te))&&e.textSpansEqual(D,e.createTextSpanFromNode(te,p))});return de}}function Q(p,D){return function(le){var de=le.start,te=le.length,oe=le.relatedInformation,ae=le.code;return e.isNumber(de)&&e.isNumber(te)&&e.textSpansEqual({start:de,length:te},p)&&ae===D&&!!oe&&e.some(oe,function(E){return E.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingAwait",se=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,O=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],ie=zn([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,se],O,!0);ne.registerCodeFix({fixIds:[K],errorCodes:ie,getCodeActions:function(f){var m=f.sourceFile,y=f.errorCode,S=f.span,k=f.cancellationToken,C=f.program,me=_e(m,y,S,k,C);if(!!me){var De=f.program.getTypeChecker(),X=function(M){return e.textChanges.ChangeTracker.with(f,M)};return e.compact([Q(f,me,y,De,X),p(f,me,y,De,X)])}},getAllCodeActions:function(I){var f=I.sourceFile,m=I.program,y=I.cancellationToken,S=I.program.getTypeChecker(),k=new e.Set;return ne.codeFixAll(I,ie,function(C,me){var De=_e(f,me.code,me,y,m);if(!!De){var X=function(M){return M(C),[]};return Q(I,De,me.code,S,X,k)||p(I,De,me.code,S,X,k)}})}});function _e(I,f,m,y,S){var k=e.getFixableErrorSpanExpression(I,m);return k&&D(I,f,m,y,S)&&oe(k)?k:void 0}function Q(I,f,m,y,S,k){var C=I.sourceFile,me=I.program,De=I.cancellationToken,X=le(f,C,De,me,y);if(X){var M=S(function(H){e.forEach(X.initializers,function(V){var h=V.expression;return ae(H,m,C,y,h,k)}),k&&X.needsSecondPassForFixAll&&ae(H,m,C,y,f,k)});return ne.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",M,X.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,X.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function p(I,f,m,y,S,k){var C=S(function(me){return ae(me,m,I.sourceFile,y,f,k)});return ne.createCodeFixAction(K,C,e.Diagnostics.Add_await,K,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function D(I,f,m,y,S){var k=S.getTypeChecker(),C=k.getDiagnostics(I,y);return e.some(C,function(me){var De=me.start,X=me.length,M=me.relatedInformation,H=me.code;return e.isNumber(De)&&e.isNumber(X)&&e.textSpansEqual({start:De,length:X},m)&&H===f&&!!M&&e.some(M,function(V){return V.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function le(I,f,m,y,S){var k=de(I,S);if(!!k){for(var C=k.isCompleteFix,me,De=function(V){var h=S.getSymbolAtLocation(V);if(!h)return"continue";var F=e.tryCast(h.valueDeclaration,e.isVariableDeclaration),$=F&&e.tryCast(F.name,e.isIdentifier),L=e.getAncestor(F,240);if(!F||!L||F.type||!F.initializer||L.getSourceFile()!==f||e.hasSyntacticModifier(L,1)||!$||!oe(F.initializer))return C=!1,"continue";var P=y.getSemanticDiagnostics(f,m),N=e.FindAllReferences.Core.eachSymbolReferenceInFile($,S,f,function(J){return V!==J&&!te(J,P,f,S)});if(N)return C=!1,"continue";(me||(me=[])).push({expression:F.initializer,declarationSymbol:h})},X=0,M=k.identifiers;X<M.length;X++){var H=M[X];De(H)}return me&&{initializers:me,needsSecondPassForFixAll:!C}}}function de(I,f){if(e.isPropertyAccessExpression(I.parent)&&e.isIdentifier(I.parent.expression))return{identifiers:[I.parent.expression],isCompleteFix:!0};if(e.isIdentifier(I))return{identifiers:[I],isCompleteFix:!0};if(e.isBinaryExpression(I)){for(var m=void 0,y=!0,S=0,k=[I.left,I.right];S<k.length;S++){var C=k[S],me=f.getTypeAtLocation(C);if(f.getPromisedTypeOfPromise(me)){if(!e.isIdentifier(C)){y=!1;continue}(m||(m=[])).push(C)}}return m&&{identifiers:m,isCompleteFix:y}}}function te(I,f,m,y){var S=e.isPropertyAccessExpression(I.parent)?I.parent.name:e.isBinaryExpression(I.parent)?I.parent:I,k=e.find(f,function(C){return C.start===S.getStart(m)&&C.start+C.length===S.getEnd()});return k&&e.contains(ie,k.code)||y.getTypeAtLocation(S).flags&1}function oe(I){return I.kind&32768||!!e.findAncestor(I,function(f){return f.parent&&e.isArrowFunction(f.parent)&&f.parent.body===f||e.isBlock(f)&&(f.parent.kind===259||f.parent.kind===215||f.parent.kind===216||f.parent.kind===171)})}function ae(I,f,m,y,S,k){if(e.isForOfStatement(S.parent)&&!S.parent.awaitModifier){var C=y.getTypeAtLocation(S),me=y.getAsyncIterableType();if(me&&y.isTypeAssignableTo(C,me)){var De=S.parent;I.replaceNode(m,De,e.factory.updateForOfStatement(De,e.factory.createToken(133),De.initializer,De.expression,De.statement));return}}if(e.isBinaryExpression(S))for(var X=0,M=[S.left,S.right];X<M.length;X++){var H=M[X];if(k&&e.isIdentifier(H)){var V=y.getSymbolAtLocation(H);if(V&&k.has(e.getSymbolId(V)))continue}var h=y.getTypeAtLocation(H),F=y.getPromisedTypeOfPromise(h)?e.factory.createAwaitExpression(H):H;I.replaceNode(m,H,F)}else if(f===se&&e.isPropertyAccessExpression(S.parent)){if(k&&e.isIdentifier(S.parent.expression)){var V=y.getSymbolAtLocation(S.parent.expression);if(V&&k.has(e.getSymbolId(V)))return}I.replaceNode(m,S.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(S.parent.expression))),E(I,S.parent.expression,m)}else if(e.contains(O,f)&&e.isCallOrNewExpression(S.parent)){if(k&&e.isIdentifier(S)){var V=y.getSymbolAtLocation(S);if(V&&k.has(e.getSymbolId(V)))return}I.replaceNode(m,S,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(S))),E(I,S,m)}else{if(k&&e.isVariableDeclaration(S.parent)&&e.isIdentifier(S.parent.name)){var V=y.getSymbolAtLocation(S.parent.name);if(V&&!e.tryAddToSet(k,e.getSymbolId(V)))return}I.replaceNode(m,S,e.factory.createAwaitExpression(S))}}function E(I,f,m){var y=e.findPrecedingToken(f.pos,m);y&&e.positionIsASICandidate(y.end,y.parent,m)&&I.insertText(m,f.getStart(m),";")}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingConst",se=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(de){var te=e.textChanges.ChangeTracker.with(de,function(oe){return O(oe,de.sourceFile,de.span.start,de.program)});if(te.length>0)return[ne.createCodeFixAction(K,te,e.Diagnostics.Add_const_to_unresolved_variable,K,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[K],getAllCodeActions:function(le){var de=new e.Set;return ne.codeFixAll(le,se,function(te,oe){return O(te,oe.file,oe.start,le.program,de)})}});function O(le,de,te,oe,ae){var E=e.getTokenAtPosition(de,te),I=e.findAncestor(E,function(k){return e.isForInOrOfStatement(k.parent)?k.parent.initializer===k:_e(k)?!1:"quit"});if(I)return ie(le,I,de,ae);var f=E.parent;if(e.isBinaryExpression(f)&&f.operatorToken.kind===63&&e.isExpressionStatement(f.parent))return ie(le,E,de,ae);if(e.isArrayLiteralExpression(f)){var m=oe.getTypeChecker();return e.every(f.elements,function(k){return Q(k,m)})?ie(le,f,de,ae):void 0}var y=e.findAncestor(E,function(k){return e.isExpressionStatement(k.parent)?!0:p(k)?!1:"quit"});if(y){var S=oe.getTypeChecker();return D(y,S)?ie(le,y,de,ae):void 0}}function ie(le,de,te,oe){(!oe||e.tryAddToSet(oe,de))&&le.insertModifierBefore(te,85,de)}function _e(le){switch(le.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function Q(le,de){var te=e.isIdentifier(le)?le:e.isAssignmentExpression(le,!0)&&e.isIdentifier(le.left)?le.left:void 0;return!!te&&!de.getSymbolAtLocation(te)}function p(le){switch(le.kind){case 79:case 223:case 27:return!0;default:return!1}}function D(le,de){return e.isBinaryExpression(le)?le.operatorToken.kind===27?e.every([le.left,le.right],function(te){return D(te,de)}):le.operatorToken.kind===63&&e.isIdentifier(le.left)&&!de.getSymbolAtLocation(le.left):!1}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingDeclareProperty",se=[e.Diagnostics.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];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=e.textChanges.ChangeTracker.with(_e,function(p){return O(p,_e.sourceFile,_e.span.start)});if(Q.length>0)return[ne.createCodeFixAction(K,Q,e.Diagnostics.Prefix_with_declare,K,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[K],getAllCodeActions:function(ie){var _e=new e.Set;return ne.codeFixAll(ie,se,function(Q,p){return O(Q,p.file,p.start,_e)})}});function O(ie,_e,Q,p){var D=e.getTokenAtPosition(_e,Q);if(!!e.isIdentifier(D)){var le=D.parent;le.kind===169&&(!p||e.tryAddToSet(p,le))&&ie.insertModifierBefore(_e,136,le)}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingInvocationForDecorator",se=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=e.textChanges.ChangeTracker.with(_e,function(p){return O(p,_e.sourceFile,_e.span.start)});return[ne.createCodeFixAction(K,Q,e.Diagnostics.Call_decorator_expression,K,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e,Q){return O(_e,Q.file,Q.start)})}});function O(ie,_e,Q){var p=e.getTokenAtPosition(_e,Q),D=e.findAncestor(p,e.isDecorator);e.Debug.assert(!!D,"Expected position to be owned by a decorator.");var le=e.factory.createCallExpression(D.expression,void 0,void 0);ie.replaceNode(_e,D.expression,le)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addNameToNamelessParameter",se=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=e.textChanges.ChangeTracker.with(_e,function(p){return O(p,_e.sourceFile,_e.span.start)});return[ne.createCodeFixAction(K,Q,e.Diagnostics.Add_parameter_name,K,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e,Q){return O(_e,Q.file,Q.start)})}});function O(ie,_e,Q){var p=e.getTokenAtPosition(_e,Q),D=p.parent;if(!e.isParameter(D))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(p.kind));var le=D.parent.parameters.indexOf(D);e.Debug.assert(!D.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(le>-1,"Parameter not found in parent parameter list.");var de=e.factory.createTypeReferenceNode(D.name,void 0),te=e.factory.createParameterDeclaration(D.modifiers,D.dotDotDotToken,"arg"+le,D.questionToken,D.dotDotDotToken?e.factory.createArrayTypeNode(de):de,D.initializer);ie.replaceNode(_e,D,te)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addOptionalPropertyUndefined",se=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.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];ne.registerCodeFix({errorCodes:se,getCodeActions:function(p){var D=p.program.getTypeChecker(),le=O(p.sourceFile,p.span,D);if(!!le.length){var de=e.textChanges.ChangeTracker.with(p,function(te){return Q(te,le)});return[ne.createCodeFixActionWithoutFixAll(K,de,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[K]});function O(p,D,le){var de,te,oe=_e(e.getFixableErrorSpanExpression(p,D),le);if(!oe)return e.emptyArray;var ae=oe.source,E=oe.target,I=ie(ae,E,le)?le.getTypeAtLocation(E.expression):le.getTypeAtLocation(E);return((te=(de=I.symbol)===null||de===void 0?void 0:de.declarations)===null||te===void 0?void 0:te.some(function(f){return e.getSourceFileOfNode(f).fileName.match(/\.d\.ts$/)}))?e.emptyArray:le.getExactOptionalProperties(I)}function ie(p,D,le){return e.isPropertyAccessExpression(D)&&!!le.getExactOptionalProperties(le.getTypeAtLocation(D.expression)).length&&le.getTypeAtLocation(p)===le.getUndefinedType()}function _e(p,D){var le;if(p){if(e.isBinaryExpression(p.parent)&&p.parent.operatorToken.kind===63)return{source:p.parent.right,target:p.parent.left};if(e.isVariableDeclaration(p.parent)&&p.parent.initializer)return{source:p.parent.initializer,target:p.parent.name};if(e.isCallExpression(p.parent)){var de=D.getSymbolAtLocation(p.parent.expression);if(!(de==null?void 0:de.valueDeclaration)||!e.isFunctionLikeKind(de.valueDeclaration.kind)||!e.isExpression(p))return;var te=p.parent.arguments.indexOf(p);if(te===-1)return;var oe=de.valueDeclaration.parameters[te].name;if(e.isIdentifier(oe))return{source:p,target:oe}}else if(e.isPropertyAssignment(p.parent)&&e.isIdentifier(p.parent.name)||e.isShorthandPropertyAssignment(p.parent)){var ae=_e(p.parent.parent,D);if(!ae)return;var E=D.getPropertyOfType(D.getTypeAtLocation(ae.target),p.parent.name.text),I=(le=E==null?void 0:E.declarations)===null||le===void 0?void 0:le[0];return I?{source:e.isPropertyAssignment(p.parent)?p.parent.initializer:p.parent.name,target:I}:void 0}}else return}function Q(p,D){for(var le=0,de=D;le<de.length;le++){var te=de[le],oe=te.valueDeclaration;if(oe&&(e.isPropertySignature(oe)||e.isPropertyDeclaration(oe))&&oe.type){var ae=e.factory.createUnionTypeNode(zn(zn([],oe.type.kind===189?oe.type.types:[oe.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));p.replaceNode(oe.getSourceFile(),oe.type,ae)}}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="annotateWithTypeFromJSDoc",se=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(f){var m=O(f.sourceFile,f.span.start);if(!!m){var y=e.textChanges.ChangeTracker.with(f,function(S){return Q(S,f.sourceFile,m)});return[ne.createCodeFixAction(K,y,e.Diagnostics.Annotate_with_type_from_JSDoc,K,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[K],getAllCodeActions:function(f){return ne.codeFixAll(f,se,function(m,y){var S=O(y.file,y.start);S&&Q(m,y.file,S)})}});function O(f,m){var y=e.getTokenAtPosition(f,m);return e.tryCast(e.isParameter(y.parent)?y.parent.parent:y.parent,ie)}function ie(f){return p(f)&&_e(f)}ne.parameterShouldGetTypeFromJSDoc=ie;function _e(f){return e.isFunctionLikeDeclaration(f)?f.parameters.some(_e)||!f.type&&!!e.getJSDocReturnType(f):!f.type&&!!e.getJSDocType(f)}function Q(f,m,y){if(e.isFunctionLikeDeclaration(y)&&(e.getJSDocReturnType(y)||y.parameters.some(function(V){return!!e.getJSDocType(V)}))){if(!y.typeParameters){var S=e.getJSDocTypeParameterDeclarations(y);S.length&&f.insertTypeParameters(m,y,S)}var k=e.isArrowFunction(y)&&!e.findChildOfKind(y,20,m);k&&f.insertNodeBefore(m,e.first(y.parameters),e.factory.createToken(20));for(var C=0,me=y.parameters;C<me.length;C++){var De=me[C];if(!De.type){var X=e.getJSDocType(De);X&&f.tryInsertTypeAnnotation(m,De,D(X))}}if(k&&f.insertNodeAfter(m,e.last(y.parameters),e.factory.createToken(21)),!y.type){var M=e.getJSDocReturnType(y);M&&f.tryInsertTypeAnnotation(m,y,D(M))}}else{var H=e.Debug.checkDefined(e.getJSDocType(y),"A JSDocType for this declaration should exist");e.Debug.assert(!y.type,"The JSDocType decl should have a type"),f.tryInsertTypeAnnotation(m,y,D(H))}}function p(f){return e.isFunctionLikeDeclaration(f)||f.kind===257||f.kind===168||f.kind===169}function D(f){switch(f.kind){case 315:case 316:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 319:return le(f);case 318:return D(f.type);case 317:return de(f);case 321:return te(f);case 320:return oe(f);case 180:return E(f);default:var m=e.visitEachChild(f,D,e.nullTransformationContext);return e.setEmitFlags(m,1),m}}function le(f){return e.factory.createUnionTypeNode([e.visitNode(f.type,D),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function de(f){return e.factory.createUnionTypeNode([e.visitNode(f.type,D),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function te(f){return e.factory.createArrayTypeNode(e.visitNode(f.type,D))}function oe(f){var m;return e.factory.createFunctionTypeNode(e.emptyArray,f.parameters.map(ae),(m=f.type)!==null&&m!==void 0?m:e.factory.createKeywordTypeNode(131))}function ae(f){var m=f.parent.parameters.indexOf(f),y=f.type.kind===321&&m===f.parent.parameters.length-1,S=f.name||(y?"rest":"arg"+m),k=y?e.factory.createToken(25):f.dotDotDotToken;return e.factory.createParameterDeclaration(f.modifiers,k,S,f.questionToken,e.visitNode(f.type,D),f.initializer)}function E(f){var m=f.typeName,y=f.typeArguments;if(e.isIdentifier(f.typeName)){if(e.isJSDocIndexSignature(f))return I(f);var S=f.typeName.text;switch(f.typeName.text){case"String":case"Boolean":case"Object":case"Number":S=S.toLowerCase();break;case"array":case"date":case"promise":S=S[0].toUpperCase()+S.slice(1);break}m=e.factory.createIdentifier(S),(S==="Array"||S==="Promise")&&!f.typeArguments?y=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):y=e.visitNodes(f.typeArguments,D)}return e.factory.createTypeReferenceNode(m,y)}function I(f){var m=e.factory.createParameterDeclaration(void 0,void 0,f.typeArguments[0].kind===148?"n":"s",void 0,e.factory.createTypeReferenceNode(f.typeArguments[0].kind===148?"number":"string",[]),void 0),y=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[m],f.typeArguments[1])]);return e.setEmitFlags(y,1),y}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="convertFunctionToEs6Class",se=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(p){var D=e.textChanges.ChangeTracker.with(p,function(le){return O(le,p.sourceFile,p.span.start,p.program.getTypeChecker(),p.preferences,p.program.getCompilerOptions())});return[ne.createCodeFixAction(K,D,e.Diagnostics.Convert_function_to_an_ES2015_class,K,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[K],getAllCodeActions:function(p){return ne.codeFixAll(p,se,function(D,le){return O(D,le.file,le.start,p.program.getTypeChecker(),p.preferences,p.program.getCompilerOptions())})}});function O(p,D,le,de,te,oe){var ae=de.getSymbolAtLocation(e.getTokenAtPosition(D,le));if(!ae||!ae.valueDeclaration||!(ae.flags&(16|3)))return;var E=ae.valueDeclaration;if(e.isFunctionDeclaration(E)||e.isFunctionExpression(E))p.replaceNode(D,E,S(E));else if(e.isVariableDeclaration(E)){var I=y(E);if(!I)return;var f=E.parent.parent;e.isVariableDeclarationList(E.parent)&&E.parent.declarations.length>1?(p.delete(D,E),p.insertNodeAfter(D,f,I)):p.replaceNode(D,f,I)}function m(k){var C=[];return k.exports&&k.exports.forEach(function(X){if(X.name==="prototype"&&X.declarations){var M=X.declarations[0];if(X.declarations.length===1&&e.isPropertyAccessExpression(M)&&e.isBinaryExpression(M.parent)&&M.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(M.parent.right)){var H=M.parent.right;De(H.symbol,void 0,C)}}else De(X,[e.factory.createToken(124)],C)}),k.members&&k.members.forEach(function(X,M){var H,V,h,F;if(M==="constructor"&&X.valueDeclaration){var $=(F=(h=(V=(H=k.exports)===null||H===void 0?void 0:H.get("prototype"))===null||V===void 0?void 0:V.declarations)===null||h===void 0?void 0:h[0])===null||F===void 0?void 0:F.parent;$&&e.isBinaryExpression($)&&e.isObjectLiteralExpression($.right)&&e.some($.right.properties,_e)||p.delete(D,X.valueDeclaration.parent);return}De(X,void 0,C)}),C;function me(X,M){return e.isAccessExpression(X)?e.isPropertyAccessExpression(X)&&_e(X)?!0:e.isFunctionLike(M):e.every(X.properties,function(H){return!!(e.isMethodDeclaration(H)||e.isGetOrSetAccessorDeclaration(H)||e.isPropertyAssignment(H)&&e.isFunctionExpression(H.initializer)&&!!H.name||_e(H))})}function De(X,M,H){if(!(X.flags&8192)&&!(X.flags&4096))return;var V=X.valueDeclaration,h=V.parent,F=h.right;if(!me(V,F)||e.some(H,function(ye){var b=e.getNameOfDeclaration(ye);return!!(b&&e.isIdentifier(b)&&e.idText(b)===e.symbolName(X))}))return;var $=h.parent&&h.parent.kind===241?h.parent:h;if(p.delete(D,$),!F){H.push(e.factory.createPropertyDeclaration(M,X.name,void 0,void 0,void 0));return}if(e.isAccessExpression(V)&&(e.isFunctionExpression(F)||e.isArrowFunction(F))){var L=e.getQuotePreference(D,te),P=Q(V,oe,L);P&&J(H,F,P);return}else if(e.isObjectLiteralExpression(F)){e.forEach(F.properties,function(ye){(e.isMethodDeclaration(ye)||e.isGetOrSetAccessorDeclaration(ye))&&H.push(ye),e.isPropertyAssignment(ye)&&e.isFunctionExpression(ye.initializer)&&J(H,ye.initializer,ye.name),!_e(ye)});return}else{if(e.isSourceFileJS(D)||!e.isPropertyAccessExpression(V))return;var N=e.factory.createPropertyDeclaration(M,V.name,void 0,void 0,F);e.copyLeadingComments(h.parent,N,D),H.push(N);return}function J(ye,b,x){return e.isFunctionExpression(b)?q(ye,b,x):G(ye,b,x)}function q(ye,b,x){var T=e.concatenate(M,ie(b,132)),Z=e.factory.createMethodDeclaration(T,void 0,x,void 0,void 0,b.parameters,void 0,b.body);e.copyLeadingComments(h,Z,D),ye.push(Z)}function G(ye,b,x){var T=b.body,Z;T.kind===238?Z=T:Z=e.factory.createBlock([e.factory.createReturnStatement(T)]);var B=e.concatenate(M,ie(b,132)),u=e.factory.createMethodDeclaration(B,void 0,x,void 0,void 0,b.parameters,void 0,Z);e.copyLeadingComments(h,u,D),ye.push(u)}}}function y(k){var C=k.initializer;if(!(!C||!e.isFunctionExpression(C)||!e.isIdentifier(k.name))){var me=m(k.symbol);C.body&&me.unshift(e.factory.createConstructorDeclaration(void 0,C.parameters,C.body));var De=ie(k.parent.parent,93),X=e.factory.createClassDeclaration(De,k.name,void 0,void 0,me);return X}}function S(k){var C=m(ae);k.body&&C.unshift(e.factory.createConstructorDeclaration(void 0,k.parameters,k.body));var me=ie(k,93),De=e.factory.createClassDeclaration(me,k.name,void 0,void 0,C);return De}}function ie(p,D){return e.canHaveModifiers(p)?e.filter(p.modifiers,function(le){return le.kind===D}):void 0}function _e(p){return p.name?!!(e.isIdentifier(p.name)&&p.name.text==="constructor"):!1}function Q(p,D,le){if(e.isPropertyAccessExpression(p))return p.name;var de=p.argumentExpression;if(e.isNumericLiteral(de))return de;if(e.isStringLiteralLike(de))return e.isIdentifierText(de.text,e.getEmitScriptTarget(D))?e.factory.createIdentifier(de.text):e.isNoSubstitutionTemplateLiteral(de)?e.factory.createStringLiteral(de.text,le===0):de}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="convertToAsyncFunction",se=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],O=!0;ne.registerCodeFix({errorCodes:se,getCodeActions:function(u){O=!0;var A=e.textChanges.ChangeTracker.with(u,function(w){return _e(w,u.sourceFile,u.span.start,u.program.getTypeChecker())});return O?[ne.createCodeFixAction(K,A,e.Diagnostics.Convert_to_async_function,K,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[K],getAllCodeActions:function(u){return ne.codeFixAll(u,se,function(A,w){return _e(A,w.file,w.start,u.program.getTypeChecker())})}});var ie;(function(u){u[u.Identifier=0]="Identifier",u[u.BindingPattern=1]="BindingPattern"})(ie||(ie={}));function _e(u,A,w,z){var U=e.getTokenAtPosition(A,w),ge;if(e.isIdentifier(U)&&e.isVariableDeclaration(U.parent)&&U.parent.initializer&&e.isFunctionLikeDeclaration(U.parent.initializer)?ge=U.parent.initializer:ge=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(A,w)),e.canBeConvertedToAsync),!!ge){var pe=new e.Map,He=e.isInJSFile(ge),Be=p(ge,z),Me=oe(ge,z,pe);if(!!e.returnsPromise(Me,z)){var Le=Me.body&&e.isBlock(Me.body)?Q(Me.body,z):e.emptyArray,Ae={checker:z,synthNamesMap:pe,setOfExpressionsToReturn:Be,isInJSFile:He};if(!!Le.length){var Xe=e.skipTrivia(A.text,e.moveRangePastModifiers(ge).pos);u.insertModifierAt(A,Xe,132,{suffix:" "});for(var Ne=function(j){if(e.forEachChild(j,function Ce(Se){if(e.isCallExpression(Se)){var Re=f(Se,Se,Ae,!1);if(E())return!0;u.replaceNodeWithNodes(A,j,Re)}else if(!e.isFunctionLike(Se)&&(e.forEachChild(Se,Ce),E()))return!0}),E())return{value:void 0}},Oe=0,be=Le;Oe<be.length;Oe++){var Y=be[Oe],d=Ne(Y);if(typeof d=="object")return d.value}}}}}function Q(u,A){var w=[];return e.forEachReturnStatement(u,function(z){e.isReturnStatementWithFixablePromiseHandler(z,A)&&w.push(z)}),w}function p(u,A){if(!u.body)return new e.Set;var w=new e.Set;return e.forEachChild(u.body,function z(U){D(U,A,"then")?(w.add(e.getNodeId(U)),e.forEach(U.arguments,z)):D(U,A,"catch")||D(U,A,"finally")?(w.add(e.getNodeId(U)),e.forEachChild(U,z)):te(U,A)?w.add(e.getNodeId(U)):e.forEachChild(U,z)}),w}function D(u,A,w){if(!e.isCallExpression(u))return!1;var z=e.hasPropertyAccessExpressionWithName(u,w),U=z&&A.getTypeAtLocation(u);return!!(U&&A.getPromisedTypeOfPromise(U))}function le(u,A){return(e.getObjectFlags(u)&4)!=0&&u.target===A}function de(u,A,w){if(u.expression.name.escapedText!=="finally"){var z=w.getTypeAtLocation(u.expression.expression);if(le(z,w.getPromiseType())||le(z,w.getPromiseLikeType()))if(u.expression.name.escapedText==="then"){if(A===e.elementAt(u.arguments,0))return e.elementAt(u.typeArguments,0);if(A===e.elementAt(u.arguments,1))return e.elementAt(u.typeArguments,1)}else return e.elementAt(u.typeArguments,0)}}function te(u,A){return e.isExpression(u)?!!A.getPromisedTypeOfPromise(A.getTypeAtLocation(u)):!1}function oe(u,A,w){var z=new e.Map,U=e.createMultiMap();return e.forEachChild(u,function ge(pe){if(!e.isIdentifier(pe)){e.forEachChild(pe,ge);return}var He=A.getSymbolAtLocation(pe);if(He){var Be=A.getTypeAtLocation(pe),Me=F(Be,A),Le=e.getSymbolId(He).toString();if(Me&&!e.isParameter(pe.parent)&&!e.isFunctionLikeDeclaration(pe.parent)&&!w.has(Le)){var Ae=e.firstOrUndefined(Me.parameters),Xe=(Ae==null?void 0:Ae.valueDeclaration)&&e.isParameter(Ae.valueDeclaration)&&e.tryCast(Ae.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),Ne=ae(Xe,U);w.set(Le,Ne),U.add(Xe.text,He)}else if(pe.parent&&(e.isParameter(pe.parent)||e.isVariableDeclaration(pe.parent)||e.isBindingElement(pe.parent))){var Oe=pe.text,be=U.get(Oe);if(be&&be.some(function(j){return j!==He})){var Y=ae(pe,U);z.set(Le,Y.identifier),w.set(Le,Y),U.add(Oe,He)}else{var d=e.getSynthesizedDeepClone(pe);w.set(Le,J(d)),U.add(Oe,He)}}}}),e.getSynthesizedDeepCloneWithReplacements(u,!0,function(ge){if(e.isBindingElement(ge)&&e.isIdentifier(ge.name)&&e.isObjectBindingPattern(ge.parent)){var pe=A.getSymbolAtLocation(ge.name),He=pe&&z.get(String(e.getSymbolId(pe)));if(He&&He.text!==(ge.name||ge.propertyName).getText())return e.factory.createBindingElement(ge.dotDotDotToken,ge.propertyName||ge.name,He,ge.initializer)}else if(e.isIdentifier(ge)){var pe=A.getSymbolAtLocation(ge),He=pe&&z.get(String(e.getSymbolId(pe)));if(He)return e.factory.createIdentifier(He.text)}})}function ae(u,A){var w=(A.get(u.text)||e.emptyArray).length,z=w===0?u:e.factory.createIdentifier(u.text+"_"+w);return J(z)}function E(){return!O}function I(){return O=!1,e.emptyArray}function f(u,A,w,z,U){if(D(A,w.checker,"then"))return De(A,e.elementAt(A.arguments,0),e.elementAt(A.arguments,1),w,z,U);if(D(A,w.checker,"catch"))return me(A,e.elementAt(A.arguments,0),w,z,U);if(D(A,w.checker,"finally"))return C(A,e.elementAt(A.arguments,0),w,z,U);if(e.isPropertyAccessExpression(A))return f(u,A.expression,w,z,U);var ge=w.checker.getTypeAtLocation(A);return ge&&w.checker.getPromisedTypeOfPromise(ge)?(e.Debug.assertNode(e.getOriginalNode(A).parent,e.isPropertyAccessExpression),X(u,A,w,z,U)):I()}function m(u,A){var w=u.checker;if(A.kind===104)return!0;if(e.isIdentifier(A)&&!e.isGeneratedIdentifier(A)&&e.idText(A)==="undefined"){var z=w.getSymbolAtLocation(A);return!z||w.isUndefinedSymbol(z)}return!1}function y(u){var A=e.factory.createUniqueName(u.identifier.text,16);return J(A)}function S(u,A,w){var z;return w&&!B(u,A)&&(T(w)?(z=w,A.synthNamesMap.forEach(function(U,ge){if(U.identifier.text===w.identifier.text){var pe=y(w);A.synthNamesMap.set(ge,pe)}})):z=J(e.factory.createUniqueName("result",16),w.types),x(z)),z}function k(u,A,w,z,U){var ge=[],pe;if(z&&!B(u,A)){pe=e.getSynthesizedDeepClone(x(z));var He=z.types,Be=A.checker.getUnionType(He,2),Me=A.isInJSFile?void 0:A.checker.typeToTypeNode(Be,void 0,void 0),Le=[e.factory.createVariableDeclaration(pe,void 0,Me)],Ae=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(Le,1));ge.push(Ae)}return ge.push(w),U&&pe&&Z(U)&&ge.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(b(U)),void 0,void 0,pe)],2))),ge}function C(u,A,w,z,U){if(!A||m(w,A))return f(u,u.expression.expression,w,z,U);var ge=S(u,w,U),pe=f(u,u.expression.expression,w,!0,ge);if(E())return I();var He=V(A,z,void 0,void 0,u,w);if(E())return I();var Be=e.factory.createBlock(pe),Me=e.factory.createBlock(He),Le=e.factory.createTryStatement(Be,void 0,Me);return k(u,w,Le,ge,U)}function me(u,A,w,z,U){if(!A||m(w,A))return f(u,u.expression.expression,w,z,U);var ge=P(A,w),pe=S(u,w,U),He=f(u,u.expression.expression,w,!0,pe);if(E())return I();var Be=V(A,z,pe,ge,u,w);if(E())return I();var Me=e.factory.createBlock(He),Le=e.factory.createCatchClause(ge&&e.getSynthesizedDeepClone(ye(ge)),e.factory.createBlock(Be)),Ae=e.factory.createTryStatement(Me,Le,void 0);return k(u,w,Ae,pe,U)}function De(u,A,w,z,U,ge){if(!A||m(z,A))return me(u,w,z,U,ge);if(w&&!m(z,w))return I();var pe=P(A,z),He=f(u.expression.expression,u.expression.expression,z,!0,pe);if(E())return I();var Be=V(A,U,ge,pe,u,z);return E()?I():e.concatenate(He,Be)}function X(u,A,w,z,U){if(B(u,w)){var ge=e.getSynthesizedDeepClone(A);return z&&(ge=e.factory.createAwaitExpression(ge)),[e.factory.createReturnStatement(ge)]}return M(U,e.factory.createAwaitExpression(A),void 0)}function M(u,A,w){return!u||N(u)?[e.factory.createExpressionStatement(A)]:T(u)&&u.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(G(u)),A))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(ye(u)),void 0,w,A)],2))]}function H(u,A){if(A&&u){var w=e.factory.createUniqueName("result",16);return zn(zn([],M(J(w),u,A),!0),[e.factory.createReturnStatement(w)],!1)}return[e.factory.createReturnStatement(u)]}function V(u,A,w,z,U,ge){var pe;switch(u.kind){case 104:break;case 208:case 79:if(!z)break;var He=e.factory.createCallExpression(e.getSynthesizedDeepClone(u),void 0,T(z)?[G(z)]:[]);if(B(U,ge))return H(He,de(U,u,ge.checker));var Be=ge.checker.getTypeAtLocation(u),Me=ge.checker.getSignaturesOfType(Be,0);if(!Me.length)return I();var Le=Me[0].getReturnType(),Ae=M(w,e.factory.createAwaitExpression(He),de(U,u,ge.checker));return w&&w.types.push(ge.checker.getAwaitedType(Le)||Le),Ae;case 215:case 216:{var Xe=u.body,Ne=(pe=F(ge.checker.getTypeAtLocation(u),ge.checker))===null||pe===void 0?void 0:pe.getReturnType();if(e.isBlock(Xe)){for(var Oe=[],be=!1,Y=0,d=Xe.statements;Y<d.length;Y++){var j=d[Y];if(e.isReturnStatement(j))if(be=!0,e.isReturnStatementWithFixablePromiseHandler(j,ge.checker))Oe=Oe.concat(L(ge,j,A,w));else{var Ce=Ne&&j.expression?h(ge.checker,Ne,j.expression):j.expression;Oe.push.apply(Oe,H(Ce,de(U,u,ge.checker)))}else{if(A&&e.forEachReturnStatement(j,e.returnTrue))return I();Oe.push(j)}}return B(U,ge)?Oe.map(function(er){return e.getSynthesizedDeepClone(er)}):$(Oe,w,ge,be)}else{var Se=e.isFixablePromiseHandler(Xe,ge.checker)?L(ge,e.factory.createReturnStatement(Xe),A,w):e.emptyArray;if(Se.length>0)return Se;if(Ne){var Ce=h(ge.checker,Ne,Xe);if(B(U,ge))return H(Ce,de(U,u,ge.checker));var Re=M(w,Ce,void 0);return w&&w.types.push(ge.checker.getAwaitedType(Ne)||Ne),Re}else return I()}}default:return I()}return e.emptyArray}function h(u,A,w){var z=e.getSynthesizedDeepClone(w);return u.getPromisedTypeOfPromise(A)?e.factory.createAwaitExpression(z):z}function F(u,A){var w=A.getSignaturesOfType(u,0);return e.lastOrUndefined(w)}function $(u,A,w,z){for(var U=[],ge=0,pe=u;ge<pe.length;ge++){var He=pe[ge];if(e.isReturnStatement(He)){if(He.expression){var Be=te(He.expression,w.checker)?e.factory.createAwaitExpression(He.expression):He.expression;A===void 0?U.push(e.factory.createExpressionStatement(Be)):T(A)&&A.hasBeenDeclared?U.push(e.factory.createExpressionStatement(e.factory.createAssignment(G(A),Be))):U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ye(A),void 0,void 0,Be)],2)))}}else U.push(e.getSynthesizedDeepClone(He))}return!z&&A!==void 0&&U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ye(A),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),U}function L(u,A,w,z){var U=[];return e.forEachChild(A,function ge(pe){if(e.isCallExpression(pe)){var He=f(pe,pe,u,w,z);if(U=U.concat(He),U.length>0)return}else e.isFunctionLike(pe)||e.forEachChild(pe,ge)}),U}function P(u,A){var w=[],z;if(e.isFunctionLikeDeclaration(u)){if(u.parameters.length>0){var U=u.parameters[0].name;z=ge(U)}}else e.isIdentifier(u)?z=pe(u):e.isPropertyAccessExpression(u)&&e.isIdentifier(u.name)&&(z=pe(u.name));if(!z||"identifier"in z&&z.identifier.text==="undefined")return;return z;function ge(Me){if(e.isIdentifier(Me))return pe(Me);var Le=e.flatMap(Me.elements,function(Ae){return e.isOmittedExpression(Ae)?[]:[ge(Ae.name)]});return q(Me,Le)}function pe(Me){var Le=Be(Me),Ae=He(Le);if(!Ae)return J(Me,w);var Xe=A.synthNamesMap.get(e.getSymbolId(Ae).toString());return Xe||J(Me,w)}function He(Me){return Me.symbol?Me.symbol:A.checker.getSymbolAtLocation(Me)}function Be(Me){return Me.original?Me.original:Me}}function N(u){return u?T(u)?!u.identifier.text:e.every(u.elements,N):!0}function J(u,A){return A===void 0&&(A=[]),{kind:0,identifier:u,types:A,hasBeenDeclared:!1,hasBeenReferenced:!1}}function q(u,A,w){return A===void 0&&(A=e.emptyArray),w===void 0&&(w=[]),{kind:1,bindingPattern:u,elements:A,types:w}}function G(u){return u.hasBeenReferenced=!0,u.identifier}function ye(u){return T(u)?x(u):b(u)}function b(u){for(var A=0,w=u.elements;A<w.length;A++){var z=w[A];ye(z)}return u.bindingPattern}function x(u){return u.hasBeenDeclared=!0,u.identifier}function T(u){return u.kind===0}function Z(u){return u.kind===1}function B(u,A){return!!u.original&&A.setOfExpressionsToReturn.has(e.getNodeId(u.original))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(L){var P=L.sourceFile,N=L.program,J=L.preferences,q=e.textChanges.ChangeTracker.with(L,function(G){var ye=se(P,N.getTypeChecker(),G,e.getEmitScriptTarget(N.getCompilerOptions()),e.getQuotePreference(P,J));if(ye)for(var b=0,x=N.getSourceFiles();b<x.length;b++){var T=x[b];K(T,P,G,e.getQuotePreference(T,J))}});return[ne.createCodeFixActionWithoutFixAll("convertToEsModule",q,e.Diagnostics.Convert_to_ES_module)]}});function K(L,P,N,J){for(var q=0,G=L.imports;q<G.length;q++){var ye=G[q],b=e.getResolvedModule(L,ye.text,e.getModeForUsageLocation(L,ye));if(!(!b||b.resolvedFileName!==P.fileName)){var x=e.importFromModuleSpecifier(ye);switch(x.kind){case 268:N.replaceNode(L,x,e.makeImport(x.name,void 0,ye,J));break;case 210:e.isRequireCall(x,!1)&&N.replaceNode(L,x,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(x),"default"));break}}}}function se(L,P,N,J,q){var G={original:C(L),additional:new e.Set},ye=O(L,P,G);ie(L,ye,N);for(var b=!1,x,T=0,Z=e.filter(L.statements,e.isVariableStatement);T<Z.length;T++){var B=Z[T],u=p(L,B,N,P,G,J,q);u&&e.copyEntries(u,x!=null?x:x=new e.Map)}for(var A=0,w=e.filter(L.statements,function(U){return!e.isVariableStatement(U)});A<w.length;A++){var B=w[A],z=Q(L,B,P,N,G,J,ye,x,q);b=b||z}return x==null||x.forEach(function(U,ge){N.replaceNode(L,ge,U)}),b}function O(L,P,N){var J=new e.Map;return _e(L,function(q){var G=q.name,ye=G.text,b=G.originalKeywordKind;!J.has(ye)&&(b!==void 0&&e.isNonContextualKeyword(b)||P.resolveName(ye,q,111551,!0))&&J.set(ye,k("_".concat(ye),N))}),J}function ie(L,P,N){_e(L,function(J,q){if(!q){var G=J.name.text;N.replaceNode(L,J,e.factory.createIdentifier(P.get(G)||G))}})}function _e(L,P){L.forEachChild(function N(J){if(e.isPropertyAccessExpression(J)&&e.isExportsOrModuleExportsOrAlias(L,J.expression)&&e.isIdentifier(J.name)){var q=J.parent;P(J,e.isBinaryExpression(q)&&q.left===J&&q.operatorToken.kind===63)}J.forEachChild(N)})}function Q(L,P,N,J,q,G,ye,b,x){switch(P.kind){case 240:return p(L,P,J,N,q,G,x),!1;case 241:{var T=P.expression;switch(T.kind){case 210:return e.isRequireCall(T,!0)&&J.replaceNode(L,P,e.makeImport(void 0,void 0,T.arguments[0],x)),!1;case 223:{var Z=T.operatorToken;return Z.kind===63&&le(L,N,T,J,ye,b)}}}default:return!1}}function p(L,P,N,J,q,G,ye){var b=P.declarationList,x=!1,T=e.map(b.declarations,function(B){var u=B.name,A=B.initializer;if(A){if(e.isExportsOrModuleExportsOrAlias(L,A))return x=!0,$([]);if(e.isRequireCall(A,!0))return x=!0,y(u,A.arguments[0],J,q,G,ye);if(e.isPropertyAccessExpression(A)&&e.isRequireCall(A.expression,!0))return x=!0,D(u,A.name.text,A.expression.arguments[0],q,ye)}return $([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([B],b.flags))])});if(x){N.replaceNodeWithNodes(L,P,e.flatMap(T,function(B){return B.newImports}));var Z;return e.forEach(T,function(B){B.useSitesToUnqualify&&e.copyEntries(B.useSitesToUnqualify,Z!=null?Z:Z=new e.Map)}),Z}}function D(L,P,N,J,q){switch(L.kind){case 203:case 204:{var G=k(P,J);return $([H(G,P,N,q),h(void 0,L,e.factory.createIdentifier(G))])}case 79:return $([H(L.text,P,N,q)]);default:return e.Debug.assertNever(L,"Convert to ES module got invalid syntax form ".concat(L.kind))}}function le(L,P,N,J,q,G){var ye=N.left,b=N.right;if(!e.isPropertyAccessExpression(ye))return!1;if(e.isExportsOrModuleExportsOrAlias(L,ye))if(e.isExportsOrModuleExportsOrAlias(L,b))J.delete(L,N.parent);else{var x=e.isObjectLiteralExpression(b)?de(b,G):e.isRequireCall(b,!0)?oe(b.arguments[0],P):void 0;return x?(J.replaceNodeWithNodes(L,N.parent,x[0]),x[1]):(J.replaceRangeWithText(L,e.createRange(ye.getStart(L),b.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(L,ye.expression)&&te(L,N,J,q);return!1}function de(L,P){var N=e.mapAllOrFail(L.properties,function(J){switch(J.kind){case 174:case 175:case 300:case 301:return;case 299:return e.isIdentifier(J.name)?f(J.name.text,J.initializer,P):void 0;case 171:return e.isIdentifier(J.name)?X(J.name.text,[e.factory.createToken(93)],J,P):void 0;default:e.Debug.assertNever(J,"Convert to ES6 got invalid prop kind ".concat(J.kind))}});return N&&[N,!1]}function te(L,P,N,J){var q=P.left.name.text,G=J.get(q);if(G!==void 0){var ye=[h(void 0,G,P.right),F([e.factory.createExportSpecifier(!1,G,q)])];N.replaceNodeWithNodes(L,P.parent,ye)}else I(P,L,N)}function oe(L,P){var N=L.text,J=P.getSymbolAtLocation(L),q=J?J.exports:e.emptyMap;return q.has("export=")?[[E(N)],!0]:q.has("default")?q.size>1?[[ae(N),E(N)],!0]:[[E(N)],!0]:[[ae(N)],!1]}function ae(L){return F(void 0,L)}function E(L){return F([e.factory.createExportSpecifier(!1,void 0,"default")],L)}function I(L,P,N){var J=L.left,q=L.right,G=L.parent,ye=J.name.text;if((e.isFunctionExpression(q)||e.isArrowFunction(q)||e.isClassExpression(q))&&(!q.name||q.name.text===ye)){N.replaceRange(P,{pos:J.getStart(P),end:q.getStart(P)},e.factory.createToken(93),{suffix:" "}),q.name||N.insertName(P,q,ye);var b=e.findChildOfKind(G,26,P);b&&N.delete(P,b)}else N.replaceNodeRangeWithNodes(P,J.expression,e.findChildOfKind(J,24,P),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function f(L,P,N){var J=[e.factory.createToken(93)];switch(P.kind){case 215:{var q=P.name;if(q&&q.text!==L)return G()}case 216:return X(L,J,P,N);case 228:return M(L,J,P,N);default:return G()}function G(){return h(J,e.factory.createIdentifier(L),m(P,N))}}function m(L,P){if(!P||!e.some(e.arrayFrom(P.keys()),function(J){return e.rangeContainsRange(L,J)}))return L;return e.isArray(L)?e.getSynthesizedDeepClonesWithReplacements(L,!0,N):e.getSynthesizedDeepCloneWithReplacements(L,!0,N);function N(J){if(J.kind===208){var q=P.get(J);return P.delete(J),q}}}function y(L,P,N,J,q,G){switch(L.kind){case 203:{var ye=e.mapAllOrFail(L.elements,function(x){return x.dotDotDotToken||x.initializer||x.propertyName&&!e.isIdentifier(x.propertyName)||!e.isIdentifier(x.name)?void 0:V(x.propertyName&&x.propertyName.text,x.name.text)});if(ye)return $([e.makeImport(void 0,ye,P,G)])}case 204:{var b=k(ne.moduleSpecifierToValidIdentifier(P.text,q),J);return $([e.makeImport(e.factory.createIdentifier(b),void 0,P,G),h(void 0,e.getSynthesizedDeepClone(L),e.factory.createIdentifier(b))])}case 79:return S(L,P,N,J,G);default:return e.Debug.assertNever(L,"Convert to ES module got invalid name kind ".concat(L.kind))}}function S(L,P,N,J,q){for(var G=N.getSymbolAtLocation(L),ye=new e.Map,b=!1,x,T=0,Z=J.original.get(L.text);T<Z.length;T++){var B=Z[T];if(!(N.getSymbolAtLocation(B)!==G||B===L)){var u=B.parent;if(e.isPropertyAccessExpression(u)){var A=u.name.text;if(A==="default"){b=!0;var w=B.getText();(x!=null?x:x=new e.Map).set(u,e.factory.createIdentifier(w))}else{e.Debug.assert(u.expression===B,"Didn't expect expression === use");var z=ye.get(A);z===void 0&&(z=k(A,J),ye.set(A,z)),(x!=null?x:x=new e.Map).set(u,e.factory.createIdentifier(z))}}else b=!0}}var U=ye.size===0?void 0:e.arrayFrom(e.mapIterator(ye.entries(),function(ge){var pe=ge[0],He=ge[1];return e.factory.createImportSpecifier(!1,pe===He?void 0:e.factory.createIdentifier(pe),e.factory.createIdentifier(He))}));return U||(b=!0),$([e.makeImport(b?e.getSynthesizedDeepClone(L):void 0,U,P,q)],x)}function k(L,P){for(;P.original.has(L)||P.additional.has(L);)L="_".concat(L);return P.additional.add(L),L}function C(L){var P=e.createMultiMap();return me(L,function(N){return P.add(N.text,N)}),P}function me(L,P){e.isIdentifier(L)&&De(L)&&P(L),L.forEachChild(function(N){return me(N,P)})}function De(L){var P=L.parent;switch(P.kind){case 208:return P.name!==L;case 205:return P.propertyName!==L;case 273:return P.propertyName!==L;default:return!0}}function X(L,P,N,J){return e.factory.createFunctionDeclaration(e.concatenate(P,e.getSynthesizedDeepClones(N.modifiers)),e.getSynthesizedDeepClone(N.asteriskToken),L,e.getSynthesizedDeepClones(N.typeParameters),e.getSynthesizedDeepClones(N.parameters),e.getSynthesizedDeepClone(N.type),e.factory.converters.convertToFunctionBlock(m(N.body,J)))}function M(L,P,N,J){return e.factory.createClassDeclaration(e.concatenate(P,e.getSynthesizedDeepClones(N.modifiers)),L,e.getSynthesizedDeepClones(N.typeParameters),e.getSynthesizedDeepClones(N.heritageClauses),m(N.members,J))}function H(L,P,N,J){return P==="default"?e.makeImport(e.factory.createIdentifier(L),void 0,N,J):e.makeImport(void 0,[V(P,L)],N,J)}function V(L,P){return e.factory.createImportSpecifier(!1,L!==void 0&&L!==P?e.factory.createIdentifier(L):void 0,e.factory.createIdentifier(P))}function h(L,P,N){return e.factory.createVariableStatement(L,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(P,void 0,void 0,N)],2))}function F(L,P){return e.factory.createExportDeclaration(void 0,!1,L&&e.factory.createNamedExports(L),P===void 0?void 0:e.factory.createStringLiteral(P))}function $(L,P){return{newImports:L,useSitesToUnqualify:P}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="correctQualifiedNameToIndexedAccessType",se=[e.Diagnostics.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];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=O(_e.sourceFile,_e.span.start);if(!!Q){var p=e.textChanges.ChangeTracker.with(_e,function(le){return ie(le,_e.sourceFile,Q)}),D="".concat(Q.left.text,'["').concat(Q.right.text,'"]');return[ne.createCodeFixAction(K,p,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,D],K,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=O(p.file,p.start);D&&ie(Q,p.file,D)})}});function O(_e,Q){var p=e.findAncestor(e.getTokenAtPosition(_e,Q),e.isQualifiedName);return e.Debug.assert(!!p,"Expected position to be owned by a qualified name."),e.isIdentifier(p.left)?p:void 0}function ie(_e,Q,p){var D=p.right.text,le=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(D)));_e.replaceNode(Q,p,le)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],se="convertToTypeOnlyExport";ne.registerCodeFix({errorCodes:K,getCodeActions:function(p){var D=e.textChanges.ChangeTracker.with(p,function(le){return ie(le,O(p.span,p.sourceFile),p)});if(D.length)return[ne.createCodeFixAction(se,D,e.Diagnostics.Convert_to_type_only_export,se,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[se],getAllCodeActions:function(p){var D=new e.Map;return ne.codeFixAll(p,K,function(le,de){var te=O(de,p.sourceFile);te&&e.addToSeen(D,e.getNodeId(te.parent.parent))&&ie(le,te,p)})}});function O(Q,p){return e.tryCast(e.getTokenAtPosition(p,Q.start).parent,e.isExportSpecifier)}function ie(Q,p,D){if(!!p){var le=p.parent,de=le.parent,te=_e(p,D);if(te.length===le.elements.length)Q.insertModifierBefore(D.sourceFile,154,le);else{var oe=e.factory.updateExportDeclaration(de,de.modifiers,!1,e.factory.updateNamedExports(le,e.filter(le.elements,function(E){return!e.contains(te,E)})),de.moduleSpecifier,void 0),ae=e.factory.createExportDeclaration(void 0,!0,e.factory.createNamedExports(te),de.moduleSpecifier,void 0);Q.replaceNode(D.sourceFile,de,oe,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),Q.insertNodeAfter(D.sourceFile,de,ae)}}}function _e(Q,p){var D=Q.parent;if(D.elements.length===1)return D.elements;var le=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(D),p.program.getSemanticDiagnostics(p.sourceFile,p.cancellationToken));return e.filter(D.elements,function(de){var te;return de===Q||((te=e.findDiagnosticForNode(de,le))===null||te===void 0?void 0:te.code)===K[0]})}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],se="convertToTypeOnlyImport";ne.registerCodeFix({errorCodes:K,getCodeActions:function(Q){var p=e.textChanges.ChangeTracker.with(Q,function(D){var le=O(Q.span,Q.sourceFile);ie(D,le,Q)});if(p.length)return[ne.createCodeFixAction(se,p,e.Diagnostics.Convert_to_type_only_import,se,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[se],getAllCodeActions:function(Q){return ne.codeFixAll(Q,K,function(p,D){var le=O(D,Q.sourceFile);ie(p,le,Q)})}});function O(_e,Q){return e.tryCast(e.getTokenAtPosition(Q,_e.start).parent,e.isImportDeclaration)}function ie(_e,Q,p){if(!!(Q==null?void 0:Q.importClause)){var D=Q.importClause;_e.insertText(p.sourceFile,Q.getStart()+"import".length," type"),D.name&&D.namedBindings&&(_e.deleteNodeRangeExcludingEnd(p.sourceFile,D.name,Q.importClause.namedBindings),_e.insertNodeBefore(p.sourceFile,Q,e.factory.updateImportDeclaration(Q,void 0,e.factory.createImportClause(!0,D.name,void 0),Q.moduleSpecifier,void 0)))}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="convertLiteralTypeToMappedType",se=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.span,le=O(p,D.start);if(!!le){var de=le.name,te=le.constraint,oe=e.textChanges.ChangeTracker.with(Q,function(ae){return ie(ae,p,le)});return[ne.createCodeFixAction(K,oe,[e.Diagnostics.Convert_0_to_1_in_0,te,de],K,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=O(p.file,p.start);D&&ie(Q,p.file,D)})}});function O(_e,Q){var p=e.getTokenAtPosition(_e,Q);if(e.isIdentifier(p)){var D=e.cast(p.parent.parent,e.isPropertySignature),le=p.getText(_e);return{container:e.cast(D.parent,e.isTypeLiteralNode),typeNode:D.type,constraint:le,name:le==="K"?"P":"K"}}}function ie(_e,Q,p){var D=p.container,le=p.typeNode,de=p.constraint,te=p.name;_e.replaceNode(Q,D,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(void 0,te,e.factory.createTypeReferenceNode(de)),void 0,void 0,le,void 0))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],se="fixClassIncorrectlyImplementsInterface";ne.registerCodeFix({errorCodes:K,getCodeActions:function(p){var D=p.sourceFile,le=p.span,de=O(D,le.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(de),function(te){var oe=e.textChanges.ChangeTracker.with(p,function(ae){return _e(p,te,D,de,ae,p.preferences)});return oe.length===0?void 0:ne.createCodeFixAction(se,oe,[e.Diagnostics.Implement_interface_0,te.getText(D)],se,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[se],getAllCodeActions:function(p){var D=new e.Map;return ne.codeFixAll(p,K,function(le,de){var te=O(de.file,de.start);if(e.addToSeen(D,e.getNodeId(te)))for(var oe=0,ae=e.getEffectiveImplementsTypeNodes(te);oe<ae.length;oe++){var E=ae[oe];_e(p,E,de.file,te,le,p.preferences)}})}});function O(p,D){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(p,D)),"There should be a containing class")}function ie(p){return!p.valueDeclaration||!(e.getEffectiveModifierFlags(p.valueDeclaration)&8)}function _e(p,D,le,de,te,oe){var ae=p.program.getTypeChecker(),E=Q(de,ae),I=ae.getTypeAtLocation(D),f=ae.getPropertiesOfType(I),m=f.filter(e.and(ie,function(De){return!E.has(De.escapedName)})),y=ae.getTypeAtLocation(de),S=e.find(de.members,function(De){return e.isConstructorDeclaration(De)});y.getNumberIndexType()||C(I,1),y.getStringIndexType()||C(I,0);var k=ne.createImportAdder(le,p.program,oe,p.host);ne.createMissingMemberNodes(de,m,le,p,oe,k,function(De){return me(le,de,De)}),k.writeFixes(te);function C(De,X){var M=ae.getIndexInfoOfType(De,X);M&&me(le,de,ae.indexInfoToIndexSignatureDeclaration(M,de,void 0,ne.getNoopSymbolTrackerWithResolver(p)))}function me(De,X,M){S?te.insertNodeAfter(De,S,M):te.insertMemberAtStart(De,X,M)}}function Q(p,D){var le=e.getEffectiveBaseTypeNode(p);if(!le)return e.createSymbolTable();var de=D.getTypeAtLocation(le),te=D.getPropertiesOfType(de);return e.createSymbolTable(te.filter(ie))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.importFixName="import";var K="fixMissingImport",se=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(be){var Y=be.errorCode,d=be.preferences,j=be.sourceFile,Ce=be.span,Se=be.program,Re=H(be,Y,Ce.start,!0);if(!!Re){var er=e.getQuotePreference(j,d);return Re.map(function(wr){var mr=wr.fix,Ue=wr.symbolName,t=wr.errorIdentifierText;return u(be,j,Ue,mr,Ue!==t,er,Se.getCompilerOptions())})}},fixIds:[K],getAllCodeActions:function(be){var Y=be.sourceFile,d=be.program,j=be.preferences,Ce=be.host,Se=be.cancellationToken,Re=ie(Y,d,!0,j,Ce,Se);return ne.eachDiagnostic(be,se,function(er){return Re.addImportFromDiagnostic(er,be)}),ne.createCombinedCodeActions(e.textChanges.ChangeTracker.with(be,Re.writeFixes))}});function O(be,Y,d,j,Ce){return ie(be,Y,!1,d,j,Ce)}ne.createImportAdder=O;function ie(be,Y,d,j,Ce,Se){var Re=Y.getCompilerOptions(),er=[],wr=[],mr=new e.Map,Ue=new e.Map;return{addImportFromDiagnostic:t,addImportFromExportedSymbol:qr,writeFixes:dr,hasFixes:vr};function t(kr,Ur){var Cr=H(Ur,kr.code,kr.start,d);!Cr||!Cr.length||ln(e.first(Cr))}function qr(kr,Ur){var Cr=e.Debug.checkDefined(kr.parent),rn=e.getNameForExportedSymbol(kr,e.getEmitScriptTarget(Re)),Br=Y.getTypeChecker(),pn=Br.getMergedSymbol(e.skipAlias(kr,Br)),ve=oe(be,pn,rn,!1,Y,Ce,j,Se),or=C(be,Y),Ee=de(be,e.Debug.checkDefined(ve),Cr,Y,void 0,!!Ur,or,Ce,j);Ee&&ln({fix:Ee,symbolName:rn,errorIdentifierText:void 0})}function ln(kr){var Ur,Cr,rn=kr.fix,Br=kr.symbolName;switch(rn.kind){case 0:er.push(rn);break;case 1:wr.push(rn);break;case 2:{var pn=rn.importClauseOrBindingPattern,ve=rn.importKind,or=rn.addAsTypeOnly,Ee=String(e.getNodeId(pn)),ze=mr.get(Ee);if(ze||mr.set(Ee,ze={importClauseOrBindingPattern:pn,defaultImport:void 0,namedImports:new e.Map}),ve===0){var Ar=ze==null?void 0:ze.namedImports.get(Br);ze.namedImports.set(Br,Mr(Ar,or))}else e.Debug.assert(ze.defaultImport===void 0||ze.defaultImport.name===Br,"(Add to Existing) Default import should be missing or match symbolName"),ze.defaultImport={name:Br,addAsTypeOnly:Mr((Ur=ze.defaultImport)===null||Ur===void 0?void 0:Ur.addAsTypeOnly,or)};break}case 3:{var xe=rn.moduleSpecifier,ve=rn.importKind,cr=rn.useRequire,or=rn.addAsTypeOnly,ze=Rr(xe,ve,cr,or);switch(e.Debug.assert(ze.useRequire===cr,"(Add new) Tried to add an `import` and a `require` for the same module"),ve){case 1:e.Debug.assert(ze.defaultImport===void 0||ze.defaultImport.name===Br,"(Add new) Default import should be missing or match symbolName"),ze.defaultImport={name:Br,addAsTypeOnly:Mr((Cr=ze.defaultImport)===null||Cr===void 0?void 0:Cr.addAsTypeOnly,or)};break;case 0:var Ar=(ze.namedImports||(ze.namedImports=new e.Map)).get(Br);ze.namedImports.set(Br,Mr(Ar,or));break;case 3:case 2:e.Debug.assert(ze.namespaceLikeImport===void 0||ze.namespaceLikeImport.name===Br,"Namespacelike import shoudl be missing or match symbolName"),ze.namespaceLikeImport={importKind:ve,name:Br,addAsTypeOnly:or};break}break}case 4:break;default:e.Debug.assertNever(rn,"fix wasn't never - got kind ".concat(rn.kind))}function Mr(en,vn){return Math.max(en!=null?en:0,vn)}function Rr(en,vn,Ie,We){var xr=Qr(en,!0),Lr=Qr(en,!1),xn=Ue.get(xr),An=Ue.get(Lr),Qn={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ie};return vn===1&&We===2?xn||(Ue.set(xr,Qn),Qn):We===1&&(xn||An)?xn||An:An||(Ue.set(Lr,Qn),Qn)}function Qr(en,vn){return"".concat(vn?1:0,"|").concat(en)}}function dr(kr){for(var Ur=e.getQuotePreference(be,j),Cr=0,rn=er;Cr<rn.length;Cr++){var Br=rn[Cr];ge(kr,be,Br)}for(var pn=0,ve=wr;pn<ve.length;pn++){var Br=ve[pn];pe(kr,be,Br,Ur)}mr.forEach(function(Ee){var ze=Ee.importClauseOrBindingPattern,Ar=Ee.defaultImport,xe=Ee.namedImports;U(kr,be,ze,Ar,e.arrayFrom(xe.entries(),function(cr){var Mr=cr[0],Rr=cr[1];return{addAsTypeOnly:Rr,name:Mr}}),Re)});var or;Ue.forEach(function(Ee,ze){var Ar=Ee.useRequire,xe=Ee.defaultImport,cr=Ee.namedImports,Mr=Ee.namespaceLikeImport,Rr=ze.slice(2),Qr=Ar?Le:Me,en=Qr(Rr,Ur,xe,cr&&e.arrayFrom(cr.entries(),function(vn){var Ie=vn[0],We=vn[1];return{addAsTypeOnly:We,name:Ie}}),Mr);or=e.combine(or,en)}),or&&e.insertImports(kr,be,or,!0)}function vr(){return er.length>0||wr.length>0||mr.size>0||Ue.size>0}}function _e(be,Y,d,j){var Ce=e.createPackageJsonImportFilter(be,j,d),Se=k(Y.getTypeChecker(),be,Y.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:Re};function Re(er,wr,mr,Ue,t){var qr=E(er,{symbolName:wr,position:mr},Ue,!1,Y,be,d,j,Se,t),ln=qr.fixes,dr=qr.computedWithoutCacheCount,vr=h(ln,be,Y,Ce,d);return vr&&vi(vi({},vr),{computedWithoutCacheCount:dr})}}ne.createImportSpecifierResolver=_e;var Q;(function(be){be[be.UseNamespace=0]="UseNamespace",be[be.JsdocTypeImport=1]="JsdocTypeImport",be[be.AddToExisting=2]="AddToExisting",be[be.AddNew=3]="AddNew",be[be.PromoteTypeOnly=4]="PromoteTypeOnly"})(Q||(Q={}));var p;(function(be){be[be.Allowed=1]="Allowed",be[be.Required=2]="Required",be[be.NotAllowed=4]="NotAllowed"})(p||(p={}));function D(be,Y,d,j,Ce,Se,Re,er,wr,mr,Ue){var t=Re.getCompilerOptions(),qr=e.pathIsBareSpecifier(e.stripQuotes(Y.name))?[ae(be,Y,Re,Se)]:oe(d,be,j,Ce,Re,Se,mr,Ue);e.Debug.assertIsDefined(qr);var ln=C(d,Re),dr=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(d,wr)),vr=e.Debug.checkDefined(de(d,qr,Y,Re,{symbolName:j,position:wr},dr,ln,Se,mr));return{moduleSpecifier:vr.moduleSpecifier,codeAction:te(u({host:Se,formatContext:er,preferences:mr},d,j,vr,!1,e.getQuotePreference(d,mr),t))}}ne.getImportCompletionAction=D;function le(be,Y,d,j,Ce,Se){var Re=d.getCompilerOptions(),er=e.single(x(be,d.getTypeChecker(),Y,Re)),wr=b(be,Y,er,d),mr=er!==Y.text;return wr&&te(u({host:j,formatContext:Ce,preferences:Se},be,er,wr,mr,1,Re))}ne.getPromoteTypeOnlyCompletionAction=le;function de(be,Y,d,j,Ce,Se,Re,er,wr){e.Debug.assert(Y.some(function(Ue){return Ue.moduleSymbol===d||Ue.symbol.parent===d}),"Some exportInfo should match the specified moduleSymbol");var mr=e.createPackageJsonImportFilter(be,wr,er);return h(E(Y,Ce,Se,Re,j,be,er,wr).fixes,be,j,mr,er)}function te(be){var Y=be.description,d=be.changes,j=be.commands;return{description:Y,changes:d,commands:j}}function oe(be,Y,d,j,Ce,Se,Re,er){var wr=me(Ce,Se);return e.getExportInfoMap(be,Se,Ce,Re,er).search(be.path,j,function(mr){return mr===d},function(mr){if(e.skipAlias(mr[0].symbol,wr(mr[0].isFromPackageJson))===Y)return mr})}function ae(be,Y,d,j){var Ce,Se,Re=d.getCompilerOptions(),er=mr(d.getTypeChecker(),!1);if(er)return er;var wr=(Se=(Ce=j.getPackageJsonAutoImportProvider)===null||Ce===void 0?void 0:Ce.call(j))===null||Se===void 0?void 0:Se.getTypeChecker();return e.Debug.checkDefined(wr&&mr(wr,!0),"Could not find symbol in specified module for code actions");function mr(Ue,t){var qr=e.getDefaultLikeExportInfo(Y,Ue,Re);if(qr&&e.skipAlias(qr.symbol,Ue)===be)return{symbol:qr.symbol,moduleSymbol:Y,moduleFileName:void 0,exportKind:qr.exportKind,targetFlags:e.skipAlias(be,Ue).flags,isFromPackageJson:t};var ln=Ue.tryGetMemberInModuleExportsAndProperties(be.name,Y);if(ln&&e.skipAlias(ln,Ue)===be)return{symbol:ln,moduleSymbol:Y,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(be,Ue).flags,isFromPackageJson:t}}}function E(be,Y,d,j,Ce,Se,Re,er,wr,mr){wr===void 0&&(wr=k(Ce.getTypeChecker(),Se,Ce.getCompilerOptions()));var Ue=Ce.getTypeChecker(),t=e.flatMap(be,wr.getImportsForExportInfo),qr=Y&&I(t,Y.symbolName,Y.position,Ue),ln=S(t,d,Ue,Ce.getCompilerOptions());if(ln)return{computedWithoutCacheCount:0,fixes:zn(zn([],qr?[qr]:e.emptyArray,!0),[ln],!1)};var dr=X(be,t,Ce,Se,Y==null?void 0:Y.position,d,j,Re,er,mr),vr=dr.fixes,kr=dr.computedWithoutCacheCount,Ur=kr===void 0?0:kr;return{computedWithoutCacheCount:Ur,fixes:zn(zn([],qr?[qr]:e.emptyArray,!0),vr,!0)}}function I(be,Y,d,j){return e.firstDefined(be,function(Ce){var Se,Re=Ce.declaration,er=m(Re),wr=(Se=e.tryGetModuleSpecifierFromDeclaration(Re))===null||Se===void 0?void 0:Se.text;if(er&&wr){var mr=f(Re,j);if(mr&&mr.exports.has(e.escapeLeadingUnderscores(Y)))return{kind:0,namespacePrefix:er,position:d,moduleSpecifier:wr}}})}function f(be,Y){var d;switch(be.kind){case 257:return Y.resolveExternalModuleName(be.initializer.arguments[0]);case 268:return Y.getAliasedSymbol(be.symbol);case 269:var j=e.tryCast((d=be.importClause)===null||d===void 0?void 0:d.namedBindings,e.isNamespaceImport);return j&&Y.getAliasedSymbol(j.symbol);default:return e.Debug.assertNever(be)}}function m(be){var Y,d,j;switch(be.kind){case 257:return(Y=e.tryCast(be.name,e.isIdentifier))===null||Y===void 0?void 0:Y.text;case 268:return be.name.text;case 269:return(j=e.tryCast((d=be.importClause)===null||d===void 0?void 0:d.namedBindings,e.isNamespaceImport))===null||j===void 0?void 0:j.name.text;default:return e.Debug.assertNever(be)}}function y(be,Y,d,j,Ce,Se){return be?Y&&Se.importsNotUsedAsValues===2||Se.isolatedModules&&Se.preserveValueImports&&(!(j&111551)||!!Ce.getTypeOnlyAliasDeclaration(d))?2:1:4}function S(be,Y,d,j){return e.firstDefined(be,function(Ce){var Se=Ce.declaration,Re=Ce.importKind,er=Ce.symbol,wr=Ce.targetFlags;if(!(Re===3||Re===2||Se.kind===268)){if(Se.kind===257)return(Re===0||Re===1)&&Se.name.kind===203?{kind:2,importClauseOrBindingPattern:Se.name,importKind:Re,moduleSpecifier:Se.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var mr=Se.importClause;if(!(!mr||!e.isStringLiteralLike(Se.moduleSpecifier))){var Ue=mr.name,t=mr.namedBindings;if(!(mr.isTypeOnly&&!(Re===0&&t))){var qr=y(Y,!1,er,wr,d,j);if(!(Re===1&&(Ue||qr===2&&t))&&!(Re===0&&(t==null?void 0:t.kind)===271))return{kind:2,importClauseOrBindingPattern:mr,importKind:Re,moduleSpecifier:Se.moduleSpecifier.text,addAsTypeOnly:qr}}}}})}function k(be,Y,d){for(var j,Ce=0,Se=Y.imports;Ce<Se.length;Ce++){var Re=Se[Ce],er=e.importFromModuleSpecifier(Re);if(e.isVariableDeclarationInitializedToRequire(er.parent)){var wr=be.resolveExternalModuleName(Re);wr&&(j||(j=e.createMultiMap())).add(e.getSymbolId(wr),er.parent)}else if(er.kind===269||er.kind===268){var wr=be.getSymbolAtLocation(Re);wr&&(j||(j=e.createMultiMap())).add(e.getSymbolId(wr),er)}}return{getImportsForExportInfo:function(mr){var Ue=mr.moduleSymbol,t=mr.exportKind,qr=mr.targetFlags,ln=mr.symbol;if(!(qr&111551)&&e.isSourceFileJS(Y))return e.emptyArray;var dr=j==null?void 0:j.get(e.getSymbolId(Ue));if(!dr)return e.emptyArray;var vr=q(Y,t,d);return dr.map(function(kr){return{declaration:kr,importKind:vr,symbol:ln,targetFlags:qr}})}}}function C(be,Y){if(!e.isSourceFileJS(be))return!1;if(be.commonJsModuleIndicator&&!be.externalModuleIndicator)return!0;if(be.externalModuleIndicator&&!be.commonJsModuleIndicator)return!1;var d=Y.getCompilerOptions();if(d.configFile)return e.getEmitModuleKind(d)<e.ModuleKind.ES2015;for(var j=0,Ce=Y.getSourceFiles();j<Ce.length;j++){var Se=Ce[j];if(!(Se===be||!e.isSourceFileJS(Se)||Y.isSourceFileFromExternalLibrary(Se))){if(Se.commonJsModuleIndicator&&!Se.externalModuleIndicator)return!0;if(Se.externalModuleIndicator&&!Se.commonJsModuleIndicator)return!1}}return!0}function me(be,Y){return e.memoizeOne(function(d){return d?Y.getPackageJsonAutoImportProvider().getTypeChecker():be.getTypeChecker()})}function De(be,Y,d,j,Ce,Se,Re,er,wr){var mr=e.isSourceFileJS(Y),Ue=be.getCompilerOptions(),t=e.createModuleSpecifierResolutionHost(be,Re),qr=me(be,Re),ln=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(Ue)),dr=wr?function(Ur){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(Ur,Y,t,er),computedWithoutCache:!1}}:function(Ur,Cr){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(Ur,Cr,Ue,Y,t,er)},vr=0,kr=e.flatMap(Se,function(Ur,Cr){var rn=qr(Ur.isFromPackageJson),Br=dr(Ur.moduleSymbol,rn),pn=Br.computedWithoutCache,ve=Br.moduleSpecifiers,or=!!(Ur.targetFlags&111551),Ee=y(j,!0,Ur.symbol,Ur.targetFlags,rn,Ue);return vr+=pn?1:0,e.mapDefined(ve,function(ze){return ln&&e.pathContainsNodeModules(ze)?void 0:!or&&mr&&d!==void 0?{kind:1,moduleSpecifier:ze,position:d,exportInfo:Ur,isReExport:Cr>0}:{kind:3,moduleSpecifier:ze,importKind:q(Y,Ur.exportKind,Ue),useRequire:Ce,addAsTypeOnly:Ee,exportInfo:Ur,isReExport:Cr>0}})});return{computedWithoutCacheCount:vr,fixes:kr}}function X(be,Y,d,j,Ce,Se,Re,er,wr,mr){var Ue=e.firstDefined(Y,function(t){return M(t,Se,Re,d.getTypeChecker(),d.getCompilerOptions())});return Ue?{fixes:[Ue]}:De(d,j,Ce,Se,Re,be,er,wr,mr)}function M(be,Y,d,j,Ce){var Se,Re=be.declaration,er=be.importKind,wr=be.symbol,mr=be.targetFlags,Ue=(Se=e.tryGetModuleSpecifierFromDeclaration(Re))===null||Se===void 0?void 0:Se.text;if(Ue){var t=d?4:y(Y,!0,wr,mr,j,Ce);return{kind:3,moduleSpecifier:Ue,importKind:er,addAsTypeOnly:t,useRequire:d}}}function H(be,Y,d,j){var Ce=e.getTokenAtPosition(be.sourceFile,d),Se;if(Y===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)Se=N(be,Ce);else if(e.isIdentifier(Ce))if(Y===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var Re=e.single(x(be.sourceFile,be.program.getTypeChecker(),Ce,be.program.getCompilerOptions())),er=b(be.sourceFile,Ce,Re,be.program);return er&&[{fix:er,symbolName:Re,errorIdentifierText:Ce.text}]}else Se=ye(be,Ce,j);else return;var wr=e.createPackageJsonImportFilter(be.sourceFile,be.preferences,be.host);return Se&&V(Se,be.sourceFile,be.program,wr,be.host)}function V(be,Y,d,j,Ce){var Se=function(Re){return e.toPath(Re,Ce.getCurrentDirectory(),e.hostGetCanonicalFileName(Ce))};return e.sort(be,function(Re,er){return e.compareBooleans(!!Re.isJsxNamespaceFix,!!er.isJsxNamespaceFix)||e.compareValues(Re.fix.kind,er.fix.kind)||F(Re.fix,er.fix,Y,d,j.allowsImportingSpecifier,Se)})}function h(be,Y,d,j,Ce){if(!!e.some(be))return be[0].kind===0||be[0].kind===2?be[0]:be.reduce(function(Se,Re){return F(Re,Se,Y,d,j.allowsImportingSpecifier,function(er){return e.toPath(er,Ce.getCurrentDirectory(),e.hostGetCanonicalFileName(Ce))})===-1?Re:Se})}function F(be,Y,d,j,Ce,Se){return be.kind!==0&&Y.kind!==0?e.compareBooleans(Ce(Y.moduleSpecifier),Ce(be.moduleSpecifier))||P(be.moduleSpecifier,Y.moduleSpecifier,d,j)||e.compareBooleans($(be,d,j.getCompilerOptions(),Se),$(Y,d,j.getCompilerOptions(),Se))||e.compareNumberOfDirectorySeparators(be.moduleSpecifier,Y.moduleSpecifier):0}function $(be,Y,d,j){var Ce;if(be.isReExport&&((Ce=be.exportInfo)===null||Ce===void 0?void 0:Ce.moduleFileName)&&e.getEmitModuleResolutionKind(d)===e.ModuleResolutionKind.NodeJs&&L(be.exportInfo.moduleFileName)){var Se=j(e.getDirectoryPath(be.exportInfo.moduleFileName));return e.startsWith(Y.path,Se)}return!1}function L(be){return e.getBaseFileName(be,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function P(be,Y,d,j){return e.startsWith(be,"node:")&&!e.startsWith(Y,"node:")?e.shouldUseUriStyleNodeCoreModules(d,j)?-1:1:e.startsWith(Y,"node:")&&!e.startsWith(be,"node:")?e.shouldUseUriStyleNodeCoreModules(d,j)?1:-1:0}function N(be,Y){var d=be.sourceFile,j=be.program,Ce=be.host,Se=be.preferences,Re=j.getTypeChecker(),er=J(Y,Re);if(!!er){var wr=Re.getAliasedSymbol(er),mr=er.name,Ue=[{symbol:er,moduleSymbol:wr,moduleFileName:void 0,exportKind:3,targetFlags:wr.flags,isFromPackageJson:!1}],t=C(d,j),qr=e.isIdentifier(Y)?Y.getStart(d):void 0,ln=E(Ue,qr?{position:qr,symbolName:mr}:void 0,!1,t,j,d,Ce,Se).fixes;return ln.map(function(dr){var vr;return{fix:dr,symbolName:mr,errorIdentifierText:(vr=e.tryCast(Y,e.isIdentifier))===null||vr===void 0?void 0:vr.text}})}}function J(be,Y){var d=e.isIdentifier(be)?Y.getSymbolAtLocation(be):void 0;if(e.isUMDExportSymbol(d))return d;var j=be.parent;return e.isJsxOpeningLikeElement(j)&&j.tagName===be||e.isJsxOpeningFragment(j)?e.tryCast(Y.resolveName(Y.getJsxNamespace(j),e.isJsxOpeningLikeElement(j)?be:j,111551,!1),e.isUMDExportSymbol):void 0}function q(be,Y,d,j){switch(Y){case 0:return 0;case 1:return 1;case 2:return B(be,d,!!j);case 3:return G(be,d,!!j);default:return e.Debug.assertNever(Y)}}ne.getImportKind=q;function G(be,Y,d){if(e.getAllowSyntheticDefaultImports(Y))return 1;var j=e.getEmitModuleKind(Y);switch(j){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(be)&&(e.isExternalModule(be)||d)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return be.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(j,"Unexpected moduleKind ".concat(j))}}function ye(be,Y,d){var j=be.sourceFile,Ce=be.program,Se=be.cancellationToken,Re=be.host,er=be.preferences,wr=Ce.getTypeChecker(),mr=Ce.getCompilerOptions();return e.flatMap(x(j,wr,Y,mr),function(Ue){if(Ue!=="default"){var t=e.isValidTypeOnlyAliasUseSite(Y),qr=C(j,Ce),ln=Z(Ue,e.isJSXTagName(Y),e.getMeaningFromLocation(Y),Se,j,Ce,d,Re,er),dr=e.arrayFrom(e.flatMapIterator(ln.entries(),function(vr){var kr=vr[0],Ur=vr[1];return E(Ur,{symbolName:Ue,position:Y.getStart(j)},t,qr,Ce,j,Re,er).fixes}));return dr.map(function(vr){return{fix:vr,symbolName:Ue,errorIdentifierText:Y.text,isJsxNamespaceFix:Ue!==Y.text}})}})}function b(be,Y,d,j){var Ce=j.getTypeChecker(),Se=Ce.resolveName(d,Y,111551,!0);if(!!Se){var Re=Ce.getTypeOnlyAliasDeclaration(Se);if(!(!Re||e.getSourceFileOfNode(Re)!==be))return{kind:4,typeOnlyAliasDeclaration:Re}}}function x(be,Y,d,j){var Ce=d.parent;if((e.isJsxOpeningLikeElement(Ce)||e.isJsxClosingElement(Ce))&&Ce.tagName===d&&e.jsxModeNeedsExplicitImport(j.jsx)){var Se=Y.getJsxNamespace(be);if(T(Se,d,Y)){var Re=!e.isIntrinsicJsxName(d.text)&&!Y.resolveName(d.text,d,111551,!1);return Re?[d.text,Se]:[Se]}}return[d.text]}function T(be,Y,d){if(e.isIntrinsicJsxName(Y.text))return!0;var j=d.resolveName(be,Y,111551,!0);return!j||e.some(j.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(j.flags&111551)}function Z(be,Y,d,j,Ce,Se,Re,er,wr){var mr,Ue=e.createMultiMap(),t=e.createPackageJsonImportFilter(Ce,wr,er),qr=(mr=er.getModuleSpecifierCache)===null||mr===void 0?void 0:mr.call(er),ln=e.memoizeOne(function(vr){return e.createModuleSpecifierResolutionHost(vr?er.getPackageJsonAutoImportProvider():Se,er)});function dr(vr,kr,Ur,Cr,rn,Br){var pn=ln(Br);if(kr&&e.isImportableFile(rn,Ce,kr,wr,t,pn,qr)||!kr&&t.allowsImportingAmbientModule(vr,pn)){var ve=rn.getTypeChecker();Ue.add(e.getUniqueSymbolId(Ur,ve).toString(),{symbol:Ur,moduleSymbol:vr,moduleFileName:kr==null?void 0:kr.fileName,exportKind:Cr,targetFlags:e.skipAlias(Ur,ve).flags,isFromPackageJson:Br})}}return e.forEachExternalModuleToImportFrom(Se,er,wr,Re,function(vr,kr,Ur,Cr){var rn=Ur.getTypeChecker();j.throwIfCancellationRequested();var Br=Ur.getCompilerOptions(),pn=e.getDefaultLikeExportInfo(vr,rn,Br);pn&&(pn.name===be||Ne(vr,e.getEmitScriptTarget(Br),Y)===be)&&Xe(pn.symbolForMeaning,d)&&dr(vr,kr,pn.symbol,pn.exportKind,Ur,Cr);var ve=rn.tryGetMemberInModuleExportsAndProperties(be,vr);ve&&Xe(ve,d)&&dr(vr,kr,ve,0,Ur,Cr)}),Ue}function B(be,Y,d){var j=e.getAllowSyntheticDefaultImports(Y),Ce=e.isInJSFile(be);if(!Ce&&e.getEmitModuleKind(Y)>=e.ModuleKind.ES2015)return j?1:2;if(Ce)return e.isExternalModule(be)||d?j?1:2:3;for(var Se=0,Re=be.statements;Se<Re.length;Se++){var er=Re[Se];if(e.isImportEqualsDeclaration(er)&&!e.nodeIsMissing(er.moduleReference))return 3}return j?1:3}function u(be,Y,d,j,Ce,Se,Re){var er,wr=e.textChanges.ChangeTracker.with(be,function(mr){er=A(mr,Y,d,j,Ce,Se,Re)});return ne.createCodeFixAction(ne.importFixName,wr,er,K,e.Diagnostics.Add_all_missing_imports)}function A(be,Y,d,j,Ce,Se,Re){switch(j.kind){case 0:return ge(be,Y,j),[e.Diagnostics.Change_0_to_1,d,"".concat(j.namespacePrefix,".").concat(d)];case 1:return pe(be,Y,j,Se),[e.Diagnostics.Change_0_to_1,d,He(j.moduleSpecifier,Se)+d];case 2:{var er=j.importClauseOrBindingPattern,wr=j.importKind,mr=j.addAsTypeOnly,Ue=j.moduleSpecifier;U(be,Y,er,wr===1?{name:d,addAsTypeOnly:mr}:void 0,wr===0?[{name:d,addAsTypeOnly:mr}]:e.emptyArray,Re);var t=e.stripQuotes(Ue);return Ce?[e.Diagnostics.Import_0_from_1,d,t]:[e.Diagnostics.Update_import_from_0,t]}case 3:{var wr=j.importKind,Ue=j.moduleSpecifier,mr=j.addAsTypeOnly,qr=j.useRequire,ln=qr?Le:Me,dr=wr===1?{name:d,addAsTypeOnly:mr}:void 0,vr=wr===0?[{name:d,addAsTypeOnly:mr}]:void 0,kr=wr===2||wr===3?{importKind:wr,name:d,addAsTypeOnly:mr}:void 0;return e.insertImports(be,Y,ln(Ue,Se,dr,vr,kr),!0),Ce?[e.Diagnostics.Import_0_from_1,d,Ue]:[e.Diagnostics.Add_import_from_0,Ue]}case 4:{var Ur=j.typeOnlyAliasDeclaration,Cr=z(be,Ur,Re,Y);return Cr.kind===273?[e.Diagnostics.Remove_type_from_import_of_0_from_1,d,w(Cr.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,w(Cr)]}default:return e.Debug.assertNever(j,"Unexpected fix kind ".concat(j.kind))}}function w(be){var Y,d;return be.kind===268?((d=e.tryCast((Y=e.tryCast(be.moduleReference,e.isExternalModuleReference))===null||Y===void 0?void 0:Y.expression,e.isStringLiteralLike))===null||d===void 0?void 0:d.text)||be.moduleReference.getText():e.cast(be.parent.moduleSpecifier,e.isStringLiteral).text}function z(be,Y,d,j){var Ce=d.preserveValueImports&&d.isolatedModules;switch(Y.kind){case 273:if(Y.isTypeOnly){if(Y.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(Y.parent.elements)){be.delete(j,Y);var Se=e.factory.updateImportSpecifier(Y,!1,Y.propertyName,Y.name),Re=e.OrganizeImports.getImportSpecifierInsertionIndex(Y.parent.elements,Se);be.insertImportSpecifierAtIndex(j,Se,Y.parent,Re)}else be.deleteRange(j,Y.getFirstToken());return Y}else return e.Debug.assert(Y.parent.parent.isTypeOnly),er(Y.parent.parent),Y.parent.parent;case 270:return er(Y),Y;case 271:return er(Y.parent),Y.parent;case 268:return be.deleteRange(j,Y.getChildAt(1)),Y;default:e.Debug.failBadSyntaxKind(Y)}function er(wr){if(be.delete(j,e.getTypeKeywordOfTypeOnlyImport(wr,j)),Ce){var mr=e.tryCast(wr.namedBindings,e.isNamedImports);if(mr&&mr.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(mr.elements)&&Y.kind===273&&mr.elements.indexOf(Y)!==0&&(be.delete(j,Y),be.insertImportSpecifierAtIndex(j,Y,mr,0));for(var Ue=0,t=mr.elements;Ue<t.length;Ue++){var qr=t[Ue];qr!==Y&&!qr.isTypeOnly&&be.insertModifierBefore(j,154,qr)}}}}}function U(be,Y,d,j,Ce,Se){var Re;if(d.kind===203){j&&or(d,j.name,"default");for(var er=0,wr=Ce;er<wr.length;er++){var mr=wr[er];or(d,mr.name,void 0)}return}var Ue=d.isTypeOnly&&e.some(zn([j],Ce,!0),function(Ee){return(Ee==null?void 0:Ee.addAsTypeOnly)===4}),t=d.namedBindings&&((Re=e.tryCast(d.namedBindings,e.isNamedImports))===null||Re===void 0?void 0:Re.elements),qr=Ue&&Se.preserveValueImports&&Se.isolatedModules;if(j&&(e.Debug.assert(!d.name,"Cannot add a default import to an import clause that already has one"),be.insertNodeAt(Y,d.getStart(Y),e.factory.createIdentifier(j.name),{suffix:", "})),Ce.length){var ln=e.stableSort(Ce.map(function(Ee){return e.factory.createImportSpecifier((!d.isTypeOnly||Ue)&&Be(Ee),void 0,e.factory.createIdentifier(Ee.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if((t==null?void 0:t.length)&&e.OrganizeImports.importSpecifiersAreSorted(t))for(var dr=0,vr=ln;dr<vr.length;dr++){var kr=vr[dr],Ur=qr&&!kr.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(t,kr);be.insertImportSpecifierAtIndex(Y,kr,d.namedBindings,Ur)}else if(t==null?void 0:t.length)for(var Cr=0,rn=ln;Cr<rn.length;Cr++){var kr=rn[Cr];be.insertNodeInListAfter(Y,e.last(t),kr,t)}else if(ln.length){var Br=e.factory.createNamedImports(ln);d.namedBindings?be.replaceNode(Y,d.namedBindings,Br):be.insertNodeAfter(Y,e.Debug.checkDefined(d.name,"Import clause must have either named imports or a default import"),Br)}}if(Ue&&(be.delete(Y,e.getTypeKeywordOfTypeOnlyImport(d,Y)),qr&&t))for(var pn=0,ve=t;pn<ve.length;pn++){var mr=ve[pn];be.insertModifierBefore(Y,154,mr)}function or(Ee,ze,Ar){var xe=e.factory.createBindingElement(void 0,Ar,ze);Ee.elements.length?be.insertNodeInListAfter(Y,e.last(Ee.elements),xe):be.replaceNode(Y,Ee,e.factory.createObjectBindingPattern([xe]))}}function ge(be,Y,d){var j=d.namespacePrefix,Ce=d.position;be.insertText(Y,Ce,j+".")}function pe(be,Y,d,j){var Ce=d.moduleSpecifier,Se=d.position;be.insertText(Y,Se,He(Ce,j))}function He(be,Y){var d=e.getQuoteFromPreference(Y);return"import(".concat(d).concat(be).concat(d,").")}function Be(be){var Y=be.addAsTypeOnly;return Y===2}function Me(be,Y,d,j,Ce){var Se=e.makeStringLiteral(be,Y),Re;if(d!==void 0||(j==null?void 0:j.length)){var er=(!d||Be(d))&&e.every(j,Be);Re=e.combine(Re,e.makeImport(d&&e.factory.createIdentifier(d.name),j==null?void 0:j.map(function(mr){var Ue=mr.addAsTypeOnly,t=mr.name;return e.factory.createImportSpecifier(!er&&Ue===2,void 0,e.factory.createIdentifier(t))}),be,Y,er))}if(Ce){var wr=Ce.importKind===3?e.factory.createImportEqualsDeclaration(void 0,Be(Ce),e.factory.createIdentifier(Ce.name),e.factory.createExternalModuleReference(Se)):e.factory.createImportDeclaration(void 0,e.factory.createImportClause(Be(Ce),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Ce.name))),Se,void 0);Re=e.combine(Re,wr)}return e.Debug.checkDefined(Re)}function Le(be,Y,d,j,Ce){var Se=e.makeStringLiteral(be,Y),Re;if(d||(j==null?void 0:j.length)){var er=(j==null?void 0:j.map(function(mr){var Ue=mr.name;return e.factory.createBindingElement(void 0,void 0,Ue)}))||[];d&&er.unshift(e.factory.createBindingElement(void 0,"default",d.name));var wr=Ae(e.factory.createObjectBindingPattern(er),Se);Re=e.combine(Re,wr)}if(Ce){var wr=Ae(Ce.name,Se);Re=e.combine(Re,wr)}return e.Debug.checkDefined(Re)}function Ae(be,Y){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof be=="string"?e.factory.createIdentifier(be):be,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Y]))],2))}function Xe(be,Y){var d=be.declarations;return e.some(d,function(j){return!!(e.getMeaningFromDeclaration(j)&Y)})}function Ne(be,Y,d){return Oe(e.removeFileExtension(e.stripQuotes(be.name)),Y,d)}ne.moduleSymbolToValidIdentifier=Ne;function Oe(be,Y,d){var j=e.getBaseFileName(e.removeSuffix(be,"/index")),Ce="",Se=!0,Re=j.charCodeAt(0);e.isIdentifierStart(Re,Y)?(Ce+=String.fromCharCode(Re),d&&(Ce=Ce.toUpperCase())):Se=!1;for(var er=1;er<j.length;er++){var wr=j.charCodeAt(er),mr=e.isIdentifierPart(wr,Y);if(mr){var Ue=String.fromCharCode(wr);Se||(Ue=Ue.toUpperCase()),Ce+=Ue}Se=mr}return e.isStringANonContextualKeyword(Ce)?"_".concat(Ce):Ce||"_"}ne.moduleSpecifierToValidIdentifier=Oe})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingConstraint",se=[e.Diagnostics.Type_0_is_not_comparable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.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,e.Diagnostics.Property_0_is_incompatible_with_index_signature.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(p){var D=p.sourceFile,le=p.span,de=p.program,te=p.preferences,oe=p.host,ae=O(de,D,le);if(ae!==void 0){var E=e.textChanges.ChangeTracker.with(p,function(I){return ie(I,de,te,oe,D,ae)});return[ne.createCodeFixAction(K,E,e.Diagnostics.Add_extends_constraint,K,e.Diagnostics.Add_extends_constraint_to_all_type_parameters)]}},fixIds:[K],getAllCodeActions:function(p){var D=p.program,le=p.preferences,de=p.host,te=new e.Map;return ne.createCombinedCodeActions(e.textChanges.ChangeTracker.with(p,function(oe){ne.eachDiagnostic(p,se,function(ae){var E=O(D,ae.file,e.createTextSpan(ae.start,ae.length));if(E&&e.addToSeen(te,e.getNodeId(E.declaration)))return ie(oe,D,le,de,ae.file,E)})}))}});function O(p,D,le){var de=e.find(p.getSemanticDiagnostics(D),function(f){return f.start===le.start&&f.length===le.length});if(!(de===void 0||de.relatedInformation===void 0)){var te=e.find(de.relatedInformation,function(f){return f.code===e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code});if(!(te===void 0||te.file===void 0||te.start===void 0||te.length===void 0)){var oe=ne.findAncestorMatchingSpan(te.file,e.createTextSpan(te.start,te.length));if(oe!==void 0&&(e.isIdentifier(oe)&&e.isTypeParameterDeclaration(oe.parent)&&(oe=oe.parent),e.isTypeParameterDeclaration(oe))){if(e.isMappedTypeNode(oe.parent))return;var ae=e.getTokenAtPosition(D,le.start),E=p.getTypeChecker(),I=Q(E,ae)||_e(te.messageText);return{constraint:I,declaration:oe,token:ae}}}}}function ie(p,D,le,de,te,oe){var ae=oe.declaration,E=oe.constraint,I=D.getTypeChecker();if(e.isString(E))p.insertText(te,ae.name.end," extends ".concat(E));else{var f=e.getEmitScriptTarget(D.getCompilerOptions()),m=ne.getNoopSymbolTrackerWithResolver({program:D,host:de}),y=ne.createImportAdder(te,D,le,de),S=ne.typeToAutoImportableTypeNode(I,y,E,void 0,f,void 0,m);S&&(p.replaceNode(te,ae,e.factory.updateTypeParameterDeclaration(ae,void 0,ae.name,S,ae.default)),y.writeFixes(p))}}function _e(p){var D=e.flattenDiagnosticMessageText(p,`
  266. `,0).match(/`extends (.*)`/)||[],le=D[0],de=D[1];return de}function Q(p,D){if(e.isTypeNode(D.parent))return p.getTypeArgumentConstraint(D.parent);var le=e.isExpression(D)?p.getContextualType(D):void 0;return le||p.getTypeAtLocation(D)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K,se="fixOverrideModifier",O="fixAddOverrideModifier",ie="fixRemoveOverrideModifier",_e=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Q=(K={},K[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:O,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},K[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:O,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},K[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:ie,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},K[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:ie,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},K[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:O,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},K[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:O,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},K[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:O,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},K[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:ie,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},K[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:ie,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},K);ne.registerCodeFix({errorCodes:_e,getCodeActions:function(ae){var E=ae.errorCode,I=ae.span,f=Q[E];if(!f)return e.emptyArray;var m=f.descriptions,y=f.fixId,S=f.fixAllDescriptions,k=e.textChanges.ChangeTracker.with(ae,function(C){return p(C,ae,E,I.start)});return[ne.createCodeFixActionMaybeFixAll(se,k,m,y,S)]},fixIds:[se,O,ie],getAllCodeActions:function(oe){return ne.codeFixAll(oe,_e,function(ae,E){var I=E.code,f=E.start,m=Q[I];!m||m.fixId!==oe.fixId||p(ae,oe,I,f)})}});function p(oe,ae,E,I){switch(E){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return D(oe,ae.sourceFile,I);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return le(oe,ae.sourceFile,I);default:e.Debug.fail("Unexpected error code: "+E)}}function D(oe,ae,E){var I=te(ae,E);if(e.isSourceFileJS(ae)){oe.addJSDocTags(ae,I,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);return}var f=I.modifiers||e.emptyArray,m=e.find(f,e.isStaticModifier),y=e.find(f,e.isAbstractModifier),S=e.find(f,function(De){return e.isAccessibilityModifier(De.kind)}),k=e.findLast(f,e.isDecorator),C=y?y.end:m?m.end:S?S.end:k?e.skipTrivia(ae.text,k.end):I.getStart(ae),me=S||m||y?{prefix:" "}:{suffix:" "};oe.insertModifierAt(ae,C,161,me)}function le(oe,ae,E){var I=te(ae,E);if(e.isSourceFileJS(ae)){oe.filterJSDocTags(ae,I,e.not(e.isJSDocOverrideTag));return}var f=e.find(I.modifiers,e.isOverrideModifier);e.Debug.assertIsDefined(f),oe.deleteModifier(ae,f)}function de(oe){switch(oe.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return e.isParameterPropertyDeclaration(oe,oe.parent);default:return!1}}function te(oe,ae){var E=e.getTokenAtPosition(oe,ae),I=e.findAncestor(E,function(f){return e.isClassLike(f)?"quit":de(f)});return e.Debug.assert(I&&de(I)),I}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixNoPropertyAccessFromIndexSignature",se=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];ne.registerCodeFix({errorCodes:se,fixIds:[K],getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.span,D=_e.preferences,le=ie(Q,p.start),de=e.textChanges.ChangeTracker.with(_e,function(te){return O(te,_e.sourceFile,le,D)});return[ne.createCodeFixAction(K,de,[e.Diagnostics.Use_element_access_for_0,le.name.text],K,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){return O(Q,p.file,ie(p.file,p.start),_e.preferences)})}});function O(_e,Q,p,D){var le=e.getQuotePreference(Q,D),de=e.factory.createStringLiteral(p.name.text,le===0);_e.replaceNode(Q,p,e.isPropertyAccessChain(p)?e.factory.createElementAccessChain(p.expression,p.questionDotToken,de):e.factory.createElementAccessExpression(p.expression,de))}function ie(_e,Q){return e.cast(e.getTokenAtPosition(_e,Q).parent,e.isPropertyAccessExpression)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixImplicitThis",se=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.program,D=_e.span,le,de=e.textChanges.ChangeTracker.with(_e,function(te){le=O(te,Q,D.start,p.getTypeChecker())});return le?[ne.createCodeFixAction(K,de,le,K,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e,Q){O(_e,Q.file,Q.start,ie.program.getTypeChecker())})}});function O(ie,_e,Q,p){var D=e.getTokenAtPosition(_e,Q);if(!!e.isThis(D)){var le=e.getThisContainer(D,!1);if(!(!e.isFunctionDeclaration(le)&&!e.isFunctionExpression(le))&&!e.isSourceFile(e.getThisContainer(le,!1))){var de=e.Debug.checkDefined(e.findChildOfKind(le,98,_e)),te=le.name,oe=e.Debug.checkDefined(le.body);return e.isFunctionExpression(le)?te&&e.FindAllReferences.Core.isSymbolReferencedInFile(te,p,_e,oe)?void 0:(ie.delete(_e,de),te&&ie.delete(_e,te),ie.insertText(_e,oe.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,te?te.text:e.ANONYMOUS]):(ie.replaceNode(_e,de,e.factory.createToken(85)),ie.insertText(_e,te.end," = "),ie.insertText(_e,oe.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,te.text])}}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixImportNonExportedMember",se=[e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code];ne.registerCodeFix({errorCodes:se,fixIds:[K],getCodeActions:function(te){var oe=te.sourceFile,ae=te.span,E=te.program,I=O(oe,ae.start,E);if(I!==void 0){var f=e.textChanges.ChangeTracker.with(te,function(m){return ie(m,E,I)});return[ne.createCodeFixAction(K,f,[e.Diagnostics.Export_0_from_module_1,I.exportName.node.text,I.moduleSpecifier],K,e.Diagnostics.Export_all_referenced_locals)]}},getAllCodeActions:function(te){var oe=te.program;return ne.createCombinedCodeActions(e.textChanges.ChangeTracker.with(te,function(ae){var E=new e.Map;ne.eachDiagnostic(te,se,function(I){var f=O(I.file,I.start,oe);if(f!==void 0){var m=f.exportName,y=f.node,S=f.moduleSourceFile;if(Q(S,m.isTypeOnly)===void 0&&e.canHaveExportModifier(y))ae.insertExportModifier(S,y);else{var k=E.get(S)||{typeOnlyExports:[],exports:[]};m.isTypeOnly?k.typeOnlyExports.push(m):k.exports.push(m),E.set(S,k)}}}),E.forEach(function(I,f){var m=Q(f,!0);m&&m.isTypeOnly?(_e(ae,oe,f,I.typeOnlyExports,m),_e(ae,oe,f,I.exports,Q(f,!1))):_e(ae,oe,f,zn(zn([],I.exports,!0),I.typeOnlyExports,!0),m)})}))}});function O(te,oe,ae){var E,I=e.getTokenAtPosition(te,oe);if(e.isIdentifier(I)){var f=e.findAncestor(I,e.isImportDeclaration);if(f===void 0)return;var m=e.isStringLiteral(f.moduleSpecifier)?f.moduleSpecifier.text:void 0;if(m===void 0)return;var y=e.getResolvedModule(te,m,void 0);if(y===void 0)return;var S=ae.getSourceFile(y.resolvedFileName);if(S===void 0||e.isSourceFileFromLibrary(ae,S))return;var k=S.symbol,C=(E=k.valueDeclaration)===null||E===void 0?void 0:E.locals;if(C===void 0)return;var me=C.get(I.escapedText);if(me===void 0)return;var De=de(me);if(De===void 0)return;var X={node:I,isTypeOnly:e.isTypeDeclaration(De)};return{exportName:X,node:De,moduleSourceFile:S,moduleSpecifier:m}}}function ie(te,oe,ae){var E=ae.exportName,I=ae.node,f=ae.moduleSourceFile,m=Q(f,E.isTypeOnly);m?p(te,oe,f,m,[E]):e.canHaveExportModifier(I)?te.insertExportModifier(f,I):D(te,oe,f,[E])}function _e(te,oe,ae,E,I){e.length(E)&&(I?p(te,oe,ae,I,E):D(te,oe,ae,E))}function Q(te,oe){var ae=function(E){return e.isExportDeclaration(E)&&(oe&&E.isTypeOnly||!E.isTypeOnly)};return e.findLast(te.statements,ae)}function p(te,oe,ae,E,I){var f=E.exportClause&&e.isNamedExports(E.exportClause)?E.exportClause.elements:e.factory.createNodeArray([]),m=!E.isTypeOnly&&!!(oe.getCompilerOptions().isolatedModules||e.find(f,function(y){return y.isTypeOnly}));te.replaceNode(ae,E,e.factory.updateExportDeclaration(E,E.modifiers,E.isTypeOnly,e.factory.createNamedExports(e.factory.createNodeArray(zn(zn([],f,!0),le(I,m),!0),f.hasTrailingComma)),E.moduleSpecifier,E.assertClause))}function D(te,oe,ae,E){te.insertNodeAtEndOfScope(ae,ae,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(le(E,!!oe.getCompilerOptions().isolatedModules)),void 0,void 0))}function le(te,oe){return e.factory.createNodeArray(e.map(te,function(ae){return e.factory.createExportSpecifier(oe&&ae.isTypeOnly,void 0,ae.node)}))}function de(te){if(te.valueDeclaration===void 0)return e.firstOrUndefined(te.declarations);var oe=te.valueDeclaration,ae=e.isVariableDeclaration(oe)?e.tryCast(oe.parent.parent,e.isVariableStatement):void 0;return ae&&e.length(ae.declarationList.declarations)===1?ae:oe}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixIncorrectNamedTupleSyntax",se=[e.Diagnostics.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,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.span,le=O(p,D.start),de=e.textChanges.ChangeTracker.with(Q,function(te){return ie(te,p,le)});return[ne.createCodeFixAction(K,de,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,K,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[K]});function O(_e,Q){var p=e.getTokenAtPosition(_e,Q);return e.findAncestor(p,function(D){return D.kind===199})}function ie(_e,Q,p){if(!!p){for(var D=p.type,le=!1,de=!1;D.kind===187||D.kind===188||D.kind===193;)D.kind===187?le=!0:D.kind===188&&(de=!0),D=D.type;var te=e.factory.updateNamedTupleMember(p,p.dotDotDotToken||(de?e.factory.createToken(25):void 0),p.name,p.questionToken||(le?e.factory.createToken(57):void 0),D);te!==p&&_e.replaceNode(Q,p,te)}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixSpelling",se=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.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,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(p){var D=p.sourceFile,le=p.errorCode,de=O(D,p.span.start,p,le);if(!!de){var te=de.node,oe=de.suggestedSymbol,ae=e.getEmitScriptTarget(p.host.getCompilationSettings()),E=e.textChanges.ChangeTracker.with(p,function(I){return ie(I,D,te,oe,ae)});return[ne.createCodeFixAction("spelling",E,[e.Diagnostics.Change_spelling_to_0,e.symbolName(oe)],K,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[K],getAllCodeActions:function(p){return ne.codeFixAll(p,se,function(D,le){var de=O(le.file,le.start,p,le.code),te=e.getEmitScriptTarget(p.host.getCompilationSettings());de&&ie(D,p.sourceFile,de.node,de.suggestedSymbol,te)})}});function O(p,D,le,de){var te=e.getTokenAtPosition(p,D),oe=te.parent;if(!((de===e.Diagnostics.No_overload_matches_this_call.code||de===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(oe))){var ae=le.program.getTypeChecker(),E;if(e.isPropertyAccessExpression(oe)&&oe.name===te){e.Debug.assert(e.isMemberName(te),"Expected an identifier for spelling (property access)");var I=ae.getTypeAtLocation(oe.expression);oe.flags&32&&(I=ae.getNonNullableType(I)),E=ae.getSuggestedSymbolForNonexistentProperty(te,I)}else if(e.isBinaryExpression(oe)&&oe.operatorToken.kind===101&&oe.left===te&&e.isPrivateIdentifier(te)){var f=ae.getTypeAtLocation(oe.right);E=ae.getSuggestedSymbolForNonexistentProperty(te,f)}else if(e.isQualifiedName(oe)&&oe.right===te){var m=ae.getSymbolAtLocation(oe.left);m&&m.flags&1536&&(E=ae.getSuggestedSymbolForNonexistentModule(oe.right,m))}else if(e.isImportSpecifier(oe)&&oe.name===te){e.Debug.assertNode(te,e.isIdentifier,"Expected an identifier for spelling (import)");var y=e.findAncestor(te,e.isImportDeclaration),S=Q(p,le,y);S&&S.symbol&&(E=ae.getSuggestedSymbolForNonexistentModule(te,S.symbol))}else if(e.isJsxAttribute(oe)&&oe.name===te){e.Debug.assertNode(te,e.isIdentifier,"Expected an identifier for JSX attribute");var k=e.findAncestor(te,e.isJsxOpeningLikeElement),C=ae.getContextualTypeForArgumentAtIndex(k,0);E=ae.getSuggestedSymbolForNonexistentJSXAttribute(te,C)}else if(e.hasSyntacticModifier(oe,16384)&&e.isClassElement(oe)&&oe.name===te){var me=e.findAncestor(te,e.isClassLike),De=me?e.getEffectiveBaseTypeNode(me):void 0,X=De?ae.getTypeAtLocation(De):void 0;X&&(E=ae.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(te),X))}else{var M=e.getMeaningFromLocation(te),H=e.getTextOfNode(te);e.Debug.assert(H!==void 0,"name should be defined"),E=ae.getSuggestedSymbolForNonexistentSymbol(te,H,_e(M))}return E===void 0?void 0:{node:te,suggestedSymbol:E}}}function ie(p,D,le,de,te){var oe=e.symbolName(de);if(!e.isIdentifierText(oe,te)&&e.isPropertyAccessExpression(le.parent)){var ae=de.valueDeclaration;ae&&e.isNamedDeclaration(ae)&&e.isPrivateIdentifier(ae.name)?p.replaceNode(D,le,e.factory.createIdentifier(oe)):p.replaceNode(D,le.parent,e.factory.createElementAccessExpression(le.parent.expression,e.factory.createStringLiteral(oe)))}else p.replaceNode(D,le,e.factory.createIdentifier(oe))}function _e(p){var D=0;return p&4&&(D|=1920),p&2&&(D|=788968),p&1&&(D|=111551),D}function Q(p,D,le){if(!(!le||!e.isStringLiteralLike(le.moduleSpecifier))){var de=e.getResolvedModule(p,le.moduleSpecifier.text,e.getModeForUsageLocation(p,le.moduleSpecifier));if(!!de)return D.program.getSourceFile(de.resolvedFileName)}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="returnValueCorrect",se="fixAddReturnStatement",O="fixRemoveBracesFromArrowFunctionBody",ie="fixWrapTheBlockWithParen",_e=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Q;(function(y){y[y.MissingReturnStatement=0]="MissingReturnStatement",y[y.MissingParentheses=1]="MissingParentheses"})(Q||(Q={})),ne.registerCodeFix({errorCodes:_e,fixIds:[se,O,ie],getCodeActions:function(S){var k=S.program,C=S.sourceFile,me=S.span.start,De=S.errorCode,X=de(k.getTypeChecker(),C,me,De);if(!!X)return X.kind===Q.MissingReturnStatement?e.append([I(S,X.expression,X.statement)],e.isArrowFunction(X.declaration)?f(S,X.declaration,X.expression,X.commentSource):void 0):[m(S,X.declaration,X.expression)]},getAllCodeActions:function(y){return ne.codeFixAll(y,_e,function(S,k){var C=de(y.program.getTypeChecker(),k.file,k.start,k.code);if(!!C)switch(y.fixId){case se:oe(S,k.file,C.expression,C.statement);break;case O:if(!e.isArrowFunction(C.declaration))return;ae(S,k.file,C.declaration,C.expression,C.commentSource,!1);break;case ie:if(!e.isArrowFunction(C.declaration))return;E(S,k.file,C.declaration,C.expression);break;default:e.Debug.fail(JSON.stringify(y.fixId))}})}});function p(y,S,k){var C=y.createSymbol(4,S.escapedText);C.type=y.getTypeAtLocation(k);var me=e.createSymbolTable([C]);return y.createAnonymousType(void 0,me,[],[],[])}function D(y,S,k,C){if(!(!S.body||!e.isBlock(S.body)||e.length(S.body.statements)!==1)){var me=e.first(S.body.statements);if(e.isExpressionStatement(me)&&le(y,S,y.getTypeAtLocation(me.expression),k,C))return{declaration:S,kind:Q.MissingReturnStatement,expression:me.expression,statement:me,commentSource:me.expression};if(e.isLabeledStatement(me)&&e.isExpressionStatement(me.statement)){var De=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(me.label,me.statement.expression)]),X=p(y,me.label,me.statement.expression);if(le(y,S,X,k,C))return e.isArrowFunction(S)?{declaration:S,kind:Q.MissingParentheses,expression:De,statement:me,commentSource:me.statement.expression}:{declaration:S,kind:Q.MissingReturnStatement,expression:De,statement:me,commentSource:me.statement.expression}}else if(e.isBlock(me)&&e.length(me.statements)===1){var M=e.first(me.statements);if(e.isLabeledStatement(M)&&e.isExpressionStatement(M.statement)){var De=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(M.label,M.statement.expression)]),X=p(y,M.label,M.statement.expression);if(le(y,S,X,k,C))return{declaration:S,kind:Q.MissingReturnStatement,expression:De,statement:me,commentSource:M}}}}}function le(y,S,k,C,me){if(me){var De=y.getSignatureFromDeclaration(S);if(De){e.hasSyntacticModifier(S,512)&&(k=y.createPromiseType(k));var X=y.createSignature(S,De.typeParameters,De.thisParameter,De.parameters,k,void 0,De.minArgumentCount,De.flags);k=y.createAnonymousType(void 0,e.createSymbolTable(),[X],[],[])}else k=y.getAnyType()}return y.isTypeAssignableTo(k,C)}function de(y,S,k,C){var me=e.getTokenAtPosition(S,k);if(!!me.parent){var De=e.findAncestor(me.parent,e.isFunctionLikeDeclaration);switch(C){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!De||!De.body||!De.type||!e.rangeContainsRange(De.type,me)?void 0:D(y,De,y.getTypeFromTypeNode(De.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!De||!e.isCallExpression(De.parent)||!De.body)return;var X=De.parent.arguments.indexOf(De),M=y.getContextualTypeForArgumentAtIndex(De.parent,X);return M?D(y,De,M,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(me)||!e.isVariableLike(me.parent)&&!e.isJsxAttribute(me.parent))return;var H=te(me.parent);return!H||!e.isFunctionLikeDeclaration(H)||!H.body?void 0:D(y,H,y.getTypeAtLocation(me.parent),!0)}}}function te(y){switch(y.kind){case 257:case 166:case 205:case 169:case 299:return y.initializer;case 288:return y.initializer&&(e.isJsxExpression(y.initializer)?y.initializer.expression:void 0);case 300:case 168:case 302:case 350:case 343:return}}function oe(y,S,k,C){e.suppressLeadingAndTrailingTrivia(k);var me=e.probablyUsesSemicolons(S);y.replaceNode(S,C,e.factory.createReturnStatement(k),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:me?";":void 0})}function ae(y,S,k,C,me,De){var X=De||e.needsParentheses(C)?e.factory.createParenthesizedExpression(C):C;e.suppressLeadingAndTrailingTrivia(me),e.copyComments(me,X),y.replaceNode(S,k.body,X)}function E(y,S,k,C){y.replaceNode(S,k.body,e.factory.createParenthesizedExpression(C))}function I(y,S,k){var C=e.textChanges.ChangeTracker.with(y,function(me){return oe(me,y.sourceFile,S,k)});return ne.createCodeFixAction(K,C,e.Diagnostics.Add_a_return_statement,se,e.Diagnostics.Add_all_missing_return_statement)}function f(y,S,k,C){var me=e.textChanges.ChangeTracker.with(y,function(De){return ae(De,y.sourceFile,S,k,C,!1)});return ne.createCodeFixAction(K,me,e.Diagnostics.Remove_braces_from_arrow_function_body,O,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function m(y,S,k){var C=e.textChanges.ChangeTracker.with(y,function(me){return E(me,y.sourceFile,S,k)});return ne.createCodeFixAction(K,C,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,ie,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixMissingMember",se="fixMissingProperties",O="fixMissingAttributes",ie="fixMissingFunctionDeclaration",_e=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code],Q;(function($){$[$.TypeLikeDeclaration=0]="TypeLikeDeclaration",$[$.Enum=1]="Enum",$[$.Function=2]="Function",$[$.ObjectLiteral=3]="ObjectLiteral",$[$.JsxAttributes=4]="JsxAttributes",$[$.Signature=5]="Signature"})(Q||(Q={})),ne.registerCodeFix({errorCodes:_e,getCodeActions:function($){var L=$.program.getTypeChecker(),P=p($.sourceFile,$.span.start,$.errorCode,L,$.program);if(!!P){if(P.kind===Q.ObjectLiteral){var N=e.textChanges.ChangeTracker.with($,function(J){return me(J,$,P)});return[ne.createCodeFixAction(se,N,e.Diagnostics.Add_missing_properties,se,e.Diagnostics.Add_all_missing_properties)]}if(P.kind===Q.JsxAttributes){var N=e.textChanges.ChangeTracker.with($,function(q){return C(q,$,P)});return[ne.createCodeFixAction(O,N,e.Diagnostics.Add_missing_attributes,O,e.Diagnostics.Add_all_missing_attributes)]}if(P.kind===Q.Function||P.kind===Q.Signature){var N=e.textChanges.ChangeTracker.with($,function(q){return k(q,$,P)});return[ne.createCodeFixAction(ie,N,[e.Diagnostics.Add_missing_function_declaration_0,P.token.text],ie,e.Diagnostics.Add_all_missing_function_declarations)]}if(P.kind===Q.Enum){var N=e.textChanges.ChangeTracker.with($,function(q){return S(q,$.program.getTypeChecker(),P)});return[ne.createCodeFixAction(K,N,[e.Diagnostics.Add_missing_enum_member_0,P.token.text],K,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(m($,P),D($,P))}},fixIds:[K,ie,se,O],getAllCodeActions:function($){var L=$.program,P=$.fixId,N=L.getTypeChecker(),J=new e.Map,q=new e.Map;return ne.createCombinedCodeActions(e.textChanges.ChangeTracker.with($,function(G){ne.eachDiagnostic($,_e,function(ye){var b=p(ye.file,ye.start,ye.code,N,$.program);if(!(!b||!e.addToSeen(J,e.getNodeId(b.parentDeclaration)+"#"+b.token.text))){if(P===ie&&(b.kind===Q.Function||b.kind===Q.Signature))k(G,$,b);else if(P===se&&b.kind===Q.ObjectLiteral)me(G,$,b);else if(P===O&&b.kind===Q.JsxAttributes)C(G,$,b);else if(b.kind===Q.Enum&&S(G,N,b),b.kind===Q.TypeLikeDeclaration){var x=b.parentDeclaration,T=b.token,Z=e.getOrUpdate(q,x,function(){return[]});Z.some(function(B){return B.token.text===T.text})||Z.push(b)}}}),q.forEach(function(ye,b){for(var x=e.isTypeLiteralNode(b)?void 0:ne.getAllSupers(b,N),T=function(A){if(x==null?void 0:x.some(function(Me){var Le=q.get(Me);return!!Le&&Le.some(function(Ae){var Xe=Ae.token;return Xe.text===A.token.text})}))return"continue";var w=A.parentDeclaration,z=A.declSourceFile,U=A.modifierFlags,ge=A.token,pe=A.call,He=A.isJSFile;if(pe&&!e.isPrivateIdentifier(ge))y($,G,pe,ge,U&32,w,z);else if(He&&!e.isInterfaceDeclaration(w)&&!e.isTypeLiteralNode(w))de(G,z,w,ge,!!(U&32));else{var Be=ae(N,w,ge);E(G,z,w,ge.text,Be,U&32)}},Z=0,B=ye;Z<B.length;Z++){var u=B[Z];T(u)}})}))}});function p($,L,P,N,J){var q=e.getTokenAtPosition($,L),G=q.parent;if(P===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(q.kind===18&&e.isObjectLiteralExpression(G)&&e.isCallExpression(G.parent)))return;var ye=e.findIndex(G.parent.arguments,function(Oe){return Oe===G});if(ye<0)return;var b=N.getResolvedSignature(G.parent);if(!(b&&b.declaration&&b.parameters[ye]))return;var x=b.parameters[ye].valueDeclaration;if(!(x&&e.isParameter(x)&&e.isIdentifier(x.name)))return;var T=e.arrayFrom(N.getUnmatchedProperties(N.getTypeAtLocation(G),N.getParameterType(b,ye),!1,!1));return e.length(T)?{kind:Q.ObjectLiteral,token:x.name,properties:T,parentDeclaration:G}:void 0}if(!!e.isMemberName(q)){if(e.isIdentifier(q)&&e.hasInitializer(G)&&G.initializer&&e.isObjectLiteralExpression(G.initializer)){var T=e.arrayFrom(N.getUnmatchedProperties(N.getTypeAtLocation(G.initializer),N.getTypeAtLocation(q),!1,!1));return e.length(T)?{kind:Q.ObjectLiteral,token:q,properties:T,parentDeclaration:G.initializer}:void 0}if(e.isIdentifier(q)&&e.isJsxOpeningLikeElement(q.parent)){var Z=e.getEmitScriptTarget(J.getCompilerOptions()),B=H(N,Z,q.parent);return e.length(B)?{kind:Q.JsxAttributes,token:q,attributes:B,parentDeclaration:q.parent}:void 0}if(e.isIdentifier(q)){var u=N.getContextualType(q);if(u&&e.getObjectFlags(u)&16){var b=e.firstOrUndefined(N.getSignaturesOfType(u,0));return b===void 0?void 0:{kind:Q.Signature,token:q,signature:b,sourceFile:$,parentDeclaration:F(q)}}if(e.isCallExpression(G)&&G.expression===q)return{kind:Q.Function,token:q,call:G,sourceFile:$,modifierFlags:0,parentDeclaration:F(q)}}if(!!e.isPropertyAccessExpression(G)){var A=e.skipConstraint(N.getTypeAtLocation(G.expression)),w=A.symbol;if(!(!w||!w.declarations)){if(e.isIdentifier(q)&&e.isCallExpression(G.parent)){var z=e.find(w.declarations,e.isModuleDeclaration),U=z==null?void 0:z.getSourceFile();if(z&&U&&!e.isSourceFileFromLibrary(J,U))return{kind:Q.Function,token:q,call:G.parent,sourceFile:$,modifierFlags:1,parentDeclaration:z};var ge=e.find(w.declarations,e.isSourceFile);if($.commonJsModuleIndicator)return;if(ge&&!e.isSourceFileFromLibrary(J,ge))return{kind:Q.Function,token:q,call:G.parent,sourceFile:ge,modifierFlags:1,parentDeclaration:ge}}var pe=e.find(w.declarations,e.isClassLike);if(!(!pe&&e.isPrivateIdentifier(q))){var He=pe||e.find(w.declarations,function(Oe){return e.isInterfaceDeclaration(Oe)||e.isTypeLiteralNode(Oe)});if(He&&!e.isSourceFileFromLibrary(J,He.getSourceFile())){var Be=!e.isTypeLiteralNode(He)&&(A.target||A)!==N.getDeclaredTypeOfSymbol(w);if(Be&&(e.isPrivateIdentifier(q)||e.isInterfaceDeclaration(He)))return;var Me=He.getSourceFile(),Le=e.isTypeLiteralNode(He)?0:(Be?32:0)|(e.startsWithUnderscore(q.text)?8:0),Ae=e.isSourceFileJS(Me),Xe=e.tryCast(G.parent,e.isCallExpression);return{kind:Q.TypeLikeDeclaration,token:q,call:Xe,modifierFlags:Le,parentDeclaration:He,declSourceFile:Me,isJSFile:Ae}}var Ne=e.find(w.declarations,e.isEnumDeclaration);if(Ne&&!(A.flags&1056)&&!e.isPrivateIdentifier(q)&&!e.isSourceFileFromLibrary(J,Ne.getSourceFile()))return{kind:Q.Enum,token:q,parentDeclaration:Ne}}}}}}function D($,L){return L.isJSFile?e.singleElementArray(le($,L)):oe($,L)}function le($,L){var P=L.parentDeclaration,N=L.declSourceFile,J=L.modifierFlags,q=L.token;if(!(e.isInterfaceDeclaration(P)||e.isTypeLiteralNode(P))){var G=e.textChanges.ChangeTracker.with($,function(b){return de(b,N,P,q,!!(J&32))});if(G.length!==0){var ye=J&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(q)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return ne.createCodeFixAction(K,G,[ye,q.text],K,e.Diagnostics.Add_all_missing_members)}}}function de($,L,P,N,J){var q=N.text;if(J){if(P.kind===228)return;var G=P.name.getText(),ye=te(e.factory.createIdentifier(G),q);$.insertNodeAfter(L,P,ye)}else if(e.isPrivateIdentifier(N)){var b=e.factory.createPropertyDeclaration(void 0,q,void 0,void 0,void 0),x=I(P);x?$.insertNodeAfter(L,x,b):$.insertMemberAtStart(L,P,b)}else{var T=e.getFirstConstructorWithBody(P);if(!T)return;var Z=te(e.factory.createThis(),q);$.insertNodeAtConstructorEnd(L,T,Z)}}function te($,L){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression($,L),X()))}function oe($,L){var P=L.parentDeclaration,N=L.declSourceFile,J=L.modifierFlags,q=L.token,G=q.text,ye=J&32,b=ae($.program.getTypeChecker(),P,q),x=function(Z){return e.textChanges.ChangeTracker.with($,function(B){return E(B,N,P,G,b,Z)})},T=[ne.createCodeFixAction(K,x(J&32),[ye?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,G],K,e.Diagnostics.Add_all_missing_members)];return ye||e.isPrivateIdentifier(q)||(J&8&&T.unshift(ne.createCodeFixActionWithoutFixAll(K,x(8),[e.Diagnostics.Declare_private_property_0,G])),T.push(f($,N,P,q.text,b))),T}function ae($,L,P){var N;if(P.parent.parent.kind===223){var J=P.parent.parent,q=P.parent===J.left?J.right:J.left,G=$.getWidenedType($.getBaseTypeOfLiteralType($.getTypeAtLocation(q)));N=$.typeToTypeNode(G,L,1)}else{var ye=$.getContextualType(P.parent);N=ye?$.typeToTypeNode(ye,void 0,1):void 0}return N||e.factory.createKeywordTypeNode(131)}function E($,L,P,N,J,q){var G=q?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(q)):void 0,ye=e.isClassLike(P)?e.factory.createPropertyDeclaration(G,N,void 0,J,void 0):e.factory.createPropertySignature(void 0,N,void 0,J),b=I(P);b?$.insertNodeAfter(L,b,ye):$.insertMemberAtStart(L,P,ye)}function I($){for(var L,P=0,N=$.members;P<N.length;P++){var J=N[P];if(!e.isPropertyDeclaration(J))break;L=J}return L}function f($,L,P,N,J){var q=e.factory.createKeywordTypeNode(152),G=e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,q,void 0),ye=e.factory.createIndexSignature(void 0,[G],J),b=e.textChanges.ChangeTracker.with($,function(x){return x.insertMemberAtStart(L,P,ye)});return ne.createCodeFixActionWithoutFixAll(K,b,[e.Diagnostics.Add_index_signature_for_property_0,N])}function m($,L){var P=L.parentDeclaration,N=L.declSourceFile,J=L.modifierFlags,q=L.token,G=L.call;if(G!==void 0&&!e.isPrivateIdentifier(q)){var ye=q.text,b=function(T){return e.textChanges.ChangeTracker.with($,function(Z){return y($,Z,G,q,T,P,N)})},x=[ne.createCodeFixAction(K,b(J&32),[J&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,ye],K,e.Diagnostics.Add_all_missing_members)];return J&8&&x.unshift(ne.createCodeFixActionWithoutFixAll(K,b(8),[e.Diagnostics.Declare_private_method_0,ye])),x}}function y($,L,P,N,J,q,G){var ye=ne.createImportAdder(G,$.program,$.preferences,$.host),b=e.isClassLike(q)?171:170,x=ne.createSignatureDeclarationFromCallExpression(b,$,ye,P,N,J,q),T=V(q,P);T?L.insertNodeAfter(G,T,x):L.insertMemberAtStart(G,q,x),ye.writeFixes(L)}function S($,L,P){var N=P.token,J=P.parentDeclaration,q=e.some(J.members,function(ye){var b=L.getTypeAtLocation(ye);return!!(b&&b.flags&402653316)}),G=e.factory.createEnumMember(N,q?e.factory.createStringLiteral(N.text):void 0);$.replaceNode(J.getSourceFile(),J,e.factory.updateEnumDeclaration(J,J.modifiers,J.name,e.concatenate(J.members,e.singleElementArray(G))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function k($,L,P){var N=e.getQuotePreference(L.sourceFile,L.preferences),J=ne.createImportAdder(L.sourceFile,L.program,L.preferences,L.host),q=P.kind===Q.Function?ne.createSignatureDeclarationFromCallExpression(259,L,J,P.call,e.idText(P.token),P.modifierFlags,P.parentDeclaration):ne.createSignatureDeclarationFromSignature(259,L,N,P.signature,ne.createStubbedBody(e.Diagnostics.Function_not_implemented.message,N),P.token,void 0,void 0,void 0,J);q===void 0&&e.Debug.fail("fixMissingFunctionDeclaration codefix got unexpected error."),e.isReturnStatement(P.parentDeclaration)?$.insertNodeBefore(P.sourceFile,P.parentDeclaration,q,!0):$.insertNodeAtEndOfScope(P.sourceFile,P.parentDeclaration,q),J.writeFixes($)}function C($,L,P){var N=ne.createImportAdder(L.sourceFile,L.program,L.preferences,L.host),J=e.getQuotePreference(L.sourceFile,L.preferences),q=L.program.getTypeChecker(),G=P.parentDeclaration.attributes,ye=e.some(G.properties,e.isJsxSpreadAttribute),b=e.map(P.attributes,function(Z){var B=De(L,q,N,J,q.getTypeOfSymbol(Z),P.parentDeclaration),u=e.factory.createIdentifier(Z.name),A=e.factory.createJsxAttribute(u,e.factory.createJsxExpression(void 0,B));return e.setParent(u,A),A}),x=e.factory.createJsxAttributes(ye?zn(zn([],b,!0),G.properties,!0):zn(zn([],G.properties,!0),b,!0)),T={prefix:G.pos===G.end?" ":void 0};$.replaceNode(L.sourceFile,G,x,T),N.writeFixes($)}function me($,L,P){var N=ne.createImportAdder(L.sourceFile,L.program,L.preferences,L.host),J=e.getQuotePreference(L.sourceFile,L.preferences),q=e.getEmitScriptTarget(L.program.getCompilerOptions()),G=L.program.getTypeChecker(),ye=e.map(P.properties,function(x){var T=De(L,G,N,J,G.getTypeOfSymbol(x),P.parentDeclaration);return e.factory.createPropertyAssignment(h(x,q,J,G),T)}),b={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:P.indentation};$.replaceNode(L.sourceFile,P.parentDeclaration,e.factory.createObjectLiteralExpression(zn(zn([],P.parentDeclaration.properties,!0),ye,!0),!0),b),N.writeFixes($)}function De($,L,P,N,J,q){if(J.flags&3)return X();if(J.flags&(4|134217728))return e.factory.createStringLiteral("",N===0);if(J.flags&8)return e.factory.createNumericLiteral(0);if(J.flags&64)return e.factory.createBigIntLiteral("0n");if(J.flags&16)return e.factory.createFalse();if(J.flags&1056){var G=J.symbol.exports?e.firstOrUndefined(e.arrayFrom(J.symbol.exports.values())):J.symbol,ye=L.symbolToExpression(J.symbol.parent?J.symbol.parent:J.symbol,111551,void 0,void 0);return G===void 0||ye===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(ye,L.symbolToString(G))}if(J.flags&256)return e.factory.createNumericLiteral(J.value);if(J.flags&2048)return e.factory.createBigIntLiteral(J.value);if(J.flags&128)return e.factory.createStringLiteral(J.value,N===0);if(J.flags&512)return J===L.getFalseType()||J===L.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(J.flags&65536)return e.factory.createNull();if(J.flags&1048576){var b=e.firstDefined(J.types,function(w){return De($,L,P,N,w,q)});return b!=null?b:X()}if(L.isArrayLikeType(J))return e.factory.createArrayLiteralExpression();if(M(J)){var x=e.map(L.getPropertiesOfType(J),function(w){var z=w.valueDeclaration?De($,L,P,N,L.getTypeAtLocation(w.valueDeclaration),q):X();return e.factory.createPropertyAssignment(w.name,z)});return e.factory.createObjectLiteralExpression(x,!0)}if(e.getObjectFlags(J)&16){var T=e.find(J.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(T===void 0)return X();var Z=L.getSignaturesOfType(J,0);if(Z===void 0)return X();var B=ne.createSignatureDeclarationFromSignature(215,$,N,Z[0],ne.createStubbedBody(e.Diagnostics.Function_not_implemented.message,N),void 0,void 0,void 0,q,P);return B!=null?B:X()}if(e.getObjectFlags(J)&1){var u=e.getClassLikeDeclarationOfSymbol(J.symbol);if(u===void 0||e.hasAbstractModifier(u))return X();var A=e.getFirstConstructorWithBody(u);return A&&e.length(A.parameters)?X():e.factory.createNewExpression(e.factory.createIdentifier(J.symbol.name),void 0,void 0)}return X()}function X(){return e.factory.createIdentifier("undefined")}function M($){return $.flags&524288&&(e.getObjectFlags($)&128||$.symbol&&e.tryCast(e.singleOrUndefined($.symbol.declarations),e.isTypeLiteralNode))}function H($,L,P){var N=$.getContextualType(P.attributes);if(N===void 0)return e.emptyArray;var J=N.getProperties();if(!e.length(J))return e.emptyArray;for(var q=new e.Set,G=0,ye=P.attributes.properties;G<ye.length;G++){var b=ye[G];if(e.isJsxAttribute(b)&&q.add(b.name.escapedText),e.isJsxSpreadAttribute(b))for(var x=$.getTypeAtLocation(b.expression),T=0,Z=x.getProperties();T<Z.length;T++){var B=Z[T];q.add(B.escapedName)}}return e.filter(J,function(u){return e.isIdentifierText(u.name,L,1)&&!(u.flags&16777216||e.getCheckFlags(u)&48||q.has(u.escapedName))})}function V($,L){if(!e.isTypeLiteralNode($)){var P=e.findAncestor(L,function(N){return e.isMethodDeclaration(N)||e.isConstructorDeclaration(N)});return P&&P.parent===$?P:void 0}}function h($,L,P,N){if(e.isTransientSymbol($)){var J=N.symbolToNode($,111551,void 0,1073741824);if(J&&e.isComputedPropertyName(J))return J}return e.createPropertyNameNodeForIdentifierOrLiteral($.name,L,P===0)}function F($){if(e.findAncestor($,e.isJsxExpression)){var L=e.findAncestor($.parent,e.isReturnStatement);if(L)return L}return e.getSourceFileOfNode($)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addMissingNewOperator",se=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.span,D=e.textChanges.ChangeTracker.with(_e,function(le){return O(le,Q,p)});return[ne.createCodeFixAction(K,D,e.Diagnostics.Add_missing_new_operator_to_call,K,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){return O(Q,_e.sourceFile,p)})}});function O(_e,Q,p){var D=e.cast(ie(Q,p),e.isCallExpression),le=e.factory.createNewExpression(D.expression,D.typeArguments,D.arguments);_e.replaceNode(Q,D,le)}function ie(_e,Q){for(var p=e.getTokenAtPosition(_e,Q.start),D=e.textSpanEnd(Q);p.end<D;)p=p.parent;return p}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixCannotFindModule",se="installTypesPackage",O=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ie=[O,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];ne.registerCodeFix({errorCodes:ie,getCodeActions:function(le){var de=le.host,te=le.sourceFile,oe=le.span.start,ae=Q(te,oe);if(ae!==void 0){var E=p(ae,de,le.errorCode);return E===void 0?[]:[ne.createCodeFixAction(K,[],[e.Diagnostics.Install_0,E],se,e.Diagnostics.Install_all_missing_types_packages,_e(te.fileName,E))]}},fixIds:[se],getAllCodeActions:function(D){return ne.codeFixAll(D,ie,function(le,de,te){var oe=Q(de.file,de.start);if(oe!==void 0)switch(D.fixId){case se:{var ae=p(oe,D.host,de.code);ae&&te.push(_e(de.file.fileName,ae));break}default:e.Debug.fail("Bad fixId: ".concat(D.fixId))}})}});function _e(D,le){return{type:"install package",file:D,packageName:le}}function Q(D,le){var de=e.tryCast(e.getTokenAtPosition(D,le),e.isStringLiteral);if(!!de){var te=de.text,oe=e.parsePackageName(te).packageName;return e.isExternalModuleNameRelative(oe)?void 0:oe}}function p(D,le,de){var te;return de===O?e.JsTyping.nodeCoreModules.has(D)?"@types/node":void 0:((te=le.isKnownTypesPackageName)===null||te===void 0?void 0:te.call(le,D))?e.getTypesPackageName(D):void 0}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],se="fixClassDoesntImplementInheritedAbstractMember";ne.registerCodeFix({errorCodes:K,getCodeActions:function(p){var D=p.sourceFile,le=p.span,de=e.textChanges.ChangeTracker.with(p,function(te){return ie(O(D,le.start),D,p,te,p.preferences)});return de.length===0?void 0:[ne.createCodeFixAction(se,de,e.Diagnostics.Implement_inherited_abstract_class,se,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[se],getAllCodeActions:function(p){var D=new e.Map;return ne.codeFixAll(p,K,function(le,de){var te=O(de.file,de.start);e.addToSeen(D,e.getNodeId(te))&&ie(te,p.sourceFile,p,le,p.preferences)})}});function O(Q,p){var D=e.getTokenAtPosition(Q,p);return e.cast(D.parent,e.isClassLike)}function ie(Q,p,D,le,de){var te=e.getEffectiveBaseTypeNode(Q),oe=D.program.getTypeChecker(),ae=oe.getTypeAtLocation(te),E=oe.getPropertiesOfType(ae).filter(_e),I=ne.createImportAdder(p,D.program,de,D.host);ne.createMissingMemberNodes(Q,E,p,D,de,I,function(f){return le.insertMemberAtStart(p,Q,f)}),I.writeFixes(le)}function _e(Q){var p=e.getSyntacticModifierFlags(e.first(Q.getDeclarations()));return!(p&8)&&!!(p&256)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="classSuperMustPrecedeThisAccess",se=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.span,le=ie(p,D.start);if(!!le){var de=le.constructor,te=le.superCall,oe=e.textChanges.ChangeTracker.with(Q,function(ae){return O(ae,p,de,te)});return[ne.createCodeFixAction(K,oe,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,K,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[K],getAllCodeActions:function(Q){var p=Q.sourceFile,D=new e.Map;return ne.codeFixAll(Q,se,function(le,de){var te=ie(de.file,de.start);if(!!te){var oe=te.constructor,ae=te.superCall;e.addToSeen(D,e.getNodeId(oe.parent))&&O(le,p,oe,ae)}})}});function O(Q,p,D,le){Q.insertNodeAtConstructorStart(p,D,le),Q.delete(p,le)}function ie(Q,p){var D=e.getTokenAtPosition(Q,p);if(D.kind===108){var le=e.getContainingFunction(D),de=_e(le.body);return de&&!de.expression.arguments.some(function(te){return e.isPropertyAccessExpression(te)&&te.expression===D})?{constructor:le,superCall:de}:void 0}}function _e(Q){return e.isExpressionStatement(Q)&&e.isSuperCall(Q.expression)?Q:e.isFunctionLike(Q)?void 0:e.forEachChild(Q,_e)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="constructorForDerivedNeedSuperCall",se=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.span,D=O(Q,p.start),le=e.textChanges.ChangeTracker.with(_e,function(de){return ie(de,Q,D)});return[ne.createCodeFixAction(K,le,e.Diagnostics.Add_missing_super_call,K,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){return ie(Q,_e.sourceFile,O(p.file,p.start))})}});function O(_e,Q){var p=e.getTokenAtPosition(_e,Q);return e.Debug.assert(e.isConstructorDeclaration(p.parent),"token should be at the constructor declaration"),p.parent}function ie(_e,Q,p){var D=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));_e.insertNodeAtConstructorStart(Q,p,D)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="enableExperimentalDecorators",se=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.program.getCompilerOptions().configFile;if(Q!==void 0){var p=e.textChanges.ChangeTracker.with(_e,function(D){return O(D,Q)});return[ne.createCodeFixActionWithoutFixAll(K,p,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e){var Q=ie.program.getCompilerOptions().configFile;Q!==void 0&&O(_e,Q)})}});function O(ie,_e){ne.setJsonCompilerOptionValue(ie,_e,"experimentalDecorators",e.factory.createTrue())}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixEnableJsxFlag",se=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.program.getCompilerOptions().configFile;if(Q!==void 0){var p=e.textChanges.ChangeTracker.with(_e,function(D){return O(D,Q)});return[ne.createCodeFixActionWithoutFixAll(K,p,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e){var Q=ie.program.getCompilerOptions().configFile;Q!==void 0&&O(_e,Q)})}});function O(ie,_e){ne.setJsonCompilerOptionValue(ie,_e,"jsx",e.factory.createStringLiteral("react"))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixNaNEquality",se=[e.Diagnostics.This_condition_will_always_return_0.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.span,le=Q.program,de=O(le,p,D);if(de!==void 0){var te=de.suggestion,oe=de.expression,ae=de.arg,E=e.textChanges.ChangeTracker.with(Q,function(I){return ie(I,p,ae,oe)});return[ne.createCodeFixAction(K,E,[e.Diagnostics.Use_0,te],K,e.Diagnostics.Use_Number_isNaN_in_all_conditions)]}},fixIds:[K],getAllCodeActions:function(Q){return ne.codeFixAll(Q,se,function(p,D){var le=O(Q.program,D.file,e.createTextSpan(D.start,D.length));le&&ie(p,D.file,le.arg,le.expression)})}});function O(Q,p,D){var le=e.find(Q.getSemanticDiagnostics(p),function(oe){return oe.start===D.start&&oe.length===D.length});if(!(le===void 0||le.relatedInformation===void 0)){var de=e.find(le.relatedInformation,function(oe){return oe.code===e.Diagnostics.Did_you_mean_0.code});if(!(de===void 0||de.file===void 0||de.start===void 0||de.length===void 0)){var te=ne.findAncestorMatchingSpan(de.file,e.createTextSpan(de.start,de.length));if(te!==void 0&&e.isExpression(te)&&e.isBinaryExpression(te.parent))return{suggestion:_e(de.messageText),expression:te.parent,arg:te}}}}function ie(Q,p,D,le){var de=e.factory.createCallExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Number"),e.factory.createIdentifier("isNaN")),void 0,[D]),te=le.operatorToken.kind;Q.replaceNode(p,le,te===37||te===35?e.factory.createPrefixUnaryExpression(53,de):de)}function _e(Q){var p=e.flattenDiagnosticMessageText(Q,`
  267. `,0).match(/\'(.*)\'/)||[],D=p[0],le=p[1];return le}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){ne.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(se){var O=se.program.getCompilerOptions(),ie=O.configFile;if(ie!==void 0){var _e=[],Q=e.getEmitModuleKind(O),p=Q>=e.ModuleKind.ES2015&&Q<e.ModuleKind.ESNext;if(p){var D=e.textChanges.ChangeTracker.with(se,function(te){ne.setJsonCompilerOptionValue(te,ie,"module",e.factory.createStringLiteral("esnext"))});_e.push(ne.createCodeFixActionWithoutFixAll("fixModuleOption",D,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var le=e.getEmitScriptTarget(O),de=le<4||le>99;if(de){var D=e.textChanges.ChangeTracker.with(se,function(oe){var ae=e.getTsConfigObjectLiteralExpression(ie);if(!!ae){var E=[["target",e.factory.createStringLiteral("es2017")]];Q===e.ModuleKind.CommonJS&&E.push(["module",e.factory.createStringLiteral("commonjs")]),ne.setJsonCompilerOptionValues(oe,ie,E)}});_e.push(ne.createCodeFixActionWithoutFixAll("fixTargetOption",D,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return _e.length?_e:void 0}}})})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixPropertyAssignment",se=[e.Diagnostics.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];ne.registerCodeFix({errorCodes:se,fixIds:[K],getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.span,D=ie(Q,p.start),le=e.textChanges.ChangeTracker.with(_e,function(de){return O(de,_e.sourceFile,D)});return[ne.createCodeFixAction(K,le,[e.Diagnostics.Change_0_to_1,"=",":"],K,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){return O(Q,p.file,ie(p.file,p.start))})}});function O(_e,Q,p){_e.replaceNode(Q,p,e.factory.createPropertyAssignment(p.name,p.objectAssignmentInitializer))}function ie(_e,Q){return e.cast(e.getTokenAtPosition(_e,Q).parent,e.isShorthandPropertyAssignment)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="extendsInterfaceBecomesImplements",se=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.sourceFile,p=O(Q,_e.span.start);if(!!p){var D=p.extendsToken,le=p.heritageClauses,de=e.textChanges.ChangeTracker.with(_e,function(te){return ie(te,Q,D,le)});return[ne.createCodeFixAction(K,de,e.Diagnostics.Change_extends_to_implements,K,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=O(p.file,p.start);D&&ie(Q,p.file,D.extendsToken,D.heritageClauses)})}});function O(_e,Q){var p=e.getTokenAtPosition(_e,Q),D=e.getContainingClass(p).heritageClauses,le=D[0].getFirstToken();return le.kind===94?{extendsToken:le,heritageClauses:D}:void 0}function ie(_e,Q,p,D){if(_e.replaceNode(Q,p,e.factory.createToken(117)),D.length===2&&D[0].token===94&&D[1].token===117){var le=D[1].getFirstToken(),de=le.getFullStart();_e.replaceRange(Q,{pos:de,end:de},e.factory.createToken(27));for(var te=Q.text,oe=le.end;oe<te.length&&e.isWhiteSpaceSingleLine(te.charCodeAt(oe));)oe++;_e.deleteRange(Q,{pos:le.getStart(),end:oe})}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="forgottenThisPropertyAccess",se=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,O=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.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,se];ne.registerCodeFix({errorCodes:O,getCodeActions:function(Q){var p=Q.sourceFile,D=ie(p,Q.span.start,Q.errorCode);if(!!D){var le=e.textChanges.ChangeTracker.with(Q,function(de){return _e(de,p,D)});return[ne.createCodeFixAction(K,le,[e.Diagnostics.Add_0_to_unresolved_variable,D.className||"this"],K,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[K],getAllCodeActions:function(Q){return ne.codeFixAll(Q,O,function(p,D){var le=ie(D.file,D.start,D.code);le&&_e(p,Q.sourceFile,le)})}});function ie(Q,p,D){var le=e.getTokenAtPosition(Q,p);if(e.isIdentifier(le)||e.isPrivateIdentifier(le))return{node:le,className:D===se?e.getContainingClass(le).name.text:void 0}}function _e(Q,p,D){var le=D.node,de=D.className;e.suppressLeadingAndTrailingTrivia(le),Q.replaceNode(p,le,e.factory.createPropertyAccessExpression(de?e.factory.createIdentifier(de):e.factory.createThis(),le))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixInvalidJsxCharacters_expression",se="fixInvalidJsxCharacters_htmlEntity",O=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];ne.registerCodeFix({errorCodes:O,fixIds:[K,se],getCodeActions:function(p){var D=p.sourceFile,le=p.preferences,de=p.span,te=e.textChanges.ChangeTracker.with(p,function(ae){return Q(ae,le,D,de.start,!1)}),oe=e.textChanges.ChangeTracker.with(p,function(ae){return Q(ae,le,D,de.start,!0)});return[ne.createCodeFixAction(K,te,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,K,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),ne.createCodeFixAction(se,oe,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,se,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(p){return ne.codeFixAll(p,O,function(D,le){return Q(D,p.preferences,le.file,le.start,p.fixId===se)})}});var ie={">":"&gt;","}":"&rbrace;"};function _e(p){return e.hasProperty(ie,p)}function Q(p,D,le,de,te){var oe=le.getText()[de];if(!!_e(oe)){var ae=te?ie[oe]:"{".concat(e.quote(le,D,oe),"}");p.replaceRangeWithText(le,{pos:de,end:de+1},ae)}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="deleteUnmatchedParameter",se="renameUnmatchedParameter",O=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];ne.registerCodeFix({fixIds:[K,se],errorCodes:O,getCodeActions:function(D){var le=D.sourceFile,de=D.span,te=[],oe=Q(le,de.start);if(oe)return e.append(te,ie(D,oe)),e.append(te,_e(D,oe)),te},getAllCodeActions:function(D){var le=new e.Map;return ne.createCombinedCodeActions(e.textChanges.ChangeTracker.with(D,function(de){ne.eachDiagnostic(D,O,function(te){var oe=te.file,ae=te.start,E=Q(oe,ae);E&&le.set(E.signature,e.append(le.get(E.signature),E.jsDocParameterTag))}),le.forEach(function(te,oe){if(D.fixId===K){var ae=new e.Set(te);de.filterJSDocTags(oe.getSourceFile(),oe,function(E){return!ae.has(E)})}})}))}});function ie(p,D){var le=D.name,de=D.signature,te=D.jsDocParameterTag,oe=e.textChanges.ChangeTracker.with(p,function(ae){return ae.filterJSDocTags(p.sourceFile,de,function(E){return E!==te})});return ne.createCodeFixAction(K,oe,[e.Diagnostics.Delete_unused_param_tag_0,le.getText(p.sourceFile)],K,e.Diagnostics.Delete_all_unused_param_tags)}function _e(p,D){var le=D.name,de=D.signature,te=D.jsDocParameterTag;if(!!e.length(de.parameters)){for(var oe=p.sourceFile,ae=e.getJSDocTags(de),E=new e.Set,I=0,f=ae;I<f.length;I++){var m=f[I];e.isJSDocParameterTag(m)&&e.isIdentifier(m.name)&&E.add(m.name.escapedText)}var y=e.firstDefined(de.parameters,function(C){return e.isIdentifier(C.name)&&!E.has(C.name.escapedText)?C.name.getText(oe):void 0});if(y!==void 0){var S=e.factory.updateJSDocParameterTag(te,te.tagName,e.factory.createIdentifier(y),te.isBracketed,te.typeExpression,te.isNameFirst,te.comment),k=e.textChanges.ChangeTracker.with(p,function(C){return C.replaceJSDocComment(oe,de,e.map(ae,function(me){return me===te?S:me}))});return ne.createCodeFixActionWithoutFixAll(se,k,[e.Diagnostics.Rename_param_tag_name_0_to_1,le.getText(oe),y])}}}function Q(p,D){var le=e.getTokenAtPosition(p,D);if(le.parent&&e.isJSDocParameterTag(le.parent)&&e.isIdentifier(le.parent.name)){var de=le.parent,te=e.getHostSignatureFromJSDoc(de);if(te)return{signature:te,name:le.parent.name,jsDocParameterTag:de}}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixUnreferenceableDecoratorMetadata",se=[e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=O(Q.sourceFile,Q.program,Q.span.start);if(!!p){var D=e.textChanges.ChangeTracker.with(Q,function(te){return p.kind===273&&_e(te,Q.sourceFile,p,Q.program)}),le=e.textChanges.ChangeTracker.with(Q,function(te){return ie(te,Q.sourceFile,p,Q.program)}),de;return D.length&&(de=e.append(de,ne.createCodeFixActionWithoutFixAll(K,D,e.Diagnostics.Convert_named_imports_to_namespace_import))),le.length&&(de=e.append(de,ne.createCodeFixActionWithoutFixAll(K,le,e.Diagnostics.Convert_to_type_only_import))),de}},fixIds:[K]});function O(Q,p,D){var le=e.tryCast(e.getTokenAtPosition(Q,D),e.isIdentifier);if(!(!le||le.parent.kind!==180)){var de=p.getTypeChecker(),te=de.getSymbolAtLocation(le);return e.find((te==null?void 0:te.declarations)||e.emptyArray,e.or(e.isImportClause,e.isImportSpecifier,e.isImportEqualsDeclaration))}}function ie(Q,p,D,le){if(D.kind===268){Q.insertModifierBefore(p,154,D.name);return}var de=D.kind===270?D:D.parent.parent;if(!(de.name&&de.namedBindings)){var te=le.getTypeChecker(),oe=!!e.forEachImportClauseDeclaration(de,function(ae){if(e.skipAlias(ae.symbol,te).flags&111551)return!0});oe||Q.insertModifierBefore(p,154,de)}}function _e(Q,p,D,le){e.refactor.doChangeNamedToNamespaceOrDefault(p,le,Q,D.parent)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="unusedIdentifier",se="unusedIdentifier_prefix",O="unusedIdentifier_delete",ie="unusedIdentifier_deleteImports",_e="unusedIdentifier_infer",Q=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];ne.registerCodeFix({errorCodes:Q,getCodeActions:function(M){var H=M.errorCode,V=M.sourceFile,h=M.program,F=M.cancellationToken,$=h.getTypeChecker(),L=h.getSourceFiles(),P=e.getTokenAtPosition(V,M.span.start);if(e.isJSDocTemplateTag(P))return[D(e.textChanges.ChangeTracker.with(M,function(Z){return Z.delete(V,P)}),e.Diagnostics.Remove_template_tag)];if(P.kind===29){var N=e.textChanges.ChangeTracker.with(M,function(Z){return le(Z,V,P)});return[D(N,e.Diagnostics.Remove_type_parameters)]}var J=te(P);if(J){var N=e.textChanges.ChangeTracker.with(M,function(B){return B.delete(V,J)});return[ne.createCodeFixAction(K,N,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(J)],ie,e.Diagnostics.Delete_all_unused_imports)]}else if(de(P)){var q=e.textChanges.ChangeTracker.with(M,function(Z){return m(V,P,Z,$,L,h,F,!1)});if(q.length)return[ne.createCodeFixAction(K,q,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,P.getText(V)],ie,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(P.parent)||e.isArrayBindingPattern(P.parent)){if(e.isParameter(P.parent.parent)){var G=P.parent.elements,ye=[G.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(G,function(Z){return Z.getText(V)}).join(", ")];return[D(e.textChanges.ChangeTracker.with(M,function(Z){return E(Z,V,P.parent)}),ye)]}return[D(e.textChanges.ChangeTracker.with(M,function(Z){return Z.delete(V,P.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(oe(V,P))return[D(e.textChanges.ChangeTracker.with(M,function(Z){return ae(Z,V,P.parent)}),e.Diagnostics.Remove_variable_statement)];var b=[];if(P.kind===138){var N=e.textChanges.ChangeTracker.with(M,function(B){return p(B,V,P)}),x=e.cast(P.parent,e.isInferTypeNode).typeParameter.name.text;b.push(ne.createCodeFixAction(K,N,[e.Diagnostics.Replace_infer_0_with_unknown,x],_e,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var q=e.textChanges.ChangeTracker.with(M,function(B){return m(V,P,B,$,L,h,F,!1)});if(q.length){var x=e.isComputedPropertyName(P.parent)?P.parent:P;b.push(D(q,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,x.getText(V)]))}}var T=e.textChanges.ChangeTracker.with(M,function(Z){return I(Z,H,V,P)});return T.length&&b.push(ne.createCodeFixAction(K,T,[e.Diagnostics.Prefix_0_with_an_underscore,P.getText(V)],se,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),b},fixIds:[se,O,ie,_e],getAllCodeActions:function(M){var H=M.sourceFile,V=M.program,h=M.cancellationToken,F=V.getTypeChecker(),$=V.getSourceFiles();return ne.codeFixAll(M,Q,function(L,P){var N=e.getTokenAtPosition(H,P.start);switch(M.fixId){case se:I(L,P.code,H,N);break;case ie:{var J=te(N);J?L.delete(H,J):de(N)&&m(H,N,L,F,$,V,h,!0);break}case O:{if(N.kind===138||de(N))break;if(e.isJSDocTemplateTag(N))L.delete(H,N);else if(N.kind===29)le(L,H,N);else if(e.isObjectBindingPattern(N.parent)){if(N.parent.parent.initializer)break;(!e.isParameter(N.parent.parent)||k(N.parent.parent,F,$))&&L.delete(H,N.parent.parent)}else{if(e.isArrayBindingPattern(N.parent.parent)&&N.parent.parent.parent.initializer)break;oe(H,N)?ae(L,H,N.parent):m(H,N,L,F,$,V,h,!0)}break}case _e:N.kind===138&&p(L,H,N);break;default:e.Debug.fail(JSON.stringify(M.fixId))}})}});function p(M,H,V){M.replaceNode(H,V.parent,e.factory.createKeywordTypeNode(157))}function D(M,H){return ne.createCodeFixAction(K,M,H,O,e.Diagnostics.Delete_all_unused_declarations)}function le(M,H,V){M.delete(H,e.Debug.checkDefined(e.cast(V.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function de(M){return M.kind===100||M.kind===79&&(M.parent.kind===273||M.parent.kind===270)}function te(M){return M.kind===100?e.tryCast(M.parent,e.isImportDeclaration):void 0}function oe(M,H){return e.isVariableDeclarationList(H.parent)&&e.first(H.parent.getChildren(M))===H}function ae(M,H,V){M.delete(H,V.parent.kind===240?V.parent:V)}function E(M,H,V){e.forEach(V.elements,function(h){return M.delete(H,h)})}function I(M,H,V,h){H!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(h.kind===138&&(h=e.cast(h.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(h)&&f(h)&&(M.replaceNode(V,h,e.factory.createIdentifier("_".concat(h.text))),e.isParameter(h.parent)&&e.getJSDocParameterTags(h.parent).forEach(function(F){e.isIdentifier(F.name)&&M.replaceNode(V,F.name,e.factory.createIdentifier("_".concat(F.name.text)))})))}function f(M){switch(M.parent.kind){case 166:case 165:return!0;case 257:{var H=M.parent;switch(H.parent.parent.kind){case 247:case 246:return!0}}}return!1}function m(M,H,V,h,F,$,L,P){y(H,V,M,h,F,$,L,P),e.isIdentifier(H)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(H,h,M,function(N){e.isPropertyAccessExpression(N.parent)&&N.parent.name===N&&(N=N.parent),!P&&X(N)&&V.delete(M,N.parent.parent)})}function y(M,H,V,h,F,$,L,P){var N=M.parent;if(e.isParameter(N))S(H,V,N,h,F,$,L,P);else if(!(P&&e.isIdentifier(M)&&e.FindAllReferences.Core.isSymbolReferencedInFile(M,h,V))){var J=e.isImportClause(N)?M:e.isComputedPropertyName(N)?N.parent:N;e.Debug.assert(J!==V,"should not delete whole source file"),H.delete(V,J)}}function S(M,H,V,h,F,$,L,P){if(P===void 0&&(P=!1),C(h,H,V,F,$,L,P))if(V.modifiers&&V.modifiers.length>0&&(!e.isIdentifier(V.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(V.name,h,H)))for(var N=0,J=V.modifiers;N<J.length;N++){var q=J[N];e.isModifier(q)&&M.deleteModifier(H,q)}else!V.initializer&&k(V,h,F)&&M.delete(H,V)}function k(M,H,V){var h=M.parent.parameters.indexOf(M);return!e.FindAllReferences.Core.someSignatureUsage(M.parent,V,H,function(F,$){return!$||$.arguments.length>h})}function C(M,H,V,h,F,$,L){var P=V.parent;switch(P.kind){case 171:case 173:var N=P.parameters.indexOf(V),J=e.isMethodDeclaration(P)?P.name:P,q=e.FindAllReferences.Core.getReferencedSymbolsForNode(P.pos,J,F,h,$);if(q)for(var G=0,ye=q;G<ye.length;G++)for(var b=ye[G],x=0,T=b.references;x<T.length;x++){var Z=T[x];if(Z.kind===1){var B=e.isSuperKeyword(Z.node)&&e.isCallExpression(Z.node.parent)&&Z.node.parent.arguments.length>N,u=e.isPropertyAccessExpression(Z.node.parent)&&e.isSuperKeyword(Z.node.parent.expression)&&e.isCallExpression(Z.node.parent.parent)&&Z.node.parent.parent.arguments.length>N,A=(e.isMethodDeclaration(Z.node.parent)||e.isMethodSignature(Z.node.parent))&&Z.node.parent!==V.parent&&Z.node.parent.parameters.length>N;if(B||u||A)return!1}}return!0;case 259:return P.name&&me(M,H,P.name)?De(P,V,L):!0;case 215:case 216:return De(P,V,L);case 175:return!1;case 174:return!0;default:return e.Debug.failBadSyntaxKind(P)}}function me(M,H,V){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(V,M,H,function(h){return e.isIdentifier(h)&&e.isCallExpression(h.parent)&&h.parent.arguments.indexOf(h)>=0})}function De(M,H,V){var h=M.parameters,F=h.indexOf(H);return e.Debug.assert(F!==-1,"The parameter should already be in the list"),V?h.slice(F+1).every(function($){return e.isIdentifier($.name)&&!$.symbol.isReferenced}):F===h.length-1}function X(M){return(e.isBinaryExpression(M.parent)&&M.parent.left===M||(e.isPostfixUnaryExpression(M.parent)||e.isPrefixUnaryExpression(M.parent))&&M.parent.operand===M)&&e.isExpressionStatement(M.parent.parent)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixUnreachableCode",se=[e.Diagnostics.Unreachable_code_detected.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.program.getSyntacticDiagnostics(_e.sourceFile,_e.cancellationToken);if(!Q.length){var p=e.textChanges.ChangeTracker.with(_e,function(D){return O(D,_e.sourceFile,_e.span.start,_e.span.length,_e.errorCode)});return[ne.createCodeFixAction(K,p,e.Diagnostics.Remove_unreachable_code,K,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){return O(Q,p.file,p.start,p.length,p.code)})}});function O(_e,Q,p,D,le){var de=e.getTokenAtPosition(Q,p),te=e.findAncestor(de,e.isStatement);if(te.getStart(Q)!==de.getStart(Q)){var oe=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(te.kind),tokenKind:e.Debug.formatSyntaxKind(de.kind),errorCode:le,start:p,length:D});e.Debug.fail("Token and statement should start at the same point. "+oe)}var ae=(e.isBlock(te.parent)?te.parent:te).parent;if(!e.isBlock(te.parent)||te===e.first(te.parent.statements))switch(ae.kind){case 242:if(ae.elseStatement){if(e.isBlock(te.parent))break;_e.replaceNode(Q,te,e.factory.createBlock(e.emptyArray));return}case 244:case 245:_e.delete(Q,ae);return}if(e.isBlock(te.parent)){var E=p+D,I=e.Debug.checkDefined(ie(e.sliceAfter(te.parent.statements,te),function(f){return f.pos<E}),"Some statement should be last");_e.deleteNodeRange(Q,te,I)}else _e.delete(Q,te)}function ie(_e,Q){for(var p,D=0,le=_e;D<le.length;D++){var de=le[D];if(!Q(de))break;p=de}return p}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixUnusedLabel",se=[e.Diagnostics.Unused_label.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(ie){var _e=e.textChanges.ChangeTracker.with(ie,function(Q){return O(Q,ie.sourceFile,ie.span.start)});return[ne.createCodeFixAction(K,_e,e.Diagnostics.Remove_unused_label,K,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e,Q){return O(_e,Q.file,Q.start)})}});function O(ie,_e,Q){var p=e.getTokenAtPosition(_e,Q),D=e.cast(p.parent,e.isLabeledStatement),le=p.getStart(_e),de=D.statement.getStart(_e),te=e.positionsAreOnSameLine(le,de,_e)?de:e.skipTrivia(_e.text,e.findChildOfKind(D,58,_e).end,!0);ie.deleteRange(_e,{pos:le,end:te})}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixJSDocTypes_plain",se="fixJSDocTypes_nullable",O=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];ne.registerCodeFix({errorCodes:O,getCodeActions:function(p){var D=p.sourceFile,le=p.program.getTypeChecker(),de=_e(D,p.span.start,le);if(!de)return;var te=de.typeNode,oe=de.type,ae=te.getText(D),E=[I(oe,K,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return te.kind===317&&E.push(I(le.getNullableType(oe,32768),se,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),E;function I(f,m,y){var S=e.textChanges.ChangeTracker.with(p,function(k){return ie(k,D,te,f,le)});return ne.createCodeFixAction("jdocTypes",S,[e.Diagnostics.Change_0_to_1,ae,le.typeToString(f)],m,y)}},fixIds:[K,se],getAllCodeActions:function(p){var D=p.fixId,le=p.program,de=p.sourceFile,te=le.getTypeChecker();return ne.codeFixAll(p,O,function(oe,ae){var E=_e(ae.file,ae.start,te);if(!!E){var I=E.typeNode,f=E.type,m=I.kind===317&&D===se?te.getNullableType(f,32768):f;ie(oe,de,I,m,te)}})}});function ie(p,D,le,de,te){p.replaceNode(D,le,te.typeToTypeNode(de,le,void 0))}function _e(p,D,le){var de=e.findAncestor(e.getTokenAtPosition(p,D),Q),te=de&&de.type;return te&&{typeNode:te,type:le.getTypeFromTypeNode(te)}}function Q(p){switch(p.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixMissingCallParentheses",se=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];ne.registerCodeFix({errorCodes:se,fixIds:[K],getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.span,D=ie(Q,p.start);if(!!D){var le=e.textChanges.ChangeTracker.with(_e,function(de){return O(de,_e.sourceFile,D)});return[ne.createCodeFixAction(K,le,e.Diagnostics.Add_missing_call_parentheses,K,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=ie(p.file,p.start);D&&O(Q,p.file,D)})}});function O(_e,Q,p){_e.replaceNodeWithText(Q,p,"".concat(p.text,"()"))}function ie(_e,Q){var p=e.getTokenAtPosition(_e,Q);if(e.isPropertyAccessExpression(p.parent)){for(var D=p.parent;e.isPropertyAccessExpression(D.parent);)D=D.parent;return D.name}if(e.isIdentifier(p))return p}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixAwaitInSyncFunction",se=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.span,le=ie(p,D.start);if(!!le){var de=e.textChanges.ChangeTracker.with(Q,function(te){return _e(te,p,le)});return[ne.createCodeFixAction(K,de,e.Diagnostics.Add_async_modifier_to_containing_function,K,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[K],getAllCodeActions:function(p){var D=new e.Map;return ne.codeFixAll(p,se,function(le,de){var te=ie(de.file,de.start);!te||!e.addToSeen(D,e.getNodeId(te.insertBefore))||_e(le,p.sourceFile,te)})}});function O(Q){if(Q.type)return Q.type;if(e.isVariableDeclaration(Q.parent)&&Q.parent.type&&e.isFunctionTypeNode(Q.parent.type))return Q.parent.type.type}function ie(Q,p){var D=e.getTokenAtPosition(Q,p),le=e.getContainingFunction(D);if(!!le){var de;switch(le.kind){case 171:de=le.name;break;case 259:case 215:de=e.findChildOfKind(le,98,Q);break;case 216:var te=le.typeParameters?29:20;de=e.findChildOfKind(le,te,Q)||e.first(le.parameters);break;default:return}return de&&{insertBefore:de,returnType:O(le)}}}function _e(Q,p,D){var le=D.insertBefore,de=D.returnType;if(de){var te=e.getEntityNameFromTypeNode(de);(!te||te.kind!==79||te.text!=="Promise")&&Q.replaceNode(p,de,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([de])))}Q.insertModifierBefore(p,132,le)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],se="fixPropertyOverrideAccessor";ne.registerCodeFix({errorCodes:K,getCodeActions:function(ie){var _e=O(ie.sourceFile,ie.span.start,ie.span.length,ie.errorCode,ie);if(_e)return[ne.createCodeFixAction(se,_e,e.Diagnostics.Generate_get_and_set_accessors,se,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[se],getAllCodeActions:function(ie){return ne.codeFixAll(ie,K,function(_e,Q){var p=O(Q.file,Q.start,Q.length,Q.code,ie);if(p)for(var D=0,le=p;D<le.length;D++){var de=le[D];_e.pushRaw(ie.sourceFile,de)}})}});function O(ie,_e,Q,p,D){var le,de;if(p===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)le=_e,de=_e+Q;else if(p===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var te=D.program.getTypeChecker(),oe=e.getTokenAtPosition(ie,_e).parent;e.Debug.assert(e.isAccessor(oe),"error span of fixPropertyOverrideAccessor should only be on an accessor");var ae=oe.parent;e.Debug.assert(e.isClassLike(ae),"erroneous accessors should only be inside classes");var E=e.singleOrUndefined(ne.getAllSupers(ae,te));if(!E)return[];var I=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(oe.name)),f=te.getPropertyOfType(te.getTypeAtLocation(E),I);if(!f||!f.valueDeclaration)return[];le=f.valueDeclaration.pos,de=f.valueDeclaration.end,ie=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+p);return ne.generateAccessorFromProperty(ie,D.program,le,de,D,e.Diagnostics.Generate_get_and_set_accessors.message)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="inferFromUsage",se=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(S){var k=S.sourceFile,C=S.program,me=S.span.start,De=S.errorCode,X=S.cancellationToken,M=S.host,H=S.preferences,V=e.getTokenAtPosition(k,me),h,F=e.textChanges.ChangeTracker.with(S,function(L){h=_e(L,k,V,De,C,X,e.returnTrue,M,H)}),$=h&&e.getNameOfDeclaration(h);return!$||F.length===0?void 0:[ne.createCodeFixAction(K,F,[O(De,V),e.getTextOfNode($)],K,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[K],getAllCodeActions:function(S){var k=S.sourceFile,C=S.program,me=S.cancellationToken,De=S.host,X=S.preferences,M=e.nodeSeenTracker();return ne.codeFixAll(S,se,function(H,V){_e(H,k,e.getTokenAtPosition(V.file,V.start),V.code,C,me,M,De,X)})}});function O(S,k){switch(S){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(k))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function ie(S){switch(S){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return S}function _e(S,k,C,me,De,X,M,H,V){if(!(!e.isParameterPropertyModifier(C.kind)&&C.kind!==79&&C.kind!==25&&C.kind!==108)){var h=C.parent,F=ne.createImportAdder(k,De,V,H);switch(me=ie(me),me){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(h)&&M(h)||e.isPropertyDeclaration(h)||e.isPropertySignature(h))return Q(S,F,k,h,De,H,X),F.writeFixes(S),h;if(e.isPropertyAccessExpression(h)){var $=I(h.name,De,X),L=e.getTypeNodeIfAccessible($,h,De,H);if(L){var P=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(L),void 0);S.addJSDocTags(k,e.cast(h.parent.parent,e.isExpressionStatement),[P])}return F.writeFixes(S),h}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var N=De.getTypeChecker().getSymbolAtLocation(C);return N&&N.valueDeclaration&&e.isVariableDeclaration(N.valueDeclaration)&&M(N.valueDeclaration)?(Q(S,F,e.getSourceFileOfNode(N.valueDeclaration),N.valueDeclaration,De,H,X),F.writeFixes(S),N.valueDeclaration):void 0}}var J=e.getContainingFunction(C);if(J!==void 0){var q;switch(me){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(J)){de(S,F,k,J,De,H,X),q=J;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(M(J)){var G=e.cast(h,e.isParameter);p(S,F,k,G,J,De,H,X),q=G}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(J)&&e.isIdentifier(J.name)&&(te(S,F,k,J,I(J.name,De,X),De,H),q=J);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(J)&&(de(S,F,k,J,De,H,X),q=J);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(J)&&M(J)&&(D(S,k,J,De,H,X),q=J);break;default:return e.Debug.fail(String(me))}return F.writeFixes(S),q}}}function Q(S,k,C,me,De,X,M){e.isIdentifier(me.name)&&te(S,k,C,me,I(me.name,De,M),De,X)}function p(S,k,C,me,De,X,M,H){if(!!e.isIdentifier(me.name)){var V=f(De,C,X,H);if(e.Debug.assert(De.parameters.length===V.length,"Parameter count and inference count should match"),e.isInJSFile(De))ae(S,C,V,X,M);else{var h=e.isArrowFunction(De)&&!e.findChildOfKind(De,20,C);h&&S.insertNodeBefore(C,e.first(De.parameters),e.factory.createToken(20));for(var F=0,$=V;F<$.length;F++){var L=$[F],P=L.declaration,N=L.type;P&&!P.type&&!P.initializer&&te(S,k,C,P,N,X,M)}h&&S.insertNodeAfter(C,e.last(De.parameters),e.factory.createToken(21))}}}function D(S,k,C,me,De,X){var M=m(C,k,me,X);if(!(!M||!M.length)){var H=y(me,M,X).thisParameter(),V=e.getTypeNodeIfAccessible(H,C,me,De);!V||(e.isInJSFile(C)?le(S,k,C,V):S.tryInsertThisTypeAnnotation(k,C,V))}}function le(S,k,C,me){S.addJSDocTags(k,C,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(me))])}function de(S,k,C,me,De,X,M){var H=e.firstOrUndefined(me.parameters);if(H&&e.isIdentifier(me.name)&&e.isIdentifier(H.name)){var V=I(me.name,De,M);V===De.getTypeChecker().getAnyType()&&(V=I(H.name,De,M)),e.isInJSFile(me)?ae(S,C,[{declaration:H,type:V}],De,X):te(S,k,C,H,V,De,X)}}function te(S,k,C,me,De,X,M){var H=e.getTypeNodeIfAccessible(De,me,X,M);if(H)if(e.isInJSFile(C)&&me.kind!==168){var V=e.isVariableDeclaration(me)?e.tryCast(me.parent.parent,e.isVariableStatement):me;if(!V)return;var h=e.factory.createJSDocTypeExpression(H),F=e.isGetAccessorDeclaration(me)?e.factory.createJSDocReturnTag(void 0,h,void 0):e.factory.createJSDocTypeTag(void 0,h,void 0);S.addJSDocTags(C,V,[F])}else oe(H,me,C,S,k,e.getEmitScriptTarget(X.getCompilerOptions()))||S.tryInsertTypeAnnotation(C,me,H)}function oe(S,k,C,me,De,X){var M=ne.tryGetAutoImportableReferenceFromTypeNode(S,X);return M&&me.tryInsertTypeAnnotation(C,k,M.typeNode)?(e.forEach(M.symbols,function(H){return De.addImportFromExportedSymbol(H,!0)}),!0):!1}function ae(S,k,C,me,De){var X=C.length&&C[0].declaration.parent;if(!!X){var M=e.mapDefined(C,function(h){var F=h.declaration;if(!(F.initializer||e.getJSDocType(F)||!e.isIdentifier(F.name))){var $=h.type&&e.getTypeNodeIfAccessible(h.type,F,me,De);if($){var L=e.factory.cloneNode(F.name);return e.setEmitFlags(L,1536|2048),{name:e.factory.cloneNode(F.name),param:F,isOptional:!!h.isOptional,typeNode:$}}}});if(!!M.length)if(e.isArrowFunction(X)||e.isFunctionExpression(X)){var H=e.isArrowFunction(X)&&!e.findChildOfKind(X,20,k);H&&S.insertNodeBefore(k,e.first(X.parameters),e.factory.createToken(20)),e.forEach(M,function(h){var F=h.typeNode,$=h.param,L=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(F)),P=e.factory.createJSDocComment(void 0,[L]);S.insertNodeAt(k,$.getStart(k),P,{suffix:" "})}),H&&S.insertNodeAfter(k,e.last(X.parameters),e.factory.createToken(21))}else{var V=e.map(M,function(h){var F=h.name,$=h.typeNode,L=h.isOptional;return e.factory.createJSDocParameterTag(void 0,F,!!L,e.factory.createJSDocTypeExpression($),!1,void 0)});S.addJSDocTags(k,X,V)}}}function E(S,k,C){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,S,k,k.getSourceFiles(),C),function(me){return me.kind!==0?e.tryCast(me.node,e.isIdentifier):void 0})}function I(S,k,C){var me=E(S,k,C);return y(k,me,C).single()}function f(S,k,C,me){var De=m(S,k,C,me);return De&&y(C,De,me).parameters(S)||S.parameters.map(function(X){return{declaration:X,type:e.isIdentifier(X.name)?I(X.name,C,me):C.getTypeChecker().getAnyType()}})}function m(S,k,C,me){var De;switch(S.kind){case 173:De=e.findChildOfKind(S,135,k);break;case 216:case 215:var X=S.parent;De=(e.isVariableDeclaration(X)||e.isPropertyDeclaration(X))&&e.isIdentifier(X.name)?X.name:S.name;break;case 259:case 171:case 170:De=S.name;break}if(!!De)return E(De,C,me)}function y(S,k,C){var me=S.getTypeChecker(),De={string:function(){return me.getStringType()},number:function(){return me.getNumberType()},Array:function(Oe){return me.createArrayType(Oe)},Promise:function(Oe){return me.createPromiseType(Oe)}},X=[me.getStringType(),me.getNumberType(),me.createArrayType(me.getAnyType()),me.createPromiseType(me.getAnyType())];return{single:V,parameters:h,thisParameter:F};function M(){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 H(Oe){for(var be=new e.Map,Y=0,d=Oe;Y<d.length;Y++){var j=d[Y];j.properties&&j.properties.forEach(function(Se,Re){be.has(Re)||be.set(Re,[]),be.get(Re).push(Se)})}var Ce=new e.Map;return be.forEach(function(Se,Re){Ce.set(Re,H(Se))}),{isNumber:Oe.some(function(Se){return Se.isNumber}),isString:Oe.some(function(Se){return Se.isString}),isNumberOrString:Oe.some(function(Se){return Se.isNumberOrString}),candidateTypes:e.flatMap(Oe,function(Se){return Se.candidateTypes}),properties:Ce,calls:e.flatMap(Oe,function(Se){return Se.calls}),constructs:e.flatMap(Oe,function(Se){return Se.constructs}),numberIndex:e.forEach(Oe,function(Se){return Se.numberIndex}),stringIndex:e.forEach(Oe,function(Se){return Se.stringIndex}),candidateThisTypes:e.flatMap(Oe,function(Se){return Se.candidateThisTypes}),inferredTypes:void 0}}function V(){return A($(k))}function h(Oe){if(!(k.length===0||!Oe.parameters)){for(var be=M(),Y=0,d=k;Y<d.length;Y++){var j=d[Y];C.throwIfCancellationRequested(),L(j,be)}var Ce=zn(zn([],be.constructs||[],!0),be.calls||[],!0);return Oe.parameters.map(function(Se,Re){for(var er=[],wr=e.isRestParameter(Se),mr=!1,Ue=0,t=Ce;Ue<t.length;Ue++){var qr=t[Ue];if(qr.argumentTypes.length<=Re)mr=e.isInJSFile(Oe),er.push(me.getUndefinedType());else if(wr)for(var ln=Re;ln<qr.argumentTypes.length;ln++)er.push(me.getBaseTypeOfLiteralType(qr.argumentTypes[ln]));else er.push(me.getBaseTypeOfLiteralType(qr.argumentTypes[Re]))}if(e.isIdentifier(Se.name)){var dr=$(E(Se.name,S,C));er.push.apply(er,wr?e.mapDefined(dr,me.getElementTypeOfArrayType):dr)}var vr=A(er);return{type:wr?me.createArrayType(vr):vr,isOptional:mr&&!wr,declaration:Se}})}}function F(){for(var Oe=M(),be=0,Y=k;be<Y.length;be++){var d=Y[be];C.throwIfCancellationRequested(),L(d,Oe)}return A(Oe.candidateThisTypes||e.emptyArray)}function $(Oe){for(var be=M(),Y=0,d=Oe;Y<d.length;Y++){var j=d[Y];C.throwIfCancellationRequested(),L(j,be)}return z(be)}function L(Oe,be){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(Oe);)Oe=Oe.parent;switch(Oe.parent.kind){case 241:N(Oe,be);break;case 222:be.isNumber=!0;break;case 221:J(Oe.parent,be);break;case 223:q(Oe,Oe.parent,be);break;case 292:case 293:G(Oe.parent,be);break;case 210:case 211:Oe.parent.expression===Oe?ye(Oe.parent,be):P(Oe,be);break;case 208:b(Oe.parent,be);break;case 209:x(Oe.parent,Oe,be);break;case 299:case 300:T(Oe.parent,be);break;case 169:Z(Oe.parent,be);break;case 257:{var Y=Oe.parent,d=Y.name,j=Y.initializer;if(Oe===d){j&&Xe(be,me.getTypeAtLocation(j));break}}default:return P(Oe,be)}}function P(Oe,be){e.isExpressionNode(Oe)&&Xe(be,me.getContextualType(Oe))}function N(Oe,be){Xe(be,e.isCallExpression(Oe)?me.getVoidType():me.getAnyType())}function J(Oe,be){switch(Oe.operator){case 45:case 46:case 40:case 54:be.isNumber=!0;break;case 39:be.isNumberOrString=!0;break}}function q(Oe,be,Y){switch(be.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var d=me.getTypeAtLocation(be.left===Oe?be.right:be.left);d.flags&1056?Xe(Y,d):Y.isNumber=!0;break;case 64:case 39:var j=me.getTypeAtLocation(be.left===Oe?be.right:be.left);j.flags&1056?Xe(Y,j):j.flags&296?Y.isNumber=!0:j.flags&402653316?Y.isString=!0:j.flags&1||(Y.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:Xe(Y,me.getTypeAtLocation(be.left===Oe?be.right:be.left));break;case 101:Oe===be.left&&(Y.isString=!0);break;case 56:case 60:Oe===be.left&&(Oe.parent.parent.kind===257||e.isAssignmentExpression(Oe.parent.parent,!0))&&Xe(Y,me.getTypeAtLocation(be.right));break;case 55:case 27:case 102:break}}function G(Oe,be){Xe(be,me.getTypeAtLocation(Oe.parent.parent.expression))}function ye(Oe,be){var Y={argumentTypes:[],return_:M()};if(Oe.arguments)for(var d=0,j=Oe.arguments;d<j.length;d++){var Ce=j[d];Y.argumentTypes.push(me.getTypeAtLocation(Ce))}L(Oe,Y.return_),Oe.kind===210?(be.calls||(be.calls=[])).push(Y):(be.constructs||(be.constructs=[])).push(Y)}function b(Oe,be){var Y=e.escapeLeadingUnderscores(Oe.name.text);be.properties||(be.properties=new e.Map);var d=be.properties.get(Y)||M();L(Oe,d),be.properties.set(Y,d)}function x(Oe,be,Y){if(be===Oe.argumentExpression){Y.isNumberOrString=!0;return}else{var d=me.getTypeAtLocation(Oe.argumentExpression),j=M();L(Oe,j),d.flags&296?Y.numberIndex=j:Y.stringIndex=j}}function T(Oe,be){var Y=e.isVariableDeclaration(Oe.parent.parent)?Oe.parent.parent:Oe.parent;Ne(be,me.getTypeAtLocation(Y))}function Z(Oe,be){Ne(be,me.getTypeAtLocation(Oe.parent))}function B(Oe,be){for(var Y=[],d=0,j=Oe;d<j.length;d++)for(var Ce=j[d],Se=0,Re=be;Se<Re.length;Se++){var er=Re[Se],wr=er.high,mr=er.low;wr(Ce)&&(e.Debug.assert(!mr(Ce),"Priority can't have both low and high"),Y.push(mr))}return Oe.filter(function(Ue){return Y.every(function(t){return!t(Ue)})})}function u(Oe){return A(z(Oe))}function A(Oe){if(!Oe.length)return me.getAnyType();var be=me.getUnionType([me.getStringType(),me.getNumberType()]),Y=[{high:function(Ce){return Ce===me.getStringType()||Ce===me.getNumberType()},low:function(Ce){return Ce===be}},{high:function(Ce){return!(Ce.flags&(1|16384))},low:function(Ce){return!!(Ce.flags&(1|16384))}},{high:function(Ce){return!(Ce.flags&(98304|1|16384))&&!(e.getObjectFlags(Ce)&16)},low:function(Ce){return!!(e.getObjectFlags(Ce)&16)}}],d=B(Oe,Y),j=d.filter(function(Ce){return e.getObjectFlags(Ce)&16});return j.length&&(d=d.filter(function(Ce){return!(e.getObjectFlags(Ce)&16)}),d.push(w(j))),me.getWidenedType(me.getUnionType(d.map(me.getBaseTypeOfLiteralType),2))}function w(Oe){if(Oe.length===1)return Oe[0];for(var be=[],Y=[],d=[],j=[],Ce=!1,Se=!1,Re=e.createMultiMap(),er=0,wr=Oe;er<wr.length;er++){for(var mr=wr[er],Ue=0,t=me.getPropertiesOfType(mr);Ue<t.length;Ue++){var qr=t[Ue];Re.add(qr.name,qr.valueDeclaration?me.getTypeOfSymbolAtLocation(qr,qr.valueDeclaration):me.getAnyType())}be.push.apply(be,me.getSignaturesOfType(mr,0)),Y.push.apply(Y,me.getSignaturesOfType(mr,1));var ln=me.getIndexInfoOfType(mr,0);ln&&(d.push(ln.type),Ce=Ce||ln.isReadonly);var dr=me.getIndexInfoOfType(mr,1);dr&&(j.push(dr.type),Se=Se||dr.isReadonly)}var vr=e.mapEntries(Re,function(Ur,Cr){var rn=Cr.length<Oe.length?16777216:0,Br=me.createSymbol(4|rn,Ur);return Br.type=me.getUnionType(Cr),[Ur,Br]}),kr=[];return d.length&&kr.push(me.createIndexInfo(me.getStringType(),me.getUnionType(d),Ce)),j.length&&kr.push(me.createIndexInfo(me.getNumberType(),me.getUnionType(j),Se)),me.createAnonymousType(Oe[0].symbol,vr,be,Y,kr)}function z(Oe){var be,Y,d,j=[];Oe.isNumber&&j.push(me.getNumberType()),Oe.isString&&j.push(me.getStringType()),Oe.isNumberOrString&&j.push(me.getUnionType([me.getStringType(),me.getNumberType()])),Oe.numberIndex&&j.push(me.createArrayType(u(Oe.numberIndex))),(((be=Oe.properties)===null||be===void 0?void 0:be.size)||((Y=Oe.constructs)===null||Y===void 0?void 0:Y.length)||Oe.stringIndex)&&j.push(U(Oe));var Ce=(Oe.candidateTypes||[]).map(function(Re){return me.getBaseTypeOfLiteralType(Re)}),Se=((d=Oe.calls)===null||d===void 0?void 0:d.length)?U(Oe):void 0;return Se&&Ce?j.push(me.getUnionType(zn([Se],Ce,!0),2)):(Se&&j.push(Se),e.length(Ce)&&j.push.apply(j,Ce)),j.push.apply(j,ge(Oe)),j}function U(Oe){var be=new e.Map;Oe.properties&&Oe.properties.forEach(function(Ce,Se){var Re=me.createSymbol(4,Se);Re.type=u(Ce),be.set(Se,Re)});var Y=Oe.calls?[Ae(Oe.calls)]:[],d=Oe.constructs?[Ae(Oe.constructs)]:[],j=Oe.stringIndex?[me.createIndexInfo(me.getStringType(),u(Oe.stringIndex),!1)]:[];return me.createAnonymousType(void 0,be,Y,d,j)}function ge(Oe){if(!Oe.properties||!Oe.properties.size)return[];var be=X.filter(function(Y){return pe(Y,Oe)});return 0<be.length&&be.length<3?be.map(function(Y){return He(Y,Oe)}):[]}function pe(Oe,be){return be.properties?!e.forEachEntry(be.properties,function(Y,d){var j=me.getTypeOfPropertyOfType(Oe,d);if(!j)return!0;if(Y.calls){var Ce=me.getSignaturesOfType(j,0);return!Ce.length||!me.isTypeAssignableTo(j,Le(Y.calls))}else return!me.isTypeAssignableTo(j,u(Y))}):!1}function He(Oe,be){if(!(e.getObjectFlags(Oe)&4)||!be.properties)return Oe;var Y=Oe.target,d=e.singleOrUndefined(Y.typeParameters);if(!d)return Oe;var j=[];return be.properties.forEach(function(Ce,Se){var Re=me.getTypeOfPropertyOfType(Y,Se);e.Debug.assert(!!Re,"generic should have all the properties of its reference."),j.push.apply(j,Be(Re,u(Ce),d))}),De[Oe.symbol.escapedName](A(j))}function Be(Oe,be,Y){if(Oe===Y)return[be];if(Oe.flags&3145728)return e.flatMap(Oe.types,function(wr){return Be(wr,be,Y)});if(e.getObjectFlags(Oe)&4&&e.getObjectFlags(be)&4){var d=me.getTypeArguments(Oe),j=me.getTypeArguments(be),Ce=[];if(d&&j)for(var Se=0;Se<d.length;Se++)j[Se]&&Ce.push.apply(Ce,Be(d[Se],j[Se],Y));return Ce}var Re=me.getSignaturesOfType(Oe,0),er=me.getSignaturesOfType(be,0);return Re.length===1&&er.length===1?Me(Re[0],er[0],Y):[]}function Me(Oe,be,Y){for(var d=[],j=0;j<Oe.parameters.length;j++){var Ce=Oe.parameters[j],Se=be.parameters[j],Re=Oe.declaration&&e.isRestParameter(Oe.declaration.parameters[j]);if(!Se)break;var er=Ce.valueDeclaration?me.getTypeOfSymbolAtLocation(Ce,Ce.valueDeclaration):me.getAnyType(),wr=Re&&me.getElementTypeOfArrayType(er);wr&&(er=wr);var mr=Se.type||(Se.valueDeclaration?me.getTypeOfSymbolAtLocation(Se,Se.valueDeclaration):me.getAnyType());d.push.apply(d,Be(er,mr,Y))}var Ue=me.getReturnTypeOfSignature(Oe),t=me.getReturnTypeOfSignature(be);return d.push.apply(d,Be(Ue,t,Y)),d}function Le(Oe){return me.createAnonymousType(void 0,e.createSymbolTable(),[Ae(Oe)],e.emptyArray,e.emptyArray)}function Ae(Oe){for(var be=[],Y=Math.max.apply(Math,Oe.map(function(Se){return Se.argumentTypes.length})),d=function(Se){var Re=me.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(Se)));Re.type=A(Oe.map(function(er){return er.argumentTypes[Se]||me.getUndefinedType()})),Oe.some(function(er){return er.argumentTypes[Se]===void 0})&&(Re.flags|=16777216),be.push(Re)},j=0;j<Y;j++)d(j);var Ce=u(H(Oe.map(function(Se){return Se.return_})));return me.createSignature(void 0,void 0,void 0,be,Ce,void 0,Y,0)}function Xe(Oe,be){be&&!(be.flags&1)&&!(be.flags&131072)&&(Oe.candidateTypes||(Oe.candidateTypes=[])).push(be)}function Ne(Oe,be){be&&!(be.flags&1)&&!(be.flags&131072)&&(Oe.candidateThisTypes||(Oe.candidateThisTypes=[])).push(be)}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixReturnTypeInAsyncFunction",se=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];ne.registerCodeFix({errorCodes:se,fixIds:[K],getCodeActions:function(Q){var p=Q.sourceFile,D=Q.program,le=Q.span,de=D.getTypeChecker(),te=O(p,D.getTypeChecker(),le.start);if(!!te){var oe=te.returnTypeNode,ae=te.returnType,E=te.promisedTypeNode,I=te.promisedType,f=e.textChanges.ChangeTracker.with(Q,function(m){return ie(m,p,oe,E)});return[ne.createCodeFixAction(K,f,[e.Diagnostics.Replace_0_with_Promise_1,de.typeToString(ae),de.typeToString(I)],K,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=O(p.file,_e.program.getTypeChecker(),p.start);D&&ie(Q,p.file,D.returnTypeNode,D.promisedTypeNode)})}});function O(_e,Q,p){if(!e.isInJSFile(_e)){var D=e.getTokenAtPosition(_e,p),le=e.findAncestor(D,e.isFunctionLikeDeclaration),de=le==null?void 0:le.type;if(!!de){var te=Q.getTypeFromTypeNode(de),oe=Q.getAwaitedType(te)||Q.getVoidType(),ae=Q.typeToTypeNode(oe,de,void 0);if(ae)return{returnTypeNode:de,returnType:te,promisedTypeNode:ae,promisedType:oe}}}}function ie(_e,Q,p,D){_e.replaceNode(Q,p,e.factory.createTypeReferenceNode("Promise",[D]))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="disableJsDiagnostics",se="disableJsDiagnostics",O=e.mapDefined(Object.keys(e.Diagnostics),function(_e){var Q=e.Diagnostics[_e];return Q.category===e.DiagnosticCategory.Error?Q.code:void 0});ne.registerCodeFix({errorCodes:O,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.program,le=Q.span,de=Q.host,te=Q.formatContext;if(!(!e.isInJSFile(p)||!e.isCheckJsEnabledForFile(p,D.getCompilerOptions()))){var oe=p.checkJsDirective?"":e.getNewLineOrDefaultFromHost(de,te.options),ae=[ne.createCodeFixActionWithoutFixAll(K,[ne.createFileTextChanges(p.fileName,[e.createTextChange(p.checkJsDirective?e.createTextSpanFromBounds(p.checkJsDirective.pos,p.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(oe))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(p,le.start)&&ae.unshift(ne.createCodeFixAction(K,e.textChanges.ChangeTracker.with(Q,function(E){return ie(E,p,le.start)}),e.Diagnostics.Ignore_this_error_message,se,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),ae}},fixIds:[se],getAllCodeActions:function(_e){var Q=new e.Set;return ne.codeFixAll(_e,O,function(p,D){e.textChanges.isValidLocationToAddComment(D.file,D.start)&&ie(p,D.file,D.start,Q)})}});function ie(_e,Q,p,D){var le=e.getLineAndCharacterOfPosition(Q,p).line;(!D||e.tryAddToSet(D,le))&&_e.insertCommentBeforeLine(Q,le,p," @ts-ignore")}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(h,F,$,L,P,N,J){for(var q=h.symbol.members,G=0,ye=F;G<ye.length;G++){var b=ye[G];q.has(b.escapedName)||ie(b,h,$,L,P,N,J,void 0)}}ne.createMissingMemberNodes=K;function se(h){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(h.program,h.host)}}ne.getNoopSymbolTrackerWithResolver=se;var O;(function(h){h[h.Method=1]="Method",h[h.Property=2]="Property",h[h.All=3]="All"})(O=ne.PreserveOptionalFlags||(ne.PreserveOptionalFlags={}));function ie(h,F,$,L,P,N,J,q,G,ye){var b;G===void 0&&(G=3),ye===void 0&&(ye=!1);var x=h.getDeclarations(),T=x==null?void 0:x[0],Z=L.program.getTypeChecker(),B=e.getEmitScriptTarget(L.program.getCompilerOptions()),u=(b=T==null?void 0:T.kind)!==null&&b!==void 0?b:168,A=e.getSynthesizedDeepClone(e.getNameOfDeclaration(T),!1),w=T?e.getEffectiveModifierFlags(T):0,z=w&4?4:w&16?16:0;T&&e.isAutoAccessorPropertyDeclaration(T)&&(z|=128);var U=z?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(z)):void 0,ge=Z.getWidenedType(Z.getTypeOfSymbolAtLocation(h,F)),pe=!!(h.flags&16777216),He=!!(F.flags&16777216)||ye,Be=e.getQuotePreference($,P);switch(u){case 168:case 169:var Me=Be===0?268435456:void 0,Le=Z.typeToTypeNode(ge,F,Me,se(L));if(N){var Ae=X(Le,B);Ae&&(Le=Ae.typeNode,H(N,Ae.symbols))}J(e.factory.createPropertyDeclaration(U,T?Ue(A):h.getName(),pe&&G&2?e.factory.createToken(57):void 0,Le,void 0));break;case 174:case 175:{e.Debug.assertIsDefined(x);var Xe=Z.typeToTypeNode(ge,F,void 0,se(L)),Ne=e.getAllAccessorDeclarations(x,T),Oe=Ne.secondAccessor?[Ne.firstAccessor,Ne.secondAccessor]:[Ne.firstAccessor];if(N){var Ae=X(Xe,B);Ae&&(Xe=Ae.typeNode,H(N,Ae.symbols))}for(var be=0,Y=Oe;be<Y.length;be++){var d=Y[be];if(e.isGetAccessorDeclaration(d))J(e.factory.createGetAccessorDeclaration(U,Ue(A),e.emptyArray,qr(Xe),t(q,Be,He)));else{e.Debug.assertNode(d,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var j=e.getSetAccessorValueParameter(d),Ce=j&&e.isIdentifier(j.name)?e.idText(j.name):void 0;J(e.factory.createSetAccessorDeclaration(U,Ue(A),E(1,[Ce],[qr(Xe)],1,!1),t(q,Be,He)))}}break}case 170:case 171:e.Debug.assertIsDefined(x);var Se=ge.isUnion()?e.flatMap(ge.types,function(ln){return ln.getCallSignatures()}):ge.getCallSignatures();if(!e.some(Se))break;if(x.length===1){e.Debug.assert(Se.length===1,"One declaration implies one signature");var Re=Se[0];mr(Be,Re,U,Ue(A),t(q,Be,He));break}for(var er=0,wr=Se;er<wr.length;er++){var Re=wr[er];mr(Be,Re,U,Ue(A))}if(!He)if(x.length>Se.length){var Re=Z.getSignatureFromDeclaration(x[x.length-1]);mr(Be,Re,U,Ue(A),t(q,Be))}else e.Debug.assert(x.length===Se.length,"Declarations and signatures should match count"),J(I(Z,L,F,Se,Ue(A),pe&&!!(G&1),U,Be,q));break}function mr(ln,dr,vr,kr,Ur){var Cr=_e(171,L,ln,dr,Ur,kr,vr,pe&&!!(G&1),F,N);Cr&&J(Cr)}function Ue(ln){return e.getSynthesizedDeepClone(ln,!1)}function t(ln,dr,vr){return vr?void 0:e.getSynthesizedDeepClone(ln,!1)||y(dr)}function qr(ln){return e.getSynthesizedDeepClone(ln,!1)}}ne.addNewNodeForMemberSymbol=ie;function _e(h,F,$,L,P,N,J,q,G,ye){var b=F.program,x=b.getTypeChecker(),T=e.getEmitScriptTarget(b.getCompilerOptions()),Z=1|256|524288|($===0?268435456:0),B=x.signatureToSignatureDeclaration(L,h,G,Z,se(F));if(!!B){var u=B.typeParameters,A=B.parameters,w=B.type;if(ye){if(u){var z=e.sameMap(u,function(Be){var Me=Be.constraint,Le=Be.default;if(Me){var Ae=X(Me,T);Ae&&(Me=Ae.typeNode,H(ye,Ae.symbols))}if(Le){var Ae=X(Le,T);Ae&&(Le=Ae.typeNode,H(ye,Ae.symbols))}return e.factory.updateTypeParameterDeclaration(Be,Be.modifiers,Be.name,Me,Le)});u!==z&&(u=e.setTextRange(e.factory.createNodeArray(z,u.hasTrailingComma),u))}var U=e.sameMap(A,function(Be){var Me=X(Be.type,T),Le=Be.type;return Me&&(Le=Me.typeNode,H(ye,Me.symbols)),e.factory.updateParameterDeclaration(Be,Be.modifiers,Be.dotDotDotToken,Be.name,Be.questionToken,Le,Be.initializer)});if(A!==U&&(A=e.setTextRange(e.factory.createNodeArray(U,A.hasTrailingComma),A)),w){var ge=X(w,T);ge&&(w=ge.typeNode,H(ye,ge.symbols))}}var pe=q?e.factory.createToken(57):void 0,He=B.asteriskToken;if(e.isFunctionExpression(B))return e.factory.updateFunctionExpression(B,J,B.asteriskToken,e.tryCast(N,e.isIdentifier),u,A,w,P!=null?P:B.body);if(e.isArrowFunction(B))return e.factory.updateArrowFunction(B,J,u,A,w,B.equalsGreaterThanToken,P!=null?P:B.body);if(e.isMethodDeclaration(B))return e.factory.updateMethodDeclaration(B,J,He,N!=null?N:e.factory.createIdentifier(""),pe,u,A,w,P);if(e.isFunctionDeclaration(B))return e.factory.updateFunctionDeclaration(B,J,B.asteriskToken,e.tryCast(N,e.isIdentifier),u,A,w,P!=null?P:B.body)}}ne.createSignatureDeclarationFromSignature=_e;function Q(h,F,$,L,P,N,J){var q=e.getQuotePreference(F.sourceFile,F.preferences),G=e.getEmitScriptTarget(F.program.getCompilerOptions()),ye=se(F),b=F.program.getTypeChecker(),x=e.isInJSFile(J),T=L.typeArguments,Z=L.arguments,B=L.parent,u=x?void 0:b.getContextualType(L),A=e.map(Z,function(Ae){return e.isIdentifier(Ae)?Ae.text:e.isPropertyAccessExpression(Ae)&&e.isIdentifier(Ae.name)?Ae.name.text:void 0}),w=x?[]:e.map(Z,function(Ae){return b.getTypeAtLocation(Ae)}),z=te(b,$,w,J,G,void 0,ye),U=z.argumentTypeNodes,ge=z.argumentTypeParameters,pe=N?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(N)):void 0,He=e.isYieldExpression(B)?e.factory.createToken(41):void 0,Be=x?void 0:p(b,ge,T),Me=E(Z.length,A,U,void 0,x),Le=x||u===void 0?void 0:b.typeToTypeNode(u,J,void 0,ye);switch(h){case 171:return e.factory.createMethodDeclaration(pe,He,P,void 0,Be,Me,Le,y(q));case 170:return e.factory.createMethodSignature(pe,P,void 0,Be,Me,Le===void 0?e.factory.createKeywordTypeNode(157):Le);case 259:return e.factory.createFunctionDeclaration(pe,He,P,Be,Me,Le,S(e.Diagnostics.Function_not_implemented.message,q));default:e.Debug.fail("Unexpected kind")}}ne.createSignatureDeclarationFromCallExpression=Q;function p(h,F,$){var L=new e.Set(F.map(function(G){return G[0]})),P=new e.Map(F);if($)for(var N=$.filter(function(G){return!F.some(function(ye){var b;return h.getTypeAtLocation(G)===((b=ye[1])===null||b===void 0?void 0:b.argumentType)})}),J=L.size+N.length,q=0;L.size<J;q+=1)L.add(D(q));return e.map(e.arrayFrom(L.values()),function(G){var ye;return e.factory.createTypeParameterDeclaration(void 0,G,(ye=P.get(G))===null||ye===void 0?void 0:ye.constraint)})}function D(h){return 84+h<=90?String.fromCharCode(84+h):"T".concat(h)}function le(h,F,$,L,P,N,J){var q=h.typeToTypeNode($,L,N,J);if(q&&e.isImportTypeNode(q)){var G=X(q,P);G&&(H(F,G.symbols),q=G.typeNode)}return e.getSynthesizedDeepClone(q)}ne.typeToAutoImportableTypeNode=le;function de(h){return h.isUnionOrIntersection()?h.types.some(de):h.flags&262144}function te(h,F,$,L,P,N,J){for(var q=[],G=new e.Map,ye=0;ye<$.length;ye+=1){var b=$[ye];if(b.isUnionOrIntersection()&&b.types.some(de)){var x=D(ye);q.push(e.factory.createTypeReferenceNode(x)),G.set(x,void 0);continue}var T=h.getBaseTypeOfLiteralType(b),Z=le(h,F,T,L,P,N,J);if(!!Z){q.push(Z);var B=ae(b),u=b.isTypeParameter()&&b.constraint&&!oe(b.constraint)?le(h,F,b.constraint,L,P,N,J):void 0;B&&G.set(B,{argumentType:b,constraint:u})}}return{argumentTypeNodes:q,argumentTypeParameters:e.arrayFrom(G.entries())}}ne.getArgumentTypesAndTypeParameters=te;function oe(h){return h.flags&524288&&h.objectFlags===16}function ae(h){var F;if(h.flags&(1048576|2097152))for(var $=0,L=h.types;$<L.length;$++){var P=L[$],N=ae(P);if(N)return N}return h.flags&262144?(F=h.getSymbol())===null||F===void 0?void 0:F.getName():void 0}function E(h,F,$,L,P){for(var N=[],J=new e.Map,q=0;q<h;q++){var G=(F==null?void 0:F[q])||"arg".concat(q),ye=J.get(G);J.set(G,(ye||0)+1);var b=e.factory.createParameterDeclaration(void 0,void 0,G+(ye||""),L!==void 0&&q>=L?e.factory.createToken(57):void 0,P?void 0:($==null?void 0:$[q])||e.factory.createKeywordTypeNode(157),void 0);N.push(b)}return N}function I(h,F,$,L,P,N,J,q,G){for(var ye=L[0],b=L[0].minArgumentCount,x=!1,T=0,Z=L;T<Z.length;T++){var B=Z[T];b=Math.min(B.minArgumentCount,b),e.signatureHasRestParameter(B)&&(x=!0),B.parameters.length>=ye.parameters.length&&(!e.signatureHasRestParameter(B)||e.signatureHasRestParameter(ye))&&(ye=B)}var u=ye.parameters.length-(e.signatureHasRestParameter(ye)?1:0),A=ye.parameters.map(function(U){return U.name}),w=E(u,A,void 0,b,!1);if(x){var z=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),A[u]||"rest",u>=b?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(157)),void 0);w.push(z)}return m(J,P,N,void 0,w,f(L,h,F,$),q,G)}function f(h,F,$,L){if(e.length(h)){var P=F.getUnionType(e.map(h,F.getReturnTypeOfSignature));return F.typeToTypeNode(P,L,void 0,se($))}}function m(h,F,$,L,P,N,J,q){return e.factory.createMethodDeclaration(h,void 0,F,$?e.factory.createToken(57):void 0,L,P,N,q||y(J))}function y(h){return S(e.Diagnostics.Method_not_implemented.message,h)}function S(h,F){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(h,F===0)]))],!0)}ne.createStubbedBody=S;function k(h,F,$){var L=e.getTsConfigObjectLiteralExpression(F);if(!!L){var P=De(L,"compilerOptions");if(P===void 0){h.insertNodeAtObjectStart(F,L,me("compilerOptions",e.factory.createObjectLiteralExpression($.map(function(T){var Z=T[0],B=T[1];return me(Z,B)}),!0)));return}var N=P.initializer;if(!!e.isObjectLiteralExpression(N))for(var J=0,q=$;J<q.length;J++){var G=q[J],ye=G[0],b=G[1],x=De(N,ye);x===void 0?h.insertNodeAtObjectStart(F,N,me(ye,b)):h.replaceNode(F,x.initializer,b)}}}ne.setJsonCompilerOptionValues=k;function C(h,F,$,L){k(h,F,[[$,L]])}ne.setJsonCompilerOptionValue=C;function me(h,F){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(h),F)}ne.createJsonPropertyAssignment=me;function De(h,F){return e.find(h.properties,function($){return e.isPropertyAssignment($)&&!!$.name&&e.isStringLiteral($.name)&&$.name.text===F})}ne.findJsonProperty=De;function X(h,F){var $,L=e.visitNode(h,P);if($&&L)return{typeNode:L,symbols:$};function P(N){var J;if(e.isLiteralImportTypeNode(N)&&N.qualifier){var q=e.getFirstIdentifier(N.qualifier),G=e.getNameForExportedSymbol(q.symbol,F),ye=G!==q.text?M(N.qualifier,e.factory.createIdentifier(G)):N.qualifier;$=e.append($,q.symbol);var b=(J=N.typeArguments)===null||J===void 0?void 0:J.map(P);return e.factory.createTypeReferenceNode(ye,b)}return e.visitEachChild(N,P,e.nullTransformationContext)}}ne.tryGetAutoImportableReferenceFromTypeNode=X;function M(h,F){return h.kind===79?F:e.factory.createQualifiedName(M(h.left,F),h.right)}function H(h,F){F.forEach(function($){return h.addImportFromExportedSymbol($,!0)})}ne.importSymbols=H;function V(h,F){for(var $=e.textSpanEnd(F),L=e.getTokenAtPosition(h,F.start);L.end<$;)L=L.parent;return L}ne.findAncestorMatchingSpan=V})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(y,S,k,C,me,De){var X=D(y,S,k,C);if(!(!X||e.refactor.isRefactorErrorInfo(X))){var M=e.textChanges.ChangeTracker.fromContext(me),H=X.isStatic,V=X.isReadonly,h=X.fieldName,F=X.accessorName,$=X.originalName,L=X.type,P=X.container,N=X.declaration;e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(F),e.suppressLeadingAndTrailingTrivia(N),e.suppressLeadingAndTrailingTrivia(P);var J,q;if(e.isClassLike(P)){var G=e.getEffectiveModifierFlags(N);if(e.isSourceFileJS(y)){var ye=e.factory.createModifiersFromModifierFlags(G);J=ye,q=ye}else J=e.factory.createModifiersFromModifierFlags(Q(G)),q=e.factory.createModifiersFromModifierFlags(p(G));e.canHaveDecorators(N)&&(q=e.concatenate(e.getDecorators(N),q))}ae(M,y,N,L,h,q);var b=le(h,F,L,J,H,P);if(e.suppressLeadingAndTrailingTrivia(b),E(M,y,b,N,P),V){var x=e.getFirstConstructorWithBody(P);x&&I(M,y,x,h.text,$)}else{var T=de(h,F,L,J,H,P);e.suppressLeadingAndTrailingTrivia(T),E(M,y,T,N,P)}return M.getChanges()}}ne.generateAccessorFromProperty=K;function se(y){return e.isIdentifier(y)||e.isStringLiteral(y)}function O(y){return e.isParameterPropertyDeclaration(y,y.parent)||e.isPropertyDeclaration(y)||e.isPropertyAssignment(y)}function ie(y,S){return e.isIdentifier(S)?e.factory.createIdentifier(y):e.factory.createStringLiteral(y)}function _e(y,S,k){var C=S?k.name:e.factory.createThis();return e.isIdentifier(y)?e.factory.createPropertyAccessExpression(C,y):e.factory.createElementAccessExpression(C,e.factory.createStringLiteralFromNode(y))}function Q(y){return y&=~64,y&=~8,y&16||(y|=4),y}function p(y){return y&=~4,y&=~16,y|=8,y}function D(y,S,k,C,me){me===void 0&&(me=!0);var De=e.getTokenAtPosition(y,k),X=k===C&&me,M=e.findAncestor(De.parent,O),H=28|32|64;if(!M||!(e.nodeOverlapsWithStartEnd(M.name,y,k,C)||X))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!se(M.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(M)&126975|H)!==H)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var V=M.name.text,h=e.startsWithUnderscore(V),F=ie(h?V:e.getUniqueName("_".concat(V),y),M.name),$=ie(h?e.getUniqueName(V.substring(1),y):V,M.name);return{isStatic:e.hasStaticModifier(M),isReadonly:e.hasEffectiveReadonlyModifier(M),type:f(M,S),container:M.kind===166?M.parent.parent:M.parent,originalName:M.name.text,declaration:M,fieldName:F,accessorName:$,renameAccessor:h}}ne.getAccessorConvertiblePropertyAtPosition=D;function le(y,S,k,C,me,De){return e.factory.createGetAccessorDeclaration(C,S,void 0,k,e.factory.createBlock([e.factory.createReturnStatement(_e(y,me,De))],!0))}function de(y,S,k,C,me,De){return e.factory.createSetAccessorDeclaration(C,S,[e.factory.createParameterDeclaration(void 0,void 0,e.factory.createIdentifier("value"),void 0,k)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(_e(y,me,De),e.factory.createIdentifier("value")))],!0))}function te(y,S,k,C,me,De){var X=e.factory.updatePropertyDeclaration(k,De,me,k.questionToken||k.exclamationToken,C,k.initializer);y.replaceNode(S,k,X)}function oe(y,S,k,C){var me=e.factory.updatePropertyAssignment(k,C,k.initializer);y.replacePropertyAssignment(S,k,me)}function ae(y,S,k,C,me,De){e.isPropertyDeclaration(k)?te(y,S,k,C,me,De):e.isPropertyAssignment(k)?oe(y,S,k,me):y.replaceNode(S,k,e.factory.updateParameterDeclaration(k,De,k.dotDotDotToken,e.cast(me,e.isIdentifier),k.questionToken,k.type,k.initializer))}function E(y,S,k,C,me){e.isParameterPropertyDeclaration(C,C.parent)?y.insertMemberAtStart(S,me,k):e.isPropertyAssignment(C)?y.insertNodeAfterComma(S,C,k):y.insertNodeAfter(S,C,k)}function I(y,S,k,C,me){!k.body||k.body.forEachChild(function De(X){e.isElementAccessExpression(X)&&X.expression.kind===108&&e.isStringLiteral(X.argumentExpression)&&X.argumentExpression.text===me&&e.isWriteAccess(X)&&y.replaceNode(S,X.argumentExpression,e.factory.createStringLiteral(C)),e.isPropertyAccessExpression(X)&&X.expression.kind===108&&X.name.text===me&&e.isWriteAccess(X)&&y.replaceNode(S,X.name,e.factory.createIdentifier(C)),!e.isFunctionLike(X)&&!e.isClassLike(X)&&X.forEachChild(De)})}function f(y,S){var k=e.getTypeAnnotationNode(y);if(e.isPropertyDeclaration(y)&&k&&y.questionToken){var C=S.getTypeChecker(),me=C.getTypeFromTypeNode(k);if(!C.isTypeAssignableTo(C.getUndefinedType(),me)){var De=e.isUnionTypeNode(k)?k.types:[k];return e.factory.createUnionTypeNode(zn(zn([],De,!0),[e.factory.createKeywordTypeNode(155)],!1))}}return k}function m(y,S){for(var k=[];y;){var C=e.getClassExtendsHeritageElement(y),me=C&&S.getSymbolAtLocation(C.expression);if(!me)break;var De=me.flags&2097152?S.getAliasedSymbol(me):me,X=De.declarations&&e.find(De.declarations,e.isClassLike);if(!X)break;k.push(X),y=X}return k}ne.getAllSupers=m})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="invalidImportSyntax";function se(p,D){var le=e.getSourceFileOfNode(D),de=e.getNamespaceDeclarationNode(D),te=p.program.getCompilerOptions(),oe=[];return oe.push(O(p,le,D,e.makeImport(de.name,void 0,D.moduleSpecifier,e.getQuotePreference(le,p.preferences)))),e.getEmitModuleKind(te)===e.ModuleKind.CommonJS&&oe.push(O(p,le,D,e.factory.createImportEqualsDeclaration(void 0,!1,de.name,e.factory.createExternalModuleReference(D.moduleSpecifier)))),oe}function O(p,D,le,de){var te=e.textChanges.ChangeTracker.with(p,function(oe){return oe.replaceNode(D,le,de)});return ne.createCodeFixActionWithoutFixAll(K,te,[e.Diagnostics.Replace_import_with_0,te[0].textChanges[0].newText])}ne.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:ie});function ie(p){var D=p.sourceFile,le=e.Diagnostics.This_expression_is_not_callable.code===p.errorCode?210:211,de=e.findAncestor(e.getTokenAtPosition(D,p.span.start),function(oe){return oe.kind===le});if(!de)return[];var te=de.expression;return Q(p,te)}ne.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:_e});function _e(p){var D=p.sourceFile,le=e.findAncestor(e.getTokenAtPosition(D,p.span.start),function(de){return de.getStart()===p.span.start&&de.getEnd()===p.span.start+p.span.length});return le?Q(p,le):[]}function Q(p,D){var le=p.program.getTypeChecker().getTypeAtLocation(D);if(!(le.symbol&&le.symbol.originatingImport))return[];var de=[],te=le.symbol.originatingImport;if(e.isImportCall(te)||e.addRange(de,se(p,te)),e.isExpression(D)&&!(e.isNamedDeclaration(D.parent)&&D.parent.name===D)){var oe=p.sourceFile,ae=e.textChanges.ChangeTracker.with(p,function(E){return E.replaceNode(oe,D,e.factory.createPropertyAccessExpression(D,"default"),{})});de.push(ne.createCodeFixActionWithoutFixAll(K,ae,e.Diagnostics.Use_synthetic_default_member))}return de}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="strictClassInitialization",se="addMissingPropertyDefiniteAssignmentAssertions",O="addMissingPropertyUndefinedType",ie="addMissingPropertyInitializer",_e=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];ne.registerCodeFix({errorCodes:_e,getCodeActions:function(f){var m=Q(f.sourceFile,f.span.start);if(!!m){var y=[];return e.append(y,le(f,m)),e.append(y,p(f,m)),e.append(y,te(f,m)),y}},fixIds:[se,O,ie],getAllCodeActions:function(I){return ne.codeFixAll(I,_e,function(f,m){var y=Q(m.file,m.start);if(!!y)switch(I.fixId){case se:D(f,m.file,y.prop);break;case O:de(f,m.file,y);break;case ie:var S=I.program.getTypeChecker(),k=ae(S,y.prop);if(!k)return;oe(f,m.file,y.prop,k);break;default:e.Debug.fail(JSON.stringify(I.fixId))}})}});function Q(I,f){var m=e.getTokenAtPosition(I,f);if(e.isIdentifier(m)&&e.isPropertyDeclaration(m.parent)){var y=e.getEffectiveTypeAnnotationNode(m.parent);if(y)return{type:y,prop:m.parent,isJs:e.isInJSFile(m.parent)}}}function p(I,f){if(!f.isJs){var m=e.textChanges.ChangeTracker.with(I,function(y){return D(y,I.sourceFile,f.prop)});return ne.createCodeFixAction(K,m,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,f.prop.getText()],se,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}}function D(I,f,m){e.suppressLeadingAndTrailingTrivia(m);var y=e.factory.updatePropertyDeclaration(m,m.modifiers,m.name,e.factory.createToken(53),m.type,m.initializer);I.replaceNode(f,m,y)}function le(I,f){var m=e.textChanges.ChangeTracker.with(I,function(y){return de(y,I.sourceFile,f)});return ne.createCodeFixAction(K,m,[e.Diagnostics.Add_undefined_type_to_property_0,f.prop.name.getText()],O,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function de(I,f,m){var y=e.factory.createKeywordTypeNode(155),S=e.isUnionTypeNode(m.type)?m.type.types.concat(y):[m.type,y],k=e.factory.createUnionTypeNode(S);m.isJs?I.addJSDocTags(f,m.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(k))]):I.replaceNode(f,m.type,k)}function te(I,f){if(!f.isJs){var m=I.program.getTypeChecker(),y=ae(m,f.prop);if(!!y){var S=e.textChanges.ChangeTracker.with(I,function(k){return oe(k,I.sourceFile,f.prop,y)});return ne.createCodeFixAction(K,S,[e.Diagnostics.Add_initializer_to_property_0,f.prop.name.getText()],ie,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}}function oe(I,f,m,y){e.suppressLeadingAndTrailingTrivia(m);var S=e.factory.updatePropertyDeclaration(m,m.modifiers,m.name,m.questionToken,m.type,y);I.replaceNode(f,m,S)}function ae(I,f){return E(I,I.getTypeFromTypeNode(f.type))}function E(I,f){if(f.flags&512)return f===I.getFalseType()||f===I.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(f.isStringLiteral())return e.factory.createStringLiteral(f.value);if(f.isNumberLiteral())return e.factory.createNumericLiteral(f.value);if(f.flags&2048)return e.factory.createBigIntLiteral(f.value);if(f.isUnion())return e.firstDefined(f.types,function(S){return E(I,S)});if(f.isClass()){var m=e.getClassLikeDeclarationOfSymbol(f.symbol);if(!m||e.hasSyntacticModifier(m,256))return;var y=e.getFirstConstructorWithBody(m);return y&&y.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(f.symbol.name),void 0,void 0)}else if(I.isArrayLikeType(f))return e.factory.createArrayLiteralExpression()}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="requireInTs",se=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=ie(Q.sourceFile,Q.program,Q.span.start);if(!!p){var D=e.textChanges.ChangeTracker.with(Q,function(le){return O(le,Q.sourceFile,p)});return[ne.createCodeFixAction(K,D,e.Diagnostics.Convert_require_to_import,K,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[K],getAllCodeActions:function(Q){return ne.codeFixAll(Q,se,function(p,D){var le=ie(D.file,Q.program,D.start);le&&O(p,Q.sourceFile,le)})}});function O(Q,p,D){var le=D.allowSyntheticDefaults,de=D.defaultImportName,te=D.namedImports,oe=D.statement,ae=D.required;Q.replaceNode(p,oe,de&&!le?e.factory.createImportEqualsDeclaration(void 0,!1,de,e.factory.createExternalModuleReference(ae)):e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,de,te),ae,void 0))}function ie(Q,p,D){var le=e.getTokenAtPosition(Q,D).parent;if(!e.isRequireCall(le,!0))throw e.Debug.failBadSyntaxKind(le);var de=e.cast(le.parent,e.isVariableDeclaration),te=e.tryCast(de.name,e.isIdentifier),oe=e.isObjectBindingPattern(de.name)?_e(de.name):void 0;if(te||oe)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(p.getCompilerOptions()),defaultImportName:te,namedImports:oe,statement:e.cast(de.parent.parent,e.isVariableStatement),required:e.first(le.arguments)}}function _e(Q){for(var p=[],D=0,le=Q.elements;D<le.length;D++){var de=le[D];if(!e.isIdentifier(de.name)||de.initializer)return;p.push(e.factory.createImportSpecifier(!1,e.tryCast(de.propertyName,e.isIdentifier),de.name))}if(p.length)return e.factory.createNamedImports(p)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="useDefaultImport",se=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=_e.sourceFile,p=_e.span.start,D=O(Q,p);if(!!D){var le=e.textChanges.ChangeTracker.with(_e,function(de){return ie(de,Q,D,_e.preferences)});return[ne.createCodeFixAction(K,le,e.Diagnostics.Convert_to_default_import,K,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[K],getAllCodeActions:function(_e){return ne.codeFixAll(_e,se,function(Q,p){var D=O(p.file,p.start);D&&ie(Q,p.file,D,_e.preferences)})}});function O(_e,Q){var p=e.getTokenAtPosition(_e,Q);if(!!e.isIdentifier(p)){var D=p.parent;if(e.isImportEqualsDeclaration(D)&&e.isExternalModuleReference(D.moduleReference))return{importNode:D,name:p,moduleSpecifier:D.moduleReference.expression};if(e.isNamespaceImport(D)){var le=D.parent.parent;return{importNode:le,name:p,moduleSpecifier:le.moduleSpecifier}}}}function ie(_e,Q,p,D){_e.replaceNode(Q,p.importNode,e.makeImport(p.name,void 0,p.moduleSpecifier,e.getQuotePreference(Q,D)))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="useBigintLiteral",se=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=e.textChanges.ChangeTracker.with(_e,function(p){return O(p,_e.sourceFile,_e.span)});if(Q.length>0)return[ne.createCodeFixAction(K,Q,e.Diagnostics.Convert_to_a_bigint_numeric_literal,K,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e,Q){return O(_e,Q.file,Q)})}});function O(ie,_e,Q){var p=e.tryCast(e.getTokenAtPosition(_e,Q.start),e.isNumericLiteral);if(!!p){var D=p.getText(_e)+"n";ie.replaceNode(_e,p,e.factory.createBigIntLiteral(D))}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixAddModuleReferTypeMissingTypeof",se=K,O=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];ne.registerCodeFix({errorCodes:O,getCodeActions:function(p){var D=p.sourceFile,le=p.span,de=ie(D,le.start),te=e.textChanges.ChangeTracker.with(p,function(oe){return _e(oe,D,de)});return[ne.createCodeFixAction(se,te,e.Diagnostics.Add_missing_typeof,se,e.Diagnostics.Add_missing_typeof)]},fixIds:[se],getAllCodeActions:function(Q){return ne.codeFixAll(Q,O,function(p,D){return _e(p,Q.sourceFile,ie(D.file,D.start))})}});function ie(Q,p){var D=e.getTokenAtPosition(Q,p);return e.Debug.assert(D.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(D.parent.kind===202,"Token parent should be an ImportType"),D.parent}function _e(Q,p,D){var le=e.factory.updateImportTypeNode(D,D.argument,D.assertions,D.qualifier,D.typeArguments,!0);Q.replaceNode(p,D,le)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="wrapJsxInFragment",se=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(p){var D=p.sourceFile,le=p.span,de=O(D,le.start);if(!!de){var te=e.textChanges.ChangeTracker.with(p,function(oe){return ie(oe,D,de)});return[ne.createCodeFixAction(K,te,e.Diagnostics.Wrap_in_JSX_fragment,K,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[K],getAllCodeActions:function(Q){return ne.codeFixAll(Q,se,function(p,D){var le=O(Q.sourceFile,D.start);!le||ie(p,Q.sourceFile,le)})}});function O(Q,p){var D=e.getTokenAtPosition(Q,p),le=D.parent,de=le.parent;if(!(!e.isBinaryExpression(de)&&(de=de.parent,!e.isBinaryExpression(de)))&&!!e.nodeIsMissing(de.operatorToken))return de}function ie(Q,p,D){var le=_e(D);le&&Q.replaceNode(p,D,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),le,e.factory.createJsxJsxClosingFragment()))}function _e(Q){for(var p=[],D=Q;;)if(e.isBinaryExpression(D)&&e.nodeIsMissing(D.operatorToken)&&D.operatorToken.kind===27){if(p.push(D.left),e.isJsxChild(D.right))return p.push(D.right),p;if(e.isBinaryExpression(D.right)){D=D.right;continue}else return}else return}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixConvertToMappedObjectType",se=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(p){var D=p.sourceFile,le=p.span,de=O(D,le.start);if(!!de){var te=e.textChanges.ChangeTracker.with(p,function(ae){return _e(ae,D,de)}),oe=e.idText(de.container.name);return[ne.createCodeFixAction(K,te,[e.Diagnostics.Convert_0_to_mapped_object_type,oe],K,[e.Diagnostics.Convert_0_to_mapped_object_type,oe])]}},fixIds:[K],getAllCodeActions:function(Q){return ne.codeFixAll(Q,se,function(p,D){var le=O(D.file,D.start);le&&_e(p,D.file,le)})}});function O(Q,p){var D=e.getTokenAtPosition(Q,p),le=e.tryCast(D.parent.parent,e.isIndexSignatureDeclaration);if(!!le){var de=e.isInterfaceDeclaration(le.parent)?le.parent:e.tryCast(le.parent.parent,e.isTypeAliasDeclaration);if(!!de)return{indexSignature:le,container:de}}}function ie(Q,p){return e.factory.createTypeAliasDeclaration(Q.modifiers,Q.name,Q.typeParameters,p)}function _e(Q,p,D){var le=D.indexSignature,de=D.container,te=e.isInterfaceDeclaration(de)?de.members:de.type.members,oe=te.filter(function(m){return!e.isIndexSignatureDeclaration(m)}),ae=e.first(le.parameters),E=e.factory.createTypeParameterDeclaration(void 0,e.cast(ae.name,e.isIdentifier),ae.type),I=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(le)?e.factory.createModifier(146):void 0,E,void 0,le.questionToken,le.type,void 0),f=e.factory.createIntersectionTypeNode(zn(zn(zn([],e.getAllSuperTypeNodes(de),!0),[I],!1),oe.length?[e.factory.createTypeLiteralNode(oe)]:e.emptyArray,!0));Q.replaceNode(p,de,ie(de,f))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="removeAccidentalCallParentheses",se=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(O){var ie=e.findAncestor(e.getTokenAtPosition(O.sourceFile,O.span.start),e.isCallExpression);if(!!ie){var _e=e.textChanges.ChangeTracker.with(O,function(Q){Q.deleteRange(O.sourceFile,{pos:ie.expression.end,end:ie.end})});return[ne.createCodeFixActionWithoutFixAll(K,_e,e.Diagnostics.Remove_parentheses)]}},fixIds:[K]})})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="removeUnnecessaryAwait",se=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(_e){var Q=e.textChanges.ChangeTracker.with(_e,function(p){return O(p,_e.sourceFile,_e.span)});if(Q.length>0)return[ne.createCodeFixAction(K,Q,e.Diagnostics.Remove_unnecessary_await,K,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[K],getAllCodeActions:function(ie){return ne.codeFixAll(ie,se,function(_e,Q){return O(_e,Q.file,Q)})}});function O(ie,_e,Q){var p=e.tryCast(e.getTokenAtPosition(_e,Q.start),function(ae){return ae.kind===133}),D=p&&e.tryCast(p.parent,e.isAwaitExpression);if(!!D){var le=D,de=e.isParenthesizedExpression(D.parent);if(de){var te=e.getLeftmostExpression(D.expression,!1);if(e.isIdentifier(te)){var oe=e.findPrecedingToken(D.parent.pos,_e);oe&&oe.kind!==103&&(le=D.parent)}}ie.replaceNode(_e,le,D.expression)}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],se="splitTypeOnlyImport";ne.registerCodeFix({errorCodes:K,fixIds:[se],getCodeActions:function(Q){var p=e.textChanges.ChangeTracker.with(Q,function(D){return ie(D,O(Q.sourceFile,Q.span),Q)});if(p.length)return[ne.createCodeFixAction(se,p,e.Diagnostics.Split_into_two_separate_import_declarations,se,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(_e){return ne.codeFixAll(_e,K,function(Q,p){ie(Q,O(_e.sourceFile,p),_e)})}});function O(_e,Q){return e.findAncestor(e.getTokenAtPosition(_e,Q.start),e.isImportDeclaration)}function ie(_e,Q,p){if(!!Q){var D=e.Debug.checkDefined(Q.importClause);_e.replaceNode(p.sourceFile,Q,e.factory.updateImportDeclaration(Q,Q.modifiers,e.factory.updateImportClause(D,D.isTypeOnly,D.name,void 0),Q.moduleSpecifier,Q.assertClause)),_e.insertNodeAfter(p.sourceFile,Q,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(D,D.isTypeOnly,void 0,D.namedBindings),Q.moduleSpecifier,Q.assertClause))}}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixConvertConstToLet",se=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];ne.registerCodeFix({errorCodes:se,getCodeActions:function(Q){var p=Q.sourceFile,D=Q.span,le=Q.program,de=O(p,D.start,le);if(de!==void 0){var te=e.textChanges.ChangeTracker.with(Q,function(oe){return ie(oe,p,de.token)});return[ne.createCodeFixActionMaybeFixAll(K,te,e.Diagnostics.Convert_const_to_let,K,e.Diagnostics.Convert_all_const_to_let)]}},getAllCodeActions:function(_e){var Q=_e.program,p=new e.Map;return ne.createCombinedCodeActions(e.textChanges.ChangeTracker.with(_e,function(D){ne.eachDiagnostic(_e,se,function(le){var de=O(le.file,le.start,Q);if(de&&e.addToSeen(p,e.getSymbolId(de.symbol)))return ie(D,le.file,de.token)})}))},fixIds:[K]});function O(_e,Q,p){var D,le=p.getTypeChecker(),de=le.getSymbolAtLocation(e.getTokenAtPosition(_e,Q));if(de!==void 0){var te=e.tryCast((D=de==null?void 0:de.valueDeclaration)===null||D===void 0?void 0:D.parent,e.isVariableDeclarationList);if(te!==void 0){var oe=e.findChildOfKind(te,85,_e);if(oe!==void 0)return{symbol:de,token:oe}}}}function ie(_e,Q,p){_e.replaceNode(Q,p,e.factory.createToken(119))}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="fixExpectedComma",se=e.Diagnostics._0_expected.code,O=[se];ne.registerCodeFix({errorCodes:O,getCodeActions:function(Q){var p=Q.sourceFile,D=ie(p,Q.span.start,Q.errorCode);if(!!D){var le=e.textChanges.ChangeTracker.with(Q,function(de){return _e(de,p,D)});return[ne.createCodeFixAction(K,le,[e.Diagnostics.Change_0_to_1,";",","],K,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[K],getAllCodeActions:function(Q){return ne.codeFixAll(Q,O,function(p,D){var le=ie(D.file,D.start,D.code);le&&_e(p,Q.sourceFile,le)})}});function ie(Q,p,D){var le=e.getTokenAtPosition(Q,p);return le.kind===26&&le.parent&&(e.isObjectLiteralExpression(le.parent)||e.isArrayLiteralExpression(le.parent))?{node:le}:void 0}function _e(Q,p,D){var le=D.node,de=e.factory.createToken(27);Q.replaceNode(p,le,de)}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="addVoidToPromise",se="addVoidToPromise",O=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];ne.registerCodeFix({errorCodes:O,fixIds:[se],getCodeActions:function(Q){var p=e.textChanges.ChangeTracker.with(Q,function(D){return ie(D,Q.sourceFile,Q.span,Q.program)});if(p.length>0)return[ne.createCodeFixAction(K,p,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,se,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(Q){return ne.codeFixAll(Q,O,function(p,D){return ie(p,D.file,D,Q.program,new e.Set)})}});function ie(Q,p,D,le,de){var te=e.getTokenAtPosition(p,D.start);if(!(!e.isIdentifier(te)||!e.isCallExpression(te.parent)||te.parent.expression!==te||te.parent.arguments.length!==0)){var oe=le.getTypeChecker(),ae=oe.getSymbolAtLocation(te),E=ae==null?void 0:ae.valueDeclaration;if(!(!E||!e.isParameter(E)||!e.isNewExpression(E.parent.parent))&&!(de==null?void 0:de.has(E))){de==null||de.add(E);var I=_e(E.parent.parent);if(e.some(I)){var f=I[0],m=!e.isUnionTypeNode(f)&&!e.isParenthesizedTypeNode(f)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([f,e.factory.createKeywordTypeNode(114)]).types[0]);m&&Q.insertText(p,f.pos,"("),Q.insertText(p,f.end,m?") | void":" | void")}else{var y=oe.getResolvedSignature(te.parent),S=y==null?void 0:y.parameters[0],k=S&&oe.getTypeOfSymbolAtLocation(S,E.parent.parent);e.isInJSFile(E)?(!k||k.flags&3)&&(Q.insertText(p,E.parent.parent.end,")"),Q.insertText(p,e.skipTrivia(p.text,E.parent.parent.pos),"/** @type {Promise<void>} */(")):(!k||k.flags&2)&&Q.insertText(p,E.parent.parent.expression.end,"<void>")}}}}function _e(Q){var p;if(e.isInJSFile(Q)){if(e.isParenthesizedExpression(Q.parent)){var D=(p=e.getJSDocTypeTag(Q.parent))===null||p===void 0?void 0:p.typeExpression.type;if(D&&e.isTypeReferenceNode(D)&&e.isIdentifier(D.typeName)&&e.idText(D.typeName)==="Promise")return D.typeArguments}}else return Q.typeArguments}})(o=e.codefix||(e.codefix={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="Convert export",se={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},O={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};ne.registerRefactor(K,{kinds:[se.kind,O.kind],getAvailableActions:function(E){var I=ie(E,E.triggerReason==="invoked");if(!I)return e.emptyArray;if(!ne.isRefactorErrorInfo(I)){var f=I.wasDefault?se:O;return[{name:K,description:f.description,actions:[f]}]}return E.preferences.provideRefactorNotApplicableReason?[{name:K,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[vi(vi({},se),{notApplicableReason:I.error}),vi(vi({},O),{notApplicableReason:I.error})]}]:e.emptyArray},getEditsForAction:function(E,I){e.Debug.assert(I===se.name||I===O.name,"Unexpected action name");var f=ie(E);e.Debug.assert(f&&!ne.isRefactorErrorInfo(f),"Expected applicable refactor info");var m=e.textChanges.ChangeTracker.with(E,function(y){return _e(E.file,E.program,f,y,E.cancellationToken)});return{edits:m,renameFilename:void 0,renameLocation:void 0}}});function ie(ae,E){E===void 0&&(E=!0);var I=ae.file,f=ae.program,m=e.getRefactorContextSpan(ae),y=e.getTokenAtPosition(I,m.start),S=!!(y.parent&&e.getSyntacticModifierFlags(y.parent)&1)&&E?y.parent:e.getParentNodeInSpan(y,I,m);if(!S||!e.isSourceFile(S.parent)&&!(e.isModuleBlock(S.parent)&&e.isAmbientModule(S.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var k=f.getTypeChecker(),C=oe(S,k),me=e.getSyntacticModifierFlags(S)||(e.isExportAssignment(S)&&!S.isExportEquals?1025:0),De=!!(me&1024);if(!(me&1)||!De&&C.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var X=function(h){return e.isIdentifier(h)&&k.getSymbolAtLocation(h)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(S.kind){case 259:case 260:case 261:case 263:case 262:case 264:{var M=S;return M.name?X(M.name)||{exportNode:M,exportName:M.name,wasDefault:De,exportingModuleSymbol:C}:void 0}case 240:{var H=S;if(!(H.declarationList.flags&2)||H.declarationList.declarations.length!==1)return;var V=e.first(H.declarationList.declarations);return V.initializer?(e.Debug.assert(!De,"Can't have a default flag here"),X(V.name)||{exportNode:H,exportName:V.name,wasDefault:De,exportingModuleSymbol:C}):void 0}case 274:{var M=S;return M.isExportEquals?void 0:X(M.expression)||{exportNode:M,exportName:M.expression,wasDefault:De,exportingModuleSymbol:C}}default:return}}function _e(ae,E,I,f,m){Q(ae,I,f,E.getTypeChecker()),p(E,I,f,m)}function Q(ae,E,I,f){var m=E.wasDefault,y=E.exportNode,S=E.exportName;if(m)if(e.isExportAssignment(y)&&!y.isExportEquals){var k=y.expression,C=te(k.text,k.text);I.replaceNode(ae,y,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([C])))}else I.delete(ae,e.Debug.checkDefined(e.findModifier(y,88),"Should find a default keyword in modifier list"));else{var me=e.Debug.checkDefined(e.findModifier(y,93),"Should find an export keyword in modifier list");switch(y.kind){case 259:case 260:case 261:I.insertNodeAfter(ae,me,e.factory.createToken(88));break;case 240:var De=e.first(y.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(S,f,ae)&&!De.type){I.replaceNode(ae,y,e.factory.createExportDefault(e.Debug.checkDefined(De.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:I.deleteModifier(ae,me),I.insertNodeAfter(ae,y,e.factory.createExportDefault(e.factory.createIdentifier(S.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(y.kind))}}}function p(ae,E,I,f){var m=E.wasDefault,y=E.exportName,S=E.exportingModuleSymbol,k=ae.getTypeChecker(),C=e.Debug.checkDefined(k.getSymbolAtLocation(y),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(ae.getSourceFiles(),k,f,C,S,y.text,m,function(me){if(y!==me){var De=me.getSourceFile();m?D(De,me,I,y.text):le(De,me,I)}})}function D(ae,E,I,f){var m=E.parent;switch(m.kind){case 208:I.replaceNode(ae,E,e.factory.createIdentifier(f));break;case 273:case 278:{var y=m;I.replaceNode(ae,y,de(f,y.name.text));break}case 270:{var S=m;e.Debug.assert(S.name===E,"Import clause name should match provided ref");var y=de(f,E.text),k=S.namedBindings;if(!k)I.replaceNode(ae,E,e.factory.createNamedImports([y]));else if(k.kind===271){I.deleteRange(ae,{pos:E.getStart(ae),end:k.getStart(ae)});var C=e.isStringLiteral(S.parent.moduleSpecifier)?e.quotePreferenceFromString(S.parent.moduleSpecifier,ae):1,me=e.makeImport(void 0,[de(f,E.text)],S.parent.moduleSpecifier,C);I.insertNodeAfter(ae,S.parent,me)}else I.delete(ae,E),I.insertNodeAtEndOfList(ae,k.elements,y);break}case 202:var De=m;I.replaceNode(ae,m,e.factory.createImportTypeNode(De.argument,De.assertions,e.factory.createIdentifier(f),De.typeArguments,De.isTypeOf));break;default:e.Debug.failBadSyntaxKind(m)}}function le(ae,E,I){var f=E.parent;switch(f.kind){case 208:I.replaceNode(ae,E,e.factory.createIdentifier("default"));break;case 273:{var m=e.factory.createIdentifier(f.name.text);f.parent.elements.length===1?I.replaceNode(ae,f.parent,m):(I.delete(ae,f),I.insertNodeBefore(ae,f.parent,m));break}case 278:{I.replaceNode(ae,f,te("default",f.name.text));break}default:e.Debug.assertNever(f,"Unexpected parent kind ".concat(f.kind))}}function de(ae,E){return e.factory.createImportSpecifier(!1,ae===E?void 0:e.factory.createIdentifier(ae),e.factory.createIdentifier(E))}function te(ae,E){return e.factory.createExportSpecifier(!1,ae===E?void 0:e.factory.createIdentifier(ae),e.factory.createIdentifier(E))}function oe(ae,E){var I=ae.parent;if(e.isSourceFile(I))return I.symbol;var f=I.parent.symbol;return f.valueDeclaration&&e.isExternalModuleAugmentation(f.valueDeclaration)?E.getMergedSymbol(f):f}})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K,se="Convert import",O=(K={},K[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},K[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},K[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},K);ne.registerRefactor(se,{kinds:e.getOwnValues(O).map(function(ae){return ae.kind}),getAvailableActions:function(E){var I=ie(E,E.triggerReason==="invoked");if(!I)return e.emptyArray;if(!ne.isRefactorErrorInfo(I)){var f=O[I.convertTo];return[{name:se,description:f.description,actions:[f]}]}return E.preferences.provideRefactorNotApplicableReason?e.getOwnValues(O).map(function(m){return{name:se,description:m.description,actions:[vi(vi({},m),{notApplicableReason:I.error})]}}):e.emptyArray},getEditsForAction:function(E,I){e.Debug.assert(e.some(e.getOwnValues(O),function(y){return y.name===I}),"Unexpected action name");var f=ie(E);e.Debug.assert(f&&!ne.isRefactorErrorInfo(f),"Expected applicable refactor info");var m=e.textChanges.ChangeTracker.with(E,function(y){return Q(E.file,E.program,y,f)});return{edits:m,renameFilename:void 0,renameLocation:void 0}}});function ie(ae,E){E===void 0&&(E=!0);var I=ae.file,f=e.getRefactorContextSpan(ae),m=e.getTokenAtPosition(I,f.start),y=E?e.findAncestor(m,e.isImportDeclaration):e.getParentNodeInSpan(m,I,f);if(!y||!e.isImportDeclaration(y))return{error:"Selection is not an import declaration."};var S=f.start+f.length,k=e.findNextToken(y,y.parent,I);if(!(k&&S>k.getStart())){var C=y.importClause;if(!C)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)};if(!C.namedBindings)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)};if(C.namedBindings.kind===271)return{convertTo:0,import:C.namedBindings};var me=_e(ae.program,C);return me?{convertTo:1,import:C.namedBindings}:{convertTo:2,import:C.namedBindings}}}function _e(ae,E){return e.getAllowSyntheticDefaultImports(ae.getCompilerOptions())&&te(E.parent.moduleSpecifier,ae.getTypeChecker())}function Q(ae,E,I,f){var m=E.getTypeChecker();f.convertTo===0?p(ae,m,I,f.import,e.getAllowSyntheticDefaultImports(E.getCompilerOptions())):de(ae,E,I,f.import,f.convertTo===1)}function p(ae,E,I,f,m){var y=!1,S=[],k=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(f.name,E,ae,function(F){if(!e.isPropertyAccessOrQualifiedName(F.parent))y=!0;else{var $=D(F.parent).text;E.resolveName($,F,67108863,!0)&&k.set($,!0),e.Debug.assert(le(F.parent)===F,"Parent expression should match id"),S.push(F.parent)}});for(var C=new e.Map,me=0,De=S;me<De.length;me++){var X=De[me],M=D(X).text,H=C.get(M);H===void 0&&C.set(M,H=k.has(M)?e.getUniqueName(M,ae):M),I.replaceNode(ae,X,e.factory.createIdentifier(H))}var V=[];C.forEach(function(F,$){V.push(e.factory.createImportSpecifier(!1,F===$?void 0:e.factory.createIdentifier($),e.factory.createIdentifier(F)))});var h=f.parent.parent;y&&!m?I.insertNodeAfter(ae,h,oe(h,void 0,V)):I.replaceNode(ae,h,oe(h,y?e.factory.createIdentifier(f.name.text):void 0,V))}function D(ae){return e.isPropertyAccessExpression(ae)?ae.name:ae.right}function le(ae){return e.isPropertyAccessExpression(ae)?ae.expression:ae.left}function de(ae,E,I,f,m){m===void 0&&(m=_e(E,f.parent));var y=E.getTypeChecker(),S=f.parent.parent,k=S.moduleSpecifier,C=new e.Set;f.elements.forEach(function(P){var N=y.getSymbolAtLocation(P.name);N&&C.add(N)});var me=k&&e.isStringLiteral(k)?e.codefix.moduleSpecifierToValidIdentifier(k.text,99):"module";function De(P){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(P.name,y,ae,function(N){var J=y.resolveName(me,N,67108863,!0);return J?C.has(J)?e.isExportSpecifier(N.parent):!0:!1})}for(var X=f.elements.some(De),M=X?e.getUniqueName(me,ae):me,H=new e.Set,V=function(P){var N=(P.propertyName||P.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(P.name,y,ae,function(J){var q=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(M),N);e.isShorthandPropertyAssignment(J.parent)?I.replaceNode(ae,J.parent,e.factory.createPropertyAssignment(J.text,q)):e.isExportSpecifier(J.parent)?H.add(P):I.replaceNode(ae,J,q)})},h=0,F=f.elements;h<F.length;h++){var $=F[h];V($)}if(I.replaceNode(ae,f,m?e.factory.createIdentifier(M):e.factory.createNamespaceImport(e.factory.createIdentifier(M))),H.size){var L=e.arrayFrom(H.values()).map(function(P){return e.factory.createImportSpecifier(P.isTypeOnly,P.propertyName&&e.factory.createIdentifier(P.propertyName.text),e.factory.createIdentifier(P.name.text))});I.insertNodeAfter(ae,f.parent.parent,oe(S,void 0,L))}}ne.doChangeNamedToNamespaceOrDefault=de;function te(ae,E){var I=E.resolveExternalModuleName(ae);if(!I)return!1;var f=E.resolveExternalModuleSymbol(I);return I!==f}function oe(ae,E,I){return e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,E,I&&I.length?e.factory.createNamedImports(I):void 0),ae.moduleSpecifier,void 0)}})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Convert to optional chain expression",ie=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),_e={name:O,description:ie,kind:"refactor.rewrite.expression.optionalChain"};ne.registerRefactor(O,{kinds:[_e.kind],getEditsForAction:p,getAvailableActions:Q});function Q(X){var M=te(X,X.triggerReason==="invoked");return M?ne.isRefactorErrorInfo(M)?X.preferences.provideRefactorNotApplicableReason?[{name:O,description:ie,actions:[vi(vi({},_e),{notApplicableReason:M.error})]}]:e.emptyArray:[{name:O,description:ie,actions:[_e]}]:e.emptyArray}function p(X,M){var H=te(X);e.Debug.assert(H&&!ne.isRefactorErrorInfo(H),"Expected applicable refactor info");var V=e.textChanges.ChangeTracker.with(X,function(h){return De(X.file,X.program.getTypeChecker(),h,H,M)});return{edits:V,renameFilename:void 0,renameLocation:void 0}}function D(X){return e.isBinaryExpression(X)||e.isConditionalExpression(X)}function le(X){return e.isExpressionStatement(X)||e.isReturnStatement(X)||e.isVariableStatement(X)}function de(X){return D(X)||le(X)}function te(X,M){M===void 0&&(M=!0);var H=X.file,V=X.program,h=e.getRefactorContextSpan(X),F=h.length===0;if(!(F&&!M)){var $=e.getTokenAtPosition(H,h.start),L=e.findTokenOnLeftOfPosition(H,h.start+h.length),P=e.createTextSpanFromBounds($.pos,L&&L.end>=$.pos?L.getEnd():$.getEnd()),N=F?S($):y($,P),J=N&&de(N)?k(N):void 0;if(!J)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var q=V.getTypeChecker();return e.isConditionalExpression(J)?oe(J,q):ae(J)}}function oe(X,M){var H=X.condition,V=C(X.whenTrue);if(!V||M.isNullableType(M.getTypeAtLocation(V)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(H)||e.isIdentifier(H))&&I(H,V.expression))return{finalExpression:V,occurrences:[H],expression:X};if(e.isBinaryExpression(H)){var h=E(V.expression,H);return h?{finalExpression:V,occurrences:h,expression:X}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function ae(X){if(X.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var M=C(X.right);if(!M)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var H=E(M.expression,X.left);return H?{finalExpression:M,occurrences:H,expression:X}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function E(X,M){for(var H=[];e.isBinaryExpression(M)&&M.operatorToken.kind===55;){var V=I(e.skipParentheses(X),e.skipParentheses(M.right));if(!V)break;H.push(V),X=V,M=M.left}var h=I(X,M);return h&&H.push(h),H.length>0?H:void 0}function I(X,M){if(!(!e.isIdentifier(M)&&!e.isPropertyAccessExpression(M)&&!e.isElementAccessExpression(M)))return f(X,M)?M:void 0}function f(X,M){for(;(e.isCallExpression(X)||e.isPropertyAccessExpression(X)||e.isElementAccessExpression(X))&&m(X)!==m(M);)X=X.expression;for(;e.isPropertyAccessExpression(X)&&e.isPropertyAccessExpression(M)||e.isElementAccessExpression(X)&&e.isElementAccessExpression(M);){if(m(X)!==m(M))return!1;X=X.expression,M=M.expression}return e.isIdentifier(X)&&e.isIdentifier(M)&&X.getText()===M.getText()}function m(X){if(e.isIdentifier(X)||e.isStringOrNumericLiteralLike(X))return X.getText();if(e.isPropertyAccessExpression(X))return m(X.name);if(e.isElementAccessExpression(X))return m(X.argumentExpression)}function y(X,M){for(;X.parent;){if(de(X)&&M.length!==0&&X.end>=M.start+M.length)return X;X=X.parent}}function S(X){for(;X.parent;){if(de(X)&&!de(X.parent))return X;X=X.parent}}function k(X){if(D(X))return X;if(e.isVariableStatement(X)){var M=e.getSingleVariableOfVariableStatement(X),H=M==null?void 0:M.initializer;return H&&D(H)?H:void 0}return X.expression&&D(X.expression)?X.expression:void 0}function C(X){if(X=e.skipParentheses(X),e.isBinaryExpression(X))return C(X.left);if((e.isPropertyAccessExpression(X)||e.isElementAccessExpression(X)||e.isCallExpression(X))&&!e.isOptionalChain(X))return X}function me(X,M,H){if(e.isPropertyAccessExpression(M)||e.isElementAccessExpression(M)||e.isCallExpression(M)){var V=me(X,M.expression,H),h=H.length>0?H[H.length-1]:void 0,F=(h==null?void 0:h.getText())===M.expression.getText();if(F&&H.pop(),e.isCallExpression(M))return F?e.factory.createCallChain(V,e.factory.createToken(28),M.typeArguments,M.arguments):e.factory.createCallChain(V,M.questionDotToken,M.typeArguments,M.arguments);if(e.isPropertyAccessExpression(M))return F?e.factory.createPropertyAccessChain(V,e.factory.createToken(28),M.name):e.factory.createPropertyAccessChain(V,M.questionDotToken,M.name);if(e.isElementAccessExpression(M))return F?e.factory.createElementAccessChain(V,e.factory.createToken(28),M.argumentExpression):e.factory.createElementAccessChain(V,M.questionDotToken,M.argumentExpression)}return M}function De(X,M,H,V,h){var F=V.finalExpression,$=V.occurrences,L=V.expression,P=$[$.length-1],N=me(M,F,$);N&&(e.isPropertyAccessExpression(N)||e.isElementAccessExpression(N)||e.isCallExpression(N))&&(e.isBinaryExpression(L)?H.replaceNodeRange(X,P,F,N):e.isConditionalExpression(L)&&H.replaceNode(X,L,e.factory.createBinaryExpression(N,e.factory.createToken(60),L.whenFalse)))}})(K=ne.convertToOptionalChainExpression||(ne.convertToOptionalChainExpression={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Convert overload list to single signature",ie=e.Diagnostics.Convert_overload_list_to_single_signature.message,_e={name:O,description:ie,kind:"refactor.rewrite.function.overloadList"};ne.registerRefactor(O,{kinds:[_e.kind],getEditsForAction:p,getAvailableActions:Q});function Q(de){var te=de.file,oe=de.startPosition,ae=de.program,E=le(te,oe,ae);return E?[{name:O,description:ie,actions:[_e]}]:e.emptyArray}function p(de){var te=de.file,oe=de.startPosition,ae=de.program,E=le(te,oe,ae);if(!E)return;var I=ae.getTypeChecker(),f=E[E.length-1],m=f;switch(f.kind){case 170:{m=e.factory.updateMethodSignature(f,f.modifiers,f.name,f.questionToken,f.typeParameters,S(E),f.type);break}case 171:{m=e.factory.updateMethodDeclaration(f,f.modifiers,f.asteriskToken,f.name,f.questionToken,f.typeParameters,S(E),f.type,f.body);break}case 176:{m=e.factory.updateCallSignature(f,f.typeParameters,S(E),f.type);break}case 173:{m=e.factory.updateConstructorDeclaration(f,f.modifiers,S(E),f.body);break}case 177:{m=e.factory.updateConstructSignature(f,f.typeParameters,S(E),f.type);break}case 259:{m=e.factory.updateFunctionDeclaration(f,f.modifiers,f.asteriskToken,f.name,f.typeParameters,S(E),f.type,f.body);break}default:return e.Debug.failBadSyntaxKind(f,"Unhandled signature kind in overload list conversion refactoring")}if(m===f)return;var y=e.textChanges.ChangeTracker.with(de,function(me){me.replaceNodeRange(te,E[0],E[E.length-1],m)});return{renameFilename:void 0,renameLocation:void 0,edits:y};function S(me){var De=me[me.length-1];return e.isFunctionLikeDeclaration(De)&&De.body&&(me=me.slice(0,me.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(me,k)))])}function k(me){var De=e.map(me.parameters,C);return e.setEmitFlags(e.factory.createTupleTypeNode(De),e.some(De,function(X){return!!e.length(e.getSyntheticLeadingComments(X))})?0:1)}function C(me){e.Debug.assert(e.isIdentifier(me.name));var De=e.setTextRange(e.factory.createNamedTupleMember(me.dotDotDotToken,me.name,me.questionToken,me.type||e.factory.createKeywordTypeNode(131)),me),X=me.symbol&&me.symbol.getDocumentationComment(I);if(X){var M=e.displayPartsToString(X);M.length&&e.setSyntheticLeadingComments(De,[{text:`*
  268. `.concat(M.split(`
  269. `).map(function(H){return" * ".concat(H)}).join(`
  270. `),`
  271. `),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return De}}function D(de){switch(de.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function le(de,te,oe){var ae=e.getTokenAtPosition(de,te),E=e.findAncestor(ae,D);if(!!E&&!(e.isFunctionLikeDeclaration(E)&&E.body&&e.rangeContainsPosition(E.body,te))){var I=oe.getTypeChecker(),f=E.symbol;if(!!f){var m=f.declarations;if(!(e.length(m)<=1)&&!!e.every(m,function(me){return e.getSourceFileOfNode(me)===de})&&!!D(m[0])){var y=m[0].kind;if(!!e.every(m,function(me){return me.kind===y})){var S=m;if(!e.some(S,function(me){return!!me.typeParameters||e.some(me.parameters,function(De){return!!De.modifiers||!e.isIdentifier(De.name)})})){var k=e.mapDefined(S,function(me){return I.getSignatureFromDeclaration(me)});if(e.length(k)===e.length(m)){var C=I.getReturnTypeOfSignature(k[0]);if(!!e.every(k,function(me){return I.getReturnTypeOfSignature(me)===C}))return S}}}}}}}})(K=ne.addOrRemoveBracesToArrowFunction||(ne.addOrRemoveBracesToArrowFunction={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Extract Symbol",ie={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},_e={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};ne.registerRefactor(O,{kinds:[ie.kind,_e.kind],getEditsForAction:p,getAvailableActions:Q});function Q(U){var ge=U.kind,pe=de(U.file,e.getRefactorContextSpan(U),U.triggerReason==="invoked"),He=pe.targetRange;if(He===void 0){if(!pe.errors||pe.errors.length===0||!U.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var Be=[];return ne.refactorKindBeginsWith(_e.kind,ge)&&Be.push({name:O,description:_e.description,actions:[vi(vi({},_e),{notApplicableReason:mr(pe.errors)})]}),ne.refactorKindBeginsWith(ie.kind,ge)&&Be.push({name:O,description:ie.description,actions:[vi(vi({},ie),{notApplicableReason:mr(pe.errors)})]}),Be}var Me=m(He,U);if(Me===void 0)return e.emptyArray;for(var Le=[],Ae=new e.Map,Xe,Ne=[],Oe=new e.Map,be,Y=0,d=0,j=Me;d<j.length;d++){var Ce=j[d],Se=Ce.functionExtraction,Re=Ce.constantExtraction;if(ne.refactorKindBeginsWith(_e.kind,ge)){var er=Se.description;Se.errors.length===0?Ae.has(er)||(Ae.set(er,!0),Le.push({description:er,name:"function_scope_".concat(Y),kind:_e.kind})):Xe||(Xe={description:er,name:"function_scope_".concat(Y),notApplicableReason:mr(Se.errors),kind:_e.kind})}if(ne.refactorKindBeginsWith(ie.kind,ge)){var er=Re.description;Re.errors.length===0?Oe.has(er)||(Oe.set(er,!0),Ne.push({description:er,name:"constant_scope_".concat(Y),kind:ie.kind})):be||(be={description:er,name:"constant_scope_".concat(Y),notApplicableReason:mr(Re.errors),kind:ie.kind})}Y++}var wr=[];return Le.length?wr.push({name:O,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:Le}):U.preferences.provideRefactorNotApplicableReason&&Xe&&wr.push({name:O,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[Xe]}),Ne.length?wr.push({name:O,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:Ne}):U.preferences.provideRefactorNotApplicableReason&&be&&wr.push({name:O,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[be]}),wr.length?wr:e.emptyArray;function mr(Ue){var t=Ue[0].messageText;return typeof t!="string"&&(t=t.messageText),t}}se.getRefactorActionsToExtractSymbol=Q;function p(U,ge){var pe=de(U.file,e.getRefactorContextSpan(U)),He=pe.targetRange,Be=/^function_scope_(\d+)$/.exec(ge);if(Be){var Me=+Be[1];return e.Debug.assert(isFinite(Me),"Expected to parse a finite number from the function scope index"),I(He,U,Me)}var Le=/^constant_scope_(\d+)$/.exec(ge);if(Le){var Me=+Le[1];return e.Debug.assert(isFinite(Me),"Expected to parse a finite number from the constant scope index"),f(He,U,Me)}e.Debug.fail("Unrecognized action name")}se.getRefactorEditsToExtractSymbol=p;var D;(function(U){function ge(pe){return{message:pe,code:0,category:e.DiagnosticCategory.Message,key:pe}}U.cannotExtractRange=ge("Cannot extract range."),U.cannotExtractImport=ge("Cannot extract import statement."),U.cannotExtractSuper=ge("Cannot extract super call."),U.cannotExtractJSDoc=ge("Cannot extract JSDoc."),U.cannotExtractEmpty=ge("Cannot extract empty range."),U.expressionExpected=ge("expression expected."),U.uselessConstantType=ge("No reason to extract constant of type."),U.statementOrExpressionExpected=ge("Statement or expression expected."),U.cannotExtractRangeContainingConditionalBreakOrContinueStatements=ge("Cannot extract range containing conditional break or continue statements."),U.cannotExtractRangeContainingConditionalReturnStatement=ge("Cannot extract range containing conditional return statement."),U.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=ge("Cannot extract range containing labeled break or continue with target outside of the range."),U.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=ge("Cannot extract range containing writes to references located outside of the target range in generators."),U.typeWillNotBeVisibleInTheNewScope=ge("Type will not visible in the new scope."),U.functionWillNotBeVisibleInTheNewScope=ge("Function will not visible in the new scope."),U.cannotExtractIdentifier=ge("Select more than a single identifier."),U.cannotExtractExportedEntity=ge("Cannot extract exported declaration"),U.cannotWriteInExpression=ge("Cannot write back side-effects when extracting an expression"),U.cannotExtractReadonlyPropertyInitializerOutsideConstructor=ge("Cannot move initialization of read-only class property outside of the constructor"),U.cannotExtractAmbientBlock=ge("Cannot extract code from ambient contexts"),U.cannotAccessVariablesFromNestedScopes=ge("Cannot access variables from nested scopes"),U.cannotExtractToJSClass=ge("Cannot extract constant to a class scope in JS"),U.cannotExtractToExpressionArrowFunction=ge("Cannot extract constant to an arrow function without a block"),U.cannotExtractFunctionsContainingThisToMethod=ge("Cannot extract functions containing this to method")})(D=se.Messages||(se.Messages={}));var le;(function(U){U[U.None=0]="None",U[U.HasReturn=1]="HasReturn",U[U.IsGenerator=2]="IsGenerator",U[U.IsAsyncFunction=4]="IsAsyncFunction",U[U.UsesThis=8]="UsesThis",U[U.UsesThisInFunction=16]="UsesThisInFunction",U[U.InStaticRegion=32]="InStaticRegion"})(le||(le={}));function de(U,ge,pe){pe===void 0&&(pe=!0);var He=ge.length;if(He===0&&!pe)return{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractEmpty)]};var Be=He===0&&pe,Me=e.findFirstNonJsxWhitespaceToken(U,ge.start),Le=e.findTokenOnLeftOfPosition(U,e.textSpanEnd(ge)),Ae=Me&&Le&&pe?te(Me,Le,U):ge,Xe=Be?B(Me):e.getParentNodeInSpan(Me,U,Ae),Ne=Be?Xe:e.getParentNodeInSpan(Le,U,Ae),Oe=le.None,be;if(!Xe||!Ne)return{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractRange)]};if(Xe.flags&8388608)return{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractJSDoc)]};if(Xe.parent!==Ne.parent)return{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractRange)]};if(Xe!==Ne){if(!A(Xe.parent))return{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractRange)]};for(var Y=[],d=0,j=Xe.parent.statements;d<j.length;d++){var Ce=j[d];if(Ce===Xe||Y.length){var Se=t(Ce);if(Se)return{errors:Se};Y.push(Ce)}if(Ce===Ne)break}return Y.length?{targetRange:{range:Y,facts:Oe,thisNode:be}}:{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractRange)]}}if(e.isReturnStatement(Xe)&&!Xe.expression)return{errors:[e.createFileDiagnostic(U,ge.start,He,D.cannotExtractRange)]};var Re=wr(Xe),er=mr(Re)||t(Re);if(er)return{errors:er};return{targetRange:{range:oe(Re),facts:Oe,thisNode:be}};function wr(qr){if(e.isReturnStatement(qr)){if(qr.expression)return qr.expression}else if(e.isVariableStatement(qr)||e.isVariableDeclarationList(qr)){for(var ln=e.isVariableStatement(qr)?qr.declarationList.declarations:qr.declarations,dr=0,vr=void 0,kr=0,Ur=ln;kr<Ur.length;kr++){var Cr=Ur[kr];Cr.initializer&&(dr++,vr=Cr.initializer)}if(dr===1)return vr}else if(e.isVariableDeclaration(qr)&&qr.initializer)return qr.initializer;return qr}function mr(qr){if(e.isIdentifier(e.isExpressionStatement(qr)?qr.expression:qr))return[e.createDiagnosticForNode(qr,D.cannotExtractIdentifier)]}function Ue(qr,ln){for(var dr=qr;dr!==ln;){if(dr.kind===169){e.isStatic(dr)&&(Oe|=le.InStaticRegion);break}else if(dr.kind===166){var vr=e.getContainingFunction(dr);vr.kind===173&&(Oe|=le.InStaticRegion);break}else dr.kind===171&&e.isStatic(dr)&&(Oe|=le.InStaticRegion);dr=dr.parent}}function t(qr){var ln;if(function(Br){Br[Br.None=0]="None",Br[Br.Break=1]="Break",Br[Br.Continue=2]="Continue",Br[Br.Return=4]="Return"}(ln||(ln={})),e.Debug.assert(qr.pos<=qr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(qr.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(qr)&&!(e.isExpressionNode(qr)&&u(qr))&&!z(qr))return[e.createDiagnosticForNode(qr,D.statementOrExpressionExpected)];if(qr.flags&16777216)return[e.createDiagnosticForNode(qr,D.cannotExtractAmbientBlock)];var dr=e.getContainingClass(qr);dr&&Ue(qr,dr);var vr,kr=4,Ur;if(rn(qr),Oe&le.UsesThis){var Cr=e.getThisContainer(qr,!1);(Cr.kind===259||Cr.kind===171&&Cr.parent.kind===207||Cr.kind===215)&&(Oe|=le.UsesThisInFunction)}return vr;function rn(Br){if(vr)return!0;if(e.isDeclaration(Br)){var pn=Br.kind===257?Br.parent.parent:Br;if(e.hasSyntacticModifier(pn,1))return(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractExportedEntity)),!0}switch(Br.kind){case 269:return(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractImport)),!0;case 274:return(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractExportedEntity)),!0;case 106:if(Br.parent.kind===210){var ve=e.getContainingClass(Br);if(ve===void 0||ve.pos<ge.start||ve.end>=ge.start+ge.length)return(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractSuper)),!0}else Oe|=le.UsesThis,be=Br;break;case 216:e.forEachChild(Br,function ze(Ar){if(e.isThis(Ar))Oe|=le.UsesThis,be=Br;else{if(e.isClassLike(Ar)||e.isFunctionLike(Ar)&&!e.isArrowFunction(Ar))return!1;e.forEachChild(Ar,ze)}});case 260:case 259:e.isSourceFile(Br.parent)&&Br.parent.externalModuleIndicator===void 0&&(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}var or=kr;switch(Br.kind){case 242:kr&=~4;break;case 255:kr=0;break;case 238:Br.parent&&Br.parent.kind===255&&Br.parent.finallyBlock===Br&&(kr=4);break;case 293:case 292:kr|=1;break;default:e.isIterationStatement(Br,!1)&&(kr|=1|2);break}switch(Br.kind){case 194:case 108:Oe|=le.UsesThis,be=Br;break;case 253:{var Ee=Br.label;(Ur||(Ur=[])).push(Ee.escapedText),e.forEachChild(Br,rn),Ur.pop();break}case 249:case 248:{var Ee=Br.label;Ee?e.contains(Ur,Ee.escapedText)||(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):kr&(Br.kind===249?1:2)||(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:Oe|=le.IsAsyncFunction;break;case 226:Oe|=le.IsGenerator;break;case 250:kr&4?Oe|=le.HasReturn:(vr||(vr=[])).push(e.createDiagnosticForNode(Br,D.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Br,rn);break}kr=or}}}se.getRangeToExtract=de;function te(U,ge,pe){var He=U.getStart(pe),Be=ge.getEnd();return pe.text.charCodeAt(Be)===59&&Be++,{start:He,length:Be-He}}function oe(U){if(e.isStatement(U))return[U];if(e.isExpressionNode(U))return e.isExpressionStatement(U.parent)?[U.parent]:U;if(z(U))return U}function ae(U){return e.isArrowFunction(U)?e.isFunctionBody(U.body):e.isFunctionLikeDeclaration(U)||e.isSourceFile(U)||e.isModuleBlock(U)||e.isClassLike(U)}function E(U){var ge=b(U.range)?e.first(U.range):U.range;if(U.facts&le.UsesThis&&!(U.facts&le.UsesThisInFunction)){var pe=e.getContainingClass(ge);if(pe){var He=e.findAncestor(ge,e.isFunctionLikeDeclaration);return He?[He,pe]:[pe]}}for(var Be=[];;)if(ge=ge.parent,ge.kind===166&&(ge=e.findAncestor(ge,function(Me){return e.isFunctionLikeDeclaration(Me)}).parent),ae(ge)&&(Be.push(ge),ge.kind===308))return Be}function I(U,ge,pe){var He=y(U,ge),Be=He.scopes,Me=He.readsAndWrites,Le=Me.target,Ae=Me.usagesPerScope,Xe=Me.functionErrorsPerScope,Ne=Me.exposedVariableDeclarations;return e.Debug.assert(!Xe[pe].length,"The extraction went missing? How?"),ge.cancellationToken.throwIfCancellationRequested(),M(Le,Be[pe],Ae[pe],Ne,U,ge)}function f(U,ge,pe){var He=y(U,ge),Be=He.scopes,Me=He.readsAndWrites,Le=Me.target,Ae=Me.usagesPerScope,Xe=Me.constantErrorsPerScope,Ne=Me.exposedVariableDeclarations;e.Debug.assert(!Xe[pe].length,"The extraction went missing? How?"),e.Debug.assert(Ne.length===0,"Extract constant accepted a range containing a variable declaration?"),ge.cancellationToken.throwIfCancellationRequested();var Oe=e.isExpression(Le)?Le:Le.statements[0].expression;return H(Oe,Be[pe],Ae[pe],U.facts,ge)}function m(U,ge){var pe=y(U,ge),He=pe.scopes,Be=pe.readsAndWrites,Me=Be.functionErrorsPerScope,Le=Be.constantErrorsPerScope,Ae=He.map(function(Xe,Ne){var Oe=S(Xe),be=k(Xe),Y=e.isFunctionLikeDeclaration(Xe)?C(Xe):e.isClassLike(Xe)?me(Xe):De(Xe),d,j;return Y===1?(d=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Oe,"global"]),j=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[be,"global"])):Y===0?(d=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Oe,"module"]),j=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[be,"module"])):(d=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Oe,Y]),j=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[be,Y])),Ne===0&&!e.isClassLike(Xe)&&(j=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[be])),{functionExtraction:{description:d,errors:Me[Ne]},constantExtraction:{description:j,errors:Le[Ne]}}});return Ae}function y(U,ge){var pe=ge.file,He=E(U),Be=x(U,pe),Me=Z(U,He,Be,pe,ge.program.getTypeChecker(),ge.cancellationToken);return{scopes:He,readsAndWrites:Me}}function S(U){return e.isFunctionLikeDeclaration(U)?"inner function":e.isClassLike(U)?"method":"function"}function k(U){return e.isClassLike(U)?"readonly field":"constant"}function C(U){switch(U.kind){case 173:return"constructor";case 215:case 259:return U.name?"function '".concat(U.name.text,"'"):e.ANONYMOUS;case 216:return"arrow function";case 171:return"method '".concat(U.name.getText(),"'");case 174:return"'get ".concat(U.name.getText(),"'");case 175:return"'set ".concat(U.name.getText(),"'");default:throw e.Debug.assertNever(U,"Unexpected scope kind ".concat(U.kind))}}function me(U){return U.kind===260?U.name?"class '".concat(U.name.text,"'"):"anonymous class declaration":U.name?"class expression '".concat(U.name.text,"'"):"anonymous class expression"}function De(U){return U.kind===265?"namespace '".concat(U.parent.name.getText(),"'"):U.externalModuleIndicator?0:1}var X;(function(U){U[U.Module=0]="Module",U[U.Global=1]="Global"})(X||(X={}));function M(U,ge,pe,He,Be,Me){var Le=pe.usages,Ae=pe.typeParameterUsages,Xe=pe.substitutions,Ne=Me.program.getTypeChecker(),Oe=e.getEmitScriptTarget(Me.program.getCompilerOptions()),be=e.codefix.createImportAdder(Me.file,Me.program,Me.preferences,Me.host),Y=ge.getSourceFile(),d=e.getUniqueName(e.isClassLike(ge)?"newMethod":"newFunction",Y),j=e.isInJSFile(ge),Ce=e.factory.createIdentifier(d),Se,Re=[],er=[],wr;Le.forEach(function(jr,on){var je;if(!j){var Sr=Ne.getTypeOfSymbolAtLocation(jr.symbol,jr.node);Sr=Ne.getBaseTypeOfLiteralType(Sr),je=e.codefix.typeToAutoImportableTypeNode(Ne,be,Sr,ge,Oe,1)}var Te=e.factory.createParameterDeclaration(void 0,void 0,on,void 0,je);Re.push(Te),jr.usage===2&&(wr||(wr=[])).push(jr),er.push(e.factory.createIdentifier(on))});var mr=e.arrayFrom(Ae.values()).map(function(jr){return{type:jr,declaration:h(jr)}}),Ue=mr.sort(F),t=Ue.length===0?void 0:Ue.map(function(jr){return jr.declaration}),qr=t!==void 0?t.map(function(jr){return e.factory.createTypeReferenceNode(jr.name,void 0)}):void 0;if(e.isExpression(U)&&!j){var ln=Ne.getContextualType(U);Se=Ne.typeToTypeNode(ln,ge,1)}var dr=L(U,He,wr,Xe,!!(Be.facts&le.HasReturn)),vr=dr.body,kr=dr.returnValueProperty;e.suppressLeadingAndTrailingTrivia(vr);var Ur,Cr=!!(Be.facts&le.UsesThisInFunction);if(e.isClassLike(ge)){var rn=j?[]:[e.factory.createModifier(121)];Be.facts&le.InStaticRegion&&rn.push(e.factory.createModifier(124)),Be.facts&le.IsAsyncFunction&&rn.push(e.factory.createModifier(132)),Ur=e.factory.createMethodDeclaration(rn.length?rn:void 0,Be.facts&le.IsGenerator?e.factory.createToken(41):void 0,Ce,void 0,t,Re,Se,vr)}else Cr&&Re.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,Ne.typeToTypeNode(Ne.getTypeAtLocation(Be.thisNode),ge,1),void 0)),Ur=e.factory.createFunctionDeclaration(Be.facts&le.IsAsyncFunction?[e.factory.createToken(132)]:void 0,Be.facts&le.IsGenerator?e.factory.createToken(41):void 0,Ce,t,Re,Se,vr);var Br=e.textChanges.ChangeTracker.fromContext(Me),pn=(b(Be.range)?e.last(Be.range):Be.range).end,ve=J(pn,ge);ve?Br.insertNodeBefore(Me.file,ve,Ur,!0):Br.insertNodeAtEndOfScope(Me.file,ge,Ur),be.writeFixes(Br);var or=[],Ee=$(ge,Be,d);Cr&&er.unshift(e.factory.createIdentifier("this"));var ze=e.factory.createCallExpression(Cr?e.factory.createPropertyAccessExpression(Ee,"call"):Ee,qr,er);if(Be.facts&le.IsGenerator&&(ze=e.factory.createYieldExpression(e.factory.createToken(41),ze)),Be.facts&le.IsAsyncFunction&&(ze=e.factory.createAwaitExpression(ze)),w(U)&&(ze=e.factory.createJsxExpression(void 0,ze)),He.length&&!wr)if(e.Debug.assert(!kr,"Expected no returnValueProperty"),e.Debug.assert(!(Be.facts&le.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),He.length===1){var Ar=He[0];or.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Ar.name),void 0,e.getSynthesizedDeepClone(Ar.type),ze)],Ar.parent.flags)))}else{for(var xe=[],cr=[],Mr=He[0].parent.flags,Rr=!1,Qr=0,en=He;Qr<en.length;Qr++){var Ar=en[Qr];xe.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Ar.name)));var vn=Ne.typeToTypeNode(Ne.getBaseTypeOfLiteralType(Ne.getTypeAtLocation(Ar)),ge,1);cr.push(e.factory.createPropertySignature(void 0,Ar.symbol.name,void 0,vn)),Rr=Rr||Ar.type!==void 0,Mr=Mr&Ar.parent.flags}var Ie=Rr?e.factory.createTypeLiteralNode(cr):void 0;Ie&&e.setEmitFlags(Ie,1),or.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(xe),void 0,Ie,ze)],Mr)))}else if(He.length||wr){if(He.length)for(var We=0,xr=He;We<xr.length;We++){var Ar=xr[We],Lr=Ar.parent.flags;Lr&2&&(Lr=Lr&~2|1),or.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ar.symbol.name,void 0,Pr(Ar.type))],Lr)))}kr&&or.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(kr,void 0,Pr(Se))],1)));var xn=ye(He,wr);kr&&xn.unshift(e.factory.createShorthandPropertyAssignment(kr)),xn.length===1?(e.Debug.assert(!kr,"Shouldn't have returnValueProperty here"),or.push(e.factory.createExpressionStatement(e.factory.createAssignment(xn[0].name,ze))),Be.facts&le.HasReturn&&or.push(e.factory.createReturnStatement())):(or.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(xn),ze))),kr&&or.push(e.factory.createReturnStatement(e.factory.createIdentifier(kr))))}else Be.facts&le.HasReturn?or.push(e.factory.createReturnStatement(ze)):b(Be.range)?or.push(e.factory.createExpressionStatement(ze)):or.push(ze);b(Be.range)?Br.replaceNodeRangeWithNodes(Me.file,e.first(Be.range),e.last(Be.range),or):Br.replaceNodeWithNodes(Me.file,Be.range,or);var An=Br.getChanges(),Qn=b(Be.range)?e.first(Be.range):Be.range,ai=Qn.getSourceFile().fileName,Dr=e.getRenameLocation(An,ai,d,!1);return{renameFilename:ai,renameLocation:Dr,edits:An};function Pr(jr){if(jr!==void 0){for(var on=e.getSynthesizedDeepClone(jr),je=on;e.isParenthesizedTypeNode(je);)je=je.type;return e.isUnionTypeNode(je)&&e.find(je.types,function(Sr){return Sr.kind===155})?on:e.factory.createUnionTypeNode([on,e.factory.createKeywordTypeNode(155)])}}}function H(U,ge,pe,He,Be){var Me,Le=pe.substitutions,Ae=Be.program.getTypeChecker(),Xe=ge.getSourceFile(),Ne=e.isPropertyAccessExpression(U)&&!e.isClassLike(ge)&&!Ae.resolveName(U.name.text,U,111551,!1)&&!e.isPrivateIdentifier(U.name)&&!e.isKeyword(U.name.originalKeywordKind)?U.name.text:e.getUniqueName(e.isClassLike(ge)?"newProperty":"newLocal",Xe),Oe=e.isInJSFile(ge),be=Oe||!Ae.isContextSensitive(U)?void 0:Ae.typeToTypeNode(Ae.getContextualType(U),ge,1),Y=P(e.skipParentheses(U),Le);Me=dr(be,Y),be=Me.variableType,Y=Me.initializer,e.suppressLeadingAndTrailingTrivia(Y);var d=e.textChanges.ChangeTracker.fromContext(Be);if(e.isClassLike(ge)){e.Debug.assert(!Oe,"Cannot extract to a JS class");var j=[];j.push(e.factory.createModifier(121)),He&le.InStaticRegion&&j.push(e.factory.createModifier(124)),j.push(e.factory.createModifier(146));var Ce=e.factory.createPropertyDeclaration(j,Ne,void 0,be,Y),Se=e.factory.createPropertyAccessExpression(He&le.InStaticRegion?e.factory.createIdentifier(ge.name.getText()):e.factory.createThis(),e.factory.createIdentifier(Ne));w(U)&&(Se=e.factory.createJsxExpression(void 0,Se));var Re=U.pos,er=q(Re,ge);d.insertNodeBefore(Be.file,er,Ce,!0),d.replaceNode(Be.file,U,Se)}else{var wr=e.factory.createVariableDeclaration(Ne,void 0,be,Y),mr=V(U,ge);if(mr){d.insertNodeBefore(Be.file,mr,wr);var Se=e.factory.createIdentifier(Ne);d.replaceNode(Be.file,U,Se)}else if(U.parent.kind===241&&ge===e.findAncestor(U,ae)){var Ue=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([wr],2));d.replaceNode(Be.file,U.parent,Ue)}else{var Ue=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([wr],2)),er=G(U,ge);if(er.pos===0?d.insertNodeAtTopOfFile(Be.file,Ue,!1):d.insertNodeBefore(Be.file,er,Ue,!1),U.parent.kind===241)d.delete(Be.file,U.parent);else{var Se=e.factory.createIdentifier(Ne);w(U)&&(Se=e.factory.createJsxExpression(void 0,Se)),d.replaceNode(Be.file,U,Se)}}}var t=d.getChanges(),qr=U.getSourceFile().fileName,ln=e.getRenameLocation(t,qr,Ne,!0);return{renameFilename:qr,renameLocation:ln,edits:t};function dr(vr,kr){if(vr===void 0)return{variableType:vr,initializer:kr};if(!e.isFunctionExpression(kr)&&!e.isArrowFunction(kr)||!!kr.typeParameters)return{variableType:vr,initializer:kr};var Ur=Ae.getTypeAtLocation(U),Cr=e.singleOrUndefined(Ae.getSignaturesOfType(Ur,0));if(!Cr)return{variableType:vr,initializer:kr};if(Cr.getTypeParameters())return{variableType:vr,initializer:kr};for(var rn=[],Br=!1,pn=0,ve=kr.parameters;pn<ve.length;pn++){var or=ve[pn];if(or.type)rn.push(or);else{var Ee=Ae.getTypeAtLocation(or);Ee===Ae.getAnyType()&&(Br=!0),rn.push(e.factory.updateParameterDeclaration(or,or.modifiers,or.dotDotDotToken,or.name,or.questionToken,or.type||Ae.typeToTypeNode(Ee,ge,1),or.initializer))}}if(Br)return{variableType:vr,initializer:kr};if(vr=void 0,e.isArrowFunction(kr))kr=e.factory.updateArrowFunction(kr,e.canHaveModifiers(U)?e.getModifiers(U):void 0,kr.typeParameters,rn,kr.type||Ae.typeToTypeNode(Cr.getReturnType(),ge,1),kr.equalsGreaterThanToken,kr.body);else{if(Cr&&!!Cr.thisParameter){var ze=e.firstOrUndefined(rn);if(!ze||e.isIdentifier(ze.name)&&ze.name.escapedText!=="this"){var Ar=Ae.getTypeOfSymbolAtLocation(Cr.thisParameter,U);rn.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,Ae.typeToTypeNode(Ar,ge,1)))}}kr=e.factory.updateFunctionExpression(kr,e.canHaveModifiers(U)?e.getModifiers(U):void 0,kr.asteriskToken,kr.name,kr.typeParameters,rn,kr.type||Ae.typeToTypeNode(Cr.getReturnType(),ge,1),kr.body)}return{variableType:vr,initializer:kr}}}function V(U,ge){for(var pe;U!==void 0&&U!==ge;){if(e.isVariableDeclaration(U)&&U.initializer===pe&&e.isVariableDeclarationList(U.parent)&&U.parent.declarations.length>1)return U;pe=U,U=U.parent}}function h(U){var ge,pe=U.symbol;if(pe&&pe.declarations)for(var He=0,Be=pe.declarations;He<Be.length;He++){var Me=Be[He];(ge===void 0||Me.pos<ge.pos)&&(ge=Me)}return ge}function F(U,ge){var pe=U.type,He=U.declaration,Be=ge.type,Me=ge.declaration;return e.compareProperties(He,Me,"pos",e.compareValues)||e.compareStringsCaseSensitive(pe.symbol?pe.symbol.getName():"",Be.symbol?Be.symbol.getName():"")||e.compareValues(pe.id,Be.id)}function $(U,ge,pe){var He=e.factory.createIdentifier(pe);if(e.isClassLike(U)){var Be=ge.facts&le.InStaticRegion?e.factory.createIdentifier(U.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(Be,He)}else return He}function L(U,ge,pe,He,Be){var Me=pe!==void 0||ge.length>0;if(e.isBlock(U)&&!Me&&He.size===0)return{body:e.factory.createBlock(U.statements,!0),returnValueProperty:void 0};var Le,Ae=!1,Xe=e.factory.createNodeArray(e.isBlock(U)?U.statements.slice(0):[e.isStatement(U)?U:e.factory.createReturnStatement(e.skipParentheses(U))]);if(Me||He.size){var Ne=e.visitNodes(Xe,be).slice();if(Me&&!Be&&e.isStatement(U)){var Oe=ye(ge,pe);Oe.length===1?Ne.push(e.factory.createReturnStatement(Oe[0].name)):Ne.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Oe)))}return{body:e.factory.createBlock(Ne,!0),returnValueProperty:Le}}else return{body:e.factory.createBlock(Xe,!0),returnValueProperty:void 0};function be(Y){if(!Ae&&e.isReturnStatement(Y)&&Me){var d=ye(ge,pe);return Y.expression&&(Le||(Le="__return"),d.unshift(e.factory.createPropertyAssignment(Le,e.visitNode(Y.expression,be)))),d.length===1?e.factory.createReturnStatement(d[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d))}else{var j=Ae;Ae=Ae||e.isFunctionLikeDeclaration(Y)||e.isClassLike(Y);var Ce=He.get(e.getNodeId(Y).toString()),Se=Ce?e.getSynthesizedDeepClone(Ce):e.visitEachChild(Y,be,e.nullTransformationContext);return Ae=j,Se}}}function P(U,ge){return ge.size?pe(U):U;function pe(He){var Be=ge.get(e.getNodeId(He).toString());return Be?e.getSynthesizedDeepClone(Be):e.visitEachChild(He,pe,e.nullTransformationContext)}}function N(U){if(e.isFunctionLikeDeclaration(U)){var ge=U.body;if(e.isBlock(ge))return ge.statements}else{if(e.isModuleBlock(U)||e.isSourceFile(U))return U.statements;if(e.isClassLike(U))return U.members;e.assertType(U)}return e.emptyArray}function J(U,ge){return e.find(N(ge),function(pe){return pe.pos>=U&&e.isFunctionLikeDeclaration(pe)&&!e.isConstructorDeclaration(pe)})}function q(U,ge){var pe=ge.members;e.Debug.assert(pe.length>0,"Found no members");for(var He,Be=!0,Me=0,Le=pe;Me<Le.length;Me++){var Ae=Le[Me];if(Ae.pos>U)return He||pe[0];if(Be&&!e.isPropertyDeclaration(Ae)){if(He!==void 0)return Ae;Be=!1}He=Ae}return He===void 0?e.Debug.fail():He}function G(U,ge){e.Debug.assert(!e.isClassLike(ge));for(var pe,He=U;He!==ge;He=He.parent)ae(He)&&(pe=He);for(var He=(pe||U).parent;;He=He.parent){if(A(He)){for(var Be=void 0,Me=0,Le=He.statements;Me<Le.length;Me++){var Ae=Le[Me];if(Ae.pos>U.pos)break;Be=Ae}return!Be&&e.isCaseClause(He)?(e.Debug.assert(e.isSwitchStatement(He.parent.parent),"Grandparent isn't a switch statement"),He.parent.parent):e.Debug.checkDefined(Be,"prevStatement failed to get set")}e.Debug.assert(He!==ge,"Didn't encounter a block-like before encountering scope")}}function ye(U,ge){var pe=e.map(U,function(Be){return e.factory.createShorthandPropertyAssignment(Be.symbol.name)}),He=e.map(ge,function(Be){return e.factory.createShorthandPropertyAssignment(Be.symbol.name)});return pe===void 0?He:He===void 0?pe:pe.concat(He)}function b(U){return e.isArray(U)}function x(U,ge){return b(U.range)?{pos:e.first(U.range).getStart(ge),end:e.last(U.range).getEnd()}:U.range}var T;(function(U){U[U.Read=1]="Read",U[U.Write=2]="Write"})(T||(T={}));function Z(U,ge,pe,He,Be,Me){var Le=new e.Map,Ae=[],Xe=[],Ne=[],Oe=[],be=[],Y=new e.Map,d=[],j,Ce=b(U.range)?U.range.length===1&&e.isExpressionStatement(U.range[0])?U.range[0].expression:void 0:U.range,Se;if(Ce===void 0){var Re=U.range,er=e.first(Re).getStart(),wr=e.last(Re).end;Se=e.createFileDiagnostic(He,er,wr-er,D.expressionExpected)}else Be.getTypeAtLocation(Ce).flags&(16384|131072)&&(Se=e.createDiagnosticForNode(Ce,D.uselessConstantType));for(var mr=0,Ue=ge;mr<Ue.length;mr++){var t=Ue[mr];Ae.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),Xe.push(new e.Map),Ne.push([]);var qr=[];Se&&qr.push(Se),e.isClassLike(t)&&e.isInJSFile(t)&&qr.push(e.createDiagnosticForNode(t,D.cannotExtractToJSClass)),e.isArrowFunction(t)&&!e.isBlock(t.body)&&qr.push(e.createDiagnosticForNode(t,D.cannotExtractToExpressionArrowFunction)),Oe.push(qr)}var ln=new e.Map,dr=b(U.range)?e.factory.createBlock(U.range):U.range,vr=b(U.range)?e.first(U.range):U.range,kr=cr(vr);if(Rr(dr),kr&&!b(U.range)&&!e.isJsxAttribute(U.range)){var Ur=Be.getContextualType(U.range);Mr(Ur)}if(Le.size>0){for(var Cr=new e.Map,rn=0,Br=vr;Br!==void 0&&rn<ge.length;Br=Br.parent)if(Br===ge[rn]&&(Cr.forEach(function(xr,Lr){Ae[rn].typeParameterUsages.set(Lr,xr)}),rn++),e.isDeclarationWithTypeParameters(Br))for(var pn=0,ve=e.getEffectiveTypeParameterDeclarations(Br);pn<ve.length;pn++){var or=ve[pn],Ee=Be.getTypeAtLocation(or);Le.has(Ee.id.toString())&&Cr.set(Ee.id.toString(),Ee)}e.Debug.assert(rn===ge.length,"Should have iterated all scopes")}if(be.length){var ze=e.isBlockScope(ge[0],ge[0].parent)?ge[0]:e.getEnclosingBlockScopeContainer(ge[0]);e.forEachChild(ze,vn)}for(var Ar=function(xr){var Lr=Ae[xr];if(xr>0&&(Lr.usages.size>0||Lr.typeParameterUsages.size>0)){var xn=b(U.range)?U.range[0]:U.range;Oe[xr].push(e.createDiagnosticForNode(xn,D.cannotAccessVariablesFromNestedScopes))}U.facts&le.UsesThisInFunction&&e.isClassLike(ge[xr])&&Ne[xr].push(e.createDiagnosticForNode(U.thisNode,D.cannotExtractFunctionsContainingThisToMethod));var An=!1,Qn;if(Ae[xr].usages.forEach(function(Dr){Dr.usage===2&&(An=!0,Dr.symbol.flags&106500&&Dr.symbol.valueDeclaration&&e.hasEffectiveModifier(Dr.symbol.valueDeclaration,64)&&(Qn=Dr.symbol.valueDeclaration))}),e.Debug.assert(b(U.range)||d.length===0,"No variable declarations expected if something was extracted"),An&&!b(U.range)){var ai=e.createDiagnosticForNode(U.range,D.cannotWriteInExpression);Ne[xr].push(ai),Oe[xr].push(ai)}else if(Qn&&xr>0){var ai=e.createDiagnosticForNode(Qn,D.cannotExtractReadonlyPropertyInitializerOutsideConstructor);Ne[xr].push(ai),Oe[xr].push(ai)}else if(j){var ai=e.createDiagnosticForNode(j,D.cannotExtractExportedEntity);Ne[xr].push(ai),Oe[xr].push(ai)}},xe=0;xe<ge.length;xe++)Ar(xe);return{target:dr,usagesPerScope:Ae,functionErrorsPerScope:Ne,constantErrorsPerScope:Oe,exposedVariableDeclarations:d};function cr(xr){return!!e.findAncestor(xr,function(Lr){return e.isDeclarationWithTypeParameters(Lr)&&e.getEffectiveTypeParameterDeclarations(Lr).length!==0})}function Mr(xr){for(var Lr=Be.getSymbolWalker(function(){return Me.throwIfCancellationRequested(),!0}),xn=Lr.walkType(xr).visitedTypes,An=0,Qn=xn;An<Qn.length;An++){var ai=Qn[An];ai.isTypeParameter()&&Le.set(ai.id.toString(),ai)}}function Rr(xr,Lr){if(Lr===void 0&&(Lr=1),kr){var xn=Be.getTypeAtLocation(xr);Mr(xn)}if(e.isDeclaration(xr)&&xr.symbol&&be.push(xr),e.isAssignmentExpression(xr))Rr(xr.left,2),Rr(xr.right);else if(e.isUnaryExpressionWithWrite(xr))Rr(xr.operand,2);else if(e.isPropertyAccessExpression(xr)||e.isElementAccessExpression(xr))e.forEachChild(xr,Rr);else if(e.isIdentifier(xr)){if(!xr.parent||e.isQualifiedName(xr.parent)&&xr!==xr.parent.left||e.isPropertyAccessExpression(xr.parent)&&xr!==xr.parent.expression)return;Qr(xr,Lr,e.isPartOfTypeNode(xr))}else e.forEachChild(xr,Rr)}function Qr(xr,Lr,xn){var An=en(xr,Lr,xn);if(An)for(var Qn=0;Qn<ge.length;Qn++){var ai=Xe[Qn].get(An);ai&&Ae[Qn].substitutions.set(e.getNodeId(xr).toString(),ai)}}function en(xr,Lr,xn){var An=Ie(xr);if(!!An){var Qn=e.getSymbolId(An).toString(),ai=ln.get(Qn);if(ai&&ai>=Lr)return Qn;if(ln.set(Qn,Lr),ai){for(var Dr=0,Pr=Ae;Dr<Pr.length;Dr++){var jr=Pr[Dr],on=jr.usages.get(xr.text);on&&jr.usages.set(xr.text,{usage:Lr,symbol:An,node:xr})}return Qn}var je=An.getDeclarations(),Sr=je&&e.find(je,function(fn){return fn.getSourceFile()===He});if(!!Sr&&!e.rangeContainsStartEnd(pe,Sr.getStart(),Sr.end)){if(U.facts&le.IsGenerator&&Lr===2){for(var Te=e.createDiagnosticForNode(xr,D.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),Ye=0,Qe=Ne;Ye<Qe.length;Ye++){var ue=Qe[Ye];ue.push(Te)}for(var Ke=0,tr=Oe;Ke<tr.length;Ke++){var ue=tr[Ke];ue.push(Te)}}for(var hr=0;hr<ge.length;hr++){var _r=ge[hr],Or=Be.resolveName(An.name,_r,An.flags,!1);if(Or!==An&&!Xe[hr].has(Qn)){var zr=We(An.exportSymbol||An,_r,xn);if(zr)Xe[hr].set(Qn,zr);else if(xn){if(!(An.flags&262144)){var Te=e.createDiagnosticForNode(xr,D.typeWillNotBeVisibleInTheNewScope);Ne[hr].push(Te),Oe[hr].push(Te)}}else Ae[hr].usages.set(xr.text,{usage:Lr,symbol:An,node:xr})}}return Qn}}}function vn(xr){if(!(xr===U.range||b(U.range)&&U.range.indexOf(xr)>=0)){var Lr=e.isIdentifier(xr)?Ie(xr):Be.getSymbolAtLocation(xr);if(Lr){var xn=e.find(be,function(Qn){return Qn.symbol===Lr});if(xn)if(e.isVariableDeclaration(xn)){var An=xn.symbol.id.toString();Y.has(An)||(d.push(xn),Y.set(An,!0))}else j=j||xn}e.forEachChild(xr,vn)}}function Ie(xr){return xr.parent&&e.isShorthandPropertyAssignment(xr.parent)&&xr.parent.name===xr?Be.getShorthandAssignmentValueSymbol(xr.parent):Be.getSymbolAtLocation(xr)}function We(xr,Lr,xn){if(!!xr){var An=xr.getDeclarations();if(An&&An.some(function(ai){return ai.parent===Lr}))return e.factory.createIdentifier(xr.name);var Qn=We(xr.parent,Lr,xn);if(Qn!==void 0)return xn?e.factory.createQualifiedName(Qn,e.factory.createIdentifier(xr.name)):e.factory.createPropertyAccessExpression(Qn,xr.name)}}}function B(U){return e.findAncestor(U,function(ge){return ge.parent&&u(ge)&&!e.isBinaryExpression(ge.parent)})}function u(U){var ge=U.parent;switch(ge.kind){case 302:return!1}switch(U.kind){case 10:return ge.kind!==269&&ge.kind!==273;case 227:case 203:case 205:return!1;case 79:return ge.kind!==205&&ge.kind!==273&&ge.kind!==278}return!0}function A(U){switch(U.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function w(U){return z(U)||(e.isJsxElement(U)||e.isJsxSelfClosingElement(U)||e.isJsxFragment(U))&&(e.isJsxElement(U.parent)||e.isJsxFragment(U.parent))}function z(U){return e.isStringLiteral(U)&&U.parent&&e.isJsxAttribute(U.parent)}})(K=ne.extractSymbol||(ne.extractSymbol={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="Extract type",se={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},O={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},ie={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};ne.registerRefactor(K,{kinds:[se.kind,O.kind,ie.kind],getAvailableActions:function(ae){var E=_e(ae,ae.triggerReason==="invoked");return E?ne.isRefactorErrorInfo(E)?ae.preferences.provideRefactorNotApplicableReason?[{name:K,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[vi(vi({},ie),{notApplicableReason:E.error}),vi(vi({},se),{notApplicableReason:E.error}),vi(vi({},O),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:K,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:E.isJS?[ie]:e.append([se],E.typeElements&&O)}]:e.emptyArray},getEditsForAction:function(ae,E){var I=ae.file,f=_e(ae);e.Debug.assert(f&&!ne.isRefactorErrorInfo(f),"Expected to find a range to extract");var m=e.getUniqueName("NewType",I),y=e.textChanges.ChangeTracker.with(ae,function(C){switch(E){case se.name:return e.Debug.assert(!f.isJS,"Invalid actionName/JS combo"),le(C,I,m,f);case ie.name:return e.Debug.assert(f.isJS,"Invalid actionName/JS combo"),te(C,I,m,f);case O.name:return e.Debug.assert(!f.isJS&&!!f.typeElements,"Invalid actionName/JS combo"),de(C,I,m,f);default:e.Debug.fail("Unexpected action name")}}),S=I.fileName,k=e.getRenameLocation(y,S,m,!1);return{edits:y,renameFilename:S,renameLocation:k}}});function _e(oe,ae){ae===void 0&&(ae=!0);var E=oe.file,I=oe.startPosition,f=e.isSourceFileJS(E),m=e.getTokenAtPosition(E,I),y=e.createTextRangeFromSpan(e.getRefactorContextSpan(oe)),S=y.pos===y.end&&ae,k=e.findAncestor(m,function(M){return M.parent&&e.isTypeNode(M)&&!p(y,M.parent,E)&&(S||e.nodeOverlapsWithStartEnd(m,E,y.pos,y.end))});if(!k||!e.isTypeNode(k))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var C=oe.program.getTypeChecker(),me=e.Debug.checkDefined(e.findAncestor(k,e.isStatement),"Should find a statement"),De=D(C,k,me,E);if(!De)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var X=Q(C,k);return{isJS:f,selection:k,firstStatement:me,typeParameters:De,typeElements:X}}function Q(oe,ae){if(!!ae)if(e.isIntersectionTypeNode(ae)){for(var E=[],I=new e.Map,f=0,m=ae.types;f<m.length;f++){var y=m[f],S=Q(oe,y);if(!S||!S.every(function(k){return k.name&&e.addToSeen(I,e.getNameFromPropertyName(k.name))}))return;e.addRange(E,S)}return E}else{if(e.isParenthesizedTypeNode(ae))return Q(oe,ae.type);if(e.isTypeLiteralNode(ae))return ae.members}}function p(oe,ae,E){return e.rangeContainsStartEnd(oe,e.skipTrivia(E.text,ae.pos),ae.end)}function D(oe,ae,E,I){var f=[];return m(ae)?void 0:f;function m(y){if(e.isTypeReferenceNode(y)){if(e.isIdentifier(y.typeName))for(var S=y.typeName,k=oe.resolveName(S.text,S,262144,!0),C=0,me=(k==null?void 0:k.declarations)||e.emptyArray;C<me.length;C++){var De=me[C];if(e.isTypeParameterDeclaration(De)&&De.getSourceFile()===I){if(De.name.escapedText===S.escapedText&&p(De,ae,I))return!0;if(p(E,De,I)&&!p(ae,De,I)){e.pushIfUnique(f,De);break}}}}else if(e.isInferTypeNode(y)){var X=e.findAncestor(y,function(H){return e.isConditionalTypeNode(H)&&p(H.extendsType,y,I)});if(!X||!p(ae,X,I))return!0}else if(e.isTypePredicateNode(y)||e.isThisTypeNode(y)){var M=e.findAncestor(y.parent,e.isFunctionLike);if(M&&M.type&&p(M.type,y,I)&&!p(ae,M,I))return!0}else if(e.isTypeQueryNode(y)){if(e.isIdentifier(y.exprName)){var k=oe.resolveName(y.exprName.text,y.exprName,111551,!1);if((k==null?void 0:k.valueDeclaration)&&p(E,k.valueDeclaration,I)&&!p(ae,k.valueDeclaration,I))return!0}else if(e.isThisIdentifier(y.exprName.left)&&!p(ae,y.parent,I))return!0}return I&&e.isTupleTypeNode(y)&&e.getLineAndCharacterOfPosition(I,y.pos).line===e.getLineAndCharacterOfPosition(I,y.end).line&&e.setEmitFlags(y,1),e.forEachChild(y,m)}}function le(oe,ae,E,I){var f=I.firstStatement,m=I.selection,y=I.typeParameters,S=e.factory.createTypeAliasDeclaration(void 0,E,y.map(function(k){return e.factory.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)}),m);oe.insertNodeBefore(ae,f,e.ignoreSourceNewlines(S),!0),oe.replaceNode(ae,m,e.factory.createTypeReferenceNode(E,y.map(function(k){return e.factory.createTypeReferenceNode(k.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function de(oe,ae,E,I){var f,m=I.firstStatement,y=I.selection,S=I.typeParameters,k=I.typeElements,C=e.factory.createInterfaceDeclaration(void 0,E,S,void 0,k);e.setTextRange(C,(f=k[0])===null||f===void 0?void 0:f.parent),oe.insertNodeBefore(ae,m,e.ignoreSourceNewlines(C),!0),oe.replaceNode(ae,y,e.factory.createTypeReferenceNode(E,S.map(function(me){return e.factory.createTypeReferenceNode(me.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function te(oe,ae,E,I){var f=I.firstStatement,m=I.selection,y=I.typeParameters;e.setEmitFlags(m,1536|2048);var S=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(m),e.factory.createIdentifier(E)),k=[];e.forEach(y,function(C){var me=e.getEffectiveConstraintOfTypeParameter(C),De=e.factory.createTypeParameterDeclaration(void 0,C.name),X=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),me&&e.cast(me,e.isJSDocTypeExpression),[De]);k.push(X)}),oe.insertNodeBefore(ae,f,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(k,[S]))),!0),oe.replaceNode(ae,m,e.factory.createTypeReferenceNode(E,y.map(function(C){return e.factory.createTypeReferenceNode(C.name,void 0)})))}})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Generate 'get' and 'set' accessors",ie=e.Diagnostics.Generate_get_and_set_accessors.message,_e={name:O,description:ie,kind:"refactor.rewrite.property.generateAccessors"};ne.registerRefactor(O,{kinds:[_e.kind],getEditsForAction:function(p,D){if(!!p.endPosition){var le=e.codefix.getAccessorConvertiblePropertyAtPosition(p.file,p.program,p.startPosition,p.endPosition);e.Debug.assert(le&&!ne.isRefactorErrorInfo(le),"Expected applicable refactor info");var de=e.codefix.generateAccessorFromProperty(p.file,p.program,p.startPosition,p.endPosition,p,D);if(!!de){var te=p.file.fileName,oe=le.renameAccessor?le.accessorName:le.fieldName,ae=e.isIdentifier(oe)?0:-1,E=ae+e.getRenameLocation(de,te,oe.text,e.isParameter(le.declaration));return{renameFilename:te,renameLocation:E,edits:de}}}},getAvailableActions:function(Q){if(!Q.endPosition)return e.emptyArray;var p=e.codefix.getAccessorConvertiblePropertyAtPosition(Q.file,Q.program,Q.startPosition,Q.endPosition,Q.triggerReason==="invoked");return p?ne.isRefactorErrorInfo(p)?Q.preferences.provideRefactorNotApplicableReason?[{name:O,description:ie,actions:[vi(vi({},_e),{notApplicableReason:p.error})]}]:e.emptyArray:[{name:O,description:ie,actions:[_e]}]:e.emptyArray}})})(K=ne.generateGetAccessorAndSetAccessor||(ne.generateGetAccessorAndSetAccessor={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(O){return O.error!==void 0}ne.isRefactorErrorInfo=K;function se(O,ie){return ie?O.substr(0,ie.length)===ie:!0}ne.refactorKindBeginsWith=se})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K="Move to a new file",se=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),O={name:K,description:se,kind:"refactor.move.newFile"};ne.registerRefactor(K,{kinds:[O.kind],getAvailableActions:function(Ae){var Xe=Q(Ae);return Ae.preferences.allowTextChangesInNewFiles&&Xe?[{name:K,description:se,actions:[O]}]:Ae.preferences.provideRefactorNotApplicableReason?[{name:K,description:se,actions:[vi(vi({},O),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(Ae,Xe){e.Debug.assert(Xe===K,"Wrong refactor invoked");var Ne=e.Debug.checkDefined(Q(Ae)),Oe=e.textChanges.ChangeTracker.with(Ae,function(be){return _e(Ae.file,Ae.program,Ne,be,Ae.host,Ae.preferences)});return{edits:Oe,renameFilename:void 0,renameLocation:void 0}}});function ie(Le){var Ae=Le.file,Xe=e.createTextRangeFromSpan(e.getRefactorContextSpan(Le)),Ne=Ae.statements,Oe=e.findIndex(Ne,function(d){return d.end>Xe.pos});if(Oe!==-1){var be=Ne[Oe];if(e.isNamedDeclaration(be)&&be.name&&e.rangeContainsRange(be.name,Xe))return{toMove:[Ne[Oe]],afterLast:Ne[Oe+1]};if(!(Xe.pos>be.getStart(Ae))){var Y=e.findIndex(Ne,function(d){return d.end>Xe.end},Oe);if(!(Y!==-1&&(Y===0||Ne[Y].getStart(Ae)<Xe.end)))return{toMove:Ne.slice(Oe,Y===-1?Ne.length:Y),afterLast:Y===-1?void 0:Ne[Y]}}}}function _e(Le,Ae,Xe,Ne,Oe,be){var Y=Ae.getTypeChecker(),d=$(Le,Xe.all,Y),j=e.getDirectoryPath(Le.fileName),Ce=e.extensionFromPath(Le.fileName),Se=h(F(d.oldFileImportsFromNewFile,d.movedSymbols),Ce,j,Oe),Re=Se+Ce;Ne.createNewFile(Le,e.combinePaths(j,Re),de(Le,d,Ne,Xe,Ae,Se,be)),le(Ae,Ne,Le.fileName,Re,e.hostGetCanonicalFileName(Oe))}function Q(Le){var Ae=ie(Le);if(Ae!==void 0){var Xe=[],Ne=[],Oe=Ae.toMove,be=Ae.afterLast;return e.getRangesWhere(Oe,p,function(Y,d){for(var j=Y;j<d;j++)Xe.push(Oe[j]);Ne.push({first:Oe[Y],afterLast:be})}),Xe.length===0?void 0:{all:Xe,ranges:Ne}}}function p(Le){return!D(Le)&&!e.isPrologueDirective(Le)}function D(Le){switch(Le.kind){case 269:return!0;case 268:return!e.hasSyntacticModifier(Le,1);case 240:return Le.declarationList.declarations.every(function(Ae){return!!Ae.initializer&&e.isRequireCall(Ae.initializer,!0)});default:return!1}}function le(Le,Ae,Xe,Ne,Oe){var be=Le.getCompilerOptions().configFile;if(!!be){var Y=e.normalizePath(e.combinePaths(Xe,"..",Ne)),d=e.getRelativePathFromFile(be.fileName,Y,Oe),j=be.statements[0]&&e.tryCast(be.statements[0].expression,e.isObjectLiteralExpression),Ce=j&&e.find(j.properties,function(Se){return e.isPropertyAssignment(Se)&&e.isStringLiteral(Se.name)&&Se.name.text==="files"});Ce&&e.isArrayLiteralExpression(Ce.initializer)&&Ae.insertNodeInListAfter(be,e.last(Ce.initializer.elements),e.factory.createStringLiteral(d),Ce.initializer.elements)}}function de(Le,Ae,Xe,Ne,Oe,be,Y){var d=Oe.getTypeChecker(),j=e.takeWhile(Le.statements,e.isPrologueDirective);if(Le.externalModuleIndicator===void 0&&Le.commonJsModuleIndicator===void 0&&Ae.oldImportsNeededByNewFile.size()===0)return te(Le,Ne.ranges,Xe),zn(zn([],j,!0),Ne.all,!0);var Ce=!!Le.externalModuleIndicator,Se=e.getQuotePreference(Le,Y),Re=S(Ae.oldFileImportsFromNewFile,be,Ce,Se);Re&&e.insertImports(Xe,Le,Re,!0),oe(Le,Ne.all,Xe,Ae.unusedImportsFromOldFile,d),te(Le,Ne.ranges,Xe),ae(Xe,Oe,Le,Ae.movedSymbols,be);var er=V(Le,Ae.oldImportsNeededByNewFile,Ae.newFileImportsFromOldFile,Xe,d,Ce,Se),wr=De(Le,Ne.all,Ae.oldFileImportsFromNewFile,Ce);return er.length&&wr.length?zn(zn(zn(zn([],j,!0),er,!0),[4],!1),wr,!0):zn(zn(zn([],j,!0),er,!0),wr,!0)}function te(Le,Ae,Xe){for(var Ne=0,Oe=Ae;Ne<Oe.length;Ne++){var be=Oe[Ne],Y=be.first,d=be.afterLast;Xe.deleteNodeRangeExcludingEnd(Le,Y,d)}}function oe(Le,Ae,Xe,Ne,Oe){for(var be=0,Y=Le.statements;be<Y.length;be++){var d=Y[be];e.contains(Ae,d)||y(d,function(j){return X(Le,j,Xe,function(Ce){return Ne.has(Oe.getSymbolAtLocation(Ce))})})}}function ae(Le,Ae,Xe,Ne,Oe){for(var be=Ae.getTypeChecker(),Y=function(Se){if(Se===Xe)return"continue";for(var Re=function(Ue){y(Ue,function(t){if(be.getSymbolAtLocation(m(t))===Xe.symbol){var qr=function(kr){var Ur=e.isBindingElement(kr.parent)?e.getPropertySymbolFromBindingElement(be,kr.parent):e.skipAlias(be.getSymbolAtLocation(kr),be);return!!Ur&&Ne.has(Ur)};X(Se,t,Le,qr);var ln=e.combinePaths(e.getDirectoryPath(m(t).text),Oe),dr=N(t,e.factory.createStringLiteral(ln),qr);dr&&Le.insertNodeAfter(Se,Ue,dr);var vr=E(t);vr&&I(Le,Se,be,Ne,Oe,ln,vr,t)}})},er=0,wr=Se.statements;er<wr.length;er++){var mr=wr[er];Re(mr)}},d=0,j=Ae.getSourceFiles();d<j.length;d++){var Ce=j[d];Y(Ce)}}function E(Le){switch(Le.kind){case 269:return Le.importClause&&Le.importClause.namedBindings&&Le.importClause.namedBindings.kind===271?Le.importClause.namedBindings.name:void 0;case 268:return Le.name;case 257:return e.tryCast(Le.name,e.isIdentifier);default:return e.Debug.assertNever(Le,"Unexpected node kind ".concat(Le.kind))}}function I(Le,Ae,Xe,Ne,Oe,be,Y,d){var j=e.codefix.moduleSpecifierToValidIdentifier(Oe,99),Ce=!1,Se=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Y,Xe,Ae,function(Ue){!e.isPropertyAccessExpression(Ue.parent)||(Ce=Ce||!!Xe.resolveName(j,Ue,67108863,!0),Ne.has(Xe.getSymbolAtLocation(Ue.parent.name))&&Se.push(Ue))}),Se.length){for(var Re=Ce?e.getUniqueName(j,Ae):j,er=0,wr=Se;er<wr.length;er++){var mr=wr[er];Le.replaceNode(Ae,mr,e.factory.createIdentifier(Re))}Le.insertNodeAfter(Ae,d,f(d,Oe,be))}}function f(Le,Ae,Xe){var Ne=e.factory.createIdentifier(Ae),Oe=e.factory.createStringLiteral(Xe);switch(Le.kind){case 269:return e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(Ne)),Oe,void 0);case 268:return e.factory.createImportEqualsDeclaration(void 0,!1,Ne,e.factory.createExternalModuleReference(Oe));case 257:return e.factory.createVariableDeclaration(Ne,void 0,void 0,me(Oe));default:return e.Debug.assertNever(Le,"Unexpected node kind ".concat(Le.kind))}}function m(Le){return Le.kind===269?Le.moduleSpecifier:Le.kind===268?Le.moduleReference.expression:Le.initializer.arguments[0]}function y(Le,Ae){if(e.isImportDeclaration(Le))e.isStringLiteral(Le.moduleSpecifier)&&Ae(Le);else if(e.isImportEqualsDeclaration(Le))e.isExternalModuleReference(Le.moduleReference)&&e.isStringLiteralLike(Le.moduleReference.expression)&&Ae(Le);else if(e.isVariableStatement(Le))for(var Xe=0,Ne=Le.declarationList.declarations;Xe<Ne.length;Xe++){var Oe=Ne[Xe];Oe.initializer&&e.isRequireCall(Oe.initializer,!0)&&Ae(Oe)}}function S(Le,Ae,Xe,Ne){var Oe,be=[];return Le.forEach(function(Y){Y.escapedName==="default"?Oe=e.factory.createIdentifier(e.symbolNameNoDefault(Y)):be.push(Y.name)}),k(Oe,be,Ae,Xe,Ne)}function k(Le,Ae,Xe,Ne,Oe){if(Xe=e.ensurePathIsNonModuleName(Xe),Ne){var be=Ae.map(function(d){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(d))});return e.makeImportIfNecessary(Le,be,Xe,Oe)}else{e.Debug.assert(!Le,"No default import should exist");var Y=Ae.map(function(d){return e.factory.createBindingElement(void 0,void 0,d)});return Y.length?C(e.factory.createObjectBindingPattern(Y),void 0,me(e.factory.createStringLiteral(Xe))):void 0}}function C(Le,Ae,Xe,Ne){return Ne===void 0&&(Ne=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Le,void 0,Ae,Xe)],Ne))}function me(Le){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Le])}function De(Le,Ae,Xe,Ne){return e.flatMap(Ae,function(Oe){if(T(Oe)&&!U(Le,Oe,Ne)&&B(Oe,function(Y){return Xe.has(e.Debug.checkDefined(Y.symbol))})){var be=ge(Oe,Ne);if(be)return be}return Oe})}function X(Le,Ae,Xe,Ne){switch(Ae.kind){case 269:M(Le,Ae,Xe,Ne);break;case 268:Ne(Ae.name)&&Xe.delete(Le,Ae);break;case 257:H(Le,Ae,Xe,Ne);break;default:e.Debug.assertNever(Ae,"Unexpected import decl kind ".concat(Ae.kind))}}function M(Le,Ae,Xe,Ne){if(!!Ae.importClause){var Oe=Ae.importClause,be=Oe.name,Y=Oe.namedBindings,d=!be||Ne(be),j=!Y||(Y.kind===271?Ne(Y.name):Y.elements.length!==0&&Y.elements.every(function(er){return Ne(er.name)}));if(d&&j)Xe.delete(Le,Ae);else if(be&&d&&Xe.delete(Le,be),Y){if(j)Xe.replaceNode(Le,Ae.importClause,e.factory.updateImportClause(Ae.importClause,Ae.importClause.isTypeOnly,be,void 0));else if(Y.kind===272)for(var Ce=0,Se=Y.elements;Ce<Se.length;Ce++){var Re=Se[Ce];Ne(Re.name)&&Xe.delete(Le,Re)}}}}function H(Le,Ae,Xe,Ne){var Oe=Ae.name;switch(Oe.kind){case 79:Ne(Oe)&&(Ae.initializer&&e.isRequireCall(Ae.initializer,!0)?Xe.delete(Le,e.isVariableDeclarationList(Ae.parent)&&e.length(Ae.parent.declarations)===1?Ae.parent.parent:Ae):Xe.delete(Le,Oe));break;case 204:break;case 203:if(Oe.elements.every(function(j){return e.isIdentifier(j.name)&&Ne(j.name)}))Xe.delete(Le,e.isVariableDeclarationList(Ae.parent)&&Ae.parent.declarations.length===1?Ae.parent.parent:Ae);else for(var be=0,Y=Oe.elements;be<Y.length;be++){var d=Y[be];e.isIdentifier(d.name)&&Ne(d.name)&&Xe.delete(Le,d.name)}break}}function V(Le,Ae,Xe,Ne,Oe,be,Y){for(var d=[],j=0,Ce=Le.statements;j<Ce.length;j++){var Se=Ce[j];y(Se,function(mr){e.append(d,N(mr,m(mr),function(Ue){return Ae.has(Oe.getSymbolAtLocation(Ue))}))})}var Re,er=[],wr=e.nodeSeenTracker();return Xe.forEach(function(mr){if(!!mr.declarations)for(var Ue=0,t=mr.declarations;Ue<t.length;Ue++){var qr=t[Ue];if(!!b(qr)){var ln=A(qr);if(!!ln){var dr=w(qr);wr(dr)&&z(Le,dr,ln,Ne,be),e.hasSyntacticModifier(qr,1024)?Re=ln:er.push(ln.text)}}}}),e.append(d,k(Re,er,e.removeFileExtension(e.getBaseFileName(Le.fileName)),be,Y)),d}function h(Le,Ae,Xe,Ne){for(var Oe=Le,be=1;;be++){var Y=e.combinePaths(Xe,Oe+Ae);if(!Ne.fileExists(Y))return Oe;Oe="".concat(Le,".").concat(be)}}function F(Le,Ae){return Le.forEachEntry(e.symbolNameNoDefault)||Ae.forEachEntry(e.symbolNameNoDefault)||"newFile"}function $(Le,Ae,Xe){var Ne=new ye,Oe=new ye,be=new ye,Y=e.find(Ae,function(ln){return!!(ln.transformFlags&2)}),d=qr(Y);d&&Oe.add(d);for(var j=0,Ce=Ae;j<Ce.length;j++){var Se=Ce[j];B(Se,function(ln){Ne.add(e.Debug.checkDefined(e.isExpressionStatement(ln)?Xe.getSymbolAtLocation(ln.expression.left):ln.symbol,"Need a symbol here"))})}for(var Re=0,er=Ae;Re<er.length;Re++){var Se=er[Re];G(Se,Xe,function(dr){if(!!dr.declarations)for(var vr=0,kr=dr.declarations;vr<kr.length;vr++){var Ur=kr[vr];L(Ur)?Oe.add(dr):b(Ur)&&x(Ur)===Le&&!Ne.has(dr)&&be.add(dr)}})}for(var wr=Oe.clone(),mr=new ye,Ue=0,t=Le.statements;Ue<t.length;Ue++){var Se=t[Ue];e.contains(Ae,Se)||(d&&!!(Se.transformFlags&2)&&wr.delete(d),G(Se,Xe,function(dr){Ne.has(dr)&&mr.add(dr),wr.delete(dr)}))}return{movedSymbols:Ne,newFileImportsFromOldFile:be,oldFileImportsFromNewFile:mr,oldImportsNeededByNewFile:Oe,unusedImportsFromOldFile:wr};function qr(ln){if(ln!==void 0){var dr=Xe.getJsxNamespace(ln),vr=Xe.resolveName(dr,ln,1920,!0);return!!vr&&e.some(vr.declarations,L)?vr:void 0}}}function L(Le){switch(Le.kind){case 268:case 273:case 270:case 271:return!0;case 257:return P(Le);case 205:return e.isVariableDeclaration(Le.parent.parent)&&P(Le.parent.parent);default:return!1}}function P(Le){return e.isSourceFile(Le.parent.parent.parent)&&!!Le.initializer&&e.isRequireCall(Le.initializer,!0)}function N(Le,Ae,Xe){switch(Le.kind){case 269:{var Ne=Le.importClause;if(!Ne)return;var Oe=Ne.name&&Xe(Ne.name)?Ne.name:void 0,be=Ne.namedBindings&&J(Ne.namedBindings,Xe);return Oe||be?e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,Oe,be),Ae,void 0):void 0}case 268:return Xe(Le.name)?Le:void 0;case 257:{var Y=q(Le.name,Xe);return Y?C(Y,Le.type,me(Ae),Le.parent.flags):void 0}default:return e.Debug.assertNever(Le,"Unexpected import kind ".concat(Le.kind))}}function J(Le,Ae){if(Le.kind===271)return Ae(Le.name)?Le:void 0;var Xe=Le.elements.filter(function(Ne){return Ae(Ne.name)});return Xe.length?e.factory.createNamedImports(Xe):void 0}function q(Le,Ae){switch(Le.kind){case 79:return Ae(Le)?Le:void 0;case 204:return Le;case 203:{var Xe=Le.elements.filter(function(Ne){return Ne.propertyName||!e.isIdentifier(Ne.name)||Ae(Ne.name)});return Xe.length?e.factory.createObjectBindingPattern(Xe):void 0}}}function G(Le,Ae,Xe){Le.forEachChild(function Ne(Oe){if(e.isIdentifier(Oe)&&!e.isDeclarationName(Oe)){var be=Ae.getSymbolAtLocation(Oe);be&&Xe(be)}else Oe.forEachChild(Ne)})}var ye=function(){function Le(){this.map=new e.Map}return Le.prototype.add=function(Ae){this.map.set(String(e.getSymbolId(Ae)),Ae)},Le.prototype.has=function(Ae){return this.map.has(String(e.getSymbolId(Ae)))},Le.prototype.delete=function(Ae){this.map.delete(String(e.getSymbolId(Ae)))},Le.prototype.forEach=function(Ae){this.map.forEach(Ae)},Le.prototype.forEachEntry=function(Ae){return e.forEachEntry(this.map,Ae)},Le.prototype.clone=function(){var Ae=new Le;return e.copyEntries(this.map,Ae.map),Ae},Le.prototype.size=function(){return this.map.size},Le}();function b(Le){return Z(Le)&&e.isSourceFile(Le.parent)||e.isVariableDeclaration(Le)&&e.isSourceFile(Le.parent.parent.parent)}function x(Le){return e.isVariableDeclaration(Le)?Le.parent.parent.parent:Le.parent}function T(Le){return e.Debug.assert(e.isSourceFile(Le.parent),"Node parent should be a SourceFile"),Z(Le)||e.isVariableStatement(Le)}function Z(Le){switch(Le.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function B(Le,Ae){switch(Le.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return Ae(Le);case 240:return e.firstDefined(Le.declarationList.declarations,function(Ne){return u(Ne.name,Ae)});case 241:{var Xe=Le.expression;return e.isBinaryExpression(Xe)&&e.getAssignmentDeclarationKind(Xe)===1?Ae(Le):void 0}}}function u(Le,Ae){switch(Le.kind){case 79:return Ae(e.cast(Le.parent,function(Xe){return e.isVariableDeclaration(Xe)||e.isBindingElement(Xe)}));case 204:case 203:return e.firstDefined(Le.elements,function(Xe){return e.isOmittedExpression(Xe)?void 0:u(Xe.name,Ae)});default:return e.Debug.assertNever(Le,"Unexpected name kind ".concat(Le.kind))}}function A(Le){return e.isExpressionStatement(Le)?e.tryCast(Le.expression.left.name,e.isIdentifier):e.tryCast(Le.name,e.isIdentifier)}function w(Le){switch(Le.kind){case 257:return Le.parent.parent;case 205:return w(e.cast(Le.parent.parent,function(Ae){return e.isVariableDeclaration(Ae)||e.isBindingElement(Ae)}));default:return Le}}function z(Le,Ae,Xe,Ne,Oe){if(!U(Le,Ae,Oe,Xe))if(Oe)e.isExpressionStatement(Ae)||Ne.insertExportModifier(Le,Ae);else{var be=Be(Ae);be.length!==0&&Ne.insertNodesAfter(Le,Ae,be.map(Me))}}function U(Le,Ae,Xe,Ne){var Oe;return Xe?!e.isExpressionStatement(Ae)&&e.hasSyntacticModifier(Ae,1)||!!(Ne&&((Oe=Le.symbol.exports)===null||Oe===void 0?void 0:Oe.has(Ne.escapedText))):!!Le.symbol&&!!Le.symbol.exports&&Be(Ae).some(function(be){return Le.symbol.exports.has(e.escapeLeadingUnderscores(be))})}function ge(Le,Ae){return Ae?[pe(Le)]:He(Le)}function pe(Le){var Ae=e.canHaveModifiers(Le)?e.concatenate([e.factory.createModifier(93)],e.getModifiers(Le)):void 0;switch(Le.kind){case 259:return e.factory.updateFunctionDeclaration(Le,Ae,Le.asteriskToken,Le.name,Le.typeParameters,Le.parameters,Le.type,Le.body);case 260:var Xe=e.canHaveDecorators(Le)?e.getDecorators(Le):void 0;return e.factory.updateClassDeclaration(Le,e.concatenate(Xe,Ae),Le.name,Le.typeParameters,Le.heritageClauses,Le.members);case 240:return e.factory.updateVariableStatement(Le,Ae,Le.declarationList);case 264:return e.factory.updateModuleDeclaration(Le,Ae,Le.name,Le.body);case 263:return e.factory.updateEnumDeclaration(Le,Ae,Le.name,Le.members);case 262:return e.factory.updateTypeAliasDeclaration(Le,Ae,Le.name,Le.typeParameters,Le.type);case 261:return e.factory.updateInterfaceDeclaration(Le,Ae,Le.name,Le.typeParameters,Le.heritageClauses,Le.members);case 268:return e.factory.updateImportEqualsDeclaration(Le,Ae,Le.isTypeOnly,Le.name,Le.moduleReference);case 241:return e.Debug.fail();default:return e.Debug.assertNever(Le,"Unexpected declaration kind ".concat(Le.kind))}}function He(Le){return zn([Le],Be(Le).map(Me),!0)}function Be(Le){switch(Le.kind){case 259:case 260:return[Le.name.text];case 240:return e.mapDefined(Le.declarationList.declarations,function(Ae){return e.isIdentifier(Ae.name)?Ae.name.text:void 0});case 264:case 263:case 262:case 261:case 268:return e.emptyArray;case 241:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(Le,"Unexpected decl kind ".concat(Le.kind))}}function Me(Le){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(Le)),63,e.factory.createIdentifier(Le)))}})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Add or remove braces in an arrow function",ie=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,_e={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},Q={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};ne.registerRefactor(O,{kinds:[Q.kind],getEditsForAction:D,getAvailableActions:p});function p(de){var te=de.file,oe=de.startPosition,ae=de.triggerReason,E=le(te,oe,ae==="invoked");return E?ne.isRefactorErrorInfo(E)?de.preferences.provideRefactorNotApplicableReason?[{name:O,description:ie,actions:[vi(vi({},_e),{notApplicableReason:E.error}),vi(vi({},Q),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:O,description:ie,actions:[E.addBraces?_e:Q]}]:e.emptyArray}function D(de,te){var oe=de.file,ae=de.startPosition,E=le(oe,ae);e.Debug.assert(E&&!ne.isRefactorErrorInfo(E),"Expected applicable refactor info");var I=E.expression,f=E.returnStatement,m=E.func,y;if(te===_e.name){var S=e.factory.createReturnStatement(I);y=e.factory.createBlock([S],!0),e.copyLeadingComments(I,S,oe,3,!0)}else if(te===Q.name&&f){var k=I||e.factory.createVoidZero();y=e.needsParentheses(k)?e.factory.createParenthesizedExpression(k):k,e.copyTrailingAsLeadingComments(f,y,oe,3,!1),e.copyLeadingComments(f,y,oe,3,!1),e.copyTrailingComments(f,y,oe,3,!1)}else e.Debug.fail("invalid action");var C=e.textChanges.ChangeTracker.with(de,function(me){me.replaceNode(oe,m.body,y)});return{renameFilename:void 0,renameLocation:void 0,edits:C}}function le(de,te,oe,ae){oe===void 0&&(oe=!0);var E=e.getTokenAtPosition(de,te),I=e.getContainingFunction(E);if(!I)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(I))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(I,E)||e.rangeContainsRange(I.body,E)&&!oe)){if(ne.refactorKindBeginsWith(_e.kind,ae)&&e.isExpression(I.body))return{func:I,addBraces:!0,expression:I.body};if(ne.refactorKindBeginsWith(Q.kind,ae)&&e.isBlock(I.body)&&I.body.statements.length===1){var f=e.first(I.body.statements);if(e.isReturnStatement(f))return{func:I,addBraces:!1,expression:f.expression,returnStatement:f}}}}})(K=ne.addOrRemoveBracesToArrowFunction||(ne.addOrRemoveBracesToArrowFunction={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Convert parameters to destructured object",ie=1,_e=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),Q={name:O,description:_e,kind:"refactor.rewrite.parameters.toDestructured"};ne.registerRefactor(O,{kinds:[Q.kind],getEditsForAction:D,getAvailableActions:p});function p(q){var G=q.file,ye=q.startPosition,b=e.isSourceFileJS(G);if(b)return e.emptyArray;var x=m(G,ye,q.program.getTypeChecker());return x?[{name:O,description:_e,actions:[Q]}]:e.emptyArray}function D(q,G){e.Debug.assert(G===O,"Unexpected action name");var ye=q.file,b=q.startPosition,x=q.program,T=q.cancellationToken,Z=q.host,B=m(ye,b,x.getTypeChecker());if(!(!B||!T)){var u=de(B,x,T);if(u.valid){var A=e.textChanges.ChangeTracker.with(q,function(w){return le(ye,x,Z,w,B,u)});return{renameFilename:void 0,renameLocation:void 0,edits:A}}return{edits:[]}}}function le(q,G,ye,b,x,T){var Z=T.signature,B=e.map(L(x,G,ye),function(He){return e.getSynthesizedDeepClone(He)});if(Z){var u=e.map(L(Z,G,ye),function(He){return e.getSynthesizedDeepClone(He)});pe(Z,u)}pe(x,B);for(var A=e.sortAndDeduplicate(T.functionCalls,function(He,Be){return e.compareValues(He.pos,Be.pos)}),w=0,z=A;w<z.length;w++){var U=z[w];if(U.arguments&&U.arguments.length){var ge=e.getSynthesizedDeepClone($(x,U.arguments),!0);b.replaceNodeRange(e.getSourceFileOfNode(U),e.first(U.arguments),e.last(U.arguments),ge,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function pe(He,Be){b.replaceNodeRangeWithNodes(q,e.first(He.parameters),e.last(He.parameters),Be,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function de(q,G,ye){var b=J(q),x=e.isConstructorDeclaration(q)?N(q):[],T=e.deduplicate(zn(zn([],b,!0),x,!0),e.equateValues),Z=G.getTypeChecker(),B=e.flatMap(T,function(z){return e.FindAllReferences.getReferenceEntriesForNode(-1,z,G,G.getSourceFiles(),ye)}),u=A(B);return e.every(u.declarations,function(z){return e.contains(T,z)})||(u.valid=!1),u;function A(z){for(var U={accessExpressions:[],typeUsages:[]},ge={functionCalls:[],declarations:[],classReferences:U,valid:!0},pe=e.map(b,w),He=e.map(x,w),Be=e.isConstructorDeclaration(q),Me=e.map(b,function(Ce){return te(Ce,Z)}),Le=0,Ae=z;Le<Ae.length;Le++){var Xe=Ae[Le];if(Xe.kind===0){ge.valid=!1;continue}if(e.contains(Me,w(Xe.node))){if(S(Xe.node.parent)){ge.signature=Xe.node.parent;continue}var Ne=E(Xe);if(Ne){ge.functionCalls.push(Ne);continue}}var Oe=te(Xe.node,Z);if(Oe&&e.contains(Me,Oe)){var be=ae(Xe);if(be){ge.declarations.push(be);continue}}if(e.contains(pe,w(Xe.node))||e.isNewExpressionTarget(Xe.node)){var Y=oe(Xe);if(Y)continue;var be=ae(Xe);if(be){ge.declarations.push(be);continue}var Ne=E(Xe);if(Ne){ge.functionCalls.push(Ne);continue}}if(Be&&e.contains(He,w(Xe.node))){var Y=oe(Xe);if(Y)continue;var be=ae(Xe);if(be){ge.declarations.push(be);continue}var d=I(Xe);if(d){U.accessExpressions.push(d);continue}if(e.isClassDeclaration(q.parent)){var j=f(Xe);if(j){U.typeUsages.push(j);continue}}}ge.valid=!1}return ge}function w(z){var U=Z.getSymbolAtLocation(z);return U&&e.getSymbolTarget(U,Z)}}function te(q,G){var ye=e.getContainingObjectLiteralElement(q);if(ye){var b=G.getContextualTypeForObjectLiteralElement(ye),x=b==null?void 0:b.getSymbol();if(x&&!(e.getCheckFlags(x)&6))return x}}function oe(q){var G=q.node;if(e.isImportSpecifier(G.parent)||e.isImportClause(G.parent)||e.isImportEqualsDeclaration(G.parent)||e.isNamespaceImport(G.parent)||e.isExportSpecifier(G.parent)||e.isExportAssignment(G.parent))return G}function ae(q){if(e.isDeclaration(q.node.parent))return q.node}function E(q){if(q.node.parent){var G=q.node,ye=G.parent;switch(ye.kind){case 210:case 211:var b=e.tryCast(ye,e.isCallOrNewExpression);if(b&&b.expression===G)return b;break;case 208:var x=e.tryCast(ye,e.isPropertyAccessExpression);if(x&&x.parent&&x.name===G){var T=e.tryCast(x.parent,e.isCallOrNewExpression);if(T&&T.expression===x)return T}break;case 209:var Z=e.tryCast(ye,e.isElementAccessExpression);if(Z&&Z.parent&&Z.argumentExpression===G){var B=e.tryCast(Z.parent,e.isCallOrNewExpression);if(B&&B.expression===Z)return B}break}}}function I(q){if(q.node.parent){var G=q.node,ye=G.parent;switch(ye.kind){case 208:var b=e.tryCast(ye,e.isPropertyAccessExpression);if(b&&b.expression===G)return b;break;case 209:var x=e.tryCast(ye,e.isElementAccessExpression);if(x&&x.expression===G)return x;break}}}function f(q){var G=q.node;if(e.getMeaningFromLocation(G)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(G.parent))return G}function m(q,G,ye){var b=e.getTouchingToken(q,G),x=e.getContainingFunctionDeclaration(b);if(!y(b)&&x&&k(x,ye)&&e.rangeContainsRange(x,b)&&!(x.body&&e.rangeContainsRange(x.body,b)))return x}function y(q){var G=e.findAncestor(q,e.isJSDocNode);if(G){var ye=e.findAncestor(G,function(b){return!e.isJSDocNode(b)});return!!ye&&e.isFunctionLikeDeclaration(ye)}return!1}function S(q){return e.isMethodSignature(q)&&(e.isInterfaceDeclaration(q.parent)||e.isTypeLiteralNode(q.parent))}function k(q,G){var ye;if(!De(q.parameters,G))return!1;switch(q.kind){case 259:return me(q)&&C(q,G);case 171:if(e.isObjectLiteralExpression(q.parent)){var b=te(q.name,G);return((ye=b==null?void 0:b.declarations)===null||ye===void 0?void 0:ye.length)===1&&C(q,G)}return C(q,G);case 173:return e.isClassDeclaration(q.parent)?me(q.parent)&&C(q,G):M(q.parent.parent)&&C(q,G);case 215:case 216:return M(q.parent)}return!1}function C(q,G){return!!q.body&&!G.isImplementationOfOverload(q)}function me(q){if(!q.name){var G=e.findModifier(q,88);return!!G}return!0}function De(q,G){return V(q)>=ie&&e.every(q,function(ye){return X(ye,G)})}function X(q,G){if(e.isRestParameter(q)){var ye=G.getTypeAtLocation(q);if(!G.isArrayType(ye)&&!G.isTupleType(ye))return!1}return!q.modifiers&&e.isIdentifier(q.name)}function M(q){return e.isVariableDeclaration(q)&&e.isVarConst(q)&&e.isIdentifier(q.name)&&!q.type}function H(q){return q.length>0&&e.isThis(q[0].name)}function V(q){return H(q)?q.length-1:q.length}function h(q){return H(q)&&(q=e.factory.createNodeArray(q.slice(1),q.hasTrailingComma)),q}function F(q,G){return e.isIdentifier(G)&&e.getTextOfIdentifierOrLiteral(G)===q?e.factory.createShorthandPropertyAssignment(q):e.factory.createPropertyAssignment(q,G)}function $(q,G){var ye=h(q.parameters),b=e.isRestParameter(e.last(ye)),x=b?G.slice(0,ye.length-1):G,T=e.map(x,function(A,w){var z=P(ye[w]),U=F(z,A);return e.suppressLeadingAndTrailingTrivia(U.name),e.isPropertyAssignment(U)&&e.suppressLeadingAndTrailingTrivia(U.initializer),e.copyComments(A,U),U});if(b&&G.length>=ye.length){var Z=G.slice(ye.length-1),B=e.factory.createPropertyAssignment(P(e.last(ye)),e.factory.createArrayLiteralExpression(Z));T.push(B)}var u=e.factory.createObjectLiteralExpression(T,!1);return u}function L(q,G,ye){var b=G.getTypeChecker(),x=h(q.parameters),T=e.map(x,U),Z=e.factory.createObjectBindingPattern(T),B=ge(x),u;e.every(x,Be)&&(u=e.factory.createObjectLiteralExpression());var A=e.factory.createParameterDeclaration(void 0,void 0,Z,void 0,B,u);if(H(q.parameters)){var w=q.parameters[0],z=e.factory.createParameterDeclaration(void 0,void 0,w.name,void 0,w.type);return e.suppressLeadingAndTrailingTrivia(z.name),e.copyComments(w.name,z.name),w.type&&(e.suppressLeadingAndTrailingTrivia(z.type),e.copyComments(w.type,z.type)),e.factory.createNodeArray([z,A])}return e.factory.createNodeArray([A]);function U(Me){var Le=e.factory.createBindingElement(void 0,void 0,P(Me),e.isRestParameter(Me)&&Be(Me)?e.factory.createArrayLiteralExpression():Me.initializer);return e.suppressLeadingAndTrailingTrivia(Le),Me.initializer&&Le.initializer&&e.copyComments(Me.initializer,Le.initializer),Le}function ge(Me){var Le=e.map(Me,pe),Ae=e.addEmitFlags(e.factory.createTypeLiteralNode(Le),1);return Ae}function pe(Me){var Le=Me.type;!Le&&(Me.initializer||e.isRestParameter(Me))&&(Le=He(Me));var Ae=e.factory.createPropertySignature(void 0,P(Me),Be(Me)?e.factory.createToken(57):Me.questionToken,Le);return e.suppressLeadingAndTrailingTrivia(Ae),e.copyComments(Me.name,Ae.name),Me.type&&Ae.type&&e.copyComments(Me.type,Ae.type),Ae}function He(Me){var Le=b.getTypeAtLocation(Me);return e.getTypeNodeIfAccessible(Le,Me,G,ye)}function Be(Me){if(e.isRestParameter(Me)){var Le=b.getTypeAtLocation(Me);return!b.isTupleType(Le)}return b.isOptionalParameter(Me)}}function P(q){return e.getTextOfIdentifierOrLiteral(q.name)}function N(q){switch(q.parent.kind){case 260:var G=q.parent;if(G.name)return[G.name];var ye=e.Debug.checkDefined(e.findModifier(G,88),"Nameless class declaration should be a default export");return[ye];case 228:var b=q.parent,x=q.parent.parent,T=b.name;return T?[T,x.name]:[x.name]}}function J(q){switch(q.kind){case 259:if(q.name)return[q.name];var G=e.Debug.checkDefined(e.findModifier(q,88),"Nameless function declaration should be a default export");return[G];case 171:return[q.name];case 173:var ye=e.Debug.checkDefined(e.findChildOfKind(q,135,q.getSourceFile()),"Constructor declaration should have constructor keyword");if(q.parent.kind===228){var b=q.parent.parent;return[b.name,ye]}return[ye];case 216:return[q.parent.name];case 215:return q.name?[q.name,q.parent.name]:[q.parent.name];default:return e.Debug.assertNever(q,"Unexpected function declaration kind ".concat(q.kind))}}})(K=ne.convertParamsToDestructuredObject||(ne.convertParamsToDestructuredObject={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Convert to template string",ie=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),_e={name:O,description:ie,kind:"refactor.rewrite.string"};ne.registerRefactor(O,{kinds:[_e.kind],getEditsForAction:D,getAvailableActions:Q});function Q(C){var me=C.file,De=C.startPosition,X=p(me,De),M=te(X),H={name:O,description:ie,actions:[]};return e.isBinaryExpression(M)&&oe(M).isValidConcatenation?(H.actions.push(_e),[H]):C.preferences.provideRefactorNotApplicableReason?(H.actions.push(vi(vi({},_e),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[H]):e.emptyArray}function p(C,me){var De=e.getTokenAtPosition(C,me),X=te(De),M=!oe(X).isValidConcatenation;return M&&e.isParenthesizedExpression(X.parent)&&e.isBinaryExpression(X.parent.parent)?X.parent.parent:De}function D(C,me){var De=C.file,X=C.startPosition,M=p(De,X);switch(me){case ie:return{edits:le(C,M)};default:return e.Debug.fail("invalid action")}}function le(C,me){var De=te(me),X=C.file,M=y(oe(De),X),H=e.getTrailingCommentRanges(X.text,De.end);if(H){var V=H[H.length-1],h={pos:H[0].pos,end:V.end};return e.textChanges.ChangeTracker.with(C,function(F){F.deleteRange(X,h),F.replaceNode(X,De,M)})}else return e.textChanges.ChangeTracker.with(C,function(F){return F.replaceNode(X,De,M)})}function de(C){return C.operatorToken.kind!==63}function te(C){var me=e.findAncestor(C.parent,function(De){switch(De.kind){case 208:case 209:return!1;case 225:case 223:return!(e.isBinaryExpression(De.parent)&&de(De.parent));default:return"quit"}});return me||C}function oe(C){var me=function(h){if(!e.isBinaryExpression(h))return{nodes:[h],operators:[],validOperators:!0,hasString:e.isStringLiteral(h)||e.isNoSubstitutionTemplateLiteral(h)};var F=me(h.left),$=F.nodes,L=F.operators,P=F.hasString,N=F.validOperators;if(!(P||e.isStringLiteral(h.right)||e.isTemplateExpression(h.right)))return{nodes:[h],operators:[],hasString:!1,validOperators:!0};var J=h.operatorToken.kind===39,q=N&&J;return $.push(h.right),L.push(h.operatorToken),{nodes:$,operators:L,hasString:!0,validOperators:q}},De=me(C),X=De.nodes,M=De.operators,H=De.validOperators,V=De.hasString;return{nodes:X,operators:M,isValidConcatenation:H&&V}}var ae=function(C,me){return function(De,X){De<C.length&&e.copyTrailingComments(C[De],X,me,3,!1)}},E=function(C,me,De){return function(X,M){for(;X.length>0;){var H=X.shift();e.copyTrailingComments(C[H],M,me,3,!1),De(H,M)}}};function I(C){return C.replace(/\\.|[$`]/g,function(me){return me[0]==="\\"?me:"\\"+me})}function f(C){var me=e.isTemplateHead(C)||e.isTemplateMiddle(C)?-2:-1;return e.getTextOfNode(C).slice(1,me)}function m(C,me){for(var De=[],X="",M="";C<me.length;){var H=me[C];if(e.isStringLiteralLike(H))X+=H.text,M+=I(e.getTextOfNode(H).slice(1,-1)),De.push(C),C++;else if(e.isTemplateExpression(H)){X+=H.head.text,M+=f(H.head);break}else break}return[C,X,M,De]}function y(C,me){var De=C.nodes,X=C.operators,M=ae(X,me),H=E(De,me,M),V=m(0,De),h=V[0],F=V[1],$=V[2],L=V[3];if(h===De.length){var P=e.factory.createNoSubstitutionTemplateLiteral(F,$);return H(L,P),P}var N=[],J=e.factory.createTemplateHead(F,$);H(L,J);for(var q=function(b){var x=k(De[b]);M(b,x);var T=m(b+1,De),Z=T[0],B=T[1],u=T[2],A=T[3];b=Z-1;var w=b===De.length-1;if(e.isTemplateExpression(x)){var z=e.map(x.templateSpans,function(ge,pe){S(ge);var He=pe===x.templateSpans.length-1,Be=ge.literal.text+(He?B:""),Me=f(ge.literal)+(He?u:"");return e.factory.createTemplateSpan(ge.expression,w&&He?e.factory.createTemplateTail(Be,Me):e.factory.createTemplateMiddle(Be,Me))});N.push.apply(N,z)}else{var U=w?e.factory.createTemplateTail(B,u):e.factory.createTemplateMiddle(B,u);H(A,U),N.push(e.factory.createTemplateSpan(x,U))}G=b},G,ye=h;ye<De.length;ye++)q(ye),ye=G;return e.factory.createTemplateExpression(J,N)}function S(C){var me=C.getSourceFile();e.copyTrailingComments(C,C.expression,me,3,!1),e.copyTrailingAsLeadingComments(C.expression,C.expression,me,3,!1)}function k(C){return e.isParenthesizedExpression(C)&&(S(C),C=C.expression),C}})(K=ne.convertStringOrTemplateLiteral||(ne.convertStringOrTemplateLiteral={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Convert arrow function or function expression",ie=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),_e={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Q={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},p={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};ne.registerRefactor(O,{kinds:[_e.kind,Q.kind,p.kind],getEditsForAction:le,getAvailableActions:D});function D(C){var me=C.file,De=C.startPosition,X=C.program,M=C.kind,H=te(me,De,X);if(!H)return e.emptyArray;var V=H.selectedVariableDeclaration,h=H.func,F=[],$=[];if(ne.refactorKindBeginsWith(Q.kind,M)){var L=V||e.isArrowFunction(h)&&e.isVariableDeclaration(h.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);L?$.push(vi(vi({},Q),{notApplicableReason:L})):F.push(Q)}if(ne.refactorKindBeginsWith(_e.kind,M)){var L=!V&&e.isArrowFunction(h)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);L?$.push(vi(vi({},_e),{notApplicableReason:L})):F.push(_e)}if(ne.refactorKindBeginsWith(p.kind,M)){var L=e.isFunctionExpression(h)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);L?$.push(vi(vi({},p),{notApplicableReason:L})):F.push(p)}return[{name:O,description:ie,actions:F.length===0&&C.preferences.provideRefactorNotApplicableReason?$:F}]}function le(C,me){var De=C.file,X=C.startPosition,M=C.program,H=te(De,X,M);if(!!H){var V=H.func,h=[];switch(me){case _e.name:h.push.apply(h,f(C,V));break;case Q.name:var F=I(V);if(!F)return;h.push.apply(h,m(C,V,F));break;case p.name:if(!e.isFunctionExpression(V))return;h.push.apply(h,y(C,V));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:h}}}function de(C){var me=!1;return C.forEachChild(function De(X){if(e.isThis(X)){me=!0;return}!e.isClassLike(X)&&!e.isFunctionDeclaration(X)&&!e.isFunctionExpression(X)&&e.forEachChild(X,De)}),me}function te(C,me,De){var X=e.getTokenAtPosition(C,me),M=De.getTypeChecker(),H=ae(C,M,X.parent);if(H&&!de(H.body)&&!M.containsArgumentsReference(H))return{selectedVariableDeclaration:!0,func:H};var V=e.getContainingFunction(X);if(V&&(e.isFunctionExpression(V)||e.isArrowFunction(V))&&!e.rangeContainsRange(V.body,X)&&!de(V.body)&&!M.containsArgumentsReference(V))return e.isFunctionExpression(V)&&k(C,M,V)?void 0:{selectedVariableDeclaration:!1,func:V}}function oe(C){return e.isVariableDeclaration(C)||e.isVariableDeclarationList(C)&&C.declarations.length===1}function ae(C,me,De){if(!!oe(De)){var X=e.isVariableDeclaration(De)?De:e.first(De.declarations),M=X.initializer;if(M&&(e.isArrowFunction(M)||e.isFunctionExpression(M)&&!k(C,me,M)))return M}}function E(C){if(e.isExpression(C)){var me=e.factory.createReturnStatement(C),De=C.getSourceFile();return e.suppressLeadingAndTrailingTrivia(me),e.copyTrailingAsLeadingComments(C,me,De,void 0,!0),e.factory.createBlock([me],!0)}else return C}function I(C){var me=C.parent;if(!(!e.isVariableDeclaration(me)||!e.isVariableDeclarationInVariableStatement(me))){var De=me.parent,X=De.parent;if(!(!e.isVariableDeclarationList(De)||!e.isVariableStatement(X)||!e.isIdentifier(me.name)))return{variableDeclaration:me,variableDeclarationList:De,statement:X,name:me.name}}}function f(C,me){var De=C.file,X=E(me.body),M=e.factory.createFunctionExpression(me.modifiers,me.asteriskToken,void 0,me.typeParameters,me.parameters,me.type,X);return e.textChanges.ChangeTracker.with(C,function(H){return H.replaceNode(De,me,M)})}function m(C,me,De){var X=C.file,M=E(me.body),H=De.variableDeclaration,V=De.variableDeclarationList,h=De.statement,F=De.name;e.suppressLeadingTrivia(h);var $=e.getCombinedModifierFlags(H)&1|e.getEffectiveModifierFlags(me),L=e.factory.createModifiersFromModifierFlags($),P=e.factory.createFunctionDeclaration(e.length(L)?L:void 0,me.asteriskToken,F,me.typeParameters,me.parameters,me.type,M);return V.declarations.length===1?e.textChanges.ChangeTracker.with(C,function(N){return N.replaceNode(X,h,P)}):e.textChanges.ChangeTracker.with(C,function(N){N.delete(X,H),N.insertNodeAfter(X,h,P)})}function y(C,me){var De=C.file,X=me.body.statements,M=X[0],H;S(me.body,M)?(H=M.expression,e.suppressLeadingAndTrailingTrivia(H),e.copyComments(M,H)):H=me.body;var V=e.factory.createArrowFunction(me.modifiers,me.typeParameters,me.parameters,me.type,e.factory.createToken(38),H);return e.textChanges.ChangeTracker.with(C,function(h){return h.replaceNode(De,me,V)})}function S(C,me){return C.statements.length===1&&e.isReturnStatement(me)&&!!me.expression}function k(C,me,De){return!!De.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(De.name,me,C)}})(K=ne.convertArrowFunctionOrFunctionExpression||(ne.convertArrowFunctionOrFunctionExpression={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){var o;(function(ne){var K;(function(se){var O="Infer function return type",ie=e.Diagnostics.Infer_function_return_type.message,_e={name:O,description:ie,kind:"refactor.rewrite.function.returnType"};ne.registerRefactor(O,{kinds:[_e.kind],getEditsForAction:Q,getAvailableActions:p});function Q(oe){var ae=le(oe);if(ae&&!ne.isRefactorErrorInfo(ae)){var E=e.textChanges.ChangeTracker.with(oe,function(I){return D(oe.file,I,ae.declaration,ae.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:E}}}function p(oe){var ae=le(oe);return ae?ne.isRefactorErrorInfo(ae)?oe.preferences.provideRefactorNotApplicableReason?[{name:O,description:ie,actions:[vi(vi({},_e),{notApplicableReason:ae.error})]}]:e.emptyArray:[{name:O,description:ie,actions:[_e]}]:e.emptyArray}function D(oe,ae,E,I){var f=e.findChildOfKind(E,21,oe),m=e.isArrowFunction(E)&&f===void 0,y=m?e.first(E.parameters):f;y&&(m&&(ae.insertNodeBefore(oe,y,e.factory.createToken(20)),ae.insertNodeAfter(oe,y,e.factory.createToken(21))),ae.insertNodeAt(oe,y.end,I,{prefix:": "}))}function le(oe){if(!(e.isInJSFile(oe.file)||!ne.refactorKindBeginsWith(_e.kind,oe.kind))){var ae=e.getTokenAtPosition(oe.file,oe.startPosition),E=e.findAncestor(ae,function(y){return e.isBlock(y)||y.parent&&e.isArrowFunction(y.parent)&&(y.kind===38||y.parent.body===y)?"quit":de(y)});if(!E||!E.body||E.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var I=oe.program.getTypeChecker(),f=te(I,E);if(!f)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var m=I.typeToTypeNode(f,E,1);if(m)return{declaration:E,returnTypeNode:m}}}function de(oe){switch(oe.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function te(oe,ae){if(oe.isImplementationOfOverload(ae)){var E=oe.getTypeAtLocation(ae).getCallSignatures();if(E.length>1)return oe.getUnionType(e.mapDefined(E,function(f){return f.getReturnType()}))}var I=oe.getSignatureFromDeclaration(ae);if(I)return oe.getReturnTypeOfSignature(I)}})(K=ne.inferFunctionReturnType||(ne.inferFunctionReturnType={}))})(o=e.refactor||(e.refactor={}))})(fr||(fr={}));var fr;(function(e){e.servicesVersion="0.8";function o(B,u,A,w){var z=e.isNodeKind(B)?new ne(B,u,A):B===79?new p(79,u,A):B===80?new D(80,u,A):new Q(B,u,A);return z.parent=w,z.flags=w.flags&50720768,z}var ne=function(){function B(u,A,w){this.pos=A,this.end=w,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=u}return B.prototype.assertHasRealPosition=function(u){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),u||"Node must have a real position for this operation")},B.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},B.prototype.getStart=function(u,A){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,u,A)},B.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},B.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},B.prototype.getWidth=function(u){return this.assertHasRealPosition(),this.getEnd()-this.getStart(u)},B.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},B.prototype.getLeadingTriviaWidth=function(u){return this.assertHasRealPosition(),this.getStart(u)-this.pos},B.prototype.getFullText=function(u){return this.assertHasRealPosition(),(u||this.getSourceFile()).text.substring(this.pos,this.end)},B.prototype.getText=function(u){return this.assertHasRealPosition(),u||(u=this.getSourceFile()),u.text.substring(this.getStart(u),this.getEnd())},B.prototype.getChildCount=function(u){return this.getChildren(u).length},B.prototype.getChildAt=function(u,A){return this.getChildren(A)[u]},B.prototype.getChildren=function(u){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=K(this,u))},B.prototype.getFirstToken=function(u){this.assertHasRealPosition();var A=this.getChildren(u);if(!!A.length){var w=e.find(A,function(z){return z.kind<312||z.kind>350});return w.kind<163?w:w.getFirstToken(u)}},B.prototype.getLastToken=function(u){this.assertHasRealPosition();var A=this.getChildren(u),w=e.lastOrUndefined(A);if(!!w)return w.kind<163?w:w.getLastToken(u)},B.prototype.forEachChild=function(u,A){return e.forEachChild(this,u,A)},B}();function K(B,u){if(!e.isNodeKind(B.kind))return e.emptyArray;var A=[];if(e.isJSDocCommentContainingNode(B))return B.forEachChild(function(ge){A.push(ge)}),A;e.scanner.setText((u||B.getSourceFile()).text);var w=B.pos,z=function(ge){se(A,w,ge.pos,B),A.push(ge),w=ge.end},U=function(ge){se(A,w,ge.pos,B),A.push(O(ge,B)),w=ge.end};return e.forEach(B.jsDoc,z),w=B.pos,B.forEachChild(z,U),se(A,w,B.end,B),e.scanner.setText(void 0),A}function se(B,u,A,w){for(e.scanner.setTextPos(u);u<A;){var z=e.scanner.scan(),U=e.scanner.getTextPos();if(U<=A&&(z===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(w.kind)," to have an Identifier in its trivia")),B.push(o(z,u,U,w))),u=U,z===1)break}}function O(B,u){var A=o(351,B.pos,B.end,u);A._children=[];for(var w=B.pos,z=0,U=B;z<U.length;z++){var ge=U[z];se(A._children,w,ge.pos,u),A._children.push(ge),w=ge.end}return se(A._children,w,B.end,u),A}var ie=function(){function B(u,A){this.pos=u,this.end=A,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return B.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},B.prototype.getStart=function(u,A){return e.getTokenPosOfNode(this,u,A)},B.prototype.getFullStart=function(){return this.pos},B.prototype.getEnd=function(){return this.end},B.prototype.getWidth=function(u){return this.getEnd()-this.getStart(u)},B.prototype.getFullWidth=function(){return this.end-this.pos},B.prototype.getLeadingTriviaWidth=function(u){return this.getStart(u)-this.pos},B.prototype.getFullText=function(u){return(u||this.getSourceFile()).text.substring(this.pos,this.end)},B.prototype.getText=function(u){return u||(u=this.getSourceFile()),u.text.substring(this.getStart(u),this.getEnd())},B.prototype.getChildCount=function(){return this.getChildren().length},B.prototype.getChildAt=function(u){return this.getChildren()[u]},B.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},B.prototype.getFirstToken=function(){},B.prototype.getLastToken=function(){},B.prototype.forEachChild=function(){},B}(),_e=function(){function B(u,A){this.flags=u,this.escapedName=A}return B.prototype.getFlags=function(){return this.flags},Object.defineProperty(B.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),B.prototype.getEscapedName=function(){return this.escapedName},B.prototype.getName=function(){return this.name},B.prototype.getDeclarations=function(){return this.declarations},B.prototype.getDocumentationComment=function(u){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var A=this.target.tupleLabelDeclaration;this.documentationComment=ae([A],u)}else this.documentationComment=ae(this.declarations,u);return this.documentationComment},B.prototype.getContextualDocumentationComment=function(u,A){if(u){if(e.isGetAccessor(u)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=ae(e.filter(this.declarations,e.isGetAccessor),A)),e.length(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(e.isSetAccessor(u)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=ae(e.filter(this.declarations,e.isSetAccessor),A)),e.length(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(A)},B.prototype.getJsDocTags=function(u){return this.tags===void 0&&(this.tags=oe(this.declarations,u)),this.tags},B.prototype.getContextualJsDocTags=function(u,A){if(u){if(e.isGetAccessor(u)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=oe(e.filter(this.declarations,e.isGetAccessor),A)),e.length(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(e.isSetAccessor(u)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=oe(e.filter(this.declarations,e.isSetAccessor),A)),e.length(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(A)},B}(),Q=function(B){g_(u,B);function u(A,w,z){var U=B.call(this,w,z)||this;return U.kind=A,U}return u}(ie),p=function(B){g_(u,B);function u(A,w,z){var U=B.call(this,w,z)||this;return U.kind=79,U}return Object.defineProperty(u.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),u}(ie);p.prototype.kind=79;var D=function(B){g_(u,B);function u(A,w,z){return B.call(this,w,z)||this}return Object.defineProperty(u.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),u}(ie);D.prototype.kind=80;var le=function(){function B(u,A){this.checker=u,this.flags=A}return B.prototype.getFlags=function(){return this.flags},B.prototype.getSymbol=function(){return this.symbol},B.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},B.prototype.getProperty=function(u){return this.checker.getPropertyOfType(this,u)},B.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},B.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},B.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},B.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},B.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},B.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},B.prototype.isNullableType=function(){return this.checker.isNullableType(this)},B.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},B.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},B.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},B.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},B.prototype.isUnion=function(){return!!(this.flags&1048576)},B.prototype.isIntersection=function(){return!!(this.flags&2097152)},B.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},B.prototype.isLiteral=function(){return!!(this.flags&384)},B.prototype.isStringLiteral=function(){return!!(this.flags&128)},B.prototype.isNumberLiteral=function(){return!!(this.flags&256)},B.prototype.isTypeParameter=function(){return!!(this.flags&262144)},B.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},B.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},B.prototype.isIndexType=function(){return!!(this.flags&4194304)},Object.defineProperty(B.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),B}(),de=function(){function B(u,A){this.checker=u,this.flags=A}return B.prototype.getDeclaration=function(){return this.declaration},B.prototype.getTypeParameters=function(){return this.typeParameters},B.prototype.getParameters=function(){return this.parameters},B.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},B.prototype.getTypeParameterAtPosition=function(u){var A=this.checker.getParameterType(this,u);if(A.isIndexType()&&e.isThisTypeParameter(A.type)){var w=A.type.getConstraint();if(w)return this.checker.getIndexType(w)}return A},B.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=ae(e.singleElementArray(this.declaration),this.checker))},B.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=oe(e.singleElementArray(this.declaration),this.checker))},B}();function te(B){return e.getJSDocTags(B).some(function(u){return u.tagName.text==="inheritDoc"||u.tagName.text==="inheritdoc"})}function oe(B,u){if(!B)return e.emptyArray;var A=e.JsDoc.getJsDocTagsFromDeclarations(B,u);if(u&&(A.length===0||B.some(te)))for(var w=new e.Set,z=function(He){var Be=E(u,He,function(Me){var Le;if(!w.has(Me))return w.add(Me),He.kind===174||He.kind===175?Me.getContextualJsDocTags(He,u):((Le=Me.declarations)===null||Le===void 0?void 0:Le.length)===1?Me.getJsDocTags():void 0});Be&&(A=zn(zn([],Be,!0),A,!0))},U=0,ge=B;U<ge.length;U++){var pe=ge[U];z(pe)}return A}function ae(B,u){if(!B)return e.emptyArray;var A=e.JsDoc.getJsDocCommentsFromDeclarations(B,u);if(u&&(A.length===0||B.some(te)))for(var w=new e.Set,z=function(He){var Be=E(u,He,function(Me){if(!w.has(Me))return w.add(Me),He.kind===174||He.kind===175?Me.getContextualDocumentationComment(He,u):Me.getDocumentationComment(u)});Be&&(A=A.length===0?Be.slice():Be.concat(e.lineBreakPart(),A))},U=0,ge=B;U<ge.length;U++){var pe=ge[U];z(pe)}return A}function E(B,u,A){var w,z=((w=u.parent)===null||w===void 0?void 0:w.kind)===173?u.parent.parent:u.parent;if(!!z){var U=e.hasStaticModifier(u);return e.firstDefined(e.getAllSuperTypeNodes(z),function(ge){var pe=B.getTypeAtLocation(ge),He=U&&pe.symbol?B.getTypeOfSymbol(pe.symbol):pe,Be=B.getPropertyOfType(He,u.symbol.name);return Be?A(Be):void 0})}}var I=function(B){g_(u,B);function u(A,w,z){var U=B.call(this,A,w,z)||this;return U.kind=308,U}return u.prototype.update=function(A,w){return e.updateSourceFile(this,A,w)},u.prototype.getLineAndCharacterOfPosition=function(A){return e.getLineAndCharacterOfPosition(this,A)},u.prototype.getLineStarts=function(){return e.getLineStarts(this)},u.prototype.getPositionOfLineAndCharacter=function(A,w,z){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),A,w,this.text,z)},u.prototype.getLineEndOfPosition=function(A){var w=this.getLineAndCharacterOfPosition(A).line,z=this.getLineStarts(),U;w+1>=z.length&&(U=this.getEnd()),U||(U=z[w+1]-1);var ge=this.getFullText();return ge[U]===`
  272. `&&ge[U-1]==="\r"?U-1:U},u.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},u.prototype.computeNamedDeclarations=function(){var A=e.createMultiMap();return this.forEachChild(ge),A;function w(pe){var He=U(pe);He&&A.add(He,pe)}function z(pe){var He=A.get(pe);return He||A.set(pe,He=[]),He}function U(pe){var He=e.getNonAssignedNameOfDeclaration(pe);return He&&(e.isComputedPropertyName(He)&&e.isPropertyAccessExpression(He.expression)?He.expression.name.text:e.isPropertyName(He)?e.getNameFromPropertyName(He):void 0)}function ge(pe){switch(pe.kind){case 259:case 215:case 171:case 170:var He=pe,Be=U(He);if(Be){var Me=z(Be),Le=e.lastOrUndefined(Me);Le&&He.parent===Le.parent&&He.symbol===Le.symbol?He.body&&!Le.body&&(Me[Me.length-1]=He):Me.push(He)}e.forEachChild(pe,ge);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:w(pe),e.forEachChild(pe,ge);break;case 166:if(!e.hasSyntacticModifier(pe,16476))break;case 257:case 205:{var Ae=pe;if(e.isBindingPattern(Ae.name)){e.forEachChild(Ae.name,ge);break}Ae.initializer&&ge(Ae.initializer)}case 302:case 169:case 168:w(pe);break;case 275:var Xe=pe;Xe.exportClause&&(e.isNamedExports(Xe.exportClause)?e.forEach(Xe.exportClause.elements,ge):ge(Xe.exportClause.name));break;case 269:var Ne=pe.importClause;Ne&&(Ne.name&&w(Ne.name),Ne.namedBindings&&(Ne.namedBindings.kind===271?w(Ne.namedBindings):e.forEach(Ne.namedBindings.elements,ge)));break;case 223:e.getAssignmentDeclarationKind(pe)!==0&&w(pe);default:e.forEachChild(pe,ge)}}},u}(ne),f=function(){function B(u,A,w){this.fileName=u,this.text=A,this.skipTrivia=w}return B.prototype.getLineAndCharacterOfPosition=function(u){return e.getLineAndCharacterOfPosition(this,u)},B}();function m(){return{getNodeConstructor:function(){return ne},getTokenConstructor:function(){return Q},getIdentifierConstructor:function(){return p},getPrivateIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return I},getSymbolConstructor:function(){return _e},getTypeConstructor:function(){return le},getSignatureConstructor:function(){return de},getSourceMapSourceConstructor:function(){return f}}}function y(B){var u=!0;for(var A in B)if(e.hasProperty(B,A)&&!S(A)){u=!1;break}if(u)return B;var w={};for(var A in B)if(e.hasProperty(B,A)){var z=S(A)?A:A.charAt(0).toLowerCase()+A.substr(1);w[z]=B[A]}return w}e.toEditorSettings=y;function S(B){return!B.length||B.charAt(0)===B.charAt(0).toLowerCase()}function k(B){return B?e.map(B,function(u){return u.text}).join(""):""}e.displayPartsToString=k;function C(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=C;function me(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=me;var De=function(){function B(u){this.host=u}return B.prototype.getCurrentSourceFile=function(u){var A,w,z,U,ge,pe,He,Be,Me=this.host.getScriptSnapshot(u);if(!Me)throw new Error("Could not find file: '"+u+"'.");var Le=e.getScriptKind(u,this.host),Ae=this.host.getScriptVersion(u),Xe;if(this.currentFileName!==u){var Ne={languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(u,this.host.getCurrentDirectory(),((z=(w=(A=this.host).getCompilerHost)===null||w===void 0?void 0:w.call(A))===null||z===void 0?void 0:z.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),(Be=(He=(pe=(ge=(U=this.host).getCompilerHost)===null||ge===void 0?void 0:ge.call(U))===null||pe===void 0?void 0:pe.getModuleResolutionCache)===null||He===void 0?void 0:He.call(pe))===null||Be===void 0?void 0:Be.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())};Xe=M(u,Me,Ne,Ae,!0,Le)}else if(this.currentFileVersion!==Ae){var Oe=Me.getChangeRange(this.currentFileScriptSnapshot);Xe=H(this.currentSourceFile,Me,Ae,Oe)}return Xe&&(this.currentFileVersion=Ae,this.currentFileName=u,this.currentFileScriptSnapshot=Me,this.currentSourceFile=Xe),this.currentSourceFile},B}();function X(B,u,A){B.version=A,B.scriptSnapshot=u}function M(B,u,A,w,z,U){var ge=e.createSourceFile(B,e.getSnapshotText(u),A,z,U);return X(ge,u,w),ge}e.createLanguageServiceSourceFile=M;function H(B,u,A,w,z){if(w&&A!==B.version){var U=void 0,ge=w.span.start!==0?B.text.substr(0,w.span.start):"",pe=e.textSpanEnd(w.span)!==B.text.length?B.text.substr(e.textSpanEnd(w.span)):"";if(w.newLength===0)U=ge&&pe?ge+pe:ge||pe;else{var He=u.getText(w.span.start,w.span.start+w.newLength);U=ge&&pe?ge+He+pe:ge?ge+He:He+pe}var Be=e.updateSourceFile(B,U,w,z);return X(Be,u,A),Be.nameTable=void 0,B!==Be&&B.scriptSnapshot&&(B.scriptSnapshot.dispose&&B.scriptSnapshot.dispose(),B.scriptSnapshot=void 0),Be}var Me={languageVersion:B.languageVersion,impliedNodeFormat:B.impliedNodeFormat,setExternalModuleIndicator:B.setExternalModuleIndicator};return M(B.fileName,u,Me,A,!0,B.scriptKind)}e.updateLanguageServiceSourceFile=H;var V={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},h=function(){function B(u){this.cancellationToken=u}return B.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},B.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},B}(),F=function(){function B(u,A){A===void 0&&(A=20),this.hostCancellationToken=u,this.throttleWaitMilliseconds=A,this.lastCancellationCheckTime=0}return B.prototype.isCancellationRequested=function(){var u=e.timestamp(),A=Math.abs(u-this.lastCancellationCheckTime);return A>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=u,this.hostCancellationToken.isCancellationRequested()):!1},B.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},B}();e.ThrottledCancellationToken=F;var $=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],L=zn(zn([],$,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function P(B,u,A){var w,z;u===void 0&&(u=e.createDocumentRegistry(B.useCaseSensitiveFileNames&&B.useCaseSensitiveFileNames(),B.getCurrentDirectory()));var U;A===void 0?U=e.LanguageServiceMode.Semantic:typeof A=="boolean"?U=A?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:U=A;var ge=new De(B),pe,He,Be=0,Me=B.getCancellationToken?new h(B.getCancellationToken()):V,Le=B.getCurrentDirectory();e.maybeSetLocalizedDiagnosticMessages((z=B.getLocalizedDiagnosticMessages)===null||z===void 0?void 0:z.bind(B));function Ae(nn){B.log&&B.log(nn)}var Xe=e.hostUsesCaseSensitiveFileNames(B),Ne=e.createGetCanonicalFileName(Xe),Oe=e.getSourceMapper({useCaseSensitiveFileNames:function(){return Xe},getCurrentDirectory:function(){return Le},getProgram:d,fileExists:e.maybeBind(B,B.fileExists),readFile:e.maybeBind(B,B.readFile),getDocumentPositionMapper:e.maybeBind(B,B.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(B,B.getSourceFileLike),log:Ae});function be(nn){var Cn=pe.getSourceFile(nn);if(!Cn){var Dn=new Error("Could not find source file: '".concat(nn,"'."));throw Dn.ProgramFiles=pe.getSourceFiles().map(function(On){return On.fileName}),Dn}return Cn}function Y(){var nn,Cn,Dn;if(e.Debug.assert(U!==e.LanguageServiceMode.Syntactic),B.getProjectVersion){var On=B.getProjectVersion();if(On){if(He===On&&!((nn=B.hasChangedAutomaticTypeDirectiveNames)===null||nn===void 0?void 0:nn.call(B)))return;He=On}}var Xn=B.getTypeRootsVersion?B.getTypeRootsVersion():0;Be!==Xn&&(Ae("TypeRoots version has changed; provide new program"),pe=void 0,Be=Xn);var Ge=B.getScriptFileNames().slice(),cn=B.getCompilationSettings()||C(),Vn=B.hasInvalidatedResolutions||e.returnFalse,Ki=e.maybeBind(B,B.hasChangedAutomaticTypeDirectiveNames),dt=(Cn=B.getProjectReferences)===null||Cn===void 0?void 0:Cn.call(B),qi,Ci={getSourceFile:ho,getSourceFileByPath:Aa,getCancellationToken:function(){return Me},getCanonicalFileName:Ne,useCaseSensitiveFileNames:function(){return Xe},getNewLine:function(){return e.getNewLineCharacter(cn,function(){return e.getNewLineOrDefaultFromHost(B)})},getDefaultLibFileName:function(Vi){return B.getDefaultLibFileName(Vi)},writeFile:e.noop,getCurrentDirectory:function(){return Le},fileExists:function(Vi){return B.fileExists(Vi)},readFile:function(Vi){return B.readFile&&B.readFile(Vi)},getSymlinkCache:e.maybeBind(B,B.getSymlinkCache),realpath:e.maybeBind(B,B.realpath),directoryExists:function(Vi){return e.directoryProbablyExists(Vi,B)},getDirectories:function(Vi){return B.getDirectories?B.getDirectories(Vi):[]},readDirectory:function(Vi,Xi,ao,fo,As){return e.Debug.checkDefined(B.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),B.readDirectory(Vi,Xi,ao,fo,As)},onReleaseOldSourceFile:Ea,onReleaseParsedCommandLine:Co,hasInvalidatedResolutions:Vn,hasChangedAutomaticTypeDirectiveNames:Ki,trace:e.maybeBind(B,B.trace),resolveModuleNames:e.maybeBind(B,B.resolveModuleNames),getModuleResolutionCache:e.maybeBind(B,B.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(B,B.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(B,B.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ua},Tt=Ci.getSourceFile,ot=e.changeCompilerHostLikeToUseCache(Ci,function(Vi){return e.toPath(Vi,Le,Ne)},function(){for(var Vi=[],Xi=0;Xi<arguments.length;Xi++)Vi[Xi]=arguments[Xi];return Tt.call.apply(Tt,zn([Ci],Vi,!1))}).getSourceFileWithCache;Ci.getSourceFile=ot,(Dn=B.setCompilerHost)===null||Dn===void 0||Dn.call(B,Ci);var Zi={useCaseSensitiveFileNames:Xe,fileExists:function(Vi){return Ci.fileExists(Vi)},readFile:function(Vi){return Ci.readFile(Vi)},readDirectory:function(){for(var Vi,Xi=[],ao=0;ao<arguments.length;ao++)Xi[ao]=arguments[ao];return(Vi=Ci).readDirectory.apply(Vi,Xi)},trace:Ci.trace,getCurrentDirectory:Ci.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:e.noop},ni=u.getKeyForCompilationSettings(cn);if(e.isProgramUptoDate(pe,Ge,cn,function(Vi,Xi){return B.getScriptVersion(Xi)},function(Vi){return Ci.fileExists(Vi)},Vn,Ki,Ua,dt))return;var Va={rootNames:Ge,options:cn,host:Ci,oldProgram:pe,projectReferences:dt};pe=e.createProgram(Va),Ci=void 0,qi=void 0,Oe.clearCache(),pe.getTypeChecker();return;function Ua(Vi){var Xi=e.toPath(Vi,Le,Ne),ao=qi==null?void 0:qi.get(Xi);if(ao!==void 0)return ao||void 0;var fo=B.getParsedCommandLine?B.getParsedCommandLine(Vi):za(Vi);return(qi||(qi=new e.Map)).set(Xi,fo||!1),fo}function za(Vi){var Xi=ho(Vi,100);if(!!Xi)return Xi.path=e.toPath(Vi,Le,Ne),Xi.resolvedPath=Xi.path,Xi.originalFileName=Xi.fileName,e.parseJsonSourceFileConfigFileContent(Xi,Zi,e.getNormalizedAbsolutePath(e.getDirectoryPath(Vi),Le),void 0,e.getNormalizedAbsolutePath(Vi,Le))}function Co(Vi,Xi,ao){var fo;B.getParsedCommandLine?(fo=B.onReleaseParsedCommandLine)===null||fo===void 0||fo.call(B,Vi,Xi,ao):Xi&&Ea(Xi.sourceFile,ao)}function Ea(Vi,Xi){var ao=u.getKeyForCompilationSettings(Xi);u.releaseDocumentWithKey(Vi.resolvedPath,ao,Vi.scriptKind,Vi.impliedNodeFormat)}function ho(Vi,Xi,ao,fo){return Aa(Vi,e.toPath(Vi,Le,Ne),Xi,ao,fo)}function Aa(Vi,Xi,ao,fo,As){e.Debug.assert(Ci,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var so=B.getScriptSnapshot(Vi);if(!!so){var Xo=e.getScriptKind(Vi,B),Ho=B.getScriptVersion(Vi);if(!As){var Zo=pe&&pe.getSourceFileByPath(Xi);if(Zo){if(Xo===Zo.scriptKind)return u.updateDocumentWithKey(Vi,Xi,B,ni,so,Ho,Xo,ao);u.releaseDocumentWithKey(Zo.resolvedPath,u.getKeyForCompilationSettings(pe.getCompilerOptions()),Zo.scriptKind,Zo.impliedNodeFormat)}}return u.acquireDocumentWithKey(Vi,Xi,B,ni,so,Ho,Xo,ao)}}}function d(){if(U===e.LanguageServiceMode.Syntactic){e.Debug.assert(pe===void 0);return}return Y(),pe}function j(){var nn;return(nn=B.getPackageJsonAutoImportProvider)===null||nn===void 0?void 0:nn.call(B)}function Ce(nn,Cn){var Dn=pe.getTypeChecker(),On=Tt();if(!On)return!1;for(var Xn=0,Ge=nn;Xn<Ge.length;Xn++)for(var cn=Ge[Xn],Vn=0,Ki=cn.references;Vn<Ki.length;Vn++){var dt=Ki[Vn],qi=ot(dt);if(e.Debug.assertIsDefined(qi),Cn.has(dt)||e.FindAllReferences.isDeclarationOfSymbol(qi,On)){Cn.add(dt),dt.isDefinition=!0;var Ci=e.getMappedDocumentSpan(dt,Oe,e.maybeBind(B,B.fileExists));Ci&&Cn.add(Ci)}else dt.isDefinition=!1}return!0;function Tt(){for(var Zi=0,ni=nn;Zi<ni.length;Zi++)for(var Va=ni[Zi],Ua=0,za=Va.references;Ua<za.length;Ua++){var Co=za[Ua];if(Cn.has(Co)){var Ea=ot(Co);return e.Debug.assertIsDefined(Ea),Dn.getSymbolAtLocation(Ea)}var ho=e.getMappedDocumentSpan(Co,Oe,e.maybeBind(B,B.fileExists));if(ho&&Cn.has(ho)){var Ea=ot(ho);if(Ea)return Dn.getSymbolAtLocation(Ea)}}}function ot(Zi){var ni=pe.getSourceFile(Zi.fileName);if(!!ni){var Va=e.getTouchingPropertyName(ni,Zi.textSpan.start),Ua=e.FindAllReferences.Core.getAdjustedNode(Va,{use:1});return Ua}}}function Se(){pe=void 0}function Re(){if(pe){var nn=u.getKeyForCompilationSettings(pe.getCompilerOptions());e.forEach(pe.getSourceFiles(),function(Cn){return u.releaseDocumentWithKey(Cn.resolvedPath,nn,Cn.scriptKind,Cn.impliedNodeFormat)}),pe=void 0}B=void 0}function er(nn){return Y(),pe.getSyntacticDiagnostics(be(nn),Me).slice()}function wr(nn){Y();var Cn=be(nn),Dn=pe.getSemanticDiagnostics(Cn,Me);if(!e.getEmitDeclarations(pe.getCompilerOptions()))return Dn.slice();var On=pe.getDeclarationDiagnostics(Cn,Me);return zn(zn([],Dn,!0),On,!0)}function mr(nn){return Y(),e.computeSuggestionDiagnostics(be(nn),pe,Me)}function Ue(){return Y(),zn(zn([],pe.getOptionsDiagnostics(Me),!0),pe.getGlobalDiagnostics(Me),!0)}function t(nn,Cn,Dn,On){Dn===void 0&&(Dn=e.emptyOptions);var Xn=vi(vi({},e.identity(Dn)),{includeCompletionsForModuleExports:Dn.includeCompletionsForModuleExports||Dn.includeExternalModuleExports,includeCompletionsWithInsertText:Dn.includeCompletionsWithInsertText||Dn.includeInsertTextCompletions});return Y(),e.Completions.getCompletionsAtPosition(B,pe,Ae,be(nn),Cn,Xn,Dn.triggerCharacter,Dn.triggerKind,Me,On&&e.formatting.getFormatContext(On,B))}function qr(nn,Cn,Dn,On,Xn,Ge,cn){return Ge===void 0&&(Ge=e.emptyOptions),Y(),e.Completions.getCompletionEntryDetails(pe,Ae,be(nn),Cn,{name:Dn,source:Xn,data:cn},B,On&&e.formatting.getFormatContext(On,B),Ge,Me)}function ln(nn,Cn,Dn,On,Xn){return Xn===void 0&&(Xn=e.emptyOptions),Y(),e.Completions.getCompletionEntrySymbol(pe,Ae,be(nn),Cn,{name:Dn,source:On},B,Xn)}function dr(nn,Cn){Y();var Dn=be(nn),On=e.getTouchingPropertyName(Dn,Cn);if(On!==Dn){var Xn=pe.getTypeChecker(),Ge=vr(On),cn=b(Ge,Xn);if(!cn||Xn.isUnknownSymbol(cn)){var Vn=kr(Dn,Ge,Cn)?Xn.getTypeAtLocation(Ge):void 0;return Vn&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(Ge,Dn),displayParts:Xn.runWithCancellationToken(Me,function(ot){return e.typeToDisplayParts(ot,Vn,e.getContainerNode(Ge))}),documentation:Vn.symbol?Vn.symbol.getDocumentationComment(Xn):void 0,tags:Vn.symbol?Vn.symbol.getJsDocTags(Xn):void 0}}var Ki=Xn.runWithCancellationToken(Me,function(ot){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(ot,cn,Dn,e.getContainerNode(Ge),Ge)}),dt=Ki.symbolKind,qi=Ki.displayParts,Ci=Ki.documentation,Tt=Ki.tags;return{kind:dt,kindModifiers:e.SymbolDisplay.getSymbolModifiers(Xn,cn),textSpan:e.createTextSpanFromNode(Ge,Dn),displayParts:qi,documentation:Ci,tags:Tt}}}function vr(nn){return e.isNewExpression(nn.parent)&&nn.pos===nn.parent.pos?nn.parent.expression:e.isNamedTupleMember(nn.parent)&&nn.pos===nn.parent.pos||e.isImportMeta(nn.parent)&&nn.parent.name===nn?nn.parent:nn}function kr(nn,Cn,Dn){switch(Cn.kind){case 79:return!e.isLabelName(Cn)&&!e.isTagName(Cn)&&!e.isConstTypeReference(Cn.parent);case 208:case 163:return!e.isInComment(nn,Dn);case 108:case 194:case 106:case 199:return!0;case 233:return e.isImportMeta(Cn);default:return!1}}function Ur(nn,Cn,Dn,On){return Y(),e.GoToDefinition.getDefinitionAtPosition(pe,be(nn),Cn,Dn,On)}function Cr(nn,Cn){return Y(),e.GoToDefinition.getDefinitionAndBoundSpan(pe,be(nn),Cn)}function rn(nn,Cn){return Y(),e.GoToDefinition.getTypeDefinitionAtPosition(pe.getTypeChecker(),be(nn),Cn)}function Br(nn,Cn){return Y(),e.FindAllReferences.getImplementationsAtPosition(pe,Me,pe.getSourceFiles(),be(nn),Cn)}function pn(nn,Cn){return e.flatMap(ve(nn,Cn,[nn]),function(Dn){return Dn.highlightSpans.map(function(On){return vi(vi({fileName:Dn.fileName,textSpan:On.textSpan,isWriteAccess:On.kind==="writtenReference"},On.isInString&&{isInString:!0}),On.contextSpan&&{contextSpan:On.contextSpan})})})}function ve(nn,Cn,Dn){var On=e.normalizePath(nn);e.Debug.assert(Dn.some(function(cn){return e.normalizePath(cn)===On})),Y();var Xn=e.mapDefined(Dn,function(cn){return pe.getSourceFile(cn)}),Ge=be(nn);return e.DocumentHighlights.getDocumentHighlights(pe,Me,Ge,Cn,Xn)}function or(nn,Cn,Dn,On,Xn){Y();var Ge=be(nn),cn=e.getAdjustedRenameLocation(e.getTouchingPropertyName(Ge,Cn));if(!!e.Rename.nodeIsEligibleForRename(cn))if(e.isIdentifier(cn)&&(e.isJsxOpeningElement(cn.parent)||e.isJsxClosingElement(cn.parent))&&e.isIntrinsicJsxName(cn.escapedText)){var Vn=cn.parent.parent,Ki=Vn.openingElement,dt=Vn.closingElement;return[Ki,dt].map(function(qi){var Ci=e.createTextSpanFromNode(qi.tagName,Ge);return vi({fileName:Ge.fileName,textSpan:Ci},e.FindAllReferences.toContextSpan(Ci,Ge,qi.parent))})}else return ze(cn,Cn,{findInStrings:Dn,findInComments:On,providePrefixAndSuffixTextForRename:Xn,use:2},function(qi,Ci,Tt){return e.FindAllReferences.toRenameLocation(qi,Ci,Tt,Xn||!1)})}function Ee(nn,Cn){return Y(),ze(e.getTouchingPropertyName(be(nn),Cn),Cn,{use:1},e.FindAllReferences.toReferenceEntry)}function ze(nn,Cn,Dn,On){Y();var Xn=Dn&&Dn.use===2?pe.getSourceFiles().filter(function(Ge){return!pe.isSourceFileDefaultLibrary(Ge)}):pe.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(pe,Me,Xn,nn,Cn,Dn,On)}function Ar(nn,Cn){return Y(),e.FindAllReferences.findReferencedSymbols(pe,Me,pe.getSourceFiles(),be(nn),Cn)}function xe(nn){return Y(),e.FindAllReferences.Core.getReferencesForFileName(nn,pe,pe.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function cr(nn,Cn,Dn,On){On===void 0&&(On=!1),Y();var Xn=Dn?[be(Dn)]:pe.getSourceFiles();return e.NavigateTo.getNavigateToItems(Xn,pe.getTypeChecker(),Me,nn,Cn,On)}function Mr(nn,Cn,Dn){Y();var On=be(nn),Xn=B.getCustomTransformers&&B.getCustomTransformers();return e.getFileEmitOutput(pe,On,!!Cn,Me,Xn,Dn)}function Rr(nn,Cn,Dn){var On=Dn===void 0?e.emptyOptions:Dn,Xn=On.triggerReason;Y();var Ge=be(nn);return e.SignatureHelp.getSignatureHelpItems(pe,Ge,Cn,Xn,Me)}function Qr(nn){return ge.getCurrentSourceFile(nn)}function en(nn,Cn,Dn){var On=ge.getCurrentSourceFile(nn),Xn=e.getTouchingPropertyName(On,Cn);if(Xn!==On){switch(Xn.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}for(var Ge=Xn;;)if(e.isRightSideOfPropertyAccess(Ge)||e.isRightSideOfQualifiedName(Ge))Ge=Ge.parent;else if(e.isNameOfModuleDeclaration(Ge))if(Ge.parent.parent.kind===264&&Ge.parent.parent.body===Ge.parent)Ge=Ge.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(Ge.getStart(),Xn.getEnd())}}function vn(nn,Cn){var Dn=ge.getCurrentSourceFile(nn);return e.BreakpointResolver.spanInSourceFileAtLocation(Dn,Cn)}function Ie(nn){return e.NavigationBar.getNavigationBarItems(ge.getCurrentSourceFile(nn),Me)}function We(nn){return e.NavigationBar.getNavigationTree(ge.getCurrentSourceFile(nn),Me)}function xr(nn,Cn,Dn){Y();var On=Dn||"original";return On==="2020"?e.classifier.v2020.getSemanticClassifications(pe,Me,be(nn),Cn):e.getSemanticClassifications(pe.getTypeChecker(),Me,be(nn),pe.getClassifiableNames(),Cn)}function Lr(nn,Cn,Dn){Y();var On=Dn||"original";return On==="original"?e.getEncodedSemanticClassifications(pe.getTypeChecker(),Me,be(nn),pe.getClassifiableNames(),Cn):e.classifier.v2020.getEncodedSemanticClassifications(pe,Me,be(nn),Cn)}function xn(nn,Cn){return e.getSyntacticClassifications(Me,ge.getCurrentSourceFile(nn),Cn)}function An(nn,Cn){return e.getEncodedSyntacticClassifications(Me,ge.getCurrentSourceFile(nn),Cn)}function Qn(nn){var Cn=ge.getCurrentSourceFile(nn);return e.OutliningElementsCollector.collectElements(Cn,Me)}var ai=new e.Map(e.getEntries((w={},w[18]=19,w[20]=21,w[22]=23,w[31]=29,w)));ai.forEach(function(nn,Cn){return ai.set(nn.toString(),Number(Cn))});function Dr(nn,Cn){var Dn=ge.getCurrentSourceFile(nn),On=e.getTouchingToken(Dn,Cn),Xn=On.getStart(Dn)===Cn?ai.get(On.kind.toString()):void 0,Ge=Xn&&e.findChildOfKind(On.parent,Xn,Dn);return Ge?[e.createTextSpanFromNode(On,Dn),e.createTextSpanFromNode(Ge,Dn)].sort(function(cn,Vn){return cn.start-Vn.start}):e.emptyArray}function Pr(nn,Cn,Dn){var On=e.timestamp(),Xn=y(Dn),Ge=ge.getCurrentSourceFile(nn);Ae("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-On)),On=e.timestamp();var cn=e.formatting.SmartIndenter.getIndentation(Cn,Ge,Xn);return Ae("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-On)),cn}function jr(nn,Cn,Dn,On){var Xn=ge.getCurrentSourceFile(nn);return e.formatting.formatSelection(Cn,Dn,Xn,e.formatting.getFormatContext(y(On),B))}function on(nn,Cn){return e.formatting.formatDocument(ge.getCurrentSourceFile(nn),e.formatting.getFormatContext(y(Cn),B))}function je(nn,Cn,Dn,On){var Xn=ge.getCurrentSourceFile(nn),Ge=e.formatting.getFormatContext(y(On),B);if(!e.isInComment(Xn,Cn))switch(Dn){case"{":return e.formatting.formatOnOpeningCurly(Cn,Xn,Ge);case"}":return e.formatting.formatOnClosingCurly(Cn,Xn,Ge);case";":return e.formatting.formatOnSemicolon(Cn,Xn,Ge);case`
  273. `:return e.formatting.formatOnEnter(Cn,Xn,Ge)}return[]}function Sr(nn,Cn,Dn,On,Xn,Ge){Ge===void 0&&(Ge=e.emptyOptions),Y();var cn=be(nn),Vn=e.createTextSpanFromBounds(Cn,Dn),Ki=e.formatting.getFormatContext(Xn,B);return e.flatMap(e.deduplicate(On,e.equateValues,e.compareValues),function(dt){return Me.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:dt,sourceFile:cn,span:Vn,program:pe,host:B,cancellationToken:Me,formatContext:Ki,preferences:Ge})})}function Te(nn,Cn,Dn,On){On===void 0&&(On=e.emptyOptions),Y(),e.Debug.assert(nn.type==="file");var Xn=be(nn.fileName),Ge=e.formatting.getFormatContext(Dn,B);return e.codefix.getAllFixes({fixId:Cn,sourceFile:Xn,program:pe,host:B,cancellationToken:Me,formatContext:Ge,preferences:On})}function Ye(nn,Cn,Dn){var On;Dn===void 0&&(Dn=e.emptyOptions),Y(),e.Debug.assert(nn.type==="file");var Xn=be(nn.fileName),Ge=e.formatting.getFormatContext(Cn,B),cn=(On=nn.mode)!==null&&On!==void 0?On:nn.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(Xn,Ge,B,pe,Dn,cn)}function Qe(nn,Cn,Dn,On){return On===void 0&&(On=e.emptyOptions),e.getEditsForFileRename(d(),nn,Cn,B,e.formatting.getFormatContext(Dn,B),On,Oe)}function ue(nn,Cn){var Dn=typeof nn=="string"?Cn:nn;return e.isArray(Dn)?Promise.all(Dn.map(function(On){return Ke(On)})):Ke(Dn)}function Ke(nn){var Cn=function(Dn){return e.toPath(Dn,Le,Ne)};return e.Debug.assertEqual(nn.type,"install package"),B.installPackage?B.installPackage({fileName:Cn(nn.file),packageName:nn.packageName}):Promise.reject("Host does not implement `installPackage`")}function tr(nn,Cn,Dn){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(B),ge.getCurrentSourceFile(nn),Cn,Dn)}function hr(nn,Cn,Dn){if(Dn===60)return!1;var On=ge.getCurrentSourceFile(nn);if(e.isInString(On,Cn))return!1;if(e.isInsideJsxElementOrAttribute(On,Cn))return Dn===123;if(e.isInTemplateString(On,Cn))return!1;switch(Dn){case 39:case 34:case 96:return!e.isInComment(On,Cn)}return!0}function _r(nn,Cn){var Dn=ge.getCurrentSourceFile(nn),On=e.findPrecedingToken(Cn,Dn);if(!!On){var Xn=On.kind===31&&e.isJsxOpeningElement(On.parent)?On.parent.parent:e.isJsxText(On)&&e.isJsxElement(On.parent)?On.parent:void 0;if(Xn&&bn(Xn))return{newText:"</".concat(Xn.openingElement.tagName.getText(Dn),">")};var Ge=On.kind===31&&e.isJsxOpeningFragment(On.parent)?On.parent.parent:e.isJsxText(On)&&e.isJsxFragment(On.parent)?On.parent:void 0;if(Ge&&qn(Ge))return{newText:"</>"}}}function Or(nn,Cn){return{lineStarts:nn.getLineStarts(),firstLine:nn.getLineAndCharacterOfPosition(Cn.pos).line,lastLine:nn.getLineAndCharacterOfPosition(Cn.end).line}}function zr(nn,Cn,Dn){for(var On=ge.getCurrentSourceFile(nn),Xn=[],Ge=Or(On,Cn),cn=Ge.lineStarts,Vn=Ge.firstLine,Ki=Ge.lastLine,dt=Dn||!1,qi=Number.MAX_VALUE,Ci=new e.Map,Tt=new RegExp(/\S/),ot=e.isInsideJsxElement(On,cn[Vn]),Zi=ot?"{/*":"//",ni=Vn;ni<=Ki;ni++){var Va=On.text.substring(cn[ni],On.getLineEndOfPosition(cn[ni])),Ua=Tt.exec(Va);Ua&&(qi=Math.min(qi,Ua.index),Ci.set(ni.toString(),Ua.index),Va.substr(Ua.index,Zi.length)!==Zi&&(dt=Dn===void 0||Dn))}for(var ni=Vn;ni<=Ki;ni++)if(!(Vn!==Ki&&cn[ni]===Cn.end)){var za=Ci.get(ni.toString());za!==void 0&&(ot?Xn.push.apply(Xn,fn(nn,{pos:cn[ni]+qi,end:On.getLineEndOfPosition(cn[ni])},dt,ot)):dt?Xn.push({newText:Zi,span:{length:0,start:cn[ni]+qi}}):On.text.substr(cn[ni]+za,Zi.length)===Zi&&Xn.push({newText:"",span:{length:Zi.length,start:cn[ni]+za}}))}return Xn}function fn(nn,Cn,Dn,On){for(var Xn,Ge=ge.getCurrentSourceFile(nn),cn=[],Vn=Ge.text,Ki=!1,dt=Dn||!1,qi=[],Ci=Cn.pos,Tt=On!==void 0?On:e.isInsideJsxElement(Ge,Ci),ot=Tt?"{/*":"/*",Zi=Tt?"*/}":"*/",ni=Tt?"\\{\\/\\*":"\\/\\*",Va=Tt?"\\*\\/\\}":"\\*\\/";Ci<=Cn.end;){var Ua=Vn.substr(Ci,ot.length)===ot?ot.length:0,za=e.isInComment(Ge,Ci+Ua);if(za)Tt&&(za.pos--,za.end++),qi.push(za.pos),za.kind===3&&qi.push(za.end),Ki=!0,Ci=za.end+1;else{var Co=Vn.substring(Ci,Cn.end).search("(".concat(ni,")|(").concat(Va,")"));dt=Dn!==void 0?Dn:dt||!e.isTextWhiteSpaceLike(Vn,Ci,Co===-1?Cn.end:Ci+Co),Ci=Co===-1?Cn.end+1:Ci+Co+Zi.length}}if(dt||!Ki){((Xn=e.isInComment(Ge,Cn.pos))===null||Xn===void 0?void 0:Xn.kind)!==2&&e.insertSorted(qi,Cn.pos,e.compareValues),e.insertSorted(qi,Cn.end,e.compareValues);var Ea=qi[0];Vn.substr(Ea,ot.length)!==ot&&cn.push({newText:ot,span:{length:0,start:Ea}});for(var ho=1;ho<qi.length-1;ho++)Vn.substr(qi[ho]-Zi.length,Zi.length)!==Zi&&cn.push({newText:Zi,span:{length:0,start:qi[ho]}}),Vn.substr(qi[ho],ot.length)!==ot&&cn.push({newText:ot,span:{length:0,start:qi[ho]}});cn.length%2!=0&&cn.push({newText:Zi,span:{length:0,start:qi[qi.length-1]}})}else for(var Aa=0,Vi=qi;Aa<Vi.length;Aa++){var Xi=Vi[Aa],ao=Xi-Zi.length>0?Xi-Zi.length:0,Ua=Vn.substr(ao,Zi.length)===Zi?Zi.length:0;cn.push({newText:"",span:{length:ot.length,start:Xi-Ua}})}return cn}function Vr(nn,Cn){var Dn=ge.getCurrentSourceFile(nn),On=Or(Dn,Cn),Xn=On.firstLine,Ge=On.lastLine;return Xn===Ge&&Cn.pos!==Cn.end?fn(nn,Cn,!0):zr(nn,Cn,!0)}function Wn(nn,Cn){var Dn=ge.getCurrentSourceFile(nn),On=[],Xn=Cn.pos,Ge=Cn.end;Xn===Ge&&(Ge+=e.isInsideJsxElement(Dn,Xn)?2:1);for(var cn=Xn;cn<=Ge;cn++){var Vn=e.isInComment(Dn,cn);if(Vn){switch(Vn.kind){case 2:On.push.apply(On,zr(nn,{end:Vn.end,pos:Vn.pos+1},!1));break;case 3:On.push.apply(On,fn(nn,{end:Vn.end,pos:Vn.pos+1},!1))}cn=Vn.end+1}}return On}function bn(nn){var Cn=nn.openingElement,Dn=nn.closingElement,On=nn.parent;return!e.tagNamesAreEquivalent(Cn.tagName,Dn.tagName)||e.isJsxElement(On)&&e.tagNamesAreEquivalent(Cn.tagName,On.openingElement.tagName)&&bn(On)}function qn(nn){var Cn=nn.closingFragment,Dn=nn.parent;return!!(Cn.flags&131072)||e.isJsxFragment(Dn)&&qn(Dn)}function yn(nn,Cn,Dn){var On=ge.getCurrentSourceFile(nn),Xn=e.formatting.getRangeOfEnclosingComment(On,Cn);return Xn&&(!Dn||Xn.kind===3)?e.createTextSpanFromRange(Xn):void 0}function Hn(nn,Cn){Y();var Dn=be(nn);Me.throwIfCancellationRequested();var On=Dn.text,Xn=[];if(Cn.length>0&&!Va(Dn.fileName))for(var Ge=Zi(),cn=void 0;cn=Ge.exec(On);){Me.throwIfCancellationRequested();var Vn=3;e.Debug.assert(cn.length===Cn.length+Vn);var Ki=cn[1],dt=cn.index+Ki.length;if(!!e.isInComment(Dn,dt)){for(var qi=void 0,Ci=0;Ci<Cn.length;Ci++)cn[Ci+Vn]&&(qi=Cn[Ci]);if(qi===void 0)return e.Debug.fail();if(!ni(On.charCodeAt(dt+qi.text.length))){var Tt=cn[2];Xn.push({descriptor:qi,message:Tt,position:dt})}}}return Xn;function ot(Ua){return Ua.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zi(){var Ua=/(?:\/\/+\s*)/.source,za=/(?:\/\*+\s*)/.source,Co=/(?:^(?:\s|\*)*)/.source,Ea="("+Co+"|"+Ua+"|"+za+")",ho="(?:"+e.map(Cn,function(fo){return"("+ot(fo.text)+")"}).join("|")+")",Aa=/(?:$|\*\/)/.source,Vi=/(?:.*?)/.source,Xi="("+ho+Vi+")",ao=Ea+Xi+Aa;return new RegExp(ao,"gim")}function ni(Ua){return Ua>=97&&Ua<=122||Ua>=65&&Ua<=90||Ua>=48&&Ua<=57}function Va(Ua){return e.stringContains(Ua,"/node_modules/")}}function Ai(nn,Cn,Dn){return Y(),e.Rename.getRenameInfo(pe,be(nn),Cn,Dn||{})}function ti(nn,Cn,Dn,On,Xn,Ge){var cn=typeof Cn=="number"?[Cn,void 0]:[Cn.pos,Cn.end],Vn=cn[0],Ki=cn[1];return{file:nn,startPosition:Vn,endPosition:Ki,program:d(),host:B,formatContext:e.formatting.getFormatContext(On,B),cancellationToken:Me,preferences:Dn,triggerReason:Xn,kind:Ge}}function Hi(nn,Cn,Dn){return{file:nn,program:d(),host:B,span:Cn,preferences:Dn,cancellationToken:Me}}function Ni(nn,Cn){return e.SmartSelectionRange.getSmartSelectionRange(Cn,ge.getCurrentSourceFile(nn))}function gi(nn,Cn,Dn,On,Xn){Dn===void 0&&(Dn=e.emptyOptions),Y();var Ge=be(nn);return e.refactor.getApplicableRefactors(ti(Ge,Cn,Dn,e.emptyOptions,On,Xn))}function Pn(nn,Cn,Dn,On,Xn,Ge){Ge===void 0&&(Ge=e.emptyOptions),Y();var cn=be(nn);return e.refactor.getEditsForRefactor(ti(cn,Dn,Ge,Cn),On,Xn)}function Pe(nn,Cn){return Cn===0?{line:0,character:0}:Oe.toLineColumnOffset(nn,Cn)}function Ir(nn,Cn){Y();var Dn=e.CallHierarchy.resolveCallHierarchyDeclaration(pe,e.getTouchingPropertyName(be(nn),Cn));return Dn&&e.mapOneOrMany(Dn,function(On){return e.CallHierarchy.createCallHierarchyItem(pe,On)})}function we(nn,Cn){Y();var Dn=be(nn),On=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(pe,Cn===0?Dn:e.getTouchingPropertyName(Dn,Cn)));return On?e.CallHierarchy.getIncomingCalls(pe,On,Me):[]}function hn(nn,Cn){Y();var Dn=be(nn),On=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(pe,Cn===0?Dn:e.getTouchingPropertyName(Dn,Cn)));return On?e.CallHierarchy.getOutgoingCalls(pe,On):[]}function jn(nn,Cn,Dn){Dn===void 0&&(Dn=e.emptyOptions),Y();var On=be(nn);return e.InlayHints.provideInlayHints(Hi(On,Cn,Dn))}var gn={dispose:Re,cleanupSemanticCache:Se,getSyntacticDiagnostics:er,getSemanticDiagnostics:wr,getSuggestionDiagnostics:mr,getCompilerOptionsDiagnostics:Ue,getSyntacticClassifications:xn,getSemanticClassifications:xr,getEncodedSyntacticClassifications:An,getEncodedSemanticClassifications:Lr,getCompletionsAtPosition:t,getCompletionEntryDetails:qr,getCompletionEntrySymbol:ln,getSignatureHelpItems:Rr,getQuickInfoAtPosition:dr,getDefinitionAtPosition:Ur,getDefinitionAndBoundSpan:Cr,getImplementationAtPosition:Br,getTypeDefinitionAtPosition:rn,getReferencesAtPosition:Ee,findReferences:Ar,getFileReferences:xe,getOccurrencesAtPosition:pn,getDocumentHighlights:ve,getNameOrDottedNameSpan:en,getBreakpointStatementAtPosition:vn,getNavigateToItems:cr,getRenameInfo:Ai,getSmartSelectionRange:Ni,findRenameLocations:or,getNavigationBarItems:Ie,getNavigationTree:We,getOutliningSpans:Qn,getTodoComments:Hn,getBraceMatchingAtPosition:Dr,getIndentationAtPosition:Pr,getFormattingEditsForRange:jr,getFormattingEditsForDocument:on,getFormattingEditsAfterKeystroke:je,getDocCommentTemplateAtPosition:tr,isValidBraceCompletionAtPosition:hr,getJsxClosingTagAtPosition:_r,getSpanOfEnclosingComment:yn,getCodeFixesAtPosition:Sr,getCombinedCodeFix:Te,applyCodeActionCommand:ue,organizeImports:Ye,getEditsForFileRename:Qe,getEmitOutput:Mr,getNonBoundSourceFile:Qr,getProgram:d,getCurrentProgram:function(){return pe},getAutoImportProvider:j,updateIsDefinitionOfReferencedSymbols:Ce,getApplicableRefactors:gi,getEditsForRefactor:Pn,toLineColumnOffset:Pe,getSourceMapper:function(){return Oe},clearSourceMapperCache:function(){return Oe.clearCache()},prepareCallHierarchy:Ir,provideCallHierarchyIncomingCalls:we,provideCallHierarchyOutgoingCalls:hn,toggleLineComment:zr,toggleMultilineComment:fn,commentSelection:Vr,uncommentSelection:Wn,provideInlayHints:jn};switch(U){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:$.forEach(function(nn){return gn[nn]=function(){throw new Error("LanguageService Operation: ".concat(nn," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:L.forEach(function(nn){return gn[nn]=function(){throw new Error("LanguageService Operation: ".concat(nn," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(U)}return gn}e.createLanguageService=P;function N(B){return B.nameTable||J(B),B.nameTable}e.getNameTable=N;function J(B){var u=B.nameTable=new e.Map;B.forEachChild(function A(w){if(e.isIdentifier(w)&&!e.isTagName(w)&&w.escapedText||e.isStringOrNumericLiteralLike(w)&&q(w)){var z=e.getEscapedTextOfIdentifierOrLiteral(w);u.set(z,u.get(z)===void 0?w.pos:-1)}else if(e.isPrivateIdentifier(w)){var z=w.escapedText;u.set(z,u.get(z)===void 0?w.pos:-1)}if(e.forEachChild(w,A),e.hasJSDocNodes(w))for(var U=0,ge=w.jsDoc;U<ge.length;U++){var pe=ge[U];e.forEachChild(pe,A)}})}function q(B){return e.isDeclarationName(B)||B.parent.kind===280||T(B)||e.isLiteralComputedPropertyDeclarationName(B)}function G(B){var u=ye(B);return u&&(e.isObjectLiteralExpression(u.parent)||e.isJsxAttributes(u.parent))?u:void 0}e.getContainingObjectLiteralElement=G;function ye(B){switch(B.kind){case 10:case 14:case 8:if(B.parent.kind===164)return e.isObjectLiteralElement(B.parent.parent)?B.parent.parent:void 0;case 79:return e.isObjectLiteralElement(B.parent)&&(B.parent.parent.kind===207||B.parent.parent.kind===289)&&B.parent.name===B?B.parent:void 0}}function b(B,u){var A=G(B);if(A){var w=u.getContextualType(A.parent),z=w&&x(A,u,w,!1);if(z&&z.length===1)return e.first(z)}return u.getSymbolAtLocation(B)}function x(B,u,A,w){var z=e.getNameFromPropertyName(B.name);if(!z)return e.emptyArray;if(!A.isUnion()){var U=A.getProperty(z);return U?[U]:e.emptyArray}var ge=e.mapDefined(A.types,function(pe){return(e.isObjectLiteralExpression(B.parent)||e.isJsxAttributes(B.parent))&&u.isTypeInvalidDueToUnionDiscriminant(pe,B.parent)?void 0:pe.getProperty(z)});if(w&&(ge.length===0||ge.length===A.types.length)){var U=A.getProperty(z);if(U)return[U]}return ge.length===0?e.mapDefined(A.types,function(pe){return pe.getProperty(z)}):ge}e.getPropertySymbolsFromContextualType=x;function T(B){return B&&B.parent&&B.parent.kind===209&&B.parent.argumentExpression===B}function Z(B){return e.combinePaths(Io,e.getDefaultLibFileName(B))}e.getDefaultLibFilePath=Z,e.setObjectAllocator(m())})(fr||(fr={}));var fr;(function(e){var o;(function(ne){function K(se,O){if(se.isDeclarationFile)return;var ie=e.getTokenAtPosition(se,O),_e=se.getLineAndCharacterOfPosition(O).line;if(se.getLineAndCharacterOfPosition(ie.getStart(se)).line>_e){var Q=e.findPrecedingToken(ie.pos,se);if(!Q||se.getLineAndCharacterOfPosition(Q.getEnd()).line!==_e)return;ie=Q}if(ie.flags&16777216)return;return ae(ie);function p(E,I){var f=e.canHaveDecorators(E)?e.findLast(E.modifiers,e.isDecorator):void 0,m=f?e.skipTrivia(se.text,f.end):E.getStart(se);return e.createTextSpanFromBounds(m,(I||E).getEnd())}function D(E,I){return p(E,e.findNextToken(I,I.parent,se))}function le(E,I){return E&&_e===se.getLineAndCharacterOfPosition(E.getStart(se)).line?ae(E):ae(I)}function de(E,I,f){if(E){var m=E.indexOf(I);if(m>=0){for(var y=m,S=m+1;y>0&&f(E[y-1]);)y--;for(;S<E.length&&f(E[S]);)S++;return e.createTextSpanFromBounds(e.skipTrivia(se.text,E[y].pos),E[S-1].end)}}return p(I)}function te(E){return ae(e.findPrecedingToken(E.pos,se))}function oe(E){return ae(e.findNextToken(E,E.parent,se))}function ae(E){if(E){var I=E.parent;switch(E.kind){case 240:return De(E.declarationList.declarations[0]);case 257:case 169:case 168:return De(E);case 166:return M(E);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return V(E);case 238:if(e.isFunctionBlock(E))return h(E);case 265:return F(E);case 295:return F(E.block);case 241:return p(E.expression);case 250:return p(E.getChildAt(0),E.expression);case 244:return D(E,E.expression);case 243:return ae(E.statement);case 256:return p(E.getChildAt(0));case 242:return D(E,E.expression);case 253:return ae(E.statement);case 249:case 248:return p(E.getChildAt(0),E.label);case 245:return L(E);case 246:return D(E,E.expression);case 247:return $(E);case 252:return D(E,E.expression);case 292:case 293:return ae(E.statements[0]);case 255:return F(E.tryBlock);case 254:return p(E,E.expression);case 274:return p(E,E.expression);case 268:return p(E,E.moduleReference);case 269:return p(E,E.moduleSpecifier);case 275:return p(E,E.moduleSpecifier);case 264:if(e.getModuleInstanceState(E)!==1)return;case 260:case 263:case 302:case 205:return p(E);case 251:return ae(E.statement);case 167:return de(I.modifiers,E,e.isDecorator);case 203:case 204:return P(E);case 261:case 262:return;case 26:case 1:return le(e.findPrecedingToken(E.pos,se));case 27:return te(E);case 18:return J(E);case 19:return q(E);case 23:return G(E);case 20:return ye(E);case 21:return b(E);case 58:return x(E);case 31:case 29:return T(E);case 115:return Z(E);case 91:case 83:case 96:return oe(E);case 162:return B(E);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(E))return N(E);if((E.kind===79||E.kind===227||E.kind===299||E.kind===300)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(I))return p(E);if(E.kind===223){var f=E,m=f.left,y=f.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(m))return N(m);if(y.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent))return p(E);if(y.kind===27)return ae(m)}if(e.isExpressionNode(E))switch(I.kind){case 243:return te(E);case 167:return ae(E.parent);case 245:case 247:return p(E);case 223:if(E.parent.operatorToken.kind===27)return p(E);break;case 216:if(E.parent.body===E)return p(E);break}switch(E.parent.kind){case 299:if(E.parent.name===E&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent.parent))return ae(E.parent.initializer);break;case 213:if(E.parent.type===E)return oe(E.parent.type);break;case 257:case 166:{var S=E.parent,k=S.initializer,C=S.type;if(k===E||C===E||e.isAssignmentOperator(E.kind))return te(E);break}case 223:{var m=E.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(m)&&E!==m)return te(E);break}default:if(e.isFunctionLike(E.parent)&&E.parent.type===E)return te(E)}return ae(E.parent)}}function me(u){return e.isVariableDeclarationList(u.parent)&&u.parent.declarations[0]===u?p(e.findPrecedingToken(u.pos,se,u.parent),u):p(u)}function De(u){if(u.parent.parent.kind===246)return ae(u.parent.parent);var A=u.parent;if(e.isBindingPattern(u.name))return P(u.name);if(e.hasOnlyExpressionInitializer(u)&&u.initializer||e.hasSyntacticModifier(u,1)||A.parent.kind===247)return me(u);if(e.isVariableDeclarationList(u.parent)&&u.parent.declarations[0]!==u)return ae(e.findPrecedingToken(u.pos,se,u.parent))}function X(u){return!!u.initializer||u.dotDotDotToken!==void 0||e.hasSyntacticModifier(u,4|8)}function M(u){if(e.isBindingPattern(u.name))return P(u.name);if(X(u))return p(u);var A=u.parent,w=A.parameters.indexOf(u);return e.Debug.assert(w!==-1),w!==0?M(A.parameters[w-1]):ae(A.body)}function H(u){return e.hasSyntacticModifier(u,1)||u.parent.kind===260&&u.kind!==173}function V(u){if(!!u.body)return H(u)?p(u):ae(u.body)}function h(u){var A=u.statements.length?u.statements[0]:u.getLastToken();return H(u.parent)?le(u.parent,A):ae(A)}function F(u){switch(u.parent.kind){case 264:if(e.getModuleInstanceState(u.parent)!==1)return;case 244:case 242:case 246:return le(u.parent,u.statements[0]);case 245:case 247:return le(e.findPrecedingToken(u.pos,se,u.parent),u.statements[0])}return ae(u.statements[0])}function $(u){if(u.initializer.kind===258){var A=u.initializer;if(A.declarations.length>0)return ae(A.declarations[0])}else return ae(u.initializer)}function L(u){if(u.initializer)return $(u);if(u.condition)return p(u.condition);if(u.incrementor)return p(u.incrementor)}function P(u){var A=e.forEach(u.elements,function(w){return w.kind!==229?w:void 0});return A?ae(A):u.parent.kind===205?p(u.parent):me(u.parent)}function N(u){e.Debug.assert(u.kind!==204&&u.kind!==203);var A=u.kind===206?u.elements:u.properties,w=e.forEach(A,function(z){return z.kind!==229?z:void 0});return w?ae(w):p(u.parent.kind===223?u.parent:u)}function J(u){switch(u.parent.kind){case 263:var A=u.parent;return le(e.findPrecedingToken(u.pos,se,u.parent),A.members.length?A.members[0]:A.getLastToken(se));case 260:var w=u.parent;return le(e.findPrecedingToken(u.pos,se,u.parent),w.members.length?w.members[0]:w.getLastToken(se));case 266:return le(u.parent.parent,u.parent.clauses[0])}return ae(u.parent)}function q(u){switch(u.parent.kind){case 265:if(e.getModuleInstanceState(u.parent.parent)!==1)return;case 263:case 260:return p(u);case 238:if(e.isFunctionBlock(u.parent))return p(u);case 295:return ae(e.lastOrUndefined(u.parent.statements));case 266:var A=u.parent,w=e.lastOrUndefined(A.clauses);return w?ae(e.lastOrUndefined(w.statements)):void 0;case 203:var z=u.parent;return ae(e.lastOrUndefined(z.elements)||z);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(u.parent)){var U=u.parent;return p(e.lastOrUndefined(U.properties)||U)}return ae(u.parent)}}function G(u){switch(u.parent.kind){case 204:var A=u.parent;return p(e.lastOrUndefined(A.elements)||A);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(u.parent)){var w=u.parent;return p(e.lastOrUndefined(w.elements)||w)}return ae(u.parent)}}function ye(u){return u.parent.kind===243||u.parent.kind===210||u.parent.kind===211?te(u):u.parent.kind===214?oe(u):ae(u.parent)}function b(u){switch(u.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return te(u);default:return ae(u.parent)}}function x(u){return e.isFunctionLike(u.parent)||u.parent.kind===299||u.parent.kind===166?te(u):ae(u.parent)}function T(u){return u.parent.kind===213?oe(u):ae(u.parent)}function Z(u){return u.parent.kind===243?D(u,u.parent.expression):ae(u.parent)}function B(u){return u.parent.kind===247?oe(u):ae(u.parent)}}}ne.spanInSourceFileAtLocation=K})(o=e.BreakpointResolver||(e.BreakpointResolver={}))})(fr||(fr={}));var fr;(function(e){function o(ne,K,se){var O=[];se=e.fixupCompilerOptions(se,O);var ie=e.isArray(ne)?ne:[ne],_e=e.transformNodes(void 0,void 0,e.factory,se,ie,K,!0);return _e.diagnostics=e.concatenate(_e.diagnostics,O),_e}e.transform=o})(fr||(fr={}));var Lm=function(){return this}(),fr;(function(e){function o(E,I){E&&E.log("*INTERNAL ERROR* - Exception in typescript services: "+I.message)}var ne=function(){function E(I){this.scriptSnapshotShim=I}return E.prototype.getText=function(I,f){return this.scriptSnapshotShim.getText(I,f)},E.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},E.prototype.getChangeRange=function(I){var f=I,m=this.scriptSnapshotShim.getChangeRange(f.scriptSnapshotShim);if(m===null)return null;var y=JSON.parse(m);return e.createTextChangeRange(e.createTextSpan(y.span.start,y.span.length),y.newLength)},E.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},E}(),K=function(){function E(I){var f=this;this.shimHost=I,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(m,y){var S=JSON.parse(f.shimHost.getModuleResolutionsForFile(y));return e.map(m,function(k){var C=e.getProperty(S,k);return C?{resolvedFileName:C,extension:e.extensionFromPath(C),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(m){return f.shimHost.directoryExists(m)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(m,y){var S=JSON.parse(f.shimHost.getTypeReferenceDirectiveResolutionsForFile(y));return e.map(m,function(k){return e.getProperty(S,e.isString(k)?k:k.fileName.toLowerCase())})})}return E.prototype.log=function(I){this.loggingEnabled&&this.shimHost.log(I)},E.prototype.trace=function(I){this.tracingEnabled&&this.shimHost.trace(I)},E.prototype.error=function(I){this.shimHost.error(I)},E.prototype.getProjectVersion=function(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},E.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},E.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},E.prototype.getCompilationSettings=function(){var I=this.shimHost.getCompilationSettings();if(I===null||I==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var f=JSON.parse(I);return f.allowNonTsExtensions=!0,f},E.prototype.getScriptFileNames=function(){var I=this.shimHost.getScriptFileNames();return JSON.parse(I)},E.prototype.getScriptSnapshot=function(I){var f=this.shimHost.getScriptSnapshot(I);return f&&new ne(f)},E.prototype.getScriptKind=function(I){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(I):0},E.prototype.getScriptVersion=function(I){return this.shimHost.getScriptVersion(I)},E.prototype.getLocalizedDiagnosticMessages=function(){var I=this.shimHost.getLocalizedDiagnosticMessages();if(I===null||I==="")return null;try{return JSON.parse(I)}catch(f){return this.log(f.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},E.prototype.getCancellationToken=function(){var I=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(I)},E.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},E.prototype.getDirectories=function(I){return JSON.parse(this.shimHost.getDirectories(I))},E.prototype.getDefaultLibFileName=function(I){return this.shimHost.getDefaultLibFileName(JSON.stringify(I))},E.prototype.readDirectory=function(I,f,m,y,S){var k=e.getFileMatcherPatterns(I,m,y,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(I,JSON.stringify(f),JSON.stringify(k.basePaths),k.excludePattern,k.includeFilePattern,k.includeDirectoryPattern,S))},E.prototype.readFile=function(I,f){return this.shimHost.readFile(I,f)},E.prototype.fileExists=function(I){return this.shimHost.fileExists(I)},E}();e.LanguageServiceShimHostAdapter=K;var se=function(){function E(I){var f=this;this.shimHost=I,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(m){return f.shimHost.directoryExists(m)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(m){return f.shimHost.realpath(m)}:this.realpath=void 0}return E.prototype.readDirectory=function(I,f,m,y,S){var k=e.getFileMatcherPatterns(I,m,y,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(I,JSON.stringify(f),JSON.stringify(k.basePaths),k.excludePattern,k.includeFilePattern,k.includeDirectoryPattern,S))},E.prototype.fileExists=function(I){return this.shimHost.fileExists(I)},E.prototype.readFile=function(I){return this.shimHost.readFile(I)},E.prototype.getDirectories=function(I){return JSON.parse(this.shimHost.getDirectories(I))},E}();e.CoreServicesShimHostAdapter=se;function O(E,I,f,m){var y;m&&(E.log(I),y=e.timestamp());var S=f();if(m){var k=e.timestamp();if(E.log("".concat(I," completed in ").concat(k-y," msec")),e.isString(S)){var C=S;C.length>128&&(C=C.substring(0,128)+"..."),E.log(" result.length=".concat(C.length,", result='").concat(JSON.stringify(C),"'"))}}return S}function ie(E,I,f,m){return _e(E,I,!0,f,m)}function _e(E,I,f,m,y){try{var S=O(E,I,m,y);return f?JSON.stringify({result:S}):S}catch(k){return k instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(o(E,k),k.description=I,JSON.stringify({error:k}))}}var Q=function(){function E(I){this.factory=I,I.registerShim(this)}return E.prototype.dispose=function(I){this.factory.unregisterShim(this)},E}();function p(E,I){return E.map(function(f){return D(f,I)})}e.realizeDiagnostics=p;function D(E,I){return{message:e.flattenDiagnosticMessageText(E.messageText,I),start:E.start,length:E.length,category:e.diagnosticCategoryName(E),code:E.code,reportsUnnecessary:E.reportsUnnecessary,reportsDeprecated:E.reportsDeprecated}}var le=function(E){g_(I,E);function I(f,m,y){var S=E.call(this,f)||this;return S.host=m,S.languageService=y,S.logPerformance=!1,S.logger=S.host,S}return I.prototype.forwardJSONCall=function(f,m){return ie(this.logger,f,m,this.logPerformance)},I.prototype.dispose=function(f){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,Lm&&Lm.CollectGarbage&&(Lm.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,E.prototype.dispose.call(this,f)},I.prototype.refresh=function(f){this.forwardJSONCall("refresh(".concat(f,")"),function(){return null})},I.prototype.cleanupSemanticCache=function(){var f=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return f.languageService.cleanupSemanticCache(),null})},I.prototype.realizeDiagnostics=function(f){var m=e.getNewLineOrDefaultFromHost(this.host);return p(f,m)},I.prototype.getSyntacticClassifications=function(f,m,y){var S=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return S.languageService.getSyntacticClassifications(f,e.createTextSpan(m,y))})},I.prototype.getSemanticClassifications=function(f,m,y){var S=this;return this.forwardJSONCall("getSemanticClassifications('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return S.languageService.getSemanticClassifications(f,e.createTextSpan(m,y))})},I.prototype.getEncodedSyntacticClassifications=function(f,m,y){var S=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return de(S.languageService.getEncodedSyntacticClassifications(f,e.createTextSpan(m,y)))})},I.prototype.getEncodedSemanticClassifications=function(f,m,y){var S=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return de(S.languageService.getEncodedSemanticClassifications(f,e.createTextSpan(m,y)))})},I.prototype.getSyntacticDiagnostics=function(f){var m=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(f,"')"),function(){var y=m.languageService.getSyntacticDiagnostics(f);return m.realizeDiagnostics(y)})},I.prototype.getSemanticDiagnostics=function(f){var m=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(f,"')"),function(){var y=m.languageService.getSemanticDiagnostics(f);return m.realizeDiagnostics(y)})},I.prototype.getSuggestionDiagnostics=function(f){var m=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(f,"')"),function(){return m.realizeDiagnostics(m.languageService.getSuggestionDiagnostics(f))})},I.prototype.getCompilerOptionsDiagnostics=function(){var f=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var m=f.languageService.getCompilerOptionsDiagnostics();return f.realizeDiagnostics(m)})},I.prototype.getQuickInfoAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getQuickInfoAtPosition(f,m)})},I.prototype.getNameOrDottedNameSpan=function(f,m,y){var S=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return S.languageService.getNameOrDottedNameSpan(f,m,y)})},I.prototype.getBreakpointStatementAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getBreakpointStatementAtPosition(f,m)})},I.prototype.getSignatureHelpItems=function(f,m,y){var S=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(f,"', ").concat(m,")"),function(){return S.languageService.getSignatureHelpItems(f,m,y)})},I.prototype.getDefinitionAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getDefinitionAtPosition(f,m)})},I.prototype.getDefinitionAndBoundSpan=function(f,m){var y=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getDefinitionAndBoundSpan(f,m)})},I.prototype.getTypeDefinitionAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getTypeDefinitionAtPosition(f,m)})},I.prototype.getImplementationAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getImplementationAtPosition(f,m)})},I.prototype.getRenameInfo=function(f,m,y){var S=this;return this.forwardJSONCall("getRenameInfo('".concat(f,"', ").concat(m,")"),function(){return S.languageService.getRenameInfo(f,m,y)})},I.prototype.getSmartSelectionRange=function(f,m){var y=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getSmartSelectionRange(f,m)})},I.prototype.findRenameLocations=function(f,m,y,S,k){var C=this;return this.forwardJSONCall("findRenameLocations('".concat(f,"', ").concat(m,", ").concat(y,", ").concat(S,", ").concat(k,")"),function(){return C.languageService.findRenameLocations(f,m,y,S,k)})},I.prototype.getBraceMatchingAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getBraceMatchingAtPosition(f,m)})},I.prototype.isValidBraceCompletionAtPosition=function(f,m,y){var S=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return S.languageService.isValidBraceCompletionAtPosition(f,m,y)})},I.prototype.getSpanOfEnclosingComment=function(f,m,y){var S=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(f,"', ").concat(m,")"),function(){return S.languageService.getSpanOfEnclosingComment(f,m,y)})},I.prototype.getIndentationAtPosition=function(f,m,y){var S=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(f,"', ").concat(m,")"),function(){var k=JSON.parse(y);return S.languageService.getIndentationAtPosition(f,m,k)})},I.prototype.getReferencesAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getReferencesAtPosition(f,m)})},I.prototype.findReferences=function(f,m){var y=this;return this.forwardJSONCall("findReferences('".concat(f,"', ").concat(m,")"),function(){return y.languageService.findReferences(f,m)})},I.prototype.getFileReferences=function(f){var m=this;return this.forwardJSONCall("getFileReferences('".concat(f,")"),function(){return m.languageService.getFileReferences(f)})},I.prototype.getOccurrencesAtPosition=function(f,m){var y=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(f,"', ").concat(m,")"),function(){return y.languageService.getOccurrencesAtPosition(f,m)})},I.prototype.getDocumentHighlights=function(f,m,y){var S=this;return this.forwardJSONCall("getDocumentHighlights('".concat(f,"', ").concat(m,")"),function(){var k=S.languageService.getDocumentHighlights(f,m,JSON.parse(y)),C=e.toFileNameLowerCase(e.normalizeSlashes(f));return e.filter(k,function(me){return e.toFileNameLowerCase(e.normalizeSlashes(me.fileName))===C})})},I.prototype.getCompletionsAtPosition=function(f,m,y,S){var k=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(f,"', ").concat(m,", ").concat(y,", ").concat(S,")"),function(){return k.languageService.getCompletionsAtPosition(f,m,y,S)})},I.prototype.getCompletionEntryDetails=function(f,m,y,S,k,C,me){var De=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(f,"', ").concat(m,", '").concat(y,"')"),function(){var X=S===void 0?void 0:JSON.parse(S);return De.languageService.getCompletionEntryDetails(f,m,y,X,k,C,me)})},I.prototype.getFormattingEditsForRange=function(f,m,y,S){var k=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){var C=JSON.parse(S);return k.languageService.getFormattingEditsForRange(f,m,y,C)})},I.prototype.getFormattingEditsForDocument=function(f,m){var y=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(f,"')"),function(){var S=JSON.parse(m);return y.languageService.getFormattingEditsForDocument(f,S)})},I.prototype.getFormattingEditsAfterKeystroke=function(f,m,y,S){var k=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(f,"', ").concat(m,", '").concat(y,"')"),function(){var C=JSON.parse(S);return k.languageService.getFormattingEditsAfterKeystroke(f,m,y,C)})},I.prototype.getDocCommentTemplateAtPosition=function(f,m,y){var S=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(f,"', ").concat(m,")"),function(){return S.languageService.getDocCommentTemplateAtPosition(f,m,y)})},I.prototype.getNavigateToItems=function(f,m,y){var S=this;return this.forwardJSONCall("getNavigateToItems('".concat(f,"', ").concat(m,", ").concat(y,")"),function(){return S.languageService.getNavigateToItems(f,m,y)})},I.prototype.getNavigationBarItems=function(f){var m=this;return this.forwardJSONCall("getNavigationBarItems('".concat(f,"')"),function(){return m.languageService.getNavigationBarItems(f)})},I.prototype.getNavigationTree=function(f){var m=this;return this.forwardJSONCall("getNavigationTree('".concat(f,"')"),function(){return m.languageService.getNavigationTree(f)})},I.prototype.getOutliningSpans=function(f){var m=this;return this.forwardJSONCall("getOutliningSpans('".concat(f,"')"),function(){return m.languageService.getOutliningSpans(f)})},I.prototype.getTodoComments=function(f,m){var y=this;return this.forwardJSONCall("getTodoComments('".concat(f,"')"),function(){return y.languageService.getTodoComments(f,JSON.parse(m))})},I.prototype.prepareCallHierarchy=function(f,m){var y=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(f,"', ").concat(m,")"),function(){return y.languageService.prepareCallHierarchy(f,m)})},I.prototype.provideCallHierarchyIncomingCalls=function(f,m){var y=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(f,"', ").concat(m,")"),function(){return y.languageService.provideCallHierarchyIncomingCalls(f,m)})},I.prototype.provideCallHierarchyOutgoingCalls=function(f,m){var y=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(f,"', ").concat(m,")"),function(){return y.languageService.provideCallHierarchyOutgoingCalls(f,m)})},I.prototype.provideInlayHints=function(f,m,y){var S=this;return this.forwardJSONCall("provideInlayHints('".concat(f,"', '").concat(JSON.stringify(m),"', ").concat(JSON.stringify(y),")"),function(){return S.languageService.provideInlayHints(f,m,y)})},I.prototype.getEmitOutput=function(f){var m=this;return this.forwardJSONCall("getEmitOutput('".concat(f,"')"),function(){var y=m.languageService.getEmitOutput(f),S=y.diagnostics,k=Mm(y,["diagnostics"]);return vi(vi({},k),{diagnostics:m.realizeDiagnostics(S)})})},I.prototype.getEmitOutputObject=function(f){var m=this;return _e(this.logger,"getEmitOutput('".concat(f,"')"),!1,function(){return m.languageService.getEmitOutput(f)},this.logPerformance)},I.prototype.toggleLineComment=function(f,m){var y=this;return this.forwardJSONCall("toggleLineComment('".concat(f,"', '").concat(JSON.stringify(m),"')"),function(){return y.languageService.toggleLineComment(f,m)})},I.prototype.toggleMultilineComment=function(f,m){var y=this;return this.forwardJSONCall("toggleMultilineComment('".concat(f,"', '").concat(JSON.stringify(m),"')"),function(){return y.languageService.toggleMultilineComment(f,m)})},I.prototype.commentSelection=function(f,m){var y=this;return this.forwardJSONCall("commentSelection('".concat(f,"', '").concat(JSON.stringify(m),"')"),function(){return y.languageService.commentSelection(f,m)})},I.prototype.uncommentSelection=function(f,m){var y=this;return this.forwardJSONCall("uncommentSelection('".concat(f,"', '").concat(JSON.stringify(m),"')"),function(){return y.languageService.uncommentSelection(f,m)})},I}(Q);function de(E){return{spans:E.spans.join(","),endOfLineState:E.endOfLineState}}var te=function(E){g_(I,E);function I(f,m){var y=E.call(this,f)||this;return y.logger=m,y.logPerformance=!1,y.classifier=e.createClassifier(),y}return I.prototype.getEncodedLexicalClassifications=function(f,m,y){var S=this;return y===void 0&&(y=!1),ie(this.logger,"getEncodedLexicalClassifications",function(){return de(S.classifier.getEncodedLexicalClassifications(f,m,y))},this.logPerformance)},I.prototype.getClassificationsForLine=function(f,m,y){y===void 0&&(y=!1);for(var S=this.classifier.getClassificationsForLine(f,m,y),k="",C=0,me=S.entries;C<me.length;C++){var De=me[C];k+=De.length+`
  274. `,k+=De.classification+`
  275. `}return k+=S.finalLexState,k},I}(Q),oe=function(E){g_(I,E);function I(f,m,y){var S=E.call(this,f)||this;return S.logger=m,S.host=y,S.logPerformance=!1,S}return I.prototype.forwardJSONCall=function(f,m){return ie(this.logger,f,m,this.logPerformance)},I.prototype.resolveModuleName=function(f,m,y){var S=this;return this.forwardJSONCall("resolveModuleName('".concat(f,"')"),function(){var k=JSON.parse(y),C=e.resolveModuleName(m,e.normalizeSlashes(f),k,S.host),me=C.resolvedModule?C.resolvedModule.resolvedFileName:void 0;return C.resolvedModule&&C.resolvedModule.extension!==".ts"&&C.resolvedModule.extension!==".tsx"&&C.resolvedModule.extension!==".d.ts"&&(me=void 0),{resolvedFileName:me,failedLookupLocations:C.failedLookupLocations,affectingLocations:C.affectingLocations}})},I.prototype.resolveTypeReferenceDirective=function(f,m,y){var S=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(f,")"),function(){var k=JSON.parse(y),C=e.resolveTypeReferenceDirective(m,e.normalizeSlashes(f),k,S.host);return{resolvedFileName:C.resolvedTypeReferenceDirective?C.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:C.resolvedTypeReferenceDirective?C.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:C.failedLookupLocations}})},I.prototype.getPreProcessedFileInfo=function(f,m){var y=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(f,"')"),function(){var S=e.preProcessFile(e.getSnapshotText(m),!0,!0);return{referencedFiles:y.convertFileReferences(S.referencedFiles),importedFiles:y.convertFileReferences(S.importedFiles),ambientExternalModules:S.ambientExternalModules,isLibFile:S.isLibFile,typeReferenceDirectives:y.convertFileReferences(S.typeReferenceDirectives),libReferenceDirectives:y.convertFileReferences(S.libReferenceDirectives)}})},I.prototype.getAutomaticTypeDirectiveNames=function(f){var m=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(f,"')"),function(){var y=JSON.parse(f);return e.getAutomaticTypeDirectiveNames(y,m.host)})},I.prototype.convertFileReferences=function(f){if(!!f){for(var m=[],y=0,S=f;y<S.length;y++){var k=S[y];m.push({path:e.normalizeSlashes(k.fileName),position:k.pos,length:k.end-k.pos})}return m}},I.prototype.getTSConfigFileInfo=function(f,m){var y=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(f,"')"),function(){var S=e.parseJsonText(f,e.getSnapshotText(m)),k=e.normalizeSlashes(f),C=e.parseJsonSourceFileConfigFileContent(S,y.host,e.getDirectoryPath(k),{},k);return{options:C.options,typeAcquisition:C.typeAcquisition,files:C.fileNames,raw:C.raw,errors:p(zn(zn([],S.parseDiagnostics,!0),C.errors,!0),`\r
  276. `)}})},I.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},I.prototype.discoverTypings=function(f){var m=this,y=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var S=JSON.parse(f);return m.safeList===void 0&&(m.safeList=e.JsTyping.loadSafeList(m.host,e.toPath(S.safeListPath,S.safeListPath,y))),e.JsTyping.discoverTypings(m.host,function(k){return m.logger.log(k)},S.fileNames,e.toPath(S.projectRootPath,S.projectRootPath,y),m.safeList,S.packageNameToTypingLocation,S.typeAcquisition,S.unresolvedImports,S.typesRegistry,e.emptyOptions)})},I}(Q),ae=function(){function E(){this._shims=[]}return E.prototype.getServicesVersion=function(){return e.servicesVersion},E.prototype.createLanguageServiceShim=function(I){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(I.useCaseSensitiveFileNames&&I.useCaseSensitiveFileNames(),I.getCurrentDirectory()));var f=new K(I),m=e.createLanguageService(f,this.documentRegistry,!1);return new le(this,I,m)}catch(y){throw o(I,y),y}},E.prototype.createClassifierShim=function(I){try{return new te(this,I)}catch(f){throw o(I,f),f}},E.prototype.createCoreServicesShim=function(I){try{var f=new se(I);return new oe(this,I,f)}catch(m){throw o(I,m),m}},E.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},E.prototype.registerShim=function(I){this._shims.push(I)},E.prototype.unregisterShim=function(I){for(var f=0;f<this._shims.length;f++)if(this._shims[f]===I){delete this._shims[f];return}throw new Error("Invalid operation")},E}();e.TypeScriptServicesFactory=ae})(fr||(fr={})),function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis=="undefined"&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(typeof os=="undefined"||os.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=fr.TypeScriptServicesFactory,globalThis.toolsVersion=fr.versionMajorMinor),Cv.exports&&(Cv.exports=fr);var fr;(function(e){function o(se,O,ie,_e){if(Object.defineProperty(te,"name",vi(vi({},Object.getOwnPropertyDescriptor(te,"name")),{value:se})),_e)for(var Q=0,p=Object.keys(_e);Q<p.length;Q++){var D=p[Q],le=+D;!isNaN(le)&&e.hasProperty(O,"".concat(le))&&(O[le]=e.Debug.deprecate(O[le],vi(vi({},_e[le]),{name:se})))}var de=ne(O,ie);return te;function te(){for(var oe=[],ae=0;ae<arguments.length;ae++)oe[ae]=arguments[ae];var E=de(oe),I=E!==void 0?O[E]:void 0;if(typeof I=="function")return I.apply(void 0,oe);throw new TypeError("Invalid arguments")}}e.createOverload=o;function ne(se,O){return function(ie){for(var _e=0;e.hasProperty(se,"".concat(_e))&&e.hasProperty(O,"".concat(_e));_e++){var Q=O[_e];if(Q(ie))return _e}}}function K(se){return{overload:function(O){return{bind:function(ie){return{finish:function(){return o(se,O,ie)},deprecate:function(_e){return{finish:function(){return o(se,O,ie,_e)}}}}}}}}}e.buildOverload=K})(fr||(fr={}));var fr;(function(e){var o={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,o),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,o),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,o),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,o),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,o),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,o),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,o),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,o),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,o),e.createSuper=e.Debug.deprecate(e.factory.createSuper,o),e.createThis=e.Debug.deprecate(e.factory.createThis,o),e.createNull=e.Debug.deprecate(e.factory.createNull,o),e.createTrue=e.Debug.deprecate(e.factory.createTrue,o),e.createFalse=e.Debug.deprecate(e.factory.createFalse,o),e.createModifier=e.Debug.deprecate(e.factory.createModifier,o),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,o),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,o),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,o),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,o),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,o),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,o),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,o),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,o),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,o),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,o),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,o),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,o),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,o),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,o),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,o),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,o),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,o),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,o),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,o),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,o),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,o),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,o),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,o),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,o),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,o),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,o),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,o),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,o),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,o),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,o),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,o),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,o),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,o),e.createConstructorTypeNode=e.Debug.deprecate(function(ne,K,se){return e.factory.createConstructorTypeNode(void 0,ne,K,se)},o),e.updateConstructorTypeNode=e.Debug.deprecate(function(ne,K,se,O){return e.factory.updateConstructorTypeNode(ne,ne.modifiers,K,se,O)},o),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,o),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,o),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,o),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,o),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,o),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,o),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,o),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,o),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,o),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,o),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,o),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,o),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,o),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,o),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,o),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,o),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,o),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,o),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,o),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,o),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,o),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,o),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,o),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,o),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,o),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,o),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,o),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,o),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,o),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,o),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,o),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,o),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,o),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,o),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,o),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,o),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,o),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,o),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,o),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,o),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,o),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,o),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,o),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,o),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,o),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,o),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,o),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,o),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,o),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,o),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,o),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,o),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,o),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,o),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,o),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,o),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,o),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,o),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,o),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,o),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,o),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,o),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,o),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,o),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,o),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,o),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,o),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,o),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,o),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,o),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,o),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,o),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,o),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,o),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,o),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,o),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,o),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,o),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,o),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,o),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,o),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,o),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,o),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,o),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,o),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,o),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,o),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,o),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,o),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,o),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,o),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,o),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,o),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,o),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,o),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,o),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,o),e.createBlock=e.Debug.deprecate(e.factory.createBlock,o),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,o),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,o),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,o),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,o),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,o),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,o),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,o),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,o),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,o),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,o),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,o),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,o),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,o),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,o),e.createFor=e.Debug.deprecate(e.factory.createForStatement,o),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,o),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,o),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,o),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,o),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,o),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,o),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,o),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,o),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,o),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,o),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,o),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,o),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,o),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,o),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,o),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,o),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,o),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,o),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,o),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,o),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,o),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,o),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,o),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,o),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,o),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,o),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,o),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,o),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,o),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,o),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,o),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,o),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,o),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,o),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,o),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,o),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,o),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,o),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,o),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,o),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,o),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,o),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,o),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,o),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,o),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,o),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,o),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,o),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,o),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,o),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,o),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,o),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,o),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,o),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,o),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,o),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,o),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,o),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,o),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,o),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,o),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,o),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,o),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,o),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,o),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,o),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,o),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,o),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,o),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,o),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,o),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,o),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,o),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,o),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,o),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,o),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,o),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,o),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,o),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,o),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,o),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,o),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,o),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,o),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,o),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,o),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,o),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,o),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,o),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,o),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,o),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,o),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,o),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,o),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,o),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,o),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,o),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,o),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,o),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,o),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,o),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,o),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,o),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,o),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,o),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,o),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,o),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,o),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,o),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,o),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,o),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,o),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,o),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,o),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,o),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,o),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,o),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,o),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,o),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,o),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,o),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,o),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,o),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,o),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,o),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,o),e.createBundle=e.Debug.deprecate(e.factory.createBundle,o),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,o),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,o),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,o),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,o),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,o),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,o),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,o),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,o),e.createToken=e.Debug.deprecate(function(K){return e.factory.createToken(K)},o),e.createIdentifier=e.Debug.deprecate(function(K){return e.factory.createIdentifier(K,void 0,void 0)},o),e.createTempVariable=e.Debug.deprecate(function(K){return e.factory.createTempVariable(K,void 0)},o),e.getGeneratedNameForNode=e.Debug.deprecate(function(K){return e.factory.getGeneratedNameForNode(K,void 0)},o),e.createOptimisticUniqueName=e.Debug.deprecate(function(K){return e.factory.createUniqueName(K,16)},o),e.createFileLevelUniqueName=e.Debug.deprecate(function(K){return e.factory.createUniqueName(K,16|32)},o),e.createIndexSignature=e.Debug.deprecate(function(K,se,O,ie){return e.factory.createIndexSignature(K,se,O,ie)},o),e.createTypePredicateNode=e.Debug.deprecate(function(K,se){return e.factory.createTypePredicateNode(void 0,K,se)},o),e.updateTypePredicateNode=e.Debug.deprecate(function(K,se,O){return e.factory.updateTypePredicateNode(K,void 0,se,O)},o),e.createLiteral=e.Debug.deprecate(function(K){return typeof K=="number"?e.factory.createNumericLiteral(K):typeof K=="object"&&"base10Value"in K?e.factory.createBigIntLiteral(K):typeof K=="boolean"?K?e.factory.createTrue():e.factory.createFalse():typeof K=="string"?e.factory.createStringLiteral(K,void 0):e.factory.createStringLiteralFromNode(K)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(K,se,O,ie,_e){return e.factory.createMethodSignature(void 0,ie,_e,K,se,O)},o),e.updateMethodSignature=e.Debug.deprecate(function(K,se,O,ie,_e,Q){return e.factory.updateMethodSignature(K,K.modifiers,_e,Q,se,O,ie)},o),e.createTypeOperatorNode=e.Debug.deprecate(function(K,se){var O;return se?O=K:(se=K,O=141),e.factory.createTypeOperatorNode(O,se)},o),e.createTaggedTemplate=e.Debug.deprecate(function(K,se,O){var ie;return O?ie=se:O=se,e.factory.createTaggedTemplateExpression(K,ie,O)},o),e.updateTaggedTemplate=e.Debug.deprecate(function(K,se,O,ie){var _e;return ie?_e=O:ie=O,e.factory.updateTaggedTemplateExpression(K,se,_e,ie)},o),e.updateBinary=e.Debug.deprecate(function(K,se,O,ie){return ie===void 0&&(ie=K.operatorToken),typeof ie=="number"&&(ie=ie===K.operatorToken.kind?K.operatorToken:e.factory.createToken(ie)),e.factory.updateBinaryExpression(K,se,ie,O)},o),e.createConditional=e.Debug.deprecate(function(K,se,O,ie,_e){return arguments.length===5?e.factory.createConditionalExpression(K,se,O,ie,_e):arguments.length===3?e.factory.createConditionalExpression(K,e.factory.createToken(57),se,e.factory.createToken(58),O):e.Debug.fail("Argument count mismatch")},o),e.createYield=e.Debug.deprecate(function(K,se){var O;return se?O=K:se=K,e.factory.createYieldExpression(O,se)},o),e.createClassExpression=e.Debug.deprecate(function(K,se,O,ie,_e){return e.factory.createClassExpression(void 0,K,se,O,ie,_e)},o),e.updateClassExpression=e.Debug.deprecate(function(K,se,O,ie,_e,Q){return e.factory.updateClassExpression(K,void 0,se,O,ie,_e,Q)},o),e.createPropertySignature=e.Debug.deprecate(function(K,se,O,ie,_e){var Q=e.factory.createPropertySignature(K,se,O,ie);return Q.initializer=_e,Q},o),e.updatePropertySignature=e.Debug.deprecate(function(K,se,O,ie,_e,Q){var p=e.factory.updatePropertySignature(K,se,O,ie,_e);return K.initializer!==Q&&(p===K&&(p=e.factory.cloneNode(K)),p.initializer=Q),p},o),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(K,se){return e.factory.createExpressionWithTypeArguments(se,K)},o),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(K,se,O){return e.factory.updateExpressionWithTypeArguments(K,O,se)},o),e.createArrowFunction=e.Debug.deprecate(function(K,se,O,ie,_e,Q){return arguments.length===6?e.factory.createArrowFunction(K,se,O,ie,_e,Q):arguments.length===5?e.factory.createArrowFunction(K,se,O,ie,void 0,_e):e.Debug.fail("Argument count mismatch")},o),e.updateArrowFunction=e.Debug.deprecate(function(K,se,O,ie,_e,Q,p){return arguments.length===7?e.factory.updateArrowFunction(K,se,O,ie,_e,Q,p):arguments.length===6?e.factory.updateArrowFunction(K,se,O,ie,_e,K.equalsGreaterThanToken,Q):e.Debug.fail("Argument count mismatch")},o),e.createVariableDeclaration=e.Debug.deprecate(function(K,se,O,ie){return arguments.length===4?e.factory.createVariableDeclaration(K,se,O,ie):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(K,void 0,se,O):e.Debug.fail("Argument count mismatch")},o),e.updateVariableDeclaration=e.Debug.deprecate(function(K,se,O,ie,_e){return arguments.length===5?e.factory.updateVariableDeclaration(K,se,O,ie,_e):arguments.length===4?e.factory.updateVariableDeclaration(K,se,K.exclamationToken,O,ie):e.Debug.fail("Argument count mismatch")},o),e.createImportClause=e.Debug.deprecate(function(K,se,O){return O===void 0&&(O=!1),e.factory.createImportClause(O,K,se)},o),e.updateImportClause=e.Debug.deprecate(function(K,se,O,ie){return e.factory.updateImportClause(K,ie,se,O)},o),e.createExportDeclaration=e.Debug.deprecate(function(K,se,O,ie,_e){return _e===void 0&&(_e=!1),e.factory.createExportDeclaration(K,se,_e,O,ie)},o),e.updateExportDeclaration=e.Debug.deprecate(function(K,se,O,ie,_e,Q){return e.factory.updateExportDeclaration(K,se,O,Q,ie,_e,K.assertClause)},o),e.createJSDocParamTag=e.Debug.deprecate(function(K,se,O,ie){return e.factory.createJSDocParameterTag(void 0,K,se,O,!1,ie?e.factory.createNodeArray([e.factory.createJSDocText(ie)]):void 0)},o),e.createComma=e.Debug.deprecate(function(K,se){return e.factory.createComma(K,se)},o),e.createLessThan=e.Debug.deprecate(function(K,se){return e.factory.createLessThan(K,se)},o),e.createAssignment=e.Debug.deprecate(function(K,se){return e.factory.createAssignment(K,se)},o),e.createStrictEquality=e.Debug.deprecate(function(K,se){return e.factory.createStrictEquality(K,se)},o),e.createStrictInequality=e.Debug.deprecate(function(K,se){return e.factory.createStrictInequality(K,se)},o),e.createAdd=e.Debug.deprecate(function(K,se){return e.factory.createAdd(K,se)},o),e.createSubtract=e.Debug.deprecate(function(K,se){return e.factory.createSubtract(K,se)},o),e.createLogicalAnd=e.Debug.deprecate(function(K,se){return e.factory.createLogicalAnd(K,se)},o),e.createLogicalOr=e.Debug.deprecate(function(K,se){return e.factory.createLogicalOr(K,se)},o),e.createPostfixIncrement=e.Debug.deprecate(function(K){return e.factory.createPostfixIncrement(K)},o),e.createLogicalNot=e.Debug.deprecate(function(K){return e.factory.createLogicalNot(K)},o),e.createNode=e.Debug.deprecate(function(K,se,O){return se===void 0&&(se=0),O===void 0&&(O=0),e.setTextRangePosEnd(K===308?e.parseBaseNodeFactory.createBaseSourceFileNode(K):K===79?e.parseBaseNodeFactory.createBaseIdentifierNode(K):K===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(K):e.isNodeKind(K)?e.parseBaseNodeFactory.createBaseNode(K):e.parseBaseNodeFactory.createBaseTokenNode(K),se,O)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(K){var se=e.factory.cloneNode(K);return e.setTextRange(se,K),e.setParent(se,K.parent),se},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(fr||(fr={}));var fr;(function(e){e.isTypeAssertion=e.Debug.deprecate(function(ne){return ne.kind===213},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(fr||(fr={}));var fr;(function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(ne){return e.isMemberName(ne)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(fr||(fr={}));var fr;(function(e){function o(K){var se=K.createConstructorTypeNode,O=K.updateConstructorTypeNode;K.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(ie,_e,Q,p){return se(ie,_e,Q,p)},1:function(ie,_e,Q){return se(void 0,ie,_e,Q)}}).bind({0:function(ie){return ie.length===4},1:function(ie){return ie.length===3}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),K.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(ie,_e,Q,p,D){return O(ie,_e,Q,p,D)},1:function(ie,_e,Q,p){return O(ie,ie.modifiers,_e,Q,p)}}).bind({0:function(ie){return ie.length===5},1:function(ie){return ie.length===4}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var ne=e.createNodeFactory;e.createNodeFactory=function(K,se){var O=ne(K,se);return o(O),O},o(e.factory)})(fr||(fr={}));var fr;(function(e){function o(K){var se=K.createImportTypeNode,O=K.updateImportTypeNode;K.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(ie,_e,Q,p,D){return se(ie,_e,Q,p,D)},1:function(ie,_e,Q,p){return se(ie,void 0,_e,Q,p)}}).bind({0:function(ie){var _e=ie[1],Q=ie[2],p=ie[3],D=ie[4];return(_e===void 0||e.isImportTypeAssertionContainer(_e))&&(Q===void 0||!e.isArray(Q))&&(p===void 0||e.isArray(p))&&(D===void 0||typeof D=="boolean")},1:function(ie){var _e=ie[1],Q=ie[2],p=ie[3],D=ie[4];return D===void 0&&(_e===void 0||e.isEntityName(_e))&&(Q===void 0||e.isArray(Q))&&(p===void 0||typeof p=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),K.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(ie,_e,Q,p,D,le){return O(ie,_e,Q,p,D,le)},1:function(ie,_e,Q,p,D){return O(ie,_e,ie.assertions,Q,p,D)}}).bind({0:function(ie){var _e=ie[2],Q=ie[3],p=ie[4],D=ie[5];return(_e===void 0||e.isImportTypeAssertionContainer(_e))&&(Q===void 0||!e.isArray(Q))&&(p===void 0||e.isArray(p))&&(D===void 0||typeof D=="boolean")},1:function(ie){var _e=ie[2],Q=ie[3],p=ie[4],D=ie[5];return D===void 0&&(_e===void 0||e.isEntityName(_e))&&(Q===void 0||e.isArray(Q))&&(p===void 0||typeof p=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var ne=e.createNodeFactory;e.createNodeFactory=function(K,se){var O=ne(K,se);return o(O),O},o(e.factory)})(fr||(fr={}));var fr;(function(e){function o(K){var se=K.createTypeParameterDeclaration,O=K.updateTypeParameterDeclaration;K.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(ie,_e,Q,p){return se(ie,_e,Q,p)},1:function(ie,_e,Q){return se(void 0,ie,_e,Q)}}).bind({0:function(ie){var _e=ie[0];return _e===void 0||e.isArray(_e)},1:function(ie){var _e=ie[0];return _e!==void 0&&!e.isArray(_e)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),K.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(ie,_e,Q,p,D){return O(ie,_e,Q,p,D)},1:function(ie,_e,Q,p){return O(ie,ie.modifiers,_e,Q,p)}}).bind({0:function(ie){var _e=ie[1];return _e===void 0||e.isArray(_e)},1:function(ie){var _e=ie[1];return _e!==void 0&&!e.isArray(_e)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var ne=e.createNodeFactory;e.createNodeFactory=function(K,se){var O=ne(K,se);return o(O),O},o(e.factory)})(fr||(fr={}));var fr;(function(e){var o={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},ne={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},K={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function se(ie){var _e=ie.createParameterDeclaration,Q=ie.updateParameterDeclaration,p=ie.createPropertyDeclaration,D=ie.updatePropertyDeclaration,le=ie.createMethodDeclaration,de=ie.updateMethodDeclaration,te=ie.createConstructorDeclaration,oe=ie.updateConstructorDeclaration,ae=ie.createGetAccessorDeclaration,E=ie.updateGetAccessorDeclaration,I=ie.createSetAccessorDeclaration,f=ie.updateSetAccessorDeclaration,m=ie.createIndexSignature,y=ie.updateIndexSignature,S=ie.createClassStaticBlockDeclaration,k=ie.updateClassStaticBlockDeclaration,C=ie.createClassExpression,me=ie.updateClassExpression,De=ie.createFunctionDeclaration,X=ie.updateFunctionDeclaration,M=ie.createClassDeclaration,H=ie.updateClassDeclaration,V=ie.createInterfaceDeclaration,h=ie.updateInterfaceDeclaration,F=ie.createTypeAliasDeclaration,$=ie.updateTypeAliasDeclaration,L=ie.createEnumDeclaration,P=ie.updateEnumDeclaration,N=ie.createModuleDeclaration,J=ie.updateModuleDeclaration,q=ie.createImportEqualsDeclaration,G=ie.updateImportEqualsDeclaration,ye=ie.createImportDeclaration,b=ie.updateImportDeclaration,x=ie.createExportAssignment,T=ie.updateExportAssignment,Z=ie.createExportDeclaration,B=ie.updateExportDeclaration;ie.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(u,A,w,z,U,ge){return _e(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return _e(e.concatenate(u,A),w,z,U,ge,pe)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6];return pe===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="string"||e.isBindingName(w))&&(z===void 0||typeof z=="object"&&e.isQuestionToken(z))&&(U===void 0||e.isTypeNode(U))&&(ge===void 0||e.isExpression(ge))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w=="object"&&e.isDotDotDotToken(w))&&(z===void 0||typeof z=="string"||e.isBindingName(z))&&(U===void 0||e.isQuestionToken(U))&&(ge===void 0||e.isTypeNode(ge))&&(pe===void 0||e.isExpression(pe))}}).deprecate({1:o}).finish(),ie.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(u,A,w,z,U,ge,pe){return Q(u,A,w,z,U,ge,pe)},1:function(u,A,w,z,U,ge,pe,He){return Q(u,e.concatenate(A,w),z,U,ge,pe,He)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6],pe=u[7];return pe===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="string"||e.isBindingName(w))&&(z===void 0||typeof z=="object"&&e.isQuestionToken(z))&&(U===void 0||e.isTypeNode(U))&&(ge===void 0||e.isExpression(ge))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6],pe=u[7];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w=="object"&&e.isDotDotDotToken(w))&&(z===void 0||typeof z=="string"||e.isBindingName(z))&&(U===void 0||e.isQuestionToken(U))&&(ge===void 0||e.isTypeNode(ge))&&(pe===void 0||e.isExpression(pe))}}).deprecate({1:o}).finish(),ie.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(u,A,w,z,U){return p(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return p(e.concatenate(u,A),w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="object"&&e.isQuestionOrExclamationToken(w))&&(z===void 0||e.isTypeNode(z))&&(U===void 0||e.isExpression(U))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w=="string"||e.isPropertyName(w))&&(z===void 0||e.isQuestionOrExclamationToken(z))&&(U===void 0||e.isTypeNode(U))&&(ge===void 0||e.isExpression(ge))}}).deprecate({1:o}).finish(),ie.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(u,A,w,z,U,ge){return D(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return D(u,e.concatenate(A,w),z,U,ge,pe)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="object"&&e.isQuestionOrExclamationToken(w))&&(z===void 0||e.isTypeNode(z))&&(U===void 0||e.isExpression(U))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w=="string"||e.isPropertyName(w))&&(z===void 0||e.isQuestionOrExclamationToken(z))&&(U===void 0||e.isTypeNode(U))&&(ge===void 0||e.isExpression(ge))}}).deprecate({1:o}).finish(),ie.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(u,A,w,z,U,ge,pe,He){return le(u,A,w,z,U,ge,pe,He)},1:function(u,A,w,z,U,ge,pe,He,Be){return le(e.concatenate(u,A),w,z,U,ge,pe,He,Be)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6],He=u[7],Be=u[8];return Be===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="string"||e.isPropertyName(w))&&(z===void 0||typeof z=="object"&&e.isQuestionToken(z))&&(U===void 0||e.isArray(U))&&(ge===void 0||!e.some(ge,e.isTypeParameterDeclaration))&&(pe===void 0||!e.isArray(pe))&&(He===void 0||e.isBlock(He))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6],He=u[7],Be=u[8];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w=="object"&&e.isAsteriskToken(w))&&(z===void 0||typeof z=="string"||e.isPropertyName(z))&&(U===void 0||!e.isArray(U))&&(ge===void 0||!e.some(ge,e.isParameter))&&(pe===void 0||e.isArray(pe))&&(He===void 0||e.isTypeNode(He))&&(Be===void 0||e.isBlock(Be))}}).deprecate({1:o}).finish(),ie.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(u,A,w,z,U,ge,pe,He,Be){return de(u,A,w,z,U,ge,pe,He,Be)},1:function(u,A,w,z,U,ge,pe,He,Be,Me){return de(u,e.concatenate(A,w),z,U,ge,pe,He,Be,Me)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6],pe=u[7],He=u[8],Be=u[9];return Be===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="string"||e.isPropertyName(w))&&(z===void 0||typeof z=="object"&&e.isQuestionToken(z))&&(U===void 0||e.isArray(U))&&(ge===void 0||!e.some(ge,e.isTypeParameterDeclaration))&&(pe===void 0||!e.isArray(pe))&&(He===void 0||e.isBlock(He))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6],pe=u[7],He=u[8],Be=u[9];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w=="object"&&e.isAsteriskToken(w))&&(z===void 0||typeof z=="string"||e.isPropertyName(z))&&(U===void 0||!e.isArray(U))&&(ge===void 0||!e.some(ge,e.isParameter))&&(pe===void 0||e.isArray(pe))&&(He===void 0||e.isTypeNode(He))&&(Be===void 0||e.isBlock(Be))}}).deprecate({1:o}).finish(),ie.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(u,A,w){return te(u,A,w)},1:function(u,A,w,z){return te(A,w,z)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return U===void 0&&(A===void 0||!e.some(A,e.isDecorator))&&(w===void 0||!e.some(w,e.isModifier))&&(z===void 0||!e.isArray(z))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return(A===void 0||!e.some(A,e.isModifier))&&(w===void 0||!e.some(w,e.isParameter))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isBlock(U))}}).deprecate({1:ne}).finish(),ie.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(u,A,w,z){return oe(u,A,w,z)},1:function(u,A,w,z,U){return oe(u,w,z,U)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return U===void 0&&(A===void 0||!e.some(A,e.isDecorator))&&(w===void 0||!e.some(w,e.isModifier))&&(z===void 0||!e.isArray(z))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return(A===void 0||!e.some(A,e.isModifier))&&(w===void 0||!e.some(w,e.isParameter))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isBlock(U))}}).deprecate({1:ne}).finish(),ie.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(u,A,w,z,U){return ae(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return ae(e.concatenate(u,A),w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.isBlock(U))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isTypeNode(U))&&(ge===void 0||e.isBlock(ge))}}).deprecate({1:o}).finish(),ie.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(u,A,w,z,U,ge){return E(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return E(u,e.concatenate(A,w),z,U,ge,pe)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.isBlock(U))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isTypeNode(U))&&(ge===void 0||e.isBlock(ge))}}).deprecate({1:o}).finish(),ie.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(u,A,w,z){return I(u,A,w,z)},1:function(u,A,w,z,U){return I(e.concatenate(u,A),w,z,U)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return U===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isBlock(U))}}).deprecate({1:o}).finish(),ie.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(u,A,w,z,U){return f(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return f(u,e.concatenate(A,w),z,U,ge)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5];return U===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isBlock(U))}}).deprecate({1:o}).finish(),ie.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(u,A,w){return m(u,A,w)},1:function(u,A,w,z){return m(A,w,z)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return U===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||e.every(w,e.isParameter))&&(z===void 0||!e.isArray(z))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.every(w,e.isModifier))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isTypeNode(U))}}).deprecate({1:ne}).finish(),ie.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(u,A,w,z){return y(u,A,w,z)},1:function(u,A,w,z,U){return y(u,w,z,U)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return U===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||e.every(w,e.isParameter))&&(z===void 0||!e.isArray(z))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.every(w,e.isModifier))&&(z===void 0||e.isArray(z))&&(U===void 0||e.isTypeNode(U))}}).deprecate({1:ne}).finish(),ie.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(u){return S(u)},1:function(u,A,w){return S(w)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2];return w===void 0&&z===void 0&&(A===void 0||!e.isArray(A))},1:function(u){var A=u[0],w=u[1],z=u[2];return(A===void 0||e.isArray(A))&&(w===void 0||e.isArray(A))&&(z===void 0||e.isBlock(z))}}).deprecate({1:K}).finish(),ie.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(u,A){return k(u,A)},1:function(u,A,w,z){return k(u,z)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3];return w===void 0&&z===void 0&&(A===void 0||!e.isArray(A))},1:function(u){var A=u[1],w=u[2],z=u[3];return(A===void 0||e.isArray(A))&&(w===void 0||e.isArray(A))&&(z===void 0||e.isBlock(z))}}).deprecate({1:K}).finish(),ie.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(u,A,w,z,U){return C(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return C(e.concatenate(u,A),w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||e.every(z,e.isHeritageClause))&&(U===void 0||e.every(U,e.isClassElement))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.every(z,e.isTypeParameterDeclaration))&&(U===void 0||e.every(U,e.isHeritageClause))&&(ge===void 0||e.isArray(ge))}}).deprecate({1:ne}).finish(),ie.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(u,A,w,z,U,ge){return me(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return me(u,e.concatenate(A,w),z,U,ge,pe)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||e.every(z,e.isHeritageClause))&&(U===void 0||e.every(U,e.isClassElement))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.every(z,e.isTypeParameterDeclaration))&&(U===void 0||e.every(U,e.isHeritageClause))&&(ge===void 0||e.isArray(ge))}}).deprecate({1:ne}).finish(),ie.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(u,A,w,z,U,ge,pe){return De(u,A,w,z,U,ge,pe)},1:function(u,A,w,z,U,ge,pe,He){return De(A,w,z,U,ge,pe,He)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6],He=u[7];return He===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||typeof w=="string"||e.isIdentifier(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.every(U,e.isParameter))&&(ge===void 0||!e.isArray(ge))&&(pe===void 0||e.isBlock(pe))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6],He=u[7];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w!="string"&&e.isAsteriskToken(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.every(U,e.isTypeParameterDeclaration))&&(ge===void 0||e.isArray(ge))&&(pe===void 0||e.isTypeNode(pe))&&(He===void 0||e.isBlock(He))}}).deprecate({1:ne}).finish(),ie.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(u,A,w,z,U,ge,pe,He){return X(u,A,w,z,U,ge,pe,He)},1:function(u,A,w,z,U,ge,pe,He,Be){return X(u,w,z,U,ge,pe,He,Be)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6],pe=u[7],He=u[8];return He===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isIdentifier(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.every(U,e.isParameter))&&(ge===void 0||!e.isArray(ge))&&(pe===void 0||e.isBlock(pe))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6],pe=u[7],He=u[8];return(A===void 0||e.isArray(A))&&(w===void 0||typeof w!="string"&&e.isAsteriskToken(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.every(U,e.isTypeParameterDeclaration))&&(ge===void 0||e.isArray(ge))&&(pe===void 0||e.isTypeNode(pe))&&(He===void 0||e.isBlock(He))}}).deprecate({1:ne}).finish(),ie.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(u,A,w,z,U){return M(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return M(e.concatenate(u,A),w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||e.every(z,e.isHeritageClause))&&(U===void 0||e.every(U,e.isClassElement))},1:function(){return!0}}).deprecate({1:o}).finish(),ie.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(u,A,w,z,U,ge){return H(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return H(u,e.concatenate(A,w),z,U,ge,pe)}}).bind({0:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return ge===void 0&&(A===void 0||!e.isArray(A))&&(w===void 0||e.isArray(w))&&(z===void 0||e.every(z,e.isHeritageClause))&&(U===void 0||e.every(U,e.isClassElement))},1:function(u){var A=u[2],w=u[3],z=u[4],U=u[5],ge=u[6];return(A===void 0||e.isArray(A))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.every(z,e.isTypeParameterDeclaration))&&(U===void 0||e.every(U,e.isHeritageClause))&&(ge===void 0||e.isArray(ge))}}).deprecate({1:o}).finish(),ie.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(u,A,w,z,U){return V(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return V(A,w,z,U,ge)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4],pe=u[5];return pe===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.every(U,e.isHeritageClause))&&(ge===void 0||e.every(ge,e.isTypeElement))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4],pe=u[5];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.every(U,e.isTypeParameterDeclaration))&&(ge===void 0||e.every(ge,e.isHeritageClause))&&(pe===void 0||e.every(pe,e.isTypeElement))}}).deprecate({1:ne}).finish(),ie.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(u,A,w,z,U,ge){return h(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return h(u,w,z,U,ge,pe)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6];return pe===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||e.every(U,e.isHeritageClause))&&(ge===void 0||e.every(ge,e.isTypeElement))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.every(U,e.isTypeParameterDeclaration))&&(ge===void 0||e.every(ge,e.isHeritageClause))&&(pe===void 0||e.every(pe,e.isTypeElement))}}).deprecate({1:ne}).finish(),ie.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(u,A,w,z){return F(u,A,w,z)},1:function(u,A,w,z,U){return F(A,w,z,U)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||!e.isArray(U))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.isArray(U))&&(ge===void 0||e.isTypeNode(ge))}}).deprecate({1:ne}).finish(),ie.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(u,A,w,z,U){return $(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return $(u,w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))&&(U===void 0||!e.isArray(U))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.isArray(U))&&(ge===void 0||e.isTypeNode(ge))}}).deprecate({1:ne}).finish(),ie.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(u,A,w){return L(u,A,w)},1:function(u,A,w,z){return L(A,w,z)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return U===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.isArray(U))}}).deprecate({1:ne}).finish(),ie.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(u,A,w,z){return P(u,A,w,z)},1:function(u,A,w,z,U){return P(u,w,z,U)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return U===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isArray(z))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||!e.isArray(z))&&(U===void 0||e.isArray(U))}}).deprecate({1:ne}).finish(),ie.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(u,A,w,z){return N(u,A,w,z)},1:function(u,A,w,z,U){return N(A,w,z,U)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&w!==void 0&&!e.isArray(w)&&(z===void 0||e.isModuleBody(z))&&(U===void 0||typeof U=="number")},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&z!==void 0&&e.isModuleName(z)&&(U===void 0||typeof U=="object")&&(ge===void 0||typeof ge=="number")}}).deprecate({1:ne}).finish(),ie.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(u,A,w,z){return J(u,A,w,z)},1:function(u,A,w,z,U){return J(u,w,z,U)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return U===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isModuleBody(z))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&z!==void 0&&e.isModuleName(z)&&(U===void 0||e.isModuleBody(U))}}).deprecate({1:ne}).finish(),ie.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(u,A,w,z){return q(u,A,w,z)},1:function(u,A,w,z,U){return q(A,w,z,U)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||typeof w=="boolean")&&typeof z!="boolean"&&typeof U!="string"},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||typeof z=="boolean")&&(typeof U=="string"||e.isIdentifier(U))&&ge!==void 0&&e.isModuleReference(ge)}}).deprecate({1:ne}).finish(),ie.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(u,A,w,z,U){return G(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return G(u,w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||typeof w=="boolean")&&typeof z!="boolean"&&typeof U!="string"},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||typeof z=="boolean")&&(typeof U=="string"||e.isIdentifier(U))&&ge!==void 0&&e.isModuleReference(ge)}}).deprecate({1:ne}).finish(),ie.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(u,A,w,z){return ye(u,A,w,z)},1:function(u,A,w,z,U){return ye(A,w,z,U)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&z!==void 0&&e.isExpression(z)&&(U===void 0||e.isAssertClause(U))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||e.isImportClause(z))&&U!==void 0&&e.isExpression(U)&&(ge===void 0||e.isAssertClause(ge))}}).deprecate({1:ne}).finish(),ie.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(u,A,w,z,U){return b(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return b(u,w,z,U,ge)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return ge===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||!e.isArray(w))&&(z===void 0||e.isExpression(z))&&(U===void 0||e.isAssertClause(U))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||e.isImportClause(z))&&U!==void 0&&e.isExpression(U)&&(ge===void 0||e.isAssertClause(ge))}}).deprecate({1:ne}).finish(),ie.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(u,A,w){return x(u,A,w)},1:function(u,A,w,z){return x(A,w,z)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return U===void 0&&(A===void 0||e.every(A,e.isModifier))&&(w===void 0||typeof w=="boolean")&&typeof z=="object"},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&(z===void 0||typeof z=="boolean")&&U!==void 0&&e.isExpression(U)}}).deprecate({1:ne}).finish(),ie.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(u,A,w){return T(u,A,w)},1:function(u,A,w,z){return T(u,w,z)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3];return z===void 0&&(A===void 0||e.every(A,e.isModifier))&&w!==void 0&&!e.isArray(w)},1:function(u){var A=u[1],w=u[2],z=u[3];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&z!==void 0&&e.isExpression(z)}}).deprecate({1:ne}).finish(),ie.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(u,A,w,z,U){return Z(u,A,w,z,U)},1:function(u,A,w,z,U,ge){return Z(A,w,z,U,ge)}}).bind({0:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4],pe=u[5];return pe===void 0&&(A===void 0||e.every(A,e.isModifier))&&typeof w=="boolean"&&typeof z!="boolean"&&(U===void 0||e.isExpression(U))&&(ge===void 0||e.isAssertClause(ge))},1:function(u){var A=u[0],w=u[1],z=u[2],U=u[3],ge=u[4],pe=u[5];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&typeof z=="boolean"&&(U===void 0||e.isNamedExportBindings(U))&&(ge===void 0||e.isExpression(ge))&&(pe===void 0||e.isAssertClause(pe))}}).deprecate({1:ne}).finish(),ie.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(u,A,w,z,U,ge){return B(u,A,w,z,U,ge)},1:function(u,A,w,z,U,ge,pe){return B(u,w,z,U,ge,pe)}}).bind({0:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6];return pe===void 0&&(A===void 0||e.every(A,e.isModifier))&&typeof w=="boolean"&&typeof z!="boolean"&&(U===void 0||e.isExpression(U))&&(ge===void 0||e.isAssertClause(ge))},1:function(u){var A=u[1],w=u[2],z=u[3],U=u[4],ge=u[5],pe=u[6];return(A===void 0||e.every(A,e.isDecorator))&&(w===void 0||e.isArray(w))&&typeof z=="boolean"&&(U===void 0||e.isNamedExportBindings(U))&&(ge===void 0||e.isExpression(ge))&&(pe===void 0||e.isAssertClause(pe))}}).deprecate({1:ne}).finish()}var O=e.createNodeFactory;e.createNodeFactory=function(ie,_e){var Q=O(ie,_e);return se(Q),Q},se(e.factory)})(fr||(fr={}));var fr;(function(e){typeof console!="undefined"&&(e.Debug.loggingHost={log:function(o,ne){switch(o){case e.LogLevel.Error:return console.error(ne);case e.LogLevel.Warning:return console.warn(ne);case e.LogLevel.Info:return console.log(ne);case e.LogLevel.Verbose:return console.log(ne)}}})})(fr||(fr={}))}}]);