This commit is contained in:
Dawid Drzewiecki committed 2026-11-05 09:24:33 +01:00
commit 5aedd7d6ec
44 files changed
+9096

No files matched your search

+499
View File
@@ -0,0 +1,499 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
}
@media (min-width:1100px) {
.outer {
margin-top: 3rem;
margin-bottom: 3rem;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
width: 100%;
height: 100%
}
.inner {
width: 100%;
margin: auto;
height: 100%
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0
}
h5 {
margin: 0;
font-weight: 500;
font-size: 1.25rem
}
h6 {
font-weight: 500;
font-size: 1rem
}
.card {
padding: 15px;
max-width: 1265px;
margin: auto;
min-height: 1100px;
background-color: #f8f8ff;
box-shadow: 0 0 20px #00000026, 0 0 20px #00000026
}
.card2 {
padding: 15px;
max-width: 1265px;
margin: auto auto 25px;
min-height: 1100px;
background-color: #f8f8ff;
box-shadow: 0 0 20px #00000026, 0 0 20px #00000026
}
.header {
display: flex;
justify-content: center
}
.alert {
display: flex;
justify-content: center;
margin-top: 5px
}
.label {
display: flex;
justify-content: center;
margin-bottom: 5px;
font-size: small
}
.doctorStatus {
margin-top: 20px;
display: flex;
flex-direction: column;
width: 100%
}
select {
height: 40px;
width: 100%;
outline-color: #add8e6;
color: #495057;
font-size: 1rem;
background-color: #fff;
border-radius: 5px;
padding: 5px;
border: 1px solid #ced4da
}
.select-validation {
height: 40px;
width: 100%;
outline-color: #add8e6;
color: #495057;
font-size: 1rem;
background-color: #fff;
border-radius: 5px;
padding: 5px;
border: 1px solid red
}
select:focus {
border-color: #add8e6
}
select:hover {
border-color: #add8e6;
box-shadow: #add8e6;
transition: .2s ease
}
.inputs {
display: flex;
flex-direction: row;
margin-top: 25px;
align-items: center
}
.input-normal {
height: 25px;
outline-color: #add8e6;
background-color: #fff;
border: 1px solid #ced4da;
border-radius: 5px;
font-size: 1rem;
color: #495057;
width: 100%;
min-width: 219px;
padding: 5px
}
.input-normal-email {
height: 25px;
outline-color: #add8e6;
background-color: #fff;
border: 1px solid #ced4da;
border-radius: 5px;
font-size: 1rem;
color: #495057;
min-width: 219px;
padding: 5px
}
.input-normal-validation {
height: 25px;
outline: none;
background-color: #fff;
border: 1px solid red;
border-radius: 5px;
font-size: 1rem;
color: #495057;
width: 100%;
min-width: 219px;
padding: 5px
}
.input-normal-validation-email {
height: 25px;
outline: none;
background-color: #fff;
border: 1px solid red;
border-radius: 5px;
font-size: 1rem;
color: #495057;
min-width: 219px;
padding: 5px
}
.input-normal:hover,
.input-normal-email:hover {
border-color: #add8e6;
box-shadow: #add8e6;
transition: .3s ease
}
.input-label,
.input-label-column {
height: max-content;
width: 100%;
font-size: small
}
.labelContainer {
display: flex;
text-align: center;
margin-bottom: 10px
}
.inputContainer {
margin-right: 20px
}
.information {
display: flex;
text-align: center;
justify-content: center;
align-items: center;
margin-top: 20px;
margin-left: 20px
}
.checkboxContainer-column {
margin-top: 20px;
display: flex;
flex-direction: column;
width: 100%
}
.checkboxContainer-row {
margin-top: 20px;
display: flex;
flex-direction: row-reverse;
width: 100%;
align-items: center;
justify-content: start
}
.input-label-row {
height: max-content;
width: 100%;
font-size: small;
justify-content: center;
align-items: center;
margin-left: 20px
}
.labelContainer-row {
display: flex;
text-align: center
}
}
@media (max-width:1100px) {
.input-normal-validation,
.input-normal-validation-email {
height: 25px;
outline: none;
background-color: #fff;
border: 1px solid red;
border-radius: 5px;
font-size: 1rem;
color: #495057;
min-width: 219px;
padding: 5px
}
.select-validation {
height: 40px;
outline-color: #add8e6;
color: #495057;
font-size: 1rem;
background-color: #fff;
border-radius: 5px;
padding: 5px;
border: 1px solid red
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 550
}
body {
background-color: #f8f8ff
}
.card,
.card2 {
padding: 15px
}
.header {
display: flex;
justify-content: center
}
.alert {
display: flex;
justify-content: center;
margin-top: 5px
}
.label {
display: flex;
justify-content: center;
margin-bottom: 5px;
font-size: small
}
.doctorStatus {
margin-top: 20px;
display: flex;
flex-direction: column;
margin-bottom: 15px
}
select {
height: 40px;
text-align: center;
outline-color: #add8e6;
color: #495057;
font-size: 1rem;
background-color: #fff;
border-radius: 5px;
padding: 5px;
border: 1px solid #ced4da
}
select:focus {
border-color: #add8e6
}
select:hover {
border-color: #add8e6;
box-shadow: #add8e6;
transition: .2s ease
}
.input-label-row {
height: max-content;
width: 100%;
font-size: small;
justify-content: center;
align-items: center;
margin-left: 20px
}
.labelContainer-row {
display: flex;
text-align: center
}
.checkboxContainer-row,
.checkboxContainer-column {
margin-top: 20px;
display: flex;
flex-direction: row-reverse;
width: 100%;
align-items: center;
justify-content: start;
margin-bottom: 20px;
font-size: small
}
.labelContainer {
display: flex;
text-align: center
}
.input-normal,
.input-normal-email {
height: 25px;
outline-color: #add8e6;
font-size: 1rem;
background-color: #fff;
border: 1px solid #ced4da;
border-radius: 5px;
color: #495057;
padding: 5px
}
.input-normal:hover,
.input-norma-email:hover {
border-color: #add8e6;
box-shadow: #add8e6;
transition: .3s ease
}
.input-label {
height: max-content;
width: 100%;
font-size: small;
margin-bottom: 5px
}
.inputContainer {
margin-top: 15px;
display: flex;
flex-direction: column
}
.header,
.information {
font-size: large
}
.input-label-column {
height: max-content;
width: 100%;
font-size: small;
margin-left: 20px
}
}
.input-label-information {
height: max-content;
width: 100%;
font-size: small;
justify-content: center;
align-items: center;
margin-left: 10px;
margin-top: 10px;
margin-right: 10px
}
.button {
background-color: #87cefa;
cursor: pointer;
border: none;
border-radius: 5px;
width: 120px;
height: 35px;
font-weight: 500
}
.buttondiv {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: 50px
}
.payment {
display: flex;
justify-content: center;
align-items: center;
text-align: center
}
.button-space {
display: flex;
justify-content: center;
align-items: center
}
.button:hover {
background-color: #67b3cc;
color: #fff;
transition: .3s ease
}
.descryption {
display: flex;
justify-content: center;
text-align: center;
align-items: center;
flex-direction: column
}
.header2 {
text-align: center;
font-size: 24px;
margin-bottom: 20px
}
.text-aligin-center {
text-align: center
}
.list {
display: flex;
flex-direction: column;
margin-top: 15px;
margin-bottom: 15px
}
.margin {
margin-top: 5px;
margin-bottom: 5px
}
.header-space {
margin-top: 30px;
margin-bottom: 20px
}
.red {
color: red
}
.marginTop {
margin-top: 60px
}
+493
View File
@@ -0,0 +1,493 @@
(function(){const Q=document.createElement("link").relList;if(Q&&Q.supports&&Q.supports("modulepreload"))return;for(const Ae of document.querySelectorAll('link[rel="modulepreload"]'))xe(Ae);new MutationObserver(Ae=>{for(const Ze of Ae)if(Ze.type==="childList")for(const wt of Ze.addedNodes)wt.tagName==="LINK"&&wt.rel==="modulepreload"&&xe(wt)}).observe(document,{childList:!0,subtree:!0});function Y(Ae){const Ze={};return Ae.integrity&&(Ze.integrity=Ae.integrity),Ae.referrerPolicy&&(Ze.referrerPolicy=Ae.referrerPolicy),Ae.crossOrigin==="use-credentials"?Ze.credentials="include":Ae.crossOrigin==="anonymous"?Ze.credentials="omit":Ze.credentials="same-origin",Ze}function xe(Ae){if(Ae.ep)return;Ae.ep=!0;const Ze=Y(Ae);fetch(Ae.href,Ze)}})();var _9e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mmt(ue){return ue&&ue.__esModule&&Object.prototype.hasOwnProperty.call(ue,"default")?ue.default:ue}function Rmt(ue){if(Object.prototype.hasOwnProperty.call(ue,"__esModule"))return ue;var Q=ue.default;if(typeof Q=="function"){var Y=function xe(){var Ae=!1;try{Ae=this instanceof xe}catch{}return Ae?Reflect.construct(Q,arguments,this.constructor):Q.apply(this,arguments)};Y.prototype=Q.prototype}else Y={};return Object.defineProperty(Y,"__esModule",{value:!0}),Object.keys(ue).forEach(function(xe){var Ae=Object.getOwnPropertyDescriptor(ue,xe);Object.defineProperty(Y,xe,Ae.get?Ae:{enumerable:!0,get:function(){return ue[xe]}})}),Y}var Sye={exports:{}},jU={},Tye={exports:{}},gu={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var f9e;function jmt(){if(f9e)return gu;f9e=1;var ue=Symbol.for("react.element"),Q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),Ae=Symbol.for("react.profiler"),Ze=Symbol.for("react.provider"),wt=Symbol.for("react.context"),wn=Symbol.for("react.forward_ref"),sr=Symbol.for("react.suspense"),dr=Symbol.for("react.memo"),cr=Symbol.for("react.lazy"),Je=Symbol.iterator;function Ss(an){return an===null||typeof an!="object"?null:(an=Je&&an[Je]||an["@@iterator"],typeof an=="function"?an:null)}var Kt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vt=Object.assign,$i={};function zr(an,ji,so){this.props=an,this.context=ji,this.refs=$i,this.updater=so||Kt}zr.prototype.isReactComponent={},zr.prototype.setState=function(an,ji){if(typeof an!="object"&&typeof an!="function"&&an!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,an,ji,"setState")},zr.prototype.forceUpdate=function(an){this.updater.enqueueForceUpdate(this,an,"forceUpdate")};function xs(){}xs.prototype=zr.prototype;function Ro(an,ji,so){this.props=an,this.context=ji,this.refs=$i,this.updater=so||Kt}var Ko=Ro.prototype=new xs;Ko.constructor=Ro,vt(Ko,zr.prototype),Ko.isPureReactComponent=!0;var Fc=Array.isArray,Xr=Object.prototype.hasOwnProperty,fn={current:null},Io={key:!0,ref:!0,__self:!0,__source:!0};function Ea(an,ji,so){var Sl,Lc={},vi=null,Yc=null;if(ji!=null)for(Sl in ji.ref!==void 0&&(Yc=ji.ref),ji.key!==void 0&&(vi=""+ji.key),ji)Xr.call(ji,Sl)&&!Io.hasOwnProperty(Sl)&&(Lc[Sl]=ji[Sl]);var Pu=arguments.length-2;if(Pu===1)Lc.children=so;else if(1<Pu){for(var Zc=Array(Pu),Ng=0;Ng<Pu;Ng++)Zc[Ng]=arguments[Ng+2];Lc.children=Zc}if(an&&an.defaultProps)for(Sl in Pu=an.defaultProps,Pu)Lc[Sl]===void 0&&(Lc[Sl]=Pu[Sl]);return{$$typeof:ue,type:an,key:vi,ref:Yc,props:Lc,_owner:fn.current}}function Zl(an,ji){return{$$typeof:ue,type:an.type,key:ji,ref:an.ref,props:an.props,_owner:an._owner}}function Ri(an){return typeof an=="object"&&an!==null&&an.$$typeof===ue}function n_(an){var ji={"=":"=0",":":"=2"};return"$"+an.replace(/[=:]/g,function(so){return ji[so]})}var Eu=/\/+/g;function Cr(an,ji){return typeof an=="object"&&an!==null&&an.key!=null?n_(""+an.key):ji.toString(36)}function Op(an,ji,so,Sl,Lc){var vi=typeof an;(vi==="undefined"||vi==="boolean")&&(an=null);var Yc=!1;if(an===null)Yc=!0;else switch(vi){case"string":case"number":Yc=!0;break;case"object":switch(an.$$typeof){case ue:case Q:Yc=!0}}if(Yc)return Yc=an,Lc=Lc(Yc),an=Sl===""?"."+Cr(Yc,0):Sl,Fc(Lc)?(so="",an!=null&&(so=an.replace(Eu,"$&/")+"/"),Op(Lc,ji,so,"",function(Ng){return Ng})):Lc!=null&&(Ri(Lc)&&(Lc=Zl(Lc,so+(!Lc.key||Yc&&Yc.key===Lc.key?"":(""+Lc.key).replace(Eu,"$&/")+"/")+an)),ji.push(Lc)),1;if(Yc=0,Sl=Sl===""?".":Sl+":",Fc(an))for(var Pu=0;Pu<an.length;Pu++){vi=an[Pu];var Zc=Sl+Cr(vi,Pu);Yc+=Op(vi,ji,so,Zc,Lc)}else if(Zc=Ss(an),typeof Zc=="function")for(an=Zc.call(an),Pu=0;!(vi=an.next()).done;)vi=vi.value,Zc=Sl+Cr(vi,Pu++),Yc+=Op(vi,ji,so,Zc,Lc);else if(vi==="object")throw ji=String(an),Error("Objects are not valid as a React child (found: "+(ji==="[object Object]"?"object with keys {"+Object.keys(an).join(", ")+"}":ji)+"). If you meant to render a collection of children, use an array instead.");return Yc}function Du(an,ji,so){if(an==null)return an;var Sl=[],Lc=0;return Op(an,Sl,"","",function(vi){return ji.call(so,vi,Lc++)}),Sl}function Sn(an){if(an._status===-1){var ji=an._result;ji=ji(),ji.then(function(so){(an._status===0||an._status===-1)&&(an._status=1,an._result=so)},function(so){(an._status===0||an._status===-1)&&(an._status=2,an._result=so)}),an._status===-1&&(an._status=0,an._result=ji)}if(an._status===1)return an._result.default;throw an._result}var $u={current:null},Li={transition:null},Fa={ReactCurrentDispatcher:$u,ReactCurrentBatchConfig:Li,ReactCurrentOwner:fn};return gu.Children={map:Du,forEach:function(an,ji,so){Du(an,function(){ji.apply(this,arguments)},so)},count:function(an){var ji=0;return Du(an,function(){ji++}),ji},toArray:function(an){return Du(an,function(ji){return ji})||[]},only:function(an){if(!Ri(an))throw Error("React.Children.only expected to receive a single React element child.");return an}},gu.Component=zr,gu.Fragment=Y,gu.Profiler=Ae,gu.PureComponent=Ro,gu.StrictMode=xe,gu.Suspense=sr,gu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fa,gu.cloneElement=function(an,ji,so){if(an==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+an+".");var Sl=vt({},an.props),Lc=an.key,vi=an.ref,Yc=an._owner;if(ji!=null){if(ji.ref!==void 0&&(vi=ji.ref,Yc=fn.current),ji.key!==void 0&&(Lc=""+ji.key),an.type&&an.type.defaultProps)var Pu=an.type.defaultProps;for(Zc in ji)Xr.call(ji,Zc)&&!Io.hasOwnProperty(Zc)&&(Sl[Zc]=ji[Zc]===void 0&&Pu!==void 0?Pu[Zc]:ji[Zc])}var Zc=arguments.lengthLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var d9e;function zmt(){if(d9e)return jU;d9e=1;var ue=Gye(),Q=Symbol.for("react.element"),Y=Symbol.for("react.fragment"),xe=Object.prototype.hasOwnProperty,Ae=ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0};function wt(wn,sr,dr){var cr,Je={},Ss=null,Kt=null;dr!==void 0&&(Ss=""+dr),sr.key!==void 0&&(Ss=""+sr.key),sr.ref!==void 0&&(Kt=sr.ref);for(cr in sr)xe.call(sr,cr)&&!Ze.hasOwnProperty(cr)&&(Je[cr]=sr[cr]);if(wn&&wn.defaultProps)for(cr in sr=wn.defaultProps,sr)Je[cr]===void 0&&(Je[cr]=sr[cr]);return{$$typeof:Q,type:wn,key:Ss,ref:Kt,props:Je,_owner:Ae.current}}return jU.Fragment=Y,jU.jsx=wt,jU.jsxs=wt,jU}var m9e;function Bmt(){return m9e||(m9e=1,Sye.exports=zmt()),Sye.exports}var pr=Bmt(),uk=Gye(),ote={},xye={exports:{}},qv={},kye={exports:{}},Cye={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var g9e;function Jmt(){return g9e||(g9e=1,(function(ue){function Q(Li,Fa){var an=Li.length;Li.push(Fa);e:for(;0<an;){var ji=an-1>>>1,so=Li[ji];if(0<Ae(so,Fa))Li[ji]=Fa,Li[an]=so,an=ji;else break e}}function Y(Li){return Li.length===0?null:Li[0]}function xe(Li){if(Li.length===0)return null;var Fa=Li[0],an=Li.pop();if(an!==Fa){Li[0]=an;e:for(var ji=0,so=Li.length,Sl=so>>>1;ji<Sl;){var Lc=2*(ji+1)-1,vi=Li[Lc],Yc=Lc+1,Pu=Li[Yc];if(0>Ae(vi,an))Yc<so&&0>Ae(Pu,vi)?(Li[ji]=Pu,Li[Yc]=an,ji=Yc):(Li[ji]=vi,Li[Lc]=an,ji=Lc);else if(Yc<so&&0>Ae(Pu,an))Li[ji]=Pu,Li[Yc]=an,ji=Yc;else break e}}return Fa}function Ae(Li,Fa){var an=Li.sortIndex-Fa.sortIndex;return an!==0?an:Li.id-Fa.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Ze=performance;ue.unstable_now=function(){return Ze.now()}}else{var wt=Date,wn=wt.now();ue.unstable_now=function(){return wt.now()-wn}}var sr=[],dr=[],cr=1,Je=null,Ss=3,Kt=!1,vt=!1,$i=!1,zr=typeof setTimeout=="function"?setTimeout:null,xs=typeof clearTimeout=="function"?clearTimeout:null,Ro=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ko(Li){for(var Fa=Y(dr);Fa!==null;){if(Fa.callback===null)xe(dr);else if(Fa.startTime<=Li)xe(dr),Fa.sortIndex=Fa.expirationTime,Q(sr,Fa);else break;Fa=Y(dr)}}function Fc(Li){if($i=!1,Ko(Li),!vt)if(Y(sr)!==null)vt=!0,Sn(Xr);else{var Fa=Y(dr);Fa!==null&&$u(Fc,Fa.startTime-Li)}}function Xr(Li,Fa){vt=!1,$i&&($i=!1,xs(Ea),Ea=-1),Kt=!0;var an=Ss;try{for(Ko(Fa),Je=Y(sr);Je!==null&&(!(Je.expirationTime>Fa)||Li&&!n_());){var ji=Je.callback;if(typeof ji=="function"){Je.callback=null,Ss=Je.priorityLevel;var so=ji(Je.expirationTime<=Fa);Fa=ue.unstable_now(),typeof so=="function"?Je.callback=so:Je===Y(sr)&&xe(sr),Ko(Fa)}else xe(sr);Je=Y(sr)}if(Je!==null)var Sl=!0;else{var Lc=Y(dr);Lc!==null&&$u(Fc,Lc.startTime-Fa),Sl=!1}return Sl}finally{Je=null,Ss=an,Kt=!1}}var fn=!1,Io=null,Ea=-1,Zl=5,Ri=-1;function n_(){return!(ue.unstable_now()-Ri<Zl)}function Eu(){if(Io!==null){var Li=ue.unstable_now();Ri=Li;var Fa=!0;try{Fa=Io(!0,Li)}finally{Fa?Cr():(fn=!1,Io=null)}}else fn=!1}var Cr;if(typeof Ro=="function")Cr=function(){Ro(Eu)};else if(typeof MessageChannel<"u"){var Op=new MessageChannel,Du=Op.port2;Op.port1.onmessage=Eu,Cr=function(){Du.postMessage(null)}}else Cr=function(){zr(Eu,0)};function Sn(Li){Io=Li,fn||(fn=!0,Cr())}function $u(Li,Fa){Ea=zr(function(){Li(ue.unstable_now())},Fa)}ue.unstable_IdlePriority=5,ue.unstable_ImmediatePriority=1,ue.unstable_LowPriority=4,ue.unstable_NormalPriority=3,ue.unstable_Profiling=null,ue.unstable_UserBlockingPriority=2,ue.unstable_cancelCallback=function(Li){Li.callback=null},ue.unstable_continueExecution=function(){vt||Kt||(vt=!0,Sn(Xr))},ue.unstable_forceFrameRate=function(Li){0>Li||125<Li?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Zl=0<Li?Math.floor(1e3/Li):5},ue.unstable_getCurrentPriorityLevel=function(){return Ss},ue.unstable_getFirstCallbackNode=function(){return Y(sr)},ue.unstable_next=function(Li){switch(Ss){case 1:case 2:case 3:var Fa=3;break;default:Fa=Ss}var an=Ss;Ss=Fa;try{return Li()}finally{Ss=an}},ue.unstable_pauseExecution=function(){},ue.unstable_requestPaint=function(){},ue.unstable_runWithPriority=function(Li,Fa){switch(Li){case 1:case 2:case 3:case 4:case 5:break;default:Li=3}var an=Ss;Ss=Li;try{return Fa()}finally{Ss=an}},ue.unstable_scheduleCallback=function(Li,Fa,an){var ji=ue.unstable_now();switch(typeof an=="object"&&an!==null?(an=an.delay,an=typeof an=="number"&&0<an?ji+an:ji):an=ji,Li){case 1:var so=-1;break;case 2:so=250;break;case 5:so=1073741823;break;case 4:so=1e4;break;default:so=5e3}return so=an+so,Li={id:cr++,callback:Fa,priorityLevel:Li,startTime:an,expirationTime:so,sortIndex:-1},an>ji?(Li.sortIndex=an,Q(dr,Li),Y(sr)===null&&Li===Y(dr)&&($i?(xs(Ea),Ea=-1):$i=!0,$u(Fc,an-ji))):(Li.sortIndex=so,Q(sr,Li),vt||Kt||(vt=!0,Sn(Xr))),Li},ue.unstable_shouldYield=n_,ue.unstable_wrapCallback=function(Li){var Fa=Ss;return function(){var an=Ss;Ss=Fa;try{return Li.apply(this,arguments)}finally{Ss=an}}}})(Cye)),Cye}var h9e;function Wmt(){return h9e||(h9e=1,kye.exports=Jmt()),kye.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var y9e;function Umt(){if(y9e)return qv;y9e=1;var ue=Gye(),Q=Wmt();function Y(y){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+y,N=1;N<arguments.length;N++)b+="&args[]="+encodeURIComponent(arguments[N]);return"Minified React error #"+y+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xe=new Set,Ae={};function Ze(y,b){wt(y,b),wt(y+"Capture",b)}function wt(y,b){for(Ae[y]=b,y=0;y<b.length;y++)xe.add(b[y])}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sr=Object.prototype.hasOwnProperty,dr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cr={},Je={};function Ss(y){return sr.call(Je,y)?!0:sr.call(cr,y)?!1:dr.test(y)?Je[y]=!0:(cr[y]=!0,!1)}function Kt(y,b,N,G){if(N!==null&&N.type===0)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":return G?!1:N!==null?!N.acceptsBooleans:(y=y.toLowerCase().slice(0,5),y!=="data-"&&y!=="aria-");default:return!1}}function vt(y,b,N,G){if(b===null||typeof b>"u"||Kt(y,b,N,G))return!0;if(G)return!1;if(N!==null)switch(N.type){case 3:return!b;case 4:return b===!1;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function $i(y,b,N,G,ye,Me,_t){this.acceptsBooleans=b===2||b===3||b===4,this.attributeName=G,this.attributeNamespace=ye,this.mustUseProperty=N,this.propertyName=y,this.type=b,this.sanitizeURL=Me,this.removeEmptyString=_t}var zr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(y){zr[y]=new $i(y,0,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var b=y[0];zr[b]=new $i(b,1,!1,y[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){zr[y]=new $i(y,2,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){zr[y]=new $i(y,2,!1,y,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(y){zr[y]=new $i(y,3,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){zr[y]=new $i(y,3,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){zr[y]=new $i(y,4,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){zr[y]=new $i(y,6,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){zr[y]=new $i(y,5,!1,y.toLowerCase(),null,!1,!1)});var xs=/[\-:]([a-z])/g;function Ro(y){return y[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(y){var b=y.replace(xs,Ro);zr[b]=new $i(b,1,!1,y,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(y){var b=y.replace(xs,Ro);zr[b]=new $i(b,1,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var b=y.replace(xs,Ro);zr[b]=new $i(b,1,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){zr[y]=new $i(y,1,!1,y.toLowerCase(),null,!1,!1)}),zr.xlinkHref=new $i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){zr[y]=new $i(y,1,!1,y.toLowerCase(),null,!0,!0)});function Ko(y,b,N,G){var ye=zr.hasOwnProperty(b)?zr[b]:null; Line truncated
`+ji+y}var Sl=!1;function Lc(y,b){if(!y||Sl)return"";Sl=!0;var N=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error()},Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(Qr){var G=Qr}Reflect.construct(y,[],b)}else{try{b.call()}catch(Qr){G=Qr}y.call(b.prototype)}else{try{throw Error()}catch(Qr){G=Qr}y()}}catch(Qr){if(Qr&&G&&typeof Qr.stack=="string"){for(var ye=Qr.stack.split(`
`),Me=G.stack.split(`
`),_t=ye.length-1,$t=Me.length-1;1<=_t&&0<=$t&&ye[_t]!==Me[$t];)$t--;for(;1<=_t&&0<=$t;_t--,$t--)if(ye[_t]!==Me[$t]){if(_t!==1||$t!==1)do if(_t--,$t--,0>$t||ye[_t]!==Me[$t]){var Fn=`
`+ye[_t].replace(" at new "," at ");return y.displayName&&Fn.includes("<anonymous>")&&(Fn=Fn.replace("<anonymous>",y.displayName)),Fn}while(1<=_t&&0<=$t);break}}}finally{Sl=!1,Error.prepareStackTrace=N}return(y=y?y.displayName||y.name:"")?so(y):""}function vi(y){switch(y.tag){case 5:return so(y.type);case 16:return so("Lazy");case 13:return so("Suspense");case 19:return so("SuspenseList");case 0:case 2:case 15:return y=Lc(y.type,!1),y;case 11:return y=Lc(y.type.render,!1),y;case 1:return y=Lc(y.type,!0),y;default:return""}}function Yc(y){if(y==null)return null;if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case Io:return"Fragment";case fn:return"Portal";case Zl:return"Profiler";case Ea:return"StrictMode";case Cr:return"Suspense";case Op:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case n_:return(y.displayName||"Context")+".Consumer";case Ri:return(y._context.displayName||"Context")+".Provider";case Eu:var b=y.render;return y=y.displayName,y||(y=b.displayName||b.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case Du:return b=y.displayName||null,b!==null?b:Yc(y.type)||"Memo";case Sn:b=y._payload,y=y._init;try{return Yc(y(b))}catch{}}return null}function Pu(y){var b=y.type;switch(y.tag){case 24:return"Cache";case 9:return(b.displayName||"Context")+".Consumer";case 10:return(b._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return y=b.render,y=y.displayName||y.name||"",b.displayName||(y!==""?"ForwardRef("+y+")":"ForwardRef");case 7:return"Fragment";case 5:return b;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yc(b);case 8:return b===Ea?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b}return null}function Zc(y){switch(typeof y){case"boolean":case"number":case"string":case"undefined":return y;case"object":return y;default:return""}}function Ng(y){var b=y.type;return(y=y.nodeName)&&y.toLowerCase()==="input"&&(b==="checkbox"||b==="radio")}function $I(y){var b=Ng(y)?"checked":"value",N=Object.getOwnPropertyDescriptor(y.constructor.prototype,b),G=""+y[b];if(!y.hasOwnProperty(b)&&typeof N<"u"&&typeof N.get=="function"&&typeof N.set=="function"){var ye=N.get,Me=N.set;return Object.defineProperty(y,b,{configurable:!0,get:function(){return ye.call(this)},set:function(_t){G=""+_t,Me.call(this,_t)}}),Object.defineProperty(y,b,{enumerable:N.enumerable}),{getValue:function(){return G},setValue:function(_t){G=""+_t},stopTracking:function(){y._valueTracker=null,delete y[b]}}}}function O4(y){y._valueTracker||(y._valueTracker=$I(y))}function bt(y){if(!y)return!1;var b=y._valueTracker;if(!b)return!0;var N=b.getValue(),G="";return y&&(G=Ng(y)?y.checked?"true":"false":y.value),y=G,y!==N?(b.setValue(y),!0):!1}function ww(y){if(y=y||(typeof document<"u"?document:void 0),typeof y>"u")return null;try{return y.activeElement||y.body}catch{return y.body}}function fs(y,b){var N=b.checked;return an({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:N??y._wrapperState.initialChecked})}function GU(y,b){var N=b.defaultValue==null?"":b.defaultValue,G=b.checked!=null?b.checked:b.defaultChecked;N=Zc(b.value!=null?b.value:N),y._wrapperState={initialChecked:G,initialValue:N,controlled:b.type==="checkbox"||b.type==="radio"?b.checked!=null:b.value!=null}}function F4(y,b){b=b.checked,b!=null&&Ko(y,"checked",b,!1)}function YL(y,b){F4(y,b);var N=Zc(b.value),G=b.type;if(N!=null)G==="number"?(N===0&&y.value===""||y.value!=N)&&(y.value=""+N):y.value!==""+N&&(y.value=""+N);else if(G==="submit"||G==="reset"){y.removeAttribute("value");return}b.hasOwnProperty("value")?Fy(y,b.type,N):b.hasOwnProperty("defaultValue")&&Fy(y,b.type,Zc(b.defaultValue)),b.checked==null&&b.defaultChecked!=null&&(y.defaultChecked=!!b.defaultChecked)}function QU(y,b,N){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var G=b.type;if(!(G!=="submit"&&G!=="reset"||b.value!==void 0&&b.value!==null))return;b=""+y._wrapperState.initialValue,N||b===y.value||(y.value=b),y.defaultValue=b}N=y.name,N!==""&&(y.name=""),y.defaultChecked=!!y._wrapperState.initialChecked,N!==""&&(y.name=N)}function Fy(y,b,N){(b!=="number"||ww(y.ownerDocument)!==y)&&(N==null?y.defaultValue=""+y._wrapperState.initialValue:y.defaultValue!==""+N&&(y.defaultValue=""+N))}var q3=Array.isArray;function _T(y,b,N,G){if(y=y.options,b){b={};for(var ye=0;ye<N.length;ye++)b["$"+N[ye]]=!0;for(N=0;N<y.length;N++)ye=b.hasOwnProperty("$"+y[N].value),y[N].selected!==ye&&(y[N].selected=ye),ye&&G&&(y[N].defaultSelected=!0)}else{for(N=""+Zc(N),b=null,ye=0;ye<y.length;ye++){if(y[ye].value===N){y[ye].selected=!0,G&&(y[ye].defaultSelected=!0);return}b!==null||y[ye].disabled||(b=y[ye])}b!==null&&(b.select Line truncated
`).replace(vM,"")}function X4(y,b,N){if(b=k7(b),k7(y)!==b&&N)throw Error(Y(425))}function Y4(){}var zw=null,L1=null;function C2(y,b){return y==="textarea"||y==="noscript"||typeof b.children=="string"||typeof b.children=="number"||typeof b.dangerouslySetInnerHTML=="object"&&b.dangerouslySetInnerHTML!==null&&b.dangerouslySetInnerHTML.__html!=null}var vN=typeof setTimeout=="function"?setTimeout:void 0,bM=typeof clearTimeout=="function"?clearTimeout:void 0,C7=typeof Promise=="function"?Promise:void 0,SM=typeof queueMicrotask=="function"?queueMicrotask:typeof C7<"u"?function(y){return C7.resolve(null).then(y).catch(Dk)}:vN;function Dk(y){setTimeout(function(){throw y})}function bN(y,b){var N=b,G=0;do{var ye=N.nextSibling;if(y.removeChild(N),ye&&ye.nodeType===8)if(N=ye.data,N==="/$"){if(G===0){y.removeChild(ye),J4(b);return}G--}else N!=="$"&&N!=="$?"&&N!=="$!"||G++;N=ye}while(N);J4(b)}function w2(y){for(;y!=null;y=y.nextSibling){var b=y.nodeType;if(b===1||b===3)break;if(b===8){if(b=y.data,b==="$"||b==="$!"||b==="$?")break;if(b==="/$")return null}}return y}function w7(y){y=y.previousSibling;for(var b=0;y;){if(y.nodeType===8){var N=y.data;if(N==="$"||N==="$!"||N==="$?"){if(b===0)return y;b--}else N==="/$"&&b++}y=y.previousSibling}return null}var yT=Math.random().toString(36).slice(2),M1="__reactFiber$"+yT,Bw="__reactProps$"+yT,nb="__reactContainer$"+yT,SN="__reactEvents$"+yT,TM="__reactListeners$"+yT,E7="__reactHandles$"+yT;function E2(y){var b=y[M1];if(b)return b;for(var N=y.parentNode;N;){if(b=N[nb]||N[M1]){if(N=b.alternate,b.child!==null||N!==null&&N.child!==null)for(y=w7(y);y!==null;){if(N=y[M1])return N;y=w7(y)}return b}y=N,N=y.parentNode}return null}function Pk(y){return y=y[M1]||y[nb],!y||y.tag!==5&&y.tag!==6&&y.tag!==13&&y.tag!==3?null:y}function Nk(y){if(y.tag===5||y.tag===6)return y.stateNode;throw Error(Y(33))}function Ml(y){return y[Bw]||null}var TN=[],Ak=-1;function D2(y){return{current:y}}function $_(y){0>Ak||(y.current=TN[Ak],TN[Ak]=null,Ak--)}function A_(y,b){Ak++,TN[Ak]=y.current,y.current=b}var P2={},Cd=D2(P2),Og=D2(!1),My=P2;function Jw(y,b){var N=y.type.contextTypes;if(!N)return P2;var G=y.stateNode;if(G&&G.__reactInternalMemoizedUnmaskedChildContext===b)return G.__reactInternalMemoizedMaskedChildContext;var ye={},Me;for(Me in N)ye[Me]=b[Me];return G&&(y=y.stateNode,y.__reactInternalMemoizedUnmaskedChildContext=b,y.__reactInternalMemoizedMaskedChildContext=ye),ye}function Fg(y){return y=y.childContextTypes,y!=null}function Ww(){$_(Og),$_(Cd)}function df(y,b,N){if(Cd.current!==P2)throw Error(Y(168));A_(Cd,b),A_(Og,N)}function N2(y,b,N){var G=y.stateNode;if(b=b.childContextTypes,typeof G.getChildContext!="function")return N;G=G.getChildContext();for(var ye in G)if(!(ye in b))throw Error(Y(108,Pu(y)||"Unknown",ye));return an({},N,G)}function Z4(y){return y=(y=y.stateNode)&&y.__reactInternalMemoizedMergedChildContext||P2,My=Cd.current,A_(Cd,y),A_(Og,Og.current),!0}function xN(y,b,N){var G=y.stateNode;if(!G)throw Error(Y(169));N?(y=N2(y,b,My),G.__reactInternalMemoizedMergedChildContext=y,$_(Og),$_(Cd),A_(Cd,y)):$_(Og),A_(Og,N)}var R1=null,Ik=!1,xM=!1;function kM(y){R1===null?R1=[y]:R1.push(y)}function Wte(y){Ik=!0,kM(y)}function Ok(){if(!xM&&R1!==null){xM=!0;var y=0,b=aa;try{var N=R1;for(aa=1;y<N.length;y++){var G=N[y];do G=G(!0);while(G!==null)}R1=null,Ik=!1}catch(ye){throw R1!==null&&(R1=R1.slice(y+1)),M4(gk,Ok),ye}finally{aa=b,xM=!1}}return null}var K4=[],Uw=0,D7=null,Vw=0,Lg=[],Ry=0,j1=null,rb=1,vT="";function bT(y,b){K4[Uw++]=Vw,K4[Uw++]=D7,D7=y,Vw=b}function tV(y,b,N){Lg[Ry++]=rb,Lg[Ry++]=vT,Lg[Ry++]=j1,j1=y;var G=rb;y=vT;var ye=32-Ha(G)-1;G&=~(1<<ye),N+=1;var Me=32-Ha(b)+ye;if(30<Me){var _t=ye-ye%5;Me=(G&(1<<_t)-1).toString(32),G>>=_t,ye-=_t,rb=1<<32-Ha(b)+ye|N<<ye|G,vT=Me+y}else rb=1<<Me|N<<ye|G,vT=y}function CM(y){y.return!==null&&(bT(y,1),tV(y,1,0))}function P7(y){for(;y===D7;)D7=K4[--Uw],K4[Uw]=null,Vw=K4[--Uw],K4[Uw]=null;for(;y===j1;)j1=Lg[--Ry],Lg[Ry]=null,vT=Lg[--Ry],Lg[Ry]=null,rb=Lg[--Ry],Lg[Ry]=null}var M0=null,Hh=null,mf=!1,Mc=null;function wM(y,b){var N=Em(5,null,null,0);N.elementType="DELETED",N.stateNode=b,N.return=y,b=y.deletions,b===null?(y.deletions=[N],y.flags|=16):b.push(N)}function ac(y,b){switch(y.tag){case 5:var N=y.type;return b=b.nodeType!==1||N.toLowerCase()!==b.nodeName.toLowerCase()?null:b,b!==null?(y.stateNode=b,M0=y,Hh=w2(b.firstChild),!0):!1;case 6:return b=y.pendingProps===""||b.nodeType!==3?null:b,b!==null?(y.stateNode=b,M0=y,Hh=null,!0):!1;case 13:return b=b.nodeType!==8?null:b,b!==null?(N=j1!==null?{id:rb,overflow:vT}:null,y.memoizedState={dehydrated:b,treeContext:N,retryLane:1073741824},N=Em(18,null,null,0),N.stateNode=b,N.return=y,y.child=N,M0=y,Hh=null,!0):!1;default:return!1}}function qw(y){return(y.mode&1)!==0&&(y.flags&128)===0}function N7(y){if(mf){var b=Hh;if(b){var N=b;if(!ac(y,b)){if(qw(y))throw Error(Y(418));b=w2(N.nextSibling);var G=M0;b&&ac(y,b)?wM(G,N):(y.flags=y.flags&-4097|2,mf=!1,M0=y)}}else{if(qw(y))throw Error(Y(418));y.flags=y.flags&-4097 Line truncated
Error generating stack: `+Me.message+`
`+Me.stack}return{value:y,source:b,stack:ye,digest:null}}function IN(y,b,N){return{value:y,source:null,stack:N??null,digest:b??null}}function J7(y,b){try{console.error(b.value)}catch(N){setTimeout(function(){throw N})}}var Bg=typeof WeakMap=="function"?WeakMap:Map;function R0(y,b,N){N=wd(-1,N),N.tag=3,N.payload={element:null};var G=b.value;return N.callback=function(){WN||(WN=!0,UN=G),J7(y,b)},N}function aD(y,b,N){N=wd(-1,N),N.tag=3;var G=y.type.getDerivedStateFromError;if(typeof G=="function"){var ye=b.value;N.payload=function(){return G(ye)},N.callback=function(){J7(y,b)}}var Me=y.stateNode;return Me!==null&&typeof Me.componentDidCatch=="function"&&(N.callback=function(){J7(y,b),typeof G!="function"&&(NT===null?NT=new Set([this]):NT.add(this));var _t=b.stack;this.componentDidCatch(b.value,{componentStack:_t!==null?_t:""})}),N}function wm(y,b,N){var G=y.pingCache;if(G===null){G=y.pingCache=new Bg;var ye=new Set;G.set(b,ye)}else ye=G.get(b),ye===void 0&&(ye=new Set,G.set(b,ye));ye.has(N)||(ye.add(N),y=g6.bind(null,y,b,N),b.then(y,y))}function Jg(y){do{var b;if((b=y.tag===13)&&(b=y.memoizedState,b=b!==null?b.dehydrated!==null:!0),b)return y;y=y.return}while(y!==null);return null}function Q_(y,b,N,G,ye){return(y.mode&1)===0?(y===b?y.flags|=65536:(y.flags|=128,N.flags|=131072,N.flags&=-52805,N.tag===1&&(N.alternate===null?N.tag=17:(b=wd(-1,1),b.tag=2,kl(N,b,1))),N.lanes|=1),y):(y.flags|=65536,y.lanes=ye,y)}var Wg=Fc.ReactCurrentOwner,Ed=!1;function Nu(y,b,N,G){b.child=y===null?O7(b,null,N,G):TT(b,y.child,N,G)}function aV(y,b,N,G,ye){N=N.render;var Me=b.ref;return A2(b,ye),G=AM(y,b,N,G,Me,ye),N=IM(),y!==null&&!Ed?(b.updateQueue=y.updateQueue,b.flags&=-2053,y.lanes&=~ye,cb(y,b,ye)):(mf&&N&&CM(b),b.flags|=1,Nu(y,b,G,ye),b.child)}function oV(y,b,N,G,ye){if(y===null){var Me=N.type;return typeof Me=="function"&&!J1(Me)&&Me.defaultProps===void 0&&N.compare===null&&N.defaultProps===void 0?(b.tag=15,b.type=Me,Rk(y,b,Me,G,ye)):(y=yD(N.type,null,G,b,b.mode,ye),y.ref=b.ref,y.return=b,b.child=y)}if(Me=y.child,(y.lanes&ye)===0){var _t=Me.memoizedProps;if(N=N.compare,N=N!==null?N:Lw,N(_t,G)&&y.ref===b.ref)return cb(y,b,ye)}return b.flags|=1,y=Dd(Me,G),y.ref=b.ref,y.return=b,b.child=y}function Rk(y,b,N,G,ye){if(y!==null){var Me=y.memoizedProps;if(Lw(Me,G)&&y.ref===b.ref)if(Ed=!1,b.pendingProps=G=Me,(y.lanes&ye)!==0)(y.flags&131072)!==0&&(Ed=!0);else return b.lanes=y.lanes,cb(y,b,ye)}return W7(y,b,N,G,ye)}function jM(y,b,N){var G=b.pendingProps,ye=G.children,Me=y!==null?y.memoizedState:null;if(G.mode==="hidden")if((b.mode&1)===0)b.memoizedState={baseLanes:0,cachePool:null,transitions:null},A_(s6,Qh),Qh|=N;else{if((N&1073741824)===0)return y=Me!==null?Me.baseLanes|N:N,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:y,cachePool:null,transitions:null},b.updateQueue=null,A_(s6,Qh),Qh|=y,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G=Me!==null?Me.baseLanes:N,A_(s6,Qh),Qh|=G}else Me!==null?(G=Me.baseLanes|N,b.memoizedState=null):G=N,A_(s6,Qh),Qh|=G;return Nu(y,b,ye,N),b.child}function zM(y,b){var N=b.ref;(y===null&&N!==null||y!==null&&y.ref!==N)&&(b.flags|=512,b.flags|=2097152)}function W7(y,b,N,G,ye){var Me=Fg(N)?My:Cd.current;return Me=Jw(b,Me),A2(b,ye),N=AM(y,b,N,G,Me,ye),G=IM(),y!==null&&!Ed?(b.updateQueue=y.updateQueue,b.flags&=-2053,y.lanes&=~ye,cb(y,b,ye)):(mf&&G&&CM(b),b.flags|=1,Nu(y,b,N,ye),b.child)}function e6(y,b,N,G,ye){if(Fg(N)){var Me=!0;Z4(b)}else Me=!1;if(A2(b,ye),b.stateNode===null)cD(y,b),CN(b,N,G),jg(b,N,G,ye),G=!0;else if(y===null){var _t=b.stateNode,$t=b.memoizedProps;_t.props=$t;var Fn=_t.context,Qr=N.contextType;typeof Qr=="object"&&Qr!==null?Qr=i_(Qr):(Qr=Fg(N)?My:Cd.current,Qr=Jw(b,Qr));var Ui=N.getDerivedStateFromProps,Rn=typeof Ui=="function"||typeof _t.getSnapshotBeforeUpdate=="function";Rn||typeof _t.UNSAFE_componentWillReceiveProps!="function"&&typeof _t.componentWillReceiveProps!="function"||($t!==G||Fn!==Qr)&&Qo(b,_t,G,Qr),Mg=!1;var ls=b.memoizedState;_t.state=ls,Rg(b,G,_t,ye),Fn=b.memoizedState,$t!==G||ls!==Fn||Og.current||Mg?(typeof Ui=="function"&&(ba(b,N,Ui,G),Fn=b.memoizedState),($t=Mg||rV(b,N,$t,G,ls,Fn,Qr))?(Rn||typeof _t.UNSAFE_componentWillMount!="function"&&typeof _t.componentWillMount!="function"||(typeof _t.componentWillMount=="function"&&_t.componentWillMount(),typeof _t.UNSAFE_componentWillMount=="function"&&_t.UNSAFE_componentWillMount()),typeof _t.componentDidMount=="function"&&(b.flags|=4194308)):(typeof _t.componentDidMount=="function"&&(b.flags|=4194308),b.memoizedProps=G,b.memoizedState=Fn),_t.props=G,_t.state=Fn,_t.context=Qr,G=$t):(typeof _t.componentDidMount=="function"&&(b.flags|=4194308),G=!1)}else{_t=b.stateNode,Lu(y,b),$t=b.memoizedProps,Qr=b.type===b.elementType?$t:yu(b.type,$t),_t.props=Qr,Rn=b.pendingProps,ls=_t.context,Fn=N.contextType,typeof Fn=="object"&&Fn!==null?Fn=i_(Fn):(Fn=Fg(N)?My:Cd.current,Fn=Jw(b,Fn));var Yr=N.getDerivedStateFromProps;(Ui=typeof Yr=="function"||typeof _t.getSnapshotBeforeUpdate=="function")||typeof _t.UNSAFE_ Line truncated
`).forEach(function(wt){Ae=wt.indexOf(":"),Y=wt.substring(0,Ae).trim().toLowerCase(),xe=wt.substring(Ae+1).trim(),!(!Y||Q[Y]&&Ggt[Y])&&(Y==="set-cookie"?Q[Y]?Q[Y].push(xe):Q[Y]=[xe]:Q[Y]=Q[Y]?Q[Y]+", "+xe:xe)}),Q},C9e=Symbol("internals");function zU(ue){return ue&&String(ue).trim().toLowerCase()}function fte(ue){return ue===!1||ue==null?ue:li.isArray(ue)?ue.map(fte):String(ue)}function Xgt(ue){const Q=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let xe;for(;xe=Y.exec(ue);)Q[xe[1]]=xe[2];return Q}const Ygt=ue=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(ue.trim());function wye(ue,Q,Y,xe,Ae){if(li.isFunction(xe))return xe.call(this,Q,Y);if(Ae&&(Q=Y),!!li.isString(Q)){if(li.isString(xe))return Q.indexOf(xe)!==-1;if(li.isRegExp(xe))return xe.test(Q)}}function Zgt(ue){return ue.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Q,Y,xe)=>Y.toUpperCase()+xe)}function Kgt(ue,Q){const Y=li.toCamelCase(" "+Q);["get","set","has"].forEach(xe=>{Object.defineProperty(ue,xe+Y,{value:function(Ae,Ze,wt){return this[xe].call(this,Q,Ae,Ze,wt)},configurable:!0})})}let Gv=class{constructor(Q){Q&&this.set(Q)}set(Q,Y,xe){const Ae=this;function Ze(wn,sr,dr){const cr=zU(sr);if(!cr)throw new Error("header name must be a non-empty string");const Je=li.findKey(Ae,cr);(!Je||Ae[Je]===void 0||dr===!0||dr===void 0&&Ae[Je]!==!1)&&(Ae[Je||sr]=fte(wn))}const wt=(wn,sr)=>li.forEach(wn,(dr,cr)=>Ze(dr,cr,sr));if(li.isPlainObject(Q)||Q instanceof this.constructor)wt(Q,Y);else if(li.isString(Q)&&(Q=Q.trim())&&!Ygt(Q))wt(Qgt(Q),Y);else if(li.isObject(Q)&&li.isIterable(Q)){let wn={},sr,dr;for(const cr of Q){if(!li.isArray(cr))throw TypeError("Object iterator must return a key-value pair");wn[dr=cr[0]]=(sr=wn[dr])?li.isArray(sr)?[...sr,cr[1]]:[sr,cr[1]]:cr[1]}wt(wn,Y)}else Q!=null&&Ze(Y,Q,xe);return this}get(Q,Y){if(Q=zU(Q),Q){const xe=li.findKey(this,Q);if(xe){const Ae=this[xe];if(!Y)return Ae;if(Y===!0)return Xgt(Ae);if(li.isFunction(Y))return Y.call(this,Ae,xe);if(li.isRegExp(Y))return Y.exec(Ae);throw new TypeError("parser must be boolean|regexp|function")}}}has(Q,Y){if(Q=zU(Q),Q){const xe=li.findKey(this,Q);return!!(xe&&this[xe]!==void 0&&(!Y||wye(this,this[xe],xe,Y)))}return!1}delete(Q,Y){const xe=this;let Ae=!1;function Ze(wt){if(wt=zU(wt),wt){const wn=li.findKey(xe,wt);wn&&(!Y||wye(xe,xe[wn],wn,Y))&&(delete xe[wn],Ae=!0)}}return li.isArray(Q)?Q.forEach(Ze):Ze(Q),Ae}clear(Q){const Y=Object.keys(this);let xe=Y.length,Ae=!1;for(;xe--;){const Ze=Y[xe];(!Q||wye(this,this[Ze],Ze,Q,!0))&&(delete this[Ze],Ae=!0)}return Ae}normalize(Q){const Y=this,xe={};return li.forEach(this,(Ae,Ze)=>{const wt=li.findKey(xe,Ze);if(wt){Y[wt]=fte(Ae),delete Y[Ze];return}const wn=Q?Zgt(Ze):String(Ze).trim();wn!==Ze&&delete Y[Ze],Y[wn]=fte(Ae),xe[wn]=!0}),this}concat(...Q){return this.constructor.concat(this,...Q)}toJSON(Q){const Y=Object.create(null);return li.forEach(this,(xe,Ae)=>{xe!=null&&xe!==!1&&(Y[Ae]=Q&&li.isArray(xe)?xe.join(", "):xe)}),Y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Q,Y])=>Q+": "+Y).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Q){return Q instanceof this?Q:new this(Q)}static concat(Q,...Y){const xe=new this(Q);return Y.forEach(Ae=>xe.set(Ae)),xe}static accessor(Q){const xe=(this[C9e]=this[C9e]={accessors:{}}).accessors,Ae=this.prototype;function Ze(wt){const wn=zU(wt);xe[wn]||(Kgt(Ae,wt),xe[wn]=!0)}return li.isArray(Q)?Q.forEach(Ze):Ze(Q),this}};Gv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);li.reduceDescriptors(Gv.prototype,({value:ue},Q)=>{let Y=Q[0].toUpperCase()+Q.slice(1);return{get:()=>ue,set(xe){this[Y]=xe}}});li.freezeMethods(Gv);function Eye(ue,Q){const Y=this||$U,xe=Q||Y,Ae=Gv.from(xe.headers);let Ze=xe.data;return li.forEach(ue,function(wn){Ze=wn.call(Y,Ze,Ae.normalize(),Q?Q.status:void 0)}),Ae.normalize(),Ze}function pLe(ue){return!!(ue&&ue.__CANCEL__)}function XL(ue,Q,Y){Il.call(this,ue??"canceled",Il.ERR_CANCELED,Q,Y),this.name="CanceledError"}li.inherits(XL,Il,{__CANCEL__:!0});function dLe(ue,Q,Y){const xe=Y.config.validateStatus;!Y.status||!xe||xe(Y.status)?ue(Y):Q(new Il("Request failed with status code "+Y.status,[Il.ERR_BAD_REQUEST,Il.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function eht(ue){const Q=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ue);return Q&&Q[1]||""}function tht(ue,Q){ue=ue||10;const Y=new Array(ue),xe=new Array(ue);let Ae=0,Ze=0,wt;return Q=Q!==void 0?Q:1e3,function(sr){const dr=Date.now(),cr=xe[Ze];wt||(wt=dr),Y[Ae]=sr,xe[Ae]=dr;let Je=Ze,Ss=0;for(;Je!==Ae;)Ss+=Y[Je++],Je=Je%ue;if(Ae=(Ae+1)%ue,Ae===Ze&&(Ze=(Ze+1)%ue),dr-wt<Q)return;const Kt=cr&&dr-cr;return Kt?Math.round(Ss*1e3/Kt):void 0}}function nht(ue,Q){let Y=0,xe=1e3/Q,Ae,Ze;const wt=(dr,cr=Date.now())=>{Y=cr,Ae=null,Ze&&(clearTimeout(Ze),Ze=null),ue(...dr)};return[(...dr)=>{const cr=Date.now(),Je=cr-Y;Je>=xe?wt(dr,cr):(Ae=dr,Ze||(Ze=setTimeout(()=>{Ze=null,wt(Ae)},xe-Je)))},()=>Ae&&wt(Ae)]}const hte=(ue,Q,Y=3)=>{let xe=0;const Ae=tht(50,250);return nht(Ze=>{const wt=Ze.loaded,wn=Ze.lengthComputable?Ze.total:void 0,sr=wt-xe,dr=Ae(sr),cr=wt<=wn;xe=wt;const Je={loaded:wt,total:wn,progress:wn?wt/wn:void 0,bytes:sr,rate:dr||void 0,estimated:dr&&wn&&cr?(wn-wt)/dr:void 0,event:Ze,lengthComputable:wn!=null,[Q?"download":"upload"]:!0};ue(Je)},Y)},w9e=(ue,Q)=>{const Y=ue!=null;return[xe=>Q[0]({lengthComputable:Y,total:ue,loaded:xe}),Q[1]]},E9e=ue=>(...Q)=>li.asap(()=>ue(...Q)),rht=Oy.hasStandardBrowserEnv?((ue,Q)=>Y=>(Y=new URL(Y,Oy.origin),ue.protocol===Y.protocol&&ue.host===Y.host&&(Q||ue.port===Y.port)))(new URL(Oy.origin),Oy.navigator&&/(msie|trident)/i.test(Oy.navigator.userAgent)):()=>!0,iht=Oy.hasStandardBrowserEnv?{write(ue,Q,Y,xe,Ae,Ze){const wt=[ue+"="+encodeURIComponent(Q)];li.isNumber(Y)&&wt.push("expires="+new Date(Y).toGMTString()),li.isString(xe)&&wt.push("path="+xe),li.isString(Ae)&&wt.push("domain="+Ae),Ze===!0&&wt.push("secure"),document.cookie=wt.join("; ")},read(ue){const Q=document.cookie.match(new RegExp("(^|;\\s*)("+ue+")=([^;]*)"));return Q?decodeURIComponent(Q[3]):null},remove(ue){this.write(ue,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function sht(ue){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(ue)}function aht(ue,Q){return Q?ue.replace(/\/?\/$/,"")+"/"+Q.replace(/^\/+/,""):ue}function mLe(ue,Q,Y){let xe=!sht(Q);return ue&&(xe||Y==!1)?aht(ue,Q):Q}const D9e=ue=>ue instanceof Gv?{...ue}:ue;function qI(ue,Q){Q=Q||{};const Y={};function xe(dr,cr,Je,Ss){return li.isPlainObject(dr)&&li.isPlainObject(cr)?li.merge.call({caseless:Ss},dr,cr):li.isPlainObject(cr)?li.merge({},cr):li.isArray(cr)?cr.slice():cr}function Ae(dr,cr,Je,Ss){if(li.isUndefined(cr)){if(!li.isUndefined(dr))return xe(void 0,dr,Je,Ss)}else return xe(dr,cr,Je,Ss)}function Ze(dr,cr){if(!li.isUndefined(cr))return xe(void 0,cr)}function wt(dr,cr){if(li.isUndefined(cr)){if(!li.isUndefined(dr))return xe(void 0,dr)}else return xe(void 0,cr)}function wn(dr,cr,Je){if(Je in Q)return xe(dr,cr);if(Je in ue)return xe(void 0,dr)}const sr={url:Ze,method:Ze,data:Ze,baseURL:wt,transformRequest:wt,transformResponse:wt,paramsSerializer:wt,timeout:wt,timeoutMessage:wt,withCredentials:wt,withXSRFToken:wt,adapter:wt,responseType:wt,xsrfCookieName:wt,xsrfHeaderName:wt,onUploadProgress:wt,onDownloadProgress:wt,decompress:wt,maxContentLength:wt,maxBodyLength:wt,beforeRedirect:wt,transport:wt,httpAgent:wt,httpsAgent:wt,cancelToken:wt,socketPath:wt,responseEncoding:wt,validateStatus:wn,headers:(dr,cr,Je)=>Ae(D9e(dr),D9e(cr),Je,!0)};return li.forEach(Object.keys({...ue,...Q}),function(cr){const Je=sr[cr]||Ae,Ss=Je(ue[cr],Q[cr],cr);li.isUndefined(Ss)&&Je!==wn||(Y[cr]=Ss)}),Y}const gLe=ue=>{const Q=qI({},ue);let{data:Y,withXSRFToken:xe,xsrfHeaderName:Ae,xsrfCookieName:Ze,headers:wt,auth:wn}=Q;if(Q.headers=wt=Gv.from(wt),Q.url=uLe(mLe(Q.baseURL,Q.url,Q.allowAbsoluteUrls),ue.params,ue.paramsSerializer),wn&&wt.set("Authorization","Basic "+btoa((wn.username||"")+":"+(wn.password?unescape(encode Line truncated
`+wt.map(F9e).join(`
`):" "+F9e(wt[0]):"as no adapter specified";throw new Il("There is no suitable adapter to dispatch the request "+wn,"ERR_NOT_SUPPORT")}return Ae},adapters:Rye};function Dye(ue){if(ue.cancelToken&&ue.cancelToken.throwIfRequested(),ue.signal&&ue.signal.aborted)throw new XL(null,ue)}function L9e(ue){return Dye(ue),ue.headers=Gv.from(ue.headers),ue.data=Eye.call(ue,ue.transformRequest),["post","put","patch"].indexOf(ue.method)!==-1&&ue.headers.setContentType("application/x-www-form-urlencoded",!1),yLe.getAdapter(ue.adapter||$U.adapter,ue)(ue).then(function(xe){return Dye(ue),xe.data=Eye.call(ue,ue.transformResponse,xe),xe.headers=Gv.from(xe.headers),xe},function(xe){return pLe(xe)||(Dye(ue),xe&&xe.response&&(xe.response.data=Eye.call(ue,ue.transformResponse,xe.response),xe.response.headers=Gv.from(xe.response.headers))),Promise.reject(xe)})}const vLe="1.12.2",kte={};["object","boolean","number","function","string","symbol"].forEach((ue,Q)=>{kte[ue]=function(xe){return typeof xe===ue||"a"+(Q<1?"n ":" ")+ue}});const M9e={};kte.transitional=function(Q,Y,xe){function Ae(Ze,wt){return"[Axios v"+vLe+"] Transitional option '"+Ze+"'"+wt+(xe?". "+xe:"")}return(Ze,wt,wn)=>{if(Q===!1)throw new Il(Ae(wt," has been removed"+(Y?" in "+Y:"")),Il.ERR_DEPRECATED);return Y&&!M9e[wt]&&(M9e[wt]=!0,console.warn(Ae(wt," has been deprecated since v"+Y+" and will be removed in the near future"))),Q?Q(Ze,wt,wn):!0}};kte.spelling=function(Q){return(Y,xe)=>(console.warn(`${xe} is likely a misspelling of ${Q}`),!0)};function hht(ue,Q,Y){if(typeof ue!="object")throw new Il("options must be an object",Il.ERR_BAD_OPTION_VALUE);const xe=Object.keys(ue);let Ae=xe.length;for(;Ae-- >0;){const Ze=xe[Ae],wt=Q[Ze];if(wt){const wn=ue[Ze],sr=wn===void 0||wt(wn,Ze,ue);if(sr!==!0)throw new Il("option "+Ze+" must be "+sr,Il.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new Il("Unknown option "+Ze,Il.ERR_BAD_OPTION)}}const pte={assertOptions:hht,validators:kte},xw=pte.validators;let UI=class{constructor(Q){this.defaults=Q||{},this.interceptors={request:new k9e,response:new k9e}}async request(Q,Y){try{return await this._request(Q,Y)}catch(xe){if(xe instanceof Error){let Ae={};Error.captureStackTrace?Error.captureStackTrace(Ae):Ae=new Error;const Ze=Ae.stack?Ae.stack.replace(/^.+\n/,""):"";try{xe.stack?Ze&&!String(xe.stack).endsWith(Ze.replace(/^.+\n.+\n/,""))&&(xe.stack+=`
`+Ze):xe.stack=Ze}catch{}}throw xe}}_request(Q,Y){typeof Q=="string"?(Y=Y||{},Y.url=Q):Y=Q||{},Y=qI(this.defaults,Y);const{transitional:xe,paramsSerializer:Ae,headers:Ze}=Y;xe!==void 0&&pte.assertOptions(xe,{silentJSONParsing:xw.transitional(xw.boolean),forcedJSONParsing:xw.transitional(xw.boolean),clarifyTimeoutError:xw.transitional(xw.boolean)},!1),Ae!=null&&(li.isFunction(Ae)?Y.paramsSerializer={serialize:Ae}:pte.assertOptions(Ae,{encode:xw.function,serialize:xw.function},!0)),Y.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?Y.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:Y.allowAbsoluteUrls=!0),pte.assertOptions(Y,{baseUrl:xw.spelling("baseURL"),withXsrfToken:xw.spelling("withXSRFToken")},!0),Y.method=(Y.method||this.defaults.method||"get").toLowerCase();let wt=Ze&&li.merge(Ze.common,Ze[Y.method]);Ze&&li.forEach(["delete","get","head","post","put","patch","common"],vt=>{delete Ze[vt]}),Y.headers=Gv.concat(wt,Ze);const wn=[];let sr=!0;this.interceptors.request.forEach(function($i){typeof $i.runWhen=="function"&&$i.runWhen(Y)===!1||(sr=sr&&$i.synchronous,wn.unshift($i.fulfilled,$i.rejected))});const dr=[];this.interceptors.response.forEach(function($i){dr.push($i.fulfilled,$i.rejected)});let cr,Je=0,Ss;if(!sr){const vt=[L9e.bind(this),void 0];for(vt.unshift(...wn),vt.push(...dr),Ss=vt.length,cr=Promise.resolve(Y);Je<Ss;)cr=cr.then(vt[Je++],vt[Je++]);return cr}Ss=wn.length;let Kt=Y;for(;Je<Ss;){const vt=wn[Je++],$i=wn[Je++];try{Kt=vt(Kt)}catch(zr){$i.call(this,zr);break}}try{cr=L9e.call(this,Kt)}catch(vt){return Promise.reject(vt)}for(Je=0,Ss=dr.length;Je<Ss;)cr=cr.then(dr[Je++],dr[Je++]);return cr}getUri(Q){Q=qI(this.defaults,Q);const Y=mLe(Q.baseURL,Q.url,Q.allowAbsoluteUrls);return uLe(Y,Q.params,Q.paramsSerializer)}};li.forEach(["delete","get","head","options"],function(Q){UI.prototype[Q]=function(Y,xe){return this.request(qI(xe||{},{method:Q,url:Y,data:(xe||{}).data}))}});li.forEach(["post","put","patch"],function(Q){function Y(xe){return function(Ze,wt,wn){return this.request(qI(wn||{},{method:Q,headers:xe?{"Content-Type":"multipart/form-data"}:{},url:Ze,data:wt}))}}UI.prototype[Q]=Y(),UI.prototype[Q+"Form"]=Y(!0)});let yht=class bLe{constructor(Q){if(typeof Q!="function")throw new TypeError("executor must be a function.");let Y;this.promise=new Promise(function(Ze){Y=Ze});const xe=this;this.promise.then(Ae=>{if(!xe._listeners)return;let Ze=xe._listeners.length;for(;Ze-- >0;)xe._listeners[Ze](Ae);xe._listeners=null}),this.promise.then=Ae=>{let Ze;const wt=new Promise(wn=>{xe.subscribe(wn),Ze=wn}).then(Ae);return wt.cancel=function(){xe.unsubscribe(Ze)},wt},Q(function(Ze,wt,wn){xe.reason||(xe.reason=new XL(Ze,wt,wn),Y(xe.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Q){if(this.reason){Q(this.reason);return}this._listeners?this._listeners.push(Q):this._listeners=[Q]}unsubscribe(Q){if(!this._listeners)return;const Y=this._listeners.indexOf(Q);Y!==-1&&this._listeners.splice(Y,1)}toAbortSignal(){const Q=new AbortController,Y=xe=>{Q.abort(xe)};return this.subscribe(Y),Q.signal.unsubscribe=()=>this.unsubscribe(Y),Q.signal}static source(){let Q;return{token:new bLe(function(Ae){Q=Ae}),cancel:Q}}};function vht(ue){return function(Y){return ue.apply(null,Y)}}function bht(ue){return li.isObject(ue)&&ue.isAxiosError===!0}const jye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jye).forEach(([ue,Q])=>{jye[Q]=ue});function SLe(ue){const Q=new UI(ue),Y=Z9e(UI.prototype.request,Q);return li.extend(Y,UI.prototype,Q,{allOwnKeys:!0}),li.extend(Y,Q,null,{allOwnKeys:!0}),Y.create=function(Ae){return SLe(qI(ue,Ae))},Y}const xm=SLe($U);xm.Axios=UI;xm.CanceledError=XL;xm.CancelToken=yht;xm.isCancel=pLe;xm.VERSION=vLe;xm.toFormData=xte;xm.AxiosError=Il;xm.Cancel=xm.CanceledError;xm.all=function(Q){return Promise.all(Q)};xm.spread= Line truncated
attempted value: ${wt}
`+(wn!==wt?`result of cast: ${wn}`:""))}return Ze}_cast(Q,Y){let xe=Q===void 0?Q:this.transforms.reduce((Ae,Ze)=>Ze.call(this,Ae,Q,this,Y),Q);return xe===void 0&&(xe=this.getDefault(Y)),xe}_validate(Q,Y={},xe,Ae){let{path:Ze,originalValue:wt=Q,strict:wn=this.spec.strict}=Y,sr=Q;wn||(sr=this._cast(sr,Object.assign({assert:!1},Y)));let dr=[];for(let cr of Object.values(this.internalTests))cr&&dr.push(cr);this.runTests({path:Ze,value:sr,originalValue:wt,options:Y,tests:dr},xe,cr=>{if(cr.length)return Ae(cr,sr);this.runTests({path:Ze,value:sr,originalValue:wt,options:Y,tests:this.tests},xe,Ae)})}runTests(Q,Y,xe){let Ae=!1,{tests:Ze,value:wt,originalValue:wn,path:sr,options:dr}=Q,cr=$i=>{Ae||(Ae=!0,Y($i,wt))},Je=$i=>{Ae||(Ae=!0,xe($i,wt))},Ss=Ze.length,Kt=[];if(!Ss)return Je([]);let vt={value:wt,originalValue:wn,path:sr,options:dr,schema:this};for(let $i=0;$i<Ze.length;$i++){const zr=Ze[$i];zr(vt,cr,function(Ro){Ro&&(Array.isArray(Ro)?Kt.push(...Ro):Kt.push(Ro)),--Ss<=0&&Je(Kt)})}}asNestedTest({key:Q,index:Y,parent:xe,parentPath:Ae,originalParent:Ze,options:wt}){const wn=Q??Y;if(wn==null)throw TypeError("Must include `key` or `index` for nested validations");const sr=typeof wn=="number";let dr=xe[wn];const cr=Object.assign({},wt,{strict:!0,parent:xe,value:dr,originalValue:Ze[wn],key:void 0,[sr?"index":"key"]:wn,path:sr||wn.includes(".")?`${Ae||""}[${sr?wn:`"${wn}"`}]`:(Ae?`${Ae}.`:"")+Q});return(Je,Ss,Kt)=>this.resolve(cr)._validate(dr,cr,Ss,Kt)}validate(Q,Y){var xe;let Ae=this.resolve(Object.assign({},Y,{value:Q})),Ze=(xe=Y?.disableStackTrace)!=null?xe:Ae.spec.disableStackTrace;return new Promise((wt,wn)=>Ae._validate(Q,Y,(sr,dr)=>{N1.isError(sr)&&(sr.value=dr),wn(sr)},(sr,dr)=>{sr.length?wn(new N1(sr,dr,void 0,void 0,Ze)):wt(dr)}))}validateSync(Q,Y){var xe;let Ae=this.resolve(Object.assign({},Y,{value:Q})),Ze,wt=(xe=Y?.disableStackTrace)!=null?xe:Ae.spec.disableStackTrace;return Ae._validate(Q,Object.assign({},Y,{sync:!0}),(wn,sr)=>{throw N1.isError(wn)&&(wn.value=sr),wn},(wn,sr)=>{if(wn.length)throw new N1(wn,Q,void 0,void 0,wt);Ze=sr}),Ze}isValid(Q,Y){return this.validate(Q,Y).then(()=>!0,xe=>{if(N1.isError(xe))return!1;throw xe})}isValidSync(Q,Y){try{return this.validateSync(Q,Y),!0}catch(xe){if(N1.isError(xe))return!1;throw xe}}_getDefault(Q){let Y=this.spec.default;return Y==null?Y:typeof Y=="function"?Y.call(this,Q):qL(Y)}getDefault(Q){return this.resolve(Q||{})._getDefault(Q)}default(Q){return arguments.length===0?this._getDefault():this.clone({default:Q})}strict(Q=!0){return this.clone({strict:Q})}nullability(Q,Y){const xe=this.clone({nullable:Q});return xe.internalTests.nullable=RL({message:Y,name:"nullable",test(Ae){return Ae===null?this.schema.spec.nullable:!0}}),xe}optionality(Q,Y){const xe=this.clone({optional:Q});return xe.internalTests.optionality=RL({message:Y,name:"optionality",test(Ae){return Ae===void 0?this.schema.spec.optional:!0}}),xe}optional(){return this.optionality(!0)}defined(Q=Cw.defined){return this.optionality(!1,Q)}nullable(){return this.nullability(!0)}nonNullable(Q=Cw.notNull){return this.nullability(!1,Q)}required(Q=Cw.required){return this.clone().withMutation(Y=>Y.nonNullable(Q).defined(Q))}notRequired(){return this.clone().withMutation(Q=>Q.nullable().optional())}transform(Q){let Y=this.clone();return Y.transforms.push(Q),Y}test(...Q){let Y;if(Q.length===1?typeof Q[0]=="function"?Y={test:Q[0]}:Y=Q[0]:Q.length===2?Y={name:Q[0],test:Q[1]}:Y={name:Q[0],message:Q[1],test:Q[2]},Y.message===void 0&&(Y.message=Cw.default),typeof Y.test!="function")throw new TypeError("`test` is a required parameters");let xe=this.clone(),Ae=RL(Y),Ze=Y.exclusive||Y.name&&xe.exclusiveTests[Y.name]===!0;if(Y.exclusive&&!Y.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return Y.name&&(xe.exclusiveTests[Y.name]=!!Y.exclusive),xe.tests=xe.tests.filter(wt=>!(wt.OPTIONS.name===Y.name&&(Ze||wt.OPTIONS.test===Ae.OPTIONS.test))),xe.tests.push(Ae),xe}when(Q,Y){!Array.isArray(Q)&&typeof Q!="string"&&(Y=Q,Q=".");let xe=this.clone(),Ae=xLe(Q).map(Ze=>new HI(Ze));return Ae.forEach(Ze=>{Ze.isSibling&&xe.deps.push(Ze.key)}),xe.conditions.push(typeof Y=="function"?new yte(Ae,Y):yte.fromOptions(Ae,Y)),xe}typeError(Q){let Y=this.clone();return Y.internalTests.typeError=RL({message:Q,name:"typeError",skipAbsent:!0,test(xe){return this.schema._typeCheck(xe)?!0:this.createError({params:{type:this.schema.type}})}}),Y}oneOf(Q,Y=Cw.oneOf){let xe=this.clone();return Q.forEach(Ae=>{xe._whitelist.add(Ae),xe._blacklist.delete(Ae)}),xe.internalTests.whiteList=RL({message:Y,name:"oneOf",skipAbsent:!0,test(Ae){let Ze=this.schema._whitelist,wt=Ze.resolveAll(this.resolve);return wt.includes(Ae)?!0:this.createError({params:{values:Array.from(Ze).join(", "),resolved:wt}})}}),xe}notOneOf(Q,Y=Cw.notOneOf){let xe=this.clone();return Q.forEach(Ae=>{xe._blacklist.add(Ae),xe._whitelist.delete(Ae)}),xe.internalTests.blacklist=RL({message:Y,name:"notOneOf",test(Ae){let Ze=this.schema._blacklist, Line truncated
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var Y={};(xe=>{var Ae=Object.defineProperty,Ze=(e,t)=>{for(var r in t)Ae(e,r,{get:t[r],enumerable:!0})},wt=e=>e,wn={};Ze(wn,{ANONYMOUS:()=>TX,AccessFlags:()=>T7,AssertionLevel:()=>e7,AssignmentDeclarationKind:()=>Y4,AssignmentKind:()=>Qne,Associativity:()=>rre,BreakpointResolver:()=>bY,BuilderFileEmit:()=>ece,BuilderProgramKind:()=>cce,BuilderState:()=>cg,CallHierarchy:()=>EE,CharacterCodes:()=>SN,CheckFlags:()=>hM,CheckMode:()=>U$,ClassificationType:()=>AQ,ClassificationTypeNames:()=>ule,CommentDirectiveType:()=>fN,Comparison:()=>cr,CompletionInfoFlags:()=>rle,CompletionTriggerKind:()=>PQ,Completions:()=>IE,ContainerFlags:()=>Fae,ContextFlags:()=>y7,Debug:()=>D,DiagnosticCategory:()=>zw,Diagnostics:()=>p,DocumentHighlights:()=>gJ,ElementFlags:()=>Rw,EmitFlags:()=>Pk,EmitHint:()=>Ak,EmitOnly:()=>pN,EndOfLineState:()=>ale,ExitStatus:()=>H4,ExportKind:()=>nue,Extension:()=>TM,ExternalEmitHelpers:()=>TN,FileIncludeKind:()=>Mw,FilePreprocessingDiagnosticsKind:()=>wk,FileSystemEntryKind:()=>bT,FileWatcherEventKind:()=>Fg,FindAllReferences:()=>xc,FlattenLevel:()=>noe,FlowFlags:()=>gT,ForegroundColorEscapeSequences:()=>Voe,FunctionFlags:()=>tre,GeneratedIdentifierFlags:()=>d7,GetLiteralTextFlags:()=>fne,GoToDefinition:()=>HP,HighlightSpanKind:()=>tle,IdentifierNameMap:()=>SP,ImportKind:()=>tue,ImportsNotUsedAsValues:()=>w2,IndentStyle:()=>nle,IndexFlags:()=>yN,IndexKind:()=>x7,InferenceFlags:()=>k7,InferencePriority:()=>vM,InlayHintKind:()=>ele,InlayHints:()=>_Z,InternalEmitFlags:()=>Nk,InternalNodeBuilderFlags:()=>b7,InternalSymbolName:()=>S7,IntersectionFlags:()=>h7,InvalidatedProjectKind:()=>Ace,JSDocParsingMode:()=>Og,JsDoc:()=>CS,JsTyping:()=>Wb,JsxEmit:()=>bN,JsxFlags:()=>p7,JsxReferenceKind:()=>jw,LanguageFeatureMinimumTarget:()=>Ml,LanguageServiceMode:()=>Zce,LanguageVariant:()=>Bw,LexicalEnvironmentFlags:()=>$_,ListFormat:()=>A_,LogLevel:()=>sN,MapCode:()=>fZ,MemberOverrideStatus:()=>m7,ModifierFlags:()=>uN,ModuleDetectionKind:()=>vN,ModuleInstanceState:()=>Iae,ModuleKind:()=>Dk,ModuleResolutionKind:()=>C2,ModuleSpecifierEnding:()=>Kre,NavigateTo:()=>wue,NavigationBar:()=>Due,NewLineKind:()=>w7,NodeBuilderFlags:()=>v7,NodeCheckFlags:()=>hN,NodeFactoryFlags:()=>Die,NodeFlags:()=>lN,NodeResolutionFeatures:()=>Tae,ObjectFlags:()=>$4,OperationCanceledException:()=>Ck,OperatorPrecedence:()=>ire,OrganizeImports:()=>wS,OrganizeImportsMode:()=>DQ,OuterExpressionKinds:()=>D2,OutliningElementsCollector:()=>dZ,OutliningSpanKind:()=>ile,OutputFileType:()=>sle,PackageJsonAutoImportPreference:()=>Yce,PackageJsonDependencyGroup:()=>Xce,PatternMatchKind:()=>JX,PollingInterval:()=>Ww,PollingWatchKind:()=>SM,PragmaKindFlags:()=>P2,PredicateSemantics:()=>dM,PreparePasteEdits:()=>PZ,PrivateIdentifierKind:()=>jie,ProcessLevel:()=>aoe,ProgramUpdateLevel:()=>zoe,QuotePreference:()=>Ile,RegularExpressionFlags:()=>kk,RelationComparisonResult:()=>q4,Rename:()=>KJ,ScriptElementKind:()=>cle,ScriptElementKindModifier:()=>lle,ScriptKind:()=>yT,ScriptSnapshot:()=>DB,ScriptTarget:()=>M1,SemanticClassificationFormat:()=>Kce,SemanticMeaning:()=>_le,SemicolonPreference:()=>NQ,SignatureCheckMode:()=>V$,SignatureFlags:()=>hT,SignatureHelp:()=>m9,SignatureInfo:()=>Koe,SignatureKind:()=>Q4,SmartSelectionRange:()=>hZ,SnippetKind:()=>E2,StatisticType:()=>Bce,StructureIsReused:()=>dN,SymbolAccessibility:()=>gN,SymbolDisplay:()=>lv,SymbolDisplayPartKind:()=>NB,SymbolFlags:()=>Ek,SymbolFormatFlags:()=>mN,SyntaxKind:()=>cN,Ternary:()=>X4,ThrottledCancellationToken:()=>M_e,TokenClass:()=>ole,TokenFlags:()=>_N,TransformFlags:()=>E7,TypeFacts:()=>W$,TypeFlags:()=>N_,TypeFormatFlags:()=>k2,TypeMapKind:()=>yM,TypePredicateKind:()=>mM,TypeReferenceSerializationKind:()=>gM,UnionReduction:()=>g7,UpToDateStatusType:()=>kce,VarianceFlags:()=>G4,Version:()=>Zd,VersionRange:()=>aN,WatchDirectoryFlags:()=>nb,WatchDirectoryKind:()=>C7,WatchFileKind:()=>bM,WatchLogLevel:()=>Joe,WatchType:()=>ju,accessPrivateIdentifier:()=>toe,addEmitFlags:()=>rh,addEmitHelper:()=>G6,addEmitHelpers:()=>ry,addInternalEmitFlags:()=>lC,addNodeFactoryPatcher:()=>V1e,addObjectAllocatorPatcher:()=>P1e,addRange:()=>Kr,addRelatedInfo:()=>Aa,addSyntheticLeadingComment:()=>KT,addSyntheticTrailingComment:()=>WA,addToSeen:()=>cm,advancedAsyncSuperHelper:()=>jj,affectsDeclarationPathOptionDeclarations:()=>qse,affectsEmitOptionDeclarations:()=>Vse,allKeysStartWithDot:()=>Iz,altDirectorySeparator:()=>qw,and:()=>yk,append:()=>Gn,appendIfUnique:()=>Bh,arrayFrom:()=>Ms,arrayIsEqualTo:()=>Yf,arrayIsHomogeneous:()=>oie,arrayOf:()=>X3,arrayReverseIterator:()=>XI,arrayToMap:()=>F0,arrayToMultiMap:()=>Dw,arrayToNumericMap:()=>YI,assertType:()=>iN,assign:()=>h2,asyncSuperHelper:()=>Rj,attachFileToDiagnostics:()=>z6,base64decode:()=>Cre,base64encode:()=>kre,binarySearch:()=>Wh,binarySearchKey:()=>g2,bindSourceFile:()=>Lae,breakIntoCharacterSpans:()=>yue,breakIntoWordSpans:()=>vue,buildLinkParts:()=>Ble,buildOpts:()=>WO,buildLine truncated
Node ${we(Xe.kind)} was unexpected.`,bn||h)}e.failBadSyntaxKind=h;function x(Xe,kt,bn,mr){Xe||(kt=kt?`False expression: ${kt}`:"False expression.",bn&&(kt+=`\r
Verbose Debug Information: `+(typeof bn=="string"?bn:bn())),m(kt,mr||x))}e.assert=x;function k(Xe,kt,bn,mr,bi){if(Xe!==kt){const Si=bn?mr?`${bn} ${mr}`:bn:"";m(`Expected ${Xe} === ${kt}. ${Si}`,bi||k)}}e.assertEqual=k;function w(Xe,kt,bn,mr){Xe>=kt&&m(`Expected ${Xe} < ${kt}. ${bn||""}`,mr||w)}e.assertLessThan=w;function P(Xe,kt,bn){Xe>kt&&m(`Expected ${Xe} <= ${kt}`,bn||P)}e.assertLessThanOrEqual=P;function A(Xe,kt,bn){Xe<kt&&m(`Expected ${Xe} >= ${kt}`,bn||A)}e.assertGreaterThanOrEqual=A;function F(Xe,kt,bn){Xe==null&&m(kt,bn||F)}e.assertIsDefined=F;function R(Xe,kt,bn){return F(Xe,kt,bn||R),Xe}e.checkDefined=R;function M(Xe,kt,bn){for(const mr of Xe)F(mr,kt,bn||M)}e.assertEachIsDefined=M;function J(Xe,kt,bn){return M(Xe,kt,bn||J),Xe}e.checkEachDefined=J;function V(Xe,kt="Illegal value:",bn){const mr=typeof Xe=="object"&&Lo(Xe,"kind")&&Lo(Xe,"pos")?"SyntaxKind: "+we(Xe.kind):JSON.stringify(Xe);return m(`${kt} ${mr}`,bn||V)}e.assertNever=V;function H(Xe,kt,bn,mr){g(1,"assertEachNode")&&x(kt===void 0||Xr(Xe,kt),bn||"Unexpected node.",()=>`Node array did not pass test '${oe(kt)}'.`,mr||H)}e.assertEachNode=H;function K(Xe,kt,bn,mr){g(1,"assertNode")&&x(Xe!==void 0&&(kt===void 0||kt(Xe)),bn||"Unexpected node.",()=>`Node ${we(Xe?.kind)} did not pass test '${oe(kt)}'.`,mr||K)}e.assertNode=K;function q(Xe,kt,bn,mr){g(1,"assertNotNode")&&x(Xe===void 0||kt===void 0||!kt(Xe),bn||"Unexpected node.",()=>`Node ${we(Xe.kind)} should not have passed test '${oe(kt)}'.`,mr||q)}e.assertNotNode=q;function Se(Xe,kt,bn,mr){g(1,"assertOptionalNode")&&x(kt===void 0||Xe===void 0||kt(Xe),bn||"Unexpected node.",()=>`Node ${we(Xe?.kind)} did not pass test '${oe(kt)}'.`,mr||Se)}e.assertOptionalNode=Se;function se(Xe,kt,bn,mr){g(1,"assertOptionalToken")&&x(kt===void 0||Xe===void 0||Xe.kind===kt,bn||"Unexpected node.",()=>`Node ${we(Xe?.kind)} was not a '${we(kt)}' token.`,mr||se)}e.assertOptionalToken=se;function $(Xe,kt,bn){g(1,"assertMissingNode")&&x(Xe===void 0,kt||"Unexpected node.",()=>`Node ${we(Xe.kind)} was unexpected'.`,bn||$)}e.assertMissingNode=$;function ae(Xe){}e.type=ae;function oe(Xe){if(typeof Xe!="function")return"";if(Lo(Xe,"name"))return Xe.name;{const kt=Function.prototype.toString.call(Xe),bn=/^function\s+([\w$]+)\s*\(/.exec(kt);return bn?bn[1]:""}}e.getFunctionName=oe;function _e(Xe){return`{ name: ${Ji(Xe.escapedName)}; flags: ${de(Xe.flags)}; declarations: ${Sn(Xe.declarations,kt=>we(kt.kind))} }`}e.formatSymbol=_e;function be(Xe=0,kt,bn){const mr=X(kt);if(Xe===0)return mr.length>0&&mr[0][0]===0?mr[0][1]:"0";if(bn){const bi=[];let Si=Xe;for(const[rs,oa]of mr){if(rs>Xe)break;rs!==0&&rs&Xe&&(bi.push(oa),Si&=~rs)}if(Si===0)return bi.join("|")}else for(const[bi,Si]of mr)if(bi===Xe)return Si;return Xe.toString()}e.formatEnum=be;const ke=new Map;function X(Xe){const kt=ke.get(Xe);if(kt)return kt;const bn=[];for(const bi in Xe){const Si=Xe[bi];typeof Si=="number"&&bn.push([Si,bi])}const mr=ff(bn,(bi,Si)=>aa(bi[0],Si[0]));return ke.set(Xe,mr),mr}function we(Xe){return be(Xe,cN,!1)}e.formatSyntaxKind=we;function Ge(Xe){return be(Xe,E2,!1)}e.formatSnippetKind=Ge;function je(Xe){return be(Xe,yT,!1)}e.formatScriptKind=je;function ce(Xe){return be(Xe,lN,!0)}e.formatNodeFlags=ce;function Oe(Xe){return be(Xe,hN,!0)}e.formatNodeCheckFlags=Oe;function he(Xe){return be(Xe,uN,!0)}e.formatModifierFlags=he;function ot(Xe){return be(Xe,E7,!0)}e.formatTransformFlags=ot;function gt(Xe){return be(Xe,Pk,!0)}e.formatEmitFlags=gt;function de(Xe){return be(Xe,Ek,!0)}e.formatSymbolFlags=de;function De(Xe){return be(Xe,N_,!0)}e.formatTypeFlags=De;function fe(Xe){return be(Xe,hT,!0)}e.formatSignatureFlags=fe;function Be(Xe){return be(Xe,$4,!0)}e.formatObjectFlags=Be;function Re(Xe){return be(Xe,gT,!0)}e.formatFlowFlags=Re;function Le(Xe){return be(Xe,q4,!0)}e.formatRelationComparisonResult=Le;function et(Xe){return be(Xe,U$,!0)}e.formatCheckMode=et;function Mt(Xe){return be(Xe,V$,!0)}e.formatSignatureCheckMode=Mt;function nn(Xe){return be(Xe,W$,!0)}e.formatTypeFacts=nn;let Tn=!1,tr;function ht(Xe){"__debugFlowFlags"in Xe||Object.defineProperties(Xe,{__tsDebuggerDisplay:{value(){const kt=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",bn=this.flags&-2048;return`${kt}${bn?` (${Re(bn)})`:""}`}},__debugFlowFlags:{get(){return be(this.flags,gT,!0)}},__debugToString:{value(){return Wi(this)}}})}function on(Xe){return Tn&&(typeof Object.setPrototypeOf=="function"?(tr||(tr=Object.create(Object.prototype),ht(tr)),Object.setPrototypeOf(Xe,tr)):ht(Xe)),Xe}e.attachFlowNodeDebugInfo=on;let fr;function zi(Xe){"__tsDebuggerDisplay"in Xe||Object.defineProperties(Xe,{__tsDebuggerDisplay:{value(kt){return kt=String(kt).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"] Line truncated
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return V(this)}}}e.DebugTypeMapper=Mi;function Vi(Xe){return e.isDebugging?Object.setPrototypeOf(Xe,Mi.prototype):Xe}e.attachDebugPrototypeIfDebug=Vi;function Lr(Xe){return console.log(Wi(Xe))}e.printControlFlowGraph=Lr;function Wi(Xe){let kt=-1;function bn(Ee){return Ee.id||(Ee.id=kt,kt--),Ee.id}let mr;(Ee=>{Ee.lr="─",Ee.ud="│",Ee.dr="╭",Ee.dl="╮",Ee.ul="╯",Ee.ur="╰",Ee.udr="├",Ee.udl="┤",Ee.dlr="┬",Ee.ulr="┴",Ee.udlr="╫"})(mr||(mr={}));let bi;(Ee=>{Ee[Ee.None=0]="None",Ee[Ee.Up=1]="Up",Ee[Ee.Down=2]="Down",Ee[Ee.Left=4]="Left",Ee[Ee.Right=8]="Right",Ee[Ee.UpDown=3]="UpDown",Ee[Ee.LeftRight=12]="LeftRight",Ee[Ee.UpLeft=5]="UpLeft",Ee[Ee.UpRight=9]="UpRight",Ee[Ee.DownLeft=6]="DownLeft",Ee[Ee.DownRight=10]="DownRight",Ee[Ee.UpDownLeft=7]="UpDownLeft",Ee[Ee.UpDownRight=11]="UpDownRight",Ee[Ee.UpLeftRight=13]="UpLeftRight",Ee[Ee.DownLeftRight=14]="DownLeftRight",Ee[Ee.UpDownLeftRight=15]="UpDownLeftRight",Ee[Ee.NoChildren=16]="NoChildren"})(bi||(bi={}));const Si=2032,rs=882,oa=Object.create(null),Wa=[],jn=ut(Xe,new Set);for(const Ee of Wa)Ee.text=kr(Ee.flowNode,Ee.circular),Ve(Ee);const Ys=Et(jn),it=Ct(Ys);return zt(jn,0),ze();function Jt(Ee){return!!(Ee.flags&128)}function le(Ee){return!!(Ee.flags&12)&&!!Ee.antecedent}function mt(Ee){return!!(Ee.flags&Si)}function ne(Ee){return!!(Ee.flags&rs)}function We(Ee){const te=[];for(const Dt of Ee.edges)Dt.source===Ee&&te.push(Dt.target);return te}function rt(Ee){const te=[];for(const Dt of Ee.edges)Dt.target===Ee&&te.push(Dt.source);return te}function ut(Ee,te){const Dt=bn(Ee);let tn=oa[Dt];if(tn&&te.has(Ee))return tn.circular=!0,tn={id:-1,flowNode:Ee,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Wa.push(tn),tn;if(te.add(Ee),!tn)if(oa[Dt]=tn={id:Dt,flowNode:Ee,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Wa.push(tn),le(Ee))for(const Fe of Ee.antecedent)Lt(tn,Fe,te);else mt(Ee)&&Lt(tn,Ee.antecedent,te);return te.delete(Ee),tn}function Lt(Ee,te,Dt){const tn=ut(te,Dt),Fe={source:Ee,target:tn};Ee.edges.push(Fe),tn.edges.push(Fe)}function Ve(Ee){if(Ee.level!==-1)return Ee.level;let te=0;for(const Dt of rt(Ee))te=Math.max(te,Ve(Dt)+1);return Ee.level=te}function Et(Ee){let te=0;for(const Dt of We(Ee))te=Math.max(te,Et(Dt));return te+1}function Ct(Ee){const te=ve(Array(Ee),0);for(const Dt of Wa)te[Dt.level]=Math.max(te[Dt.level],Dt.text.length);return te}function zt(Ee,te){if(Ee.lane===-1){Ee.lane=te,Ee.endLane=te;const Dt=We(Ee);for(let tn=0;tn<Dt.length;tn++){tn>0&&te++;const Fe=Dt[tn];zt(Fe,te),Fe.endLane>Ee.endLane&&(te=Fe.endLane)}Ee.endLane=te}}function nt(Ee){if(Ee&2)return"Start";if(Ee&4)return"Branch";if(Ee&8)return"Loop";if(Ee&16)return"Assignment";if(Ee&32)return"True";if(Ee&64)return"False";if(Ee&128)return"SwitchClause";if(Ee&256)return"ArrayMutation";if(Ee&512)return"Call";if(Ee&1024)return"ReduceLabel";if(Ee&1)return"Unreachable";throw new Error}function en(Ee){const te=Qn(Ee);return FT(te,Ee,!1)}function kr(Ee,te){let Dt=nt(Ee.flags);if(te&&(Dt=`${Dt}#${bn(Ee)}`),Jt(Ee)){const tn=[],{switchStatement:Fe,clauseStart:yt,clauseEnd:Ht}=Ee.node;for(let xr=yt;xr<Ht;xr++){const ir=Fe.caseBlock.clauses[xr];KA(ir)?tn.push("default"):tn.push(en(ir.expression))}Dt+=` (${tn.join(", ")})`}else ne(Ee)&&Ee.node&&(Dt+=` (${en(Ee.node)})`);return te==="circularity"?`Circular(${Dt})`:Dt}function ze(){const Ee=it.length,te=eN(Wa,0,Ht=>Ht.lane)+1,Dt=ve(Array(te),""),tn=it.map(()=>Array(te)),Fe=it.map(()=>ve(Array(te),0));for(const Ht of Wa){tn[Ht.level][Ht.lane]=Ht;const xr=We(Ht);for(let ar=0;ar<xr.length;ar++){const lt=xr[ar];let At=8;lt.lane===Ht.lane&&(At|=4),ar>0&&(At|=1),ar<xr.length-1&&(At|=2),Fe[Ht.level][lt.lane]|=At}xr.length===0&&(Fe[Ht.level][Ht.lane]|=16);const ir=rt(Ht);for(let ar=0;ar<ir.length;ar++){const lt=ir[ar];let At=4;ar>0&&(At|=1),ar<ir.length-1&&(At|=2),Fe[Ht.level-1][lt.lane]|=At}}for(let Ht=0;Ht<Ee;Ht++)for(let xr=0;xr<te;xr++){const ir=Ht>0?Fe[Ht-1][xr]:0,ar=xr>0?Fe[Ht][xr-1]:0;let lt=Fe[Ht][xr];lt||(ir&8&&(lt|=12),ar&2&&(lt|=3),Fe[Ht][xr]=lt)}for(let Ht=0;Ht<Ee;Ht++)for(let xr=0;xr<Dt.length;xr++){const ir=Fe[Ht][xr],ar=ir&4?"─":" ",lt=tn[Ht][xr];lt?(yt(xr,lt.text),Ht<Ee-1&&(yt(xr," "),yt(xr,z(ar,it[Ht]-lt.text.length)))):Ht<Ee-1&&yt(xr,z(ar,it[Ht]+1)),yt(xr,Nt(ir)),yt(xr,ir&8&&Ht<Ee-1&&!tn[Ht+1][xr]?"─":" ")}return`
${Dt.join(`
`)}
`;function yt(Ht,xr){Dt[Ht]+=xr}}function Nt(Ee){switch(Ee){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function ve(Ee,te){if(Ee.fill)Ee.fill(te);else for(let Dt=0;Dt<Ee.length;Dt++)Ee[Dt]=te;return Ee}function z(Ee,te){if(Ee.repeat)return te>0?Ee.repeat(te):"";let Dt="";for(;Dt.length<te;)Dt+=Ee;return Dt}}e.formatControlFlowGraph=Wi})(D||(D={}));var a7=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,YU=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,wte=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Ete=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Dte=/^[a-z0-9-]+$/i,o7=/^(?:0|[1-9]\d*)$/,tM=class zL{constructor(t,r=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:s,build:o}=D.checkDefined(ZU(t),"Invalid version")),D.assert(t>=0,"Invalid argument: major"),D.assert(r>=0,"Invalid argument: minor"),D.assert(i>=0,"Invalid argument: patch");const c=s?Bs(s)?s:s.split("."):Je,_=o?Bs(o)?o:o.split("."):Je;D.assert(Xr(c,u=>wte.test(u)),"Invalid argument: prerelease"),D.assert(Xr(_,u=>Dte.test(u)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=c,this.build=_}static tryParse(t){const r=ZU(t);if(!r)return;const{major:i,minor:s,patch:o,prerelease:c,build:_}=r;return new zL(i,s,o,c,_)}compareTo(t){return this===t?0:t===void 0?1:aa(this.major,t.major)||aa(this.minor,t.minor)||aa(this.patch,t.patch)||Pte(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new zL(this.major+1,0,0);case"minor":return new zL(this.major,this.minor+1,0);case"patch":return new zL(this.major,this.minor,this.patch+1);default:return D.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new zL(r,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return bt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),bt(this.build)&&(t+=`+${this.build.join(".")}`),t}};tM.zero=new tM(0,0,0,["0"]);var Zd=tM;function ZU(e){const t=a7.exec(e);if(!t)return;const[,r,i="0",s="0",o="",c=""]=t;if(!(o&&!YU.test(o))&&!(c&&!Ete.test(c)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:o,build:c}}function Pte(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const s=e[i],o=t[i];if(s===o)continue;const c=o7.test(s),_=o7.test(o);if(c||_){if(c!==_)return c?-1:1;const u=aa(+s,+o);if(u)return u}else{const u=Ou(s,o);if(u)return u}}return aa(e.length,t.length)}var aN=class MLe{constructor(t){this._alternatives=t?D.checkDefined(c7(t),"Invalid range spec."):Je}static tryParse(t){const r=c7(t);if(r){const i=new MLe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new Zd(t)),Mte(t,this._alternatives)}toString(){return zte(this._alternatives)}},KU=/\|\|/,Nte=/\s+/,Ate=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Ite=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Ote=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function c7(e){const t=[];for(let r of e.trim().split(KU)){if(!r)continue;const i=[];r=r.trim();const s=Ite.exec(r);if(s){if(!Fte(s[1],s[2],i))return}else for(const o of r.split(Nte)){const c=Ote.exec(o.trim());if(!c||!Lte(c[1],c[2],i))return}t.push(i)}return t}function nM(e){const t=Ate.exec(e);if(!t)return;const[,r,i="*",s="*",o,c]=t;return{version:new Zd(Lp(r)?0:parseInt(r,10),Lp(r)||Lp(i)?0:parseInt(i,10),Lp(r)||Lp(i)||Lp(s)?0:parseInt(s,10),o,c),major:r,minor:i,patch:s}}function Fte(e,t,r){const i=nM(e);if(!i)return!1;const s=nM(t);return s?(Lp(i.major)||r.push(Gm(">=",i.version)),Lp(s.major)||r.push(Lp(s.minor)?Gm("<",s.version.increment("major")):Lp(s.patch)?Gm("<",s.version.increment("minor")):Gm("<=",s.version)),!0):!1}function Lte(e,t,r){const i=nM(t);if(!i)return!1;const{version:s,major:o,minor:c,patch:_}=i;if(Lp(o))(e==="<"||e===">")&&r.push(Gm("<",Zd.zero));else switch(e){case"~":r.push(Gm(">=",s)),r.push(Gm("<",s.increment(Lp(c)?"major":"minor")));break;case"^":r.push(Gm(">=",s)),r.push(Gm("<",s.increment(s.major>0||Lp(c)?"major":s.minor>0||Lp(_)?"minor":"patch")));break;case"<":case">=":r.push(Lp(c)||Lp(_)?Gm(e,s.with({prerelease:"0"})):Gm(e,s));break;case"<=":case">":r.push(Lp(c)?Gm(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):Lp(_)?Gm(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):Gm(e,s));break;case"=":case void 0:Lp(c)||Lp(_)?(r.push(Gm(">=",s.with({prerelease:"0"}))),r.push(Gm("<",s.increment(Lp(c)?"major":"minor").with({prerelease:"0"})))):r.push(Gm("=",s));break;default:return!1}return!0}function Lp(e){return e==="*"||e==="x"||e==="X"}function Gm(e,t){return{operator:e,operand:t}}function Mte(e,t){i Line truncated
(original error: ${oe.message||oe})`)}s=H,o.length=0,c===void 0&&(c=ai(K,"legend.json")),t.existsSync(K)||t.mkdirSync(K,{recursive:!0});const Se=s==="build"?`.${process.pid}-${++r}`:s==="server"?`.${process.pid}`:"",se=ai(K,`trace${Se}.json`),$=ai(K,`types${Se}.json`);_.push({configFilePath:q,tracePath:se,typesPath:$}),i=t.openSync(se,"w"),Dr=e;const ae={cat:"__metadata",ph:"M",ts:1e3*Go(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...ae},{name:"thread_name",args:{name:"Main"},...ae},{name:"TracingStartedInBrowser",...ae,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`,
`))}e.startTracing=u;function g(){D.assert(Dr,"Tracing is not in progress"),D.assert(!!o.length==(s!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),Dr=void 0,o.length?J(o):_[_.length-1].typesPath=void 0}e.stopTracing=g;function m(H){s!=="server"&&o.push(H)}e.recordType=m,(H=>{H.Parse="parse",H.Program="program",H.Bind="bind",H.Check="check",H.CheckTypes="checkTypes",H.Emit="emit",H.Session="session"})(e.Phase||(e.Phase={}));function h(H,K,q){R("I",H,K,q,'"s":"g"')}e.instant=h;const x=[];function k(H,K,q,Se=!1){Se&&R("B",H,K,q),x.push({phase:H,name:K,args:q,time:1e3*Go(),separateBeginAndEnd:Se})}e.push=k;function w(H){D.assert(x.length>0),F(x.length-1,1e3*Go(),H),x.length--}e.pop=w;function P(){const H=1e3*Go();for(let K=x.length-1;K>=0;K--)F(K,H);x.length=0}e.popAll=P;const A=1e3*10;function F(H,K,q){const{phase:Se,name:se,args:$,time:ae,separateBeginAndEnd:oe}=x[H];oe?(D.assert(!q,"`results` are not supported for events with `separateBeginAndEnd`"),R("E",Se,se,$,void 0,K)):A-ae%A<=K-ae&&R("X",Se,se,{...$,results:q},`"dur":${K-ae}`,ae)}function R(H,K,q,Se,se,$=1e3*Go()){s==="server"&&K==="checkTypes"||(wc("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${H}","cat":"${K}","ts":${$},"name":"${q}"`),se&&t.writeSync(i,`,${se}`),Se&&t.writeSync(i,`,"args":${JSON.stringify(Se)}`),t.writeSync(i,"}"),wc("endTracing"),Mp("Tracing","beginTracing","endTracing"))}function M(H){const K=Qn(H);return K?{path:K.path,start:q(da(K,H.pos)),end:q(da(K,H.end))}:void 0;function q(Se){return{line:Se.line+1,character:Se.character+1}}}function J(H){var K,q,Se,se,$,ae,oe,_e,be,ke,X,we,Ge,je,ce,Oe,he,ot,gt;wc("beginDumpTypes");const de=_[_.length-1].typesPath,De=t.openSync(de,"w"),fe=new Map;t.writeSync(De,"[");const Be=H.length;for(let Re=0;Re<Be;Re++){const Le=H[Re],et=Le.objectFlags,Mt=Le.aliasSymbol??Le.symbol;let nn;if(et&16|Le.flags&2944)try{nn=(K=Le.checker)==null?void 0:K.typeToString(Le)}catch{nn=void 0}let Tn={};if(Le.flags&8388608){const Mi=Le;Tn={indexedAccessObjectType:(q=Mi.objectType)==null?void 0:q.id,indexedAccessIndexType:(Se=Mi.indexType)==null?void 0:Se.id}}let tr={};if(et&4){const Mi=Le;tr={instantiatedType:(se=Mi.target)==null?void 0:se.id,typeArguments:($=Mi.resolvedTypeArguments)==null?void 0:$.map(Vi=>Vi.id),referenceLocation:M(Mi.node)}}let ht={};if(Le.flags&16777216){const Mi=Le;ht={conditionalCheckType:(ae=Mi.checkType)==null?void 0:ae.id,conditionalExtendsType:(oe=Mi.extendsType)==null?void 0:oe.id,conditionalTrueType:((_e=Mi.resolvedTrueType)==null?void 0:_e.id)??-1,conditionalFalseType:((be=Mi.resolvedFalseType)==null?void 0:be.id)??-1}}let on={};if(Le.flags&33554432){const Mi=Le;on={substitutionBaseType:(ke=Mi.baseType)==null?void 0:ke.id,constraintType:(X=Mi.constraint)==null?void 0:X.id}}let fr={};if(et&1024){const Mi=Le;fr={reverseMappedSourceType:(we=Mi.source)==null?void 0:we.id,reverseMappedMappedType:(Ge=Mi.mappedType)==null?void 0:Ge.id,reverseMappedConstraintType:(je=Mi.constraintType)==null?void 0:je.id}}let zi={};if(et&256){const Mi=Le;zi={evolvingArrayElementType:Mi.elementType.id,evolvingArrayFinalType:(ce=Mi.finalArrayType)==null?void 0:ce.id}}let Cs;const Vt=Le.checker.getRecursionIdentity(Le);Vt&&(Cs=fe.get(Vt),Cs||(Cs=fe.size,fe.set(Vt,Cs)));const fi={id:Le.id,intrinsicName:Le.intrinsicName,symbolName:Mt?.escapedName&&Ji(Mt.escapedName),recursionId:Cs,isTuple:et&8?!0:void 0,unionTypes:Le.flags&1048576?(Oe=Le.types)==null?void 0:Oe.map(Mi=>Mi.id):void 0,intersectionTypes:Le.flags&2097152?Le.types.map(Mi=>Mi.id):void 0,aliasTypeArguments:(he=Le.aliasTypeArguments)==null?void 0:he.map(Mi=>Mi.id),keyofType:Le.flags&4194304?(ot=Le.type)==null?void 0:ot.id:void 0,...Tn,...tr,...ht,...on,...fr,...zi,destructuringPattern:M(Le.pattern),firstDeclaration:M((gt=Mt?.declarations)==null?void 0:gt[0]),flags:D.formatTypeFlags(Le.flags).split("|"),display:nn};t.writeSync(De,JSON.stringify(fi)),Re<Be-1&&t.writeSync(De,`,
`)}t.writeSync(De,`]
`),t.closeSync(De),wc("endDumpTypes"),Mp("Dump types","beginDumpTypes","endDumpTypes")}function V(){c&&t.writeFileSync(c,JSON.stringify(_))}e.dumpLegend=V})(V4||(V4={}));var Ly=V4.startTracing,Lw=V4.dumpLegend,cN=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.Swit Line truncated
`,rt=u;continue}u++}return D.assert(Lt!==void 0),k=ut,Lt}function we(ne){const We=u;if(u++,u>=g)return q(p.Unexpected_end_of_text),"";const rt=H(u);switch(u++,rt){case 48:if(u>=g||!wT(H(u)))return"\0";case 49:case 50:case 51:u<g&&R7(H(u))&&u++;case 52:case 53:case 54:case 55:if(u<g&&R7(H(u))&&u++,w|=2048,ne&6){const Ve=parseInt(_.substring(We+1,u),8);return ne&4&&!(ne&32)&&rt!==48?q(p.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,We,u-We,"\\x"+Ve.toString(16).padStart(2,"0")):q(p.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,We,u-We,"\\x"+Ve.toString(16).padStart(2,"0")),String.fromCharCode(Ve)}return _.substring(We,u);case 56:case 57:return w|=2048,ne&6?(ne&4&&!(ne&32)?q(p.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,We,u-We):q(p.Escape_sequence_0_is_not_allowed,We,u-We,_.substring(We,u)),String.fromCharCode(rt)):_.substring(We,u);case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(u<g&&H(u)===123){u-=2;const Ve=Ge(!!(ne&6));return ne&17||(w|=2048,ne&6&&q(p.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,We,u-We)),Ve}for(;u<We+6;u++)if(!(u<g&&NN(H(u))))return w|=2048,ne&6&&q(p.Hexadecimal_digit_expected),_.substring(We,u);w|=1024;const ut=parseInt(_.substring(We+2,u),16),Lt=String.fromCharCode(ut);if(ne&16&&ut>=55296&&ut<=56319&&u+6<g&&_.substring(u,u+2)==="\\u"&&H(u+2)!==123){const Ve=u;let Et=u+2;for(;Et<Ve+6;Et++)if(!NN(H(Et)))return Lt;const Ct=parseInt(_.substring(Ve+2,Et),16);if(Ct>=56320&&Ct<=57343)return u=Et,Lt+String.fromCharCode(Ct)}return Lt;case 120:for(;u<We+4;u++)if(!(u<g&&NN(H(u))))return w|=2048,ne&6&&q(p.Hexadecimal_digit_expected),_.substring(We,u);return w|=4096,String.fromCharCode(parseInt(_.substring(We+2,u),16));case 13:u<g&&H(u)===10&&u++;case 10:case 8232:case 8233:return"";default:return(ne&16||ne&4&&!(ne&8)&&Jg(rt,e))&&q(p.This_character_cannot_be_escaped_in_a_regular_expression,u-2,2),String.fromCharCode(rt)}}function Ge(ne){const We=u;u+=3;const rt=u,ut=_e(1,!1),Lt=ut?parseInt(ut,16):-1;let Ve=!1;return Lt<0?(ne&&q(p.Hexadecimal_digit_expected),Ve=!0):Lt>1114111&&(ne&&q(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,rt,u-rt),Ve=!0),u>=g?(ne&&q(p.Unexpected_end_of_text),Ve=!0):H(u)===125?u++:(ne&&q(p.Unterminated_Unicode_escape_sequence),Ve=!0),Ve?(w|=2048,_.substring(We,u)):(w|=8,Rk(Lt))}function je(){if(u+5<g&&H(u+1)===117){const ne=u;u+=2;const We=oe(4,!1);return u=ne,We}return-1}function ce(){if(J(u+1)===117&&J(u+2)===123){const ne=u;u+=3;const We=_e(1,!1),rt=We?parseInt(We,16):-1;return u=ne,rt}return-1}function Oe(){let ne="",We=u;for(;u<g;){let rt=J(u);if(Jg(rt,e))u+=Nu(rt);else if(rt===92){if(rt=ce(),rt>=0&&Jg(rt,e)){ne+=Ge(!0),We=u;continue}if(rt=je(),!(rt>=0&&Jg(rt,e)))break;w|=1024,ne+=_.substring(We,u),ne+=Rk(rt),u+=6,We=u}else break}return ne+=_.substring(We,u),ne}function he(){const ne=k.length;if(ne>=2&&ne<=12){const We=k.charCodeAt(0);if(We>=97&&We<=122){const rt=em.get(k);if(rt!==void 0)return x=rt}}return x=80}function ot(ne){let We="",rt=!1,ut=!1;for(;;){const Lt=H(u);if(Lt===95){w|=512,rt?(rt=!1,ut=!0):q(ut?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(rt=!0,!wT(Lt)||Lt-48>=ne)break;We+=_[u],u++,ut=!1}return H(u-1)===95&&q(p.Numeric_separators_are_not_allowed_here,u-1,1),We}function gt(){return H(u)===110?(k+="n",w&384&&(k=OA(k)+"n"),u++,10):(k=""+(w&128?parseInt(k.slice(2),2):w&256?parseInt(k.slice(2),8):+k),9)}function de(){for(m=u,w=0;;){if(h=u,u>=g)return x=1;const ne=J(u);if(u===0&&ne===35&&RM(_,u)){if(u=AN(_,u),t)continue;return x=6}switch(ne){case 10:case 13:if(w|=1,t){u++;continue}else return ne===13&&u+1<g&&H(u+1)===10?u+=2:u++,x=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(t){u++;continue}else{for(;u<g&&nm(H(u));)u++;return x=5}case 33:return H(u+1)===61?H(u+2)===61?(u+=3,x=38):(u+=2,x=36):(u++,x=54);case 34:case 39:return k=ke(),x=11;case 96:return x=X(!1);case 37:return H(u+1)===61?(u+=2,x=70):(u++,x=45);case 38:return H(u+1)===38?H(u+2)===61?(u+=3,x=77):(u+=2,x=56):H(u+1)===61?(u+=2,x=74):(u++,x=51);case 40:return u++,x=21;case 41:return u++,x=22;case 42:if(H(u+1)===61)return u+=2,x=67;if(H(u+1)===42)return H(u+2)===61?(u+=3,x=68):(u+=2,x=43);if(u++,A&&(w&32768)===0&&w&1){w|=32768;continue}return x=42;case 43:return H(u+1)===43?(u+=2,x=46):H(u+1)===61?(u+=2,x=65):(u++,x=40);case 44:return u++,x=28;case 45:return H(u+1)===45?(u+=2,x=47):H(u+1)===61?(u+=2,x=66):(u++,x=41);case 46:return wT(H(u+1))?(se(),x=9):H(u+1)===46&&H(u+2)===46?(u+=3,x=26):(u++,x=25);case 47:if(H(u+1)===47){for(u+=2;u<g&&!Qu(H(u));)u++;if(P=Tn(P,_.slice(h,u),AM,h),t)continue;return x=2}if(H(u+1)===42){u+=2;const Et=H(u)===42&&H(u+1)!==47;let Ct=!1,zt=h;for(;u<g;){const nt=H(u);if(nt===42&&H(u+1)===47){u+=2,Ct=!0;break}u++,Qu(nt)&&(zt=u,w|=1)}if(Et&&De()&&(w|=2),P=Tn(P,_.slice(zt,u),IM,zt),Ct||q(p.Asterisk_Slash_expected),t)continue;return Ct||(w|=4),x=3}return H(u+1)===61?(u+=2,x=69):(u++,x=44);case 48:if(u+2<g&&(H(u+1)===88||H(u+1)===120))return u+=2,k=_e(1,!0),k||(q(p.Hexadecimal_digit_expected),k="0"),k="0x"+k,w|=64,x=gt();if(u+2<g&&(H(u+1)===66||H(u+1)===98))return u+=2,k=ot(2),k||(q(p.Binary_digit_expected),k="0"),k="0b"+k,w|=128,x=gt();if(u+2<g&&(H(u+1)===79||H(u+1)===111))return u+=2,k=ot(8),k||(q(p.Octal_digit_expected),k="0"),k="0o"+k,w|=256,x=gt();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return x=se();case 58:return u++,x=59;case 59:return u++,x=27;case 60:if(Zw(_,u)){if(u=Kw(_,u,q),t)continue;return x=7}return H(u+1)===60?H(u+2)===61?(u+=3,x=71):(u+=2,x=48):H(u+1)===61?(u+=2,x= Line truncated
`)),i}function Hc(e,t=!1){return FT(Qn(e),e,t)}function nMe(e){return e.pos}function xD(e,t){return Wh(e,t,nMe,aa)}function fo(e){const t=e.emitNode;return t&&t.flags||0}function Dm(e){const t=e.emitNode;return t&&t.internalFlags||0}var xV=b_(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:Je})),AsyncIterator:new Map(Object.entries({es2015:Je})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:Je})),AsyncIterableIterator:new Map(Object.entries({es2018:Je})),AsyncGenerator:new Map(Object.entries({es2018:Je})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Je})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Je,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:Je})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex", Line truncated
`,HMe=`
`;function G1(e){switch(e.newLine){case 0:return qMe;case 1:case void 0:return HMe}}function Od(e,t=e){return D.assert(t>=e||t===-1),{pos:e,end:t}}function ZR(e,t){return Od(e.pos,t)}function Y2(e,t){return Od(t,e.end)}function Gy(e){const t=fm(e)?Io(e.modifiers,Su):void 0;return t&&!ng(t.end)?Y2(e,t.end):e}function nh(e){if(Vs(e)||ul(e))return Y2(e,e.name.pos);const t=fm(e)?Uo(e.modifiers):void 0;return t&&!ng(t.end)?Y2(e,t.end):Gy(e)}function Eq(e,t){return Od(e,e+Pa(t).length)}function aC(e,t){return Ere(e,e,t)}function KR(e,t,r){return Fd(SA(e,r,!1),SA(t,r,!1),r)}function wre(e,t,r){return Fd(e.end,t.end,r)}function Ere(e,t,r){return Fd(SA(e,r,!1),t.end,r)}function Z5(e,t,r){return Fd(e.end,SA(t,r,!1),r)}function Dq(e,t,r,i){const s=SA(t,r,i);return Lk(r,e.end,s)}function E1e(e,t,r){return Lk(r,e.end,t.end)}function Dre(e,t){return!Fd(e.pos,e.end,t)}function Fd(e,t,r){return Lk(r,e,t)===0}function SA(e,t,r){return ng(e.pos)?-1:Ra(t.text,e.pos,!1,r)}function Pre(e,t,r,i){const s=Ra(r.text,e,!1,i),o=$Me(s,t,r);return Lk(r,o??t,s)}function Nre(e,t,r,i){const s=Ra(r.text,e,!1,i);return Lk(r,e,Math.min(t,s))}function Bf(e,t){return Pq(e.pos,e.end,t)}function Pq(e,t,r){return e<=r.pos&&t>=r.end}function $Me(e,t=0,r){for(;e-- >t;)if(!Xm(r.text.charCodeAt(e)))return e}function Nq(e){const t=Gs(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function TA(e){return Cr(e.declarations,K5)}function K5(e){return Pi(e)&&e.initializer!==void 0}function Aq(e){return e.watch&&Lo(e,"watch")}function Nm(e){e.close()}function ll(e){return e.flags&33554432?e.links.checkFlags:0}function Ld(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&fn(e.declarations,np)||e.flags&32768&&fn(e.declarations,jd)||e.valueDeclaration,i=j0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(ll(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,s=r&2048?256:0;return i|s}return e.flags&4194304?257:0}function c_(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function WD(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function ej(e){return xA(e)===1}function M6(e){return xA(e)!==0}function xA(e){const{parent:t}=e;switch(t?.kind){case 217:return xA(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:s}=t;return i===e&&$y(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:xA(t);case 303:{const o=xA(t.parent);return e===t.name?GMe(o):o}case 304:return e===t.objectAssignmentInitializer?0:xA(t.parent);case 209:return xA(t);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function GMe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return D.assertNever(e)}}function Iq(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!Iq(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function ep(e,t){e.forEach(t),e.clear()}function Y0(e,t,r){const{onDeleteValue:i,onExistingValue:s}=r;e.forEach((o,c)=>{var _;t?.has(c)?s&&s(o,(_=t.get)==null?void 0:_.call(t,c),c):(e.delete(c),i(o,c))})}function kA(e,t,r){Y0(e,t,r);const{createNewValue:i}=r;t?.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function Are(e){if(e.flags&32){const t=Qy(e);return!!t&&xi(t,64)}return!1}function Qy(e){var t;return(t=e.declarations)==null?void 0:t.find(N)}function si(e){return e.flags&3899393?e.objectFlags:0}function tj(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&DO(e.declarations[0])}function Ire({moduleSpecifier:e}){return Za(e)?e.text:Hc(e)}function Oq(e){let t;return ia(e,r=>{im(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(im(r[i])){t=r[i];break}}),t}function cm(e,t){return e.has(t)?!1:(e.add(t),!0)}function R6(e){return N(e)||__(e)||xf(e)}function Fq(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function Sc(e){return e.kind===211||e.kind===212}function Lq(e){return e.kind===211?e.name:(D.assert(e.kind===212),e.argumentExpression)}function nj(e){return e.kind===275||e.kind===279}function UD(e){for(;Sc(e);)e=e.expression;return e}function Ore(e,t){if(Sc(e.parent)&&kq(e))return r(e.parent);function r(i){if(i.kind===211){const s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(qe(i.argumentExpression)||No(i.argumentExpression)){const s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(Sc(i.expression))return r(i.expression);if(qe(i.expression))return t(i.expression)}}function VD(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function QMe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.par Line truncated
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`},MRe={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};`},RRe={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};`},jRe={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
var _, done = false;
for (var i = decorators.length - 1; i >= 0; i--) {
var context = {};
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.unshift(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.unshift(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};`},zRe={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
var useValue = arguments.length > 2;
for (var i = 0; i < initializers.length; i++) {
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
}
return useValue ? value : void 0;
};`},BRe={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};`},Mj={name:"typescript:await",importName:"__await",scoped:!1,text:`
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},JRe={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Mj],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},WRe={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Mj],text:`
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
};`},URe={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};`},VRe={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};`},qRe={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};`},HRe={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();`},$Re={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};`},GRe={name:"typescript:read",importName:"__read",scoped:!1,text:`
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};`},QRe={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};`},XRe={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
var __propKey = (this && this.__propKey) || function (x) {
return typeof x === "symbol" ? x : "".concat(x);
};`},YRe={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};`},ZRe={name:"typescript:values",importName:"__values",scoped:!1,text:`
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};`},KRe={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
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;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};`},Jie={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));`},eje={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});`},K1e={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Jie,eje],priority:2,text:`
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();`},tje={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},nje={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Jie],priority:2,text:`
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};`},rje={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};`},ije={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};`},sje={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
return typeof state === "function" ? receiver === state : state.has(receiver);
};`},aje={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
if (value !== null && value !== void 0) {
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
var dispose, inner;
if (async) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
}
if (dispose === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
if (async) inner = dispose;
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
env.stack.push({ async: true });
}
return value;
};`},oje={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
return function (env) {
function fail(e) {
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
env.hasError = true;
}
var r, s = 0;
function next() {
while (r = env.stack.pop()) {
try {
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
if (r.dispose) {
var result = r.dispose.call(r.value);
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
else s |= 1;
}
catch (e) {
fail(e);
}
}
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
if (env.hasError) throw env.error;
}
return next();
};
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
});`},cje={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:`
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {
return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
});
}
return path;
};`},Rj={name:"typescript:async-super",scoped:!0,text:Z1e`
const ${"_superIndex"} = name => super[name];`},jj={name:"typescript:advanced-async-super",scoped:!0,text:Z1e`
const ${"_superIndex"} = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`};function UA(e,t){return Sa(e)&&qe(e.expression)&&(fo(e.expression)&8192)!==0&&e.expression.escapedText===t}function Jf(e){return e.kind===9}function VA(e){return e.kind===10}function Za(e){return e.kind===11}function Q6(e){return e.kind===12}function xH(e){return e.kind===14}function _C(e){return e.kind===15}function X6(e){return e.kind===16}function kH(e){return e.kind===17}function zj(e){return e.kind===18}function Bj(e){return e.kind===26}function Wie(e){return e.kind===28}function CH(e){return e.kind===40}function wH(e){return e.kind===41}function TO(e){return e.kind===42}function xO(e){return e.kind===54}function Ab(e){return e.kind===58}function Uie(e){return e.kind===59}function Jj(e){return e.kind===29}function Vie(e){return e.kind===39}function qe(e){return e.kind===80}function us(e){return e.kind===81}function Y6(e){return e.kind===95}function Wj(e){return e.kind===90}function qA(e){return e.kind===134}function qie(e){return e.kind===131}function EH(e){return e.kind===135}function Hie(e){return e.kind===148}function Z6(e){return e.kind===126}function $ie(e){return e.kind===128}function Gie(e){return e.kind===164}function Qie(e){return e.kind===129}function HA(e){return e.kind===108}function $A(e){return e.kind===102}function Xie(e){return e.kind===84}function Tf(e){return e.kind===166}function $a(e){return e.kind===167}function Ac(e){return e.kind===168}function ps(e){return e.kind===169}function Su(e){return e.kind===170}function nf(e){return e.kind===171}function Vs(e){return e.kind===172}function Am(e){return e.kind===173}function ul(e){return e.kind===174}function yl(e){return e.kind===175}function Gc(e){return e.kind===176}function jd(e){return e.kind===177}function np(e){return e.kind===178}function K6(e){return e.kind===179}function kO(e){return e.kind===180}function Ib(e){return e.kind===181}function eE(e){return e.kind===182}function hp(e){return e.kind===183}function i0(e){return e.kind===184}function YD(e){return e.kind===185}function ex(e){return e.kind===186}function xf(e){return e.kind===187}function CO(e){return e.kind===188}function tE(e){return e.kind===189}function ZD(e){return e.kind===202}function Uj(e){return e.kind===190}function Vj(e){return e.kind===191}function K1(e){return e.kind===192}function nE(e){return e.kind===193}function tx(e){return e.kind===194}function fC(e){return e.kind===195}function pC(e){return e.kind===196}function GA(e){return e.kind===197}function tS(e){return e.kind===198}function nx(e){return e.kind===199}function dC(e){return e.kind===200}function ev(e){return e.kind===201}function sh(e){return e.kind===205}function DH(e){return e.kind===204}function Yie(e){return e.kind===203}function od(e){return e.kind===206}function tv(e){return e.kind===207}function co(e){return e.kind===208}function u_(e){return e.kind===209}function Ka(e){return e.kind===210}function ri(e){return e.kind===211}function _c(e){return e.kind===212}function Sa(e){return e.kind===213}function rx(e){return e.kind===214}function nS(e){return e.kind===215}function qj(e){return e.kind===216}function kf(e){return e.kind===217}function dc(e){return e.kind===218}function Tc(e){return e.kind===219}function Zie(e){return e.kind===220}function KD(e){return e.kind===221}function rE(e){return e.kind===222}function Ob(e){return e.kind===223}function rS(e){return e.kind===224}function PH(e){return e.kind===225}function Br(e){return e.kind===226}function mC(e){return e.kind===227}function Hj(e){return e.kind===228}function wO(e){return e.kind===229}function zd(e){return e.kind===230}function tu(e){return e.kind===231}function Tu(e){return e.kind===232}function Yy(e){return e.kind===233}function eP(e){return e.kind===234}function tP(e){return e.kind===238}function iE(e){return e.kind===235}function QA(e){return e.kind===236}function eve(e){return e.kind===237}function Kie(e){return e.kind===355}function XA(e){return e.kind===356}function nP(e){return e.kind===239}function ese(e){return e.kind===240}function ca(e){return e.kind===241}function wl(e){return e.kind===243}function NH(e){return e.kind===242}function Ru(e){return e.kind===244}function iS(e){return e.kind===245}function tve(e){return e.kind===246}function AH(e){return e.kind===247}function sS(e){return e.kind===248}function $j(e){return e.kind===249}function EO(e){return e.kind===250}function nve(e){return e.kind===251}function rve(e){return e.kind===252}function Jp(e){return e.kind===253}function tse(e){return e.kind===254}function YA(e){return e.kind===255}function Fb(e){return e.kind===256}function IH(e){return e.kind===257}function gC(e){return e.kind===258}function ive(e){return e.kind===259}function Pi(e){return e.kind===260}function Yu(e){return e.kind===261}function El(e){return e.kind===262}function nu(e){return e.kind===263}function __(e){return e.kind===264}function um(e){return e.kind===265}function ix(e){return e.kind===266}function Vl(e){return e.ki Line truncated
`,Bi)+1)+4;function Hi(Ao){oi||(oi=_i),bg.push(Ao),_i+=Ao.length}for(yt();Av(5););Av(4)&&(Yn=0,_i=0);e:for(;;){switch(te()){case 60:u4(bg),Wu||(Wu=z()),Ls(Fr(_i)),Yn=0,oi=void 0;break;case 4:bg.push(t.getTokenText()),Yn=0,_i=0;break;case 42:const Ao=t.getTokenText();Yn===1?(Yn=2,Hi(Ao)):(D.assert(Yn===0),Yn=1,_i+=Ao.length);break;case 5:D.assert(Yn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const w_=t.getTokenText();oi!==void 0&&_i+w_.length>oi&&bg.push(w_.slice(oi-_i)),_i+=w_.length;break;case 1:break e;case 82:Yn=2,Hi(t.getTokenValue());break;case 19:Yn=2;const Ah=t.getTokenFullStart(),mu=t.getTokenEnd()-1,Tg=W(mu);if(Tg){bm||r2(bg),n2.push(sn(m.createJSDocText(bg.join("")),bm??Bi,Ah)),n2.push(Tg),bg=[],bm=t.getTokenEnd();break}default:Yn=2,Hi(t.getTokenText());break}Yn===2?Ht(!1):yt()}const Xi=bg.join("").trimEnd();n2.length&&Xi.length&&n2.push(sn(m.createJSDocText(Xi),bm??Bi,Wu)),n2.length&&ko&&D.assertIsDefined(Wu,"having parsed tags implies that the end of the comment span should be set");const Do=ko&&po(ko,Vd,S0);return sn(m.createJSDocComment(n2.length?po(n2,Bi,Wu):Xi.length?Xi:void 0,Do),Bi,sc)}function r2(Yn){for(;Yn.length&&(Yn[0]===`
`||Yn[0]==="\r");)Yn.shift()}function u4(Yn){for(;Yn.length;){const oi=Yn[Yn.length-1].trimEnd();if(oi==="")Yn.pop();else if(oi.length<Yn[Yn.length-1].length){Yn[Yn.length-1]=oi;break}else break}}function p3(){for(;;){if(yt(),te()===1)return!0;if(!(te()===5||te()===4))return!1}}function $f(){if(!((te()===5||te()===4)&&Zt(p3)))for(;te()===5||te()===4;)yt()}function i2(){if((te()===5||te()===4)&&Zt(p3))return"";let Yn=t.hasPrecedingLineBreak(),oi=!1,_i="";for(;Yn&&te()===42||te()===5||te()===4;)_i+=t.getTokenText(),te()===4?(Yn=!0,oi=!0,_i=""):te()===42&&(Yn=!1),yt();return oi?_i:""}function Fr(Yn){D.assert(te()===60);const oi=t.getTokenStart();yt();const _i=Bm(void 0),Hi=i2();let Xi;switch(_i.escapedText){case"author":Xi=nw(oi,_i,Yn,Hi);break;case"implements":Xi=Jme(oi,_i,Yn,Hi);break;case"augments":case"extends":Xi=Wme(oi,_i,Yn,Hi);break;case"class":case"constructor":Xi=f4(oi,m.createJSDocClassTag,_i,Yn,Hi);break;case"public":Xi=f4(oi,m.createJSDocPublicTag,_i,Yn,Hi);break;case"private":Xi=f4(oi,m.createJSDocPrivateTag,_i,Yn,Hi);break;case"protected":Xi=f4(oi,m.createJSDocProtectedTag,_i,Yn,Hi);break;case"readonly":Xi=f4(oi,m.createJSDocReadonlyTag,_i,Yn,Hi);break;case"override":Xi=f4(oi,m.createJSDocOverrideTag,_i,Yn,Hi);break;case"deprecated":Vi=!0,Xi=f4(oi,m.createJSDocDeprecatedTag,_i,Yn,Hi);break;case"this":Xi=pW(oi,_i,Yn,Hi);break;case"enum":Xi=Ume(oi,_i,Yn,Hi);break;case"arg":case"argument":case"param":return T0(oi,_i,2,Yn);case"return":case"returns":Xi=GS(oi,_i,Yn,Hi);break;case"template":Xi=R9(oi,_i,Yn,Hi);break;case"type":Xi=rK(oi,_i,Yn,Hi);break;case"typedef":Xi=Vme(oi,_i,Yn,Hi);break;case"callback":Xi=qme(oi,_i,Yn,Hi);break;case"overload":Xi=Nv(oi,_i,Yn,Hi);break;case"satisfies":Xi=pI(oi,_i,Yn,Hi);break;case"see":Xi=zme(oi,_i,Yn,Hi);break;case"exception":case"throws":Xi=Bme(oi,_i,Yn,Hi);break;case"import":Xi=iK(oi,_i,Yn,Hi);break;default:Xi=Vr(oi,_i,Yn,Hi);break}return Xi}function S(Yn,oi,_i,Hi){return Hi||(_i+=oi-Yn),I(_i,Hi.slice(_i))}function I(Yn,oi){const _i=z();let Hi=[];const Xi=[];let Do,Ao=0,w_;function Ah(Iv){w_||(w_=Yn),Hi.push(Iv),Yn+=Iv.length}oi!==void 0&&(oi!==""&&Ah(oi),Ao=1);let mu=te();e:for(;;){switch(mu){case 4:Ao=0,Hi.push(t.getTokenText()),Yn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:D.assert(Ao!==2&&Ao!==3,"whitespace shouldn't come from the scanner while saving comment text");const Iv=t.getTokenText();w_!==void 0&&Yn+Iv.length>w_&&(Hi.push(Iv.slice(w_-Yn)),Ao=2),Yn+=Iv.length;break;case 19:Ao=2;const j9=t.getTokenFullStart(),QS=t.getTokenEnd()-1,z9=W(QS);z9?(Xi.push(sn(m.createJSDocText(Hi.join("")),Do??_i,j9)),Xi.push(z9),Hi=[],Do=t.getTokenEnd()):Ah(t.getTokenText());break;case 62:Ao===3?Ao=2:Ao=3,Ah(t.getTokenText());break;case 82:Ao!==3&&(Ao=2),Ah(t.getTokenValue());break;case 42:if(Ao===0){Ao=1,Yn+=1;break}default:Ao!==3&&(Ao=2),Ah(t.getTokenText());break}Ao===2||Ao===3?mu=Ht(Ao===3):mu=yt()}r2(Hi);const Tg=Hi.join("").trimEnd();if(Xi.length)return Tg.length&&Xi.push(sn(m.createJSDocText(Tg),Do??_i)),po(Xi,_i,t.getTokenEnd());if(Tg.length)return Tg}function W(Yn){const oi=Nn(Ke);if(!oi)return;yt(),$f();const _i=ge(),Hi=[];for(;te()!==20&&te()!==4&&te()!==1;)Hi.push(t.getTokenText()),yt();const Xi=oi==="link"?m.createJSDocLink:oi==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return sn(Xi(_i,Hi.join("")),Yn,t.getTokenEnd())}function ge(){if(S_(te())){const Yn=z();let oi=Ce();for(;Ki(25);)oi=sn(m.createQualifiedName(oi,te()===81?Zo(80,!1):Ce()),Yn);for(;te()===81;)At(),yt(),oi=sn(m.createJSDocMemberName(oi,mc()),Yn);return oi}}function Ke(){if(i2(),te()===19&&yt()===60&&S_(yt())){const Yn=t.getTokenValue();if(_n(Yn))return Yn}}function _n(Yn){return Yn==="link"||Yn==="linkcode"||Yn==="linkplain"}function Vr(Yn,oi,_i,Hi){return sn(m.createJSDocUnknownTag(oi,S(Yn,z(),_i,Hi)),Yn)}function Ls(Yn){Yn&&(ko?ko.push(Yn):(ko=[Yn],Vd=Yn.pos),S0=Yn.end)}function Bo(){return i2(),te()===19?He():void 0}function Sg(){const Yn=Av(23);Yn&&$f();const oi=Av(62),_i=sK();return oi&&bo(62),Yn&&($f(),Xs(64)&&Ku(),dn(24)),{name:_i,isBracketed:Yn}}function xy(Yn){switch(Yn.kind){case 151:return!0;case 188:return xy(Yn.elementType);default:return hp(Yn)&&qe(Yn.typeName)&&Yn.typeName.escapedText==="Object"&&!Yn.typeArguments}}function T0(Yn,oi,_i,Hi){let Xi=Bo(),Do=!Xi;i2();const{name:Ao,isBracketed:w_}=Sg(),Ah=i2();Do&&!Zt(Ke)&&(Xi=Bo());const mu=S(Yn,z(),Hi,Ah),Tg=_4(Xi,Ao,_i,Hi);Tg&&(Xi=Tg,Do=!0);const Iv=_i===1?m.createJSDocPropertyTag(oi,Ao,w_,Xi,Do,mu):m.createJSDocParameterTag(oi,Ao,w_,Xi,Do,mu);return sn(Iv,Yn)}function _4(Yn,oi,_i,Hi){if(Yn&&xy(Yn.type)){const Xi=z();let Do,Ao;for(;Do=Nn(()=>M9(_i,Hi,oi));)Do.kind===341||Do.kind===348?Ao=Gn(Ao,Do):Do.kind===345&&Nt(Do.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ao){const w_=sn(m.createJSDocTypeLiteral(Ao,Yn.type.kind===188),Xi);return sn(m.createJSDocTypeExpression(w_),Xi)}}}function GS(Yn,oi,_i,Hi){bt(ko,Zj)&&ze(oi.pos,t.getTokenStart(),p._0_ Line truncated
* `+pn.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Po&&st(pe,to,Po);return to}}function st(Ne,pe,jt){return Ne.enclosingFile&&Ne.enclosingFile===Qn(jt)?eu(pe,jt):pe}function Tt(Ne,pe,jt){if(bt(Ne)){if(L(pe))if(jt){if(Ne.length>2)return[B(Ne[0],pe),pe.flags&1?KT(O.createKeywordTypeNode(133),3,`... ${Ne.length-2} more elided ...`):O.createTypeReferenceNode(`... ${Ne.length-2} more ...`,void 0),B(Ne[Ne.length-1],pe)]}else return[pe.flags&1?KT(O.createKeywordTypeNode(133),3,"elided"):O.createTypeReferenceNode("...",void 0)];const In=!(pe.flags&64)?Xp():void 0,er=[];let lr=0;for(const Ni of Ne){if(lr++,L(pe)&&lr+2<Ne.length-1){er.push(pe.flags&1?KT(O.createKeywordTypeNode(133),3,`... ${Ne.length-lr} more elided ...`):O.createTypeReferenceNode(`... ${Ne.length-lr} more ...`,void 0));const sa=B(Ne[Ne.length-1],pe);sa&&er.push(sa);break}pe.approximateLength+=2;const qi=B(Ni,pe);qi&&(er.push(qi),In&&aie(qi)&&In.add(qi.typeName.escapedText,[Ni,er.length-1]))}if(In){const Ni=C(pe);pe.flags|=64,In.forEach(qi=>{if(!oie(qi,([sa],[Os])=>It(sa,Os)))for(const[sa,Os]of qi)er[Os]=B(sa,pe)}),Ni()}return er}}function It(Ne,pe){return Ne===pe||!!Ne.symbol&&Ne.symbol===pe.symbol||!!Ne.aliasSymbol&&Ne.aliasSymbol===pe.aliasSymbol}function kn(Ne,pe,jt){const Yt=Sne(Ne)||"x",In=B(Ne.keyType,pe),er=O.createParameterDeclaration(void 0,void 0,Yt,void 0,In,void 0);return jt||(jt=B(Ne.type||Ve,pe)),!Ne.type&&!(pe.flags&2097152)&&(pe.encounteredError=!0),pe.approximateLength+=Yt.length+4,O.createIndexSignature(Ne.isReadonly?[O.createToken(148)]:void 0,[er],jt)}function mn(Ne,pe,jt,Yt){var In;let er,lr;const Ni=JAe(Ne,!0)[0],qi=ur(jt,Ne.declaration,Ni,Ne.typeParameters,Ne.parameters,Ne.mapper);jt.approximateLength+=3,jt.flags&32&&Ne.target&&Ne.mapper&&Ne.target.typeParameters?lr=Ne.target.typeParameters.map(tt=>B(bs(tt,Ne.mapper),jt)):er=Ne.typeParameters&&Ne.typeParameters.map(tt=>hi(tt,jt));const sa=C(jt);jt.flags&=-257;const Os=(bt(Ni,tt=>tt!==Ni[Ni.length-1]&&!!(ll(tt)&32768))?Ne.parameters:Ni).map(tt=>$s(tt,jt,pe===176)),uo=jt.flags&33554432?void 0:Dn(Ne,jt);uo&&Os.unshift(uo),sa();const wa=Gp(jt,Ne);let to=Yt?.modifiers;if(pe===185&&Ne.flags&4){const tt=th(to);to=O.createModifiersFromModifierFlags(tt|64)}const Po=pe===179?O.createCallSignature(er,Os,wa):pe===180?O.createConstructSignature(er,Os,wa):pe===173?O.createMethodSignature(to,Yt?.name??O.createIdentifier(""),Yt?.questionToken,er,Os,wa):pe===174?O.createMethodDeclaration(to,void 0,Yt?.name??O.createIdentifier(""),void 0,er,Os,wa,void 0):pe===176?O.createConstructorDeclaration(to,Os,void 0):pe===177?O.createGetAccessorDeclaration(to,Yt?.name??O.createIdentifier(""),Os,wa,void 0):pe===178?O.createSetAccessorDeclaration(to,Yt?.name??O.createIdentifier(""),Os,void 0):pe===181?O.createIndexSignature(to,Os,wa):pe===317?O.createJSDocFunctionType(Os,wa):pe===184?O.createFunctionTypeNode(er,Os,wa??O.createTypeReferenceNode(O.createIdentifier(""))):pe===185?O.createConstructorTypeNode(to,er,Os,wa??O.createTypeReferenceNode(O.createIdentifier(""))):pe===262?O.createFunctionDeclaration(to,void 0,Yt?.name?ka(Yt.name,qe):O.createIdentifier(""),er,Os,wa,void 0):pe===218?O.createFunctionExpression(to,void 0,Yt?.name?ka(Yt.name,qe):O.createIdentifier(""),er,Os,wa,O.createBlock([])):pe===219?O.createArrowFunction(to,er,Os,wa,void 0,O.createBlock([])):D.assertNever(pe);if(lr&&(Po.typeArguments=O.createNodeArray(lr)),((In=Ne.declaration)==null?void 0:In.kind)===323&&Ne.declaration.parent.kind===339){const tt=Hc(Ne.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(dt=>dt.replace(/^\s+/," ")).join(`
`);KT(Po,3,tt,!0)}return qi?.(),Po}function vr(Ne){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let pe,jt,Yt=!1;const In=Ne.tracker,er=Ne.trackedSymbols;Ne.trackedSymbols=void 0;const lr=Ne.encounteredError;return Ne.tracker=new Vae(Ne,{...In.inner,reportCyclicStructureError(){Ni(()=>In.reportCyclicStructureError())},reportInaccessibleThisError(){Ni(()=>In.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Ni(()=>In.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(Os){Ni(()=>In.reportLikelyUnsafeImportRequiredError(Os))},reportNonSerializableProperty(Os){Ni(()=>In.reportNonSerializableProperty(Os))},reportPrivateInBaseOfClassExpression(Os){Ni(()=>In.reportPrivateInBaseOfClassExpression(Os))},trackSymbol(Os,uo,wa){return(pe??(pe=[])).push([Os,uo,wa]),!1},moduleResolverHost:Ne.tracker.moduleResolverHost},Ne.tracker.moduleResolverHost),{startRecoveryScope:qi,finalizeBoundary:sa,markError:Ni,hadError:()=>Yt};function Ni(Os){Yt=!0,Os&&(jt??(jt=[])).push(Os)}function qi(){const Os=pe?.length??0,uo=jt?.length??0;return()=>{Yt=!1,pe&&(pe.length=Os),jt&&(jt.length=uo)}}function sa(){return Ne.tracker=In,Ne.trackedSymbols=er,Ne.encounteredError=lr,jt?.forEach(Os=>Os()),Yt?!1:(pe?.forEach(([Os,uo,wa])=>Ne.tracker.trackSymbol(Os,uo,wa)),!0)}}function ur(Ne,pe,jt,Yt,In,er){const lr=$p(Ne);let Ni,qi;const sa=Ne.enclosingDeclaration,Os=Ne.mapper;if(er&&(Ne.mapper=er),Ne.enclosingDeclaration&&pe){let uo=function(wa,to){D.assert(Ne.enclosingDeclaration);let Po;$r(Ne.enclosingDeclaration).fakeScopeForSignatureDeclaration===wa?Po=Ne.enclosingDeclaration:Ne.enclosingDeclaration.parent&&$r(Ne.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===wa&&(Po=Ne.enclosingDeclaration.parent),D.assertOptionalNode(Po,ca);const tt=Po?.locals??Oa();let dt,pn;if(to((Kn,Ft)=>{if(Po){const Rt=tt.get(Kn);Rt?pn=Gn(pn,{name:Kn,oldSymbol:Rt}):dt=Gn(dt,Kn)}tt.set(Kn,Ft)}),Po)return function(){vt(dt,Ft=>tt.delete(Ft)),vt(pn,Ft=>tt.set(Ft.name,Ft.oldSymbol))};{const Kn=O.createBlock(Je);$r(Kn).fakeScopeForSignatureDeclaration=wa,Kn.locals=tt,Fo(Kn,Ne.enclosingDeclaration),Ne.enclosingDeclaration=Kn}};Ni=bt(jt)?uo("params",wa=>{if(jt)for(let to=0;to<jt.length;to++){const Po=jt[to],tt=In?.[to];In&&tt!==Po?(wa(Po.escapedName,ne),tt&&wa(tt.escapedName,ne)):vt(Po.declarations,dt=>{if(ps(dt)&&Yr(dt.name))return pn(dt.name),!0;return;function pn(Ft){vt(Ft.elements,Rt=>{switch(Rt.kind){case 232:return;case 208:return Kn(Rt);default:return D.assertNever(Rt)}})}function Kn(Ft){if(Yr(Ft.name))return pn(Ft.name);const Rt=Gr(Ft);wa(Rt.escapedName,Rt)}})||wa(Po.escapedName,Po)}}):void 0,Ne.flags&4&&bt(Yt)&&(qi=uo("typeParams",wa=>{for(const to of Yt??Je){const Po=go(to,Ne).escapedText;wa(Po,to.symbol)}}))}return()=>{Ni?.(),qi?.(),lr(),Ne.enclosingDeclaration=sa,Ne.mapper=Os}}function Dn(Ne,pe){if(Ne.thisParameter)return $s(Ne.thisParameter,pe);if(Ne.declaration&&Nr(Ne.declaration)){const jt=Wk(Ne.declaration);if(jt&&jt.typeExpression)return O.createParameterDeclaration(void 0,void 0,"this",void 0,B(a(pe,jt.typeExpression),pe))}}function hn(Ne,pe,jt){const Yt=C(pe);pe.flags&=-513;const In=O.createModifiersFromModifierFlags(the(Ne)),er=go(Ne,pe),lr=$x(Ne),Ni=lr&&B(lr,pe);return Yt(),O.createTypeParameterDeclaration(In,er,jt,Ni)}function jr(Ne,pe,jt){return pe&&a(jt,pe)===Ne&&he.tryReuseExistingTypeNode(jt,pe)||B(Ne,jt)}function hi(Ne,pe,jt=If(Ne)){const Yt=jt&&jr(jt,gK(Ne),pe);return hn(Ne,pe,Yt)}function _s(Ne,pe){const jt=Ne.kind===2||Ne.kind===3?O.createToken(131):void 0,Yt=Ne.kind===1||Ne.kind===3?Or(O.createIdentifier(Ne.parameterName),16777216):O.createThisTypeNode(),In=Ne.type&&B(Ne.type,pe);return O.createTypePredicateNode(jt,Yt,In)}function Zr(Ne){const pe=jc(Ne,169);if(pe)return pe;if(!V0(Ne))return jc(Ne,341)}function $s(Ne,pe,jt){const Yt=Zr(Ne),In=Tr(Ne),er=oT(pe,Yt,In,Ne),lr=!(pe.flags&8192)&&jt&&Yt&&fm(Yt)?Sn(O_(Yt),O.cloneNode):void 0,qi=Yt&&Kh(Yt)||ll(Ne)&32768?O.createToken(26):void 0,sa=ya(Ne,Yt,pe),uo=Yt&&V9(Yt)||ll(Ne)&16384?O.createToken(58):void 0,wa=O.createParameterDeclaration(lr,qi,sa,uo,er,void 0);return pe.approximateLength+=sl(Ne).length+3,wa}function ya(Ne,pe,jt){return pe&&pe.name?pe.name.kind===80?Or(O.cloneNode(pe.name),16777216):pe.name.kind===166?Or(O.cloneNode(pe.name.right),16777216):Yt(pe.name):sl(Ne);function Yt(In){return er(In);function er(lr){jt.tracker.canTrackSymbol&&$a(lr)&&$me(lr)&&Ho(lr.expression,jt.enclosingDeclaration,jt);let Ni=Bn(lr,er,void 0,void 0,er);return co(Ni)&&(Ni=O.updateBindingElement(Ni,Ni.dotDotDotToken,Ni.propertyName,Ni.name,void 0)),lc(Ni)||(Ni=O.cloneNode(Ni)),Or(Ni,16777217)}}}function Ho(Ne,pe,jt){if(!jt.tracker.canTrackSymbol)return;const Yt=Sf(Ne),In=ht(pe,Yt.escapedText,1160127,void 0,!0);if(In)jt.tracker.trackSymbol(In,pe,111551);else{const er=ht(Yt,Yt.escapedText,1160127,void 0,!0);er&&jt.tracker.trackSymbol(er,pe,111551)}}function ra(Ne,pe,jt,Yt){return pe.tracker.trackSymbol(Ne,pe.enclosingDeclaration,jt),V_ Line truncated
* `+_a.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Fi),Wo(),pe.enclosingDeclaration=vc}function gs(Wt,ci,Fi){const Ai=qd(Wt),yi=Bm(Wt),$o=Sn(yi,t_=>hi(t_,pe)),Ma=mu(Ai),va=Kt(Ma)?Qa(Ma):void 0,_a=an(Jo(Ai),t_=>ate(t_,va)),Wo=vye(0,Ai,va,179),vc=vye(1,Ai,va,180),Ff=l9e(Ai,va),H_=Kt(Ma)?[O.createHeritageClause(96,vi(Ma,t_=>bye(t_,111551)))]:void 0;wi(O.createInterfaceDeclaration(void 0,A0(Wt,ci),$o,H_,[...Ff,...vc,...Wo,..._a]),Fi)}function ea(Wt){let ci=Ms(Np(Wt).values());const Fi=wo(Wt);if(Fi!==Wt){const Ai=new Set(ci);for(const yi of Np(Fi).values())Pp(dl(yi))&111551||Ai.add(yi);ci=Ms(Ai)}return Cr(ci,Ai=>Uv(Ai)&&Q_(Ai.escapedName,99))}function _o(Wt){return Xr(ea(Wt),ci=>!(Pp(dl(ci))&111551))}function Va(Wt,ci,Fi){const Ai=ea(Wt),yi=Dw(Ai,va=>va.parent&&va.parent===Wt?"real":"merged"),$o=yi.get("real")||Je,Ma=yi.get("merged")||Je;if(Kt($o)){const va=A0(Wt,ci);D1($o,va,Fi,!!(Wt.flags&67108880))}if(Kt(Ma)){const va=Qn(pe.enclosingDeclaration),_a=A0(Wt,ci),Wo=O.createModuleBlock([O.createExportDeclaration(void 0,!1,O.createNamedExports(vi(Cr(Ma,vc=>vc.escapedName!=="export="),vc=>{var Ff,H_;const t_=Ji(vc.escapedName),Xc=A0(vc,t_),Hu=vc.declarations&&yd(vc);if(va&&(Hu?va!==Qn(Hu):!bt(vc.declarations,Tm=>Qn(Tm)===va))){(H_=(Ff=pe.tracker)==null?void 0:Ff.reportNonlocalAugmentation)==null||H_.call(Ff,va,Wt,vc);return}const Qp=Hu&&FS(Hu,!0);mi(Qp||vc);const v_=Qp?A0(Qp,Ji(Qp.escapedName)):Xc;return O.createExportSpecifier(!1,t_===v_?void 0:v_,t_)})))]);wi(O.createModuleDeclaration(void 0,O.createIdentifier(_a),Wo,32),0)}}function Jc(Wt,ci,Fi){wi(O.createEnumDeclaration(O.createModifiersFromModifierFlags(A0e(Wt)?4096:0),A0(Wt,ci),Sn(Cr(Jo(Tr(Wt)),Ai=>!!(Ai.flags&8)),Ai=>{const yi=Ai.declarations&&Ai.declarations[0]&&nv(Ai.declarations[0])?cye(Ai.declarations[0]):void 0;return O.createEnumMember(Ji(Ai.escapedName),yi===void 0?void 0:typeof yi=="string"?O.createStringLiteral(yi):O.createNumericLiteral(yi))})),Fi)}function Vm(Wt,ci,Fi,Ai){const yi=ga(Wt,0);for(const $o of yi){const Ma=mn($o,262,pe,{name:O.createIdentifier(Fi)});wi(l(pe,Ma,Ay($o)),Ai)}if(!(ci.flags&1536&&ci.exports&&ci.exports.size)){const $o=Cr(Jo(Wt),Uv);D1($o,Fi,Ai,!0)}}function Ay(Wt){if(Wt.declaration&&Wt.declaration.parent){if(Br(Wt.declaration.parent)&&Ol(Wt.declaration.parent)===5)return Wt.declaration.parent;if(Pi(Wt.declaration.parent)&&Wt.declaration.parent.parent)return Wt.declaration.parent.parent}return Wt.declaration}function D1(Wt,ci,Fi,Ai){if(Kt(Wt)){const $o=Dw(Wt,Xc=>!Kt(Xc.declarations)||bt(Xc.declarations,Hu=>Qn(Hu)===Qn(pe.enclosingDeclaration))?"local":"remote").get("local")||Je;let Ma=uS.createModuleDeclaration(void 0,O.createIdentifier(ci),O.createModuleBlock([]),32);Fo(Ma,er),Ma.locals=Oa(Wt),Ma.symbol=Wt[0].parent;const va=lr;lr=[];const _a=uo;uo=!1;const Wo={...pe,enclosingDeclaration:Ma},vc=pe;pe=Wo,Pn(Oa($o),Ai,!0),pe=vc,uo=_a;const Ff=lr;lr=va;const H_=Sn(Ff,Xc=>Ic(Xc)&&!Xc.isExportEquals&&qe(Xc.expression)?O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Xc.expression,O.createIdentifier("default"))])):Xc),t_=Xr(H_,Xc=>xi(Xc,32))?Sn(H_,Rt):H_;Ma=O.updateModuleDeclaration(Ma,Ma.modifiers,Ma.name,O.createModuleBlock(t_)),wi(Ma,Fi)}}function Uv(Wt){return!!(Wt.flags&2887656)||!(Wt.flags&4194304||Wt.escapedName==="prototype"||Wt.valueDeclaration&&Na(Wt.valueDeclaration)&&N(Wt.valueDeclaration.parent))}function q_(Wt){const ci=vi(Wt,Fi=>{const Ai=pe.enclosingDeclaration;pe.enclosingDeclaration=Fi;let yi=Fi.expression;if(tc(yi)){if(qe(yi)&&ii(yi)==="")return $o(void 0);let Ma;if({introducesError:Ma,node:yi}=Qt(yi,pe),Ma)return $o(void 0)}return $o(O.createExpressionWithTypeArguments(yi,Sn(Fi.typeArguments,Ma=>he.tryReuseExistingTypeNode(pe,Ma)||B(a(pe,Ma),pe))));function $o(Ma){return pe.enclosingDeclaration=Ai,Ma}});if(ci.length===Wt.length)return ci}function Vv(Wt,ci,Fi){var Ai,yi;const $o=(Ai=Wt.declarations)==null?void 0:Ai.find(N),Ma=pe.enclosingDeclaration;pe.enclosingDeclaration=$o||Ma;const va=Bm(Wt),_a=Sn(va,jh=>hi(jh,pe)),Wo=Ap(qd(Wt)),vc=mu(Wo),Ff=$o&&LD($o),H_=Ff&&q_(Ff)||vi(w_(Wo),Fmt),t_=Tr(Wt),Xc=!!((yi=t_.symbol)!=null&&yi.valueDeclaration)&&N(t_.symbol.valueDeclaration),Hu=Xc?Ao(t_):Ve,Qp=[...Kt(vc)?[O.createHeritageClause(96,Sn(vc,jh=>Omt(jh,Hu,ci)))]:[],...Kt(H_)?[O.createHeritageClause(119,H_)]:[]],v_=hpt(Wo,vc,Jo(Wo)),Tm=Cr(v_,jh=>{const BI=jh.valueDeclaration;return!!BI&&!(ou(BI)&&us(BI.name))}),Iy=bt(v_,jh=>{const BI=jh.valueDeclaration;return!!BI&&ou(BI)&&us(BI.name)})?[O.createPropertyDeclaration(void 0,O.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Je,I0=an(Tm,jh=>Yt(jh,!1,vc[0])),P1=an(Cr(Jo(t_),jh=>!(jh.flags&4194304)&&jh.escapedName!=="prototype"&&!Uv(jh)),jh=>Yt(jh,!0,Hu)),RU=!Xc&&!!Wt.valueDeclaration&&Nr(Wt.valueDeclaration)&&!bt(ga(t_,1))?[O.createConstructorDeclaration(O.createModifiersFromModifierFlags(2),[],void 0)]:vye(1,t_,Hu,176),Lmt=l9e(Wo,vc[0]);pe.enclosingDeclaration=Ma,wi(l(pe,O.createClassDeclaration(void 0,ci,_a,Qp,[...Lmt,...P1,...RU Line truncated
`),St(e.createStringLiteral(i),t)}function loe(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getEmitResolver(),u=e.getCompilerOptions(),g=ao(u),m=ef(u),h=!!u.experimentalDecorators,x=u.emitDecoratorMetadata?_oe(e):void 0,k=e.onEmitNode,w=e.onSubstituteNode;e.onEmitNode=zc,e.onSubstituteNode=kp,e.enableSubstitution(211),e.enableSubstitution(212);let P,A,F,R,M,J=0,V;return H;function H(Ce){return Ce.kind===308?K(Ce):q(Ce)}function K(Ce){return t.createBundle(Ce.sourceFiles.map(q))}function q(Ce){if(Ce.isDeclarationFile)return Ce;P=Ce;const Z=Se(Ce,De);return ry(Z,e.readEmitHelpers()),P=void 0,Z}function Se(Ce,Z){const pt=R,Xt=M;se(Ce);const yn=Z(Ce);return R!==pt&&(M=Xt),R=pt,yn}function se(Ce){switch(Ce.kind){case 307:case 269:case 268:case 241:R=Ce,M=void 0;break;case 263:case 262:if(xi(Ce,128))break;Ce.name?z(Ce):D.assert(Ce.kind===263||xi(Ce,2048));break}}function $(Ce){return Se(Ce,ae)}function ae(Ce){return Ce.transformFlags&1?de(Ce):Ce}function oe(Ce){return Se(Ce,_e)}function _e(Ce){switch(Ce.kind){case 272:case 271:case 277:case 278:return ke(Ce);default:return ae(Ce)}}function be(Ce){const Z=Gs(Ce);if(Z===Ce||Ic(Ce))return!1;if(!Z||Z.kind!==Ce.kind)return!0;switch(Ce.kind){case 272:if(D.assertNode(Z,Uc),Ce.importClause!==Z.importClause||Ce.attributes!==Z.attributes)return!0;break;case 271:if(D.assertNode(Z,xu),Ce.name!==Z.name||Ce.isTypeOnly!==Z.isTypeOnly||Ce.moduleReference!==Z.moduleReference&&(o_(Ce.moduleReference)||o_(Z.moduleReference)))return!0;break;case 278:if(D.assertNode(Z,jl),Ce.exportClause!==Z.exportClause||Ce.attributes!==Z.attributes)return!0;break}return!1}function ke(Ce){if(be(Ce))return Ce.transformFlags&1?Bn(Ce,$,e):Ce;switch(Ce.kind){case 272:return Ht(Ce);case 271:return Nn(Ce);case 277:return lt(Ce);case 278:return At(Ce);default:D.fail("Unhandled ellided statement")}}function X(Ce){return Se(Ce,we)}function we(Ce){if(!(Ce.kind===278||Ce.kind===272||Ce.kind===273||Ce.kind===271&&Ce.moduleReference.kind===283))return Ce.transformFlags&1||xi(Ce,32)?de(Ce):Ce}function Ge(Ce){return Z=>Se(Z,pt=>je(pt,Ce))}function je(Ce,Z){switch(Ce.kind){case 176:return Xe(Ce);case 172:return Wi(Ce,Z);case 177:return rs(Ce,Z);case 178:return oa(Ce,Z);case 174:return bi(Ce,Z);case 175:return Bn(Ce,$,e);case 240:return Ce;case 181:return;default:return D.failBadSyntaxKind(Ce)}}function ce(Ce){return Z=>Se(Z,pt=>Oe(pt,Ce))}function Oe(Ce,Z){switch(Ce.kind){case 303:case 304:case 305:return $(Ce);case 177:return rs(Ce,Z);case 178:return oa(Ce,Z);case 174:return bi(Ce,Z);default:return D.failBadSyntaxKind(Ce)}}function he(Ce){return Su(Ce)?void 0:$(Ce)}function ot(Ce){return Ca(Ce)?void 0:$(Ce)}function gt(Ce){if(!Su(Ce)&&!(F6(Ce.kind)&28895)&&!(A&&Ce.kind===95))return Ce}function de(Ce){if(ts(Ce)&&xi(Ce,128))return t.createNotEmittedStatement(Ce);switch(Ce.kind){case 95:case 90:return A?void 0:Ce;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(Ce);case 270:return;case 264:return t.createNotEmittedStatement(Ce);case 263:return et(Ce);case 231:return Mt(Ce);case 298:return Mi(Ce);case 233:return Vi(Ce);case 210:return fe(Ce);case 176:case 172:case 174:case 177:case 178:case 175:return D.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Wa(Ce);case 218:return jn(Ce);case 219:return Ys(Ce);case 169:return it(Ce);case 217:return ne(Ce);case 216:case 234:return We(Ce);case 238:return ut(Ce);case 213:return Lt(Ce);case 214:return Ve(Ce);case 215:return Et(Ce);case 235:return rt(Ce);case 266:return en(Ce);case 243:return Jt(Ce);case 260:return mt(Ce);case 267:return tn(Ce);case 271:return Nn(Ce);case 285:return Ct(Ce);case 286:return zt(Ce);default:return Bn(Ce,$,e)}}function De(Ce){const Z=x_(u,"alwaysStrict")&&!(uu(Ce)&&m>=5)&&!Ad(Ce);return t.updateSourceFile(Ce,G$(Ce.statements,oe,e,0,Z))}function fe(Ce){return t.updateObjectLiteralExpression(Ce,rr(Ce.properties,ce(Ce),Ui))}function Be(Ce){let Z=0;bt(nG(Ce,!0,!0))&&(Z|=1);const pt=Yg(Ce);return pt&&Dl(pt.expression).kind!==106&&(Z|=64),q1(h,Ce)&&(Z|=2),rA(h,Ce)&&(Z|=4),An(Ce)?Z|=8:Ei(Ce)?Z|=32:dn(Ce)&&(Z|=16),Z}function Re(Ce){return!!(Ce.transformFlags&8192)}function Le(Ce){return ad(Ce)||bt(Ce.typeParameters)||bt(Ce.heritageClauses,Re)||bt(Ce.members,Re)}function et(Ce){const Z=Be(Ce),pt=g<=1&&!!(Z&7);if(!Le(Ce)&&!q1(h,Ce)&&!An(Ce))return t.updateClassDeclaration(Ce,rr(Ce.modifiers,gt,Ca),Ce.name,void 0,rr(Ce.heritageClauses,$,yp),rr(Ce.members,Ge(Ce),b));pt&&e.startLexicalEnvironment();const Xt=pt||Z&8;let yn=Xt?rr(Ce.modifiers,ot,$t):rr(Ce.mod Line truncated
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function woe(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),_=e.getEmitHost(),u=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=We,e.onEmitNode=ne,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);const m=[],h=[],x=[],k=[];let w,P,A,F,R,M,J;return og(e,V);function V(ze){if(ze.isDeclarationFile||!(kD(ze,o)||ze.transformFlags&8388608))return ze;const Nt=wf(ze);w=ze,M=ze,P=m[Nt]=tG(e,ze),A=t.createUniqueName("exports"),h[Nt]=A,F=k[Nt]=t.createUniqueName("context");const ve=H(P.externalImports),z=K(ze,ve),Ee=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,A),t.createParameterDeclaration(void 0,void 0,F)],void 0,z),te=FO(t,ze,_,o),Dt=t.createArrayLiteralExpression(Sn(ve,Fe=>Fe.name)),tn=Or(t.updateSourceFile(ze,St(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,te?[te,Dt,Ee]:[Dt,Ee]))]),ze.statements)),2048);return o.outFile||Oie(tn,z,Fe=>!Fe.scoped),J&&(x[Nt]=J,J=void 0),w=void 0,P=void 0,A=void 0,F=void 0,R=void 0,M=void 0,tn}function H(ze){const Nt=new Map,ve=[];for(const z of ze){const Ee=cE(t,z,w,_,c,o);if(Ee){const te=Ee.text,Dt=Nt.get(te);Dt!==void 0?ve[Dt].externalImports.push(z):(Nt.set(te,ve.length),ve.push({name:Ee,externalImports:[z]}))}}return ve}function K(ze,Nt){const ve=[];r();const z=x_(o,"alwaysStrict")||uu(w),Ee=t.copyPrologue(ze.statements,ve,z,$);ve.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(F,t.createPropertyAccessExpression(F,"id")))]))),at(P.externalHelpersImportDeclaration,$,ts);const te=rr(ze.statements,$,ts,Ee);Kr(ve,R),H0(ve,i());const Dt=q(ve),tn=ze.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Fe=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",se(Dt,Nt)),t.createPropertyAssignment("execute",t.createFunctionExpression(tn,void 0,void 0,void 0,[],void 0,t.createBlock(te,!0)))],!0);return ve.push(t.createReturnStatement(Fe)),t.createBlock(ve,!0)}function q(ze){if(!P.hasExportStarsToExportValues)return;if(!bt(P.exportedNames)&&P.exportedFunctions.size===0&&P.exportSpecifiers.size===0){let Ee=!1;for(const te of P.externalImports)if(te.kind===278&&te.exportClause){Ee=!0;break}if(!Ee){const te=Se(void 0);return ze.push(te),te.name}}const Nt=[];if(P.exportedNames)for(const Ee of P.exportedNames)e0(Ee)||Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ee),t.createTrue()));for(const Ee of P.exportedFunctions)xi(Ee,2048)||(D.assert(!!Ee.name),Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ee.name),t.createTrue())));const ve=t.createUniqueName("exportedNames");ze.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ve,void 0,void 0,t.createObjectLiteralExpression(Nt,!0))])));const z=Se(ve);return ze.push(z),z.name}function Se(ze){const Nt=t.createUniqueName("exportStar"),ve=t.createIdentifier("m"),z=t.createIdentifier("n"),Ee=t.createIdentifier("exports");let te=t.createStrictInequality(z,t.createStringLiteral("default"));return ze&&(te=t.createLogicalAnd(te,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(ze,"hasOwnProperty"),void 0,[z])))),t.createFunctionDeclaration(void 0,void 0,Nt,void 0,[t.createParameterDeclaration(void 0,void 0,ve)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ee,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(z)]),ve,t.createBlock([Or(t.createIfStatement(te,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ee,z),t.createElementAccessExpression(ve,z)))),1)])),t.createExpressionStatement(t.createCallExpression(A,void 0,[Ee]))],!0))}function se(ze,Nt){const ve=[];for(const z of Nt){const Ee=vt(z.externalImports,tn=>uP(t,tn,w)),te=Ee?t.getGeneratedNameForNode(Ee):t.createUniqueName(""),Dt=[];for(const tn of z.externalImports){const Fe=uP(t,tn,w);switch(tn.kind){case 272:if(!tn.importClause)break;case 271:D.assert(Fe!==void 0),Dt.push(t.createExpressionStatement(t.createAssignment(Fe,te))),xi(tn,32)&&Dt.push(t.createExpressionStatement(t.createCallExpression(A,void 0,[t.createStringLiteral(ii(Fe)),te])));break;case 278:if(D.assert(Fe!==void 0),tn.exportClause)if(Bd(tn.exportClause)){const yt=[];for(const Ht of tn.exportClause.elements)yt.push(t.createPropertyAssignment(t.createStringLiteral(bb(Ht.name)),t.createElementAccessExpression(te,t.createStringLiteral(bb(Ht.propertyName||Ht.name)))));Dt.push(t.c Line truncated
`)),(i.createHash??My)(r);function _(g){return Js(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(_).join(`
`):g.messageText}function u(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=ui(t.resolvedPath)),`${jy(I_(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function iWe(e,t,r){return(t.createHash??My)(PSe(e,r))}function BG(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.state;if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const c=QJe(t,o);t.getBuildInfo=()=>rWe($Je(c)),t=void 0,i=void 0,o=void 0;const _=UG(c,s);return _.state=c,_.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,_.getAllDependencies=R=>cg.getAllDependencies(c,D.checkDefined(c.program),R),_.getSemanticDiagnostics=F,_.getDeclarationDiagnostics=P,_.emit=k,_.releaseProgram=()=>XJe(c),e===0?_.getSemanticDiagnosticsOfNextAffectedFile=A:e===1?(_.getSemanticDiagnosticsOfNextAffectedFile=A,_.emitNextAffectedFile=h,_.emitBuildInfo=u):Da(),_;function u(R,M){if(D.assert(wP(c)),DSe(c)){const J=c.program.emitBuildInfo(R||pa(r,r.writeFile),M);return c.buildInfoEmitPending=!1,J}return FG}function g(R,M,J,V,H){var K,q,Se,se;D.assert(wP(c));let $=SSe(c,M,r);const ae=Jb(c.compilerOptions);let oe=H?8:J?ae&56:ae;if(!$){if(c.compilerOptions.outFile){if(c.programEmitPending&&(oe=lB(c.programEmitPending,c.seenProgramEmit,J,H),oe&&($=c.program)),!$&&((K=c.emitDiagnosticsPerFile)!=null&&K.size)){const ke=c.seenProgramEmit||0;if(!(ke&RG(H))){c.seenProgramEmit=RG(H)|ke;const X=[];return c.emitDiagnosticsPerFile.forEach(we=>Kr(X,we)),{result:{emitSkipped:!0,diagnostics:X},affected:c.program}}}}else{const ke=YJe(c,J,H);if(ke)({affectedFile:$,emitKind:oe}=ke);else{const X=ZJe(c,H);if(X)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(X.affectedFile.resolvedPath,X.seenKind|RG(H)),{result:{emitSkipped:!0,diagnostics:X.diagnostics},affected:X.affectedFile}}}if(!$){if(H||!DSe(c))return;const ke=c.program,X=ke.emitBuildInfo(R||pa(r,r.writeFile),M);return c.buildInfoEmitPending=!1,{result:X,affected:ke}}}let _e;oe&7&&(_e=0),oe&56&&(_e=_e===void 0?1:void 0);const be=H?{emitSkipped:!0,diagnostics:c.program.getDeclarationDiagnostics($===c.program?void 0:$,M)}:c.program.emit($===c.program?void 0:$,x(R,V),M,_e,V,void 0,!0);if($!==c.program){const ke=$;c.seenAffectedFiles.add(ke.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const X=((q=c.seenEmittedFiles)==null?void 0:q.get(ke.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(ke.resolvedPath,oe|X);const we=((Se=c.affectedFilesPendingEmit)==null?void 0:Se.get(ke.resolvedPath))||ae,Ge=cB(we,oe|X);Ge?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(ke.resolvedPath,Ge):(se=c.affectedFilesPendingEmit)==null||se.delete(ke.resolvedPath),be.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(ke.resolvedPath,be.diagnostics)}else c.changedFilesSet.clear(),c.programEmitPending=c.changedFilesSet.size?cB(ae,oe):c.programEmitPending?cB(c.programEmitPending,oe):void 0,c.seenProgramEmit=oe|(c.seenProgramEmit||0),m(be.diagnostics),c.buildInfoEmitPending=!0;return{result:be,affected:$}}function m(R){let M;R.forEach(J=>{if(!J.file)return;let V=M?.get(J.file.resolvedPath);V||(M??(M=new Map)).set(J.file.resolvedPath,V=[]),V.push(J)}),M&&(c.emitDiagnosticsPerFile=M)}function h(R,M,J,V){return g(R,M,J,V,!1)}function x(R,M){return D.assert(wP(c)),tp(c.compilerOptions)?(J,V,H,K,q,Se)=>{var se,$,ae;if(ku(J))if(c.compilerOptions.outFile){if(c.compilerOptions.composite){const _e=oe(c.outSignature,void 0);if(!_e)return Se.skippedDtsWrite=!0;c.outSignature=_e}}else{D.assert(q?.length===1);let _e;if(!M){const be=q[0],ke=c.fileInfos.get(be.resolvedPath);if(ke.signature===be.version){const X=zG(c.program,be,V,r,Se);(se=Se?.diagnostics)!=null&&se.length||(_e=X),X!==be.version&&(r.storeSignatureInfo&&(c.signatureInfo??(c.signatureInfo=new Map)).set(be.resolvedPath,1),c.affectedFiles&&(($=c.oldSignatures)==null?void 0:$.get(be.resolvedPath))===void 0&&(c.oldSignatures??(c.oldSignatures=new Map)).set(be.resolvedPath,ke.signature||!1),ke.signature=X)}}if(c.compilerOptions.composite){const be=q[0].resolvedPath;if(_e=oe((ae=c.emitSignatures)==null?void 0:ae.get(be),_e),!_e)return Se.skippedDtsWrite=!0;(c.emitSignatures??(c.emitSignatures=new Map)).set(be,_e)}}R?R(J,V,H,K,q,Se):r.writeFile?r.writeFile(J,V,H,K,q,Se):c.program.writeFile(J,V,H,K,q,Se);function oe(_e,be){const ke=!_e||Js(_e)?_e:_e[0];if(be??(be=iWe(V,r,Se)),be===ke){if(_e===ke)return;Se?Se.differsOnlyInMap=!0:Se={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=J;return be}}:R||pa(r,r.writeFile)}function k(R,M,J,V,H){D.assert(wP(c)),e===1&&rce(c,R);const K=LG(_,R,M,J);if(K)return K;if(!R)if(e===1){let Se=[],se=!1,$,ae=[],oe;for(;oe=h(M,J,V,H);)se=se||oe.result.emitSkipped,$=Kr($,oe.result.diagnostics),ae=Kr(ae,oe.result.emittedFiles),Se=Kr(Se,oe.result.sourceMaps);return{emitSkipped:se,diagnostics:$|| Line truncated
`,s.forEach(h=>{const[x,k]=h,w=Math.log(k)*Math.LOG10E+1|0,P=w<u?" ".repeat(u-w):"",A=jSe(x,t.getCurrentDirectory());m+=`${P}${k} ${A}
`}),m}function YG(e){return!!e.state}function lWe(e,t){const r=e.getCompilerOptions();r.explainFiles?ZG(YG(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&vt(e.getSourceFiles(),i=>{t(i.fileName)})}function ZG(e,t){var r,i;const s=e.getFileIncludeReasons(),o=c=>Fk(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${EP(c,o)}`),(r=s.get(c.path))==null||r.forEach(_=>t(` ${nQ(e,_,o).messageText}`)),(i=KG(c,e.getCompilerOptionsForFile(c),o))==null||i.forEach(_=>t(` ${_.messageText}`))}function KG(e,t,r){var i;let s;if(e.path!==e.resolvedPath&&(s??(s=[])).push(na(void 0,p.File_is_output_of_project_reference_source_0,EP(e.originalFileName,r))),e.redirectInfo&&(s??(s=[])).push(na(void 0,p.File_redirects_to_file_0,EP(e.redirectInfo.redirectTarget,r))),dp(e))switch(PC(e,t)){case 99:e.packageJsonScope&&(s??(s=[])).push(na(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,EP(qa(e.packageJsonLocations),r)));break;case 1:e.packageJsonScope?(s??(s=[])).push(na(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,EP(qa(e.packageJsonLocations),r))):(i=e.packageJsonLocations)!=null&&i.length&&(s??(s=[])).push(na(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return s}function eQ(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;const s=e.getCanonicalFileName(t),o=ui(Ds(i.fileName,e.getCurrentDirectory())),c=Ea(i.configFileSpecs.validatedFilesSpec,_=>e.getCanonicalFileName(Ds(_,o))===s);return c!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[c]:void 0}function tQ(e,t){var r,i;const s=e.getCompilerOptions().configFile;if(!((r=s?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;const o=oc(t,".json"),c=ui(Ds(s.fileName,e.getCurrentDirectory())),_=e.useCaseSensitiveFileNames(),u=Ea((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,g=>{if(o&&!pc(g,".json"))return!1;const m=qq(g,c,"files");return!!m&&Q1(`(${m})$`,_).test(t)});return u!==-1?s.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[u]:void 0}function nQ(e,t,r){var i,s;const o=e.getCompilerOptions();if(gS(t)){const c=w8(e,t),_=CP(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let u;switch(D.assert(CP(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:CP(c)?u=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:c.text===hb?u=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:u=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:D.assert(!c.packageId),u=p.Referenced_via_0_from_file_1;break;case 5:u=c.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:D.assert(!c.packageId),u=p.Library_referenced_via_0_from_file_1;break;default:D.assertNever(t)}return na(void 0,u,_,EP(c.file,r),c.packageId&&U2(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return na(void 0,p.Root_file_specified_for_compilation);const c=Ds(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(eQ(e,c))return na(void 0,p.Part_of_files_list_in_tsconfig_json);const u=tQ(e,c);return Js(u)?na(void 0,p.Matched_by_include_pattern_0_in_1,u,EP(o.configFile,r)):na(void 0,u?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,m=D.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return na(void 0,o.outFile?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,EP(m.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case 8:{const h=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,U2(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,U2(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return na(void 0,...h)}case 6:{if(t.index!==void 0)return na(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const h=cj(ao(o)),x=h?[p.Default_library_for_target_0,h]:[p.Default_library];return na(void 0,...x)}default:D.assertN Line truncated
`)));return}r.set(m,!0),s.push(u);const h=PP(e,u,m);if(h&&h.projectReferences)for(const x of h.projectReferences){const k=SF(e,x.path);_(k,g||x.circular)}s.pop(),i.set(m,!0),(o||(o=[])).push(u)}}function SB(e){return e.buildOrder||mWe(e)}function mWe(e){const t=VSe(e,e.rootNames.map(s=>SF(e,s)));e.resolvedConfigFilePaths.clear();const r=new Set(bF(t).map(s=>l0(e,s))),i={onDeleteValue:Ha};return Y0(e.configFileCache,r,i),Y0(e.projectStatus,r,i),Y0(e.builderPrograms,r,i),Y0(e.diagnostics,r,i),Y0(e.projectPendingBuild,r,i),Y0(e.projectErrorsReported,r,i),Y0(e.buildInfoCache,r,i),Y0(e.outputTimeStamps,r,i),Y0(e.lastCachedPackageJsonLookups,r,i),e.watch&&(Y0(e.allWatchedConfigFiles,r,{onDeleteValue:Nm}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{r.has(o)||s.projects.delete(o)}),s.close()}),Y0(e.allWatchedWildcardDirectories,r,{onDeleteValue:s=>s.forEach(Jd)}),Y0(e.allWatchedInputFiles,r,{onDeleteValue:s=>s.forEach(Nm)}),Y0(e.allWatchedPackageJsonFiles,r,{onDeleteValue:s=>s.forEach(Nm)})),e.buildOrder=t}function qSe(e,t,r){const i=t&&SF(e,t),s=SB(e);if(bE(s))return s;if(i){const c=l0(e,i);if(Ea(s,u=>l0(e,u)===c)===-1)return}const o=i?VSe(e,[i]):s;return D.assert(!bE(o)),D.assert(!r||i!==void 0),D.assert(!r||o[o.length-1]===i),r?o.slice(0,o.length-1):o}function HSe(e){e.cache&&Nce(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:u,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:h}=k8(r,x=>Lm(e,x),(...x)=>s.call(t,...x));e.readFileWithCache=h,t.getSourceFile=m,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:u,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function Nce(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:_}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o?.clear(),c?.clear(),_?.clear(),e.cache=void 0}function $Se(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function GSe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function QSe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&zce(e,p.Starting_compilation_in_watch_mode),HSe(e),bF(SB(e)).forEach(i=>e.projectPendingBuild.set(l0(e,i),0)),t&&t.throwIfCancellationRequested()}var Ace=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Ace||{});function XSe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function gWe(e,t,r,i,s){let o=!0;return{kind:1,project:t,projectPath:r,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{nTe(e,i,r),o=!1},done:()=>(o&&nTe(e,i,r),wc("SolutionBuilder::Timestamps only updates"),XSe(e,r))}}function hWe(e,t,r,i,s,o,c){let _=0,u,g;return{kind:0,project:t,projectPath:r,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>h(Vo),getProgram:()=>h(A=>A.getProgramOrUndefined()),getSourceFile:A=>h(F=>F.getSourceFile(A)),getSourceFiles:()=>x(A=>A.getSourceFiles()),getOptionsDiagnostics:A=>x(F=>F.getOptionsDiagnostics(A)),getGlobalDiagnostics:A=>x(F=>F.getGlobalDiagnostics(A)),getConfigFileParsingDiagnostics:()=>x(A=>A.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(A,F)=>x(R=>R.getSyntacticDiagnostics(A,F)),getAllDependencies:A=>x(F=>F.getAllDependencies(A)),getSemanticDiagnostics:(A,F)=>x(R=>R.getSemanticDiagnostics(A,F)),getSemanticDiagnosticsOfNextAffectedFile:(A,F)=>h(R=>R.getSemanticDiagnosticsOfNextAffectedFile&&R.getSemanticDiagnosticsOfNextAffectedFile(A,F)),emit:(A,F,R,M,J)=>A||M?h(V=>{var H,K;return V.emit(A,F,R,M,J||((K=(H=e.host).getCustomTransformers)==null?void 0:K.call(H,t)))}):(P(0,R),w(F,R,J)),done:m};function m(A,F,R){return P(3,A,F,R),wc("SolutionBuilder::Projects built"),XSe(e,r)}function h(A){return P(0),u&&A(u)}function x(A){return h(A)||Je}function k(){var A,F,R;if(D.assert(u===void 0),e.options.dry){bp(e,p.A_non_dry_build_would_build_project_0,t),g=1,_=2;return}if(e.options.verbose&&bp(e,p.Building_project_0,t),s.fileNames.length===0){TF(e,r,mx(s)),g=0,_=2;return}const{host:M,compilerHost:J}=e;if(e.projectCompilerOptions=s.options,(A=e.moduleResolutionCache)==null||A.update(s.options),(F=e.typeReferenceDirectiveResolutionCache)==null||F.update(s.options),u=M.createProgram(s.fileNames,s.options,J,yWe(e,r,s),mx(s),s.projectReferences),e.watch){const V=(R=e.moduleResolutionCache)==null?void 0:R.getPackageJsonInfoCache().getInternalMap();e.lastC Line truncated
* ${_}`).join("")),0}function Mce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,$Se(e,t),GSe(e,t,r),HSe(e)}function TB(e,t,r){e.reportFileChangeDetected=!0,Mce(e,t,r),sTe(e,250,!0)}function sTe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(wWe,t,"timerToBuildInvalidatedProject",e,r))}function wWe(e,t,r){wc("SolutionBuilder::beforeBuild");const i=EWe(t,r);wc("SolutionBuilder::afterBuild"),Mp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&_Te(t,i)}function EWe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),zce(e,p.File_change_detected_Starting_incremental_compilation));let r=0;const i=SB(e),s=Ice(e,i,!1);if(s)for(s.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=YSe(e,i,!1);if(!o)break;if(o.kind!==1&&(t||r===5)){sTe(e,100,!1);return}ZSe(e,o,i).done(),o.kind!==1&&r++}return Nce(e),i}function aTe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,dQ(e,t,()=>TB(e,r,2),2e3,i?.watchOptions,ju.ConfigFile,t))}function oTe(e,t,r){Yz(t,r?.options,e.allWatchedExtendedConfigFiles,(i,s)=>dQ(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>TB(e,c,2))},2e3,r?.watchOptions,ju.ExtendedConfigFile),i=>Lm(e,i))}function cTe(e,t,r,i){e.watch&&uF(Cce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(s,o)=>e.watchDirectory(s,c=>{var _;_F({watchedDirPath:Lm(e,s),fileOrDirectory:c,fileOrDirectoryPath:Lm(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((_=dWe(e,r))==null?void 0:_.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:u=>e.writeLog(u),toPath:u=>Lm(e,u)})||TB(e,r,1)},o,i?.watchOptions,ju.WildcardDirectory,t))}function Rce(e,t,r,i){e.watch&&kA(Cce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:s=>dQ(e,s,()=>TB(e,r,0),250,i?.watchOptions,ju.SourceFile,t),onDeleteValue:Nm})}function jce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||kA(Cce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:s=>dQ(e,s,()=>TB(e,r,0),2e3,i?.watchOptions,ju.PackageJson,t),onDeleteValue:Nm})}function DWe(e,t){if(e.watchAllProjectsPending){wc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of bF(t)){const i=l0(e,r),s=PP(e,r,i);aTe(e,r,i,s),oTe(e,i,s),s&&(cTe(e,r,i,s),Rce(e,r,i,s),jce(e,r,i,s))}wc("SolutionBuilder::afterWatcherCreation"),Mp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function PWe(e){ep(e.allWatchedConfigFiles,Nm),ep(e.allWatchedExtendedConfigFiles,Jd),ep(e.allWatchedWildcardDirectories,t=>ep(t,Jd)),ep(e.allWatchedInputFiles,t=>ep(t,Nm)),ep(e.allWatchedPackageJsonFiles,t=>ep(t,Nm))}function lTe(e,t,r,i,s){const o=pWe(e,t,r,i,s);return{build:(c,_,u,g)=>rTe(o,c,_,u,g),clean:c=>iTe(o,c),buildReferences:(c,_,u,g)=>rTe(o,c,_,u,g,!0),cleanReferences:c=>iTe(o,c,!0),getNextInvalidatedProject:c=>(QSe(o,c),Ice(o,SB(o),!1)),getBuildOrder:()=>SB(o),getUpToDateStatusOfProject:c=>{const _=SF(o,c),u=l0(o,_);return Lce(o,PP(o,_,u),u)},invalidateProject:(c,_)=>Mce(o,c,_||0),close:()=>PWe(o)}}function f_(e,t){return Fk(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function bp(e,t,...r){e.host.reportSolutionBuilderStatus($c(t,...r))}function zce(e,t,...r){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,$c(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function gQ({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function TF(e,t,r){gQ(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function uTe(e,t){TF(e,t,[e.configFileCache.get(t)])}function _Te(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let s=0,o=[];bE(t)?(fTe(e,t.buildOrder),gQ(e,t.circularDiagnostics),r&&(s+=pB(t.circularDiagnostics)),r&&(o=[...o,...dB(t.circularDiagnostics)])):(t.forEach(c=>{const _=l0(e,c);e.projectErrorsReported.has(_)||gQ(e,i.get(_)||Je)}),r&&i.forEach(c=>s+=pB(c)),r&&i.forEach(c=>[...o,...dB(c)])),e.watch?zce(e,QG(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function fTe(e,t){e.options.verbose&&bp(e,p.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+f_(e,r)).join(""))}function NWe(e,t,r){switch(r.type){case 5:return bp(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,f_(e,t),f_(e,r.outOfDateOutputFileName),f_(e,r.newerInputFileName));case 6:return bp(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,f_(e,t),f_(e,r.outOfDateOutputFileName),f_(e,r.newerProjectName));case 3:return bp(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,f_(e,t),f_(e,r.missingOutputFileName));case 4:return bp(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,f_(e,t),f_(e,r.fileName));case 7:return bp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,f_(e,t),f_(e,r.buildInfoFile));case 8:return bp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,f_(e,t),f_(e,r.buildInfoFile));case 9:return bp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,f_(e,t),f_(e,r.buildInfoFile));case 10:return bp(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,f_(e,t),f_(e,r.buildInfoFile),f_(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return bp(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,f_(e,t),f_(e,r.newestInputFileName||""),f_(e,r.oldestOutputFileName||""));break;case 2:return bp(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,f_(e,t));case 15:return bp(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,f_(e,t));case 11:return bp(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,f_(e,t),f_(e,r.upstreamProjectName));case 12:return bp(e,r.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,f_(e,t),f_(e,r.upstreamProjectName));case 0:return bp(e,p.Project_0_is_out_of_date_because_1,f_(e,t),r.reason);case 14:return bp(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,f_(e,t),r.version,dr);case 17:return bp(e,p.Project_0_is_being_forcibly_rebuilt,f_(e,t))}}function hQ(e,t,r){e.options.verbose&&NWe(e,t,r)}var Bce=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(Bce||{});function AWe(e){const t=IWe();return vt(e.getSourceFiles(),r=>{const i=OWe(e,r),s=Qm(r).length;t.set(i,t.get(i)+s)}),t}function IWe(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function OWe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const r=t.path;return Kc(r,$q)?"TypeScript":Kc(r,HD)?"JavaScript":oc(r,".json")?"JSON":"Other"}function yQ(e,t,r){return xB(e,r)?vE(e,!0):t}function pTe(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function xB(e,t){return!t||typeof t.pretty>"u"?pTe(e):t.pretty}function dTe(e){return e.options.all?ff(Fm.concat(TC),(t,r)=>Pw(t.name,r.name)):Cr(Fm.concat(TC),t=>!!t.showInSimplifiedHelpView)}function vQ(e){e.write(Wf(p.Version_0,dr)+e.newLine)}function bQ(e){if(!pTe(e))return{bold:m=>m,blue:m=>m,blueBackground:m=>m,brightWhite:m=>m};function r(m){return`\x1B[1m${m}\x1B[22m`}const i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),s=e.getEnvironmentVariable("WT_SESSION"),o=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function c(m){return i&&!s&&!o?g(m):`\x1B[94m${m}\x1B[39m`}const _=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function u(m){return _?`\x1B[48;5;68m${m}\x1B[39;49m`:`\x1B[44m${m}\x1B[39;49m`}function g(m){return`\x1B[97m${m}\x1B[39m`}return{bold:r,blue:c,brightWhite:g,blueBackground:u}}function mTe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function FWe(e,t,r,i){var s;const o=[],c=bQ(e),_=mTe(t),u=w(t),g=typeof t.defaultValueDescription=="object"?Wf(t.defaultValueDescription):h(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),m=((s=e.getWidthOfTerminal)==null?void 0:s.call(e))??0;if(m>=80){let P="";t.description&&(P=Wf(t.description)),o.push(...k(_,P,r,i,m,!0),e.newLine),x(u,t)&&(u&&o.push(...k(u.valueType,u.possibleValues,r,i,m,!1),e.newLine),g&&o.push(...k(Wf(p.default_Colon),g,r,i,m,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(c.blue(_),e.newLine),t.description){const P=Wf(t.description);o.push(P)}if(o.push(e.newLine),x(u,t)){if(u&&o.push(`${u.valueType} ${u.possibleValues}`),g){u&&o.push(e.newLine);const P=Wf(p.default_Colon);o.push(`${P} ${g}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function h(P,A){return P!==void 0&&typeof A=="object"?Ms(A.entries()). Line truncated
`);return}const r=[];r.push({name:"Projects in scope",value:bF(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(o=>{o.name=`Aggregate ${o.name}`,r.push(o)}),U4((o,c)=>{TQ(o)&&r.push({name:`${s(o)} time`,value:c,type:0})}),pM(),f7(),t.clear(),NTe(Mc,r);function i(o){const c=cM(o);c&&r.push({name:s(o),value:c,type:1})}function s(o){return o.replace("SolutionBuilder::","")}}function DTe(e,t){return e===Mc&&(t.diagnostics||t.extendedDiagnostics)}function PTe(e,t){return e===Mc&&t.generateTrace}function Hce(e,t,r){DTe(e,t)&&f7(e),PTe(e,t)&&Ly(r?"build":"project",t.generateTrace,t.configFilePath)}function TQ(e){return Ts(e,"SolutionBuilder::")}function xQ(e,t,r){var i;const s=t.getCompilerOptions();PTe(e,s)&&((i=Dr)==null||i.stopTracing());let o;if(DTe(e,s)){o=[];const g=e.getMemoryUsage?e.getMemoryUsage():-1;_("Files",t.getSourceFiles().length);const m=AWe(t);if(s.extendedDiagnostics)for(const[A,F]of m.entries())_("Lines of "+A,F);else _("Lines",Ro(m.values(),(A,F)=>A+F,0));_("Identifiers",t.getIdentifierCount()),_("Symbols",t.getSymbolCount()),_("Types",t.getTypeCount()),_("Instantiations",t.getInstantiationCount()),g>=0&&c({name:"Memory used",value:g,type:2},!0);const h=fM(),x=h?mT("Program"):0,k=h?mT("Bind"):0,w=h?mT("Check"):0,P=h?mT("Emit"):0;if(s.extendedDiagnostics){const A=t.getRelationCacheSizes();_("Assignability cache size",A.assignable),_("Identity cache size",A.identity),_("Subtype cache size",A.subtype),_("Strict subtype cache size",A.strictSubtype),h&&U4((F,R)=>{TQ(F)||u(`${F} time`,R,!0)})}else h&&(u("I/O read",mT("I/O Read"),!0),u("I/O write",mT("I/O Write"),!0),u("Parse time",x,!0),u("Bind time",k,!0),u("Check time",w,!0),u("Emit time",P,!0));h&&u("Total time",x+k+w+P,!1),NTe(e,o),h?r?(U4(A=>{TQ(A)||uM(A)}),lM(A=>{TQ(A)||_M(A)})):pM():e.write(p.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
`)}function c(g,m){o.push(g),m&&r?.addAggregateStatistic(g)}function _(g,m){c({name:g,value:m,type:1},!0)}function u(g,m,h){c({name:g,value:m,type:0},h)}}function NTe(e,t){let r=0,i=0;for(const s of t){s.name.length>r&&(r=s.name.length);const o=ATe(s);o.length>i&&(i=o.length)}for(const s of t)e.write(`${s.name}:`.padEnd(r+2)+ATe(s).toString().padStart(i)+e.newLine)}function ATe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:D.assertNever(e.type)}}function BWe(e,t,r,i){const s=e.getCurrentDirectory(),o=ba(ai(s,"tsconfig.json"));if(e.fileExists(o))t($c(p.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,sae(r,i,e.newLine));const c=[e.newLine,...SQ(e,"Created a new tsconfig.json with:")];c.push(iae(r,e.newLine)+e.newLine+e.newLine),c.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const _ of c)e.write(_)}}function fh(e,t=!0){return{type:e,reportFallback:t}}var ITe=fh(void 0,!1),OTe=fh(void 0,!1),P8=fh(void 0,!0);function $ce(e,t){const r=x_(e,"strictNullChecks");return{serializeTypeOfDeclaration:m,serializeReturnTypeForSignature:x,serializeTypeOfExpression:g,serializeTypeOfAccessor:u,tryReuseExistingTypeNode(fe,Be){if(t.canReuseTypeNode(fe,Be))return s(fe,Be)}};function i(fe,Be,Re=Be){return Be===void 0?void 0:t.markNodeReuse(fe,Be.flags&16?Be:O.cloneNode(Be),Re??Be)}function s(fe,Be){const{finalizeBoundary:Re,startRecoveryScope:Le,hadError:et,markError:Mt}=t.createRecoveryBoundary(fe),nn=at(Be,Tn,Rn);if(!Re())return;return fe.approximateLength+=Be.end-Be.pos,nn;function Tn(Vt){if(et())return Vt;const fi=Le(),Mi=Sie(Vt)?t.enterNewScope(fe,Vt):void 0,Vi=Cs(Vt);return Mi?.(),et()?Rn(Vt)&&!eE(Vt)?(fi(),t.serializeExistingTypeNode(fe,Vt)):Vt:Vi?t.markNodeReuse(fe,Vi,Vt):void 0}function tr(Vt){const fi=cA(Vt);switch(fi.kind){case 183:return zi(fi);case 186:return fr(fi);case 199:return ht(fi);case 198:const Mi=fi;if(Mi.operator===143)return on(Mi)}return at(Vt,Tn,Rn)}function ht(Vt){const fi=tr(Vt.objectType);if(fi!==void 0)return O.updateIndexedAccessTypeNode(Vt,fi,at(Vt.indexType,Tn,Rn))}function on(Vt){D.assertEqual(Vt.operator,143);const fi=tr(Vt.type);if(fi!==void 0)return O.updateTypeOperatorNode(Vt,fi)}function fr(Vt){const{introducesError:fi,node:Mi}=t.trackExistingEntityName(fe,Vt.exprName);if(!fi)return O.updateTypeQueryNode(Vt,Mi,rr(Vt.typeArguments,Tn,Rn));const Vi=t.serializeTypeName(fe,Vt.exprName,!0);if(Vi)return t.markNodeReuse(fe,Vi,Vt.exprName)}function zi(Vt){if(t.canReuseTypeNode(fe,Vt)){const{introducesError:fi,node:Mi}=t.trackExistingEntityName(fe,Vt.typeName),Vi=rr(Vt.typeArguments,Tn,Rn);if(fi){const Lr=t.serializeTypeName(fe,Vt.typeName,!1,Vi);if(Lr)return t.markNodeReuse(fe,Lr,Vt.typeName)}else{const Lr=O.updateTypeReferenceNode(Vt,Mi,Vi);return t.markNodeReuse(fe,Lr,Vt)}}}function Cs(Vt){var fi;if(oS(Vt))return at(Vt.type,Tn,Rn);if(lse(Vt)||Vt.kind===319)return O.createKeywordTypeNode(133);if(use(Vt))return O.createKeywordTypeNode(159);if(sP(Vt))return O.createUnionTypeNode([at(Vt.type,Tn,Rn),O.createLiteralTypeNode(O.createNull())]);if(OH(Vt))return O.createUnionTypeNode([at(Vt.type,Tn,Rn),O.createKeywordTypeNode(157)]);if(Qj(Vt))return at(Vt.type,Tn);if(Xj(Vt))return O.createArrayTypeNode(at(Vt.type,Tn,Rn));if(vC(Vt))return O.createTypeLiteralNode(Sn(Vt.jsDocPropertyTags,kt=>{const bn=at(qe(kt.name)?kt.name:kt.name.right,Tn,qe),mr=t.getJsDocPropertyOverride(fe,Vt,kt);return O.createPropertySignature(void 0,bn,kt.isBracketed||kt.typeExpression&&OH(kt.typeExpression.type)?O.createToken(58):void 0,mr||kt.typeExpression&&at(kt.typeExpression.type,Tn,Rn)||O.createKeywordTypeNode(133))}));if(hp(Vt)&&qe(Vt.typeName)&&Vt.typeName.escapedText==="")return ni(O.createKeywordTypeNode(133),Vt);if((Yy(Vt)||hp(Vt))&&wR(Vt))return O.createTypeLiteralNode([O.createIndexSignature(void 0,[O.createParameterDeclaration(void 0,void 0,"x",void 0,at(Vt.typeArguments[0],Tn,Rn))],at(Vt.typeArguments[1],Tn,Rn))]);if(aP(Vt))if(P6(Vt)){let kt;return O.createConstructorTypeNode(void 0,rr(Vt.typeParameters,Tn,Ac),vi(Vt.parameters,(bn,mr)=>bn.name&&qe(bn.name)&&bn.name.escapedText==="new"?(kt=bn.type,void 0):O.createParameterDeclaration(void 0,Lr(bn),t.markNodeReuse(fe,O.createIdentifier(Wi(bn,mr)),bn),O.cloneNode(bn.questionToken),at(bn.type,Tn,Rn),void 0)),at(kt||Vt.type,Tn,Rn)||O.createKeywordTypeNode(133))}else return O.createFunctionTypeNode(rr(Vt.typeParameters,Tn,Ac),Sn(Vt.parameters,(kt,bn)=>O.createParameterDeclaration(void 0,Lr(kt),t.markNodeReuse(fe,O.createIdentifier(Wi(kt,bn)),kt),O.cloneNode(kt.questionToken),at(kt.type,Tn,Rn),void 0)),at(Vt.type,Tn,Rn)||O.createKeywordTypeNode(133));if(GA(Vt))return t.canReuseTypeNode(fe,Vt)||Mt(),Vt;if(Ac(Vt)){const{node:kt}=t.trackExistingEntityName(fe,Vt.name);return O.updateTypeParameterDeclaration(Vt,rr(Vt.modifiers,Tn,Ca),kt,at(Vt.constraint,Tn,Rn),at(Vt.default,Tn,Rn))}if(nx(Vt)){const kt=ht(Vt);return kt||(Mt(),Vt)}if(hp(Vt)){const Line truncated
`;function N8(e){return RTe+e.replace(/\n/g,RTe)}function hS(e){return N8(JSON.stringify(e,void 0,2))}function jTe(e,t){return new Zd(G3(t,`ts${sr}`)||G3(t,"latest")).compareTo(e.version)<=0}function zTe(e){return QD.has(e)?"node":e}function JWe(e,t){const r=VO(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function WWe(e,t){var r;const i=VO(t,s=>e.readFile(s));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function UWe(e,t,r,i,s,o,c,_,u,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=vi(r,J=>{const V=ba(J);if(ey(V))return V});const h=[];c.include&&F(c.include,"Explicitly included types");const x=c.exclude||[];if(!g.types){const J=new Set(r.map(ui));J.add(i),J.forEach(V=>{R(V,"bower.json","bower_components",h),R(V,"package.json","node_modules",h)})}if(c.disableFilenameBasedTypeAcquisition||M(r),_){const J=Fy(_.map(zTe),Yv,Ou);F(J,"Inferred typings from unresolved imports")}for(const J of x)m.delete(J)&&t&&t(`Typing for ${J} is in exclude list, will be ignored.`);o.forEach((J,V)=>{const H=u.get(V);m.get(V)===!1&&H!==void 0&&jTe(J,H)&&m.set(V,J.typingLocation)});const k=[],w=[];m.forEach((J,V)=>{J?w.push(J):k.push(V)});const P={cachedTypingPaths:w,newTypingNames:k,filesToWatch:h};return t&&t(`Finished typings discovery:${hS(P)}`),P;function A(J){m.has(J)||m.set(J,!1)}function F(J,V){t&&t(`${V}: ${JSON.stringify(J)}`),vt(J,A)}function R(J,V,H,K){const q=ai(J,V);let Se,se;e.fileExists(q)&&(K.push(q),Se=VO(q,_e=>e.readFile(_e)).config,se=an([Se.dependencies,Se.devDependencies,Se.optionalDependencies,Se.peerDependencies],Fp),F(se,`Typing names in '${q}' dependencies`));const $=ai(J,H);if(K.push($),!e.directoryExists($))return;const ae=[],oe=se?se.map(_e=>ai($,_e,V)):e.readDirectory($,[".json"],void 0,void 0,3).filter(_e=>{if(xl(_e)!==V)return!1;const be=Lu(ba(_e)),ke=be[be.length-3][0]==="@";return ke&&Ig(be[be.length-4])===H||!ke&&Ig(be[be.length-3])===H});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(oe)}`);for(const _e of oe){const be=ba(_e),X=VO(be,Ge=>e.readFile(Ge)).config;if(!X.name)continue;const we=X.types||X.typings;if(we){const Ge=Ds(we,ui(be));e.fileExists(Ge)?(t&&t(` Package '${X.name}' provides its own types.`),m.set(X.name,Ge)):t&&t(` Package '${X.name}' provides its own types but they are missing.`)}else ae.push(X.name)}F(ae," Found package names")}function M(J){const V=vi(J,K=>{if(!ey(K))return;const q=tf(Ig(xl(K))),Se=nN(q);return s.get(Se)});V.length&&F(V,"Inferred typings from file names"),bt(J,K=>oc(K,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),A("react"))}}var BTe=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(BTe||{}),JTe=214;function VWe(e){return Qce(e,!0)}function Qce(e,t){if(!e)return 1;if(e.length>JTe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=Qce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const s=Qce(r[2],!1);return s!==0?{name:r[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function qWe(e,t){return typeof e=="object"?WTe(t,e.result,e.name,e.isScopeName):WTe(t,e,t,!1)}function WTe(e,t,r,i){const s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${r}' cannot be empty`;case 2:return`'${e}':: ${s} name '${r}' should be less than ${JTe} characters`;case 3:return`'${e}':: ${s} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${r}' contains non URI safe characters`;case 0:return D.fail();default:D.assertNever(t)}}var DB;(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(DB||(DB={}));var Xce=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(Xce||{}),Yce=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(Yce||{}),Zce=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(Zce||{}),pm={},Kce=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(Kce||{}),DQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(DQ||{}),PQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(PQ||{}),ele=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(ele||{}),tle=(e=>(e.none="none",e.defin Line truncated
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var UTe=PB(`
`),NB=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(NB||{}),rle=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(rle||{}),ile=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(ile||{}),sle=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(sle||{}),ale=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(ale||{}),ole=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(ole||{}),cle=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(cle||{}),lle=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(lle||{}),ule=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(ule||{}),AQ=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace Line truncated
`;function n1(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||mUe}function RP(){return rp(`
`,6)}function vS(e){try{return e(Fle),Fle.displayParts()}finally{Fle.clear()}}function RF(e,t,r,i=0){return vS(s=>{e.writeType(t,r,i|1024|16384,s)})}function z8(e,t,r,i,s=0){return vS(o=>{e.writeSymbol(t,r,i,s|8,o)})}function mX(e,t,r,i=0){return i|=25632,vS(s=>{e.writeSignature(t,r,i,void 0,s)})}function Jle(e){return!!e.parent&&Hg(e.parent)&&e.parent.propertyName===e}function gX(e,t){return mj(e,t.getScriptKind&&t.getScriptKind(e))}function hX(e,t){let r=e;for(;gUe(r)||V0(r)&&r.links.target;)V0(r)&&r.links.target?r=r.links.target:r=c_(r,t);return r}function gUe(e){return(e.flags&2097152)!==0}function Wle(e,t){return Ja(c_(e,t))}function Ule(e,t){for(;Xm(e.charCodeAt(t));)t+=1;return t}function KB(e,t){for(;t>-1&&nm(e.charCodeAt(t));)t-=1;return t+1}function zo(e,t=!0){const r=e&&exe(e);return r&&!t&&xp(r),K2(r,!1)}function jF(e,t,r){let i=r(e);return i?ni(i,e):i=exe(e,r),i&&!t&&xp(i),i}function exe(e,t){const r=t?o=>jF(o,!0,t):zo,s=Bn(e,r,void 0,t?o=>o&&yX(o,!0,t):o=>o&&yx(o),r);if(s===e){const o=Za(e)?ni(O.createStringLiteralFromNode(e),e):Jf(e)?ni(O.createNumericLiteral(e.text,e.numericLiteralFlags),e):O.cloneNode(e);return St(o,e)}return s.parent=void 0,s}function yx(e,t=!0){if(e){const r=O.createNodeArray(e.map(i=>zo(i,t)),e.hasTrailingComma);return St(r,e),r}return e}function yX(e,t,r){return O.createNodeArray(e.map(i=>jF(i,t,r)),e.hasTrailingComma)}function xp(e){vX(e),Vle(e)}function vX(e){qle(e,1024,yUe)}function Vle(e){qle(e,2048,Oq)}function IC(e,t){const r=e.getSourceFile(),i=r.text;hUe(e,i)?jP(e,t,r):BF(e,t,r),B8(e,t,r)}function hUe(e,t){const r=e.getFullStart(),i=e.getStart();for(let s=r;s<i;s++)if(t.charCodeAt(s)===10)return!0;return!1}function qle(e,t,r){rh(e,t);const i=r(e);i&&qle(i,t,r)}function yUe(e){return e.forEachChild(t=>t)}function OC(e,t){let r=e;for(let i=1;!iR(t,r);i++)r=`${e}_${i}`;return r}function zF(e,t,r,i){let s=0,o=-1;for(const{fileName:c,textChanges:_}of e){D.assert(c===t);for(const u of _){const{span:g,newText:m}=u,h=vUe(m,r0(r));if(h!==-1&&(o=g.start+s+h,!i))return o;s+=m.length-g.length}}return D.assert(i),D.assert(o>=0),o}function jP(e,t,r,i,s){iD(r.text,e.pos,Hle(t,r,i,s,KT))}function B8(e,t,r,i,s){sD(r.text,e.end,Hle(t,r,i,s,WA))}function BF(e,t,r,i,s){sD(r.text,e.pos,Hle(t,r,i,s,KT))}function Hle(e,t,r,i,s){return(o,c,_,u)=>{_===3?(o+=2,c-=2):o+=2,s(e,r||_,t.text.slice(o,c),i!==void 0?i:u)}}function vUe(e,t){if(Ts(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function eJ(e){return Br(e)&&e.operatorToken.kind===28||Ka(e)||(eP(e)||tP(e))&&Ka(e.expression)}function tJ(e,t,r){const i=Pm(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:s,operatorToken:o,right:c}=i;return nJ(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,r)}case 296:return SX(i,t);default:return t.getContextualType(e,r)}}function J8(e,t,r){const i=Sp(e,t),s=JSON.stringify(r);return i===0?`'${om(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function nJ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function $le(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function bX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function SX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var TX="anonymous function";function W8(e,t,r,i){const s=r.getTypeChecker();let o=!0;const c=()=>o=!1,_=s.typeToTypeNode(e,t,1,8,{trackSymbol:(u,g,m)=>(o=o&&s.isSymbolAccessible(u,g,m,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:rX(r,i)});return o?_:void 0}function Gle(e){return e===179||e===180||e===181||e===171||e===173}function txe(e){return e===262||e===176||e===174||e===177||e===178}function nxe(e){return e===267}function Qle(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}var bUe=pf(Gle,txe,nxe,Qle);function SUe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Gle(e.kind)){if(r&&r.kind===28)return!1}else if(nxe(e.kind)){const _=qa(e.getChildren(t));if(_&&ah(_))return!1}else if(txe(e.kind)){const _=qa(e.getChildren(t));if(_&&RT(_))return!1}else if(!Qle(e.kind))return!1;if(e.kind===246)return!0;const i=En(e,_=>!_.parent),s=hx(e,i,t);if(!s||s.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function rJ(e,t,r){const i=En(t,s=>s.end!==e?"quit":bUe(s.kind));return!!i&&SUe(i,r)}function JF(e){let t=0,r=0;const i=5;return ia(e,function s(o){if(Qle(o.kind)){const c=o.getLastToken(e);c?.kind===27?t++:r++}else if(Gle(o.kind)){const c=o.getLastToken(e);if(c?.kind===27)t++;else if(c&&c.kind!==28){const _=da(e,c.getStart(e)).line,u=da(e,Gg(e,c.end).start).line;_!==u&&r++}}return t+r>=i?!0:ia(o,s)}),t===0&&r<=1?!0:t/r>1/i}function iJ Line truncated
`?1:0}function vx(e){return Bs(e)?Z0(Ks(e[0]),e.slice(1)):Ks(e)}function _J({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!JF(t);return{...e,semicolons:i?"remove":"ignore"}}function AX(e){return e===2||e===3}function BP(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function fJ(e,t){const r=new Set,i=new Set,s=new Set;for(const _ of t)if(!KA(_)){const u=Oo(_.expression);if(J1(u))switch(u.kind){case 15:case 11:r.add(u.text);break;case 9:i.add(parseInt(u.text));break;case 10:const g=sie(pc(u.text,"n")?u.text.slice(0,-1):u.text);g&&s.add(YT(g));break}else{const g=e.getSymbolAtLocation(_.expression);if(g&&g.valueDeclaration&&nv(g.valueDeclaration)){const m=e.getConstantValue(g.valueDeclaration);m!==void 0&&o(m)}}}return{addValue:o,hasValue:c};function o(_){switch(typeof _){case"string":r.add(_);break;case"number":i.add(_)}}function c(_){switch(typeof _){case"string":return r.has(_);case"number":return i.has(_);case"object":return s.has(YT(_))}}}function IX(e,t,r,i){var s;const o=typeof e=="string"?e:e.fileName;if(!ey(o))return!1;const c=typeof e=="string"?t.getCompilerOptions():t.getCompilerOptionsForFile(e),_=ef(c),u=typeof e=="string"?{fileName:e,impliedNodeFormat:dF(Qo(e,r.getCurrentDirectory(),Hy(r)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),r,c)}:e,g=PC(u,c);if(g===99)return!1;if(g===1||c.verbatimModuleSyntax&&_===1)return!0;if(c.verbatimModuleSyntax&&sO(_))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}function kE(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function pJ(e,t,r,i){var s;const o=iB(e,(s=r.getPackageJsonInfoCache)==null?void 0:s.call(r),i,r.getCompilerOptions());let c,_;return typeof o=="object"&&(c=o.impliedNodeFormat,_=o.packageJsonScope),{path:Qo(e,r.getCurrentDirectory(),r.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:c,packageJsonScope:_,statements:Je,imports:Je}}var tue=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(tue||{}),nue=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(nue||{});function OX(e){let t=1;const r=Xp(),i=new Map,s=new Map;let o;const c={isUsableByFile:k=>k===o,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),o=void 0},add:(k,w,P,A,F,R,M,J)=>{k!==o&&(c.clear(),o=k);let V;if(F){const ke=Cj(F.fileName);if(ke){const{topLevelNodeModulesIndex:X,topLevelPackageNameIndex:we,packageRootIndex:Ge}=ke;if(V=ZO(p8(F.fileName.substring(we+1,Ge))),Ts(k,F.path.substring(0,X))){const je=s.get(V),ce=F.fileName.substring(0,we+1);if(je){const Oe=je.indexOf(ay);X>Oe&&s.set(V,ce)}else s.set(V,ce)}}}const K=R===1&&bA(w)||w,q=R===0||v6(K)?Ji(P):CUe(K,J,void 0),Se=typeof q=="string"?q:q[0],se=typeof q=="string"?void 0:q[1],$=om(A.name),ae=t++,oe=c_(w,J),_e=w.flags&33554432?void 0:w,be=A.flags&33554432?void 0:A;(!_e||!be)&&i.set(ae,[w,A]),r.add(u(Se,w,Ul($)?void 0:$,J),{id:ae,symbolTableKey:P,symbolName:Se,capitalizedSymbolName:se,moduleName:$,moduleFile:F,moduleFileName:F?.fileName,packageName:V,exportKind:R,targetFlags:oe.flags,isFromPackageJson:M,symbol:_e,moduleSymbol:be})},get:(k,w)=>{if(k!==o)return;const P=r.get(w);return P?.map(_)},search:(k,w,P,A)=>{if(k===o)return vu(r,(F,R)=>{const{symbolName:M,ambientModuleName:J}=g(R),V=w&&F[0].capitalizedSymbolName||M;if(P(V,F[0].targetFlags)){const K=F.map(_).filter((q,Se)=>x(q,F[Se].packageName));if(K.length){const q=A(K,V,!!J,R);if(q!==void 0)return q}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(k,w,P)=>m(k)&&m(w)?!1:o&&o!==w.path||P&&oJ(k)!==oJ(w)||!Yf(k.moduleAugmentations,w.moduleAugmentations)||!h(k,w)?(c.clear(),!0):(o=w.path,!1)};return D.isDebugging&&Object.defineProperty(c,"__cache",{value:r}),c;function _(k){if(k.symbol&&k.moduleSymbol)return k;const{id:w,exportKind:P,targetFlags:A,isFromPackageJson:F,moduleFileName:R}=k,[M,J]=i.get(w)||Je;if(M&&J)return{symbol:M,moduleSymbol:J,moduleFileName:R,exportKind:P,targetFlags:A,isFromPackageJson:F};const V=(F?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),H=k.moduleSymbol||J||D.checkDefined(k.moduleFile?V.getMergedSymbol(k.moduleFile.symbol):V.tryFindAmbientModule(k.moduleName)),K=k.symbol||M||D.checkDefined(P===2?V.resolveExternalModuleSymbol(H):V.tryGetMemberInModuleExportsAndProperties(Ji(k.symbolTableKey),H),`Could not find symbol '${k.symbolName}' by key '${k.symbolTableKey}' in module ${H.name}`);return i.set(w,[K,H]),{symbol:K,moduleSymbol:H,moduleFileName:R,exportKind:P,targetFlags:A,isFromPackageJson:F}}function u(k,w,P,A){const F=P||"";return`${k.length} ${Ja(c_(w,A))} ${k} ${F}`}function g(k){const w=k.indexOf(" "),P=k.indexOf(" ",w+1),A=parseInt(k.substring(0,w),10),F=k.substring(P+1),R=F.substring(0,A),M=F.substring(A+1) Line truncated
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return D.assertNever(e)}}function OUe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function FUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function LUe(e){if(zf(e))return 3;if(OUe(e)||FUe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Dd(e)?6:2}}function sue(e,t,r,i,s){return _xe(MX(e,t,r,i,s))}function lxe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function MX(e,t,r,i,s){const o=[];return r.forEachChild(function _(u){if(!(!u||!lD(s,u.pos,u.getFullWidth()))){if(lxe(t,u.kind),qe(u)&&!cl(u)&&i.has(u.escapedText)){const g=e.getSymbolAtLocation(u),m=g&&uxe(g,NC(u),e);m&&c(u.getStart(r),u.getEnd(),m)}u.forEachChild(_)}}),{spans:o,endOfLineState:0};function c(_,u,g){const m=u-_;D.assert(m>0,`Classification had non-positive length of ${m}`),o.push(_),o.push(m),o.push(g)}}function uxe(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&MUe(e)?14:void 0:i&2097152?uxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function MUe(e){return bt(e.declarations,t=>Vl(t)&&e1(t)===1)}function RUe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function _xe(e){D.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:Nc(t[i],t[i+1]),classificationType:RUe(t[i+2])});return r}function aue(e,t,r){return _xe(RX(e,t,r))}function RX(e,t,r){const i=r.start,s=r.length,o=Wg(99,!1,t.languageVariant,t.text),c=Wg(99,!1,t.languageVariant,t.text),_=[];return J(t),{spans:_,endOfLineState:0};function u(V,H,K){_.push(V),_.push(H),_.push(K)}function g(V){for(o.resetTokenState(V.pos);;){const H=o.getTokenEnd();if(!MM(t.text,H))return H;const K=o.scan(),q=o.getTokenEnd(),Se=q-H;if(!MD(K))return H;switch(K){case 4:case 5:continue;case 2:case 3:m(V,K,H,Se),o.resetTokenState(q);continue;case 7:const se=t.text,$=se.charCodeAt(H);if($===60||$===62){u(H,Se,1);continue}D.assert($===124||$===61),P(se,H,q);break;case 6:break;default:D.assertNever(K)}}}function m(V,H,K,q){if(H===3){const Se=Rse(t.text,K,q);if(Se&&Se.jsDoc){Fo(Se.jsDoc,V),x(Se.jsDoc);return}}else if(H===2&&k(K,q))return;h(K,q)}function h(V,H){u(V,H,1)}function x(V){var H,K,q,Se,se,$,ae,oe;let _e=V.pos;if(V.tags)for(const ke of V.tags){ke.pos!==_e&&h(_e,ke.pos-_e),u(ke.pos,1,10),u(ke.tagName.pos,ke.tagName.end-ke.tagName.pos,18),_e=ke.tagName.end;let X=ke.tagName.end;switch(ke.kind){case 341:const we=ke;be(we),X=we.isNameFirst&&((H=we.typeExpression)==null?void 0:H.end)||we.name.end;break;case 348:const Ge=ke;X=Ge.isNameFirst&&((K=Ge.typeExpression)==null?void 0:K.end)||Ge.name.end;break;case 345:w(ke),_e=ke.end,X=ke.typeParameters.end;break;case 346:const je=ke;X=((q=je.typeExpression)==null?void 0:q.kind)===309&&((Se=je.fullName)==null?void 0:Se.end)||((se=je.typeExpression)==null?void 0:se.end)||X;break;case 338:X=ke.typeExpression.end;break;case 344:J(ke.typeExpression),_e=ke.end,X=ke.typeExpression.end;break;case 343:case 340:X=ke.typeExpression.end;break;case 342:J(ke.typeExpression),_e=ke.end,X=(($=ke.typeExpression)==null?void 0:$.end)||X;break;case 347:X=((ae=ke.name)==null?void 0:ae.end)||X;break;case 328:case 329:X=ke.class.end;break;case 349:J(ke.typeExpression),_e=ke.end,X=((oe=ke.typeExpression)==null?void 0:oe.end)||X;break}typeof ke.comment=="object"?h(ke.comment.pos,ke.comment.end-ke.comment.pos):typeof ke.comment=="string"&&h(X,ke.end-X)}_e!==V.end&&h(_e,V.end-_e);return;function be(ke){ke.isNameFirst&&(h(_e,ke.name.pos-_e),u(ke.name.pos,ke.name.end-ke.name.pos,17),_e=ke.name.end),ke.typeExpression&&(h(_e,ke.typeExpression.pos-_e),J(ke.typeExpression),_e=ke.typeExpression.end),ke.isNameFirst||(h(_e,ke.name.pos-_e),u(ke.name.po Line truncated
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number {}
interface Object {}
interface RegExp {}
interface String {}
interface Array<T> { length: number; [n: number]: T; }
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}`,yJ="lib.d.ts",kue;function Nxe(e,t,r){kue??(kue=uE(yJ,lVe,{languageVersion:99}));const i=[],s=t.compilerOptions?GX(t.compilerOptions,i):{},o=AJ();for(const P in o)Lo(o,P)&&s[P]===void 0&&(s[P]=o[P]);for(const P of $se)s.verbatimModuleSyntax&&cVe.has(P.name)||(s[P.name]=P.transpileOptionValue);s.suppressOutputPathCheck=!0,s.allowNonTsExtensions=!0,r?(s.declaration=!0,s.emitDeclarationOnly=!0,s.isolatedDeclarations=!0):(s.declaration=!1,s.declarationMap=!1);const c=G1(s),_={getSourceFile:P=>P===ba(u)?g:P===ba(yJ)?kue:void 0,writeFile:(P,A)=>{oc(P,".map")?(D.assertEqual(h,void 0,"Unexpected multiple source map outputs, file:",P),h=A):(D.assertEqual(m,void 0,"Unexpected multiple outputs, file:",P),m=A)},getDefaultLibFileName:()=>yJ,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:P=>P,getCurrentDirectory:()=>"",getNewLine:()=>c,fileExists:P=>P===u||!!r&&P===yJ,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),g=uE(u,e,{languageVersion:ao(s),impliedNodeFormat:dF(Qo(u,"",_.getCanonicalFileName),void 0,_,s),setExternalModuleIndicator:tO(s),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(g.moduleName=t.moduleName),t.renamedDependencies&&(g.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let m,h;const k=mF(r?[u,yJ]:[u],s,_);t.reportDiagnostics&&(Kr(i,k.getSyntacticDiagnostics(g)),Kr(i,k.getOptionsDiagnostics()));const w=k.emit(void 0,void 0,void 0,r,t.transformers,r);return Kr(i,w.diagnostics),m===void 0?D.fail("Output generation failed"):{outputText:m,diagnostics:i,sourceMapText:h}}function Axe(e,t,r,i,s){const o=xue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:s});return Kr(i,o.diagnostics),o.outputText}var Cue;function GX(e,t){Cue=Cue||Cr(Fm,r=>typeof r.type=="object"&&!vu(r.type,i=>typeof i!="number")),e=XQ(e);for(const r of Cue){if(!Lo(e,r.name))continue;const i=e[r.name];Js(i)?e[r.name]=dz(r,i,t):vu(r.type,s=>s===i)||t.push(Qse(r))}return e}var wue={};Ze(wue,{getNavigateToItems:()=>Ixe});function Ixe(e,t,r,i,s,o,c){const _=fue(i);if(!_)return Je;const u=[],g=e.length===1?e[0]:void 0;for(const m of e)r.throwIfCancellationRequested(),!(o&&m.isDeclarationFile)&&(Oxe(m,!!c,g)||m.getNamedDeclarations().forEach((h,x)=>{uVe(_,x,h,t,m.fileName,!!c,g,u)}));return u.sort(dVe),(s===void 0?u:u.slice(0,s)).map(mVe)}function Oxe(e,t,r){return e!==r&&t&&(WF(e.path)||e.hasNoDefaultLib)}function uVe(e,t,r,i,s,o,c,_){const u=e.getMatchForLastSegmentOfPattern(t);if(u){for(const g of r)if(_Ve(g,i,o,c))if(e.patternContainsDots){const m=e.getFullMatch(pVe(g),t);m&&_.push({name:t,fileName:s,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:g})}else _.push({name:t,fileName:s,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:g})}}function _Ve(e,t,r,i){var s;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(_=>Oxe(_.getSourceFile(),r,i)));default:return!0}}function fVe(e,t){const r=Rs(e);return!!r&&(Fxe(r,t)||r.kind===167&&Eue(r.expression,t))}function Eue(e,t){return Fxe(e,t)||ri(e)&&(t.push(e.name.text),!0)&&Eue(e.expression,t)}function Fxe(e,t){return Zg(e)&&(t.push(Id(e)),!0)}function pVe(e){const t=[],r=Rs(e);if(r&&r.kind===167&&!Eue(r.expression,t))return Je;t.shift();let i=AC(e);for(;i;){if(!fVe(i,t))return Je;i=AC(i)}return t.reverse(),t}function dVe(e,t){return aa(e.matchKind,t.matchKind)||b2(e.name,t.name)}function mVe(e){const t=e.declaration,r=AC(t),i=r&&Rs(r);return{name:e.name,kind:gx(t),kindModifiers:F8(t),matchKind:JX[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Ef(t),containerName:i?i.text:"",containerKind:i?gx(r):""}}var Due={};Ze(Due,{getNavigationBarItems:()=>Mxe,getNavigationTree:()=>Rxe});var gVe=/\s+/g,Pue=150,QX,GF,vJ=[],ov,Lxe=[],WP,Nue=[];function Mxe(e,t){QX=t,GF=e;try{return Sn(SVe(Bxe(e)),TVe)}finally{jxe()}}function Rxe(e,t){QX=t,GF=e;try{return Qxe(Bxe(e))}finally{jxe()}}function jxe(){GF=void 0,QX=void 0,vJ=[],ov=void 0,Nue=[]}function bJ(e){return q8(e.getText(GF))}function XX(e){return e.node.kind}function zxe(e,t){e.children?e.children.push(t):e.children=[t]}function Bxe(e){D.assert(!vJ.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};ov=t;for(const r of e.statements)CE(r);return bS(),D.assert(!ov&&!vJ.length),t}function bx(e,t){zxe(ov,Aue(e,t))}function Aue(e,t){return{node:e,name:t||(Au(e)||xt(e)?Rs(e):void 0),additionalNodes:void 0,parent:ov,children:void 0,indent:ov.indent+1}}function Jxe(e){WP||(WP=new Map),WP.set(e,!0)}function Wxe(e){for(let t=0;t<e;t++)bS()}function Uxe(e,t){const r=[];for(;!Zg(t);){const i=E5(t),s=Vy(t);t=t.expression,!(s==="prototype"||us(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const s=r[i];Sx(e,s)}return[r.length-1,r[0]]}function Sx(e,t){const r=Aue(e,t);zxe(ov,r),vJ.push(ov),Lxe. Line truncated
${P.split(`
`).map(A=>` * ${A}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return k}}function Eke(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function Dke(e,t,r){const i=Zi(e,t),s=En(i,Eke);if(!s||ec(s)&&s.body&&IP(s.body,t))return;const o=r.getTypeChecker(),c=s.symbol;if(!c)return;const _=c.declarations;if(Kt(_)<=1||!Xr(_,x=>Qn(x)===e)||!Eke(_[0]))return;const u=_[0].kind;if(!Xr(_,x=>x.kind===u))return;const g=_;if(bt(g,x=>!!x.typeParameters||bt(x.parameters,k=>!!k.modifiers||!qe(k.name))))return;const m=vi(g,x=>o.getSignatureFromDeclaration(x));if(Kt(m)!==Kt(_))return;const h=o.getReturnTypeOfSignature(m[0]);if(Xr(m,x=>o.getReturnTypeOfSignature(x)===h))return g}var __e="Add or remove braces in an arrow function",Pke=Ks(p.Add_or_remove_braces_in_an_arrow_function),oY={name:"Add braces to arrow function",description:Ks(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},kJ={name:"Remove braces from arrow function",description:Ks(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};oy(__e,{kinds:[kJ.kind],getEditsForAction:xqe,getAvailableActions:Tqe});function Tqe(e){const{file:t,startPosition:r,triggerReason:i}=e,s=Nke(t,r,i==="invoked");return s?r1(s)?e.preferences.provideRefactorNotApplicableReason?[{name:__e,description:Pke,actions:[{...oY,notApplicableReason:s.error},{...kJ,notApplicableReason:s.error}]}]:Je:[{name:__e,description:Pke,actions:[s.addBraces?oY:kJ]}]:Je}function xqe(e,t){const{file:r,startPosition:i}=e,s=Nke(r,i);D.assert(s&&!r1(s),"Expected applicable refactor info");const{expression:o,returnStatement:c,func:_}=s;let u;if(t===oY.name){const m=O.createReturnStatement(o);u=O.createBlock([m],!0),jP(o,m,r,3,!0)}else if(t===kJ.name&&c){const m=o||O.createVoidZero();u=eJ(m)?O.createParenthesizedExpression(m):m,BF(c,u,r,3,!1),jP(c,u,r,3,!1),B8(c,u,r,3,!1)}else D.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Ar.ChangeTracker.with(e,m=>{m.replaceNode(r,_.body,u)})}}function Nke(e,t,r=!0,i){const s=Zi(e,t),o=id(s);if(!o)return{error:Ks(p.Could_not_find_a_containing_arrow_function)};if(!Tc(o))return{error:Ks(p.Containing_function_is_not_an_arrow_function)};if(!(!Bf(o,s)||Bf(o.body,s)&&!r)){if(TS(oY.kind,i)&&xt(o.body))return{func:o,addBraces:!0,expression:o.body};if(TS(kJ.kind,i)&&ca(o.body)&&o.body.statements.length===1){const c=Xa(o.body.statements);if(Jp(c)){const _=c.expression&&Ka(VD(c.expression,!1))?O.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:_,returnStatement:c}}}}}var kqe={},Ake="Convert arrow function or function expression",Cqe=Ks(p.Convert_arrow_function_or_function_expression),CJ={name:"Convert to anonymous function",description:Ks(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},wJ={name:"Convert to named function",description:Ks(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},EJ={name:"Convert to arrow function",description:Ks(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};oy(Ake,{kinds:[CJ.kind,wJ.kind,EJ.kind],getEditsForAction:Eqe,getAvailableActions:wqe});function wqe(e){const{file:t,startPosition:r,program:i,kind:s}=e,o=Oke(t,r,i);if(!o)return Je;const{selectedVariableDeclaration:c,func:_}=o,u=[],g=[];if(TS(wJ.kind,s)){const m=c||Tc(_)&&Pi(_.parent)?void 0:Ks(p.Could_not_convert_to_named_function);m?g.push({...wJ,notApplicableReason:m}):u.push(wJ)}if(TS(CJ.kind,s)){const m=!c&&Tc(_)?void 0:Ks(p.Could_not_convert_to_anonymous_function);m?g.push({...CJ,notApplicableReason:m}):u.push(CJ)}if(TS(EJ.kind,s)){const m=dc(_)?void 0:Ks(p.Could_not_convert_to_arrow_function);m?g.push({...EJ,notApplicableReason:m}):u.push(EJ)}return[{name:Ake,description:Cqe,actions:u.length===0&&e.preferences.provideRefactorNotApplicableReason?g:u}]}function Eqe(e,t){const{file:r,startPosition:i,program:s}=e,o=Oke(r,i,s);if(!o)return;const{func:c}=o,_=[];switch(t){case CJ.name:_.push(...Aqe(e,c));break;case wJ.name:const u=Nqe(c);if(!u)return;_.push(...Iqe(e,c,u));break;case EJ.name:if(!dc(c))return;_.push(...Oqe(e,c));break;default:return D.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:_}}function Ike(e){let t=!1;return e.forEachChild(function r(i){if(AP(i)){t=!0;return}!N(i)&&!El(i)&&!dc(i)&&ia(i,r)}),t}function Oke(e,t,r){const i=Zi(e,t),s=r.getTypeChecker(),o=Pqe(e,s,i.parent);if(o&&!Ike(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const c=id(i);if(c&&(dc(c)||Tc(c))&&!Bf(c.body,i)&&!Ike(c.body)&&!s.containsArgumentsReference(c))return dc(c)&&Lke(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function Dqe(e){return Pi(e)||Yu(e)&&e.declarations.length===1}function Pqe(e,t,r){if(!Dqe(r))return;const s=(Pi(r)?r:Xa(r.declarations)).initializer;if(s&&(Tc(s)||dc(s)&&!Lke(e,t,s)))return s}function Fke(e){if(xt(e)){const t=O.createReturnStatement(e),r=e.getSourceFile();return St(t, Line truncated
`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Xp();return this.forEachChild(s),e;function t(o){const c=i(o);c&&e.add(c,o)}function r(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){const c=Bk(o);return c&&($a(c)&&ri(c.expression)?c.expression.name.text:al(c)?FF(c):void 0)}function s(o){switch(o.kind){case 262:case 218:case 174:case 173:const c=o,_=i(c);if(_){const m=r(_),h=Uo(m);h&&c.parent===h.parent&&c.symbol===h.symbol?c.body&&!h.body&&(m[m.length-1]=c):m.push(c)}ia(o,s);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),ia(o,s);break;case 169:if(!xi(o,31))break;case 260:case 208:{const m=o;if(Yr(m.name)){ia(m.name,s);break}m.initializer&&s(m.initializer)}case 306:case 172:case 171:t(o);break;case 278:const u=o;u.exportClause&&(Bd(u.exportClause)?vt(u.exportClause.elements,s):s(u.exportClause.name));break;case 272:const g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):vt(g.namedBindings.elements,s)));break;case 226:Ol(o)!==0&&t(o);default:ia(o,s)}}}},_$e=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}getLineAndCharacterOfPosition(e){return da(this,e)}};function f$e(){return{getNodeConstructor:()=>F_e,getTokenConstructor:()=>pCe,getIdentifierConstructor:()=>dCe,getPrivateIdentifierConstructor:()=>mCe,getSourceFileConstructor:()=>u$e,getSymbolConstructor:()=>o$e,getTypeConstructor:()=>c$e,getSignatureConstructor:()=>l$e,getSourceMapSourceConstructor:()=>_$e}}function ZF(e){let t=!0;for(const i in e)if(Lo(e,i)&&!yCe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Lo(e,i)){const s=yCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[s]=e[i]}return r}function yCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function KF(e){return e?Sn(e,t=>t.text).join(""):""}function AJ(){return{target:1,jsx:1}}function hY(){return B_.getSupportedErrorCodes()}var p$e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,s,o,c,_,u;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const m=gX(e,this.host),h=this.host.getScriptVersion(e);let x;if(this.currentFileName!==e){const k={languageVersion:99,impliedNodeFormat:dF(Qo(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Hy(this.host)),(u=(_=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:_.call(c))==null?void 0:u.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:tO(this.host.getCompilationSettings()),jsDocParsingMode:0};x=IJ(e,g,k,h,!0,m)}else if(this.currentFileVersion!==h){const k=g.getChangeRange(this.currentFileScriptSnapshot);x=yY(this.currentSourceFile,g,h,k)}return x&&(this.currentFileVersion=h,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=x),this.currentSourceFile}};function vCe(e,t,r){e.version=r,e.scriptSnapshot=t}function IJ(e,t,r,i,s,o){const c=uE(e,TE(t),r,s,o);return vCe(c,t,i),c}function yY(e,t,r,i,s){if(i&&r!==e.version){let c;const _=i.span.start!==0?e.text.substr(0,i.span.start):"",u=Pc(i.span)!==e.text.length?e.text.substr(Pc(i.span)):"";if(i.newLength===0)c=_&&u?_+u:_||u;else{const m=t.getText(i.span.start,i.span.start+i.newLength);c=_&&u?_+m+u:_?_+m:m+u}const g=n$(e,c,i,s);return vCe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return IJ(e.fileName,t,o,r,!0,e.scriptKind)}var d$e={isCancellationRequested:Uh,throwIfCancellationRequested:Ha},m$e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Dr)==null||e.instant(Dr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Ck}},M_e=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Go();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Dr)==null||e.instant(Dr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Ck}},bCe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications"," Line truncated
`:return iu.formatOnEnter(At,Ln,vn)}return[]}function Wa(lt,At,rn,Ut,Ln,vn=pm){A();const Zt=P(lt),Nn=hl(At,rn),An=iu.getFormatContext(Ln,e);return an(Fy(Ut,Vh,aa),Wn=>(g.throwIfCancellationRequested(),B_.getFixes({errorCode:Wn,sourceFile:Zt,span:Nn,program:c,host:e,cancellationToken:g,formatContext:An,preferences:vn})))}function jn(lt,At,rn,Ut=pm){A(),D.assert(lt.type==="file");const Ln=P(lt.fileName),vn=iu.getFormatContext(rn,e);return B_.getAllFixes({fixId:At,sourceFile:Ln,program:c,host:e,cancellationToken:g,formatContext:vn,preferences:Ut})}function Ys(lt,At,rn=pm){A(),D.assert(lt.type==="file");const Ut=P(lt.fileName);if(T6(Ut))return Je;const Ln=iu.getFormatContext(At,e),vn=lt.mode??(lt.skipDestructiveCodeActions?"SortAndCombine":"All");return wS.organizeImports(Ut,Ln,e,c,rn,vn)}function it(lt,At,rn,Ut=pm){return lue(R(),lt,At,e,iu.getFormatContext(rn,e),Ut,w)}function Jt(lt,At){const rn=typeof lt=="string"?At:lt;return Bs(rn)?Promise.all(rn.map(Ut=>le(Ut))):le(rn)}function le(lt){const At=rn=>Qo(rn,m,k);return D.assertEqual(lt.type,"install package"),e.installPackage?e.installPackage({fileName:At(lt.file),packageName:lt.packageName}):Promise.reject("Host does not implement `installPackage`")}function mt(lt,At,rn,Ut){const Ln=Ut?iu.getFormatContext(Ut,e).options:void 0;return CS.getDocCommentTemplateAtPosition(n1(e,Ln),o.getCurrentSourceFile(lt),At,rn)}function ne(lt,At,rn){if(rn===60)return!1;const Ut=o.getCurrentSourceFile(lt);if(SE(Ut,At))return!1;if(Tle(Ut,At))return rn===123;if(qQ(Ut,At))return!1;switch(rn){case 39:case 34:case 96:return!iv(Ut,At)}return!0}function We(lt,At){const rn=o.getCurrentSourceFile(lt),Ut=_u(At,rn);if(!Ut)return;const Ln=Ut.kind===32&&ig(Ut.parent)?Ut.parent.parent:Q6(Ut)&&ch(Ut.parent)?Ut.parent:void 0;if(Ln&&zt(Ln))return{newText:`</${Ln.openingElement.tagName.getText(rn)}>`};const vn=Ut.kind===32&&Om(Ut.parent)?Ut.parent.parent:Q6(Ut)&&aS(Ut.parent)?Ut.parent:void 0;if(vn&&nt(vn))return{newText:"</>"}}function rt(lt,At){const rn=o.getCurrentSourceFile(lt),Ut=_u(At,rn);if(!Ut||Ut.parent.kind===307)return;const Ln="[a-zA-Z0-9:\\-\\._$]*";if(aS(Ut.parent.parent)){const vn=Ut.parent.parent.openingFragment,Zt=Ut.parent.parent.closingFragment;if(T6(vn)||T6(Zt))return;const Nn=vn.getStart(rn)+1,An=Zt.getStart(rn)+2;return At!==Nn&&At!==An?void 0:{ranges:[{start:Nn,length:0},{start:An,length:0}],wordPattern:Ln}}else{const vn=En(Ut.parent,La=>!!(ig(La)||sx(La)));if(!vn)return;D.assert(ig(vn)||sx(vn),"tag should be opening or closing element");const Zt=vn.parent.openingElement,Nn=vn.parent.closingElement,An=Zt.tagName.getStart(rn),Wn=Zt.tagName.end,dn=Nn.tagName.getStart(rn),Ei=Nn.tagName.end;return An===Zt.getStart(rn)||dn===Nn.getStart(rn)||Wn===Zt.getEnd()||Ei===Nn.getEnd()||!(An<=At&&At<=Wn||dn<=At&&At<=Ei)||Zt.tagName.getText(rn)!==Nn.tagName.getText(rn)?void 0:{ranges:[{start:An,length:Wn-An},{start:dn,length:Ei-dn}],wordPattern:Ln}}}function ut(lt,At){return{lineStarts:lt.getLineStarts(),firstLine:lt.getLineAndCharacterOfPosition(At.pos).line,lastLine:lt.getLineAndCharacterOfPosition(At.end).line}}function Lt(lt,At,rn){const Ut=o.getCurrentSourceFile(lt),Ln=[],{lineStarts:vn,firstLine:Zt,lastLine:Nn}=ut(Ut,At);let An=rn||!1,Wn=Number.MAX_VALUE;const dn=new Map,Ei=new RegExp(/\S/),ma=WB(Ut,vn[Zt]),La=ma?"{/*":"//";for(let la=Zt;la<=Nn;la++){const Fl=Ut.text.substring(vn[la],Ut.getLineEndOfPosition(vn[la])),Vc=Ei.exec(Fl);Vc&&(Wn=Math.min(Wn,Vc.index),dn.set(la.toString(),Vc.index),Fl.substr(Vc.index,La.length)!==La&&(An=rn===void 0||rn))}for(let la=Zt;la<=Nn;la++){if(Zt!==Nn&&vn[la]===At.end)continue;const Fl=dn.get(la.toString());Fl!==void 0&&(ma?Ln.push(...Ve(lt,{pos:vn[la]+Wn,end:Ut.getLineEndOfPosition(vn[la])},An,ma)):An?Ln.push({newText:La,span:{length:0,start:vn[la]+Wn}}):Ut.text.substr(vn[la]+Fl,La.length)===La&&Ln.push({newText:"",span:{length:La.length,start:vn[la]+Fl}}))}return Ln}function Ve(lt,At,rn,Ut){var Ln;const vn=o.getCurrentSourceFile(lt),Zt=[],{text:Nn}=vn;let An=!1,Wn=rn||!1;const dn=[];let{pos:Ei}=At;const ma=Ut!==void 0?Ut:WB(vn,Ei),La=ma?"{/*":"/*",la=ma?"*/}":"*/",Fl=ma?"\\{\\/\\*":"\\/\\*",Vc=ma?"\\*\\/\\}":"\\*\\/";for(;Ei<=At.end;){const Pl=Nn.substr(Ei,La.length)===La?La.length:0,Ki=iv(vn,Ei+Pl);if(Ki)ma&&(Ki.pos--,Ki.end++),dn.push(Ki.pos),Ki.kind===3&&dn.push(Ki.end),An=!0,Ei=Ki.end+1;else{const Xs=Nn.substring(Ei,At.end).search(`(${Fl})|(${Vc})`);Wn=rn!==void 0?rn:Wn||!Ole(Nn,Ei,Xs===-1?At.end:Ei+Xs),Ei=Xs===-1?At.end+1:Ei+Xs+la.length}}if(Wn||!An){((Ln=iv(vn,At.pos))==null?void 0:Ln.kind)!==2&&zh(dn,At.pos,aa),zh(dn,At.end,aa);const Pl=dn[0];Nn.substr(Pl,La.length)!==La&&Zt.push({newText:La,span:{length:0,start:Pl}});for(let Ki=1;Ki<dn.length-1;Ki++)Nn.substr(dn[Ki]-la.length,la.length)!==la&&Zt.push({newText:la,span:{length:0,start:dn[Ki]}}),Nn.substr(dn[Ki],La.length)!==La&&Zt.push({newText:La,span:{length:0,start:dn[Ki]}});Zt.length%2!==0&&Zt.push({newText:la,span:{length:0,start:dn[dn.length-1]}})}else for(const Pl of dn){const Ki=Pl-Line truncated
`,0).match(/`extends (.*)`/)||[];return t}function vQe(e,t){return Rn(t.parent)?e.getTypeArgumentConstraint(t.parent):(xt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var w6e="fixOverrideModifier",a9="fixAddOverrideModifier",jJ="fixRemoveOverrideModifier",E6e=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],D6e={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:a9,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:a9,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:jJ,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:jJ,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:a9,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:a9,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:a9,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:jJ,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:jJ,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}};ja({errorCodes:E6e,getCodeActions:function(t){const{errorCode:r,span:i}=t,s=D6e[r];if(!s)return Je;const{descriptions:o,fixId:c,fixAllDescriptions:_}=s,u=Ar.ChangeTracker.with(t,g=>P6e(g,t,r,i.start));return[U_e(w6e,u,o,c,_)]},fixIds:[w6e,a9,jJ],getAllCodeActions:e=>qo(e,E6e,(t,r)=>{const{code:i,start:s}=r,o=D6e[i];!o||o.fixId!==e.fixId||P6e(t,e,i,s)})});function P6e(e,t,r,i){switch(r){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return bQe(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return SQe(e,t.sourceFile,i);default:D.fail("Unexpected error code: "+r)}}function bQe(e,t,r){const i=A6e(t,r);if(bf(t)){e.addJSDocTags(t,i,[O.createJSDocOverrideTag( Line truncated
`,0).match(/'(.*)'/)||[];return t}ja({errorCodes:[p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const s=[],o=ef(r);if(o>=5&&o<99){const g=Ar.ChangeTracker.with(t,m=>{gpe(m,i,"module",O.createStringLiteral("esnext"))});s.push(ug("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const _=ao(r);if(_<4||_>99){const g=Ar.ChangeTracker.with(t,m=>{if(!nA(i))return;const x=[["target",O.createStringLiteral("es2017")]];o===1&&x.push(["module",O.createStringLiteral("commonjs")]),mpe(m,i,x)});s.push(ug("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}});var Wfe="fixPropertyAssignment",BEe=[p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];ja({errorCodes:BEe,fixIds:[Wfe],getCodeActions(e){const{sourceFile:t,span:r}=e,i=WEe(t,r.start),s=Ar.ChangeTracker.with(e,o=>JEe(o,e.sourceFile,i));return[Ta(Wfe,s,[p.Change_0_to_1,"=",":"],Wfe,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>qo(e,BEe,(t,r)=>JEe(t,r.file,WEe(r.file,r.start)))});function JEe(e,t,r){e.replaceNode(t,r,O.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function WEe(e,t){return ka(Zi(e,t).parent,C_)}var Ufe="extendsInterfaceBecomesImplements",UEe=[p.Cannot_extend_an_interface_0_Did_you_mean_implements.code];ja({errorCodes:UEe,getCodeActions(e){const{sourceFile:t}=e,r=VEe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:s}=r,o=Ar.ChangeTracker.with(e,c=>qEe(c,t,i,s));return[Ta(Ufe,o,p.Change_extends_to_implements,Ufe,p.Change_all_extended_interfaces_to_implements)]},fixIds:[Ufe],getAllCodeActions:e=>qo(e,UEe,(t,r)=>{const i=VEe(r.file,r.start);i&&qEe(t,r.file,i.extendsToken,i.heritageClauses)})});function VEe(e,t){const r=Zi(e,t),i=Xu(r).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function qEe(e,t,r,i){if(e.replaceNode(t,r,O.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},O.createToken(28));const c=t.text;let _=s.end;for(;_<c.length&&nm(c.charCodeAt(_));)_++;e.deleteRange(t,{pos:s.getStart(),end:_})}}var Vfe="forgottenThisPropertyAccess",HEe=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,$Ee=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,HEe];ja({errorCodes:$Ee,getCodeActions(e){const{sourceFile:t}=e,r=GEe(t,e.span.start,e.errorCode);if(!r)return;const i=Ar.ChangeTracker.with(e,s=>QEe(s,t,r));return[Ta(Vfe,i,[p.Add_0_to_unresolved_variable,r.className||"this"],Vfe,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Vfe],getAllCodeActions:e=>qo(e,$Ee,(t,r)=>{const i=GEe(r.file,r.start,r.code);i&&QEe(t,e.sourceFile,i)})});function GEe(e,t,r){const i=Zi(e,t);if(qe(i)||us(i))return{node:i,className:r===HEe?Xu(i).name.text:void 0}}function QEe(e,t,{node:r,className:i}){xp(r),e.replaceNode(t,r,O.createPropertyAccessExpression(i?O.createIdentifier(i):O.createThis(),r))}var qfe="fixInvalidJsxCharacters_expression",WY="fixInvalidJsxCharacters_htmlEntity",XEe=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code];ja({errorCodes:XEe,fixIds:[qfe,WY],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,s=Ar.ChangeTracker.with(e,c=>Hfe(c,r,t,i.start,!1)),o=Ar.ChangeTracker.with(e,c=>Hfe(c,r,t,i.start,!0));return[Ta(qfe,s,p.Wrap_invalid_character_in_an_expression_container,qfe,p.Wrap_all_invalid_characters_in_an_expression_container),Ta(WY,o,p.Convert_invalid_character_to_its_html_entity_code,WY,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return qo(e,XEe,(t,r)=>Hfe(t,e.preferences,r.file,r.start,e.fixId===WY))}});var YEe={">":"&gt;","}":"&rbrace;"};function ZQe(e){return Lo(YEe,e)}function Hfe(e,t,r,i,s){const o=r.getText()[i];if(!ZQe(o))return;const c=s?YEe[o]:`{${J8(r,t,o)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},c)}var UY="deleteUnmatchedParameter",ZEe="renameUnmatchedParameter",KEe=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that Line truncated
`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function dYe(e){return{name:Pa(e),kind:"keyword",kindModifiers:"",sortText:J_.GlobalsOrKeywords}}function mYe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:LC(t)}}function iPe(e,t,r){return{kind:4,keywordCompletions:mPe(e,t),isNewIdentifierLocation:r}}function gYe(e){switch(e){case 156:return 8;default:D.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function sPe(e){return e?.kind===80?Ef(e):void 0}function hYe(e,t,r,i,s,o,c,_,u,g){const{symbols:m,contextToken:h,completionKind:x,isInSnippetScope:k,isNewIdentifierLocation:w,location:P,propertyAccessToConvert:A,keywordFilters:F,symbolToOriginInfoMap:R,recommendedCompletion:M,isJsxInitializer:J,isTypeOnlyLocation:V,isJsxIdentifierExpected:H,isRightOfOpenTag:K,isRightOfDotOrQuestionDot:q,importStatementCompletion:Se,insideJsDocTagTypeExpression:se,symbolToSortTextMap:$,hasUnresolvedAutoImports:ae,defaultCommitCharacters:oe}=o;let _e=o.literals;const be=r.getTypeChecker();if(eO(e.scriptKind)===1){const ce=vYe(P,e);if(ce)return ce}const ke=En(h,iP);if(ke&&(Xie(h)||WT(h,ke.expression))){const ce=fJ(be,ke.parent.clauses);_e=_e.filter(Oe=>!ce.hasValue(Oe)),m.forEach((Oe,he)=>{if(Oe.valueDeclaration&&nv(Oe.valueDeclaration)){const ot=be.getConstantValue(Oe.valueDeclaration);ot!==void 0&&ce.hasValue(ot)&&(R[he]={kind:256})}})}const X=_T(),we=aPe(e,i);if(we&&!w&&(!m||m.length===0)&&F===0)return;const Ge=Jpe(m,X,void 0,h,P,u,e,t,r,ao(i),s,x,c,i,_,V,A,H,J,Se,M,R,$,H,K,g);if(F!==0)for(const ce of mPe(F,!se&&bf(e)))(V&&L8(ab(ce.name))||!V&&nZe(ce.name)||!Ge.has(ce.name))&&(Ge.add(ce.name),zh(X,ce,WJ,void 0,!0));for(const ce of WYe(h,u))Ge.has(ce.name)||(Ge.add(ce.name),zh(X,ce,WJ,void 0,!0));for(const ce of _e){const Oe=SYe(e,c,ce);Ge.add(Oe.name),zh(X,Oe,WJ,void 0,!0)}we||bYe(e,P.pos,Ge,ao(i),X);let je;if(c.includeCompletionsWithInsertText&&h&&!K&&!q&&(je=En(h,ZA))){const ce=oPe(je,e,c,i,t,r,_);ce&&X.push(ce.entry)}return{flags:o.flags,isGlobalCompletion:k,isIncomplete:c.allowIncompleteCompletions&&ae?!0:void 0,isMemberCompletion:yYe(x),isNewIdentifierLocation:w,optionalReplacementSpan:sPe(P),entries:X,defaultCommitCharacters:oe??LC(w)}}function aPe(e,t){return!bf(e)||!!AA(e,t)}function oPe(e,t,r,i,s,o,c){const _=e.clauses,u=o.getTypeChecker(),g=u.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Xr(g.types,m=>m.isLiteral())){const m=fJ(u,_),h=ao(i),x=Sp(t,r),k=B_.createImportAdder(t,o,r,s),w=[];for(const V of g.types)if(V.flags&1024){D.assert(V.symbol,"An enum member type should have a symbol"),D.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const H=V.symbol.valueDeclaration&&u.getConstantValue(V.symbol.valueDeclaration);if(H!==void 0){if(m.hasValue(H))continue;m.addValue(H)}const K=B_.typeToAutoImportableTypeNode(u,k,V,e,h);if(!K)return;const q=XY(K,h,x);if(!q)return;w.push(q)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":w.push(V.value.negative?O.createPrefixUnaryExpression(41,O.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):O.createBigIntLiteral(V.value));break;case"number":w.push(V.value<0?O.createPrefixUnaryExpression(41,O.createNumericLiteral(-V.value)):O.createNumericLiteral(V.value));break;case"string":w.push(O.createStringLiteral(V.value,x===0));break}if(w.length===0)return;const P=Sn(w,V=>O.createCaseClause(V,[])),A=n1(s,c?.options),F=ZY({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:qF(A)}),R=c?V=>F.printAndFormatNode(4,V,t,c):V=>F.printNode(4,V,t),M=Sn(P,(V,H)=>r.includeCompletionsWithSnippetText?`${R(V)}$${H+1}`:`${R(V)}`).join(A);return{entry:{name:`${F.printNode(4,P[0],t)} ...`,kind:"",sortText:J_.GlobalsOrKeywords,insertText:M,hasAction:k.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:k}}}function XY(e,t,r){switch(e.kind){case 183:const i=e.typeName;return YY(i,t,r);case 199:const s=XY(e.objectType,t,r),o=XY(e.indexType,t,r);return s&&o&&O.createElementAccessExpression(s,o);case 201:const c=e.literal;switch(c.kind){case 11:return O.createStringLiteral(c.text,r===0);case 9:return O.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 196:const _=XY(e.type,t,r);return _&&(qe(_)?_:O.createParenthesizedExpression(_));case 186:return YY(e.exprName,t,r);case 205:D.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function YY(e,t,r){if(qe(e))return e;const i=Ji(e.right.escapedText);return iH(i,t)?O.createPropertyAccessExpression(YY(e.left,t,r),i):O.createElementAccessExpression(YY(e.left,t,r),O.createStringLiteral(i,r===0))}function yYe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function vYe(e,t){const r=En(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!Yo(r,32,t),c=r.parent.ope Line truncated
${t}
}`,e.languageVersion,!0,e.scriptKind),body:o=>o.statements[0].members}],i=[];for(const{parse:o,body:c}of r){const _=o(),u=c(_);if(u.length&&_.parseDiagnostics.length===0)return u;u.length&&i.push({sourceFile:_,body:u})}i.sort((o,c)=>o.sourceFile.parseDiagnostics.length-c.sourceFile.parseDiagnostics.length);const{body:s}=i[0];return s}function AKe(e,t,r,i){b(r[0])||Fn(r[0])?IKe(e,t,r,i):OKe(e,t,r,i)}function IKe(e,t,r,i){let s;if(!i||!i.length?s=fn(e.statements,pf(N,__)):s=vt(i,c=>En(Zi(e,c.start),pf(N,__))),!s)return;const o=s.members.find(c=>r.some(_=>QJ(_,c)));if(o){const c=Io(s.members,_=>r.some(u=>QJ(u,_)));vt(r,pZ),t.replaceNodeRangeWithNodes(e,o,c,r);return}vt(r,pZ),t.insertNodesAfter(e,s.members[s.members.length-1],r)}function OKe(e,t,r,i){if(!i?.length){t.insertNodesAtEndOfFile(e,r,!1);return}for(const o of i){const c=En(Zi(e,o.start),_=>pf(ca,as)(_)&&bt(_.statements,u=>r.some(g=>QJ(g,u))));if(c){const _=c.statements.find(u=>r.some(g=>QJ(g,u)));if(_){const u=Io(c.statements,g=>r.some(m=>QJ(m,g)));vt(r,pZ),t.replaceNodeRangeWithNodes(e,_,u,r);return}}}let s=e.statements;for(const o of i){const c=En(Zi(e,o.start),ca);if(c){s=c.statements;break}}vt(r,pZ),t.insertNodesAfter(e,s[s.length-1],r)}function QJ(e,t){var r,i,s,o,c,_;return e.kind!==t.kind?!1:e.kind===176?e.kind===t.kind:ou(e)&&ou(t)?e.name.getText()===t.name.getText():iS(e)&&iS(t)||AH(e)&&AH(t)?e.expression.getText()===t.expression.getText():sS(e)&&sS(t)?((r=e.initializer)==null?void 0:r.getText())===((i=t.initializer)==null?void 0:i.getText())&&((s=e.incrementor)==null?void 0:s.getText())===((o=t.incrementor)==null?void 0:o.getText())&&((c=e.condition)==null?void 0:c.getText())===((_=t.condition)==null?void 0:_.getText()):Hk(e)&&Hk(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Fb(e)&&Fb(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function pZ(e){h3e(e),e.parent=void 0}function h3e(e){e.pos=-1,e.end=-1,e.forEachChild(h3e)}var wS={};Ze(wS,{compareImportsOrRequireStatements:()=>gde,compareModuleSpecifiers:()=>ZKe,getImportDeclarationInsertionIndex:()=>GKe,getImportSpecifierInsertionIndex:()=>QKe,getNamedImportSpecifierComparerWithDetection:()=>$Ke,getOrganizeImportsStringComparerWithDetection:()=>HKe,organizeImports:()=>FKe,testCoalesceExports:()=>YKe,testCoalesceImports:()=>XKe});function FKe(e,t,r,i,s,o){const c=Ar.ChangeTracker.fromContext({host:r,formatContext:t,preferences:s}),_=o==="SortAndCombine"||o==="All",u=_,g=o==="RemoveUnused"||o==="All",m=e.statements.filter(Uc),h=ude(e,m),{comparersToTest:x,typeOrdersToTest:k}=lde(s),w=x[0],P={moduleSpecifierComparer:typeof s.organizeImportsIgnoreCase=="boolean"?w:void 0,namedImportComparer:typeof s.organizeImportsIgnoreCase=="boolean"?w:void 0,typeOrder:s.organizeImportsTypeOrder};if(typeof s.organizeImportsIgnoreCase!="boolean"&&({comparer:P.moduleSpecifierComparer}=b3e(h,x)),!P.typeOrder||typeof s.organizeImportsIgnoreCase!="boolean"){const M=dde(m,x,k);if(M){const{namedImportComparer:J,typeOrder:V}=M;P.namedImportComparer=P.namedImportComparer??J,P.typeOrder=P.typeOrder??V}}h.forEach(M=>F(M,P)),o!=="RemoveUnused"&&MKe(e).forEach(M=>R(M,P.namedImportComparer));for(const M of e.statements.filter(Y_)){if(!M.body)continue;if(ude(e,M.body.statements.filter(Uc)).forEach(V=>F(V,P)),o!=="RemoveUnused"){const V=M.body.statements.filter(jl);R(V,P.namedImportComparer)}}return c.getChanges();function A(M,J){if(Kt(M)===0)return;Or(M[0],1024);const V=u?mk(M,q=>XJ(q.moduleSpecifier)):[M],H=_?ff(V,(q,Se)=>fde(q[0].moduleSpecifier,Se[0].moduleSpecifier,P.moduleSpecifierComparer??w)):V,K=an(H,q=>XJ(q[0].moduleSpecifier)||q[0].moduleSpecifier===void 0?J(q):q);if(K.length===0)c.deleteNodes(e,M,{leadingTriviaOption:Ar.LeadingTriviaOption.Exclude,trailingTriviaOption:Ar.TrailingTriviaOption.Include},!0);else{const q={leadingTriviaOption:Ar.LeadingTriviaOption.Exclude,trailingTriviaOption:Ar.TrailingTriviaOption.Include,suffix:n1(r,t.options)};c.replaceNodeWithNodes(e,M[0],K,q);const Se=c.nodeHasTrailingComment(e,M[0],q);c.deleteNodes(e,M.slice(1),{trailingTriviaOption:Ar.TrailingTriviaOption.Include},Se)}}function F(M,J){const V=J.moduleSpecifierComparer??w,H=J.namedImportComparer??w,K=J.typeOrder??"last",q=d9({organizeImportsTypeOrder:K},H);A(M,se=>(g&&(se=RKe(se,e,i)),u&&(se=y3e(se,V,q,e)),_&&(se=ff(se,($,ae)=>gde($,ae,V))),se))}function R(M,J){const V=d9(s,J);A(M,H=>v3e(H,V))}}function lde(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[mde(e,e.organizeImportsIgnoreCase)]:[mde(e,!0),mde(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function ude(e,t){const r=Wg(e.languageVersion,!1,e.languageVariant),i=[];let s=0;for(const o of t)i[s]&&LKe(e,o,r)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function LKe(e,t,r){const i=t.getFullStart(),s=t.getStart();r.setText(e.text,i,s-i);let o=0;for(;r.getTokenStart()<s;)if(r.scan()===4&&(o++,o>=2))return!0;return!1}fu Line truncated
`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Zet(r),O.createJSDocComment(this.createJSDocText(t,r),O.createNodeArray(i)))}addJSDocTags(t,r,i){const s=ji(r.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((_,u)=>{const g=Ket(_,c);return g&&(s[u]=g),!!g}));this.replaceJSDocComment(t,r,[...s,...o])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Cr(ji(r.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Od(r),i)}tryInsertTypeAnnotation(t,r,i){let s;if(ta(r)){if(s=Yo(r,22,t),!s){if(!Tc(r))return!1;s=Xa(r.parameters)}}else s=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const s=Yo(r,21,t).getStart(t)+1,o=r.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,r,i){const s=(Yo(r,21,t)||Xa(r.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return ts(t)||b(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Pi(t)?{suffix:", "}:ps(t)?ps(r)?{suffix:", "}:{}:Za(t)&&Uc(t.parent)||oh(t)?{suffix:", "}:rf(t)?{suffix:","+(i?this.newLineCharacter:" ")}:D.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const s=Tl(r.body.statements);!s||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const s=fn(r.body.statements,o=>Ru(o)&&Xk(o.expression));!s||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,r,i){const s=Uo(r.body.statements);!s||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,O.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const s=RC(t,r.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:Qu(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){const s=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,bZ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,s))}guessIndentationFromExistingMembers(t,r){let i,s=r;for(const o of bZ(r)){if(KR(s,o,t))return;const c=o.getStart(t),_=iu.SmartIndenter.findFirstNonWhitespaceColumn(dm(c,t),c,t,this.formatContext.options);if(i===void 0)i=_;else if(_!==i)return;s=o}return i}computeIndentationForNewMember(t,r){const i=r.getStart(t);return iu.SmartIndenter.findFirstNonWhitespaceColumn(dm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const o=bZ(r).length===0,c=!this.classesWithNodesInsertedAtStart.has(Co(r));c&&this.classesWithNodesInsertedAtStart.set(Co(r),{node:r,sourceFile:t});const _=Ka(r)&&(!Ad(t)||!o),u=Ka(r)&&Ad(t)&&o&&!c;return{indentation:i,prefix:(u?",":"")+this.newLineCharacter,suffix:_?",":__(r)&&o?";":""}}insertNodeAfterComma(t,r,i){const s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const s=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const s=this.insertNodeAfterWorker(t,r,Xa(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return att(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Od(r.end),O.createToken(27)),LE(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&ts(r)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return D.assert(ts(t)||Qr(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(D.assert(!r.name),r.kind===219){const s=Yo(r,39,t),o=Yo(r,21,t);o?(this.insertNodesAt(t,o.getStart(t),[O.createToken(100),O.createIdentifier(i)],{joiner:" "}),s1(this,t,s)):(this.insertText(t,Xa(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,O.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[O.createToken(19),O.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[O.createToken(27),O.createToken(20)],{joiner:" "}))}else{const s=Yo(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,s,O.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,s){const o=i.elements[s-1];o?this.insertNodeInListAfter(t,o,r):this.insertNodeBefore(t,i.elements[0],r,!Fd(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,s=iu.SmartIndenter.getContainingList(r,t)){if(!s){D.fail("node is not a list element");return}const o=xD(s,r);if(o<0)return;const c=r.getEnd();if(o!==s.length-1){const _=Zi(t,r.end);if(_&&vZ(r,_)){const u=s[o+1],g=G3e(t.text,u.getFullStart()),m=`${Pa(_.kind)}${t.text.substring(_.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:m})}}else{const _=r.getStart(t),u=dm(_,t);let g,m=!1;if(s.length===1)g=28;else{const h=_u(r.pos,t);g=vZ(r,h)?h.kind:28,m=dm(s[o-1].getStart(t),t)!==u}if((Qet(t.text,r.end)||!Fd(s.pos,s.end,t))&&(m=!0),m){this.replaceRange(t,Od(c),O.createToken(g));const h=iu.SmartIndenter.findFirstNonWhitespaceColumn(u,_,t,this.formatContext.options);let x=Ra(t.text,c,!0,!1);for(;x!==c&&Qu(t.text.charCodeAt(x-1));)x--;this.replaceRange(t,Od(x),i,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(t,Od(c),i,{prefix:`${Pa(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,Kq(r),O.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,s]=ttt(t,r);if(i!==void 0&&s!==void 0){const o=bZ(t).length===0,c=Fd(i,s,r);o&&c&&i!==s-1&&this.deleteRange(r,Od(i,s-1)),c&&this.insertText(r,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===r&&hle(s.node,i))||(Bs(i)?this.deleteRange(r,eH(r,i)):wde.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),s=iu.SmartIndenter.getContainingList(r,i);if(r!==qa(s))return;const o=Zl(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:kde(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=SZ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{r.push(SZ.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}};function Zet(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Ket(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{const r=e,i=t;return qe(r.name)&&qe(i.name)&&r.name.escapedText===i.name.escapedText?O.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 342:return O.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return O.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function kde(e,t){return Ra(e.text,RC(e,t,{leadingTriviaOption:1}),!1,!0)}function ett(e,t,r,i){const s=kde(e,i);if(r===void 0||Fd(LE(e,t,{}),s,e))return s;const o=_u(i.getStart(e),e);if(vZ(t,o)){const c=_u(t.getStart(e),e);if(vZ(r,c)){const _=Ra(e.text,o.getEnd(),!0,!0);if(Fd(c.getStart(e),o.getStart(e),e))return Qu(e.text.charCodeAt(_-1))?_-1:_;if(Qu(e.text.charCodeAt(_)))return _}}return s}function ttt(e,t){const r=Yo(e,19,t),i=Yo(e,20,t);return[r?.end,i?.end]}function bZ(e){return Ka(e)?e.properties:e.members}var SZ;(e=>{function t(_,u,g,m){return vi(mk(_,h=>h.sourceFile.path),h=>{const x=h[0].sourceFile,k=ff(h,(P,A)=>P.range.pos-A.range.pos||P.range.end-A.range.end);for(let P=0;P<k.length-1;P++)D.assert(k[P].range.end<=k[P+1].range.pos,"Changes overlap",()=>`${JSON.stringify(k[P].range)} and ${JSON.stringify(k[P+1].range)}`);const w=vi(k,P=>{const A=av(P.range),F=P.kind===1?Qn(yo(P.node))??P.sourceFile:P.kind===2?Qn(yo(P.nodes[0]))??P.sourceFile:P.sourceFile,R=s(P,F,x,u,g,m);if(!(A.length===R.length&&eue(F.text,R,A.start)))return IF(A,R)});return w.length>0?{fileName:x.fileName,textChanges:w}:void 0})}e.getTextChangesFromChanges=t;function r(_,u,g,m){c Line truncated
`;if(!this.program)return` Files (0) NoProgram
`;const s=this.program.getSourceFiles();let o=` Files (${s.length})
`;if(t){for(const c of s)o+=` ${c.fileName}${i?` ${c.version} ${JSON.stringify(c.text)}`:""}
`;r&&(o+=`
`,ZG(this.program,c=>o+=` ${c}
`))}return o}print(t,r,i){var s;this.writeLog(`Project '${this.projectName}' (${sI[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),KM(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,s;const o=r?u=>Ms(u.entries(),([g,m])=>({fileName:g,isSourceOfProjectReferenceRedirect:m})):u=>Ms(u.keys());this.initialLoadPending||mm(this);const c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:QP(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},_=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!_)return{info:c,projectErrors:this.getGlobalProjectErrors()};const u=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(P=>({fileName:nc(P),isSourceOfProjectReferenceRedirect:!1})))||Cu,m=F0(this.getFileNamesWithRedirectInfo(!!r).concat(g),P=>P.fileName,P=>P.isSourceOfProjectReferenceRedirect),h=new Map,x=new Map,k=_?Ms(_.keys()):[],w=[];return vu(m,(P,A)=>{u.has(A)?r&&P!==u.get(A)&&w.push({fileName:A,isSourceOfProjectReferenceRedirect:P}):h.set(A,P)}),vu(u,(P,A)=>{m.has(A)||x.set(A,P)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:o(h),removed:o(x),updated:r?k.map(P=>({fileName:P,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(P)})):k,updatedRedirects:r?w:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const u=this.getFileNamesWithRedirectInfo(!!r),g=((s=this.externalFiles)==null?void 0:s.map(h=>({fileName:nc(h),isSourceOfProjectReferenceRedirect:!1})))||Cu,m=u.concat(g);return this.lastReportedFileNames=F0(m,h=>h.fileName,h=>h.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:r?m:m.map(h=>h.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,ai(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(o=>o.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:ENe}),o=s.create(i);for(const c of Object.keys(this.languageService))c in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${c} in created LS. Patching.`),o[c]=this.languageService[c]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:r.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?Cu:thi Line truncated
All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const s=t.getRealpathIfDifferent();s&&vt(this.realpathToScriptInfos.get(s),i),vt(this.realpathToScriptInfos.get(t.path),i)}return r;function i(s){if(s!==t)for(const o of s.containingProjects)o.languageServiceEnabled&&!o.isOrphan()&&!o.getCompilerOptions().preserveSymlinks&&!t.isAttached(o)&&(r?vu(r,(c,_)=>_===s.path?!1:Ri(c,o))||r.add(s.path,o):(r=Xp(),r.add(s.path,o)))}}watchClosedScriptInfo(t){if(D.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Ts(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,ju.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,o=>{var c;const _=_B(this.toPath(o));if(!_)return;const u=xl(_);if((c=s.affectedModuleSpecifierCacheProjects)!=null&&c.size&&(u==="package.json"||u==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(g=>{var m;(m=g.getModuleSpecifierCache())==null||m.clear()}),s.refreshScriptInfoRefCount)if(r===_)this.refreshScriptInfosInDirectory(r);else{const g=this.filenameToScriptInfo.get(_);g?Tme(g)&&this.refreshScriptInfo(g):ib(_)||this.refreshScriptInfosInDirectory(_)}},1,this.hostConfiguration.watchOptions,ju.NodeModules);const s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var o;i&&!s.refreshScriptInfoRefCount&&!((o=s.affectedModuleSpecifierCacheProjects)!=null&&o.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,s),s}watchPackageJsonsInNodeModules(t,r){var i;const s=this.toPath(t),o=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return D.assert(!((i=o.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var c;(c=o.affectedModuleSpecifierCacheProjects)==null||c.delete(r),o.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||df).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=Vw(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+ac,this.filenameToScriptInfo.forEach(r=>{Tme(r)&&Ts(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,s,o,c){if(r_(t)||iI(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,!!s,o,c);const _=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(_)return _}getOrCreateScriptInfoForNormalizedPath(t,r,i,s,o,c){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,s,!!o,c,!1)}getOrCreateScriptInfoWorker(t,r,i,s,o,c,_,u){D.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const g=GP(t,r,this.toCanonicalFileName);let m=this.filenameToScriptInfo.get(g);if(m){if(m.deferredDelete){if(D.assert(!m.isDynamic),!i&&!(_||this.host).fileExists(t))return u?m:void 0;m.deferredDelete=void 0}}else{const h=iI(t);if(D.assert(r_(t)||h||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Ms(this.openFilesWithNonRootedDiskPath.keys())})}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),D.assert(!r_(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Ms(this.openFilesWithNonRootedDiskPath.keys())})}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),D.assert(!h||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Ms(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!h&&!(_||this.host).fileExists(t))return;m=new nme(this.host,t,o,c,g,this.filenameToScriptInfoVersion.get(g)),this.filenameToScriptInfo.set(m.path,m),this.filenameToScriptInfoVersion.delete(m.path),i?!r_(t)&&(!h||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),m):this.watchClosedScriptInfo(m)}return i&&(this.stopWatchingScriptInfo(m),m.open(s),c&&m.registerFileUpdate()),m}getScriptInfoForNormalizedPath(t){return!r_(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(GP(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){const r=this.filenameToScriptInfo.get(t);return!r||!r.deferredDelete?r:void 0}getDocumentPositionMapper(t,r,i){const s=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host,!1);if(!s){i&&t.addGeneratedFileWatch(r,i);return}if(s.getSnapshot(),Js(s.sourceMapFilePath)){const g=this.getScriptInfoForPath(s.sourceMapFilePath);if(g&&(g.getSnapshot(),g.documentPositionMapper!==void 0))return g.sourceInfos=this.addSourceInfoToSourceMap(i,t,g.sourceInfos),g.documentPositionMapper?g.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let o,c=(g,m)=>{const h=this.getOrCreateScriptInfoNotOpenedByClient(g,t.currentDirectory,this.host,!0);if(o=h||m,!h||h.deferredDelete)return;const x=h.getSnapshot();return h.documentPositionMapper!==void 0?h.documentPositionMapper:TE(x)};const _=t.projectName,u=UX({getCanonicalFileName:this.toCanonicalFileName,log:g=>this.logger.info(g),getSourceFileLike:g=>this.getSourceFileLike(g,_,s)},s.fileName,s.textStorage.getLineInfo(),c);return c=void 0,o?Js(o)?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?o:Ds(o,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(s.sourceMapFilePath=o.path,o.declarationInfoPath=s.path,o.deferredDelete||(o.documentPositionMapper=u||!1),o.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceInfos)):s.sourceMapFilePath=!1,u}addSourceInfoToSourceMap(t,r,i){if(t){const s=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost,!1);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const s=this.getScriptInfoForPath(r);s&&s.sourceMapFilePath&&!Js(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,ju.MissingSourceMapFile)}getSourceFileLike(t,r,i){const s=r.projectName?r:this.findProject(r);if(s){const c=s.toPath(t),_=s.getSourceFile(c);if(_&&_.resolvedPath===c)return _}const o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host,!1);if(o){if(i&&Js(i.sourceMapFilePath)&&o!==i){const c=this.getScriptInfoForPath(i.sourceMapFilePath);c&&(c.sourceInfos??(c.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return D.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:c=>{const _=o.positionToLineOffset(c);return{line:_.line-1,character:_.offset-1}},getPositionOfLineAndCharacter:(c,_,u)=>o.lineOffsetToPosition(c+1,_+1,u)}),o.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(nc(t.file));i&&(i.setOptions(XP(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...XP(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s,includeCompletionsForModuleExports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(c=>c.forEach(_=>{!_.deferredClose&&!_.isClosed()&&_.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(_)&&_.updateGraph()})),(s!==t.preferences.includePackageJsonAutoImports||!!o!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(c=>{c.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(thi Line truncated
`),code:r.code,category:L1(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Sn(r.relatedInformation,ZZ)}}function ZZ(e){return e.file?{span:{start:YP(da(e.file,e.start)),end:YP(da(e.file,e.start+e.length)),file:e.file.fileName},message:_h(e.messageText,`
`),category:L1(e),code:e.code}:{message:_h(e.messageText,`
`),category:L1(e),code:e.code}}function YP(e){return{line:e.line+1,offset:e.character+1}}function P9(e,t){const r=e.file&&YP(da(e.file,e.start)),i=e.file&&YP(da(e.file,e.start+e.length)),s=_h(e.messageText,`
`),{code:o,source:c}=e,_=L1(e),u={start:r,end:i,text:s,code:o,category:_,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:Sn(e.relatedInformation,ZZ)};return t?{...u,fileName:e.file&&e.file.fileName}:u}function Jnt(e,t){return e.every(r=>Pc(r.span)<t)}var lAe=eme;function Ome(e,t,r,i){const s=t.hasLevel(3),o=JSON.stringify(e);return s&&t.info(`${e.type}:${hS(e)}`),`Content-Length: ${1+r(o,"utf8")}\r
\r
${o}${i}`}var Wnt=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const r=this.requestId;D.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,r){const i=this.requestId;D.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r),this.performanceData)},t,e))}executeAction(e){var t,r,i,s,o,c;let _=!1;try{this.operationHost.isCancellationRequested()?(_=!0,(t=Dr)==null||t.instant(Dr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=Dr)==null||r.push(Dr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=Dr)==null||i.pop())}catch(u){(s=Dr)==null||s.popAll(),_=!0,u instanceof Ck?(o=Dr)==null||o.instant(Dr.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=Dr)==null||c.instant(Dr.Phase.Session,"stepError",{seq:this.requestId,message:u.message}),this.operationHost.logError(u,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(_||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function Fme(e,t){return{seq:0,type:"event",event:e,body:t}}function Unt(e,t,r,i){const s=ji(Bs(r)?r:r.projects,o=>i(o,e));return!Bs(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((o,c)=>{const _=t(c);s.push(...an(o,u=>i(u,_)))}),Fy(s,Vh)}function KZ(e){return K3(({textSpan:t})=>t.start+100003*t.length,uX(e))}function Vnt(e,t,r,i,s,o,c){const _=Lme(e,t,r,uAe(t,r,!0),pAe,(m,h)=>m.getLanguageService().findRenameLocations(h.fileName,h.pos,i,s,o),(m,h)=>h(aI(m)));if(Bs(_))return _;const u=[],g=KZ(c);return _.forEach((m,h)=>{for(const x of m)!g.has(x)&&!eK(aI(x),h)&&(u.push(x),g.add(x))}),u}function uAe(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),s=i&&Tl(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function qnt(e,t,r,i,s){var o,c;const _=Lme(e,t,r,uAe(t,r,!1),pAe,(h,x)=>(s.info(`Finding references to ${x.fileName} position ${x.pos} in project ${h.getProjectName()}`),h.getLanguageService().findReferences(x.fileName,x.pos)),(h,x)=>{x(aI(h.definition));for(const k of h.references)x(aI(k))});if(Bs(_))return _;const u=_.get(t);if(((c=(o=u?.[0])==null?void 0:o.references[0])==null?void 0:c.isDefinition)===void 0)_.forEach(h=>{for(const x of h)for(const k of x.references)delete k.isDefinition});else{const h=KZ(i);for(const k of u)for(const w of k.references)if(w.isDefinition){h.add(w);break}const x=new Set;for(;;){let k=!1;if(_.forEach((w,P)=>{if(x.has(P))return;P.getLanguageService().updateIsDefinitionOfReferencedSymbols(w,h)&&(x.add(P),k=!0)}),!k)break}_.forEach((k,w)=>{if(!x.has(w))for(const P of k)for(const A of P.references)A.isDefinition=!1})}const g=[],m=KZ(i);return _.forEach((h,x)=>{for(const k of h){const w=eK(aI(k.definition),x),P=w===void 0?k.definition:{...k.definition,textSpan:Nc(w.pos,k.definition.textSpan.length),fileName:w.fileName,contextSpan:$nt(k.definition,x)};let A=fn(g,F=>lX(F.definition,P,i));A||(A={definition:P,references:[]},g.push(A));for(const F of k.references)!m.has(F)&&!eK(aI(F),x)&&(m.add(F),A.references.push(F))}}),g.filter(h=>h.references.length!==0)}function _Ae(e,t,r){for(const i of Bs(e)?e:e.projects)r(i,t);!Bs(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(const o of i)r(o,s)})}function Lme(e,t,r,i,s,o,c){const _=new Map,u=gk();u.enqueue({project:t,location:r}),_Ae(e,r.fileName,(P,A)=>{const F={fileName:A,pos:r.pos};u.enqueue({project:P,location:F})});const g=t.projectService,m=t.getCancellationToken(),h=b_(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),x=b_(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),k=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(m.isCancellationRequested())break e;const{project:P,location:A}=u.dequeue();if(_.has(P)||dAe(P,A)||(mm(P),!P.containsFile(nc(A.fileName))))continue;const F=w(P,A);_.set(P Line truncated
`+N8(t.message),t.stack&&(s+=`
`+N8(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:o,project:c}=this.getFileAndProject(i),_=c.getScriptInfoForNormalizedPath(o);if(_){const u=TE(_.getSnapshot());s+=`
File text of ${i.file}:${N8(u)}
`}}catch{}if(t.ProgramFiles){s+=`
Program files: ${JSON.stringify(t.ProgramFiles)}
`,s+=`
Projects::
`;let o=0;const c=_=>{s+=`
Project '${_.projectName}' (${sI[_.projectKind]}) ${o}
`,s+=_.filesToString(!0),s+=`
-----------------------------------------------
`,o++};this.projectService.externalProjects.forEach(c),this.projectService.configuredProjects.forEach(c),this.projectService.inferredProjects.forEach(c)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${hS(t)}`);return}this.writeMessage(t)}writeMessage(t){const r=Ome(t,this.logger,this.byteLength,this.host.newLine);this.host.write(r)}event(t,r){this.send(Fme(r,t))}doOutput(t,r,i,s,o,c){const _={seq:0,type:"response",command:r,request_seq:i,success:s,performanceData:o&&yAe(o)};if(s){let u;if(Bs(t))_.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:g,...m}=t;_.body=m,u=g}else _.body=t;else _.body=t;u&&(_.metadata=u)}else D.assert(t===void 0);c&&(_.message=c),this.send(_)}semanticCheck(t,r){var i,s;const o=Go();(i=Dr)==null||i.push(Dr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const c=oAe(r,t)?Cu:r.getLanguageService().getSemanticDiagnostics(t).filter(_=>!!_.file);this.sendDiagnosticsEvent(t,r,c,"semanticDiag",o),(s=Dr)==null||s.pop()}syntacticCheck(t,r){var i,s;const o=Go();(i=Dr)==null||i.push(Dr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",o),(s=Dr)==null||s.pop()}suggestionCheck(t,r){var i,s;const o=Go();(i=Dr)==null||i.push(Dr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",o),(s=Dr)==null||s.pop()}regionSemanticCheck(t,r,i){var s,o,c;const _=Go();(s=Dr)==null||s.push(Dr.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let u;if(!this.shouldDoRegionCheck(t)||!(u=r.getLanguageService().getRegionSemanticDiagnostics(t,i))){(o=Dr)==null||o.pop();return}this.sendDiagnosticsEvent(t,r,u.diagnostics,"regionSemanticDiag",_,u.spans),(c=Dr)==null||c.pop()}shouldDoRegionCheck(t){var r;const i=(r=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:r.textStorage.getLineInfo().getLineCount();return!!(i&&i>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,r,i,s,o,c){try{const _=D.checkDefined(r.getScriptInfo(t)),u=Go()-o,g={file:t,diagnostics:i.map(m=>cAe(t,r,m)),spans:c?.map(m=>gh(m,_))};this.event(g,s),this.addDiagnosticsPerformanceData(t,s,u)}catch(_){this.logError(_,s)}}updateErrorCheck(t,r,i,s=!0){if(r.length===0)return;D.assert(!this.suppressDiagnosticEvents);const o=this.changeSeq,c=Math.min(i,200);let _=0;const u=()=>{if(_++,r.length>_)return t.delay("checkOne",c,m)},g=(h,x)=>{if(this.semanticCheck(h,x),this.changeSeq===o){if(this.getPreferences(h).disableSuggestions)return u();t.immediate("suggestionCheck",()=>{this.suggestionCheck(h,x),u()})}},m=()=>{if(this.changeSeq!==o)return;let h,x=r[_];if(Js(x)?x=this.toPendingErrorCheck(x):"ranges"in x&&(h=x.ranges,x=this.toPendingErrorCheck(x.file)),!x)return u();const{fileName:k,project:w}=x;if(mm(w),!!w.containsFile(k,s)&&(this.syntacticCheck(k,w),this.changeSeq===o)){if(w.projectService.serverMode!==0)return u();if(h)return t.immediate("regionSemanticCheck",()=>{const P=this.projectService.getScriptInfoForNormalizedPath(k);P&&this.regionSemanticCheck(k,w,h.map(A=>this.getRange({file:k,...A},P))),this.changeSeq===o&&t.immediate("semanticCheck",()=>g(k,w))});t.immediate("semanticCheck",()=>g(k,w))}};r.length>_&&this.changeSeq===o&&t.delay("checkOne",i,m)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ms(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=nc(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const s=r.getAllProjectErrors(),o=r.getLanguageService().getCompilerOptionsDiagnostics(),c=Cr(fs(s,o),_=>!!_.file&&_.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):Sn(c,_=>P9(_,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:_h(r.messageText,this.host.newLi Line truncated
`&&(!_||_.length===0||Jnt(_,o))){const{lineText:u,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(u&&u.search("\\S")<0){const m=i.getIndentationAtPosition(r,o,c);let h=0,x,k;for(x=0,k=u.length;x<k;x++)if(u.charAt(x)===" ")h++;else if(u.charAt(x)===" ")h+=c.tabSize;else break;if(m!==h){const w=g+x;_.push({span:hl(g,w),newText:iu.getIndentationString(m,c)})}}}if(_)return _.map(u=>({start:s.positionToLineOffset(u.span.start),end:s.positionToLineOffset(Pc(u.span)),newText:u.newText?u.newText:""}))}getCompletions(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),_=s.getLanguageService().getCompletionsAtPosition(i,c,{...hme(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(_===void 0)return;if(r==="completions-full")return _;const u=t.prefix||"",g=vi(_.entries,h=>{if(_.isMemberCompletion||Ts(h.name.toLowerCase(),u.toLowerCase())){const x=h.replacementSpan?gh(h.replacementSpan,o):void 0;return{...h,replacementSpan:x,hasAction:h.hasAction||void 0,symbol:void 0}}});return r==="completions"?(_.metadata&&(g.metadata=_.metadata),g):{..._,optionalReplacementSpan:_.optionalReplacementSpan&&gh(_.optionalReplacementSpan,o),entries:g}}getCompletionEntryDetails(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),_=s.projectService.getFormatCodeOptions(i),u=!!this.getPreferences(i).displayPartsForJSDoc,g=vi(t.entryNames,m=>{const{name:h,source:x,data:k}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return s.getLanguageService().getCompletionEntryDetails(i,c,h,_,x,this.getPreferences(i),k?ka(k,trt):void 0)});return r?u?g:g.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,s,!1)})):g.map(m=>({...m,codeActions:Sn(m.codeActions,h=>this.mapCodeAction(h)),documentation:this.mapDisplayParts(m.documentation,s),tags:this.mapJSDocTagInfo(m.tags,s,u)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?Unt(i,s=>this.projectService.getScriptInfoForPath(s),r,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;const c=s.getCompilationSettings();if(!(c.noEmit||ku(o.fileName)&&!Bnt(c)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(o),projectUsesOutFile:!!c.outFile}}):Cu}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||a1.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const s=i.getScriptInfo(r),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(_,u,g)=>this.host.writeFile(_,u,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(_=>P9(_,!0))}:!o}getSignatureHelpItems(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),_=s.getLanguageService().getSignatureHelpItems(i,c,t),u=!!this.getPreferences(i).displayPartsForJSDoc;if(_&&r){const g=_.applicableSpan;return{..._,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(_.items,s,u)}}else return u||!_?_:{..._,items:_.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,s,!1)}))}}toPendingErrorCheck(t){const r=nc(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);D.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),s=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Ng({span:{start:i,length:s-i},newText:t.insertString})))}reload(t){const r=nc(t.file),i=t.tmpfile===void 0?void 0:nc(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(r);s&&(this.changeSeq++,s.reloadFromFile(i))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ba(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Sn(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>gh(s,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationBarItems(i);return o?r?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}toLocationNavigationTree(t,r){return{tex Line truncated
Additional information: BADCLIENT: Bad error code, ${k} not found in range ${c}..${_} (found: ${x.join(", ")})`),m}return r?u.map(g=>this.mapCodeFixAction(g)):u}getCombinedCodeFix({scope:t,fixId:r},i){D.assert(t.type==="file");const{file:s,project:o}=this.getFileAndProject(t.args),c=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},r,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){const r=t.command;for(const i of pT(r)){const{file:s,project:o}=this.getFileAndProject(i);o.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,r){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:s,fixId:o,fixAllDescription:c}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:o,fixAllDescription:c}}mapPasteEditsAction({edits:t,fixId:r}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:r}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),D.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Qnt(i,r))}:Znt(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),_=s.getBraceMatchingAtPosition(i,c);return _?r?_.map(u=>gh(u,o)):_:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:s,languageServiceDisabled:o}=this.getProjectInfoWorker(i,void 0,!0,void 0,!0);if(o)return;const c=s.filter(P=>!P.includes("lib.d.ts"));if(c.length===0)return;const _=[],u=[],g=[],m=[],h=nc(i),x=this.projectService.ensureDefaultProjectForFile(h);for(const P of c)this.getCanonicalFileName(P)===this.getCanonicalFileName(i)?_.push(P):this.projectService.getScriptInfo(P).isScriptOpen()?u.push(P):ku(P)?m.push(P):g.push(P);const w=[..._,...u,...g,...m].map(P=>({fileName:P,project:x}));this.updateErrorCheck(t,w,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:s,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=D.checkDefined(this.projectService.getScriptInfo(s));return Sn(i,_=>{const u=this.getPosition(_,c),g=o.getSmartSelectionRange(s,u);return r?this.mapSelectionRange(g,c):g})}toggleLineComment(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfo(i),c=this.getRange(t,o),_=s.toggleLineComment(i,c);if(r){const u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}toggleMultilineComment(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),_=s.toggleMultilineComment(i,c);if(r){const u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}commentSelection(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),_=s.commentSelection(i,c);if(r){const u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}uncommentSelection(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),_=s.uncommentSelection(i,c);if(r){const u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}mapSelectionRange(t,r){const i={textSpan:gh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=nc(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),a1.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r Line truncated
`+k.stack)}finally{this.performanceData=m}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function yAe(e){const t=e.diagnosticsDuration&&Ms(e.diagnosticsDuration,([r,i])=>({...i,file:r}));return{...e,diagnosticsDuration:t}}function gh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Pc(e))}}function Mme(e,t,r){const i=gh(e,r),s=t&&gh(t,r);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function Qnt(e,t){return{start:vAe(t,e.span.start),end:vAe(t,Pc(e.span)),newText:e.newText}}function vAe(e,t){return Pme(e)?Ynt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Xnt(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Ynt(e){return{line:e.line+1,offset:e.character+1}}function Znt(e){D.assert(e.textChanges.length===1);const t=Xa(e.textChanges);return D.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Rme(e,t,r,i){const s=Knt(e,t,i),{line:o,character:c}=ob(M2(s),r);return{line:o+1,offset:c+1}}function Knt(e,t,r){for(const{fileName:i,textChanges:s}of r)if(i===t)for(let o=s.length-1;o>=0;o--){const{newText:c,span:{start:_,length:u}}=s[o];e=e.slice(0,_)+c+e.slice(_+u)}return e}function bAe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){const _=D.checkDefined(e.getScriptInfo(t)),u=Mme(r,i,_),g=c?void 0:ert(_,u);return{file:t,...u,lineText:g,isWriteAccess:s,isDefinition:o}}function ert(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Pc(r)).replace(/\r|\n/g,"")}function trt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var ZP=4,jme=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(jme||{}),nrt=class{constructor(){this.goSubtree=!0,this.lineIndex=new N9,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new KP,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=N9.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let _=this.endBranch.length-1;_>=0;_--)this.endBranch[_].updateCounts(),this.endBranch[_].charCount()===0&&(o=this.endBranch[_],_>0?s=this.endBranch[_-1]:s=this.branchNode);o&&s.remove(o);const c=this.startPath[this.startPath.length-1];if(i.length>0)if(c.text=i[0],i.length>1){let _=new Array(i.length-1),u=c;for(let h=1;h<i.length;h++)_[h-1]=new cW(i[h]);let g=this.startPath.length-2;for(;g>=0;){const h=this.startPath[g];_=h.insertAt(u,_),g--,u=h}let m=_.length;for(;m>0;){const h=new KP;h.add(this.lineIndex.root),_=h.insertAt(this.lineIndex.root,_),m=_.length,this.lineIndex.root=h}this.lineIndex.root.updateCounts()}else for(let _=this.startPath.length-2;_>=0;_--)this.startPath[_].updateCounts();else{this.startPath[this.startPath.length-2].remove(c);for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,s){const o=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=r);let c;function _(u){return u.isLeaf()?new cW(""):new KP}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(r);break;case 1:this.state===4?this.goSubtree=!1:(c=_(r),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=_(r),o.add(c),this.startPath.push(c)):r.isLeaf()||(c=_(r),o.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(c=_(r),o.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&o.add(r);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},rrt=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return Zp(Nc(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},tK=cla Line truncated