PageSourceSearch

https://www.panduit.com/etc.clientlibs/panduit/clientlibs/clientli…-26bc36bd21525eed95b09bc2d824e2dd-lc.min.js

js panduit.com collected 2026-10-01 11:46:54 UTC 3,727,689 bytes, 6 lines download raw bytes

1var e,t,n,r,i,o,a=Object.defineProperty,s=Object.defineProperties,c=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,d=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),p=Math.pow,f=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))_.call(t,n)&&f(e,n,t[n]);return e},g=(e,t)=>s(e,c(t)),h=(e,t)=>{var n={};for(var r in e)u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))t.indexOf(r)<0&&_.call(e,r)&&(n[r]=e[r]);return n},y=(e,t,n)=>f(e,"symbol"!=typeof t?t+"":t,n),v=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(t){i(t)}},a=e=>{try{s(n.throw(e))}catch(t){i(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())})),b=function(e,t){this[0]=e,this[1]=t},x=e=>{var t,n=e[d("asyncIterator")],r=!1,i={};return null==n?(n=e[d("iterator")](),t=e=>i[e]=t=>n[e](t)):(n=n.call(e),t=e=>i[e]=t=>{if(r){if(r=!1,"throw"===e)throw t;return t}return r=!0,{done:!1,value:new b(new Promise((r=>{var i=n[e](t);i instanceof Object||(e=>{throw TypeError(e)})("Object expected"),r(i)})),1)}}),i[d("iterator")]=()=>i,t("next"),"throw"in n?t("throw"):i.throw=e=>{throw e},"return"in n&&t("return"),i};function S(e,t){const n=crypto.randomUUID();e.uuid=n,window.digitalDataStore=window.digitalDataStore||{},window.digitalDataStore[t]=window.digitalDataStore[t]||{_list:[]},window.digitalDataStore[t]._list.push(n),window.digitalDataStore[t][n]=JSON.parse(JSON.stringify(e)),window.digitalData=e;var r=new CustomEvent(t,e);document.body.dispatchEvent(r)}function k(e){return e.replace(/,/g,"%2C")}function T(e){var t=[w("L1",e),w("L2",e),w("L3",e)].filter((function(e){return""!==e})).map(k).join(",");return""!==t?t:""}function C(e,t){if(null==e||""==e)return"";var n=e.split(":");return 0==n.length?"":"en"==t&&n[0]==t?"na":n[1]==t?n[0]:""}function w(e,t){if(null==t||""==t)return"";for(var n,r,i=t.split(":"),o=0,a=-1;o<i.length;){if("products"==i[o]&&(n=o+1,r=o+2,a=o+3),"L1"==e&&n==o)return i[o];if("L2"==e&&r==o)return i[o];if("L3"==e&&a==o)return i[o];o++}return""}function D(e,t,n){null!=e&&null!=e&&null!=t&&S({event:{name:"click",click:{linkName:e,linkUrl:t,pageSection:n}}},"click")}function N(e,t,n){null!=e&&null!=t&&null!=n&&S({event:{name:"menuClick",menuClick:{menuItem:e,linkUrl:t,menuItems:n}}},"menuClick")}function E(e,t,n,r,i){null!=e&&null!=t&&null!=n&&null!=r&&null!=i&&""!=e&&""!=t&&""!=n&&""!=r&&""!=i&&S({event:{name:"formDownload",formDownload:{fileName:e,fileFormat:t,fileTitle:n,baseProductID:r.toUpperCase(),productID:i.toUpperCase(),prodName:L()}}},"formDownload")}function P(e,t,n){null!=e&&null!=t&&null!=n&&""!=n&&S({event:{name:"showComparison",showComparison:{prodNames:e,partNumbers:t,baseProductIDs:n}}},"showComparison")}function F(e,t){var n,r,i;const o=null!=(i=null!=t?t:null==(r=null==(n=document.getElementById(e))?void 0:n.textContent)?void 0:r.trim())?i:"";null!=o&&""!=o&&S({event:{name:"button",button:{elementId:e,label:o}}},"button")}function A(e){if(null==e||"a"!==e.localName||!e.href)return!1;if(e.href.includes("javascript:void")||e.href.toLowerCase().includes("/panproducts/"))return!1;var t=e.href.split("/"),n=t[t.length-1].split("?")[0].split("#")[0].split(".");return!n[n.length-1].startsWith("html")}function I(){var e=window.location.pathname.match(/\/([^/]+)\.html$/);return null!==e&&e.length>1&&null!==e[1]&&""!==e[1]?e[1]:""}function O(){var e="";null!==window.location.hash&&""!==window.location.hash&&(e=new URLSearchParams(window.location.hash.replace("#","")).get("pn"));null!==e&&""!==e||null===window.location.search||""===window.location.search||(e=new URLSearchParams(window.location.search).get("pn"));if(null!==e&&""!==e)return e;var t=$("meta[name=datalayer]").data("pageinfo-productid");return null!==t&&""!==t?t:I()}function L(){var e=$("#sharepage");if(e.length){var t=e.data("product-name");if(null!=t&&""!==t)return t}return""}function R(e){if(null==e)return"";var t=function(e){if(null==e)return"";var t=e.closest(".cmp-productdetails__resource-row");if(null===t)return"";var n=t.querySelector(".cmp-productdetails__resource-desc");if(null===n||null===n.innerText||""===n.innerText)return"";var r=n.querySelector("a");if(null!==r){var i=Array.from(r.childNodes).filter((function(e){return 3===e.nodeType})).map((function(e){return e.textContent})).join("").trim();if(""!==i)return i}return n.innerText.replace(/\n/g," ").trim()}(e);if(null!==t&&""!==t)return t;if("a"===e.localName){var n=e.closest(".cmp-download");if(null!==n){var r=n.querySelector(".cmp-download__title");if(null!==r&&null!==r.innerText&&""!==r.innerText)return r.innerText.replace(/\n/g," ").trim()}return M(e)}return""}function M(e){if(null==e||null==e)return"";if("a"===e.localName){var t=e.href.split("/");return t[t.length-1]}return""}function j(e){if(null==e||null==e)return!1;if("a"===e.localName){var t=e.href.split("/"),n=t[t.length-1].split(".");return n[n.length-1]}}function B(e,t,n,r,i){null!=e&&null!=t&&null!=n&&null!=r&&null!=i&&""!=e&&""!=t&&""!=n&&""!=r&&""!=i&&S({event:{name:"viewFile",viewFile:{fileName:e,fileFormat:t,fileTitle:n,baseProductID:r.toUpperCase(),productID:i.toUpperCase(),prodName:L()}}},"viewFile")}jQuery().waypoint&&$(".element-animated").waypoint((function(e){var t=$(this.element).data("effect");t?$(this.element).addClass(t):$(this.element).addClass("fade-in")}),{offset:"90%"}
1),$(".line-ellipse").each((function(){var e=$(this).data("lines")?$(this).data("lines"):2;$(this).ellipsis({lines:e,responsive:!0})})),window.createDatalayerAndTriggerCustomEvent=S,window.createPageInfoDataLayer=function(e,t,n,r,i,o,a,s,c){const l=function(e){if(null==e||""==e)return"";var t=e.split("/");if(0==t.length)return"";return t[t.length-1]}(t);let u=a||"";s=s||"","page--product-detail"===l&&(u=O(),s=s||I()),S({event:{name:c,page:{pageInfo:{pageName:e,pageType:l,pageTitle:n,pageURL:r,cleanURL:i,location:C(e,o),pageLang:o,superCategory:w("L1",e),category:w("L2",e),subCategory:w("L3",e),categoryHierarchy:T(e),productId:u,baseProductId:s}}}},c)},window.modifyUrlForEnv=function(e){return e&&e.startsWith("/")&&!e.startsWith("/content/panduit")&&window.location.pathname.startsWith("/content/panduit")&&((e.startsWith("/en/")||e.startsWith("/en.html")||"/en"===e)&&(e="/na"+e),e="/content/panduit"+e),e},window.createMenuClickDatalayer=N,window.createInitFormDatalayer=function(e,t){null!=e&&null!=t&&(document.getElementsByClassName(e).length>0||document.getElementsByClassName(t).length>0)&&S({event:{name:"formStart",formStart:{formId:e,formName:t}}},"formStart")},window.createErrorFormDatalayer=function(e,t,n){null!=e&&null!=t&&S({event:{name:"formError",formError:{formId:e,formName:t,formError:n}}},"formError")},window.createSubmitFormDatalayer=function(e,t){null!=e&&null!=t&&S({event:{name:"formSubmit",formSubmit:{formId:e,formName:t}}},"formSubmit")},window.createErrorFormDatalayerContactUs=function(e,t,n,r){null!=e&&null!=t&&(null==n&&(n=[]),null==r&&(r=[]),S({event:{name:"formError",formError:{formId:e,formName:t,formError:n,formField:r}}},"formError"))},window.createSubmitFormDatalayerContactUs=function(e,t,n,r,i,o){null!=e&&null!=t&&(null==r&&(r=""),S({event:{name:"formSubmit",formSubmit:{formId:e,formName:t,email:n,areaOfInterest:r,companyName:i,country:o}}},"formSubmit"))},window.createAddToCompareDatalayer=function(e,t,n){null!=e&&null!=n&&""!=n&&S({event:{name:"addToCompare",addToCompare:{prodName:t,partNumber:e,baseProductID:n}}},"addToCompare")},window.createRemoveFromCompareDatalayer=function(e,t,n){null!=e&&null!=n&&""!=n&&S({event:{name:"removeFromCompare",removeFromCompare:{prodName:t,partNumber:e,baseProductID:n}}},"removeFromCompare")},window.createShowTabItemDatalayer=function(e,t){null!=e&&""!=e&&S({event:{name:"showTabItem",showTabItem:{itemId:e,itemTitle:t}}},"showTabItem")},window.createHideTabItemDatalayer=function(e,t){null!=e&&""!=e&&S({event:{name:"hideTabItem",hideTabItem:{itemId:e,itemTitle:t}}},"hideTabItem")},window.createTabClickDatalayer=function(e,t){null!=e&&""!=e&&S({event:{name:"tab",tab:{tabName:e,tabURL:t}}},"tab")},window.createShowComparisonDatalayer=P,window.createShowBOMDatalayer=function(e,t,n,r){null!=e&&null!=t&&null!=n&&null!=r&&S({event:{name:"showBOM",showBOM:{partNumbers:e,quantity:t,baseProductID:n,prodName:r}}},"showBOM")},window.createAddtoListDatalayer=function(e,t,n,r,i){null!=t&&null!=n&&null!=r&&null!=i&&""!=t&&""!=n&&""!=r&&""!=i&&S({event:{name:"addToList",addToList:{prodName:e,pageURL:n,prodQty:r,productId:t,baseProductID:i}}},"addToList")},window.createBuyHereDatalayer=function(e,t,n,r,i){null!=t&&null!=n&&null!=r&&null!=i&&""!=t&&""!=n&&""!=r&&""!=i&&S({event:{name:"buyHere",buyHere:{prodName:e,pageURL:n,prodQty:r,productId:t,baseProductID:i}}},"buyHere")},window.showComparisonDatalayer=function(e){if(null!=e&&null!=e&&0!=e.length){for(var t,n="",r="",i="",o=0;o<=e.length-1;
1)null!=(t=e[o])&&null!=t&&(n+=t.shortDescription,r+=t.partNumber,i+=t.baseProductId,o<e.length-1&&(n+="|",r+="|",i+="|")),o++;""!=n&&""!=r&&P(n,r,i)}},window.createDatalayerForDPLogin=function(e,t,n,r,i,o){S({event:{name:"DPLogin",DPLogin:{JobTitle:e,CompanyName:t,Industry:n,AreaOfInterest:r,ManagementLevel:i,EmailAddress:o}}},"DPLogin")},window.createDatalayerForDPLogout=function(e,t,n=!1){const r=n?"DPTimeoutLogout":"DPLogout";S({event:{name:r,[r]:{DPAccountName:null!=e?e:"",DPAccountNumber:null!=t?t:""}}},r)},window.createDatalayerSelectAccount=function(e,t,n=!1){S({event:{name:"SelectAccount",SelectAccount:{AccountNumber:Array.isArray(e)?e:[e],AccountName:Array.isArray(t)?t:[t],SelectionType:n?"auto":"manual"}}},"SelectAccount")},window.createErrorDatalayer=function(e){null!=e&&""!=e&&S({event:{name:"Error",Error:{ErrorMessage:e}}},"Error")},window.createDatalayerForLoginError=function(e){null!=e&&""!=e&&S({event:{name:"LoginError",LoginError:{ErrorMessage:e}}},"LoginError")},window.onCoveoSearchDatalayer=function(e){null!=e&&""!=e&&S({event:{name:"coveoSearch",coveoSearch:{searchTerm:e}}},"coveoSearch")},window.onReadMoreCmpExpandDatalayer=function(e){null!=e&&""!=e&&S({event:{name:"readMoreCmpExpand",readMoreCmpExpand:{pageUrl:e}}},"readMoreCmpExpand")},window.createButtonClickDatalayer=F,window.getPdpBaseProductId=I,window.getPdpProductId=O,window.onPrintPDFonPDPDatalayer=function(e,t,n){null!=e&&""!=e&&null!=n&&""!=n&&S({event:{name:"printPDP",printPDP:{prodName:t,partNumber:e,baseProductID:n}}},"printPDP")},window.onDownloadOptionsPDPDatalayer=function(e,t,n){null!=e&&""!=e&&null!=n&&""!=n&&S({event:{name:"downloadOptions",downloadOptions:{prodName:t,partNumber:e,baseProductID:n}}},"downloadOptions")},window.onClickOnShortDescDatalayer=function(e){null!=e&&""!=e&&S({event:{name:"shortDescOnSearch",shortDe
1scOnSearch:{url:e}}},"shortDescOnSearch")},document.addEventListener("click",(function(e){var t=e.target,n=null!=t?t.closest("button"):null,r=null!=t?t.closest("panduit-button"):null;if(null!=n&&null==r&&F(n.id,z(n)),null!=t&&null!=t.parentNode){var i="a"===t.localName?t:t.closest("a"),o=null!=i&&W(i);null!=i&&null!=i.localName&&function(e,t){if(W(e))return;let n=t.target;A(n)?E(M(n),j(n),R(n),I(),O()):!function(e,t){return null!=e&&null!=t&&"span"===e.localName&&A(t)}(n,e)?D(z(n),e.href,V(e)):E(M(e),j(e),R(e),I(),O())}(i,e),o||"div"!==t.localName||"a"!==t.parentNode.localName?o||"a"!==t.localName||"li"!==t.parentNode.localName?o||"span"!==t.localName||"div"!==t.parentNode.localName?"i"!==t.localName||!t.classList.contains("fa-file-text")&&!t.classList.contains("fa-download")||null==t.parentNode.parentNode||"a"!==t.parentNode.parentNode.localName||t.parentNode.parentNode.classList.contains("cmp-common--link")?"span"===t.localName&&t.classList.contains("cmp-productdetails__resource-option-text")&&null!=t.parentNode&&"a"===t.parentNode.localName&&B(M(t.parentNode),j(t.parentNode),R(t.parentNode),I(),O()):B(M(t.parentNode.parentNode),j(t.parentNode.parentNode),R(t.parentNode.parentNode),I(),O()):null!=t.parentNode.parentNode&&D(z(t),t.parentNode.parentNode.href,V(t)):D(z(t),t.href,V(t)):D(t.parentNode.innerText,t.parentNode.href,V(t))}Z()})),window.requestADemoDatalayer=function(e,t,n,r){null!=e&&null!=n&&null!=r&&""!=e&&""!=n&&""!=r&&S({event:{name:"requestADemo",requestADemo:{prodName:t,partNumber:e,url:n,baseProductID:r}}},"requestADemo")},window.submitLocationLanguageDatalayer=function(e,t,n,r){if(null==e||null==t||null==n||null==r||""==e||""==t||""==n||""==r)return;S({event:{name:"submitLocationLanguage",submitLocationLanguage:{RegionLanguage:e,RegionLanguageCode:t,CountryOfUse:n,CountryOfUseCode:r}}},"submitLocationLanguage")},window.couChangeDatalayer=function(e,t){if(null==e||null==t||""==e||""==t)return;S({event:{name:"COUChange",COUChange:{CountryOfUse:e,CountryOfUseCode:t}}},"COUChange")};
1const J={BUTTON:"btn",LINK:"link",INPUT:"input",TAB:"tab"};function U(e){return e?e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""):""}function q(e,t,n){var r=U(e);return n?n+"-"+r+"-"+t:r+"-"+t}function z(e){return e.innerText&&""!==e.innerText.trim()?e.innerText.trim():e.ariaLabel&&null!==e.ariaLabel&&""!==e.ariaLabel.trim()?e.ariaLabel.trim():e.alt&&null!==e.alt&&""!==e.alt.trim()?e.alt.trim():""}function V(e){var t=e.getBoundingClientRect().top+window.scrollY,n=document.getElementsByClassName("panduit-global-header"),r=document.getElementsByClassName("pdt-global-footer");if((null==n?void 0:n.length)>0&&t>=0&&t<=0+n[0].clientHeight)return"Header";if((null==r?void 0:r.length)>0){var i=r[0].offsetTop;if(t>=i&&t<=i+r[0].clientHeight)return"Footer"}return"Body"}function W(e){return null!=e&&null!=e.closest&&null!=e.closest(".panduit-main-nav .dropdown-menu")}function H(e){if(null==e||null==e.children)return null;for(var t=0;t<e.children.length;t++){var n=e.children[t];if(null!=n&&"a"===n.localName)return n}return null}function K(e){if(null==e)return"";var t=e.getAttribute("href");return null==t||""===t||"#"===t||"javascript:void(0)"===t?"":t}function G(e,t,n){if(null==t||null==n)return null;var r=n.closest("li");if(null==r)return null;var i=function(e){if(null==e)return"";var t=e.querySelector("p");return z(null!=t?t:e)}(t);return null==i||""===i?null:{level:e,menuItem:i,linkUrl:K(t),menuItemElement:r}}function X(e){if(null!=e){var t=function(e,t,n,r){var i="";if(null==t)return"";var o=t.split("/");if("L3"==e)for(var a=3;a>0;a--)i+=o[o.length-a],a>1&&(i+="|");if("L2"==e)if(""==t)i=function(e,t){if(null==e)return Y(t)+".html";for(var n=e.querySelectorAll("ul.dropdown-menu a[href]"),r=0;r<n.length;r++){var i=n[r].getAttribute("href");if(null!=i&&""!==i&&"#"!==i&&"javascript:void(0)"!==i&&!i.startsWith("javascript:void")){var o=i.split("?")[0].split("#")[0].split("/").filter(Boolean),a=o.indexOf("products");if(a>=0&&o.length>a+2)return o[a+1]+"|"+o[a+2]+".html"}}var s=e.closest("li.levelOne"),c="";if(null!=s){var l=K(H(s));if(""!==l)c=l.split("?")[0].split("#")[0].split("/").pop()}var u=Y(t);if(""!==c)return c+"|"+u+".html";return u+".html"}(r,n);else for(a=2;a>0;a--)i+=o[o.length-a],a>1&&(i+="|");"L1"==e&&(i=o[o.length-1]);return i}(e.level,e.linkUrl,e.menuItem,e.menuItemElement);N(e.menuItem,e.linkUrl,t),null==window.digitalData&&(window.digitalData={}),"L1"===e.level?(window.digitalData.l1name=e.menuItem,window.digitalData.l1url=e.linkUrl):"L2"===e.level?(window.digitalData.l2name=e.menuItem,window.digitalData.l2url=e.linkUrl):"L3"===e.level&&(window.digitalData.l3name=e.menuItem,window.digitalData.l3url=e.linkUrl,ee())}}function Q(e){if((null!=e.target?e.target.closest(".dropdown-menu"):null)===e.currentTarget){var t=function(e){if(null==e||null==e.closest)return null;if(null==e.closest(".panduit-main-nav"))return null;var t=e.closest("a"),n=null;if(null!=t&&null!=t.querySelector&&null!=t.querySelector(".l-three"))n=t;else{var r=e.closest(".l-three");null!=r&&(n=r.closest("a"))}if(null!=n)return G("L3",n,e);var i=e.closest("li.li-level-two");if(null!=i)return G("L2",H(i),e);var o=e.closest("li.levelOne");return null!=o?G("L1",H(o),e):null}(e.target);(function(e){return null!=e&&null!=e.menuItemElement&&("L1"!==e.level&&"L2"!==e.level||!e.menuItemElement.classList.contains("dropdown-submenu")||!(e.menuItemElement.classList.contains("main-nav-active")||e.menuItemElement.classList.contains("active")||e.menuItemElement.classList.contains("show-menu")))})(t)&&X(t)}}function Y(e){return null==e||""===e?"":U(e).replace(/-+/g,"-").replace(/^-/,"").replace(/-$/,"")}function Z(){for(var e=document.getElementsByClassName("dropdown-menu"),t=!1,n=0;n<e.length;n++)e[n].classList.contains("show")&&(t=!0);window.digitalData.isMenuDisplayed=t,0==window.digitalData.isMenuDisplayed&&ee()}function ee(){window.digitalData.l3name="",window.digitalData.l3url="",window.digitalData.l2name="",window.digitalData.l2url="",window.digitalData.l1name="",window.digitalData.l1url=""}function te(){localStorage.setItem("previousPageUrl",window.location.href.toString())}window.AnalyticsElementType=J,window.createSlug=U,window.createElementId=q,window.createButtonId=function(e,t){return q(e,J.BUTTON,t)},window.formatIdWithUniqueValue=function(e,t,n){var r=e;return t&&(r+="-"+U(t)),void 0!==n&&(r+="-row-"+(n+1)),r},$(".panduit-global-header").on("click",".panduit-main-nav li:not(.bom-nav-item)",(function(e){e.preventDefault(),Z();var t,n=document.getElementsByClassName("dropdown-menu");window.digitalData.isMenuDisplayed=!1;for(var r=0;r<n.length;r++)"true"!==(t=n[r]).dataset.menuClickBound&&(t.addEventListener("click",Q),t.dataset.menuClickBound="true")})),window.setPrevPageLocalStorage=te,window.onSeeOptionsClick=function(e){!function(e){null!=e&&""!=e&&S({event:{name:"seeOptionsOnSearch",seeOptionsOnSearch:{url:e}}},"seeOptionsOnSearch")}(e),te()},window.onMoreOptionsClick=function(e){!function(e){null!=e&&""!=e&&S({event:{name:"moreOptionsOnSearch",moreOptionsOnSearch:{url:e}}},"moreOptionsOnSearch")}(e),te()};function ne(){if("undefined"!=typeof OnetrustActiveGroups&&OnetrustActiveGroups){const e=OnetrustActiveGroups.split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e}));createDatalayerAndTriggerCustomEvent({event:{name:"OneTrustConsentUpdate",OneTrustConsentUpdate:{consentGroups:e}}},"OneTrustConsentUpdate")}}function re(){var e=[Panduit.locale,Panduit.region],t="/content/panduit/"+e[1]+"/"+e[0]+"/sign-in.html";
1let n=ContextHub.getItem("store/userInfo/email"),r=ContextHub.getItem("store/userInfo/accountNumber");var i=new XMLHttpRequest,o=t,a="cart-items-"+n+"-"+r;i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(localStorage.setItem(a,"[]"),ContextHub.setItem("store/userInfo",{activeSession:!1}),window.location.href=o)},i.open("POST","/bin/panduit/deleteSession",!0),i.send()}function ie(e){if(e){const t=e.split("/");let n=t[t.length-1],r="";return n.includes("?")&&(r=n.split("?").pop()),n=n.split(".")[0],r?`${n}?${r}`:n}return""}Granite.I18n.setUrlSuffix(".json/20260914-211419555"),$(document).ready((function(){$(document).on("click","ul.shopby-tab.dropdown-menu li",(function(e){$(document).trigger("navCategoryChange"),$(this).closest(".open").addClass("dontClose");var t=$(this).data("tab");$("#shop-by-category").hide(),$("#shop-by-classification").hide(),$(".shopby-tab").children().removeClass("active"),$(this).addClass("active"),$("#"+t).show()})),$(document).on("hide.bs.dropdown",".panduit-main-nav > li",(function(e){$(this).hasClass("dontClose")?e.preventDefault():$(this).find("#shop-by-classification").hide(),$(this).removeClass("dontClose")})),$("body").on("mouseover",".list-group-item",(function(){$(".list-group-item i").removeClass("fas fa-caret-right"),$(this).find("i:first").addClass("fas fa-caret-right"),$(".list-group-item").removeClass("default"),$(this).addClass("default")})),ne()})),$("#Modal").on("show.bs.modal",(function(){$("#video1")[0].play()})),$("#Modal").on("hidden.bs.modal",(function(e){$("#video1").attr("src",$("#video1").attr("src"))})),window.addEventListener("OneTrustGroupsUpdated",(()=>{ne()})),window.encF=function(e,t){let n=JSON.stringify(e),r=n.substring(n.length-7)+n.substring(0,Number.parseInt(n.length/2)),i=n.substring(0,11)+n.substring(Number.parseInt(n.length/2)),o=btoa(Array.from(t.encode(r),(e=>String.fromCodePoint(e))).join("")),a=btoa(Array.from(t.encode(i),(e=>String.fromCodePoint(e))).join(""));return[a.substr(0,11)+o,o.substr(0,7)+a]},window.auditTrackingCode=function(e,t){var n=ContextHub.getItem("store/userInfo/accountNumber"),r=!1,i={oktaId:ContextHub.getItem("store/userInfo/userId"),emailAddress:ContextHub.getItem("store/userInfo/email"),accountNumber:n||"",action:e};$.ajax({url:"/bin/panduit/portal/auditTrackingCode",dataType:"json",type:"post",contentType:"application/json",data:JSON.stringify(window.encPl(JSON.stringify(i),self.crypto.getRandomValues(new Uint8Array(3))[1]%17,new TextEncoder)),complete:function(){r||"function"==typeof t&&t()},error:function(e,t,n){if(403===e.status&&"true"!==Panduit.isAuthoring)return r=!0,void re();console.error("Audit tracking error")}})},window.logoutFromPortal=re,window.encPl=function(e,t,n){let r="",i=btoa(Array.from(n.encode(e),(e=>String.fromCodePoint(e))).join("")),o=i.substr(2),a=o.length;if(2*t<=a)r=o.substr(a-t,t)+o+o.substr(0,2*t);else{let e=o;for(;2*t>e.length;)e+=o;r=e.substr(e.length-t,t)+e+e.substr(0,2*t)}let s=btoa(Array.from(n.encode((new Date).toUTCString()),(e=>String.fromCodePoint(e))).join(""));return{i:t+t+t,d:r,l:t-a,j:t+a,m:s+s+r.substr(r.length-t,t),n:i.substr(0,2)}},window.setCookie=function(e,t,n={}){let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;n.expires&&(r+=`; expires=${n.expires.toUTCString()}`),n.path&&(r+=`; path=${n.path}`),n.domain&&(r+=`; domain=${n.domain}`),document.cookie=r},window.getCookie=function(e){const t=document.cookie.split("; ");for(const n of t){const[t,r]=n.split("=");if(decodeURIComponent(t)===e)return decodeURIComponent(r)}return null},window.getPageContentTopOffset=function(){const e=$(window).outerWidth(),t=document.querySelector(".panduit-global-header");let n=parseFloat(window.getComputedStyle(t).height);if(e<767){const e=document.querySelector(".CoveoOmnibox");n+=e?parseFloat(window.getComputedStyle(e).height):48}return n},window.getFileName=ie,window.getDMImagePath=function(e,t){let n=ie(e)||"image-not-available";return t&&(n+="?hei="+t),Panduit.dmBaseUrl+n},window.baseModule=angular.module("baseModule",["panduit.serviceEndPoints","core-directives","CoveoSearchModule","ngCookies"]),baseModule.constant("baseModuleConstants",{QUERY_PARAM:"",POPUP_NO_COOKIE:"NO_COOKIE",POPUP_RETURN_USER:"RETURN_USER",POPUP_PRODUCT:"PRODUCT",POPUP_CONTENT:"CONTENT"}),baseModule.controller("baseController",["$scope","$q","panduitNavService","baseModuleConstants","$cookies",function(e,t,n,r,i){e.validVariants={},window.addEventListener("validVariantsUpdated",(function(t){t.detail&&(e.validVariants=t.detail)})),e.header={},e.footer={},e.pdp={},e.showPopupNotification=!1,e.showDistyMobileNotification=!1,e.popupData={},e.distyMobilePopUpData={},e.suppressPopupNotification=!1,e.suppressDistyMobilePopUp=!1,e.navigationInitFlags={},e.getTranslation=function(e){return Granite.I18n.get(e)},e.getDistyMobilePopUPCookie=function(){i.get("DISTY_MOBILE_POPUP_SUPPRESS")&&(e.suppressDistyMobilePopUp=!0)},window.mobileAndTabletCheck=function(){let e=!1;var t;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e},e.checkForDistyMobilePopup=function(){var t,n=window.mobileAndTabletCheck(),r=window.location.pathname.replace("/content/panduit","").split("/");"en"===r[1]?(t="distributorportal"===r[2]||"sign-in.html"===r[2],r.slice(2).indexOf("userregistration.html")>-1&&(t=!1)):(t="distributorportal"===r[3]||"sign-in.html"===r[3],r.slice(3).indexOf("userregistration.html")>-1&&(t=!1)),e.header.distyMobilePopUp&&e.header.distyMobilePopUp.distyMobilePopUpTitleContent&&e.header.distyMobilePopUp.distyMobilePopupEnabled&&t&&n&&(e.distyMobilePopUpData={title:e.header.distyMobilePopUp.distyMobilePopUpTitleContent,primarybody:e.header.distyMobilePopUp.distyMobileBodyTextContent,secondarybody:e.header.distyMobilePopUp.distyMobileSubBodyTextContent,button1text:e.header.distyMobilePopUp.firstDistyMobileButtonContent,button2text:e.header.distyMobilePopUp.secondDistyMobileButtonTextContent,checkboxtext:"true"===e.header.distyMobilePopUp.distyMobileDisplayCheckboxContent?e.header.distyMobilePopUp.distyMobileDisplayCheckboxLabelContent:"",checkboxselected:"true"===e.header.distyMobileDisplayCheckboxContentChecked},e.showDistyMobileNotification=!0)},e.checkCookiesForPopup=function(){var t,o,a=i.get("PANDUIT_IWE_LOCALE"),s=window.location.pathname.replace("/content/panduit","").split("/");if("en"===s[1]?(t="products"===s[2],o=s.slice(2)):(t="products"===s[3],o=s.slice(3)),a){if("true"!==i.get("POPUP_NOTIF_SUPPRESS")){var c=a.split("_"),l="",u="";if(2==c.length)switch(a){case"es_es":case"fr_fr":l=Panduit.region,u=Panduit.locale;break;case"ja_ja":l="jpn",u="ja";break;case"de_de":l="emea",u="de";break;case"zh_cn":l="chn",u="zh";break;case"en_us":l="na",u="en";break;default:l=c[1],u=c[0]}else l=Panduit.region,u=Panduit.locale;l!==Panduit.region&&(e.popupData={popuptype:r.POPUP_RETURN_USER,targetType:t?r.POPUP_PRODUCT:r.POPUP_CONTENT,pageregion:Panduit.region,pagelanguage:Panduit.locale,currentpath:o,cookieregion:l,cookielang:u},n.getNavData(l,u).then((function(t){t.header&&t.header.returnUserPop&&(e.popupData.targetType===r.POPUP_PRODUCT?t.header.returnUserPop.returnUserPopupEnabledProduct&&(e.popupData.primarybody=t.header.returnUserPop.returnUserBodyTextProduct,e.popupData.button1text=t.header.returnUserPop.returnUserButton1TextProduct,e.popupData.button2text=t.header.returnUserPop.returnUserButton2TextProduct,e.popupData.button3text=t.header.returnUserPop.returnUserButton3TextProduct,e.showPopupNotification=!0):t.header.returnUserPop.returnUserPopupEnabledContent&&(e.popupData.primarybody=t.header.returnUserPop.returnUserBodyTextContent,e.popupData.button1text=t.header.returnUserPop.returnUserButton1TextContent,e.popupData.button2text=t.header.returnUserPop.returnUserButton2TextContent,e.popupData.button3text=t.header.returnUserPop.returnUserButton3TextContent,e.showPopupNotification=!0),setTimeout((()=>{dispatchEvent(new CustomEvent("pageContentTopOffsetChanged"))}),0))}),(function(e){})))}}else e.header.newUserPopUp&&(t?e.header.newUserPopUp.newUserPopupEnabledProduct&&(e.popupData={primarybody:e.header.newUserPopUp.newUserBodyTextProduct,button1text:e.header.newUserPopUp.firstNewUserButtonProduct,button2text:e.header.newUserPopUp.secondNewUserButtonTextProduct,popuptype:r.POPUP_NO_COOKIE,targetType:t?r.POPUP_PRODUCT:r.POPUP_CONTENT,pageregion:Panduit.region,pagelanguage:Panduit.locale,currentpath:o},e.showPopupNotification=!0):e.header.newUserPopUp.newUserPopupEnabledContent&&(e.popupData={primarybody:e.header.newUserPopUp.newUserBodyTextContent,button1text:e.header.newUserPopUp.firstNewUserButtonContent,button2text:e.header.newUserPopUp.secondNewUserButtonTextContent,popuptype:r.POPUP_NO_COOKIE,targetType:t?r.POPUP_PRODUCT:r.POPUP_CONTENT,pageregion:Panduit.region,pagelanguage:Panduit.locale,currentpath:o},e.showPopupNotification=!0),setTimeout((()=>{dispatchEvent(new CustomEvent("pageContentTopOffsetChanged"))}),0))},e.onNavLinkClick=function(t){e.navigationInitFlags[t]=!0,e.navLinkActive===t?e.navLinkActive=null:e.navLinkActive=t},e.hideMenuNav=function(){"desktop"===window.getDeviceTypeByQuery()?e.navLinkActive=null:$(".navbar-toggler.navbar-toggle").hasClass("collapsed")||$(".navbar-toggler.navbar-toggle").
1click()},e.i18nSubstitutions=function(e,t){var n=e;if(n&&t&&t.length>0)for(var r=0;r<t.length;r++)n=n.replace("{"+r+"}",t[r]);return n},e.cookieAccepted=function(){var t=new Date;t.setFullYear(t.getFullYear()+1),i.put("PANDUIT_COOKIE_ACCEPTED","true",{path:"/",expires:t}),e.showCookieBanner=!1},e.processPopupNotificationSelection=function(t){if(e.showPopupNotification=!1,setTimeout((()=>{dispatchEvent(new CustomEvent("pageContentTopOffsetChanged"))}),0),"button1"===t||"close"===t)if(e.popupData.popuptype===r.POPUP_NO_COOKIE){var n=e.popupData.pagelanguage+"_"+e.popupData.pageregion;window.updateRegionOrCountryCookie("PANDUIT_IWE_LOCALE",n)}else e.popupData.popuptype===r.POPUP_RETURN_USER&&i.put("POPUP_NOTIF_SUPPRESS","true",{path:"/"});else if("button2"===t){if(e.popupData.popuptype===r.POPUP_NO_COOKIE){var o=!1;e.popupData.targetType===r.POPUP_PRODUCT?(a=e.header.newUserPopUp.newUserSecondButtonPathProduct,"true"===e.header.newUserPopUp.newUserSecondButtonTargetProduct&&(o=!0)):(a=e.header.newUserPopUp.newUserSecondButtonPathContent,"true"===e.header.newUserPopUp.newUserSecondButtonTargetContent&&(o=!0)),a.indexOf("?")>=0?a+="&targetURL="+e.popupData.currentpath.join("/")+"&spn=y":a+="?targetURL="+e.popupData.currentpath.join("/")+"&spn=y",o?window.open(a,"_blank"):window.location.href=a}else if(e.popupData.popuptype===r.POPUP_RETURN_USER){var a;o=!1;e.popupData.targetType===r.POPUP_PRODUCT?(a=e.header.returnUserPop.returnUserButton2PathProduct,"true"===e.header.returnUserPop.returnUserButton2TargetProduct&&(o=!0)):(a=e.header.returnUserPop.returnUserButton2PathContent,"true"===e.header.returnUserPop.returnUserButton2TargetContent&&(o=!0)),a.indexOf("?")>=0?a+="&targetURL="+e.popupData.currentpath.join("/")+"&spn=y":a+="?targetURL="+e.popupData.currentpath.join("/")+"&spn=y",o?window.open(a,"_blank"):window.location.href=a}}else if("button3"===t){o=!1;e.popupData.targetType===r.POPUP_PRODUCT?"true"===e.header.returnUserPop.returnUserButton3TargetProduct&&(o=!0):"true"===e.header.returnUserPop.returnUserButton3TargetContent&&(o=!0);var s="/"+e.popupData.cookieregion+"/"+e.popupData.cookielang+(e.popupData.currentpath.length>0?"/"+e.popupData.currentpath.join("/"):".html");s=window.modifyUrlForEnv(s),o?window.open(s,"_blank"):window.location.href=s}setTimeout((()=>{"mobile"!=window.getDeviceTypeByQuery()&&"tablet"!=window.getDeviceTypeByQuery()&&($("span.nav-background").css("top",$("header").height()),$(".dropdown-menu.multi-level").length>0&&$(".dropdown-submenu.levelOne .dropdown-menu.active").css("top",$(".dropdown-menu.multi-level").offset().top))}),0)},e.getCountryTranslation=function(){return Granite.I18n.get(window.getCountryI18n())},e.getCountryFlag=function(){return window.getCountryFlag()},e.processDistyMobilePopupSelection=function(t){var n;e.distyMobilePopUpData.checkboxselected&&i.put("DISTY_MOBILE_POPUP_SUPPRESS","true",{path:"/"}),e.showDistyMobileNotification=!1;var r=!1;"button1"===t&&(n=e.header.distyMobilePopUp.distyMobileFirstButtonPathContent,"true"===e.header.distyMobilePopUp.distyMobileFirstButtonTargetContent&&(r=!0)),"button2"===t&&(n=e.header.distyMobilePopUp.distyMobileSecondButtonPathContent,"true"===e.header.distyMobilePopUp.distyMobileSecondButtonTargetContent&&(r=!0)),t&&(r?window.open(n,"_blank"):window.location.href=n)},e.printPdf=function(t,n,r){r&&window.createButtonClickDatalayer(r);var i=e.validVariants[0]?e.validVariants[0]:t;window.onPrintPDFonPDPDatalayer(i,window.getPdpShortDescription?window.getPdpShortDescription():"",n||window.getPdpBaseProductId());var o={region:Panduit.region,podsRegionOfUse:window.getPodsRegionOfUse(),language:Panduit.locale,item:i},a=new XMLHttpRequest;a.open("POST","/bin/panduit/productpdf",!0),a.setRequestHeader("Content-Type","application/json"),a.responseType="blob",a.onload=function(){if(200===a.status){var e=a.getResponseHeader("content-disposition").split(";")[1].trim().split("=")[1].replace(/"/g,""),t=new Blob([a.response],{type:"application/pdf"}),n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.setAttribute("download",e),n.target="_blank",n.click()}else console.error("PDF request failed with status: "+a.status)},a.send(JSON.stringify(o))},e.showOptionsErrors=function(e){e&&window.createButtonClickDatalayer(e),window.createErrorDatalayer("User Error: User has not selected a variant");var t=document.createEvent("HTMLEvents");t.initEvent("showOptionsErrors",!0,!1),window.dispatchEvent(t),(t=document.createEvent("HTMLEvents")).initEvent("showOptionsErrorBox",!0,!1),window.dispatchEvent(t)},e.scrollToElement=function(e){document.getElementById(e).scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},e.showOptionsErrorsAndScroll=function(t,n){e.showOptionsErrors(n),setTimeout((function(){e.scrollToElement(t)}),100)},e.getVariantValue=function(e,t){let n;for(var r in e)if(n=e[r],t in n)return'"'+n[t].replaceAll('"','""')+'"';return""},/\/library(\/|\.html)/.test(window.location.pathname)||(e.getDistyMobilePopUPCookie(),n.getNavData().then((function(t){window.dispatchEvent(new CustomEvent("HeaderNavLoaded",{detail:t.header})),e.header=t.header,e.footer=t.footer,e.pdp=t.pdp,e.suppressPopupNotification||e.checkCookiesForPopup(),e.suppressDistyMobilePopUp||e.checkForDistyMobilePopup()}),(function(e){})),e.showCookieBanner="true"!==i.get("PANDUIT_COOKIE_ACCEPTED"))}]),baseModule.factory("panduitNavService",["$http","$q","serviceEndPoints",function(e,t,n){return{data:null,makeNavJSONRequest:function(t){return e.get(t)},getNavData:function(e,n){e&&n||(e=Panduit.region,n=Panduit.locale);var r="/bin/panduit/navigation?region="+e+"&lang="+n,i=t.defer();return this.data?i.resolve(this.data):(this.makeNavJSONRequest(r).then((function(e){e.data&&i.resolve(e.data)}),(function(e){})),i.promise)}}}]);var oe=angular.module("core-directives",[]);oe.directive("errSrc",(function(){return{link:function(e,t,n){var r;n&&(r=n.errSrc);var i=new Image;i.src=n.src?n.src:n.ngSrc,angular.element(i).bind("error",(function(){var e,t=n.src?n.src:n.srcset;t!==n.errSrc&&(e=r?Panduit.dmBaseUrl+"image-not-available?$"+r+"$":"/content/dam/technical/images/image-not-available.png",t?n.$set("src",e):n.$set("srcset",e))}))}}})),oe.directive("ngEnter",(function(){return function(e,t,n){t.bind("keydown keypress",(function(t){13===t.which&&(e.$apply((function(){e.$eval(n.ngEnter)})),t.preventDefault())}))}})),oe.directive("repeatDone",(function(){return function(e,t,n){e.$last&&e.$eval(n.repeatDone)}})),angular.module("panduit.serviceEndPoints",[]).constant("serviceEndPoints",{panduitCpqUrl:Panduit.panduitCpqUrl,panduitCpqPartUrl:Panduit.panduitCpqPartUrl}),baseModule.factory("ProductCompareCookieService",["$rootScope","$cookies",function(e,t){const n={getCookie:function(e){return t.get(e)},setCookie:function(n,r){t.put(n,r,{path:"/"}
1),e.$emit("productComparisonCookieChanged",{name:n,value:r})},removeCookie:function(n){t.remove(n,{path:"/"}),e.$emit("productComparisonCookieChanged",{name:n,value:null})},removeCookieValue:function(n,r){let i=t.get(n);if(i){const o=JSON.parse(i).filter((function(e){return!angular.equals(e.partNumber,r.partNumber)}));i=JSON.stringify(o),t.put(n,i,{path:"/"}),e.$emit("productComparisonCookieChanged",{name:n,value:i})}}};return n}]),baseModule.controller("ProductComparisonDeckController",["$scope","ProductCompareCookieService","$rootScope",function(e,t,n){const r="PANDUIT_COMPARE_DECK_MINIMIZED";e.maxEntries=4,e.widthPercent=25,e.maxItemsArray=[],e.region="",e.language="",e.cookieName="",e.comparisonItems=[],e.comparisonPartNumbers=[],e.showDeck=!1,n.compareDeckMinimized=!1,this.$onInit=function(){e.setRegionLang(),e.cookieName="PRODUCT_COMPARISON_"+e.region.toUpperCase()+"_"+e.language.toUpperCase(),n.compareDeckMinimized=JSON.parse(localStorage.getItem(r))||!1,e.setMaxEntries(),e.initItems()},e.getTranslation=function(e){return Granite.I18n.get(e)},e.createMaxItemsArray=function(){for(let t=0;t<e.maxEntries;t++)e.maxItemsArray.push(t)},e.setMaxEntries=function(){const t=document.querySelector(".cmp-comparison-deck .cmp-comparison-deck__left-deck-container");e.maxEntries=null!=t&&null!=t?t.getAttribute("data-max-items"):4,e.widthPercent=100/e.maxEntries,e.createMaxItemsArray()},e.setRegionLang=function(){const t=window.location.pathname.replace("/content/panduit","").split("/");e.region=t[1],e.region&&""!==e.region&&"en"!==e.region?e.language=t[2]:(e.region="na",e.language="en")},e.clearAll=function(){t.removeCookie(e.cookieName)},e.removeItem=function(n){let r=n.currentTarget.getAttribute("data-cookieval");r&&(r=JSON.parse(r),t.removeCookieValue(e.cookieName,r),window.createRemoveFromCompareDatalayer(r.partNumber,r.shortDescription,r.baseProductId))},e.toggleItem=function(i,o,a,s,c,l,u,_){if(a=null!=a&&a.length>0?Panduit.dmBaseUrl+a.split("/").pop():Panduit.dmBaseUrl+"image-not-available",null!=o){if("x"===o){i.preventDefault(),e.comparisonPartNumbers=e.comparisonItems.map((e=>e.partNumber));let t=document.createEvent("HTMLEvents");return t.initEvent("showOptionsErrors",!0,!1),window.dispatchEvent(t),t=document.createEvent("HTMLEvents"),t.initEvent("showOptionsErrorBox",!0,!1),void window.dispatchEvent(t)}let d=!0;const p=e.comparisonItems,f=p.length,m={partNumber:o,imagePath:a,productUrl:s,shortDescription:c,excludedCountries:l,excludedRegions:u,baseProductId:_};let g=null;const h=p.filter((function(e){return!angular.equals(e.partNumber,m.partNumber)||(g=e,!1)}));g&&window.createRemoveFromCompareDatalayer(g.partNumber,g.shortDescription,g.baseProductId),h.length===f&&(f<e.maxEntries?(h.push(m),window.createAddToCompareDatalayer(o,c,_)):(i.preventDefault(),d=!1)),d&&(t.setCookie(e.cookieName,JSON.stringify(h)),n.compareDeckMinimized=!1,localStorage.setItem(r,JSON.stringify(n.compareDeckMinimized)))}},e.updateItems=function(t,i){t==e.cookieName&&(null!=i&&null!=i?(e.comparisonItems=JSON.parse(i),e.comparisonPartNumbers=e.comparisonItems.map((e=>e.partNumber)),e.createButtonIds()):(e.comparisonItems=[],e.comparisonPartNumbers=[]),e.showDeck=e.comparisonItems.length>0,e.comparisonItems.length<=0&&(n.compareDeckMinimized=!1,localStorage.setItem(r,JSON.stringify(n.compareDeckMinimized))))},e.initItems=function(){const n=t.getCookie(e.cookieName);0|null!=n?(e.comparisonItems=JSON.parse(n),e.comparisonItems.length>e.maxEntries?(e.comparisonItems=e.comparisonItems.slice(0,e.maxEntries),t.setCookie(e.cookieName,JSON.stringify(e.comparisonItems))):e.comparisonPartNumbers=e.comparisonItems.map((e=>e.partNumber)),e.createButtonIds()):(e.comparisonItems=[],e.comparisonPartNumbers=[]),e.showDeck=e.comparisonItems.length>0},e.createButtonIds=function(){for(const t of e.comparisonItems)t.buttonId=window.createButtonId("clear-"+t.partNumber,"cmp-comparison-deck__item")},e.goToComparePage=function(t){window.showComparisonDatalayer(e.comparisonItems),window.location.href=t,localStorage.setItem(r,JSON.stringify(!1))},e.toggleDeck=function(){n.compareDeckMinimized=!n.compareDeckMinimized,localStorage.setItem(r,JSON.stringify(n.compareDeckMinimized))},e.isNotOffered=function(e,t){const n=window.getCountryAndRegionOfUse(),r=n[0],i=n[1];return e&&e.includes(r)||t&&t.includes(i)},e.shouldFilterOut=function(t,n){return e.isNotOffered(t,n)&&window.isCountryFilterOn()}
1,n.$on("productComparisonCookieChanged",(function(t,n){e.updateItems(n.name,n.value)})),window.addEventListener("pageshow",(function(n){if(n.persisted){const n=t.getCookie(e.cookieName),r=n?JSON.parse(n).map((function(e){return e.partNumber})).sort():[],i=(e.comparisonPartNumbers||[]).slice().sort();r.join(",")!==i.join(",")&&e.$apply(e.initItems)}}))}]);const ae=angular.module("CoveoSearchModule",["panduit.serviceEndPoints","core-directives","ngLoader"]);ae.controller("CoveoSearchController",["$scope","$rootScope","$compile","serviceEndPoints","Coveo","CoveoSearchService",function(e,t,n,r,i,o){var a;function s(e){return Granite.I18n.get(e)}function c(e,t){for(const n in t)e.setAttribute(n,t[n])}function l(e,t){for(let n=0;n<t.length;n++)e.appendChild(t[n])}function u(e){return null!==e.match("/[^\0-ɏḀ-ỿⱠ-Ɀ꜠-ꟿ]/g")}function _(e){return new Promise((t=>{if(document.querySelector(e))return t(document.querySelector(e));const n=new MutationObserver((r=>{document.querySelector(e)&&(t(document.querySelector(e)),n.disconnect())}));n.observe(document.body,{childList:!0,subtree:!0})}))}function d(n){e.items.searchToken=n;const r=angular.element("#searchbox")[0],a=angular.element("#coveo-search-results")[0],d=angular.element("#coveo-l3-results")[0],m=angular.element("#coveo-full-results")[0],v=$("#coveo-global-analytics")[0];i.SearchEndpoint.endpoints.default=new i.SearchEndpoint({restUri:"https://platform.cloud.coveo.com/rest/search",accessToken:n,renewAccessToken:p,queryStringArguments:{searchHub:e.items.searchHub},search:{searchHub:e.items.searchHub}}),i.Analytics.options.searchHub.defaultValue=e.items.searchHub,v&&v.setAttribute("data-search-hub",e.items.searchHub),i.TemplateHelpers.registerTemplateHelper("imageStyling",((e,t)=>`<img src="${e?Panduit.dmBaseUrl+window.getFileName(e):""}?hei=250" onerror="this.onerror=null; this.src='${Panduit.dmBaseUrl}image-not-available?hei=250'">`)),i.TemplateHelpers.registerTemplateHelper("imageLink",((t,n)=>{const r=e.items.resultImages.shift().image;return`<a href="${t}"><img src="${r?Panduit.dmBaseUrl+window.getFileName(r):""}?hei=250" onerror="this.onerror=null; this.src='${Panduit.dmBaseUrl}image-not-available?hei=250'"></a>`})),i.TemplateHelpers.registerTemplateHelper("variantCardImage",(t=>{const n=e.items.variantImages.shift().variantImage,r=e.items.variantLinksForImages.shift().variantLinkForImages;var i=n?Panduit.dmBaseUrl+window.getFileName(n):"";return`<a href="${r}" onmousedown="setPrevPageLocalStorage();"><img src="${i=i.replace("?$product-thumb-pdp$","")}?hei=250" onerror="this.onerror=null; this.src='${Panduit.dmBaseUrl}image-not-available?hei=250'"></a>`})),i.TemplateHelpers.registerTemplateHelper("variantMobileCardImage",(t=>{const n=e.items.mobileVariantImages.shift().mobileVariantImage,r=e.items.mobileVariantLinksForImages.shift().mobileVariantLinkForImages;var i=n?Panduit.dmBaseUrl+window.getFileName(n):"";return`<a href="${r}" onmousedown="setPrevPageLocalStorage();"><img src="${i=i.replace("?$product-thumb-pdp$","")}?hei=250" onerror="this.onerror=null; this.src='${Panduit.dmBaseUrl}image-not-available?hei=250'"></a>`})),i.TemplateHelpers.registerTemplateHelper("variantShortDescription",(t=>{const n=e.items.variantShortDescs.shift().variantShortDesc,r=e.items.baseProductShortDescs.shift().baseProductShortDesc,i=e.items.variantLinksForShortDesc.shift().variantLinkForShortDesc,o=null!=r?r:n;return`<a class="variant-short-desc" href="${i}" onmousedown="window.onClickOnShortDescDatalayer('${i.trim()}');">${o}</a>`})),i.TemplateHelpers.registerTemplateHelper("variantLongDescription",(t=>{const n=e.items.variantLongDescs.shift().variantLongDesc,r=e.items.baseProductLongDescs.shift().baseProductLongDesc;return r||n})),i.TemplateHelpers.registerTemplateHelper("mobileVariantLongDescription",(t=>{const n=e.items.mobileVariantLongDescs.shift().mobileVariantLongDesc,r=e.items.mobileBaseProductLongDescs.shift().mobileBaseProductLongDesc,i=r||n;if(i.length<=e.items.MAX_READ_MORE_CHARS)return`<span>${i}</span>`;const o=i.substring(0,e.items.MAX_READ_MORE_CHARS),a=i.substring(e.items.MAX_READ_MORE_CHARS),c=e.items.mobilePartNums.shift().mobilePartNum.replaceAll("-","").replaceAll(".","").replaceAll("/","").replaceAll("\\","");
1return`\n                <span class="description-short">${o}</span><span class="ellipsis-readmore">...\n                <button id="coveo-mobile-description-read-more-${c}" class="read-more cmp-common--link" onclick="this.parentElement.style.display='none'; this.parentElement.nextElementSibling.style.display='inline';">(${s(e.items.i18nkeys.readMore)})</button>\n                </span><span class="description-long" style="display: none;">${a}\n                <button id="coveo-mobile-description-read-less-${c}" type="button" class="read-less cmp-common--link" onclick="this.parentElement.style.display='none'; this.parentElement.previousElementSibling.style.display='inline';">(${s(e.items.i18nkeys.readLess)})</button></span>\n            `})),i.TemplateHelpers.registerTemplateHelper("variantPartNumber",(t=>{const n=e.items.variantPartNums.shift().variantPartNum;return"BASE_PRODUCT_SINGLETON"==e.items.singletonFlagsForPartNums.shift().singletonFlag?`<span id="result-sku">${n}</span>`:`<span>${s(e.items.i18nkeys.optionShown)} <span id="result-sku">${n}</span></span>`})),i.TemplateHelpers.registerTemplateHelper("toUppercase",(e=>e.toLocaleUpperCase())),i.TemplateHelpers.registerTemplateHelper("highlightItemcode",(t=>{const n=e.items.searchTerm.toUpperCase();if(t.includes(n)){const e=document.createElement("span");return e.innerHTML=t,e.innerHTML=e.innerHTML.replaceAll(n,`</span><span style="font-weight: bold; color: rgba(48, 48, 48, .9);">${n}</span><span>`),e.outerHTML}return t})),i.TemplateHelpers.registerTemplateHelper("highlightDescriptionText",(t=>{const n=e.items.termsToHighlight;if(n&&e.items.searchTerm){const e=[];for(let s=0;s<n.length;s++){const r=new RegExp(`${n[s].replaceAll("-"," ")}\\b`,"gi"),i=t.matchAll(r);for(const t of i)e.push({match:t[0],index:t.index,length:t[0].length});const o=new RegExp(`${n[s]}\\b`,"gi"),a=t.matchAll(o);for(const t of a)e.push({match:t[0],index:t.index,length:t[0].length})}e.sort(((e,t)=>e.index-t.index));const r=[];let i=-1;e.forEach((e=>{e.index>=i&&(r.push(e),i=e.index+e.length)}));let o=t;r.reverse().forEach((e=>{o=o.slice(0,e.index+e.length)+"</span>"+o.slice(e.index+e.length),o=o.slice(0,e.index)+'<span class="coveo-highlight">'+o.slice(e.index)}));const a=document.createElement("span");return a.innerHTML=o,a.outerHTML}return t})),i.TemplateHelpers.registerTemplateHelper("variantsHighlightDescriptionText",(t=>{const n=e.items.variantLongDescs.shift().variantLongDesc,r=e.items.baseProductLongDescs.shift().baseProductLongDesc,i=null!=r?r:n,o=e.items.termsToHighlight;if(o&&e.items.searchTerm){const e=[];for(let s=0;s<o.length;s++){const t=new RegExp(`${o[s].replaceAll("-"," ")}\\b`,"gi"),n=i.matchAll(t);for(const i of n)e.push({match:i[0],index:i.index,length:i[0].length});const r=new RegExp(`${o[s]}\\b`,"gi"),a=i.matchAll(r);for(const i of a)e.push({match:i[0],index:i.index,length:i[0].length})}e.sort(((e,t)=>e.index-t.index));const t=[];let n=-1;e.forEach((e=>{e.index>=n&&(t.push(e),n=e.index+e.length)}));let r=i;t.reverse().forEach((e=>{r=r.slice(0,e.index+e.length)+"</span>"+r.slice(e.index+e.length),r=r.slice(0,e.index)+'<span class="coveo-highlight">'+r.slice(e.index)}));const a=document.createElement("span");return a.innerHTML=r,a.outerHTML}return`<span>${i}</span>`})),i.TemplateHelpers.registerTemplateHelper("mobileVariantsHighlightDescriptionText",(t=>{const n=e.items.mobileVariantLongDescs.shift().mobileVariantLongDesc,r=e.items.mobileBaseProductLongDescs.shift().mobileBaseProductLongDesc,i=null!=r?r:n,o=e.items.termsToHighlight;if(o&&e.items.searchTerm){const t=[];for(let e=0;e<o.length;e++){const n=new RegExp(`${o[e].replaceAll("-"," ")}\\b`,"gi"),r=i.matchAll(n);for(const e of r)t.push({match:e[0],index:e.index,length:e[0].length});const a=new RegExp(`${o[e]}\\b`,"gi"),s=i.matchAll(a);for(const e of s)t.push({match:e[0],index:e.index,length:e[0].length})}t.sort(((e,t)=>e.index-t.index));const n=[];let r=-1;t.forEach((e=>{e.index>=r&&(n.push(e),r=e.index+e.length)}));let a=i;if(n.reverse().forEach((e=>{a=a.slice(0,e.index+e.length)+"</span>"+a.slice(e.index+e.length),a=a.slice(0,e.index)+'<span class="coveo-highlight">'+a.slice(e.index)})),a.length>e.items.MAX_READ_MORE_CHARS){let t=a.slice(0,e.items.MAX_READ_MORE_CHARS);const n=t.match(/<\/[^>]*$/);n&&(t=t.slice(0,n.index)),t=t.replace(/<[^>]*$/,"");const r=(t.match(/<span[^>]*>/g)||[]).length;let i=(t.match(/<\/span>/g)||[]).length;for(;i<r;)t+="</span>",i++;
1return`\n                        <span class="description-short" style="display: inline;">${t}</span><span class="ellipsis-readmore">...\n                            <button id="coveo-description-read-more" class="read-more cmp-common--link"\n                                onclick="let short = this.closest('.ellipsis-readmore').previousElementSibling;\n                                        if(short.classList.contains('description-short')) {\n                                            short.style.display='none';\n                                        }\n                                        else {\n                                            short = short.parentElement;\n                                            short.style.display='none';\n                                        }\n                                        this.closest('.ellipsis-readmore').style.display='none';\n                                        this.closest('.ellipsis-readmore').nextElementSibling.style.display='inline';">\n                                (${s(e.items.i18nkeys.readMore)})\n                            </button>\n                        </span>\n                        <span class="description-long" style="display: none;">${a}\n                            <button id="coveo-description-read-less" type="button" class="read-less cmp-common--link"\n                                onclick="this.closest('.description-long').style.display='none';\n                                        this.closest('.description-long').previousElementSibling.style.display='inline';\n                                        this.closest('.description-long').previousElementSibling.previousElementSibling.style.display='inline';">\n                                (${s(e.items.i18nkeys.readLess)})\n                            </button>\n                        </span>\n                    `}return`<span>${a}</span>`}if(i.length>e.items.MAX_READ_MORE_CHARS){const t=i.substring(0,e.items.MAX_READ_MORE_CHARS),n=i.substring(e.items.MAX_READ_MORE_CHARS);return`\n                        <span class="description-short">${t}</span><span class="ellipsis-readmore">...\n                        <button id="coveo-description-read-more" class="read-more cmp-common--link" onclick="this.parentElement.style.display='none'; this.parentElement.nextElementSibling.style.display='inline';">(${s(e.items.i18nkeys.readMore)})</button>\n                        </span><span class="description-long" style="display: none;">${n}</span>\n                    `}return`<span>${i}</span>`})),i.TemplateHelpers.registerTemplateHelper("variantsHighlightShortDescriptionText",(t=>{const n=e.items.variantShortDescs.shift().variantShortDesc,r=e.items.baseProductShortDescs.shift().baseProductShortDesc,i=e.items.variantLinksForShortDesc.shift().variantLinkForShortDesc,o=null!=r?r:n,a=e.items.termsToHighlight;if(a&&e.items.searchTerm){const e=[];for(let i=0;i<a.length;i++){const t=new RegExp(`${a[i].replaceAll("-"," ")}\\b`,"gi"),n=o.matchAll(t);for(const i of n)e.push({match:i[0],index:i.index,length:i[0].length});const r=new RegExp(`${a[i]}\\b`,"gi"),s=o.matchAll(r);for(const i of s)e.push({match:i[0],index:i.index,length:i[0].length})}e.sort(((e,t)=>e.index-t.index));const t=[];let n=-1;e.forEach((e=>{e.index>=n&&(t.push(e),n=e.index+e.length)}));let r=o;t.reverse().forEach((e=>{r=r.slice(0,e.index+e.length)+"</span>"+r.slice(e.index+e.length),r=r.slice(0,e.index)+'<span class="coveo-highlight">'+r.slice(e.index)}));let s=document.createElement("span");return s.innerHTML=r,`<a class="variant-short-desc" href="${i}" onmousedown="window.onClickOnShortDescDatalayer('${i.trim()}');">${s.outerHTML}</a>`}return`<a class="variant-short-desc" href="${i}" onmousedown="window.onClickOnShortDescDatalayer('${i.trim()}');">${o}</a>`})),i.TemplateHelpers.registerTemplateHelper("previewMptStatus",(t=>{const n=function(){const e=document.createElement("svg");c(e,{class:"obso-status-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"});const t=document.createElement("title");t.innerHTML="c warning e";const n=document.createElement("g");c(n,{class:"nc-icon-wrapper",fill:"#ffc72c"});const r=document.createElement("path");c(r,{fill:"#ffc72c",d:"M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6 S11.3,14,8,14z"});const i=document.createElement("rect");c(i,{"data-color":"color-2",x:"7",y:"4",width:"2",height:"5"});const o=document.createElement("circle");return c(o,{"data-color":"color-2",cx:"8",cy:"11",r:"1"}),l(n,[r,i,o]),l(e,[t,n]),e}(),r=function(t){const n=t.trim().toUpperCase();let r="";if(["OBSOLETE","ACTIVE"].includes(n))r=s(e.items.i18nkeys.discontinued);else if(["USE UP","USE UP DR","USEUP"].includes(n))r=s(e.items.i18nkeys.useUp);else{if("DECLINE"!==n)return"";r=s(e.items.i18nkeys.decline)}return r}(t);
1if(!r)return"";const i=document.createElement("div");c(i,{class:"cmp-notification cmp-notification__status--caution"});const o=document.createElement("p");return o.innerHTML=r,l(i,[n,o]),i.outerHTML})),i.TemplateHelpers.registerTemplateHelper("generateNotOfferedAlertBox",(t=>F(e.items.baseProductExclusionCountriesForAlerts.shift().baseExclCountries,e.items.baseProductExclusionRegionsForAlerts.shift().baseExclRegions)?"":`<aside class="cmp-notification cmp-notification__status--caution">\n                <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 16H1C0.653 16 0.332 15.82 0.149 15.525C-0.0339995 15.23 -0.0499995 14.862 0.105 14.552L7.105 0.552018C7.445 -0.125982 8.554 -0.125982 8.894 0.552018L15.894 14.552C16.049 14.862 16.033 15.23 15.85 15.525C15.667 15.82 15.347 16 15 16ZM2.618 14H13.382L8 3.23602L2.618 14ZM7 6.00002H9V10H7V6.00002ZM9 12C9 12.5523 8.55229 13 8 13C7.44772 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11C8.55229 11 9 11.4477 9 12Z" fill="#F4B223"/></svg>\n                <div class="cmp-notification__text">${s(e.items.i18nkeys.notOfferedInCou)}</div></aside>`)),i.TemplateHelpers.registerTemplateHelper("generateStatusFlag",(t=>{const n=e.items.baseProductExclusionCountries.shift().baseExclCountries,r=e.items.baseProductExclusionRegions.shift().baseExclRegions,i=e.items.variantMptStatuses.shift().variantMptStatus,o=e.items.singletonFlagsForBanners.shift().singletonFlag;let a=s(e.items.i18nkeys.notOfferedFlag);if(F(n,r)){if(!("BASE_PRODUCT_OBSOLETE"==o||"BASE_PRODUCT_SINGLETON"==o&&function(e){const t=e.trim().toUpperCase();let n=!1;return["OBSOLETE","ACTIVE"].includes(t)&&(n=!0),n}(i)))return"";a=s(e.items.i18nkeys.discontinued)}return`<span class="mpt-banner obsolete">${a}</span>`})),i.TemplateHelpers.registerTemplateHelper("generateSeeOptionsButton",(t=>{const n=e.items.singletonFlagsForButton.shift().singletonFlag,r=e.items.variantLinksForButton.shift().variantLinkForButton;return"BASE_PRODUCT_SINGLETON"==n?`<a type="button" href="${r.trim()}" class="cmp-button see-options-btn" onmousedown="window.onSeeOptionsClick('${r.trim()}');">${s(e.items.i18nkeys.viewDetails)}</a>`:`<a type="button" href="${r.trim()}" class="cmp-button see-options-btn" onmousedown="window.onSeeOptionsClick('${r.trim()}');">\n                <svg width="21" height="17" viewBox="0 0 21 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n                <rect x="10.8197" y="2.24392" width="8.66359" height="12.1618" fill="#0071b2" stroke="white" stroke-width="1.2"/>\n                <rect x="5.84468" y="2.97712" width="8.66359" height="12.1618" transform="rotate(-15 5.84468 2.97712)" fill="#0071b2" stroke="white" stroke-width="1.2"/>\n                <rect x="0.819615" y="5.15144" width="8.66359" height="12.1618" transform="rotate(-30 0.819615 5.15144)" fill="#0071b2" stroke="white" stroke-width="1.2"/>\n                </svg> ${s(e.items.i18nkeys.seeOptions)} <i class="fas fa-chevron-right"></i></a>`})),i.TemplateHelpers.registerTemplateHelper("generateVariantsAttributeBox",(t=>{const n=3,r=e.items.singletonFlagsForAttributes.shift().singletonFlag,i=e.items.variantLinksForBox.shift().variantLinkForBox;if("BASE_PRODUCT"==r||"BASE_PRODUCT_OBSOLETE"==r){const r=e.results.find((function(e){return e.raw.pagepath[0]===t}));if(r.raw.selector_field){let t=`<a class="attribute-box-link" href="${i.trim()}" onmousedown="window.onMoreOptionsClick('${i.trim()}');"><div class="attribute-box-list">`;const o=r.raw.selector_field.split(",");for(const i of o){let o=!1;const a=i.split(";"),c=a[0],l=[];for(const e of r.attachments){let t=e.raw[c];if(Array.isArray(t)&&t.length>0&&(t=t[0]),t&&!l.includes(t)){if(!(l.length<n)){o=!0;break}l.push(t)}}l.length>0&&(t+=`<div class="attribute">${a[1]}: <span class="attribute-value">\n                                ${l.join(", ")}\n                                ${o?s(e.items.i18nkeys.andMore):""}</span></div>`)}return t+=`<div class="attribute more-options-link"><svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n                        <rect x="10.7197" y="2.71851" width="8.86359" height="12.3618" fill="white" stroke="#0071b2"></rect>\n                        <rect x="5.72221" y="3.48103" width="8.86359" height="12.3618" transform="rotate(-15 5.72221 3.48103)" fill="white" stroke="#0071b2"></rect>\n                        <rect x="0.683013" y="5.68942" width="8.86359" height="12.3618" transform="rotate(-30 0.683013 5.68942)" fill="white" stroke="#0071b2"></rect>\n                        </svg> ${s(e.items.i18nkeys.moreOptions)} ></div></div></a>`,t}return""}return""})),i.TemplateHelpers.registerTemplateHelper("formatrsspublishdate",(e=>{const t={year:"numeric",month:"long",day:"numeric"};return`${new Date(e.trim()/1).toLocaleDateString(void 0,t)} — `})),E(),_(".CoveoOmnibox input").then((t=>{t.title=s(e.items.i18nkeys.tooltip)})),_(".coveo-search-button-loading svg g path:nth-child(1)").then((e=>{e.setAttribute("d","m8.368 16.736c-4.614 0-8.368-3.754-8.368-8.368s3.754-8.368 8.368-8.368 8.368 3.754 8.368 8.368-3.754 8.368-8.368 8.368m0-14.161c-3.195 0-5.793 2.599-5.793 5.793s2.599 5.793 5.793 5.793 5.793-2.599 5.793-5.793-2.599-5.793-5.793-5.793"),document.querySelector(".coveo-search-button-loading-svg").setAttribute("viewBox","0 0 20 20")})),_(".coveo-search-button-loading svg g path:nth-child(2)").then((e=>{e.setAttribute("d","m18.713 20c-.329 0-.659-.126-.91-.377l-4.552-4.551c-.503-.503-.503-1.318 0-1.82.503-.503 1.318-.503 1.82 0l4.552 4.551c.503.503.503 1.318 0 1.82-.252.251-.581.377-.91.377")})),a||d?(a?$("#best-seller-sort").attr("data-sort-criteria","@mpt_weight"+e.items.regionOfUseSuffix+" descending;@mpt_rev_rank"+e.items.regionOfUseSuffix+" ascending"):d&&$("#variant-best-seller-sort").attr("data-sort-criteria","@mpt_weight"+e.items.regionOfUseSuffix+" descending;@mpt_rev_rank"+e.items.regionOfUseSuffix+" ascending"),window.addEventListener("updateProductCountryFilter",(function(){window.location.reload()})),i.$$(m).on("newResultsDisplayed",(function(){h(),t.$broadcast("coveoLoaded",{}),clearTimeout(e.items.searchTokenRefreshTimerId)}
1)),i.$$($(".CoveoSearchInterface")[0]).on("changeAnalyticsCustomData",(function(t,n){e.items.language&&e.items.region&&(n.originLevel1!==e.items.searchHub&&(n.coveoAnalyticsEventData.originLevel1=e.items.searchHub),n.metaObject.c_currentpageurl=window.location.href)})),o.fetchFacets(e.items.region,e.items.language).then((function(e){!function(e){const n=$("#pinned-facets-list"),r=$("#dne-facets-list"),i=e.length,o=[];if(i>0){if(t.$broadcast("filterFacetDataReady",{facet:e}),n[0]&&r[0])for(let t=0;t<i;t++){const n=e[t],i=""!==n.facetclass?n.facetclass:"CoveoDynamicFacet",a=""!==n.sort?n.sort:"alphanumeric",s="1"!==n.order?' data-collapsed-by-default="true"':"",c=`<div class="${i}" data-field="@${n.coveo_field}" data-title="${n.attributeDisplayName}"\n                                        data-tab="product, all-content, content" data-number-of-values="15" data-enable-more-less="false"\n                                        data-enable-facet-search="false" data-injection-depth="10000" data-sort-criteria="${a}"${s}></div>`;""!==n.order?o.splice(parseInt(n.order),0,c):r.append(c)}for(let e=0;e<o.length;e++)n.append(o[e])}}(e.data.facets),y(a,r,d)}),(function(e){y(a,r,d),console.warn("Failed to fetch facets from facet API.")}))):r&&(i.$$(r).on("beforeRedirect",(function(e,t){const n=document.querySelector("#searchbox input");""==n.value.trim()&&document.activeElement==n&&(t.cancel=!0)})),i.$$(r).on("buildingResultPreviewsQuery",(function(t,n){n.query.cq="@objecttype==Product",n.query.searchHub=e.items.searchHub,n.query.q=n.query.q.replaceAll("-",""),n.query.q=n.query.q.replaceAll(",",""),n.query.q=n.query.q.replaceAll(".",""),n.query.q=n.query.q.replaceAll("/",""),n.query.q=n.query.q.replaceAll("\\",""),n.query.q=n.query.q.trim(),n.query.q.endsWith("*")||u(n.query.q)||(n.query.q+="*")})),i.$$(r).on("afterInitialization",(function(){P(),E(),f(!1),g()})),i.initSearchbox(r,e.items.searchResultURL),t.$broadcast("coveoLoaded",{})),$(document).on("click",".coveo-pager-anchor",(function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},500)}))}function p(){return o.deleteLocalCoveoToken(),o.getCoveoToken().then((function(t){const n=t.data.token;return o.saveLocalCoveoToken(n),e.items.searchToken=n,e.items.searchTokenRefreshTimerId=setTimeout((()=>window.location.reload()),2500),n}))}function f(t){const n=window.innerWidth,r=$("#facet-display-list")[0];if(n<e.items.mobileToggleThreshold){if(r){if(!1!==t&&r.classList.contains("coveo-facet-dropdown-modal-content")||(r.classList.add("coveo-hidden"),r.classList.add("coveo-facet-dropdown-modal-content")),0===$(".coveo-dropdown-header-wrapper").length){const t=document.createElement("div");c(t,{class:"coveo-dropdown-header-wrapper","ng-show":"items.queryHasNoResults === false"});const n=document.createElement("a");c(n,{class:"coveo-facet-dropdown-header coveo-dropdown-header coveo-accessible-button","ng-show":'items.currentTab !== "content"',role:"button","aria-label":"Open the filters dropdown",tabindex:"0","ng-click":"openFacetsModal()"});const r=document.createElement("p");r.innerHTML=s(e.items.i18nkeys.filters);const i=document.createElement("i");i.setAttribute("class","fas fa-sliders"),l(n,[r,i]),t.appendChild(n),$("#coveo-result-list").before(t);const o=$(".coveo-summary-section");if(o){o.prependTo(".coveo-dropdown-header-wrapper");const t=$(".CoveoQuerySummary span").first()[0];if(t.childNodes.length>2&&"ja"!==e.items.language){const e=[1,2,3,4,6,7];t.childNodes[0].textContent=t.childNodes[0].textContent.trim()+": ";const n=[];for(let r=0;r<e.length;r++){const i=e[r];n.push(t.childNodes[i])}n.forEach((e=>{e&&e.remove()}))}}}m(n),i.get($("#global-suggestions")[0])&&(i.get($("#global-suggestions")[0]).disabled=!0),h()}!function(){const e=$(".navbar-collapse.panduit-collapsible-navbar")[0],t={attributes:!0},n=function(e,t){if(e&&e.length>0){const t=e.filter((e=>e.target.classList.contains("show"))),n=e.filter((e=>e.target.classList.contains("collapsing"))),r=$("#facet-display-list")[0],i=$(".navbar-toggler").attr("aria-expanded");t.length>0?(document.body.classList.contains("navbar-opened")&&o.setReopenSearchBar(!0),document.body.classList.remove("navbar-opened")):n.length>0&&"false"===i&&!0===o.getReopenSearchBar()&&r.classList.contains("coveo-hidden")&&(document.body.classList.add("navbar-opened"),o.setReopenSearchBar(!1))}};new MutationObserver(n).observe(e,t)}()}else if(n>=e.items.mobileToggleThreshold&&r){r.classList.remove("coveo-hidden"),r.classList.remove("coveo-facet-dropdown-modal-content"),$(".coveo-summary-section").prependTo(".coveo-results-header");const e=$(".coveo-facet-dropdown-header")[0];e&&e.parentNode.remove(),i.get($("#global-suggestions")[0])&&(i.get($("#global-suggestions")[0]).disabled=!1),m(n),$(".panduit-collapsible-navbar").css("min-height","initial")}}function m(t){const n=$(".coveo-facet-modal-close-button")[0];n&&t>=e.items.mobileToggleThreshold?n.remove():!n&&t<e.items.mobileToggleThreshold&&$(".coveo-facet-column").prepend('<button id="coveo-mobile-filters-modal-close" class="coveo-facet-modal-close-button" type="button" aria-label="Close the filters dropdown" ng-click="closeFacetsModal()">\n            <svg focusable="false" enable-background="new 0 0 13 13" viewbox="0 0 13 13" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Clear">\n            <title>Clear</title><g fill="currentColor">\n            <path d="m 7.881 6.501 l 4.834 -4.834 c 0.38 -0.38 0.38 -1.001 0 -1.381 s -1.001 -0.38 -1.381 0 l -4.834 4.834 l -4.834 -4.835 c -0.38 -0.38 -1.001 -0.38 -1.381 0 s -0.38 1.001 0 1.381 l 4.834 4.834 l -4.834 4.834 c -0.38 0.38 -0.38 1.001 0 1.381 s 1.001 0.38 1.381 0 l 4.834 -4.834 l 4.834 4.834 c 0.38 0.38 1.001 0.38 1.381 0 s 0.38 -1.001 0 -1.381 Z"></path></g></svg></button>')}function g(){_(".CoveoSearchbox input").then((e=>{e.setAttribute("enterkeyhint","go")}))}function h(){const e=angular.element(".CoveoSearchInterface:not(#searchbox)")[0],t=angular.element(e).scope();n(e)(t)}function y(n,r,o){n?function(n,r){i.$$(n).on("afterInitialization",(function(t,n){!function(){const t=$(".CoveoQuerySummary span").first()[0],n={childList:!0,subtree:!0,attributes:!0};new MutationObserver((function(n,r){if(n&&n.length>0){const r=n.filter((e=>e.addedNodes.length>0)),i=n.filter((e=>e.removedNodes.length>
1=6&&1===e.addedNodes.length));if(0===i.length&&r&&r.length>0){const n=r[0].addedNodes.length;if(n<6)return;if(e.items.searchTerm||(e.items.searchTerm='""'),window.innerWidth<e.items.mobileToggleThreshold&&"ja"!==e.items.language){const e=[1,2,3,4,6,7];r[0].addedNodes[0].textContent=r[0].addedNodes[0].textContent.trim()+": ";for(let t=0;t<e.length;t++){const n=e[t];r[0].addedNodes[n]&&r[0].addedNodes[n].remove()}return void $(".coveo-summary-section").prependTo(".coveo-dropdown-header-wrapper")}if(6===n)if(e.items.searchTerm.length<=2){t.append(` ${s(e.items.i18nkeys.for)} `);const n=document.createElement("span");n.className="coveo-highlight",n.innerHTML=e.items.searchTerm,t.append(n)}else r[0].addedNodes[5].innerHTML=e.items.searchTerm;else 8===n&&("ja"===e.items.language?r[0].addedNodes[0].innerHTML=e.items.searchTerm:r[0].addedNodes[7].innerHTML=e.items.searchTerm)}else if(1===i.length){const t=i[0].removedNodes;i[0].target.innerHTML="",t.forEach((function(t){const n=t;t.innerHTML&&-1!==t.innerHTML.indexOf("*")&&(t.innerHTML=e.items.searchTerm),i[0].target.appendChild(n)}))}}})).observe(t,n)}(),k(),N(),P(),E(),f(!1),g()})),i.$$(n).on("newQuery",(function(n,r){const i=angular.element("#search-selector")[0],o=document.querySelector(".CoveoSearchbox input");e.items.prevPageWasL3&&""==o.value.trim()&&""==e.items.previousSearchTerm?(r.cancel=!0,window.location.href=document.referrer):""==o.value.trim()&&document.activeElement==o&&(r.cancel=!0),i&&t.$broadcast("triggerBanner",{display:!1}),window.onCoveoSearchDatalayer(o.value.trim())})),i.$$(n).on("buildingQuery",(function(t,n){n.queryBuilder.addFieldsToExclude(A()),e.items.isFilteredByCountry&&(n.queryBuilder.advancedExpression.addFieldExpression("@exclusionregions","<>",[e.items.currentMappedRegion]),n.queryBuilder.advancedExpression.addFieldExpression("@exclusioncountries","<>",[e.items.currentCountry]))})),i.$$(n).on("doneBuildingQuery",(function(r,o){let a=o.queryBuilder.expression.parts[0];a&&(a=a.trim(),e.items.searchTerm=a,o.queryBuilder.expression.parts[0]=e.items.searchTerm),t.$broadcast("newQueryTerm",{queryTerm:a});const s=[{field:"@objecttype"}];if(void 0===o.queryBuilder.groupBy?o.queryBuilder.groupBy=s:o.queryBuilder.groupBy.push.apply(o.queryBuilder.groupBy,s),o.queryBuilder.expression.parts.length>0&&(o.queryBuilder.expression.parts[0]=o.queryBuilder.expression.parts[0].replaceAll("-",""),o.queryBuilder.expression.parts[0]=o.queryBuilder.expression.parts[0].replaceAll(",",""),o.queryBuilder.expression.parts[0]=o.queryBuilder.expression.parts[0].replaceAll(".",""),o.queryBuilder.expression.parts[0]=o.queryBuilder.expression.parts[0].replaceAll("/",""),o.queryBuilder.expression.parts[0]=o.queryBuilder.expression.parts[0].replaceAll("\\",""),u(a)||a.includes(" ")||("*"===o.queryBuilder.expression.parts[0]?o.queryBuilder.expression.parts[0]="":!o.queryBuilder.expression.parts[0].endsWith("*")&&o.queryBuilder.expression.parts[0].length>=2&&(o.queryBuilder.expression.parts[0]+="*"))),a!==e.items.previousSearchTerm){i.state(n,"t","all-content"),o.queryBuilder.tab="all-content";const e=o.queryBuilder.advancedExpression.parts;if(e.includes("@objecttype==Content")){const t=e.indexOf("@objecttype==Content");o.queryBuilder.advancedExpression.parts.splice(t,1)}}e.items.previousSearchTerm=a})),i.$$(n).on("buildingResultPreviewsQuery",(function(t,n){n.query.cq="@objecttype==Product",n.query.searchHub=e.items.searchHub,n.query.q=n.query.q.replaceAll("-",""),n.query.q=n.query.q.replaceAll(",",""),n.query.q=n.query.q.replaceAll(".",""),n.query.q=n.query.q.replaceAll("/",""),n.query.q=n.query.q.replaceAll("\\",""),n.query.q=n.query.q.trim(),n.query.q.endsWith("*")||u(n.query.q)||(n.query.q+="*")})),i.$$(n).on("querySuccess",(function(e,t){S(t),t.results.facets=b(t.results.facets)}
1)),i.$$(n).on("preprocessResults",(function(e,n){x(n),function(e){let t=!1;const n=i.get($(".CoveoSearchInterface")[0],"SearchInterface").queryStateModel.attributes;for(const r in n)r.startsWith("f:@")&&n[r].length>0&&(t=!0);!t&&e.results.groupByResults.length>0&&"all-content"===e.queryBuilder.tab&&v(e.results.groupByResults.filter((e=>"objecttype"===e.field))[0]);v(e.results.facets.find((e=>"@objecttype"===e.facetId)))}(n);let r=!0;n.results.triggers&&n.results.triggers.length>0&&n.results.triggers.filter((e=>"redirect"===e.type)).length>0&&(r=!1),t.$broadcast("hideResultsForRedirect",{display:r}),t.$broadcast("resultNum",{resultCount:n.results.totalCount})})),i.$$(n).on("newResultsDisplayed",(function(e,n){const r=this.Coveostate.attributes.t?this.Coveostate.attributes.t:"";i.load("Facet").then((function(e){const t=(parseFloat(window.getComputedStyle($(".coveo-dynamic-facet-values")[0])["max-height"])/($(".coveo-dynamic-facet-value").length>0?parseFloat(window.getComputedStyle($(".coveo-dynamic-facet-value")[0]).height):1)).toFixed();$(".coveo-dynamic-facet-values").each((function(){const e=i.get(this.closest(".CoveoDynamicFacet"));e&&e.values.facetValues.length>=t?this.classList.add("coveo-beginning"):this.classList.remove("coveo-beginning")}))})),t.$broadcast("changeTab",{tab:r}),C(),D()})),i.init(n,{objectTypeFacet:{valueCaption:{Content:s(e.items.i18nkeys.content)}},externalComponents:[r]})}(n,r):o&&function(n,r){i.$$(n).on("afterInitialization",(function(e,t){k(),N(),P(),E()})),i.$$(r).on("afterInitialization",(function(e,t){f(!1),g()})),i.$$(n).on("buildingQuery",(function(t,n){n.queryBuilder.addFieldsToExclude(A());const r=$(".cmp-l3category--search-page").attr("data-page-title");n.queryBuilder.advancedExpression.addFieldExpression("@categoryname"+e.items.siteRegionSuffix,"==",[r.trim()]),n.queryBuilder.advancedExpression.addFieldExpression("@mpt_item_status"+e.items.regionOfUseSuffix,"<>",["OBSOLETE","BASE_PRODUCT_OBSOLETE"]),e.items.isFilteredByCountry&&(n.queryBuilder.advancedExpression.addFieldExpression("@exclusionregions","<>",[e.items.currentMappedRegion]),n.queryBuilder.advancedExpression.addFieldExpression("@exclusioncountries","<>",[e.items.currentCountry]))})),i.$$(r).on("buildingResultPreviewsQuery",(function(t,n){n.query.cq="@objecttype==Product",n.query.searchHub=e.items.searchHub,n.query.q=n.query.q.replaceAll("-",""),n.query.q=n.query.q.replaceAll(",",""),n.query.q=n.query.q.replaceAll(".",""),n.query.q=n.query.q.replaceAll("/",""),n.query.q=n.query.q.replaceAll("\\",""),n.query.q=n.query.q.trim(),n.query.q.endsWith("*")||u(n.query.q)||(n.query.q+="*")})),i.$$(n).on("querySuccess",(function(e,n){S(n),n.results.facets=b(n.results.facets),t.$broadcast("facetValuesReady",{facets:n.results.facets})})),i.$$(n).on("preprocessResults",(function(e,n){x(n),t.$broadcast("resultNum",{resultCount:n.results.totalCount})})),i.$$(n).on("newResultsDisplayed",(function(e,t){C(),D()})),i.init(n,{}),i.initSearchbox(r,e.items.searchResultURL)}(o,r)}function v(e){if(e){const t=e.values.filter((e=>"Content"===e.value)),n=e.values.filter((e=>"Product"===e.value)),r=$("#content-tab")[0];t[0]&&r?r.classList.remove("coveo-disabled"):r.classList.add("coveo-disabled");const i=$("#product-tab")[0];n[0]&&i?i.classList.remove("coveo-disabled"):i.classList.add("coveo-disabled")}}function b(e){if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t],r=i.get($(`.CoveoDynamicFacet[data-field="${n.facetId}"]`)[0]);if(r){const e=r.element.attributes["data-sort-criteria"];if(void 0===e||"alphanumeric"!==e.value)continue}const o=n.values;for(let i=0;i<o.length;i++)isNaN(o[0].value)||e[t].values.sort(((e,t)=>parseInt(e.value)-parseInt(t.value)))}return e}function x(t){e.results=t.results.results;const n=t.results.results;e.items.images=[];for(let i=0;i<n.length;i++){const t=n[i];if(t.raw.itemcode){t.raw.imageurl?(e.items.images.push({image:t.raw.imageurl.indexOf("/content/dam/panduit/")>0?t.raw.imageurl.substring(t.raw.imageurl.indexOf("/content/dam/panduit/")):t.raw.imageurl}),e.items.resultImages.push({image:t.raw.imageurl})):(e.items.images.push({image:""}),e.items.resultImages.push({image:""}));const n=t.raw["pagepath"+e.items.siteRegionSuffix]&&t.raw["pagepath"+e.items.siteRegionSuffix].length>0?window.modifyUrlForEnv(t.raw["pagepath"+e.items.siteRegionSuffix]):"#";e.items.productUrls.push({productUrl:n}),e.items.productUrlsForStatusBanner.push({productUrl:n});const r=t.raw.shortdescription;
1e.items.shortDescriptions.push({shortDescription:r})}}const r=t.results.termsToHighlight;if(r&&e.items.searchTerm){const t=new Set;for(const e in r)t.add(e),r[e].forEach((e=>t.add(e)));e.items.searchTerm.replaceAll("*","").split(" ").forEach((e=>{e&&t.add(e)})),e.items.termsToHighlight=Array.from(t)}}function S(t){e.results=t.results.results;const n=t.results.results;for(let i=0;i<n.length;i++){const t=n[i];if(t.raw["mpt_item_status"+e.items.regionOfUseSuffix]&&("BASE_PRODUCT"==t.raw["mpt_item_status"+e.items.regionOfUseSuffix]||"BASE_PRODUCT_SINGLETON"==t.raw["mpt_item_status"+e.items.regionOfUseSuffix]||"BASE_PRODUCT_OBSOLETE"==t.raw["mpt_item_status"+e.items.regionOfUseSuffix])){const n=t.raw["mpt_item_status"+e.items.regionOfUseSuffix];e.items.singletonFlagsForButton.push({singletonFlag:n}),e.items.singletonFlagsForAttributes.push({singletonFlag:n}),e.items.singletonFlagsForPartNums.push({singletonFlag:n}),e.items.singletonFlagsForBanners.push({singletonFlag:n});const i=t.raw.bpexclusioncountries;i?(e.items.baseProductExclusionCountries.push({baseExclCountries:i}),e.items.baseProductExclusionCountriesForAlerts.push({baseExclCountries:i})):(e.items.baseProductExclusionCountries.push({baseExclCountries:null}),e.items.baseProductExclusionCountriesForAlerts.push({baseExclCountries:null}));const o=t.raw.bpexclusionregions;o?(e.items.baseProductExclusionRegions.push({baseExclRegions:o}),e.items.baseProductExclusionRegionsForAlerts.push({baseExclRegions:o})):(e.items.baseProductExclusionRegions.push({baseExclRegions:null}),e.items.baseProductExclusionRegionsForAlerts.push({baseExclRegions:null}));const a=t.raw.shortdescription;a?e.items.baseProductShortDescs.push({baseProductShortDesc:a}):e.items.baseProductShortDescs.push({baseProductShortDesc:null});const s=t.raw.itemdescription;if(s?(e.items.baseProductLongDescs.push({baseProductLongDesc:s}),e.items.mobileBaseProductLongDescs.push({mobileBaseProductLongDesc:s})):(e.items.baseProductLongDescs.push({baseProductLongDesc:null}),e.items.mobileBaseProductLongDescs.push({mobileBaseProductLongDesc:null})),t.attachments&&t.attachments.length>0){const n=t.attachments[0].raw.imageurl;n?(e.items.variantImages.push({variantImage:n}),e.items.mobileVariantImages.push({mobileVariantImage:n})):(e.items.variantImages.push({variantImage:""}),e.items.mobileVariantImages.push({mobileVariantImage:""}));var r=t.attachments[0].raw["mpt_item_status"+e.items.regionOfUseSuffix];r?e.items.variantMptStatuses.push({variantMptStatus:r}):e.items.variantMptStatuses.push({variantMptStatus:""});const i=t.attachments[0].raw.shortdescription;i?e.items.variantShortDescs.push({variantShortDesc:i}):e.items.variantShortDescs.push({variantShortDesc:""});const o=t.attachments[0].raw.itemdescription;o?(e.items.variantLongDescs.push({variantLongDesc:o}),e.items.mobileVariantLongDescs.push({mobileVariantLongDesc:o})):(e.items.variantLongDescs.push({variantLongDesc:""}),e.items.mobileVariantLongDescs.push({mobileVariantLongDesc:""}));const a=t.attachments[0].raw.itemcode;a?(e.items.variantPartNums.push({variantPartNum:a}),e.items.mobilePartNums.push({mobilePartNum:a})):(e.items.variantPartNums.push({variantPartNum:""}),e.items.mobilePartNums.push({mobilePartNum:""}));const s=window.modifyUrlForEnv(t.attachments[0].raw["pagepath"+e.items.siteRegionSuffix]);s?(e.items.variantLinksForBox.push({variantLinkForBox:s}),e.items.variantLinksForButton.push({variantLinkForButton:s}),e.items.variantLinksForShortDesc.push({variantLinkForShortDesc:s}),e.items.variantLinksForImages.push({variantLinkForImages:s}),e.items.mobileVariantLinksForImages.push({mobileVariantLinkForImages:s})):(e.items.variantLinksForBox.push({variantLinkForBox:""}),e.items.variantLinksForButton.push({variantLinkForButton:""}),e.items.variantLinksForShortDesc.push({variantLinkForShortDesc:""}),e.items.variantLinksForImages.push({variantLinkForImages:""}),e.items.mobileVariantLinksForImages.push({mobileVariantLinkForImages:""}))}else e.items.variantImages.push({variantImage:""}),e.items.mobileVariantImages.push({mobileVariantImage:""}),e.items.variantMptStatuses.push({variantMptStatus:""}),e.items.variantShortDescs.push({variantShortDesc:""}),e.items.variantLongDescs.push({variantLongDesc:""}),e.items.variantPartNums.push({variantPartNum:""}),e.items.mobilePartNums.push({mobilePartNum:""}),e.items.mobileVariantLongDescs.push({mobileVariantLongDesc:""}),e.items.variantLinksForBox.push({variantLinkForBox:""}),e.items.variantLinksForButton.push({variantLinkForButton:""}),e.items.variantLinksForShortDesc.push({variantLinkForShortDesc:""}),e.items.variantLinksForImages.push({variantLinkForImages:""}),e.items.mobileVariantLinksForImages.push({mobileVariantLinkForImages:""})}}}function k(){_(".coveo-dynamic-facet-values").then((e=>{$(".coveo-dynamic-facet-values").each((function(){this.addEventListener("scroll",T)}))}
1))}function T(t){var n;const r=t.target;if(!r)return;const o=r.scrollHeight,a=r.scrollTop,s=r.clientHeight,c=null!=(n=r.oldScroll)?n:0,u=e.items.loadMoreFacetValuesThreshold||0;if("down"===(a>=c?"down":"up")&&o-a<=(o-s)*u+s){const e=r.closest(".CoveoDynamicFacet");if(e){const t=i.get(e);t&&r.previousNumberofValues!==t.values.facetValues.length&&(t.showMoreValues(),function(e){const t=e.childElementCount,n={childList:!0},r=function(n,r){if(n.length>0&&"childList"===n[0].type&&t<=e.childElementCount){const t=e.children;if(t[0]&&!isNaN(t[0].getAttribute("data-value"))){const n=Array.from(t);for(n.sort(((e,t)=>parseInt(e.getAttribute("data-value"))-parseInt(t.getAttribute("data-value"))));e.firstChild;)e.removeChild(e.lastChild);l(e,n),r.disconnect()}}};new MutationObserver(r).observe(e,n)}(r),r.previousNumberofValues=t.values.facetValues.length)}}const _=Math.abs(o-a-s)<1,d=a<5;r.classList.toggle("coveo-end",_),r.classList.toggle("coveo-beginning",d),r.classList.toggle("coveo-scrolling",!d&&!_),r.oldScroll=a}function C(){$("#button-container a.cmp-button.see-options-btn").on("mousedown",w),$("div#clickable-coveo-image.CoveoFieldValue").on("mousedown",w),$("#variant-attribute-box a.attribute-box-link").on("mousedown",w),$("#title-container a.variant-short-desc").on("mousedown",w)}e.items={language:"",region:"",searchHub:"",searchResultURL:"",replacementParts:[],termsToHighlight:[],images:[],resultImages:[],productUrls:[],variantImages:[],mobileVariantImages:[],variantMptStatuses:[],variantShortDescs:[],variantLongDescs:[],variantPartNums:[],mobileVariantLongDescs:[],variantLinksForButton:[],variantLinksForBox:[],variantLinksForShortDesc:[],variantLinksForImages:[],mobileVariantLinksForImages:[],baseProductExclusionCountries:[],baseProductExclusionRegions:[],baseProductExclusionCountriesForAlerts:[],baseProductExclusionRegionsForAlerts:[],baseProductShortDescs:[],baseProductLongDescs:[],mobileBaseProductLongDescs:[],mobilePartNums:[],singletonFlagsForButton:[],singletonFlagsForAttributes:[],singletonFlagsForPartNums:[],singletonFlagsForBanners:[],productUrlsForStatusBanner:[],shortDescriptions:[],previousSearchTerm:"",searchTerm:"",searchToken:"",searchTokenRefreshTimerId:void 0,prevPageWasL3:!1,loadMoreFacetValuesThreshold:.5,mobileToggleThreshold:767,enableProductComparison:document.querySelector(".cmp-searchresults")?document.querySelector(".cmp-searchresults").dataset.productCompareEnabled:"false",MAX_READ_MORE_CHARS:160,isFilteredByCountry:!1,currentMappedRegion:"",currentPodsRegion:"",currentCountry:"",regionOfUseSuffix:"",siteRegionSuffix:"",i18nkeys:{addToList:"panduit.pdp.addtolist",buyNow:"panduit.pdp.buynow",viewDetails:"panduit.product.viewdetails",viewAll:"panduit.productgroups.viewall",resources:"panduit.productgroups.resources",check:"panduit.productgroups.check",compare:"panduit.productgroups.compare",discontinued:"panduit.productgroups.obsoletelabel",useUp:"panduit.productgroups.useup",decline:"panduit.productgroups.decline",bestSeller:"panduit.productgroups.bestseller",featured:"panduit.productgroups.featured",products:"panduit.productgroups.products",noReplacement:"panduit.productgroups.noreplacement",suggestedReplacement:"panduit.productgroups.suggestedreplacement",suggestedTerms:"panduit.header.suggestedterms",configurator:"panduit.productgroups.configurator",for:"panduit.cart.for",content:"panduit.search.content",filters:"panduit.productgroups.filters",tooltip:"panduit.search.tooltip",note:"panduit.productgroups.note",replacementnote:"panduit.productgroups.replacementnote",seeOptions:"panduit.productgroups.seeoptions",moreOptions:"panduit.productgroups.moreoptions",andMore:"panduit.productgroups.andmore",readMore:"panduit.productgroups.readmore",readLess:"panduit.productgroups.readless",optionShown:"panduit.productgroups.optionshown",notOfferedInCou:"panduit.bom.notoffered",notOfferedFlag:"panduit.searchresult.notoffered"}},a=document.referrer,o.checkIfURLExists(a).then((function(t){a.indexOf("/products/")>=0&&t.data.indexOf("CoveoSearchInterface")>=0?e.items.prevPageWasL3=!0:e.items.prevPageWasL3=!1})),e.coveoStartup=function(){!function(){const t=window.getCountryAndRegionOfUse();e.items.currentMappedRegion=t[1],e.items.currentPodsRegion=t[2],e.items.regionOfUseSuffix="__"+e.items.currentPodsRegion,e.items.currentCountry=t[0],e.items.isFilteredByCountry=window.isCountryFilterOn()}(),function(){e.items.region=Panduit.region,e.items.siteRegionSuffix="__"+Panduit.region,e.items.language=Panduit.locale,e.items.searchHub="gpc_"+e.items.region+"_"+e.items.language;const t=document.createElement("script");t.type="text/javascript";let n=e.items.language;"es"===n?n="es-es":"zh"===n&&(n="zh-cn");t.src=`https://static.cloud.coveo.com/searchui/v2.10093/4/js/cultures/${n}.js`,document.getElementsByClassName("panduit-global-header-container")[0].appendChild(t)}(),function(){let t="/";t+="na"!=e.items.region?e.items.region+"/":"",t+=e.items.language+"/search.html",e.items.searchResultURL=window.modifyUrlForEnv(t)}(),window.addEventListener("resize",(function(){const e=$(".coveo-facet-dropdown-header");e.length>1&&e[0].parentNode.remove(),f(!0)}));const t=o.getLocalCoveoToken();null===t?o.getCoveoToken().then((function(e){const t=e.data.token;o.saveLocalCoveoToken(t),d(t)}),(function(e){console.error("There has been an error in the Coveo Search Module")})):d(t)},e.coveoStartup();const w=function(){const e=this.closest(".coveo-result-frame").querySelector("#result-sku").innerText.trim(),t=i.get(document.getElementById("coveo-full-results")).getDisplayedResults();let n=null;for(let i=0;i<t.length;i++){const r=t[i];if(e===r.attachments[0].raw.itemcode.trim()){n=r;break}}let r="";
1const o=this.className;r=o.includes("see-options-btn")?"seeOptionsButton":o.includes("attribute-box-link")?"attributeBoxLink":o.includes("variant-short-desc")?"shortDescriptionLink":"image";const a=null!==document.getElementById("coveo-search-results")?document.getElementById("coveo-search-results"):document.getElementById("coveo-l3-results"),s={name:"resultButtonClick-"+r,type:"Click"};i.logClickEvent(a,s,{},n)};function D(){$(".obso-status.discontinued").closest(".CoveoResult").find(".add-btn").attr("disabled","disabled")}function N(){const e=angular.element("#facet-display-list")[0];new MutationObserver((function(e,t){if(e&&e.length>0){const e=document.getElementsByClassName("CoveoSortDropdown")[0];if(null!=e&&Array.from(e.children).filter((e=>Array.from(e.classList).includes("fas"))).length<1){const t=document.createElement("i");t.setAttribute("class","fas fa-caret-down"),e.appendChild(t)}$(".coveo-dynamic-facet-collapse-toggle-svg[aria-label='Arrow Up']").replaceWith('<i class="fas fa-caret-down"></i>'),$(".coveo-dynamic-facet-collapse-toggle-svg[aria-label='Arrow Down']").replaceWith('<i class="fas fa-caret-right"></i>');const t=$(".coveo-checkbox-span-label-suffix");Array.from(t).forEach((e=>{const t=e.parentElement.querySelector(".coveo-checkbox-span-label");t&&t.appendChild(e)}))}})).observe(e,{childList:!0,subtree:!0,attributes:!0})}function E(){_(".CoveoOmnibox input").then((e=>{_(".CoveoSearchButton").then((t=>{""==e.value.trim()?(t.classList.add("disabled"),t.tabIndex=-1):(t.classList.remove("disabled"),t.tabIndex=0),e.addEventListener("input",(()=>{""==e.value.trim()?(t.classList.add("disabled"),t.tabIndex=-1):(t.classList.remove("disabled"),t.tabIndex=0)})),document.querySelector(".magic-box-clear").addEventListener("click",(()=>{t.classList.add("disabled"),t.tabIndex=-1}))}))}))}function P(){let t=e;_(".coveo-magicbox-suggestions").then((n=>{new MutationObserver((function(n,r){if(clearTimeout(t.items.searchTokenRefreshTimerId),n&&n.length>0){const t=n.filter((e=>e.addedNodes.length>0));let r=!1;if(1===t.length){const e=t[0];e&&e.classList&&(e.classList.contains("ml-header")||e.classList.contains("itemcode-header"))&&(r=!0)}if(t.length>0&&!r){const t=`<div class="magic-box-suggestion ml-header"><div>${s(e.items.i18nkeys.suggestedTerms)}</div></div>`,n=`<div class="magic-box-suggestion itemcode-header"><div>${s(e.items.i18nkeys.products)}</div></div>`,r=$(".ml-header")[0],i=$(".coveo-magicbox-suggestions > .magic-box-suggestion.coveo-omnibox-selectable").length,o=$(".coveo-top-field-suggestion-row").length;!r&&i>0&&$(".coveo-magicbox-suggestions").prepend(t);const a=$(".itemcode-header")[0];!a&&o>0&&i>0?$(n).insertAfter($(".coveo-magicbox-suggestions > div.magic-box-suggestion").last()):!a&&o>0&&0===i&&$(".coveo-magicbox-suggestions").prepend(n)}}})).observe(n,{childList:!0})}))}function F(t,n){return!t.includes(e.items.currentCountry)&&!n.includes(e.items.currentMappedRegion)}function A(){const t=["@mpt_item_status","@mpt_part_type","@mpt_region","@mpt_rev_rank","@mpt_weight"],n=["@categoryid","@categoryname","@pagepath","@productcategoryid"],r=window.regions,i=["@collection","@connectortype","@contenttype","@date","@filetype","@foldingchild","@foldingcollection","@foldingparent","@indexeddate","@isdelete","@itemkey","@lastmodifieddate","@orderingid","@primaryid","@rowid","@size","@sourcetype","@syscollection","@sysconnectortype","@sysdate","@sysfiletype","@sysindexeddate","@sysprintableuri","@sysrowid","@syssize","@syssourcetype","@systitle","@systransactionid","@sysuri","@sysurihash","@transactionid","@urihash","@wordcount"];for(const o of t)for(const t of r)t!==e.items.currentPodsRegion&&i.push(`${o}__${t}`);for(const o of n)for(const t of r)t!==e.items.region&&i.push(`${o}__${t}`);return i}}]),ae.controller("ResultsPageController",["$scope","$rootScope","$timeout","CoveoSearchService",function(e,t,n,r){e.items={viewPageLoader:!0,displaySearchSelector:!1,displaySearchConfigurator:!1,cpqSearchUrl:"",queryTerm:"",currentTab:"",queryHasNoResults:!1,hideSearchInterfaceForRedirect:!0,coveoLoading:!1},e.openFacetsModal=function(){const e=$("#facet-display-list")[0];e&&e.classList.remove("coveo-hidden");const t=$("#coveo-result-list")[0];t&&t.setAttribute("aria-hidden","true"),$("html").css("overflow-y","clip"),document.body.classList.contains("navbar-opened")&&r.setReopenSearchBar(!0),document.body.classList.remove("navbar-opened")},e.closeFacetsModal=function(){const e=$("#facet-display-list")[0];e&&e.classList.add("coveo-hidden");const t=$("#coveo-result-list")[0];t&&t.setAttribute("aria-hidden","false"),$("html").css("overflow-y","scroll"),!0===r.getReopenSearchBar()&&(document.body.classList.add("navbar-opened"),r.setReopenSearchBar(!1))},t.$on("newQueryTerm",(function(t,n){n.queryTerm&&(e.items.queryTerm=n.queryTerm.trim())})),t.$on("hideResultsForRedirect",(function(t,n){!1===n.display?e.items.hideSearchInterfaceForRedirect=!0:!0===n.display&&(e.items.hideSearchInterfaceForRedirect=!1)})),t.$on("resultNum",(function(t,n){0===n.resultCount?(e.items.queryHasNoResults=!0,$(".CoveoSearchInterface")[0].classList.add("coveo-no-results")):(e.items.queryHasNoResults=!1,$(".CoveoSearchInterface")[0].classList.remove("coveo-no-results"))})),t.$on("changeTab",(function(t,n){n.tab&&(e.items.currentTab=n.tab)})),t.$on("triggerBanner",(function(t,n){!0===n.display?(n.cpqUrl&&(e.items.cpqSearchUrl=n.cpqUrl),e.items.displaySearchSelector=!0):e.items.displaySearchSelector=!1})),t.$on("coveoLoaded",(function(t,r){n((function(){e.items.coveoLoading=!1,e.items.viewPageLoader=!1}),200);const i=document.getElementById("cswidgetjs");i&&i.remove(),e.channelSightScript&&(e.channelSightScript.remove(),e.channelSightScript=null);const o=document.createElement("script");o.src="https://cdn.channelsight.com/widget/scripts/cswidget.loader.js",e.channelSightScript=document.getElementsByTagName("head")[0].appendChild(o)}))}]),ae.factory("Coveo",["$window",function(e){if(e.Coveo)return e.Coveo}]),ae.factory("CoveoSearchService",["$http","$cookies",function(e,t){return{items:{reopenSearchBar:!1},setReopenSearchBar:function(e){this.items.reopenSearchBar=e},getReopenSearchBar:function(){return this.items.reopenSearchBar},encodeURI:function(e){return encodeURIComponent(e.trim())},getLocalCoveoToken:function(){const e=t.get("COVEO_TOKEN");return e||null},saveLocalCoveoToken:function(e){t.put("COVEO_TOKEN",e,{path:"/",expires:"Session"})},deleteLocalCoveoToken:function(){t.remove("COVEO_TOKEN")},getCoveoToken:function(){return e.post("/bin/panduit/coveotoken")},checkIfPageExistsBeforeRedirect:function(t){const n=t.startsWith("/")?t:"/"+t,r=window.location.origin+n;return e.get(r)},checkIfURLExists:function(t){return e.get(t)},fetchFacets:function(t,n){let r=$(".cmp-l3category--search-page").attr("data-page-title"),i="?region="+t+"&language="+n+"&category=";return window.location.pathname.endsWith("/search.html")&&(r="_CoveoDefaultSearch"),i+=this.encodeURI(r),e.post("/bin/panduit/facetsearch"+i)}}}]),baseModule.controller("BomModalController",["$scope","$attrs","BomCookieService","$rootScope",function(e,t,n,r){function i(){e.$evalAsync((function(){d()}))}window.addEventListener("partListPageUpdated",i);var o=null,a=null,s=0;function c(){o=setTimeout((function(){l(),o=null}),3e3)}function l(){clearTimeout(o),o=null;var e=$(".cmp-temporary-bom__popup");e.removeClass("slidup").css("top","0px");var t=e[0];t&&(a&&t.removeEventListener("transitionend",a),a=function(){a=null,$(".cmp-temporary-bom__popup .img").addClass("bom-img--loading")},t.addEventListener("transitionend",a,{once:!0}))}d();var u=r.$on("productAddedToBom",(function(t,r){var i=++s;clearTimeout(o),o=null;var l=$(".cmp-temporary-bom__popup");l[0]&&a&&(l[0].removeEventListener("transitionend",a),a=null);
1var u,_,p=l.find(".img");p[0].onload=null,p.addClass("bom-img--loading"),d(),e.addedBomName=r.itemCode,e.addedBomQuantity=r.quantity,u=r.quantity,_=window.getPageContentTopOffset().toString()+"px",$(".cmp-temporary-bom__popup").addClass("slidup").css("top",_),u?($(".cmp-temporary-bom__popup .qty").removeClass("error"),$(".create-bom.no-qty").css("display","none"),$(".create-bom.qty").removeClass("hide"),$(".right-side .qty span").html(u)):($(".cmp-temporary-bom__popup .qty").addClass("error"),$(".create-bom.no-qty").css("display","block"),$(".right-side .qty span").html("Missing")),e.bomProducts.forEach((function(t){if(t.name==r.itemCode){e.totalQuantityInBom=t.quantity;const r={};r.product=t;var o=i;n.fetchPart(window.Panduit.locale,t.name).then((function(e){if(o!==s)return;const t=e.data.panduitparts[r.product.name];var n;n=t&&t.primaryImage?window.getDMImagePath(t.primaryImage,180):window.Panduit.dmBaseUrl+"image-not-available?hei=180";var i=window.Panduit.dmBaseUrl+"image-not-available?hei=180",a=p[0];if(a)try{var l=!1;a.removeAttribute("data-bom-fallback-applied"),a.onload=function(){l=!0,a.onload=null,a.onerror=null,o===s&&(p.removeClass("bom-img--loading"),c())},a.onerror=function(){if("true"!==a.getAttribute("data-bom-fallback-applied"))return a.setAttribute("data-bom-fallback-applied","true"),void p.attr("src",i);l=!0,a.onload=null,a.onerror=null,o===s&&(p.removeClass("bom-img--loading"),c())},p.attr("src",n),a.complete&&0!==a.naturalWidth?(a.onload=null,p.removeClass("bom-img--loading"),c()):setTimeout((function(){l||o!==s||c()}),1200)}catch(u){o===s&&c()}})).catch((function(){o===s&&c()}))}}))}));function _(e){var t=Number(e);return isNaN(t)?0:t}function d(){e.bomProducts=n.getBomProducts();var t=0,r=[];e.bomProducts.forEach((function(e){const n=_(e.quantity);t+=n,e.image&&e.description||r.push(e.name)})),r.length>0&&n.fetchPart(window.Panduit.locale,r.join(",")).then((function(t){const n=t.data.panduitparts;e.bomProducts.forEach((function(e){if(!e.image||!e.description){const t=n[e.name];t&&(e.image=t.primaryImage,e.description=t.description)}}))})).catch((function(){})),e.totalProducts=t}e.$on("$destroy",(function(){u(),window.removeEventListener("partListPageUpdated",i),l()})),e.onViewListClick=function(){let e,t="",r="",i="",o="",a=0;const s=n.getBomProducts();for(;a<=s.length-1;)e=s[a],null!=e&&null!=e&&(t+=e.name,r+=e.quantity,i+=e.baseProductId||"",o+=e.shortDescription||"",a<s.length-1&&(t+="|",r+="|",i+="|",o+="|")),a++;""!=t&&""!=r&&window.createShowBOMDatalayer(t,r,i,o)},e.closeTempBomPopup=function(){l()},e.convertBomQtyToNumber=function(e){return _(e)},e.getDMImagePath=window.getDMImagePath}]),baseModule.controller("AddToBomController",["$scope","$rootScope","BomCookieService",function(e,t,n){function r(){if(e.optionsErrors){const e=$(".options-error-container");e.removeClass("shake-options-error-container"),e.width(),e.addClass("shake-options-error-container")}else e.optionsErrors=!0}function i(){e.optionsErrors=!1,$(".options-error-container").removeClass("shake-options-error-container")}function o(t){Object.keys(t.detail).forEach((n=>{e.addToBom(t.detail[n].name,t.detail[n].quantity)}))}function a(e){if(!e||"string"!=typeof e)return"";var t=e.split(/[?#]/,1)[0],n=t.lastIndexOf("/"),r=n>=0?t.substring(n+1):t;if(!r)return"";var i=r.toLowerCase().indexOf(".html");return i>=0?r.substring(0,i).toUpperCase():r.toUpperCase()}function s(e){if(null!=e&&null!=e&&null!=e.shortDescription&&""!=e.shortDescription)return e.shortDescription;if(window.getPdpShortDescription&&"function"==typeof window.getPdpShortDescription){var t=window.getPdpShortDescription();if(null!=t&&""!=t)return t}return""}function c(e){const t=e.target;t&&(t.textContent=Granite.I18n.get("panduit.pdp.addingtolist"),t.classList.add("active"),setTimeout((function(){t.textContent=Granite.I18n.get("panduit.pdp.addtolist"),t.classList.remove("active")}),1500))}e.init=function(t){e.addPartButtonBtnId=window.createButtonId("add-to-list-"+t,"partbutton"),e.fbtAddtoListBtnId=window.createButtonId("add-to-list-"+t,"fbt"),e.fbtViewDetailsLinkBtnId=window.createButtonId("view-details-link-"+t,"fbt"),e.fbtViewDetailsButtonBtnId=window.createButtonId("view-details-button-"+t,"fbt")},window.addEventListener("showOptionsErrorBox",r),window.addEventListener("hideOptionsErrorBox",i),$(".add-btn").each((function(){this.addEventListener("click",c)})),e.optionsErrors=!1,window.addEventListener("guidedSelectionItemAddToBom",o),e.onBuyHereClick=function(e,t,r){n.fetchPart(window.Panduit.locale,e).then((function(n){const i=n.data.panduitparts[e],o=a(i&&i.contentPath?i.contentPath:""),c=s(i);null!=i&&null!=i&&window.createBuyHereDatalayer(c,e,t,r,o)}))},e.addToBom=function(e,r,i){i&&window.createButtonClickDatalayer(i,"Add to List"),r||(r=1),e&&r>=0&&n.fetchPart(window.Panduit.locale,e).then((function(i){const o=i.data.panduitparts[e],c=o&&o.contentPath?o.contentPath:"",l=a(c),u=s(o);n.addProduct(e,r,l,u),t.$broadcast("productAddedToBom",{itemCode:e,quantity:r}),null!=o&&null!=o&&window.createAddtoListDatalayer(u,e,c,r,l)}
1)).catch((function(){n.addProduct(e,r,"",""),t.$broadcast("productAddedToBom",{itemCode:e,quantity:r})}))},e.$on("$destroy",(function(){window.removeEventListener("showOptionsErrorBox",r),window.removeEventListener("hideOptionsErrorBox",i),window.removeEventListener("guidedSelectionItemAddToBom",o),$(".add-btn").each((function(){this.removeEventListener("click",c)}))}))}]),baseModule.factory("BomCookieService",["$http","$cookies","$window","$q",function(e,t,n,r){return{getBomProducts:function(){const e=t.getObject("PANDUIT_BOM_CART");return e||[]},saveBomProducts:function(e){t.putObject("PANDUIT_BOM_CART",e,{path:"/"})},removeProduct:function(e){if(e){const t=this.getBomProducts().filter((function(t){return t.itemCode!=e}));this.saveBomProducts(t)}},addProduct:function(e,t,n,r){if(e&&t&&t>0){const i=this.getBomProducts();t=parseInt(t,10);const o="string"==typeof n?n:"",a="string"==typeof r?r:"";let s=!1;i.forEach((function(n){n.name==e&&(n.quantity=n.quantity+t,null!==n.baseProductId&&void 0!==n.baseProductId||(n.baseProductId=o),null!==n.shortDescription&&void 0!==n.shortDescription&&""!==n.shortDescription||(n.shortDescription=a),s=!0)})),s||i.push({name:e,quantity:t,baseProductId:o,shortDescription:a}),this.saveBomProducts(i)}},fetchPart:function(t,i){const o=864e5,a=window.getPodsRegionOfUse();let s=window.location.pathname.replace("/content/panduit","").split("/")[1];s&&""!==s&&"en"!==s&&"en.html"!==s||(s="na");const c=String(i).split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e})),l=[];function u(e){if(!e)return!0;const t=function(e){if("number"==typeof e)return e;if("string"==typeof e){const t=parseInt(e,10);return isNaN(t)?NaN:t}return NaN}(e.expiration);return isNaN(t)||Date.now()>t}function _(e){return`fetchPartsData_${t}_${s}_${a}_${e}`}function d(){const e={panduitparts:{},crossreferences:{},mismatches:[]};return c.forEach((function(t){const r=n.sessionStorage.getItem(_(t));if(null!==r&&""!==r){let o;try{o=JSON.parse(r)}catch(i){return void n.sessionStorage.removeItem(_(t))}o.panduitparts&&Object.assign(e.panduitparts,o.panduitparts),o.mismatches&&o.mismatches.length>0&&(e.mismatches=e.mismatches.concat(o.mismatches))}})),e}if(c.forEach((function(e){const r=`fetchPartsData_${t}_${s}_${a}_${e}`,i=n.sessionStorage.getItem(r);if(null!==i&&""!==i){let t;try{t=JSON.parse(i)}catch(o){return n.sessionStorage.removeItem(r),void l.push(e)}u(t)&&(n.sessionStorage.removeItem(r),l.push(e))}else l.push(e)})),0===l.length)return r.resolve({data:d()});{const r={reg:s,podsRegionOfUse:a,lang:t,ids:l.join(",")};return e.post("/bin/panduit/fetchparts",r).then((function(e){var t;return t=e.data,l.forEach((function(e){const r={expiration:Date.now()+o,panduitparts:{},crossreferences:{},mismatches:[]};t.panduitparts&&t.panduitparts[e]?r.panduitparts[e]=t.panduitparts[e]:t.mismatches&&t.mismatches.indexOf(e)>=0&&r.mismatches.push(e),n.sessionStorage.setItem(_(e),JSON.stringify(r))})),{data:d()}}))}}}}]);window.countries=[{A:"AF",B:"Afghanistan",podsRegion:"emea"},{A:"AX",B:"Åland Islands",podsRegion:"emea"},{A:"AL",B:"Albania",podsRegion:"emea"},{A:"DZ",B:"Algeria",podsRegion:"mena"},{A:"AS",B:"American Samoa",podsRegion:"asean"},{A:"AD",B:"Andorra",podsRegion:"emea"},{A:"AO",B:"Angola",podsRegion:"emea"},{A:"AI",B:"Anguilla",podsRegion:"latam"},{A:"AG",B:"Antigua and Barbuda",podsRegion:"latam"},{A:"AR",B:"Argentina",podsRegion:"latam"},{A:"AM",B:"Armenia",podsRegion:"emea"},{A:"AW",B:"Aruba",podsRegion:"latam"},{A:"AU",B:"Australia",podsRegion:"ausnz"},{A:"AT",B:"Austria",podsRegion:"emea"},{A:"AZ",B:"Azerbaijan",podsRegion:"emea"},{A:"BS",B:"Bahamas",podsRegion:"latam"},{A:"BH",B:"Bahrain",podsRegion:"mena"},{A:"BD",B:"Bangladesh",podsRegion:"asean"},{A:"BB",B:"Barbados",podsRegion:"latam"},{A:"BY",B:"Belarus",podsRegion:"emea"},{A:"BE",B:"Belgium",podsRegion:"emea"},{A:"BZ",B:"Belize",podsRegion:"latam"},{A:"BJ",B:"Benin",podsRegion:"emea"},{A:"BM",B:"Bermuda",podsRegion:"latam"},{A:"BT",B:"Bhutan",podsRegion:"asean"},{A:"BO",B:"Bolivia",podsRegion:"latam"},{A:"BQ",B:"Bonaire",podsRegion:"latam"},{A:"BA",B:"Bosnia and Herzegovina",podsRegion:"emea"},{A:"BW",B:"Botswana",podsRegion:"emea"},{A:"BR",B:"Brazil",podsRegion:"latam"},{A:"IO",B:"British Indian Ocean Territory",podsRegion:"emea"},{A:"BN",B:"Brunei Darussalam",podsRegion:"asean"},{A:"BG",B:"Bulgaria",podsRegion:"emea"},{A:"BF",B:"Burkina Faso",podsRegion:"emea"},{A:"BI",B:"Burundi",podsRegion:"emea"},{A:"CV",B:"Cabo Verde",podsRegion:"emea"},{A:"KH",B:"Cambodia",podsRegion:"asean"},{A:"CM",B:"Cameroon",podsRegion:"emea"},{A:"CA",B:"Canada",podsRegion:"na"},{A:"KY",B:"Cayman Islands",podsRegion:"latam"},{A:"CF",B:"Central African Republic",podsRegion:"emea"},{A:"TD",B:"Chad",podsRegion:"emea"},{A:"CL",B:"Chile",podsRegion:"latam"},{A:"CN",B:"China",podsRegion:"chn"},{A:"CO",B:"Colombia",podsRegion:"latam"},{A:"KM",B:"Comoros",podsRegion:"emea"},{A:"CD",B:"Congo (the Democratic Republic of the)",podsRegion:"emea"},{A:"CG",B:"Congo",podsRegion:"emea"},{A:"CR",B:"Costa Rica",podsRegion:"latam"},{A:"CI",B:"Côte d'Ivoire",podsRegion:"emea"},{A:"HR",B:"Croatia",podsRegion:"emea"},{A:"CU",B:"Cuba",podsRegion:"latam"},{A:"CW",B:"Curaçao",podsRegion:"latam"},{A:"CY",B:"Cyprus",podsRegion:"emea"},{A:"CZ",B:"Czechia",podsRegion:"emea"},{A:"DK",B:"Denmark",podsRegion:"emea"},{A:"DJ",B:"Djibouti",podsRegion:"mena"},{A:"DM",B:"Dominica",podsRegion:"latam"},{A:"DO",B:"Dominican Republic",podsRegion:"latam"},{A:"EC",B:"Ecuador",podsRegion:"latam"},{A:"EG",B:"Egypt",podsRegion:"mena"},{A:"SV",B:"El Salvador",podsRegion:"latam"},{A:"GQ",B:"Equatorial Guinea",podsRegion:"emea"},{A:"ER",B:"Eritrea",podsRegion:"emea"},{A:"EE",B:"Estonia",podsRegion:"emea"},{A:"SZ",B:"Eswatini",podsRegion:"emea"},{A:"ET",B:"Ethiopia",podsRegion:"emea"},{A:"FK",B:"Falkland Islands [Malvinas]",podsRegion:"emea"},{A:"FO",B:"Faroe Islands",podsRegion:"emea"},{A:"FJ",B:"Fiji",podsRegion:"asean"},{A:"FI",B:"Finland",podsRegion:"emea"},{A:"FR",B:"France",podsRegion:"emea"},{A:"GF",B:"French Guiana",podsRegion:"latam"},{A:"PF",B:"French Polynesia",podsRegion:"latam"},{A:"GA",B:"Gabon",podsRegion:"emea"},{A:"GM",B:"Gambia",podsRegion:"emea"},{A:"GE",B:"Georgia",podsRegion:"emea"},{A:"DE",B:"Germany",podsRegion:"emea",channelSightAssetId:{de:"6905",en:"6993"}},{A:"GH",B:"Ghana",podsRegion:"emea"},{A:"GI",B:"Gibraltar",podsRegion:"emea"},{A:"GR",B:"Greece",podsRegion:"emea"},{A:"GL",B:"Greenland",podsRegion:"emea"},{A:"GD",B:"Grenada",podsRegion:"latam"},{A:"GP",B:"Guadeloupe",podsRegion:"latam"},{A:"GU",B:"Guam",podsRegion:"na"},{A:"GT",B:"Guatemala",podsRegion:"latam"},{A:"GG",B:"Guernsey",podsRegion:"emea"},{A:"GN",B:"Guinea",podsRegion:"emea"},{A:"GW",B:"Guinea-Bissau",podsRegion:"emea"},{A:"GY",B:"Guyana",podsRegion:"latam"},{A:"HT",B:"Haiti",podsRegion:"latam"},{A:"HN",B:"Honduras",podsRegion:"latam"},{A:"HK",B:"Hong Kong",podsRegion:"asean"},{A:"HU",B:"Hungary",podsRegion:"emea"},{A:"IS",B:"Iceland",podsRegion:"emea"},{A:"IN",B:"India",podsRegion:"asean"},{A:"ID",B:"Indonesia",podsRegion:"asean"},{A:"IR",B:"Iran (Islamic Republic of)",podsRegion:"mena"},{A:"IQ",B:"Iraq",podsRegion:"mena"},{A:"IE",B:"Ireland",podsRegion:"emea"},{A:"IM",B:"Isle of Man",podsRegion:"emea"},{A:"IL",B:"Israel",podsRegion:"emea"},{A:"IT",B:"Italy",podsRegion:"emea"},{A:"JM",B:"Jamaica",podsRegion:"latam"},{A:"JP",B:"Japan",podsRegion:"jpn"},{A:"JE",B:"Jersey",podsRegion:"emea"},{A:"JO",B:"Jordan",podsRegion:"mena"},{A:"KZ",B:"Kazakhstan",podsRegion:"emea"},{A:"KE",B:"Kenya",podsRegion:"emea"},{A:"KI",B:"Kiribati",podsRegion:"asean"},{A:"KR",B:"Korea (the Republic of)",podsRegion:"asean"},{A:"KP",B:"Korea (the Democratic People's Republic of)",podsRegion:"asean"},{A:"XK",B:"Kosovo",podsRegion:"emea"},{A:"KW",B:"Kuwait",podsRegion:"mena"},{A:"KG",B:"Kyrgyzstan",podsRegion:"emea"},{A:"LA",B:"Lao People's Democratic Republic",podsRegion:"asean"},{A:"LV",B:"Latvia",podsRegion:"emea"},{A:"LB",B:"Lebanon",podsRegion:"mena"},{A:"LS",B:"Lesotho",podsRegion:"emea"},{A:"LR",B:"Liberia",podsRegion:"emea"},{A:"LY",B:"Libya",podsRegion:"mena"},{A:"LI",B:"Liechtenstein",podsRegion:"emea"},{A:"LT",B:"Lithuania",podsRegion:"emea"},{A:"LU",B:"Luxembourg",podsRegion:"emea"},{A:"MO",B:"Macao",podsRegion:"asean"},{A:"MK",B:"North Macedonia",podsRegion:"emea"},{A:"MG",B:"Madagascar",podsRegion:"emea"},{A:"MW",B:"Malawi",podsRegion:"emea"},{A:"MY",B:"Malaysia",podsRegion:"asean"},{A:"MV",B:"Maldives",podsRegion:"asean"},{A:"ML",B:"Mali",podsRegion:"emea"},{A:"MT",B:"Malta",podsRegion:"emea"},{A:"MH",B:"Marshall Islands",podsRegion:"asean"},{A:"MQ",B:"Martinique",podsRegion:"latam"},{A:"MR",B:"Mauritania",podsRegion:"emea"},{A:"MU",B:"Mauritius",podsRegion:"emea"},{A:"YT",B:"Mayotte",podsRegion:"emea"},{A:"MX",B:"Mexico",podsRegion:"latam"},{A:"FM",B:"Micronesia (Federated States of)",podsRegion:"asean"},{A:"MD",B:"Moldova (the Republic of)",podsRegion:"emea"},{A:"MC",B:"Monaco",podsRegion:"emea"},{A:"MN",B:"Mongolia",podsRegion:"asean"},{A:"ME",B:"Montenegro",podsRegion:"emea"},{A:"MS",B:"Montserrat",podsRegion:"latam"},{A:"MA",B:"Morocco",podsRegion:"mena"},{A:"MZ",B:"Mozambique",podsRegion:"emea"},{A:"MM",B:"Myanmar",podsRegion:"asean"},{A:"NA",B:"Namibia",podsRegion:"emea"},{A:"NR",B:"Nauru",podsRegion:"asean"},{A:"NP",B:"Nepal",podsRegion:"asean"},{A:"NL",B:"Netherlands",podsRegion:"emea"},{A:"NC",B:"New Caledonia",podsRegion:"asean"},{A:"NZ",B:"New Zealand",podsRegion:"ausnz"},{A:"NI",B:"Nicaragua",podsRegion:"latam"},{A:"NE",B:"Niger",podsRegion:"emea"},{A:"NG",B:"Nigeria",podsRegion:"emea"},{A:"NU",B:"Niue",podsRegion:"asean"},{A:"NF",B:"Norfolk Island",podsRegion:"asean"},{A:"MP",B:"Northern Mariana Islands",podsRegion:"asean"},{A:"NO",B:"Norway",podsRegion:"emea"},{A:"OM",B:"Oman",podsRegion:"mena"},{A:"PK",B:"Pakistan",podsRegion:"emea"},{A:"PW",B:"Palau",podsRegion:"asean"},{A:"PS",B:"Palestine, State of",podsRegion:"mena"},{A:"PA",B:"Panama",podsRegion:"latam"},{A:"PG",B:"Papua New Guinea",podsRegion:"asean"},{A:"PY",B:"Paraguay",podsRegion:"latam"},{A:"PE",B:"Peru",podsRegion:"latam"},{A:"PH",B:"Philippines",podsRegion:"asean"},{A:"PL",B:"Poland",podsRegion:"emea"},{A:"PT",B:"Portugal",podsRegion:"emea"},{A:"PR",B:"Puerto Rico",podsRegion:"latam"},{A:"QA",B:"Qatar",podsRegion:"mena"},{A:"RE",B:"Réunion",podsRegion:"emea"},{A:"RO",B:"Romania",podsRegion:"emea"},{A:"RU",B:"Russian Federation",podsRegion:"emea"},{A:"RW",B:"Rwanda",podsRegion:"emea"},{A:"BL",B:"Saint Barthélemy",podsRegion:"latam"},{A:"SH",B:"Saint Helena",podsRegion:"latam"},{A:"KN",B:"Saint Kitts and Nevis",podsRegion:"latam"},{A:"LC",B:"Saint Lucia",podsRegion:"latam"},{A:"MF",B:"Saint Martin (French part)",podsRegion:"latam"},{A:"PM",B:"Saint Pierre and Miquelon",podsRegion:"na"},{A:"VC",B:"Saint Vincent and the Grenadines",podsRegion:"latam"},{A:"WS",B:"Samoa",podsRegion:"asean"},{A:"SM",B:"San Marino",podsRegion:"emea"}
1,{A:"ST",B:"Sao Tome and Principe",podsRegion:"emea"},{A:"SA",B:"Saudi Arabia",podsRegion:"mena"},{A:"SN",B:"Senegal",podsRegion:"emea"},{A:"RS",B:"Serbia",podsRegion:"emea"},{A:"SC",B:"Seychelles",podsRegion:"asean"},{A:"SL",B:"Sierra Leone",podsRegion:"emea"},{A:"SG",B:"Singapore",podsRegion:"asean"},{A:"SX",B:"Sint Maarten (Dutch part)",podsRegion:"latam"},{A:"SK",B:"Slovakia",podsRegion:"emea"},{A:"SI",B:"Slovenia",podsRegion:"emea"},{A:"SB",B:"Solomon Islands",podsRegion:"asean"},{A:"SO",B:"Somalia",podsRegion:"mena"},{A:"ZA",B:"South Africa",podsRegion:"emea"},{A:"SS",B:"South Sudan",podsRegion:"emea"},{A:"ES",B:"Spain",podsRegion:"emea"},{A:"LK",B:"Sri Lanka",podsRegion:"asean"},{A:"SD",B:"Sudan",podsRegion:"mena"},{A:"SR",B:"Suriname",podsRegion:"latam"},{A:"SJ",B:"Svalbard",podsRegion:"emea"},{A:"SE",B:"Sweden",podsRegion:"emea"},{A:"CH",B:"Switzerland",podsRegion:"emea"},{A:"SY",B:"Syrian Arab Republic",podsRegion:"mena"},{A:"TW",B:"Taiwan (Province of China)",podsRegion:"asean"},{A:"TJ",B:"Tajikistan",podsRegion:"emea"},{A:"TZ",B:"Tanzania, the United Republic of",podsRegion:"emea"},{A:"TH",B:"Thailand",podsRegion:"asean"},{A:"TL",B:"Timor-Leste",podsRegion:"asean"},{A:"TG",B:"Togo",podsRegion:"emea"},{A:"TK",B:"Tokelau",podsRegion:"asean"},{A:"TO",B:"Tonga",podsRegion:"asean"},{A:"TT",B:"Trinidad and Tobago",podsRegion:"latam"},{A:"TN",B:"Tunisia",podsRegion:"mena"},{A:"TR",B:"Turkey",podsRegion:"emea"},{A:"TM",B:"Turkmenistan",podsRegion:"emea"},{A:"TC",B:"Turks and Caicos Islands",podsRegion:"latam"},{A:"TV",B:"Tuvalu",podsRegion:"asean"},{A:"UG",B:"Uganda",podsRegion:"emea"},{A:"UA",B:"Ukraine",podsRegion:"emea"},{A:"AE",B:"United Arab Emirates",podsRegion:"mena"},{A:"GB",B:"United Kingdom of Great Britain and Northern Ireland",podsRegion:"emea"},{A:"UY",B:"Uruguay",podsRegion:"latam"},{A:"UZ",B:"Uzbekistan",podsRegion:"emea"},{A:"VU",B:"Vanuatu",podsRegion:"asean"},{A:"VA",B:"Holy See (Vatican City)",podsRegion:"emea"},{A:"VE",B:"Venezuela (Bolivarian Republic of)",podsRegion:"latam"},{A:"VN",B:"Viet Nam",podsRegion:"asean"},{A:"VG",B:"Virgin Islands (British)",podsRegion:"latam"},{A:"VI",B:"Virgin Islands (U.S.)",podsRegion:"latam"},{A:"WF",B:"Wallis and Futuna",podsRegion:"asean"},{A:"EH",B:"Western Sahara",podsRegion:"mena"},{A:"YE",B:"Yemen",podsRegion:"mena"},{A:"ZM",B:"Zambia",podsRegion:"emea"},{A:"ZW",B:"Zimbabwe",podsRegion:"emea"}],window.countries=window.countries.map((e=>("chn"===e.podsRegion||"ausnz"===e.podsRegion?e.mappedRegion="asean":e.mappedRegion=e.podsRegion,e))),window.countries.forEach((e=>{const t=e.A.toUpperCase();if(2===t.length){const n=`/etc.clientlibs/pdt-foundation/clientlibs/clientlib-base/resources/flagicons/${t}.svg`;e.flag=n}else e.flag=""})),function(e){e.forEach((e=>{const t=`panduit.countries.${e.A.toUpperCase()}`;e.tag=t}))}(window.countries),window.countries=window.countries.sort((function(e,t){return Granite.I18n.get(e.tag).localeCompare(Granite.I18n.get(t.tag))})),window.countries.unshift({A:"US",B:"United States of America",podsRegion:"na",mappedRegion:"na",channelSightAssetId:{en:"6904"},flag:"/etc.clientlibs/pdt-foundation/clientlibs/clientlib-base/resources/flagicons/US.svg",tag:"panduit.countries.US"}),window.webRegionsAndLangs=[{text:Granite.I18n.get("panduit.localeselect.na","English"),region:"na",lang:"en"},{text:Granite.I18n.get("panduit.localeselect.latam","English"),region:"latam",lang:"en"},{text:Granite.I18n.get("panduit.localeselect.latam","Español"),region:"latam",lang:"es"},{text:Granite.I18n.get("panduit.localeselect.emea","English"),region:"emea",lang:"en"},{text:Granite.I18n.get("panduit.localeselect.emea","Deutsch"),region:"emea",lang:"de"},{text:Granite.I18n.get("panduit.localeselect.emea","Français"),region:"emea",lang:"fr"},{text:Granite.I18n.get("panduit.localeselect.asean","English"),region:"asean",lang:"en"},{text:Granite.I18n.get("panduit.localeselect.chn","English"),region:"chn",lang:"en"},{text:Granite.I18n.get("panduit.localeselect.chn","中文"),region:"chn",lang:"zh"},{text:Granite.I18n.get("panduit.localeselect.jpn","English"),region:"jpn",lang:"en"},{text:Granite.I18n.get("panduit.localeselect.jpn","日本語"),region:"jpn",lang:"ja"}],window.regions=["asean","ausnz","chn","jpn","latam","mena","na","emea"],window.updateRegionOrCountryCookie
1=function(e,t){var n,r=new Date;r.setFullYear(r.getFullYear()+1),window.location.hostname.endsWith(".panduit.com")&&(n=".panduit.com"),window.setCookie(e,t,{domain:n,path:"/",expires:r})},window.getRegionOrCountryCookie=function(e){var t=window.getCookie(e);if(!t)return null;if("PANDUIT_COUNTRY_OF_USE"===e)try{return JSON.parse(t)}catch(n){return console.error("Failed to parse country cookie as JSON:"),null}return t},window.isCountryFilterOn=function(){return"false"!==window.getRegionOrCountryCookie("PANDUIT_COUNTRY_FILTERED")},window.getCountryAndRegionOfUse=function(){const e=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE");return[(null==e?void 0:e.A)?e.A.toLowerCase():"us",(null==e?void 0:e.mappedRegion)?e.mappedRegion:"na",(null==e?void 0:e.podsRegion)?null==e?void 0:e.podsRegion:"na"]},window.getCountryAbbr=function(){return window.getCountryAndRegionOfUse()[0]},window.getMappedRegionOfUse=function(){return window.getCountryAndRegionOfUse()[1]},window.getPodsRegionOfUse=function(){return window.getCountryAndRegionOfUse()[2]},window.getCountryName=function(){const e=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE");return(null==e?void 0:e.B)?e.B:"United States of America"},window.getCountryFlag=function(){const e=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE");return(null==e?void 0:e.flag)?e.flag:"/etc.clientlibs/pdt-foundation/clientlibs/clientlib-base/resources/flagicons/US.svg"},window.getCountryI18n=function(){const e=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE");return(null==e?void 0:e.tag)?e.tag:window.getCountryName()},window.setCountryOfUseCookie=function(e){if(e&&window.getCountryAbbr().toLowerCase()!==e.toLowerCase()){const t=window.countries.find((t=>t.A.toLowerCase()===e.toLowerCase()));t&&window.updateRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE",JSON.stringify(t))}},window.setCountryOfUseCookieWithCountryName=function(e){if(e&&window.getCountryName().toLowerCase()!==e.toLowerCase()){const t=window.countries.find((t=>t.B.toLowerCase()===e.toLowerCase()));t&&window.updateRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE",JSON.stringify(t))}},window.getLocalizedCountryName=function(e){const t=window.countries.find((t=>t.A.toLowerCase()===e.toLowerCase()));return t?Granite.I18n.get(t.tag):e},window.notifyUserOfCoUChange=function(e){if(e&&window.getCountryAbbr().toLowerCase()!==e.toLowerCase()){const t=window.getLocalizedCountryName(e),n=Granite.I18n.get("panduit.countryofuse.updated",t);window.showToast(n)}},window.addEventListener("newRegionLangSelected",(function(e){e.detail&&window.updateRegionOrCountryCookie("PANDUIT_IWE_LOCALE",e.detail[0])})),window.addEventListener("newCountryOfUseSelected",(function(e){e.detail&&window.updateRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE",e.detail[0])})),window.addEventListener("countryFilterStateChanged",(function(e){e.detail&&window.updateRegionOrCountryCookie("PANDUIT_COUNTRY_FILTERED",e.detail[0])})),window.provinces=[{A:"AB",B:"Alberta"},{A:"BC",B:"British Columbia"},{A:"MB",B:"Manitoba"},{A:"NB",B:"New Brunswick"},{A:"NL",B:"Newfoundland and Labrador"},{A:"NS",B:"Nova Scotia"},{A:"ON",B:"Ontario"},{A:"PE",B:"Prince Edward Island"},{A:"QC",B:"Quebec"},{A:"SK",B:"Saskatchewan"}],provinces=provinces.sort((function(e,t){return e.B.localeCompare(t.B)})),window.states=[{A:"AL",B:"Alabama"},{A:"AK",B:"Alaska"},{A:"AZ",B:"Arizona"},{A:"AR",B:"Arkansas"},{A:"CA",B:"California"},{A:"CO",B:"Colorado"},{A:"CT",B:"Connecticut"},{A:"DE",B:"Delaware"},{A:"DC",B:"District of Columbia"},{A:"FL",B:"Florida"},{A:"GA",B:"Georgia"},{A:"HI",B:"Hawaii"},{A:"ID",B:"Idaho"},{A:"IL",B:"Illinois"},{A:"IN",B:"Indiana"},{A:"IA",B:"Iowa"},{A:"KS",B:"Kansas"},{A:"KY",B:"Kentucky"},{A:"LA",B:"Louisiana"},{A:"ME",B:"Maine"},{A:"MH",B:"Marshall Islands"},{A:"MD",B:"Maryland"},{A:"MA",B:"Massachusetts"},{A:"MI",B:"Michigan"},{A:"MN",B:"Minnesota"},{A:"MS",B:"Mississippi"},{A:"MO",B:"Missouri"},{A:"MT",B:"Montana"},{A:"NE",B:"Nebraska"},{A:"NV",B:"Nevada"},{A:"NH",B:"New Hampshire"},{A:"NJ",B:"New Jersey"},{A:"NM",B:"New Mexico"},{A:"NY",B:"New York"},{A:"NC",B:"North Carolina"},{A:"ND",B:"North Dakota"},{A:"OH",B:"Ohio"},{A:"OK",B:"Oklahoma"},{A:"OR",B:"Oregon"},{A:"PA",B:"Pennsylvania"},{A:"RI",B:"Rhode Island"},{A:"SC",B:"South Carolina"},{A:"SD",B:"South Dakota"},{A:"TN",B:"Tennessee"},{A:"TX",B:"Texas"},{A:"UT",B:"Utah"},{A:"VT",B:"Vermont"},{A:"VA",B:"Virginia"},{A:"WA",B:"Washington"},{A:"WV",B:"West Virginia"},{A:"WI",B:"Wisconsin"},{A:"WY",B:"Wyoming"}],states=states.sort((function(e,t){return e.B.localeCompare(t.B)})),window.lazyLoadElements=function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var e=[].slice.call(document.querySelectorAll(".lazy-image, .lazy-img, .lazy-script"));if("IntersectionObserver"in window){var t=new IntersectionObserver((function(e,n){e.forEach((function(e){if(e.isIntersecting){var n=e.target;"IMG"===n.tagName?n.src=n.dataset.src:n.classList.contains("lazy-script")?n.querySelectorAll("script[data-lazy-src]").forEach((function(e){e.src=e.dataset.lazySrc})):n.classList.remove("lazy-image"),t.unobserve(n)}}))}),{rootMargin:"0px 0px 400px 0px"});e.forEach((function(e){t.observe(e)}))}else e.forEach((function(e){e.classList.contains("lazy-script")?e.querySelectorAll("script[data-lazy-src]").forEach((function(e){e.src=e.dataset.lazySrc})):e.classList.remove("lazy-image")}))},document.addEventListener("DOMContentLoaded",(function(){window.lazyLoadElements()}));const se=function(){var e="cmp",t={smallMobileMax:479,mobileMin:480,mobileMax:767,tabletMin:
1768,bsSmallDesktopMin:992,tabletMax:1024,smallDesktopMin:1025,smallDesktopMax:1279,desktopMin:1280},n=function(t,n){var r=t.dataset,i=[],o=n,a=["is","hook"+(o=o.charAt(0).toUpperCase()+o.slice(1))];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)){var c=r[s];0===s.indexOf(e)&&(s=(s=s.slice(3)).charAt(0).toLowerCase()+s.substring(1),-1===a.indexOf(s)&&(i[s]=c))}return i},r=function(e){var t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?new Date(Number(t[1]),Number(t[2])-1,Number(t[3])):new Date(e)};return{breakpoints:t,constructComponents:function(e,t,r){for(var i=document.querySelectorAll(e),o=0;o<i.length;o++)new r({element:i[o],options:n(i[o],t)});var a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,s=document.querySelector("body");new a((function(i){i.forEach((function(i){var o=[].slice.call(i.addedNodes);o.length>0&&o.forEach((function(i){i.querySelectorAll&&[].slice.call(i.querySelectorAll(e)).forEach((function(e){new r({element:e,options:n(e,t)})}))}))}))})).observe(s,{subtree:!0,childList:!0,characterData:!0})},debounce:function(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}},getCacheElements:function(t,n,r=n){var i={};i.self=t;for(var o=i.self.querySelectorAll("[data-cmp-hook-"+r+"]"),a=0;a<o.length;a++){var s=o[a];if(s.closest(".cmp-"+r)===i.self){var c=n;c=c.charAt(0).toUpperCase()+c.slice(1);var l=s.dataset[e+"Hook"+c];if(i[l]){if(!Array.isArray(i[l])){var u=i[l];i[l]=[u]}i[l].push(s)}else i[l]=s}}return i},pageload:function(){window.addEventListener("load",(e=>{document.body.classList.add("pageloaded")}))},setupProperties:function(e,t){var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r],o=null;e&&null!=e[r]&&(o=i&&"function"==typeof i.transform?i.transform(e[r]):e[r]),null===o&&(o=t[r].default),n[r]=o}return n},throttle:function(e,t,n=!0){let r,i;return function(...o){const a=(new Date).getTime();r&&a<r+t?(clearTimeout(i),i=setTimeout((function(){n?(r=a,e.call(this,...o)):r=null}),t-(a-r))):(r=a,e.call(this,...o))}},viewportIsDesktop:function(){return window.innerWidth>=t.smallDesktopMin},viewportIsTablet:function(){return window.innerWidth<=t.tabletMax&&window.innerWidth>t.mobileMax},viewportIsMobile:function(){return window.innerWidth<t.tabletMin},viewportIsBootstrapTablet:function(){return window.innerWidth<t.bsSmallDesktopMin},isWithinDateRange:function(e,t){if(!e&&!t)return!1;var n=new Date,i=e?r(e):null,o=t?r(t):null;n.setHours(0,0,0,0),i&&i.setHours(0,0,0,0),o&&o.setHours(23,59,59,999);var a=n.getTime(),s=i?i.getTime():null,c=o?o.getTime():null;return(a>=s||!s)&&(a<=c||!c)},parseLocalDate:r}}();se.pageload(),window.AEM_PDT=window.AEM_PDT||{},window.AEM_PDT.Components=window.AEM_PDT.Components||{},window.AEM_PDT.Components.utils=se;class ce{constructor(e){y(this,"lastScrollY",0),y(this,"lastTrigger",!1),y(this,"rootNode"),y(this,"scrollOffsetMin",20),y(this,"scrollOffsetMenu",0),y(this,"triggerStickyTimeout"),y(this,"determineSticky",se.throttle((()=>{0!=window.scrollY&&Math.abs(this.lastScrollY-window.scrollY)<this.scrollOffsetMin||(window.scrollY>=this.scrollOffsetMin&&window.scrollY>=this.lastScrollY&&(this.toggleSticky(!0),this.lastTrigger=!0),(0==window.scrollY||window.scrollY<this.scrollOffsetMin||window.scrollY<this.lastScrollY)&&(this.toggleSticky(!1),this.lastTrigger=!1),this.lastScrollY=window.scrollY)}),150)),this.rootNode=e}updateStickyNavHeight(){this.scrollOffsetMenu=this.rootNode.offsetHeight;const e=document.querySelector(".pdt-wrapper");e&&(e.style.setProperty("--sticky-nav-padding",`${this.scrollOffsetMenu}px`),this.rootNode.classList.contains("cmp-navigation--has-stuck")||(this.rootNode.style.position="fixed",e.style.setProperty("--sticky-nav-padding",`calc(${this.scrollOffsetMenu}px)`),document.documentElement.style.setProperty("--cmp-stickynav--scroll-padding-top",`${this.scrollOffsetMenu}px`),document.documentElement.style.scrollPaddingTop="var(--cmp-stickynav--scroll-padding-top)"))}init(){this.scrollOffsetMenu=this.rootNode.offsetHeight;new ResizeObserver((()=>{this.updateStickyNavHeight()})).observe(this.rootNode),window.addEventListener("scroll",(e=>{this.determineSticky()}));const e=document.getElementById("header-eyebrow");null==e||e.addEventListener("transitionend",(()=>{this.rootNode.classList.contains("cmp-navigation--is-sticking")&&(this.rootNode.classList.remove("cmp-navigation--is-sticking"),this.rootNode.classList.add("cmp-navigation--is-stuck"))}))}toggleSticky(e){this.lastTrigger!==e&&(void 0!==this.triggerStickyTimeout&&clearTimeout(this.triggerStickyTimeout),this.triggerStickyTimeout=setTimeout((()=>{let t="cmp-navigation--is-sticking";window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(t="cmp-navigation--is-stuck"),e&&!this.rootNode.classList.contains(t)?(this.rootNode.classList.add("cmp-navigation--has-stuck"),this.rootNode.classList.add(t)):e||!this.rootNode.classList.contains("cmp-navigation--is-sticking")&&!this.rootNode.classList.contains("cmp-navigation--is-stuck")||this.rootNode.classList.remove("cmp-navigation--is-sticking","cmp-navigation--is-stuck")}),250))}}!function(){const e=".cmp-navigation--is-sticky";function t(){const t=document.querySelectorAll(e);if(0!=t.length)for(let e=0;e<t.length;e++){new ce(t[e]).init()}}"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)}();class le{static getToastContainer(){return this.toastContainer||(this.toastContainer=document.querySelector(".cmp-toast"),this.toastContainer||(this.toastContainer=document.createElement("div"),this.toastContainer.classList.add("cmp-toast"),document.body.appendChild(this.toastContainer)),this.resizeHandler||(this.resizeHandler=()=>this.updateToastPositions(),window.addEventListener("resize",this.resizeHandler))),this.toastContainer}static updateContainerVisibility(){if(this.toastContainer){this.instances.size>0?this.toastContainer.style.display="block":(this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.toastContainer.remove(),this.toastContainer=null)}}static generateToastId(){return`${this.TOAST_ID_PREFIX}-${Date.now()}-${++this.idCounter}`}static saveToastToStorage(e,t,n,r){const i={message:t,duration:n,status:r},o=window.sessionStorage.getItem(this.PENDING_TOASTS_KEY),a=o?JSON.parse(o):{};a[e]=i,window.sessionStorage.setItem(this.PENDING_TOASTS_KEY,JSON.stringify(a))}static removeToastFromStorage(e){const t=window.sessionStorage.getItem(this.PENDING_TOASTS_KEY);if(t)try{const n=JSON.parse(t);delete n[e],0===Object.keys(n).length?window.sessionStorage.removeItem(this.PENDING_TOASTS_KEY):window.sessionStorage.setItem(this.PENDING_TOASTS_KEY,JSON.stringify(n))}catch(n){console.warn(`[Toast] Failed to remove ${e} from queue:`),window.sessionStorage.removeItem(this.PENDING_TOASTS_KEY)}}static restorePendingToasts(){const e=window.sessionStorage.getItem(this.PENDING_TOASTS_KEY);if(e)try{const t=JSON.parse(e);Object.keys(t).forEach((e=>{const{message:n,duration:r,status:i}=t[e];n&&this.show(n,r,i)}))}catch(t){console.warn("[Toast] Failed to restore pending toasts")}finally{window.sessionStorage.removeItem(this.PENDING_TOASTS_KEY)}}static createIcon(e){return v(this,null,(function*(){const t=document.createElement("div"),n=`/etc.clientlibs/panduit/clientlibs/clientlib-site/dist/resources/notifications/notification-${e||"info"}.svg`;try{const e=yield fetch(n);e.ok&&(t.innerHTML=yield e.text())}catch(r){console.warn("ToastNotification: Failed to load icon, using fallback")}return t}))}static show(e){return v(this,arguments,(function*(e,t=this.DEFAULT_DURATION,n){if(!(null==e?void 0:e.trim()))return void console.warn("ToastNotification: Empty message provided");const r=this.generateToastId(),i=this.getToastContainer(),o=document.createElement("aside");o.id=r,o.classList.add("cmp-notification","cmp-notification__dismissible","cmp-notification--toast"),o.popover="manual",o.role="alert",o.ariaLive="polite";const a=n||"info",s=yield this.createIcon(a);o.classList.add(`cmp-notification__status--${a}`);const c=document.createElement("span");c.textContent=e||"";const l=document.createElement("button");if(l.classList.add("cmp-notification__button--close"),l.ariaLabel=Granite.I18n.get("panduit.global.closelabel"),l.innerHTML="&times;",l.onclick=()=>this.dismissToast(o),o.append(s,c,l),i.appendChild(o),this.instances.set(r,o),this.saveToastToStorage(r,e,t,n),o.showPopover(),this.updateToastPositions(),requestAnimationFrame((()=>{o.classList.add("ready")})),o.addEventListener("toggle",(e=>{"closed"===e.newState&&(o.dataset.dismissing||setTimeout((()=>this.updateToastPositions()),100))})),t>0){const e=setTimeout((()=>{const e=this.instances.get(r);e&&this.dismissToast(e)}),t);
1this.dismissTimers.set(r,e)}}))}static updateToastPositions(){const e=Array.from(this.instances.values());let t=50;document.querySelector(".cmp-language-popup")&&(t=150),e.forEach((e=>{if(e.matches(":popover-open")&&!e.dataset.dismissing){e.classList.add("repositioning"),e.style.top=`${t}px`;const n=e.getBoundingClientRect();t+=n.height+16,setTimeout((()=>{e.classList.remove("repositioning")}),300)}})),this.updateContainerVisibility()}static dismissToast(e){const t=this.dismissTimers.get(e.id);t&&(clearTimeout(t),this.dismissTimers.delete(e.id)),this.removeToastFromStorage(e.id),e.dataset.dismissing="true",e.classList.remove("ready","repositioning"),e.classList.add("dismissing"),setTimeout((()=>{e.hidePopover(),setTimeout((()=>{e.remove(),this.instances.delete(e.id),this.updateContainerVisibility(),setTimeout((()=>{this.updateToastPositions()}),50)}),100)}),500)}}y(le,"instances",new Map),y(le,"dismissTimers",new Map),y(le,"TOAST_ID_PREFIX","cmp-toast"),y(le,"PENDING_TOASTS_KEY","cmp-toast-queue"),y(le,"DEFAULT_DURATION",5e3),y(le,"idCounter",0),y(le,"toastContainer",null),y(le,"resizeHandler",null),window.showToast=function(e,t=le.DEFAULT_DURATION,n){le.show(e,t,n)},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{le.restorePendingToasts()})):le.restorePendingToasts();const ue={getYouTubePlayerForIframe:function(e){return e&&window.YouTubeTracking&&"function"==typeof window.YouTubeTracking.getPlayerForIframe?window.YouTubeTracking.getPlayerForIframe(e):null},openModal:function(e){$(e)[0].style.display="block";const t=e.querySelector("iframe"),n=e.querySelector("video");if(t){window.YouTubeTracking&&"function"==typeof window.YouTubeTracking.onModalOpenForIframe&&window.YouTubeTracking.onModalOpenForIframe(t);const e=ue.getYouTubePlayerForIframe(t);if(e&&"function"==typeof e.playVideo)return void e.playVideo();const n=t.getAttribute("src");n&&-1===n.indexOf("autoplay=1")&&(-1===n.indexOf("autoplay")?t.setAttribute("src",n+(-1===n.indexOf("?")?"?":"&")+"autoplay=1"):t.setAttribute("src",n.replace("autoplay=0","autoplay=1")))}n&&(n.currentTime=0,n.play())},closeModal:function(e){$(e)[0].style.display="none";const t=e.children[1];ue.stopVideo(t)},stopVideo:function(e){const t=e.querySelector("iframe"),n=e.querySelector("video");if(t){const e=ue.getYouTubePlayerForIframe(t);if(e){if(window.YouTubeTracking&&"function"==typeof window.YouTubeTracking.suppressNextPauseForIframe&&window.YouTubeTracking.suppressNextPauseForIframe(t),"function"==typeof e.stopVideo)return void e.stopVideo();if("function"==typeof e.pauseVideo)return void e.pauseVideo()}t.src=t.src.replace("autoplay=1","autoplay=0")}n&&n.pause()}};window.VideoLightbox=ue;class _e{constructor(n){y(this,"accessibilityText",document.body.dataset),y(this,"navElement"),y(this,"toggleButton"),y(this,"toggleButtonIconHTML",{open:`<span class="fa-solid fa-angles-left" aria-hidden="true"></span><span class="sr-only">${null!=(e=this.accessibilityText.cmpMenuAccessibilityShow)?e:""}</span>`,closed:`<span class="fa-solid fa-angles-right" aria-hidden="true"></span><span class="sr-only">${null!=(t=this.accessibilityText.cmpMenuAccessibilityHide)?t:""}</span>`}),y(this,"toggleNavDrawer",(()=>{this.navElement.classList.toggle("cmp-nav-drawer--closed"),this.navElement.classList.contains("cmp-nav-drawer--closed")?(this.toggleButton.innerHTML=this.toggleButtonIconHTML.closed,sessionStorage.setItem("cmpNavDrawerStatus","closed")):(this.toggleButton.innerHTML=this.toggleButtonIconHTML.open,this.navElement.classList.add("cmp-nav-drawer--opening"),sessionStorage.setItem("cmpNavDrawerStatus","open"))})),this.navElement=n,this.navElement.classList.add("cmp-nav-drawer"),this.toggleButton=document.createElement("button"),this.toggleButton.classList.add("cmp-nav-drawer__toggle-btn"),"closed"===sessionStorage.getItem("cmpNavDrawerStatus")?(this.navElement.classList.add("cmp-nav-drawer--closed"),this.toggleButton.innerHTML=this.toggleButtonIconHTML.closed):(this.navElement.classList.remove("cmp-nav-drawer--closed"),this.toggleButton.innerHTML=this.toggleButtonIconHTML.open),this.navElement.insertBefore(this.toggleButton,this.navElement.firstChild),this.toggleButton.addEventListener("click",this.toggleNavDrawer),this.accessibilityText.cmpMenuAccessibilityShow&&this.accessibilityText.cmpMenuAccessibilityHide||window.location.pathname.startsWith("/content/experience-fragments/")||console.error("ARIA labels for the NavDrawer component are missing")}}class de{constructor(e){var t;y(this,"accessibilityText",document.body.dataset),y(this,"firstTabStop",null),y(this,"lastTabStop",null),y(this,"nav",null),y(this,"navContainer",null),y(this,"navOpen",!1),y(this,"rootNode"),y(this,"triggerButton"),y(this,"triggerButtonIconHTML",{open:`<span class="cmp-slideout-nav__button-icon cmp-slideout-nav__button-icon--closed" aria-hidden="true"></span><span class="sr-only">${null!=(n=this.accessibilityText.cmpMenuAccessibilityShow)?n:""}</span>`,closed:`<span class="cmp-slideout-nav__button-icon cmp-slideout-nav__button-icon--open" aria-hidden="true"></span><span class="sr-only">${null!=(r=this.accessibilityText.cmpMenuAccessibilityHide)?r:""}</span>`}),y(this,"triggerContainer",null),this.rootNode=e,this.triggerButton=null!=(t=this.rootNode.querySelector(":scope >
1 button:not(.cmp-nav-drawer__toggle-btn)"))?t:document.createElement("button")}init(e,t,n){var r,i,o;this.nav=t,this.navContainer=e,this.triggerContainer=n,null==(r=this.navContainer)||r.classList.add("cmp-slideout-nav"),null==(i=this.nav)||i.classList.add("cmp-slideout-nav__target"),this.triggerButton.innerHTML=this.triggerButtonIconHTML.open,this.triggerButton.setAttribute("aria-expanded","false"),this.triggerButton.setAttribute("aria-controls",this.navContainer.id),this.triggerButton.classList.add("cmp-slideout-nav__button"),this.triggerContainer.insertAdjacentElement("beforebegin",this.triggerButton),this.triggerButton.addEventListener("click",this.handleTriggerToggleMenu.bind(this)),this.navContainer.addEventListener("click",this.handleNavToggleMenu.bind(this)),this.rootNode.addEventListener("keydown",this.handleKeydownEvent.bind(this)),this.rootNode.addEventListener("transitionend",this.handleTransitionEnd.bind(this)),null==(o=this.nav)||o.querySelectorAll(".cmp-accordion__button, .cmp-navigation__item-button").forEach((e=>{e.addEventListener("click",this.handlePrimaryNavButtonClick.bind(this),!0),e.addEventListener("keydown",(e=>{const t=e;"Enter"!==t.key&&"Spacebar"!==t.key&&" "!==t.key||this.handlePrimaryNavButtonClick(t)}))}))}toggleMenu(e){var t,n;void 0===e&&(e=!this.navOpen),this.navOpen=e,this.navOpen?(this.triggerButton.innerHTML=this.triggerButtonIconHTML.closed,this.triggerButton.setAttribute("aria-expanded","true"),null==(t=this.navContainer)||t.classList.add("cmp-slideout-nav--opening","cmp-slideout-nav--opened"),document.body.classList.add("no-scroll"),setTimeout((()=>{var e;this.findFocusableElements(),null==(e=this.firstTabStop)||e.focus()}),10)):(this.triggerButton.innerHTML=this.triggerButtonIconHTML.open,this.triggerButton.setAttribute("aria-expanded","false"),null==(n=this.navContainer)||n.classList.remove("cmp-slideout-nav--opened"),document.body.classList.remove("no-scroll"),this.triggerButton.focus())}findFocusableElements(){const e=Array.from(this.rootNode.querySelectorAll('a[href], button:not([disabled]), [tabindex="0"], [contenteditable]')).filter((e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}));this.firstTabStop=e[0],this.lastTabStop=e[e.length-1]}handleKeydownEvent(e){var t,n,r,i,o;this.navOpen&&("Escape"===e.key&&(this.toggleMenu(!1),this.triggerButton.focus()),"Tab"===e.key&&(this.findFocusableElements(),e.shiftKey?(document.activeElement===this.firstTabStop||""!==(null==(t=document.activeElement)?void 0:t.name)&&(null==(n=document.activeElement)?void 0:n.name)===(null==(r=this.firstTabStop)?void 0:r.name))&&(e.preventDefault(),null==(i=this.lastTabStop)||i.focus()):document.activeElement===this.lastTabStop&&(e.preventDefault(),null==(o=this.firstTabStop)||o.focus())))}handlePrimaryNavButtonClick(e){var t,n;if(!se.viewportIsMobile())return;const r=e.target instanceof HTMLButtonElement?e.target:(null==(t=e.target)?void 0:t.offsetParent)instanceof HTMLButtonElement?null==(n=e.target)?void 0:n.offsetParent:null;r&&setTimeout((()=>{"false"===r.getAttribute("aria-expanded")?this.nav&&this.nav.scrollTo({top:0,left:0,behavior:"smooth"}):(r.focus(),r.scrollIntoView({behavior:"smooth",block:"center"}))}),10)}handleTriggerToggleMenu(e){e.preventDefault(),this.toggleMenu()}handleNavToggleMenu(e){this.navOpen&&e.target==this.navContainer&&(e.preventDefault(),this.toggleMenu(!1))}handleTransitionEnd(e){var t;if("opacity"===e.propertyName){"0"==window.getComputedStyle(e.target).opacity&&(document.body.classList.remove("no-scroll"),null==(t=this.navContainer)||t.classList.remove("cmp-slideout-nav--opening"))}}}class pe extends de{constructor(e){super(e)}init(){const e=this.rootNode.querySelector(".cmp-experiencefragment--nav"),t=document.querySelector("#header-eyebrow .header-eyebrow-links");super.init(this.rootNode,e,t);const n=this.triggerButton.cloneNode(!0);n.innerHTML=this.triggerButtonIconHTML.closed,e.insertAdjacentElement("afterbegin",n),n.addEventListener("click",this.handleTriggerToggleMenu.bind(this))}}!function(){const e='body[class*="page--library-"]',t="#library-bodywrapper nav.experiencefragment";function n(){if(0==document.querySelectorAll(e).length)return;const n=document.querySelectorAll(t);if(n.length>0)for(let e=0;e<n.length;e++)new _e(n[e]),new pe(n[e]).init(),r(n[e])}function r(e){if(se.viewportIsMobile())return;const t=e.querySelector(".cmp-experiencefragment--nav");if(!t)return;t.querySelectorAll(".cmp-accordion__button").forEach((e=>{new MutationObserver((n=>{for(const r of n)if("attributes"===r.type&&"aria-expanded"===r.attributeName&&"true"===e.getAttribute("aria-expanded")){if(t.querySelectorAll(".cmp-accordion__button--expanded").length>1)return;const n=e.closest(".cmp-accordion__item");if(!n)return;const r=n.offsetTop-t.offsetTop<t.scrollTop,i=n.offsetTop-t.offsetTop+n.clientHeight>t.scrollTop+t.clientHeight;(r||i)&&setTimeout((()=>{const e=n.offsetTop-t.offsetTop-t.clientHeight+n.clientHeight;t.scrollTo({top:e,behavior:"smooth"})}),10)}})).observe(e,{attributes:!0})}))}"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)}(),$(document).ready((function(){const e={init:function(){if(document.getElementsByClassName("cmp-login").length>0){const t=document.getElementsByClassName("cmp-login")[0].dataset,n=window.location.protocol,r=window.location.host;this.editMode=t.editmode,this.userSession=t.usersession,this.loadingDataText=t.loadingtext,this.distributorLabel=t.distributorlabel,this.submitLabel=t.submitlabel,this.emailLabel=t.emaillabel,this.passwordLabel=t.passwordlabel,this.cookieAlert=t.cookiealert,this.newDistributorLabel=t.newdistributorlabel,this.registerLabel=t.registerlabel,this.redirectMethod=t.redirectmethod,this.accountSelectionPageUrl=t.accountselectionpageurl,this.registerPageUrl=t.registerpageurl,this.redirectPageUrl=t.redirectpageurl,this.profilePageUrl=t.profilepageurl,this.disabledWarningPageUrl=t.disabledwarningpageurl,this.idpDiscovery=t.idpdiscovery,this.language=t.language,this.baseUrl=t.baseurl,this.clientId=t.clientid,this.requestContext=t.requestcontext,this.modal=document.getElementById("sessionAlert"),this.hrefProfilePageUrl=n+"//"+r+this.profilePageUrl,this.hrefAccountSelectionPageUrl=n+"//"+r+this.accountSelectionPageUrl,this.hrefRedirectPageUrl=n+"//"+r+this.redirectPageUrl,this.hrefRegisterPageUrl=n+"//"+r+this.registerPageUrl,this.hrefDisabledWarningPageUrl=n+"//"+r+this.disabledWarningPageUrl,e.bindEvents(),e.execute()}},bindEvents:function(){const e=this;document.getElementById("session-alert-close").addEventListener("click",(function(){e.closeModal()}))},closeModal:function(){clearTimeout(this.timeLogOut),this.modal.style.display="none"}
1,getActiveSession:function(){return ContextHub.getItem("store/userInfo/activeSession")},getAccountNumber:function(){return ContextHub.getItem("store/userInfo/accountNumber")},getAccountCountry:function(){return ContextHub.getItem("store/userInfo/accountCountry")},getActiveStatus:function(){return ContextHub.getItem("store/userInfo/active")},checkSessionInactivity:function(){if(ContextHub.getItem("sessionInactivity")){const e=document.getElementById("sessionAlert");"none"===e.style.display&&(e.style.display="block"),ContextHub.removeItem("sessionInactivity")}},getSignInConfig:function(){const e=this;return{colors:{brand:"#0071b2"},logo:"/etc.clientlibs/panduit/clientlibs/clientlib-site/dist/resources/images/pdt-logo.svg",processCreds:function(t){$.post("/bin/panduit/users/activedirectory/check",{userName:t.username,password:t.password}).fail((function(t){e.errorCallback(t)}))},language:this.language,features:{registration:!0,rememberMe:!0,router:!0,idpDiscovery:"true"===this.idpDiscovery},idpDiscovery:{requestContext:this.requestContext},registration:{click:function(){window.location.href=e.registerPageUrl}},baseUrl:this.baseUrl,redirectUri:window.location.href,clientId:this.clientId,authParams:{issuer:this.baseUrl+"/oauth2/default",responseType:["id_token","token"]},i18n:{en:{"primaryauth.title":this.distributorLabel,"primaryauth.submit":this.submitLabel,"primaryauth.username.placeholder":this.emailLabel,"primaryauth.username.tooltip":this.emailLabel,"primaryauth.password.placeholder":this.passwordLabel,"primaryauth.password.tooltip":this.passwordLabel,"registration.signup.text":this.newDistributorLabel,"registration.signup.label":this.registerLabel},es:{"primaryauth.title":this.distributorLabel,"primaryauth.submit":this.submitLabel,"primaryauth.username.placeholder":this.emailLabel,"primaryauth.username.tooltip":this.emailLabel,"primaryauth.password.placeholder":this.passwordLabel,"primaryauth.password.tooltip":this.passwordLabel,"registration.signup.text":this.newDistributorLabel,"registration.signup.label":this.registerLabel},ja:{"primaryauth.title":this.distributorLabel,"primaryauth.submit":this.submitLabel,"primaryauth.username.placeholder":this.emailLabel,"primaryauth.username.tooltip":this.emailLabel,"primaryauth.password.placeholder":this.passwordLabel,"primaryauth.password.tooltip":this.passwordLabel,"registration.signup.text":this.newDistributorLabel,"registration.signup.label":this.registerLabel},fr:{"primaryauth.title":this.distributorLabel,"primaryauth.submit":this.submitLabel,"primaryauth.username.placeholder":this.emailLabel,"primaryauth.username.tooltip":this.emailLabel,"primaryauth.password.placeholder":this.passwordLabel,"primaryauth.password.tooltip":this.passwordLabel,"registration.signup.text":this.newDistributorLabel,"registration.signup.label":this.registerLabel},"zh-CN":{"primaryauth.title":this.distributorLabel,"primaryauth.submit":this.submitLabel,"primaryauth.username.placeholder":this.emailLabel,"primaryauth.username.tooltip":this.emailLabel,"primaryauth.password.placeholder":this.passwordLabel,"primaryauth.password.tooltip":this.passwordLabel,"registration.signup.text":this.newDistributorLabel,"registration.signup.label":this.registerLabel}}}},getSafeLoginErrorMessage:function(e,t){if("string"==typeof t&&""!==t.trim())return t;const n=e||{},r=n.xhr||n,i=r.status||n.statusCode||0,o=r.responseJSON||{},a="string"==typeof o.status?o.status.toLowerCase():"",s=("string"==typeof o.errorCode?o.errorCode:"")||("string"==typeof n.errorCode?n.errorCode:""),c="string"==typeof n.name?n.name:"",l="string"==typeof n.message?n.message.toLowerCase():"",u=function(e,t){return e>0?`API Error: ${e} - ${t}`:`Validation Error: ${t}`};return"OAUTH_ERROR"===c&&-1!==l.indexOf("not assigned")?u(i,"User is not assigned to the client application"):u(i,"OAUTH_ERROR"===c?"The sign-in request could not be completed":"E0000004"===s?"Invalid username or password or non-active status":"E0000207"===s?"Invalid username or password":"E0000064"===s?"Password expired":"E0000069"===s||"E0000119"===s?"Account is locked":"E0000155"===s?"Account is not active":"E0000085"===s?"Sign-in is not allowed for this account":"E0000259"===s?"Sign-in is blocked until the password is reset":"E0000047"===s?"Too many sign-in attempts":400===i?"The sign-in request was invali
1d":401===i?"Invalid username or password":403===i||423===i?"Access denied":429===i?"Too many sign-in attempts":i>=500?"Server error":""!==a&&"success"!==a?"The sign-in request could not be completed":"Login failed")},emitLoginErrorEvent:function(e,t){const n=this.getSafeLoginErrorMessage(e,t),r=Date.now(),i=n.toLowerCase();this.lastLoginErrorFingerprint===i&&this.lastLoginErrorTimestamp&&r-this.lastLoginErrorTimestamp<1e3||(this.lastLoginErrorFingerprint=i,this.lastLoginErrorTimestamp=r,window.createDatalayerForLoginError(n))},errorCallback:function(t){e.emitLoginErrorEvent(t)},getLoginFieldValue:function(e){let t=0;for(;t<e.length;){const n=document.querySelector(e[t]);if(n&&"string"==typeof n.value)return n.value;t++}return""},detectFormErrors:function(){this.validationListenersAttached||(this.validationListenersAttached=!0,document.addEventListener("click",(function(t){const n=t.target;if(!n||!n.closest)return;const r=n.closest("#okta-signin-submit"),i=n.closest("#idp-discovery-submit");if(!r&&!i)return;if(""!==e.getLoginFieldValue(["#okta-signin-username",'input[name="username"]','input[type="email"]']).trim()){if(r){""===e.getLoginFieldValue(["#okta-signin-password",'input[name="password"]','input[type="password"]']).trim()&&e.emitLoginErrorEvent(null,"User Error: The password field is blank.")}}else e.emitLoginErrorEvent(null,"User Error: The email field is blank.")}),!0))},successResponse:function(e,t){let n="";e[0]&&(n=Object.keys(e[0])[0],t.signIn.authClient.tokenManager.add(n,e[0])),e[1]&&(n=Object.keys(e[1])[0],t.signIn.authClient.tokenManager.add(n,e[1])),"SUCCESS"===e.status&&t.setContextHubInformation()},afterRenderSignIn:function(){this.detectFormErrors();const e=document.getElementsByClassName("auth-footer")[0],t=e.getElementsByTagName("ul")[0],n=document.querySelectorAll('[data-se="needhelp"]')[0];t&&(t.style.display="block");const r=document.getElementsByClassName("o-form-button-bar")[0],i=document.getElementsByClassName("registration-container")[0],o=document.getElementsByClassName("o-form-fieldset o-form-label-top margin-btm-0")[0];if(r&&r.appendChild(i),o&&o.appendChild(e),e&&n&&e.removeChild(n),t&&t.removeChild(t.children[1]),o){o.style.display="flex";const e=o.children;e[0].style.display="flex",e[0].style["justify-content"]="flex-start",e[0].style.width="50%",e[1].style.display="flex",e[1].style["justify-content"]="flex-end",e[1].style.width="50%"}},setUserInfo:function(e){const t={};t.email=e.login,t.userId=e.userId,t.sessionId=e.id,t.activeSession=!0,t.accountNumber=this.getAccountNumber();const n=this.getAccountCountry();t.accountCountry=n||"US",this.setUserInfoData(t,!0)},setContextHubInformation:function(){const e=this;this.signIn.authClient.session.get().then((function(t){"ACTIVE"===t.status?e.setUserInfo(t):alert(e.cookieAlert)}))},getTierValueForAnalytics:function(e){if(!e)return null;const t=["PLATINUM","DIAMOND","GOLD","SILVER","AUTHORIZED"];return null!=t.find((t=>e.toUpperCase().includes(t)))?t.find((t=>e.toUpperCase().includes(t))):e},getInfo:function(e){return{accountNumber:e.accountNumber}},loading:function(){const e=document.getElementById("widget-container"),t=document.createElement("div"),n=document.createElement("h2");n.classList.add("cmp-common__loading-text","headline3"),n.textContent+=this.loadingDataText,t.classList.add("cmp-common__loading-spinner","cmp-common__loading-spinner--lg"),e.appendChild(t),e.appendChild(n)},updateUserSessionData:function(e,t,n){const r=this;$.ajax({url:"/bin/panduit/user/session",type:"POST",data:JSON.stringify(this.getInfo(e)),headers:{pantoken:e.sessionId},contentType:"application/json",success:function(i){if(0===r.getActiveStatus)r.deleteOktaSession(),ContextHub.removeItem("store/userInfo"),window.location.href=r.hrefDisabledWarningPageUrl;else if(t){const n=t[0];if(n.length>1)window.location.href=r.hrefAccountSelectionPageUrl;else if(1===n.length){ContextHub.setItem("store/userInfo/accountNumber",n[0].acctNumber),e.accountNumber=n[0].acctNumber,ContextHub.setItem("store/userInfo/orgId",n[0].accntOpUnit),e.orgId=n[0].accntOpUnit,ContextHub.setItem("store/u
1serInfo/businessUnit",n[0].businessUnit),e.businessUnit=n[0].businessUnit;const t=n[0].accntCountry?n[0].accntCountry:"US";ContextHub.setItem("store/userInfo/accountCountry",t),e.accountCountry=t;const i=r.getTierValueForAnalytics(n[0].tierLevel);ContextHub.setItem("store/userInfo/accountTier",i),e.accountTier=n[0].tierLevel,window.notifyUserOfCoUChange(t),window.setCountryOfUseCookie(t),window.createDatalayerSelectAccount(e.accountNumber,n[0].accntName,!0),r.updateUserSessionData(e,null,r.hrefRedirectPageUrl)}else n.length<1&&(window.location.href=r.hrefProfilePageUrl)}else n?n&&(window.location.href=n):r.validateUserGroup(e.email)?window.location.href=r.hrefProfilePageUrl:window.location.href=r.hrefRegisterPageUrl},error:function(){console.error("Error updating session data"),window.location.href=r.hrefRedirectPageUrl}})},validateApprovedAccounts:function(e){const t=this,n=ContextHub.getItem("store/userInfo"),r={emailAddress:e};$.ajax({url:"/bin/panduit/portal/user/account/all",type:"POST",data:JSON.stringify(window.encPl(JSON.stringify(r),self.crypto.getRandomValues(new Uint8Array(3))[1]%11,new TextEncoder)),async:!1,contentType:"application/json",success:function(e){if(e.dx){let r=JSON.parse((new TextDecoder).decode(Uint8Array.from(atob(e.dx.slice(5)),(e=>e.codePointAt(0)))));if(r&&!r.error)n.superAdmin=r.superAdmin,ContextHub.setItem("store/userInfo/superAdmin",n.superAdmin),t.updateUserSessionData(n,r.userApprovedAccounts);else if(r.error&&"USER_NOT_ACTIVE"===r.error){const e=null;t.updateUserSessionData(n,e)}}else window.location.href=t.hrefAccountSelectionPageUrl},error:function(e){e&&403===e.status&&"true"!==Panduit.isAuthoring?window.logoutFromPortal():window.location.href=t.hrefAccountSelectionPageUrl}})},redirectPage:function(){const e=this.getAccountNumber();if(null===e||""===e){const e=ContextHub.getItem("store/userInfo/email");this.validateApprovedAccounts(e)}else window.location.href=this.hrefRedirectPageUrl},setUserInfoData:function(e,t){const n=this,r={emailAddress:e.email,userId:e.userId};$.ajax({url:"/bin/panduit/user/session",type:"POST",data:JSON.stringify(this.getInfo(e)),headers:{pantoken:e.sessionId},async:!1,contentType:"application/json",success:function(i){if(null!==e.email){const i="/bin/panduit/portal/user/profile/get";$.ajax({url:i,type:"POST",data:JSON.stringify(window.encPl(JSON.stringify(r),self.crypto.getRandomValues(new Uint8Array(3))[1]%11,new TextEncoder)),contentType:"application/json",async:!1,success:function(r){if(r.dx){let i=JSON.parse((new TextDecoder).decode(Uint8Array.from(atob(r.dx.slice(5)),(e=>e.codePointAt(0)))));if("S"===i.retStatus&&"USER_PROFILE_INACTIVE_USER"!==i.retMsg){e.name=i.userProfileInfo.firstName+" "+i.userProfileInfo.lastName,e.phoneNumber=i.userProfileInfo.primaryPhone,e.jobTitle=i.userProfileInfo.jobTitle,e.companyName=i.userProfileInfo.companyName,e.active=i.userProfileInfo.active;0===i.userProfileInfo.accountDetails.length&&(e.requestAccountAccess=!0),ContextHub.setItem("store/userProfile",i.userProfileInfo)}else e.createRecord=!0,e.requestAccountAccess=!0;if(ContextHub.setItem("store/userInfo",e),ContextHub.setItem("store/oicEnabled",i.oicEnabled),t&&window.auditTrackingCode("LOGIN",(function(){})),n.redirectPage(),window.createDatalayerForDPLogin(e.jobTitle,e.companyName,i.userProfileInfo.companyIndustry,i.userProfileInfo.areaOfInterest,i.userProfileInfo.managementLevel,e.email),"S"===i.retStatus){const t=i.userProfileInfo,n=t.oktaId&&t.oktaId!==e.email?t.oktaId:null,r={event:{name:"DPUserProfile",DPUserProfile:{EmailAddress:e.email,FirstName:t.firstName,LastName:t.lastName,JobTitle:t.jobTitle,JobFunction:t.jobFunction,PhoneNumber:t.primaryPhone,ManagementLevel:t.managementLevel,PreferredLanguage:t.preferredLanguage,AreaOfInterest:t.areaOfInterest,CompanyName:t.companyName,CompanyType:t.companyType,AddressLine1:t.companyAddressLine1,AddressLine2:t.companyAddressLine2,Country:t.companyCountry,State:t.companyState,City:t.companyCity,PostalCode:t.companyPostalCode,AddressType:t.companyAddressType,Industry:t.companyIndustry,UserId:n}}};createDatalayerAndTriggerCustomEvent(r,"DPUserProfile")}}
1else ContextHub.setItem("store/userInfo",e),t&&window.auditTrackingCode("LOGIN",(function(){})),n.redirectPage()},error:function(r){ContextHub.setItem("store/userInfo",e),t&&window.auditTrackingCode("LOGIN",(function(){})),n.redirectPage()}})}},error:function(){console.error("Error setting session data")}})},deleteOktaSession:function(){const e="/bin/panduit/deleteSession?sessionId="+ContextHub.getItem("store/userInfo/sessionId");$.ajax({url:e,type:"POST",contentType:"application/json",success:function(e){},error:function(){console.error("Error deleting session in Okta")}})},validateUserGroup:function(e){let t=!1;const n={emailAddress:e};return $.ajax({url:"/bin/panduit/user/register/validate",type:"POST",data:JSON.stringify(window.encPl(JSON.stringify(n),self.crypto.getRandomValues(new Uint8Array(3))[1]%11,new TextEncoder)),contentType:"application/json",async:!1,success:function(e){null!==e&&(t=e.belongsPortalGroup)},error:function(){console.error("Impossible to validate user group")}}),t},parseTokensFromUrl:function(e){e.signIn.authClient.token.parseFromUrl((function(t){e.signIn.authClient.tokenManager.add("idToken",t.tokens.idToken),e.signIn.authClient.tokenManager.add("accessToken",t.tokens.accessToken),window.location.hash="",e.loading(),e.setContextHubInformation()}),e.errorCallback)},renderEl:function(e,t,n){e.renderEl({el:"#widget-container"},t,n)},execute:function(){const e=this;if(this.checkSessionInactivity(),this.redirectMethod){const t=new OktaAuth({url:this.baseUrl,clientId:this.clientId,redirectUri:window.location.href,issuer:this.baseUrl,scopes:["openid","profile","email"]});t.isLoginRedirect()?t.token.parseFromUrl().then((n=>{const{idToken:r}=n.tokens;t.session.get().then((function(n){if(!e.validateUserGroup(r.claims.preferred_username)){e.emitLoginErrorEvent(null,"Validation Error: User not authorized to access Distributor Portal"),alert("User not authorized to access Distributor Portal");const n=new XMLHttpRequest,r="/bin/panduit/deleteSession";return n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&(ContextHub.setItem("store/userInfo",{activeSession:!1}),t.signOut(),window.location.href=window.location.origin)},n.open("POST",r,!0),void n.send()}if(e.getActiveSession()){if(e.userSession&&"false"!==e.userSession)return e.loading(),void e.redirectPage();e.deleteOktaSession(),ContextHub.removeItem("store/userInfo")}else{e.loading();const t={login:r.claims.preferred_username,userId:r.claims.sub,id:n.id};e.setUserInfo(t)}})).catch((function(t){e.errorCallback(t)}))})).catch((function(t){e.errorCallback(t)})):e.editMode||t.token.getWithRedirect({responseType:["id_token"]})}else{const t=this.getSignInConfig();this.signIn=new OktaSignIn(t),this.signIn.authClient.session.get().then((function(t){const n={};if("ACTIVE"===t.status){if(!e.validateUserGroup(t.login))return n.activeSession=!1,ContextHub.setItem("store/userInfo",n),void e.renderEl(e.signIn,(function(t){e.successResponse(t,e)}),e.errorCallback);if(!e.getActiveSession())return e.loading(),void e.setContextHubInformation();if(e.userSession&&"false"!==e.userSession)return e.loading(),void e.redirectPage();e.deleteOktaSession(),ContextHub.removeItem("store/userInfo")}n.activeSession=!1,ContextHub.setItem("store/userInfo",n),e.renderEl(e.signIn,(function(t){e.successResponse(t,e)}),e.errorCallback)})),this.signIn.on("afterRender",(function(){e.afterRenderSignIn()})),this.signIn.on("afterError",(function(t,n){e.errorCallback(n)}))}}};e.init()})),function(){const e="notification",t={self:`[data-cmp-is="${e}"]`};function n(t){const n=this;var r;t&&t.element&&(r=t,n._config=r,n._elements=AEM_PDT.Components.utils.getCacheElements(r.element,e),function(){const e=n._elements.self;if(e.classList.contains("cmp-notification__dismissible")){const t=e.querySelector(".cmp-notification__button--close");t&&t.addEventListener("click",(function(t){const n={event:{name:"dismissNotification",dismissNotification:{id:e.id}}};createDatalayerAndTriggerCustomEvent(n,"dismissNotification");const r=e.closest(".notification");r&&r.remove()}))}}())}function r(){AEM_PDT.Components.utils.constructComponents(t.self,e,n)}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}();const fe={getModalForElement:function(e){const t=$(e).closest(".cmp-textimage").attr("id");return $(`.cmp-video-lightbox[data-modal-for="${t}"]`)[0]},bindEvents:function(e){$(e).on("click","a.cmp-textimage__link",(function(e){if("lightbox"===$(this).attr("target")){e.preventDefault();const t=fe.getModalForElement(this);window.VideoLightbox.openModal(t)}})),$(e).on("click",".cmp-textimage__featured-image a.cmp-image__link",(function(e){if("lightbox"===$(this).attr("target")){e.preventDefault();const t=fe.getModalForElement(this);window.VideoLightbox.openModal(t)}})),$(e).on("click",".cmp-textimage .cmp-video-lightbox__close.curs
1or",(function(){const e=fe.getModalForElement(this);window.VideoLightbox.closeModal(e)}))},init:function(){fe.bindEvents(document);new MutationObserver((function(e){for(const t of e)t.addedNodes.forEach((e=>{1===e.nodeType&&e.classList.contains("cmp-textimage")&&fe.bindEvents(e)}))})).observe(document.body,{childList:!0,subtree:!0})}};fe.init(),$(document).ready((function(){new URLSearchParams(window.location.search).get("subscribed")||$("#subscribed").hide();$("#blog-subscribe-form-submit").prop("disabled",!0),ge=$(".mktoForm input").on("keyup",he),window.createInitFormDatalayer("blogSubscribe","mktoForm")}));var me,ge=[];function he(){!function(){for(var e=0;e<ge.length;e++)if(ge[e].hasAttribute("required")&&""===ge[e].value)return!1;return!0}()?$("#blog-subscribe-form-submit").prop("disabled",!0):$("#blog-subscribe-form-submit").prop("disabled",!1)}function ye(){const e=ve&&ve.parentElement&&$(ve.parentElement).hasClass("is-sticky"),t=$(".cmp-jumpbar");t.length&&(t.unstick(),t.sticky({zIndex:111,topSpacing:window.getPageContentTopOffset()}),e&&t.sticky("update"))}
1window.onBlogSubscribeOnSubmit=function(){var e=$("#BlogSubscribeFirstName").val(),t=$("#BlogSubscribeLastName").val(),n=$("#BlogSubscribeEmail").val();if(function(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}(n)){$("#BlogSubscribeEmail").removeClass("form-error");var r={firstName:e,lastName:t,email:n};$.ajax("/bin/panduit/blogsubscribe",{method:"POST",data:JSON.stringify(r),contentType:"application/json; charset=utf-8",dataType:"json"}).done((function(){window.createSubmitFormDatalayer("blogSubscribe","mktoForm"),window.location.href+=(window.location.href.indexOf("?")>0?"&":"?")+"subscribed=true"})).fail((function(){alert(Granite.I18n.get("panduit.requestDemoForm.demoRequestErrorMsg"))}))}else $("#BlogSubscribeEmail").addClass("form-error"),window.createErrorFormDatalayer("blogSubscribe","mktoForm","Invalid Email")},window.AEM_PDT=window.AEM_PDT||{},window.AEM_PDT.Components=window.AEM_PDT.Components||{},window.AEM_PDT.Components.container=window.AEM_PDT.Components.container||{},window.AEM_PDT.Components.container.utils={},window.AEM_PDT.Components.container.utils={removeUrlHash:function(){history.replaceState(void 0,void 0," ")},updateUrlHash:function(e,t,n){if(e&&e._elements&&e._elements[t]&&e._elements[t][n]&&e._elements[t][n].id){var r=e._elements[t][n].id;history.replaceState(void 0,void 0,"#"+r)}},getDeepLinkItemIdx:function(e,t,n){if(window.location.hash){var r=window.location.hash.substring(1);if(r&&document.getElementById(r)&&e&&e._config&&e._config.element&&e._elements[t]&&e._config.element.querySelector("[id='"+r+"']"))for(var i=0;i<e._elements[t].length;i++){var o=e._elements[t][i],a=!1;if(e._elements[n]){var s=e._elements[n][i];a=s&&s.querySelector("[id='"+r+"']")}if(o.id===r||a)return i}return-1}return-1},getDeepLinkItem:function(e,t,n){var r=window.AEM_PDT.Components.container.utils.getDeepLinkItemIdx(e,t,n);if(e&&e._elements&&e._elements[t])return e._elements[t][r]},scrollToAnchor:function(){setTimeout((function(){if(window.location.hash){var e=decodeURIComponent(window.location.hash.substring(1)),t=document.getElementById(e);t&&t.offsetTop&&t.scrollIntoView()}}),100)}},function(){var e="sr-only",t={linkAccessibility:"."+e,linkAccessibilityEnabled:"[data-cmp-link-accessibility-enabled]",linkAccessibilityText:"[data-cmp-link-accessibility-text]"};function n(){var n=function(){if(document.querySelectorAll(t.linkAccessibilityEnabled)[0]){var e=document.querySelectorAll(t.linkAccessibilityText);if(e[0])return e[0].dataset.cmpLinkAccessibilityText}}();n&&document.querySelectorAll("a[target='_blank']").forEach((function(r){if(!r.querySelector(t.linkAccessibility)){var i=document.createElement("span");i.classList.add(e),i.innerText=n,r.insertAdjacentElement("beforeend",i)}}))}"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)}(),window.AEM_PDT=window.AEM_PDT||{},window.AEM_PDT.Components=window.AEM_PDT.Components||{},window.AEM_PDT.Components.panelcontainer=function(){return{subscribeToAuthorPanelSelect:function(e,t,n){window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(window.CQ=window.CQ||{},window.CQ.CoreComponents=window.CQ.CoreComponents||{},window.CQ.CoreComponents.MESSAGE_CHANNEL=window.CQ.CoreComponents.MESSAGE_CHANNEL||new window.Granite.author.MessageChannel("cqauthor",window),window.CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer",(function(r){r.data&&r.data.type===t&&r.data.id===e.dataset.cmpPanelcontainerId&&"navigate"===r.data.operation&&n(r.data.index)})))}}}(),function(){var e=window.AEM_PDT&&window.AEM_PDT.Components&&window.AEM_PDT.Components.container&&window.AEM_PDT.Components.container.utils?window.AEM_PDT.Components.container.utils:void 0;e||console.warn("Accordion: container utilities at window.AEM_PDT.Components.container.utils are not available. This can lead to missing features. Ensure the pdt-foundation.components.commons.site.container client library is included on the page.");var t=100,n="cmp",r="accordion",i={ENTER:13,SPACE:32,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},o={self:"[data-"+n+'-is="'+r+'"]'},a={button:{disabled:"cmp-accordion__button--disabled",expanded:"cmp-accordion__button--expanded"},panel:{hidden:"cmp-accordion__panel--hidden",expanded:"cmp-accordion__panel--expanded"},item:{title:"cmp-accordion__title"}},s={item:{expanded:"data-cmp-expanded"}},c={singleExpansion:{default:!1,transform:function(e){return!(null==e)}}};function l(o){var l=this;function u(){if(e){var t=e.getDeepLinkItemIdx(l,"item","item");if(t>-1){var n=l._elements.item[t];if(g(t),n&&!n.hasAttribute(s.item.expanded)){if(l._properties.singleExpansion)for(var r=0;r<l._elements.item.length;r++)l._elements.item[r].hasAttribute(s.item.expanded)&&p(l._elements.item[r],!1,!0);p(n,!0,!0)}var i=window.location.hash.substring(1);if(i){var o=document.querySelector("[id='"+i+"']");o&&o.scrollIntoView()}}}}function _(e,t){var n=l._elements.button.length-1;switch(e.keyCode){case i.ARROW_LEFT:case i.ARROW_UP:e.preventDefault(),t>0&&g(t-1);break;case i.ARROW_RIGHT:case i.ARROW_DOWN:e.preventDefault(),t<n&&g(t+1);break;case i.HOME:e.preventDefault(),g(0);break;case i.END:e.preventDefault(),g(n);break;case i.ENTER:case i.SPACE:e.preventDefault(),d(t),g(t);break;default:return}}function d(e){var t=l._elements.item[e];if(t){if(l._properties.singleExpansion)for(var n=0;n<l._elements.item.length;n++){if(l._elements.item[n]!==t)f(l._elements.item[n])&&p(l._elements.item[n],!1)}p(t,!f(t))}}function p(t,n,r){if(n){t.setAttribute(s.item.expanded,"");var i=l._elements.item.indexOf(t);!r&&e&&e.updateUrlHash(l,"item",i);const n={event:{name:"showAccordionItem",showAccordionItem:{itemId:t.id,itemTitle:t.querySelector(`.${a.item.title}`).innerText}}};createDatalayerAndTriggerCustomEvent(n,"showAccordionItem")}else{t.removeAttribute(s.item.expanded),!r&&e&&e.removeUrlHash();const n={event:{name:"hideAccordionItem",hideAccordionItem:{itemId:t.id,itemTitle:t.querySelector(`.${a.item.title}`).innerText}}};createDatalayerAndTriggerCustomEvent(n,"hideAccordionItem")}m(t)}function f(e){return e&&e.dataset&&void 0!==e.dataset.cmpExpanded}function m(e){f(e)?function(e){var n=l._elements.item.indexOf(e);if(n>-1){var r=l._elements.button[n],i=l._elements.panel[n];r.classList.add(a.button.expanded),setTimeout((function(){r.setAttribute("aria-expanded",!0)}),t),i.classList.add(a.panel.expanded),i.classList.remove(a.panel.hidden),i.setAttribute("aria-hidden",!1)}}(e):function(e){var n=l._elements.item.indexOf(e);if(n>-1){var r=l._elements.button[n],i=l._elements.panel[n];r.classList.remove(a.button.expanded),setTimeout((function(){r.setAttribute("aria-expanded",!1)}),t),i.classList.add(a.panel.hidden),i.classList.remove(a.panel.expanded),i.setAttribute("aria-hidden",!0)}}(e)}function g(e){l._elements.button[e].focus()}function h(e){var t=l._properties.singleExpansion;l._properties.singleExpansion=!0,d(e),l._properties.singleExpansion=t}o&&o.element&&function(e){if(l._config=e,e.element.removeAttribute("data-"+n+"-is"),l._properties=AEM_PDT.Components.utils.setupProperties(e.options,c),l._elements=AEM_PDT.Components.utils.getCacheElements(e.element,r),l._elements.item){if(l._elements.item=Array.isArray(l._elements.item)?l._elements.item:[l._elements.item],l._elements.button=Array.isArray(l._elements.button)?l._elements.button:[l._elements.button],l._elements.panel=Array.isArray(l._elements.panel)?l._elements.panel:[l._elements.panel],l._properties.singleExpansion){var t=function(){for(var e=[],t=0;t<l._elements.item.length;t++){var n=l._elements.item[t];f(n)&&e.push(n)}return e}();t.length>1&&d(t.length-1)}!function(){for(var e=0;e<l._elements.item.length;e++)m(l._elements.item[e])}(),function(){window.addEventListener("hashchange",u,!1);var e=l._elements.button;if(e)for(var t=0;t<e.length;t++)!function(n){e[t].addEventListener("click",(function(e){d(n),g(n)})),e[t].addEventListener("keydown",(function(e){_(e,n)}))}(t)}(),u()}AEM_PDT.Components.panelcontainer.subscribeToAuthorPanelSelect(l._elements.self,"cmp-accordion",h)}(o)}function u(){AEM_PDT.Components.utils.constructComponents(o.self,r,l)}"loading"!==document.readyState?u():document.addEventListener("DOMContentLoaded",u),e&&window.addEventListener("load",e.scrollToAnchor,!1)}(),document.addEventListener("DOMContentLoaded",(function(){var e="cardscarousel",t={self:'[data-cmp-is="'+e+'"]'};AEM_PDT.Components.utils.constructComponents(t.self,e,(function(t){var n;t&&t.element&&{init:function(t){n=this;const r=t.element;this.$cardsCarousel=r,this.$prevButton=r.querySelector(".cmp-cardscarousel__action-wrapper--previous"),this.$nextButton=r.querySelector(".cmp-cardscarousel__action-wrapper--next"),this.$cards=r.querySelectorAll(".cmp-cardscarousel__item"),this.$firstCard=this.$cards[0],this.$items=r.querySelector(".cmp-cardscarousel__items"),this.$items&&(this.$items.scrollLeft=0),this.$cardsCarousel.classList.remove("cmp-cardscarousel--last-position"),this.$cardsCarousel.classList.add("cmp-cardscarousel--initial-position"),this.$cardsCarousel.removeAttribute("data-cmp-is"),this.$cardsCarousel._elements=AEM_PDT.Components.utils.getCacheElements(this.$cardsCarousel,e),this.$cardsCarousel._active=0,this.cardMargin=30,this.initializeActive(),this.bindEvents(),AEM_PDT.Components.panelcontainer.subscribeToAuthorPanelSelect(this.$cardsCarousel._elements.self,"cmp-cardscarousel",this.navigate)},reset:function(){this.$items&&(this.$items.scrollLeft=0),this.$cardsCarousel.classList.remove("cmp-cardscarousel--initial-position","cmp-cardscarousel--last-position"),this.$cardsCarousel.classList.add("cmp-cardscarousel--initial-position"),this.$cards=this.$cardsCarousel.querySelectorAll(".cmp-cardscarousel__item"),this.$firstCard=this.$cards[0]},waitForElement:function(e){return new Promise((t=>{if(document.querySelector(e))return t(document.querySelector(e));const n=new MutationObserver((r=>{document.querySelector(e)&&(t(document.querySelector(e)),n.disconnect())}
1));n.observe(document.body,{childList:!0,subtree:!0})}))},initializeActive:function(){var e=n.$cardsCarousel._elements.item;if(e&&Array.isArray(e))for(var t=0;t<e.length;t++)if(e[t].classList.contains("cmp-cardscarousel__item--active")){n.$cardsCarousel._active=t;break}},refreshActive:function(){var e=n.$cardsCarousel._elements.item,t=n.$cardsCarousel._elements.indicator;if(e)if(Array.isArray(e))for(var r=0;r<e.length;r++)r===parseInt(n.$cardsCarousel._active)?(e[r].classList.add("cmp-cardscarousel__item--active"),t[r].classList.add("cmp-cardscarousel__indicator--active")):(e[r].classList.remove("cmp-cardscarousel__item--active"),t[r].classList.remove("cmp-cardscarousel__indicator--active"));else e.classList.add("cmp-cardscarousel__item--active"),t.classList.add("cmp-cardscarousel__indicator--active")},bindEvents:function(){const e=this;this.handlePrevClick=function(){e.handleNavigation("prev")},this.handleNextClick=function(){e.handleNavigation("next")},this.$prevButton&&this.$prevButton.addEventListener("click",this.handlePrevClick),this.$nextButton&&this.$nextButton.addEventListener("click",this.handleNextClick),this.$items.addEventListener("scroll",(function(){e.cardWidth=e.cardWidth||e.$firstCard.offsetWidth+e.cardMargin,e.$items.scrollLeft>e.cardWidth/2?e.$cardsCarousel.classList.remove("cmp-cardscarousel--initial-position"):e.$cardsCarousel.classList.add("cmp-cardscarousel--initial-position"),e.$items.scrollLeft+e.$items.offsetWidth>=e.$items.scrollWidth-e.cardWidth/2?e.$cardsCarousel.classList.add("cmp-cardscarousel--last-position"):e.$cardsCarousel.classList.remove("cmp-cardscarousel--last-position")})),window.addEventListener("PdpProductDetailsUpdated",(function(t){t.detail&&t.detail.product.isVariant&&!t.detail.product.isLegacy&&t.detail.product.fbt&&t.detail.product.fbt.length>=3&&e.waitForElement(".cmp-fbt.cmp-cardscarousel:not(.ng-hide) .cmp-fbt__item.cmp-cardscarousel__item.ng-scope .cmp-textimage").then((function(){e.reset()}))}))},handleNavigation:function(e){const t=this.$firstCard.offsetWidth+this.cardMargin,n=this.$items.scrollLeft,r="next"===e?n+t:n-t;this.animateItems(r)},initializeCarousel:function(e){const t=this;document.querySelector(".cmp-fbt.cmp-cardscarousel")?t.waitForElement(".cmp-fbt.cmp-cardscarousel:not(.ng-hide) .cmp-fbt__item.cmp-cardscarousel__item.ng-scope .cmp-textimage").then((function(){t.init(e)})):t.waitForElement(".cmp-cardscarousel__item").then((function(){t.init(e)}))},navigate:function(e){if(e<0||e>n.$cardsCarousel._elements.item.length-1)return;n.$cardsCarousel._active=e,n.refreshActive();const t=n.$firstCard.offsetWidth+n.cardMargin;n.animateItems(e*t)},animateItems:function(e){$(n.$items).animate({scrollLeft:e},500)}}.init(t)}))})),function(){let e=window.AEM_PDT&&window.AEM_PDT.Components&&window.AEM_PDT.Components.container&&window.AEM_PDT.Components.container.utils?window.AEM_PDT.Components.container.utils:void 0;e||console.warn("Tabs: container utilities at window.AEM_PDT.Components.container.utils are not available. This can lead to missing features. Ensure the pdt-foundation.components.commons.site.container client library is included on the page.");let t="cmp",n="carousel",r={SPACE:32,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},i={self:"[data-"+t+'-is="'+n+'"]'},o={autoplay:{default:!1,transform:function(e){return!(null==e)}},delay:{default:5e3,transform:function(e){return e=parseFloat(e),isNaN(e)?null:e}},autopauseDisabled:{default:!1,transform:function(e){return!(null==e)}}};function a(i){let a=this;function s(e){1===e.touches.length&&(a._swipeStartX=e.touches[0].clientX,a._swipeStartY=e.touches[0].clientY)}function c(e){if(1===e.changedTouches.length){let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY,r=t-a._swipeStartX,i=n-a._swipeStartY;Math.abs(r)>Math.abs(i)&&Math.abs(r)>a._swipeThreshold&&(e.cancelable&&e.preventDefault(),b(r>0?v():y()))}}function l(){if(e){let t=e.getDeepLinkItemIdx(a,"item","item");if(t>-1){a._elements.item[t]&&(x(t,!0),m());let e=window.location.hash.substring(1);if(e){let t=document.querySelector("[id='"+e+"']");t&&t.scrollIntoView()}}}}function u(e){let t=a._active,n=a._elements.indicator.length-1;switch(e.keyCode){case r.ARROW_LEFT:case r.ARROW_UP:e.preventDefault(),t>0&&x(t-1);break;case r.ARROW_RIGHT:case r.ARROW_DOWN:e.preventDefault(),t<n&&x(t+1);break;case r.HOME:e.preventDefault(),x(0);break;case r.END:e.preventDefault(),x(n);break;case r.SPACE:a._properties.autoplay&&e.target!==a._elements.previous&&e.target!==a._elements.next&&(e.preventDefault(),a._paused?g():m()),e.target===a._elements.pause&&a._elements.play.focus(),e.target===a._elements.play&&a._elements.pause.focus();break;default:return}}function _(e){k()}function d(e){S()}function p(e){m(),a._elements.play.focus()}function f(){g(),a._elements.pause.focus()}function m(){a._paused=!0,k(),h()}function g(){a._paused=!1;let e=!1;
1a._elements.self.parentElement&&(e=a._elements.self.parentElement.querySelector(":hover")===a._elements.self),!a._properties.autopauseDisabled&&e||S(),h()}function h(){T(a._elements.pause,a._paused),T(a._elements.play,!a._paused)}function y(){return a._active===a._elements.item.length-1?0:a._active+1}function v(){return 0===a._active?a._elements.item.length-1:a._active-1}function b(t,n){t<0||t>a._elements.item.length-1||(a._active=t,function(){let e=a._elements.item,t=a._elements.indicator;if(e)if(Array.isArray(e))for(let n=0;n<e.length;n++)n===parseInt(a._active)?(e[n].classList.add("cmp-carousel__item--active"),e[n].removeAttribute("aria-hidden"),t[n].classList.add("cmp-carousel__indicator--active"),t[n].setAttribute("aria-selected",!0),t[n].setAttribute("tabindex","0")):(e[n].classList.remove("cmp-carousel__item--active"),e[n].setAttribute("aria-hidden",!0),t[n].classList.remove("cmp-carousel__indicator--active"),t[n].setAttribute("aria-selected",!1),t[n].setAttribute("tabindex","-1"));else e.classList.add("cmp-carousel__item--active"),t.classList.add("cmp-carousel__indicator--active")}(),!n&&e&&e.updateUrlHash(a,"item",t),a._elements.self.parentElement&&a._elements.self.parentElement.querySelector(":hover")!==a._elements.self&&S())}function x(e,t){b(e,t),function(e){let t=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;e.focus(),window.scrollTo(t,n)}(a._elements.indicator[e]);const n={event:{name:"carouselSlideTransition",carouselSlideTransition:{slideId:a._elements.item[e].id,slideNumber:e+1}}};createDatalayerAndTriggerCustomEvent(n,"carouselSlideTransition")}function S(){a._paused||(k(),a._autoplayIntervalId=window.setInterval((function(){if(document.visibilityState&&document.hidden)return;let e=a._elements.indicators;e!==document.activeElement&&e.contains(document.activeElement)?x(y(),!0):b(y(),!0)}),a._properties.delay))}function k(){window.clearInterval(a._autoplayIntervalId),a._autoplayIntervalId=null}function T(e,t){e&&(!1!==t?(e.disabled=!0,e.classList.add("cmp-carousel__action--disabled")):(e.disabled=!1,e.classList.remove("cmp-carousel__action--disabled")))}i&&i.element&&function(e){a._config=e,e.element.removeAttribute("data-"+t+"-is"),a._properties=AEM_PDT.Components.utils.setupProperties(e.options,o),a._elements=AEM_PDT.Components.utils.getCacheElements(e.element,n),a._active=0,a._paused=!a._properties.autoplay,a._isTouchEnabled=!1,a._swipeStartX=0,a._swipeStartY=0,a._swipeThreshold=50,a._elements.item&&(!function(){let e=a._elements.item;if(e&&Array.isArray(e))for(let t=0;t<e.length;t++)if(e[t].classList.contains("cmp-carousel__item--active")){a._active=t;break}}(),function(){window.addEventListener("hashchange",l,!1),a._elements.previous&&a._elements.previous.addEventListener("click",(function(){let e=v();b(e);const t={event:{name:"carouselSlideTransition",carouselSlideTransition:{slideId:a._elements.item[e].id,slideNumber:e+1}}};createDatalayerAndTriggerCustomEvent(t,"carouselSlideTransition")}));a._elements.next&&a._elements.next.addEventListener("click",(function(){let e=y();b(e);const t={event:{name:"carouselSlideTransition",carouselSlideTransition:{slideId:a._elements.item[e].id,slideNumber:e+1}}};createDatalayerAndTriggerCustomEvent(t,"carouselSlideTransition")}));let e=a._elements.indicator;if(e)for(let n=0;n<e.length;n++)!function(t){e[n].addEventListener("click",(function(e){x(t),m()}))}(n);a._elements.pause&&a._elements.pause.addEventListener("click",p);a._elements.play&&a._elements.play.addEventListener("click",f);a._elements.self.addEventListener("keydown",u),a._properties.autopauseDisabled||(a._elements.self.addEventListener("mouseenter",_),a._elements.self.addEventListener("mouseleave",d));let t=a._elements.item;if(t)for(let n=0;n<t.length;n++)t[n].addEventListener("focusin",_),t[n].addEventListener("focusout",d)}(),a._isTouchEnabled="ontouchstart"in window||navigator.maxTouchPoints>0,a._isTouchEnabled&&function(){let e=a._elements.self.querySelector(".cmp-carousel__content");e&&(e.addEventListener("touchstart",s,{passive:!0}),e.addEventListener("touchend",c))}(),S(),h(),l());AEM_PDT.Components.panelcontainer.subscribeToAuthorPanelSelect(a._elements.self,"cmp-carousel",b)}(i)}let s="loading"!==document.readyState?Promise.resolve():new Promise((function(e){document.addEventListener("DOMContentLoaded",e)}));Promise.all([s]).then((function(){AEM_PDT.Components.utils.constructComponents(i.self,n,a)})),e&&window.addEventListener("load",e.scrollToAnchor,!1)}(),document.addEventListener("DOMContentLoaded",(function(){var e={readMoreButtonClickHandler:function(t){const n=t.currentTarget,r=n.parentElement.previousElementSibling.querySelector(".cmp-readmore__content");r&&r.classList.contains("cmp-readmore__content")&&(r.classList.toggle("cmp-readmore__hidden")?e.applyCutoffHeight(r):(window.onReadMoreCmpExpandDatalayer(window.location.href),r.style.height="auto",n.style.display="none",n.parentElement.style.display="none"))},applyCutoffHeight:function(e){const t=window.innerWidth;var n=e.getAttribute("data-cut-off-height"),r=e.getAttribute("data-cut-off-height-tablet"),i=e.getAttribute("data-cut-off-height-mobile");e.style.height=t<=767&&i?i:t<=1023&&r?r:n||"200px"},bindEvents:function(t){const n=t.querySelector(".cmp-readmore__button"),r=t.querySelector(".cmp-readmore__container").querySelector(".cmp-readmore__content");n&&n.addEventListener("click",e.readMoreButtonClickHandler),window.addEventListener("resize",(function(){r.classList.contains("cmp-readmore__hidden")&&e.applyCutoffHeight(r)}))},init:function(t){const n=t.querySelector(".cmp-readmore__container").querySelector(".cmp-readmore__content");e.applyCutoffHeight(n),e.bindEvents(t)}};document.querySelectorAll(".cmp-readmore").forEach((function(t){e.init(t)}))}
1)),function(){let e=window.AEM_PDT&&window.AEM_PDT.Components&&window.AEM_PDT.Components.container&&window.AEM_PDT.Components.container.utils?window.AEM_PDT.Components.container.utils:void 0;e||console.warn("Tabs: container utilities at window.AEM_PDT.Components.container.utils are not available. This can lead to missing features. Ensure the pdt-foundation.components.commons.site.container client library is included on the page.");const t="cmp",n="tabs",r={END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},i={self:"[data-"+t+'-is="'+n+'"]',active:{tab:"cmp-tabs__tab--active",tabpanel:"cmp-tabs__tabpanel--active"}};function o(o){let a=this;const s=5;let c=null,l=0;function u(){if(e){let t=e.getDeepLinkItemIdx(a,"tab","tabpanel");if(t>-1){a._elements.tab[t]&&requestAnimationFrame((()=>{m(t,!0)}));let e=window.location.hash.substring(1);if(e){let t=document.querySelector("[id='"+e+"']");t&&t.scrollIntoView()}}}}function _(e){if(e)for(let t=0;t<e.length;t++)if(e[t].classList.contains(i.active.tab))return t;return 0}function d(e){let t=a._active,n=a._elements.tab.length-1;switch(e.keyCode){case r.ARROW_LEFT:case r.ARROW_UP:e.preventDefault(),m(t>0?t-1:n,!1);break;case r.ARROW_RIGHT:case r.ARROW_DOWN:e.preventDefault(),m(t<n?t+1:0,!1);break;case r.HOME:e.preventDefault(),m(0,!1);break;case r.END:e.preventDefault(),m(n,!1);break;default:return}}function p(){let e=a._elements.tabpanel,t=a._elements.tab;if(e)if(Array.isArray(e))for(let n=0;n<e.length;n++)n===parseInt(a._active)?(e[n].classList.add(i.active.tabpanel),e[n].removeAttribute("aria-hidden"),t[n].classList.add(i.active.tab),t[n].setAttribute("aria-selected",!0),t[n].setAttribute("tabindex","0")):(e[n].classList.remove(i.active.tabpanel),e[n].setAttribute("aria-hidden",!0),t[n].classList.remove(i.active.tab),t[n].setAttribute("aria-selected",!1),t[n].setAttribute("tabindex","-1"));else e.classList.add(i.active.tabpanel),t.classList.add(i.active.tab)}function f(e){a._active=e,p()}function m(t,n){let r=a._active;!n&&e&&e.updateUrlHash(a,"tab",t),f(t),function(e,t){if(t&&(e.style.outline="none"),e.focus({preventScroll:!0}),t){var n=function(){e.style.outline="",e.removeEventListener("blur",n)};e.addEventListener("blur",n)}}(a._elements.tab[t],n);const i=a._config.element.querySelector(".cmp-tabs__wrapper");if(i&&i.classList.contains("cmp-tabs--slider")&&T(),t!==r){const e=a._elements.tab[t],n=a._elements.tab[r];createShowTabItemDatalayer(e.id,e.innerText.trim()),createTabClickDatalayer(e.innerText.trim(),window.location.href),createHideTabItemDatalayer(n.id,n.innerText.trim())}}function g(){const e=a._config.element.querySelector(".cmp-tabs__wrapper"),t=a._elements.tab,n=e.querySelector(".cmp-tabs__prev-slide"),r=e.querySelector(".cmp-tabs__next-slide");return{wrapper:e,sliderTabs:t,prevArrow:n,nextArrow:r}}function h(e,t){const n=0===t||"none"===t?"none":`translateX(${t}px)`;e.forEach((e=>e.style.transform=n))}function y(e){const{wrapper:t,sliderTabs:n,prevArrow:r,nextArrow:i}=g(),o=e.getBoundingClientRect(),a=t.getBoundingClientRect(),s=r?r.getBoundingClientRect().width:0,c=i?i.getBoundingClientRect().width:0,l=function(e,t,n){return{left:e.left+t,right:e.right-n}}(a,s,c);return{wrapper:t,sliderTabs:n,prevArrow:r,nextArrow:i,tabRect:o,wrapperRect:a,prevArrowWidth:s,nextArrowWidth:c,visibleArea:l}}function v(e,t,n,r){const i=t.left+n,o=t.right-r;return e.left>=i-s&&e.right<=o+s}function b(e,t,n){if(!e)return!1;const r=-t,i=r+n,o=e.offsetLeft,a=o+e.offsetWidth;return o>=r-s&&a<=i+s}function x(){const e=Date.now();if(e-l<50)return;l=e;const{wrapper:t,sliderTabs:n,prevArrow:r,nextArrow:i}=g();if(!n.length)return;if(!t.classList.contains("cmp-tabs--slider"))return r&&(r.disabled=!0,r.style.display="none"),void(i&&(i.disabled=!0));r&&(r.style.display=""),i&&(i.style.display="");const o=y(n[0]),a=y(n[n.length-1]),s=v(o.tabRect,o.wrapperRect,o.prevArrowWidth,o.nextArrowWidth),c=v(a.tabRect,a.wrapperRect,a.prevArrowWidth,a.nextArrowWidth);r&&(r.disabled=s),i&&(i.disabled=c)}function S(e=!1){const t=a._config.element.closest(".tabs").classList.contains("cmp-tabs--variant-vertical"),n=a._config.element.querySelector(".cmp-tabs__wrapper"),r=n.querySelector(".cmp-tabs__tablist"),i=a._elements.tab,o=r.getBoundingClientRect().width;["prev","next"].forEach((e=>{const t=n.querySelector(`.cmp-tabs__${e}-slide`);if(t){const e=t.cloneNode(!0);t.parentNode.replaceChild(e,t)}}));const s=i.map((e=>e.style.transform));
1i.forEach((e=>e.style.transform="none"));const c=0===i.length||b(i[0],0,o),l=0===i.length||b(i[i.length-1],0,o);if(!(c&&l)&&(!t||window.innerWidth<768)){let e=function(e){const{sliderTabs:t,wrapper:n}=g(),r="next"===e,i=y(r?t[t.length-1]:t[0]);if(v(i.tabRect,i.wrapperRect,i.prevArrowWidth,i.nextArrowWidth))return void x();let o=null;const a=r?Array.from({length:t.length},((e,n)=>t.length-1-n)):Array.from({length:t.length},((e,t)=>t));for(const s of a){const e=y(t[s]),n=v(e.tabRect,e.wrapperRect,e.prevArrowWidth,e.nextArrowWidth),i=r?s<t.length-1:s>0;if(n&&i){o=t[r?s+1:s-1];break}}o&&(k(o),setTimeout((()=>x()),50))};i.forEach(((e,t)=>{e.style.transform=s[t]||"none"})),n.classList.add("cmp-tabs--slider");const t=n.querySelector(".cmp-tabs__next-slide"),r=n.querySelector(".cmp-tabs__prev-slide");t&&t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e("next")})),r&&r.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e("prev")}))}else n.classList.remove("cmp-tabs--slider"),i.forEach((e=>e.style.transform="none"));e&&n.classList.contains("cmp-tabs--slider")&&k(a._elements.tab[a._active]),x()}function k(e){const{wrapper:t,sliderTabs:n}=g();if(!t.classList.contains("cmp-tabs--slider")||!e)return!1;const r=function(e){const t=getComputedStyle(e).transform;return"none"===t?0:t.match(/matrix\(([^)]+)\)/)&&parseFloat(t.match(/matrix\(([^)]+)\)/)[1].split(", ")[4])||0}(n[0]),i=Array.from(n).indexOf(e),o=y(e),c=i===n.length-1,l=(u=o.tabRect,_=o.visibleArea,u.left>=_.left-s&&u.right<=_.right+s);var u,_;if(!c&&l)return!1;let d=function(e,t,n,r){return r?n+(t.right-e.right):e.left<t.left?n+(t.left-e.left):e.right>t.right?n+(t.right-e.right):n}(o.tabRect,o.visibleArea,r,c);const p=n[n.length-1],f=p.offsetLeft+p.offsetWidth,m=-(f-function(){const{wrapper:e,prevArrow:t,nextArrow:n}=g(),r=e.getBoundingClientRect().width;if(e.classList.contains("cmp-tabs--slider")){let e=0;
1return t&&"none"!==t.style.display&&(e+=t.getBoundingClientRect().width),n&&"none"!==n.style.display&&(e+=n.getBoundingClientRect().width),r-e}return r}());if(d=function(e,t,n){return e<t?t:e>0&&e>n?n:e}(d,m,f),Math.abs(d-r)>.01){return e===n[a._active]?(n.forEach((e=>e.style.transition="none")),h(n,d),setTimeout((()=>n.forEach((e=>e.style.transition=""))),50)):h(n,d),!0}return!1}function T(){clearTimeout(c),c=setTimeout((()=>{a._active=_(a._elements.tab),a._config.element.offsetHeight,S(!0),c=null}),50)}o&&o.element&&function(r){a._config=r,r.element.removeAttribute("data-"+t+"-is"),a._elements=AEM_PDT.Components.utils.getCacheElements(r.element,n),a._active=_(a._elements.tab),a._elements.tabpanel&&(p(),function(){window.addEventListener("hashchange",u);let e=a._elements.tab;if(e)for(let t=0;t<e.length;t++)!function(n){e[t].addEventListener("click",(function(e){m(n,!1)})),e[t].addEventListener("keydown",(function(e){d(e)}))}(t);window.addEventListener("resize",T)}(),setTimeout((()=>{S();e&&e.getDeepLinkItemIdx(a,"tab","tabpanel")>-1&&u()}),500));AEM_PDT.Components.panelcontainer.subscribeToAuthorPanelSelect(a._elements.self,"cmp-tabs",f)}(o)}function a(){AEM_PDT.Components.utils.constructComponents(i.self,n,o)}"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a),e&&window.addEventListener("load",e.scrollToAnchor,!1)}(),function(){var e=window.AEM_PDT&&window.AEM_PDT.Components&&window.AEM_PDT.Components.container&&window.AEM_PDT.Components.container.utils?window.AEM_PDT.Components.container.utils:void 0;e||console.warn("Time-Boxed Container: container utilities at window.AEM_PDT.Components.container.utils are not available. This can lead to missing features. Ensure the pdt-foundation.components.commons.site.container client library is included on the page.");var t="cmp",n="timeboxed",r={self:"[data-"+t+'-is="'+n+'"]',active:{timeboxed:"cmp-timeboxed__variation--active"}};function i(e){var i=this;function o(){var e=i._elements.variation;e=Array.isArray(e)?e:[e];for(var t=0;t<e.length;t++)t===parseInt(i._active)?(e[t].classList.add(r.active.timeboxed),e[t].setAttribute("aria-selected",!0),e[t].setAttribute("tabindex","0")):(e[t].classList.remove(r.active.timeboxed),e[t].setAttribute("aria-selected",!1),e[t].setAttribute("tabindex","-1"))}function a(e){i._active=e,o()}e&&e.element&&function(e){i._config=e,e.element.removeAttribute("data-"+t+"-is"),i._elements=AEM_PDT.Components.utils.getCacheElements(e.element,n),i._active=function(e){if(e=Array.isArray(e)?e:[e],i._elements.self.querySelector("."+r.active.timeboxed))return 0;for(var t=0;t<e.length;t++)if("true"===e[t].dataset.timeboxed){var n=e[t].dataset.firstDay,o=e[t].dataset.lastDay;if(AEM_PDT.Components.utils.isWithinDateRange(n,o))return t}return 0}(i._elements.variation),i._elements.variation&&o();AEM_PDT.Components.panelcontainer.subscribeToAuthorPanelSelect(i._elements.self,"cmp-timeboxed",a)}(e)}function o(){AEM_PDT.Components.utils.constructComponents(r.self,n,i)}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o),e&&window.addEventListener("load",e.scrollToAnchor,!1)}(),function(){function e(e){e.preventDefault;var t=e.currentTarget,n=t.dataset.ctaLink,r=t.dataset.ctaTarget;window.open(n,r)}function t(){!function(){for(var t=document.getElementsByClassName("cmp-button__hideurl"),n=0;n<t.length;n++)t[n].addEventListener("click",e)}()}"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)}(),function(e){window.AEM_PDT=window.AEM_PDT||{},window.AEM_PDT.Components=window.AEM_PDT.Components||{},window.AEM_PDT.Components.image=window.AEM_PDT.Components.image||{},window.AEM_PDT.Components.image.img=function(){var e="image",t="[data-cmp-hook-image='img']",n="[data-cmp-background-image]",r={widths:{default:[],transform:function(e){var t=[];return e.split(",").forEach((function(e){e=parseFloat(e),isNaN(e)||t.push(e)})),t}},dmimage:{default:!1,transform:function(e){return!(null==e)}},src:{transform:function(e){return decodeURIComponent(e)}},smartcroprendition:""};function i(e){var t=this;t.initImage=function(){t._properties=AEM_PDT.Components.utils.setupProperties(e.options,r),t._properties.dmimage&&AEM_PDT.Components.image.dynamicMedia.setDMAttributes(e.element,t._properties)},t.initImage()}
1function o(e){this.initBackground=function(){if(e.options.backgroundImage&&""!==e.options.backgroundImage){var t=AEM_PDT.Components.image.dynamicMedia.setDMAttributesForBackgroundSrc(e.options.backgroundImage);e.element.style.backgroundImage="url('"+t+"')",e.element.style.backgroundSize="cover",e.element.style.backgroundRepeat="no-repeat"}},this.initBackground()}return{init:function(){AEM_PDT.Components.utils.constructComponents(t,e,i),AEM_PDT.Components.utils.constructComponents(n,e,o)}}}();var t="loading"!==e.readyState?Promise.resolve():new Promise((function(t){e.addEventListener("DOMContentLoaded",t)}));Promise.all([t]).then(window.AEM_PDT.Components.image.img.init)}(window.document),me=window.document,window.AEM_PDT=window.AEM_PDT||{},window.AEM_PDT.Components=window.AEM_PDT.Components||{},window.AEM_PDT.Components.image=window.AEM_PDT.Components.image||{},window.AEM_PDT.Components.image.dynamicMedia=function(){var e={},t="{.width}",n=window.devicePixelRatio||1,r=20,i=function(n){var r=new XMLHttpRequest,i=n.split(t)[0]+"?req=set,json";return r.open("GET",i,!1),r.onload=function(){if(r.status>=200&&r.status<400){var t,n=r.responseText,i=new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gim),o=new RegExp(/^{[\s\S]*}$/gim),a=i.exec(n);if(a){var s=a[2];o.test(s)&&(t=JSON.parse(s))}if(t&&t.set.relation&&t.set.relation.length>0)for(var c=0;c<t.set.relation.length;c++)e[parseInt(t.set.relation[c].userdata.SmartCropWidth)]=":"+t.set.relation[c].userdata.SmartCropDef}},r.send(),e};function o(e,t){for(var n=e.length,r=0;r<n-1&&e[r]<t;)r++;return void 0!==e[r]?e[r].toString():t}var a=function(e,t){for(var n=e.offsetWidth;n<r&&t&&!e._autoWidth;)n=t.offsetWidth,t=t.parentNode;return n},s=function(e){return e?e.replace("dpr=off","dpr=on,{dpr}").replace("{dpr}",n):e};return{getAutoSmartCrops:i,getSrcSet:function(n,r){var i;if(Object.keys(r).length>0)for(var o in i=[],e)i.push(n.replace(t,r[o])+" "+o+"w");return i.join(",")},getSrc:function(e,n){return e.indexOf(t)>-1&&(e=e.replace(t,n)),e},setDMAttributes:function(e,t){var n,r=s(t.src),c={};if("SmartCrop:Auto"===t.smartcroprendition&&(c=i(r)),t.widths&&t.widths.length>0||Object.keys(c).length>0){var l=e.querySelector("img"),u=a(e,e.parentNode);"SmartCrop:Auto"===t.smartcroprendition?(l.setAttribute("srcset",AEM_PDT.Components.image.dynamicMedia.getSrcSet(r,c)),n=o(Object.keys(c,u)),l.setAttribute("src",AEM_PDT.Components.image.dynamicMedia.getSrc(r,c[n]))):(n=o(t.widths,u),l.setAttribute("src",AEM_PDT.Components.image.dynamicMedia.getSrc(r,n)))}}
1,setDMAttributesForBackgroundSrc:function(e){return s(e)},getWidth:a}}(),me.dispatchEvent(new CustomEvent("pdt-foundation.components.commons.site.image.dynamic-media.loaded")),$(document).ready((function(){$(".cmp-jumpbar__dropdown-item").click((function(e){e.preventDefault();const t=$($(this).attr("href")).offset().top,n=$(".cmp-jumpbar").outerHeight();$("#jumpBarDropdownWrapper").removeClass("open"),$("html, body").animate({scrollTop:t-n-85},500),$(".cmp-jumpbar__dropdown-toggle span").text($(this).text())})),ye(),window.addEventListener("pageContentTopOffsetChanged",(function(e){ye()})),$("#jumpBarCmpToTop").click((function(){$("html, body").animate({scrollTop:0},50,(function(){Se()}))})),Se(),xe(),$("#jumpBarDropdownBtn").on("click",(function(e){e.stopPropagation(),$("#jumpBarDropdownWrapper").toggleClass("open")})),$(document).on("click",(function(e){$(e.target).closest("#jumpBarDropdownWrapper").length||$("#jumpBarDropdownWrapper").removeClass("open")}))}));const ve=$(".cmp-jumpbar")[0];function be(e){const t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight),r=$(".cmp-jumpbar").outerHeight();return!(t.bottom<r+150||t.top+250-n>=0)}function xe(){if(ve){if($(".cmp-jumpbar").hasClass("cmp-jumpbar--productdetails")){const e=ve.parentElement;$(e).hasClass("is-sticky")?$(".cmp-jumpbar__product-title-sticky").addClass("show"):$(".cmp-jumpbar__product-title-sticky").removeClass("show")}const e=ve.getElementsByTagName("a");let t,n;for(let r=0;r<e.length;++r)if(n=e[r].getAttribute("href"),n=n.replace("#",""),t=document.getElementById(n),t&&be(t)){$(".cmp-jumpbar__dropdown-toggle span").text(e[r].text),$(".cmp-jumpbar").hasClass("cmp-jumpbar--productdetails")&&ke(e[r]);break}}}function Se(){if(ve){const e=ve.getElementsByTagName("a");let t;t=e[0].getAttribute("href"),t=t.replace("#",""),$(".cmp-jumpbar__dropdown-toggle span").text(e[0].text)}}function ke(e){const t=e.parentElement.parentElement.getElementsByTagName("li");let n;for(var r=0;r<t.length-1;++r)n=t[r].getElementsByTagName("a"),n.length>0&&$(n[0]).removeClass("selected");$(e).addClass("selected")}ve&&($("body").addClass("alt-repaint-animation"),window.addEventListener("scroll",(e=>{xe()})));var Te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ce(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function we(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const De=Ce(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ne,Ee,Pe;Ne={exports:{}},Ee={},Pe={},(e=>{var t,n=Object.defineProperty,r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},i={};r(i,{ANONYMOUS:()=>
1AZ,AccessFlags:()=>mi,AssertionLevel:()=>It,AssignmentDeclarationKind:()=>Ci,AssignmentKind:()=>ch,Associativity:()=>Sy,BreakpointResolver:()=>N7,BuilderFileEmit:()=>Q$,BuilderProgramKind:()=>vV,BuilderState:()=>G$,CallHierarchy:()=>P7,CharacterCodes:()=>Ui,CheckFlags:()=>ci,CheckMode:()=>HB,ClassificationType:()=>zG,ClassificationTypeNames:()=>qG,CommentDirectiveType:()=>zr,Comparison:()=>s,CompletionInfoFlags:()=>LG,CompletionTriggerKind:()=>DG,Completions:()=>Oae,ContainerFlags:()=>Xj,ContextFlags:()=>Zr,Debug:()=>En,DiagnosticCategory:()=>wi,Diagnostics:()=>Pa,DocumentHighlights:()=>J0,ElementFlags:()=>fi,EmitFlags:()=>Vi,EmitHint:()=>Gi,EmitOnly:()=>Hr,EndOfLineState:()=>jG,ExitStatus:()=>Gr,ExportKind:()=>P0,Extension:()=>qi,ExternalEmitHelpers:()=>Ki,FileIncludeKind:()=>Vr,FilePreprocessingDiagnosticsKind:()=>Wr,FileSystemEntryKind:()=>To,FileWatcherEventKind:()=>io,FindAllReferences:()=>Ace,FlattenLevel:()=>kU,FlowFlags:()=>qr,ForegroundColorEscapeSequences:()=>Qz,FunctionFlags:()=>Xh,GeneratedIdentifierFlags:()=>Br,GetLiteralTextFlags:()=>dp,GoToDefinition:()=>gle,HighlightSpanKind:()=>EG,IdentifierNameMap:()=>YJ,IdentifierNameMultiMap:()=>ZJ,ImportKind:()=>E0,ImportsNotUsedAsValues:()=>Li,IndentStyle:()=>PG,IndexFlags:()=>gi,IndexKind:()=>bi,InferenceFlags:()=>ki,InferencePriority:()=>Si,InlayHintKind:()=>NG,InlayHints:()=>Ole,InternalEmitFlags:()=>Wi,InternalSymbolName:()=>li,IntersectionFlags:()=>Yr,InvalidatedProjectKind:()=>fH,JSDocParsingMode:()=>to,JsDoc:()=>Ble,JsTyping:()=>qK,JsxEmit:()=>Oi,JsxFlags:()=>Mr,JsxReferenceKind:()=>hi,LanguageFeatureMinimumTarget:()=>Hi,LanguageServiceMode:()=>kG,LanguageVariant:()=>Bi,LexicalEnvironmentFlags:()=>Qi,ListFormat:()=>Yi,LogLevel:()=>Pn,MapCode:()=>oue,MemberOverrideStatus:()=>Xr,ModifierFlags:()=>Rr,ModuleDetectionKind:()=>Ei,ModuleInstanceState:()=>Wj,ModuleKind:()=>Ii,ModuleResolutionKind:()=>Ni,ModuleSpecifierEnding:()=>iT,NavigateTo:()=>d2,NavigationBar:()=>k2,NewLineKind:()=>Ri,NodeBuilderFlags:()=>ei,NodeCheckFlags:()=>ui,NodeFactoryFlags:()=>XC,NodeFlags:()=>Lr,NodeResolutionFeatures:()=>$M,ObjectFlags:()=>di,OperationCanceledException:()=>$r,OperatorPrecedence:()=>Dy,OrganizeImports:()=>_ue,OrganizeImportsMode:()=>wG,OuterExpressionKinds:()=>Xi,OutliningElementsCollector:()=>zue,OutliningSpanKind:()=>RG,OutputFileType:()=>MG,PackageJsonAutoImportPreference:()=>SG,PackageJsonDependencyGroup:()=>xG,PatternMatchKind:()=>p1,PollingInterval:()=>oo,PollingWatchKind:()=>Ai,PragmaKindFlags:()=>Zi,PrivateIdentifierKind:()=>eD,ProcessLevel:()=>WU,ProgramUpdateLevel:()=>Nz,QuotePreference:()=>aY,RegularExpressionFlags:()=>Jr,RelationComparisonResult:()=>jr,Rename:()=>Yue,ScriptElementKind:()=>JG,ScriptElementKindModifier:()=>UG,ScriptKind:()=>Mi,ScriptSnapshot:()=>fG,ScriptTarget:()=>ji,SemanticClassificationFormat:()=>CG,SemanticMeaning:()=>VG,SemicolonPreference:()=>FG,SignatureCheckMode:()=>KB,SignatureFlags:()=>vi,SignatureHelp:()=>o_e,SignatureInfo:()=>X$,SignatureKind:()=>yi,SmartSelectionRange:()=>F_e,SnippetKind:()=>$i,StatisticType:()=>iK,StructureIsReused:()=>Kr,SymbolAccessibility:()=>ri,SymbolDisplay:()=>q_e,SymbolDisplayPartKind:()=>OG,SymbolFlags:()=>si,SymbolFormatFlags:()=>ni,SyntaxKind:()=>Or,SyntheticSymbolKind:()=>ii,Ternary:()=>Ti,ThrottledCancellationToken:()=>v7,TokenClass:()=>BG,TokenFlags:()=>Ur,TransformFlags:()=>zi,TypeFacts:()=>VB,TypeFlags:()=>_i,TypeFormatFlags:()=>ti,TypeMapKind:()=>xi,TypePredicateKind:()=>oi,TypeReferenceSerializationKind:()=>ai,UnionReduction:()=>Qr,UpToDateStatusType:()=>BW,VarianceFlags:()=>pi,Version:()=>jn,VersionRange:()=>Jn,WatchDirectoryFlags:()=>Ji,WatchDirectoryKind:()=>Fi,WatchFileKind:()=>Pi,WatchLogLevel:()=>Rz,WatchType:()=>kW,accessPrivateIdentifier:()=>bU,addDisposableResourceHelper:()=>AD,addEmitFlags:()=>yw,addEmitHelper:()=>jw,addEmitHelpers:()=>Bw,addInternalEmitFlags:()=>bw,addNodeFactoryPatcher:()=>YC,addObjectAllocatorPatcher:()=>lS,addRange:()=>he,addRelatedInfo:()=>DT,addSyntheticLeadingComment:()=>Fw,addSyntheticTrailingComment:()=>Ow,addToSeen:()=>$x,advancedAsyncSuperHelper:()=>LD,affectsDeclarationPathOptionDeclarations:()=>JO,affectsEmitOptionDeclarations:()=>BO,allKeysStartWithDot:()=>xj,altDirectorySeparator:()=>Ao,and:()=>yn,append:()=>fe,appendIfUnique:()=>ve,arrayFrom:()=>Xe,arrayIsEqualTo:()=>_e,arrayIsHomogeneous:()=>UT,arrayIsSorted:()=>ue,arrayOf:()=>Ge,arrayReverseIterator:()=>Se,arrayToMap:()=>Ze,arrayToMultiMap:()=>tt,arrayToNumericMap:()=>et,arraysEqual:()=>A,assertType:()=>xn,assign:()=>Qe,assignHelper:()=>lD,asyncDelegator:()=>dD,asyncGeneratorHelper:()=>_D,asyncSuperHelper:()=>OD,asyncValues:()=>pD,attachFileToDiagnostics:()=>yS,awaitHelper:()=>uD,awaiterHelper:()=>mD,base64decode:()=>Kb,base64encode:()=>Hb,binarySearch:()=>Je,binarySearchKey:()=>Ue,bindSourceFile:()=>Zj,breakIntoCharacterSpans:()=>P1,breakIntoWordSpans:()=>F1,buildLinkParts:()=>VY,buildOpts:()=>GO,buildOverload:()=>Ofe,bundlerModuleNameResolver:()=>WM,canBeConvertedToAsync:()=>t2,canHaveDecorators:()=>wI,canHaveExportModifier:()=>dC,canHaveFlowNode:()=>Kg,canHaveIllegalDecorators:()=>zA,canHaveIllegalModifiers:()=>$A,canHaveIllegalType:()=>UA,canHaveIllegalTypeParameters:()=>qA,canHaveJSDoc:()=>Gg,canHaveLocals:()=>C_,canHaveModifiers:()=>CI,canHaveSymbol:()=>T_,canIncludeBindAndCheckDiagnsotics:()=>AT,canJsonReportNoInputFiles:()=>yR,canProduceDiagnostics:()=>Cq,canUsePropertyAccess:()=>fC,canWatchAffectingLocation:()=>UV,canWatchAtTypes:()=>jV,canWatchDirectoryOrFile:()=>MV,cartesianProduct:()=>Tn,cast:()=>yt,chainBundle:()=>VJ,chainDiagnosticMessages:()=>kS,changeAnyExtension:()=>pa,changeCompilerHostLikeToUseCache:()=>Hz,changeExtension:()=>fT,changeFullExtension:()=>fa,changesAffectModuleResolution:()=>md,changesAffectingProgramStructure:()=>hd,characterToRegularExpressionFlag:()=>Za,childIsDecorated:()=>Pm,classElementOrClassElementParameterIsDecorated:()=>Am,classHasClassThisAssignment:()=>LU,classHasDeclaredOrExplicitlyAssignedName:()=>qU,classHasExplicitlyAssignedName:()=>UU,classOrConstructorParameterIsDecorated:()=>Fm,classPrivateFieldGetHelper:()=>ED,classPrivateFieldInHelper:()=>FD,classPrivateFieldSetHelper:()=>PD,classicNameResolver:()=>Bj,classifier:()=>G7,cleanExtendedConfigCache:()=>Fz,clear:()=>M,clearMap:()=>Ox,clearSharedExtendedConfigFileWatcher:()=>Pz,climbPastPropertyAccess:()=>oX,climbPastPropertyOrElementAccess:()=>aX,clone:()=>it,cloneCompilerOptions:()=>PQ,closeFileWatcher:()=>Cx,closeFileWatcherOf:()=>Bz,codefix:()=>Q7,collapseTextChangeRangesAcrossMultipleVersions:()=>dc,collectExternalModuleInfo:()=>GJ,combine:()=>me,combinePaths:()=>ra,commandLineOptionOfCustomType:()=>HO,commentPragmas:()=>eo,commonOptionsWithBuild:()=>IO,commonPackageFolders:()=>Tk,compact:()=>de,compareBooleans:()=>Yt,compareDataObjects:()=>Ix,compareDiagnostics:()=>wS,compareDiagnosticsSkipRelatedInformation:()=>DS,compareEmitHelpers:()=>nD,compareNumberOfDirectorySeparators:()=>lT,comparePaths:()=>va,comparePathsCaseInsensitive:()=>ya,comparePathsCaseSensitive:()=>ha,comparePatternKeys:()=>kj,compareProperties:()=>Qt,compareStringsCaseInsensitive:()=>
1Ut,compareStringsCaseInsensitiveEslintCompatible:()=>qt,compareStringsCaseSensitive:()=>zt,compareStringsCaseSensitiveUI:()=>Xt,compareTextSpans:()=>Bt,compareValues:()=>jt,compileOnSaveCommandLineOption:()=>wO,compilerOptionsAffectDeclarationPath:()=>_k,compilerOptionsAffectEmit:()=>uk,compilerOptionsAffectSemanticDiagnostics:()=>lk,compilerOptionsDidYouMeanDiagnostics:()=>uL,compilerOptionsIndicateEsModules:()=>eY,compose:()=>At,computeCommonSourceDirectoryOfFilenames:()=>qz,computeLineAndCharacterOfPosition:()=>is,computeLineOfPosition:()=>os,computeLineStarts:()=>es,computePositionOfLineAndCharacter:()=>ns,computeSignature:()=>kV,computeSignatureWithDiagnostics:()=>SV,computeSuggestionDiagnostics:()=>V1,computedOptions:()=>jS,concatenate:()=>re,concatenateDiagnosticMessageChains:()=>TS,configDirTemplateSubstitutionOptions:()=>VO,configDirTemplateSubstitutionWatchOptions:()=>WO,consumesNodeCoreModules:()=>YZ,contains:()=>F,containsIgnoredPath:()=>ZT,containsObjectRestOrSpread:()=>kI,containsParseError:()=>Ad,containsPath:()=>ba,convertCompilerOptionsForTelemetry:()=>XR,convertCompilerOptionsFromJson:()=>kR,convertJsonOption:()=>FR,convertToBase64:()=>Wb,convertToJson:()=>UL,convertToObject:()=>JL,convertToOptionsWithAbsolutePaths:()=>eR,convertToRelativePath:()=>Ta,convertToTSConfig:()=>$L,convertTypeAcquisitionFromJson:()=>TR,copyComments:()=>mZ,copyEntries:()=>Sd,copyLeadingComments:()=>bZ,copyProperties:()=>at,copyTrailingAsLeadingComments:()=>SZ,copyTrailingComments:()=>xZ,couldStartTrivia:()=>gs,countWhere:()=>O,createAbstractBuilder:()=>OV,createAccessorPropertyBackingField:()=>hI,createAccessorPropertyGetRedirector:()=>yI,createAccessorPropertySetRedirector:()=>vI,createBaseNodeFactory:()=>zC,createBinaryExpressionTrampoline:()=>cI,createBindingHelper:()=>TD,createBuildInfo:()=>mz,createBuilderProgram:()=>TV,createBuilderProgramUsingProgramBuildInfo:()=>EV,createBuilderStatusReporter:()=>HW,createCacheWithRedirects:()=>NM,createCacheableExportInfoMap:()=>F0,createCachedDirectoryStructureHost:()=>Dz,createClassNamedEvaluationHelperBlock:()=>BU,createClassThisAssignmentBlock:()=>IU,createClassifier:()=>B0,createCommentDirectivesMap:()=>ep,createCompilerDiagnostic:()=>xS,createCompilerDiagnosticForInvalidCustomType:()=>tL,createCompilerDiagnosticFromMessageChain:()=>SS,createCompilerHost:()=>zz,createCompilerHostFromProgramHost:()=>CW,createCompilerHostWorker:()=>Wz,createDetachedDiagnostic:()=>mS,createDiagnosticCollection:()=>Fy,createDiagnosticForFileFromMessageChain:()=>nf,createDiagnosticForNode:()=>Gp,createDiagnosticForNodeArray:()=>Xp,createDiagnosticForNodeArrayFromMessageChain:()=>Zp,createDiagnosticForNodeFromMessageChain:()=>Yp,createDiagnosticForNodeInSourceFile:()=>Qp,createDiagnosticForRange:()=>of,createDiagnosticMessageChainFromDiagnostic:()=>rf,createDiagnosticReporter:()=>ZV,createDocumentPositionMapper:()=>JJ,createDocumentRegistry:()=>t1,createDocumentRegistryInternal:()=>n1,createEmitAndSemanticDiagnosticsBuilderProgram:()=>IV,createEmitHelperFactory:()=>tD,createEmptyExports:()=>YF,createEvaluator:()=>RC,createExpressionForJsxElement:()=>rA,createExpressionForJsxFragment:()=>iA,createExpressionForObjectLiteralElementLike:()=>lA,createExpressionForPropertyName:()=>cA,createExpressionFromEntityName:()=>sA,createExternalHelpersImportDeclarationIfNeeded:()=>NA,createFileDiagnostic:()=>vS,createFileDiagnosticFromMessageChain:()=>tf,createFlowNode:()=>Qj,createForOfBindingStatement:()=>oA,createFutureSourceFile:()=>N0,createGetCanonicalFileName:()=>un,createGetIsolatedDeclarationErrors:()=>Nq,createGetSourceFile:()=>$z,createGetSymbolAccessibilityDiagnosticForNode:()=>Dq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wq,createGetSymbolWalker:()=>oB,createIncrementalCompilerHost:()=>LW,createIncrementalProgram:()=>RW,createJsxFactoryExpression:()=>nA,createLanguageService:()=>S7,createLanguageServiceSourceFile:()=>m7,createMemberAccessForPropertyName:()=>ZF,createModeAwareCache:()=>FM,createModeAwareCacheKey:()=>PM,createModuleNotFoundChain:()=>Dd,createModuleResolutionCache:()=>RM,createModuleResolutionLoader:()=>v$,createModuleResolutionLoaderUsingGlobalCache:()=>
1GV,createModuleSpecifierResolutionHost:()=>tY,createMultiMap:()=>ct,createNameResolver:()=>BC,createNodeConverters:()=>WC,createNodeFactory:()=>ZC,createOptionNameMap:()=>QO,createOverload:()=>Ife,createPackageJsonImportFilter:()=>QZ,createPackageJsonInfo:()=>XZ,createParenthesizerRules:()=>$C,createPatternMatcher:()=>m1,createPrinter:()=>kz,createPrinterWithDefaults:()=>vz,createPrinterWithRemoveComments:()=>bz,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>xz,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Sz,createProgram:()=>B$,createProgramHost:()=>NW,createPropertyNameNodeForIdentifierOrLiteral:()=>sC,createQueue:()=>_t,createRange:()=>nx,createRedirectedBuilderProgram:()=>FV,createResolutionCache:()=>XV,createRuntimeTypeSerializer:()=>ZU,createScanner:()=>Rs,createSemanticDiagnosticsBuilderProgram:()=>AV,createSet:()=>dt,createSolutionBuilder:()=>QW,createSolutionBuilderHost:()=>GW,createSolutionBuilderWithWatch:()=>YW,createSolutionBuilderWithWatchHost:()=>XW,createSortedArray:()=>se,createSourceFile:()=>rO,createSourceMapGenerator:()=>SJ,createSourceMapSource:()=>dw,createSuperAccessVariableStatement:()=>rq,createSymbolTable:()=>_d,createSymlinkCache:()=>hk,createSyntacticTypeNodeBuilder:()=>UK,createSystemWatchFunctions:()=>Do,createTextChange:()=>qQ,createTextChangeFromStartLength:()=>UQ,createTextChangeRange:()=>uc,createTextRangeFromNode:()=>jQ,createTextRangeFromSpan:()=>JQ,createTextSpan:()=>ac,createTextSpanFromBounds:()=>sc,createTextSpanFromNode:()=>RQ,createTextSpanFromRange:()=>BQ,createTextSpanFromStringLiteralLikeContent:()=>MQ,createTextWriter:()=>tv,createTokenRange:()=>cx,createTypeChecker:()=>nJ,createTypeReferenceDirectiveResolutionCache:()=>MM,createTypeReferenceResolutionLoader:()=>S$,createWatchCompilerHost:()=>MW,createWatchCompilerHostOfConfigFile:()=>FW,createWatchCompilerHostOfFilesAndCompilerOptions:()=>AW,createWatchFactory:()=>TW,createWatchHost:()=>SW,createWatchProgram:()=>jW,createWatchStatusReporter:()=>rW,createWriteFileMeasuringIO:()=>Vz,declarationNameToString:()=>zp,decodeMappings:()=>FJ,decodedTextSpanIntersectsWith:()=>rc,decorateHelper:()=>iD,deduplicate:()=>ae,defaultIncludeSpec:()=>sR,defaultInitCompilerOptions:()=>eL,defaultMaximumTruncationLength:()=>sd,diagnosticCategoryName:()=>Di,diagnosticToString:()=>x0,diagnosticsEqualityComparer:()=>PS,directoryProbablyExists:()=>Yb,directorySeparator:()=>Fo,displayPart:()=>FY,displayPartsToString:()=>u7,disposeEmitNodes:()=>mw,disposeResourcesHelper:()=>ID,documentSpansEqual:()=>xY,dumpTracingLegend:()=>Ir,elementAt:()=>Ne,elideNodes:()=>dI,emitComments:()=>qv,emitDetachedComments:()=>zv,emitFiles:()=>fz,emitFilesAndReportErrors:()=>yW,emitFilesAndReportErrorsAndGetExitStatus:()=>vW,emitModuleKindIsNonNodeESM:()=>tk,emitNewLineBeforeLeadingCommentOfPosition:()=>Uv,emitNewLineBeforeLeadingComments:()=>Bv,emitNewLineBeforeLeadingCommentsOfPosition:()=>Jv,emitResolverSkipsTypeChecking:()=>pz,emitSkippedWithNoDiagnostics:()=>J$,emptyArray:()=>c,emptyFileSystemEntries:()=>TT,emptyMap:()=>l,emptyOptions:()=>TG,emptySet:()=>u,endsWith:()=>tn,ensurePathIsNonModuleName:()=>da,ensureScriptKind:()=>Uk,ensureTrailingDirectorySeparator:()=>_a,entityNameToString:()=>Kp,enumerateInsertsAndDeletes:()=>kn,equalOwnProperties:()=>Ye,equateStringsCaseInsensitive:()=>Lt,equateStringsCaseSensitive:()=>Rt,equateValues:()=>Ot,esDecorateHelper:()=>sD,escapeJsxAttributeString:()=>Gy,escapeLeadingUnderscores:()=>Ec,escapeNonAsciiString:()=>$y,escapeSnippetText:()=>oC,escapeString:()=>qy,escapeTemplateSubstitution:()=>Iy,evaluatorResult:()=>LC,every:()=>C,executeCommandLine:()=>xK,expandPreOrPostfixIncrementOrDecrementExpression:()=>uA,explainFiles:()=>dW,explainIfFileIsRedirectAndImpliedFormat:()=>pW,exportAssignmentIsAlias:()=>Ph,exportStarHelper:()=>ND,expressionResultIsUnused:()=>YT,extend:()=>ot,extendsHelper:()=>gD,extensionFromPath:()=>bT,extensionIsTS:()=>yT,extensionsNotSupportingExtensionlessResolution:()=>Zk,externalHelpersModuleNameText:()=>ad,factory:()=>_w,fileExtensionIs:()=>zo,fileExtensionIsOneOf:()=>$o,fileIncludeReasonToDiagnostics:()=>gW,fileShouldUseJavaScriptRequire:()=>w0,filter:()=>L,filterMutate:()=>R,filterSemanticDiagnostics:()=>q$,find:()=>
1w,findAncestor:()=>wc,findBestPatternMatch:()=>pn,findChildOfKind:()=>BX,findComputedPropertyNameCacheAssignment:()=>bI,findConfigFile:()=>Jz,findConstructorDeclaration:()=>jC,findContainingList:()=>JX,findDiagnosticForNode:()=>t0,findFirstNonJsxWhitespaceToken:()=>tQ,findIndex:()=>N,findLast:()=>D,findLastIndex:()=>E,findListItemInfo:()=>MX,findMap:()=>P,findModifier:()=>hY,findNextToken:()=>rQ,findPackageJson:()=>KZ,findPackageJsons:()=>HZ,findPrecedingMatchingToken:()=>fQ,findPrecedingToken:()=>iQ,findSuperStatementIndexPath:()=>aU,findTokenOnLeftOfPosition:()=>nQ,findUseStrictPrologue:()=>mA,first:()=>Ae,firstDefined:()=>y,firstDefinedIterator:()=>b,firstIterator:()=>Ie,firstOrOnly:()=>a0,firstOrUndefined:()=>Pe,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>_2,flatMap:()=>q,flatMapIterator:()=>$,flatMapToMutable:()=>z,flatten:()=>U,flattenCommaList:()=>SI,flattenDestructuringAssignment:()=>TU,flattenDestructuringBinding:()=>DU,flattenDiagnosticMessageText:()=>l$,forEach:()=>d,forEachAncestor:()=>vd,forEachAncestorDirectory:()=>Da,forEachChild:()=>ZI,forEachChildRecursively:()=>eO,forEachEmittedFile:()=>Kq,forEachEnclosingBlockScopeContainer:()=>qp,forEachEntry:()=>bd,forEachExternalModuleToImportFrom:()=>I0,forEachImportClauseDeclaration:()=>Bg,forEachKey:()=>xd,forEachLeadingCommentRange:()=>Cs,forEachNameInAccessChainWalkingLeft:()=>Qx,forEachNameOfDefaultExport:()=>j0,forEachPropertyAssignment:()=>rm,forEachResolvedProjectReference:()=>T$,forEachReturnStatement:()=>Jf,forEachRight:()=>f,forEachTrailingCommentRange:()=>ws,forEachTsConfigPropArray:()=>sm,forEachUnique:()=>kY,forEachYieldExpression:()=>Uf,forSomeAncestorDirectory:()=>Jx,formatColorAndReset:()=>o$,formatDiagnostic:()=>Xz,formatDiagnostics:()=>Gz,formatDiagnosticsWithColorAndContext:()=>c$,formatGeneratedName:()=>gI,formatGeneratedNamePart:()=>fI,formatLocation:()=>s$,formatMessage:()=>bS,formatStringFromArgs:()=>_S,formatting:()=>wde,fullTripleSlashAMDReferencePathRegEx:()=>Of,fullTripleSlashReferencePathRegEx:()=>Ff,generateDjb2Hash:()=>no,generateTSConfig:()=>ZL,generatorHelper:()=>kD,getAdjustedReferenceLocation:()=>GX,getAdjustedRenameLocation:()=>XX,getAliasDeclarationFromName:()=>Nh,getAllAccessorDeclarations:()=>Iv,getAllDecoratorsOfClass:()=>pU,getAllDecoratorsOfClassElement:()=>fU,getAllJSDocTags:()=>kl,getAllJSDocTagsOfKind:()=>Tl,getAllKeys:()=>He,getAllProjectOutputs:()=>uz,getAllSuperTypeNodes:()=>Rh,getAllowJSCompilerOption:()=>ZS,getAllowSyntheticDefaultImports:()=>VS,getAncestor:()=>Bh,getAnyExtensionFromPath:()=>Yo,getAreDeclarationMapsEnabled:()=>YS,getAssignedExpandoInitializer:()=>cg,getAssignedName:()=>Uc,getAssignedNameOfIdentifier:()=>MU,getAssignmentDeclarationKind:()=>hg,getAssignmentDeclarationPropertyAccessKind:()=>Dg,getAssignmentTargetKind:()=>uh,getAutomaticTypeDirectiveNames:()=>kM,getBaseFileName:()=>Xo,getBinaryOperatorPrecedence:()=>Ey,getBuildInfo:()=>hz,getBuildInfoFileVersionMap:()=>PV,getBuildInfoText:()=>gz,getBuildOrderFromAnyBuildOrder:()=>WW,getBuilderCreationParameters:()=>bV,getBuilderFileEmit:()=>Y$,getCanonicalDiagnostic:()=>af,getCheckFlags:()=>wx,getClassExtendsHeritageElement:()=>Oh,getClassLikeDeclarationOfSymbol:()=>jx,getCombinedLocalAndExportSymbolFlags:()=>Ex,getCombinedModifierFlags:()=>vc,getCombinedNodeFlags:()=>xc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>bc,getCommentRange:()=>Dw,getCommonSourceDirectory:()=>cz,getCommonSourceDirectoryOfConfig:()=>lz,getCompilerOptionValue:()=>dk,getCompilerOptionsDiffValue:()=>QL,getConditions:()=>xM,getConfigFileParsingDiagnostics:()=>L$,getConstantValue:()=>Rw,getContainerFlags:()=>rB,getContainerNode:()=>bX,getContainingClass:()=>um,getContainingClassExcludingClassDecorators:()=>pm,getContainingClassStaticBlock:()=>_m,getContainingFunction:()=>cm,getContainingFunctionDeclaration:()=>lm,getContainingFunctionOrClassStaticBlock:()=>dm,getContainingNodeArray:()=>eC,getContainingObjectLiteralElement:()=>T7,getContextualTypeFromParent:()=>wZ,getContextualTypeFromParentOrAncestorTypeNode:()=>$X,getCurrentTime:()=>$W,getDeclarationDiagnostics:()=>Eq,getDeclarationEmitExtensionForPath:()=>dv,getDeclarationEmitOutputFilePath:()=>uv,getDeclarationEmitOutputFilePathWorker:()=>_v,getDeclarationFileExtension:()=>mO,getDeclarationFromName:()=>
1Th,getDeclarationModifierFlagsFromSymbol:()=>Dx,getDeclarationOfKind:()=>ld,getDeclarationsOfKind:()=>ud,getDeclaredExpandoInitializer:()=>sg,getDecorators:()=>qc,getDefaultCompilerOptions:()=>_7,getDefaultFormatCodeSettings:()=>AG,getDefaultLibFileName:()=>Hs,getDefaultLibFilePath:()=>w7,getDefaultLikeExportInfo:()=>R0,getDefaultLikeExportNameFromDeclaration:()=>u0,getDiagnosticText:()=>hL,getDiagnosticsWithinSpan:()=>n0,getDirectoryPath:()=>Go,getDirectoryToWatchFailedLookupLocation:()=>qV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>VV,getDocumentPositionMapper:()=>q1,getDocumentSpansEqualityComparer:()=>SY,getESModuleInterop:()=>$S,getEditsForFileRename:()=>o1,getEffectiveBaseTypeNode:()=>Ih,getEffectiveConstraintOfTypeParameter:()=>Dl,getEffectiveContainerForJSDocTemplateTag:()=>eh,getEffectiveImplementsTypeNodes:()=>Lh,getEffectiveInitializer:()=>ag,getEffectiveJSDocHost:()=>rh,getEffectiveModifierFlags:()=>cb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>lb,getEffectiveModifierFlagsNoCache:()=>pb,getEffectiveReturnTypeNode:()=>Rv,getEffectiveSetAccessorTypeAnnotationNode:()=>jv,getEffectiveTypeAnnotationNode:()=>Ov,getEffectiveTypeParameterDeclarations:()=>wl,getEffectiveTypeRoots:()=>mM,getElementOrPropertyAccessArgumentExpressionOrName:()=>Cg,getElementOrPropertyAccessName:()=>wg,getElementsOfBindingOrAssignmentPattern:()=>BA,getEmitDeclarations:()=>GS,getEmitFlags:()=>lp,getEmitHelpers:()=>Uw,getEmitModuleDetectionKind:()=>qS,getEmitModuleKind:()=>JS,getEmitModuleResolutionKind:()=>US,getEmitScriptTarget:()=>BS,getEmitStandardClassFields:()=>ck,getEnclosingBlockScopeContainer:()=>Up,getEnclosingContainer:()=>Jp,getEncodedSemanticClassifications:()=>K0,getEncodedSyntacticClassifications:()=>Z0,getEndLinePosition:()=>Bd,getEntityNameFromTypeNode:()=>Cm,getEntrypointsFromPackageJsonInfo:()=>_j,getErrorCountForSummary:()=>oW,getErrorSpanForNode:()=>lf,getErrorSummaryText:()=>lW,getEscapedTextOfIdentifierOrLiteral:()=>ay,getEscapedTextOfJsxAttributeName:()=>SC,getEscapedTextOfJsxNamespacedName:()=>CC,getExpandoInitializer:()=>lg,getExportAssignmentExpression:()=>Fh,getExportInfoMap:()=>L0,getExportNeedsImportStarHelper:()=>WJ,getExpressionAssociativity:()=>ky,getExpressionPrecedence:()=>Cy,getExternalHelpersModuleName:()=>wA,getExternalModuleImportEqualsDeclarationExpression:()=>Jm,getExternalModuleName:()=>Rg,getExternalModuleNameFromDeclaration:()=>sv,getExternalModuleNameFromPath:()=>cv,getExternalModuleNameLiteral:()=>FA,getExternalModuleRequireArgument:()=>Um,getFallbackOptions:()=>jz,getFileEmitOutput:()=>K$,getFileMatcherPatterns:()=>Rk,getFileNamesFromConfigSpecs:()=>jR,getFileWatcherEventKind:()=>yo,getFilesInErrorForSummary:()=>aW,getFirstConstructorWithBody:()=>Tv,getFirstIdentifier:()=>Fb,getFirstNonSpaceCharacterPosition:()=>oZ,getFirstProjectOutput:()=>dz,getFixableErrorSpanExpression:()=>i0,getFormatCodeSettingsForWriting:()=>S0,getFullWidth:()=>Td,getFunctionFlags:()=>Qh,getHeritageClause:()=>jh,getHostSignatureFromJSDoc:()=>nh,getIdentifierAutoGenerate:()=>Qw,getIdentifierGeneratedImportReference:()=>Zw,getIdentifierTypeArguments:()=>Gw,getImmediatelyInvokedFunctionExpression:()=>vm,getImpliedNodeFormatForFile:()=>R$,getImpliedNodeFormatForFileWorker:()=>M$,getImportNeedsImportDefaultHelper:()=>KJ,getImportNeedsImportStarHelper:()=>HJ,getIndentSize:()=>
1ev,getIndentString:()=>Zy,getInferredLibraryNameResolveFrom:()=>D$,getInitializedVariables:()=>Sx,getInitializerOfBinaryExpression:()=>Ng,getInitializerOfBindingOrAssignmentElement:()=>IA,getInterfaceBaseTypeNodes:()=>Mh,getInternalEmitFlags:()=>up,getInvokedExpression:()=>wm,getIsolatedModules:()=>zS,getJSDocAugmentsTag:()=>Qc,getJSDocClassTag:()=>Zc,getJSDocCommentRanges:()=>Pf,getJSDocCommentsAndTags:()=>Xg,getJSDocDeprecatedTag:()=>ll,getJSDocDeprecatedTagNoCache:()=>ul,getJSDocEnumTag:()=>_l,getJSDocHost:()=>ih,getJSDocImplementsTags:()=>Yc,getJSDocOverloadTags:()=>th,getJSDocOverrideTagNoCache:()=>cl,getJSDocParameterTags:()=>Vc,getJSDocParameterTagsNoCache:()=>Wc,getJSDocPrivateTag:()=>nl,getJSDocPrivateTagNoCache:()=>rl,getJSDocProtectedTag:()=>il,getJSDocProtectedTagNoCache:()=>ol,getJSDocPublicTag:()=>el,getJSDocPublicTagNoCache:()=>tl,getJSDocReadonlyTag:()=>al,getJSDocReadonlyTagNoCache:()=>sl,getJSDocReturnTag:()=>pl,getJSDocReturnType:()=>yl,getJSDocRoot:()=>oh,getJSDocSatisfiesExpressionType:()=>bC,getJSDocSatisfiesTag:()=>ml,getJSDocTags:()=>bl,getJSDocTagsNoCache:()=>xl,getJSDocTemplateTag:()=>fl,getJSDocThisTag:()=>dl,getJSDocType:()=>hl,getJSDocTypeAliasName:()=>JA,getJSDocTypeAssertionType:()=>bA,getJSDocTypeParameterDeclarations:()=>Mv,getJSDocTypeParameterTags:()=>Kc,getJSDocTypeParameterTagsNoCache:()=>Gc,getJSDocTypeTag:()=>gl,getJSXImplicitImportBase:()=>fk,getJSXRuntimeImport:()=>mk,getJSXTransformEnabled:()=>pk,getKeyForCompilerOptions:()=>DM,getLanguageVariant:()=>IS,getLastChild:()=>zx,getLeadingCommentRanges:()=>Ps,getLeadingCommentRangesOfNode:()=>Ef,getLeftmostAccessExpression:()=>Xx,getLeftmostExpression:()=>Yx,getLibraryNameFromLibFileName:()=>N$,getLineAndCharacterOfPosition:()=>ss,getLineInfo:()=>wJ,getLineOfLocalPosition:()=>Sv,getLineOfLocalPositionFromLineMap:()=>kv,getLineStartPositionForPosition:()=>TX,getLineStarts:()=>rs,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>bx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>vx,getLinesBetweenPositions:()=>as,getLinesBetweenRangeEndAndRangeStart:()=>fx,getLinesBetweenRangeEndPositions:()=>mx,getLiteralText:()=>pp,getLocalNameForExternalImport:()=>PA,getLocalSymbolForExportDefault:()=>zb,getLocaleSpecificMessage:()=>fS,getLocaleTimeString:()=>nW,getMappedContextSpan:()=>DY,getMappedDocumentSpan:()=>wY,getMappedLocation:()=>CY,getMatchedFileSpec:()=>fW,getMatchedIncludeSpec:()=>mW,getMeaningFromDeclaration:()=>WG,getMeaningFromLocation:()=>HG,getMembersOfDeclaration:()=>zf,getModeForFileReference:()=>u$,getModeForResolutionAtIndex:()=>_$,getModeForUsageLocation:()=>p$,getModifiedTime:()=>so,getModifiers:()=>zc,getModuleInstanceState:()=>Hj,getModuleNameStringLiteralAt:()=>H$,getModuleSpecifierEndingPreference:()=>aT,getModuleSpecifierResolverHost:()=>nY,getNameForExportedSymbol:()=>c0,getNameFromImportAttribute:()=>OC,getNameFromIndexInfo:()=>$p,getNameFromPropertyName:()=>QQ,getNameOfAccessExpression:()=>Kx,getNameOfCompilerOptionValue:()=>KL,getNameOfDeclaration:()=>Jc,getNameOfExpando:()=>_g,getNameOfJSDocTypedef:()=>Mc,getNameOfScriptTarget:()=>sk,getNameOrArgument:()=>Tg,getNameTable:()=>k7,getNamesForExportedSymbol:()=>s0,getNamespaceDeclarationNode:()=>Mg,getNewLineCharacter:()=>tx,getNewLineKind:()=>b0,getNewLineOrDefaultFromHost:()=>HY,getNewTargetContainer:()=>hm,getNextJSDocCommentLocation:()=>Yg,getNodeChildren:()=>GF,getNodeForGeneratedName:()=>pI,getNodeId:()=>ZB,getNodeKind:()=>xX,getNodeModifiers:()=>SQ,getNodeModulePathParts:()=>lC,getNonAssignedNameOfDeclaration:()=>Bc,getNonAssignmentOperatorForCompoundAssignment:()=>rU,getNonAugmentationDeclaration:()=>Dp,getNonDecoratorTokenPosOfNode:()=>np,getNormalizedAbsolutePath:()=>aa,getNormalizedAbsolutePathWithoutRoot:()=>ca,getNormalizedPathComponents:()=>oa,getObjectFlags:()=>Bx,getOperator:()=>wy,getOperatorAssociativity:()=>Ty,getOperatorPrecedence:()=>Ny,getOptionFromName:()=>dL,getOptionsForLibraryResolution:()=>jM,getOptionsNameMap:()=>YO,getOrCreateEmitNode:()=>fw,getOrCreateExternalHelpersModuleNameIfNeeded:()=>EA,getOrUpdate:()=>X,getOriginalNode:()=>Cc,getOriginalNodeId:()=>qJ,getOriginalSourceFile:()=>xy,getOutputDeclarationFileName:()=>tz,getOutputDeclarationFileNameWorker:()=>nz,getOutputExtension:()=>Zq,getOutputFileNames:()=>_z,getOutputJSFileNameWorker:()=>iz,getOutputPathsFor:()=>Qq,getOutputPathsForBundle:()=>Xq,getOwnEmitOutputFilePath:()=>lv,getOwnKeys:()=>We,getOwnValues:()=>Ke,getPackageJsonInfo:()=>hj,getPackageJsonTypesVersionsPaths:()=>fM,getPackageJsonsVisibleToFile:()=>GZ,getPackageNameFromTypesPackageName:()=>Rj,getPackageScopeForPath:()=>fj,getParameterSymbolFromJSDoc:()=>Zg,getParameterTypeNode:()=>uC,getParentNodeInSpan:()=>mY,getParseTreeNode:()=>Nc,getParsedCommandLineOfConfigFile:()=>yL,getPathComponents:()=>Zo,getPathComponentsRelativeTo:()=>Sa,getPathFromPathComponents:()=>ea,getPathUpdater:()=>a1,getPathsBasePath:()=>fv,getPatternFromSpec:()=>Ik,getPendingEmitKind:()=>Z$,getPositionOfLineAndCharacter:()=>ts,getPossibleGenericSignatures:()=>hQ,getPossibleOriginalInputExtensionForExtension:()=>pv,getPossibleTypeArgumentsInfo:()=>yQ,getPreEmitDiagnostics:()=>Kz,getPrecedingNonSpaceCharacterPosition:()=>aZ,getPrivateIdentifier:()=>yU,getProperties:()=>sU,getProperty:()=>Ve,getPropertyArrayElementValue:()=>im,getPropertyAssignmentAliasLikeExpression:()=>Ah,getPropertyNameForPropertyNameNode:()=>ry,getPropertyNameForUniqueESSymbol:()=>sy,getPropertyNameFromType:()=>EC,getPropertyNameOfBindingOrAssignmentElement:()=>RA,getPropertySymbolFromBindingElement:()=>fY,getPropertySymbolsFromContextualType:()=>C7,getQuoteFromPreference:()=>lY,getQuotePreference:()=>cY,getRangesWhere:()=>ne,getRefactorContextSpan:()=>r0,getReferencedFileLocation:()=>I$,getRegexFromPattern:()=>Mk,getRegularExpressionForWildcard:()=>Pk,getRegularExpressionsForWildcards:()=>Fk,getRelativePathFromDirectory:()=>ka,getRelativePathFromFile:()=>Ca,getRelativePathToDirectoryOrUrl:()=>wa,getRenameLocation:()=>vZ,getReplacementSpanForContextToken:()=>LQ,getResolutionDiagnostic:()=>V$,getResolutionModeOverride:()=>m$,getResolveJsonModule:()=>KS,getResolvePackageJsonExports:()=>WS,getResolvePackageJsonImports:()=>HS,getResolvedExternalModuleName:()=>ov,getRestIndicatorOfBindingOrAssignmentElement:()=>LA,getRestParameterElementType:()=>qf,getRightMostAssignedExpression:()=>pg,getRootDeclaration:()=>yy,getRootDirectoryOfResolutionCache:()=>WV,getRootLength:()=>Ko,getRootPathSplitLength:()=>HV,getScriptKind:()=>tZ,getScriptKindFromFileName:()=>qk,getScriptTargetFeatures:()=>_p,getSelectedEffectiveModifierFlags:()=>ob,getSelectedSyntacticModifierFlags:()=>ab,getSemanticClassifications:()=>W0,getSemanticJsxChildren:()=>Py,getSetAccessorTypeAnnotationNode:()=>wv,getSetAccessorValueParameter:()=>Cv,getSetExternalModuleIndicator:()=>MS,getShebang:()=>As,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Vg,getSingleVariableOfVariableStatement:()=>Wg,getSnapshotText:()=>KQ,getSnippetElement:()=>zw,getSourceFileOfModule:()=>Od,getSourceFileOfNode:()=>Id,getSourceFilePathInNewDir:()=>hv,getSourceFilePathInNewDirWorker:()=>yv,getSourceFileVersionAsHashFromText:()=>wW,getSourceFilesToEmit:()=>mv,getSourceMapRange:()=>
1xw,getSourceMapper:()=>U1,getSourceTextOfNodeFromSourceFile:()=>rp,getSpanOfTokenAtPosition:()=>sf,getSpellingSuggestion:()=>Zt,getStartPositionOfLine:()=>Md,getStartPositionOfRange:()=>yx,getStartsOnNewLine:()=>Cw,getStaticPropertiesAndClassStaticBlock:()=>lU,getStrictOptionValue:()=>ak,getStringComparer:()=>$t,getSubPatternFromSpec:()=>Ok,getSuperCallFromStatement:()=>iU,getSuperContainer:()=>ym,getSupportedCodeFixes:()=>d7,getSupportedExtensions:()=>eT,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tT,getSwitchedType:()=>FZ,getSymbolId:()=>eJ,getSymbolNameForPrivateIdentifier:()=>cy,getSymbolParentOrFail:()=>_0,getSymbolTarget:()=>nZ,getSyntacticClassifications:()=>Y0,getSyntacticModifierFlags:()=>ub,getSyntacticModifierFlagsNoCache:()=>fb,getSynthesizedDeepClone:()=>sZ,getSynthesizedDeepCloneWithReplacements:()=>cZ,getSynthesizedDeepClones:()=>uZ,getSynthesizedDeepClonesWithReplacements:()=>_Z,getSyntheticLeadingComments:()=>Ew,getSyntheticTrailingComments:()=>Aw,getTargetLabel:()=>sX,getTargetOfBindingOrAssignmentElement:()=>OA,getTemporaryModuleResolutionState:()=>pj,getTextOfConstantValue:()=>fp,getTextOfIdentifierOrLiteral:()=>oy,getTextOfJSDocComment:()=>Cl,getTextOfJsxAttributeName:()=>kC,getTextOfJsxNamespacedName:()=>wC,getTextOfNode:()=>ap,getTextOfNodeFromSourceText:()=>op,getTextOfPropertyName:()=>Hp,getThisContainer:()=>fm,getThisParameter:()=>Dv,getTokenAtPosition:()=>ZX,getTokenPosOfNode:()=>tp,getTokenSourceMapRange:()=>kw,getTouchingPropertyName:()=>QX,getTouchingToken:()=>YX,getTrailingCommentRanges:()=>Fs,getTrailingSemicolonDeferringWriter:()=>nv,getTransformFlagsSubtreeExclusions:()=>sw,getTransformers:()=>Rq,getTsBuildInfoEmitOutputFilePath:()=>Gq,getTsConfigObjectLiteralExpression:()=>om,getTsConfigPropArrayElementValue:()=>am,getTypeAnnotationNode:()=>Lv,getTypeArgumentOrTypeParameterList:()=>kQ,getTypeKeywordOfTypeOnlyImport:()=>vY,getTypeNode:()=>Hw,getTypeNodeIfAccessible:()=>IZ,getTypeParameterFromJsDoc:()=>ah,getTypeParameterOwner:()=>pc,getTypesPackageName:()=>Oj,getUILocale:()=>Kt,getUniqueName:()=>yZ,getUniqueSymbolId:()=>iZ,getUseDefineForClassFields:()=>ek,getWatchErrorSummaryDiagnosticMessage:()=>sW,getWatchFactory:()=>Mz,group:()=>nt,groupBy:()=>rt,guessIndentation:()=>Y_,handleNoEmitOptions:()=>U$,handleWatchOptionsConfigDirTemplateSubstitution:()=>lR,hasAbstractModifier:()=>eb,hasAccessorModifier:()=>nb,hasAmbientModifier:()=>tb,hasChangesInResolutions:()=>Fd,hasChildOfKind:()=>jX,hasContextSensitiveParameters:()=>tC,hasDecorators:()=>ib,hasDocComment:()=>bQ,hasDynamicName:()=>ty,hasEffectiveModifier:()=>Gv,hasEffectiveModifiers:()=>Hv,hasEffectiveReadonlyModifier:()=>rb,hasExtension:()=>qo,hasIndexSignature:()=>PZ,hasInferredType:()=>qC,hasInitializer:()=>H_,hasInvalidEscape:()=>Ly,hasJSDocNodes:()=>V_,hasJSDocParameterTags:()=>Xc,hasJSFileExtension:()=>nT,hasJsonModuleEmitEnabled:()=>nk,hasOnlyExpressionInitializer:()=>K_,hasOverrideModifier:()=>Zv,hasPossibleExternalModuleReference:()=>jp,hasProperty:()=>$e,hasPropertyAccessExpressionWithName:()=>cX,hasQuestionToken:()=>Jg,hasRecordedExternalHelpers:()=>DA,hasResolutionModeOverride:()=>FC,hasRestParameter:()=>td,hasScopeMarker:()=>d_,hasStaticModifier:()=>Yv,hasSyntacticModifier:()=>Xv,hasSyntacticModifiers:()=>Kv,hasTSFileExtension:()=>rT,hasTabstop:()=>mC,hasTrailingDirectorySeparator:()=>Vo,hasType:()=>W_,hasTypeArguments:()=>sh,hasZeroOrOneAsteriskCharacter:()=>gk,helperString:()=>rD,hostGetCanonicalFileName:()=>iv,hostUsesCaseSensitiveFileNames:()=>rv,idText:()=>Fc,identifierIsThisKeyword:()=>Av,identifierToKeywordKind:()=>Ac,identity:()=>kt,identitySourceMapConsumer:()=>UJ,ignoreSourceNewlines:()=>Vw,ignoredPaths:()=>vo,importDefaultHelper:()=>DD,importFromModuleSpecifier:()=>Og,importStarHelper:()=>wD,indexOfAnyCharCode:()=>I,indexOfNode:()=>cp,indicesOf:()=>oe,inferredTypesContainingFile:()=>w$,injectClassNamedEvaluationHelperBlockIfMissing:()=>zU,injectClassThisAssignmentIfMissing:()=>RU,insertImports:()=>yY,insertLeadingStatement:()=>aA,insertSorted:()=>ce,insertStatementAfterCustomPrologue:()=>Qd,insertStatementAfterStandardPrologue:()=>Xd,insertStatementsAfterCustomPrologue:()=>Gd,insertStatementsAfterStandardPrologue:()=>Kd,intersperse:()=>T,intrinsicTagNameToString:()=>DC,introducesArgumentsExoticObject:()=>Xf,inverseJsxOptionMap:()=>NO,isAbstractConstructorSymbol:()=>Mx,isAbstractModifier:()=>_N,isAccessExpression:()=>Hx,isAccessibilityModifier:()=>EQ,isAccessor:()=>Nu,isAccessorModifier:()=>pN,isAliasSymbolDeclaration:()=>Dh,isAliasableExpression:()=>Eh,isAmbientModule:()=>yp,isAmbientPropertyDeclaration:()=>Pp,isAnonymousFunctionDefinition:()=>py,isAnyDirectorySeparator:()=>Lo,isAnyImportOrBareOrAccessedRequire:()=>Lp,isAnyImportOrReExport:()=>Bp,isAnyImportOrRequireStatement:()=>
1Rp,isAnyImportSyntax:()=>Op,isAnySupportedFileExtension:()=>xT,isApplicableVersionedTypesKey:()=>wj,isArgumentExpressionOfElementAccess:()=>mX,isArray:()=>pt,isArrayBindingElement:()=>Uu,isArrayBindingOrAssignmentElement:()=>Ku,isArrayBindingOrAssignmentPattern:()=>Hu,isArrayBindingPattern:()=>iE,isArrayLiteralExpression:()=>aE,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>FQ,isArrayTypeNode:()=>BN,isArrowFunction:()=>gE,isAsExpression:()=>FE,isAssertClause:()=>bP,isAssertEntry:()=>xP,isAssertionExpression:()=>c_,isAssertsKeyword:()=>sN,isAssignmentDeclaration:()=>og,isAssignmentExpression:()=>wb,isAssignmentOperator:()=>kb,isAssignmentPattern:()=>Ju,isAssignmentTarget:()=>_h,isAsteriskToken:()=>XD,isAsyncFunction:()=>Yh,isAsyncModifier:()=>aN,isAutoAccessorPropertyDeclaration:()=>Eu,isAwaitExpression:()=>bE,isAwaitKeyword:()=>cN,isBigIntLiteral:()=>jD,isBinaryExpression:()=>kE,isBinaryOperatorToken:()=>tI,isBindableObjectDefinePropertyCall:()=>yg,isBindableStaticAccessExpression:()=>xg,isBindableStaticElementAccessExpression:()=>Sg,isBindableStaticNameExpression:()=>kg,isBindingElement:()=>oE,isBindingElementOfBareOrAccessedRequire:()=>eg,isBindingName:()=>yu,isBindingOrAssignmentElement:()=>zu,isBindingOrAssignmentPattern:()=>$u,isBindingPattern:()=>Bu,isBlock:()=>JE,isBlockLike:()=>D0,isBlockOrCatchScoped:()=>gp,isBlockScope:()=>Fp,isBlockScopedContainerTopLevel:()=>kp,isBooleanLiteral:()=>Su,isBreakOrContinueStatement:()=>Ul,isBreakStatement:()=>QE,isBuild:()=>bK,isBuildInfoFile:()=>Hq,isBuilderProgram:()=>uW,isBundle:()=>rF,isCallChain:()=>Al,isCallExpression:()=>uE,isCallExpressionTarget:()=>GG,isCallLikeExpression:()=>Yu,isCallLikeOrFunctionLikeExpression:()=>Qu,isCallOrNewExpression:()=>Zu,isCallOrNewExpressionTarget:()=>
1QG,isCallSignatureDeclaration:()=>PN,isCallToHelper:()=>RD,isCaseBlock:()=>fP,isCaseClause:()=>KP,isCaseKeyword:()=>gN,isCaseOrDefaultClause:()=>B_,isCatchClause:()=>QP,isCatchClauseVariableDeclaration:()=>rC,isCatchClauseVariableDeclarationOrBindingElement:()=>hp,isCheckJsEnabledForFile:()=>kT,isChildOfNodeWithKind:()=>Bf,isCircularBuildOrder:()=>VW,isClassDeclaration:()=>cP,isClassElement:()=>wu,isClassExpression:()=>NE,isClassInstanceProperty:()=>Pu,isClassLike:()=>Du,isClassMemberModifier:()=>fu,isClassNamedEvaluationHelperBlock:()=>JU,isClassOrTypeElement:()=>Lu,isClassStaticBlockDeclaration:()=>wN,isClassThisAssignmentBlock:()=>OU,isCollapsedRange:()=>sx,isColonToken:()=>ZD,isCommaExpression:()=>hA,isCommaListExpression:()=>ME,isCommaSequence:()=>yA,isCommaToken:()=>HD,isComment:()=>TQ,isCommonJsExportPropertyAssignment:()=>Kf,isCommonJsExportedExpression:()=>Hf,isCompoundAssignment:()=>nU,isComputedNonLiteralName:()=>Vp,isComputedPropertyName:()=>yN,isConciseBody:()=>g_,isConditionalExpression:()=>TE,isConditionalTypeNode:()=>WN,isConstAssertion:()=>MC,isConstTypeReference:()=>jl,isConstructSignatureDeclaration:()=>FN,isConstructorDeclaration:()=>DN,isConstructorTypeNode:()=>RN,isContextualKeyword:()=>zh,isContinueStatement:()=>XE,isCustomPrologue:()=>Cf,isDebuggerStatement:()=>iP,isDeclaration:()=>N_,isDeclarationBindingElement:()=>qu,isDeclarationFileName:()=>fO,isDeclarationName:()=>kh,isDeclarationNameOfEnumOrNamespace:()=>xx,isDeclarationReadonly:()=>ff,isDeclarationStatement:()=>E_,isDeclarationWithTypeParameterChildren:()=>Ip,isDeclarationWithTypeParameters:()=>Ap,isDecorator:()=>xN,isDecoratorTarget:()=>ZG,isDefaultClause:()=>GP,isDefaultImport:()=>jg,isDefaultModifier:()=>oN,isDefaultedExpandoInitializer:()=>ug,isDeleteExpression:()=>hE,isDeleteTarget:()=>xh,isDeprecatedDeclaration:()=>y0,isDestructuringAssignment:()=>Nb,isDiagnosticWithLocation:()=>e0,isDiskPathRoot:()=>jo,isDoStatement:()=>VE,isDocumentRegistryEntry:()=>e1,isDotDotDotToken:()=>WD,isDottedName:()=>Ab,isDynamicName:()=>ny,isESSymbolIdentifier:()=>_y,isEffectiveExternalModule:()=>Np,isEffectiveModuleDeclaration:()=>xp,isEffectiveStrictModeSourceFile:()=>Ep,isElementAccessChain:()=>Fl,isElementAccessExpression:()=>lE,isEmittedFileOfProgram:()=>Lz,isEmptyArrayLiteral:()=>qb,isEmptyBindingElement:()=>gc,isEmptyBindingPattern:()=>mc,isEmptyObjectLiteral:()=>Ub,isEmptyStatement:()=>qE,isEmptyStringLiteral:()=>Im,isEntityName:()=>gu,isEntityNameExpression:()=>Pb,isEnumConst:()=>pf,isEnumDeclaration:()=>_P,isEnumMember:()=>tF,isEqualityOperatorKind:()=>NZ,isEqualsGreaterThanToken:()=>tN,isExclamationToken:()=>QD,isExcludedFile:()=>BR,isExclusivelyTypeOnlyImportOrExport:()=>d$,isExpandoPropertyDeclaration:()=>PC,isExportAssignment:()=>NP,isExportDeclaration:()=>EP,isExportModifier:()=>iN,isExportName:()=>pA,isExportNamespaceAsDefaultDeclaration:()=>ip,isExportOrDefaultModifier:()=>uI,isExportSpecifier:()=>FP,isExportsIdentifier:()=>fg,isExportsOrModuleExportsOrAlias:()=>nB,isExpression:()=>s_,isExpressionNode:()=>Lm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>vX,isExpressionOfOptionalChainRoot:()=>Ll,isExpressionStatement:()=>zE,isExpressionWithTypeArguments:()=>PE,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Eb,isExternalModule:()=>aO,isExternalModuleAugmentation:()=>Cp,isExternalModuleImportEqualsDeclaration:()=>Bm,isExternalModuleIndicator:()=>f_,isExternalModuleNameRelative:()=>Vs,isExternalModuleReference:()=>LP,isExternalModuleSymbol:()=>pd,isExternalOrCommonJsModule:()=>_f,isFileLevelReservedGeneratedIdentifier:()=>lu,isFileLevelUniqueName:()=>Jd,isFileProbablyExternalModule:()=>AI,isFirstDeclarationOfSymbolParameter:()=>NY,isFixablePromiseHandler:()=>X1,isForInOrOfStatement:()=>m_,isForInStatement:()=>KE,isForInitializer:()=>y_,isForOfStatement:()=>GE,isForStatement:()=>HE,isFullSourceFile:()=>zm,isFunctionBlock:()=>Yf,isFunctionBody:()=>h_,isFunctionDeclaration:()=>sP,isFunctionExpression:()=>mE,isFunctionExpressionOrArrowFunction:()=>iC,isFunctionLike:()=>vu,isFunctionLikeDeclaration:()=>xu,isFunctionLikeKind:()=>Tu,isFunctionLikeOrClassStaticBlockDeclaration:()=>bu,isFunctionOrConstructorTypeNode:()=>ju,isFunctionOrModuleBlock:()=>Cu,isFunctionSymbol:()=>Ag,isFunctionTypeNode:()=>LN,isFutureReservedKeyword:()=>Vh,isGeneratedIdentifier:()=>su,isGeneratedPrivateIdentifier:()=>cu,isGetAccessor:()=>$_,isGetAccessorDeclaration:()=>NN,isGetOrSetAccessorDeclaration:()=>El,isGlobalDeclaration:()=>g0,isGlobalScopeAugmentation:()=>Tp,isGlobalSourceFile:()=>uf,isGrammarError:()=>zd,isHeritageClause:()=>XP,isHoistedFunction:()=>wf,isHoistedVariableStatement:()=>Nf,isIdentifier:()=>nN,isIdentifierANonContextualKeyword:()=>Kh,isIdentifierName:()=>wh,isIdentifierOrThisTypeNode:()=>WA,isIdentifierPart:()=>Os,isIdentifierStart:()=>Is,isIdentifierText:()=>Ls,isIdentifierTypePredicate:()=>tm,isIdentifierTypeReference:()=>JT,isIfStatement:()=>$E,isIgnoredFileFromWildCardWatching:()=>Oz,isImplicitGlob:()=>Ak,isImportAttribute:()=>kP,isImportAttributeName:()=>au,isImportAttributes:()=>SP,isImportCall:()=>xf,isImportClause:()=>yP,isImportDeclaration:()=>hP,isImportEqualsDeclaration:()=>gP,isImportKeyword:()=>mN,isImportMeta:()=>Sf,isImportOrExportSpecifier:()=>tu,isImportOrExportSpecifierName:()=>eZ,isImportSpecifier:()=>DP,isImportTypeAssertionContainer:()=>vP,isImportTypeNode:()=>eE,isImportableFile:()=>A0,isInComment:()=>vQ,isInCompoundLikeAssignment:()=>dh,isInExpressionContext:()=>Rm,isInJSDoc:()=>Gm,isInJSFile:()=>Wm,isInJSXText:()=>dQ,isInJsonFile:()=>Hm,isInNonReferenceComment:()=>IQ,isInReferenceComment:()=>AQ,isInRightSideOfInternalImportEqualsDeclaration:()=>KG,isInString:()=>cQ,isInTemplateString:()=>_Q,isInTopLevelContext:()=>gm,isInTypeQuery:()=>Pv,isIncrementalCompilation:()=>QS,isIndexSignatureDeclaration:()=>AN,isIndexedAccessTypeNode:()=>QN,isInferTypeNode:()=>HN,isInfinityOrNaNString:()=>nC,isInitializedProperty:()=>uU,isInitializedVariable:()=>kx,isInsideJsxElement:()=>pQ,isInsideJsxElementOrAttribute:()=>lQ,isInsideNodeModules:()=>
1ZZ,isInsideTemplateLiteral:()=>NQ,isInstanceOfExpression:()=>Bb,isInstantiatedModule:()=>tJ,isInterfaceDeclaration:()=>lP,isInternalDeclaration:()=>id,isInternalModuleImportEqualsDeclaration:()=>qm,isInternalName:()=>_A,isIntersectionTypeNode:()=>VN,isIntrinsicJsxName:()=>Qy,isIterationStatement:()=>u_,isJSDoc:()=>yF,isJSDocAllType:()=>uF,isJSDocAugmentsTag:()=>xF,isJSDocAuthorTag:()=>SF,isJSDocCallbackTag:()=>TF,isJSDocClassTag:()=>kF,isJSDocCommentContainingNode:()=>U_,isJSDocConstructSignature:()=>Ug,isJSDocDeprecatedTag:()=>FF,isJSDocEnumTag:()=>IF,isJSDocFunctionType:()=>mF,isJSDocImplementsTag:()=>qF,isJSDocImportTag:()=>VF,isJSDocIndexSignature:()=>Xm,isJSDocLikeText:()=>FI,isJSDocLink:()=>sF,isJSDocLinkCode:()=>cF,isJSDocLinkLike:()=>ed,isJSDocLinkPlain:()=>lF,isJSDocMemberName:()=>aF,isJSDocNameReference:()=>oF,isJSDocNamepathType:()=>hF,isJSDocNamespaceBody:()=>x_,isJSDocNode:()=>J_,isJSDocNonNullableType:()=>pF,isJSDocNullableType:()=>dF,isJSDocOptionalParameter:()=>gC,isJSDocOptionalType:()=>fF,isJSDocOverloadTag:()=>PF,isJSDocOverrideTag:()=>EF,isJSDocParameterTag:()=>OF,isJSDocPrivateTag:()=>wF,isJSDocPropertyLikeTag:()=>zl,isJSDocPropertyTag:()=>UF,isJSDocProtectedTag:()=>DF,isJSDocPublicTag:()=>CF,isJSDocReadonlyTag:()=>NF,isJSDocReturnTag:()=>LF,isJSDocSatisfiesExpression:()=>vC,isJSDocSatisfiesTag:()=>zF,isJSDocSeeTag:()=>AF,isJSDocSignature:()=>bF,isJSDocTag:()=>q_,isJSDocTemplateTag:()=>jF,isJSDocThisTag:()=>RF,isJSDocThrowsTag:()=>$F,isJSDocTypeAlias:()=>qg,isJSDocTypeAssertion:()=>vA,isJSDocTypeExpression:()=>iF,isJSDocTypeLiteral:()=>vF,isJSDocTypeTag:()=>MF,isJSDocTypedefTag:()=>BF,isJSDocUnknownTag:()=>JF,isJSDocUnknownType:()=>_F,isJSDocVariadicType:()=>gF,isJSXTagName:()=>Om,isJsonEqual:()=>IT,isJsonSourceFile:()=>df,isJsxAttribute:()=>zP,isJsxAttributeLike:()=>R_,isJsxAttributeName:()=>TC,isJsxAttributes:()=>$P,isJsxChild:()=>L_,isJsxClosingElement:()=>BP,isJsxClosingFragment:()=>qP,isJsxElement:()=>RP,isJsxExpression:()=>WP,isJsxFragment:()=>JP,isJsxNamespacedName:()=>HP,isJsxOpeningElement:()=>jP,isJsxOpeningFragment:()=>UP,isJsxOpeningLikeElement:()=>j_,isJsxOpeningLikeElementTagName:()=>eX,isJsxSelfClosingElement:()=>MP,isJsxSpreadAttribute:()=>VP,isJsxTagNameExpression:()=>O_,isJsxText:()=>JD,isJumpStatementTarget:()=>lX,isKeyword:()=>Jh,isKeywordOrPunctuation:()=>qh,isKnownSymbol:()=>ly,isLabelName:()=>_X,isLabelOfLabeledStatement:()=>uX,isLabeledStatement:()=>tP,isLateVisibilityPaintedStatement:()=>Mp,isLeftHandSideExpression:()=>t_,isLeftHandSideOfAssignment:()=>Db,isLet:()=>vf,isLineBreak:()=>us,isLiteralComputedPropertyDeclarationName:()=>Ch,isLiteralExpression:()=>Xl,isLiteralExpressionOfObject:()=>Ql,isLiteralImportTypeNode:()=>kf,isLiteralKind:()=>Gl,isLiteralLikeAccess:()=>vg,isLiteralLikeElementAccess:()=>bg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yX,isLiteralTypeLikeExpression:()=>XA,isLiteralTypeLiteral:()=>a_,isLiteralTypeNode:()=>ZN,isLocalName:()=>dA,isLogicalOperator:()=>yb,isLogicalOrCoalescingAssignmentExpression:()=>bb,isLogicalOrCoalescingAssignmentOperator:()=>vb,isLogicalOrCoalescingBinaryExpression:()=>Sb,isLogicalOrCoalescingBinaryOperator:()=>xb,isMappedTypeNode:()=>YN,isMemberName:()=>Nl,isMetaProperty:()=>OE,isMethodDeclaration:()=>CN,isMethodOrAccessor:()=>Fu,isMethodSignature:()=>TN,isMinusToken:()=>GD,isMissingDeclaration:()=>AP,isMissingPackageJsonInfo:()=>CM,isModifier:()=>mu,isModifierKind:()=>du,isModifierLike:()=>Iu,isModuleAugmentationExternal:()=>wp,isModuleBlock:()=>pP,isModuleBody:()=>v_,isModuleDeclaration:()=>dP,isModuleExportsAccessExpression:()=>gg,isModuleIdentifier:()=>mg,isModuleName:()=>GA,isModuleOrEnumDeclaration:()=>k_,isModuleReference:()=>I_,isModuleSpecifierLike:()=>dY,isModuleWithStringLiteralName:()=>vp,isNameOfFunctionDeclaration:()=>hX,isNameOfModuleDeclaration:()=>gX,isNamedClassElement:()=>Au,isNamedDeclaration:()=>jc,isNamedEvaluation:()=>my,isNamedEvaluationSource:()=>fy,isNamedExportBindings:()=>ql,isNamedExports:()=>PP,isNamedImportBindings:()=>S_,isNamedImports:()=>wP,isNamedImportsOrExports:()=>Gx,isNamedTupleMember:()=>UN,isNamespaceBody:()=>b_,isNamespaceExport:()=>CP,isNamespaceExportDeclaration:()=>mP,isNamespaceImport:()=>TP,isNamespaceReexportDeclaration:()=>jm,isNewExpression:()=>_E,isNewExpressionTarget:()=>
1XG,isNoSubstitutionTemplateLiteral:()=>qD,isNode:()=>$l,isNodeArray:()=>Kl,isNodeArrayMultiLine:()=>gx,isNodeDescendantOf:()=>Sh,isNodeKind:()=>Vl,isNodeLikeSystem:()=>Nn,isNodeModulesDirectory:()=>Na,isNodeWithPossibleHoistedDeclaration:()=>ph,isNonContextualKeyword:()=>$h,isNonExportDefaultModifier:()=>_I,isNonGlobalAmbientModule:()=>bp,isNonGlobalDeclaration:()=>h0,isNonNullAccess:()=>yC,isNonNullChain:()=>Jl,isNonNullExpression:()=>IE,isNonStaticMethodOrAccessorWithPrivateName:()=>_U,isNotEmittedOrPartiallyEmittedNode:()=>l_,isNotEmittedStatement:()=>IP,isNullishCoalesce:()=>Ml,isNumber:()=>gt,isNumericLiteral:()=>MD,isNumericLiteralName:()=>aC,isObjectBindingElementWithoutPropertyName:()=>pY,isObjectBindingOrAssignmentElement:()=>Wu,isObjectBindingOrAssignmentPattern:()=>Vu,isObjectBindingPattern:()=>rE,isObjectLiteralElement:()=>G_,isObjectLiteralElementLike:()=>Ru,isObjectLiteralExpression:()=>sE,isObjectLiteralMethod:()=>Zf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>em,isObjectTypeDeclaration:()=>Vx,isOctalDigit:()=>ms,isOmittedExpression:()=>EE,isOptionalChain:()=>Il,isOptionalChainRoot:()=>Ol,isOptionalDeclaration:()=>hC,isOptionalJSDocPropertyLikeTag:()=>pC,isOptionalTypeNode:()=>qN,isOuterExpression:()=>xA,isOutermostOptionalChain:()=>Rl,isOverrideModifier:()=>dN,isPackageJsonInfo:()=>TM,isPackedArrayLiteral:()=>QT,isParameter:()=>bN,isParameterPropertyDeclaration:()=>fc,isParameterPropertyModifier:()=>pu,isParenthesizedExpression:()=>fE,isParenthesizedTypeNode:()=>KN,isParseTreeNode:()=>Dc,isPartOfParameterDeclaration:()=>hy,isPartOfTypeNode:()=>Mf,isPartOfTypeQuery:()=>Mm,isPartiallyEmittedExpression:()=>RE,isPatternMatch:()=>hn,isPinnedComment:()=>Zd,isPlainJsFile:()=>Ld,isPlusToken:()=>KD,isPossiblyTypeArgumentPosition:()=>gQ,isPostfixUnaryExpression:()=>SE,isPrefixUnaryExpression:()=>xE,isPrimitiveLiteralValue:()=>JC,isPrivateIdentifier:()=>rN,isPrivateIdentifierClassElementDeclaration:()=>uu,isPrivateIdentifierPropertyAccessExpression:()=>_u,isPrivateIdentifierSymbol:()=>uy,isProgramBundleEmitBuildInfo:()=>yV,isProgramUptoDate:()=>O$,isPrologueDirective:()=>Tf,isPropertyAccessChain:()=>Pl,isPropertyAccessEntityNameExpression:()=>Ib,isPropertyAccessExpression:()=>cE,isPropertyAccessOrQualifiedName:()=>Xu,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Gu,isPropertyAssignment:()=>YP,isPropertyDeclaration:()=>kN,isPropertyName:()=>hu,isPropertyNameLiteral:()=>iy,isPropertySignature:()=>SN,isProtoSetter:()=>dy,isPrototypeAccess:()=>Lb,isPrototypePropertyAssignment:()=>Eg,isPunctuation:()=>Uh,isPushOrUnshiftIdentifier:()=>gy,isQualifiedName:()=>hN,isQuestionDotToken:()=>eN,isQuestionOrExclamationToken:()=>VA,isQuestionOrPlusOrMinusToken:()=>KA,isQuestionToken:()=>YD,isRawSourceMap:()=>EJ,isReadonlyKeyword:()=>lN,isReadonlyKeywordOrPlusOrMinusToken:()=>HA,isRecognizedTripleSlashComment:()=>Yd,isReferenceFileLocation:()=>A$,isReferencedFile:()=>F$,isRegularExpressionLiteral:()=>UD,isRequireCall:()=>Qm,isRequireVariableStatement:()=>ng,isRestParameter:()=>nd,isRestTypeNode:()=>zN,isReturnStatement:()=>YE,isReturnStatementWithFixablePromiseHandler:()=>G1,isRightSideOfAccessExpression:()=>Mb,isRightSideOfInstanceofExpression:()=>Jb,isRightSideOfPropertyAccess:()=>fX,isRightSideOfQualifiedName:()=>pX,isRightSideOfQualifiedNameOrPropertyAccess:()=>Rb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>jb,isRootedDiskPath:()=>Mo,isSameEntityName:()=>dg,isSatisfiesExpression:()=>AE,isScopeMarker:()=>__,isSemicolonClassElement:()=>BE,isSetAccessor:()=>z_,isSetAccessorDeclaration:()=>EN,isShebangTrivia:()=>Ss,isShiftOperatorOrHigher:()=>QA,isShorthandAmbientModuleSymbol:()=>Sp,isShorthandPropertyAssignment:()=>ZP,isSignedNumericLiteral:()=>ey,isSimpleCopiableExpression:()=>eU,isSimpleInlineableExpression:()=>tU,isSimpleParameter:()=>xU,isSimpleParameterList:()=>SU,isSingleOrDoubleQuote:()=>rg,isSourceFile:()=>nF,isSourceFileFromLibrary:()=>T0,isSourceFileJS:()=>$m,isSourceFileNotJS:()=>Vm,isSourceFileNotJson:()=>Km,isSourceMapping:()=>IJ,isSpecialPropertyDeclaration:()=>Pg,isSpreadAssignment:()=>eF,isSpreadElement:()=>DE,isStatement:()=>F_,isStatementButNotDeclaration:()=>P_,isStatementOrBlock:()=>A_,isStatementWithLocals:()=>Rd,isStatic:()=>Qv,isStaticModifier:()=>uN,isString:()=>mt,isStringAKeyword:()=>Hh,isStringANonContextualKeyword:()=>Wh,isStringAndEmptyAnonymousObjectIntersection:()=>DQ,isStringDoubleQuoted:()=>
1ig,isStringLiteral:()=>BD,isStringLiteralLike:()=>Z_,isStringLiteralOrJsxExpression:()=>M_,isStringLiteralOrTemplate:()=>EZ,isStringOrNumericLiteralLike:()=>Zh,isStringOrRegularExpressionOrTemplateLiteral:()=>CQ,isStringTextContainingNode:()=>ou,isSuperCall:()=>bf,isSuperKeyword:()=>fN,isSuperOrSuperProperty:()=>bm,isSuperProperty:()=>xm,isSupportedSourceFileName:()=>sT,isSwitchStatement:()=>eP,isSyntaxList:()=>WF,isSyntheticExpression:()=>LE,isSyntheticReference:()=>OP,isTagName:()=>dX,isTaggedTemplateExpression:()=>dE,isTaggedTemplateTag:()=>YG,isTemplateExpression:()=>CE,isTemplateHead:()=>zD,isTemplateLiteral:()=>e_,isTemplateLiteralKind:()=>Yl,isTemplateLiteralToken:()=>Zl,isTemplateLiteralTypeNode:()=>nE,isTemplateLiteralTypeSpan:()=>tE,isTemplateMiddle:()=>$D,isTemplateMiddleOrTemplateTail:()=>eu,isTemplateSpan:()=>jE,isTemplateTail:()=>VD,isTextWhiteSpaceLike:()=>TY,isThis:()=>SX,isThisContainerOrFunctionBlock:()=>mm,isThisIdentifier:()=>Ev,isThisInTypeQuery:()=>Fv,isThisInitializedDeclaration:()=>km,isThisInitializedObjectBindingExpression:()=>Tm,isThisProperty:()=>Sm,isThisTypeNode:()=>GN,isThisTypeParameter:()=>cC,isThisTypePredicate:()=>nm,isThrowStatement:()=>nP,isToken:()=>Hl,isTokenKind:()=>Wl,isTraceEnabled:()=>eM,isTransientSymbol:()=>dd,isTrivia:()=>Gh,isTryStatement:()=>rP,isTupleTypeNode:()=>JN,isTypeAlias:()=>zg,isTypeAliasDeclaration:()=>uP,isTypeAssertionExpression:()=>pE,isTypeDeclaration:()=>_C,isTypeElement:()=>Ou,isTypeKeyword:()=>$Q,isTypeKeywordToken:()=>VQ,isTypeKeywordTokenOrIdentifier:()=>WQ,isTypeLiteralNode:()=>jN,isTypeNode:()=>Mu,isTypeNodeKind:()=>Wx,isTypeOfExpression:()=>yE,isTypeOnlyExportDeclaration:()=>ru,isTypeOnlyImportDeclaration:()=>nu,isTypeOnlyImportOrExportDeclaration:()=>iu,isTypeOperatorNode:()=>XN,isTypeParameterDeclaration:()=>vN,isTypePredicateNode:()=>IN,isTypeQueryNode:()=>MN,isTypeReferenceNode:()=>ON,isTypeReferenceType:()=>X_,isTypeUsableAsPropertyName:()=>NC,isUMDExportSymbol:()=>Ux,isUnaryExpression:()=>r_,isUnaryExpressionWithWrite:()=>o_,isUnicodeIdentifierStart:()=>Wa,isUnionTypeNode:()=>$N,isUrl:()=>Ro,isValidBigIntString:()=>jT,isValidESSymbolDeclaration:()=>Gf,isValidTypeOnlyAliasUseSite:()=>BT,isValueSignatureDeclaration:()=>fh,isVarAwaitUsing:()=>mf,isVarConst:()=>hf,isVarConstLike:()=>yf,isVarUsing:()=>gf,isVariableDeclaration:()=>oP,isVariableDeclarationInVariableStatement:()=>Wf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Zm,isVariableDeclarationInitializedToRequire:()=>Ym,isVariableDeclarationList:()=>aP,isVariableLike:()=>$f,isVariableLikeOrAccessor:()=>Vf,isVariableStatement:()=>UE,isVoidExpression:()=>vE,isWatchSet:()=>Tx,isWhileStatement:()=>
1WE,isWhiteSpaceLike:()=>cs,isWhiteSpaceSingleLine:()=>ls,isWithStatement:()=>ZE,isWriteAccess:()=>Fx,isWriteOnlyAccess:()=>Px,isYieldExpression:()=>wE,jsxModeNeedsExplicitImport:()=>k0,keywordPart:()=>IY,last:()=>Le,lastOrUndefined:()=>Oe,length:()=>_,libMap:()=>FO,libs:()=>PO,lineBreakPart:()=>KY,linkNamePart:()=>zY,linkPart:()=>$Y,linkTextPart:()=>qY,listFiles:()=>_W,loadModuleFromGlobalCache:()=>qj,loadWithModeAwareCache:()=>k$,makeIdentifierFromModuleName:()=>mp,makeImport:()=>iY,makeStringLiteral:()=>oY,mangleScopedPackageName:()=>Lj,map:()=>j,mapAllOrFail:()=>W,mapDefined:()=>H,mapDefinedEntries:()=>G,mapDefinedIterator:()=>K,mapEntries:()=>ee,mapIterator:()=>B,mapOneOrMany:()=>o0,mapToDisplayParts:()=>GY,matchFiles:()=>jk,matchPatternOrExact:()=>CT,matchedText:()=>dn,matchesExclude:()=>UR,maybeBind:()=>st,maybeSetLocalizedDiagnosticMessages:()=>pS,memoize:()=>Nt,memoizeCached:()=>Ft,memoizeOne:()=>Et,memoizeWeak:()=>Pt,metadataHelper:()=>oD,min:()=>Jt,minAndMax:()=>NT,missingFileModifiedTime:()=>ao,modifierToFlag:()=>gb,modifiersToFlags:()=>mb,moduleOptionDeclaration:()=>LO,moduleResolutionIsEqualTo:()=>wd,moduleResolutionNameAndModeGetter:()=>y$,moduleResolutionOptionDeclarations:()=>UO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>ok,moduleResolutionUsesNodeModules:()=>rY,moduleSpecifierToValidIdentifier:()=>p0,moduleSpecifiers:()=>aB,moduleSymbolToValidIdentifier:()=>d0,moveEmitHelpers:()=>qw,moveRangeEnd:()=>rx,moveRangePastDecorators:()=>ox,moveRangePastModifiers:()=>ax,moveRangePos:()=>ix,moveSyntheticComments:()=>Lw,mutateMap:()=>Rx,mutateMapSkippingNewValues:()=>Lx,needsParentheses:()=>CZ,needsScopeMarker:()=>p_,newCaseClauseTracker:()=>C0,newPrivateEnvironment:()=>hU,noEmitNotification:()=>zq,noEmitSubstitution:()=>qq,noTransformers:()=>Lq,noTruncationMaximumTruncationLength:()=>cd,nodeCanBeDecorated:()=>Dm,nodeHasName:()=>Rc,nodeIsDecorated:()=>Nm,nodeIsMissing:()=>Ud,nodeIsPresent:()=>qd,nodeIsSynthesized:()=>by,nodeModuleNameResolver:()=>HM,nodeModulesPathPart:()=>ZM,nodeNextJsonConfigResolver:()=>KM,nodeOrChildIsDecorated:()=>Em,nodeOverlapsWithStartEnd:()=>AX,nodePosToString:()=>jd,nodeSeenTracker:()=>HQ,nodeStartsNewLexicalEnvironment:()=>vy,nodeToDisplayParts:()=>ZY,noop:()=>vt,noopFileWatcher:()=>bW,normalizePath:()=>sa,normalizeSlashes:()=>ta,not:()=>bn,notImplemented:()=>Dt,notImplementedResolver:()=>yz,nullNodeConverters:()=>KC,nullParenthesizerRules:()=>VC,nullTransformationContext:()=>Vq,objectAllocator:()=>sS,operatorPart:()=>LY,optionDeclarations:()=>MO,optionMapToObject:()=>VL,optionsAffectingProgramStructure:()=>zO,optionsForBuild:()=>KO,optionsForWatch:()=>AO,optionsHaveChanges:()=>yd,optionsHaveModuleResolutionChanges:()=>gd,or:()=>vn,orderedRemoveItem:()=>an,orderedRemoveItemAt:()=>sn,packageIdToPackageName:()=>Nd,packageIdToString:()=>Ed,paramHelper:()=>aD,parameterIsThisKeyword:()=>Nv,parameterNamePart:()=>RY,parseBaseNodeFactory:()=>DI,parseBigInt:()=>RT,parseBuildCommand:()=>gL,parseCommandLine:()=>_L,parseCommandLineWorker:()=>sL,parseConfigFileTextToJson:()=>bL,parseConfigFileWithSystem:()=>iW,parseConfigHostFromCompilerHostLike:()=>z$,parseCustomTypeOption:()=>rL,parseIsolatedEntityName:()=>iO,parseIsolatedJSDocComment:()=>cO,parseJSDocTypeExpressionForTests:()=>lO,parseJsonConfigFileContent:()=>nR,parseJsonSourceFileConfigFileContent:()=>rR,parseJsonText:()=>oO,parseListTypeOption:()=>iL,parseNodeFactory:()=>NI,parseNodeModuleFromPath:()=>tj,parsePackageName:()=>bj,parsePseudoBigInt:()=>OT,parseValidBigInt:()=>MT,pasteEdits:()=>wfe,patchWriteFileEnsuringDirectory:()=>No,pathContainsNodeModules:()=>ej,pathIsAbsolute:()=>Bo,pathIsBareSpecifier:()=>Uo,pathIsRelative:()=>Jo,patternText:()=>_n,perfLogger:()=>lr,performIncrementalCompilation:()=>IW,performance:()=>ur,plainJSErrors:()=>j$,positionBelongsToNode:()=>OX,positionIsASICandidate:()=>BZ,positionIsSynthesized:()=>hT,positionsAreOnSameLine:()=>hx,preProcessFile:()=>B1,probablyUsesSemicolons:()=>JZ,processCommentPragmas:()=>gO,processPragmasIntoFields:()=>hO,processTaggedTemplateExpression:()=>HU,programContainsEsModules:()=>ZQ,programContainsModules:()=>YQ,projectReferenceIsEqualTo:()=>Cd,propKeyHelper:()=>bD,propertyNamePart:()=>MY,pseudoBigIntToString:()=>LT,punctuationPart:()=>OY,pushIfUnique:()=>ye,quote:()=>DZ,quotePreferenceFromString:()=>sY,rangeContainsPosition:()=>DX,rangeContainsPositionExclusive:()=>NX,rangeContainsRange:()=>CX,rangeContainsRangeExclusive:()=>wX,rangeContainsStartEnd:()=>PX,rangeEndIsOnSameLineAsRangeStart:()=>px,rangeEndPositionsAreOnSameLine:()=>_x,rangeEquals:()=>Ce,rangeIsOnSingleLine:()=>lx,rangeOfNode:()=>ET,rangeOfTypeParameters:()=>PT,rangeOverlapsWithStartEnd:()=>FX,rangeStartIsOnSameLineAsRangeEnd:()=>dx,rangeStartPositionsAreOnSameLine:()=>ux,readBuilderProgram:()=>OW,readConfigFile:()=>vL,readHelper:()=>yD,readJson:()=>Xb,readJsonConfigFile:()=>xL,readJsonOrUndefined:()=>Gb,reduceEachLeadingCommentRange:()=>
1Ds,reduceEachTrailingCommentRange:()=>Ns,reduceLeft:()=>qe,reduceLeftIterator:()=>S,reducePathComponents:()=>na,refactor:()=>v6,regExpEscape:()=>xk,regularExpressionFlagToCharacter:()=>Ya,relativeComplement:()=>pe,removeAllComments:()=>gw,removeEmitHelper:()=>Jw,removeExtension:()=>pT,removeFileExtension:()=>_T,removeIgnoredPath:()=>LV,removeMinAndVersionNumbers:()=>on,removeOptionality:()=>mQ,removePrefix:()=>mn,removeSuffix:()=>nn,removeTrailingDirectorySeparator:()=>ua,repeatString:()=>GQ,replaceElement:()=>Be,replaceFirstStar:()=>IC,resolutionExtensionIsTSOrJson:()=>vT,resolveConfigFileProjectName:()=>JW,resolveJSModule:()=>zM,resolveLibrary:()=>BM,resolveModuleName:()=>UM,resolveModuleNameFromCache:()=>JM,resolvePackageNameToPackageJson:()=>SM,resolvePath:()=>ia,resolveProjectReferencePath:()=>$$,resolveTripleslashReference:()=>Uz,resolveTypeReferenceDirective:()=>vM,resolvingEmptyArray:()=>od,restHelper:()=>fD,returnFalse:()=>bt,returnNoopFileWatcher:()=>xW,returnTrue:()=>xt,returnUndefined:()=>St,returnsPromise:()=>K1,runInitializersHelper:()=>cD,sameFlatMap:()=>V,sameMap:()=>J,sameMapping:()=>AJ,scanShebangTrivia:()=>ks,scanTokenAtPosition:()=>cf,scanner:()=>$G,screenStartingMessageCodes:()=>tW,semanticDiagnosticsOptionDeclarations:()=>jO,serializeCompilerOptions:()=>GL,server:()=>Phe,servicesVersion:()=>V8,setCommentRange:()=>Nw,setConfigFileInOptions:()=>iR,setConstantValue:()=>Mw,setEachParent:()=>KT,setEmitFlags:()=>hw,setFunctionNameHelper:()=>xD,setGetSourceFileAsHashVersioned:()=>DW,setIdentifierAutoGenerate:()=>Xw,setIdentifierGeneratedImportReference:()=>Yw,setIdentifierTypeArguments:()=>Kw,setInternalEmitFlags:()=>vw,setLocalizedDiagnosticMessages:()=>dS,setModuleDefaultHelper:()=>CD,setNodeChildren:()=>XF,setNodeFlags:()=>WT,setObjectAllocator:()=>uS,setOriginalNode:()=>pw,setParent:()=>HT,setParentRecursive:()=>GT,setPrivateIdentifier:()=>vU,setSnippetElement:()=>$w,setSourceMapRange:()=>Sw,setStackTraceLimit:()=>ro,setStartsOnNewLine:()=>ww,setSyntheticLeadingComments:()=>Pw,setSyntheticTrailingComments:()=>Iw,setSys:()=>Po,setSysLog:()=>So,setTextRange:()=>TI,setTextRangeEnd:()=>zT,setTextRangePos:()=>qT,setTextRangePosEnd:()=>$T,setTextRangePosWidth:()=>VT,setTokenSourceMapRange:()=>Tw,setTypeNode:()=>Ww,setUILocale:()=>Gt,setValueDeclaration:()=>Fg,shouldAllowImportingTsExtension:()=>Uj,shouldPreserveConstEnums:()=>XS,shouldUseUriStyleNodeCoreModules:()=>v0,showModuleSpecifier:()=>qx,signatureHasLiteralTypes:()=>sJ,signatureHasRestParameter:()=>aJ,signatureToDisplayParts:()=>YY,single:()=>Me,singleElementArray:()=>Sn,singleIterator:()=>Y,singleOrMany:()=>je,singleOrUndefined:()=>Re,skipAlias:()=>Nx,skipAssertions:()=>TA,skipConstraint:()=>XQ,skipOuterExpressions:()=>SA,skipParentheses:()=>bh,skipPartiallyEmittedExpressions:()=>Bl,skipTrivia:()=>hs,skipTypeChecking:()=>FT,skipTypeParentheses:()=>vh,skipWhile:()=>Dn,sliceAfter:()=>wT,some:()=>te,sort:()=>xe,sortAndDeduplicate:()=>le,sortAndDeduplicateDiagnostics:()=>Ws,sourceFileAffectingCompilerOptions:()=>qO,sourceFileMayBeEmitted:()=>gv,sourceMapCommentRegExp:()=>TJ,sourceMapCommentRegExpDontCareLineStart:()=>kJ,spacePart:()=>AY,spanMap:()=>Z,spreadArrayHelper:()=>vD,stableSort:()=>ke,startEndContainsRange:()=>EX,startEndOverlapsWithStartEnd:()=>IX,startOnNewLine:()=>CA,startTracing:()=>Ar,startsWith:()=>fn,startsWithDirectory:()=>xa,startsWithUnderscore:()=>m0,startsWithUseStrict:()=>gA,stringContainsAt:()=>f0,stringToToken:()=>Xa,stripQuotes:()=>Xy,supportedDeclarationExtensions:()=>Qk,supportedJSExtensions:()=>Hk,supportedJSExtensionsFlat:()=>Kk,supportedLocaleDirectories:()=>kc,supportedTSExtensions:()=>zk,supportedTSExtensionsFlat:()=>$k,supportedTSImplementationExtensions:()=>Yk,suppressLeadingAndTrailingTrivia:()=>dZ,suppressLeadingTrivia:()=>pZ,suppressTrailingTrivia:()=>fZ,symbolEscapedNameNoDefault:()=>_Y,symbolName:()=>Ic,symbolNameNoDefault:()=>uY,symbolPart:()=>PY,symbolToDisplayParts:()=>QY,syntaxMayBeASICandidate:()=>jZ,syntaxRequiresTrailingSemicolonOrASI:()=>MZ,sys:()=>Eo,sysLog:()=>xo,tagNamesAreEquivalent:()=>TO,takeWhile:()=>wn,targetOptionDeclaration:()=>
1OO,templateObjectHelper:()=>hD,testFormatSettings:()=>IG,textChangeRangeIsUnchanged:()=>lc,textChangeRangeNewSpan:()=>cc,textChanges:()=>Q_e,textOrKeywordPart:()=>jY,textPart:()=>BY,textRangeContainsPositionInclusive:()=>Qs,textSpanContainsPosition:()=>Xs,textSpanContainsTextSpan:()=>Ys,textSpanEnd:()=>Ks,textSpanIntersection:()=>oc,textSpanIntersectsWith:()=>nc,textSpanIntersectsWithPosition:()=>ic,textSpanIntersectsWithTextSpan:()=>tc,textSpanIsEmpty:()=>Gs,textSpanOverlap:()=>ec,textSpanOverlapsWith:()=>Zs,textSpansEqual:()=>bY,textToKeywordObj:()=>Ia,timestamp:()=>ar,toArray:()=>ft,toBuilderFileEmit:()=>DV,toBuilderStateFileInfoForMultiEmit:()=>wV,toEditorSettings:()=>c7,toFileNameLowerCase:()=>wt,toLowerCase:()=>Tt,toPath:()=>la,toProgramEmitPending:()=>NV,tokenIsIdentifierOrKeyword:()=>Fa,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Aa,tokenToString:()=>Ga,trace:()=>ZR,tracing:()=>pr,tracingEnabled:()=>fr,transform:()=>D7,transformClassFields:()=>QU,transformDeclarations:()=>Fq,transformECMAScriptModule:()=>kq,transformES2015:()=>yq,transformES2016:()=>gq,transformES2017:()=>nq,transformES2018:()=>iq,transformES2019:()=>oq,transformES2020:()=>aq,transformES2021:()=>sq,transformESDecorators:()=>tq,transformESNext:()=>cq,transformGenerators:()=>vq,transformJsx:()=>fq,transformLegacyDecorators:()=>eq,transformModule:()=>bq,transformNamedEvaluation:()=>VU,transformNodeModule:()=>Tq,transformNodes:()=>$q,transformSystemModule:()=>Sq,transformTypeScript:()=>XU,transpile:()=>u2,transpileDeclaration:()=>i2,transpileModule:()=>r2,transpileOptionValueCompilerOptions:()=>$O,tryAddToSet:()=>Q,tryAndIgnoreErrors:()=>VZ,tryCast:()=>ht,tryDirectoryExists:()=>$Z,tryExtractTSExtension:()=>$b,tryFileExists:()=>zZ,tryGetClassExtendingExpressionWithTypeArguments:()=>Tb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Cb,tryGetDirectories:()=>UZ,tryGetExtensionFromPath:()=>ST,tryGetImportFromModuleSpecifier:()=>Lg,tryGetJSDocSatisfiesTypeNode:()=>xC,tryGetModuleNameFromFile:()=>AA,tryGetModuleSpecifierFromDeclaration:()=>Ig,tryGetNativePerformanceHooks:()=>ir,tryGetPropertyAccessOrIdentifierToString:()=>Ob,tryGetPropertyNameOfBindingOrAssignmentElement:()=>MA,tryGetSourceMappingURL:()=>DJ,tryGetTextOfPropertyName:()=>Wp,tryIOAndConsumeErrors:()=>WZ,tryParseJson:()=>Qb,tryParsePattern:()=>mT,tryParsePatterns:()=>gT,tryParseRawSourceMap:()=>PJ,tryReadDirectory:()=>qZ,tryReadFile:()=>SL,tryRemoveDirectoryPrefix:()=>vk,tryRemoveExtension:()=>dT,tryRemovePrefix:()=>gn,tryRemoveSuffix:()=>rn,typeAcquisitionDeclarations:()=>XO,typeAliasNamePart:()=>JY,typeDirectiveIsEqualTo:()=>Pd,typeKeywords:()=>zQ,typeParameterNamePart:()=>UY,typeToDisplayParts:()=>XY,unchangedPollThresholds:()=>_o,unchangedTextChangeRange:()=>_c,unescapeLeadingUnderscores:()=>Pc,unmangleScopedPackageName:()=>Mj,unorderedRemoveItem:()=>ln,unorderedRemoveItemAt:()=>cn,unreachableCodeIsError:()=>rk,unsetNodeChildren:()=>QF,unusedLabelIsError:()=>ik,unwrapInnermostStatementOfLabel:()=>Qf,unwrapParenthesizedExpression:()=>UC,updateErrorForNoInputFiles:()=>vR,updateLanguageServiceSourceFile:()=>g7,updateMissingFilePathsWatch:()=>Az,updateResolutionField:()=>lM,updateSharedExtendedConfigFileWatcher:()=>Ez,updateSourceFile:()=>sO,updateWatchingWildcardDirectories:()=>Iz,usesExtensionsOnImports:()=>oT,usingSingleLineStringWriter:()=>kd,utf16EncodeAsString:()=>Js,validateLocaleAndSetLanguage:()=>Tc,valuesHelper:()=>SD,version:()=>a,versionMajorMinor:()=>o,visitArray:()=>_J,visitCommaListElements:()=>yJ,visitEachChild:()=>vJ,visitFunctionBody:()=>gJ,visitIterationBody:()=>hJ,visitLexicalEnvironment:()=>pJ,visitNode:()=>lJ,visitNodes:()=>uJ,visitParameterList:()=>fJ,walkUpBindingElementsAndPatterns:()=>hc,walkUpLexicalEnvironments:()=>gU,walkUpOuterExpressions:()=>kA,walkUpParenthesizedExpressions:()=>hh,walkUpParenthesizedTypes:()=>gh,walkUpParenthesizedTypesAndGetParentAndChild:()=>yh,whitespaceOrMapCommentRegExp:()=>CJ,writeCommentRange:()=>$v,writeFile:()=>vv,writeFileEnsuringDirectories:()=>xv,zipWith:()=>k}),e.exports=i;var o="5.5",a="5.5.2",s=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(s||{}),c=[],l=new Map,u=new Set;function _(e){return e?e.length:0}function d(e,t){if(e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}}function f(e,t){if(e)for(let n=e.length-1;n>=0;n--){const r=t(e[n],n);if(r)return r}}function y(e,t){if(void 0!==e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(void 0!==r)return r}}function b(e,t){for(const n of e){const e=t(n);if(void 0!==e)return e}}function S(e,t,n){let r=n;if(e){let n=0;for(const i of e)r=t(r,i,n),n++}return r}
1function k(e,t,n){const r=[];En.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r}function T(e,t){if(e.length<=1)return e;const n=[];for(let r=0,i=e.length;r<i;r++)r&&n.push(t),n.push(e[r]);return n}function C(e,t){if(e)for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function w(e,t,n){if(void 0!==e)for(let r=null!=n?n:0;r<e.length;r++){const n=e[r];if(t(n,r))return n}}function D(e,t,n){if(void 0!==e)for(let r=null!=n?n:e.length-1;r>=0;r--){const n=e[r];if(t(n,r))return n}}function N(e,t,n){if(void 0===e)return-1;for(let r=null!=n?n:0;r<e.length;r++)if(t(e[r],r))return r;return-1}function E(e,t,n){if(void 0===e)return-1;for(let r=null!=n?n:e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function P(e,t){for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}return En.fail()}function F(e,t,n=Ot){if(e)for(const r of e)if(n(r,t))return!0;return!1}function A(e,t,n=Ot){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function I(e,t,n){for(let r=n||0;r<e.length;r++)if(F(t,e.charCodeAt(r)))return r;return-1}function O(e,t){let n=0;if(e)for(let r=0;r<e.length;r++)t(e[r],r)&&n++;return n}function L(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;if(r<n){const i=e.slice(0,r);for(r++;r<n;){const n=e[r];t(n)&&i.push(n),r++}return i}}return e}function R(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function M(e){e.length=0}function j(e,t){let n;if(e){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*B(e,t){for(const n of e)yield t(n)}function J(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n],i=t(r,n);if(r!==i){const r=e.slice(0,n);for(r.push(i),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function U(e){const t=[];for(const n of e)n&&(pt(n)?he(t,n):t.push(n));return t}function q(e,t){let n;if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);i&&(n=pt(i)?he(n,i):fe(n,i))}return n||c}function z(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);i&&(pt(i)?he(n,i):n.push(i))}return n}function*$(e,t){for(const n of e){const e=t(n);e&&(yield*x(e))}}function V(e,t){let n;if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);(n||i!==o||pt(o))&&(n||(n=e.slice(0,r)),pt(o)?he(n,o):n.push(o))}return n||e}function W(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);if(void 0===i)return;n.push(i)}return n}function H(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);void 0!==i&&n.push(i)}return n}function*K(e,t){for(const n of e){const e=t(n);void 0!==e&&(yield e)}}function G(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const i=t(r,e);if(void 0!==i){const[e,t]=i;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function X(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function Q(e,t){return!e.has(t)&&(e.add(t),!0)}function*Y(e){yield e}function Z(e,t,n){let r;if(e){r=[];const i=e.length;let o,a,s=0,c=0;for(;s<i;){for(;c<i;){if(a=t(e[c],c),0===c)o=a;else if(a!==o)break;c++}if(s<c){const t=n(e.slice(s,c),o,s,c);t&&r.push(t),s=c}o=a,c++}}return r}function ee(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const[i,o]=t(r,e);n.set(i,o)})),n}function te(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function ne(e,t,n){let r;for(let i=0;i<e.length;i++)t(e[i])?r=void 0===r?i:r:void 0!==r&&(n(r,i),r=void 0);void 0!==r&&n(r,e.length)}function re(e,t){return te(t)?te(e)?[...e,...t]:t:e}function ie(e,t){return t}function oe(e){return e.map(ie)}function ae(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?function(e,t,n){const r=oe(e);be(e,r,n);let i=e[r[0]];const o=[r[0]];for(let a=1;a<r.length;a++){const n=r[a],s=e[n];t(i,s)||(o.push(n),i=s)}return o.sort(),o.map((t=>e[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)ye(n,r,t);return n}(e,t)}function se(){return[]}function ce(e,t,n,r,i){if(0===e.length)return e.push(t),!0;const o=Je(e,t,kt,n);if(o<0){if(r&&!i){const n=~o;if(n>0&&r(t,e[n-1]))return!1;if(n<e.length&&r(t,e[n]))return e.splice(n,1,t),!0}return e.splice(~o,0,t),!0}return!!i&&(e.splice(o,0,t),!0)}function le(e,t,n){return function(e,t){if(0===e.length)return c;let n=e[0];const r=[n];for(let i=1;i<e.length;i++){const o=e[i];switch(t(o,n)){case!0:case 0:continue;case-1:return En.fail("Array is unsorted.")}r.push(n=o)}return r}(xe(e,t),n||t||zt)}function ue(e,t){if(e.length<2)return!0;for(let n=1,r=e.length;n<r;n++)if(1===t(e[n-1],e[n]))return!1;return!0}function _e(e,t,n=Ot){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function de(e){let t;if(e)for(let n=0;n<e.length;n++){const r=e[n];!t&&r||(t||(t=e.slice(0,n)),r&&t.push(r))}return t||e}function pe(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;const r=[];e:for(let i=0,o=0;o<t.length;o++){o>0&&En.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;i<e.length;i++)switch(i>a&&En.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;
1case 0:continue e;case 1:continue t}}return r}function fe(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function me(e,t){return void 0===e?t:void 0===t?e:pt(e)?pt(t)?re(e,t):fe(e,t):pt(t)?fe(t,e):[e,t]}function ge(e,t){return t<0?e.length+t:t}function he(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:ge(t,n),r=void 0===r?t.length:ge(t,r);for(let i=n;i<r&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function ye(e,t,n){return!F(e,t,n)&&(e.push(t),!0)}function ve(e,t,n){return e?(ye(e,t,n),e):[t]}function be(e,t,n){t.sort(((t,r)=>n(e[t],e[r])||jt(t,r)))}function xe(e,t){return 0===e.length?e:e.slice().sort(t)}function*Se(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function ke(e,t){const n=oe(e);return be(e,n,t),n.map((t=>e[t]))}function Ce(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}var Ne=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=ge(e,t))<e.length)return e[t]};function Pe(e){return void 0===e||0===e.length?void 0:e[0]}function Fe(e){if(e)for(const t of e)return t}function Ae(e){return En.assert(0!==e.length),e[0]}function Ie(e){for(const t of e)return t;En.fail("iterator is empty")}function Oe(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function Le(e){return En.assert(0!==e.length),e[e.length-1]}function Re(e){return e&&1===e.length?e[0]:void 0}function Me(e){return En.checkDefined(Re(e))}function je(e){return e&&1===e.length?e[0]:e}function Be(e,t,n){const r=e.slice(0);return r[t]=n,r}function Je(e,t,n,r,i){return Ue(e,n(t),n,r,i)}function Ue(e,t,n,r,i){if(!te(e))return-1;let o=i||0,a=e.length-1;for(;o<=a;){const i=o+(a-o>>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function qe(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var ze=Object.prototype.hasOwnProperty;function $e(e,t){return ze.call(e,t)}function Ve(e,t){return ze.call(e,t)?e[t]:void 0}function We(e){const t=[];for(const n in e)ze.call(e,n)&&t.push(n);return t}function He(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)ye(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ke(e){const t=[];for(const n in e)ze.call(e,n)&&t.push(e[n]);return t}function Ge(e,t){const n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function Xe(e,t){const n=[];for(const r of e)n.push(t?t(r):r);return n}function Qe(e,...t){for(const n of t)if(void 0!==n)for(const t in n)$e(n,t)&&(e[t]=n[t]);return e}function Ye(e,t,n=Ot){if(e===t)return!0;if(!e||!t)return!1;for(const r in e)if(ze.call(e,r)){if(!ze.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(const r in t)if(ze.call(t,r)&&!ze.call(e,r))return!1;return!0}function Ze(e,t,n=kt){const r=new Map;for(const i of e){const e=t(i);void 0!==e&&r.set(e,n(i))}return r}function et(e,t,n=kt){const r=[];for(const i of e)r[t(i)]=n(i);return r}function tt(e,t,n=kt){const r=ct();for(const i of e)r.add(t(i),n(i));return r}function nt(e,t,n=kt){return Xe(tt(e,t).values(),n)}function rt(e,t){var n;const r={};if(e)for(const i of e){const e=`${t(i)}`;(null!=(n=r[e])?n:r[e]=[]).push(i)}return r}function it(e){const t={};for(const n in e)ze.call(e,n)&&(t[n]=e[n]);return t}function ot(e,t){const n={};for(const r in t)ze.call(t,r)&&(n[r]=t[r]);for(const r in e)ze.call(e,r)&&(n[r]=e[r]);return n}function at(e,t){for(const n in t)ze.call(t,n)&&(e[n]=t[n])}function st(e,t){return t?t.bind(e):void 0}function ct(){const e=new Map;return e.add=lt,e.remove=ut,e}function lt(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function ut(e,t){const n=this.get(e);n&&(ln(n,t),n.length||this.delete(e))}function _t(e){const t=(null==e?void 0:e.slice())||[];let n=0;function r(){return n===t.length}return{enqueue:function(...e){t.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function dt(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())pt(e)?yield*x(e):yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);if(!pt(o))return t(o,r);for(const e of o)if(t(e,r))return!0;return!1},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(pt(e))F(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(pt(a)){for(let e=0;e<a.length;e++)if(t(a[e],i))return 1===a.length?n.delete(o):2===a.length?n.set(o,a[1-e]):cn(a,e),r--,!0}else if(t(a,i))return n.delete(o),r--,!0;return!1},clear(){n.clear(),r=0},get size(){return r}
1,forEach(e){for(const t of Xe(n.values()))if(pt(t))for(const n of t)e(n,n,o);else e(t,t,o)},keys:()=>i(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function pt(e){return Array.isArray(e)}function ft(e){return pt(e)?e:[e]}function mt(e){return"string"==typeof e}function gt(e){return"number"==typeof e}function ht(e,t){return void 0!==e&&t(e)?e:void 0}function yt(e,t){return void 0!==e&&t(e)?e:En.fail(`Invalid cast. The supplied value ${e} did not pass the test '${En.getFunctionName(t)}'.`)}function vt(e){}function bt(){return!1}function xt(){return!0}function St(){}function kt(e){return e}function Tt(e){return e.toLowerCase()}var Ct=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function wt(e){return Ct.test(e)?e.replace(Ct,Tt):e}function Dt(){throw new Error("Not implemented")}function Nt(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Et(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}function Pt(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function Ft(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function At(e,t,n,r,i){if(i){const e=[];for(let t=0;t<arguments.length;t++)e[t]=arguments[t];return t=>qe(e,((e,t)=>t(e)),t)}return r?i=>r(n(t(e(i)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}var It=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(It||{});function Ot(e,t){return e===t}function Lt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function Rt(e,t){return Ot(e,t)}function Mt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function jt(e,t){return Mt(e,t)}function Bt(e,t){return jt(null==e?void 0:e.start,null==t?void 0:t.start)||jt(null==e?void 0:e.length,null==t?void 0:t.length)}function Jt(e,t){return qe(e,((e,n)=>-1===t(e,n)?e:n))}function Ut(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function qt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function zt(e,t){return Mt(e,t)}function $t(e){return e?Ut:zt}var Vt,Wt,Ht=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Kt(){return Wt}function Gt(e){Wt!==e&&(Wt=e,Vt=void 0)}function Xt(e,t){return(Vt||(Vt=Ht(Wt)))(e,t)}function Qt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Yt(e,t){return jt(e?1:0,t?1:0)}function Zt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=en(e,t,o-.1);if(void 0===n)continue;En.assert(n<o),o=n,i=a}}return i}function en(e,t,n){let r=new Array(t.length+1),i=new Array(t.length+1);const o=n+.01;for(let s=0;s<=t.length;s++)r[s]=s;for(let s=1;s<=e.length;s++){const a=e.charCodeAt(s-1),c=Math.ceil(s>n?s-n:1),l=Math.floor(t.length>n+s?n+s:t.length);i[0]=s;let u=s;for(let e=1;e<c;e++)i[e]=o;for(let n=c;n<=l;n++){const o=e[s-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,c=a===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,i[n-1]+1,o);i[n]=c,u=Math.min(u,c)}for(let e=l+1;e<=t.length;e++)i[e]=o;if(u>n)return;const _=r;r=i,i=_}const a=r[t.length];return a>n?void 0:a}function tn(e,t,n){const r=e.length-t.length;return r>=0&&(n?Lt(e.slice(r),t):e.indexOf(t,r)===r)}function nn(e,t){return tn(e,t)?e.slice(0,e.length-t.length):e}function rn(e,t){return tn(e,t)?e.slice(0,e.length-t.length):void 0}function on(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;
1if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function an(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return sn(e,n),!0;return!1}function sn(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function cn(e,t){e[t]=e[e.length-1],e.pop()}function ln(e,t){return function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return cn(e,n),!0;return!1}(e,(e=>e===t))}function un(e){return e?kt:wt}function _n({prefix:e,suffix:t}){return`${e}*${t}`}function dn(e,t){return En.assert(hn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function pn(e,t,n){let r,i=-1;for(const o of e){const e=t(o);hn(e,n)&&e.prefix.length>i&&(i=e.prefix.length,r=o)}return r}function fn(e,t,n){return n?Lt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function mn(e,t){return fn(e,t)?e.substr(t.length):e}function gn(e,t,n=kt){return fn(n(e),n(t))?e.substring(t.length):void 0}function hn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&fn(n,e)&&tn(n,t)}function yn(e,t){return n=>e(n)&&t(n)}function vn(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function bn(e){return(...t)=>!e(...t)}function xn(e){}function Sn(e){return void 0===e?void 0:[e]}function kn(e,t,n,r,i,o){o=o||vt;let a=0,s=0;const c=e.length,l=t.length;let u=!1;for(;a<c&&s<l;){const c=e[a],l=t[s],_=n(c,l);-1===_?(r(c),a++,u=!0):1===_?(i(l),s++,u=!0):(o(l,c),a++,s++)}for(;a<c;)r(e[a++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u}function Tn(e){const t=[];return Cn(e,t,void 0,0),t}function Cn(e,t,n,r){for(const i of e[r]){let o;n?(o=n.slice(),o.push(i)):o=[i],r===e.length-1?t.push(o):Cn(e,t,o,r+1)}}function wn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function Dn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function Nn(){return"undefined"!=typeof process&&!!process.nextTick&&!process.browser&&void 0!==we}var En,Pn=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(Pn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=vt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function u(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||u))}function _(e,t,n){null==e&&l(t,n||_)}function d(e,t,n){for(const r of e)_(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&$e(e,"kind")&&$e(e,"pos")?"SyntaxKind: "+h(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if($e(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const i in e){const t=e[i];"number"==typeof t&&n.push([t,i])}const r=ke(n,((e,t)=>jt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[i,o]of r)if(i===e)return o;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of We(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${h(t.kind)} was unexpected.`,r||e)},e.assert=u,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t<n&&l(`Expected ${t} >= ${n}`,r||e)}
1,e.assertIsDefined=_,e.checkDefined=function e(t,n,r){return _(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&u(void 0===n||C(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${f(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&u(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&u(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${h(t.kind)} should not have passed test '${f(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&u(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&u(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} was not a '${h(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&u(void 0===t,n||"Unexpected node.",(()=>`Node ${h(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${Pc(e.escapedName)}; flags: ${S(e.flags)}; declarations: ${j(e.declarations,(e=>h(e.kind)))} }`},e.formatEnum=m;const g=new Map;function h(e){return m(e,Or,!1)}function y(e){return m(e,Lr,!0)}function v(e){return m(e,Rr,!0)}function b(e){return m(e,zi,!0)}function x(e){return m(e,Vi,!0)}function S(e){return m(e,si,!0)}function T(e){return m(e,_i,!0)}function w(e){return m(e,vi,!0)}function D(e){return m(e,di,!0)}function N(e){return m(e,qr,!0)}e.formatSyntaxKind=h,e.formatSnippetKind=function(e){return m(e,$i,!1)},e.formatScriptKind=function(e){return m(e,Mi,!1)},e.formatNodeFlags=y,e.formatNodeCheckFlags=function(e){return m(e,ui,!0)},e.formatModifierFlags=v,e.formatTransformFlags=b,e.formatEmitFlags=x,e.formatSymbolFlags=S,e.formatTypeFlags=T,e.formatSignatureFlags=w,e.formatObjectFlags=D,e.formatFlowFlags=N,e.formatRelationComparisonResult=function(e){return m(e,jr,!0)},e.formatCheckMode=function(e){return m(e,HB,!0)},e.formatSignatureCheckMode=function(e){return m(e,KB,!0)},e.formatTypeFacts=function(e){return m(e,VB,!0)};let E,P,F=!1;function A(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${N(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,qr,!0)}},__debugToString:{value(){return L(this)}}})}function I(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return F&&("function"==typeof Object.setPrototypeOf?(E||(E=Object.create(Object.prototype),A(E)),Object.setPrototypeOf(e,E)):A(e)),e},e.attachNodeArrayDebugInfo=function(e){F&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Array.prototype),I(P)),Object.setPrototypeOf(e,P)):I(e))},e.enableDebugInfo=function(){if(F)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(sS.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${Ic(this)}'${t?` (${S(t)})`:""}`}},__debugFlags:{get(){return S(this.flags)}}}),Object.defineProperties(sS.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Ic(this.symbol)}'`:""}${t?` (${D(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?D(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(sS.getSignatureConstructor().prototype,{__debugFlags:{get(){return w(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[sS.getNodeConstructor(),sS.getIdentifierConstructor(),sS.getTokenConstructor(),sS.getSourceFileConstructor()];for(const r of n)$e(r.prototype,"__debugKind")||Object.defineProperties(r.prototype,{__tsDebuggerDisplay:{value(){return`${su(this)?"GeneratedIdentifier":nN(this)?`Identifier '${Fc(this)}'`:rN(this)?`PrivateIdentifier '${Fc(this)}'`:BD(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:MD(this)?`NumericLiteral ${this.text}`:jD(this)?`BigIntLiteral ${this.text}n`:vN(this)?"TypeParameterDeclaration":bN(this)?"ParameterDeclaration":DN(this)?"ConstructorDeclaration":NN(this)?"GetAccessorDeclaration":EN(this)?"SetAccessorDeclaration":PN(this)?"CallSignatureDeclaration":FN(this)?"ConstructSignatureDeclaration":AN(this)?"IndexSignatureDeclaration":IN(this)?"TypePredicateNode":ON(this)?"TypeReferenceNode":LN(this)?"FunctionTypeNode":RN(this)?"ConstructorTypeNode":MN(this)?"TypeQueryNode":jN(this)?"TypeLiteralNode":BN(this)?"ArrayTypeNode":JN(this)?"TupleTypeNode":qN(this)?"OptionalTypeNode":zN(this)?"RestTypeNode":$N(this)?"UnionTypeNode":VN(this)?"IntersectionTypeNode":WN(this)?"ConditionalTypeNode":HN(this)?"InferTypeNode":KN(this)?"ParenthesizedTypeNode":GN(this)?"ThisTypeNode":XN(this)?"TypeOperatorNode":QN(this)?"IndexedAccessTypeNode":YN(this)?"MappedTypeNode":ZN(this)?"LiteralTypeNode":UN(this)?"NamedTupleMember":eE(this)?"ImportTypeNode":h(this.kind)}${this.flags?` (${y(this.flags)})`:""}`}},__debugKind:{get(){return h(this.kind)}},__debugNodeFlags:{get(){return y(this.flags)}},__debugModifierFlags:{get(){return v(pb(this))}},__debugTransformFlags:{get(){return b(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Dc(this)}},__debugEmitFlags:{get(){return x(lp(this))}},__debugGetText:{value(e){if(by(this))return"";let n=t.get(this);if(void 0===n){const r=Nc(this),i=r&&Id(r);n=i?rp(i,r,e):"",t.set(this,n)}return n}}});F=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class O{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return k(this.sources,this.targets||j(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return k(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n    ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n    ")}`;default:return p(this)}}}function L(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=2032,c=882,l=Object.create(null),u=[],_=g(e,new Set);for(const T of u)T.text=b(T.flowNode,T.circular),y(T);const d=function e(t){let n=0;for(const r of f(t))n=Math.max(n,e(r));return n+1}(_),p=function(e){const t=S(Array(e),0);for(const n of u)t[n.level]=Math.max(t[n.level],n.text.length);return t}(d);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=f(t);for(let i=0;i<r.length;i++){i>0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=p.length,t=u.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=S(Array(t),""),r=p.map((()=>Array(t))),i=p.map((()=>S(Array(t),0)));for(const a of u){r[a.level][a.lane]=a;const e=f(a);for(let n=0;n<e.length;
1n++){const t=e[n];let r=8;t.lane===a.lane&&(r|=4),n>0&&(r|=1),n<e.length-1&&(r|=2),i[a.level][t.lane]|=r}0===e.length&&(i[a.level][a.lane]|=16);const t=m(a);for(let n=0;n<t.length;n++){const e=t[n];let r=4;n>0&&(r|=1),n<t.length-1&&(r|=2),i[a.level-1][e.lane]|=r}}for(let a=0;a<e;a++)for(let e=0;e<t;e++){const t=a>0?i[a-1][e]:0,n=e>0?i[a][e-1]:0;let r=i[a][e];r||(8&t&&(r|=12),2&n&&(r|=3),i[a][e]=r)}for(let a=0;a<e;a++)for(let t=0;t<n.length;t++){const n=i[a][t],s=4&n?"─":" ",c=r[a][t];c?(o(t,c.text),a<e-1&&(o(t," "),o(t,k(s,p[a]-c.text.length)))):a<e-1&&o(t,k(s,p[a]+1)),o(t,x(n)),o(t,8&n&&a<e-1&&!r[a+1][t]?"─":" ")}return`\n${n.join("\n")}\n`;function o(e,t){n[e]+=t}}();function f(e){const t=[];for(const n of e.edges)n.source===e&&t.push(n.target);return t}function m(e){const t=[];for(const n of e.edges)n.target===e&&t.push(n.source);return t}function g(e,t){const n=r(e);let i=l[n];if(i&&t.has(e))return i.circular=!0,i={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},u.push(i),i;if(t.add(e),!i)if(l[n]=i={id:n,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},u.push(i),12&(o=e).flags&&o.antecedent)for(const r of e.antecedent)h(i,r,t);else(function(e){return!!(e.flags&s)})(e)&&h(i,e.antecedent,t);var o;return t.delete(e),i}function h(e,t,n){const r=g(t,n),i={source:e,target:r};e.edges.push(i),r.edges.push(i)}function y(e){if(-1!==e.level)return e.level;let t=0;for(const n of m(e))t=Math.max(t,y(n)+1);return e.level=t}function v(e){return rp(Id(e),e,!1)}function b(e,t){let n=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(t&&(n=`${n}#${r(e)}`),128&e.flags){const t=[],{switchStatement:r,clauseStart:i,clauseEnd:o}=e.node;for(let e=i;e<o;e++){const n=r.caseBlock.clauses[e];GP(n)?t.push("default"):t.push(v(n.expression))}n+=` (${t.join(", ")})`}else(function(e){return!!(e.flags&c)})(e)&&e.node&&(n+=` (${v(e.node)})`);return"circularity"===t?`Circular(${n})`:n}function x(e){switch(e){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 S(e,t){if(e.fill)e.fill(t);else for(let n=0;n<e.length;n++)e[n]=t;return e}function k(e,t){if(e.repeat)return t>0?e.repeat(t):"";let n="";for(;n.length<t;)n+=e;return n}}e.DebugTypeMapper=O,e.attachDebugPrototypeIfDebug=function(t){return e.isDebugging?Object.setPrototypeOf(t,O.prototype):t},e.printControlFlowGraph=function(e){return console.log(L(e))},e.formatControlFlowGraph=L})(En||(En={}));var Fn=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,An=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,In=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,On=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Ln=/^[a-z0-9-]+$/i,Rn=/^(0|[1-9]\d*)$/,Mn=class e{constructor(e,t=0,n=0,r="",i=""){if("string"==typeof e){const o=En.checkDefined(Bn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:r,build:i}=o)}En.assert(e>=0,"Invalid argument: major"),En.assert(t>=0,"Invalid argument: minor"),En.assert(n>=0,"Invalid argument: patch");const o=r?pt(r)?r:r.split("."):c,a=i?pt(i)?i:i.split("."):c;En.assert(C(o,(e=>In.test(e))),"Invalid argument: prerelease"),En.assert(C(a,(e=>Ln.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=Bn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:jt(this.major,e.major)||jt(this.minor,e.minor)||jt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e[r],i=t[r];
1if(n===i)continue;const o=Rn.test(n),a=Rn.test(i);if(o||a){if(o!==a)return o?-1:1;const e=jt(+n,+i);if(e)return e}else{const e=zt(n,i);if(e)return e}}return jt(e.length,t.length)}(this.prerelease,e.prerelease)}increment(t){switch(t){case"major":return new e(this.major+1,0,0);case"minor":return new e(this.major,this.minor+1,0);case"patch":return new e(this.major,this.minor,this.patch+1);default:return En.assertNever(t)}}with(t){const{major:n=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:a=this.build}=t;return new e(n,r,i,o,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return te(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),te(this.build)&&(e+=`+${this.build.join(".")}`),e}};Mn.zero=new Mn(0,0,0,["0"]);var jn=Mn;function Bn(e){const t=Fn.exec(e);if(!t)return;const[,n,r="0",i="0",o="",a=""]=t;return o&&!An.test(o)||a&&!On.test(a)?void 0:{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(i,10),prerelease:o,build:a}}var Jn=class e{constructor(e){this._alternatives=e?En.checkDefined(Wn(e),"Invalid range spec."):c}static tryParse(t){const n=Wn(t);if(n){const t=new e("");return t._alternatives=n,t}}test(e){return"string"==typeof e&&(e=new jn(e)),function(e,t){if(0===t.length)return!0;for(const n of t)if(Yn(e,n))return!0;return!1}(e,this._alternatives)}toString(){return j(this._alternatives,er).join(" || ")||"*"}},Un=/\|\|/g,qn=/\s+/g,zn=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,$n=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Vn=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function Wn(e){const t=[];for(let n of e.trim().split(Un)){if(!n)continue;const e=[];n=n.trim();const r=$n.exec(n);if(r){if(!Kn(r[1],r[2],e))return}else for(const t of n.split(qn)){const n=Vn.exec(t.trim());if(!n||!Gn(n[1],n[2],e))return}t.push(e)}return t}function Hn(e){const t=zn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new jn(Xn(n)?0:parseInt(n,10),Xn(n)||Xn(r)?0:parseInt(r,10),Xn(n)||Xn(r)||Xn(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function Kn(e,t,n){const r=Hn(e);if(!r)return!1;const i=Hn(t);return!!i&&(Xn(r.major)||n.push(Qn(">=",r.version)),Xn(i.major)||n.push(Xn(i.minor)?Qn("<",i.version.increment("major")):Xn(i.patch)?Qn("<",i.version.increment("minor")):Qn("<=",i.version)),!0)}function Gn(e,t,n){const r=Hn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(Xn(o))"<"!==e&&">"!==e||n.push(Qn("<",jn.zero));else switch(e){case"~":n.push(Qn(">=",i)),n.push(Qn("<",i.increment(Xn(a)?"major":"minor")));break;case"^":n.push(Qn(">=",i)),n.push(Qn("<",i.increment(i.major>0||Xn(a)?"major":i.minor>0||Xn(s)?"minor":"patch")));break;case"<":case">=":n.push(Xn(a)||Xn(s)?Qn(e,i.with({prerelease:"0"})):Qn(e,i));break;case"<=":case">":n.push(Xn(a)?Qn("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):Xn(s)?Qn("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):Qn(e,i));break;case"=":case void 0:Xn(a)||Xn(s)?(n.push(Qn(">=",i.with({prerelease:"0"}))),n.push(Qn("<",i.increment(Xn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Qn("=",i));break;default:return!1}return!0}function Xn(e){return"*"===e||"x"===e||"X"===e}function Qn(e,t){return{operator:e,operand:t}}function Yn(e,t){for(const n of t)if(!Zn(e,n.operator,n.operand))return!1;return!0}function Zn(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return En.assertNever(t)}}function er(e){return j(e,tr).join(" ")}function tr(e){return`${e.operator}${e.operand}`}var nr=function(){const e=function(){if(Nn())try{const{performance:e}=De;return{shouldWriteNativeEvents:!1,performance:e}}catch(e){}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance:performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:n}=e,r={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof n.timeOrigin&&"function"==typeof n.now&&(r.performanceTime=n),r.performanceTime&&"function"==typeof n.mark&&"function"==typeof n.measure&&"function"==typeof n.clearMarks&&"function"==typeof n.clearMeasures&&(r.performance=n),r}(),rr=null==nr?void 0:nr.performanceTime;function ir(){return nr}var or,ar=rr?()=>rr.now():Date.now;try{or=we(null!=(t=Ee.TS_ETW_MODULE_PATH)?t:"./node_modules/@microsoft/typescript-etw")}catch(Fhe){or=void 0}
1var sr,cr,lr=(null==or?void 0:or.logEvent)?or:void 0,ur={};function _r(e,t,n,r){return e?dr(t,n,r):mr}function dr(e,t,n){let r=0;return{enter:function(){1==++r&&xr(t)},exit:function(){0==--r?(xr(n),Sr(e,t,n)):r<0&&En.fail("enter/exit count does not match.")}}}r(ur,{clearMarks:()=>Nr,clearMeasures:()=>Dr,createTimer:()=>dr,createTimerIf:()=>_r,disable:()=>Fr,enable:()=>Pr,forEachMark:()=>wr,forEachMeasure:()=>Cr,getCount:()=>kr,getDuration:()=>Tr,isEnabled:()=>Er,mark:()=>xr,measure:()=>Sr,nullTimer:()=>mr});var pr,fr,mr={enter:vt,exit:vt},gr=!1,hr=ar(),yr=new Map,vr=new Map,br=new Map;function xr(e){var t;if(gr){const n=null!=(t=vr.get(e))?t:0;vr.set(e,n+1),yr.set(e,ar()),null==cr||cr.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function Sr(e,t,n){var r,i;if(gr){const o=null!=(r=void 0!==n?yr.get(n):void 0)?r:ar(),a=null!=(i=void 0!==t?yr.get(t):void 0)?i:hr,s=br.get(e)||0;br.set(e,s+(o-a)),null==cr||cr.measure(e,t,n)}}function kr(e){return vr.get(e)||0}function Tr(e){return br.get(e)||0}function Cr(e){br.forEach(((t,n)=>e(n,t)))}function wr(e){yr.forEach(((t,n)=>e(n)))}function Dr(e){void 0!==e?br.delete(e):br.clear(),null==cr||cr.clearMeasures(e)}function Nr(e){void 0!==e?(vr.delete(e),yr.delete(e)):(vr.clear(),yr.clear()),null==cr||cr.clearMarks(e)}function Er(){return gr}function Pr(e=Eo){var t;return gr||(gr=!0,sr||(sr=ir()),(null==sr?void 0:sr.performance)&&(hr=sr.performance.timeOrigin,(sr.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(cr=sr.performance))),!0}function Fr(){gr&&(yr.clear(),vr.clear(),br.clear(),cr=void 0,gr=!1)}(e=>{let t,n,r=0,i=0;const o=[];let a;const s=[];var c;e.startTracing=function(c,l,u){if(En.assert(!pr,"Tracing already started"),void 0===t)try{t=De}catch(Fhe){throw new Error(`tracing requires having fs\n(original error: ${Fhe.message||Fhe})`)}n=c,o.length=0,void 0===a&&(a=ra(l,"legend.json")),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});const _="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",d=ra(l,`trace${_}.json`),p=ra(l,`types${_}.json`);s.push({configFilePath:u,tracePath:d,typesPath:p}),i=t.openSync(d,"w"),pr=e;const f={cat:"__metadata",ph:"M",ts:1e3*ar(),pid:1,tid:1};t.writeSync(i,"[\n"+[m({name:"process_name",args:{name:"tsc"}},f),m({name:"thread_name",args:{name:"Main"}},f),g(m({name:"TracingStartedInBrowser"},f),{cat:"disabled-by-default-devtools.timeline"})].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){En.assert(pr,"Tracing is not in progress"),En.assert(!!o.length==("server"!==n)),t.writeSync(i,"\n]\n"),t.closeSync(i),pr=void 0,o.length?function(e){var n,r,i,o,a,c,l,u,_,d,f,h,y,v,b,x,S,k,T,C,w,D;xr("beginDumpTypes");const N=s[s.length-1].typesPath,E=t.openSync(N,"w"),P=new Map;t.writeSync(E,"[");const F=e.length;for(let s=0;s<F;s++){const N=e[s],A=N.objectFlags,I=null!=(n=N.aliasSymbol)?n:N.symbol;let O;if(16&A|2944&N.flags)try{O=null==(o=N.checker)?void 0:o.typeToString(N)}catch(Fhe){O=void 0}let L={};if(8388608&N.flags){const e=N;L={indexedAccessObjectType:null==(a=e.objectType)?void 0:a.id,indexedAccessIndexType:null==(c=e.indexType)?void 0:c.id}}let R={};if(4&A){const e=N;R={instantiatedType:null==(l=e.target)?void 0:l.id,typeArguments:null==(u=e.resolvedTypeArguments)?void 0:u.map((e=>e.id)),referenceLocation:p(e.node)}}let M={};if(16777216&N.flags){const e=N;M={conditionalCheckType:null==(_=e.checkType)?void 0:_.id,conditionalExtendsType:null==(d=e.extendsType)?void 0:d.id,conditionalTrueType:null!=(r=null==(f=e.resolvedTrueType)?void 0:f.id)?r:-1,conditionalFalseType:null!=(i=null==(h=e.resolvedFalseType)?void 0:h.id)?i:-1}}let j={};if(33554432&N.flags){const e=N;
1j={substitutionBaseType:null==(y=e.baseType)?void 0:y.id,constraintType:null==(v=e.constraint)?void 0:v.id}}let B={};if(1024&A){const e=N;B={reverseMappedSourceType:null==(b=e.source)?void 0:b.id,reverseMappedMappedType:null==(x=e.mappedType)?void 0:x.id,reverseMappedConstraintType:null==(S=e.constraintType)?void 0:S.id}}let J,U={};if(256&A){const e=N;U={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(k=e.finalArrayType)?void 0:k.id}}const q=N.checker.getRecursionIdentity(N);q&&(J=P.get(q),J||(J=P.size,P.set(q,J)));const z=g(m(m(m(m(m(m({id:N.id,intrinsicName:N.intrinsicName,symbolName:(null==I?void 0:I.escapedName)&&Pc(I.escapedName),recursionId:J,isTuple:!!(8&A)||void 0,unionTypes:1048576&N.flags?null==(T=N.types)?void 0:T.map((e=>e.id)):void 0,intersectionTypes:2097152&N.flags?N.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(C=N.aliasTypeArguments)?void 0:C.map((e=>e.id)),keyofType:4194304&N.flags?null==(w=N.type)?void 0:w.id:void 0},L),R),M),j),B),U),{destructuringPattern:p(N.pattern),firstDeclaration:p(null==(D=null==I?void 0:I.declarations)?void 0:D[0]),flags:En.formatTypeFlags(N.flags).split("|"),display:O});t.writeSync(E,JSON.stringify(z)),s<F-1&&t.writeSync(E,",\n")}t.writeSync(E,"]\n"),t.closeSync(E),xr("endDumpTypes"),Sr("Dump types","beginDumpTypes","endDumpTypes")}(o):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==n&&o.push(e)},(c=e.Phase||(e.Phase={})).Parse="parse",c.Program="program",c.Bind="bind",c.Check="check",c.CheckTypes="checkTypes",c.Emit="emit",c.Session="session",e.instant=function(e,t,n){d("I",e,t,n,'"s":"g"')};const l=[];e.push=function(e,t,n,r=!1){r&&d("B",e,t,n),l.push({phase:e,name:t,args:n,time:1e3*ar(),separateBeginAndEnd:r})},e.pop=function(e){En.assert(l.length>0),_(l.length-1,1e3*ar(),e),l.length--},e.popAll=function(){const e=1e3*ar();for(let t=l.length-1;t>=0;t--)_(t,e);l.length=0};const u=1e4;function _(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=l[e];s?(En.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),d("E",r,i,o,void 0,t)):u-a%u<=t-a&&d("X",r,i,g(m({},o),{results:n}),'"dur":'+(t-a),a)}function d(e,r,o,a,s,c=1e3*ar()){"server"===n&&"checkTypes"===r||(xr("beginTracing"),t.writeSync(i,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${c},"name":"${o}"`),s&&t.writeSync(i,`,${s}`),a&&t.writeSync(i,`,"args":${JSON.stringify(a)}`),t.writeSync(i,"}"),xr("endTracing"),Sr("Tracing","beginTracing","endTracing"))}function p(e){const t=Id(e);return t?{path:t.path,start:n(ss(t,e.pos)),end:n(ss(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(fr||(fr={}));var Ar=fr.startTracing,Ir=fr.dumpLegend,Or=(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.AsteriskA
1steriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="Undef
1inedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.Fu
1nctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.PartiallyEmittedExpression=354]="Parti
1allyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Or||{}),Lr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasA
1syncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Lr||{}),Rr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Rr||{}),Mr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Mr||{}),jr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(jr||{}),Br=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Br||{}),Jr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(Jr||{}),Ur=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Ur||{}),qr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(qr||{}),zr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(zr||{}),$r=class{},Vr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(Vr||{}),Wr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.Re
1solutionDiagnostics=2]="ResolutionDiagnostics",e))(Wr||{}),Hr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Hr||{}),Kr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Kr||{}),Gr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Gr||{}),Xr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Qr||{}),Yr=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Yr||{}),Zr=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Zr||{}),ei=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.NoSyntacticPrinter=-2147483648]="NoSyntacticPrinter",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=1]="AllowUnresolvedNames",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(ei||{}),ti=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(ti||{}),ni=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ni||{}),ri=(e=>
1(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(ri||{}),ii=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(ii||{}),oi=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(oi||{}),ai=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(ai||{}),si=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(si||{}),ci=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Parti
1al",e))(ci||{}),li=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(li||{}),ui=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.LazyFlags=539358128]="LazyFlags",e))(ui||{}),_i=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(_i||{}),di=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(di||{}),pi=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(pi||{}),fi=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(fi||{}),mi=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.Cac
1heSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(mi||{}),gi=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(gi||{}),hi=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(hi||{}),yi=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(yi||{}),vi=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(vi||{}),bi=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(bi||{}),xi=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(xi||{}),Si=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Si||{}),ki=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ki||{}),Ti=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Ti||{}),Ci=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Ci||{}),wi=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(wi||{});function Di(e,t=!0){const n=wi[e.category];return t?n.toLowerCase():n}var Ni=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Ni||{}),Ei=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Ei||{}),Pi=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Pi||{}),Fi=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Fi||{}),Ai=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Ai||{}),Ii=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(Ii||{}),Oi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Oi||{}),Li=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Li||{}),Ri=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Ri||{}),Mi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="Exter
1nal",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Mi||{}),ji=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(ji||{}),Bi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Bi||{}),Ji=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Ji||{}),Ui=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Ui||{}),qi=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(qi||{}),zi=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="Cat
1chClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(zi||{}),$i=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))($i||{}),Vi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Vi||{}),Wi=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Wi||{}),Hi=(e=>(e[e.Classes=2]="Classes",e[e.ForOf=2]="ForOf",e[e.Generators=2]="Generators",e[e.Iteration=2]="Iteration",e[e.SpreadElements=2]="SpreadElements",e[e.RestElements=2]="RestElements",e[e.TaggedTemplates=2]="TaggedTemplates",e[e.DestructuringAssignment=2]="DestructuringAssignment",e[e.BindingPatterns=2]="BindingPatterns",e[e.ArrowFunctions=2]="ArrowFunctions",e[e.BlockScopedVariables=2]="BlockScopedVariables",e[e.ObjectAssign=2]="ObjectAssign",e[e.RegularExpressionFlagsUnicode=2]="RegularExpressionFlagsUnicode",e[e.RegularExpressionFlagsSticky=2]="RegularExpressionFlagsSticky",e[e.Exponentiation=3]="Exponentiation",e[e.AsyncFunctions=4]="AsyncFunctions",e[e.ForAwaitOf=5]="ForAwaitOf",e[e.AsyncGenerators=5]="AsyncGenerators",e[e.AsyncIteration=5]="AsyncIteration",e[e.ObjectSpreadRest=5]="ObjectSpreadRest",e[e.RegularExpressionFlagsDotAll=5]="RegularExpressionFlagsDotAll",e[e.BindinglessCatch=6]="BindinglessCatch",e[e.BigInt=7]="BigInt",e[e.NullishCoalesce=7]="NullishCoalesce",e[e.OptionalChaining=7]="OptionalChaining",e[e.LogicalAssignment=8]="LogicalAssignment",e[e.TopLevelAwait=9]="TopLevelAwait",e[e.ClassFields=9]="ClassFields",e[e.PrivateNamesAndClassStaticBlocks=9]="PrivateNamesAndClassStaticBlocks",e[e.RegularExpressionFlagsHasIndices=9]="RegularExpressionFlagsHasIndices",e[e.ShebangComments=99]="ShebangComments",e[e.UsingAndAwaitUsing=99]="UsingAndAwaitUsing",e[e.ClassAndClassElementDecorators=99]="ClassAndClassElementDecorators",e[e.RegularExpressionFlagsUnicodeSets=99]="RegularExpressionFlagsUnicodeSets",e))(Hi||{}),Ki=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateOb
1ject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Ki||{}),Gi=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Gi||{}),Xi=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Xi||{}),Qi=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Qi||{}),Yi=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Yi||{}),Zi=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Zi||{}),eo={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1}
1,"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},to=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(to||{});function no(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function ro(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var io=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(io||{}),oo=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(oo||{}),ao=new Date(0);function so(e,t){return e.getModifiedTime(t)||ao}function co(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var lo={Low:32,Medium:64,High:256},uo=co(lo),_o=co(lo);function po(e,t,n,r,i){let o=n;for(let a=t.length;r&&a;++n===t.length&&(o<n&&(t.length=o),n=0,o=0),a--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=ho(a,so(e,a.fileName));a.isClosed?t[n]=void 0:(null==i||i(a,n,s),t[n]&&(o<n&&(t[o]=a,t[n]=void 0),o++))}return n}function fo(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:so(e,n)};return t.push(o),_(o,i),{close:()=>{o.isClosed=!0,ln(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,uo[t.pollingInterval]),t.length?p(t.pollingInterval):(En.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return po(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==_o[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,_(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,_(e,250===r?500:2e3))}))}function u(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function _(e,t){u(t).push(e),d(t)}function d(e){u(e).pollScheduled||p(e)}function p(t){u(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",u(t))}}function mo(e,t,n,r){const i=ct(),o=r?new Map:void 0,a=new Map,s=un(t);return function(t,r,c,l){const u=s(t);1===i.add(u,r).length&&o&&o.set(u,n(t)||ao);const _=Go(u)||".",d=a.get(_)||function(t,r,c){const l=e(t,1,((e,r)=>{if(!mt(r))return;const a=aa(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||ao,t.getTime()===i.getTime()))return;t||(t=n(a)||ao),o.set(c,t),i===ao?r=0:t===ao&&(r=2)}for(const e of l)e(a,r,t)}}),!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Go(t)||".",_,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(_)):d.referenceCount--,i.remove(u,r)}}}}function go(e,t,n,r,i){const o=un(t)(n),a=e.get(o);return a?a.callbacks.push(r):e.set(o,{watcher:i(((t,n,r)=>{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&an(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),Bz(t))}}}function ho(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,yo(n,r),t),!0)}function yo(e,t){return 0===e?0:0===t?2:1}var vo=["/node_modules/.","/.git","/.#"],bo=vt;function xo(e){return bo(e)}function So(e){bo=e}function ko({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const l=new Map,u=ct(),_=new Map;let d;const p=$t(!t),f=un(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){var p;const m=f(t);let S=l.get(m);S?S.refCount++:(S={watcher:e(t,(e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=l.get(m))?void 0:r.targetWatcher)||g(t,m,e),b(t,m,n)):function(e,t,n,r){const o=l.get(t);o&&i(e,1)?function(e,t,n,r){const i=_.get(t);i?i.fileNames.push(n):_.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,m,e,n))}),!1,n),refCount:1,childWatches:c,targetWatcher:void 0,links:void 0},l.set(m,S),b(t,m,n)),o&&(null!=(p=S.links)?p:S.links=new Set).add(o);const k=r&&{dirName:t,callback:r};return k&&u.add(m,k),{dirName:t,close:()=>{var e;const t=En.checkDefined(l.get(m));k&&u.remove(m,k),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(l.delete(m),t.links=void 0,Bz(t),v(t),t.childWatches.forEac
1h(Cx))}}}function g(e,t,n,r){var i,o;let a,s;mt(n)?a=n:s=n,u.forEach(((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||fn(t,n)&&t[n.length]===Fo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach((({callback:e})=>e(a)))})),null==(o=null==(i=l.get(t))?void 0:i.links)||o.forEach((t=>{const n=n=>ra(t,ka(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))}))}function h(){var e;d=void 0,xo(`sysLog:: onTimerToUpdateChildWatches:: ${_.size}`);const t=ar(),n=new Map;for(;!d&&_.size;){const t=_.entries().next();En.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;_.delete(r);const s=b(i,r,o);(null==(e=l.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}xo(`sysLog:: invokingWatchers:: Elapsed:: ${ar()-t}ms:: ${_.size}`),u.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:t})=>{pt(r)?r.forEach(e):e(t)}))})),xo(`sysLog:: Elapsed:: ${ar()-t}ms:: onTimerToUpdateChildWatches:: ${_.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=c;for(const n of t)n.close(),y(l.get(f(n.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=l.get(t);if(!a)return!1;const s=sa(o(e));let u,_;return 0===p(s,e)?u=kn(i(e,1)?H(r(e),(t=>{const r=aa(t,e);return x(r,n)||0!==p(r,sa(o(r)))?void 0:r})):c,a.childWatches,((e,t)=>p(e,t.dirName)),(function(e){d(m(e,n))}),Cx,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(u=!1,En.assert(a.childWatches===c)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(Cx),u=!0),a.childWatches=_||c,u;function d(e){(_||(_=[])).push(e)}}function x(e,r){return te(vo,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||Co(e,r,t,n)}}var To=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(To||{});function Co(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(UR(e,null==t?void 0:t.excludeFiles,n,r())||UR(e,null==t?void 0:t.excludeDirectories,n,r()))}function wo(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?sa(ra(e,a)):e;a&&Co(o,n,r,i)||t(o)}}}function Do({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:u,tscWatchFile:_,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,S,k,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,_){return c?F(e,1,wo(e,t,_,a,s),i,500,jz(_)):(k||(k=ko({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:E,realpath:u,setTimeout:n,clearTimeout:r})),k(e,t,i,_))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(_){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return N(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return N(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?N(5,1,e):{watchFile:4}}}(i,d);const o=En.checkDefined(i.watchFile);switch(o){case 0:return P(e,n,250,void 0);case 1:return P(e,n,r,void 0);case 2:return w()(e,n,r,void 0);case 3:return D()(e,n,void 0,void 0);case 4:return F(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||ao),t(e,o!==ao?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,jz(i));case 5:return S||(S=mo(F,a,t,m)),S(e,n,r,jz(i));default:En.assertNever(o)}}function w(){return b||(b=fo({getModifiedTime:t,setTimeout:n}))}function D(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:so(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,ln(t,i)}}};function i(){n=void 0,r=po(e,t,r,uo[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function N(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function E(e,t,n,r){En.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;
1switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=En.checkDefined(i.watchDirectory);switch(o){case 1:return P(e,(()=>t(e)),500,void 0);case 2:return w()(e,(()=>t(e)),500,void 0);case 3:return D()(e,(()=>t(e)),void 0,void 0);case 0:return F(e,1,wo(e,t,r,a,s),n,500,jz(i));default:En.assertNever(o)}}function P(t,n,r,i){return go(h,a,t,n,(n=>e(t,n,r,i)))}function F(e,n,r,s,c,l){return go(s?v:y,a,e,r,(r=>function(e,n,r,a,s,c){let l,u;f&&(l=e.substring(e.lastIndexOf(Fo)),u=l.slice(Fo.length));let _=o(e,n)?p():v();return{close:()=>{_&&(_.close(),_=void 0)}};function d(t){_&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),_.close(),_=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",(()=>{r("rename",""),d(v)})),t}catch(Fhe){return T||(T="ENOSPC"===Fhe.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&tn(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==u&&!tn(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||ao;o&&r(n,o,a),r(n,i,a),f?d(a===ao?v:p):a===ao&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,((n,i,o)=>{0===i&&(o||(o=t(e)||ao),o!==ao&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}function A(e,n,r){let o=t(e)||ao;return i(e,n,((n,i,a)=>{"change"===n&&(a||(a=t(e)||ao),a.getTime()===o.getTime())||(o=a||t(e)||ao,r(n,i,o))}))}}function No(e){const t=e.writeFile;e.writeFile=(n,r,i)=>xv(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}var Eo=(()=>{let e;return Nn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=De,n=De,r=De;let i,o;try{i=De}catch(Fhe){i=void 0}let a="./profile.cpuprofile";const s="darwin"===process.platform,c="linux"===process.platform||s,l=r.platform(),u="win32"!==l&&"win64"!==l&&!k((y=__filename,y.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),_=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,d=__filename.endsWith("sys.js")?n.join(n.dirname(__dirname),"__fake__.js"):__filename,p="win32"===process.platform||s,f=Nt((()=>process.cwd())),{watchFile:m,watchDirectory:g}=Do({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:C,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,p?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:u,getCurrentDirectory:f,fileSystemEntryExists:S,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:e=>x(e).directories,realpath:T,tscWatchFile:Ee.TSC_WATCHFILE,useNonPollingWatchers:!!Ee.TSC_NONPOLLING_WATCHER,tscWatchDirectory:Ee.TSC_WATCHDIRECTORY,inodeWatching:c,fsWatchWithTimestamp:s,sysLog:xo}),h={args:process.argv.slice(2),newLine:r.EOL,useCaseSensitiveFileNames:u,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){var r,i;null==(r=lr)||r.logStartReadFile(e);const o=function(e,n){let r;try{r=t.readFileSync(e)}catch(Fhe){return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e<i;e+=2){const t=r[e];r[e]=r[e+1],r[e+1]=t}return r.toString("utf16le",2)}return i>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(e);return null==(i=lr)||i.logStopReadFile(),o},writeFile:function(e,n,r){var i;let o;null==(i=lr)||i.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{o=t.openSync(e,"w"),t.writeSync(o,n,void 0,"utf8")}finally{void 0!==o&&t.closeSync(o)}},watchFile:m,watchDirectory:g,resolvePath:e=>n.resolve(e),fileExists:k,directoryExists:function(e){return S(e,1)},getAccessibleFileSystemEntries:x,createDirectory(e){if(!h.directoryExists(e))try{t.mkdirSync(e)}catch(Fhe){if("EEXIST"!==Fhe.code)throw Fhe}}
1,getExecutingFilePath:()=>d,getCurrentDirectory:f,getDirectories:function(e){return x(e).directories.slice()},getEnvironmentVariable:e=>Ee[e]||"",readDirectory:function(e,t,n,r,i){return jk(e,t,n,r,u,process.cwd(),i,x,T)},getModifiedTime:C,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(Fhe){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(Fhe){return}},createHash:i?w:no,createSHA256Hash:i?w:void 0,getMemoryUsage:()=>(Te.gc&&Te.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const t=v(e);if(null==t?void 0:t.isFile())return t.size}catch(Fhe){}return 0},exit(e){b((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(o)return t(),!1;const n=De;if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{o=r,a=e,t()}))})),!0},disableCPUProfiler:b,cpuProfilingEnabled:()=>!!o||F(process.execArgv,"--cpu-prof")||F(process.execArgv,"--prof"),realpath:T,debugMode:!!Ee.NODE_INSPECTOR_IPC||!!Ee.VSCODE_INSPECTOR_OPTIONS||te(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{De.install()}catch(Fhe){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("�c")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const n=zM(t,e,h);return{module:we(n),modulePath:n,error:void 0}}catch(n){return{module:void 0,modulePath:void 0,error:n}}}};var y;return h;function v(e){return t.statSync(e,{throwIfNoEntry:!1})}function b(r){if(o&&"stopping"!==o){const i=o;return o.post("Profiler.stop",((s,{profile:c})=>{var l;if(!s){try{(null==(l=v(a))?void 0:l.isDirectory())&&(a=n.join(a,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch(Fhe){}try{t.mkdirSync(n.dirname(a),{recursive:!0})}catch(Fhe){}t.writeFileSync(a,JSON.stringify(function(t){let r=0;const i=new Map,o=ta(n.dirname(d)),a=`file://${1===Ko(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=ta(n.callFrame.url);ba(a,t,u)?n.callFrame.url=wa(a,t,a,un(u),!0):e.test(t)||(n.callFrame.url=(i.has(t)?i:i.set(t,`external${r}.js`)).get(t),r++)}return t}(c)))}o=void 0,i.disconnect(),r()})),o="stopping",!0}return r(),!1}function x(e){var n;null==(n=lr)||n.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){const t=ra(e,n);try{if(o=v(t),!o)continue}catch(Fhe){continue}}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch(Fhe){return TT}}function S(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const n=v(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(Fhe){return!1}finally{Error.stackTraceLimit=n}}function k(e){return S(e,0)}function T(e){try{return _(e)}catch(Fhe){return e}}function C(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=v(e))?void 0:t.mtime}catch(Fhe){return}finally{Error.stackTraceLimit=n}}function w(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&No(e),e})();function Po(e){Eo=e}Eo&&Eo.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,oo);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&co(i?m(m({},r),i):r)}uo=r("TSC_WATCH_POLLINGCHUNKSIZE",lo)||uo,_o=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",lo)||_o}(Eo),En.setAssertionLevel(/^development$/i.test(Eo.getEnvironmentVariable("NODE_ENV"))?1:0)),Eo&&Eo.debugMode&&(En.isDebugging=!0);var Fo="/",Ao="\\",Io="://",Oo=/\\/g;function Lo(e){return 47===e||92===e}function Ro(e){return Ho(e)<0}function Mo(e){return Ho(e)>0}function jo(e){const t=Ho(e);return t>0&&t===e.length}function Bo(e){return 0!==Ho(e)}function Jo(e){return/^\.\.?($|[\\/])/.test(e)}function Uo(e){return!Bo(e)&&!Jo(e)}function qo(e){return Xo(e).includes(".")}function zo(e,t){return e.length>t.length&&tn(e,t)}function $o(e,t){for(const n of t)if(zo(e,n))return!0;return!1}function Vo(e){return e.length>0&&Lo(e.charCodeAt(e.length-1))}function Wo(e){return e>=97&&e<=122||e>=65&&e<=90}function Ho(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?Fo:Ao,2);return n<0?e.length:n+1}if(Wo(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(Io);if(-1!==n){const t=n+Io.length,r=e.indexOf(Fo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);
1if("file"===i&&(""===o||"localhost"===o)&&Wo(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function Ko(e){const t=Ho(e);return t<0?~t:t}function Go(e){const t=Ko(e=ta(e));return t===e.length?e:(e=ua(e)).slice(0,Math.max(t,e.lastIndexOf(Fo)))}function Xo(e,t,n){if(Ko(e=ta(e))===e.length)return"";const r=(e=ua(e)).slice(Math.max(Ko(e),e.lastIndexOf(Fo)+1)),i=void 0!==t&&void 0!==n?Yo(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Qo(e,t,n){if(fn(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Yo(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Qo(e,t,n)||"";for(const r of t){const t=Qo(e,r,n);if(t)return t}return""}(ua(e),t,n?Lt:Rt);const r=Xo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Zo(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(Fo);return r.length&&!Oe(r)&&r.pop(),[n,...r]}(e=ra(t,e),Ko(e))}function ea(e,t){return 0===e.length?"":(e[0]&&_a(e[0]))+e.slice(1,t).join(Fo)}function ta(e){return e.includes("\\")?e.replace(Oo,Fo):e}function na(e){if(!te(e))return[];const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function ra(e,...t){e&&(e=ta(e));for(let n of t)n&&(n=ta(n),e=e&&0===Ko(n)?_a(e)+n:n);return e}function ia(e,...t){return sa(te(t)?ra(e,...t):ta(e))}function oa(e,t){return na(Zo(e,t))}function aa(e,t){return ea(oa(e,t))}function sa(e){if(e=ta(e),!ma.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!ma.test(e)))return e;const n=ea(na(Zo(e)));return n&&Vo(e)?_a(n):n}function ca(e,t){return 0===(n=oa(e,t)).length?"":n.slice(1).join(Fo);var n}function la(e,t,n){return n(Mo(e)?sa(e):aa(e,t))}function ua(e){return Vo(e)?e.substr(0,e.length-1):e}function _a(e){return Vo(e)?e:e+Fo}function da(e){return Bo(e)||Jo(e)?e:"./"+e}function pa(e,t,n,r){const i=void 0!==n&&void 0!==r?Yo(e,n,r):Yo(e);return i?e.slice(0,e.length-i.length)+(fn(t,".")?t:"."+t):e}function fa(e,t){const n=mO(e);return n?e.slice(0,e.length-n.length)+(fn(t,".")?t:"."+t):pa(e,t)}var ma=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function ga(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,Ko(e)),i=t.substring(0,Ko(t)),o=Ut(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!ma.test(a)&&!ma.test(s))return n(a,s);const c=na(Zo(e)),l=na(Zo(t)),u=Math.min(c.length,l.length);for(let _=1;_<u;_++){const e=n(c[_],l[_]);if(0!==e)return e}return jt(c.length,l.length)}function ha(e,t){return ga(e,t,zt)}function ya(e,t){return ga(e,t,Ut)}function va(e,t,n,r){return"string"==typeof n?(e=ra(n,e),t=ra(n,t)):"boolean"==typeof n&&(r=n),ga(e,t,$t(r))}function ba(e,t,n,r){if("string"==typeof n?(e=ra(n,e),t=ra(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=na(Zo(e)),o=na(Zo(t));if(o.length<i.length)return!1;const a=r?Lt:Rt;for(let s=0;s<i.length;s++)if(!(0===s?Lt:a)(i[s],o[s]))return!1;return!0}function xa(e,t,n){const r=n(e),i=n(t);return fn(r,i+"/")||fn(r,i+"\\")}function Sa(e,t,n,r){const i=na(Zo(e)),o=na(Zo(t));let a;for(a=0;a<i.length&&a<o.length&&(0===a?Lt:n)(r(i[a]),r(o[a]));a++);if(0===a)return o;const s=o.slice(a),c=[];for(;a<i.length;a++)c.push("..");return["",...c,...s]}function ka(e,t,n){return En.assert(Ko(e)>0==Ko(t)>0,"Paths must either both be absolute or both be relative"),ea(Sa(e,t,"boolean"==typeof n&&n?Lt:Rt,"function"==typeof n?n:kt))}function Ta(e,t,n){return Mo(e)?wa(t,e,t,n,!1):e}function Ca(e,t,n){return da(ka(Go(e),t,n))}function wa(e,t,n,r,i){const o=Sa(ia(n,e),ia(n,t),Rt,r),a=o[0];if(i&&Mo(a)){const e=a.charAt(0)===Fo?"file://":"file:///";o[0]=e+a}return ea(o)}function Da(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Go(e);if(r===e)return;e=r}}function Na(e){return tn(e,"/node_modules")}function Ea(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var Pa={Unterminated_string_literal:Ea(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:Ea(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:Ea(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:Ea(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:Ea(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:Ea(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:Ea(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:Ea(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:Ea(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:Ea(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:Ea(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:Ea(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:Ea(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:Ea(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:Ea(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:Ea(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:Ea(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:Ea(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:Ea(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:Ea(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:Ea(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:Ea(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:Ea(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}
1' modifier."),_0_modifier_already_seen:Ea(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:Ea(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:Ea(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:Ea(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:Ea(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:Ea(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:Ea(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:Ea(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:Ea(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:Ea(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:Ea(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:Ea(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:Ea(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:Ea(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:Ea(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:Ea(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:Ea(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:Ea(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:Ea(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:Ea(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ea(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:Ea(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:Ea(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:Ea(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:Ea(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:Ea(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:Ea(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:Ea(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:Ea(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:Ea(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:Ea(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:Ea(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_
1signature:Ea(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:Ea(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:Ea(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:Ea(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:Ea(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Ea(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:Ea(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:Ea(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:Ea(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:Ea(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:Ea(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:Ea(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:Ea(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:Ea(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:Ea(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:Ea(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:Ea(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ea(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:Ea(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Ea(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:Ea(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:Ea(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:Ea(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:Ea(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:Ea(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:Ea(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:Ea(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:Ea(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:Ea(1115,1,"A_c
1ontinue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Ea(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:Ea(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:Ea(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:Ea(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:Ea(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:Ea(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:Ea(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:Ea(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:Ea(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:Ea(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:Ea(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:Ea(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:Ea(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:Ea(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:Ea(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:Ea(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:Ea(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:Ea(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:Ea(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:Ea(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:Ea(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:Ea(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:Ea(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:Ea(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:Ea(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:Ea(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:Ea(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:Ea(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:Ea(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:Ea(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:Ea(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:Ea(1155,1,"_
10_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:Ea(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:Ea(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:Ea(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:Ea(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:Ea(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:Ea(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Ea(1165,1,"A_c
1omputed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:Ea(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Ea(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Ea(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Ea(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:Ea(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:Ea(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:Ea(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:Ea(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:Ea(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:Ea(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:Ea(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:Ea(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:Ea(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:Ea(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:Ea(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:Ea(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:Ea(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:Ea(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:Ea(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:Ea(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:Ea(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:Ea(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Ea(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:Ea(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:Ea(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:Ea(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:Ea(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:Ea(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:Ea(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:Ea(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:Ea(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable c
1annot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:Ea(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:Ea(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:Ea(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:Ea(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:Ea(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:Ea(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:Ea(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:Ea(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:Ea(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:Ea(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:Ea(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:Ea(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Ea(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:Ea(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:Ea(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:Ea(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:Ea(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:Ea(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:Ea(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:Ea(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:Ea(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:Ea(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:Ea(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:Ea(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:Ea(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:Ea(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:Ea(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Ea(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Ea(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Ea(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Ea(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:Ea(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:Ea(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:Ea(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:Ea(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:Ea(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:Ea(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:Ea(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:Ea(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:Ea(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:Ea(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:Ea(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:Ea(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:Ea(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:Ea(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:Ea(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:Ea(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:Ea(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:Ea(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:Ea(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:Ea(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:Ea(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:Ea(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:Ea(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:Ea(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}
1' flag"),Keywords_cannot_contain_escape_characters:Ea(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:Ea(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:Ea(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:Ea(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:Ea(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:Ea(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:Ea(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:Ea(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:Ea(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:Ea(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:Ea(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:Ea(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:Ea(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:Ea(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:Ea(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:Ea(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:Ea(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:Ea(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Ea(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Ea(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:Ea(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:Ea(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Ea(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Ea(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Ea(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Ea(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Ea(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Ea(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'exp
1ort' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ea(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Ea(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Ea(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Ea(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Ea(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:Ea(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ea(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:Ea(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:Ea(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:Ea(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:Ea(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:Ea(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:Ea(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:Ea(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:Ea(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_
1can_only_be_used_in_an_ECMAScript_style_module:Ea(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ea(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ea(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ea(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:Ea(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:Ea(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:Ea(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:Ea(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:Ea(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:Ea(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:Ea(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:Ea(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:Ea(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:Ea(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:Ea(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:Ea(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:Ea(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:Ea(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:Ea(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Ea(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:Ea(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:Ea(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:Ea(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:Ea(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:Ea(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:Ea(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:Ea(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with 
1non-simple parameter list."),Non_simple_parameter_declared_here:Ea(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:Ea(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:Ea(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:Ea(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:Ea(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:Ea(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:Ea(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:Ea(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:Ea(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:Ea(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:Ea(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Ea(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:Ea(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:Ea(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Ea(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:Ea(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:Ea(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:Ea(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:Ea(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:Ea(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:Ea(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:Ea(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ea(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:Ea(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:Ea(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Ea(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Ea(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'exp
1ort type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:Ea(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:Ea(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:Ea(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ea(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ea(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ea(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ea(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:Ea(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:Ea(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:Ea(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:Ea(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:Ea(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:Ea(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Ea(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:Ea(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Ea(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:Ea(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:Ea(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:Ea(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:Ea(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:Ea(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:Ea(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:Ea(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:Ea(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:Ea(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:Ea(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:Ea(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:Ea(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:Ea(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:Ea(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:Ea(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:Ea(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:Ea(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:Ea(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:Ea(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:Ea(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:Ea(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:Ea(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:Ea(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:Ea(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:Ea(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:Ea(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:Ea(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:Ea(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:Ea(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for c
1ompilation"),File_is_output_of_project_reference_source_0:Ea(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:Ea(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:Ea(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ea(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Ea(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:Ea(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:Ea(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:Ea(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:Ea(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:Ea(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:Ea(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:Ea(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:Ea(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:Ea(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:Ea(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:Ea(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:Ea(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:Ea(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:Ea(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:Ea(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:Ea(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:Ea(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:Ea(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Ea(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Ea(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:Ea(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Ea(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:Ea(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:Ea(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:Ea(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Ea(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:Ea(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:Ea(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:Ea(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Ea(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Ea(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:Ea(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exp
1orts_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:Ea(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:Ea(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:Ea(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:Ea(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:Ea(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:Ea(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:Ea(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:Ea(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Ea(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Ea(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:Ea(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:Ea(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:Ea(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:Ea(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:Ea(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:Ea(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:Ea(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Ea(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:Ea(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:Ea(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:Ea(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:Ea(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:Ea(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:Ea(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:Ea(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:Ea(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:Ea(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:Ea(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:Ea(1504,1,"
1Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:Ea(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:Ea(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:Ea(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:Ea(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:Ea(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:Ea(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:Ea(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:Ea(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:Ea(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:Ea(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:Ea(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:Ea(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:Ea(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:Ea(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:Ea(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:Ea(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:Ea(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:Ea(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:Ea(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:Ea(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:Ea(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:Ea(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:Ea(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:Ea(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:Ea(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:Ea(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:Ea(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:Ea(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:Ea(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:Ea(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:Ea(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),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:Ea(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","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."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:Ea(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),The_types_of_0_are_incompatible_between_these_types:Ea(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:Ea(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:Ea(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:Ea(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Ea(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Ea(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Ea(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:Ea(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:Ea(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_c
1ompiler_option_to_disambiguate:Ea(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Ea(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:Ea(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:Ea(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:Ea(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ea(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:Ea(2302,1,"
1Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:Ea(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:Ea(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:Ea(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:Ea(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:Ea(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:Ea(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:Ea(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:Ea(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:Ea(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:Ea(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:Ea(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:Ea(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:Ea(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:Ea(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:Ea(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:Ea(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:Ea(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:Ea(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:Ea(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:Ea(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:Ea(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:Ea(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:Ea(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:Ea(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:Ea(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:Ea(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:Ea(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:Ea(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:Ea(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:Ea(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:Ea(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:Ea(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:Ea(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:Ea(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:Ea(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:Ea(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:Ea(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:Ea(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}
1'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:Ea(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:Ea(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:Ea(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:Ea(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:Ea(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:Ea(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:Ea(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:Ea(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:Ea(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:Ea(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:Ea(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:Ea(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:Ea(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:Ea(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:Ea(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:Ea(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Ea(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Ea(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The r
1ight-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:Ea(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:Ea(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:Ea(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:Ea(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:Ea(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:Ea(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:Ea(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:Ea(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:Ea(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:Ea(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:Ea(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Ea(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:Ea(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:Ea(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:Ea(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Ea(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:Ea(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:Ea(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:Ea(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:Ea(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:Ea(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:Ea(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:Ea(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:Ea(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:Ea(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:Ea(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:Ea(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:Ea(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:Ea(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Indiv
1idual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:Ea(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:Ea(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:Ea(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:Ea(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:Ea(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:Ea(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:Ea(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:Ea(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type.  Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Ea(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:Ea(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:Ea(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:Ea(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:Ea(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:Ea(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:Ea(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:Ea(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:Ea(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:Ea(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:Ea(2414,1,"Class_name_cannot_be_0_2414","Class 
1name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:Ea(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:Ea(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:Ea(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:Ea(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:Ea(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:Ea(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:Ea(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Ea(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:Ea(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Ea(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:Ea(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:Ea(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:Ea(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:Ea(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:Ea(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:Ea(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:Ea(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:Ea(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:Ea(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:Ea(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:Ea(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:Ea(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:Ea(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:Ea(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:Ea(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:Ea(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:Ea(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:Ea(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:Ea(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:Ea(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:Ea(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:Ea(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:Ea(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:Ea(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:Ea(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:Ea(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:Ea(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:Ea(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:Ea(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:Ea(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:Ea(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:Ea(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:Ea(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:Ea(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:Ea(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:Ea(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:Ea(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:Ea(2467,1,"A_c
1omputed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:Ea(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:Ea(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:Ea(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:Ea(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:Ea(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:Ea(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:Ea(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:Ea(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Ea(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:Ea(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:Ea(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:Ea(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:Ea(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:Ea(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:Ea(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:Ea(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:Ea(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:Ea(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:Ea(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:Ea(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:Ea(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:Ea(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:Ea(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:Ea(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:Ea(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:Ea(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:Ea(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_c
1ontain_a_binding_pattern:Ea(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:Ea(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:Ea(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ea(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:Ea(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:Ea(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:Ea(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:Ea(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:Ea(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:Ea(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:Ea(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:Ea(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:Ea(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:Ea(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:Ea(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:Ea(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:Ea(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:Ea(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:Ea(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:Ea(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}
1' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:Ea(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:Ea(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:Ea(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:Ea(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:Ea(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:Ea(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:Ea(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:Ea(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:Ea(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:Ea(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:Ea(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:Ea(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:Ea(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:Ea(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:Ea(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:Ea(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:Ea(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:Ea(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:Ea(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:Ea(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:Ea(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that c
1ompiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:Ea(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Ea(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Ea(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Ea(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:Ea(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:Ea(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:Ea(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:Ea(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:Ea(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:Ea(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:Ea(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:Ea(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:Ea(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:Ea(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:Ea(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:Ea(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:Ea(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:Ea(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:Ea(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:Ea(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:Ea(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:Ea(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:Ea(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:Ea(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:Ea(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:Ea(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:Ea(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:Ea(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:Ea(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:Ea(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:Ea(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:Ea(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:Ea(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:Ea(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:Ea(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:Ea(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:Ea(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:Ea(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Ea(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Ea(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Ea(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:Ea(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:Ea(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Ea(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Ea(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Ea(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:Ea(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:Ea(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:Ea(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:Ea(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:Ea(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:Ea(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:Ea(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Ea(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:Ea(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}
1' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:Ea(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:Ea(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:Ea(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:Ea(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Ea(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Ea(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:Ea(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:Ea(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:Ea(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:Ea(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:Ea(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:Ea(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:Ea(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:Ea(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:Ea(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:Ea(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:Ea(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:Ea(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:Ea(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:Ea(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:Ea(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:Ea(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:Ea(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:Ea(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:Ea(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:Ea(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:Ea(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:Ea(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_
1is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:Ea(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:Ea(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:Ea(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:Ea(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:Ea(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:Ea(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:Ea(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:Ea(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:Ea(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:Ea(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:Ea(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:Ea(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:Ea(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:Ea(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:Ea(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:Ea(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:Ea(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:Ea(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:Ea(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Ea(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:Ea(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:Ea(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:Ea(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:Ea(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:Ea(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:Ea(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:Ea(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:Ea(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:Ea(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:Ea(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:Ea(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:Ea(2681,1,"A_c
1onstructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:Ea(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:Ea(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:Ea(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:Ea(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:Ea(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:Ea(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:Ea(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:Ea(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:Ea(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:Ea(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:Ea(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:Ea(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:Ea(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Ea(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:Ea(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:Ea(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:Ea(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Ea(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:Ea(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:Ea(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:Ea(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ea(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:Ea(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:Ea(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:Ea(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:Ea(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:Ea(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Ea(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ea(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:Ea(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:Ea(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:Ea(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:Ea(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Ea(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:Ea(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Ea(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Ea(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}
1' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:Ea(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:Ea(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Ea(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:Ea(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:Ea(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:Ea(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:Ea(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:Ea(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:Ea(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:Ea(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:Ea(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:Ea(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:Ea(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:Ea(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:Ea(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:Ea(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:Ea(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:Ea(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:Ea(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:Ea(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:Ea(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:Ea(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:Ea(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:Ea(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:Ea(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:Ea(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:Ea(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:Ea(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:Ea(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:Ea(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:Ea(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:Ea(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:Ea(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:Ea(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:Ea(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:Ea(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all c
1onstituents of type '{0}' are callable."),Type_0_has_no_call_signatures:Ea(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Ea(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:Ea(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:Ea(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:Ea(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Ea(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:Ea(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:Ea(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_de
1structuring_will_always_send_0:Ea(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:Ea(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:Ea(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:Ea(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:Ea(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:Ea(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:Ea(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:Ea(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:Ea(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:Ea(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:Ea(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:Ea(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:Ea(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Ea(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:Ea(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:Ea(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:Ea(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:Ea(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:Ea(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:Ea(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_
1spread_always_overwrites_this_property:Ea(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:Ea(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:Ea(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:Ea(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:Ea(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:Ea(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:Ea(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Ea(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:Ea(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Ea(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:Ea(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:Ea(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:Ea(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:Ea(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:Ea(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:Ea(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:Ea(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:Ea(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:Ea(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:Ea(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:Ea(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_
1syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:Ea(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:Ea(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:Ea(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:Ea(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:Ea(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Ea(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:Ea(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:Ea(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:Ea(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:Ea(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:Ea(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:Ea(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:Ea(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:Ea(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Ea(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:Ea(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Ea(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:Ea(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:Ea(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:Ea(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Ea(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:Ea(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:Ea(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}
1' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:Ea(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:Ea(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:Ea(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:Ea(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ea(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:Ea(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:Ea(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:Ea(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:Ea(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:Ea(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:Ea(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ea(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ea(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Ea(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:Ea(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Ea(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Ea(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:Ea(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:Ea(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:Ea(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:Ea(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:Ea(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:Ea(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:Ea(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Ea(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Ea(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:Ea(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:Ea(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:Ea(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:Ea(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:Ea(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Ea(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Ea(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Ea(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Ea(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Ea(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:Ea(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:Ea(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Ea(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:Ea(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:Ea(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Ea(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:Ea(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:Ea(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:Ea(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:Ea(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:Ea(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ea(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),R
1eturn_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:Ea(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:Ea(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:Ea(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:Ea(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:Ea(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ea(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Ea(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:Ea(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ea(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Ea(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:Ea(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:Ea(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ea(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Ea(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:Ea(4060,
11,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:Ea(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Ea(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Ea(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Ea(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Ea(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Ea(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Ea(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:Ea(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:Ea(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:Ea(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:Ea(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Ea(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:Ea(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:Ea(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}
1'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:Ea(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:Ea(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:Ea(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:Ea(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:Ea(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:Ea(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:Ea(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:Ea(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Ea(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:Ea(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:Ea(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_
1signature_so_it_must_be_accessed_with_0:Ea(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:Ea(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:Ea(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:Ea(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ea(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:Ea(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Ea(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:Ea(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ea(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ea(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Ea(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Ea(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Ea(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Ea(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:Ea(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:Ea(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_412
16","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:Ea(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:Ea(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Ea(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:Ea(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:Ea(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:Ea(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:Ea(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:Ea(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:Ea(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:Ea(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:Ea(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:Ea(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:Ea(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:Ea(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:Ea(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:Ea(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:Ea(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:Ea(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:Ea(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:Ea(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:Ea(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:Ea(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:Ea(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:Ea(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}
1'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Ea(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:Ea(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:Ea(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:Ea(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:Ea(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:Ea(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:Ea(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:Ea(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:Ea(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:Ea(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:Ea(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:Ea(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:Ea(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:Ea(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:Ea(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:Ea(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:Ea(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:Ea(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:Ea(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:Ea(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:Ea(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:Ea(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:Ea(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:Ea(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:Ea(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:Ea(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled 
1when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:Ea(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:Ea(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:Ea(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:Ea(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:Ea(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:Ea(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:Ea(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:Ea(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:Ea(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:Ea(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:Ea(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:Ea(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:Ea(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:Ea(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:Ea(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:Ea(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:Ea(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:Ea(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:Ea(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:Ea(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:Ea(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:Ea(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:Ea(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:Ea(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:Ea(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:Ea(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:Ea(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:Ea(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:Ea(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:Ea(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:Ea(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:Ea(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:Ea(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:Ea(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:Ea(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:Ea(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:Ea(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:Ea(6024,3,"options_6024","options"),file:Ea(6025,3,"file_6025","file"),Examples_Colon_0:Ea(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:Ea(6027,3,"Options_Colon_6027","Options:"),Version_0:Ea(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:Ea(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:Ea(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:Ea(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:Ea(6034,3,"KIND_6034","KIND"),FILE:Ea(6035,3,"FILE_6035","FILE"),VERSION:Ea(6036,3,"VERSION_6036","VERSION"),LOCATION:Ea(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:Ea(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:Ea(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:Ea(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:Ea(6041,3,"Errors_Files_6041","Errors  Files"),Generates_corresponding_map_file:Ea(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:Ea(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:Ea(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:Ea(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:Ea(6048,1,"L
1ocale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:Ea(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:Ea(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:Ea(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:Ea(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:Ea(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:Ea(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:Ea(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:Ea(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:Ea(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:Ea(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:Ea(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:Ea(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:Ea(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:Ea(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:Ea(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:Ea(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:Ea(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:Ea(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:Ea(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:Ea(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:Ea(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:Ea(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:Ea(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:Ea(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:Ea(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:Ea(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:Ea(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:Ea(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:Ea(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:Ea(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:Ea(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:Ea(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:Ea(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:Ea(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:Ea(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:Ea(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:Ea(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}
1'."),Resolving_module_name_0_relative_to_base_url_1_2:Ea(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:Ea(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:Ea(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:Ea(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:Ea(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:Ea(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:Ea(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:Ea(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:Ea(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:Ea(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:Ea(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:Ea(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:Ea(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:Ea(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:Ea(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:Ea(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:Ea(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:Ea(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:Ea(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:Ea(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:Ea(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:Ea(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:Ea(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:Ea(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:Ea(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:Ea(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:Ea(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:Ea(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:Ea(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:Ea(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:Ea(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:Ea(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:Ea(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}
1'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:Ea(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:Ea(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:Ea(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:Ea(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:Ea(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:Ea(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:Ea(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:Ea(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:Ea(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:Ea(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:Ea(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:Ea(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:Ea(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:Ea(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:Ea(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:Ea(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:Ea(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:Ea(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:Ea(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:Ea(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
1:Ea(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:Ea(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:Ea(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:Ea(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:Ea(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:Ea(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:Ea(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:Ea(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:Ea(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:Ea(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:Ea(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:Ea(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:Ea(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:Ea(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:Ea(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:Ea(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:Ea(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:Ea(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:Ea(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:Ea(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:Ea(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:Ea(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:Ea(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ea(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}
1'."),Enable_strict_checking_of_function_types:Ea(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:Ea(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:Ea(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:Ea(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:Ea(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:Ea(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:Ea(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:Ea(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:Ea(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:Ea(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:Ea(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:Ea(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:Ea(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:Ea(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:Ea(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:Ea(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:Ea(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:Ea(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:Ea(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:Ea(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:Ea(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:Ea(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:Ea(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:Ea(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:Ea(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:Ea(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:Ea(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_str
1ict_bind_call_and_apply_methods_on_functions:Ea(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:Ea(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:Ea(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:Ea(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:Ea(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:Ea(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:Ea(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:Ea(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:Ea(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:Ea(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:Ea(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:Ea(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:Ea(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:Ea(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:Ea(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:Ea(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:Ea(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:Ea(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:Ea(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_
1is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:Ea(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:Ea(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:Ea(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:Ea(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:Ea(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:Ea(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:Ea(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:Ea(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:Ea(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:Ea(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:Ea(6244,3,"Modules_6244","Modules"),File_Management:Ea(6245,3,"File_Management_6245","File Management"),Emit:Ea(6246,3,"Emit_6246","Emit"),JavaScript_Support:Ea(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:Ea(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:Ea(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:Ea(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:Ea(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:Ea(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:Ea(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:Ea(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:Ea(6255,3,"Projects_6255","Projects"),Output_Formatting:Ea(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:Ea(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:Ea(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:Ea(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:Ea(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:Ea(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:Ea(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:Ea(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:Ea(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_ski
1pping_lookup_in_node_modules_folder:Ea(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:Ea(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:Ea(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Ea(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:Ea(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:Ea(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:Ea(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:Ea(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Ea(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:Ea(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:Ea(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:Ea(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:Ea(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDepen
1dencies_field:Ea(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:Ea(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:Ea(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:Ea(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:Ea(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:Ea(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:Ea(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:Ea(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:Ea(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:Ea(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:Ea(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:Ea(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:Ea(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:Ea(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:Ea(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:Ea(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:Ea(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:Ea(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:Ea(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:Ea(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:Ea(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:Ea(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:Ea(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:Ea(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:Ea(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:Ea(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:Ea(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:Ea(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:Ea(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}
1'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:Ea(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:Ea(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:Ea(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:Ea(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Ea(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Ea(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Ea(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:Ea(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:Ea(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:Ea(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:Ea(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ea(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ea(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:Ea(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Ea(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Ea(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Ea(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Ea(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Ea(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Ea(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:Ea(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:Ea(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than 
1input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:Ea(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:Ea(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:Ea(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:Ea(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:Ea(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:Ea(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:Ea(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:Ea(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:Ea(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:Ea(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:Ea(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:Ea(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:Ea(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:Ea(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:Ea(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:Ea(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:Ea(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:Ea(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:Ea(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:Ea(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:Ea(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:Ea(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:Ea(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:Ea(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:Ea(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:Ea(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:Ea(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:Ea(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:Ea(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:Ea(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:Ea(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Ea(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:Ea(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:Ea(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:Ea(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:Ea(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:Ea(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:Ea(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:Ea(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:Ea(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:Ea(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:Ea(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:Ea(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:Ea(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:Ea(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:Ea(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:Ea(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","
1Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:Ea(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:Ea(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:Ea(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:Ea(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:Ea(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:Ea(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:Ea(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:Ea(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:Ea(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:Ea(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:Ea(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:Ea(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:Ea(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:Ea(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:Ea(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:Ea(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:Ea(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:Ea(6641,3,"Specify_a_list_of_glob_patterns_that_match_f
1iles_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:Ea(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:Ea(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:Ea(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:Ea(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:Ea(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:Ea(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:Ea(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:Ea(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:Ea(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:Ea(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:Ea(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:Ea(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:Ea(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:Ea(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:Ea(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:Ea(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:Ea(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:Ea(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:Ea(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:Ea(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:Ea(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:Ea(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:Ea(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:Ea(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:Ea(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_c
1odepaths_that_do_not_explicitly_return_in_a_function:Ea(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:Ea(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:Ea(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:Ea(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:Ea(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:Ea(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:Ea(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:Ea(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:Ea(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:Ea(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:Ea(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:Ea(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:Ea(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:Ea(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:Ea(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:Ea(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:Ea(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:Ea(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:Ea(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:Ea(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:Ea(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:Ea(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:Ea(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:Ea(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:Ea(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:Ea(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:Ea(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:Ea(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:Ea(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:Ea(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:Ea(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:Ea(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:Ea(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:Ea(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:Ea(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_
1signatures:Ea(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:Ea(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:Ea(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:Ea(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:Ea(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:Ea(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:Ea(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:Ea(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:Ea(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:Ea(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:Ea(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:Ea(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:Ea(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:Ea(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:Ea(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Default_catch_clause_variables_as_unknown_instead_of_any:Ea(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:Ea(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:Ea(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),one_of_Colon:Ea(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:Ea(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:Ea(6902,3,"type_Colon_6902","type:"),default_Colon:Ea(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:Ea(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:Ea(6905,3,"fal
1se_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:Ea(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:Ea(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:Ea(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:Ea(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:Ea(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:Ea(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:Ea(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:Ea(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:Ea(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:Ea(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:Ea(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:Ea(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:Ea(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:Ea(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:Ea(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:Ea(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:Ea(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:Ea(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:Ea(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:Ea(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:Ea(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:Ea(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:Ea(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:Ea(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:Ea(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:Ea(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:Ea(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:Ea(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:Ea(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:Ea(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Ea(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Ea(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:Ea(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Ea(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Ea(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}
1' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:Ea(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:Ea(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:Ea(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:Ea(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:Ea(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Ea(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:Ea(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Ea(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Ea(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Ea(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:Ea(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:Ea(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:Ea(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:Ea(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:Ea(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:Ea(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:Ea(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:Ea(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:Ea(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:Ea(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:Ea(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:Ea(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:Ea(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import 
1cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:Ea(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:Ea(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:Ea(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:Ea(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Ea(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Ea(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Ea(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:Ea(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ea(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:Ea(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:Ea(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:Ea(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:Ea(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:Ea(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}
1'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:Ea(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:Ea(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Ea(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:Ea(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:Ea(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:Ea(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:Ea(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:Ea(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:Ea(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:Ea(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:Ea(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:Ea(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:Ea(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:Ea(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:Ea(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:Ea(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:Ea(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:Ea(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:Ea(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:Ea(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:Ea(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:Ea(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:Ea(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:Ea(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:Ea(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:Ea(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:Ea(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:Ea(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:Ea(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:Ea(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:Ea(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:Ea(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Ea(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:Ea(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:Ea(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:Ea(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:Ea(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:Ea(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:Ea(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JS
1Doc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:Ea(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:Ea(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:Ea(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:Ea(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:Ea(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:Ea(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:Ea(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Ea(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:Ea(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:Ea(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:Ea(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:Ea(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:Ea(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:Ea(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:Ea(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:Ea(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:Ea(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:Ea(9016,
11,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:Ea(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:Ea(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:Ea(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:Ea(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:Ea(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:Ea(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:Ea(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:Ea(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:Ea(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:Ea(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:Ea(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:Ea(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:Ea(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:Ea(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:Ea(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:Ea(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:Ea(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:Ea(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_
1in_default_export_to_a_variable_and_add_a_type_annotation_to_it:Ea(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:Ea(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:Ea(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:Ea(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:Ea(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:Ea(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:Ea(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:Ea(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:Ea(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Ea(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Ea(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:Ea(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:Ea(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:Ea(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:Ea(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:Ea(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:Ea(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:Ea(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:Ea(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Ea(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_
1is_required_when_using_an_jsx_pragma_with_JSX_fragments:Ea(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:Ea(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Ea(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Ea(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:Ea(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:Ea(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:Ea(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}
1' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:Ea(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:Ea(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:Ea(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:Ea(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:Ea(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:Ea(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:Ea(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:Ea(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:Ea(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:Ea(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:Ea(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:Ea(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:Ea(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:Ea(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:Ea(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:Ea(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:Ea(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:Ea(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:Ea(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:Ea(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:Ea(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:Ea(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:Ea(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:Ea(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:Ea(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:Ea(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:Ea(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:Ea(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:Ea(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:Ea(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:Ea(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:Ea(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:Ea(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:Ea(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:Ea(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:Ea(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:Ea(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:Ea(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:Ea(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:Ea(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:Ea(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:Ea(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:Ea(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:Ea(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:Ea(90038,3,"Declare_private_method_0_90038","Declare private method '{0}
1'"),Remove_unused_destructuring_declaration:Ea(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:Ea(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:Ea(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:Ea(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:Ea(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:Ea(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:Ea(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:Ea(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:Ea(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:Ea(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:Ea(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:Ea(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:Ea(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:Ea(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:Ea(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:Ea(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:Ea(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:Ea(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:Ea(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:Ea(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:Ea(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:Ea(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:Ea(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:Ea(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:Ea(95005,3,"Extract_function_95005","Extract function"),Extract_constant:Ea(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:Ea(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:Ea(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:Ea(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:Ea(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:Ea(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:Ea(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:Ea(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:Ea(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:Ea(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:Ea(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:Ea(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:Ea(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:Ea(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:Ea(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:Ea(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:Ea(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:Ea(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:Ea(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:Ea(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializer
1s_to_all_uninitialized_properties:Ea(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:Ea(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:Ea(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:Ea(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:Ea(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:Ea(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:Ea(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:Ea(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:Ea(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:Ea(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:Ea(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:Ea(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:Ea(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:Ea(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:Ea(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:Ea(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:Ea(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:Ea(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:Ea(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:Ea(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:Ea(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:Ea(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_
1new_file:Ea(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:Ea(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:Ea(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:Ea(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:Ea(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:Ea(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:Ea(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:Ea(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:Ea(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:Ea(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:Ea(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:Ea(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:Ea(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:Ea(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:Ea(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:Ea(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:Ea(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:Ea(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:Ea(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:Ea(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:Ea(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:Ea(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:Ea(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:Ea(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:Ea(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:Ea(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:Ea(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:Ea(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:Ea(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:Ea(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:Ea(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:Ea(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:Ea(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:Ea(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:Ea(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:Ea(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:Ea(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:Ea(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:Ea(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in y
1our configuration file"),Add_await_to_initializers:Ea(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:Ea(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:Ea(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:Ea(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:Ea(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:Ea(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:Ea(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:Ea(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:Ea(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:Ea(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:Ea(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:Ea(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:Ea(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:Ea(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:Ea(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:Ea(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:Ea(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:Ea(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:Ea(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:Ea(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:Ea(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:Ea(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:Ea(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:Ea(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:Ea(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:Ea(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:Ea(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:Ea(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:Ea(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:Ea(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:Ea(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:Ea(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:Ea(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:Ea(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:Ea(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:Ea(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:Ea(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:Ea(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:Ea(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:Ea(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:Ea(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:Ea(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:Ea(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:Ea(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:Ea(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:Ea(95136,3,"Name_is_not_valid_95136","Name is not val
1id"),Can_only_convert_property_with_modifier:Ea(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:Ea(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:Ea(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:Ea(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:Ea(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:Ea(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:Ea(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:Ea(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:Ea(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:Ea(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:Ea(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:Ea(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:Ea(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:Ea(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:Ea(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:Ea(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:Ea(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:Ea(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:Ea(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:Ea(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:Ea(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:Ea(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:Ea(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:Ea(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:Ea(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:Ea(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:Ea(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:Ea(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:Ea(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:Ea(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:Ea(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:Ea(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:Ea(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),C
1onvert_named_imports_to_default_import:Ea(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:Ea(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:Ea(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:Ea(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:Ea(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:Ea(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:Ea(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:Ea(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:Ea(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:Ea(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:Ea(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:Ea(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:Ea(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:Ea(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:Ea(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:Ea(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:Ea(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:Ea(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:Ea(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:Ea(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:Ea(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:Ea(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:Ea(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:Ea(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:Ea(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:Ea(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Ea(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:Ea(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:Ea(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:Ea(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:Ea(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:Ea(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:Ea(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:Ea(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:Ea(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:Ea(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:Ea(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:Ea(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:Ea(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:Ea(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:Ea(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:Ea(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:Ea(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:Ea(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:Ea(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_c
1ontain_private_identifiers:Ea(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:Ea(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:Ea(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:Ea(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:Ea(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:Ea(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:Ea(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:Ea(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:Ea(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:Ea(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:Ea(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:Ea(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:Ea(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:Ea(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:Ea(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:Ea(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:Ea(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:Ea(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:Ea(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:Ea(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:Ea(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:Ea(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_
1static_block:Ea(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:Ea(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:Ea(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")};function Fa(e){return e>=80}function Aa(e){return 32===e||Fa(e)}var Ia={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Oa=new Map(Object.entries(Ia)),La=new Map(Object.entries(g(m({},Ia),{"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62}))),Ra=new Map(Object.entries({d:1,g:2,i:4,m:8,s:16,u:32,v:64,y:128})),Ma=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),ja=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11
1742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ba=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11
1742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ja=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,5
15291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Ua=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11
1742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,12
11344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],qa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,za=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,$a=/@(?:see|link)/i;function Va(e,t){if(e<t[0])return!1;let n,r=0,i=t.length;for(;r+1<i;){if(n=r+(i-r)/2,n-=n%2,t[n]<=e&&e<=t[n+1])return!0;e<t[n]?i=n:r=n+2}return!1}function Wa(e,t){return Va(e,t>=2?Ja:ja)}function Ha(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var Ka=Ha(La);function Ga(e){return Ka[e]}function Xa(e){return La.get(e)}var Qa=Ha(Ra);function Ya(e){return Qa[e]}function Za(e){return Ra.get(e)}function es(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e.charCodeAt(n);switch(n++,i){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:i>127&&us(i)&&(t.push(r),r=n)}}return t.push(r),t}function ts(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ns(rs(e),t,n,e.text,r)}function ns(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:En.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?A(e,es(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t<e.length-1?En.assert(o<e[t+1]):void 0!==r&&En.assert(o<=r.length),o)}function rs(e){return e.lineMap||(e.lineMap=es(e.text))}function is(e,t){const n=os(e,t);return{line:n,character:t-e[n]}}function os(e,t,n){let r=Je(e,t,kt,jt,n);return r<0&&(r=~r-1,En.assert(-1!==r,"position cannot precede the beginning of the file")),r}function as(e,t,n){if(t===n)return 0;const r=rs(e),i=Math.min(t,n),o=i===n,a=o?t:n,s=os(r,i),c=os(r,a,s);return o?s-c:c-s}function ss(e,t){return is(rs(e),t)}function cs(e){return ls(e)||us(e)}function ls(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function us(e){return 10===e||13===e||8232===e||8233===e}function _s(e){return e>=48&&e<=57}function ds(e){return _s(e)||e>=65&&e<=70||e>=97&&e<=102}function ps(e){return e>=65&&e<=90||e>=97&&e<=122}function fs(e){return ps(e)||_s(e)||95===e}function ms(e){return e>=48&&e<=55}function gs(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function hs(e,t,n,r,i){if(hT(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!us(e.charCodeAt(t));)t++;o=!1;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(vs(e,t)){t=bs(e,t),o=!1;continue}break;case 35:if(0===t&&Ss(e,t)){t=ks(e,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(a>127&&cs(a)){t++;continue}}return t}}var ys=7;function vs(e,t){if(En.assert(t>=0),0===t||us(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+ys<e.length){for(let r=0;r<ys;r++)if(e.charCodeAt(t+r)!==n)return!1;return 61===n||32===e.charCodeAt(t+ys)}}return!1}function bs(e,t,n){n&&n(Pa.Merge_conflict_marker_encountered,t,ys);const r=e.charCodeAt(t),i=e.length;if(60===r||62===r)for(;t<i&&!us(e.charCodeAt(t));)t++;else for(En.assert(124===r||61===r);t<i;){const n=e.charCodeAt(t);if((61===n||62===n)&&n!==r&&vs(e,t))break;t++}return t}var xs=/^#!.*/;function Ss(e,t){return En.assert(0===t),xs.test(e)}function ks(e,t){return t+=xs.exec(e)[0].length}function Ts(e,t,n,r,i,o,a){let s,c,l,u,_=!1,d=r,p=a;if(0===n){d=!0;const e=As(t);e&&(n=e.length)}e:for(;n>=0&&n<t.length;){const a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;d=!0,_&&(u=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:const f=t.charCodeAt(n+1);let m=!1;if(47===f||42===f){const r=47===f?2:3,a=n;if(n+=2,47===f)for(;n<t.length;){if(us(t.charCodeAt(n))){m=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(d){if(_&&(p=i(s,c,l,u,o,p),!e&&p))return p;s=a,c=n,l=r,u=m,_=!0}continue}break e;default:if(a>127&&cs(a)){_&&us(a)&&(u=!0),n++;continue}break e}}return _&&(p=i(s,c,l,u,o,p)),p}function Cs(e,t,n,r){return Ts(!1,e,t,!1,n,r)}function ws(e,t,n,r){return Ts(!1,e,t,!0,n,r)}function Ds(e,t,n,r,i){return Ts(!0,e,t,!1,n,r,i)}function Ns(e,t,n,r,i){return Ts(!0,e,t,!0,n,r,i)}function Es(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function Ps(e,t){return Ds(e,t,Es,void 0,void 0)}function Fs(e,t){return Ns(e,t,Es,void 0,void 0)}function As(e){const t=xs.exec(e);if(t)return t[0]}function Is(e,t){return ps(e)||36===e||95===e||e>127&&Wa(e,t)}function Os(e,t,n){return fs(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Va(e,t>=2?Ua:Ba)}(e,t)}function Ls(e,t,n){let r=Ms(e,0);if(!Is(r,t))return!1;for(let i=js(r);i<e.length;i+=js(r))if(!Os(r=Ms(e,i),t,n))return!1;return!0}function Rs(e,t,n=0,r,i,o,a){var s,c,l,u,_,p,f,m,g=r,h=0,y=0,v=0;Q(g,o,a);var b={getTokenFullStart:()=>l,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>_,getTokenStart:()=>u,getTokenPos:()=>u,getTokenText:()=>g.substring(u,s),getTokenValue:()=>p,hasUnicodeEscape:()=>!!(1024&f),hasExtendedUnicodeEscape:()=>!!(8&f),hasPrecedingLineBreak:()=>!!(1&f),hasPrecedingJSDocComment:()=>!!(2&f),isIdentifier:()=>80===_||_>118,isReservedWord:()=>_>=83&&_<=118,isUnterminated:()=>!!(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===_){if(62===S(s))return 62===S(s+1)?61===S(s+2)?(s+=3,_=73):(s+=2,_=50):61===S(s+1)?(s+=2,_=72):(s++,_=49);if(61===S(s))return s++,_=34}return _},reScanAsteriskEqualsToken:function(){return En.assert(67===_,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=u+1,_=64}
1,reScanSlashToken:function(t){if(44===_||69===_){const n=u+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=k(s);if(-1===e||us(e)){f|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==k(s+1)||60!==k(s+2)||61===k(s+3)||33===k(s+3)||(i=!0)}s++}const l=s;if(4&f){s=n,r=!1;let e=0,t=!1,i=0;for(;s<l;){const n=S(s);if(r)r=!1;else if(92===n)r=!0;else if(91===n)e++;else if(93===n&&e)e--;else if(!e)if(123===n)t=!0;else if(125===n&&t)t=!1;else if(!t)if(40===n)i++;else if(41===n&&i)i--;else if(41===n||93===n||125===n)break;s++}for(;cs(k(s-1))||59===k(s-1);)s--;T(Pa.Unterminated_regular_expression_literal,u,s-u)}else{s++;let r=0;for(;;){const n=k(s);if(-1===n||!Os(n,e))break;if(t){const e=Za(String.fromCharCode(n));void 0===e?T(Pa.Unknown_regular_expression_flag,s,1):r&e?T(Pa.Duplicate_regular_expression_flag,s,1):96&~(r|e)?(r|=e,$(e,s)):T(Pa.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,s,1)}s++}t&&X(n,l-n,(()=>{!function(t,n,r){var i,a,l,_,f=!!(64&t),m=!!(96&t),h=m||!n,y=!1,v=0,b=[];function C(e){for(;;){if(b.push(_),_=void 0,w(e),_=b.pop(),124!==k(s))return;s++}}function w(t){let n=!1;for(;;){const r=s,i=k(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(k(++s)){case 98:case 66:s++,n=!1;break;default:E(),n=!0}break;case 40:if(63===k(++s))switch(k(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(k(++s)){case 61:case 33:s++,n=!1;break;default:A(!1),H(62),e<5&&T(Pa.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=D(0);45===k(s)&&(s++,D(i),s===r+1&&T(Pa.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),H(58),n=!0}else v++,n=!0;C(!0),H(41);break;case 123:const o=++s;N();const a=p;if(!h&&!a){n=!0;break}if(44===k(s)){s++,N();const e=p;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===k(s))&&T(Pa.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==k(s)){T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}T(Pa.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==k(s)){if(!h){n=!0;break}T(Pa._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===k(++s)&&s++,n||T(Pa.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,f?R():L(),H(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:W(),n=!0}}}function D(t){for(;;){const n=k(s);if(-1===n||!Os(n,e))break;const r=Za(String.fromCharCode(n));void 0===r?T(Pa.Unknown_regular_expression_flag,s,1):t&r?T(Pa.Duplicate_regular_expression_flag,s,1):28&r?(t|=r,$(r,s)):T(Pa.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,1),s++}return t}function E(){switch(En.assertEqual(S(s-1),92),k(s)){case 107:60===k(++s)?(s++,A(!0),H(62)):(h||r)&&T(Pa.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,T(Pa.q_is_only_available_inside_character_class,s-2,2);break}default:En.assert(q()||P()||F(!0))}}function P(){En.assertEqual(S(s-1),92);const e=k(s);if(e>=49&&e<=57){const e=s;return N(),l=fe(l,{pos:e,end:s,value:+p}),!0}return!1}function F(e){En.assertEqual(S(s-1),92);let t=k(s);switch(t){case-1:return T(Pa.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=k(++s),ps(t))return s++,String.fromCharCode(31&t);if(h)T(Pa.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,I(12|(m?16:0)|(e?32:0))}}function A(t){var n;En.assertEqual(S(s-1),60),u=s,z((n=s)>=0&&n<c?x(n):-1,e),s===u?T(Pa.Expected_a_capturing_group_name):t?a=fe(a,{pos:u,end:s,name:p}):(null==_?void 0:_.has(p))||b.some((e=>null==e?void 0:e.has(p)))?T(Pa.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,u,s-u):(null!=_||(_=new Set),_.add(p),null!=i||(i=new Set),i.add(p))}function O(e){return 93===e||-1===e||s>=c}function L(){for(En.assertEqual(S(s-1),91),94===k(s)&&s++;;
1){if(O(k(s)))return;const e=s,t=U();if(45===k(s)){if(O(k(++s)))return;!t&&h&&T(Pa.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=U();if(!r&&h){T(Pa.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=Ms(t,0),o=Ms(r,0);t.length===js(i)&&r.length===js(o)&&i>o&&T(Pa.Range_out_of_order_in_character_class,e,s-e)}}}function R(){En.assertEqual(S(s-1),91);let e=!1;94===k(s)&&(s++,e=!0);let t=!1,n=k(s);if(O(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":T(Pa.Expected_a_class_set_operand),y=!1;break;default:r=j()}switch(k(s)){case 45:if(45===k(s+1))return e&&y&&T(Pa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,M(3),void(y=!e&&t);break;case 38:if(38===k(s+1))return M(2),e&&y&&T(Pa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&T(Pa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=k(s),-1!==n;){switch(n){case 45:if(n=k(++s),O(n))return void(y=!e&&t);if(45===n){s++,T(Pa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||T(Pa.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=j();if(e&&y&&T(Pa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){T(Pa.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=Ms(r,0),c=Ms(o,0);r.length===js(a)&&o.length===js(c)&&a>c&&T(Pa.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===k(++s)?(s++,T(Pa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===k(s)&&(T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(O(k(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":T(Pa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=j()}}y=!e&&t}function M(e){let t=y;for(;;){let n=k(s);if(O(n))break;switch(n){case 45:45===k(++s)?(s++,3!==e&&T(Pa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):T(Pa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===k(++s)?(s++,2!==e&&T(Pa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===k(s)&&(T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:T(Pa._0_expected,s,0,"--");break;case 2:T(Pa._0_expected,s,0,"&&")}}if(n=k(s),O(n)){T(Pa.Expected_a_class_set_operand);break}j(),t&&(t=y)}y=t}function j(){switch(y=!1,k(s)){case-1:return"";case 91:return s++,R(),H(93),"";case 92:if(s++,q())return"";if(113===k(s))return 123===k(++s)?(s++,B(),H(125),""):(T(Pa.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return J()}}function B(){En.assertEqual(S(s-1),123);let e=0;for(;;)switch(k(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:J(),e++}}function J(){const e=k(s);if(-1===e)return"";if(92===e){const e=k(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return F(!1)}}else if(e===k(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 
161:case 62:case 63:case 64:case 96:case 126:return T(Pa.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return T(Pa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return W()}function U(){if(92!==k(s))return W();{const e=k(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return q()?"":F(!1)}}}function q(){En.assertEqual(S(s-1),92);let e=!1;const t=s-1,n=k(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===k(++s)){const n=++s,r=V();if(61===k(s)){const e=Us.get(r);if(s===n)T(Pa.Expected_a_Unicode_property_name);else if(void 0===e){T(Pa.Unknown_Unicode_property_name,n,s-n);const e=Zt(r,Us.keys(),kt);e&&T(Pa.Did_you_mean_0,n,s-n,e)}const t=++s,i=V();if(s===t)T(Pa.Expected_a_Unicode_property_value);else if(void 0!==e&&!$s[e].has(i)){T(Pa.Unknown_Unicode_property_value,t,s-t);const n=Zt(i,$s[e],kt);n&&T(Pa.Did_you_mean_0,t,s-t,n)}}else if(s===n)T(Pa.Expected_a_Unicode_property_name_or_value);else if(zs.has(r))f?e?T(Pa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:T(Pa.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!$s.General_Category.has(r)&&!qs.has(r)){T(Pa.Unknown_Unicode_property_name_or_value,n,s-n);const e=Zt(r,[...$s.General_Category,...qs,...zs],kt);e&&T(Pa.Did_you_mean_0,n,s-n,e)}H(125),m||T(Pa.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;T(Pa._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function V(){let e="";for(;;){const t=k(s);if(-1===t||!fs(t))break;e+=String.fromCharCode(t),s++}return e}function W(){const e=m?js(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function H(e){k(s)===e?s++:T(Pa._0_expected,s,0,String.fromCharCode(e))}C(!1),d(a,(e=>{(null==i?void 0:i.has(e.name))||T(Pa.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name)})),d(l,(e=>{e.value>v&&(v?T(Pa.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):T(Pa.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))}))}(r,!0,i)}))}p=g.substring(u,s),_=14}return _},reScanTemplateToken:function(e){return s=u,_=A(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=u,_=A(!0)},scanJsxIdentifier:function(){if(Fa(_)){for(;s<c;){if(45===S(s)){p+="-",s++;continue}const e=s;if(p+=M(),s===e)break}return j()}return _},scanJsxAttributeValue:H,reScanJsxAttributeValue:function(){return s=u=l,H()},reScanJsxToken:function(e=!0){return s=u=l,_=W(e)},reScanLessThanToken:function(){return 48===_?(s=u+1,_=30):_},reScanHashToken:function(){return 81===_?(s=u+1,_=63):_},reScanQuestionToken:function(){return En.assert(61===_,"'reScanQuestionToken' should only be called on a '??'"),s=u+1,_=58},reScanInvalidIdentifier:function(){En.assert(0===_,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=u=l,f=0;const e=x(s),t=z(e,99);return t?_=t:(s+=js(e),_)},scanJsxToken:W,scanJsDocToken:K,scanJSDocCommentTextToken:function(e){if(l=u=s,f=0,s>=c)return _=1;for(let t=S(s);s<c&&!us(t)&&96!==t;t=x(++s))if(!e){if(123===t)break;if(64===t&&s-1>=0&&ls(S(s-1))&&!(s+1<c&&cs(S(s+1))))break}return s===u?K():(p=g.substring(u,s),_=82)},scan:U,getText:function(){return g},clearCommentDirectives:function(){m=void 0},setText:Q,setScriptTarget:function(t){e=t},setLanguageVariant:function(e){n=e},setScriptKind:function(e){y=e},setJSDocParsingMode:function(e){v=e},setOnError:function(e){i=e},resetTokenState:Y,setTextPos:Y,setSkipJsDocLeadingAsterisks:function(e){h+=e?1:-1},tryScan:function(e){return G(e,!1)},lookAhead:function(e){return G(e,!0)},scanRange:X};return En.isDebugging&&Object.defineProperty(b,"__debugShowCurrentPositionInText",{get:()=>{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return Ms(g,e)}function S(e){return g.charCodeAt(e)}function k(e){return e>=0&&e<c?S(e):-1}function T(e,t=s,n,r){if(i){const o=s;s=t,i(e,n||0,r),s=o}}function C(){let e=s,t=!1,n=!1,r="";for(;;){const i=S(s);if(95!==i){if(!_s(i))break;t=!0,n=!1,s++}else f|=512,t?(t=!1,n=!0,r+=g.substring(e,s)):(f|=16384,T(n?Pa.Multiple_consecutive_numeric_separators_are_not_permitted:Pa.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===S(s-1)&&(f|=16384,T(Pa.Numeric_separators_are_not_allowed_here,s-1,1)),r+g.substring(e,s)}function w(){let e,t,n,r=s;if(48===S(s))if(95===S(++s))f|=16896,T(Pa.Numeric_separators_are_not_allowed_here,s,1),s--,e=C();
1else if(N()){if(p){p=""+parseInt(p,8),f|=32;const e=41===_,t=(e?"-":"")+"0o"+(+p).toString(8);return e&&r--,T(Pa.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else f|=8192,e=""+ +p;else e=C();46===S(s)&&(s++,t=C());let i,o=s;if(69===S(s)||101===S(s)){s++,f|=16,43!==S(s)&&45!==S(s)||s++;const e=s,t=C();t?(n=g.substring(o,e)+t,o=s):T(Pa.Digit_expected)}if(512&f?(i=e,t&&(i+="."+t),n&&(i+=n)):i=g.substring(r,o),8192&f)return T(Pa.Decimals_with_leading_zeros_are_not_allowed,r,o-r),p=""+ +i,9;if(void 0!==t||16&f)return D(r,void 0===t&&!!(16&f)),p=""+ +i,9;{p=i;const e=J();return D(r),e}}function D(t,n){if(!Is(x(s),e))return;const r=s,{length:i}=M();1===i&&"n"===g[r]?T(n?Pa.A_bigint_literal_cannot_use_exponential_notation:Pa.A_bigint_literal_must_be_an_integer,t,r-t+1):(T(Pa.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,i),s=r)}function N(){const e=s;let t=!0;for(;_s(k(s));)ms(S(s))||(t=!1),s++;return p=g.substring(e,s),t}function E(e,t){return P(e,!0,t)}function P(e,t,n){let r=[],i=!1,o=!1;for(;r.length<e||t;){let e=S(s);if(n&&95===e)f|=512,i?(i=!1,o=!0):T(o?Pa.Multiple_consecutive_numeric_separators_are_not_permitted:Pa.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(i=n,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length<e&&(r=[]),95===S(s-1)&&T(Pa.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function F(e=!1){const t=S(s);let n="",r=++s;for(;;){if(s>=c){n+=g.substring(r,s),f|=4,T(Pa.Unterminated_string_literal);break}const i=S(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),f|=4,T(Pa.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=I(3),r=s}return n}function A(e){const t=96===S(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),f|=4,T(Pa.Unterminated_template_literal),n=t?15:18;break}const o=S(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1<c&&123===S(s+1)){i+=g.substring(r,s),s+=2,n=t?16:17;break}92!==o?13!==o?s++:(i+=g.substring(r,s),++s<c&&10===S(s)&&s++,i+="\n",r=s):(i+=g.substring(r,s),i+=I(1|(e?2:0)),r=s)}return En.assert(void 0!==n),p=i,n}function I(t){const n=s;if(++s>=c)return T(Pa.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!_s(S(s)))return"\0";case 49:case 50:case 51:s<c&&ms(S(s))&&s++;case 52:case 53:case 54:case 55:if(s<c&&ms(S(s))&&s++,f|=2048,6&t){const e=parseInt(g.substring(n+1,s),8);return T(4&t&&!(32&t)&&48!==r?Pa.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:Pa.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,n,s-n,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return g.substring(n,s);case 56:case 57:return f|=2048,6&t?(4&t&&!(32&t)?T(Pa.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,n,s-n):T(Pa.Escape_sequence_0_is_not_allowed,n,s-n,g.substring(n,s)),String.fromCharCode(r)):g.substring(n,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(17&t&&s<c&&123===S(s))return s-=2,O(!!(6&t));for(;s<n+6;s++)if(!(s<c&&ds(S(s))))return f|=2048,6&t&&T(Pa.Hexadecimal_digit_expected),g.substring(n,s);f|=1024;const i=parseInt(g.substring(n+2,s),16),o=String.fromCharCode(i);if(16&t&&i>=55296&&i<=56319&&s+6<c&&"\\u"===g.substring(s,s+2)&&123!==S(s+2)){const e=s;let t=s+2;for(;t<e+6;t++)if(!ds(S(s)))return o;const n=parseInt(g.substring(e+2,t),16);if(n>=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s<n+4;s++)if(!(s<c&&ds(S(s))))return f|=2048,6&t&&T(Pa.Hexadecimal_digit_expected),g.substring(n,s);return f|=4096,String.fromCharCode(parseInt(g.substring(n+2,s),16));case 13:s<c&&10===S(s)&&s++;case 10:case 8232:case 8233:return"";default:return(16&t||4&t&&!(8&t)&&Os(r,e))&&T(Pa.This_character_cannot_be_escaped_in_a_regular_expression,s-2,2),String.fromCharCode(r)}}function O(e){const t=s,n=s+=3,r=E(1,!1),i=r?parseInt(r,16):-1;let o=!1;return i<0?(e&&T(Pa.Hexadecimal_digit_expected),o=!0):i>1114111&&(e&&T(Pa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&T(Pa.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&T(Pa.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,Js(i))}function L(){if(s+5<c&&117===S(s+1)){const e=s;s+=2;const t=function(e,t){const n=P(e,!1,t);return n?parseInt(n,16):-1}(4,!1);return s=e,t}return-1}function R(){if(117===x(s+1)&&123===x(s+2)){const e=s;s+=3;const t=E(1,!1),n=t?parseInt(t,16):-1;return s=e,n}return-1}function M(){let t="",n=s;for(;s<c;){let r=x(s);if(Os(r,e))s+=js(r);else{if(92!==r)break;
1if(r=R(),r>=0&&Os(r,e)){t+=O(!0),n=s;continue}if(r=L(),!(r>=0&&Os(r,e)))break;f|=1024,t+=g.substring(n,s),t+=Js(r),n=s+=6}}return t+=g.substring(n,s),t}function j(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=Oa.get(p);if(void 0!==e)return _=e}}return _=80}function B(e){let t="",n=!1,r=!1;for(;;){const i=S(s);if(95!==i){if(n=!0,!_s(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):T(r?Pa.Multiple_consecutive_numeric_separators_are_not_permitted:Pa.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&T(Pa.Numeric_separators_are_not_allowed_here,s-1,1),t}function J(){if(110===S(s))return p+="n",384&f&&(p=OT(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function U(){l=s,f=0;let r=!1;for(;;){if(u=s,s>=c)return _=1;const i=x(s);if(0===s&&35===i&&Ss(g,s)){if(s=ks(g,s),t)continue;return _=6}switch(i){case 10:case 13:if(f|=1,t){s++;continue}return 13===i&&s+1<c&&10===S(s+1)?s+=2:s++,_=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){s++;continue}for(;s<c&&ls(S(s));)s++;return _=5;case 33:return 61===S(s+1)?61===S(s+2)?(s+=3,_=38):(s+=2,_=36):(s++,_=54);case 34:case 39:return p=F(),_=11;case 96:return _=A(!1);case 37:return 61===S(s+1)?(s+=2,_=70):(s++,_=45);case 38:return 38===S(s+1)?61===S(s+2)?(s+=3,_=77):(s+=2,_=56):61===S(s+1)?(s+=2,_=74):(s++,_=51);case 40:return s++,_=21;case 41:return s++,_=22;case 42:if(61===S(s+1))return s+=2,_=67;if(42===S(s+1))return 61===S(s+2)?(s+=3,_=68):(s+=2,_=43);if(s++,h&&!r&&1&f){r=!0;continue}return _=42;case 43:return 43===S(s+1)?(s+=2,_=46):61===S(s+1)?(s+=2,_=65):(s++,_=40);case 44:return s++,_=28;case 45:return 45===S(s+1)?(s+=2,_=47):61===S(s+1)?(s+=2,_=66):(s++,_=41);case 46:return _s(S(s+1))?(w(),_=9):46===S(s+1)&&46===S(s+2)?(s+=3,_=26):(s++,_=25);case 47:if(47===S(s+1)){for(s+=2;s<c&&!us(S(s));)s++;if(m=V(m,g.slice(u,s),qa,u),t)continue;return _=2}if(42===S(s+1)){const e=42===S(s+=2)&&47!==S(s+1);let n=!1,r=u;for(;s<c;){const e=S(s);if(42===e&&47===S(s+1)){s+=2,n=!0;break}s++,us(e)&&(r=s,f|=1)}if(e&&q()&&(f|=2),m=V(m,g.slice(r,s),za,r),n||T(Pa.Asterisk_Slash_expected),t)continue;return n||(f|=4),_=3}return 61===S(s+1)?(s+=2,_=69):(s++,_=44);case 48:if(s+2<c&&(88===S(s+1)||120===S(s+1)))return s+=2,(p=E(1,!0))||(T(Pa.Hexadecimal_digit_expected),p="0"),p="0x"+p,f|=64,_=J();if(s+2<c&&(66===S(s+1)||98===S(s+1)))return s+=2,(p=B(2))||(T(Pa.Binary_digit_expected),p="0"),p="0b"+p,f|=128,_=J();if(s+2<c&&(79===S(s+1)||111===S(s+1)))return s+=2,(p=B(8))||(T(Pa.Octal_digit_expected),p="0"),p="0o"+p,f|=256,_=J();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return _=w();case 58:return s++,_=59;case 59:return s++,_=27;case 60:if(vs(g,s)){if(s=bs(g,s,T),t)continue;return _=7}return 60===S(s+1)?61===S(s+2)?(s+=3,_=71):(s+=2,_=48):61===S(s+1)?(s+=2,_=33):1===n&&47===S(s+1)&&42!==S(s+2)?(s+=2,_=31):(s++,_=30);case 61:if(vs(g,s)){if(s=bs(g,s,T),t)continue;return _=7}return 61===S(s+1)?61===S(s+2)?(s+=3,_=37):(s+=2,_=35):62===S(s+1)?(s+=2,_=39):(s++,_=64);case 62:if(vs(g,s)){if(s=bs(g,s,T),t)continue;return _=7}return s++,_=32;case 63:return 46!==S(s+1)||_s(S(s+2))?63===S(s+1)?61===S(s+2)?(s+=3,_=78):(s+=2,_=61):(s++,_=58):(s+=2,_=29);case 91:return s++,_=23;case 93:return s++,_=24;case 94:return 61===S(s+1)?(s+=2,_=79):(s++,_=53);case 123:return s++,_=19;case 124:if(vs(g,s)){if(s=bs(g,s,T),t)continue;return _=7}return 124===S(s+1)?61===S(s+2)?(s+=3,_=76):(s+=2,_=57):61===S(s+1)?(s+=2,_=75):(s++,_=52);case 125:return s++,_=20;case 126:return s++,_=55;case 64:return s++,_=60;case 92:const o=R();if(o>=0&&Is(o,e))return p=O(!0)+M(),_=j();const a=L();return a>=0&&Is(a,e)?(s+=6,f|=1024,p=String.fromCharCode(a)+M(),_=j()):(T(Pa.Invalid_character),s++,_=0);case 35:if(0!==s&&"!"===g[s+1])return T(Pa.can_only_be_used_at_the_start_of_a_file,s,2),s++,_=0;const l=x(s+1);if(92===l){s++;const t=R();if(t>=0&&Is(t,e))return p="#"+O(!0)+M(),_=81;const n=L();if(n>=0&&Is(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+M(),_=81;s--}return Is(l,e)?(s++,z(l,e)):(p="#",T(Pa.Invalid_character,s++,js(i))),_=81;case 65533:return T(Pa.File_appears_to_be_binary,0,0),s=c,_=8;default:const d=z(i,e);if(d)return _=d;if(ls(i)){s+=js(i);continue}if(us(i)){f|=1,s+=js(i);continue}const y=js(i);return T(Pa.Invalid_character,s,y),s+=y,_=0}}}function q(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&$a.test(g.slice(l,s))}function z(e,t){let n=e;if(Is(n,t)){for(s+=js(n);s<c&&Os(n=x(s),t);)s+=js(n);return p=g.substring(u,s),92===n&&(p+=M()),j()}}function $(t,n){const r=Ma.get(t);r&&e<r&&T(Pa.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,n,1,sk(r))}function V(e,t,n,r){const i=function(e,t){const n=t.exec(e);if(n)switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(t.trimStart(),n);return void 0===i?e:fe(e,{range:{pos:r,end:s},type:i})}function W(e=!0){if(l=u=s,s>=c)return _=1;let t=S(s);if(60===t)return 47===S(s+1)?(s+=2,_=31):(s++,_=30);if(123===t)return s++,_=19;let n=0;for(;s<c&&(t=S(s),123!==t);){if(60===t){if(vs(g,s))return s=bs(g,s,T),_=7;break}if(62===t&&T(Pa.Unexpected_token_Did_you_mean_or_gt,s,1),125===t&&T(Pa.Unexpected_token_Did_you_mean_or_rbrace,s,1),us(t)&&0===n)n=-1;else{if(!e&&us(t)&&n>0)break;cs(t)||(n=s)}s++}return p=g.substring(l,s),-1===n?13:12}function H(){switch(l=s,S(s)){case 34:case 39:return p=F(!0),_=11;default:return U()}}function K(){if(l=u=s,f=0,s>=c)return _=1;const t=x(s);switch(s+=js(t),t){case 9:case 11:case 12:case 32:for(;s<c&&ls(S(s));)s++;return _=5;case 64:return _=60;case 13:10===S(s)&&s++;case 10:return f|=1,_=4;case 42:return _=42;case 123:return _=19;case 125:return _=20;case 91:return _=23;case 93:return _=24;case 40:return _=21;case 41:return _=22;case 60:return _=30;case 62:return _=32;case 61:return _=64;case 44:return _=28;case 46:return _=25;case 96:return _=62;case 35:return _=63;case 92:s--;const t=R();if(t>=0&&Is(t,e))return p=O(!0)+M(),_=j();const n=L();return n>=0&&Is(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+M(),_=j()):(s++,_=0)}if(Is(t,e)){let n=t;for(;s<c&&Os(n=x(s),e)||45===n;)s+=js(n);return p=g.substring(u,s),92===n&&(p+=M()),_=j()}return _=0}function G(e,t){const n=s,r=l,i=u,o=_,a=p,c=f,d=e();return d&&!t||(s=n,l=r,u=i,_=o,p=a,f=c),d}
1function X(e,t,n){const r=c,i=s,o=l,a=u,d=_,h=p,y=f,v=m;Q(g,e,t);const b=n();return c=r,s=i,l=o,u=a,_=d,p=h,f=y,m=v,b}function Q(e,t,n){g=e||"",c=void 0===n?g.length:t+n,Y(t||0)}function Y(e){En.assert(e>=0),s=e,l=e,u=e,_=0,p=void 0,f=0}}function Ms(e,t){return e.codePointAt(t)}function js(e){return e>=65536?2:-1===e?0:1}var Bs=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(En.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function Js(e){return Bs(e)}var Us=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),qs=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),zs=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),$s={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","K
1ali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function Vs(e){return Jo(e)||Mo(e)}function Ws(e){return le(e,wS,PS)}function Hs(e){switch(BS(e)){case 99:return"lib.esnext.full.d.ts";case 10:return"lib.es2023.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Ks(e){return e.start+e.length}function Gs(e){return 0===e.length}function Xs(e,t){return t>=e.start&&t<Ks(e)}function Qs(e,t){return t>=e.pos&&t<=e.end}function Ys(e,t){return t.start>=e.start&&Ks(t)<=Ks(e)}function Zs(e,t){return void 0!==ec(e,t)}function ec(e,t){const n=oc(e,t);return n&&0===n.length?void 0:n}function tc(e,t){return rc(e.start,e.length,t.start,t.length)}function nc(e,t,n){return rc(e.start,e.length,t,n)}function rc(e,t,n,r){return n<=e+t&&n+r>=e}function ic(e,t){return t<=Ks(e)&&t>=e.start}function oc(e,t){const n=Math.max(e.start,t.start),r=Math.min(Ks(e),Ks(t));return n<=r?sc(n,r):void 0}function ac(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function sc(e,t){return ac(e,t-e)}function cc(e){return ac(e.span.start,e.newLength)}function lc(e){return Gs(e.span)&&0===e.newLength}function uc(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}$s.Script_Extensions=$s.Script;var _c=uc(ac(0,0),0);function dc(e){if(0===e.length)return _c;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=Ks(t.span),i=n+t.newLength;for(let o=1;o<e.length;o++){const t=e[o],a=n,s=r,c=i,l=t.span.start,u=Ks(t.span),_=l+t.newLength;n=Math.min(a,l),r=Math.max(s,s+(u-c)),i=Math.max(_,_+(c-u))}return uc(sc(n,r),i-n)}function pc(e){if(e&&168===e.kind)for(let t=e;t;t=t.parent)if(vu(t)||Du(t)||264===t.kind)return t}function fc(e,t){return bN(e)&&Xv(e,31)&&176===t.kind}function mc(e){return!!Bu(e)&&C(e.elements,gc)}function gc(e){return!!EE(e)||mc(e.name)}function hc(e){let t=e.parent;for(;oE(t.parent);)t=t.parent.parent;return t.parent}function yc(e,t){oE(e)&&(e=hc(e));let n=t(e);return 260===e.kind&&(e=e.parent),e&&261===e.kind&&(n|=t(e),e=e.parent),e&&243===e.kind&&(n|=t(e)),n}function vc(e){return yc(e,cb)}function bc(e){return yc(e,lb)}function xc(e){return yc(e,Sc)}function Sc(e){return e.flags}var kc=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function Tc(e,t,n){const r=e.toLowerCase(),i=/^([a-z]+)([_-]([a-z]+))?$/.exec(r);if(!i)return void(n&&n.push(xS(Pa.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const o=i[1],a=i[3];function s(e,n,r){let i=ra(Go(sa(t.getExecutingFilePath())),e);if(n&&(i=i+"-"+n),i=t.resolvePath(ra(i,"diagnosticMessages.generated.json")),!t.fileExists(i))return!1;let o="";try{o=t.readFile(i)}catch(Fhe){return r&&r.push(xS(Pa.Unable_to_open_file_0,i)),!1}try{dS(JSON.parse(o))}catch(Fhe){return r&&r.push(xS(Pa.Corrupted_locale_file_0,i)),!1}return!0}F(kc,r)&&!s(o,a,n)&&s(o,void 0,n),Gt(e)}function Cc(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function wc(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function Dc(e){return!(16&e.flags)}function Nc(e,t){if(void 0===e||Dc(e))return e;for(e=e.original;e;){if(Dc(e))return!t||t(e)?e:void 0;e=e.original}}function Ec(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Pc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function Fc(e){return Pc(e.escapedText)}function Ac(e){const t=Xa(e.escapedText);return t?ht(t,Jh):void 0}function Ic(e){return e.valueDeclaration&&uu(e.valueDeclaration)?Fc(e.valueDeclaration.name):Pc(e.escapedName)}function Oc(e){const t=e.parent.parent;if(t){if(N_(t))return Lc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Lc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(nN(t))return t}break;case 217:return Lc(t.expression);
1case 256:if(N_(t.statement)||s_(t.statement))return Lc(t.statement)}}}function Lc(e){const t=Jc(e);return t&&nN(t)?t:void 0}function Rc(e,t){return!(!jc(e)||!nN(e.name)||Fc(e.name)!==Fc(t))||!(!UE(e)||!te(e.declarationList.declarations,(e=>Rc(e,t))))}function Mc(e){return e.name||Oc(e)}function jc(e){return!!e.name}function Bc(e){switch(e.kind){case 80:return e;case 348:case 341:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(hg(t)){case 1:case 4:case 5:case 3:return Cg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 346:return Mc(e);case 340:return Oc(e);case 277:{const{expression:t}=e;return nN(t)?t:void 0}case 212:const t=e;if(Sg(t))return t.argumentExpression}return e.name}function Jc(e){if(void 0!==e)return Bc(e)||(mE(e)||gE(e)||NE(e)?Uc(e):void 0)}function Uc(e){if(e.parent){if(YP(e.parent)||oE(e.parent))return e.parent.name;if(kE(e.parent)&&e===e.parent.right){if(nN(e.parent.left))return e.parent.left;if(Hx(e.parent.left))return Cg(e.parent.left)}else if(oP(e.parent)&&nN(e.parent.name))return e.parent.name}}function qc(e){if(ib(e))return L(e.modifiers,xN)}function zc(e){if(Xv(e,98303))return L(e.modifiers,mu)}function $c(e,t){if(e.name){if(nN(e.name)){const n=e.name.escapedText;return vl(e.parent,t).filter((e=>OF(e)&&nN(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);En.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=vl(e.parent,t).filter(OF);if(n<r.length)return[r[n]]}}return c}function Vc(e){return $c(e,!1)}function Wc(e){return $c(e,!0)}function Hc(e,t){const n=e.name.escapedText;return vl(e.parent,t).filter((e=>jF(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Kc(e){return Hc(e,!1)}function Gc(e){return Hc(e,!0)}function Xc(e){return!!Sl(e,OF)}function Qc(e){return Sl(e,xF)}function Yc(e){return kl(e,qF)}function Zc(e){return Sl(e,kF)}function el(e){return Sl(e,CF)}function tl(e){return Sl(e,CF,!0)}function nl(e){return Sl(e,wF)}function rl(e){return Sl(e,wF,!0)}function il(e){return Sl(e,DF)}function ol(e){return Sl(e,DF,!0)}function al(e){return Sl(e,NF)}function sl(e){return Sl(e,NF,!0)}function cl(e){return Sl(e,EF,!0)}function ll(e){return Sl(e,FF)}function ul(e){return Sl(e,FF,!0)}function _l(e){return Sl(e,IF)}function dl(e){return Sl(e,RF)}function pl(e){return Sl(e,LF)}function fl(e){return Sl(e,jF)}function ml(e){return Sl(e,zF)}function gl(e){const t=Sl(e,MF);if(t&&t.typeExpression&&t.typeExpression.type)return t}function hl(e){let t=Sl(e,MF);return!t&&bN(e)&&(t=w(Vc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function yl(e){const t=pl(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=gl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(jN(e)){const t=w(e.members,PN);return t&&t.type}if(LN(e)||mF(e))return e.type}}function vl(e,t){var n;if(!Gg(e))return c;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=Xg(e,t);En.assert(n.length<2||n[0]!==n[1]),r=q(n,(e=>yF(e)?e.tags:e)),t||(null!=e.jsDoc||(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function bl(e){return vl(e,!1)}function xl(e){return vl(e,!0)}function Sl(e,t,n){return w(vl(e,n),t)}function kl(e,t){return bl(e).filter(t)}function Tl(e,t){return bl(e).filter((e=>e.kind===t))}function Cl(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>321===e.kind?e.text:function(e){const t=324===e.kind?"link":325===e.kind?"linkcode":"linkplain",n=e.name?Kp(e.name):"",r=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function wl(e){if(bF(e)){if(PF(e.parent)){const t=oh(e.parent);if(t&&_(t.tags))return q(t.tags,(e=>jF(e)?e.typeParameters:void 0))}return c}if(qg(e))return En.assert(320===e.parent.kind),q(e.parent.tags,(e=>jF(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(qA(e)&&e.typeParameters)return e.typeParameters;if(Wm(e)){const t=Mv(e);if(t.length)return t;const n=hl(e);if(n&&LN(n)&&n.typeParameters)return n.typeParameters}return c}function Dl(e){return e.constraint?e.constraint:jF(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Nl(e){return 80===e.kind||81===e.kind}function El(e){return 178===e.kind||177===e.kind}function Pl(e){return cE(e)&&!!(64&e.flags)}function Fl(e){return lE(e)&&!!(64&e.flags)}function Al(e){return uE(e)&&!!(64&e.flags)}function Il(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Ol(e){return Il(e)&&!IE(e)&&!!e.questionDotToken}function Ll(e){return Ol(e.parent)&&e.parent.expression===e}function Rl(e){return!Il(e.parent)||Ol(e.parent)||e!==e.parent.expression}function Ml(e){return 226===e.kind&&61===e.operatorToken.kind}function jl(e){return ON(e)&&nN(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Bl(e){return SA(e,8)}function Jl(e){return IE(e)&&!!(64&e.flags)}function Ul(e){return 252===e.kind||251===e.kind}function ql(e){return 280===e.kind||279===e.kind}function zl(e){return 348===e.kind||341===e.kind}function $l(e){return Vl(e.kind)}function Vl(e){return e>=166}function Wl(e){return e>=0&&e<=165}function Hl(e){return Wl(e.kind)}function Kl(e){return $e(e,"pos")&&$e(e,"end")}function Gl(e){return 9<=e&&e<=15}
1function Xl(e){return Gl(e.kind)}function Ql(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Yl(e){return 15<=e&&e<=18}function Zl(e){return Yl(e.kind)}function eu(e){const t=e.kind;return 17===t||18===t}function tu(e){return DP(e)||FP(e)}function nu(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function ru(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function iu(e){return nu(e)||ru(e)}function ou(e){return 11===e.kind||Yl(e.kind)}function au(e){return BD(e)||nN(e)}function su(e){var t;return nN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function cu(e){var t;return rN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function lu(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function uu(e){return(kN(e)||Fu(e))&&rN(e.name)}function _u(e){return cE(e)&&rN(e.name)}function du(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function pu(e){return!!(31&gb(e))}function fu(e){return pu(e)||126===e||164===e||129===e}function mu(e){return du(e.kind)}function gu(e){const t=e.kind;return 166===t||80===t}function hu(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function yu(e){const t=e.kind;return 80===t||206===t||207===t}function vu(e){return!!e&&Tu(e.kind)}function bu(e){return!!e&&(Tu(e.kind)||wN(e))}function xu(e){return e&&ku(e.kind)}function Su(e){return 112===e.kind||97===e.kind}function ku(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Tu(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return ku(e)}}function Cu(e){return nF(e)||pP(e)||JE(e)&&vu(e.parent)}function wu(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function Du(e){return e&&(263===e.kind||231===e.kind)}function Nu(e){return e&&(177===e.kind||178===e.kind)}function Eu(e){return kN(e)&&nb(e)}function Pu(e){return Wm(e)&&PC(e)?!(xg(e)&&Lb(e.expression)||kg(e,!0)):e.parent&&Du(e.parent)&&kN(e)&&!nb(e)}function Fu(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Au(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Iu(e){return mu(e)||xN(e)}function Ou(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t}function Lu(e){return Ou(e)||wu(e)}function Ru(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function Mu(e){return Wx(e.kind)}function ju(e){switch(e.kind){case 184:case 185:return!0}return!1}function Bu(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Ju(e){const t=e.kind;return 209===t||210===t}function Uu(e){const t=e.kind;return 208===t||232===t}function qu(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function zu(e){return oP(e)||bN(e)||Wu(e)||Ku(e)}function $u(e){return Vu(e)||Hu(e)}function Vu(e){switch(e.kind){case 206:case 210:return!0}return!1}function Wu(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Hu(e){switch(e.kind){case 207:case 209:return!0}return!1}function Ku(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return wb(e,!0)}function Gu(e){const t=e.kind;return 211===t||166===t||205===t}function Xu(e){const t=e.kind;return 211===t||166===t}function Qu(e){return Yu(e)||iC(e)}function Yu(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Zu(e){return 213===e.kind||214===e.kind}function e_(e){const t=e.kind;return 228===t||15===t}function t_(e){return n_(Bl(e).kind)}function n_(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function r_(e){return i_(Bl(e).kind)}function i_(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return n_(e)}}function o_(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function a_(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Xl(e)}}function s_(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return i_(e)}}(Bl(e).kind)}function c_(e){const t=e.kind;return 216===t||234===t}function l_(e){return IP(e)||RE(e)}function u_(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&u_(e.statement,t)}return!1}function __(e){return NP(e)||EP(e)}function d_(e){return te(e,__)}function p_(e){return!(Bp(e)||NP(e)||Xv(e,32)||yp(e))}function f_(e){return Bp(e)||NP(e)||Xv(e,32)}function m_(e){return 249===e.kind||250===e.kind}function g_(e){return JE(e)||s_(e)}function h_(e){return JE(e)}function y_(e){return aP(e)||s_(e)}function v_(e){const t=e.kind;return 268===t||267===t||80===t}function b_(e){const t=e.kind;return 268===t||267===t}function x_(e){const t=e.kind;return 80===t||267===t}function S_(e){const t=e.kind;return 275===t||274===t}function k_(e){return 267===e.kind||266===e.kind}function T_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function C_(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function w_(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function D_(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||353===e}function N_(e){return 168===e.kind?e.parent&&345!==e.parent.kind||Wm(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||346===t||338===t||348===t||202===t;var t}function E_(e){return w_(e.kind)}function P_(e){return D_(e.kind)}function F_(e){const t=e.kind;return D_(t)||w_(t)||function(e){return 241===e.kind&&((void 0===e.parent||258!==e.parent.kind&&299!==e.parent.kind)&&!Yf(e))}(e)}function A_(e){const t=e.kind;return D_(t)||w_(t)||241===t}function I_(e){const t=e.kind;return 283===t||166===t||80===t}function O_(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function L_(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function R_(e){const t=e.kind;return 291===t||293===t}function M_(e){const t=e.kind;return 11===t||294===t}function j_(e){const t=e.kind;return 286===t||285===t}function B_(e){const t=e.kind;return 296===t||297===t}function J_(e){return e.kind>=309&&e.kind<=351}function U_(e){return 320===e.kind||319===e.kind||321===e.kind||ed(e)||q_(e)||vF(e)||bF(e)}function q_(e){return e.kind>=327&&e.kind<=351}function z_(e){return 178===e.kind}function $_(e){return 177===e.kind}function V_(e){if(!Gg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function W_(e){return!!e.type}function H_(e){return!!e.initializer}function K_(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function G_(e){return 291===e.kind||293===e.kind||Ru(e)}function X_(e){return 183===e.kind||233===e.kind}var Q_=1073741823;function Y_(e){let t=Q_;for(const n of e){if(!n.length)continue;let e=0;for(;
1e<n.length&&e<t&&cs(n.charCodeAt(e));e++);if(e<t&&(t=e),0===t)return 0}return t===Q_?void 0:t}function Z_(e){return 11===e.kind||15===e.kind}function ed(e){return 324===e.kind||325===e.kind||326===e.kind}function td(e){const t=Oe(e.parameters);return!!t&&nd(t)}function nd(e){const t=OF(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&318===t.kind}function rd(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function id(e,t){null!=t||(t=Id(e));const n=Nc(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),i=r>0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?re(Fs(o,hs(o,i.end+1,!1,!0)),Ps(o,e.pos)):Fs(o,hs(o,e.pos,!1,!0));return te(a)&&rd(Le(a),t)}return!!d(n&&Ef(n,t),(e=>rd(e,t)))}var od=[],ad="tslib",sd=160,cd=1e6;function ld(e,t){const n=e.declarations;if(n)for(const r of n)if(r.kind===t)return r}function ud(e,t){return L(e.declarations||c,(e=>e.kind===t))}function _d(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function dd(e){return!!(33554432&e.flags)}function pd(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var fd=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&cs(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:vt,decreaseIndent:vt,clear:()=>e=""}}();function md(e,t){return e.configFilePath!==t.configFilePath||gd(e,t)}function gd(e,t){return yd(e,t,UO)}function hd(e,t){return yd(e,t,zO)}function yd(e,t,n){return e!==t&&n.some((n=>!IT(dk(e,n),dk(t,n))))}function vd(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(nF(e))return;e=e.parent}}function bd(e,t){const n=e.entries();for(const[r,i]of n){const e=t(i,r);if(e)return e}}function xd(e,t){const n=e.keys();for(const r of n){const e=t(r);if(e)return e}}function Sd(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function kd(e){const t=fd.getText();try{return e(fd),fd.getText()}finally{fd.clear(),fd.writeKeyword(t)}}function Td(e){return e.end-e.pos}function Cd(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function wd(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDepen
1dencies)&&e.alternateResult===t.alternateResult;var n,r}function Dd(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===US(t.getCompilerOptions())?[Pa.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[Pa.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(ZM+"@types/")?`@types/${Lj(i)}`:i]]),c=s?kS(void 0,s[0],...s[1]):t.typesPackageExists(i)?kS(void 0,Pa.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,Lj(i)):t.packageBundlesTypes(i)?kS(void 0,Pa.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):kS(void 0,Pa.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,Lj(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function Nd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Ed(e){var t;return`${Nd(e)}@${e.version}${null!=(t=e.peerDependencies)?t:""}`}function Pd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Fd(e,t,n,r){En.assert(e.length===t.length);for(let i=0;i<e.length;i++){const o=t[i],a=n(e[i]);if(a?!o||!r(a,o):o)return!0}return!1}function Ad(e){return function(e){2097152&e.flags||((!!(262144&e.flags)||ZI(e,Ad))&&(e.flags|=1048576),e.flags|=2097152)}(e),!!(1048576&e.flags)}function Id(e){for(;e&&307!==e.kind;)e=e.parent;return e}function Od(e){return Id(e.valueDeclaration||Dp(e))}function Ld(e,t){return!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t)}function Rd(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function Md(e,t){return En.assert(e>=0),rs(t)[e]}function jd(e){const t=Id(e),n=ss(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Bd(e,t){En.assert(e>=0);const n=rs(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(En.assert(us(i.charCodeAt(t)));e<=t&&us(i.charCodeAt(t));)t--;return t}}function Jd(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Ud(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function qd(e){return!Ud(e)}function zd(e,t){return vN(e)?t===e.expression:wN(e)?t===e.modifiers:SN(e)?t===e.initializer:kN(e)?t===e.questionToken&&Eu(e):YP(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||$d(e.modifiers,t,Iu):ZP(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||$d(e.modifiers,t,Iu):CN(e)?t===e.exclamationToken:DN(e)?t===e.typeParameters||t===e.type||$d(e.typeParameters,t,vN):NN(e)?t===e.typeParameters||$d(e.typeParameters,t,vN):EN(e)?t===e.typeParameters||t===e.type||$d(e.typeParameters,t,vN):!!mP(e)&&(t===e.modifiers||$d(e.modifiers,t,Iu))}function $d(e,t,n){return!(!e||pt(t)||!n(t))&&F(e,t)}function Vd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,...t),e}function Wd(e,t,n){if(void 0===t)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function Hd(e){return Tf(e)||!!(2097152&lp(e))}function Kd(e,t){return Vd(e,t,Tf)}function Gd(e,t){return Vd(e,t,Hd)}function Xd(e,t){return Wd(e,t,Tf)}function Qd(e,t){return Wd(e,t,Hd)}function Yd(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){const r=e.substring(t,n);return!!(Ff.test(r)||Of.test(r)||Lf.test(r)||Af.test(r)||If.test(r)||Rf.test(r))}return!1}function Zd(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function ep(e,t){const n=new Map(t.map((t=>[`${ss(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Xe(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function tp(e,t,n){if(Ud(e))return e.pos;if(J_(e)||12===e.kind)return hs((t||Id(e)).text,e.pos,!1,!0);if(n&&V_(e))return tp(e.jsDoc[0],t);
1if(352===e.kind){const r=Pe(GF(e));if(r)return tp(r,t,n)}return hs((t||Id(e)).text,e.pos,!1,!1,Gm(e))}function np(e,t){const n=!Ud(e)&&CI(e)?D(e.modifiers,xN):void 0;return n?hs((t||Id(e)).text,n.end):tp(e,t)}function rp(e,t,n=!1){return op(e.text,t,n)}function ip(e){return!!(EP(e)&&e.exportClause&&CP(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function op(e,t,n=!1){if(Ud(t))return"";let r=e.substring(n?t.pos:hs(e,t.pos),t.end);return function(e){return!!wc(e,iF)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function ap(e,t=!1){return rp(Id(e),e,t)}function sp(e){return e.pos}function cp(e,t){return Je(e,t,sp,jt)}function lp(e){const t=e.emitNode;return t&&t.flags||0}function up(e){const t=e.emitNode;return t&&t.internalFlags||0}var _p=Nt((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:c})),AsyncIterator:new Map(Object.entries({es2015:c})),Atomics:new Map(Object.entries({es2017:c})),SharedArrayBuffer:new Map(Object.entries({es2017:c})),AsyncIterable:new Map(Object.entries({es2018:c})),AsyncIterableIterator:new Map(Object.entries({es2018:c})),AsyncGenerator:new Map(Object.entries({es2018:c})),AsyncGeneratorFunction:new Map(Object.entries({es2018:c})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],esnext:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:c,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:c})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:c,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:c,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}
1)))),dp=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(dp||{});function pp(e,t,n){var r;if(t&&function(e,t){if(by(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(MD(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!jD(e)}(e,n))return rp(t,e);switch(e.kind){case 11:{const t=2&n?Gy:1&n||16777216&lp(e)?qy:$y;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&lp(e)?qy:$y,i=null!=(r=e.rawText)?r:Iy(t(e.text,96));switch(e.kind){case 15:return"`"+i+"`";case 16:return"`"+i+"${";case 17:return"}"+i+"${";case 18:return"}"+i+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return En.fail(`Literal kind '${e.kind}' not accounted for.`)}function fp(e){return mt(e)?`"${qy(e)}"`:""+e}function mp(e){return Xo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function gp(e){return!!(7&xc(e))||hp(e)}function hp(e){const t=yy(e);return 260===t.kind&&299===t.parent.kind}function yp(e){return dP(e)&&(11===e.name.kind||Tp(e))}function vp(e){return dP(e)&&11===e.name.kind}function bp(e){return dP(e)&&BD(e.name)}function xp(e){return dP(e)||nN(e)}function Sp(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function kp(e){return 307===e.kind||267===e.kind||bu(e)}function Tp(e){return!!(2048&e.flags)}function Cp(e){return yp(e)&&wp(e)}function wp(e){switch(e.parent.kind){case 307:return aO(e.parent);case 268:return yp(e.parent.parent)&&nF(e.parent.parent.parent)&&!aO(e.parent.parent.parent)}return!1}function Dp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(Cp(e)||dP(e)&&Tp(e))))}function Np(e,t){return aO(e)||(1===(n=JS(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Ep(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!ak(t,"alwaysStrict")&&!gA(e.statements)&&!aO(e)&&!zS(t))}function Pp(e){return!!(33554432&e.flags)||Xv(e,128)}function Fp(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!bu(t)}return!1}function Ap(e){switch(En.type(e),e.kind){case 338:case 346:case 323:return!0;default:return Ip(e)}}function Ip(e){switch(En.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Op(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Lp(e){return Op(e)||Zm(e)}function Rp(e){return Op(e)||ng(e)}function Mp(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function jp(e){return Bp(e)||dP(e)||eE(e)||xf(e)}function Bp(e){return Op(e)||EP(e)}function Jp(e){return wc(e.parent,(e=>!!(1&rB(e))))}function Up(e){return wc(e.parent,(e=>Fp(e,e.parent)))}function qp(e,t){let n=Up(e);for(;n;)t(n),n=Up(n)}function zp(e){return e&&0!==Td(e)?ap(e):"(Missing)"}function $p(e){return e.declaration?zp(e.declaration.parameters[0].name):void 0}function Vp(e){return 167===e.kind&&!Zh(e.expression)}function Wp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 15:return Ec(e.text);case 167:return Zh(e.expression)?Ec(e.expression.text):void 0;case 295:return CC(e);default:return En.assertNever(e)}}function Hp(e){return En.checkDefined(Wp(e))}function Kp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===Td(e)?Fc(e):ap(e);case 166:return Kp(e.left)+"."+Kp(e.right);case 211:return nN(e.name)||rN(e.name)?Kp(e.expression)+"."+Kp(e.name):En.assertNever(e.name);case 311:return Kp(e.left)+"#"+Kp(e.right);case 295:return Kp(e.namespace)+":"+Kp(e.name);default:return En.assertNever(e)}}function Gp(e,t,...n){return Qp(Id(e),e,t,...n)}function Xp(e,t,n,...r){const i=hs(e.text,t.pos);return vS(e,i,t.end-i,n,...r)}function Qp(e,t,n,...r){const i=lf(e,t);return vS(e,i.start,i.length,n,...r)}function Yp(e,t,n,r){const i=lf(e,t);return tf(e,i.start,i.length,n,r)}function Zp(e,t,n,r){const i=hs(e.text,t.pos);return tf(e,i,t.end-i,n,r)}function ef(e,t,n){En.assertGreaterThanOrEqual(t,0),En.assertGreaterThanOrEqual(n,0),En.assertLessThanOrEqual(t,e.length),En.assertLessThanOrEqual(t+n,e.length)}function tf(e,t,n,r,i){return ef(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function nf(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function rf(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function of(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function af(e,...t){return{code:e.code,messageText:bS(e,...t)}}function sf(e,t){const n=Rs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),sc(n.getTokenStart(),n.getTokenEnd())}function cf(e,t){const n=Rs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function lf(e,t){let n=t;switch(t.kind){case 307:{const t=hs(e.text,0,!1);return t===e.text.length?ac(0,0):sf(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=hs(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=ss(e,t.body.pos),{line:i}=ss(e,t.body.end);if(r<i)return ac(n,Bd(r,e)-n+1)}return sc(n,t.end)}(e,t);case 296:case 297:return sc(hs(e.text,t.pos),t.statements.length>0?t.statements[0].pos:t.end);case 253:case 229:return sf(e,hs(e.text,t.pos));case 238:return sf(e,hs(e.text,t.expression.end));case 350:return sf(e,hs(e.text,t.tagName.pos));case 176:{const n=t,r=hs(e.text,n.pos),i=Rs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return sc(r,i.getTokenEnd())}}if(void 0===n)return sf(e,t.pos);En.assert(!yF(n));const r=Ud(n),i=r||JD(t)?n.pos:hs(e.text,n.pos);return r?(En.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),En.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(En.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),En.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),sc(i,n.end)}function uf(e){return 307===e.kind&&!_f(e)}function _f(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function df(e){return 6===e.scriptKind}function pf(e){return!!(4096&vc(e))}function ff(e){return!(!(8&vc(e))||fc(e,e.parent))}function mf(e){return 6==(7&xc(e))}function gf(e){return 4==(7&xc(e))}function hf(e){return 2==(7&xc(e))}function yf(e){const t=7&xc(e);return 2===t||4===t||6===t}function vf(e){return 1==(7&xc(e))}function bf(e){return 213===e.kind&&108===e.expression.kind}function xf(e){return 213===e.kind&&102===e.expression.kind}function Sf(e){return OE(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function kf(e){return eE(e)&&ZN(e.argument)&&BD(e.argument.literal)}function Tf(e){return 244===e.kind&&11===e.expression.kind}function Cf(e){return!!(2097152&lp(e))}function wf(e){return Cf(e)&&sP(e)}function Df(e){return nN(e.name)&&!e.initializer}function Nf(e){return Cf(e)&&UE(e)&&C(e.declarationList.declarations,Df)}function Ef(e,t){return 12!==e.kind?Ps(t.text,e.pos):void 0}function Pf(e,t){return L(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?re(Fs(t,e.pos),Ps(t,e.pos)):Ps(t,e.pos),(n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3)))}var Ff=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,Af=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,If=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,Of=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,Lf=/^\/\/\/\s*<amd-module\s+.*?\/>/,Rf=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function Mf(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return jf(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),En.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return jf(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return F(t.typeArguments,e)}}}return!1}function jf(e){return qF(e.parent)||xF(e.parent)||XP(e.parent)&&!Eb(e)}function Bf(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Jf(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return ZI(n,e)}}(e)}function Uf(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;
1default:if(vu(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Mf(n)||ZI(n,e)}}(e)}function qf(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?Re(e.typeArguments):void 0}function zf(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function $f(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Vf(e){return $f(e)||Nu(e)}function Wf(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Hf(e){return!!Wm(e)&&(sE(e.parent)&&kE(e.parent.parent)&&2===hg(e.parent.parent)||Kf(e.parent))}function Kf(e){return!!Wm(e)&&kE(e)&&1===hg(e)}function Gf(e){return(oP(e)?hf(e)&&nN(e.name)&&Wf(e):kN(e)?rb(e)&&Yv(e):SN(e)&&rb(e))||Kf(e)}function Xf(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Qf(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Yf(e){return e&&241===e.kind&&vu(e.parent)}function Zf(e){return e&&174===e.kind&&210===e.parent.kind}function em(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function tm(e){return e&&1===e.kind}function nm(e){return e&&0===e.kind}function rm(e,t,n,r){return d(null==e?void 0:e.properties,(e=>{if(!YP(e))return;const i=Wp(e.name);return t===i||r&&r===i?n(e):void 0}))}function im(e,t,n){return rm(e,t,(e=>aE(e.initializer)?w(e.initializer.elements,(e=>BD(e)&&e.text===n)):void 0))}function om(e){if(e&&e.statements.length)return ht(e.statements[0].expression,sE)}function am(e,t,n){return sm(e,t,(e=>aE(e.initializer)?w(e.initializer.elements,(e=>BD(e)&&e.text===n)):void 0))}function sm(e,t,n){return rm(om(e),t,n)}function cm(e){return wc(e.parent,vu)}function lm(e){return wc(e.parent,xu)}function um(e){return wc(e.parent,Du)}function _m(e){return wc(e.parent,(e=>Du(e)||vu(e)?"quit":wN(e)))}function dm(e){return wc(e.parent,bu)}function pm(e){const t=wc(e.parent,(e=>Du(e)?"quit":xN(e)));return t&&Du(t.parent)?um(t.parent):um(null!=t?t:e)}function fm(e,t,n){for(En.assert(307!==e.kind);;){if(!(e=e.parent))return En.fail();switch(e.kind){case 167:if(n&&Du(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&wu(e.parent.parent)?e=e.parent.parent:wu(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function mm(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function gm(e){return nN(e)&&(cP(e.parent)||sP(e.parent))&&e.parent.name===e&&(e=e.parent),nF(fm(e,!0,!1))}function hm(e){const t=fm(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function ym(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&wu(e.parent.parent)?e=e.parent.parent:wu(e.parent)&&(e=e.parent)}}}function vm(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function bm(e){return 108===e.kind||xm(e)}function xm(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function Sm(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function km(e){var t;return!!e&&oP(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function Tm(e){return!!e&&(ZP(e)||YP(e))&&kE(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function Cm(e){switch(e.kind){case 183:return e.typeName;case 233:return Pb(e.expression)?e.expression:void 0;case 80:case 166:return e}}function wm(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function Dm(e,t,n,r){if(e&&jc(t)&&rN(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?cP(n):Du(n)&&!eb(t)&&!tb(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?cP(n):Du(n));case 169:return!!e&&void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&Dv(n)!==t&&void 0!==r&&263===r.kind}return!1}function Nm(e,t,n,r){return ib(t)&&Dm(e,t,n,r)}function Em(e,t,n,r){return Nm(e,t,n,r)||Pm(e,t,n)}function Pm(e,t,n){switch(t.kind){case 263:return te(t.members,(r=>Em(e,r,t,n)));case 231:return!e&&te(t.members,(r=>Em(e,r,t,n)));case 174:case 178:case 176:return te(t.parameters,(r=>Nm(e,r,t,n)));default:return!1}}function Fm(e,t){if(Nm(e,t))return!0;const n=Tv(t);return!!n&&Pm(e,n,t)}function Am(e,t,n){let r;if(Nu(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=Iv(n.members,t),a=ib(e)?e:i&&ib(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else CN(t)&&(r=t.parameters);if(Nm(e,t,n))return!0;
1if(r)for(const i of r)if(!Nv(i)&&Nm(e,i,t,n))return!0;return!1}function Im(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Im(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function Om(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function Lm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!XP(e.parent)&&!xF(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||ed(e.parent)||oF(e.parent)||aF(e.parent)||Om(e);case 311:for(;aF(e.parent);)e=e.parent;return 186===e.parent.kind||ed(e.parent)||oF(e.parent)||aF(e.parent)||Om(e);case 81:return kE(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||ed(e.parent)||oF(e.parent)||aF(e.parent)||Om(e))return!0;case 9:case 10:case 11:case 15:case 110:return Rm(e);default:return!1}}function Rm(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Mf(t);case 304:return t.objectAssignmentInitializer===e;default:return Lm(t)}}function Mm(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function jm(e){return CP(e)&&!!e.parent.moduleSpecifier}function Bm(e){return 271===e.kind&&283===e.moduleReference.kind}function Jm(e){return En.assert(Bm(e)),e.moduleReference.expression}function Um(e){return Zm(e)&&Xx(e.initializer).arguments[0]}function qm(e){return 271===e.kind&&283!==e.moduleReference.kind}function zm(e){return 307===(null==e?void 0:e.kind)}function $m(e){return Wm(e)}function Vm(e){return!Wm(e)}function Wm(e){return!!e&&!!(524288&e.flags)}function Hm(e){return!!e&&!!(134217728&e.flags)}function Km(e){return!df(e)}function Gm(e){return!!e&&!!(16777216&e.flags)}function Xm(e){return ON(e)&&nN(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Qm(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||Z_(i)}function Ym(e){return tg(e,!1)}function Zm(e){return tg(e,!0)}function eg(e){return oE(e)&&Zm(e.parent.parent)}function tg(e,t){return oP(e)&&!!e.initializer&&Qm(t?Xx(e.initializer):e.initializer,!0)}function ng(e){return UE(e)&&e.declarationList.declarations.length>0&&C(e.declarationList.declarations,(e=>Ym(e)))}function rg(e){return 39===e||34===e}function ig(e,t){return 34===rp(t,e).charCodeAt(0)}function og(e){return kE(e)||Hx(e)||nN(e)||uE(e)}function ag(e){return Wm(e)&&e.initializer&&kE(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&Pb(e.name)&&dg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function sg(e){const t=ag(e);return t&&lg(t,Lb(e.name))}function cg(e){if(e&&e.parent&&kE(e.parent)&&64===e.parent.operatorToken.kind){const t=Lb(e.parent.left);return lg(e.parent.right,t)||function(e,t,n){const r=kE(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&lg(t.right,n);if(r&&dg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&uE(e)&&yg(e)){const t=function(e,t){return d(e.properties,(e=>YP(e)&&nN(e.name)&&"value"===e.name.escapedText&&e.initializer&&lg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function lg(e,t){if(uE(e)){const t=bh(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||sE(e)&&(0===e.properties.length||t)?e:void 0}function ug(e){const t=oP(e.parent)?e.parent.name:kE(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&lg(e.right,Lb(t))&&Pb(t)&&dg(t,e.left)}function _g(e){if(kE(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!kE(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&nN(t.left))return t.left}else if(oP(e.parent))return e.parent.name}function dg(e,t){return iy(e)&&iy(t)?oy(e)===oy(t):Nl(e)&&vg(t)&&(110===t.expression.kind||nN(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?dg(e,Tg(t)):!(!vg(e)||!vg(t))&&wg(e)===wg(t)&&dg(e.expression,t.expression)}function pg(e){for(;wb(e,!0);)e=e.right;return e}function fg(e){return nN(e)&&"exports"===e.escapedText}function mg(e){return nN(e)&&"module"===e.escapedText}function gg(e){return(cE(e)||bg(e))&&mg(e.expression)&&"exports"===wg(e)}function hg(e){const t=function(e){if(uE(e)){if(!yg(e))return 0;const t=e.arguments[0];return fg(t)||gg(t)?8:xg(t)&&"prototype"===wg(t)?9:7}return 64!==e.operatorToken.kind||!Hx(e.left)||vE(t=pg(e))&&MD(t.expression)&&"0"===t.expression.text?0:kg(e.left.expression,!0)&&"prototype"===wg(e.left)&&sE(Ng(e))?6:Dg(e.left);var t}(e);return 5===t||Wm(e)?t:0}function yg(e){return 3===_(e.arguments)&&cE(e.expression)&&nN(e.expression.expression)&&"Object"===Fc(e.expression.expression)&&"defineProperty"===Fc(e.expression.name)&&Zh(e.arguments[1])&&kg(e.arguments[0],!0)}function vg(e){return cE(e)||bg(e)}function bg(e){return lE(e)&&Zh(e.argumentExpression)}function xg(e,t){return cE(e)&&(!t&&110===e.expression.kind||nN(e.name)&&kg(e.expression,!0))||Sg(e,t)}function Sg(e,t){return bg(e)&&(!t&&110===e.expression.kind||Pb(e.expression)||xg(e.expression,!0))}function kg(e,t){return Pb(e)||xg(e,t)}function Tg(e){return cE(e)?e.name:e.argumentExpression}function Cg(e){if(cE(e))return e.name;const t=bh(e.argumentExpression);return MD(t)||Z_(t)?t:e}function wg(e){const t=Cg(e);if(t){if(nN(t))return t.escapedText;if(Z_(t)||MD(t))return Ec(t.text)}}function Dg(e){if(110===e.expression.kind)return 4;if(gg(e))return 2;if(kg(e.expression,!0)){if(Lb(e.expression))return 3;let t=e;for(;!nN(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===wg(t))&&xg(e))return 1;if(kg(e,!0)||lE(e)&&ny(e))return 5}return 0}function Ng(e){for(;kE(e.right);)e=e.right;return e.right}function Eg(e){return kE(e)&&3===hg(e)}function Pg(e){return Wm(e)&&e.parent&&244===e.parent.kind&&(!lE(e)||bg(e))&&!!gl(e.parent)}function Fg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Wm(t)||33554432&n.flags)&&og(n)&&!og(t)||n.kind!==t.kind&&xp(n))&&(e.valueDeclaration=t)}function Ag(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||oP(t)&&t.initializer&&vu(t.initializer)}function Ig(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=wc(e.initializer,(e=>Qm(e,!0))))?void 0:t.arguments[0];case 272:case 278:case 351:return ht(e.moduleSpecifier,Z_);case 271:return ht(null==(n=ht(e.moduleReference,LP))?void 0:n.expression,Z_);case 273:case 280:return ht(e.parent.moduleSpecifier,Z_);case 274:case 281:return ht(e.parent.parent.moduleSpecifier,Z_);case 276:return ht(e.parent.parent.parent.moduleSpecifier,Z_);case 205:return kf(e)?e.argument.literal:void 0;default:En.assertNever(e)}}function Og(e){return Lg(e)||En.failBadSyntaxKind(e.parent)}function Lg(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return xf(e.parent)||Qm(e.parent,!1)?e.parent:void 0;case 201:return En.assert(BD(e)),ht(e.parent.parent,eE);default:return}}function Rg(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return kf(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return En.assertNever(e)}}function Mg(e){switch(e.kind){case 272:return e.importClause&&ht(e.importClause.namedBindings,TP);case 271:return e;case 278:return e.exportClause&&ht(e.exportClause,CP);default:return En.assertNever(e)}}function jg(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}
1function Bg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=TP(e.namedBindings)?t(e.namedBindings):d(e.namedBindings.elements,t);if(n)return n}}function Jg(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Ug(e){const t=mF(e)?Pe(e.parameters):void 0,n=ht(t&&t.name,nN);return!!n&&"new"===n.escapedText}function qg(e){return 346===e.kind||338===e.kind||340===e.kind}function zg(e){return qg(e)||uP(e)}function $g(e){return zE(e)&&kE(e.expression)&&0!==hg(e.expression)&&kE(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Vg(e){switch(e.kind){case 243:const t=Wg(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Wg(e){return UE(e)?Pe(e.declarationList.declarations):void 0}function Hg(e){return dP(e)&&e.body&&267===e.body.kind?e.body:void 0}function Kg(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Gg(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Xg(e,t){let n;$f(e)&&H_(e)&&V_(e.initializer)&&(n=he(n,Qg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(V_(r)&&(n=he(n,Qg(e,r.jsDoc))),169===r.kind){n=he(n,(t?Wc:Vc)(r));break}if(168===r.kind){n=he(n,(t?Gc:Kc)(r));break}r=Yg(r)}return n||c}function Qg(e,t){const n=Le(t);return q(t,(t=>{if(t===n){const n=L(t.tags,(t=>function(e,t){return!((MF(t)||zF(t))&&t.parent&&yF(t.parent)&&fE(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return L(t.tags,PF)}))}function Yg(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Hg(t)||wb(e)?t:t.parent&&(Wg(t.parent)===e||wb(t))?t.parent:t.parent&&t.parent.parent&&(Wg(t.parent.parent)||Vg(t.parent.parent)===e||$g(t.parent.parent))?t.parent.parent:void 0}function Zg(e){if(e.symbol)return e.symbol;if(!nN(e.name))return;const t=e.name.escapedText,n=nh(e);if(!n)return;const r=w(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function eh(e){if(yF(e.parent)&&e.parent.tags){const t=w(e.parent.tags,qg);if(t)return t}return nh(e)}function th(e){return kl(e,PF)}function nh(e){const t=rh(e);if(t)return SN(t)&&t.type&&vu(t.type)?t.type:vu(t)?t:void 0}function rh(e){const t=ih(e);if(t)return $g(t)||function(e){return zE(e)&&kE(e.expression)&&64===e.expression.operatorToken.kind?pg(e.expression):void 0}(t)||Vg(t)||Wg(t)||Hg(t)||t}function ih(e){const t=oh(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===Oe(n.jsDoc)?n:void 0}function oh(e){return wc(e.parent,yF)}function ah(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&w(n,(e=>e.name.escapedText===t))}function sh(e){return!!e.typeArguments}var ch=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(ch||{});function lh(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return kb(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function uh(e){const t=lh(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||vb(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function _h(e){return!!lh(e)}function dh(e){const t=lh(e);return!!t&&wb(t,!0)&&function(e){const t=bh(e.right);return 226===t.kind&&QA(t.operatorToken.kind)}(t)}function ph(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function fh(e){return mE(e)||gE(e)||Fu(e)||sP(e)||DN(e)}function mh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function gh(e){return mh(e,196)}function hh(e){return mh(e,217)}function yh(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function vh(e){for(;KN(e);)e=e.type;return e}function bh(e,t){return SA(e,t?17:1)}function xh(e){return(211===e.kind||212===e.kind)&&(e=hh(e.parent))&&220===e.kind}function Sh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function kh(e){return!nF(e)&&!Bu(e)&&N_(e.parent)&&e.parent.name===e}function Th(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(yN(t))return t.parent;case 80:if(N_(t))return t.name===e?t:void 0;if(hN(t)){const e=t.parent;return OF(e)&&e.name===t?e:void 0}{const n=t.parent;
1return kE(n)&&0!==hg(n)&&(n.left.symbol||n.symbol)&&Jc(n)===e?n:void 0}case 81:return N_(t)&&t.name===e?t:void 0;default:return}}function Ch(e){return Zh(e)&&167===e.parent.kind&&N_(e.parent.parent)}function wh(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function Dh(e){return!!(271===e.kind||270===e.kind||273===e.kind&&e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&Ph(e))||Wm(e)&&(kE(e)&&2===hg(e)&&Ph(e)||cE(e)&&kE(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Eh(e.parent.right))}function Nh(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return Nh(e)}}function Eh(e){return Pb(e)||NE(e)}function Ph(e){return Eh(Fh(e))}function Fh(e){return NP(e)?e.expression:e.right}function Ah(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Ih(e){const t=Oh(e);if(t&&Wm(e)){const t=Qc(e);if(t)return t.class}return t}function Oh(e){const t=jh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function Lh(e){if(Wm(e))return Yc(e).map((e=>e.class));{const t=jh(e.heritageClauses,119);return null==t?void 0:t.types}}function Rh(e){return lP(e)?Mh(e)||c:Du(e)&&re(Sn(Ih(e)),Lh(e))||c}function Mh(e){const t=jh(e.heritageClauses,96);return t?t.types:void 0}function jh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Bh(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Jh(e){return 83<=e&&e<=165}function Uh(e){return 19<=e&&e<=79}function qh(e){return Jh(e)||Uh(e)}function zh(e){return 128<=e&&e<=165}function $h(e){return Jh(e)&&!zh(e)}function Vh(e){return 119<=e&&e<=127}function Wh(e){const t=Xa(e);return void 0!==t&&$h(t)}function Hh(e){const t=Xa(e);return void 0!==t&&Jh(t)}function Kh(e){const t=Ac(e);return!!t&&!zh(t)}function Gh(e){return 2<=e&&e<=7}var Xh=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Xh||{});function Qh(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Xv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Yh(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Xv(e,1024)}return!1}function Zh(e){return Z_(e)||MD(e)}function ey(e){return xE(e)&&(40===e.operator||41===e.operator)&&MD(e.operand)}function ty(e){const t=Jc(e);return!!t&&ny(t)}function ny(e){if(167!==e.kind&&212!==e.kind)return!1;const t=lE(e)?bh(e.argumentExpression):e.expression;return!Zh(t)&&!ey(t)}function ry(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Ec(e.text);case 167:const t=e.expression;return Zh(t)?Ec(t.text):ey(t)?41===t.operator?Ga(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return CC(e);default:return En.assertNever(e)}}function iy(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function oy(e){return Nl(e)?Fc(e):HP(e)?wC(e):e.text}function ay(e){return Nl(e)?e.escapedText:HP(e)?CC(e):Ec(e.text)}function sy(e){return`__@${eJ(e)}@${e.escapedName}`}function cy(e,t){return`__#${eJ(e)}@${t}`}function ly(e){return fn(e.escapedName,"__@")}function uy(e){return fn(e.escapedName,"__#")}function _y(e){return 80===e.kind&&"Symbol"===e.escapedText}function dy(e){return nN(e)?"__proto__"===Fc(e):BD(e)&&"__proto__"===e.text}function py(e,t){switch((e=SA(e)).kind){case 231:if(qU(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function fy(e){switch(e.kind){case 303:return!dy(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return nN(e.name)&&!!e.initializer;case 169:case 208:return nN(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return nN(e.left)}break;case 277:return!0}return!1}function my(e,t){if(!fy(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return py(e.initializer,t);case 304:return py(e.objectAssignmentInitializer,t);case 226:return py(e.right,t);case 277:return py(e.expression,t)}}function gy(e){return"push"===e.escapedText||"unshift"===e.escapedText}function hy(e){return 169===yy(e).kind}function yy(e){for(;208===e.kind;)e=e.parent.parent;return e}function vy(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||307===t}function by(e){return hT(e.pos)||hT(e.end)}function xy(e){return Nc(e,nF)||e}var Sy=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Sy||{});function ky(e){const t=wy(e),n=214===e.kind&&void 0!==e.arguments;return Ty(e.kind,t,n)}
1function Ty(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Cy(e){const t=wy(e),n=214===e.kind&&void 0!==e.arguments;return Ny(e.kind,t,n)}function wy(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var Dy=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(Dy||{});function Ny(e,t,n){switch(e){case 355:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;
1case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Ey(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Ey(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Py(e){return L(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function Fy(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),ce(t,i.file.fileName,zt))):(r&&(r=!1,e=e.slice()),o=e),ce(o,i,DS,PS)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Je(r,t,kt,DS);return i>=0?r[i]:~i>0&&PS(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=z(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}var Ay=/\$\{/g;function Iy(e){return e.replace(Ay,"\\${")}function Oy(e){return!!(2048&(e.templateFlags||0))}function Ly(e){return e&&!!(qD(e)?Oy(e):Oy(e.head)||te(e.templateSpans,(e=>Oy(e.literal))))}var Ry=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,My=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,jy=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,By=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Jy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Uy(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return By.get(e)||Jy(e.charCodeAt(0))}function qy(e,t){const n=96===t?jy:39===t?My:Ry;return e.replace(n,Uy)}var zy=/[^\u0000-\u007F]/g;function $y(e,t){return e=qy(e,t),zy.test(e)?e.replace(zy,(e=>Jy(e.charCodeAt(0)))):e}var Vy=/["\u0000-\u001f\u2028\u2029\u0085]/g,Wy=/['\u0000-\u001f\u2028\u2029\u0085]/g,Hy=new Map(Object.entries({'"':"&quot;","'":"&apos;"}));function Ky(e){return 0===e.charCodeAt(0)?"&#0;":Hy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Gy(e,t){const n=39===t?Wy:Vy;return e.replace(n,Ky)}function Xy(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function Qy(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Yy=["","    "];function Zy(e){const t=Yy[1];for(let n=Yy.length;n<=e;n++)Yy.push(Yy[n-1]+t);return Yy[e]}function ev(){return Yy[1].length}function tv(e){var t,n,r,i,o,a=!1;function s(e){const n=es(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+Le(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=Zy(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function u(){t="",n=0,r=!0,i=0,o=0,a=!1}return u(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*ev():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&cs(t.charCodeAt(t.length-1)),clear:u,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral
1:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function nv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return g(m({},e),{writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}})}function rv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function iv(e){return un(rv(e))}function ov(e,t,n){return t.moduleName||cv(e,t.fileName,n&&n.fileName)}function av(e,t){return e.getCanonicalFileName(aa(t,e.getCurrentDirectory()))}function sv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=Rg(n);return!i||!Z_(i)||Jo(i.text)||av(e,r.path).includes(av(e,_a(e.getCommonSourceDirectory())))?ov(e,r):void 0}function cv(e,t,n){const r=t=>e.getCanonicalFileName(t),i=la(n?Go(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=_T(wa(i,aa(t,e.getCurrentDirectory()),i,r,!1));return n?da(o):o}function lv(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?_T(hv(e,t,r.outDir)):_T(e),i+n}function uv(e,t){return _v(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function _v(e,t,n,r,i){const o=t.declarationDir||t.outDir,a=o?yv(e,o,n,r,i):e,s=dv(a);return _T(a)+s}function dv(e){return $o(e,[".mjs",".mts"])?".d.mts":$o(e,[".cjs",".cts"])?".d.cts":$o(e,[".json"])?".d.json.ts":".d.ts"}function pv(e){return $o(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:$o(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:$o(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function fv(e,t){var n,r;if(e.paths)return null!=(n=e.baseUrl)?n:En.checkDefined(e.pathsBasePath||(null==(r=t.getCurrentDirectory)?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function mv(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=JS(r),i=r.emitDeclarationOnly||2===t||4===t;return L(e.getSourceFiles(),(t=>(i||!aO(t))&&gv(t,e,n)))}return L(void 0===t?e.getSourceFiles():[t],(t=>gv(t,e,n)))}function gv(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&$m(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!df(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=aa(cz(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=yv(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===va(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function hv(e,t,n){return yv(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function yv(e,t,n,r,i){let o=aa(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,ra(t,o)}function vv(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(xS(Pa.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function bv(e,t,n){e.length>Ko(e)&&!n(e)&&(bv(Go(e),t,n),t(e))}function xv(e,t,n,r,i,o){try{r(e,t,n)}catch(Fhe){bv(Go(sa(e)),i,o),r(e,t,n)}}function Sv(e,t){return os(rs(e),t)}function kv(e,t){return os(e,t)}function Tv(e){return w(e.members,(e=>DN(e)&&qd(e.body)))}function Cv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&Nv(e.parameters[0]);return e.parameters[t?1:0]}}function wv(e){const t=Cv(e);return t&&t.type}function Dv(e){if(e.parameters.length&&!bF(e)){const t=e.parameters[0];if(Nv(t))return t}}function Nv(e){return Ev(e.name)}
1function Ev(e){return!!e&&80===e.kind&&Av(e)}function Pv(e){return!!wc(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function Fv(e){if(!Ev(e))return!1;for(;hN(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function Av(e){return"this"===e.escapedText}function Iv(e,t){let n,r,i,o;return ty(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:En.fail("Accessor has wrong kind")):d(e,(e=>{Nu(e)&&Qv(e)===Qv(t)&&ry(e.name)===ry(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function Ov(e){if(!Wm(e)&&sP(e))return;if(uP(e))return;const t=e.type;return t||!Wm(e)?t:zl(e)?e.typeExpression&&e.typeExpression.type:hl(e)}function Lv(e){return e.type}function Rv(e){return bF(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Wm(e)?yl(e):void 0)}function Mv(e){return q(bl(e),(e=>function(e){return jF(e)&&!(320===e.parent.kind&&(e.parent.tags.some(qg)||e.parent.tags.some(PF)))}(e)?e.typeParameters:void 0))}function jv(e){const t=Cv(e);return t&&Ov(t)}function Bv(e,t,n,r){Jv(e,t,n.pos,r)}function Jv(e,t,n,r){r&&r.length&&n!==r[0].pos&&kv(e,n)!==kv(e,r[0].pos)&&t.writeLine()}function Uv(e,t,n,r){n!==r&&kv(e,n)!==kv(e,r)&&t.writeLine()}
1function qv(e,t,n,r,i,o,a,s){if(r&&r.length>0){i&&n.writeSpace(" ");let c=!1;for(const i of r)c&&(n.writeSpace(" "),c=!1),s(e,t,n,i.pos,i.end,a),i.hasTrailingNewLine?n.writeLine():c=!0;c&&o&&n.writeSpace(" ")}}function zv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=L(Ps(e,i.pos),(function(t){return Zd(e,t.pos)}))):s=Ps(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=kv(t,l.end);if(kv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=kv(t,Le(a).end);kv(t,hs(e,i.pos))>=l+2&&(Bv(t,n,i,s),qv(e,t,n,a,!1,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:Le(a).end})}}return c}function $v(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=is(t,r),s=t.length;let c;for(let l=r,u=a.line;l<i;u++){const _=u+1===s?e.length+1:t[u+1];if(l!==r){void 0===c&&(c=Wv(e,t[a.line],r));const i=n.getIndent()*ev()-c+Wv(e,l,_);if(i>0){let e=i%ev();const t=Zy((i-e)/ev());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Vv(e,i,n,o,l,_),l=_}}else n.writeComment(e.substring(r,i))}function Vv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Wv(e,t,n){let r=0;for(;t<n&&ls(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=ev()-r%ev():r++;return r}function Hv(e){return 0!==cb(e)}function Kv(e){return 0!==ub(e)}function Gv(e,t){return!!ob(e,t)}function Xv(e,t){return!!ab(e,t)}function Qv(e){return wu(e)&&Yv(e)||wN(e)}function Yv(e){return Xv(e,256)}function Zv(e){return Gv(e,16)}function eb(e){return Xv(e,64)}function tb(e){return Xv(e,128)}function nb(e){return Xv(e,512)}function rb(e){return Gv(e,8)}function ib(e){return Xv(e,32768)}function ob(e,t){return cb(e)&t}function ab(e,t){return ub(e)&t}function sb(e,t,n){return e.kind>=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|fb(e)),n||t&&Wm(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|_b(e)),db(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function cb(e){return sb(e,!0)}function lb(e){return sb(e,!0,!0)}function ub(e){return sb(e,!1)}function _b(e){let t=0;return e.parent&&!bN(e)&&(Wm(e)&&(tl(e)&&(t|=8388608),rl(e)&&(t|=16777216),ol(e)&&(t|=33554432),sl(e)&&(t|=67108864),cl(e)&&(t|=134217728)),ul(e)&&(t|=65536)),t}function db(e){return 131071&e|(260046848&e)>>>23}function pb(e){return fb(e)|function(e){return db(_b(e))}(e)}function fb(e){let t=CI(e)?mb(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function mb(e){let t=0;if(e)for(const n of e)t|=gb(n.kind);return t}function gb(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function hb(e){return 57===e||56===e}function yb(e){return hb(e)||54===e}function vb(e){return 76===e||77===e||78===e}function bb(e){return kE(e)&&vb(e.operatorToken.kind)}function xb(e){return hb(e)||61===e}function Sb(e){return kE(e)&&xb(e.operatorToken.kind)}function kb(e){return e>=64&&e<=79}function Tb(e){const t=Cb(e);return t&&!t.isImplements?t.class:void 0}function Cb(e){if(PE(e)){if(XP(e.parent)&&Du(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(xF(e.parent)){const t=rh(e.parent);if(t&&Du(t))return{class:t,isImplements:!1}}}}function wb(e,t){return kE(e)&&(t?64===e.operatorToken.kind:kb(e.operatorToken.kind))&&t_(e.left)}function Db(e){return wb(e.parent)&&e.parent.left===e}function Nb(e){if(wb(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function Eb(e){return void 0!==Tb(e)}function Pb(e){return 80===e.kind||Ib(e)}function Fb(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function Ab(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&Ab(e.expression)||217===e.kind&&Ab(e.expression)}function Ib(e){return cE(e)&&nN(e.name)&&Pb(e.expression)}function Ob(e){if(cE(e)){const t=Ob(e.expression);if(void 0!==t)return t+"."+Kp(e.name)}else if(lE(e)){const t=Ob(e.expression);if(void 0!==t&&hu(e.argumentExpression))return t+"."+ry(e.argumentExpression)}else{if(nN(e))return Pc(e.escapedText);if(HP(e))return wC(e)}}
1function Lb(e){return xg(e)&&"prototype"===wg(e)}function Rb(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function Mb(e){return!!e.parent&&(cE(e.parent)&&e.parent.name===e||lE(e.parent)&&e.parent.argumentExpression===e)}function jb(e){return hN(e.parent)&&e.parent.right===e||cE(e.parent)&&e.parent.name===e||aF(e.parent)&&e.parent.right===e}function Bb(e){return kE(e)&&104===e.operatorToken.kind}function Jb(e){return Bb(e.parent)&&e===e.parent.right}function Ub(e){return 210===e.kind&&0===e.properties.length}function qb(e){return 209===e.kind&&0===e.elements.length}function zb(e){if(function(e){return e&&_(e.declarations)>0&&Xv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function $b(e){return w(Wk,(t=>zo(e,t)))}var Vb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Wb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r<n;r++){const n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(n>>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):En.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r<i;)o=n[r]>>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Vb.charAt(o)+Vb.charAt(a)+Vb.charAt(s)+Vb.charAt(c),r+=3;return t}function Hb(e,t){return e&&e.base64encode?e.base64encode(t):Wb(t)}function Kb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i<n&&t.charCodeAt(i)!==Vb.charCodeAt(64);){const e=Vb.indexOf(t[i]),n=Vb.indexOf(t[i+1]),o=Vb.indexOf(t[i+2]),a=Vb.indexOf(t[i+3]),s=(63&e)<<2|n>>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n<r;){const r=e[n];if(r<128)t+=String.fromCharCode(r),n++;else if(192&~r)t+=String.fromCharCode(r),n++;else{let i=63&r;n++;let o=e[n];for(;128==(192&o);)i=i<<6|63&o,n++,o=e[n];t+=String.fromCharCode(i)}}return t}(r)}function Gb(e,t){const n=mt(t)?t:t.readFile(e);if(!n)return;const r=bL(e,n);return r.error?void 0:r.config}function Xb(e,t){return Gb(e,t)||{}}function Qb(e){try{return JSON.parse(e)}catch(Fhe){return}}function Yb(e,t){return!t.directoryExists||t.directoryExists(e)}var Zb="\r\n",ex="\n";function tx(e){switch(e.newLine){case 0:return Zb;case 1:case void 0:return ex}}function nx(e,t=e){return En.assert(t>=e||-1===t),{pos:e,end:t}}function rx(e,t){return nx(e.pos,t)}function ix(e,t){return nx(t,e.end)}function ox(e){const t=CI(e)?D(e.modifiers,xN):void 0;return t&&!hT(t.end)?ix(e,t.end):e}function ax(e){if(kN(e)||CN(e))return ix(e,e.name.pos);const t=CI(e)?Oe(e.modifiers):void 0;return t&&!hT(t.end)?ix(e,t.end):ox(e)}function sx(e){return e.pos===e.end}function cx(e,t){return nx(e,e+Ga(t).length)}function lx(e,t){return dx(e,e,t)}function ux(e,t,n){return hx(yx(e,n,!1),yx(t,n,!1),n)}function _x(e,t,n){return hx(e.end,t.end,n)}function dx(e,t,n){return hx(yx(e,n,!1),t.end,n)}function px(e,t,n){return hx(e.end,yx(t,n,!1),n)}function fx(e,t,n,r){const i=yx(t,n,r);return as(n,e.end,i)}function mx(e,t,n){return as(n,e.end,t.end)}function gx(e,t){return!hx(e.pos,e.end,t)}function hx(e,t,n){return 0===as(n,e,t)}function yx(e,t,n){return hT(e.pos)?-1:hs(t.text,e.pos,!1,n)}function vx(e,t,n,r){const i=hs(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!cs(n.text.charCodeAt(e)))return e}(i,t,n);return as(n,null!=o?o:t,i)}function bx(e,t,n,r){const i=hs(n.text,e,!1,r);return as(n,e,Math.min(t,i))}function xx(e){const t=Nc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function Sx(e){return L(e.declarations,kx)}function kx(e){return oP(e)&&void 0!==e.initializer}function Tx(e){return e.watch&&$e(e,"watch")}function Cx(e){e.close()}function wx(e){return 33554432&e.flags?e.links.checkFlags:0}function Dx(e,t=!1){if(e.valueDeclaration){const n=vc(t&&e.declarations&&w(e.declarations,EN)||32768&e.flags&&w(e.declarations,NN)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&wx(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function Nx(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function Ex(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Px(e){return 1===Ax(e)}function Fx(e){return 0!==Ax(e)}function Ax(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return Ax(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&kb(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:Ax(t);case 303:{const n=Ax(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return En.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:Ax(t.parent);default:return 0}}function Ix(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!Ix(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function Ox(e,t){e.forEach(t),e.clear()}function Lx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))}))}
1function Rx(e,t,n){Lx(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function Mx(e){if(32&e.flags){const t=jx(e);return!!t&&Xv(t,64)}return!1}function jx(e){var t;return null==(t=e.declarations)?void 0:t.find(Du)}function Bx(e){return 3899393&e.flags?e.objectFlags:0}function Jx(e,t){return!!Da(e,(e=>!!t(e)||void 0))}function Ux(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&mP(e.declarations[0])}function qx({moduleSpecifier:e}){return BD(e)?e.text:ap(e)}function zx(e){let t;return ZI(e,(e=>{qd(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(qd(e[n])){t=e[n];break}})),t}function $x(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function Vx(e){return Du(e)||lP(e)||jN(e)}function Wx(e){return e>=182&&e<=205||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===e}function Hx(e){return 211===e.kind||212===e.kind}function Kx(e){return 211===e.kind?e.name:(En.assert(212===e.kind),e.argumentExpression)}function Gx(e){return 275===e.kind||279===e.kind}function Xx(e){for(;Hx(e);)e=e.expression;return e}function Qx(e,t){if(Hx(e.parent)&&Mb(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!nN(n.argumentExpression)&&!Z_(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return Hx(n.expression)?e(n.expression):nN(n.expression)?t(n.expression):void 0}(e.parent)}function Yx(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 354:case 238:e=e.expression;continue}return e}}function Zx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function eS(e,t){this.flags=t,(En.isDebugging||pr)&&(this.checker=e)}function tS(e,t){this.flags=t,En.isDebugging&&(this.checker=e)}function nS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function rS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function iS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function oS(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var aS,sS={getNodeConstructor:()=>nS,getTokenConstructor:()=>rS,getIdentifierConstructor:()=>iS,getPrivateIdentifierConstructor:()=>nS,getSourceFileConstructor:()=>nS,getSymbolConstructor:()=>Zx,getTypeConstructor:()=>eS,getSignatureConstructor:()=>tS,getSourceMapSourceConstructor:()=>oS},cS=[];function lS(e){cS.push(e),e(sS)}function uS(e){Object.assign(sS,e),d(cS,(e=>e(sS)))}function _S(e,t){return e.replace(/{(\d+)}/g,((e,n)=>""+En.checkDefined(t[+n])))}function dS(e){aS=e}function pS(e){!aS&&e&&(aS=e())}function fS(e){return aS&&aS[e.key]||e.message}function mS(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),ef(t,n,r);let a=fS(i);return te(o)&&(a=_S(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function gS(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function hS(e,t){const n=t.fileName||"",r=t.text.length;En.assertEqual(e.fileName,n),En.assertLessThanOrEqual(e.start,r),En.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)gS(o)&&o.fileName===n?(En.assertLessThanOrEqual(o.start,r),En.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(hS(o,t))):i.relatedInformation.push(o)}return i}function yS(e,t){const n=[];for(const r of e)n.push(hS(r,t));return n}function vS(e,t,n,r,...i){ef(e.text,t,n);let o=fS(r);return te(i)&&(o=_S(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function bS(e,...t){let n=fS(e);return te(t)&&(n=_S(n,t)),n}function xS(e,...t){let n=fS(e);return te(t)&&(n=_S(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function SS(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function kS(e,t,...n){let r=fS(t);return te(n)&&(r=_S(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function TS(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function CS(e){return e.file?e.file.path:void 0}function wS(e,t){return DS(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?jt(t.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,((e,n)=>wS(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function DS(e,t){const n=FS(e),r=FS(t);return zt(CS(e),CS(t))||jt(e.start,t.start)||jt(e.length,t.length)||jt(n,r)||function(e,t){let n=AS(e),r=AS(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=zt(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:NS(s,c)||ES(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function NS(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=jt(t.length,e.length);if(n)return n;for(let r=0;r<t.length;r++)if(n=NS(e[r].next,t[r].next),n)return n;return 0}function ES(e,t){let n;for(let r=0;r<t.length;r++){if(n=zt(e[r].messageText,t[r].messageText),n)return n;if(void 0!==e[r].next&&(n=ES(e[r].next,t[r].next),n))return n}return 0}function PS(e,t){const n=FS(e),r=FS(t),i=AS(e),o=AS(t);return 0===zt(CS(e),CS(t))&&0===jt(e.start,t.start)&&0===jt(e.length,t.length)&&0===jt(n,r)&&function(e,t){const n="string"==typeof e?e:e.messageText,r="string"==typeof t?t:t.messageText;return 0===zt(n,r)}(i,o)}function FS(e){var t;return(null==(t=e.canonicalHead)?void 0:t.code)||e.code}function AS(e){var t;return(null==(t=e.canonicalHead)?void 0:t.messageText)||e.messageText}function IS(e){return 4===e||2===e||1===e||6===e?1:0}function OS(e){if(2&e.transformFlags)return j_(e)||JP(e)?e:ZI(e,OS)}function LS(e){return e.isDeclarationFile?void 0:OS(e)}function RS(e){return!(99!==e.impliedNodeFormat&&!$o(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function MS(e){switch(qS(e)){case 3:return e=>{e.externalModuleIndicator=AI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=AI(e)};case 2:const t=[AI];4!==e.jsx&&5!==e.jsx||t.push(LS),t.push(RS);const n=vn(...t);return e=>{e.externalModuleIndicator=n(e)}}}var jS={target:{dependencies:["module"],computeValue:e=>{const t=0===e.target?void 0:e.target;return null!=t?t:(100===e.module?9:199===e.module&&99)||1}},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:jS.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(jS.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===jS.module.computeValue(e)||199===jS.module.computeValue(e)?3:2)}
1,isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(jS.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:jS.esModuleInterop.computeValue(e)||4===jS.module.computeValue(e)||100===jS.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=jS.moduleResolution.computeValue(e);if(!ok(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=jS.moduleResolution.computeValue(e);if(!ok(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===jS.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!jS.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!jS.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?jS.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>ak(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>ak(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>ak(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>ak(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>ak(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>ak(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>ak(e,"alwaysStrict")}
1,useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>ak(e,"useUnknownInCatchVariables")}},BS=jS.target.computeValue,JS=jS.module.computeValue,US=jS.moduleResolution.computeValue,qS=jS.moduleDetection.computeValue,zS=jS.isolatedModules.computeValue,$S=jS.esModuleInterop.computeValue,VS=jS.allowSyntheticDefaultImports.computeValue,WS=jS.resolvePackageJsonExports.computeValue,HS=jS.resolvePackageJsonImports.computeValue,KS=jS.resolveJsonModule.computeValue,GS=jS.declaration.computeValue,XS=jS.preserveConstEnums.computeValue,QS=jS.incremental.computeValue,YS=jS.declarationMap.computeValue,ZS=jS.allowJs.computeValue,ek=jS.useDefineForClassFields.computeValue;function tk(e){return e>=5&&e<=99}function nk(e){switch(JS(e)){case 0:case 4:case 3:return!1}return!0}function rk(e){return!1===e.allowUnreachableCode}function ik(e){return!1===e.allowUnusedLabels}function ok(e){return e>=3&&e<=99||100===e}function ak(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function sk(e){return bd(OO.type,((t,n)=>t===e?n:void 0))}function ck(e){return!1!==e.useDefineForClassFields&&BS(e)>=9}function lk(e,t){return yd(t,e,jO)}function uk(e,t){return yd(t,e,BO)}function _k(e,t){return yd(t,e,JO)}function dk(e,t){return t.strictFlag?ak(e,t.name):t.allowJsFlag?ZS(e):e[t.name]}function pk(e){const t=e.jsx;return 2===t||4===t||5===t}function fk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=pt(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function mk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function gk(e){let t=!1;for(let n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function hk(e,t){let n,r,i,o=!1;return{getSymlinkedFiles:()=>i,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=la(i,e,t);ZT(a)||(a=_a(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=ct())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){En.assert(!o),o=!0,e((e=>a(this,e.resolvedModule))),t((e=>a(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>a(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!bd(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(la(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Zo(aa(e,n)),o=Zo(aa(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!yk(i[i.length-2],r)&&!yk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[ea(i),ea(o)]:void 0}(i,o,e,t)||c;a&&s&&n.setSymlinkedDirectory(s,{real:_a(a),realPath:_a(la(a,e,t))})}}function yk(e,t){return void 0!==e&&("node_modules"===t(e)||fn(e,"@"))}function vk(e,t,n){const r=gn(e,t,n);return void 0===r?void 0:Lo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var bk=/[^\w\s/]/g;function xk(e){return e.replace(bk,Sk)}function Sk(e){return"\\"+e}var kk=[42,63],Tk=["node_modules","bower_components","jspm_packages"],Ck=`(?!(${Tk.join("|")})(/|$))`,wk={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Ck}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Lk(e,wk.singleAsteriskRegexFragment)},Dk={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Ck}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Lk(e,Dk.singleAsteriskRegexFragment)},Nk={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Lk(e,Nk.singleAsteriskRegexFragment)},Ek={files:wk,directories:Dk,exclude:Nk};function Pk(e,t,n){const r=Fk(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function Fk(e,t,n){if(void 0!==e&&0!==e.length)return q(e,(e=>e&&Ok(e,t,n,Ek[n])))}function Ak(e){return!/[.*?]/.test(e)}function Ik(e,t,n){const r=e&&Ok(e,t,n,Ek[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function Ok(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=Ek[n]){let a="",s=!1;const c=oa(e,t),l=Le(c);if("exclude"!==n&&"**"===l)return;c[0]=ua(c[0]),Ak(l)&&c.push("**","*");let u=0;for(let _ of c){if("**"===_)a+=i;else if("directories"===n&&(a+="(",u++),s&&(a+=Fo),"exclude"!==n){let e="";42===_.charCodeAt(0)?(e+="([^./]"+r+")?",_=_.substr(1)):63===_.charCodeAt(0)&&(e+="[^./]",_=_.substr(1)),e+=_.replace(bk,o),e!==_&&(a+=Ck),a+=e}else a+=_.replace(bk,o);s=!0}for(;u>0;)a+=")?",u--;return a}function Lk(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Rk(e,t,n,r,i){e=sa(e);const o=ra(i=sa(i),e);return{includeFilePatterns:j(Fk(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:Pk(n,o,"files"),includeDirectoryPattern:Pk(n,o,"directories"),excludePattern:Pk(t,o,"exclude"),basePaths:Bk(e,n,r)}}function Mk(e,t){return new RegExp(e,t?"":"i")}function jk(e,t,n,r,i,o,a,s,c){e=sa(e),o=sa(o);const l=Rk(e,n,r,i,o),u=l.includeFilePatterns&&l.includeFilePatterns.map((e=>Mk(e,i))),_=l.includeDirectoryPattern&&Mk(l.includeDirectoryPattern,i),d=l.excludePattern&&Mk(l.excludePattern,i),p=u?u.map((()=>[])):[[]],f=new Map,m=un(i);for(const h of l.basePaths)g(h,ra(o,h),a);return U(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const s of xe(o,zt)){const r=ra(e,s),i=ra(n,s);if((!t||$o(r,t))&&(!d||!d.test(i)))if(u){const e=N(u,(e=>e.test(i)));-1!==e&&p[e].push(r)}else p[0].push(r)}if(void 0===r||0!=--r)for(const t of xe(a,zt)){const i=ra(e,t),o=ra(n,t);_&&!_.test(o)||d&&d.test(o)||g(i,o,r)}}}function Bk(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=Mo(n)?n:sa(ra(e,n));i.push(Jk(t))}i.sort($t(!n));for(const t of i)C(r,(r=>!ba(r,t,e,!n)))&&r.push(t)}return r}function Jk(e){const t=I(e,kk);return t<0?qo(e)?ua(Go(e)):e:e.substring(0,e.lastIndexOf(Fo,t))}function Uk(e,t){return t||qk(e)||3}function qk(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var zk=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]
1],$k=U(zk),Vk=[...zk,[".json"]],Wk=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Hk=[[".js",".jsx"],[".mjs"],[".cjs"]],Kk=U(Hk),Gk=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Xk=[...Gk,[".json"]],Qk=[".d.ts",".d.cts",".d.mts"],Yk=[".ts",".cts",".mts",".tsx"],Zk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function eT(e,t){const n=e&&ZS(e);if(!t||0===t.length)return n?Gk:zk;const r=n?Gk:zk,i=U(r);return[...r,...H(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function tT(e,t){return e&&KS(e)?t===Gk?Xk:t===zk?Vk:[...t,[".json"]]:t}function nT(e){return te(Kk,(t=>zo(e,t)))}function rT(e){return te($k,(t=>zo(e,t)))}var iT=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(iT||{});function oT({imports:e},t=vn(nT,rT)){return y(e,(({text:e})=>Jo(e)&&!$o(e,Zk)?t(e):void 0))||!1}function aT(e,t,n,r){const i=US(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?Uj(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:Uj(n)?a():r&&oT(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&$m(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;ng(r)?t=re(t,r.declarationList.declarations.map((e=>e.initializer))):zE(r)&&Qm(r.expression,!0)?t=fe(t,r.expression):n++}return t||c}(r).map((e=>e.arguments[0])):c;for(const a of i)if(Jo(a.text)){if(o&&1===t&&99===p$(r,a,n))continue;if($o(a.text,Zk))continue;if(rT(a.text))return 3;nT(a.text)&&(e=!0)}return e?2:0}}function sT(e,t,n){if(!e)return!1;const r=eT(t,n);for(const i of U(tT(t,r)))if(zo(e,i))return!0;return!1}function cT(e){const t=e.match(/\//g);return t?t.length:0}function lT(e,t){return jt(cT(e),cT(t))}var uT=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function _T(e){for(const t of uT){const n=dT(e,t);if(void 0!==n)return n}return e}function dT(e,t){return zo(e,t)?pT(e,t):void 0}function pT(e,t){return e.substring(0,e.length-t.length)}function fT(e,t){return pa(e,t,uT,!1)}function mT(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function gT(e){return H(We(e),(e=>mT(e)))}function hT(e){return!(e>=0)}function yT(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||fn(e,".d.")&&tn(e,".ts")}function vT(e){return yT(e)||".json"===e}function bT(e){const t=ST(e);return void 0!==t?t:En.fail(`File ${e} has unknown extension.`)}function xT(e){return void 0!==ST(e)}function ST(e){return w(uT,(t=>zo(e,t)))}function kT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var TT={files:c,directories:c};function CT(e,t){const n=[];for(const r of e){if(r===t)return t;mt(r)||n.push(r)}return pn(n,(e=>e),t)}function wT(e,t){const n=e.indexOf(t);return En.assert(-1!==n),e.slice(n)}function DT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),En.assert(e.relatedInformation!==c,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function NT(e,t){En.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;i<e.length;i++){const o=t(e[i]);o<n?n=o:o>r&&(r=o)}return{min:n,max:r}}function ET(e){return{pos:tp(e),end:e.end}}function PT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,hs(e.text,t.end)+1)}}function FT(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!AT(e,t)}function AT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&kT(e,t);return Ld(e,t.checkJs)||n||7===e.scriptKind}function IT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&Ye(e,t,IT)}function OT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}
1const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let c=n-1,l=0;c>=2;c--,l+=t){const t=l>>>4,n=e.charCodeAt(c),r=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&l);i[t]|=r;const o=r>>>16;o&&(i[t+1]|=o)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function LT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function RT(e){if(jT(e,!1))return MT(e)}function MT(e){const t=e.startsWith("-");return{negative:t,base10Value:OT(`${t?e.slice(1):e}n`)}}function jT(e,t){if(""===e)return!1;const n=Rs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===LT({negative:o,base10Value:OT(n.getTokenValue())}))}function BT(e){return!!(33554432&e.flags)||Mm(e)||function(e){if(80!==e.kind)return!1;const t=wc(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Xv(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(Lm(e)||function(e){return nN(e)&&ZP(e.parent)&&e.parent.name===e}(e))}function JT(e){return ON(e)&&nN(e.typeName)}function UT(e,t=Ot){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;r<i;r++)if(!t(n,e[r]))return!1;return!0}function qT(e,t){return e.pos=t,e}function zT(e,t){return e.end=t,e}function $T(e,t,n){return zT(qT(e,t),n)}function VT(e,t,n){return $T(e,t,t+n)}function WT(e,t){return e&&(e.flags=t),e}function HT(e,t){return e&&t&&(e.parent=t),e}function KT(e,t){if(e)for(const n of e)HT(n,t);return e}function GT(e,t){return e?(eO(e,J_(e)?n:function(e,t){return n(e,t)||function(e){if(V_(e))for(const t of e.jsDoc)n(t,e),eO(t,n)}(e)}),e):e;function n(e,n){if(t&&e.parent===n)return"skip";HT(e,n)}}function XT(e){return!EE(e)}function QT(e){return aE(e)&&C(e.elements,XT)}function YT(e){for(En.assertIsDefined(e.parent);;){const t=e.parent;if(fE(t))e=t;else{if(zE(t)||vE(t)||HE(t)&&(t.initializer===e||t.incrementor===e))return!0;if(ME(t)){if(e!==Le(t.elements))return!0;e=t}else{if(!kE(t)||28!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}}function ZT(e){return te(vo,(t=>e.includes(t)))}function eC(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return wI(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(q_(e))return vF(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Ou(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 355:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Mu(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return L_(e)?t.children:void 0;case 286:case 285:return Mu(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 307:return t.statements;case 269:return t.clauses;case 263:case 231:return wu(e)?t.members:void 0;case 266:return tF(e)?t.members:void 0}}function tC(e){if(!e.typeParameters){if(te(e.parameters,(e=>!Ov(e))))return!0;if(219!==e.kind){const t=Pe(e.parameters);if(!t||!Nv(t))return!0}}return!1}function nC(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function rC(e){return 260===e.kind&&299===e.parent.kind}function iC(e){return 218===e.kind||219===e.kind}function oC(e){return e.replace(/\$/gm,(()=>"\\$"))}function aC(e){return(+e).toString()===e}function sC(e,t,n,r,i){const o=i&&"new"===e;return!o&&Ls(e,t)?_w.createIdentifier(e):!r&&!o&&aC(e)&&+e>=0?_w.createNumericLiteral(+e):_w.createStringLiteral(e,!!n)}function cC(e){return!!(262144&e.flags&&e.isThisType)}function lC(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(ZM,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(ZM,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function uC(e){var t;return 341===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function _C(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function dC(e){return _P(e)||UE(e)||sP(e)||cP(e)||lP(e)||_C(e)||dP(e)&&!Cp(e)&&!Tp(e)}function pC(e){if(!zl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&316===n.type.kind}function fC(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&Is(e.charCodeAt(1),t):Is(n,t)}function mC(e){var t;return 0===(null==(t=zw(e))?void 0:t.kind)}function gC(e){return Wm(e)&&(e.type&&316===e.type.kind||Vc(e).some(pC))}function hC(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||gC(e);case 348:case 341:return pC(e);default:return!1}}function yC(e){const t=e.kind;return(211===t||212===t)&&IE(e.expression)}function vC(e){return Wm(e)&&fE(e)&&V_(e)&&!!ml(e)}function bC(e){return En.checkDefined(xC(e))}function xC(e){const t=ml(e);return t&&t.typeExpression&&t.typeExpression.type}function SC(e){return nN(e)?e.escapedText:CC(e)}function kC(e){return nN(e)?Fc(e):wC(e)}function TC(e){const t=e.kind;return 80===t||295===t}function CC(e){return`${e.namespace.escapedText}:${Fc(e.name)}`}function wC(e){return`${Fc(e.namespace)}:${Fc(e.name)}`}function DC(e){return nN(e)?Fc(e):wC(e)}function NC(e){return!!(8576&e.flags)}function EC(e){return 8192&e.flags?e.escapedName:384&e.flags?Ec(""+e.value):En.fail()}function PC(e){return!!e&&(cE(e)||lE(e)||kE(e))}function FC(e){return void 0!==e&&!!m$(e.attributes)}var AC=String.prototype.replace;function IC(e,t){return AC.call(e,"*",t)}function OC(e){return nN(e.name)?e.name.escapedText:Ec(e.name.text)}function LC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function RC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(r,i){let o=!1,a=!1,s=!1;switch((r=bh(r)).kind){case 224:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return LC(c.value,o,a,s);case 41:return LC(-c.value,o,a,s);case 55:return LC(~c.value,o,a,s)}break;case 226:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return LC(e.value|t.value,o,a,s);case 51:return LC(e.value&t.value,o,a,s);case 49:return LC(e.value>>t.value,o,a,s);case 50:return LC(e.value>>>t.value,o,a,s);case 48:return LC(e.value<<t.value,o,a,s);case 53:return LC(e.value^t.value,o,a,s);case 42:return LC(e.value*t.value,o,a,s);case 44:return LC(e.value/t.value,o,a,s);case 40:return LC(e.value+t.value,o,a,s);case 41:return LC(e.value-t.value,o,a,s);case 45:return LC(e.value%t.value,o,a,s);case 43:return LC(p(e.value,t.value),o,a,s)}else if(!("string"!=typeof e.value&&"number"!=typeof e.value||"string"!=typeof t.value&&"number"!=typeof t.value||40!==r.operatorToken.kind))return LC(""+e.value+t.value,o,a,s);break}case 11:case 15:return LC(r.text,!0);case 228:return function(e,t){let r=e.head.text,i=!1,o=!1;for(const a of e.templateSpans){const e=n(a.expression,t);if(void 0===e.value)return LC(void 0,!0);r+=e.value,r+=a.literal.text,i||(i=e.resolvedOtherFiles),o||(o=e.hasExternalReferences)}return LC(r,!0,i,o)}(r,i);case 9:return LC(+r.text);case 80:return t(r,i);case 211:if(Pb(r))return t(r,i);break;case 212:return e(r,i)}return LC(void 0,o,a,s)}return n}function MC(e){return c_(e)&&jl(e.type)||MF(e)&&jl(e.typeExpression)}function jC(e){const t=e.members;for(const n of t)if(176===n.kind&&qd(n.body))return n}function BC({compilerOptions:e,requireSymbol:t,argumentsSymbol:n,error:r,getSymbolOfDeclaration:i,globals:o,lookup:a,setRequiresScopeChangeCache:s=St,getRequiresScopeChangeCache:c=St,onPropertyWithInvalidInitializer:l=bt,onFailedToResolveSymbol:u=St,onSuccessfullyResolvedSymbol:_=St}){var p=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",f=ck(e),m=_d();return function(s,c,d,f,b,x){var S,k,T;const C=s;let w,D,N,E,P,F,A=!1;const I=mt(c)?c:c.escapedText;e:for(;s;){if("const"===I&&MC(s))return;if(k_(s)&&D&&s.name===D&&(D=s,s=s.parent),C_(s)&&s.locals&&!uf(s)&&(w=a(s.locals,I,d))){let e=!0;if(vu(s)&&D&&D!==s.body?(d&w.flags&788968&&320!==D.kind&&(e=!!(262144&w.flags&&(16&D.flags||D===s.type||169===D.kind||341===D.kind||342===D.kind||168===D.kind))),d&w.flags&3&&(g(w,s,D)?e=!1:1&w.flags&&(e=169===D.kind||!!(16&D.flags)||D===s.type&&!!wc(w.valueDeclaration,bN)))):194===s.kind&&(e=D===s.trueType),e)break e;w=void 0}switch(A=A||h(s,D),s.kind){case 307:if(!_f(s))break;
1case 267:const t=(null==(S=i(s))?void 0:S.exports)||m;if(307===s.kind||dP(s)&&33554432&s.flags&&!Tp(s)){if(w=t.get("default")){const e=zb(w);if(e&&w.flags&d&&e.escapedName===I)break e;w=void 0}const e=t.get(I);if(e&&2097152===e.flags&&(ld(e,281)||ld(e,280)))break}if("default"!==I&&(w=a(t,I,2623475&d))){if(!nF(s)||!s.commonJsModuleIndicator||(null==(k=w.declarations)?void 0:k.some(qg)))break e;w=void 0}break;case 266:if(w=a((null==(T=i(s))?void 0:T.exports)||m,I,8&d)){!f||!zS(e)||33554432&s.flags||Id(s)===Id(w.valueDeclaration)||r(C,Pa.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Pc(I),p,`${Pc(i(s).escapedName)}.${Pc(I)}`);break e}break;case 172:if(!Qv(s)){const e=jC(s.parent);e&&e.locals&&a(e.locals,I,111551&d)&&(En.assertNode(s,kN),E=s)}break;case 263:case 231:case 264:if(w=a(i(s).members||m,I,788968&d)){if(!v(w,s)){w=void 0;break}if(D&&Qv(D))return void(f&&r(C,Pa.Static_members_cannot_reference_class_type_parameters));break e}if(NE(s)&&32&d){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 233:if(D===s.expression&&96===s.parent.token){const e=s.parent.parent;if(Du(e)&&(w=a(i(e).members,I,788968&d)))return void(f&&r(C,Pa.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 167:if(F=s.parent.parent,(Du(F)||264===F.kind)&&(w=a(i(F).members,I,788968&d)))return void(f&&r(C,Pa.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 219:if(BS(e)>=2)break;case 174:case 176:case 177:case 178:case 262:if(3&d&&"arguments"===I){w=n;break e}break;case 218:if(3&d&&"arguments"===I){w=n;break e}if(16&d){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 170:s.parent&&169===s.parent.kind&&(s=s.parent),s.parent&&(wu(s.parent)||263===s.parent.kind)&&(s=s.parent);break;case 346:case 338:case 340:case 351:const o=oh(s);o&&(s=o.parent);break;case 169:D&&(D===s.initializer||D===s.name&&Bu(D))&&(P||(P=s));break;case 208:D&&(D===s.initializer||D===s.name&&Bu(D))&&hy(s)&&!P&&(P=s);break;case 195:if(262144&d){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 281:D&&D===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,D)&&(N=s),D=s,s=jF(s)?eh(s)||s.parent:(OF(s)||LF(s))&&nh(s)||s.parent}if(!b||!w||N&&w===N.symbol||(w.isReferenced|=d),!w){if(D&&(En.assertNode(D,nF),D.commonJsModuleIndicator&&"exports"===I&&d&D.symbol.flags))return D.symbol;x||(w=a(o,I,d))}if(!w&&C&&Wm(C)&&C.parent&&Qm(C.parent,!1))return t;if(f){if(E&&l(C,I,E,w))return;w?_(C,w,d,D,P,A):u(C,c,d,f)}return w};function g(t,n,r){const i=BS(e),o=n;if(bN(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=d(o.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return a(e.name);case 172:return Yv(e)?!f:a(e.name);default:return Ml(e)||Il(e)?i<7:oE(e)&&e.dotDotDotToken&&rE(e.parent)?i<4:!Mu(e)&&(ZI(e,a)||!1)}}}function h(e,t){return 219!==e.kind&&218!==e.kind?MN(e)||(xu(e)||172===e.kind&&!Qv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!Xv(e,1024)&&vm(e))}function y(e,t){switch(e.kind){case 169:return!!t&&t===e.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind&&(jF(n.parent)?ih(n.parent):n.parent)===t)return!(jF(n.parent)&&w(n.parent.parent.tags,qg));return!1}}function JC(e,t=!0){switch(En.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return 41===e.operator?MD(e.operand)||t&&jD(e.operand):40===e.operator&&MD(e.operand);default:return!1}}function UC(e){for(;217===e.kind;)e=e.expression;return e}function qC(e){switch(En.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:return!0;default:return!1}}function zC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=sS.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=sS.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=sS.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=sS.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=sS.getNodeConstructor()))(t,-1,-1)}}}function $C(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);return n||(n=t=>o(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return yA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=Ny(227,58),r=Bl(t);return 1!==jt(Cy(r),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return yA(Bl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Bl(t);let r=yA(n);if(!r)switch(Yx(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Yx(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return t_(t)?t:TI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return r_(t)?t:TI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=J(t,c);return TI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Bl(t);if(uE(n)){const r=n.expression,i=Bl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,TI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Yx(n,!1).kind;return 210===r||218===r?TI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return JE(t)||!yA(t)&&210!==Yx(t,!1).kind?t:TI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 194===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(J(t,u))},parenthesizeConstituentTypeOfUnionType:u,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(J(t,_))},parenthesizeConstituentTypeOfIntersectionType:_,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 198===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(J(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if(te(t))return e.createNodeArray(J(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Gl((e=Bl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Gl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===Bl(n).kind?n:function(e,t,n,i){const o=Ny(226,e),a=Ty(226,e),s=Bl(t);if(!n&&219===t.kind&&o>3)return!0;switch(jt(Cy(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(kE(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Gl(e)&&e===r(s))return!1}}return 0===ky(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=Bl(t);return!t_(r)||214===r.kind&&!r.arguments||!n&&Il(r)?TI(e.createParenthesizedExpression(t),t):t}function c(t){return Cy(Bl(t))>Ny(226,28)?t:TI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return u(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):_(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return dF(e)?e.postfix:UN(e)||LN(e)||RN(e)||XN(e)?m(e.type):WN(e)?m(e.falseType):$N(e)||VN(e)?m(Le(e.types)):!!HN(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return ju(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var VC={getParenthesizeLeftSideOfBinaryForOperator:e=>kt,getParenthesizeRightSideOfBinaryForOperator:e=>kt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:kt,parenthesizeConditionOfConditionalExpression:kt,parenthesizeBranchOfConditionalExpression:kt,parenthesizeExpressionOfExportDefault:kt,parenthesizeExpressionOfNew:e=>yt(e,t_),parenthesizeLeftSideOfAccess:e=>yt(e,t_),parenthesizeOperandOfPostfixUnary:e=>yt(e,t_),parenthesizeOperandOfPrefixUnary:e=>yt(e,r_),parenthesizeExpressionsOfCommaDelimitedList:e=>yt(e,Kl),parenthesizeExpressionForDisallowedComma:kt,parenthesizeExpressionOfExpressionStatement:kt,parenthesizeConciseBodyOfArrowFunction:kt,parenthesizeCheckTypeOfConditionalType:kt,parenthesizeExtendsTypeOfConditionalType:kt,parenthesizeConstituentTypesOfUnionType:e=>yt(e,Kl),parenthesizeConstituentTypeOfUnionType:kt,parenthesizeConstituentTypesOfIntersectionType:e=>yt(e,Kl),parenthesizeConstituentTypeOfIntersectionType:kt,parenthesizeOperandOfTypeOperator:kt,parenthesizeOperandOfReadonlyTypeOperator:kt,parenthesizeNonArrayTypeOfPostfixType:kt,parenthesizeElementTypesOfTupleType:e=>yt(e,Kl),parenthesizeElementTypeOfTupleType:kt,parenthesizeTypeOfOptionalType:kt,parenthesizeTypeArguments:e=>e&&yt(e,Kl),parenthesizeLeadingTypeArgument:kt};function WC(e){return{convertToFunctionBlock:function(t,n){if(JE(t))return t;
1const r=e.createReturnStatement(t);TI(r,t);const i=e.createBlock([r],n);return TI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return En.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=zc(t))?void 0:n.filter((e=>!iN(e)&&!oN(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return pw(r,t),TI(r,t),Cw(t)&&ww(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!iN(e)&&!oN(e))),t.name,t.typeParameters,t.heritageClauses,t.members);return pw(r,t),TI(r,t),Cw(t)&&ww(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(oE(t)){if(t.dotDotDotToken)return En.assertNode(t.name,nN),pw(TI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?pw(TI(e.createAssignment(n,t.initializer),t),t):n}return yt(t,s_)}function n(t){if(oE(t)){if(t.dotDotDotToken)return En.assertNode(t.name,nN),pw(TI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return pw(TI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return En.assertNode(t.name,nN),pw(TI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return yt(t,Ru)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return rE(t)?pw(TI(e.createObjectLiteralExpression(j(t.elements,n)),t),t):yt(t,sE)}function o(n){return iE(n)?pw(TI(e.createArrayLiteralExpression(j(n.elements,t)),n),n):yt(n,aE)}function a(e){return Bu(e)?r(e):yt(e,s_)}}var HC,KC={convertToFunctionBlock:Dt,convertToFunctionExpression:Dt,convertToClassExpression:Dt,convertToArrayAssignmentElement:Dt,convertToObjectAssignmentElement:Dt,convertToAssignmentPattern:Dt,convertToObjectAssignmentPattern:Dt,convertToArrayAssignmentPattern:Dt,convertToAssignmentElementTarget:Dt},GC=0,XC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(XC||{}),QC=[];function YC(e){QC.push(e)}function ZC(e,t){const n=8&e?kt:pw,r=Nt((()=>1&e?VC:$C(b))),i=Nt((()=>2&e?KC:WC(b))),o=Et((e=>(t,n)=>Lt(t,e,n))),a=Et((e=>t=>It(e,t))),s=Et((e=>t=>Ot(t,e))),l=Et((e=>()=>function(e){return S(e)}(e))),u=Et((e=>t=>dr(e,t))),_=Et((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(dr(e,n),t):t}(e,t,n))),p=Et((e=>(t,n)=>_r(e,t,n))),f=Et((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(_r(e,n,t.postfix),t):t}(e,t,n))),g=Et((e=>(t,n)=>Or(e,t,n))),h=Et((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Ii(Or(e,n,r),t):t}(e,t,n,r))),y=Et((e=>(t,n,r)=>Lr(e,t,n,r))),v=Et((e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Ii(Lr(e,n,r,i),t):t}(e,t,n,r,i))),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:w,createBigIntLiteral:D,createStringLiteral:E,createStringLiteralFromNode:function(e){const t=N(oy(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:P,createLiteralLikeNode:function(e,t){switch(e){case 9:return w(t,0);case 10:return D(t);case 11:return E(t,void 0);case 12:return Wr(t,!1);case 13:return Wr(t,!0);case 14:return P(t);case 15:return qt(e,t,void 0,0)}},createIdentifier:I,createTempVariable:O,createLoopVariable:function(e){let t=2;return e&&(t|=8),A("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return En.assert(!(7&t),"Argument out of range: flags"),En.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),A(e,3|t,n,r)},getGeneratedNameForNode:L,createPrivateIdentifier:function(e){return fn(e,"#")||En.fail("First character of private identifier must be #: "+e),R(Ec(e))},createUniquePrivateName:function(e,t,n){return e&&!fn(e,"#")&&En.fail("First character of private identifier must be #: "+e),M(null!=e?e:"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=Nl(e)?gI(!0,t,e,n,Fc):`#generated@${ZB(e)}`,i=M(r,4|(t||n?16:0),t,n);return i.original=e,i},createToken:B,createSuper:function(){return B(108)},createThis:J,createNull:U,createTrue:q,createFalse:z,createModifier:$,createModifiersFromModifierFlags:W,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Ii(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?Ii(K(t),e):e}
1,createTypeParameterDeclaration:G,updateTypeParameterDeclaration:X,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Ii(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:ne,createPropertyDeclaration:re,updatePropertyDeclaration:ie,createMethodSignature:oe,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:ue,updateConstructorDeclaration:_e,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:me,updateSetAccessorDeclaration:ge,createCallSignature:he,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createConstructSignature:ye,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ye(t,n,r),e):e},createIndexSignature:ve,updateIndexSignature:be,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=le(t))!==(r=e)&&(n.modifiers=r.modifiers),Ii(n,r)):e;var n,r},createTemplateLiteralTypeSpan:xe,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Ii(xe(t,n),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:Se,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Ii(Se(t,n,r),e):e},createTypeReferenceNode:ke,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Ii(ke(t,n),e):e},createFunctionTypeNode:Te,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Te(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:Ce,updateConstructorTypeNode:function(...e){return 5===e.length?De(...e):4===e.length?function(e,t,n,r){return De(e,e.modifiers,t,n,r)}(...e):En.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ne,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Ii(Ne(t,n),e):e},createTypeLiteralNode:Ee,updateTypeLiteralNode:function(e,t){return e.members!==t?Ii(Ee(t),e):e},createArrayTypeNode:Pe,updateArrayTypeNode:function(e,t){return e.elementType!==t?Ii(Pe(t),e):e},createTupleTypeNode:Fe,updateTupleTypeNode:function(e,t){return e.elements!==t?Ii(Fe(t),e):e},createNamedTupleMember:Ae,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Ii(Ae(t,n,r,i),e):e},createOptionalTypeNode:Ie,updateOptionalTypeNode:function(e,t){return e.type!==t?Ii(Ie(t),e):e},createRestTypeNode:Le,updateRestTypeNode:function(e,t){return e.type!==t?Ii(Le(t),e):e},createUnionTypeNode:function(e){return Me(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return je(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return je(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Be,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Ii(Be(t,n,r,i),e):e},createInferTypeNode:Je,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Ii(Je(t),e):e},createImportTypeNode:ze,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Ii(ze(t,n,r,i,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?Ii(Ve(t),e):e},createThisTypeNode:function(){const e=S(197);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?Ii(We(e.operator,t),e):e},createIndexedAccessTypeNode:He,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Ii(He(t,n),e):e},createMappedTypeNode:Ke,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Ii(Ke(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ge,updateLiteralTypeNode:function(e,t){return e.literal!==t?Ii(Ge(t),e):e}
1,createTemplateLiteralType:Ue,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(Ue(t,n),e):e},createObjectBindingPattern:Xe,updateObjectBindingPattern:function(e,t){return e.elements!==t?Ii(Xe(t),e):e},createArrayBindingPattern:Qe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Ii(Qe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Ii(Ye(t,n,r,i),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Ii(Ze(t,e.multiLine),e):e},createObjectLiteralExpression:et,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Ii(et(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>hw(nt(e,t),262144):nt,updatePropertyAccessExpression:function(e,t,n){return Pl(e)?it(e,t,e.questionDotToken,yt(n,nN)):e.expression!==t||e.name!==n?Ii(nt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>hw(rt(e,t,n),262144):rt,updatePropertyAccessChain:it,createElementAccessExpression:at,updateElementAccessExpression:function(e,t,n){return Fl(e)?ct(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Ii(at(t,n),e):e},createElementAccessChain:st,updateElementAccessChain:ct,createCallExpression:ut,updateCallExpression:function(e,t,n,r){return Al(e)?dt(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(ut(t,n,r),e):e},createCallChain:_t,updateCallChain:dt,createNewExpression:ft,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(ft(t,n,r),e):e},createTaggedTemplateExpression:mt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Ii(mt(t,n,r),e):e},createTypeAssertion:gt,updateTypeAssertion:ht,createParenthesizedExpression:vt,updateParenthesizedExpression:bt,createFunctionExpression:St,updateFunctionExpression:Tt,createArrowFunction:Ct,updateArrowFunction:wt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?Ii(Dt(t),e):e},createTypeOfExpression:Pt,updateTypeOfExpression:function(e,t){return e.expression!==t?Ii(Pt(t),e):e},createVoidExpression:Ft,updateVoidExpression:function(e,t){return e.expression!==t?Ii(Ft(t),e):e},createAwaitExpression:At,updateAwaitExpression:function(e,t){return e.expression!==t?Ii(At(t),e):e},createPrefixUnaryExpression:It,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Ii(It(e.operator,t),e):e},createPostfixUnaryExpression:Ot,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Ii(Ot(t,e.operator),e):e},createBinaryExpression:Lt,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Ii(Lt(t,n,r),e):e},createConditionalExpression:Mt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Ii(Mt(t,n,r,i,o),e):e},createTemplateExpression:jt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(jt(t,n),e):e},createTemplateHead:function(e,t,n){return qt(16,e=Bt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return qt(17,e=Bt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return qt(18,e=Bt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Ut(15,e=Bt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:qt,createYieldExpression:zt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Ii(zt(t,n),e):e},createSpreadElement:$t,updateSpreadElement:function(e,t){return e.expression!==t?Ii($t(t),e):e},createClassExpression:Vt,updateClassExpression:Wt,createOmittedExpression:function(){return S(232)},createExpressionWithTypeArguments:Ht,updateExpressionWithTypeArguments:function(e,t,n){return e.expression!==t||e.typeArguments!==n?Ii(Ht(t,n),e):e},createAsExpression:Kt,updateAsExpression:Gt,createNonNullExpression:Xt,updateNonNullExpression:Qt,createSatisfiesExpression:Yt,updateSatisfiesExpression:Zt,createNonNullChain:en,updateNonNullChain:tn,createMetaProperty:nn,updateMetaProperty:function(e,t){return e.name!==t?Ii(nn(e.keywordToken,t),e):e}
1,createTemplateSpan:rn,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Ii(rn(t,n),e):e},createSemicolonClassElement:function(){const e=S(240);return e.transformFlags|=1024,e},createBlock:on,updateBlock:function(e,t){return e.statements!==t?Ii(on(t,e.multiLine),e):e},createVariableStatement:an,updateVariableStatement:sn,createEmptyStatement:cn,createExpressionStatement:ln,updateExpressionStatement:function(e,t){return e.expression!==t?Ii(ln(t),e):e},createIfStatement:un,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Ii(un(t,n,r),e):e},createDoStatement:_n,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Ii(_n(t,n),e):e},createWhileStatement:dn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(dn(t,n),e):e},createForStatement:pn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Ii(pn(t,n,r,i),e):e},createForInStatement:mn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Ii(mn(t,n,r),e):e},createForOfStatement:gn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Ii(gn(t,n,r,i),e):e},createContinueStatement:hn,updateContinueStatement:function(e,t){return e.label!==t?Ii(hn(t),e):e},createBreakStatement:yn,updateBreakStatement:function(e,t){return e.label!==t?Ii(yn(t),e):e},createReturnStatement:vn,updateReturnStatement:function(e,t){return e.expression!==t?Ii(vn(t),e):e},createWithStatement:bn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(bn(t,n),e):e},createSwitchStatement:xn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Ii(xn(t,n),e):e},createLabeledStatement:Sn,updateLabeledStatement:kn,createThrowStatement:Tn,updateThrowStatement:function(e,t){return e.expression!==t?Ii(Tn(t),e):e},createTryStatement:Cn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Ii(Cn(t,n,r),e):e},createDebuggerStatement:function(){const e=S(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:wn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Ii(wn(t,n,r,i),e):e},createVariableDeclarationList:Dn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Ii(Dn(t,e.flags),e):e},createFunctionDeclaration:Nn,updateFunctionDeclaration:Pn,createClassDeclaration:Fn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:Rn,createEnumDeclaration:Mn,updateEnumDeclaration:jn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:Un,updateModuleBlock:function(e,t){return e.statements!==t?Ii(Un(t),e):e},createCaseBlock:qn,updateCaseBlock:function(e,t){return e.clauses!==t?Ii(qn(t),e):e},createNamespaceExportDeclaration:zn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=zn(t))!==(r=e)&&(n.modifiers=r.modifiers),Ii(n,r)):e;var n,r},createImportEqualsDeclaration:$n,updateImportEqualsDeclaration:Vn,createImportDeclaration:Wn,updateImportDeclaration:Hn,createImportClause:Kn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?Ii(Kn(t,n,r),e):e},createAssertClause:Gn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Gn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Ii(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Ii(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Ii(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Ii(er(t),e):e}
1,createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Ii(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Ii(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Ii(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=k(282);return e.jsDoc=void 0,e},createExternalModuleReference:ur,updateExternalModuleReference:function(e,t){return e.expression!==t?Ii(ur(t),e):e},get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return p(315)},get updateJSDocNonNullableType(){return f(315)},get createJSDocNullableType(){return p(314)},get updateJSDocNullableType(){return f(314)},get createJSDocOptionalType(){return u(316)},get updateJSDocOptionalType(){return _(316)},get createJSDocVariadicType(){return u(318)},get updateJSDocVariadicType(){return _(318)},get createJSDocNamepathType(){return u(319)},get updateJSDocNamepathType(){return _(319)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Ii(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Ii(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Ii(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Ii(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Ii(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(xr(t,n,r,i),e):e},createJSDocParameterTag:Sr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst
1!==o||e.comment!==a?Ii(Sr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:kr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(kr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Cr(t,n,r),e):e},createJSDocAugmentsTag:wr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(wr(t,n,r),e):e},createJSDocImplementsTag:Dr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(Dr(t,n,r),e):e},createJSDocSeeTag:Nr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Ii(Nr(t,n,r),e):e},createJSDocImportTag:jr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii(jr(t,n,r,i,o),e):e},createJSDocNameReference:Er,updateJSDocNameReference:function(e,t){return e.name!==t?Ii(Er(t),e):e},createJSDocMemberName:Pr,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Ii(Pr(t,n),e):e},createJSDocLink:Fr,updateJSDocLink:function(e,t,n){return e.name!==t?Ii(Fr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Ii(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Ii(Ir(t,n),e):e},get createJSDocTypeTag(){return y(344)},get updateJSDocTypeTag(){return v(344)},get createJSDocReturnTag(){return y(342)},get updateJSDocReturnTag(){return v(342)},get createJSDocThisTag(){return y(343)},get updateJSDocThisTag(){return v(343)},get createJSDocAuthorTag(){return g(330)},get updateJSDocAuthorTag(){return h(330)},get createJSDocClassTag(){return g(332)},get updateJSDocClassTag(){return h(332)},get createJSDocPublicTag(){return g(333)},get updateJSDocPublicTag(){return h(333)},get createJSDocPrivateTag(){return g(334)},get updateJSDocPrivateTag(){return h(334)},get createJSDocProtectedTag(){return g(335)},get updateJSDocProtectedTag(){return h(335)},get createJSDocReadonlyTag(){return g(336)},get updateJSDocReadonlyTag(){return h(336)},get createJSDocOverrideTag(){return g(337)},get updateJSDocOverrideTag(){return h(337)},get createJSDocDeprecatedTag(){return g(331)},get updateJSDocDeprecatedTag(){return h(331)},get createJSDocThrowsTag(){return y(349)},get updateJSDocThrowsTag(){return v(349)},get createJSDocSatisfiesTag(){return y(350)},get updateJSDocSatisfiesTag(){return v(350)},createJSDocEnumTag:Mr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Mr(t,n,r),e):e},createJSDocUnknownTag:Rr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Ii(Rr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Ii(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Ii(Jr(t,n),e):e},createJsxElement:Ur,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Ii(Ur(t,n,r),e):e},createJsxSelfClosingElement:qr,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(qr(t,n,r),e):e},createJsxOpeningElement:zr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(zr(t,n,r),e):e},createJsxClosingElement:$r,updateJsxClosingElement:function(e,t){return e.tagName!==t?Ii($r(t),e):e},createJsxFragment:Vr,createJsxText:Wr,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Ii(Wr(t,n),e):e},createJsxOpeningFragment:function(){const e=S(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=S(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Ii(Vr(t,n,r),e):e}
1,createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?Ii(Kr(t),e):e},createJsxSpreadAttribute:Gr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Ii(Gr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Ii(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Ii(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Ii(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Ii(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Ii(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Ii(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Ii(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Ii(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(307);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=ow(i.statements)|iw(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Ii(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=ow(s.statements)|iw(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Ii(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=S(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=S(352);return XF(t,e),t},createNotEmittedStatement:function(e){const t=S(353);return t.original=e,TI(t,e),t},createPartiallyEmittedExpression:ui,updatePartiallyEmittedExpression:_i,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Ii(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Ii(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)}
1,get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return ut(St(void 0,void 0,void 0,void 0,t?[t]:[],void 0,on(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return ut(Ct(void 0,void 0,t?[t]:[],void 0,void 0,on(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?b.createStrictEquality(e,U()):"undefined"===t?b.createStrictEquality(e,gi()):b.createStrictEquality(Pt(e),E(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,U()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Pt(e),E(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Pi(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Pi(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Pi(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Pi(e.enumerable)),vi(n,"configurable",Pi(e.configurable));let r=vi(n,"writable",Pi(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,En.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),et(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=SA(e,15);let a,s;return xm(o)?(a=J(),s=o):fN(o)?(a=J(),s=void 0!==n&&n<2?TI(I("_super"),o):o):8192&lp(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):cE(o)?bi(o.expression,i)?(a=O(t),s=nt(TI(b.createAssignment(a,o.expression),o.expression),o.name),TI(s,o)):(a=o.expression,s=o):lE(o)?bi(o.expression,i)?(a=O(t),s=at(TI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),TI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return nt(vt(et([me(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],on([ln(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):qe(e,b.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:Si,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:ki,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&Xv(t,32)?ki(e,xi(t),n,r):Si(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){return t&&xA(t,r)&&(!(fE(i=t)&&by(i)&&by(xw(i))&&by(Dw(i)))||te(Ew(i))||te(Aw(i)))?function(e,t){switch(e.kind){case 217:return bt(e,t);case 216:return ht(e,e.type,t);case 234:return Gt(e,t,e.type);case 238:return Zt(e,t,e.type);case 235:return Qt(e,t);case 354:return _i(e,t)}}(t,e(t.expression,n)):n;var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=kn(n,n.label,tP(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ti,copyPrologue:function(e,t,n,r){const i=Ci(e,t,0,n);return wi(e,t,i,r)},copyStandardPrologue:Ci,copyCustomPrologue:wi,ensureUseStrict:function(e){return mA(e)?e:TI(x([Ti(),...e]),e)},liftToBlock:function(e){return En.assert(C(e,A_),"Cannot lift nodes to a Block."),Re(e)||on(e)},mergeLexicalEnvironment:function(e,t){if(!te(t))return e;const n=Di(e,Tf,0),r=Di(e,wf,n),i=Di(e,Nf,r),o=Di(t,Tf,0),a=Di(t,wf,o),s=Di(t,Nf,a),c=Di(t,Cf,s);En.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Kl(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t<n;t++){const n=e[t];r.set(n.expression.text,!0)}for(let e=o-1;e>=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return Kl(e)?TI(x(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){var n;let r;return r="number"==typeof t?W(t):t,vN(e)?X(e,r,e.name,e.constraint,e.default):bN(e)?Y(e,r,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):RN(e)?De(e,r,e.typeParameters,e.parameters,e.type):SN(e)?ne(e,r,e.name,e.questionToken,e.type):kN(e)?ie(e,r,e.name,null!=(n=e.questionToken)?n:e.exclamationToken,e.type,e.initializer):TN(e)?ae(e,r,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):CN(e)?ce(e,r,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):DN(e)?_e(e,r,e.parameters,e.body):NN(e)?pe(e,r,e.name,e.parameters,e.type,e.body):EN(e)?ge(e,r,e.name,e.parameters,e.body):AN(e)?be(e,r,e.parameters,e.type):mE(e)?Tt(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):gE(e)?wt(e,r,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):NE(e)?Wt(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):UE(e)?sn(e,r,e.declarationList):sP(e)?Pn(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):cP(e)?An(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):lP(e)?On(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):uP(e)?Rn(e,r,e.name,e.typeParameters,e.type):_P(e)?jn(e,r,e.name,e.members):dP(e)?Jn(e,r,e.name,e.body):gP(e)?Vn(e,r,e.isTypeOnly,e.name,e.moduleReference):hP(e)?Hn(e,r,e.importClause,e.moduleSpecifier,e.attributes):NP(e)?or(e,r,e.expression):EP(e)?sr(e,r,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):En.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){var n;return bN(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):kN(e)?ie(e,t,e.name,null!=(n=e.questionToken)?n:e.exclamationToken,e.type,e.initializer):CN(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):NN(e)?pe(e,t,e.name,e.parameters,e.type,e.body):EN(e)?ge(e,t,e.name,e.parameters,e.body):NE(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):cP(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):En.assertNever(e)},replacePropertyName:function(e,t){var n;switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return ge(e,e.modifiers,t,e.parameters,e.body);case 174:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return ie(e,e.modifiers,t,null!=(n=e.questionToken)?n:e.exclamationToken,e.type,e.initializer);case 171:return ne(e,e.modifiers,t,e.questionToken,e.type);case 303:return ri(e,t,e.initializer)}}};return d(QC,(e=>e(b))),b;function x(e,t){if(void 0===e||e===c)e=[];else if(Kl(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&aw(e),En.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,En.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,aw(r),En.attachNodeArrayDebugInfo(r),r}function S(e){return t.createBaseNode(e)}function k(e){const t=S(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Ii(e,t)}function w(e,t=0){const n="number"==typeof e?e+"":e;En.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=k(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function D(e){const t=j(10);return t.text="string"==typeof e?e:LT(e)+"n",t.transformFlags|=32,t}function N(e,t){const n=k(11);return n.text=e,n.singleQuote=t,n}function E(e,t,n){const r=N(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function P(e){const t=j(14);return t.text=e,t}function F(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function A(e,t,n,r){const i=F(Ec(e));return Xw(i,{flags:t,id:GC,prefix:n,suffix:r}),GC++,i}function I(e,t,n){void 0===t&&e&&(t=Xa(e)),80===t&&(t=void 0);const r=F(Ec(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function O(e,t,n,r){let i=1;t&&(i|=8);const o=A("",i,n,r);return e&&e(o),o}function L(e,t=0,n,r){En.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=A(e?Nl(e)?gI(!1,n,e,r,Fc):`generated@${ZB(e)}`:"",4|t,n,r);return i.original=e,i}function R(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function M(e,t,n,r){const i=R(Ec(e));return Xw(i,{flags:t,id:GC,prefix:n,suffix:r}),GC++,i}function j(e){return t.createBaseTokenNode(e)}function B(e){En.assert(e>=0&&e<=165,"Invalid token"),En.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),En.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),En.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=j(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function J(){return B(110)}function U(){return B(106)}function q(){return B(112)}function z(){return B(97)}function $(e){return B(e)}function W(e){const t=[];return 32&e&&t.push($(95)),128&e&&t.push($(138)),2048&e&&t.push($(90)),4096&e&&t.push($(87)),1&e&&t.push($(125)),2&e&&t.push($(123)),4&e&&t.push($(124)),64&e&&t.push($(128)),256&e&&t.push($(126)),16&e&&t.push($(164)),8&e&&t.push($(148)),512&e&&t.push($(129)),1024&e&&t.push($(134)),8192&e&&t.push($(103)),16384&e&&t.push($(147)),t.length?t:void 0}function H(e,t){const n=S(166);return n.left=e,n.right=Ei(t),n.transformFlags|=iw(n.left)|rw(n.right),n.flowNode=void 0,n}function K(e){const t=S(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|iw(t.expression),t}function G(e,t,n,r){const i=k(168);return i.modifiers=Ni(e),i.name=Ei(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function X(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Ii(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){var a,s;const c=k(169);return c.modifiers=Ni(e),c.dotDotDotToken=t,c.name=Ei(n),c.questionToken=r,c.type=i,c.initializer=Fi(o),Ev(c.name)?c.transformFlags=1:c.transformFlags=ow(c.modifiers)|iw(c.dotDotDotToken)|nw(c.name)|iw(c.questionToken)|iw(c.initializer)|((null!=(a=c.questionToken)?a:c.type)?1:0)|((null!=(s=c.dotDotDotToken)?s:c.initializer)?1024:0)|(31&mb(c.modifiers)?8192:0),c.jsDoc=void 0,c}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Ii(Q(t,n,r,i,o,a),e):e}function Z(e){const t=S(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|iw(t.expression),t}function ee(e,t,n,r){const i=k(171);return i.modifiers=Ni(e),i.name=Ei(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function ne(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Ii(o,a)):e;var o,a}function re(e,t,n,r,i){const o=k(172);o.modifiers=Ni(e),o.name=Ei(t),o.questionToken=n&&YD(n)?n:void 0,o.exclamationToken=n&&QD(n)?n:void 0,o.type=r,o.initializer=Fi(i);const a=33554432&o.flags||128&mb(o.modifiers);return o.transformFlags=ow(o.modifiers)|nw(o.name)|iw(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(yN(o.name)||256&mb(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function ie(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&YD(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&QD(r)?r:void 0)||e.type!==i||e.initializer!==o?Ii(re(t,n,r,i,o),e):e}function oe(e,t,n,r,i,o){const a=k(173);return a.modifiers=Ni(e),a.name=Ei(t),a.questionToken=n,a.typeParameters=Ni(r),a.parameters=Ni(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(oe(t,n,r,i,o,a),e):e}function se(e,t,n,r,i,o,a,s){const c=k(174);if(c.modifiers=Ni(e),c.asteriskToken=t,c.name=Ei(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Ni(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&mb(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=ow(c.modifiers)|iw(c.asteriskToken)|nw(c.name)|iw(c.questionToken)|ow(c.typeParameters)|ow(c.parameters)|iw(c.type)|-67108865&iw(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ce(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=se(t,n,r,i,o,a,s,c))!==(u=e)&&(l.exclamationToken=u.exclamationToken),Ii(l,u)):e;var l,u}function le(e){const t=k(175);return t.body=e,t.transformFlags=16777216|iw(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ue(e,t,n){const r=k(176);return r.modifiers=Ni(e),r.parameters=x(t),r.body=n,r.transformFlags=ow(r.modifiers)|ow(r.parameters)|-6
17108865&iw(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function _e(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=ue(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=k(177);return o.modifiers=Ni(e),o.name=Ei(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=ow(o.modifiers)|nw(o.name)|ow(o.parameters)|iw(o.type)|-67108865&iw(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function me(e,t,n,r){const i=k(178);return i.modifiers=Ni(e),i.name=Ei(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=ow(i.modifiers)|nw(i.name)|ow(i.parameters)|-67108865&iw(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function ge(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=me(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function he(e,t,n){const r=k(179);return r.typeParameters=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n){const r=k(180);return r.typeParameters=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n){const r=k(181);return r.modifiers=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function be(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ve(t,n,r),e):e}function xe(e,t){const n=S(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=S(182);return r.assertsModifier=e,r.parameterName=Ei(t),r.type=n,r.transformFlags=1,r}function ke(e,t){const n=S(183);return n.typeName=Ei(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function Te(e,t,n){const r=k(184);return r.typeParameters=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Ce(...e){return 4===e.length?we(...e):3===e.length?function(e,t,n){return we(void 0,e,t,n)}(...e):En.fail("Incorrect number of arguments specified.")}function we(e,t,n,r){const i=k(185);return i.modifiers=Ni(e),i.typeParameters=Ni(t),i.parameters=Ni(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function De(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(Ce(t,n,r,i),e):e}function Ne(e,t){const n=S(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ee(e){const t=k(187);return t.members=x(e),t.transformFlags=1,t}function Pe(e){const t=S(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Fe(e){const t=S(189);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Ae(e,t,n,r){const i=k(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Ie(e){const t=S(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Le(e){const t=S(191);return t.type=e,t.transformFlags=1,t}function Me(e,t,n){const r=S(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function je(e,t,n){return e.types!==t?Ii(Me(e.kind,t,n),e):e}function Be(e,t,n,i){const o=S(194);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function Je(e){const t=S(195);return t.typeParameter=e,t.transformFlags=1,t}function Ue(e,t){const n=S(203);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function ze(e,t,n,i,o=!1){const a=S(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=S(196);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=S(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function He(e,t){const n=S(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function Ke(e,t,n,r,i,o){const a=k(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.t
1ype=i,a.members=o&&x(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ge(e){const t=S(201);return t.literal=e,t.transformFlags=1,t}function Xe(e){const t=S(206);return t.elements=x(e),t.transformFlags|=525312|ow(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Qe(e){const t=S(207);return t.elements=x(e),t.transformFlags|=525312|ow(t.elements),t}function Ye(e,t,n,r){const i=k(208);return i.dotDotDotToken=e,i.propertyName=Ei(t),i.name=Ei(n),i.initializer=Fi(r),i.transformFlags|=iw(i.dotDotDotToken)|nw(i.propertyName)|nw(i.name)|iw(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=S(209),i=e&&Oe(e),o=x(e,!(!i||!EE(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=ow(n.elements),n}function et(e,t){const n=k(210);return n.properties=x(e),n.multiLine=t,n.transformFlags|=ow(n.properties),n.jsDoc=void 0,n}function tt(e,t,n){const r=k(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=iw(r.expression)|iw(r.questionDotToken)|(nN(r.name)?rw(r.name):536870912|iw(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function nt(e,t){const n=tt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(t));return fN(e)&&(n.transformFlags|=384),n}function rt(e,t,n){const i=tt(r().parenthesizeLeftSideOfAccess(e,!0),t,Ei(n));return i.flags|=64,i.transformFlags|=32,i}function it(e,t,n,r){return En.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Ii(rt(t,n,r),e):e}function ot(e,t,n){const r=k(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=iw(r.expression)|iw(r.questionDotToken)|iw(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function at(e,t){const n=ot(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Pi(t));return fN(e)&&(n.transformFlags|=384),n}function st(e,t,n){const i=ot(r().parenthesizeLeftSideOfAccess(e,!0),t,Pi(n));return i.flags|=64,i.transformFlags|=32,i}function ct(e,t,n,r){return En.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Ii(st(t,n,r),e):e}function lt(e,t,n,r){const i=k(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=iw(i.expression)|iw(i.questionDotToken)|ow(i.typeArguments)|ow(i.arguments),i.typeArguments&&(i.transformFlags|=1),xm(i.expression)&&(i.transformFlags|=16384),i}function ut(e,t,n){const i=lt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ni(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return mN(i.expression)&&(i.transformFlags|=8388608),i}function _t(e,t,n,i){const o=lt(r().parenthesizeLeftSideOfAccess(e,!0),t,Ni(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return o.flags|=64,o.transformFlags|=32,o}function dt(e,t,n,r,i){return En.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Ii(_t(t,n,r,i),e):e}function ft(e,t,n){const i=k(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Ni(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=iw(i.expression)|ow(i.typeArguments)|ow(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function mt(e,t,n){const i=S(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Ni(t),i.template=n,i.transformFlags|=iw(i.tag)|ow(i.typeArguments)|iw(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),Ly(i.template)&&(i.transformFlags|=128),i}function gt(e,t){const n=S(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=iw(n.expression)|iw(n.type)|1,n}function ht(e,t,n){return e.type!==t||e.expression!==n?Ii(gt(t,n),e):e}function vt(e){const t=S(217);return t.expression=e,t.transformFlags=iw(t.expression),t.jsDoc=void 0,t}function bt(e,t){return e.expression!==t?Ii(vt(t),e):e}function St(e,t,n,r,i,o,a){const s=k(218);s.modifiers=Ni(e),s.asteriskToken=t,s.name=Ei(n),s.typeParameters=Ni(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&mb(s.modifiers),l=!!s.asteriskToken,u=c&&l;return s.transformFlags=ow(s.modifiers)|iw(s.asteriskToken)|nw(s.name)|ow(s.typeParameters)|ow(s.parameters)|iw(s.type)|-67108865&iw(s.body)|(u?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Tt(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(St(t,n,r,i,o,a,s),e):e}function Ct(e,t,n,i,o,a){const s=k(219);s.modifiers=Ni(e),s.typeParameters=Ni(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=null!=o?o:B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&mb(s.modifiers);return s.transformFlags=ow(s.modifiers)|ow(s.typeParameters)|ow(s.parameters)|iw(s.type)|iw(s.equalsGreaterThanToken)|-6
17108865&iw(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function wt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(Ct(t,n,r,i,o,a),e):e}function Dt(e){const t=S(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=iw(t.expression),t}function Pt(e){const t=S(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=iw(t.expression),t}function Ft(e){const t=S(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=iw(t.expression),t}function At(e){const t=S(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|iw(t.expression),t}function It(e,t){const n=S(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=iw(n.operand),46!==e&&47!==e||!nN(n.operand)||su(n.operand)||dA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t){const n=S(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=iw(n.operand),!nN(n.operand)||su(n.operand)||dA(n.operand)||(n.transformFlags|=268435456),n}function Lt(e,t,n){const i=k(226),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=iw(i.left)|iw(i.operatorToken)|iw(i.right),61===s?i.transformFlags|=32:64===s?sE(i.left)?i.transformFlags|=5248|Rt(i.left):aE(i.left)&&(i.transformFlags|=5120|Rt(i.left)):43===s||68===s?i.transformFlags|=512:vb(s)&&(i.transformFlags|=16),103===s&&rN(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Rt(e){return kI(e)?65536:0}function Mt(e,t,n,i,o){const a=S(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:B(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=null!=i?i:B(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=iw(a.condition)|iw(a.questionToken)|iw(a.whenTrue)|iw(a.colonToken)|iw(a.whenFalse),a}function jt(e,t){const n=S(228);return n.head=e,n.templateSpans=x(t),n.transformFlags|=iw(n.head)|ow(n.templateSpans)|1024,n}function Bt(e,t,n,r=0){let i;if(En.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(HC||(HC=Rs(99,!1,0)),e){case 15:HC.setText("`"+t+"`");break;case 16:HC.setText("`"+t+"${");break;case 17:HC.setText("}"+t+"${");break;case 18:HC.setText("}"+t+"`")}let n,r=HC.scan();if(20===r&&(r=HC.reScanTemplateToken(!1)),HC.isUnterminated())return HC.setText(void 0),tw;switch(r){case 15:case 16:case 17:case 18:n=HC.getTokenValue()}return void 0===n||1!==HC.scan()?(HC.setText(void 0),tw):(HC.setText(void 0),n)}(e,n),"object"==typeof i))return En.fail("Invalid raw text");if(void 0===t){if(void 0===i)return En.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&En.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Jt(e){let t=1024;return e&&(t|=128),t}function Ut(e,t,n,r){const i=k(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Jt(i.templateFlags),i}function qt(e,t,n,r){return 15===e?Ut(e,t,n,r):function(e,t,n,r){const i=j(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Jt(i.templateFlags),i}(e,t,n,r)}function zt(e,t){En.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=S(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=iw(n.expression)|iw(n.asteriskToken)|1049728,n}function $t(e){const t=S(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|iw(t.expression),t}function Vt(e,t,n,r,i){const o=k(231);return o.modifiers=Ni(e),o.name=Ei(t),o.typeParameters=Ni(n),o.heritageClauses=Ni(r),o.members=x(i),o.transformFlags|=ow(o.modifiers)|nw(o.name)|ow(o.typeParameters)|ow(o.heritageClauses)|ow(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Wt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Vt(t,n,r,i,o),e):e}function Ht(e,t){const n=S(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=iw(n.expression)|ow(n.typeArguments)|1024,n}function Kt(e,t){const n=S(234);return n.expression=e,n.type=t,n.transformFlags|=iw(n.expression)|iw(n.type)|1,n}function Gt(e,t,n){return e.expression!==t||e.type!==n?Ii(Kt(t,n),e):e}function Xt(e){const t=S(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|iw(t.expression),t}function Qt(e,t){return Jl(e)?tn(e,t):e.expression!==t?Ii(Xt(t),e):e}function Yt(e,t){const n=S(238);return n.expression=e,n.type=t,n.transformFlags|=iw(n.expression)|iw(n.type)|1,n}function Zt(e,t,n){return e.expression!==t||e.type!==n?Ii(Yt(t,n),e):e}function en(e){const t=S(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|iw(t.expression),t}function tn(e,t){return En.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Ii(en(t),e):e}function nn(e,t){const n=S(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=iw(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return En.assertNever(e)}return n.flowNode=void 0,n}function rn(e,t){const n=S(239);return n.expression=e,n.literal=t,n.transformFlags|=iw(n.expression)|iw(n.literal)|1024,n}function on(e,t){const n=S(241);return n.statements=x(e),n.multiLine=t,n.transformFlags|=ow(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function an(e,t){const n=S(243);
1return n.modifiers=Ni(e),n.declarationList=pt(t)?Dn(t):t,n.transformFlags|=ow(n.modifiers)|iw(n.declarationList),128&mb(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function sn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Ii(an(t,n),e):e}function cn(){const e=S(242);return e.jsDoc=void 0,e}function ln(e){const t=S(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=iw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function un(e,t,n){const r=S(245);return r.expression=e,r.thenStatement=Ai(t),r.elseStatement=Ai(n),r.transformFlags|=iw(r.expression)|iw(r.thenStatement)|iw(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function _n(e,t){const n=S(246);return n.statement=Ai(e),n.expression=t,n.transformFlags|=iw(n.statement)|iw(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function dn(e,t){const n=S(247);return n.expression=e,n.statement=Ai(t),n.transformFlags|=iw(n.expression)|iw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function pn(e,t,n,r){const i=S(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ai(r),i.transformFlags|=iw(i.initializer)|iw(i.condition)|iw(i.incrementor)|iw(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function mn(e,t,n){const r=S(249);return r.initializer=e,r.expression=t,r.statement=Ai(n),r.transformFlags|=iw(r.initializer)|iw(r.expression)|iw(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function gn(e,t,n,i){const o=S(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ai(i),o.transformFlags|=iw(o.awaitModifier)|iw(o.initializer)|iw(o.expression)|iw(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function hn(e){const t=S(251);return t.label=Ei(e),t.transformFlags|=4194304|iw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function yn(e){const t=S(252);return t.label=Ei(e),t.transformFlags|=4194304|iw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=S(253);return t.expression=e,t.transformFlags|=4194432|iw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e,t){const n=S(254);return n.expression=e,n.statement=Ai(t),n.transformFlags|=iw(n.expression)|iw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function xn(e,t){const n=S(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=iw(n.expression)|iw(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=S(256);return n.label=Ei(e),n.statement=Ai(t),n.transformFlags|=iw(n.label)|iw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t,n){return e.label!==t||e.statement!==n?Ii(Sn(t,n),e):e}function Tn(e){const t=S(257);return t.expression=e,t.transformFlags|=iw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function Cn(e,t,n){const r=S(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=iw(r.tryBlock)|iw(r.catchClause)|iw(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function wn(e,t,n,r){var i;const o=k(260);return o.name=Ei(e),o.exclamationToken=t,o.type=n,o.initializer=Fi(r),o.transformFlags|=nw(o.name)|iw(o.initializer)|((null!=(i=o.exclamationToken)?i:o.type)?1:0),o.jsDoc=void 0,o}function Dn(e,t=0){const n=S(261);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|ow(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Nn(e,t,n,r,i,o,a){const s=k(262);if(s.modifiers=Ni(e),s.asteriskToken=t,s.name=Ei(n),s.typeParameters=Ni(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&mb(s.modifiers))s.transformFlags=1;else{const e=1024&mb(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=ow(s.modifiers)|iw(s.asteriskToken)|nw(s.name)|ow(s.typeParameters)|ow(s.parameters)|iw(s.type)|-67108865&iw(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Pn(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Nn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Fn(e,t,n,r,i){const o=k(263);return o.modifiers=Ni(e),o.name=Ei(t),o.typeParameters=Ni(n),o.heritageClauses=Ni(r),o.members=x(i),128&mb(o.modifiers)?o.transformFlags=1:(o.transformFlags|=ow(o.modifiers)|nw(o.name)|ow(o.typeParameters)|ow(o.heritageClauses)|ow(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Fn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=k(264);return o.modifiers=Ni(e),o.name=Ei(t),o.typeParameters=Ni(n),o.heritageClauses=Ni(r),o.members=x(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=k(265);return i.modifiers=Ni(e),i.name=Ei(t),i.typeParameters=Ni(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Rn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Ii(Ln(t,n,r,i),e):e}function Mn(e,t,n){const r=k(266);return r.modifiers=Ni(e),r.name=Ei(t),r.members=x(n),r.transformFlags|=ow(r.modifiers)|iw(r.name)|ow(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Ii(Mn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=k(267);return i.modifiers=Ni(e),i.flags|=2088&r,i.name=t,i.body=n,128&mb(i.modifiers)?i.transformFlags=1:i.transformFlags|=ow(i.modifiers)|iw(i.name)|iw(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Ii(Bn(t,n,r,e.flags),e):e}function Un(e){const t=S(268);return t.statements=x(e),t.transformFlags|=ow(t.statements),t.jsDoc=void 0,t}function qn(e){const t=S(269);return t.clauses=x(e),t.transformFlags|=ow(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function zn(e){const t=k(270);return t.name=Ei(e),t.transformFlags|=1|rw(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function $n(e,t,n,r){const i=k(271);return i.modifiers=Ni(e),i.name=Ei(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=ow(i.modifiers)|rw(i.name)|iw(i.moduleReference),LP(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Vn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Ii($n(t,n,r,i),e):e}function Wn(e,t,n,r){const i=S(272);return i.modifiers=Ni(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=iw(i.importClause)|iw(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii(Wn(t,
1n,r,i),e):e}function Kn(e,t,n){const r=k(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=iw(r.name)|iw(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=S(300);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=S(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=S(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=S(300);return r.token=null!=n?n:118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=S(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=k(274);return t.name=e,t.transformFlags|=iw(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=k(280);return t.name=e,t.transformFlags|=32|iw(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=S(275);return t.elements=x(e),t.transformFlags|=ow(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=k(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=iw(r.propertyName)|iw(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=k(277);return i.modifiers=Ni(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=ow(i.modifiers)|iw(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Ii(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=k(278);return o.modifiers=Ni(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=ow(o.modifiers)|iw(o.exportClause)|iw(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Ii(a,s)):e;var a,s}function cr(e){const t=S(279);return t.elements=x(e),t.transformFlags|=ow(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=S(281);return r.isTypeOnly=e,r.propertyName=Ei(t),r.name=Ei(n),r.transformFlags|=iw(r.propertyName)|iw(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function ur(e){const t=S(283);return t.expression=e,t.transformFlags|=iw(t.expression),t.transformFlags&=-67108865,t}function _r(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=S(e);return n.type=t,n}function pr(e,t){const n=k(317);return n.parameters=Ni(e),n.type=t,n.transformFlags=ow(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=k(322);return n.jsDocPropertyTags=Ni(e),n.isArrayType=t,n}function mr(e){const t=S(309);return t.type=e,t}function gr(e,t,n){const r=k(323);return r.typeParameters=Ni(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=ew(e.kind);return e.tagName.escapedText===Ec(t)?e.tagName:I(t)}function yr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=k(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(345,null!=e?e:I("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(346,null!=e?e:I("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=JA(n),i.locals=void 0,i.nextContainer=void 0,i}function Sr(e,t,n,r,i,o){const a=vr(341,null!=e?e:I("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function kr(e,t,n,r,i,o){const a=vr(348,null!=e?e:I("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(338,null!=e?e:I("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=JA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(339,null!=e?e:I("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(328,null!=e?e:I("augments"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(329,null!=e?e:I("implements"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(347,null!=e?e:I("see"),n);return r.name=t,r}function Er(e){const t=S(310);return t.name=e,t}function Pr(e,t){const n=S(311);return n.left=e,n.right=t,n.transformFlags|=iw(n.left)|iw(n.right),n}function Fr(e,t){const n=S(324);return n.name=e,n.text=t,n}function Ar(e,t){const n=S(325);return n.name=e,n.text=t,n}function Ir(e,t){const n=S(326);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,null!=t?t:I(ew(e)),n)}function Lr(e,t,n,r){const i=yr(e,null!=t?t:I(ew(e)),r);return i.typeExpression=n,i}function Rr(e,t){return yr(327,e,t)}function Mr(e,t,n){const r=vr(340,null!=e?e:I(ew(340)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function jr(e,t,n,r,i){const o=yr(351,null!=e?e:I("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=S(321);return t.text=e,t}function Jr(e,t){const n=S(320);return n.comment=e,n.tags=Ni(t),n}function Ur(e,t,n){const r=S(284);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=iw(r.openingElement)|ow(r.children)|iw(r.closingElement)|2,r}function qr(e,t,n){const r=S(285);return r.tagName=e,r.typeArguments=Ni(t),r.attributes=n,r.transformFlags|=iw(r.tagName)|ow(r.typeArguments)|iw(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function zr(e,t,n){const r=S(286);return r.tagName=e,r.typeArguments=Ni(t),r.attributes=n,r.transformFlags|=iw(r.tagName)|ow(r.typeArguments)|iw(r.attributes)|2,t&&(r.transformFlags|=1),r}function $r(e){const t=S(287);return t.tagName=e,t.transformFlags|=2|iw(t.tagName),t}function Vr(e,t,n){const r=S(288);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=iw(r.openingFragment)|ow(r.children)|iw(r.closingFragment)|2,r}function Wr(e,t){const n=S(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=k(291);return n.name=e,n.initializer=t,n.transformFlags|=iw(n.name)|iw(n.initializer)|2,n}function Kr(e){const t=k(292);return t.properties=x(e),t.transformFlags|=2|ow(t.properties),t}function Gr(e){const t=S(293);return t.expression=e,t.transformFlags|=2|iw(t.expression),t}function Xr(e,t){const n=S(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=iw(n.dotDotDotToken)|iw(n.expression)|2,n}function Qr(e,t){const n=S(295);return n.namespace=e,n.name=t,n.transformFlags|=iw(n.namespace)|iw(n.name)|2,n}function Yr(e,t){const n=S(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=iw(n.expression)|ow(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=S(297);return t.statements=x(e),t.transformFlags=ow(t.statements),t}function ei(e,t){const n=S(298);switch(n.token=e,n.types=x(t),n.transformFlags|=ow(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return En.assertNever(e)}return n}function ti(e,t){const n=S(299);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!oP(e)?wn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=iw(n.variableDeclaration)|iw(n.block)|(e?
10:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=k(303);return n.name=Ei(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=nw(n.name)|iw(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Ii(r,i)):e;var r,i}function ii(e,t){const n=k(304);return n.name=Ei(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=rw(n.name)|iw(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=k(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|iw(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=k(306);return n.name=Ei(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=iw(n.name)|iw(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(307);n.flags|=-17&e.flags;for(const t in e)!$e(n,t)&&$e(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=S(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function ui(e,t){const n=S(354);return n.expression=e,n.original=t,n.transformFlags|=1|iw(n.expression),TI(n,t),n}function _i(e,t){return e.expression!==t?Ii(ui(t,e.original),e):e}function di(e){if(by(e)&&!Dc(e)&&!e.original&&!e.emitNode&&!e.id){if(ME(e))return e.elements;if(kE(e)&&HD(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=S(355);return t.elements=x(V(e,di)),t.transformFlags|=ow(t.elements),t}function fi(e,t){const n=S(356);return n.expression=e,n.thisArg=t,n.transformFlags|=iw(n.expression)|iw(n.thisArg),n}function mi(e){if(void 0===e)return e;if(nF(e))return ci(e);if(su(e))return function(e){const t=F(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Xw(t,m({},e.emitNode.autoGenerate)),t}(e);if(nN(e))return function(e){const t=F(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=Gw(e);return r&&Kw(t,r),t}(e);if(cu(e))return function(e){const t=R(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Xw(t,m({},e.emitNode.autoGenerate)),t}(e);if(rN(e))return function(e){const t=R(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Vl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!$e(r,t)&&$e(e,t)&&(r[t]=e[t]);return r}function gi(){return Ft(w("0"))}function hi(e,t,n){return Al(e)?_t(rt(e,void 0,t),void 0,void 0,n):ut(nt(e,t),void 0,n)}function yi(e,t,n){return hi(I(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=bh(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Bc(e):Jc(e);if(o&&nN(o)&&!su(o)){const e=HT(TI(mi(o),o),o.parent);return r|=lp(o),n||(r|=96),t||(r|=3072),r&&hw(e,r),e}return L(e)}function Si(e,t,n){return xi(e,t,n,16384)}function ki(e,t,n,r){const i=nt(e,by(t)?t:mi(t));TI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&hw(i,o),i}function Ti(){return CA(ln(E("use strict")))}function Ci(e,t,n=0,r){En.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n<o;){const r=e[n];if(!Tf(r))break;BD((a=r).expression)&&"use strict"===a.expression.text&&(i=!0),t.push(r),n++}
1var a;return r&&!i&&t.push(Ti()),n}function wi(e,t,n,r,i=xt){const o=e.length;for(;void 0!==n&&n<o;){const o=e[n];if(!(2097152&lp(o)&&i(o)))break;fe(t,r?lJ(o,r,F_):o),n++}return n}function Di(e,t,n){let r=n;for(;r<e.length&&t(e[r]);)r++;return r}function Ni(e){return e?x(e):void 0}function Ei(e){return"string"==typeof e?I(e):e}function Pi(e){return"string"==typeof e?E(e):"number"==typeof e?w(e):"boolean"==typeof e?e?q():z():e}function Fi(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function Ai(e){return e&&IP(e)?TI(n(cn(),e),e):e}function Ii(e,t){return e!==t&&(n(e,t),TI(e,t)),e}}function ew(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return En.fail(`Unsupported kind: ${En.formatSyntaxKind(e)}`)}}var tw={};function nw(e){return e&&nN(e)?rw(e):iw(e)}function rw(e){return-67108865&iw(e)}function iw(e){if(!e)return 0;const t=e.transformFlags&~sw(e.kind);return jc(e)&&hu(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function ow(e){return e?e.transformFlags:0}function aw(e){let t=0;for(const n of e)t|=iw(n);e.transformFlags=t}function sw(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 354:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}var cw=zC();function lw(e){return e.flags|=16,e}var uw,_w=ZC(4,{createBaseSourceFileNode:e=>lw(cw.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>lw(cw.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>lw(cw.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>lw(cw.createBaseTokenNode(e)),createBaseNode:e=>lw(cw.createBaseNode(e))});function dw(e,t,n){return new(uw||(uw=sS.getSourceMapSourceConstructor()))(e,t,n)}function pw(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:u,startsOnNewLine:_,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=he(i.slice(),t.leadingComments)),o&&(t.trailingComments=he(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),u)for(const m of u)t.helpers=ve(t.helpers,m);return void 0!==_&&(t.startsOnNewLine=_),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function fw(e){var t;if(e.emitNode)En.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Dc(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};fw(null!=(t=Id(Nc(Id(e))))?t:En.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function mw(e){var t,n;const r=null==(n=null==(t=Id(Nc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const i of r)i.emitNode=void 0}function gw(e){const t=fw(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function hw(e,t){return fw(e).flags=t,e}function yw(e,t){const n=fw(e);return n.flags=n.flags|t,e}function vw(e,t){return fw(e).internalFlags=t,e}function bw(e,t){const n=fw(e);return n.internalFlags=n.internalFlags|t,e}function xw(e){var t,n;return null!=(t=null==(n=e.emitNode)?void 0:n.sourceMapRange)?t:e}function Sw(e,t){return fw(e).sourceMapRange=t,e}function kw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}
1function Tw(e,t,n){var r;const i=fw(e);return(null!=(r=i.tokenSourceMapRanges)?r:i.tokenSourceMapRanges=[])[t]=n,e}function Cw(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function ww(e,t){return fw(e).startsOnNewLine=t,e}function Dw(e){var t,n;return null!=(t=null==(n=e.emitNode)?void 0:n.commentRange)?t:e}function Nw(e,t){return fw(e).commentRange=t,e}function Ew(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function Pw(e,t){return fw(e).leadingComments=t,e}function Fw(e,t,n,r){return Pw(e,fe(Ew(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Aw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function Iw(e,t){return fw(e).trailingComments=t,e}function Ow(e,t,n,r){return Iw(e,fe(Aw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Lw(e,t){Pw(e,Ew(t)),Iw(e,Aw(t));const n=fw(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Rw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function Mw(e,t){return fw(e).constantValue=t,e}function jw(e,t){const n=fw(e);return n.helpers=fe(n.helpers,t),e}function Bw(e,t){if(te(t)){const n=fw(e);for(const e of t)n.helpers=ve(n.helpers,e)}return e}function Jw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&an(r,t)}function Uw(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function qw(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!te(i))return;const o=fw(t);let a=0;for(let s=0;s<i.length;s++){const e=i[s];n(e)?(a++,o.helpers=ve(o.helpers,e)):a>0&&(i[s-a]=e)}a>0&&(i.length-=a)}function zw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function $w(e,t){return fw(e).snippetElement=t,e}function Vw(e){return fw(e).internalFlags|=4,e}function Ww(e,t){return fw(e).typeNode=t,e}function Hw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Kw(e,t){return fw(e).identifierTypeArguments=t,e}function Gw(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function Xw(e,t){return fw(e).autoGenerate=t,e}function Qw(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function Yw(e,t){return fw(e).generatedImportReference=t,e}function Zw(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var eD=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(eD||{});function tD(e){const t=e.factory,n=Nt((()=>vw(t.createTrue(),8))),r=Nt((()=>vw(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(iD);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(oD),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(aD),TI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(sD),t.createCallExpression(i("__esDecorate"),void 0,[null!=n?n:t.createNull(),null!=r?r:t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(cD),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return BS(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(lD),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(uD),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(uD),e.requestEmitHelper(_D),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(uD),e.requestEmitHelper(dD),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(pD),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(fD);const s=[];let c=0;for(let e=0;e<r.length-1;e++){const n=RA(r[e]);
1if(n)if(yN(n)){En.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=o[c];c++,s.push(t.createConditionalExpression(t.createTypeCheck(e,"symbol"),void 0,e,void 0,t.createAdd(e,t.createStringLiteral(""))))}else s.push(t.createStringLiteralFromNode(n))}return t.createCallExpression(i("__rest"),void 0,[n,TI(t.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(n,r,o,a,s){e.requestEmitHelper(mD);const c=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,null!=a?a:[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=1572864,t.createCallExpression(i("__awaiter"),void 0,[n?t.createThis():t.createVoidZero(),null!=r?r:t.createVoidZero(),o?sA(t,o):t.createVoidZero(),c])},createExtendsHelper:function(n){return e.requestEmitHelper(gD),t.createCallExpression(i("__extends"),void 0,[n,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,r){return e.requestEmitHelper(hD),t.createCallExpression(i("__makeTemplateObject"),void 0,[n,r])},createSpreadArrayHelper:function(o,a,s){return e.requestEmitHelper(vD),t.createCallExpression(i("__spreadArray"),void 0,[o,a,s?n():r()])},createPropKeyHelper:function(n){return e.requestEmitHelper(bD),t.createCallExpression(i("__propKey"),void 0,[n])},createSetFunctionNameHelper:function(t,n,r){return e.requestEmitHelper(xD),e.factory.createCallExpression(i("__setFunctionName"),void 0,r?[t,n,e.factory.createStringLiteral(r)]:[t,n])},createValuesHelper:function(n){return e.requestEmitHelper(SD),t.createCallExpression(i("__values"),void 0,[n])},createReadHelper:function(n,r){return e.requestEmitHelper(yD),t.createCallExpression(i("__read"),void 0,void 0!==r?[n,t.createNumericLiteral(r+"")]:[n])},createGeneratorHelper:function(n){return e.requestEmitHelper(kD),t.createCallExpression(i("__generator"),void 0,[t.createThis(),n])},createImportStarHelper:function(n){return e.requestEmitHelper(wD),t.createCallExpression(i("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(wD),i("__importStar")},createImportDefaultHelper:function(n){return e.requestEmitHelper(DD),t.createCallExpression(i("__importDefault"),void 0,[n])},createExportStarHelper:function(n,r=t.createIdentifier("exports")){return e.requestEmitHelper(ND),e.requestEmitHelper(TD),t.createCallExpression(i("__exportStar"),void 0,[n,r])},createClassPrivateFieldGetHelper:function(n,r,o,a){let s;return e.requestEmitHelper(ED),s=a?[n,r,t.createStringLiteral(o),a]:[n,r,t.createStringLiteral(o)],t.createCallExpression(i("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(n,r,o,a,s){let c;return e.requestEmitHelper(PD),c=s?[n,r,o,t.createStringLiteral(a),s]:[n,r,o,t.createStringLiteral(a)],t.createCallExpression(i("__classPrivateFieldSet"),void 0,c)},createClassPrivateFieldInHelper:function(n,r){return e.requestEmitHelper(FD),t.createCallExpression(i("__classPrivateFieldIn"),void 0,[n,r])},createAddDisposableResourceHelper:function(n,r,o){return e.requestEmitHelper(AD),t.createCallExpression(i("__addDisposableResource"),void 0,[n,r,o?t.createTrue():t.createFalse()])},createDisposeResourcesHelper:function(n){return e.requestEmitHelper(ID),t.createCallExpression(i("__disposeResources"),void 0,[n])}};function i(e){return hw(t.createIdentifier(e),8196)}function o(e,n){const r=[];return r.push(function(e){const n=e.computed?e.name:nN(e.name)?t.createStringLiteralFromNode(e.name):e.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(n,103,t.createIdentifier("obj"))))}(e)),n.get&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,n))}(e)),n.set&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement
1(t.createAssignment(n,t.createIdentifier("value")))])))}(e)),t.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),e.name),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e):function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),e.name.computed?e.name.name:t.createStringLiteralFromNode(e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),o(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e)}}function nD(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:jt(e.priority,t.priority)}function rD(e,...t){return n=>{let r="";for(let i=0;i<t.length;i++)r+=e[i],r+=n(t[i]);return r+=e[e.length-1],r}}var iD={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                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;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'},oD={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n            };'},aD={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };"},sD={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n        var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n            function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n            var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n            var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n            var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n            var _, done = false;\n            for (var i = decorators.length - 1; i >= 0; i--) {\n                var context = {};\n                for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n                for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n                context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n                var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n                if (kind === "accessor") {\n                    if (result === void 0) continue;\n                    if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n                    if (_ = accept(result.get)) descriptor.get = _;\n                    if (_ = accept(result.set)) descriptor.set = _;
1\n                    if (_ = accept(result.init)) initializers.unshift(_);\n                }\n                else if (_ = accept(result)) {\n                    if (kind === "field") initializers.unshift(_);\n                    else descriptor[key] = _;\n                }\n            }\n            if (target) Object.defineProperty(target, contextIn.name, descriptor);\n            done = true;\n        };'},cD={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n        var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n            var useValue = arguments.length > 2;\n            for (var i = 0; i < initializers.length; i++) {\n                value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n            }\n            return useValue ? value : void 0;\n        };"},lD={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || function () {\n                __assign = Object.assign || function(t) {\n                    for (var s, i = 1, n = arguments.length; i < n; i++) {\n                        s = arguments[i];\n                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                            t[p] = s[p];\n                    }\n                    return t;\n                };\n                return __assign.apply(this, arguments);\n            };"},uD={name:"typescript:await",importName:"__await",scoped:!1,text:"\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},_D={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[uD],text:'\n        var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n            if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n            var g = generator.apply(thisArg, _arguments || []), i, q = [];\n            return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n            function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n            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]); } }\n            function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n            function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n            function fulfill(value) { resume("next", value); }\n            function reject(value) { resume("throw", value); }\n            function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n        };'},dD={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[uD],text:'\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i, p;\n                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n                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; }\n            };'},pD={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncValues) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator], i;\n                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);\n                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); }); }; }\n                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n            };'},fD={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length;
1 i++) {\n                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                            t[p[i]] = s[p[i]];\n                    }\n                return t;\n            };'},mD={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n                return new (P || (P = Promise))(function (resolve, reject) {\n                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'},gD={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = function (d, b) {\n                    extendStatics = Object.setPrototypeOf ||\n                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n                    return extendStatics(d, b);\n                };\n\n                return function (d, b) {\n                    if (typeof b !== "function" && b !== null)\n                        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();'}
1,hD={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n                return cooked;\n            };'},yD={name:"typescript:read",importName:"__read",scoped:!1,text:'\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i["return"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };'},vD={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n                    if (ar || !(i in from)) {\n                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n                        ar[i] = from[i];\n                    }\n                }\n                return to.concat(ar || Array.prototype.slice.call(from));\n            };"},bD={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n        var __propKey = (this && this.__propKey) || function (x) {\n            return typeof x === "symbol" ? x : "".concat(x);\n        };'},xD={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n        var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n            if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n            return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n        };'},SD={name:"typescript:values",importName:"__values",scoped:!1,text:'\n            var __values = (this && this.__values) || function(o) {\n                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n                if (m) return m.call(o);\n                if (o && typeof o.length === "number") return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n            };'},kD={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (g && (g = 0, op[0] && (_ = 0)), _) try {\n                        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;\n                        if (y = 0, t) op = [op[0] & 2, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1];
1 return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'},TD={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                var desc = Object.getOwnPropertyDescriptor(m, k);\n                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n                  desc = { enumerable: true, get: function() { return m[k]; } };\n                }\n                Object.defineProperty(o, k2, desc);\n            }) : (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                o[k2] = m[k];\n            }));'},CD={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n                Object.defineProperty(o, "default", { enumerable: true, value: v });\n            }) : function(o, v) {\n                o["default"] = v;\n            });'},wD={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[TD,CD],priority:2,text:'\n            var __importStar = (this && this.__importStar) || function (mod) {\n                if (mod && mod.__esModule) return mod;\n                var result = {};\n                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n                __setModuleDefault(result, mod);\n                return result;\n            };'},DD={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n            var __importDefault = (this && this.__importDefault) || function (mod) {\n                return (mod && mod.__esModule) ? mod : { "default": mod };\n            };'},ND={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[TD],priority:2,text:'\n            var __exportStar = (this && this.__exportStar) || function(m, exports) {\n                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n            };'},ED={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n                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");\n                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n            };'},PD={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n                if (kind === "m") throw new TypeError("Private method is not writable");\n                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n                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");\n                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n            };'},FD={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n            var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n                if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n                return typeof state === "function" ? receiver === state : state.has(receiver);\n            };'}
1,AD={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n        var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n            if (value !== null && value !== void 0) {\n                if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n                var dispose, inner;\n                if (async) {\n                    if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n                    dispose = value[Symbol.asyncDispose];\n                }\n                if (dispose === void 0) {\n                    if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n                    dispose = value[Symbol.dispose];\n                    if (async) inner = dispose;\n                }\n                if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n                if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n                env.stack.push({ value: value, dispose: dispose, async: async });\n            }\n            else if (async) {\n                env.stack.push({ async: true });\n            }\n            return value;\n        };'},ID={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n        var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n            return function (env) {\n                function fail(e) {\n                    env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n                    env.hasError = true;\n                }\n                function next() {\n                    while (env.stack.length) {\n                        var rec = env.stack.pop();\n                        try {\n                            var result = rec.dispose && rec.dispose.call(rec.value);\n                            if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n                        }\n                        catch (e) {\n                            fail(e);\n                        }\n                    }\n                    if (env.hasError) throw env.error;\n                }\n                return next();\n            };\n        })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n            var e = new Error(message);\n            return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n        });'},OD={name:"typescript:async-super",scoped:!0,text:rD`
2            const ${"_superIndex"} = name => super[name];`},LD={name:"typescript:advanced-async-super",scoped:!0,text:rD`
3            const ${"_superIndex"} = (function (geti, seti) {
4                const cache = Object.create(null);
5                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
6            })(name => super[name], (name, value) => super[name] = value);`};function RD(e,t){return uE(e)&&nN(e.expression)&&!!(8192&lp(e.expression))&&e.expression.escapedText===t}function MD(e){return 9===e.kind}function jD(e){return 10===e.kind}function BD(e){return 11===e.kind}function JD(e){return 12===e.kind}function UD(e){return 14===e.kind}function qD(e){return 15===e.kind}function zD(e){return 16===e.kind}function $D(e){return 17===e.kind}function VD(e){return 18===e.kind}function WD(e){return 26===e.kind}function HD(e){return 28===e.kind}function KD(e){return 40===e.kind}function GD(e){return 41===e.kind}function XD(e){return 42===e.kind}function QD(e){return 54===e.kind}function YD(e){return 58===e.kind}function ZD(e){return 59===e.kind}function eN(e){return 29===e.kind}function tN(e){return 39===e.kind}function nN(e){return 80===e.kind}function rN(e){return 81===e.kind}function iN(e){return 95===e.kind}function oN(e){return 90===e.kind}function aN(e){return 134===e.kind}function sN(e){return 131===e.kind}function cN(e){return 135===e.kind}function lN(e){return 148===e.kind}function uN(e){return 126===e.kind}function _N(e){return 128===e.kind}function dN(e){return 164===e.kind}function pN(e){return 129===e.kind}function fN(e){return 108===e.kind}function mN(e){return 102===e.kind}function gN(e){return 84===e.kind}function hN(e){return 166===e.kind}function yN(e){return 167===e.kind}function vN(e){return 168===e.kind}function bN(e){return 169===e.kind}function xN(e){return 170===e.kind}function SN(e){return 171===e.kind}function kN(e){return 172===e.kind}function TN(e){return 173===e.kind}function CN(e){return 174===e.kind}function wN(e){return 175===e.kind}function DN(e){return 176===e.kind}function NN(e){return 177===e.kind}function EN(e){return 178===e.kind}function PN(e){return 179===e.kind}function FN(e){return 180===e.kind}function AN(e){return 181===e.kind}function IN(e){return 182===e.kind}function ON(e){return 183===e.kind}function LN(e){return 184===e.kind}function RN(e){return 185===e.kind}function MN(e){return 186===e.kind}function jN(e){return 187===e.kind}function BN(e){return 188===e.kind}function JN(e){return 189===e.kind}function UN(e){return 202===e.kind}function qN(e){return 190===e.kind}function zN(e){return 191===e.kind}function $N(e){return 192===e.kind}function VN(e){return 193===e.kind}function WN(e){return 194===e.kind}function HN(e){return 195===e.kind}function KN(e){return 196===e.kind}function GN(e){return 197===e.kind}function XN(e){return 198===e.kind}function QN(e){return 199===e.kind}function YN(e){return 200===e.kind}function ZN(e){return 201===e.kind}function eE(e){return 205===e.kind}function tE(e){return 204===e.kind}function nE(e){return 203===e.kind}function rE(e){return 206===e.kind}function iE(e){return 207===e.kind}function oE(e){return 208===e.kind}function aE(e){return 209===e.kind}function sE(e){return 210===e.kind}function cE(e){return 211===e.kind}function lE(e){return 212===e.kind}function uE(e){return 213===e.kind}function _E(e){return 214===e.kind}function dE(e){return 215===e.kind}function pE(e){return 216===e.kind}function fE(e){return 217===e.kind}function mE(e){return 218===e.kind}function gE(e){return 219===e.kind}function hE(e){return 220===e.kind}function yE(e){return 221===e.kind}function vE(e){return 222===e.kind}function bE(e){return 223===e.kind}function xE(e){return 224===e.kind}function SE(e){return 225===e.kind}function kE(e){return 226===e.kind}function TE(e){return 227===e.kind}function CE(e){return 228===e.kind}function wE(e){return 229===e.kind}function DE(e){return 230===e.kind}function NE(e){return 231===e.kind}function EE(e){return 232===e.kind}function PE(e){return 233===e.kind}function FE(e){return 234===e.kind}function AE(e){return 238===e.kind}function IE(e){return 235===e.kind}function OE(e){return 236===e.kind}function LE(e){return 237===e.kind}function RE(e){return 354===e.kind}function ME(e){return 355===e.kind}function jE(e){return 239===e.kind}function BE(e){return 240===e.kind}function JE(e){return 241===e.kind}function UE(e){return 243===e.kind}function qE(e){return 242===e.kind}function zE(e){return 244===e.kind}function $E(e){return 245===e.kind}function VE(e){return 246===e.kind}function WE(e){return 247===e.kind}function HE(e){return 248===e.kind}function KE(e){return 249===e.kind}function GE(e){return 250===e.kind}function XE(e){return 251===e.kind}function QE(e){return 252===e.kind}function YE(e){return 253===e.kind}function ZE(e){return 254===e.kind}function eP(e){return 255===e.kind}function tP(e){return 256===e.kind}function nP(e){return 257===e.kind}function rP(e){return 258===e.kind}function iP(e){return 259===e.kind}function oP(e){return 260===e.kind}function aP(e){return 261===e.kind}function sP(e){return 262===e.kind}function cP(e){return 263===e.kind}function lP(e){return 264===e.kind}function uP(e){return 265===e.kind}function _P(e){return 266===e.kind}function dP(e){return 267===e.kind}function pP(e){return 268===e.kind}function fP(e){return 269===e.kind}function mP(e){return 270===e.kind}function gP(e){return 271===e.kind}function hP(e){return 272===e.kind}function yP(e){return 273===e.kind}function vP(e){return 302===e.kind}function bP(e){return 300===e.kind}function xP(e){return 301===e.kind}function SP(e){return 300===e.kind}function kP(e){return 301===e.kind}function TP(e){return 274===e.kind}function CP(e){return 280===e.kind}function wP(e){return 275===e.kind}function DP(e){return 276===e.kind}function NP(e){return 277===e.kind}function EP(e){return 278===e.kind}function PP(e){return 279===e.kind}function FP(e){return 281===e.kind}function AP(e){return 282===e.kind}function IP(e){return 353===e.kind}function OP(e){return 356===e.kind}function LP(e){return 283===e.kind}function RP(e){return 284===e.kind}function MP(e){return 285===e.kind}function jP(e){return 286===e.kind}function BP(e){return 287===e.kind}function JP(e){return 288===e.kind}function UP(e){return 289===e.kind}function qP(e){return 290===e.kind}function zP(e){return 291===e.kind}function $P(e){return 292===e.kind}function VP(e){return 293===e.kind}function WP(e){return 294===e.kind}function HP(e){return 295===e.kind}function KP(e){return 296===e.kind}function GP(e){return 297===e.kind}function XP(e){return 298===e.kind}function QP(e){return 299===e.kind}function YP(e){return 303===e.kind}function ZP(e){return 304===e.kind}function eF(e){return 305===e.kind}function tF(e){return 306===e.kind}function nF(e){return 307===e.kind}function rF(e){return 308===e.kind}function iF(e){return 309===e.kind}
6function oF(e){return 310===e.kind}function aF(e){return 311===e.kind}function sF(e){return 324===e.kind}function cF(e){return 325===e.kind}function lF(e){return 326===e.kind}function uF(e){return 312===e.kind}function _F(e){return 313===e.kind}function dF(e){return 314===e.kind}function pF(e){return 315===e.kind}function fF(e){return 316===e.kind}function mF(e){return 317===e.kind}function gF(e){return 318===e.kind}function hF(e){return 319===e.kind}function yF(e){return 320===e.kind}function vF(e){return 322===e.kind}function bF(e){return 323===e.kind}function xF(e){return 328===e.kind}function SF(e){return 330===e.kind}function kF(e){return 332===e.kind}function TF(e){return 338===e.kind}function CF(e){return 333===e.kind}function wF(e){return 334===e.kind}function DF(e){return 335===e.kind}function NF(e){return 336===e.kind}function EF(e){return 337===e.kind}function PF(e){return 339===e.kind}function FF(e){return 331===e.kind}function AF(e){return 347===e.kind}function IF(e){return 340===e.kind}function OF(e){return 341===e.kind}function LF(e){return 342===e.kind}function RF(e){return 343===e.kind}function MF(e){return 344===e.kind}function jF(e){return 345===e.kind}function BF(e){return 346===e.kind}function JF(e){return 327===e.kind}function UF(e){return 348===e.kind}function qF(e){return 329===e.kind}function zF(e){return 350===e.kind}function $F(e){return 349===e.kind}function VF(e){return 351===e.kind}function WF(e){return 352===e.kind}var HF,KF=new WeakMap;function GF(e){return Vl(e.kind)?KF.get(e):c}function XF(e,t){return KF.set(e,t),t}function QF(e){KF.delete(e)}function YF(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function ZF(e,t,n,r){if(yN(n))return TI(e.createElementAccessExpression(t,n.expression),r);{const r=TI(Nl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return yw(r,128),r}}function eA(e,t){const n=NI.createIdentifier(e||"React");return HT(n,Nc(t)),n}function tA(e,t,n){if(hN(t)){const r=tA(e,t.left,n),i=e.createIdentifier(Fc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return eA(Fc(t),n)}function nA(e,t,n,r){return t?tA(e,t,r):e.createPropertyAccessExpression(eA(n,r),"createElement")}function rA(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const s of i)CA(s),a.push(s);else a.push(i[0]);return TI(e.createCallExpression(t,void 0,a),o)}function iA(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?tA(e,t,r):e.createPropertyAccessExpression(eA(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const l of i)CA(l),c.push(l);else c.push(i[0]);return TI(e.createCallExpression(nA(e,t,r,o),void 0,c),a)}function oA(e,t,n){if(aP(t)){const r=Ae(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return TI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=TI(e.createAssignment(t,n),t);return TI(e.createExpressionStatement(r),t)}}function aA(e,t,n){return JE(t)?e.updateBlock(t,TI(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function sA(e,t){if(hN(t)){const n=sA(e,t.left),r=HT(TI(e.cloneNode(t.right),t.right),t.right.parent);return TI(e.createPropertyAccessExpression(n,r),t)}return HT(TI(e.cloneNode(t),t),t.parent)}function cA(e,t){return nN(t)?e.createStringLiteralFromNode(t):yN(t)?HT(TI(e.cloneNode(t.expression),t.expression),t.expression.parent):HT(TI(e.cloneNode(t),t),t.parent)}function lA(e,t,n,r){switch(n.name&&rN(n.name)&&En.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=Iv(t,n);if(n===o)return TI(e.createObjectDefinePropertyCall(r,cA(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&TI(pw(e.createFunctionExpression(zc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&TI(pw(e.createFunctionExpression(zc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return pw(TI(e.createAssignment(ZF(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return pw(TI(e.createAssignment(ZF(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return pw(TI(e.createAssignment(ZF(e,n,t.name,t.name),pw(TI(e.createFunctionExpression(zc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function uA(e,t,n,r,i){const o=t.operator;En.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);TI(n=e.createAssignment(a,n),t.operand);let s=xE(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return TI(s,t),i&&(s=e.createAssignment(i,s),TI(s,t)),TI(n=e.createComma(n,s),t),SE(t)&&TI(n=e.createComma(n,a),t),n}function _A(e){return!!(65536&lp(e))}function dA(e){return!!(32768&lp(e))}function pA(e){return!!(16384&lp(e))}function fA(e){return BD(e.expression)&&"use strict"===e.expression.text}function mA(e){for(const t of e){if(!Tf(t))break;if(fA(t))return t}}function gA(e){const t=Pe(e);return void 0!==t&&Tf(t)&&fA(t)}function hA(e){return 226===e.kind&&28===e.operatorToken.kind}function yA(e){return hA(e)||ME(e)}function vA(e){return fE(e)&&Wm(e)&&!!gl(e)}function bA(e){const t=hl(e);
6return En.assertIsDefined(t),t}function xA(e,t=15){switch(e.kind){case 217:return!(16&t&&vA(e)||!(1&t));case 216:case 234:case 233:case 238:return!!(2&t);case 235:return!!(4&t);case 354:return!!(8&t)}return!1}function SA(e,t=15){for(;xA(e,t);)e=e.expression;return e}function kA(e,t=15){let n=e.parent;for(;xA(n,t);)n=n.parent,En.assert(n);return n}function TA(e){return SA(e,6)}function CA(e){return ww(e,!0)}function wA(e){const t=Cc(e,nF),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function DA(e){const t=Cc(e,nF),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function NA(e,t,n,r,i,o,a){if(r.importHelpers&&Np(n,r)){let s;const c=JS(r);if(c>=5&&c<=99||99===n.impliedNodeFormat){const r=Uw(n);if(r){const i=[];for(const e of r)if(!e.scoped){const t=e.importName;t&&ye(i,t)}te(i)&&(i.sort(zt),s=e.createNamedImports(j(i,(r=>Jd(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r))))),fw(Cc(n,nF)).externalHelpers=!0)}}else{const t=EA(e,n,r,i,o||a);t&&(s=e.createNamespaceImport(t))}if(s){const t=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,s),e.createStringLiteral(ad),void 0);return bw(t,2),t}}}function EA(e,t,n,r,i){if(n.importHelpers&&Np(t,n)){const o=wA(t);if(o)return o;const a=JS(n);let s=(r||$S(n)&&i)&&4!==a&&(a<5||1===t.impliedNodeFormat);if(!s){const e=Uw(t);if(e)for(const t of e)if(!t.scoped){s=!0;break}}if(s){const n=fw(Cc(t,nF));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(ad))}}}function PA(e,t,n){const r=Mg(t);if(r&&!jg(t)&&!ip(t)){const t=r.name;return su(t)?t:e.createIdentifier(rp(n,t)||Fc(t))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function FA(e,t,n,r,i,o){const a=Rg(t);if(a&&BD(a))return function(e,t,n,r,i){return AA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function AA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(cv(n,t.fileName)):void 0}function IA(e){if(qu(e))return e.initializer;if(YP(e)){const t=e.initializer;return wb(t,!0)?t.right:void 0}return ZP(e)?e.objectAssignmentInitializer:wb(e,!0)?e.right:DE(e)?IA(e.expression):void 0}function OA(e){if(qu(e))return e.name;if(!Ru(e))return wb(e,!0)?OA(e.left):DE(e)?OA(e.expression):e;switch(e.kind){case 303:return OA(e.initializer);case 304:return e.name;case 305:return OA(e.expression)}}function LA(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function RA(e){const t=MA(e);return En.assert(!!t||eF(e),"Invalid property name for binding element."),t}function MA(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return rN(t)?En.failBadSyntaxKind(t):yN(t)&&jA(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return rN(t)?En.failBadSyntaxKind(t):yN(t)&&jA(t.expression)?t.expression:t}break;case 305:return e.name&&rN(e.name)?En.failBadSyntaxKind(e.name):e.name}const t=OA(e);if(t&&hu(t))return t}function jA(e){const t=e.kind;return 11===t||9===t}function BA(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function JA(e){if(e){let t=e;for(;;){if(nN(t)||!t.body)return nN(t)?t:t.name;t=t.body}}}function UA(e){const t=e.kind;return 176===t||178===t}function qA(e){const t=e.kind;return 176===t||177===t||178===t}function zA(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function $A(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function VA(e){return YD(e)||QD(e)}function WA(e){return nN(e)||GN(e)}function HA(e){return lN(e)||KD(e)||GD(e)}function KA(e){return YD(e)||KD(e)||GD(e)}function GA(e){return nN(e)||BD(e)}function XA(e){const t=e.kind;return 106===t||112===t||97===t||Xl(e)||xE(e)}function QA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function YA(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||QA(e)}(e)}function ZA(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||YA(e)}(e)}function eI(e){return function(e){return 61===e||ZA(e)||kb(e)}(e)||28===e}function tI(e){return eI(e.kind)}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return En.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}
6function n(e,t,r,i,o,a,u){En.assertEqual(r[t],n),En.assertIsDefined(e.onLeft),r[t]=s(e,n);const _=e.onLeft(i[t].left,o[t],i[t]);return _?(l(t,i,_),c(t,r,i,o,_)):t}function r(e,t,n,i,o,a,c){return En.assertEqual(n[t],r),En.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,u){En.assertEqual(n[t],i),En.assertIsDefined(e.onRight),n[t]=s(e,i);const _=e.onRight(r[t].right,o[t],r[t]);return _?(l(t,r,_),c(t,n,r,o,_)):t}function o(e,t,n,r,i,a,c){En.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return En.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:En.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(En.shouldAssert(2))for(;e>=0;)En.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(HF||(HF={}));var nI,rI,iI,oI,aI,sI=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function cI(e,t,n,r,i,o){const a=new sI(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[HF.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==HF.done;)s=r[s](a,s,r,i,o,n,t);return En.assertEqual(s,0),n.value}}function lI(e){return 95===e||90===e}function uI(e){return lI(e.kind)}function _I(e){const t=e.kind;return du(t)&&!lI(t)}function dI(e,t){if(void 0!==t)return 0===t.length?t:TI(e.createNodeArray([],t.hasTrailingComma),t)}function pI(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(Nl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function fI(e,t){return"object"==typeof e?gI(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function mI(e,t){return"string"==typeof e?e:function(e,t){return cu(e)?t(e).slice(1):su(e)?t(e):rN(e)?e.escapedText.slice(1):Fc(e)}(e,En.checkDefined(t))}function gI(e,t,n,r,i){return t=fI(t,i),r=fI(r,i),`${e?"#":""}${t}${n=mI(n,i)}${r}`}function hI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function yI(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement
6(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function vI(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function bI(e){let t=e.expression;for(;;)if(t=SA(t),ME(t))t=Le(t.elements);else{if(!hA(t)){if(wb(t,!0)&&su(t.left))return t;break}t=t.right}}function xI(e,t){if(function(e){return fE(e)&&by(e)&&!e.emitNode}(e))xI(e.expression,t);else if(hA(e))xI(e.left,t),xI(e.right,t);else if(ME(e))for(const n of e.elements)xI(n,t);else t.push(e)}function SI(e){const t=[];return xI(e,t),t}function kI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of BA(e)){const e=OA(t);if(e&&Ju(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&kI(e))return!0}}return!1}function TI(e,t){return t?$T(e,t.pos,t.end):e}function CI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function wI(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var DI={createBaseSourceFileNode:e=>new(aI||(aI=sS.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(iI||(iI=sS.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(oI||(oI=sS.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(rI||(rI=sS.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(nI||(nI=sS.getNodeConstructor()))(e,-1,-1)},NI=ZC(1,DI);function EI(e,t){return t&&e(t)}function PI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function FI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function AI(e){return d(e.statements,II)||function(e){return 8388608&e.flags?OI(e):void 0}(e)}function II(e){return CI(e)&&function(e,t){return te(e.modifiers,(e=>e.kind===t))}(e,95)||gP(e)&&LP(e.moduleReference)||hP(e)||NP(e)||EP(e)?e:void 0}function OI(e){return function(e){return OE(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:ZI(e,OI)}var LI,RI={166:function(e,t,n){return EI(t,e.left)||EI(t,e.right)},168:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.constraint)||EI(t,e.default)||EI(t,e.expression)},304:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.exclamationToken)||EI(t,e.equalsToken)||EI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return EI(t,e.expression)},169:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.dotDotDotToken)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.type)||EI(t,e.initializer)},172:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.exclamationToken)||EI(t,e.type)||EI(t,e.initializer)},171:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.type)||EI(t,e.initializer)},303:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.exclamationToken)||EI(t,e.initializer)},260:function(e,t,n){return EI(t,e.name)||EI(t,e.exclamationToken)||EI(t,e.type)||EI(t,e.initializer)},208:function(e,t,n){return EI(t,e.dotDotDotToken)||EI(t,e.propertyName)||EI(t,e.name)||EI(t,e.initializer)},181:function(e,t,n){return PI(t,n,e.modifiers)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)},185:function(e,t,n){return PI(t,n,e.modifiers)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)},184:function(e,t,n){return PI(t,n,e.modifiers)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)},179:MI,180:MI,174:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.asteriskToken)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.exclamationToken)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.body)},173:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.questionToken)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)},176:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.body)},177:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.body)},178:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.body)},262:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.asteriskToken)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.body)},218:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.asteriskToken)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.body)},219:function(e,t,n){return PI(t,n,e.modifiers)||PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)||EI(t,e.equalsGreaterThanToken)||EI(t,e.body)},175:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.body)},183:function(e,t,n){return EI(t,e.typeName)||PI(t,n,e.typeArguments)},182:function(e,t,n){return EI(t,e.assertsModifier)||EI(t,e.parameterName)||EI(t,e.type)},186:function(e,t,n){return EI(t,e.exprName)||PI(t,n,e.typeArguments)},187:function(e,t,n){return PI(t,n,e.members)},188:function(e,t,n){return EI(t,e.elementType)},189:function(e,t,n){return PI(t,n,e.elements)},192:jI,193:jI,194:function(e,t,n){return EI(t,e.checkType)||EI(t,e.extendsType)||EI(t,e.trueType)||EI(t,e.fal
6seType)},195:function(e,t,n){return EI(t,e.typeParameter)},205:function(e,t,n){return EI(t,e.argument)||EI(t,e.attributes)||EI(t,e.qualifier)||PI(t,n,e.typeArguments)},302:function(e,t,n){return EI(t,e.assertClause)},196:BI,198:BI,199:function(e,t,n){return EI(t,e.objectType)||EI(t,e.indexType)},200:function(e,t,n){return EI(t,e.readonlyToken)||EI(t,e.typeParameter)||EI(t,e.nameType)||EI(t,e.questionToken)||EI(t,e.type)||PI(t,n,e.members)},201:function(e,t,n){return EI(t,e.literal)},202:function(e,t,n){return EI(t,e.dotDotDotToken)||EI(t,e.name)||EI(t,e.questionToken)||EI(t,e.type)},206:JI,207:JI,209:function(e,t,n){return PI(t,n,e.elements)},210:function(e,t,n){return PI(t,n,e.properties)},211:function(e,t,n){return EI(t,e.expression)||EI(t,e.questionDotToken)||EI(t,e.name)},212:function(e,t,n){return EI(t,e.expression)||EI(t,e.questionDotToken)||EI(t,e.argumentExpression)},213:UI,214:UI,215:function(e,t,n){return EI(t,e.tag)||EI(t,e.questionDotToken)||PI(t,n,e.typeArguments)||EI(t,e.template)},216:function(e,t,n){return EI(t,e.type)||EI(t,e.expression)},217:function(e,t,n){return EI(t,e.expression)},220:function(e,t,n){return EI(t,e.expression)},221:function(e,t,n){return EI(t,e.expression)},222:function(e,t,n){return EI(t,e.expression)},224:function(e,t,n){return EI(t,e.operand)},229:function(e,t,n){return EI(t,e.asteriskToken)||EI(t,e.expression)},223:function(e,t,n){return EI(t,e.expression)},225:function(e,t,n){return EI(t,e.operand)},226:function(e,t,n){return EI(t,e.left)||EI(t,e.operatorToken)||EI(t,e.right)},234:function(e,t,n){return EI(t,e.expression)||EI(t,e.type)},235:function(e,t,n){return EI(t,e.expression)},238:function(e,t,n){return EI(t,e.expression)||EI(t,e.type)},236:function(e,t,n){return EI(t,e.name)},227:function(e,t,n){return EI(t,e.condition)||EI(t,e.questionToken)||EI(t,e.whenTrue)||EI(t,e.colonToken)||EI(t,e.whenFalse)},230:function(e,t,n){return EI(t,e.expression)},241:qI,268:qI,307:function(e,t,n){return PI(t,n,e.statements)||EI(t,e.endOfFileToken)},243:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.declarationList)},261:function(e,t,n){return PI(t,n,e.declarations)},244:function(e,t,n){return EI(t,e.expression)},245:function(e,t,n){return EI(t,e.expression)||EI(t,e.thenStatement)||EI(t,e.elseStatement)},246:function(e,t,n){return EI(t,e.statement)||EI(t,e.expression)},247:function(e,t,n){return EI(t,e.expression)||EI(t,e.statement)},248:function(e,t,n){return EI(t,e.initializer)||EI(t,e.condition)||EI(t,e.incrementor)||EI(t,e.statement)},249:function(e,t,n){return EI(t,e.initializer)||EI(t,e.expression)||EI(t,e.statement)},250:function(e,t,n){return EI(t,e.awaitModifier)||EI(t,e.initializer)||EI(t,e.expression)||EI(t,e.statement)},251:zI,252:zI,253:function(e,t,n){return EI(t,e.expression)},254:function(e,t,n){return EI(t,e.expression)||EI(t,e.statement)},255:function(e,t,n){return EI(t,e.expression)||EI(t,e.caseBlock)},269:function(e,t,n){return PI(t,n,e.clauses)},296:function(e,t,n){return EI(t,e.expression)||PI(t,n,e.statements)},297:function(e,t,n){return PI(t,n,e.statements)},256:function(e,t,n){return EI(t,e.label)||EI(t,e.statement)},257:function(e,t,n){return EI(t,e.expression)},258:function(e,t,n){return EI(t,e.tryBlock)||EI(t,e.catchClause)||EI(t,e.finallyBlock)},299:function(e,t,n){return EI(t,e.variableDeclaration)||EI(t,e.block)},170:function(e,t,n){return EI(t,e.expression)},263:$I,231:$I,264:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.heritageClauses)||PI(t,n,e.members)},265:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.typeParameters)||EI(t,e.type)},266:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.members)},306:function(e,t,n){return EI(t,e.name)||EI(t,e.initializer)},267:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.body)},271:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||EI(t,e.moduleReference)},272:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.importClause)||EI(t,e.moduleSpecifier)||EI(t,e.attributes)},273:function(e,t,n){return EI(t,e.name)||EI(t,e.namedBindings)},300:function(e,t,n){return PI(t,n,e.elements)},301:function(e,t,n){return EI(t,e.name)||EI(t,e.value)},270:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)},274:function(e,t,n){return EI(t,e.name)},280:function(e,t,n){return EI(t,e.name)},275:VI,279:VI,278:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.exportClause)||EI(t,e.moduleSpecifier)||EI(t,e.attributes)},276:WI,281:WI,277:function(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.expression)},228:function(e,t,n){return EI(t,e.head)||PI(t,n,e.templateSpans)},239:function(e,t,n){return EI(t,e.expression)||EI(t,e.literal)},203:function(e,t,n){return EI(t,e.head)||PI(t,n,e.templateSpans)},204:function(e,t,n){return EI(t,e.type)||EI(t,e.literal)},167:function(e,t,n){return EI(t,e.expression)},298:function(e,t,n){return PI(t,n,e.types)},233:function(e,t,n){return EI(t,e.expression)||PI(t,n,e.typeArguments)},283:function(e,t,n){return EI(t,e.expression)},282:function(e,t,n){return PI(t,n,e.modifiers)},355:function(e,t,n){return PI(t,n,e.elements)},284:function(e,t,n){return EI(t,e.openingElement)||PI(t,n,e.children)||EI(t,e.closingElement)},288:function(e,t,n){return EI(t,e.openingFragment)||PI(t,n,e.children)||EI(t,e.closingFragment)},285:HI,286:HI,292:function(e,t,n){return PI(t,n,e.properties)},291:function(e,t,n){return EI(t,e.name)||EI(t,e.initializer)},293:function(e,t,n){return EI(t,e.expression)},294:function(e,t,n){return EI(t,e.dotDotDotToken)||EI(t,e.expression)},287:function(e,t,n){return EI(t,e.tagName)},295:function(e,t,n){return EI(t,e.namespace)||EI(t,e.name)},190:KI,191:KI,309:KI,315:KI,314:KI,316:KI,318:KI,317:function(e,t,n){return PI(t,n,e.parameters)||EI(t,e.type)},320:function(e,t,n){return("string"==typeof e.comment?void 0:PI(t,n,e.comment))||PI(t,n,e.tags)},347:function(e,t,n){return EI(t,e.tagName)||EI(t,e.name)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},310:function(e,t,n){return EI(t,e.name)},311:function(e,t,n){return EI(t,e.left)||EI(t,e.right)},341:GI,348:GI,330:function(e,t,n){return EI(t,e.tagName)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},329:function(e,t,n){return EI(t,e.tagName)||EI(t,e.class)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},328:function(e,t,n){return EI(t,e.tagName)||EI(t,e.class)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},345:function(e,t,n){return EI(t,e.tagName)||EI(t,e.constraint)||PI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},346:function(e,t,n){return EI(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?EI(t,e.typeExpression)||EI(t,e.fullName)||("string"==typeof e.comment?void 0:PI(t,n,e.comment)):EI(t,e.fullName)||EI(t,e.typeExpression)||("string"==typeof e.comment?void 0:PI(t,n,e.comment)))},338:function(e,t,n){return EI(t,e.tagName)||EI(t,e.fullName)||EI(t,e.typeExpression)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},342:XI,344:XI,343:XI,340:XI,350:XI,349:XI,339:XI,323:function(e,t,n){return d(e.typeParameters,t)||d(e.parameters,t)||EI(t,e.type)},324:QI,325:QI,326:QI,322:function(e,t,n){return d(e.jsDocPropertyTags,t)},327:YI,332:YI,333:YI,334:YI,335:YI,336:YI,331:YI,337:YI,351:function(e,t,n){return EI(t,e.tagName)||EI(t,e.importClause)||EI(t,e.moduleSpecifier)||EI(t,e.attributes)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))},354:function(e,t,n){return EI(t,e.expression)}};
6function MI(e,t,n){return PI(t,n,e.typeParameters)||PI(t,n,e.parameters)||EI(t,e.type)}function jI(e,t,n){return PI(t,n,e.types)}function BI(e,t,n){return EI(t,e.type)}function JI(e,t,n){return PI(t,n,e.elements)}function UI(e,t,n){return EI(t,e.expression)||EI(t,e.questionDotToken)||PI(t,n,e.typeArguments)||PI(t,n,e.arguments)}function qI(e,t,n){return PI(t,n,e.statements)}function zI(e,t,n){return EI(t,e.label)}function $I(e,t,n){return PI(t,n,e.modifiers)||EI(t,e.name)||PI(t,n,e.typeParameters)||PI(t,n,e.heritageClauses)||PI(t,n,e.members)}function VI(e,t,n){return PI(t,n,e.elements)}function WI(e,t,n){return EI(t,e.propertyName)||EI(t,e.name)}function HI(e,t,n){return EI(t,e.tagName)||PI(t,n,e.typeArguments)||EI(t,e.attributes)}function KI(e,t,n){return EI(t,e.type)}function GI(e,t,n){return EI(t,e.tagName)||(e.isNameFirst?EI(t,e.name)||EI(t,e.typeExpression):EI(t,e.typeExpression)||EI(t,e.name))||("string"==typeof e.comment?void 0:PI(t,n,e.comment))}function XI(e,t,n){return EI(t,e.tagName)||EI(t,e.typeExpression)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))}function QI(e,t,n){return EI(t,e.name)}function YI(e,t,n){return EI(t,e.tagName)||("string"==typeof e.comment?void 0:PI(t,n,e.comment))}function ZI(e,t,n){if(void 0===e||e.kind<=165)return;const r=RI[e.kind];return void 0===r?void 0:r(e,t,n)}function eO(e,t,n){const r=tO(e),i=[];for(;i.length<r.length;)i.push(e);for(;0!==r.length;){const e=r.pop(),o=i.pop();if(pt(e)){if(n){const t=n(e,o);if(t){if("skip"===t)continue;return t}}for(let t=e.length-1;t>=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of tO(e))r.push(t),i.push(e)}}}function tO(e){const t=[];return ZI(e,n,n),t;function n(e){t.unshift(e)}}function nO(e){e.externalModuleIndicator=AI(e)}function rO(e,t,n,r=!1,i){var o,a,s,c;let l;null==(o=pr)||o.push(pr.Phase.Parse,"createSourceFile",{path:e},!0),xr("beforeParse"),null==(a=lr)||a.logStartParseSourceFile(e);const{languageVersion:u,setExternalModuleIndicator:_,impliedNodeFormat:d,jsDocParsingMode:p}="object"==typeof n?n:{languageVersion:n};if(100===u)l=LI.parseSourceFile(e,t,u,void 0,r,6,vt,p);else{const n=void 0===d?_:e=>(e.impliedNodeFormat=d,(_||nO)(e));l=LI.parseSourceFile(e,t,u,void 0,r,i,n,p)}return null==(s=lr)||s.logStopParseSourceFile(),xr("afterParse"),Sr("Parse","beforeParse","afterParse"),null==(c=pr)||c.pop(),l}function iO(e,t){return LI.parseIsolatedEntityName(e,t)}function oO(e,t){return LI.parseJsonText(e,t)}function aO(e){return void 0!==e.externalModuleIndicator}function sO(e,t,n,r=!1){const i=uO.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function cO(e,t,n){const r=LI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&LI.fixupParentReferences(r.jsDoc),r}function lO(e,t,n){return LI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=Rs(99,!0),s=40960;function u(e){return x++,e}var _,d,p,f,m,g,h,y,v,b,x,S,k,T,C,w,D=ZC(11,{createBaseSourceFileNode:e=>u(new o(e,0,0)),createBaseIdentifierNode:e=>u(new r(e,0,0)),createBasePrivateIdentifierNode:e=>u(new i(e,0,0)),createBaseTokenNode:e=>u(new n(e,0,0)),createBaseNode:e=>u(new t(e,0,0))}),{createNodeArray:E,createNumericLiteral:P,createStringLiteral:F,createLiteralLikeNode:A,createIdentifier:I,createPrivateIdentifier:O,createToken:L,createArrayLiteralExpression:R,createObjectLiteralExpression:M,createPropertyAccessExpression:j,createPropertyAccessChain:B,createElementAccessExpression:J,createElementAccessChain:U,createCallExpression:q,createCallChain:z,createNewExpression:$,createParenthesizedExpression:V,createBlock:W,createVariableStatement:K,createExpressionStatement:G,createIfStatement:X,createWhileStatement:Q,createForStatement:Y,createForOfStatement:Z,createVariableDeclaration:ee,createVariableDeclarationList:ne}=D,ie=!0,oe=!1;function ae(e,t,n=2,r,i=!1){se(e,t,n,r,6,0),d=w,Ve();const o=Je();let a,s;if(1===qe())a=xt([],o,o),s=gt();else{let e;for(;1!==qe();){let t;switch(qe()){case 23:t=li();break;case 112:case 97:case 106:t=gt();break;case 41:t=tt((()=>9===Ve()&&59!==Ve()))?jr():_i();break;case 9:case 11:if(tt((()=>59!==Ve()))){t=hn();break}default:t=_i()}e&&pt(e)?e.push(t):e?e=[e,t]:(e=t,1!==qe()&&Le(Pa.Unexpected_token))}const t=pt(e)?St(R(e),o):En.checkDefined(e),n=G(t);St(n,o),a=xt([n],o),s=mt(1,Pa.Unexpected_token)}const c=de(e,2,6,!1,a,s,d,vt);i&&_e(c),c.nodeCount=x,c.identifierCount=k,c.identifiers=S,c.parseDiagnostics=yS(h,c),y&&(c.jsDocDiagnostics=yS(y,c));const l=c;return ce(),l}function se(e,s,c,l,u,y){switch(t=sS.getNodeConstructor(),n=sS.getTokenConstructor(),r=sS.getIdentifierConstructor(),i=sS.getPrivateIdentifierConstructor(),o=sS.getSourceFileConstructor(),_=sa(e),p=s,f=c,v=l,m=u,g=IS(u),h=[],T=0,S=new Map,k=0,x=0,d=0,ie=!0,m){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}oe=!1,a.setText(p),a.setOnError(Be),a.setScriptTarget(f),a.setLanguageVariant(g),a.setScriptKind(m),a.setJSDocParsingMode(y)}function ce(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),p=void 0,f=void 0,v=void 0,m=void 0,g=void 0,d=0,h=void 0,y=void 0,T=0,S=void 0,C=void 0,ie=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,s,u=0){var f;if(6===(o=Uk(e,o))){const o=ae(e,t,n,r,i);return UL(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=c,o.typeReferenceDirectives=c,o.libReferenceDirectives=c,o.amdDependencies=c,o.hasNoDefaultLib=!1,o.pragmas=l,o}se(e,t,n,r,o,u);const m=function(e,t,n,r,i){const o=fO(_);o&&(w|=33554432),d=w,Ve();const s=Qt(0,Oi);En.assert(1===qe());const c=Ue(),l=ue(gt(),c),u=de(_,e,n,o,s,l,d,r);
6return gO(u,p),hO(u,f),u.commentDirectives=a.getCommentDirectives(),u.nodeCount=x,u.identifierCount=k,u.identifiers=S,u.parseDiagnostics=yS(h,u),u.jsDocParsingMode=i,y&&(u.jsDocDiagnostics=yS(y,u)),t&&_e(u),u;function f(e,t,n){h.push(mS(_,p,e,t,n))}}(n,i,o,s||nO,u);return ce(),m},e.parseIsolatedEntityName=function(e,t){se("",e,t,void 0,1,0),Ve();const n=cn(!0),r=1===qe()&&!h.length;return ce(),r?n:void 0},e.parseJsonText=ae;let le=!1;function ue(e,t){if(!t)return e;En.assert(!e.jsDoc);const n=H(Pf(e,p),(t=>jo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),le&&(le=!1,e.flags|=536870912),e}function _e(e){GT(e,!0)}function de(e,t,n,r,i,o,s,c){let l=D.createSourceFile(i,o,s);if(VT(l,0,p.length),u(l),!r&&aO(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=v,n=uO.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return ie&&t&&c(t)&&pO(t),t}};const r=[],i=h;h=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];he(r,e.statements,o,s),o=u(e.statements,s);const c=N(i,(e=>e.start>=t.pos)),_=c>=0?N(i,(e=>e.start>=n.pos),c):-1;c>=0&&he(h,i,c,_>=0?_:void 0),et((()=>{const t=w;for(w|=65536,a.resetTokenState(n.pos),Ve();1!==qe();){const t=a.getTokenFullStart(),n=Yt(0,Oi);if(r.push(n),t===a.getTokenFullStart()&&Ve(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=u(e.statements,o+1))}}w=t}),2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];he(r,e.statements,o);const n=N(i,(e=>e.start>=t.pos));n>=0&&he(h,i,n)}return v=t,D.updateSourceFile(e,TI(E(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n<e.length;n++)if(c(e[n]))return n;return-1}function u(e,t){for(let n=t;n<e.length;n++)if(!c(e[n]))return n;return-1}}(l),e!==l&&u(l)}return l;function u(i){i.text=p,i.bindDiagnostics=[],i.bindSuggestionDiagnostics=void 0,i.languageVersion=t,i.fileName=e,i.languageVariant=IS(n),i.isDeclarationFile=r,i.scriptKind=n,c(i),i.setExternalModuleIndicator=c}}function pe(e,t){e?w|=t:w&=~t}function me(e){pe(e,8192)}function ge(e){pe(e,16384)}function ye(e){pe(e,32768)}function ve(e){pe(e,65536)}function be(e,t){const n=e&w;if(n){pe(!1,n);const e=t();return pe(!0,n),e}return t()}function xe(e,t){const n=e&~w;if(n){pe(!0,n);const e=t();return pe(!1,n),e}return t()}function Se(e){return be(8192,e)}function ke(e){return be(131072,e)}function Te(e){return xe(131072,e)}function Ce(e){return xe(65536,e)}function we(e){return be(65536,e)}function De(e){return!!(w&e)}function Ne(){return De(16384)}function Ee(){return De(8192)}function Fe(){return De(131072)}function Ae(){return De(32768)}function Ie(){return De(65536)}function Le(e,...t){return Me(a.getTokenStart(),a.getTokenEnd(),e,...t)}function Re(e,t,n,...r){const i=Oe(h);let o;return i&&e===i.start||(o=mS(_,p,e,t,n,...r),h.push(o)),oe=!0,o}function Me(e,t,n,...r){return Re(e,t-e,n,...r)}function je(e,t,...n){Me(e.pos,e.end,t,...n)}function Be(e,t,n){Re(a.getTokenEnd(),t,e,n)}function Je(){return a.getTokenFullStart()}function Ue(){return a.hasPrecedingJSDocComment()}function qe(){return b}function ze(){return b=a.scan()}function $e(e){return Ve(),e()}function Ve(){return Jh(b)&&(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Me(a.getTokenStart(),a.getTokenEnd(),Pa.Keywords_cannot_contain_escape_characters),ze()}function We(){return b=a.scanJsDocToken()}function He(e){return b=a.scanJSDocCommentTextToken(e)}function Ke(){return b=a.reScanGreaterToken()}function Ge(e){return b=a.reScanTemplateToken(e)}function Xe(){return b=a.reScanLessThanToken()}function Qe(){return b=a.reScanHashToken()}function Ye(){return b=a.scanJsxIdentifier()}function Ze(){return b=a.scanJsxToken()}function et(e,t){const n=b,r=h.length,i=oe,o=w,s=0!==t?a.lookAhead(e):a.tryScan(e);return En.assert(o===w),s&&0===t||(b=n,2!==t&&(h.length=r),oe=i),s}function tt(e){return et(e,1)}function nt(e){return et(e,0)}function rt(){return 80===qe()||qe()>118}function it(){return 80===qe()||(127!==qe()||!Ne())&&(135!==qe()||!Ie())&&qe()>118}function ot(e,t,n=!0){return qe()===e?(n&&Ve(),!0):(t?Le(t):Le(Pa._0_expected,Ga(e)),!1)}e.fixupParentReferences=_e;
6const at=Object.keys(Ia).filter((e=>e.length>2));function st(e){var t;if(dE(e))return void Me(hs(p,e.template.pos),e.template.end,Pa.Module_declaration_names_may_only_use_or_quoted_strings);const n=nN(e)?Fc(e):void 0;if(!n||!Ls(n,f))return void Le(Pa._0_expected,Ga(27));const r=hs(p,e.pos);switch(n){case"const":case"let":case"var":return void Me(r,e.end,Pa.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ct(Pa.Interface_name_cannot_be_0,Pa.Interface_must_be_given_a_name,19);case"is":return void Me(r,a.getTokenStart(),Pa.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ct(Pa.Namespace_name_cannot_be_0,Pa.Namespace_must_be_given_a_name,19);case"type":return void ct(Pa.Type_alias_name_cannot_be_0,Pa.Type_alias_must_be_given_a_name,64)}const i=null!=(t=Zt(n,at,kt))?t:function(e){for(const t of at)if(e.length>t.length+2&&fn(e,t))return`${t} ${e.slice(t.length)}`}(n);i?Me(r,e.end,Pa.Unknown_keyword_or_identifier_Did_you_mean_0,i):0!==qe()&&Me(r,e.end,Pa.Unexpected_keyword_or_identifier)}function ct(e,t,n){qe()===n?Le(t):Le(e,a.getTokenValue())}function lt(e){return qe()===e?(We(),!0):(En.assert(qh(e)),Le(Pa._0_expected,Ga(e)),!1)}function ut(e,t,n,r){if(qe()===t)return void Ve();const i=Le(Pa._0_expected,Ga(t));n&&i&&DT(i,mS(_,p,r,1,Pa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ga(e),Ga(t)))}function _t(e){return qe()===e&&(Ve(),!0)}function dt(e){if(qe()===e)return gt()}function ft(e){if(qe()===e)return function(){const e=Je(),t=qe();return We(),St(L(t),e)}()}function mt(e,t,n){return dt(e)||Tt(e,!1,t||Pa._0_expected,n||Ga(e))}function gt(){const e=Je(),t=qe();return Ve(),St(L(t),e)}function ht(){return 27===qe()||20===qe()||1===qe()||a.hasPrecedingLineBreak()}function yt(){return!!ht()&&(27===qe()&&Ve(),!0)}function bt(){return yt()||ot(27)}function xt(e,t,n,r){const i=E(e,r);return $T(i,t,null!=n?n:a.getTokenFullStart()),i}function St(e,t,n){return $T(e,t,null!=n?n:a.getTokenFullStart()),w&&(e.flags|=w),oe&&(oe=!1,e.flags|=262144),e}function Tt(e,t,n,...r){t?Re(a.getTokenFullStart(),0,n,...r):n&&Le(n,...r);const i=Je();return St(80===e?I("",void 0):Yl(e)?D.createTemplateLiteralLikeNode(e,"","",void 0):9===e?P("",void 0):11===e?F("",void 0):282===e?D.createMissingDeclaration():L(e),i)}function Ct(e){let t=S.get(e);return void 0===t&&S.set(e,t=e),t}function wt(e,t,n){if(e){k++;const e=Je(),t=qe(),n=Ct(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return ze(),St(I(n,t,r),e)}if(81===qe())return Le(n||Pa.Private_identifiers_are_not_allowed_outside_class_bodies),wt(!0);if(0===qe()&&a.tryScan((()=>80===a.reScanInvalidIdentifier())))return wt(!0);k++;const r=1===qe(),i=a.isReservedWord(),o=a.getTokenText(),s=i?Pa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Pa.Identifier_expected;return Tt(80,r,t||s,o)}function Dt(e){return wt(rt(),void 0,e)}function Nt(e,t){return wt(it(),e,t)}function Et(e){return wt(Fa(qe()),e)}function Pt(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Le(Pa.Unicode_escape_sequence_cannot_appear_here),wt(Fa(qe()))}function Ft(){return Fa(qe())||11===qe()||9===qe()}function At(e){if(11===qe()||9===qe()){const e=hn();return e.text=Ct(e.text),e}return 23===qe()?function(){const e=Je();ot(23);const t=Se(Tr);return ot(24),St(D.createComputedPropertyName(t),e)}():81===qe()?Ot():Et()}function It(){return At()}function Ot(){const e=Je(),t=O(Ct(a.getTokenValue()));return Ve(),St(t,e)}function Lt(e){return qe()===e&&nt(Mt)}function Rt(){return Ve(),!a.hasPrecedingLineBreak()&&Jt()}function Mt(){switch(qe()){case 87:return 94===Ve();case 95:return Ve(),90===qe()?tt(Ut):156===qe()?tt(Bt):jt();case 90:return Ut();case 126:case 139:case 153:return Ve(),Jt();default:return Rt()}}function jt(){return 60===qe()||42!==qe()&&130!==qe()&&19!==qe()&&Jt()}function Bt(){return Ve(),jt()}function Jt(){return 23===qe()||19===qe()||42===qe()||26===qe()||Ft()}function Ut(){return Ve(),86===qe()||100===qe()||120===qe()||60===qe()||128===qe()&&tt(Si)||134===qe()&&tt(ki)}function qt(e,t){if(en(e))return!0;switch(e){case 0:case 1:case 3:return!(27===qe()&&t)&&Di();case 2:return 84===qe()||90===qe();case 4:return tt(Un);case 5:return tt(no)||27===qe()&&!t;case 6:return 23===qe()||Ft();case 12:switch(qe()){case 23:case 42:case 26:case 25:return!0;default:return Ft()}case 18:return Ft();case 9:return 23===qe()||26===qe()||Ft();case 24:return Fa(qe())||11===qe();case 7:return 19===qe()?tt(zt):t?it()&&!Ht():Sr()&&!Ht();case 8:return zi();case 10:return 28===qe()||26===qe()||zi();case 19:return 103===qe()||87===qe()||it();case 15:switch(qe()){case 28:case 25:return!0}case 11:return 26===qe()||kr();case 16:return Pn(!1);case 17:return Pn(!0);case 20:case 21:return 28===qe()||ar();case 22:return ho();case 23:return(161!==qe()||!tt(ji))&&Fa(qe());case 13:return Fa(qe())||19===qe();case 14:case 25:return!0;case 26:return En.fail("ParsingContext.Count used as a context");default:En.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function zt(){if(En.assert(19===qe()),20===Ve()){const e=Ve();return 28===e||19===e||96===e||119===e}return!0}function $t(){return Ve(),it()}function Vt(){return Ve(),Fa(qe())}function Wt(){return Ve(),Aa(qe())}function Ht(){return(119===qe()||96===qe())&&tt(Kt)}function Kt(){return Ve(),kr()}function Gt(){return Ve(),ar()}function Xt(e){if(1===qe())return!0;
6switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===qe();case 3:return 20===qe()||84===qe()||90===qe();case 7:return 19===qe()||96===qe()||119===qe();case 8:return!!ht()||!!Ir(qe())||39===qe();case 19:return 32===qe()||21===qe()||19===qe()||96===qe()||119===qe();case 11:return 22===qe()||27===qe();case 15:case 21:case 10:return 24===qe();case 17:case 16:case 18:return 22===qe()||24===qe();case 20:return 28!==qe();case 22:return 19===qe()||20===qe();case 13:return 32===qe()||44===qe();case 14:return 30===qe()&&tt(To);default:return!1}}function Qt(e,t){const n=T;T|=1<<e;const r=[],i=Je();for(;!Xt(e);)if(qt(e,!1))r.push(Yt(e,t));else if(nn(e))break;return T=n,xt(r,i)}function Yt(e,t){const n=en(e);return n?tn(n):t()}function en(e,t){var n;if(!v||!function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)||oe)return;const r=v.currentNode(null!=t?t:a.getTokenFullStart());return Ud(r)||function(e){return dO.has(e)}(r)||Ad(r)?void 0:(101441536&r.flags)===w&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const t=e;return!(80===t.name.kind&&"constructor"===t.name.escapedText)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 296:case 297:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}(e);case 6:return function(e){return 306===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}(e);case 8:return function(e){if(260!==e.kind)return!1;const t=e;return void 0===t.initializer}(e);case 17:case 16:return function(e){if(169!==e.kind)return!1;const t=e;return void 0===t.initializer}(e)}return!1}(r,e)?(Gg(r)&&(null==(n=r.jsDoc)?void 0:n.jsDocCache)&&(r.jsDoc.jsDocCache=void 0),r):void 0}function tn(e){return a.resetTokenState(e.end),Ve(),e}function nn(e){return function(e){switch(e){case 0:return 90===qe()?Le(Pa._0_expected,Ga(95)):Le(Pa.Declaration_or_statement_expected);case 1:return Le(Pa.Declaration_or_statement_expected);case 2:return Le(Pa.case_or_default_expected);case 3:return Le(Pa.Statement_expected);case 18:case 4:return Le(Pa.Property_or_signature_expected);case 5:return Le(Pa.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Le(Pa.Enum_member_expected);case 7:return Le(Pa.Expression_expected);case 8:return Jh(qe())?Le(Pa._0_is_not_allowed_as_a_variable_declaration_name,Ga(qe())):Le(Pa.Variable_declaration_expected);case 9:return Le(Pa.Property_destructuring_pattern_expected);case 10:return Le(Pa.Array_element_destructuring_pattern_expected);case 11:return Le(Pa.Argument_expression_expected);case 12:return Le(Pa.Property_assignment_expected);case 15:return Le(Pa.Expression_or_comma_expected);case 17:return Le(Pa.Parameter_declaration_expected);case 16:return Jh(qe())?Le(Pa._0_is_not_allowed_as_a_parameter_name,Ga(qe())):Le(Pa.Parameter_declaration_expected);case 19:return Le(Pa.Type_parameter_declaration_expected);case 20:return Le(Pa.Type_argument_expected);case 21:return Le(Pa.Type_expected);case 22:return Le(Pa.Unexpected_token_expected);case 23:return 161===qe()?Le(Pa._0_expected,"}"):Le(Pa.Identifier_expected);case 13:case 14:case 25:return Le(Pa.Identifier_expected);case 24:return Le(Pa.Identifier_or_string_literal_expected);case 26:return En.fail("ParsingContext.Count used as a context");default:En.assertNever(e)}}(e),!!function(){En.assert(T,"Missing parsing context");for(let e=0;e<26;e++)if(T&1<<e&&(qt(e,!0)||Xt(e)))return!0;return!1}()||(Ve(),!1)}function rn(e,t,n){const r=T;T|=1<<e;const i=[],o=Je();let s=-1;for(;;)if(qt(e,!1)){const o=a.getTokenFullStart(),c=Yt(e,t);if(!c)return void(T=r);if(i.push(c),s=a.getTokenStart(),_t(28))continue;if(s=-1,Xt(e))break;ot(28,on(e)),n&&27===qe()&&!a.hasPrecedingLineBreak()&&Ve(),o===a.getTokenFullStart()&&Ve()}else{if(Xt(e))break;if(nn(e))break}return T=r,xt(i,o,void 0,s>=0)}function on(e){return 6===e?Pa.An_enum_member_name_must_be_followed_by_a_or:void 0}function an(){const e=xt([],Je());return e.isMissingList=!0,e}function sn(e,t,n,r){if(ot(n)){const n=rn(e,t);return ot(r),n}return an()}function cn(e,t){const n=Je();let r=e?Et(t):Nt(t);for(;_t(25)&&30!==qe();)r=St(D.createQualifiedName(r,un(e,!1,!0)),n);return r}function ln(e,t){return St(D.createQualifiedName(e,t),e.pos)}
6function un(e,t,n){if(a.hasPrecedingLineBreak()&&Fa(qe())&&tt(xi))return Tt(80,!0,Pa.Identifier_expected);if(81===qe()){const e=Ot();return t?e:Tt(80,!0,Pa.Identifier_expected)}return e?n?Et():Pt():Nt()}function _n(e){const t=Je();return St(D.createTemplateExpression(yn(e),function(e){const t=Je(),n=[];let r;do{r=gn(e),n.push(r)}while(17===r.literal.kind);return xt(n,t)}(e)),t)}function dn(){const e=Je();return St(D.createTemplateLiteralType(yn(!1),function(){const e=Je(),t=[];let n;do{n=pn(),t.push(n)}while(17===n.literal.kind);return xt(t,e)}()),e)}function pn(){const e=Je();return St(D.createTemplateLiteralTypeSpan(br(),mn(!1)),e)}function mn(e){return 20===qe()?(Ge(e),function(){const e=vn(qe());return En.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):mt(18,Pa._0_expected,Ga(20))}function gn(e){const t=Je();return St(D.createTemplateSpan(Se(Tr),mn(e)),t)}function hn(){return vn(qe())}function yn(e){!e&&26656&a.getTokenFlags()&&Ge(!1);const t=vn(qe());return En.assert(16===t.kind,"Template head has wrong token kind"),t}function vn(e){const t=Je(),n=Yl(e)?D.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?P(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?F(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Gl(e)?A(e,a.getTokenValue()):En.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),Ve(),St(n,t)}function bn(){return cn(!0,Pa.Type_expected)}function xn(){if(!a.hasPrecedingLineBreak()&&30===Xe())return sn(20,br,30,32)}function Sn(){const e=Je();return St(D.createTypeReferenceNode(bn(),xn()),e)}function kn(e){switch(e.kind){case 183:return Ud(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||kn(n)}case 196:return kn(e.type);default:return!1}}function Tn(){const e=Je();return Ve(),St(D.createThisTypeNode(),e)}function Cn(){const e=Je();let t;return 110!==qe()&&105!==qe()||(t=Et(),ot(59)),St(D.createParameterDeclaration(void 0,void 0,t,void 0,wn(),void 0),e)}function wn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Je();if(_t(144)){const t=D.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 20:case 1:case 28:case 5:break e;default:We()}return a.setSkipJsDocLeadingAsterisks(!1),St(t,e)}const t=_t(26);let n=yr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=St(D.createJSDocVariadicType(n),e)),64===qe()?(Ve(),St(D.createJSDocOptionalType(n),e)):n}function Dn(){const e=Je(),t=so(!1,!0),n=Nt();let r,i;_t(96)&&(ar()||!kr()?r=br():i=Br());const o=_t(64)?br():void 0,a=D.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,St(a,e)}function Nn(){if(30===qe())return sn(19,Dn,30,32)}function Pn(e){return 26===qe()||zi()||du(qe())||60===qe()||ar(!e)}function Fn(e){return An(e)}function An(e,t=!0){const n=Je(),r=Ue(),i=e?Ce((()=>so(!0))):we((()=>so(!0)));if(110===qe()){const e=D.createParameterDeclaration(i,void 0,wt(!0),void 0,xr(),void 0),t=Pe(i);return t&&je(t,Pa.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ue(St(e,n),r)}const o=ie;ie=!1;const a=dt(26);if(!t&&!rt()&&23!==qe()&&19!==qe())return;const s=ue(St(D.createParameterDeclaration(i,a,function(e){const t=$i(Pa.Private_identifiers_cannot_be_used_as_parameters);return 0===Td(t)&&!te(e)&&du(qe())&&Ve(),t}(i),dt(58),xr(),Cr()),n),r);return ie=o,s}function In(e,t){if(function(e,t){return 39===e?(ot(e),!0):!!_t(59)||!(!t||39!==qe())&&(Le(Pa._0_expected,Ga(59)),Ve(),!0)}(e,t))return ke(yr)}function On(e,t){const n=Ne(),r=Ie();ge(!!(1&e)),ve(!!(2&e));const i=32&e?rn(17,Cn):rn(16,(()=>t?Fn(r):An(r,!1)));return ge(n),ve(r),i}function Ln(e){if(!ot(21))return an();const t=On(e,!0);return ot(22),t}function Rn(){_t(28)||bt()}function Mn(e){const t=Je(),n=Ue();180===e&&ot(105);const r=Nn(),i=Ln(4),o=In(59,!0);return Rn(),ue(St(179===e?D.createCallSignature(r,i,o):D.createConstructSignature(r,i,o),t),n)}function jn(){return 23===qe()&&tt(Bn)}function Bn(){if(Ve(),26===qe()||24===qe())return!0;
6if(du(qe())){if(Ve(),it())return!0}else{if(!it())return!1;Ve()}return 59===qe()||28===qe()||58===qe()&&(Ve(),59===qe()||28===qe()||24===qe())}function Jn(e,t,n){const r=sn(16,(()=>Fn(!1)),23,24),i=xr();return Rn(),ue(St(D.createIndexSignature(n,r,i),e),t)}function Un(){if(21===qe()||30===qe()||139===qe()||153===qe())return!0;let e=!1;for(;du(qe());)e=!0,Ve();return 23===qe()||(Ft()&&(e=!0,Ve()),!!e&&(21===qe()||30===qe()||58===qe()||59===qe()||28===qe()||ht()))}function qn(){if(21===qe()||30===qe())return Mn(179);if(105===qe()&&tt(zn))return Mn(180);const e=Je(),t=Ue(),n=so(!1);return Lt(139)?to(e,t,n,177,4):Lt(153)?to(e,t,n,178,4):jn()?Jn(e,t,n):function(e,t,n){const r=It(),i=dt(58);let o;if(21===qe()||30===qe()){const e=Nn(),t=Ln(4),a=In(59,!0);o=D.createMethodSignature(n,r,i,e,t,a)}else{const e=xr();o=D.createPropertySignature(n,r,i,e),64===qe()&&(o.initializer=Cr())}return Rn(),ue(St(o,e),t)}(e,t,n)}function zn(){return Ve(),21===qe()||30===qe()}function $n(){return 25===Ve()}function Vn(){switch(Ve()){case 21:case 30:case 25:return!0}return!1}function Wn(){let e;return ot(19)?(e=Qt(4,qn),ot(20)):e=an(),e}function Hn(){return Ve(),40===qe()||41===qe()?148===Ve():(148===qe()&&Ve(),23===qe()&&$t()&&103===Ve())}function Kn(){const e=Je();let t;ot(19),148!==qe()&&40!==qe()&&41!==qe()||(t=gt(),148!==t.kind&&ot(148)),ot(23);const n=function(){const e=Je(),t=Et();ot(103);const n=br();return St(D.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=_t(130)?br():void 0;let i;ot(24),58!==qe()&&40!==qe()&&41!==qe()||(i=gt(),58!==i.kind&&ot(58));const o=xr();bt();const a=Qt(4,qn);return ot(20),St(D.createMappedTypeNode(t,n,r,i,o,a),e)}function Gn(){const e=Je();if(_t(26))return St(D.createRestTypeNode(br()),e);const t=br();if(dF(t)&&t.pos===t.type.pos){const e=D.createOptionalTypeNode(t.type);return TI(e,t),e.flags=t.flags,e}return t}function Xn(){return 59===Ve()||58===qe()&&59===Ve()}function Qn(){return 26===qe()?Fa(Ve())&&Xn():Fa(qe())&&Xn()}function Yn(){if(tt(Qn)){const e=Je(),t=Ue(),n=dt(26),r=Et(),i=dt(58);ot(59);const o=Gn();return ue(St(D.createNamedTupleMember(n,r,i,o),e),t)}return Gn()}function Zn(){const e=Je(),t=Ue(),n=function(){let e;if(128===qe()){const t=Je();Ve(),e=xt([St(L(128),t)],t)}return e}(),r=_t(105);En.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Nn(),o=Ln(4),a=In(39,!1);return ue(St(r?D.createConstructorTypeNode(n,i,o,a):D.createFunctionTypeNode(i,o,a),e),t)}function er(){const e=gt();return 25===qe()?void 0:e}function tr(e){const t=Je();e&&Ve();let n=112===qe()||97===qe()||106===qe()?gt():vn(qe());return e&&(n=St(D.createPrefixUnaryExpression(41,n),t)),St(D.createLiteralTypeNode(n),t)}function nr(){return Ve(),102===qe()}function rr(){d|=4194304;const e=Je(),t=_t(114);ot(102),ot(21);const n=br();let r;if(_t(28)){const e=a.getTokenStart();ot(19);const t=qe();if(118===t||132===t?Ve():Le(Pa._0_expected,Ga(118)),ot(59),r=No(t,!0),!ot(20)){const t=Oe(h);t&&t.code===Pa._0_expected.code&&DT(t,mS(_,p,e,1,Pa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ot(22);const i=_t(25)?bn():void 0,o=xn();return St(D.createImportTypeNode(n,r,i,o,t),e)}function ir(){return Ve(),9===qe()||10===qe()}function or(){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(er)||Sn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Je();return Ve(),St(D.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Je();return Ve(),28===qe()||20===qe()||22===qe()||32===qe()||64===qe()||52===qe()?St(D.createJSDocUnknownType(),e):St(D.createJSDocNullableType(br(),!1),e)}();case 100:return function(){const e=Je(),t=Ue();if(nt(So)){const n=Ln(36),r=In(59,!1);return ue(St(D.createJSDocFunctionType(n,r),e),t)}return St(D.createTypeReferenceNode(Et(),void 0),e)}();case 54:return function(){const e=Je();return Ve(),St(D.createJSDocNonNullableType(or(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return tr();case 41:return tt(ir)?tr(!0):Sn();case 116:return gt();case 110:{const t=Tn();return 142!==qe()||a.hasPrecedingLineBreak()?t:(e=t,Ve(),St(D.createTypePredicateNode(void 0,e,br()),e.pos))}case 114:return tt(nr)?rr():function(){const e=Je();ot(114);const t=cn(!0),n=a.hasPrecedingLineBreak()?void 0:go();return St(D.createTypeQueryNode(t,n),e)}();case 19:return tt(Hn)?Kn():function(){const e=Je();return St(D.createTypeLiteralNode(Wn()),e)}();case 23:return function(){const e=Je();return St(D.createTupleTypeNode(sn(21,Yn,23,24)),e)}();case 21:return function(){const e=Je();ot(21);const t=br();return ot(22),St(D.createParenthesizedType(t),e)}();case 102:return rr();case 131:return tt(xi)?function(){const e=Je(),t=mt(131),n=110===qe()?Tn():Nt(),r=_t(142)?br():void 0;return St(D.createTypePredicateNode(t,n,r),e)}():Sn();case 16:return dn();default:return Sn()}var e}function ar(e){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(ir);case 21:return!e&&tt(sr);default:return it()}}function sr(){return Ve(),22===qe()||Pn(!1)||ar()}function cr(){const e=Je();let t=or();for(;!a.hasPrecedingLineBreak();)switch(qe()){case 54:Ve(),t=St(D.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Gt))return t;Ve(),t=St(D.createJSDocNullableType(t,!0),e);break;case 23:if(ot(23),ar()){const n=br();ot(24),t=St(D.createIndexedAccessTypeNode(t,n),e)}else ot(24),t=St(D.createArrayTypeNode(t),e);break;default:return t}return t}function lr(){if(_t(96)){const e=Te(br);if(Fe()||58!==qe())return e}}function ur(){const e=Je();return ot(140),St(D.createInferTypeNode(function(){const e=Je(),t=Nt(),n=nt(lr);return St(D.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}function _r(){const e=qe();switch(e){case 143:case 158:case 148:return function(e){const t=Je();return ot(e),St(D.createTypeOperatorNode(e,_r()),t)}(e);case 140:return ur()}return ke(cr)}function dr(e){if(gr()){const t=Zn();let n;return n=LN(t)?e?Pa.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Pa.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?Pa.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Pa.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,je(t,n),t}}function pr(e,t,n){const r=Je(),i=52===e,o=_t(e);let a=o&&dr(i)||t();if(qe()===e||o){const o=[a];for(;_t(e);)o.push(dr(i)||t());a=St(n(xt(o,r)),r)}return a}function fr(){return pr(51,_r,D.createIntersectionTypeNode)}function mr(){return Ve(),105===qe()}function gr(){return 30===qe()||!(21!==qe()||!tt(hr))||105===qe()||128===qe()&&tt(mr)}function hr(){if(Ve(),22===qe()||26===qe())return!0;
6if(function(){if(du(qe())&&so(!1),it()||110===qe())return Ve(),!0;if(23===qe()||19===qe()){const e=h.length;return $i(),e===h.length}return!1}()){if(59===qe()||28===qe()||58===qe()||64===qe())return!0;if(22===qe()&&(Ve(),39===qe()))return!0}return!1}function yr(){const e=Je(),t=it()&&nt(vr),n=br();return t?St(D.createTypePredicateNode(void 0,t,n),e):n}function vr(){const e=Nt();if(142===qe()&&!a.hasPrecedingLineBreak())return Ve(),e}function br(){if(81920&w)return be(81920,br);if(gr())return Zn();const e=Je(),t=pr(52,fr,D.createUnionTypeNode);if(!Fe()&&!a.hasPrecedingLineBreak()&&_t(96)){const n=Te(br);ot(58);const r=ke(br);ot(59);const i=ke(br);return St(D.createConditionalTypeNode(t,n,r,i),e)}return t}function xr(){return _t(59)?br():void 0}function Sr(){switch(qe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(Vn);default:return it()}}function kr(){if(Sr())return!0;switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Lr()||it()}}function Tr(){const e=Ae();e&&ye(!1);const t=Je();let n,r=wr(!0);for(;n=dt(28);)r=Rr(r,n,wr(!0),t);return e&&ye(!0),r}function Cr(){return _t(64)?wr(!0):void 0}function wr(e){if(127===qe()&&(Ne()||tt(Ti)))return function(){const e=Je();return Ve(),a.hasPrecedingLineBreak()||42!==qe()&&!kr()?St(D.createYieldExpression(void 0,void 0),e):St(D.createYieldExpression(dt(42),wr(!0)),e)}();const t=function(e){const t=21===qe()||30===qe()||134===qe()?tt(Nr):39===qe()?1:0;if(0!==t)return 1===t?Pr(!0,!0):nt((()=>function(e){const t=a.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Pr(!1,e);return n||(C||(C=new Set)).add(t),n}(e)))}(e)||function(e){if(134===qe()&&1===tt(Er)){const t=Je(),n=Ue(),r=co();return Dr(t,Ar(0),e,n,r)}}(e);if(t)return t;const n=Je(),r=Ue(),i=Ar(0);return 80===i.kind&&39===qe()?Dr(n,i,e,r,void 0):t_(i)&&kb(Ke())?Rr(i,gt(),wr(e),n):function(e,t,n){const r=dt(58);if(!r)return e;let i;return St(D.createConditionalExpression(e,r,be(s,(()=>wr(!1))),i=mt(59),qd(i)?wr(n):Tt(80,!1,Pa._0_expected,Ga(59))),t)}(i,n,e)}function Dr(e,t,n,r,i){En.assert(39===qe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=D.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);St(o,t.pos);const a=xt([o],o.pos,o.end),s=mt(39),c=Fr(!!i,n);return ue(St(D.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Nr(){if(134===qe()){if(Ve(),a.hasPrecedingLineBreak())return 0;if(21!==qe()&&30!==qe())return 0}const e=qe(),t=Ve();if(21===e){if(22===t)switch(Ve()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(du(t)&&134!==t&&tt($t))return 130===Ve()?0:1;if(!it()&&110!==t)return 0;switch(Ve()){case 59:return 1;case 58:return Ve(),59===qe()||28===qe()||64===qe()||22===qe()?1:0;case 28:case 64:case 22:return 2}return 0}return En.assert(30===e),it()||87===qe()?1===g?tt((()=>{_t(87);const e=Ve();if(96===e)switch(Ve()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1}))?1:0:2:0}function Er(){if(134===qe()){if(Ve(),a.hasPrecedingLineBreak()||39===qe())return 0;const e=Ar(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===qe())return 1}return 0}function Pr(e,t){const n=Je(),r=Ue(),i=co(),o=te(i,aN)?2:0,a=Nn();let s;if(ot(21)){if(e)s=On(o,e);else{const t=On(o,e);if(!t)return;s=t}if(!ot(22)&&!e)return}else{if(!e)return;s=an()}const c=59===qe(),l=In(59,!1);if(l&&!e&&kn(l))return;let u=l;for(;196===(null==u?void 0:u.kind);)u=u.type;const _=u&&mF(u);if(!e&&39!==qe()&&(_||19!==qe()))return;const d=qe(),p=mt(39),f=39===d||19===d?Fr(te(i,aN),t):Nt();return t||!c||59===qe()?ue(St(D.createArrowFunction(i,a,s,l,p,f),n),r):void 0}function Fr(e,t){if(19===qe())return mi(e?2:0);if(27!==qe()&&100!==qe()&&86!==qe()&&Di()&&(19===qe()||100===qe()||86===qe()||60===qe()||!kr()))return mi(16|(e?2:0));const n=ie;ie=!1;const r=e?Ce((()=>wr(t))):we((()=>wr(t)));return ie=n,r}function Ar(e){const t=Je();return Or(e,Br(),t)}function Ir(e){return 103===e||165===e}function Or(e,t,n){for(;;){Ke();const o=Ey(qe());if(!(43===qe()?o>=e:o>e))break;if(103===qe()&&Ee())break;if(130===qe()||152===qe()){if(a.hasPrecedingLineBreak())break;{const e=qe();Ve(),t=152===e?(r=t,i=br(),St(D.createSatisfiesExpression(r,i),r.pos)):Mr(t,br())}}else t=Rr(t,gt(),Ar(o),n)}var r,i;return t}function Lr(){return(!Ee()||103!==qe())&&Ey(qe())>0}function Rr(e,t,n,r){return St(D.createBinaryExpression(e,t,n),r)}function Mr(e,t){return St(D.createAsExpression(e,t),e.pos)}function jr(){const e=Je();return St(D.createPrefixUnaryExpression(qe(),$e(Jr)),e)}function Br(){if(function(){switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==g)return!1;default:return!0}}()){const e=Je(),t=Ur();return 43===qe()?Or(Ey(qe()),t,e):t}const e=qe(),t=Jr();if(43===qe()){const n=hs(p,t.pos),{end:r}=t;
6216===t.kind?Me(n,r,Pa.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(En.assert(qh(e)),Me(n,r,Pa.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Ga(e)))}return t}function Jr(){switch(qe()){case 40:case 41:case 55:case 54:return jr();case 91:return function(){const e=Je();return St(D.createDeleteExpression($e(Jr)),e)}();case 114:return function(){const e=Je();return St(D.createTypeOfExpression($e(Jr)),e)}();case 116:return function(){const e=Je();return St(D.createVoidExpression($e(Jr)),e)}();case 30:return 1===g?$r(!0,void 0,void 0,!0):function(){En.assert(1!==g,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Je();ot(30);const t=br();ot(32);const n=Jr();return St(D.createTypeAssertion(t,n),e)}();case 135:if(135===qe()&&(Ie()||tt(Ti)))return function(){const e=Je();return St(D.createAwaitExpression($e(Jr)),e)}();default:return Ur()}}function Ur(){if(46===qe()||47===qe()){const e=Je();return St(D.createPrefixUnaryExpression(qe(),$e(qr)),e)}if(1===g&&30===qe()&&tt(Wt))return $r(!0);const e=qr();if(En.assert(t_(e)),(46===qe()||47===qe())&&!a.hasPrecedingLineBreak()){const t=qe();return Ve(),St(D.createPostfixUnaryExpression(e,t),e.pos)}return e}function qr(){const e=Je();let t;return 102===qe()?tt(zn)?(d|=4194304,t=gt()):tt($n)?(Ve(),Ve(),t=St(D.createMetaProperty(102,Et()),e),d|=8388608):t=zr():t=108===qe()?function(){const e=Je();let t=gt();if(30===qe()){const e=Je(),n=nt(oi);void 0!==n&&(Me(e,Je(),Pa.super_may_not_use_type_arguments),ti()||(t=D.createExpressionWithTypeArguments(t,n)))}return 21===qe()||25===qe()||23===qe()?t:(mt(25,Pa.super_must_be_followed_by_an_argument_list_or_member_access),St(j(t,un(!0,!0,!0)),e))}():zr(),ri(e,t)}function zr(){return ei(Je(),ai(),!0)}function $r(e,t,n,r=!1){const i=Je(),o=function(e){const t=Je();if(ot(30),32===qe())return Ze(),St(D.createJsxOpeningFragment(),t);const n=Hr(),r=524288&w?void 0:go(),i=function(){const e=Je();return St(D.createJsxAttributes(Qt(13,Gr)),e)}();let o;return 32===qe()?(Ze(),o=D.createJsxOpeningElement(n,r,i)):(ot(44),ot(32,void 0,!1)&&(e?Ve():Ze()),o=D.createJsxSelfClosingElement(n,r,i)),St(o,t)}(e);let a;
6if(286===o.kind){let t,r=Wr(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!TO(s.openingElement.tagName,s.closingElement.tagName)&&TO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=St(D.createJsxElement(s.openingElement,s.children,St(D.createJsxClosingElement(St(I(""),e,e)),e,e)),s.openingElement.pos,e);r=xt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Je();ot(31);const r=Hr();return ot(32,void 0,!1)&&(t||!TO(e.tagName,r)?Ve():Ze()),St(D.createJsxClosingElement(r),n)}(o,e),TO(o.tagName,t.tagName)||(n&&jP(n)&&TO(t.tagName,n.tagName)?je(o.tagName,Pa.JSX_element_0_has_no_corresponding_closing_tag,op(p,o.tagName)):je(t.tagName,Pa.Expected_corresponding_JSX_closing_tag_for_0,op(p,o.tagName)));a=St(D.createJsxElement(o,r,t),i)}else 289===o.kind?a=St(D.createJsxFragment(o,Wr(o),function(e){const t=Je();return ot(31),ot(32,Pa.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ve():Ze()),St(D.createJsxJsxClosingFragment(),t)}(e)),i):(En.assert(285===o.kind),a=o);if(!r&&e&&30===qe()){const e=void 0===t?a.pos:t,n=nt((()=>$r(!0,e)));if(n){const t=Tt(28,!1);return VT(t,n.pos,0),Me(hs(p,e),n.end,Pa.JSX_expressions_must_have_one_parent_element),St(D.createBinaryExpression(a,t,n),i)}}return a}function Vr(e,t){switch(t){case 1:if(UP(e))je(e,Pa.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Me(Math.min(hs(p,t.pos),t.end),t.end,Pa.JSX_element_0_has_no_corresponding_closing_tag,op(p,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Je(),t=D.createJsxText(a.getTokenValue(),13===b);return b=a.scanJsxToken(),St(t,e)}();case 19:return Kr(!1);case 30:return $r(!1,void 0,e);default:return En.assertNever(t)}}function Wr(e){const t=[],n=Je(),r=T;for(T|=16384;;){const n=Vr(e,b=a.reScanJsxToken());if(!n)break;if(t.push(n),jP(e)&&284===(null==n?void 0:n.kind)&&!TO(n.openingElement.tagName,n.closingElement.tagName)&&TO(e.tagName,n.closingElement.tagName))break}return T=r,xt(t,n)}function Hr(){const e=Je(),t=function(){const e=Je();Ye();const t=110===qe(),n=Pt();return _t(59)?(Ye(),St(D.createJsxNamespacedName(n,Pt()),e)):t?St(D.createToken(110),e):n}();if(HP(t))return t;let n=t;for(;_t(25);)n=St(j(n,un(!0,!1,!1)),e);return n}function Kr(e){const t=Je();if(!ot(19))return;let n,r;return 20!==qe()&&(e||(n=dt(26)),r=Tr()),e?ot(20):ot(20,void 0,!1)&&Ze(),St(D.createJsxExpression(n,r),t)}function Gr(){if(19===qe())return function(){const e=Je();ot(19),ot(26);const t=Tr();return ot(20),St(D.createJsxSpreadAttribute(t),e)}();const e=Je();return St(D.createJsxAttribute(function(){const e=Je();Ye();const t=Pt();return _t(59)?(Ye(),St(D.createJsxNamespacedName(t,Pt()),e)):t}(),function(){if(64===qe()){if(11===(b=a.scanJsxAttributeValue()))return hn();if(19===qe())return Kr(!0);if(30===qe())return $r(!0);Le(Pa.or_JSX_element_expected)}}()),e)}function Xr(){return Ve(),Fa(qe())||23===qe()||ti()}function Qr(e){if(64&e.flags)return!0;if(IE(e)){let t=e.expression;for(;IE(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;IE(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Yr(e,t,n){const r=un(!0,!0,!0),i=n||Qr(t),o=i?B(t,n,r):j(t,r);return i&&rN(o.name)&&je(o.name,Pa.An_optional_chain_cannot_contain_private_identifiers),PE(t)&&t.typeArguments&&Me(t.typeArguments.pos-1,hs(p,t.typeArguments.end)+1,Pa.An_instantiation_expression_cannot_be_followed_by_a_property_access),St(o,e)}function Zr(e,t,n){let r;if(24===qe())r=Tt(80,!0,Pa.An_element_access_expression_should_take_an_argument);else{const e=Se(Tr);Zh(e)&&(e.text=Ct(e.text)),r=e}return ot(24),St(n||Qr(t)?U(t,n,r):J(t,r),e)}function ei(e,t,n){for(;;){let r,i=!1;if(n&&29===qe()&&tt(Xr)?(r=mt(29),i=Fa(qe())):i=_t(25),i)t=Yr(e,t,r);else if(!r&&Ae()||!_t(23)){if(!ti()){if(!r){if(54===qe()&&!a.hasPrecedingLineBreak()){Ve(),t=St(D.createNonNullExpression(t),e);continue}const n=nt(oi);if(n){t=St(D.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?ni(e,t,r,void 0):ni(e,t.expression,r,t.typeArguments)}else t=Zr(e,t,r)}}function ti(){return 15===qe()||16===qe()}function ni(e,t,n,r){const i=D.createTaggedTemplateExpression(t,r,15===qe()?(Ge(!0),hn()):_n(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,St(i,e)}function ri(e,t){for(;;){let n;t=ei(e,t,!0);const r=dt(29);if(r&&(n=nt(oi),ti()))t=ni(e,t,r,n);else{if(!n&&21!==qe()){if(r){const n=Tt(80,!1,Pa.Identifier_expected);t=St(B(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const i=ii();
6t=St(r||Qr(t)?z(t,r,n,i):q(t,n,i),e)}}}return t}function ii(){ot(21);const e=rn(11,ci);return ot(22),e}function oi(){if(524288&w)return;if(30!==Xe())return;Ve();const e=rn(20,br);return 32===Ke()?(Ve(),e&&function(){switch(qe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Lr()||!kr()}()?e:void 0):void 0}function ai(){switch(qe()){case 15:26656&a.getTokenFlags()&&Ge(!1);case 9:case 10:case 11:return hn();case 110:case 108:case 106:case 112:case 97:return gt();case 21:return function(){const e=Je(),t=Ue();ot(21);const n=Se(Tr);return ot(22),ue(St(V(n),e),t)}();case 23:return li();case 19:return _i();case 134:if(!tt(ki))break;return di();case 60:return function(){const e=Je(),t=Ue(),n=so(!0);if(86===qe())return _o(e,t,n,231);const r=Tt(282,!0,Pa.Expression_expected);return qT(r,e),r.modifiers=n,r}();case 86:return _o(Je(),Ue(),void 0,231);case 100:return di();case 105:return function(){const e=Je();if(ot(105),_t(25)){const t=Et();return St(D.createMetaProperty(105,t),e)}let t,n=ei(Je(),ai(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression),29===qe()&&Le(Pa.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,op(p,n));const r=21===qe()?ii():void 0;return St($(n,t,r),e)}();case 44:case 69:if(14===(b=a.reScanSlashToken()))return hn();break;case 16:return _n(!1);case 81:return Ot()}return Nt(Pa.Expression_expected)}function si(){return 26===qe()?function(){const e=Je();ot(26);const t=wr(!0);return St(D.createSpreadElement(t),e)}():28===qe()?St(D.createOmittedExpression(),Je()):wr(!0)}function ci(){return be(s,si)}function li(){const e=Je(),t=a.getTokenStart(),n=ot(23),r=a.hasPrecedingLineBreak(),i=rn(15,si);return ut(23,24,n,t),St(R(i,r),e)}function ui(){const e=Je(),t=Ue();if(dt(26)){const n=wr(!0);return ue(St(D.createSpreadAssignment(n),e),t)}const n=so(!0);if(Lt(139))return to(e,t,n,177,0);if(Lt(153))return to(e,t,n,178,0);const r=dt(42),i=it(),o=It(),a=dt(58),s=dt(54);if(r||21===qe()||30===qe())return Yi(e,t,n,r,o,a,s);let c;if(i&&59!==qe()){const e=dt(64),t=e?Se((()=>wr(!0))):void 0;c=D.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{ot(59);const e=Se((()=>wr(!0)));c=D.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ue(St(c,e),t)}function _i(){const e=Je(),t=a.getTokenStart(),n=ot(19),r=a.hasPrecedingLineBreak(),i=rn(12,ui,!0);return ut(19,20,n,t),St(M(i,r),e)}function di(){const e=Ae();ye(!1);const t=Je(),n=Ue(),r=so(!1);ot(100);const i=dt(42),o=i?1:0,a=te(r,aN)?2:0,s=o&&a?xe(81920,pi):o?function(e){return xe(16384,e)}(pi):a?Ce(pi):pi(),c=Nn(),l=Ln(o|a),u=In(59,!1),_=mi(o|a);return ye(e),ue(St(D.createFunctionExpression(r,i,s,c,l,u,_),t),n)}function pi(){return rt()?Dt():void 0}function fi(e,t){const n=Je(),r=Ue(),i=a.getTokenStart(),o=ot(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Qt(1,Oi);ut(19,20,o,i);const s=ue(St(W(t,e),n),r);return 64===qe()&&(Le(Pa.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ve()),s}{const e=an();return ue(St(W(e,void 0),n),r)}}function mi(e,t){const n=Ne();ge(!!(1&e));const r=Ie();ve(!!(2&e));const i=ie;ie=!1;const o=Ae();o&&ye(!1);const a=fi(!!(16&e),t);return o&&ye(!0),ie=i,ge(n),ve(r),a}function gi(){const e=Je(),t=Ue();ot(99);const n=dt(135);let r,i;if(ot(21),27!==qe()&&(r=115===qe()||121===qe()||87===qe()||160===qe()&&tt(Ei)||135===qe()&&tt(Ai)?Hi(!0):xe(8192,Tr)),n?ot(165):_t(165)){const e=Se((()=>wr(!0)));ot(22),i=Z(n,r,e,Oi())}else if(_t(103)){const e=Se(Tr);ot(22),i=D.createForInStatement(r,e,Oi())}else{ot(27);const e=27!==qe()&&22!==qe()?Se(Tr):void 0;ot(27);const t=22!==qe()?Se(Tr):void 0;ot(22),i=Y(r,e,t,Oi())}return ue(St(i,e),t)}function hi(e){const t=Je(),n=Ue();ot(252===e?83:88);const r=ht()?void 0:Nt();return bt(),ue(St(252===e?D.createBreakStatement(r):D.createContinueStatement(r),t),n)}function yi(){return 84===qe()?function(){const e=Je(),t=Ue();ot(84);const n=Se(Tr);ot(59);const r=Qt(3,Oi);return ue(St(D.createCaseClause(n,r),e),t)}():function(){const e=Je();ot(90),ot(59);const t=Qt(3,Oi);return St(D.createDefaultClause(t),e)}()}function vi(){const e=Je(),t=Ue();ot(109),ot(21);const n=Se(Tr);ot(22);const r=function(){const e=Je();ot(19);const t=Qt(2,yi);return ot(20),St(D.createCaseBlock(t),e)}();
6return ue(St(D.createSwitchStatement(n,r),e),t)}function bi(){const e=Je(),t=Ue();ot(113);const n=fi(!1),r=85===qe()?function(){const e=Je();let t;ot(85),_t(21)?(t=Wi(),ot(22)):t=void 0;const n=fi(!1);return St(D.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==qe()||(ot(98,Pa.catch_or_finally_expected),i=fi(!1)),ue(St(D.createTryStatement(n,r,i),e),t)}function xi(){return Ve(),Fa(qe())&&!a.hasPrecedingLineBreak()}function Si(){return Ve(),86===qe()&&!a.hasPrecedingLineBreak()}function ki(){return Ve(),100===qe()&&!a.hasPrecedingLineBreak()}function Ti(){return Ve(),(Fa(qe())||9===qe()||10===qe()||11===qe())&&!a.hasPrecedingLineBreak()}function Ci(){for(;;)switch(qe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Fi();case 135:return Ii();case 120:case 156:return Ve(),!a.hasPrecedingLineBreak()&&it();case 144:case 145:return Ve(),!a.hasPrecedingLineBreak()&&(it()||11===qe());case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=qe();if(Ve(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===qe())return!0;continue;case 162:return Ve(),19===qe()||80===qe()||95===qe();case 102:return Ve(),11===qe()||42===qe()||19===qe()||Fa(qe());case 95:let t=Ve();if(156===t&&(t=tt(Ve)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ve();continue;default:return!1}}function wi(){return tt(Ci)}function Di(){switch(qe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return wi()||tt(Vn);case 87:case 95:return wi();case 129:case 125:case 123:case 124:case 126:case 148:return wi()||!tt(xi);default:return kr()}}function Ni(){return Ve(),rt()||19===qe()||23===qe()}function Ei(){return Pi(!0)}function Pi(e){return Ve(),(!e||165!==qe())&&(rt()||19===qe())&&!a.hasPrecedingLineBreak()}function Fi(){return tt(Pi)}function Ai(e){return 160===Ve()&&Pi(e)}function Ii(){return tt(Ai)}function Oi(){switch(qe()){case 27:return function(){const e=Je(),t=Ue();return ot(27),ue(St(D.createEmptyStatement(),e),t)}();case 19:return fi(!1);case 115:return Gi(Je(),Ue(),void 0);case 121:if(tt(Ni))return Gi(Je(),Ue(),void 0);break;case 135:if(Ii())return Gi(Je(),Ue(),void 0);break;case 160:if(Fi())return Gi(Je(),Ue(),void 0);break;case 100:return Xi(Je(),Ue(),void 0);case 86:return uo(Je(),Ue(),void 0);case 101:return function(){const e=Je(),t=Ue();ot(101);const n=a.getTokenStart(),r=ot(21),i=Se(Tr);ut(21,22,r,n);const o=Oi(),s=_t(93)?Oi():void 0;return ue(St(X(i,o,s),e),t)}();case 92:return function(){const e=Je(),t=Ue();ot(92);const n=Oi();ot(117);const r=a.getTokenStart(),i=ot(21),o=Se(Tr);return ut(21,22,i,r),_t(27),ue(St(D.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Je(),t=Ue();ot(117);const n=a.getTokenStart(),r=ot(21),i=Se(Tr);ut(21,22,r,n);const o=Oi();return ue(St(Q(i,o),e),t)}();case 99:return gi();case 88:return hi(251);case 83:return hi(252);case 107:return function(){const e=Je(),t=Ue();ot(107);const n=ht()?void 0:Se(Tr);
6return bt(),ue(St(D.createReturnStatement(n),e),t)}();case 118:return function(){const e=Je(),t=Ue();ot(118);const n=a.getTokenStart(),r=ot(21),i=Se(Tr);ut(21,22,r,n);const o=xe(67108864,Oi);return ue(St(D.createWithStatement(i,o),e),t)}();case 109:return vi();case 111:return function(){const e=Je(),t=Ue();ot(111);let n=a.hasPrecedingLineBreak()?void 0:Se(Tr);return void 0===n&&(k++,n=St(I(""),Je())),yt()||st(n),ue(St(D.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return bi();case 89:return function(){const e=Je(),t=Ue();return ot(89),bt(),ue(St(D.createDebuggerStatement(),e),t)}();case 60:return Ri();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(wi())return Ri()}return function(){const e=Je();let t,n=Ue();const r=21===qe(),i=Se(Tr);return nN(i)&&_t(59)?t=D.createLabeledStatement(i,Oi()):(yt()||st(i),t=G(i),r&&(n=!1)),ue(St(t,e),n)}()}function Li(e){return 138===e.kind}function Ri(){const e=Je(),t=Ue(),n=so(!0);if(te(n,Li)){const r=function(e){return xe(33554432,(()=>{const t=en(T,e);if(t)return tn(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return xe(33554432,(()=>Mi(e,t,n)))}return Mi(e,t,n)}function Mi(e,t,n){switch(qe()){case 115:case 121:case 87:case 160:case 135:return Gi(e,t,n);case 100:return Xi(e,t,n);case 86:return uo(e,t,n);case 120:return function(e,t,n){ot(120);const r=Nt(),i=Nn(),o=po(),a=Wn();return ue(St(D.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){ot(156),a.hasPrecedingLineBreak()&&Le(Pa.Line_break_not_permitted_here);const r=Nt(),i=Nn();ot(64);const o=141===qe()&&nt(er)||br();return bt(),ue(St(D.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){ot(94);const r=Nt();let i;return ot(19)?(i=be(81920,(()=>rn(6,yo))),ot(20)):i=an(),ue(St(D.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===qe())return xo(e,t,n);if(_t(145))r|=32;else if(ot(144),11===qe())return xo(e,t,n);return bo(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){ot(102);const r=a.getTokenFullStart();let i;it()&&(i=Nt());let o=!1;if("type"===(null==i?void 0:i.escapedText)&&(161!==qe()||it()&&tt(Bi))&&(it()||42===qe()||19===qe())&&(o=!0,i=it()?Nt():void 0),i&&28!==qe()&&161!==qe())return function(e,t,n,r,i){ot(64);const o=149===qe()&&tt(So)?function(){const e=Je();ot(149),ot(21);const t=Eo();return ot(22),St(D.createExternalModuleReference(t),e)}():cn(!1);bt();const a=D.createImportEqualsDeclaration(n,i,r,o),s=ue(St(a,e),t);return s}(e,t,n,i,o);const s=Co(i,r,o),c=Eo(),l=wo();return bt(),ue(St(D.createImportDeclaration(n,s,c,l),e),t)}(e,t,n);case 95:switch(Ve(),qe()){case 90:case 64:return function(e,t,n){const r=Ie();let i;ve(!0),_t(64)?i=!0:ot(90);const o=wr(!0);return bt(),ve(r),ue(St(D.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){ot(130),ot(145);const r=Nt();bt();const i=D.createNamespaceExportDeclaration(r);return i.modifiers=n,ue(St(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Ie();let i,o,s;ve(!0);const c=_t(156),l=Je();_t(42)?(_t(130)&&(i=function(e){return St(D.createNamespaceExport(Et()),e)}(l)),ot(161),o=Eo()):(i=Po(279),(161===qe()||11===qe()&&!a.hasPrecedingLineBreak())&&(ot(161),o=Eo()));const u=qe();return!o||118!==u&&132!==u||a.hasPrecedingLineBreak()||(s=No(u)),bt(),ve(r),ue(St(D.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}default:if(n){const t=Tt(282,!0,Pa.Declaration_expected);return qT(t,e),t.modifiers=n,t}return}}function ji(){return 11===Ve()}function Bi(){return Ve(),161===qe()||64===qe()}function Ji(e,t){if(19!==qe()){if(4&e)return void Rn();if(ht())return void bt()}return mi(e,t)}function Ui(){const e=Je();if(28===qe())return St(D.createOmittedExpression(),e);const t=dt(26),n=$i(),r=Cr();return St(D.createBindingElement(t,void 0,n,r),e)}function qi(){const e=Je(),t=dt(26),n=rt();let r,i=It();n&&59!==qe()?(r=i,i=void 0):(ot(59),r=$i());const o=Cr();return St(D.createBindingElement(t,i,r,o),e)}function zi(){return 19===qe()||23===qe()||81===qe()||rt()}function $i(e){return 23===qe()?function(){const e=Je();ot(23);const t=Se((()=>rn(10,Ui)));return ot(24),St(D.createArrayBindingPattern(t),e)}():19===qe()?function(){const e=Je();ot(19);const t=Se((()=>rn(9,qi)));return ot(20),St(D.createObjectBindingPattern(t),e)}():Dt(e)}function Vi(){return Wi(!0)}function Wi(e){const t=Je(),n=Ue(),r=$i(Pa.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===qe()&&!a.hasPrecedingLineBreak()&&(i=gt());const o=xr(),s=Ir(qe())?void 0:Cr();return ue(St(ee(r,i,o,s),t),n)}function Hi(e){const t=Je();let n,r=0;switch(qe()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:En.assert(Ii()),r|=6,Ve();break;default:En.fail()}if(Ve(),165===qe()&&tt(Ki))n=an();else{const t=Ee();me(e),n=rn(8,e?Wi:Vi),me(t)}return St(ne(n,r),t)}function Ki(){return $t()&&22===Ve()}function Gi(e,t,n){const r=Hi(!1);return bt(),ue(St(K(n,r),e),t)}function Xi(e,t,n){const r=Ie(),i=mb(n);ot(100);const o=dt(42),a=2048&i?pi():Dt(),s=o?1:0,c=1024&i?2:0,l=Nn();32&i&&ve(!0);const u=Ln(s|c),_=In(59,!1),d=Ji(s|c,Pa.or_expected);return ve(r),ue(St(D.createFunctionDeclaration(n,o,a,l,u,_,d),e),t)}function Qi(e,t,n){return nt((()=>
6{if(137===qe()?ot(137):11===qe()&&21===tt(Ve)?nt((()=>{const e=hn();return"constructor"===e.text?e:void 0})):void 0){const r=Nn(),i=Ln(0),o=In(59,!1),a=Ji(0,Pa.or_expected),s=D.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ue(St(s,e),t)}}))}function Yi(e,t,n,r,i,o,a,s){const c=r?1:0,l=te(n,aN)?2:0,u=Nn(),_=Ln(c|l),d=In(59,!1),p=Ji(c|l,s),f=D.createMethodDeclaration(n,r,i,o,u,_,d,p);return f.exclamationToken=a,ue(St(f,e),t)}function Zi(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:dt(54),s=xr(),c=be(90112,Cr);return function(e,t,n){if(60!==qe()||a.hasPrecedingLineBreak())return 21===qe()?(Le(Pa.Cannot_start_a_function_call_in_a_type_annotation),void Ve()):void(!t||ht()?yt()||(n?Le(Pa._0_expected,Ga(27)):st(e)):n?Le(Pa._0_expected,Ga(27)):Le(Pa.Expected_for_property_initializer));Le(Pa.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c),ue(St(D.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function eo(e,t,n){const r=dt(42),i=It(),o=dt(58);return r||21===qe()||30===qe()?Yi(e,t,n,r,i,o,void 0,Pa.or_expected):Zi(e,t,n,i,o)}function to(e,t,n,r,i){const o=It(),a=Nn(),s=Ln(0),c=In(59,!1),l=Ji(i),u=177===r?D.createGetAccessorDeclaration(n,o,s,c,l):D.createSetAccessorDeclaration(n,o,s,l);return u.typeParameters=a,EN(u)&&(u.type=c),ue(St(u,e),t)}function no(){let e;if(60===qe())return!0;for(;du(qe());){if(e=qe(),fu(e))return!0;Ve()}if(42===qe())return!0;if(Ft()&&(e=qe(),Ve()),23===qe())return!0;if(void 0!==e){if(!Jh(e)||153===e||139===e)return!0;switch(qe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ht()}}return!1}function ro(e,t,n){mt(126);const r=function(){const e=Ne(),t=Ie();ge(!1),ve(!0);const n=fi(!1);return ge(e),ve(t),n}(),i=ue(St(D.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}function io(){if(Ie()&&135===qe()){const e=Je(),t=Nt(Pa.Expression_expected);return Ve(),ri(e,ei(e,t,!0))}return qr()}function oo(){const e=Je();if(!_t(60))return;const t=xe(32768,io);return St(D.createDecorator(t),e)}function ao(e,t,n){const r=Je(),i=qe();if(87===qe()&&t){if(!nt(Rt))return}else{if(n&&126===qe()&&tt(ko))return;if(e&&126===qe())return;if(!du(qe())||!nt(Mt))return}return St(L(i),r)}function so(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===qe())for(;o=oo();)i=fe(i,o);for(;a=ao(s,t,n);)126===a.kind&&(s=!0),i=fe(i,a),c=!0;if(c&&e&&60===qe())for(;o=oo();)i=fe(i,o),l=!0;if(l)for(;a=ao(s,t,n);)126===a.kind&&(s=!0),i=fe(i,a);return i&&xt(i,r)}function co(){let e;if(134===qe()){const t=Je();Ve(),e=xt([St(L(134),t)],t)}return e}function lo(){const e=Je(),t=Ue();if(27===qe())return Ve(),ue(St(D.createSemicolonClassElement(),e),t);const n=so(!0,!0,!0);if(126===qe()&&tt(ko))return ro(e,t,n);if(Lt(139))return to(e,t,n,177,0);if(Lt(153))return to(e,t,n,178,0);if(137===qe()||11===qe()){const r=Qi(e,t,n);if(r)return r}if(jn())return Jn(e,t,n);if(Fa(qe())||11===qe()||9===qe()||42===qe()||23===qe()){if(te(n,Li)){for(const e of n)e.flags|=33554432;return xe(33554432,(()=>eo(e,t,n)))}return eo(e,t,n)}if(n){const r=Tt(80,!0,Pa.Declaration_expected);return Zi(e,t,n,r,void 0)}return En.fail("Should not have attempted to parse class member declaration.")}function uo(e,t,n){return _o(e,t,n,263)}function _o(e,t,n,r){const i=Ie();ot(86);const o=!rt()||119===qe()&&tt(Vt)?void 0:wt(rt()),a=Nn();te(n,iN)&&ve(!0);const s=po();let c;return ot(19)?(c=Qt(5,lo),ot(20)):c=an(),ve(i),ue(St(263===r?D.createClassDeclaration(n,o,a,s,c):D.createClassExpression(n,o,a,s,c),e),t)}function po(){if(ho())return Qt(22,fo)}function fo(){const e=Je(),t=qe();En.assert(96===t||119===t),Ve();const n=rn(7,mo);return St(D.createHeritageClause(t,n),e)}function mo(){const e=Je(),t=qr();if(233===t.kind)return t;const n=go();return St(D.createExpressionWithTypeArguments(t,n),e)}function go(){return 30===qe()?sn(20,br,30,32):void 0}function ho(){return 96===qe()||119===qe()}function yo(){const e=Je(),t=Ue(),n=It(),r=Se(Cr);return ue(St(D.createEnumMember(n,r),e),t)}function vo(){const e=Je();let t;return ot(19)?(t=Qt(1,Oi),ot(20)):t=an(),St(D.createModuleBlock(t),e)}function bo(e,t,n,r){const i=32&r,o=8&r?Et():Nt(),a=_t(25)?bo(Je(),!1,void 0,8|i):vo();return ue(St(D.createModuleDeclaration(n,o,a,r),e),t)}
6function xo(e,t,n){let r,i,o=0;return 162===qe()?(r=Nt(),o|=2048):(r=hn(),r.text=Ct(r.text)),19===qe()?i=vo():bt(),ue(St(D.createModuleDeclaration(n,r,i,o),e),t)}function So(){return 21===Ve()}function ko(){return 19===Ve()}function To(){return 44===Ve()}function Co(e,t,n,r=!1){let i;return(e||42===qe()||19===qe())&&(i=function(e,t,n,r){let i;return e&&!_t(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===qe()?function(){const e=Je();ot(42),ot(130);const t=Nt();return St(D.createNamespaceImport(t),e)}():Po(275),r&&a.setSkipJsDocLeadingAsterisks(!1)),St(D.createImportClause(n,e,i),t)}(e,t,n,r),ot(161)),i}function wo(){const e=qe();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return No(e)}function Do(){const e=Je(),t=Fa(qe())?Et():vn(11);ot(59);const n=wr(!0);return St(D.createImportAttribute(t,n),e)}function No(e,t){const n=Je();t||ot(e);const r=a.getTokenStart();if(ot(19)){const t=a.hasPrecedingLineBreak(),i=rn(24,Do,!0);if(!ot(20)){const e=Oe(h);e&&e.code===Pa._0_expected.code&&DT(e,mS(_,p,r,1,Pa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return St(D.createImportAttributes(i,t,e),n)}{const t=xt([],Je(),void 0,!1);return St(D.createImportAttributes(t,!1,e),n)}}function Eo(){if(11===qe()){const e=hn();return e.text=Ct(e.text),e}return Tr()}function Po(e){const t=Je();return St(275===e?D.createNamedImports(sn(23,Ao,19,20)):D.createNamedExports(sn(23,Fo,19,20)),t)}function Fo(){const e=Ue();return ue(Io(281),e)}function Ao(){return Io(276)}function Io(e){const t=Je();let n,r=Jh(qe())&&!it(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=Et();if("type"===l.escapedText)if(130===qe()){const e=Et();if(130===qe()){const t=Et();Fa(qe())?(s=!0,n=e,l=u(),c=!1):(n=l,l=t,c=!1)}else Fa(qe())?(n=l,c=!1,l=u()):(s=!0,l=e)}else Fa(qe())&&(s=!0,l=u());return c&&130===qe()&&(n=l,ot(130),l=u()),276===e&&r&&Me(i,o,Pa.Identifier_expected),St(276===e?D.createImportSpecifier(s,n,l):D.createExportSpecifier(s,n,l),t);function u(){return r=Jh(qe())&&!it(),i=a.getTokenStart(),o=a.getTokenEnd(),Et()}}let Oo;var Lo;let Ro;var Mo;let jo;(Lo=Oo||(Oo={}))[Lo.SourceElements=0]="SourceElements",Lo[Lo.BlockStatements=1]="BlockStatements",Lo[Lo.SwitchClauses=2]="SwitchClauses",Lo[Lo.SwitchClauseStatements=3]="SwitchClauseStatements",Lo[Lo.TypeMembers=4]="TypeMembers",Lo[Lo.ClassMembers=5]="ClassMembers",Lo[Lo.EnumMembers=6]="EnumMembers",Lo[Lo.HeritageClauseElement=7]="HeritageClauseElement",Lo[Lo.VariableDeclarations=8]="VariableDeclarations",Lo[Lo.ObjectBindingElements=9]="ObjectBindingElements",Lo[Lo.ArrayBindingElements=10]="ArrayBindingElements",Lo[Lo.ArgumentExpressions=11]="ArgumentExpressions",Lo[Lo.ObjectLiteralMembers=12]="ObjectLiteralMembers",Lo[Lo.JsxAttributes=13]="JsxAttributes",Lo[Lo.JsxChildren=14]="JsxChildren",Lo[Lo.ArrayLiteralMembers=15]="ArrayLiteralMembers",Lo[Lo.Parameters=16]="Parameters",Lo[Lo.JSDocParameters=17]="JSDocParameters",Lo[Lo.RestProperties=18]="RestProperties",Lo[Lo.TypeParameters=19]="TypeParameters",Lo[Lo.TypeArguments=20]="TypeArguments",Lo[Lo.TupleElementTypes=21]="TupleElementTypes",Lo[Lo.HeritageClauses=22]="HeritageClauses",Lo[Lo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Lo[Lo.ImportAttributes=24]="ImportAttributes",Lo[Lo.JSDocComment=25]="JSDocComment",Lo[Lo.Count=26]="Count",(Mo=Ro||(Ro={}))[Mo.False=0]="False",Mo[Mo.True=1]="True",Mo[Mo.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?_t:ot)(19),r=xe(16777216,wn);e&&!n||lt(20);const i=D.createJSDocTypeExpression(r);return _e(i),St(i,t)}function n(){const e=Je(),t=_t(19),n=Je();let r=cn(!1);for(;81===qe();)Qe(),We(),r=St(D.createJSDocMemberName(r,Nt()),n);t&&lt(20);const i=D.createJSDocNameReference(r);return _e(i),St(i,e)}let r;var i;let o;var s;function c(e=0,r){const i=p,o=void 0===r?i.length:e+r;if(r=o-e,En.assert(e>=0),En.assert(e<=o),En.assert(o<=i.length),!FI(i,e))return;let s,c,l,u,d,f=[];const m=[],g=T;T|=1<<25;const h=a.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function _(e){t||(t=r),f.push(e),r+=e.length}for(We();X(5););X(4)&&(n=0,r=0);e:for(;;){switch(qe()){case 60:v(f),d||(d=Je()),(p=C(r))&&(s?s.push(p):(s=[p],c=p.pos),l=p.end),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,_(i)):(En.assert(0===n),n=1,r+=i.length);break;case 5:En.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,_(a.getTokenValue());break;case 19:n=2;const g=a.getTokenFullStart(),h=E(a.getTokenEnd()-1);if(h){u||y(f),m.push(St(D.createJSDocText(f.join("")),null!=u?u:e,g)),m.push(h),f=[],u=a.getTokenEnd();break}default:n=2,_(a.getTokenText())}2===n?He(!1):We()}var p;const g=f.join("").trimEnd();m.length&&g.length&&m.push(St(D.createJSDocText(g),null!=u?u:e,d)),m.length&&s&&En.assertIsDef
6ined(d,"having parsed tags implies that the end of the comment span should be set");const h=s&&xt(s,c,l);return St(D.createJSDocComment(m.length?xt(m,e,d):g.length?g:void 0,h),e,o)}));return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.length<e[e.length-1].length){e[e.length-1]=t;break}break}e.pop()}}function b(){for(;;){if(We(),1===qe())return!0;if(5!==qe()&&4!==qe())return!1}}function x(){if(5!==qe()&&4!==qe()||!tt(b))for(;5===qe()||4===qe();)We()}function S(){if((5===qe()||4===qe())&&tt(b))return"";let e=a.hasPrecedingLineBreak(),t=!1,n="";for(;e&&42===qe()||5===qe()||4===qe();)n+=a.getTokenText(),4===qe()?(e=!0,t=!0,n=""):42===qe()&&(e=!1),We();return t?n:""}function C(e){En.assert(60===qe());const r=a.getTokenStart();We();const i=Q(void 0),o=S();let c;switch(i.escapedText){case"author":c=function(e,t,n,r){const i=Je(),o=function(){const e=[];let t=!1,n=a.getToken();for(;1!==n&&4!==n;){if(30===n)t=!0;else{if(60===n&&!t)break;if(32===n&&t){e.push(a.getTokenText()),a.resetTokenState(a.getTokenEnd());break}}e.push(a.getTokenText()),n=We()}return D.createJSDocText(e.join(""))}();let s=a.getTokenFullStart();const c=w(e,s,n,r);c||(s=a.getTokenFullStart());const l="string"!=typeof c?xt(re([St(o,i,s)],c),i):o.text+c;return St(D.createJSDocAuthorTag(t,l),e)}(r,i,e,o);break;case"implements":c=function(e,t,n,r){const i=B();return St(D.createJSDocImplementsTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"augments":case"extends":c=function(e,t,n,r){const i=B();return St(D.createJSDocAugmentsTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"class":case"constructor":c=J(r,D.createJSDocClassTag,i,e,o);break;case"public":c=J(r,D.createJSDocPublicTag,i,e,o);break;case"private":c=J(r,D.createJSDocPrivateTag,i,e,o);break;case"protected":c=J(r,D.createJSDocProtectedTag,i,e,o);break;case"readonly":c=J(r,D.createJSDocReadonlyTag,i,e,o);break;case"override":c=J(r,D.createJSDocOverrideTag,i,e,o);break;case"deprecated":le=!0,c=J(r,D.createJSDocDeprecatedTag,i,e,o);break;case"this":c=U(r,i,e,o);break;case"enum":c=function(e,n,r,i){const o=t(!0);return x(),St(D.createJSDocEnumTag(n,o,w(e,Je(),r,i)),e)}(r,i,e,o);break;case"arg":case"argument":case"param":return R(r,i,2,e);case"return":case"returns":c=function(e,t,n,r){te(s,LF)&&Me(t.pos,a.getTokenStart(),Pa._0_tag_already_specified,Pc(t.escapedText));const i=A();return St(D.createJSDocReturnTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"template":c=G(r,i,e,o);break;case"type":c=M(r,i,e,o);break;case"typedef":c=function(e,t,n,r){var i;let o=A();S();const a=q();x();let s,c=N(n);if(!o||L(o.type)){let t,r,i,a=!1;for(;(t=nt((()=>V(n))))&&345!==t.kind;)if(a=!0,344===t.kind){if(r){const e=Le(Pa.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&DT(e,mS(_,p,0,0,Pa.The_tag_was_first_specified_here));break}r=t}else i=fe(i,t);if(a){const t=o&&188===o.type.kind,n=D.createJSDocTypeLiteral(i,t);o=r&&r.typeExpression&&!L(r.typeExpression.type)?r.typeExpression:St(n,e),s=o.end}}s=s||void 0!==c?Je():(null!=(i=null!=a?a:o)?i:t).end,c||(c=w(e,s,n,r));const l=D.createJSDocTypedefTag(t,o,a,c);return St(l,e,s)}(r,i,e,o);break;case"callback":c=function(e,t,n,r){const i=q();x();let o=N(n);const a=z(e,n);o||(o=w(e,Je(),n,r));const s=void 0!==o?Je():a.end;return St(D.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":c=function(e,t,n,r){x();let i=N(n);const o=z(e,n);i||(i=w(e,Je(),n,r));const a=void 0!==i?Je():o.end;return St(D.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":c=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(D.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":c=function(e,t,r,i){const o=23===qe()||tt((()=>60===We()&&Fa(We())&&F(a.getTokenValue())))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(D.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":c=function(e,t,n,r){const i=A(),o=w(e,Je(),n,r);return St(D.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":c=function(e,t,n,r){const i=a.getTokenFullStart();let o;it()&&(o=Nt());const s=Co(o,i,!0,!0),c=Eo(),l=wo(),u=void 0!==n&&void 0!==r?w(e,Je(),n,r):void 0;return St(D.createJSDocImportTag(t,s,c,l,u),e)}(r,i,e,o);break;default:c=function(e,t,n,r){return St(D.createJSDocUnknownTag(t,w(e,Je(),n,r)),e)}(r,i,e,o)}return c}function w(e,t,n,r){return r||(n+=t-e),N(n,r.slice(n))}function N(e,t){const n=Je();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let u=qe();e:for(;;){switch(u){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:En.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const u=a.getTokenFullStart(),_=E(a.getTokenEnd()-1);_?(i.push(St(D.createJSDocText(r.join("")),null!=o?o:n,u)),i.push(_),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}u=2===c||3===c?He(3===c):We()}y(r);const _=r.join("").trimEnd();return i.length?(_.length&&i.push(St(D.createJSDocText(_),null!=o?o:n)),xt(i,n,a.getTokenEnd())
6):_.length?_:void 0}function E(e){const t=nt(P);if(!t)return;We(),x();const n=function(){if(Fa(qe())){const e=Je();let t=Et();for(;_t(25);)t=St(D.createQualifiedName(t,81===qe()?Tt(80,!1):Et()),e);for(;81===qe();)Qe(),We(),t=St(D.createJSDocMemberName(t,Nt()),e);return t}}(),r=[];for(;20!==qe()&&4!==qe()&&1!==qe();)r.push(a.getTokenText()),We();return St(("link"===t?D.createJSDocLink:"linkcode"===t?D.createJSDocLinkCode:D.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function P(){if(S(),19===qe()&&60===We()&&Fa(We())){const e=a.getTokenValue();if(F(e))return e}}function F(e){return"link"===e||"linkcode"===e||"linkplain"===e}function A(){return S(),19===qe()?t():void 0}function O(){const e=X(23);e&&x();const t=X(62),n=function(){let e=Q();for(_t(23)&&ot(24);_t(25);){const t=Q();_t(23)&&ot(24),e=ln(e,t)}return e}();var r;return t&&(ft(r=62)||(En.assert(qh(r)),Tt(r,!1,Pa._0_expected,Ga(r)))),e&&(x(),dt(64)&&Tr(),ot(24)),{name:n,isBracketed:e}}function L(e){switch(e.kind){case 151:return!0;case 188:return L(e.elementType);default:return ON(e)&&nN(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function R(e,t,n,r){let i=A(),o=!i;S();const{name:a,isBracketed:s}=O(),c=S();o&&!tt(P)&&(i=A());const l=w(e,Je(),r,c),u=function(e,t,n,r){if(e&&L(e.type)){const i=Je();let o,a;for(;o=nt((()=>W(n,r,t)));)341===o.kind||348===o.kind?a=fe(a,o):345===o.kind&&je(o.tagName,Pa.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=St(D.createJSDocTypeLiteral(a,188===e.type.kind),i);return St(D.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return u&&(i=u,o=!0),St(1===n?D.createJSDocPropertyTag(t,a,s,i,o,l):D.createJSDocParameterTag(t,a,s,i,o,l),e)}function M(e,n,r,i){te(s,MF)&&Me(n.pos,a.getTokenStart(),Pa._0_tag_already_specified,Pc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(D.createJSDocTypeTag(n,o,c),e)}function B(){const e=_t(19),t=Je(),n=function(){const e=Je();let t=Q();for(;_t(25);){const n=Q();t=St(j(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=go();a.setSkipJsDocLeadingAsterisks(!1);const i=St(D.createExpressionWithTypeArguments(n,r),t);return e&&ot(20),i}function J(e,t,n,r,i){return St(t(n,w(e,Je(),r,i)),e)}function U(e,n,r,i){const o=t(!0);return x(),St(D.createJSDocThisTag(n,o,w(e,Je(),r,i)),e)}function q(e){const t=a.getTokenStart();if(!Fa(qe()))return;const n=Q();if(_t(25)){const r=q(!0);return St(D.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function z(e,t){const n=function(e){const t=Je();let n,r;for(;n=nt((()=>W(4,e)));){if(345===n.kind){je(n.tagName,Pa.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=fe(r,n)}return xt(r||[],t)}(t),r=nt((()=>{if(X(60)){const e=C(t);if(e&&342===e.kind)return e}}));return St(D.createJSDocSignature(void 0,n,r),e)}function $(e,t){for(;!nN(e)||!nN(t);){if(nN(e)||nN(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function V(e){return W(1,e)}function W(e,t,n){let r=!0,i=!1;for(;;)switch(We()){case 60:if(r){const r=H(e,t);return!(r&&(341===r.kind||348===r.kind)&&n&&(nN(r.name)||!$(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function H(e,t){En.assert(60===qe());const n=a.getTokenFullStart();We();const r=Q(),i=S();let o;switch(r.escapedText){case"type":return 1===e&&M(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return G(n,r,t,i);case"this":return U(n,r,t,i);default:return!1}return!!(e&o)&&R(n,r,e,t)}function K(){const e=Je(),t=X(23);t&&x();const n=so(!1,!0),r=Q(Pa.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),ot(64),i=xe(16777216,wn),ot(24)),!Ud(r))return St(D.createTypeParameterDeclaration(n,r,void 0,i),e)}function G(e,n,r,i){const o=19===qe()?t():void 0,a=function(){const e=Je(),t=[];do{x();const e=K();void 0!==e&&t.push(e),S()}while(X(28));return xt(t,e)}();return St(D.createJSDocTemplateTag(n,o,a,w(e,Je(),r,i)),e)}function X(e){return qe()===e&&(We(),!0)}function Q(e){if(!Fa(qe()))return Tt(80,!e,e||Pa.Identifier_expected);k++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=qe(),i=Ct(a.getTokenValue()),o=St(I(i,r),t,n);return We(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){se("file.js",e,99,void 0,1,0),a.setText(e,n,r),b=a.scan();const i=t(),o=de("file.js",99,1,!1,[],L(1),0,vt),s=yS(h,o);return y&&(o.jsDocDiagnostics=yS(y,o)),ce(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){se("",e,99,void 0,1,0);const r=xe(16777216,(()=>c(t,n))),i=yS(h,{languageVariant:0,text:e});return ce(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=b,i=h.length,o=oe,a=xe(16777216,(()=>c(t,n)));return HT(a,e),524288&w&&(y||(y=[]),he(y,h,i)),b=r,h.length=i,oe=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(jo=e.JSDocParser||(e.JSDocParser={}))})(LI||(LI={}));var uO,_O=new WeakSet,dO=new WeakSet;function pO(e){dO.add(e)}function fO(e){return void 0!==mO(e)}function mO(e){const t=Yo(e,Qk,!1);if(t)return t;if(zo(e,".ts")){const t=Xo(e).lastIndexOf(".d.");if(t>=0)return e.substring(t)}}function gO(e,t){const n=[];for(const r of Ps(t,0)||c)SO(n,r,t.substring(r.pos,r.end));e.pragmas=new Map;for(const r of n)if(e.pragmas.has(r.name)){const t=e.pragmas.get(r.name);t instanceof Array?t.push(r.args):e.pragmas.set(r.name,[t,r.args])}else e.pragmas.set(r.name,r.args)}function hO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;d(ft(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:u}=n.arguments,_="true"===u||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,Pa.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push(m(m({pos:a.pos,end:a.end,fileName:a.value},e?{resolutionMode:e}:{}),_?{preserve:_}:{}))}else s?o.push(m({pos:s.pos,end:s.end,fileName:s.value},_?{preserve:_}:{})):c?r.push(m({pos:c.pos,end:c.end,fileName:c.value},_?{preserve:_}:{})):t(n.range.pos,n.range.end-n.range.pos,Pa.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=j(ft(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,Pa.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":d(ft(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:En.fail("Unhandled pragma kind")}}))}(e=>{function t(e,t,r,o,a,s){return void(t?l(e):c(e));function c(e){let t="";if(s&&n(e)&&(t=o.substring(e.pos,e.end)),QF(e),$T(e,e.pos+r,e.end+r),s&&n(e)&&En.assert(t===a.substring(e.pos,e.end)),ZI(e,c,l),V_(e))for(const n of e.jsDoc)c(n);i(e,s)}function l(e){$T(e,e.pos+r,e.end+r);for(const t of e)c(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){En.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),En.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),En.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(En.assert(o<=a),e.parent){const t=e.parent;En.assertGreaterThanOrEqual(o,t.pos),En.assertLessThanOrEqual(a,t.end)}$T(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{En.assert(e.pos>=t),t=e.end};if(V_(e))for(const r of e.jsDoc)n(r);
6ZI(e,n),En.assert(t<=e.end)}}function o(e,t){let n,r=e;if(ZI(e,(function e(i){if(!Ud(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),t<i.end?(ZI(i,e),!0):(En.assert(i.end<=t),void(n=i))):(En.assert(i.pos>t),!0)})),n){const e=function(e){for(;;){const t=zx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(En.assert(i.length-n.span.length+n.newLength===t.length),r||En.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);En.assert(e===r);const o=i.substring(Ks(n.span),i.length),a=t.substring(Ks(cc(n)),t.length);En.assert(o===a)}}function s(e){let t=e.statements,n=0;En.assert(n<t.length);let r=t[n],i=-1;return{currentNode:o=>(o!==i&&(r&&r.end===o&&n<t.length-1&&(n++,r=t[n]),r&&r.pos===o||function(i){return t=void 0,n=-1,r=void 0,void ZI(e,o,a);function o(e){return i>=e.pos&&i<e.end&&(ZI(e,o,a),!0)}function a(e){if(i>=e.pos&&i<e.end)for(let s=0;s<e.length;s++){const c=e[s];if(c){if(c.pos===i)return t=e,n=s,r=c,!0;if(c.pos<i&&i<c.end)return ZI(c,o,a),!0}}return!1}}(o)),i=o,En.assert(!r||r.pos===o),r)}}let c;var l;e.updateSourceFile=function(e,n,c,l){if(a(e,n,c,l=l||En.shouldAssert(2)),lc(c))return e;if(0===e.statements.length)return LI.parseSourceFile(e.fileName,n,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);!function(e){_O.has(e)&&En.fail("Source file has already been incrementally parsed"),_O.add(e)}(e),LI.fixupParentReferences(e);const u=e.text,_=s(e),d=function(e,t){const n=1;let r=t.span.start;for(let s=0;r>0&&s<=n;s++){const t=o(e,r);En.assert(t.pos<=r);const n=t.pos;r=Math.max(0,n-1)}const i=sc(r,Ks(t.span)),a=t.newLength+(t.span.start-r);return uc(i,a)}(e,c);a(e,n,d,l),En.assert(d.span.start<=c.span.start),En.assert(Ks(d.span)===Ks(c.span)),En.assert(Ks(cc(d))===Ks(cc(c)));const p=cc(d).length-d.span.length;!function(e,n,o,a,s,c,l,u){return void _(e);function _(e){if(En.assert(e.pos<=e.end),e.pos>o)return void t(e,!1,s,c,l,u);const p=e.end;if(p>=n){if(pO(e),QF(e),r(e,n,o,a,s),ZI(e,_,d),V_(e))for(const t of e.jsDoc)_(t);i(e,u)}else En.assert(p<n)}function d(e){if(En.assert(e.pos<=e.end),e.pos>o)return void t(e,!0,s,c,l,u);const i=e.end;if(i>=n){pO(e),r(e,n,o,a,s);for(const t of e)_(t)}else En.assert(i<n)}}(e,d.span.start,Ks(d.span),Ks(cc(d)),p,u,n,l);const f=LI.parseSourceFile(e.fileName,n,e.languageVersion,_,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);
6return f.commentDirectives=function(e,t,n,r,i,o,a,s){if(!e)return t;let c,l=!1;for(const _ of e){const{range:e,type:t}=_;if(e.end<n)c=fe(c,_);else if(e.pos>r){u();const n={range:{pos:e.pos+i,end:e.end+i},type:t};c=fe(c,n),s&&En.assert(o.substring(e.pos,e.end)===a.substring(n.range.pos,n.range.end))}}return u(),c;function u(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Ks(d.span),p,u,n,l),f.impliedNodeFormat=e.impliedNodeFormat,f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(uO||(uO={}));var yO=new Map;function vO(e){if(yO.has(e))return yO.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return yO.set(e,t),t}var bO=/^\/\/\/\s*<(\S+)\s.*?\/>/im,xO=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im;function SO(e,t,n){const r=2===t.kind&&bO.exec(n);if(r){const i=r[1].toLowerCase(),o=eo[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=vO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&xO.exec(n);if(i)return kO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+.*)?$/gim;let i;for(;i=r.exec(n);)kO(e,t,4,i)}}function kO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=eo[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let i=0;i<e.args.length;i++){const t=e.args[i];if(!n[i]&&!t.optional)return"fail";if(t.captureSpan)return En.fail("Capture spans not yet implemented for non-xml pragmas");r[t.name]=n[i]}return r}(o,r[2]);"fail"!==a&&e.push({name:i,args:{arguments:a,range:t}})}function TO(e,t){return e.kind===t.kind&&(80===e.kind?e.escapedText===t.escapedText:110===e.kind||(295===e.kind?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&TO(e.expression,t.expression)))}var CO,wO={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},DO=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),NO=new Map(B(DO.entries(),(([e,t])=>[""+t,e]))),EO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.str
6ing","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.esnext.regexp.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],PO=EO.map((e=>e[0])),FO=new Map(EO),AO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:Pa.Watch_and_Build_Modes,description:Pa.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:Pa.Watch_and_Build_Modes,description:Pa.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:Pa.Watch_and_Build_Modes,description:Pa.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:Pa.Watch_and_Build_Modes,description:Pa.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:$R},allowConfigDirTemplateSubstitution:!0,category:Pa.Watch_and_Build_Modes,description:Pa.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:$R},allowConfigDirTemplateSubstitution:!0,category:Pa.Watch_and_Build_Modes,description:Pa.Remove_a_list_of_files_from_the_watch_mode_s_processing}],IO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Pa.Command_line_Options,description:Pa.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:Pa.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Pa.Command_line_Options,description:Pa.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:Pa.Output_Formatting,description:Pa.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:Pa.Compiler_Diagnostics,description:Pa.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1}
6,{name:"explainFiles",type:"boolean",category:Pa.Compiler_Diagnostics,description:Pa.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:Pa.Compiler_Diagnostics,description:Pa.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:Pa.Output_Formatting,description:Pa.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:Pa.Compiler_Diagnostics,description:Pa.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:Pa.Compiler_Diagnostics,description:Pa.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:Pa.Compiler_Diagnostics,description:Pa.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:Pa.FILE_OR_DIRECTORY,category:Pa.Compiler_Diagnostics,description:Pa.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:Pa.DIRECTORY,category:Pa.Compiler_Diagnostics,description:Pa.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:Pa.Projects,description:Pa.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:Pa.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Emit,transpileOptionValue:void 0,description:Pa.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:Pa.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:Pa.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Emit,description:Pa.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Emit,defaultValueDescription:!1,description:Pa.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Watch_and_Build_Modes,description:Pa.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:Pa.Command_line_Options,isCommandLineOnly:!0,description:Pa.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:Pa.Platform_specific}],OO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:Pa.VERSION,showInSimplifiedHelpView:!0,category:Pa.Language_and_Environment,description:Pa.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},LO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Pa.KIND,showInSimplifiedHelpView:!0,category:Pa.Modules,description:Pa.Specify_what_module_code_is_generated,defaultValueDescription:void 0},RO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:Pa.C
6ommand_line_Options,description:Pa.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:Pa.Command_line_Options,description:Pa.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:Pa.Command_line_Options,description:Pa.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:Pa.Command_line_Options,paramType:Pa.FILE_OR_DIRECTORY,description:Pa.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:Pa.Command_line_Options,description:Pa.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:Pa.Command_line_Options,isCommandLineOnly:!0,description:Pa.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:Pa.Command_line_Options,isCommandLineOnly:!0,description:Pa.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},OO,LO,{name:"lib",type:"list",element:{name:"lib",type:FO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Pa.Language_and_Environment,description:Pa.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.JavaScript_Support,description:Pa.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.JavaScript_Support,description:Pa.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:DO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:Pa.KIND,showInSimplifiedHelpView:!0,category:Pa.Language_and_Environment,description:Pa.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Pa.FILE,showInSimplifiedHelpView:!0,category:Pa.Emit,description:Pa.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Pa.DIRECTORY,showInSimplifiedHelpView:!0,category:Pa.Emit,description:Pa.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Pa.LOCATION,category:Pa.Modules,description:Pa.Specify_the_root_folder_within_your_source_files,defaultValueDescription:Pa.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:Pa.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:Pa.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:Pa.FILE,category:Pa.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:Pa.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Emit,defaultValueDescription:!1,description:Pa.Disable_emitting_comments},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:Pa.C
6ompiler_Diagnostics,description:Pa.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,extraValidation:()=>[Pa.Unknown_compiler_option_0,"noCheck"]},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:Pa.Emit,description:Pa.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Backwards_Compatibility,description:Pa.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:Pa.Interop_Constraints,description:Pa.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Interop_Constraints,description:Pa.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:Pa.Interop_Constraints,description:Pa.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Type_Checking,description:Pa.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:Pa.Type_Checking,description:Pa.Ensure_use_strict_is_always_emitted,defaultValueDescription:Pa.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Enable_error_reporting_for_c
6odepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:Pa.Type_Checking,description:Pa.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:Pa.STRATEGY,category:Pa.Modules,description:Pa.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:Pa.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:Pa.Modules,description:Pa.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:Pa.Modules,description:Pa.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:Pa.Modules,description:Pa.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:Pa.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:Pa.Modules,description:Pa.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Pa.Modules,description:Pa.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Interop_Constraints,description:Pa.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:Pa.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Pa.Interop_Constraints,description:Pa.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:Pa.Interop_Constraints,description:Pa.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Modules,description:Pa.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:Pa.Modules,description:Pa.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Modules,description:Pa.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:Pa.Modules,description:Pa.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:Pa.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:Pa.Modules,description:Pa.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:Pa.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:Pa.Modules,description:Pa.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Pa.LOCATION,category:Pa.Emit,description:Pa.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Pa.LOCATION,category:Pa.Emit,description:Pa.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Language_and_Environment,description:Pa.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Language_and_Environment,description:Pa.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:Pa.Language_and_Environment,description:Pa.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:Pa.Language_and_Environment,description:Pa.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:Pa.Language_and_Environment,description:Pa.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:Pa.Modules,description:Pa.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:Pa.Modules,description:Pa.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:Pa.Backwards_Compatibility,paramType:Pa.FILE,transpileOptionValue:void 0,description:Pa.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Language_and_Environment,description:Pa.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:Pa.C
6ompleteness,description:Pa.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:Pa.Backwards_Compatibility,description:Pa.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:Pa.NEWLINE,category:Pa.Emit,description:Pa.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Output_Formatting,description:Pa.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:Pa.Language_and_Environment,affectsProgramStructure:!0,description:Pa.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:Pa.Modules,description:Pa.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:Pa.Editor_Support,description:Pa.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:Pa.Projects,description:Pa.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:Pa.Projects,description:Pa.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:Pa.Projects,description:Pa.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Backwards_Compatibility,description:Pa.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,transpileOptionValue:void 0,description:Pa.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Emit,description:Pa.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Pa.DIRECTORY,category:Pa.Emit,transpileOptionValue:void 0,description:Pa.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:Pa.Completeness,description:Pa.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Type_Checking,description:Pa.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Backwards_Compatibility,description:Pa.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Backwards_Compatibility,description:Pa.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_
6signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:Pa.Interop_Constraints,description:Pa.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:Pa.JavaScript_Support,description:Pa.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Pa.Backwards_Compatibility,description:Pa.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Language_and_Environment,description:Pa.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:Pa.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Pa.Backwards_Compatibility,description:Pa.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:Pa.Backwards_Compatibility,description:Pa.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:Pa.Specify_a_list_of_language_service_plugins_to_include,category:Pa.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:Pa.Control_what_method_is_used_to_detect_module_format_JS_files,category:Pa.Language_and_Environment,defaultValueDescription:Pa.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],MO=[...IO,...RO],jO=MO.filter((e=>!!e.affectsSemanticDiagnostics)),BO=MO.filter((e=>!!e.affectsEmit)),JO=MO.filter((e=>!!e.affectsDeclarationPath)),UO=MO.filter((e=>!!e.affectsModuleResolution)),qO=MO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),zO=MO.filter((e=>!!e.affectsProgramStructure)),$O=MO.filter((e=>$e(e,"transpileOptionValue"))),VO=MO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),WO=AO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),HO=MO.filter((function(e){return!mt(e.type)})),KO=[{name:"verbose",shortName:"v",category:Pa.Command_line_Options,description:Pa.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:Pa.Command_line_Options,description:Pa.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:Pa.Command_line_Options,description:Pa.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:Pa.Command_line_Options,description:Pa.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],GO=[...IO,...KO],XO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function QO(e){const t=new Map,n=new Map;return d(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function YO(){return CO||(CO=QO(MO))}var ZO={diagnostic:Pa.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:fL},eL={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function tL(e){return nL(e,xS)}function nL(e,t){const n=Xe(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(Pa.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function rL(e,t,n){return IR(e,(null!=t?t:"").trim(),n)}function iL(e,t="",n){if(fn(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return AR(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return H(r,(t=>AR(e.element,parseInt(t),n)));case"string":return H(r,(t=>AR(e.element,t||"",n)));case"boolean":case"object":return En.fail(`List of ${e.element.type} is not yet supported.`);default:return H(r,(t=>rL(e.element,t,n)))}}function oL(e){return e.name}function aL(e,t,n,r,i){var o;if(null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return PR(i,r,t.alternateMode.diagnostic,e);const a=Zt(e,t.optionDeclarations,oL);return a?PR(i,r,t.unknownDidYouMeanDiagnostic,n||e,a.name):PR(i,r,t.unknownOptionDiagnostic,n||e)}function sL(e,t,n){const r={};let i;const o=[],a=[];
6return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;n<t.length;){const s=t[n];if(n++,64===s.charCodeAt(0))c(s.slice(1));else if(45===s.charCodeAt(0)){const o=s.slice(45===s.charCodeAt(1)?2:1),c=pL(e.getOptionsNameMap,o,!0);if(c)n=cL(t,n,e,c,r,a);else{const r=pL(PL.getOptionsNameMap,o,!0);r?n=cL(t,n,PL,r,i||(i={}),a):a.push(aL(o,e,s))}}else o.push(s)}}function c(e){const t=SL(e,n||(e=>Eo.readFile(e)));if(!mt(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i<t.length&&t.charCodeAt(i)<=32;)i++;if(i>=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i<t.length&&34!==t.charCodeAt(i);)i++;i<t.length?(r.push(t.substring(n+1,i)),i++):a.push(xS(Pa.Unterminated_quoted_string_in_response_file_0,e))}else{for(;t.charCodeAt(i)>32;)i++;r.push(t.substring(n,i))}}s(r)}}function cL(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=AR(r,!1,o),t++):("true"===n&&t++,o.push(xS(Pa.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(xS(Pa.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!fn(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(xS(n.optionTypeMismatchDiagnostic,r.name,qL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=AR(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=AR(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=AR(r,e[t]||"",o),t++;break;case"list":const a=iL(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":En.fail("listOrElement not supported here");break;default:i[r.name]=rL(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var lL,uL={alternateMode:ZO,getOptionsNameMap:YO,optionDeclarations:MO,unknownOptionDiagnostic:Pa.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:Pa.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Pa.Compiler_option_0_expects_an_argument};function _L(e,t){return sL(uL,e,t)}function dL(e,t){return pL(YO,e,t)}function pL(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function fL(){return lL||(lL=QO(GO))}var mL={alternateMode:{diagnostic:Pa.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:YO},getOptionsNameMap:fL,optionDeclarations:GO,unknownOptionDiagnostic:Pa.Unknown_build_option_0,unknownDidYouMeanDiagnostic:Pa.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Pa.Build_option_0_requires_a_value_of_type_1};function gL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=sL(mL,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(xS(Pa.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(xS(Pa.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(xS(Pa.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(xS(Pa.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function hL(e,...t){return yt(xS(e,...t).messageText,mt)}function yL(e,t,n,r,i,o){const a=SL(e,(e=>n.readFile(e)));if(!mt(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=oO(e,a),c=n.getCurrentDirectory();return s.path=la(e,c,un(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,rR(s,n,aa(Go(e),c),t,aa(e,c),void 0,o,r,i)}function vL(e,t){const n=SL(e,t);return mt(n)?bL(e,n):{config:{},error:n}}function bL(e,t){const n=oO(e,t);return{config:BL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function xL(e,t){const n=SL(e,t);return mt(n)?oO(e,n):{fileName:e,parseDiagnostics:[n]}}function SL(e,t){let n;try{n=t(e)}catch(Fhe){return xS(Pa.Cannot_read_file_0_Colon_1,e,Fhe.message)}return void 0===n?xS(Pa.Cannot_read_file_0,e):n}function kL(e){return Ze(e,oL)}var TL,CL={optionDeclarations:XO,unknownOptionDiagnostic:Pa.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:Pa.Unknown_type_acquisition_option_0_Did_you_mean_1};function wL(){return TL||(TL=QO(AO))}var DL,NL,EL,PL={getOptionsNameMap:wL,optionDeclarations:AO,unknownOptionDiagnostic:Pa.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:Pa.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Pa.Watch_option_0_requires_a_value_of_type_1};function FL(){return DL||(DL=kL(MO))}function AL(){return NL||(NL=kL(AO))}function IL(){return EL||(EL=kL(XO))}var OL,LL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:Pa.File_Management,disallowNullOrUndefined:!0},RL={name:"compilerOptions",type:"object",elementOptions:FL(),extraKeyDiagnostics:uL},ML={name:"watchOptions",type:"object",elementOptions:AL(),extraKeyDiagnostics:PL},jL={name:"typeAcquisition",type:"object",elementOptions:IL(),extraKeyDiagnostics:CL};function BL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(Qp(e,i,Pa.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Xo(e.fileName)?"jsconfig.json":"tsconfig.json")),aE(i)){const r=w(i.elements,sE);if(r)return UL(e,r,t,!0,n)}return{}}return UL(e,i,t,!0,n)}function JL(e,t){var n;return UL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function UL(e,t,n,r,i){return t?o(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t,s){switch(t.kind){case 112:return!0;case 97:return!1;case 106:return null;
6case 11:return a(t)||n.push(Qp(e,t,Pa.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 224:if(41!==t.operator||9!==t.operand.kind)break;return-Number(t.operand.text);case 210:return function(t,s){var c;const l=r?{}:void 0;for(const u of t.properties){if(303!==u.kind){n.push(Qp(e,u,Pa.Property_assignment_expected));continue}u.questionToken&&n.push(Qp(e,u.questionToken,Pa.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(u.name)||n.push(Qp(e,u.name,Pa.String_literal_with_double_quotes_expected));const t=Vp(u.name)?void 0:Hp(u.name),_=t&&Pc(t),d=_?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(_):void 0,p=o(u.initializer,d);void 0!==_&&(r&&(l[_]=p),null==i||i.onPropertySet(_,p,u,s,d))}return l}(t,s);case 209:return function(e,t){if(r)return L(e.map((e=>o(e,t))),(e=>void 0!==e));e.forEach((e=>o(e,t)))}(t.elements,s&&s.element)}s?n.push(Qp(e,t,Pa.Compiler_option_0_requires_a_value_of_type_1,s.name,qL(s))):n.push(Qp(e,t,Pa.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(t){return BD(t)&&ig(t,e)}}function qL(e){return"listOrElement"===e.type?`${qL(e.element)} or Array`:"list"===e.type?"Array":mt(e.type)?e.type:"string"}function zL(e,t){return!!e&&(oR(t)?!e.disallowNullOrUndefined:"list"===e.type?pt(t):"listOrElement"===e.type?pt(t)||zL(e.element,t):typeof t===(mt(e.type)?e.type:"string"))}function $L(e,t,n){var r,i,o;const a=un(n.useCaseSensitiveFileNames),s=j(L(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return xt;const i=Rk(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&Mk(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&Mk(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):xt}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):xt),(e=>Ca(aa(t,n.getCurrentDirectory()),aa(e,n.getCurrentDirectory()),a))),c={configFilePath:aa(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},l=GL(e.options,c),u=e.watchOptions&&XL(e.watchOptions,wL()),d=g(m({compilerOptions:g(m({},VL(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:u&&VL(u),references:j(e.projectReferences,(e=>g(m({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:_(s)?s:void 0},(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:WL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!e.compileOnSave||void 0}),p=new Set(l.keys()),f={};for(const _ in jS)!p.has(_)&&te(jS[_].dependencies,(e=>p.has(e)))&&jS[_].computeValue(e.options)!==jS[_].computeValue({})&&(f[_]=jS[_].computeValue(e.options));return Qe(d.compilerOptions,VL(GL(f,c))),d}function VL(e){return m({},Xe(e.entries()).reduce(((e,t)=>g(m({},e),{[t[0]]:t[1]})),{}))}function WL(e){if(_(e)){if(1!==_(e))return e;if(e[0]!==sR)return e}}function HL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return HL(e.element);default:return e.type}}function KL(e,t){return bd(t,((t,n)=>{if(t===e)return n}))}function GL(e,t){return XL(e,YO(),t)}function XL(e,{optionsNameMap:t},n){const r=new Map,i=n&&un(n.useCaseSensitiveFileNames);for(const o in e)if($e(e,o)){if(t.has(o)&&(t.get(o).category===Pa.Command_line_Options||t.get(o).category===Pa.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){En.assert("listOrElement"!==s.type);const e=HL(s);e?"list"===s.type?r.set(o,a.map((t=>KL(t,e)))):r.set(o,KL(a,e)):n&&s.isFilePath?r.set(o,Ca(n.configFilePath,aa(a,Go(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map((e=>Ca(n.configFilePath,aa(e,Go(n.configFilePath)),i)))):r.set(o,a)}}return r}function QL(e,t){const n=YL(e);return function(){const e=[],r=Array(2+1).join(" ");return RO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=YR(t);i!==o?e.push(`${r}${t.name}: ${i}`):$e(eL,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function YL(e){return GL(ot(e,eL))}function ZL(e,t,n){const r=YL(e);return function(){const e=new Map;e.set(Pa.Projects,[]),e.set(Pa.Language_and_Environment,[]),e.set(Pa.Modules,[]),e.set(Pa.JavaScript_Support,[]),e.set(Pa.Emit,[]),e.set(Pa.Interop_Constraints,[]),e.set(Pa.Type_Checking,[]),e.set(Pa.Completeness,[]);for(const t of MO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${fS(t)} */`});for(const n of e){let e;e=r.has(n.name)?`"${n.name}": ${JSON.stringify(r.get(n.name))}${(s+=1)===r.size?"":","}`:`// "${n.name}": ${JSON.stringify(YR(n))},`,c.push({value:e,description:`/* ${n.description&&fS(n.description)||n.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),u=[];u.push("{"),u.push(`${l}"compilerOptions": {`),u.push(`${l}${l}
6/* ${fS(Pa.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),u.push("");for(const t of c){const{value:e,description:n=""}=t;u.push(e&&`${l}${l}${e}${n&&i(a-e.length+2)+n}`)}if(t.length){u.push(`${l}},`),u.push(`${l}"files": [`);for(let e=0;e<t.length;e++)u.push(`${l}${l}${JSON.stringify(t[e])}${e===t.length-1?"":","}`);u.push(`${l}]`)}else u.push(`${l}}`);return u.push("}"),u.join(n)+n}();function i(e){return Array(e+1).join(" ")}function o({category:e,name:t,isCommandLineOnly:n}){const i=[Pa.Command_line_Options,Pa.Editor_Support,Pa.Compiler_Diagnostics,Pa.Backwards_Compatibility,Pa.Watch_and_Build_Modes,Pa.Output_Formatting];return!n&&void 0!==e&&(!i.includes(e)||r.has(t))}}function eR(e,t){const n={},r=YO().optionsNameMap;for(const i in e)$e(e,i)&&(n[i]=tR(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function tR(e,t,n){if(e&&!oR(t)){if("list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);En.assert("listOrElement"!==e.type)}return t}function nR(e,t,n,r,i,o,a,s,c){return cR(e,void 0,t,n,r,c,i,o,a,s)}function rR(e,t,n,r,i,o,a,s,c){var l,u;null==(l=pr)||l.push(pr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const _=cR(void 0,e,t,n,r,c,i,o,a,s);return null==(u=pr)||u.pop(),_}function iR(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function oR(e){return null==e}function aR(e,t){return Go(aa(e,t))}var sR="**/*";function cR(e,t,n,r,i={},o,a,s=[],c=[],l){En.assert(void 0===e&&void 0!==t||void 0!==e&&void 0===t);const u=[],_=bR(e,t,n,r,a,s,u,l),{raw:d}=_,p=uR(ot(i,_.options||{}),VO,r),f=lR(o&&_.watchOptions?ot(o,_.watchOptions):_.watchOptions||o,r);p.configFilePath=a&&ta(a);const m=sa(a?aR(a,r):r),g=function(){const e=v("references",(e=>"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||pt(e)&&0===e.length,i=$e(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=Pa.The_files_list_in_config_file_0_is_empty,r=sm(t,"files",(e=>e.initializer)),i=PR(t,r,n,e);u.push(i)}else b(Pa.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c,l,_=!1,f=h(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=L([e,t],(e=>!!e)))}void 0===n&&void 0===r&&(r=[sR],_=!0),r&&(o=zR(r,u,!0,t,"include"),c=fR(o,m)||o),f&&(s=zR(f,u,!1,t,"exclude"),l=fR(s,m)||s);const g=L(n,mt),x=fR(g,m)||g;return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:x,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,pathPatterns:void 0,isDefaultIncludeSpec:_}}();return t&&(t.configFileSpecs=g),iR(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=jR(g,e,p,n,c);return hR(t,yR(d),s)&&u.push(gR(g,a)),t}(m),projectReferences:function(e){let t;const n=v("references",(e=>"object"==typeof e),"object");if(pt(n))for(const r of n)"string"!=typeof r.path?b(Pa.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:aa(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:_.typeAcquisition||DR(),raw:d,errors:u,wildcardDirectories:VR(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return pt(e)?e:void 0}function y(e){return v(e,mt,"string")}function v(e,n,r){if($e(d,e)&&!oR(d[e])){if(pt(d[e])){const i=d[e];return t||C(i,n)||u.push(xS(Pa.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return b(Pa.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,...n){t||u.push(xS(e,...n))}}function lR(e,t){return uR(e,WO,t)}function uR(e,t,n){if(!e)return e;let r;for(const o of t)if(void 0!==e[o.name]){const t=e[o.name];switch(o.type){case"string":En.assert(o.isFilePath),dR(t)&&i(o,pR(t,n));break;case"list":En.assert(o.element.isFilePath);const e=fR(t,n);e&&i(o,e);break;case"object":En.assert("paths"===o.name);const r=mR(t,n);r&&i(o,r);break;default:En.fail("option type not supported")}}return r||e;function i(t,n){(null!=r?r:r=Qe({},e))[t.name]=n}}var _R="${configDir}";function dR(e){return mt(e)&&fn(e,_R,!0)}function pR(e,t){return aa(e.replace(_R,"./"),t)}function fR(e,t){if(!e)return e;let n;return e.forEach(((r,i)=>{dR(r)&&((null!=n?n:n=e.slice())[i]=pR(r,t))})),n}function mR(e,t){let n;return We(e).forEach((r=>{if(!pt(e[r]))return;const i=fR(e[r],t);i&&((null!=n?n:n=Qe({},e))[r]=i)})),n}function gR({includeSpecs:e,excludeSpecs:t}
6,n){return xS(Pa.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function hR(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function yR(e){return!$e(e,"files")&&!$e(e,"references")}function vR(e,t,n,r,i){const o=r.length;return hR(e,i)?r.push(gR(n,t)):R(r,(e=>!function(e){return e.code===Pa.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function bR(e,t,n,r,i,o,a,s){var c;const l=aa(i||"",r=ta(r));if(o.includes(l))return a.push(xS(Pa.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||JL(t,a)};const u=e?function(e,t,n,r,i){$e(e,"excludes")&&i.push(xS(Pa.Unknown_option_excludes_Did_you_mean_exclude));const o=wR(e.compilerOptions,n,i,r),a=NR(e.typeAcquisition,n,i,r),s=function(e,t,n){return ER(AL(),e,t,void 0,PL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!$e(e,wO.name))return!1;const r=FR(wO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);const c=e.extends||""===e.extends?xR(e.extends,t,n,r,i):void 0;return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(e,n,r,i,a):function(e,t,n,r,i){const o=CR(r);let a,s,c,l;const u=(void 0===OL&&(OL={name:void 0,type:"object",elementOptions:kL([RL,ML,jL,LL,{name:"references",type:"list",element:{name:"references",type:"object"},category:Pa.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:Pa.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:Pa.File_Management,defaultValueDescription:Pa.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:Pa.File_Management,defaultValueDescription:Pa.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},wO])}),OL),_=BL(e,i,{rootOptions:u,onPropertySet:d});return a||(a=DR(r)),l&&_&&void 0===_.compilerOptions&&i.push(Qp(e,l[0],Pa._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Hp(l[0]))),{raw:_,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c};function d(_,d,p,f,m){if(m&&m!==LL&&(d=FR(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===RL?e=o:f===ML?e=null!=s?s:s={}:f===jL?e=null!=a?a:a=DR(r):En.fail("Unknown option"),e[m.name]=d}else _&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(aL(_,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Qp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,_)));else f===u&&(m===LL?c=xR(d,t,n,r,i,p,p.initializer,e):m||("excludes"===_&&i.push(Qp(e,p.name,Pa.Unknown_option_excludes_Did_you_mean_exclude)),w(RO,(e=>e.name===_))&&(l=fe(l,p.name))))}}(t,n,r,i,a);if((null==(c=u.options)?void 0:c.paths)&&(u.options.pathsBasePath=r),u.extendedConfigPath){o=o.concat([l]);const e={options:{}};mt(u.extendedConfigPath)?_(e,u.extendedConfigPath):u.extendedConfigPath.forEach((t=>_(e,t))),e.include&&(u.raw.include=e.include),e.exclude&&(u.raw.exclude=e.exclude),e.files&&(u.raw.files=e.files),void 0===u.raw.compileOnSave&&e.compileOnSave&&(u.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Xe(e.extendedSourceFiles.keys())),u.options=Qe(e.options,u.options),u.watchOptions=u.watchOptions&&e.watchOptions?Qe(e.watchOptions,u.watchOptions):u.watchOptions||e.watchOptions}return u;function _(e,i){const c=function(e,t,n,r,i,o,a){var s;const c=n.useCaseSensitiveFileNames?t:wt(t);let l,u,_;if(o&&(l=o.get(c))?({extendedResult:u,extendedConfig:_}=l):(u=xL(t,(e=>n.readFile(e))),u.parseDiagnostics.length||(_=bR(void 0,u,n,Go(t),Xo(t),r,i,o)),o&&o.set(c,{extendedResult:u,extendedConfig:_})),e&&((null!=(s=a.extendedSourceFiles)?s:a.extendedSourceFiles=new Set).add(u.fileName),u.extendedSourceFiles))for(const d of u.extendedSourceFiles)a.extendedSourceFiles.add(d);if(!u.parseDiagnostics.length)return _;i.push(...u.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>
6{u.raw[a]||t[a]&&(e[a]=j(t[a],(e=>dR(e)||Mo(e)?e:ra(o||(o=Ta(Go(i),r,un(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Qe(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?Qe({},e.watchOptions,c.watchOptions):e.watchOptions||c.watchOptions}}}function xR(e,t,n,r,i,o,a,s){let c;const l=r?aR(r,n):n;if(mt(e))c=SR(e,t,l,i,a,s);else if(pt(e)){c=[];for(let r=0;r<e.length;r++){const u=e[r];mt(u)?c=fe(c,SR(u,t,l,i,null==a?void 0:a.elements[r],s)):FR(LL.element,e,n,i,o,null==a?void 0:a.elements[r],s)}}else FR(LL,e,n,i,o,a,s);return c}function SR(e,t,n,r,i,o){if(Mo(e=ta(e))||fn(e,"./")||fn(e,"../")){let a=aa(e,n);return t.fileExists(a)||tn(a,".json")||(a=`${a}.json`,t.fileExists(a))?a:void r.push(PR(o,i,Pa.File_0_not_found,e))}const a=KM(e,ra(n,"tsconfig.json"),t);if(a.resolvedModule)return a.resolvedModule.resolvedFileName;""===e?r.push(PR(o,i,Pa.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(PR(o,i,Pa.File_0_not_found,e))}function kR(e,t,n){const r=[];return{options:wR(e,t,r,n),errors:r}}function TR(e,t,n){const r=[];return{options:NR(e,t,r,n),errors:r}}function CR(e){return e&&"jsconfig.json"===Xo(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function wR(e,t,n,r){const i=CR(r);return ER(FL(),e,t,i,uL,n),r&&(i.configFilePath=ta(r)),i}function DR(e){return{enable:!!e&&"jsconfig.json"===Xo(e),include:[],exclude:[]}}function NR(e,t,n,r){const i=DR(r);return ER(IL(),e,t,i,CL,n),i}function ER(e,t,n,r,i,o){if(t){for(const a in t){const s=e.get(a);s?(r||(r={}))[s.name]=FR(s,t[a],n,o):o.push(aL(a,i))}return r}}function PR(e,t,n,...r){return e&&t?Qp(e,t,n,...r):xS(n,...r)}function FR(e,t,n,r,i,o,a){if(e.isCommandLineOnly)r.push(PR(a,null==i?void 0:i.name,Pa.Option_0_can_only_be_specified_on_command_line,e.name));else{if(zL(e,t)){const s=e.type;if("list"===s&&pt(t))return OR(e,t,n,r,i,o,a);if("listOrElement"===s)return pt(t)?OR(e,t,n,r,i,o,a):FR(e.element,t,n,r,i,o,a);if(!mt(e.type))return IR(e,t,r,o,a);const c=AR(e,t,r,o,a);return oR(c)?c:function(e,t,n){return e.isFilePath&&""===(n=dR(n=ta(n))?n:aa(n,t))&&(n="."),n}(e,n,c)}r.push(PR(a,o,Pa.Compiler_option_0_requires_a_value_of_type_1,e.name,qL(e)))}}function AR(e,t,n,r,i){var o;if(oR(t))return;const a=null==(o=e.extraValidation)?void 0:o.call(e,t);if(!a)return t;n.push(PR(i,r,...a))}function IR(e,t,n,r,i){if(oR(t))return;const o=t.toLowerCase(),a=e.type.get(o);if(void 0!==a)return AR(e,a,n,r,i);n.push(nL(e,((e,...t)=>PR(i,r,e,...t))))}function OR(e,t,n,r,i,o,a){return L(j(t,((t,s)=>FR(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}var LR,RR=/(^|\/)\*\*\/?$/,MR=/^[^*?]*(?=\/[^/]*[*?])/;function jR(e,t,n,r,i=c){t=sa(t);const o=un(r.useCaseSensitiveFileNames),a=new Map,s=new Map,l=new Map,{validatedFilesSpec:u,validatedIncludeSpecs:_,validatedExcludeSpecs:d}=e,p=eT(n,i),f=tT(n,p);if(u)for(const c of u){const e=aa(c,t);a.set(o(e),e)}let m;if(_&&_.length>0)for(const y of r.readDirectory(t,U(f),d,_,void 0)){if(zo(y,".json")){if(!m){const e=j(Fk(_.filter((e=>tn(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>Mk(e,r.useCaseSensitiveFileNames))):c}if(-1!==N(m,(e=>e.test(y)))){const e=o(y);a.has(e)||l.has(e)||l.set(e,y)}continue}if(KR(y,a,s,p,o))continue;GR(y,s,p,o);const e=o(y);a.has(e)||s.has(e)||s.set(e,y)}const g=Xe(a.values()),h=Xe(s.values());return g.concat(h,Xe(l.values()))}function BR(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!_(a)||!_(s))return!1;n=sa(n);const c=un(r);if(o)for(const l of o)if(c(aa(l,n))===e)return!1;return qR(e,s,r,i,n)}function JR(e){const t=fn(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(tn(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function UR(e,t,n,r){return qR(e,L(t,(e=>!JR(e))),n,r)}function qR(e,t,n,r,i){const o=Pk(t,ra(sa(r),i),"exclude"),a=o&&Mk(o,n);return!!a&&(!!a.test(e)||!qo(e)&&a.test(_a(e)))}function zR(e,t,n,r,i){return e.filter((e=>{if(!mt(e))return!1;const o=$R(e,n);return void 0!==o&&t.push(function(e,t){const n=am(r,i,t);return PR(r,n,e,t)}(...o)),void 0===o}))}function $R(e,t){return En.assert("string"==typeof e),t&&RR.test(e)?[Pa.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:JR(e)?[Pa.File_specification_cannot_c
6ontain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function VR({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=Pk(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=sa(ra(n,i));if(o&&o.test(e))continue;const c=HR(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||o<r)&&(a[void 0!==i?i:n]=r,void 0===i&&s.set(e,n),1===r&&t.push(e))}}for(const e in a)if($e(a,e))for(const i of t){const t=WR(e,r);t!==i&&ba(i,t,n,!r)&&delete a[e]}}return a}function WR(e,t){return t?e:wt(e)}function HR(e,t){const n=MR.exec(e);if(n){const r=e.indexOf("?"),i=e.indexOf("*"),o=e.lastIndexOf(Fo);return{key:WR(n[0],t),path:n[0],flags:-1!==r&&r<o||-1!==i&&i<o?1:0}}if(Ak(e.substring(e.lastIndexOf(Fo)+1))){const n=ua(e);return{key:WR(n,t),path:n,flags:1}}}function KR(e,t,n,r,i){const o=d(r,(t=>$o(e,t)?t:void 0));if(!o)return!1;for(const a of o){if(zo(e,a)&&(".ts"!==a||!zo(e,".d.ts")))return!1;const r=i(fT(e,a));if(t.has(r)||n.has(r)){if(".d.ts"===a&&(zo(e,".js")||zo(e,".jsx")))continue;return!0}}return!1}function GR(e,t,n,r){const i=d(n,(t=>$o(e,t)?t:void 0));if(i)for(let o=i.length-1;o>=0;o--){const n=i[o];if(zo(e,n))return;const a=r(fT(e,n));t.delete(a)}}function XR(e){const t={};for(const n in e)if($e(e,n)){const r=dL(n);void 0!==r&&(t[n]=QR(e[n],r))}return t}function QR(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!pt(e))return QR(e,t.element);case"list":const n=t.element;return pt(e)?H(e,(e=>QR(e,n))):"";default:return bd(t.type,((t,n)=>{if(t===e)return n}))}}function YR(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return YR(e.element);case"object":return{};default:const n=Fe(e.type.keys());return void 0!==n?n:En.fail("Expected 'option.type' to have entries.")}}function ZR(e,t,...n){e.trace(bS(t,...n))}function eM(e,t){return!!e.traceResolution&&void 0!==t.trace}function tM(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Fo.length),version:i.version,peerDependencies:gj(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function nM(e){return tM(void 0,e,void 0)}function rM(e){if(e)return En.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function iM(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function oM(e){if(e)return En.assert(yT(e.extension)),{fileName:e.path,packageId:e.packageId}}function aM(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Vs(e)){const{resolvedFileName:e,originalPath:n}=hM(t.path,a.host,a.traceEnabled);n&&(t=g(m({},t),{path:e,originalPath:n}))}return sM(t,n,r,i,o,a.resultFromCache,s,c)}function sM(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?g(m({},o),{failedLookupLocations:uM(o.failedLookupLocations,n),affectingLocations:uM(o.affectingLocations,r),resolutionDiagnostics:uM(o.resolutionDiagnostics,i)}):(o.failedLookupLocations=lM(o.failedLookupLocations,n),o.affectingLocations=lM(o.affectingLocations,r),o.resolutionDiagnostics=lM(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:cM(n),affectingLocations:cM(r),resolutionDiagnostics:cM(i),alternateResult:s}}function cM(e){return e.length?e:void 0}function lM(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function uM(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():cM(t)}function _M(e,t,n,r){if(!$e(e,t))return void(r.traceEnabled&&ZR(r.host,Pa.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&ZR(r.host,Pa.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function dM(e,t,n,r){const i=_M(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&ZR(r.host,Pa.package_json_had_a_falsy_0_field,t));const o=sa(ra(n,i));return r.traceEnabled&&ZR(r.host,Pa.package_json_has_0_field_1_that_references_2,t,i,o),o}function pM(e,t){const n=function(e,t){const n=_M(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&ZR(t.host,Pa.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const o in n)$e(n,o)&&!Jn.tryParse(o)&&ZR(t.host,Pa.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,o);const r=fM(n);if(!r)return void(t.traceEnabled&&ZR(t.host,Pa.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,o));const{version:i,paths:a}=r;if("object"==typeof a)return r;t.traceEnabled&&ZR(t.host,Pa.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof a)}function fM(e){LR||(LR=new jn(a));for(const t in e){if(!$e(e,t))continue;const n=Jn.tryParse(t);if(void 0!==n&&n.test(LR))return{version:t,paths:e[t]}}}function mM(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Go(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return Da(sa(e),(e=>{const n=ra(e,gM);(null!=t?t:t=[]).push(n)})),t}(n):void 0}var gM=ra("node_modules","@types");
6function hM(e,t,n){const r=QM(e,t,n),i=function(e,t,n){return 0===va(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function yM(e,t,n){return ra(e,tn(e,"/node_modules/@types")||tn(e,"/node_modules/@types/")?Ij(t,n):t)}function vM(e,t,n,r,i,o,a){En.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=eM(n,r);i&&(n=i.commandLine.options);const c=t?Go(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Vs(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(ZR(r,Pa.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&ZR(r,Pa.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),ZR(r,Pa.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),S(l)),l;const u=mM(n,r);s&&(void 0===t?void 0===u?ZR(r,Pa.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ZR(r,Pa.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,u):void 0===u?ZR(r,Pa.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ZR(r,Pa.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,u),i&&ZR(r,Pa.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const _=[],d=[];let p=bM(n);void 0!==a&&(p|=30);const f=US(n);99===a&&3<=f&&f<=99&&(p|=32);const m=8&p?xM(n,a):[],g=[],h={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:m,requestContainingDirectory:c,reportDiagnostic:e=>{g.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(u&&u.length)return s&&ZR(r,Pa.Resolving_with_primary_search_path_0,u.join(", ")),y(u,(t=>{const i=yM(t,e,h),o=Yb(t,r);if(!o&&s&&ZR(r,Pa.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=ij(4,i,!o,h);if(e){const t=tj(e.path);return oM(tM(t?hj(t,!1,h):void 0,e,h))}}return oM(uj(4,i,!o,h))}));s&&ZR(r,Pa.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Go(t);if(void 0!==i){let o;if(n.typeRoots&&tn(t,w$))s&&ZR(r,Pa.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&ZR(r,Pa.Looking_up_in_node_modules_folder_initial_location_0,i),Vs(e)){const{path:t}=XM(i,e);o=YM(4,t,!1,h,!0)}else{const t=Dj(4,e,i,h,void 0,void 0);o=t&&t.value}return oM(o)}s&&ZR(r,Pa.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=hM(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:ej(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:cM(_),affectingLocations:cM(d),resolutionDiagnostics:cM(g)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Vs(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&S(l),l;function S(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?ZR(r,Pa.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,Ed(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):ZR(r,Pa.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):ZR(r,Pa.Type_reference_directive_0_was_not_resolved,e)}}function bM(e){let t=0;switch(US(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function xM(e,t){const n=US(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),re(r,e.customConditions)}function SM(e,t,n,r,i){const o=pj(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return Da(t,(t=>{if("node_modules"!==Xo(t)){const n=ra(t,"node_modules");return hj(ra(n,e),!1,o)}}))}function kM(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=mM(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=sa(r),o=ra(e,i,"package.json");if(!t.fileExists(o)||null!==Xb(o,t).typings){const e=Xo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function TM(e){return!!(null==e?void 0:e.contents)}function CM(e){return!!e&&!e.contents}function wM(e){var t;if(null===e||"object"!=typeof e)return""+e;if(pt(e))return`[${null==(t=e.map((e=>wM(e))))?void 0:t.join(",")}]`;let n="{";for(const r in e)$e(e,r)&&(n+=`${r}: ${wM(e[r])}`);return n+"}"}function DM(e,t){return t.map((t=>wM(dk(e,t)))).join("|")+`|${e.pathsBasePath}`}function NM(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(null!=s||(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=DM(e,UO)),n}}function EM(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function PM(e,t){return void 0===t?e:`${t}|${e}`}function FM(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>
6e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=PM(e,n);return t.set(r,[e,n]),r}}function AM(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function IM(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function OM(e,t,n,r,i){const o=NM(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return En.assert(!Vs(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(PM(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return En.assert(!Vs(e)),EM(o,n,PM(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(la(r,e,t))},set:function(i,o){const a=la(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=la(Go(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;o<a&&n.charCodeAt(o)===i.charCodeAt(o);)o++;if(o===n.length&&(i.length===o||i[o]===Fo))return n;const s=Ko(n);if(o<s)return;const c=n.lastIndexOf(Fo,o-1);return-1!==c?n.substr(0,Math.max(c,s)):void 0}(a,s);let l=a;for(;l!==c;){const e=Go(l);if(e===l||n.has(e))break;n.set(e,o),l=e}}}}}function LM(e,t,n,r,i,o){null!=o||(o=new Map);const a=function(e,t,n,r){const i=NM(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=la(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=la(n,e,t);return EM(i,r,o,(()=>FM()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=OM(e,t,n,i,o);return null!=r||(r=function(e,t){let n;return{getPackageJsonInfo:function(r){return null==n?void 0:n.get(la(r,e,t))},setPackageJsonInfo:function(r,i){(n||(n=new Map)).set(la(r,e,t),i)},clear:function(){n=void 0},getInternalMap:function(){return n}}}(e,t)),g(m(m(m({},r),a),s),{clear:function(){c(),r.clear()},update:function(e){a.update(e),s.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o});function c(){a.clear(),s.clear()}}function RM(e,t,n,r,i){const o=LM(e,t,n,r,AM,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function MM(e,t,n,r,i){return LM(e,t,n,r,IM,i)}function jM(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function BM(e,t,n,r,i){return UM(e,t,jM(n),r,i)}function JM(e,t,n,r){const i=Go(t);return n.getFromDirectoryCache(e,r,i,void 0)}function UM(e,t,n,r,i,o,a){var s,c,l;const u=eM(n,r);o&&(n=o.commandLine.options),u&&(ZR(r,Pa.Resolving_module_0_from_1,e,t),o&&ZR(r,Pa.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const _=Go(t);let d=null==i?void 0:i.getFromDirectoryCache(e,a,_,o);if(d)u&&ZR(r,Pa.Resolution_for_module_0_was_found_in_cache_from_location_1,e,_);else{let p=n.moduleResolution;switch(void 0===p?(p=US(n),u&&ZR(r,Pa.Module_resolution_kind_is_not_specified_using_0,Ni[p])):u&&ZR(r,Pa.Explicitly_specified_module_resolution_kind_Colon_0,Ni[p]),null==(s=lr)||s.logStartResolveModule(e),p){case 3:case 99:d=function(e,t,n,r,i,o,a){return VM(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:d=HM(e,t,n,r,i,o,a?xM(n,a):void 0);break;case 1:d=Bj(e,t,n,r,i,o);break;case 100:d=WM(e,t,n,r,i,o,a?xM(n,a):void 0);break;default:return En.fail(`Unexpected moduleResolution: ${p}`)}d&&d.resolvedModule&&(null==(c=lr)||c.logInfoEvent(`Module "${e}" resolved to "${d.resolvedModule.resolvedFileName}"`)),null==(l=lr)||l.logStopResolveModule(d&&d.resolvedModule?""+d.resolvedModule.resolvedFileName:"null"),i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(_,o).set(e,a,d),Vs(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(_,d))}return u&&(d.resolvedModule?d.resolvedModule.packageId?ZR(r,Pa.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,d.resolvedModule.resolvedFileName,Ed(d.resolvedModule.packageId)):ZR(r,Pa.Module_name_0_was_successfully_resolved_to_1,e,d.resolvedModule.resolvedFileName):ZR(r,Pa.Module_name_0_was_not_resolved,e)),d}function qM(e,t,n,r,i){const o=function(e,t,n,r){var i;const{baseUrl:o,paths:a,configFile:s}=r.compilerOptions;if(a&&!Jo(t))return r.traceEnabled&&(o&&ZR(r.host,Pa.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),ZR(r.host,Pa.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),Fj(e,t,fv(r.compilerOptions,r.host),a,(null==s?void 0:s.configFileSpecs)?(i=s.configFileSpecs).pathPatterns||(i.pathPatterns=gT(a)):void 0,n,!1,r)}(e,t,r,i);return o?o.value:Vs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&ZR(i.host,Pa.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=sa(ra(n,t));let a,s;for(const c of i.compilerOptions.rootDirs){let e=sa(c);
6tn(e,Fo)||(e+=Fo);const t=fn(o,e)&&(void 0===s||s.length<e.length);i.traceEnabled&&ZR(i.host,Pa.Checking_if_0_is_the_longest_matching_prefix_for_1_2,e,o,t),t&&(s=e,a=c)}if(s){i.traceEnabled&&ZR(i.host,Pa.Longest_matching_prefix_for_0_is_1,o,s);const t=o.substr(s.length);i.traceEnabled&&ZR(i.host,Pa.Loading_0_from_the_root_dir_1_candidate_location_2,t,s,o);const c=r(e,o,!Yb(n,i.host),i);if(c)return c;i.traceEnabled&&ZR(i.host,Pa.Trying_other_entries_in_rootDirs);for(const n of i.compilerOptions.rootDirs){if(n===a)continue;const o=ra(sa(n),t);i.traceEnabled&&ZR(i.host,Pa.Loading_0_from_the_root_dir_1_candidate_location_2,t,n,o);const s=r(e,o,!Yb(Go(o),i.host),i);if(s)return s}i.traceEnabled&&ZR(i.host,Pa.Module_resolution_using_rootDirs_has_failed)}}(e,t,n,r,i):function(e,t,n,r){const{baseUrl:i}=r.compilerOptions;if(!i)return;r.traceEnabled&&ZR(r.host,Pa.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);const o=sa(ra(i,t));return r.traceEnabled&&ZR(r.host,Pa.Resolving_module_name_0_relative_to_base_url_1_2,t,i,o),n(e,o,!Yb(Go(o),r.host),r)}(e,t,r,i)}function zM(e,t,n){const{resolvedModule:r,failedLookupLocations:i}=function(e,t,n){return GM(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}(e,t,n);if(!r)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${null==i?void 0:i.join(", ")}`);return r.resolvedFileName}var $M=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))($M||{});function VM(e,t,n,r,i,o,a,s,c){const l=Go(n),u=99===s?32:0;let _=r.noDtsResolution?3:7;return KS(r)&&(_|=8),GM(e|u,t,l,r,i,o,_,!1,a,c)}function WM(e,t,n,r,i,o,a){const s=Go(t);let c=n.noDtsResolution?3:7;return KS(n)&&(c|=8),GM(bM(n),e,s,n,r,i,c,!1,o,a)}function HM(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,KS(n)&&(c|=8)):c=KS(n)?15:7,GM(a?30:0,e,Go(t),n,r,i,c,!!s,o,a)}function KM(e,t,n){return GM(30,e,Go(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function GM(e,t,n,r,i,o,a,s,l,u){var d,p,f,h,y;const v=eM(r,i),b=[],x=[],S=US(r);null!=u||(u=xM(r,100===S||2===S?void 0:32&e?99:1));const k=[],T={compilerOptions:r,host:i,traceEnabled:v,failedLookupLocations:b,affectingLocations:x,packageJsonInfoCache:o,features:e,conditions:null!=u?u:c,requestContainingDirectory:n,reportDiagnostic:e=>{k.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let w,D;if(v&&ok(S)&&ZR(i,Pa.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",T.conditions.map((e=>`'${e}'`)).join(", ")),2===S){const e=5&a,t=-6&a;w=e&&N(e,T)||t&&N(t,T)||void 0}else w=N(a,T);if(T.resolvedPackageDirectory&&!s&&!Vs(t)){const t=(null==w?void 0:w.value)&&5&a&&!vj(5,w.value.resolved.extension);if((null==(d=null==w?void 0:w.value)?void 0:d.isExternalLibraryImport)&&t&&8&e&&(null==u?void 0:u.includes("import"))){$j(T,Pa.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=N(5&a,g(m({},T),{features:-9&T.features,reportDiagnostic:vt}));(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(D=e.value.resolved.path)}else if((!(null==w?void 0:w.value)||t)&&2===S){$j(T,Pa.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e=g(m({},T.compilerOptions),{moduleResolution:100}),t=N(5&a,g(m({},T),{compilerOptions:e,features:30,conditions:xM(e),reportDiagnostic:vt}));(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(D=t.value.resolved.path)}}return aM(t,null==(h=null==w?void 0:w.value)?void 0:h.resolved,null==(y=null==w?void 0:w.value)?void 0:y.isExternalLibraryImport,b,x,k,T,o,D);function N(r,a){const s=qM(r,t,n,((e,t,n,r)=>YM(e,t,n,r,!0)),a);if(s)return zj({resolved:s,isExternalLibraryImport:ej(s.path)});if(Vs(t)){const{path:e,parts:i}=XM(n,t),o=YM(r,e,!1,a,!0);return o&&zj({resolved:o,isExternalLibraryImport:F(i,"node_modules")})}{let s;if(2&e&&fn(t,"#")&&(s=function(e,t,n,r,i,o){var a,s;if("#"===t||fn(t,"#/"))return r.traceEnabled&&ZR(r.host,Pa.Invalid_import_specifier_0_has_no_possible_resolutions,t),zj(void 0);const c=aa(ra(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=fj(c,r);if(!l)return r.traceEnabled&&ZR(r.host,Pa.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),zj(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&ZR(r.host,Pa.package_json_scope_0_has_no_imports_defined,l.packageDirectory),zj(void 0);const u=Tj(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return u||(r.traceEnabled&&ZR(r.host,Pa.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),zj(void 0))}(r,t,n,a,o,l)),!s&&4&e&&(s=function(e,t,n,r,i,o){var a,s;const c=aa(ra(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=fj(c,r);if(!l||!l.contents.packageJsonContent.exports)return;if("string"!=typeof l.contents.packageJsonContent.name)return;const u=Zo(t),d=Zo(l.contents.packageJsonContent.name);if(!C(d,((e,t)=>u[t]===e)))return;const p=u.slice(d.length),f=_(p)?`.${Fo}${p.join(Fo)}`:".";if(ZS(r.compilerOptions)&&!ej(n))return Sj(l,e,f,r,i,o);const m=5&e,g=-6&e;return Sj(l,m,f,r,i,o)||Sj(l,g,f,r,i,o)}(r,t,n,a,o,l)),!s){if(t.includes(":"))return void(v&&ZR(i,Pa.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,iM(r)));v&&ZR(i,Pa.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,iM(r)),s=Dj(r,t,n,a,o,l)}return 4&r&&(null!=s||(s=Jj(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function XM(e,t){const n=ra(e,t),r=Zo(n),i=Oe(r);return{path:"."===i||".."===i?_a(sa(n)):sa(n),parts:r}}
6function QM(e,t,n){if(!t.realpath)return e;const r=sa(t.realpath(e));return n&&ZR(t,Pa.Resolving_real_path_for_0_result_1,e,r),r}function YM(e,t,n,r,i){if(r.traceEnabled&&ZR(r.host,Pa.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,iM(e)),!Vo(t)){if(!n){const e=Go(t);Yb(e,r.host)||(r.traceEnabled&&ZR(r.host,Pa.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=ij(e,t,n,r);if(o){const e=i?tj(o.path):void 0;return tM(e?hj(e,!1,r):void 0,o,r)}}if(n||Yb(t,r.host)||(r.traceEnabled&&ZR(r.host,Pa.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return uj(e,t,n,r,i)}var ZM="/node_modules/";function ej(e){return e.includes(ZM)}function tj(e,t){const n=sa(e),r=n.lastIndexOf(ZM);if(-1===r)return;const i=r+ZM.length;let o=nj(n,i,t);return 64===n.charCodeAt(i)&&(o=nj(n,o,t)),n.slice(0,o)}function nj(e,t,n){const r=e.indexOf(Fo,t+1);return-1===r?n?e.length:t:r}function rj(e,t,n,r){return nM(ij(e,t,n,r))}function ij(e,t,n,r){const i=oj(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=sj(t,e,"",n,r);if(i)return i}}function oj(e,t,n,r){if(!Xo(t).includes("."))return;let i=_T(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&ZR(r.host,Pa.File_name_0_has_a_1_extension_stripping_it,t,o),sj(i,e,o,n,r)}function aj(e,t,n,r){return 1&e&&$o(t,Yk)||4&e&&$o(t,Qk)?void 0!==cj(t,n,r)?{path:t,ext:$b(t),resolvedUsingTsExtension:void 0}:void 0:r.isConfigLookup&&8===e&&zo(t,".json")?void 0!==cj(t,n,r)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:oj(e,t,n,r)}function sj(e,t,n,r,i){if(!r){const t=Go(e);t&&(r=!Yb(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!fO(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=cj(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function cj(e,t,n){var r,i;if(!(null==(i=n.compilerOptions.moduleSuffixes)?void 0:i.length))return lj(e,t,n);const o=null!=(r=ST(e))?r:"",a=o?pT(e,o):e;return d(n.compilerOptions.moduleSuffixes,(e=>lj(a+e+o,t,n)))}
6function lj(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&ZR(n.host,Pa.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&ZR(n.host,Pa.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function uj(e,t,n,r,i=!0){const o=i?hj(t,n,r):void 0;return tM(o,yj(e,t,n,r,o&&o.contents.packageJsonContent,o&&mj(o,r)),r)}function _j(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=bM(t),c=pj(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=xM(t),c.requestContainingDirectory=e.packageDirectory;const l=yj(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,mj(e,c));if(o=fe(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=ae([xM(t,99),xM(t,1)],_e);for(const t of r){const r=g(m({},c),{failedLookupLocations:[],conditions:t,host:n}),i=dj(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=ve(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function dj(e,t,n,r){let i;if(pt(t))for(const a of t)o(a);else if("object"==typeof t&&null!==t&&xj(t))for(const a in t)o(t[a]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&fn(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...Yk),2&e&&t.push(...Kk),4&e&&t.push(...Qk),8&e&&t.push(".json"),t}(r),void 0,[fa(IC(t,"**/*"),".*")]).forEach((e=>{i=ve(i,{path:e,ext:Yo(e),resolvedUsingTsExtension:void 0})}))}else{const o=Zo(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=aa(ra(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=aj(r,c,!1,n);if(l)return i=ve(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return d(We(t),(e=>{if("default"===e||F(n.conditions,e)||wj(n.conditions,e))return o(t[e]),!0}))}}function pj(e,t,n){return{host:t,compilerOptions:n,traceEnabled:eM(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:c,requestContainingDirectory:void 0,reportDiagnostic:vt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function fj(e,t){const n=Zo(e);for(n.pop();n.length>0;){const e=hj(ea(n),!1,t);if(e)return e;n.pop()}}function mj(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=pM(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function gj(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=_M(e.contents.packageJsonContent,"peerDepen
6dencies","object",t);if(void 0===n)return;t.traceEnabled&&ZR(t.host,Pa.package_json_has_a_peerDependencies_field);const r=QM(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+Fo;let o="";for(const a in n)if($e(n,a)){const e=hj(i+a,!1,t);if(e){const n=e.contents.packageJsonContent.version;o+=`+${a}@${n}`,t.traceEnabled&&ZR(t.host,Pa.Found_peerDependency_0_with_1_version,a,n)}else t.traceEnabled&&ZR(t.host,Pa.Failed_to_find_peerDependency_0,a)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function hj(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:u}=n,_=ra(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(_));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(_);if(void 0!==d)return TM(d)?(u&&ZR(l,Pa.File_0_exists_according_to_earlier_cached_lookups,_),null==(o=n.affectingLocations)||o.push(_),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&u&&ZR(l,Pa.File_0_does_not_exist_according_to_earlier_cached_lookups,_),void(null==(a=n.failedLookupLocations)||a.push(_)));const p=Yb(e,l);if(p&&l.fileExists(_)){const t=Xb(_,l);u&&ZR(l,Pa.Found_package_json_at_0,_);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(_,r),null==(s=n.affectingLocations)||s.push(_),r}p&&u&&ZR(l,Pa.File_0_does_not_exist,_),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(_,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(_)}function yj(e,t,n,r,i,o){let s;i&&(s=r.isConfigLookup?function(e,t,n){return dM(e,"tsconfig",t,n)}(i,t,r):4&e&&function(e,t,n){return dM(e,"typings",t,n)||dM(e,"types",t,n)}(i,t,r)||7&e&&function(e,t,n){return dM(e,"main",t,n)}(i,t,r)||void 0);const c=(e,t,n,r)=>{const o=aj(e,t,n,r);if(o)return nM(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.type)&&(r.features&=-33);const l=YM(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!Yb(Go(s),r.host):void 0,u=n||!Yb(t,r.host),_=ra(t,r.isConfigLookup?"tsconfig":"index");if(o&&(!s||ba(t,s))){const n=ka(t,s||_,!1);r.traceEnabled&&ZR(r.host,Pa.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,a,n);const i=Fj(e,n,t,o.paths,void 0,c,l||u,r);if(i)return rM(i.value)}const d=s&&rM(c(e,s,l,r));return d||(32&r.features?void 0:ij(e,_,u,r))}function vj(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function bj(e){let t=e.indexOf(Fo);return"@"===e[0]&&(t=e.indexOf(Fo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function xj(e){return C(We(e),(e=>fn(e,".")))}function Sj(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!te(We(e.contents.packageJsonContent.exports),(e=>fn(e,".")))?a=e.contents.packageJsonContent.exports:$e(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return Cj(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(xj(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&ZR(r.host,Pa.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),zj(void 0);const a=Tj(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&ZR(r.host,Pa.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),zj(void 0)}}function kj(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function Tj(e,t,n,r,i,o,a,s){const c=Cj(e,t,n,r,i,a,s);if(!tn(i,Fo)&&!i.includes("*")&&$e(o,i))return c(o[i],"",!1,i);const l=xe(L(We(o),(e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||tn(e,"/"))),kj);for(const _ of l){if(16&t.features&&u(_,i)){const e=o[_],t=_.indexOf("*");return c(e,i.substring(_.substring(0,t).length,i.length-(_.length-1-t)),!0,_)}if(tn(_,"*")&&fn(i,_.substring(0,_.length-1)))return c(o[_],i.substring(_.length-1),!0,_);if(fn(i,_))return c(o[_],i.substring(_.length),!1,_)}function u(e,t){if(tn(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&fn(t,e.substring(0,n))&&tn(t,e.substring(n+1))}}function Cj(e,t,n,r,i,o,a){return function s(c,l,u,d){if("string"==typeof c){if(!u&&l.length>0&&!tn(c,"/"))return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_has_invali
6d_type_for_target_of_specifier_1,o.packageDirectory,i),zj(void 0);if(!fn(c,"./")){if(a&&!fn(c,"../")&&!fn(c,"/")&&!Mo(c)){const i=u?c.replace(/\*/g,l):c+l;$j(t,Pa.Using_0_subpath_1_with_target_2,"imports",d,i),$j(t,Pa.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=GM(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return zj(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),zj(void 0)}const s=(Jo(c)?Zo(c).slice(1):Zo(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),zj(void 0);const _=ra(o.packageDirectory,c),m=Zo(l);if(m.includes("..")||m.includes(".")||m.includes("node_modules"))return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),zj(void 0);t.traceEnabled&&ZR(t.host,Pa.Using_0_subpath_1_with_target_2,a?"imports":"exports",d,u?c.replace(/\*/g,l):c+l);const g=p(u?_.replace(/\*/g,l):_+l),h=function(n,r,i,a){var s,c,l,u;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||ba(o.packageDirectory,p(t.compilerOptions.configFile.fileName),!Vj(t)))){const d=iv({useCaseSensitiveFileNames:()=>Vj(t)}),f=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=p(cz(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));f.push(e)}else if(t.requestContainingDirectory){const e=p(ra(t.requestContainingDirectory,"index.ts")),n=p(cz(t.compilerOptions,(()=>[e,p(i)]),(null==(u=(l=t.host).getCurrentDirectory)?void 0:u.call(l))||"",d));f.push(n);let r=_a(n);for(;r&&r.length>1;){const e=Zo(r);e.pop();const t=ea(e);f.unshift(t),r=_a(t)}}f.length>1&&t.reportDiagnostic(xS(a?Pa.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Pa.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of f){const i=_(r);for(const a of i)if(ba(a,n,!Vj(t))){const i=ra(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(zo(i,n)){const r=pv(i);for(const a of r){if(!vj(e,a))continue;const r=pa(i,a,n,!Vj(t));if(t.host.fileExists(r))return zj(tM(o,aj(e,r,!1,t),t))}}}}}return;function _(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.outDir))),o}}(g,l,ra(o.packageDirectory,"package.json"),a);return h||zj(tM(o,aj(e,g,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){$j(t,Pa.Entering_conditional_exports);for(const e of We(c))if("default"===e||t.conditions.includes(e)||wj(t.conditions,e)){$j(t,Pa.Matched_0_condition_1,a?"imports":"exports",e);const n=c[e],r=s(n,l,u,d);if(r)return $j(t,Pa.Resolved_under_condition_0,e),$j(t,Pa.Exiting_conditional_exports),r;$j(t,Pa.Failed_to_resolve_under_condition_0,e)}else $j(t,Pa.Saw_non_matching_condition_0,e);return void $j(t,Pa.Exiting_conditional_exports)}if(!_(c))return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),zj(void 0);for(const e of c){const t=s(e,l,u,d);if(t)return t}}else if(null===c)return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),zj(void 0);return t.traceEnabled&&ZR(t.host,Pa.package_json_scope_0_has_invali
6d_type_for_target_of_specifier_1,o.packageDirectory,i),zj(void 0);function p(e){var n,r;return void 0===e?e:aa(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return _a(ra(e,t))}}}function wj(e,t){if(!e.includes("types"))return!1;if(!fn(t,"types@"))return!1;const n=Jn.tryParse(t.substring(6));return!!n&&n.test(a)}function Dj(e,t,n,r,i,o){return Nj(e,t,n,r,!1,i,o)}function Nj(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){$j(r,Pa.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,iM(c));const e=u(c);if(e)return e}if(l&&!i)return $j(r,Pa.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,iM(l)),u(l);function u(e){return Da(ta(n),(n=>{if("node_modules"!==Xo(n)){const c=jj(o,t,s,n,a,r);return c||zj(Ej(e,t,n,r,i,o,a))}}))}}function Ej(e,t,n,r,i,o,a){const s=ra(n,"node_modules"),c=Yb(s,r.host);if(!c&&r.traceEnabled&&ZR(r.host,Pa.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=Pj(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=ra(s,"@types");let n=c;return c&&!Yb(e,r.host)&&(r.traceEnabled&&ZR(r.host,Pa.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),Pj(4,Ij(t,r),e,n,r,o,a)}}function Pj(e,t,n,r,i,o,s){var l,u,_;const d=sa(ra(n,t)),{packageName:p,rest:f}=bj(t),m=ra(n,p);let g,h=hj(d,!r,i);if(""!==f&&h&&(!(8&i.features)||!$e(null!=(l=null==(u=g=hj(m,!r,i))?void 0:u.contents.packageJsonContent)?l:c,"exports"))){const t=ij(e,d,!r,i);if(t)return nM(t);const n=yj(e,d,!r,i,h.contents.packageJsonContent,mj(h,i));return tM(h,n,i)}const y=(e,t,n,r)=>{let i=(f||!(32&r.features))&&ij(e,t,n,r)||yj(e,t,n,r,h&&h.contents.packageJsonContent,h&&mj(h,r));return!i&&h&&(void 0===h.contents.packageJsonContent.exports||null===h.contents.packageJsonContent.exports)&&32&r.features&&(i=ij(e,ra(t,"index.js"),n,r)),tM(h,i,r)};if(""!==f&&(h=null!=g?g:hj(m,!r,i)),h&&(i.resolvedPackageDirectory=!0),h&&h.contents.packageJsonContent.exports&&8&i.features)return null==(_=Sj(h,e,ra(".",f),i,o,s))?void 0:_.value;const v=""!==f&&h?mj(h,i):void 0;if(v){i.traceEnabled&&ZR(i.host,Pa.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,v.version,a,f);const t=r&&Yb(m,i.host),n=Fj(e,f,m,v.paths,void 0,y,!t,i);if(n)return n.value}return y(e,d,!r,i)}function Fj(e,t,n,r,i,o,a,s){i||(i=gT(r));const c=CT(i,t);if(c){const i=mt(c)?void 0:dn(c,t),l=mt(c)?c:_n(c);return s.traceEnabled&&ZR(s.host,Pa.Module_name_0_matched_pattern_1,t,l),{value:d(r[l],(t=>{const r=i?IC(t,i):t,c=sa(ra(n,r));s.traceEnabled&&ZR(s.host,Pa.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=ST(t);if(void 0!==l){const e=cj(c,a,s);if(void 0!==e)return nM({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Yb(Go(c),s.host),s)}))}}}var Aj="__";function Ij(e,t){const n=Lj(e);return t.traceEnabled&&n!==e&&ZR(t.host,Pa.Scoped_package_detected_looking_in_0,n),n}function Oj(e){return`@types/${Lj(e)}`}function Lj(e){if(fn(e,"@")){const t=e.replace(Fo,Aj);if(t!==e)return t.slice(1)}return e}function Rj(e){const t=mn(e,"@types/");return t!==e?Mj(t):e}function Mj(e){return e.includes(Aj)?"@"+e.replace(Aj,Fo):e}function jj(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&ZR(o.host,Pa.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function Bj(e,t,n,r,i,o){const a=eM(n,r),s=[],c=[],l=Go(t),u=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{u.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return aM(e,d&&d.value,(null==d?void 0:d.value)&&ej(d.value.path),s,c,u,_,i);function p(t){const n=qM(t,e,l,rj,_);
6if(n)return{value:n};if(Vs(e)){const n=sa(ra(l,e));return zj(rj(t,n,!1,_))}{const n=Da(l,(n=>{const r=jj(i,e,void 0,n,o,_);if(r)return r;const a=sa(ra(n,e));return zj(rj(t,a,!1,_))}));if(n)return n;if(5&t){let n=function(e,t,n){return Nj(4,e,t,n,!0,void 0,void 0)}(e,l,_);return 4&t&&(null!=n||(n=Jj(e,_))),n}}}}function Jj(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=yM(n,e,t),i=Yb(n,t.host);!i&&t.traceEnabled&&ZR(t.host,Pa.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=ij(4,r,!i,t);if(o){const e=tj(o.path);return zj(tM(e?hj(e,!1,t):void 0,o,t))}const a=uj(4,r,!i,t);if(a)return zj(a)}}function Uj(e,t){return!!e.allowImportingTsExtensions||t&&fO(t)}function qj(e,t,n,r,i,o){const a=eM(n,r);a&&ZR(r,Pa.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return sM(Ej(4,e,i,u,!1,void 0,void 0),!0,s,c,l,u.resultFromCache,void 0)}function zj(e){return void 0!==e?{value:e}:void 0}function $j(e,t,...n){e.traceEnabled&&ZR(e.host,t,...n)}function Vj(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var Wj=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Wj||{});function Hj(e,t){return e.body&&!e.body.parent&&(HT(e.body,e),GT(e.body,!1)),e.body?Kj(e.body,t):1}function Kj(e,t=new Map){const n=ZB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(pf(e))return 2;break;case 272:case 271:if(!Xv(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=Gj(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return ZI(e,(e=>{const r=Kj(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:En.assertNever(r)}})),n}case 267:return Hj(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function Gj(e,t){const n=e.propertyName||e.name;let r=e.parent;for(;r;){if(JE(r)||pP(r)||nF(r)){const e=r.statements;let i;for(const o of e)if(Rc(o,n)){o.parent||(HT(o,r),GT(o,!1));const e=Kj(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var Xj=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(Xj||{});function Qj(e,t,n){return En.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var Yj=eB();function Zj(e,t){var n,r;xr("beforeBind"),null==(n=lr)||n.logStartBindFile(""+e.fileName),Yj(e,t),null==(r=lr)||r.logStopBindFile(),xr("afterBind"),Sr("Bind","beforeBind","afterBind")}function eB(){var e,t,n,r,i,o,a,s,c,l,u,p,f,h,y,v,b,x,S,k,T,w,D,N,E,P,A=!1,I=0,O=Qj(1,void 0,void 0),L=Qj(1,void 0,void 0),R=function(){return cI((function(e,t){if(t){t.stackIndex++,HT(e,r);const n=N;We(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(xb(n)||vb(n)){if(pe(e)){const t=Z(),n=p,r=w;w=!1,Te(e,t,t),p=w?_e(t):n,w||(w=r)}else Te(e,v,b);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&xe(t),n}}
6),(function(e,t,n){t.skip||qe(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&xe(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;kb(t)&&!_h(e)&&(ke(e.left),64===t&&212===e.left.kind)&&Y(e.left.expression)&&(p=le(256,p,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(N=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&kE(e)&&!Nb(e))return e;qe(e)}}();return function(_,d){var m,g;e=_,n=BS(t=d),N=function(e,t){return!(!ak(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,d),P=new Set,I=0,E=sS.getSymbolConstructor(),En.attachFlowNodeDebugInfo(O),En.attachFlowNodeDebugInfo(L),e.locals||(null==(m=pr)||m.push(pr.Phase.Bind,"bindSourceFile",{path:e.path},!0),qe(e),null==(g=pr)||g.pop(),e.symbolCount=I,e.classifiableNames=P,function(){if(!c)return;const t=i,n=s,o=a,l=r,u=p;for(const s of c){const t=s.parent.parent;i=Jp(t)||e,a=Up(t)||e,p=Qj(2,void 0,void 0),r=s,qe(s.typeExpression);const n=Jc(s);if((IF(s)||!s.fullName)&&n&&Ib(n.parent)){const t=it(n.parent);if(t){nt(e.symbol,n.parent,t,!!wc(n,(e=>cE(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(Dg(n.parent)){case 1:case 2:i=_f(e)?e:void 0;break;case 4:i=n.parent.expression;break;case 3:i=n.parent.expression.name;break;case 5:i=nB(e,n.parent.expression)?e:cE(n.parent.expression)?n.parent.expression.name:n.parent.expression;break;case 0:return En.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&z(s,524288,788968),i=r}}else IF(s)||!s.fullName||80===s.fullName.kind?(r=s.parent,Le(s,524288,788968)):qe(s.fullName)}i=t,s=n,a=o,r=l,p=u}(),function(){if(void 0===u)return;const t=i,n=s,o=a,c=r,l=p;for(const s of u){const t=ih(s),n=t?Jp(t):void 0,o=t?Up(t):void 0;i=n||e,a=o||e,p=Qj(2,void 0,void 0),r=s,qe(s.importClause)}i=t,s=n,a=o,r=c,p=l}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,u=void 0,l=!1,p=void 0,f=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,k=void 0,T=!1,w=!1,A=!1,D=0};function M(t,n,...r){return Qp(Id(t)||e,t,n,...r)}function j(e,t){return I++,new E(e,t)}function B(e,t,n){e.flags|=n,t.symbol=e,e.declarations=ve(e.declarations,t),1955&n&&!e.exports&&(e.exports=_d()),6240&n&&!e.members&&(e.members=_d()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&Fg(e,t)}function J(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=Jc(e);if(t){if(yp(e)){const n=oy(t);return Tp(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(Zh(e))return Ec(e.text);if(ey(e))return Ga(e.operator)+e.operand.text;En.fail("Only computed properties with literal names have declaration names")}if(rN(t)){const n=um(e);if(!n)return;return cy(n.symbol,t.escapedText)}return HP(t)?CC(t):iy(t)?ay(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(2===hg(e))return"export=";En.fail("Unknown binary declaration kind");break;case 317:return Ug(e)?"__new":"__call";case 169:return En.assert(317===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${En.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`)),"arg"+e.parent.parameters.indexOf(e)}}function U(e){return jc(e)?zp(e.name):Pc(En.checkDefined(J(e)))}function q(t,n,r,i,o,a,s){En.assert(s||!ty(r));const c=Xv(r,2048)||FP(r)&&"default"===r.name.escapedText,l=s?"__computed":c&&n?"default":J(r);let u;if(void 0===l)u=j(0,"__missing");else if(u=t.get(l),2885600&i&&P.add(l),u){if(a&&!u.isReplaceableByMethod)return u;if(u.flags&o)if(u.isReplaceableByMethod)t.set(l,u=j(0,l));else if(!(3&i&&67108864&u.flags)){jc(r)&&HT(r.name,r);let t=2&u.flags?Pa.Cannot_redeclare_block_scoped_variable_0:Pa.Duplicate_identifier_0,n=!0;(384&u.flags||384&i)&&(t=Pa.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;_(u.declarations)&&(c||u.declarations&&u.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=Pa.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];uP(r)&&Ud(r.type)&&Xv(r,32)&&2887656&u.flags&&a.push(M(r,Pa.Did_you_mean_0,`export type { ${Pc(r.name.escapedText)} }`));const s=Jc(r)||r;d(u.declarations,((r,i)=>{const c=Jc(r)||r,l=n?M(c,t,U(r)):M(c,t);e.bindDiagnostics.push(o?DT(l,M(s,0===i?Pa.Another_export_default_is_here:Pa.and_here)):l),o&&a.push(M(c,Pa.The_first_export_default_is_here))}));const p=n?M(s,t,U(r)):M(s,t);e.bindDiagnostics.push(DT(p,...a)),u=j(0,l)}}else t.set(l,u=j(0,l)),a&&(u.isReplaceableByMethod=!0);
6return B(u,r,i),u.parent?En.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function z(e,t,n){const r=!!(32&vc(e))||function(e){if(e.parent&&dP(e)&&(e=e.parent),!qg(e))return!1;if(!IF(e)&&e.fullName)return!0;const t=Jc(e);return!!(t&&(Ib(t.parent)&&it(t.parent)||N_(t.parent)&&32&vc(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?q(i.symbol.exports,i.symbol,e,t,n):(En.assertNode(i,C_),q(i.locals,void 0,e,t,n));if(qg(e)&&En.assert(Wm(e)),!yp(e)&&(r||128&i.flags)){if(!C_(i)||!i.locals||Xv(e,2048)&&!J(e))return q(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=q(i.locals,void 0,e,r,n);return o.exportSymbol=q(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return En.assertNode(i,C_),q(i.locals,void 0,e,t,n)}function $(e){V(e,(e=>262===e.kind?qe(e):void 0)),V(e,(e=>262!==e.kind?qe(e):void 0))}function V(e,t=qe){void 0!==e&&d(e,t)}function W(e){ZI(e,qe,V)}function H(e){const n=A;if(A=!1,function(e){if(!(1&p.flags))return!1;if(p===O){const n=P_(e)&&242!==e.kind||263===e.kind||267===e.kind&&function(e){const n=Hj(e);return 1===n||2===n&&XS(t)}(e);if(n&&(p=L,!t.allowUnreachableCode)){const n=rk(t)&&!(33554432&e.flags)&&(!UE(e)||!!(7&xc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t){if(F_(e)&&tB(e)&&JE(e.parent)){const{statements:n}=e.parent,r=wT(n,e);ne(r,tB,((e,n)=>t(r[e],r[n-1])))}else t(e,e)}(e,((e,t)=>Ue(n,e,t,Pa.Unreachable_code_detected)))}}return!0}(e))return W(e),ze(e),void(A=n);switch(e.kind>=243&&e.kind<=259&&(!t.allowUnreachableCode||253===e.kind)&&(e.flowNode=p),e.kind){case 247:!function(e){const t=ye(e,ee()),n=Z(),r=Z();ae(t,p),p=t,ge(e.expression,n,r),p=_e(n),he(e.statement,r,t),ae(t,p),p=_e(r)}(e);break;case 246:!function(e){const t=ee(),n=ye(e,Z()),r=Z();ae(t,p),p=t,he(e.statement,r,n),ae(n,p),p=_e(n),ge(e.expression,t,r),p=_e(r)}(e);break;case 248:!function(e){const t=ye(e,ee()),n=Z(),r=Z();qe(e.initializer),ae(t,p),p=t,ge(e.condition,n,r),p=_e(n),he(e.statement,r,t),qe(e.incrementor),ae(t,p),p=_e(r)}(e);break;case 249:case 250:!function(e){const t=ye(e,ee()),n=Z();qe(e.expression),ae(t,p),p=t,250===e.kind&&qe(e.awaitModifier),ae(n,p),qe(e.initializer),261!==e.initializer.kind&&ke(e.initializer),he(e.statement,n,t),ae(t,p),p=_e(n)}(e);break;case 245:!function(e){const t=Z(),n=Z(),r=Z();ge(e.expression,t,n),p=_e(t),qe(e.thenStatement),ae(r,p),p=_e(n),qe(e.elseStatement),ae(r,p),p=_e(r)}(e);break;case 253:case 257:!function(e){qe(e.expression),253===e.kind&&(T=!0,y&&ae(y,p)),p=O,w=!0}(e);break;case 252:case 251:!function(e){if(qe(e.label),e.label){const t=function(e){for(let t=k;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,be(e,t.breakTarget,t.continueTarget))}else be(e,f,h)}(e);break;case 258:!function(e){const t=y,n=x,r=Z(),i=Z();let o=Z();if(e.finallyBlock&&(y=i),ae(o,p),x=o,qe(e.tryBlock),ae(r,p),e.catchClause&&(p=_e(o),o=Z(),ae(o,p),x=o,qe(e.catchClause),ae(r,p)),y=t,x=n,e.finallyBlock){const t=Z();t.antecedent=re(re(r.antecedent,o.antecedent),i.antecedent),p=t,qe(e.finallyBlock),1&p.flags?p=O:(y&&i.antecedent&&ae(y,ie(t,i.antecedent,p)),x&&o.antecedent&&ae(x,ie(t,o.antecedent,p)),p=r.antecedent?ie(t,r.antecedent,p):O)}else p=_e(r)}(e);break;case 255:!function(e){const t=Z();qe(e.expression);const n=f,r=S;f=t,S=p,qe(e.caseBlock),ae(t,p);const i=d(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedent,i||ae(t,ce(S,e,0,0)),f=n,S=r,p=_e(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||K(e.parent.expression);let i=O;for(let o=0;o<n.length;o++){const a=o;for(;!n[o].statements.length&&o+1<n.length;)i===O&&(p=S),qe(n[o]),o++;const s=Z();ae(s,r?ce(S,e.parent,a,o+1):S),ae(s,i),p=_e(s);const c=n[o];qe(c),i=p,1&p.flags||o===n.length-1||!t.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=p)}}(e);break;case 296:!function(e){const t=p;p=S,qe(e.expression),p=t,V(e.statements)}(e);break;case 244:!function(e){qe(e.expression),xe(e.expression)}(e);break;case 256:!function(e){const n=Z();k={next:k,name:e.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},qe(e.label),qe(e.statement),k.referenced||t.allowUnusedLabels||function(e,t,n){Ue(e,t,t,n)}(ik(t),e.label,Pa.Unused_label),k=k.next,ae(n,p),p=_e(n)}(e);break;case 224:!function(e){if(54===e.operator){const t=v;v=b,b=t,W(e),b=v,v=t}else W(e),46!==e.operator&&47!==e.operator||ke(e.operand)}(e);break;
6case 225:!function(e){W(e),(46===e.operator||47===e.operator)&&ke(e.operand)}(e);break;case 226:if(Nb(e))return A=n,void function(e){A?(A=!1,qe(e.operatorToken),qe(e.right),A=!0,qe(e.left)):(A=!0,qe(e.left),A=!1,qe(e.operatorToken),qe(e.right)),ke(e.left)}(e);R(e);break;case 220:!function(e){W(e),211===e.expression.kind&&ke(e.expression)}(e);break;case 227:!function(e){const t=Z(),n=Z(),r=Z(),i=p,o=w;w=!1,ge(e.condition,t,n),p=_e(t),qe(e.questionToken),qe(e.whenTrue),ae(r,p),p=_e(n),qe(e.colonToken),qe(e.whenFalse),ae(r,p),p=w?_e(r):i,w||(w=o)}(e);break;case 260:!function(e){W(e),(e.initializer||m_(e.parent.parent))&&Ce(e)}(e);break;case 211:case 212:!function(e){Il(e)?Ee(e):W(e)}(e);break;case 213:!function(e){if(Il(e))Ee(e);else{const t=bh(e.expression);218===t.kind||219===t.kind?(V(e.typeArguments),V(e.arguments),qe(e.expression)):(W(e),108===e.expression.kind&&(p=ue(p,e)))}if(211===e.expression.kind){const t=e.expression;nN(t.name)&&Y(t.expression)&&gy(t.name)&&(p=le(256,p,e))}}(e);break;case 235:!function(e){Il(e)?Ee(e):W(e)}(e);break;case 346:case 338:case 340:!function(e){qe(e.tagName),340!==e.kind&&e.fullName&&(HT(e.fullName,e),GT(e.fullName,!1)),"string"!=typeof e.comment&&V(e.comment)}(e);break;case 351:!function(e){qe(e.tagName),"string"!=typeof e.comment&&V(e.comment)}(e);break;case 307:$(e.statements),qe(e.endOfFileToken);break;case 241:case 268:$(e.statements);break;case 208:!function(e){qe(e.dotDotDotToken),qe(e.propertyName),we(e.initializer),qe(e.name)}(e);break;case 169:!function(e){V(e.modifiers),qe(e.dotDotDotToken),qe(e.questionToken),qe(e.type),we(e.initializer),qe(e.name)}(e);break;case 210:case 209:case 303:case 230:A=n;default:W(e)}ze(e),A=n}function K(e){switch(e.kind){case 80:case 110:return!0;case 211:case 212:return X(e);case 213:return function(e){if(e.arguments)for(const t of e.arguments)if(X(t))return!0;return!(211!==e.expression.kind||!X(e.expression.expression))}(e);case 217:if(vA(e))return!1;case 235:return K(e.expression);case 226:return function(e){switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return X(e.left);case 35:case 36:case 37:case 38:return Y(e.left)||Y(e.right)||Q(e.right,e.left)||Q(e.left,e.right)||Su(e.right)&&K(e.left)||Su(e.left)&&K(e.right);case 104:return Y(e.left);case 103:case 28:return K(e.right)}return!1}(e);case 224:return 54===e.operator&&K(e.operand);case 221:return K(e.expression)}return!1}function G(e){switch(e.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return G(e.expression);case 212:return(Zh(e.argumentExpression)||Pb(e.argumentExpression))&&G(e.expression);case 226:return 28===e.operatorToken.kind&&G(e.right)||kb(e.operatorToken.kind)&&t_(e.left)}return!1}function X(e){return G(e)||Il(e)&&X(e.expression)}function Q(e,t){return yE(e)&&Y(e.expression)&&Z_(t)}function Y(e){switch(e.kind){case 217:return Y(e.expression);case 226:switch(e.operatorToken.kind){case 64:return Y(e.left);case 28:return Y(e.right)}}return X(e)}function Z(){return Qj(4,void 0,void 0)}function ee(){return Qj(8,void 0,void 0)}function ie(e,t,n){return Qj(1024,{target:e,antecedents:t},n)}function oe(e){e.flags|=2048&e.flags?4096:2048}function ae(e,t){1&t.flags||F(e.antecedent,t)||((e.antecedent||(e.antecedent=[])).push(t),oe(t))}function se(e,t,n){return 1&t.flags?t:n?!(112===n.kind&&64&e||97===n.kind&&32&e)||Ll(n)||Ml(n.parent)?K(n)?(oe(t),Qj(e,n,t)):t:O:32&e?t:O}function ce(e,t,n,r){return oe(e),Qj(128,{switchStatement:t,clauseStart:n,clauseEnd:r},e)}function le(e,t,n){oe(t),w=!0;const r=Qj(e,n,t);return x&&ae(x,r),r}function ue(e,t){return oe(e),w=!0,Qj(512,t,e)}function _e(e){const t=e.antecedent;return t?1===t.length?t[0]:e:O}function de(e){for(;;)if(217===e.kind)e=e.expression;else{if(224!==e.kind||54!==e.operator)return Sb(e);e=e.operand}}function pe(e){for(;fE(e.parent)||xE(e.parent)&&54===e.parent.operator;)e=e.parent;return!(function(e){const t=e.parent;switch(t.kind){case 245:case 247:case 246:return t.expression===e;case 248:case 227:return t.condition===e}return!1}(e)||de(e.parent)||Il(e.parent)&&e.parent.expression===e)}function me(e,t,n,r){const i=v,o=b;v=n,b=r,e(t),v=i,b=o}function ge(e,t,n){me(qe,e,t,n),e&&(function(e){return bb(bh(e))}(e)||de(e)||Il(e)&&Rl(e))||(ae(t,se(32,p,e)),ae(n,se(64,p,e)))}
6function he(e,t,n){const r=f,i=h;f=t,h=n,qe(e),f=r,h=i}function ye(e,t){let n=k;for(;n&&256===e.parent.kind;)n.continueTarget=t,n=n.next,e=e.parent;return t}function be(e,t,n){const r=252===e.kind?t:n;r&&(ae(r,p),p=O,w=!0)}function xe(e){if(213===e.kind){const t=e;108!==t.expression.kind&&Ab(t.expression)&&(p=ue(p,t))}}function Se(e){226===e.kind&&64===e.operatorToken.kind?ke(e.left):ke(e)}function ke(e){if(G(e))p=le(16,p,e);else if(209===e.kind)for(const t of e.elements)230===t.kind?ke(t.expression):Se(t);else if(210===e.kind)for(const t of e.properties)303===t.kind?Se(t.initializer):304===t.kind?ke(t.name):305===t.kind&&ke(t.expression)}function Te(e,t,n){const r=Z();56===e.operatorToken.kind||77===e.operatorToken.kind?ge(e.left,r,n):ge(e.left,t,r),p=_e(r),qe(e.operatorToken),vb(e.operatorToken.kind)?(me(qe,e.right,t,n),ke(e.left),ae(t,se(32,p,e)),ae(n,se(64,p,e))):ge(e.right,t,n)}function Ce(e){const t=EE(e)?void 0:e.name;if(Bu(t))for(const n of t.elements)Ce(n);else p=le(16,p,e)}function we(e){if(!e)return;const t=p;if(qe(e),t===O||t===p)return;const n=Z();ae(n,t),ae(n,p),p=_e(n)}function De(e){switch(e.kind){case 211:qe(e.questionDotToken),qe(e.name);break;case 212:qe(e.questionDotToken),qe(e.argumentExpression);break;case 213:qe(e.questionDotToken),V(e.typeArguments),V(e.arguments)}}function Ne(e,t,n){const r=Ol(e)?Z():void 0;!function(e,t,n){me(qe,e,t,n),Il(e)&&!Rl(e)||(ae(t,se(32,p,e)),ae(n,se(64,p,e)))}(e.expression,r||t,n),r&&(p=_e(r)),me(De,e,t,n),Rl(e)&&(ae(t,se(32,p,e)),ae(n,se(64,p,e)))}function Ee(e){if(pe(e)){const t=Z(),n=p,r=w;Ne(e,t,t),p=w?_e(t):n,w||(w=r)}else Ne(e,v,b)}function Pe(e){s&&(s.nextContainer=e),s=e}function Fe(t,n,r){switch(i.kind){case 267:return z(t,n,r);case 307:return function(t,n,r){return aO(e)?z(t,n,r):q(e.locals,void 0,t,n,r)}(t,n,r);case 231:case 263:return function(e,t,n){return Qv(e)?q(i.symbol.exports,i.symbol,e,t,n):q(i.symbol.members,i.symbol,e,t,n)}(t,n,r);case 266:return q(i.symbol.exports,i.symbol,t,n,r);case 187:case 322:case 210:case 264:case 292:return q(i.symbol.members,i.symbol,t,n,r);case 184:case 185:case 179:case 180:case 323:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 317:case 175:case 265:case 200:return i.locals&&En.assertNode(i,C_),q(i.locals,void 0,t,n,r)}}function Ae(e){33554432&e.flags&&!function(e){const t=nF(e)?e:ht(e.body,pP);return!!t&&t.statements.some((e=>EP(e)||NP(e)))}(e)?e.flags|=128:e.flags&=-129}function Ie(e){const t=Hj(e),n=0!==t;return Fe(e,n?512:1024,n?110735:0),t}function Oe(e,t,n){const r=j(t,n);return 106508&t&&(r.parent=i.symbol),B(r,e,t),r}function Le(e,t,n){switch(a.kind){case 267:z(e,t,n);break;case 307:if(_f(i)){z(e,t,n);break}default:En.assertNode(a,C_),a.locals||(a.locals=_d(),Pe(a)),q(a.locals,void 0,e,t,n)}}function Re(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||wh(t))){const n=Ac(t);if(void 0===n)return;N&&n>=119&&n<=127?e.bindDiagnostics.push(M(t,function(t){return um(t)?Pa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Pa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:Pa.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),zp(t))):135===n?aO(e)&&gm(t)?e.bindDiagnostics.push(M(t,Pa.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,zp(t))):65536&t.flags&&e.bindDiagnostics.push(M(t,Pa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,zp(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(M(t,Pa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,zp(t)))}}function Me(t,n){if(n&&80===n.kind){const i=n;if(nN(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=lf(e,n);e.bindDiagnostics.push(vS(e,r.start,r.length,function(t){return um(t)?Pa.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?Pa.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:Pa.Invalid_use_of_0_in_strict_mode}(t),Fc(i)))}}var r}function je(e){!N||33554432&e.flags||Me(e,e.name)}function Be(t){if(n<2&&307!==a.kind&&267!==a.kind&&!bu(a)){const n=lf(e,t);e.bindDiagnostics.push(vS(e,n.start,n.length,function(t){return um(t)?Pa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Pa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:Pa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}function Je(t,n,...r){const i=sf(e,t.pos);e.bindDiagnostics.push(vS(e,i.start,i.length,n,...r))}function Ue(t,n,r,i){!function(t,n,r){const i=vS(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=fe(e.bindSuggestionDiagnostics,g(m({},i),{category:2}))}(t,{pos:tp(n,e),end:r.end},i)}function qe(t){if(!t)return;HT(t,r),pr&&(t.tracingPath=e.path);const n=N;if(We(t),t.kind>165){const e=r;r=t;const n=rB(t);0===n?H(t):function(e,t){const n=i,r=o,s=a;if(1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=_d(),Pe(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=p,r=f,i=h,o=y,a=x,s=k,c=T,l=16&t&&!Xv(e,1024)&&!e.asteriskToken&&!!vm(e)||175===e.kind;l||(p=Qj(2,void 0,void 0),144&t&&(p.node=e)),y=l||176===e.kind||Wm(e)&&(262===e.kind||218===e.kind)?Z():void 0,x=void 0,f=void 0,h=void 0,k=void 0,T=!1,H(e),e.flags&=-5633,!(1&p.flags)&&8&t&&qd(e.body)&&(e.flags|=512,T&&(e.flags|=1024),e.endFlowNode=p),307===e.kind&&(e.flags|=D,e.endFlowNode=p),y&&(ae(y,p),p=_e(y),(176===e.kind||175===e.kind||Wm(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=p)),l||(p=n),f=r,h=i,y=o,x=a,k=s,T=c}else 64&t?(l=!1,H(e),En.assertNotNode(e,nN),e.flags=l?256|e.flags:-257&e.flags):H(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),ze(t),r=e}N=n}function ze(e){if(V_(e))if(Wm(e))for(const t of e.jsDoc)qe(t);else for(const t of e.jsDoc)HT(t,e),GT(t,!1)}function $e(e){if(!N)for(const t of e){if(!Tf(t))return;if(Ve(t))return void(N=!0)}}function Ve(t){const n=rp(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function We(n){switch(n.kind){case 80:if(4096&n.flags){let e=n.parent;for(;e&&!qg(e);)e=e.parent;Le(e,524288,788968);break}case 110:return p&&(s_(n)||304===r.kind)&&(n.flowNode=p),Re(n);case 166:p&&Mm(n)&&(n.flowNode=p);break;case 236:case 108:n.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(M(t,Pa.constructor_is_a_reserved_word,zp(t))))}(n);case 211:case 212:const o=n;p&&G(o)&&(o.flowNode=p),Pg(o)&&function(e){110===e.expression.kind?Qe(e):xg(e)&&307===e.parent.parent.kind&&(Lb(e.expression)?et(e,e.parent):tt(e))}
6(o),Wm(o)&&e.commonJsModuleIndicator&&gg(o)&&!iB(a,"module")&&q(e.locals,void 0,o.expression,134217729,111550);break;case 226:switch(hg(n)){case 1:Ge(n);break;case 2:!function(t){if(!Ke(t))return;const n=pg(t.right);if(Ub(n)||i===e&&nB(e,n))return;if(sE(n)&&C(n.properties,ZP))return void d(n.properties,Xe);const r=Ph(t)?2097152:1049092,o=q(e.symbol.exports,e.symbol,t,67108864|r,0);Fg(o,t)}(n);break;case 3:et(n.left,n);break;case 6:!function(e){HT(e.left,e),HT(e.right,e),ot(e.left.expression,e.left,!1,!0)}(n);break;case 4:Qe(n);break;case 5:const t=n.left.expression;if(Wm(n)&&nN(t)){const e=iB(a,t.escapedText);if(km(null==e?void 0:e.valueDeclaration)){Qe(n);break}}!function(t){var n;const r=at(t.left.expression,a)||at(t.left.expression,i);if(!Wm(t)&&!Ag(r))return;const o=Xx(t.left);nN(o)&&2097152&(null==(n=iB(i,o.escapedText))?void 0:n.flags)||(HT(t.left,t),HT(t.right,t),nN(t.left.expression)&&i===e&&nB(e,t.left.expression)?Ge(t):ty(t)?(Oe(t,67108868,"__computed"),Ze(t,nt(r,t.left.expression,it(t.left),!1,!1))):tt(yt(t.left,kg)))}(n);break;case 0:break;default:En.fail("Unknown binary expression special property assignment kind")}return function(e){N&&t_(e.left)&&kb(e.operatorToken.kind)&&Me(e,e.left)}(n);case 299:return function(e){N&&e.variableDeclaration&&Me(e,e.variableDeclaration.name)}(n);case 220:return function(t){if(N&&80===t.expression.kind){const n=lf(e,t.expression);e.bindDiagnostics.push(vS(e,n.start,n.length,Pa.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 225:return function(e){N&&Me(e,e.operand)}(n);case 224:return function(e){N&&(46!==e.operator&&47!==e.operator||Me(e,e.operand))}(n);case 254:return function(e){N&&Je(e,Pa.with_statements_are_not_allowed_in_strict_mode)}(n);case 256:return function(e){N&&BS(t)>=2&&(E_(e.statement)||UE(e.statement))&&Je(e.label,Pa.A_label_is_not_allowed_here)}(n);case 197:return void(l=!0);case 182:break;case 168:return function(e){if(jF(e.parent)){const t=eh(e.parent);t?(En.assertNode(t,C_),null!=t.locals||(t.locals=_d()),q(t.locals,void 0,e,262144,526824)):Fe(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=wc(e,(e=>e.parent&&WN(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(En.assertNode(t,C_),null!=t.locals||(t.locals=_d()),q(t.locals,void 0,e,262144,526824)):Oe(e,262144,J(e))}else Fe(e,262144,526824)}(n);case 169:return lt(n);case 260:return ct(n);case 208:return n.flowNode=p,ct(n);case 172:case 171:return function(e){const t=Eu(e),n=t?13247:0;return ut(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(n);case 303:case 304:return ut(n,4,0);case 306:return ut(n,8,900095);case 179:case 180:case 181:return Fe(n,131072,0);case 174:case 173:return ut(n,8192|(n.questionToken?16777216:0),Zf(n)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||Yh(t)&&(D|=4096),je(t),N?(Be(t),Le(t,16,110991)):Fe(t,16,110991)}(n);case 176:return Fe(n,16384,0);case 177:return ut(n,32768,46015);case 178:return ut(n,65536,78783);case 184:case 317:case 323:case 185:return function(e){const t=j(131072,J(e));B(t,e,131072);const n=j(2048,"__type");B(n,e,2048),n.members=_d(),n.members.set(t.escapedName,t)}(n);case 187:case 322:case 200:return function(e){return Oe(e,2048,"__type")}(n);case 332:return function(e){W(e);const t=nh(e);t&&174!==t.kind&&B(t.symbol,t,32)}(n);case 210:return function(e){return Oe(e,4096,"__object")}(n);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||Yh(t)&&(D|=4096),p&&(t.flowNode=p),je(t);const n=t.name?t.name.escapedText:"__function";return Oe(t,16,n)}(n);case 213:switch(hg(n)){case 7:return function(e){let t=at(e.arguments[0]);const n=307===e.parent.parent.kind;t=nt(t,e.arguments[0],n,!1,!1),rt(e,t,!1)}(n);case 8:return function(e){if(!Ke(e))return;const t=st(e.arguments[0],void 0,((e,t)=>(t&&B(t,e,67110400),t)));if(t){const n=1048580;q(t.exports,t,e,n,0)}}(n);case 9:return function(e){const t=at(e.arguments[0].expression);t&&t.valueDeclaration&&B(t,t.valueDeclaration,32),rt(e,t,!0)}(n);case 0:break;default:return En.fail("Unknown call expression assignment declaration kind")}Wm(n)&&function(t){!e.commonJsModuleIndicator&&Qm(t,!1)&&Ke(t)}(n);break;case 231:case 263:return N=!0,function(t){263===t.kind?Le(t,32,899503):(Oe(t,32,t.name?t.name.escapedText:"__class"),t.name&&P.add(t.name.escapedText));const{symbol:n}=t,r=j(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&HT(t.name,t),e.bindDiagnostics.push(M(i.declarations[0],Pa.Duplicate_identifier_0,Ic(r)))),n.exports.set(r.escapedName,r),r.parent=n}(n);case 264:return Le(n,64,788872);case 265:return Le(n,524288,788968);case 266:return function(e){return pf(e)?Le(e,128,899967):Le(e,256,899327)}(n);case 267:return function(t){if(Ae(t),yp(t))if(Xv(t,32)&&Je(t,Pa.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),wp(t))Ie(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=mT(e),void 0===n&&Je(t.name,Pa.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Fe(t,512,110735);e.patternAmbientModules=fe(e.patternAmbientModules,n&&!mt(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ie(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(n);case 292:return function(e){return Oe(e,4096,"__jsxAttributes")}(n);case 291:return function(e,t,n){return Fe(e,t,n)}(n,4,0);case 271:case 274:case 276:case 281:return Fe(n,2097152,2097152);case 270:return function(t){te(t.modifiers)&&e.bindDiagnostics.push(M(t,Pa.Modifiers_cannot_appear_here));const n=nF(t.parent)?aO(t.parent)?t.parent.isDeclarationFile?void 0:Pa.Global_module_exports_may_only_appear_in_declaration_files:Pa.Global_module_exports_may_only_appear_in_module_files:Pa.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(M(t,n)):(e.symbol.globalExports=e.symbol.globalExports||_d(),q(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(n);case 273:return function(e){e.name&&Fe(e,2097152,2097152)}(n);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?CP(e.exportClause)&&(HT(e.exportClause,e),q(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):q(i.symbol.exports,i.symbol,e,8388608,0):Oe(e,8388608,J(e))}(n);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=Ph(e)?2097152:4,n=q(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&Fg(n,e)}else Oe(e,111551,J(e))}(n);case 307:return $e(n.statements),function(){if(Ae(e),aO(e))He();else if(df(e)){He();const t=e.symbol;
6q(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 241:if(!bu(n.parent))return;case 268:return $e(n.statements);case 341:if(323===n.parent.kind)return lt(n);if(322!==n.parent.kind)break;case 348:const s=n;return Fe(s,s.isBracketed||s.typeExpression&&316===s.typeExpression.type.kind?16777220:4,0);case 346:case 338:case 340:return(c||(c=[])).push(n);case 339:return qe(n.typeExpression);case 351:return(u||(u=[])).push(n)}}function He(){Oe(e,512,`"${_T(e.fileName)}"`)}function Ke(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||He()),0))}function Ge(e){if(!Ke(e))return;const t=st(e.left.expression,void 0,((e,t)=>(t&&B(t,e,67110400),t)));if(t){const n=Eh(e.right)&&(fg(e.left.expression)||gg(e.left.expression))?2097152:1048580;HT(e.left,e),q(t.exports,t,e.left,n,0)}}function Xe(t){q(e.symbol.exports,e.symbol,t,69206016,0)}function Qe(e){if(En.assert(Wm(e)),kE(e)&&cE(e.left)&&rN(e.left.name)||cE(e)&&rN(e.name))return;const t=fm(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(kE(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;xg(e)&&Lb(e.expression)&&(n=at(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||_d(),ty(e)?Ye(e,n,n.members):q(n.members,n,e,67108868,0),B(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=Qv(t)?r.symbol.exports:r.symbol.members;ty(e)?Ye(e,r.symbol,i):q(i,r.symbol,e,67108868,0,!0);break;case 307:if(ty(e))break;t.commonJsModuleIndicator?q(t.symbol.exports,t.symbol,e,1048580,0):Fe(e,1,111550);break;case 267:break;default:En.failBadSyntaxKind(t)}}function Ye(e,t,n){q(n,t,e,4,0,!0,!0),Ze(e,t)}function Ze(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(ZB(e),e)}function et(e,t){const n=e.expression,r=n.expression;HT(r,n),HT(n,e),HT(e,t),ot(r,e,!0,!0)}function tt(e){En.assert(!nN(e)),HT(e.expression,e),ot(e.expression,e,!1,!1)}function nt(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=st(n,t,((t,n,o)=>n?(B(n,t,r),n):q(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=_d()),o,t,r,i)))}return o&&t&&t.valueDeclaration&&B(t,t.valueDeclaration,32),t}function rt(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&uE(t))return!!cg(t);let n=t?oP(t)?t.initializer:kE(t)?t.right:cE(t)&&kE(t.parent)?t.parent.right:void 0:void 0;if(n=n&&pg(n),n){const e=Lb(oP(t)?t.name:kE(t)?t.left:t);return!!lg(!kE(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=_d()):t.exports||(t.exports=_d());let i=0,o=0;xu(cg(e))?(i=8192,o=103359):uE(e)&&yg(e)&&(te(e.arguments[2].properties,(e=>{const t=Jc(e);return!!t&&nN(t)&&"set"===Fc(t)}))&&(i|=65540,o|=78783),te(e.arguments[2].properties,(e=>{const t=Jc(e);return!!t&&nN(t)&&"get"===Fc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),q(r,t,e,67108864|i,-67108865&o)}function it(e){return kE(e.parent)?307===function(e){for(;kE(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:307===e.parent.parent.kind}function ot(e,t,n,r){let o=at(e,a)||at(e,i);const s=it(t);o=nt(o,t.expression,s,n,r),rt(t,o,n)}function at(e,t=i){if(nN(e))return iB(t,e.escapedText);{const t=at(e.expression);return t&&t.exports&&t.exports.get(wg(e))}}function st(t,n,r){if(nB(e,t))return e.symbol;if(nN(t))return r(t,at(t),n);{const e=st(t.expression,n,r),i=Tg(t);return rN(i)&&En.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(wg(t)),e)}}function ct(e){if(N&&Me(e,e.name),!Bu(e.name)){const t=260===e.kind?e:e.parent.parent;!Wm(e)||!Zm(t)||gl(e)||32&vc(e)?gp(e)?Le(e,2,111551):hy(e)?Fe(e,1,111551):Fe(e,1,111550):Fe(e,2097152,2097152)}}function lt(e){if((341!==e.kind||323===i.kind)&&(!N||33554432&e.flags||Me(e,e.name),Bu(e.name)?Oe(e,1,"__"+e.parent.parameters.indexOf(e)):Fe(e,1,111551),fc(e,e.parent))){const t=e.parent.parent;q(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function ut(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Yh(t)||(D|=4096),p&&em(t)&&(t.flowNode=p),ty(t)?Oe(t,n,"__computed"):Fe(t,n,r)}}function tB(e){return!(sP(e)||function(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==Hj(e);case 266:return Xv(e,4096);default:return!1}}(e)||_P(e)||UE(e)&&!(7&xc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function nB(e,t){let n=0;const r=_t();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,fg(t=r.dequeue())||gg(t))return!0;
6if(nN(t)){const n=iB(e,t.escapedText);if(n&&n.valueDeclaration&&oP(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),wb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function rB(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(em(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return vu(e.parent)||wN(e.parent)?0:34}return 0}function iB(e,t){var n,r,i,o,a;const s=null==(i=null==(r=ht(e,C_))?void 0:r.locals)?void 0:i.get(t);return s?null!=(n=s.exportSymbol)?n:s:nF(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):T_(e)?null==(a=null==(o=e.symbol)?void 0:o.exports)?void 0:a.get(t):void 0}function oB(e,t,n,r,i,o,a,s,c,l){return function(u=(()=>!0)){const _=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Ke(_),visitedSymbols:Ke(p)}}finally{M(_),M(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Ke(_),visitedSymbols:Ke(p)}}finally{M(_),M(p)}}};function f(e){if(e&&!_[e.id]&&(_[e.id]=e,!h(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),d(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(g(t=e),d(t.typeParameters,f),d(r(t),f),f(t.thisType)),24&i&&g(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){d(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const i=t(r);i&&f(i.type),d(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function g(e){const t=i(e);for(const n of t.indexInfos)f(n.keyType),f(n.type);for(const n of t.callSignatures)m(n);for(const n of t.constructSignatures)m(n);for(const n of t.properties)h(n)}function h(e){if(!e)return!1;
6const t=eJ(e);return!p[t]&&(p[t]=e,!u(e)||(f(o(e)),e.exports&&e.exports.forEach(h),d(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;h(a(c(t.exprName)))}})),!1))}}}var aB={};r(aB,{RelativePreference:()=>sB,countPathComponents:()=>bB,forEachFileNameOfModule:()=>kB,getLocalModuleSpecifierBetweenFileNames:()=>hB,getModuleSpecifier:()=>uB,getModuleSpecifierPreferences:()=>cB,getModuleSpecifiers:()=>mB,getModuleSpecifiersWithCacheInfo:()=>gB,getNodeModulesPackageName:()=>_B,tryGetJSExtensionForFile:()=>OB,tryGetModuleSpecifiersFromCache:()=>pB,tryGetRealFileNameForNonJsDeclarationFileName:()=>AB,updateModuleSpecifier:()=>lB});var sB=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(sB||{});function cB({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,r,i){const o=a();return{relativePreference:void 0!==i?Vs(i)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=e!==r.impliedNodeFormat?a(e):o;if(99===(null!=e?e:r.impliedNodeFormat))return Uj(n,r.fileName)?[3,2]:[2];if(1===US(n))return 2===t?[2,1]:[1,2];const i=Uj(n,r.fileName);switch(t){case 2:return i?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return i?[1,0,3,2]:[1,0,2];case 0:return i?[0,1,3,2]:[0,1,2];default:En.assertNever(t)}}};function a(e){if(void 0!==i){if(nT(i))return 2;if(tn(i,"/index"))return 1}return aT(t,null!=e?e:r.impliedNodeFormat,n,zm(r)?r:void 0)}}function lB(e,t,n,r,i,o,a={}){const s=dB(e,t,n,r,i,cB({},e,t,o),{},a);if(s!==o)return s}function uB(e,t,n,r,i,o={}){return dB(e,t,n,r,i,cB({},e,t),{},o)}function _B(e,t,n,r,i,o={}){const a=yB(t.fileName,r);return y(TB(a,n,r,i,e,o),(n=>EB(n,a,t,r,e,i,!0,o.overrideImportMode)))}function dB(e,t,n,r,i,o,a,s={}){const c=yB(n,i);return y(TB(c,r,i,a,e,s),(n=>EB(n,c,t,i,e,a,void 0,s.overrideImportMode)))||vB(r,c,e,i,s.overrideImportMode||t.impliedNodeFormat,o)}function pB(e,t,n,r,i={}){const o=fB(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function fB(e,t,n,r,i={}){var o;const a=Od(e);if(!a)return c;const s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),l=null==s?void 0:s.get(t.path,a.path,r,i);return[null==l?void 0:l.kind,null==l?void 0:l.moduleSpecifiers,a,null==l?void 0:l.modulePaths,s]}function mB(e,t,n,r,i,o,a={}){return gB(e,t,n,r,i,o,a,!1).moduleSpecifiers}function gB(e,t,n,r,i,o,a={},s){let l=!1;const u=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>bp(e)&&(!Cp(e)||!Vs(oy(e.name)))));if(r)return r.name.text;const i=H(e.declarations,(e=>{var n,r,i,o;if(!dP(e))return;const a=l(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&pP(a.parent)&&yp(a.parent.parent)&&nF(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent;function l(e){for(;8&e.flags;)e=e.parent;return e}})),o=i[0];return o?o.name.text:void 0}(e,t);if(u)return{kind:"ambient",moduleSpecifiers:[u],computedWithoutCache:l};let[_,p,f,m,g]=fB(e,r,i,o,a);
6if(p)return{kind:_,moduleSpecifiers:p,computedWithoutCache:l};if(!f)return{kind:void 0,moduleSpecifiers:c,computedWithoutCache:l};l=!0,m||(m=wB(yB(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const s=yB(n.fileName,r),c=cB(i,t,n),l=zm(n)&&d(e,(e=>d(r.getFileIncludeReasons().get(la(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;if(n.impliedNodeFormat&&n.impliedNodeFormat!==_$(n,e.index,t))return;const r=H$(n,e.index).text;return 1===c.relativePreference&&Jo(r)?void 0:r}))));if(l)return{kind:void 0,moduleSpecifiers:[l],computedWithoutCache:!0};const u=te(e,(e=>e.isInNodeModules));let _,p,f,m;for(const d of e){const e=d.isInNodeModules?EB(d,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(_=fe(_,e),e&&d.isRedirect)return{kind:"node_modules",moduleSpecifiers:_,computedWithoutCache:!0};if(!e){const e=vB(d.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,d.isRedirect);if(!e)continue;d.isRedirect?f=fe(f,e):Uo(e)?ej(e)?m=fe(m,e):p=fe(p,e):(a||!u||d.isInNodeModules)&&(m=fe(m,e))}}return(null==p?void 0:p.length)?{kind:"paths",moduleSpecifiers:p,c
6omputedWithoutCache:!0}:(null==f?void 0:f.length)?{kind:"redirect",moduleSpecifiers:f,computedWithoutCache:!0}:(null==_?void 0:_.length)?{kind:"node_modules",moduleSpecifiers:_,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:En.checkDefined(m),computedWithoutCache:!0}}(m,n,r,i,o,a,s);return null==g||g.set(r.path,f.path,o,a,h.kind,m,h.moduleSpecifiers),h}function hB(e,t,n,r,i={}){var o;return vB(t,yB(e.fileName,r),n,r,null!=(o=i.overrideImportMode)?o:e.impliedNodeFormat,cB({},n,e))}function yB(e,t){e=aa(e,t.getCurrentDirectory());const n=un(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Go(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function vB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a},s){const{baseUrl:c,paths:l,rootDirs:u}=n;if(s&&!l)return;const{sourceDirectory:_,canonicalSourceDirectory:p,getCanonicalFileName:f}=t,m=o(i),g=u&&function(e,t,n,r,i,o){const a=PB(t,e,r);if(void 0===a)return;const s=PB(n,e,r),c=q(s,(e=>j(a,(t=>da(ka(e,t,r)))))),l=Jt(c,lT);return l?FB(l,i,o):void 0}(u,e,_,f,m,n)||FB(da(ka(_,e,f)),m,n);if(!c&&!l&&!HS(n)||0===a)return s?void 0:g;const h=LB(e,aa(fv(n,r)||c,r.getCurrentDirectory()),f);if(!h)return s?void 0:g;const y=s?void 0:function(e,t,n,r,i){var o,a,s;if(!r.readFile||!HS(n))return;const c=SB(r,t);if(!c)return;const l=ra(c,"package.json"),u=null==(a=null==(o=r.getPackageJsonInfoCache)?void 0:o.call(r))?void 0:a.getPackageJsonInfo(l);if(CM(u)||!r.fileExists(l))return;const _=(null==u?void 0:u.contents.packageJsonContent)||Qb(r.readFile(l)),p=null==_?void 0:_.imports;if(!p)return;const f=xM(n,i);return null==(s=d(We(p),(t=>{if(!fn(t,"#")||"#"===t||fn(t,"#/"))return;const i=tn(t,"/")?1:t.includes("*")?2:0;return NB(n,r,e,c,t,p[t],f,i,!0)})))?void 0:s.moduleFileToTry}(e,_,n,r,i),v=s||void 0===y?l&&DB(h,l,m,r,n):void 0;if(s)return v;const b=null!=y?y:void 0===v&&void 0!==c?FB(h,m,n):v;if(!b)return g;if(1===a&&!Jo(b))return b;if(3===a&&!Jo(b)){const i=n.configFilePath?la(Go(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),o=la(e,i,f),a=fn(p,i),s=fn(o,i);return a&&!s||!a&&s?b:function(e,t,n){return e===t||void 0!==e&&void 0!==t&&0===va(e,t,n)}(SB(r,Go(o)),SB(r,_),!rv(r))?g:b}return RB(b)||bB(g)<bB(b)?g:b}function bB(e){let t=0;for(let n=fn(e,"./")?2:0;n<e.length;n++)47===e.charCodeAt(n)&&t++;return t}function xB(e,t){return Yt(t.isRedirect,e.isRedirect)||lT(e.path,t.path)}function SB(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Da(t,(t=>e.fileExists(ra(t,"package.json"))?t:void 0))}function kB(e,t,n,r,i){var o;const a=iv(n),s=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,u=la(t,s,a),_=n.redirectTargetsMap.get(u)||c,p=[...l?[l]:c,t,..._].map((e=>aa(e,s)));let f=!C(p,ZT);if(!r){const e=d(p,(e=>!(f&&ZT(e))&&i(e,l===e)));if(e)return e}const m=null==(o=n.getSymlinkCache)?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),g=aa(t,s);return m&&Da(Go(g),(t=>{const n=m.get(_a(la(t,s,a)));if(n)return!xa(e,t,a)&&d(p,(e=>{if(!xa(e,t,a))return;const r=ka(t,e,a);for(const t of n){const n=ia(t,r),o=i(n,e===l);if(f=!0,o)return o}}))}))||(r?d(p,(e=>f&&ZT(e)?void 0:i(e,e===l))):void 0)}function TB(e,t,n,r,i,o={}){var a;const s=la(e.importingSourceFileName,n.getCurrentDirectory(),iv(n)),c=la(t,n.getCurrentDirectory(),iv(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const u=wB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,u),u}
6var CB=["dependencies","peerDependencies","optionalDependencies"];function wB(e,t,n,r,i){var o,a;const s=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),l=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(s&&l&&n.readFile&&!ej(e.importingSourceFileName)){En.type(n);const t=pj(s.getPackageJsonInfoCache(),n,{}),o=fj(e.importingSourceFileName,t);if(o){const e=function(e){let t;for(const n of CB){const r=e[n];r&&"object"==typeof r&&(t=re(t,We(r)))}return t}(o.contents.packageJsonContent);for(const t of e||c){const e=UM(t,ra(o.packageDirectory,"package.json"),r,n,s,void 0,i.overrideImportMode);l.setSymlinksFromResolution(e.resolvedModule)}}}const u=new Map;kB(e.importingSourceFileName,t,n,!0,((t,n)=>{const r=ej(t);u.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r})}));const _=[];for(let c=e.canonicalSourceDirectory;0!==u.size;){const e=_a(c);let t;u.forEach((({path:n,isRedirect:r,isInNodeModules:i},o)=>{fn(n,e)&&((t||(t=[])).push({path:o,isRedirect:r,isInNodeModules:i}),u.delete(o))})),t&&(t.length>1&&t.sort(xB),_.push(...t));const n=Go(c);if(n===c)break;c=n}if(u.size){const e=Xe(u.entries(),(([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n})));e.length>1&&e.sort(xB),_.push(...e)}return _}function DB(e,t,n,r,i){for(const a in t)for(const r of t[a]){const t=sa(r),s=t.indexOf("*"),c=n.map((t=>({ending:t,value:FB(e,[t],i)})));if(ST(t)&&c.push({ending:void 0,value:e}),-1!==s){const e=t.substring(0,s),n=t.substring(s+1);for(const{ending:t,value:r}of c)if(r.length>=e.length+n.length&&fn(r,e)&&tn(r,n)&&o({ending:t,value:r})){const t=r.substring(e.length,r.length-n.length);if(!Jo(t))return IC(a,t)}}else if(te(c,(e=>0!==e.ending&&t===e.value))||te(c,(e=>0===e.ending&&t===e.value&&o(e))))return a}function o({ending:t,value:n}){return 0!==t||n===FB(e,[t],i,r)}}function NB(e,t,n,r,i,o,a,s,c){if("string"==typeof o){const a=!rv(t),l=()=>t.getCommonSourceDirectory(),u=c&&iz(n,e,a,l),_=c&&nz(n,e,a,l),d=aa(ra(r,o),void 0),p=rT(n)?_T(n)+OB(n,e):void 0;switch(s){case 0:if(p&&0===va(p,d,a)||0===va(n,d,a)||u&&0===va(u,d,a)||_&&0===va(_,d,a))return{moduleFileToTry:i};break;case 1:if(p&&ba(d,p,a)){const e=ka(d,p,!1);return{moduleFileToTry:aa(ra(ra(i,o),e),void 0)}}if(ba(d,n,a)){const e=ka(d,n,!1);return{moduleFileToTry:aa(ra(ra(i,o),e),void 0)}}if(u&&ba(d,u,a)){const e=ka(d,u,!1);return{moduleFileToTry:ra(i,e)}}if(_&&ba(d,_,a)){const e=ka(d,_,!1);return{moduleFileToTry:ra(i,e)}}break;case 2:const e=d.indexOf("*"),t=d.slice(0,e),r=d.slice(e+1);if(p&&fn(p,t,a)&&tn(p,r,a)){const e=p.slice(t.length,p.length-r.length);return{moduleFileToTry:IC(i,e)}}if(fn(n,t,a)&&tn(n,r,a)){const e=n.slice(t.length,n.length-r.length);return{moduleFileToTry:IC(i,e)}}if(u&&fn(u,t,a)&&tn(u,r,a)){const e=u.slice(t.length,u.length-r.length);return{moduleFileToTry:IC(i,e)}}if(_&&fn(_,t,a)&&tn(_,r,a)){const e=_.slice(t.length,_.length-r.length);return{moduleFileToTry:IC(i,e)}}}}else{if(Array.isArray(o))return d(o,(o=>NB(e,t,n,r,i,o,a,s,c)));if("object"==typeof o&&null!==o)for(const l of We(o))if("default"===l||a.indexOf(l)>=0||wj(a,l)){const u=o[l],_=NB(e,t,n,r,i,u,a,s,c);if(_)return _}}}function EB({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const u=lC(e);if(!u)return;const _=cB(s,a,i).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!c){let t,n=u.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=x(n);if(1!==US(a)){if(s)return;if(c)return r}if(i){p=i,f=!0;break}if(t||(t=r),n=e.indexOf(Fo,n+1),-1===n){p=FB(t,_,a,o);break}}}if(t&&!f)return;const h=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),y=n(p.substring(0,u.topLevelNodeModulesIndex));if(!(fn(r,y)||h&&fn(n(h),y)))return;const v=p.substring(u.topLevelPackageNameIndex+1),b=Rj(v);return 1===US(a)&&b===v?void 0:b;function x(t){var r,s;const c=e.substring(0,t),p=ra(c,"package.json");let f=e,h=!1;const y=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(p);if(TM(y)||void 0===y&&o.fileExists(p)){const t=(null==y?void 0:y.contents.packageJsonContent)||Qb(o.readFile(p)),r=l||i.impliedNodeFormat;
6if(WS(a)){const n=Rj(c.substring(u.topLevelPackageNameIndex+1)),i=xM(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&xj(o)?d(We(o),(s=>{const c=aa(ra(i,s),void 0),l=tn(s,"/")?1:s.includes("*")?2:0;return NB(e,t,n,r,c,o[s],a,l,!1)})):NB(e,t,n,r,i,o,a,0,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return g(m({},s),{verbatimFromExports:!0});if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?fM(t.typesVersions):void 0;if(s){const t=DB(e.slice(c.length+1),s.paths,_,o,a);void 0===t?h=!0:f=ra(c,t)}const v=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(mt(v)&&(!h||!CT(gT(s.paths),v))){const e=la(v,c,n),r=n(f);if(_T(e)===_T(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!$o(r,Zk)&&fn(r,e)&&Go(r)===ua(e)&&"index"===_T(Xo(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(u.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function PB(e,t,n){return H(t,(t=>{const r=LB(e,t,n);return void 0!==r&&RB(r)?void 0:r}))}function FB(e,t,n,r){if($o(e,[".json",".mjs",".cjs"]))return e;const i=_T(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if($o(e,[".mts",".cts"])&&-1!==a&&a<o)return e;if($o(e,[".d.mts",".mts",".d.cts",".cts"]))return i+IB(e,n);if(!$o(e,[".d.ts"])&&$o(e,[".ts"])&&e.includes(".d."))return AB(e);switch(t[0]){case 0:const a=nn(i,"/index");return r&&a!==i&&function(e,t){if(!e.fileExists)return;const n=U(eT({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of n){const n=t+r;if(e.fileExists(n))return n}}(r,a)?i:a;case 1:return i;case 2:return i+IB(e,n);case 3:if(fO(e)){const r=t.findIndex((e=>0===e||1===e));return-1!==r&&r<o?i:i+IB(e,n)}return e;default:return En.assertNever(t[0])}}function AB(e){const t=Xo(e);if(!tn(e,".ts")||!t.includes(".d.")||$o(t,[".d.ts"]))return;const n=pT(e,".ts"),r=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+r}function IB(e,t){var n;return null!=(n=OB(e,t))?n:En.fail(`Extension ${bT(e)} is unsupported:: FileName:: ${e}`)}function OB(e,t){const n=ST(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function LB(e,t,n){const r=wa(t,e,t,n,!1);return Mo(r)?void 0:r}function RB(e){return fn(e,"..")}var MB,jB,BB=/^".+"$/,JB="(anonymous)",UB=1,qB=1,zB=1,$B=1,VB=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="Undef
6inedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(VB||{}),WB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),HB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(HB||{}),KB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(KB||{}),GB=yn(rJ,(function(e){return!Nu(e)})),XB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),QB=class{};function YB(){this.flags=0}function ZB(e){return e.id||(e.id=qB,qB++),e.id}function eJ(e){return e.id||(e.id=UB,UB++),e.id}function tJ(e,t){const n=Hj(e);return 1===n||t&&2===n}function nJ(e){var t,n,r,i,o=[],a=e=>{o.push(e)},s=sS.getSymbolConstructor(),l=sS.getTypeConstructor(),u=sS.getSignatureConstructor(),f=0,h=0,v=0,b=0,x=0,S=0,k=!1,T=_d(),P=[1],I=e.getCompilerOptions(),R=BS(I),B=JS(I),z=!!I.experimentalDecorators,$=ek(I),V=ck(I),W=VS(I),K=ak(I,"strictNullChecks"),G=ak(I,"strictFunctionTypes"),Y=ak(I,"strictBindCallApply"),Z=ak(I,"strictPropertyInitialization"),ee=ak(I,"noImplicitAny"),ne=ak(I,"noImplicitThis"),ie=ak(I,"useUnknownInCatchVariables"),se=I.exactOptionalPropertyTypes,ce=function(){const e=cI((function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Wm(e)&&cg(e)?(t.skip=!0,i(t,qR(e.right,r)),t):(function(e){const{left:t,operatorToken:n,right:r}=e;61===n.kind&&(!kE(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||zU(t,Pa._0_and_1_operations_cannot_be_mixed_without_parentheses,Ga(t.operatorToken.kind),Ga(n.kind)),!kE(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||zU(r,Pa._0_and_1_operations_cannot_be_mixed_without_parentheses,Ga(r.operatorToken.kind),Ga(n.kind)))}(e),64!==e.operatorToken.kind||210!==e.left.kind&&209!==e.left.kind||(t.skip=!0,i(t,mR(e.left,qR(e.right,r),r,110===e.right.kind))),t)}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);En.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(xb(s)){let e=o.parent;for(;217===e.kind||Sb(e);)e=e.parent;(56===s||$E(e))&&_j(o.left,a,$E(e)?e.thenStatement:void 0),dj(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);En.assertIsDefined(n);const i=r(t);En.assertIsDefined(i),o=yR(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return En.assertIsDefined(r),r};function t(e,t){if(kE(t))return t;i(e,qR(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),le={getReferencedExportContainer:PJ,getReferencedImportDeclaration:FJ,getReferencedDeclarationWithCollidingName:IJ,isDeclarationWithCollidingName:OJ,isValueAliasDeclaration:e=>{const t=Nc(e);return!t||!Ne||LJ(t)},hasGlobalName:iU,isReferencedAliasDeclaration:(e,t)=>{const n=Nc(e);return!n||!Ne||BJ(n,t)},hasNodeCheckFlag:(e,t)=>{const n=Nc(e);return!!n&&VJ(n,t)},isTopLevelValueImportEqualsWithEntityName:RJ,isDeclarationVisible:uc,isImplementationOfOverload:JJ,requiresAddingImplicitUndefined:UJ,isExpandoFunctionDeclaration:qJ,getPropertiesOfContainerFunction:zJ,createTypeOfDeclaration:QJ,createReturnTypeOfSignatureDeclaration:tU,createTypeOfExpression:rU,createLiteralConstValue:lU,isSymbolA
6ccessible:js,isEntityNameVisible:Ws,getConstantValue:e=>{const t=Nc(e,HJ);return t?KJ(t):void 0},getEnumMemberValue:e=>{const t=Nc(e,tF);return t?WJ(t):void 0},collectLinkedAliases:_c,markLinkedReferences:e=>{const t=Nc(e);return t&&RE(t,0)},getReferencedValueDeclaration:aU,getReferencedValueDeclarations:sU,getTypeReferenceSerializationKind:XJ,isOptionalParameter:If,isArgumentsLocalBinding:EJ,getExternalModuleFileFromDeclaration:e=>{const t=Nc(e,jp);return t&&fU(t)},isLiteralConstDeclaration:cU,isLateBound:e=>{const t=Nc(e,N_),n=t&&os(t);return!!(n&&4096&wx(n))},getJsxFactoryEntity:_U,getJsxFragmentFactoryEntity:dU,isBindingCapturedByNode:(e,t)=>{const n=Nc(e),r=Nc(t);return!!n&&!!r&&(oP(r)||oE(r))&&function(e,t){const n=Xo(e);return!!n&&F(n.capturedBlockScopeBindings,os(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n)=>{const r=Nc(e);En.assert(r&&307===r.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const i=os(e);return i?(Wa(i),i.exports?ue.symbolTableToDeclarationStatements(i.exports,e,t,n):[]):e.locals?ue.symbolTableToDeclarationStatements(e.locals,e,t,n):[]},isImportRequiredByAugmentation:function(e){const t=Id(e);if(!t.symbol)return!1;const n=fU(e);if(!n)return!1;if(n===t)return!1;const r=ts(t.symbol);
6for(const i of Xe(r.values()))if(i.mergeId){const e=is(i);if(e.declarations)for(const t of e.declarations)if(Id(t)===n)return!0}return!1}},ue=function(){return{typeToTypeNode:(e,t,n,r)=>l(t,n,r,(t=>p(e,t))),typePredicateToTypePredicateNode:(e,t,n,r)=>l(t,n,r,(t=>P(e,t))),expressionOrTypeToTypeNode:(e,t,n,r,i,a)=>l(r,i,a,(r=>o(r,e,t,n))),serializeTypeForDeclaration:(e,t,n,r,i,o)=>l(r,i,o,(r=>pe(r,e,t,n))),serializeReturnTypeForSignature:(e,t,n,r)=>l(t,n,r,(t=>me(t,e))),indexInfoToIndexSignatureDeclaration:(e,t,n,r)=>l(t,n,r,(t=>S(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,r,i)=>l(n,r,i,(n=>k(e,t,n))),symbolToEntityName:(e,t,n,r,i)=>l(n,r,i,(n=>ne(e,n,t,!1))),symbolToExpression:(e,t,n,r,i)=>l(n,r,i,(n=>ie(e,n,t))),symbolToTypeParameterDeclarations:(e,t,n,r)=>l(t,n,r,(t=>V(e,t))),symbolToParameterDeclaration:(e,t,n,r)=>l(t,n,r,(t=>M(e,t))),typeParameterToDeclaration:(e,t,n,r)=>l(t,n,r,(t=>E(e,t))),symbolTableToDeclarationStatements:(e,t,i,o)=>l(t,i,o,(t=>function(e,t){var i;const o=Ce(_w.createPropertyDeclaration,174,!0),a=Ce(((e,t,n,r)=>_w.createPropertySignature(e,t,n,r)),173,!1),l=t.enclosingDeclaration;let u=[];const f=new Set,h=[],v=t;t=g(m({},v),{usedSymbolNames:new Set(v.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=v.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0});const b=g(m({},v.tracker.inner),{trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(eJ(e)))return!1;if(0===js(e,n,r,!1).accessibility){const n=$(e,t,r);if(!(4&e.flags)){const e=n[0],t=Id(v.enclosingDeclaration);te(e.declarations,(e=>Id(e)===t))&&G(e)}}else if(null==(o=v.tracker.inner)?void 0:o.trackSymbol)return v.tracker.inner.trackSymbol(e,n,r);return!1}});t.tracker=new cJ(t,b,v.tracker.moduleResolverHost),bd(e,((e,t)=>{Oe(e,Pc(t))}));let x=!t.bundled;const T=e.get("export=");return T&&e.size>1&&2098688&T.flags&&(e=_d()).set("export=",T),z(e),M(u);function D(e){return!!e&&80===e.kind}function P(e){return UE(e)?L(j(e.declarationList.declarations,Jc),D):L([Jc(e)],D)}function F(e){const t=w(e,NP),n=N(e,dP);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&nN(t.expression)&&nN(r.name)&&Fc(r.name)===Fc(t.expression)&&r.body&&pP(r.body)){const i=L(e,(e=>!!(32&cb(e)))),o=r.name;let a=r.body;if(_(i)&&(r=_w.updateModuleDeclaration(r,r.modifiers,r.name,a=_w.updateModuleBlock(a,_w.createNodeArray([...r.body.statements,_w.createExportDeclaration(void 0,!1,_w.createNamedExports(j(q(i,(e=>P(e))),(e=>_w.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!w(e,(e=>e!==r&&Rc(e,o)))){u=[];const n=!te(a.statements,(e=>Xv(e,32)||NP(e)||EP(e)));d(a.statements,(e=>{Y(e,n?32:0)})),e=[...L(e,(e=>e!==r&&e!==t)),...u]}}return e}function I(e){const t=L(e,(e=>EP(e)&&!e.moduleSpecifier&&!!e.exportClause&&PP(e.exportClause)));_(t)>1&&(e=[...L(e,(e=>!EP(e)||!!e.moduleSpecifier||!e.exportClause)),_w.createExportDeclaration(void 0,!1,_w.createNamedExports(q(t,(e=>yt(e.exportClause,PP).elements))),void 0)]);const n=L(e,(e=>EP(e)&&!!e.moduleSpecifier&&!!e.exportClause&&PP(e.exportClause)));if(_(n)>1){const t=nt(n,(e=>BD(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...L(e,(e=>!n.includes(e))),_w.createExportDeclaration(void 0,!1,_w.createNamedExports(q(n,(e=>yt(e.exportClause,PP).elements))),n[0].moduleSpecifier)])}return e}function O(e){const t=N(e,(e=>EP(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&PP(e.exportClause)));if(t>=0){const n=e[t],r=H(n.exportClause.elements,(t=>{if(!t.propertyName){const n=L(oe(e),(n=>Rc(e[n],t.name)));if(_(n)&&C(n,(t=>dC(e[t])))){for(const t of n)e[t]=J(e[t]);return}}return t}));_(r)?e[t]=_w.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,_w.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):sn(e,t)}return e}function M(e){return e=O(e=I(e=F(e))),l&&(nF(l)&&_f(l)||dP(l))&&(!te(e,f_)||!d_(e)&&te(e,p_))&&e.push(YF(_w)),e}function J(e){const t=-129&cb(e)|32;return _w.replaceModifiers(e,t)}function U(e){const t=-33&cb(e);return _w.replaceModifiers(e,t)}function z(e,t,n){t||h.push(new Map),e.forEach((e=>{V(e,!1,!!n)}
6)),t||(h[h.length-1].forEach((e=>{V(e,!0,!!n)})),h.pop())}function V(e,n,r){Xd(Gl(e));const i=is(e);if(!f.has(eJ(i))&&(f.add(eJ(i)),!n||_(e.declarations)&&te(e.declarations,(e=>!!wc(e,(e=>e===l)))))){const i=le(t);K(e,n,r),i()}}function K(e,n,i,o=e.escapedName){var a,s,c,l,u,d;const p=Pc(o),f="default"===o;if(n&&!(131072&t.flags)&&Wh(p)&&!f)return void(t.encounteredError=!0);let m=f&&!!(-113&e.flags||16&e.flags&&_(Xd(Gl(e))))&&!(2097152&e.flags),g=!m&&!n&&Wh(p)&&!f;(m||g)&&(n=!0);const h=(n?0:32)|(f&&!m?2048:0),y=1536&e.flags&&7&e.flags&&"export="!==o,v=y&&Te(Gl(e),e);if((8208&e.flags||v)&&de(Gl(e),e,Oe(e,p),h),524288&e.flags&&Z(e,p,h),98311&e.flags&&"export="!==o&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!v)if(i)ke(e)&&(g=!1,m=!1);else{const _=Gl(e),f=Oe(e,p);if(_.symbol&&_.symbol!==e&&16&_.symbol.flags&&te(_.symbol.declarations,iC)&&((null==(a=_.symbol.members)?void 0:a.size)||(null==(s=_.symbol.exports)?void 0:s.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(eJ(_.symbol),e),K(_.symbol,n,i,o),t.remappedSymbolReferences.delete(eJ(_.symbol));else if(16&e.flags||!Te(_,e)){const i=2&e.flags?vE(e)?2:1:(null==(c=e.parent)?void 0:c.valueDeclaration)&&nF(null==(l=e.parent)?void 0:l.valueDeclaration)?2:void 0,o=!m&&4&e.flags?Ae(f,e):f;let a=e.declarations&&w(e.declarations,(e=>oP(e)));a&&aP(a.parent)&&1===a.parent.declarations.length&&(a=a.parent.parent);const s=null==(u=e.declarations)?void 0:u.find(cE);if(s&&kE(s.parent)&&nN(s.parent.right)&&(null==(d=_.symbol)?void 0:d.valueDeclaration)&&nF(_.symbol.valueDeclaration)){const e=f===s.parent.right.escapedText?void 0:s.parent.right;Y(_w.createExportDeclaration(void 0,!1,_w.createNamedExports([_w.createExportSpecifier(!1,e,f)])),0),t.tracker.trackSymbol(_.symbol,t.enclosingDeclaration,111551)}else Y(r(t,_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(o,void 0,pe(t,void 0,_,e))],i)),a),o!==f?-33&h:h),o===f||n||(Y(_w.createExportDeclaration(void 0,!1,_w.createNamedExports([_w.createExportSpecifier(!1,o,f)])),0),g=!1,m=!1)}else de(_,e,f,h)}if(384&e.flags&&_e(e,p,h),32&e.flags&&(4&e.flags&&e.valueDeclaration&&kE(e.valueDeclaration.parent)&&NE(e.valueDeclaration.parent.right)?xe(e,Oe(e,p),h):ve(e,Oe(e,p),h)),(1536&e.flags&&(!y||ae(e))||v)&&se(e,p,h),64&e.flags&&!(32&e.flags)&&ee(e,p,h),2097152&e.flags&&xe(e,Oe(e,p),h),4&e.flags&&"export="===e.escapedName&&ke(e),8388608&e.flags&&e.declarations)for(const r of e.declarations){const e=qa(r,r.moduleSpecifier);e&&Y(_w.createExportDeclaration(void 0,r.isTypeOnly,void 0,_w.createStringLiteral(X(e,t))),0)}m?Y(_w.createExportAssignment(void 0,!1,_w.createIdentifier(Oe(e,p))),0):g&&Y(_w.createExportDeclaration(void 0,!1,_w.createNamedExports([_w.createExportSpecifier(!1,Oe(e,p),p)])),0)}function G(e){if(te(e.declarations,hy))return;En.assertIsDefined(h[h.length-1]),Ae(Pc(e.escapedName),e);const t=!!(2097152&e.flags)&&!te(e.declarations,(e=>!!wc(e,EP)||CP(e)||gP(e)&&!LP(e.moduleReference)));h[t?0:h.length-1].set(eJ(e),e)}function Q(e){return nF(e)&&(_f(e)||df(e))||yp(e)&&!Tp(e)}function Y(e,n){if(CI(e)){let r=0;const i=t.enclosingDeclaration&&(qg(t.enclosingDeclaration)?Id(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&i&&(Q(i)||dP(i))&&dC(e)&&(r|=32),!x||32&r||i&&33554432&i.flags||!(_P(e)||UE(e)||sP(e)||cP(e)||dP(e))||(r|=128),2048&n&&(cP(e)||lP(e)||sP(e))&&(r|=2048),r&&(e=_w.replaceModifiers(e,r|cb(e)))}u.push(e)}function Z(e,n,r){var i;const o=ju(e),a=j(Ko(e).typeParameters,(e=>E(e,t))),c=null==(i=e.declarations)?void 0:i.find(qg),l=Cl(c?c.comment||c.parent.comment:void 0),u=t.flags;t.flags|=8388608;const _=t.enclosingDeclaration;t.enclosingDeclaration=c;const d=c&&c.typeExpression&&iF(c.typeExpression)&&s(t,c.typeExpression.type,o,void 0)||p(o,t);Y(Pw(_w.createTypeAliasDeclaration(void 0,Oe(e,n),a,d),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),t.flags=u,t.enclosingDeclaration=_}function ee(e,n,r){const i=Lu(e),o=j(lu(e),(e=>E(e,t))),a=Au(i),s=_(a)?kv(a):void 0,c=q(Xd(i),(e=>we(e,s))),l=De(0,i,s,179),u=De(1,i,s,180),d=Ne(i,s),p=_(a)?[_w.createHeritageClause(96,H(a,(e=>Pe(e,111551))))]:void 0;Y(_w.createInterfaceDeclaration(void 0,Oe(e,n),o,p,[...d,...u,...l,...c]),r)}function re(e){let t=Xe(es(e).values());const n=is(e);if(n!==e){const e=new Set(t);for(const t of es(n).values())111551&Oa(Aa(t))||e.add(t);t=Xe(e)}return L(t,(e=>he(e)&&Ls(e.escapedName,99)))}function ae(e){return C(re(e),(e=>!(111551&Oa(Aa(e)))))}function se(e,n,r){const i=tt(re(e),(t=>t.parent&&t.parent===e?"real":"merged")),o=i.get("real")||c,a=i.get("merged")||c;if(_(o)&&me(o,Oe(e,n),r,!!(67108880&e.flags)),_(a)){const r=Id(t.enclosingDeclaration),i=Oe(e,n),o=_w.createModuleBlock([_w.createExportDeclaration(void 0,!1,_w.createNamedExports(H(L(a,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=Pc(n.escapedName),s=Oe(n,a),c=n.declarations&&_a(n);if(r&&(c?r!==Id(c):!te(n.declarations,(e=>Id(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Ea(c,!0);G(l||n);const u=l?Oe(l,Pc(l.escapedName)):s;return _w.createExportSpecifier(!1,a===u?void 0:u,a)}))))]);Y(_w.createModuleDeclaration(void 0,_w.createIdentifier(i),o,32),0)}}function _e(e,t,n){Y(_w.createEnumDeclaration(_w.createModifiersFromModifierFlags(uR(e)?4096:0),Oe(e,t),j(L(Xd(Gl(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&tF(e.declarations[0])?KJ(e.declarations[0]):void 0;return _w.createEnumMember(Pc(e.escapedName),void 0===t?void 0:"string"==typeof t?_w.createStringLiteral(t):_w.createNumericLiteral(t))}))),n)}function de(e,n,i,o){const a=of(e,0);for(const s of a){const e=k(s,262,t,{name:_w.createIdentifier(i)});Y(r(t,e,fe(s)),o)}1536&n.flags&&n.exports&&n.exports.size||me(L(Xd(e),he),i,o,!0)}function fe(e){if(e.declaration&&e.declaration.parent){if(kE(e.declaration.parent)&&5===hg
6(e.declaration.parent))return e.declaration.parent;if(oP(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function me(e,n,r,i){if(_(e)){const o=tt(e,(e=>!_(e.declarations)||te(e.declarations,(e=>Id(e)===Id(t.enclosingDeclaration)))?"local":"remote")).get("local")||c;let a=NI.createModuleDeclaration(void 0,_w.createIdentifier(n),_w.createModuleBlock([]),32);HT(a,l),a.locals=_d(e),a.symbol=e[0].parent;const s=u;u=[];const d=x;x=!1;const p=g(m({},t),{enclosingDeclaration:a}),f=t;t=p,z(_d(o),i,!0),t=f,x=d;const h=u;u=s;const y=j(h,(e=>NP(e)&&!e.isExportEquals&&nN(e.expression)?_w.createExportDeclaration(void 0,!1,_w.createNamedExports([_w.createExportSpecifier(!1,e.expression,_w.createIdentifier("default"))])):e)),v=C(y,(e=>Xv(e,32)))?j(y,U):y;a=_w.updateModuleDeclaration(a,a.modifiers,a.name,_w.createModuleBlock(v)),Y(a,r)}}function he(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Qv(e.valueDeclaration)&&Du(e.valueDeclaration.parent))}function ye(e){const r=H(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(Pb(i)){if(nN(i)&&""===Fc(i))return o(void 0);let e;if(({introducesError:e,node:i}=ge(i,t)),e)return o(void 0)}return o(_w.createExpressionWithTypeArguments(i,j(e.typeArguments,(e=>s(t,e,n(t,e))||p(n(t,e),t)))));function o(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}function ve(e,n,i){var a,s;const l=null==(a=e.declarations)?void 0:a.find(Du),u=t.enclosingDeclaration;t.enclosingDeclaration=l||u;const p=j(lu(e),(e=>E(e,t))),f=w_(Lu(e)),m=Au(f),g=l&&Lh(l),h=g&&ye(g)||H(function(e){let t=c;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=Lh(n);if(e)for(const n of e){const e=Mx(n);Tc(e)||(t===c?t=[e]:t.push(e))}}return t}(f),Fe),y=Gl(e),v=!!(null==(s=y.symbol)?void 0:s.valueDeclaration)&&Du(y.symbol.valueDeclaration),b=v?Tu(y):Ct,x=[..._(m)?[_w.createHeritageClause(96,j(m,(e=>Ee(e,b,n))))]:[],..._(h)?[_w.createHeritageClause(119,h)]:[]],S=function(e,t,n){if(!_(t))return n;const r=new Map;d(n,(e=>{r.set(e.escapedName,e)}));for(const i of t){const t=Xd(w_(i,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Xe(r.values())}(f,m,Xd(f)),k=L(S,(e=>{const t=e.valueDeclaration;return!(!t||jc(t)&&rN(t.name))})),T=te(S,(e=>{const t=e.valueDeclaration;return!!t&&jc(t)&&rN(t.name)}))?[_w.createPropertyDeclaration(void 0,_w.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:c,C=q(k,(e=>o(e,!1,m[0]))),w=q(L(Xd(y),(e=>!(4194304&e.flags||"prototype"===e.escapedName||he(e)))),(e=>o(e,!0,b))),D=!v&&e.valueDeclaration&&Wm(e.valueDeclaration)&&!te(of(y,1))?[_w.createConstructorDeclaration(_w.createModifiersFromModifierFlags(2),[],void 0)]:De(1,y,b,176),N=Ne(f,m[0]);t.enclosingDeclaration=u,Y(r(t,_w.createClassDeclaration(void 0,n,p,x,[...N,...w,...D,...C,...T]),e.declarations&&L(e.declarations,(e=>cP(e)||NE(e)))[0]),i)}function be(e){return y(e,(e=>{if(DP(e)||FP(e))return Fc(e.propertyName||e.name);if(kE(e)||NP(e)){const t=NP(e)?e.expression:e.right;if(cE(t))return Fc(t.name)}if(da(e)){const t=Jc(e);if(t&&nN(t))return Fc(t)}}))}function xe(e,n,r){var i,o,a,s,c,l;const u=_a(e);if(!u)return En.fail();const _=is(Ea(u,!0));if(!_)return;let d=Sp(_)&&be(e.declarations)||Pc(_.escapedName);"export="===d&&W&&(d="default");const p=Oe(_,d);switch(G(_),u.kind){case 208:if(260===(null==(o=null==(i=u.parent)?void 0:i.parent)?void 0:o.kind)){const e=X(_.parent||_,t),{propertyName:r}=u;Y(_w.createImportDeclaration(void 0,_w.createImportClause(!1,void 0,_w.createNamedImports([_w.createImportSpecifier(!1,r&&nN(r)?_w.createIdentifier(Fc(r)):void 0,_w.createIdentifier(n))])),_w.createStringLiteral(e),void 0),0);break}En.failBadSyntaxKind((null==(a=u.parent)?void 0:a.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(c=null==(s=u.parent)?void 0:s.parent)?void 0:c.kind)&&Se(Pc(e.escapedName),p);break;case 260:if(cE(u.initializer)){const e=u.initializer,i=_w.createUniqueName(n),o=X(_.parent||_,t);Y(_w.createImportEqualsDeclaration(void 0,!1,i,_w.createExternalModuleReference(_w.createStringLiteral(o))),0),Y(_w.createImportEqualsDeclaration(void 0,!1,_w.createIdentifier(n),_w.createQualifiedName(i,e.name)),r);break}case 271:if("export="===_.escapedName&&te(_.declarations,(e=>
6nF(e)&&df(e)))){ke(e);break}const f=!(512&_.flags||oP(u));Y(_w.createImportEqualsDeclaration(void 0,!1,_w.createIdentifier(n),f?ne(_,t,-1,!1):_w.createExternalModuleReference(_w.createStringLiteral(X(_,t)))),f?r:0);break;case 270:Y(_w.createNamespaceExportDeclaration(Fc(u.name)),0);break;case 273:{const e=X(_.parent||_,t),r=t.bundled?_w.createStringLiteral(e):u.parent.moduleSpecifier,i=hP(u.parent)?u.parent.attributes:void 0,o=VF(u.parent);Y(_w.createImportDeclaration(void 0,_w.createImportClause(o,_w.createIdentifier(n),void 0),r,i),0);break}case 274:{const e=X(_.parent||_,t),r=t.bundled?_w.createStringLiteral(e):u.parent.parent.moduleSpecifier,i=VF(u.parent.parent);Y(_w.createImportDeclaration(void 0,_w.createImportClause(i,void 0,_w.createNamespaceImport(_w.createIdentifier(n))),r,u.parent.attributes),0);break}case 280:Y(_w.createExportDeclaration(void 0,!1,_w.createNamespaceExport(_w.createIdentifier(n)),_w.createStringLiteral(X(_,t))),0);break;case 276:{const e=X(_.parent||_,t),r=t.bundled?_w.createStringLiteral(e):u.parent.parent.parent.moduleSpecifier,i=VF(u.parent.parent.parent);Y(_w.createImportDeclaration(void 0,_w.createImportClause(i,void 0,_w.createNamedImports([_w.createImportSpecifier(!1,n!==d?_w.createIdentifier(d):void 0,_w.createIdentifier(n))])),r,u.parent.parent.parent.attributes),0);break}case 281:const m=u.parent.parent.moduleSpecifier;m&&"default"===(null==(l=u.propertyName)?void 0:l.escapedText)&&(d="default"),Se(Pc(e.escapedName),m?d:p,m&&Z_(m)?_w.createStringLiteral(m.text):void 0);break;case 277:ke(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?ke(e):Se(n,p);break;default:return En.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}function Se(e,t,n){Y(_w.createExportDeclaration(void 0,!1,_w.createNamedExports([_w.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function ke(e){var n;if(4194304&e.flags)return!1;const r=Pc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&_a(e),s=a&&Ea(a,!0);if(s&&_(s.declarations)&&te(s.declarations,(e=>Id(e)===Id(l)))){const n=a&&(NP(a)||kE(a)?Fh(a):Ah(a)),c=n&&Pb(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(gg(e.expression)&&!rN(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=c&&Ja(c,-1,!0,!0,l);(_||s)&&G(_||s);const d=t.tracker.disableTrackSymbol;
6if(t.tracker.disableTrackSymbol=!0,o)u.push(_w.createExportAssignment(void 0,i,ie(s,t,-1)));else if(c===n&&c)Se(r,Fc(c));else if(n&&NE(n))Se(r,Oe(s,Ic(s)));else{const n=Ae(r,e);Y(_w.createImportEqualsDeclaration(void 0,!1,_w.createIdentifier(n),ne(s,t,-1,!1)),0),Se(r,n)}return t.tracker.disableTrackSymbol=d,!0}{const a=Ae(r,e),c=ew(Gl(is(e)));if(Te(c,e))de(c,e,a,o?0:32);else{const i=267!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;Y(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(a,void 0,pe(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(u.push(_w.createExportAssignment(void 0,i,_w.createIdentifier(a))),!0):r!==a&&(Se(r,a),!0)}}function Te(e,n){var r;const i=Id(t.enclosingDeclaration);return 48&Bx(e)&&!te(null==(r=e.symbol)?void 0:r.declarations,Mu)&&!_(Sf(e))&&!rc(e)&&!(!_(L(Xd(e),he))&&!_(of(e,0)))&&!_(of(e,1))&&!ue(n,l)&&!(e.symbol&&te(e.symbol.declarations,(e=>Id(e)!==i)))&&!te(Xd(e),(e=>g_(e.escapedName)))&&!te(Xd(e),(e=>te(e.declarations,(e=>Id(e)!==i))))&&C(Xd(e),(e=>!(!Ls(Ic(e),R)||98304&e.flags&&Yl(e)!==Kl(e))))}function Ce(e,n,i){return function(o,a,s){var c,l,u,_,p;const f=Dx(o),m=!!(2&f);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&ef(s,o.escapedName)&&ZL(ef(s,o.escapedName))===ZL(o)&&(16777216&o.flags)==(16777216&ef(s,o.escapedName).flags)&&AS(Gl(o),bc(s,o.escapedName)))return[];const g=-1025&f|(a?256:0),h=ce(o,t),y=null==(c=o.declarations)?void 0:c.find(vn(kN,Nu,oP,SN,kE,cE));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&d(o.declarations,(e=>178===e.kind?e:uE(e)&&yg(e)?d(e.arguments[2].properties,(e=>{const t=Jc(e);if(t&&nN(t)&&"set"===Fc(t))return e})):void 0));En.assert(!!n);const i=xu(n)?jf(n).parameters[0]:void 0;e.push(r(t,_w.createSetAccessorDeclaration(_w.createModifiersFromModifierFlags(g),h,[_w.createParameterDeclaration(void 0,void 0,i?B(i,A(i),t):"value",void 0,m?void 0:pe(t,void 0,Kl(o),o))],void 0),(null==(l=o.declarations)?void 0:l.find(z_))||y))}if(32768&o.flags){const n=2&f;e.push(r(t,_w.createGetAccessorDeclaration(_w.createModifiersFromModifierFlags(g),h,[],n?void 0:pe(t,void 0,Gl(o),o),void 0),(null==(u=o.declarations)?void 0:u.find($_))||y))}return e}if(98311&o.flags)return r(t,e(_w.createModifiersFromModifierFlags((ZL(o)?8:0)|g),h,16777216&o.flags?_w.createToken(58):void 0,m?void 0:pe(t,void 0,Kl(o),o),void 0),(null==(_=o.declarations)?void 0:_.find(vn(kN,oP)))||y);if(8208&o.flags){const i=of(Gl(o),0);if(2&g)return r(t,e(_w.createModifiersFromModifierFlags((ZL(o)?8:0)|g),h,16777216&o.flags?_w.createToken(58):void 0,void 0,void 0),(null==(p=o.declarations)?void 0:p.find(xu))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0]);const a=[];for(const e of i){const i=k(e,n,t,{name:h,questionToken:16777216&o.flags?_w.createToken(58):void 0,modifiers:g?_w.createModifiersFromModifierFlags(g):void 0}),s=e.declaration&&Eg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(t,i,s))}return a}return En.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function we(e,t){return a(e,!1,t)}function De(e,n,i,o){const a=of(n,e);if(1===e){if(!i&&C(a,(e=>0===_(e.parameters))))return[];if(i){const e=of(i,1);if(!_(e)&&C(a,(e=>0===_(e.parameters))))return[];if(e.length===a.length){let t=!1;for(let n=0;n<e.length;n++)if(!nT(a[n],e[n],!1,!1,!0,IS)){t=!0;break}if(!t)return[]}}let e=0;for(const t of a)t.declaration&&(e|=ob(t.declaration,6));if(e)return[r(t,_w.createConstructorDeclaration(_w.createModifiersFromModifierFlags(e),[],void 0),a[0].declaration)]}const s=[];for(const c of a){const e=k(c,o,t);s.push(r(t,e,c.declaration))}return s}function Ne(e,n){const r=[];for(const i of Sf(e)){if(n){const e=Tf(n,i.keyType);if(e&&AS(i.type,e.type))continue}r.push(S(i,t,void 0))}return r}function Ee(e,n,r){const i=Pe(e,111551);if(i)return i;const o=Ae(`${r}_base`);return Y(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(o,void 0,p(n,t))],2)),0),_w.createExpressionWithTypeArguments(_w.createIdentifier(o),void 0)}function Pe(e,n){let r,i;if(e.target&&Os(e.target.symbol,l,n)?(r=j(Xg(e),(e=>p(e,t))),i=ie(e.target.symbol,t,788968)):e.symbol&&Os(e.symbol,l,n)&&(i=ie(e.symbol,t,788968)),i)return _w.createExpressionWithTypeArguments(i,r)}function Fe(e){const n=Pe(e,788968);return n||(e.symbol?_w.createExpressionWithTypeArguments(ie(e.symbol,t,788968),void 0):void 0)}function Ae(e,n){var r,i;const o=n?eJ(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=Ie(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function Ie(e,n){if("default"===n||"__class"===n||"__function"===n){const r=t.flags;t.flags|=16777216;const i=lc(e,t);t.flags=r,n=i.length>0&&rg(i.charCodeAt(0))?Xy(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=Ls(n,R)&&
6!Wh(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function Oe(e,n){const r=eJ(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Ie(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t))),symbolToNode:(e,t,n,r,i)=>l(n,r,i,(n=>function(e,t,n){if(1073741824&t.flags){if(e.valueDeclaration){const t=Jc(e.valueDeclaration);if(t&&yN(t))return t}const r=Ko(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,_w.createComputedPropertyName(ie(r.symbol,t,n))}return ie(e,t,n)}(e,n,t)))};function n(e,t,n){const r=function(e){return Mx(e)}(t);if(!e.mapper)return r;const i=hS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){return by(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===Id(Cc(t))||(t=_w.cloneNode(t)),t===n?t:n?e.enclosingFile&&e.enclosingFile===Id(Cc(n))?TI(pw(t,n),n):pw(t,n):t}function o(e,t,n,r){const i=e.flags;!t||-2147483648&e.flags||_e.serializeTypeOfExpression(t,e,r),e.flags|=-2147483648;const o=function(e,t,n,r){if(t){const i=c_(t)?t.type:vA(t)?bA(t):void 0;if(i&&!jl(i)){const o=a(e,i,n,t.parent,r);if(o)return o}}return r&&(n=TC(n)),p(n,e)}(e,t,n,r);return e.flags=i,o}function a(e,t,r,i,o){const a=r;o&&(r=TC(r));const c=s(e,t,r,i);if(c)return o&&!qD(n(e,t),(e=>!!(32768&e.flags)))?_w.createUnionTypeNode([c,_w.createKeywordTypeNode(157)]):c;if(o&&a!==r){const n=s(e,t,a,i);if(n)return _w.createUnionTypeNode([n,_w.createKeywordTypeNode(157)])}}function s(e,t,r,i=e.enclosingDeclaration,o=n(e,t,!0)){if(o&&function(e,t,n){return n===t||!!(e&&(bN(e)||SN(e)||kN(e))&&e.questionToken)&&vD(t,524288)===n}(i,r,o)&&de(t,r)){const n=ve(e,t);if(n)return n}}function l(t,n,r,i){const o=(null==r?void 0:r.trackSymbol)?r.moduleResolverHost:134217728&n?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:st(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:st(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}(e):void 0,a={enclosingDeclaration:t,enclosingFile:t&&Id(t),flags:n||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!I.outFile&&!!t&&_f(Id(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,mapper:void 0};a.tracker=new cJ(a,r,o);const s=i(a);return a.truncating&&1&a.flags&&a.tracker.reportTruncationError(),a.encounteredError?void 0:s}function u(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?cd:sd)}function p(e,o){const a=o.flags,l=function(e,o){var a,l;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&o.flags;if(o.flags&=-8388609,!e)return 262144&o.flags?(o.approximateLength+=3,_w.createKeywordTypeNode(133)):void(o.encounteredError=!0);if(536870912&o.flags||(e=Op(e)),1&e.flags)return e.aliasSymbol?_w.createTypeReferenceNode(Q(e.aliasSymbol),x(e.aliasTypeArguments,o)):e===Pt?Fw(_w.createKeywordTypeNode(133),3,"unresolved"):(o.approximateLength+=3,_w.createKeywordTypeNode(e===At?141:133));if(2&e.flags)return _w.createKeywordTypeNode(159);if(4&e.flags)return o.approximateLength+=6,_w.createKeywordTypeNode(154);if(8&e.flags)return o.approximateLength+=6,_w.createKeywordTypeNode(150);if(64&e.flags)return o.approximateLength+=6,_w.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return o.approximateLength+=7,_w.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=cs(e.symbol),n=Y(t,o,788968);if(Wu(t)===e)return n;const r=Ic(e.symbol);return Ls(r,1)?R(n,_w.createTypeReferenceNode(r,void 0)):eE(n)?(n.isTypeOf=!0,_w.createIndexedAccessTypeNode(n,_w.createLiteralTypeNode(_w.createStringLiteral(r)))):ON(n)?_w.createIndexedAccessTypeNode(_w.createTypeQueryNode(n.typeName),_w.createLiteralTypeNode(_w.createStringLiteral(r))):En.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Y(e.symbol,o,788968)}if(128&e.flags)return o.approximateLength+=e.value.length+2,_w.createLiteralTypeNode(hw(_w.createStringLiteral(e.value,!!(268435456&o.flags)),16777216));if(256&e.flags){const t=e.value;return o.approximateLength+=(""+t).length,_w.createLiteralTypeNode(t<0?_w.createPrefixUnaryExpression(41,_w.createNumericLiteral(-t)):_w.createNumericLiteral(t))}if(2048&e.flags)return o.approximateLength+=LT(e.value).length+1,_w.createLiteralTypeNode(_w.createBigIntLiteral(e.value));if(512&e.flags)return o.approximateLength+=e.intrinsicName.length,_w.createLiteralTypeNode("true"===e.intrinsicName?_w.createTrue():_w.createFalse());if(8192&e.flags){if(!(1048576&o.flags)){if(Is(e.symbol,o.enclosingDeclaration))return o.approximateLength+=6,Y(e.symbol,o,111551);o.tracker.reportInaccessibleUniqueSymbolError&&o.tracker.reportInaccessibleUniqueSymbolError()}return o.approximateLength+=13,_w.createTypeOperatorNode(158,_w.createKeywordTypeNode(155))}if(16384&e.flags)return o.approximateLength+=4,_w.createKeywordTypeNode(116);if(32768&e.flags)return o.approximateLength+=9,_w.createKeywordTypeNode(157);if(65536&e.flags)return o.approximateLength+=4,_w.createLiteralTypeNode(_w.createNull());if(131072&e.flags)return o.approximateLength+=5,_w.createKeywordTypeNode(146);if(4096&e.flags)return o.approximateLength+=6,_w.createKeywordTypeNode(155);if(67108864&e.flags)return o.approximateLength+=6,_w.createKeywordTypeNode(151);if(cC(e))return 4194304&o.flags&&(o.encounteredError||32768&o.flags||(o.encounteredError=!0),null==(l=(a=o.tracker).reportInaccessibleThisError)||l.call(a)),o.approximateLength+=4,_w.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&o.flags||(g=e.aliasSymbol,h=o.enclosingDeclaration,0===Bs(g,h,788968,!1,!0).accessibility))){const t=x(e.aliasTypeArguments,o);return!Ts(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===_(t)&&e.aliasSymbol
6===Zn.symbol?_w.createArrayTypeNode(t[0]):Y(e.aliasSymbol,o,788968,t):_w.createTypeReferenceNode(_w.createIdentifier(""),t)}var g,h;const y=Bx(e);if(4&y)return En.assert(!!(524288&e.flags)),e.node?P(e,I):I(e);if(262144&e.flags||3&y){if(262144&e.flags&&F(o.inferTypeParameters,e)){let t;o.approximateLength+=Ic(e.symbol).length+6;const n=Yd(e);if(n){const r=Cg(e,!0);r&&AS(n,r)||(o.approximateLength+=9,t=n&&p(n,o))}return _w.createInferTypeNode(D(e,o,t))}if(4&o.flags&&262144&e.flags){const t=ee(e,o);return o.approximateLength+=Fc(t).length,_w.createTypeReferenceNode(_w.createIdentifier(Fc(t)),void 0)}if(e.symbol)return Y(e.symbol,o,788968);const t=(e===zn||e===$n)&&i&&i.symbol?(e===$n?"sub-":"super-")+Ic(i.symbol):"?";return _w.createTypeReferenceNode(_w.createIdentifier(t),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){const i=e[r];if(n|=i.flags,!(98304&i.flags)){if(1568&i.flags){const n=512&i.flags?Qt:Uu(i);if(1048576&n.flags){const i=n.types.length;if(r+i<=e.length&&Sx(e[r+i-1])===Sx(n.types[i-1])){t.push(n),r+=i-1;continue}}}t.push(i)}}return 65536&n&&t.push(Ut),32768&n&&t.push(Lt),t||e}(e.types):e.types;if(1===_(t))return p(t[0],o);const n=x(t,o,!0);return n&&n.length>0?1048576&e.flags?_w.createUnionTypeNode(n):_w.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&y)return En.assert(!!(524288&e.flags)),E(e);if(4194304&e.flags){const t=e.type;o.approximateLength+=6;const n=p(t,o);return _w.createTypeOperatorNode(143,n)}if(134217728&e.flags){const t=e.texts,n=e.types,r=_w.createTemplateHead(t[0]),i=_w.createNodeArray(j(n,((e,r)=>_w.createTemplateLiteralTypeSpan(p(e,o),(r<n.length-1?_w.createTemplateMiddle:_w.createTemplateTail)(t[r+1])))));return o.approximateLength+=2,_w.createTemplateLiteralType(r,i)}if(268435456&e.flags){const t=p(e.type,o);return Y(e.symbol,o,788968,[t])}if(8388608&e.flags){const t=p(e.objectType,o),n=p(e.indexType,o);return o.approximateLength+=2,_w.createIndexedAccessTypeNode(t,n)}if(16777216&e.flags)return P(e,(e=>b(e)));if(33554432&e.flags){const t=p(e.baseType,o),n=Rh(e)&&sy("NoInfer",!1);return n?Y(n,o,788968,[t]):t}return En.fail("Should be unreachable.");function b(e){const t=p(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=ks(Io(262144,"T")),i=ee(r,o),a=_w.createTypeReferenceNode(i);o.approximateLength+=37;const s=rS(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=p(hS(e.root.extendsType,s),o);o.inferTypeParameters=c;const u=T(hS(n(o,e.root.node.trueType),s)),_=T(hS(n(o,e.root.node.falseType),s));return _w.createConditionalTypeNode(t,_w.createInferTypeNode(_w.createTypeParameterDeclaration(void 0,_w.cloneNode(a.typeName))),_w.createConditionalTypeNode(_w.createTypeReferenceNode(_w.cloneNode(i)),p(e.checkType,o),_w.createConditionalTypeNode(a,l,u,_),_w.createKeywordTypeNode(146)),_w.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=p(e.extendsType,o);o.inferTypeParameters=r;const a=T(ox(e)),s=T(ax(e));return _w.createConditionalTypeNode(t,i,a,s)}function T(e){var t,n,r;return 1048576&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(av(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),f(o)):P(e,(e=>p(e,o))):p(e,o)}function C(e){return!!_S(e)}function w(e){return!!e.target&&C(e.target)&&!C(e)}function N(e){var t;En.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?_w.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?_w.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!Md(e)&&!(2&jd(e).flags)&&4&o.flags&&!(262144&Nd(e).flags&&4194304&(null==(t=Yd(Nd(e)))?void 0:t.flags));if(Md(e)){if(w(e)&&4&o.flags){const e=ee(ks(Io(262144,"T")),o);s=_w.createTypeReferenceNode(e)}a=_w.createTypeOperatorNode(143,s||p(jd(e),o))}else if(c){const e=ee(ks(Io(262144,"T")),o);s=_w.createTypeReferenceNode(e),a=s}else a=p(Nd(e),o);const l=D(wd(e),o,a),u=e.declaration.nameType?p(Ed(e),o):void 0,_=p(zC(Pd(e),!!(4&Bd(e))),o),d=_w.createMappedTypeNode(r,l,u,i,_,void 0);o.approximateLength+=10;const f=hw(d,1);if(w(e)&&4&o.flags){const t=hS(Yd(n(o,e.declaration.typeParameter.constraint.type))||It,e.mapper);return _w.createConditionalTypeNode(p(jd(e),o),_w.createInferTypeNode(_w.createTypeParameterDeclaration(void 0,_w.cloneNode(s.typeName),2&t.flags?void 0:p(t,o))),f,_w.createKeywordTypeNode(146))}return c?_w.createConditionalTypeNode(p(Nd(e),o),_w.createInferTypeNode(_w.createTypeParameterDeclaration(void 0,_w.cloneNode(s.typeName),_w.createTypeOperatorNode(143,p(jd(e),o)))),f,_w.createKeywordTypeNode(146)):f}function E(e){var t,n;const r=e.id,i=e.symbol;if(i){if(8388608&Bx(e)){const n=e.node;if(MN(n)){const t=s(o,n,e);if(t)return t}return(null==(t=o.visitedTypes)?void 0:t.has(r))?f(o):P(e,A)}const c=rc(e)?788968:111551;if(BO(i.valueDeclaration))return Y(i,o,c);if(32&i.flags&&!Ul(i)&&(!(i.valueDeclaration&&Du(i.valueDeclaration)&&2048&o.flags)||cP(i.valueDeclaration)&&0===js(i,o.enclosingDeclaration,c,!1).accessibility)||896&i.flags||a())return Y(i,o,c);if(null==(n=o.visitedTypes)?void 0:n.has(r)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=gh(e.symbol.declarations[0].parent);if(uP(t))return os(t)}}(e);return t?Y(t,o,788968):f(o)}return P(e,A)}return A(e);function a(){var e;const t=!!(8192&i.flags)&&te(i.declarations,(e=>Qv(e))),n=!!(16&i.flags)&&(i.parent||d(i.declarations,(e=>307===e.parent.kind||268===e.parent.kind)));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(r)))&&(!(8&o.flags)||Is(i,o.enclosingDeclaration))}}function P(e,t){var n,i,a;const s=e.id,c=16&Bx(e)&&e.symbol&&32&e.symbol.flags,l=4&Bx(e)&&e.node?"N"+ZB(e.node):16777216&e.flags?"N"+ZB(e.root.node):e.symbol?(c?"+":"")+eJ(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const u=o.enclosingDeclaration&&Xo(o.enclosingDeclaration),_=`${av(e)}|${o.flags}`;u&&(u.serializedTypes||(u.serializedTypes=new Map));const d=null==(n=null==u?void 0:u.serializedTypes)?void 0:n.get(_);
6if(d)return null==(i=d.trackedSymbols)||i.forEach((([e,t,n])=>o.tracker.trackSymbol(e,t,n))),d.truncating&&(o.truncating=!0),o.approximateLength+=d.addedLength,v(d.node);let p;if(l){if(p=o.symbolDepth.get(l)||0,p>10)return f(o);o.symbolDepth.set(l,p+1)}o.visitedTypes.add(s);const m=o.trackedSymbols;o.trackedSymbols=void 0;const g=o.approximateLength,h=t(e),y=o.approximateLength-g;return o.reportedDiagnostic||o.encounteredError||null==(a=null==u?void 0:u.serializedTypes)||a.set(_,{node:h,truncating:o.truncating,addedLength:y,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,p),o.trackedSymbols=m,h;function v(e){return by(e)||Nc(e)!==e?r(o,_w.cloneNode(vJ(e,v,void 0,b,v)),e):e}function b(e,t,n,r,i){return e&&0===e.length?TI(_w.createNodeArray(void 0,e.hasTrailingComma),e):uJ(e,t,n,r,i)}}function A(e){if($d(e)||e.containsError)return N(e);const t=Wd(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,hw(_w.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return k(t.callSignatures[0],184,o);if(1===t.constructSignatures.length&&!t.callSignatures.length)return k(t.constructSignatures[0],185,o)}const n=L(t.constructSignatures,(e=>!!(4&e.flags)));if(te(n)){const e=j(n,(e=>tg(e)));return t.callSignatures.length+(t.constructSignatures.length-n.length)+t.indexInfos.length+(2048&o.flags?O(t.properties,(e=>!(4194304&e.flags))):_(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=L(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Ns(e.symbol,e.members,e.callSignatures,te(t)?t:c,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),p(kv(e),o)}const r=o.flags;o.flags|=4194304;const i=B(t);o.flags=r;const a=_w.createTypeLiteralNode(i);return o.approximateLength+=2,hw(a,1024&o.flags?0:1),a}function I(e){let t=Xg(e);if(e.target===Zn||e.target===er){if(2&o.flags){const n=p(t[0],o);return _w.createTypeReferenceNode(e.target===Zn?"Array":"ReadonlyArray",[n])}const n=p(t[0],o),r=_w.createArrayTypeNode(n);return e.target===Zn?r:_w.createTypeOperatorNode(148,r)}if(!(8&e.target.objectFlags)){if(2048&o.flags&&e.symbol.valueDeclaration&&Du(e.symbol.valueDeclaration)&&!Is(e.symbol,o.enclosingDeclaration))return E(e);{const n=e.target.outerTypeParameters;let r,i,a=0;if(n){const e=n.length;for(;a<e;){const i=a,s=Ag(n[a]);do{a++}while(a<e&&Ag(n[a])===s);if(!Ce(n,t,i,a)){const e=x(t.slice(i,a),o),n=o.flags;o.flags|=16;const c=Y(s,o,788968,e);o.flags=n,r=r?R(r,c):c}}}if(t.length>0){const n=(e.target.typeParameters||c).length;i=x(t.slice(a,n),o)}const s=o.flags;o.flags|=16;const l=Y(e.symbol,o,788968,i);return o.flags=s,r?R(r,l):l}}if(t=J(t,((t,n)=>zC(t,!!(2&e.target.elementFlags[n])))),t.length>0){const n=Qg(e),r=x(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let i=0;i<r.length;i++){const n=e.target.elementFlags[i],o=null==t?void 0:t[i];r[i]=o?_w.createNamedTupleMember(12&n?_w.createToken(26):void 0,_w.createIdentifier(Pc(cL(o))),2&n?_w.createToken(58):void 0,4&n?_w.createArrayTypeNode(r[i]):r[i]):12&n?_w.createRestTypeNode(4&n?_w.createArrayTypeNode(r[i]):r[i]):2&n?_w.createOptionalTypeNode(r[i]):r[i]}const n=hw(_w.createTupleTypeNode(r),1);return e.target.readonly?_w.createTypeOperatorNode(148,n):n}}if(o.encounteredError||524288&o.flags){const t=hw(_w.createTupleTypeNode([]),1);return e.target.readonly?_w.createTypeOperatorNode(148,t):t}o.encounteredError=!0}function R(e,t){if(eE(e)){let n=e.typeArguments,r=e.qualifier;r&&(nN(r)?n!==Gw(r)&&(r=Kw(_w.cloneNode(r),n)):n!==Gw(r.right)&&(r=_w.updateQualifiedName(r,r.left,Kw(_w.cloneNode(r.right),n)))),n=t.typeArguments;const i=M(t);for(const e of i)r=r?_w.createQualifiedName(r,e):e;return _w.updateImportTypeNode(e,e.argument,e.attributes,r,n,e.isTypeOf)}{let n=e.typeArguments,r=e.typeName;nN(r)?n!==Gw(r)&&(r=Kw(_w.cloneNode(r),n)):n!==Gw(r.right)&&(r=_w.updateQualifiedName(r,r.left,Kw(_w.cloneNode(r.right),n))),n=t.typeArguments;const i=M(t);for(const e of i)r=_w.createQualifiedName(r,e);return _w.updateTypeReferenceNode(e,r,n)}}function M(e){let t=e.typeName;const n=[];for(;!nN(t);)n.unshift(t.right),t=t.left;return n.unshift(t),n}function B(e){if(u(o))return[_w.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const i of e.callSignatures)t.push(k(i,179,o));for(const i of e.constructSignatures)4&i.flags||t.push(k(i,180,o));
6for(const i of e.indexInfos)t.push(S(i,o,1024&e.objectFlags?f(o):void 0));const n=e.properties;if(!n)return t;let r=0;for(const i of n){if(r++,2048&o.flags){if(4194304&i.flags)continue;6&Dx(i)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(Pc(i.escapedName))}if(u(o)&&r+2<n.length-1){t.push(_w.createPropertySignature(void 0,`... ${n.length-r} more ...`,void 0,void 0)),v(n[n.length-1],o,t);break}v(i,o,t)}return t.length?t:void 0}}(e,o);return o.flags=a,l}function f(e){return e.approximateLength+=3,1&e.flags?_w.createKeywordTypeNode(133):_w.createTypeReferenceNode(_w.createIdentifier("..."),void 0)}function h(e,t){var n;return!!(8192&wx(e))&&(F(t.reverseMappedStack,e)||(null==(n=t.reverseMappedStack)?void 0:n[0])&&!(16&Bx(Le(t.reverseMappedStack).links.propertyType)))}function v(e,t,n){var r;const i=!!(8192&wx(e)),o=h(e,t)?Ct:Yl(e),a=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.canTrackSymbol&&g_(e.escapedName))if(e.declarations){const n=Ae(e.declarations);if(h_(n))if(kE(n)){const e=Jc(n);e&&lE(e)&&Ib(e.argumentExpression)&&U(e.argumentExpression,a,t)}else U(n.name.expression,a,t)}else t.tracker.reportNonSerializableProperty(Hs(e));t.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const s=ce(e,t);if(t.enclosingDeclaration=a,t.approximateLength+=Ic(e).length+1,98304&e.flags){const r=Kl(e);if(o!==r&&!Tc(o)&&!Tc(r)){const r=ld(e,177),i=jf(r);n.push(b(t,k(i,177,t,{name:s}),r));const o=ld(e,178),a=jf(o);return void n.push(b(t,k(a,178,t,{name:s}),o))}}const c=16777216&e.flags?_w.createToken(58):void 0;if(8208&e.flags&&!Hd(o).length&&!ZL(e)){const e=of($D(o,(e=>!(32768&e.flags))),0);for(const r of e){const e=k(r,173,t,{name:s,questionToken:c});n.push(d(e))}if(e.length||!c)return}let l;h(e,t)?l=f(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),l=o?pe(t,void 0,o,e):_w.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const u=ZL(e)?[_w.createToken(148)]:void 0;u&&(t.approximateLength+=9);const _=_w.createPropertySignature(u,s,c,l);function d(n){var r;const i=null==(r=e.declarations)?void 0:r.find((e=>348===e.kind));if(i){const e=Cl(i.comment);e&&Pw(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else e.valueDeclaration&&b(t,n,e.valueDeclaration);return n}n.push(d(_))}function b(e,t,n){return e.enclosingFile&&e.enclosingFile===Id(n)?Nw(t,n):t}function x(e,t,n){if(te(e)){if(u(t)){if(!n)return[_w.createTypeReferenceNode("...",void 0)];if(e.length>2)return[p(e[0],t),_w.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),p(e[e.length-1],t)]}const r=64&t.flags?void 0:ct(),i=[];let o=0;for(const n of e){if(o++,u(t)&&o+2<e.length-1){i.push(_w.createTypeReferenceNode(`... ${e.length-o} more ...`,void 0));const n=p(e[e.length-1],t);n&&i.push(n);break}t.approximateLength+=2;const a=p(n,t);a&&(i.push(a),r&&JT(a)&&r.add(a.typeName.escapedText,[n,i.length-1]))}if(r){const e=t.flags;t.flags|=64,r.forEach((e=>{if(!UT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)i[r]=p(n,t)})),t.flags=e}return i}}function S(e,t,n){const r=$p(e)||"x",i=p(e.keyType,t),o=_w.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=p(e.type||Ct,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,_w.createIndexSignature(e.isReadonly?[_w.createToken(148)]:void 0,[o],n)}function k(e,t,r,i){var o,a,s,c,l;let u,_;const d=O_(e,!0)[0],f=T(r,e.declaration,d,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?_=e.target.typeParameters.map((t=>p(hS(t,e.mapper),r))):u=e.typeParameters&&e.typeParameters.map((e=>E(e,r)));const m=r.flags;r.flags&=-257;const g=(te(d,(e=>e!==d[d.length-1]&&!!(32768&wx(e))))?e.parameters:d).map((e=>M(e,r,176===t))),h=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return M(e.thisParameter,t);if(e.declaration&&Wm(e.declaration)){const r=dl(e.declaration);if(r&&r.typeExpression)return _w.createParameterDeclaration(void 0,void 0,"this",void 0,p(n(t,r.typeExpression),t))}}(e,r);h&&g.unshift(h),r.flags=m;const y=me(r,e);let v=null==i?void 0:i.modifiers;if(185===t&&4&e.flags){const e=mb(v);v=_w.createModifiersFromModifierFlags(64|e)}const b=179===t?_w.createCallSignature(u,g,y):180===t?_w.createConstructSignature(u,g,y):173===t?_w.createMethodSignature(v,null!=(o=null==i?void 0:i.name)?o:_w.createIdentifier(""),null==i?void 0:i.questionToken,u,g,y):174===t?_w.createMethodDeclaration(v,void 0,null!=(a=null==i?void 0:i.name)?a:_w.createIdentifier(""),void 0,u,g,y,void 0):176===t?_w.createConstructorDeclaration(v,g,void 0):177===t?_w.createGetAccessorDeclaration(v,null!=(s=null==i?void 0:i.name)?s:_w.createIdentifier(""),g,y,void 0):178===t?_w.createSetAccessorDeclaration(v,null!=(c=null==i?void 0:i.name)?c:_w.createIdentifier(""),g,void 0):181===t?_w.createIndexSignature(v,g,y):317===t?_w.createJSDocFunctionType(g,y):184===t?_w.createFunctionTypeNode(u,g,null!=y?y:_w.createTypeReferenceNode(_w.createIdentifier(""))):185===t?_w.createConstructorTypeNode(v,u,g,null!=y?y:_w.createTypeReferenceNode(_w.createIdentifier(""))):262===t?_w.createFunctionDeclaration(v,void 0,(null==i?void 0:i.name)?yt(i.name,nN):_w.createIdentifier(""),u,g,y,void 0):218===t?_w.createFunctionExpression(v,void 0,(null==i?void 0:i.name)?yt(i.name,nN):_w.createIdentifier(""),u,g,y,_w.createBlock([])):219===t?_w.createArrowFunction(v,u,g,y,void 0,_w.createBlock([])):En.assertNever(t);return _&&(b.typeArguments=_w.createNodeArray(_)),323===(null==(l=e.declaration)?void 0:l.kind)&&339===e.declaration.parent.kind&&Fw(b,3,ap(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0),null==f||f(),b}function T(e,t,n,r,i,o){const a=le(e);let s,l;const u=e.enclosingDeclaration,_=e.mapper;
6if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){var r;let i;En.assert(e.enclosingDeclaration),Xo(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?i=e.enclosingDeclaration:e.enclosingDeclaration.parent&&Xo(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(i=e.enclosingDeclaration.parent),En.assertOptionalNode(i,JE);const o=null!=(r=null==i?void 0:i.locals)?r:_d();let a,s;if(n(((e,t)=>{if(i){const t=o.get(e);t?s=fe(s,{name:e,oldSymbol:t}):a=fe(a,e)}o.set(e,t)})),i)return function(){d(a,(e=>o.delete(e))),d(s,(e=>o.set(e.name,e.oldSymbol)))};{const n=_w.createBlock(c);Xo(n).fakeScopeForSignatureDeclaration=t,n.locals=o,HT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=te(n)?t("params",(e=>{if(n)for(let t=0;t<n.length;t++){const r=n[t],o=null==i?void 0:i[t];i&&o!==r?(e(r.escapedName,bt),o&&e(o.escapedName,bt)):d(r.declarations,(t=>{return bN(t)&&Bu(t.name)?(n(t.name),!0):void 0;function n(t){d(t.elements,(t=>{switch(t.kind){case 232:return;case 208:return function(t){if(Bu(t.name))return n(t.name);const r=os(t);e(r.escapedName,r)}(t);default:return En.assertNever(t)}}))}}))||e(r.escapedName,r)}})):void 0,4&e.flags&&te(r)&&(l=t("typeParams",(t=>{for(const n of null!=r?r:c)t(ee(n,e).escapedText,n.symbol)})))}return()=>{null==s||s(),null==l||l(),a(),e.enclosingDeclaration=u,e.mapper=_}}function D(e,t,n){const r=t.flags;t.flags&=-513;const i=_w.createModifiersFromModifierFlags(zk(e)),o=ee(e,t),a=fp(e),s=a&&p(a,t);return t.flags=r,_w.createTypeParameterDeclaration(i,o,n,s)}function E(e,t,n=Yd(e)){const r=n&&function(e,t,n){return t&&s(n,t,e)||p(e,n)}(n,Tg(e),t);return D(e,t,r)}function P(e,t){const n=2===e.kind||3===e.kind?_w.createToken(131):void 0,r=1===e.kind||3===e.kind?hw(_w.createIdentifier(e.parameterName),16777216):_w.createThisTypeNode(),i=e.type&&p(e.type,t);return _w.createTypePredicateNode(n,r,i)}function A(e){const t=ld(e,169);return t||(dd(e)?void 0:ld(e,341))}function M(e,t,n){const r=A(e),i=pe(t,r,Gl(e),e),o=!(8192&t.flags)&&n&&r&&CI(r)?j(zc(r),_w.cloneNode):void 0,a=r&&nd(r)||32768&wx(e)?_w.createToken(26):void 0,s=B(e,r,t),c=r&&If(r)||16384&wx(e)?_w.createToken(58):void 0,l=_w.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=Ic(e).length+3,l}function B(e,t,n){return t&&t.name?80===t.name.kind?hw(_w.cloneNode(t.name),16777216):166===t.name.kind?hw(_w.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&yN(t)&&__(t)&&U(t.expression,n.enclosingDeclaration,n);let r=vJ(t,e,void 0,void 0,e);return oE(r)&&(r=_w.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),by(r)||(r=_w.cloneNode(r)),hw(r,16777217)}(t.name):Ic(e)}function U(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=Fb(e),i=Me(r,r.escapedText,1160127,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function z(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),$(e,t,n,r)}function $(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?i=[e]:(i=En.checkDefined(function e(n,i,o){let a,s=Fs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||As(s[0],t.enclosingDeclaration,1===s.length?i:Ps(i))){const r=_s(s?s[0]:n,t.enclosingDeclaration,i);if(_(r)){a=r.map((e=>te(e.declarations,qs)?X(e,t):void 0));const o=r.map(((e,t)=>t));o.sort(c);const l=o.map((e=>r[e]));for(const t of l){const r=e(t,Ps(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&fs(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[ps(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&d(n.declarations,qs))return;return[n]}function c(e,t){const n=a[e],r=a[t];if(n&&r){const e=Jo(r);return Jo(n)===e?bB(n)-bB(r):e?-1:1}return 0}}(e,n,!0)),En.assert(i&&i.length>0)),i}function V(e,t){let n;return 524384&lB(e).flags&&(n=_w.createNodeArray(j(lu(e),(e=>E(e,t))))),n}function K(e,t,n){var r;En.assert(e&&0<=t&&t<e.length);const i=e[t],o=eJ(i);if(null==(r=n.typeParameterSymbolList)?void 0:r.has(o))return;let a;if(n.mustCreateTypeParameterSymbolList&&(n.mustCreateTypeParameterSymbolList=!1,n.typeParameterSymbolList=new Set(n.typeParameterSymbolList)),n.typeParameterSymbolList.add(o),512&n.flags&&t<e.length-1){const r=i,o=e[t+1];if(1&wx(o)){const e=function(e){return re(cu(e),lu(e))}(2097152&r.flags?Ia(r):r);a=x(j(e,(e=>Gx(e,o.links.mapper))),n)}else a=V(i,n)}return a}function G(e){return QN(e.objectType)?G(e.objectType):e}
6function X(e,t,n){let r=ld(e,307);if(!r){const t=y(e.declarations,(t=>ds(t,e)));t&&(r=ld(t,307))}if(r&&void 0!==r.moduleName)return r.moduleName;if(!r&&BB.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1);if(!t.enclosingFile||!t.tracker.moduleResolverHost)return BB.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Id(Dp(e)).fileName;const i=t.enclosingFile,o=n||(null==i?void 0:i.impliedNodeFormat),a=PM(i.path,o),s=Ko(e);let c=s.specifierCache&&s.specifierCache.get(a);if(!c){const r=!!I.outFile,{moduleResolverHost:l}=t.tracker,u=r?g(m({},I),{baseUrl:l.getCommonSourceDirectory()}):I;c=Ae(mB(e,Ue,u,i,l,{importModuleSpecifierPreference:r?"non-relative":"project-relative",importModuleSpecifierEnding:r?"minimal":99===o?"js":void 0},{overrideImportMode:n})),null!=s.specifierCache||(s.specifierCache=new Map),s.specifierCache.set(a,c)}return c}function Q(e){const t=_w.createIdentifier(Pc(e.escapedName));return e.parent?_w.createQualifiedName(Q(e.parent),t):t}function Y(e,t,n,r){const i=z(e,t,n,!(16384&t.flags)),o=111551===n;if(te(i[0].declarations,qs)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||K(i,0,t),a=Id(Cc(t.enclosingDeclaration)),c=Od(i[0]);let l,u;if(3!==US(I)&&99!==US(I)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=X(i[0],t,99),u=_w.createImportAttributes(_w.createNodeArray([_w.createImportAttribute(_w.createStringLiteral("resolution-mode"),_w.createStringLiteral("import"))]))),l||(l=X(i[0],t)),!(67108864&t.flags)&&1!==US(I)&&l.includes("/node_modules/")){const e=l;if(3===US(I)||99===US(I)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=X(i[0],t,n),l.includes("/node_modules/")?l=e:u=_w.createImportAttributes(_w.createNodeArray([_w.createImportAttribute(_w.createStringLiteral("resolution-mode"),_w.createStringLiteral(99===n?"import":"require"))]))}u||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const _=_w.createLiteralTypeNode(_w.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||gu(e))return e&&Kw(nN(e)?e:e.right,void 0),_w.createImportTypeNode(_,u,e,n,o);{const t=G(e),r=t.objectType.typeName;return _w.createIndexedAccessTypeNode(_w.createImportTypeNode(_,u,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(QN(a))return a;if(o)return _w.createTypeQueryNode(a);{const e=nN(a)?a:a.right,t=Gw(e);return Kw(e,void 0),_w.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:K(e,n,t),a=e[n],c=e[n-1];let l;if(0===n?(t.flags|=16777216,l=lc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&es(c)&&bd(es(c),((e,t)=>{if(fs(e,a)&&!g_(t)&&"export="!==t)return l=Pc(t),!0})),void 0===l){const r=y(a.declarations,Jc);if(r&&yN(r)&&gu(r.expression)){const t=s(e,n-1,i);return gu(t)?_w.createIndexedAccessTypeNode(_w.createParenthesizedType(_w.createTypeQueryNode(t)),_w.createTypeQueryNode(r.expression)):t}l=lc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&x_(c)&&x_(c).get(a.escapedName)&&fs(x_(c).get(a.escapedName),a)){const t=s(e,n-1,i);return QN(t)?_w.createIndexedAccessTypeNode(t,_w.createLiteralTypeNode(_w.createStringLiteral(l))):_w.createIndexedAccessTypeNode(_w.createTypeReferenceNode(t,o),_w.createLiteralTypeNode(_w.createStringLiteral(l)))}const u=hw(_w.createIdentifier(l),16777216);if(o&&Kw(u,_w.createNodeArray(o)),u.symbol=a,n>i){const t=s(e,n-1,i);return gu(t)?_w.createQualifiedName(t,u):En.fail("Impossible construct - an export of an indexed access cannot be reachable")}return u}}function Z(e,t,n){const r=Me(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ee(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(av(e));if(n)return n}let s=ne(e.symbol,t,788968,!0);if(!(80&s.kind))return _w.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&vN(c)&&(s=r(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(o=t.typeParameterNamesByTextNextNameCount)?void 0:o.get(n))||0,i=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(i))||Z(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=Gw(s);s=_w.createIdentifier(i),Kw(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(av(e),s),t.typeParameterNamesByText.add(i)}return s}function ne(e,t,n,r){const i=z(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=K(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=lc(o,t);0===r&&(t.flags^=16777216);const s=hw(_w.createIdentifier(a),16777216);return i&&Kw(s,_w.createNodeArray(i)),s.symbol=o,r>0?_w.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function ie(e,t,n){const r=z(e,t,n);return function e(n,r){const i=K(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=lc(o,t);0===r&&(t.flags^=16777216);
6let s=a.charCodeAt(0);if(rg(s)&&te(o.declarations,qs))return _w.createStringLiteral(X(o,t));if(0===r||fC(a,R)){const t=hw(_w.createIdentifier(a),16777216);return i&&Kw(t,_w.createNodeArray(i)),t.symbol=o,r>0?_w.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!rg(s)||8&o.flags?""+ +a===a&&(t=_w.createNumericLiteral(+a)):t=_w.createStringLiteral(Xy(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=hw(_w.createIdentifier(a),16777216);i&&Kw(e,_w.createNodeArray(i)),e.symbol=o,t=e}return _w.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function ae(e){const t=Jc(e);return!!t&&(yN(t)?!!(402653316&qR(t.expression).flags):lE(t)?!!(402653316&qR(t.argumentExpression).flags):BD(t))}function se(e){const t=Jc(e);return!!(t&&BD(t)&&(t.singleQuote||!by(t)&&fn(ap(t,!1),"'")))}function ce(e,t){const n=!!_(e.declarations)&&C(e.declarations,ae),r=!!_(e.declarations)&&C(e.declarations,se),i=!!(8192&e.flags),o=function(e,t,n,r,i){const o=Ko(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return Ls(e,BS(I))||!r&&aC(e)?aC(e)&&fn(e,"-")?_w.createComputedPropertyName(_w.createPrefixUnaryExpression(41,_w.createNumericLiteral(-e))):sC(e,BS(I),n,r,i):_w.createStringLiteral(e,!!n)}if(8192&o.flags)return _w.createComputedPropertyName(ie(o.symbol,t,111551))}}(e,t,r,n,i);return o||sC(Pc(e.escapedName),BS(I),r,n,i)}function le(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function ue(e,t){return e.declarations&&w(e.declarations,(e=>!(!pU(e)||t&&!wc(e,(e=>e===t)))))}function de(e,t){if(!(4&Bx(t)))return!0;if(!ON(e))return!0;Kh(e);const n=Xo(e).resolvedSymbol,r=n&&Wu(n);return!r||r!==t.target||_(e.typeArguments)>=Lf(t.target.typeParameters)}function pe(e,t,n,r){var i,s;const c=t&&(bN(t)||OF(t))&&UJ(t),l=e.enclosingDeclaration,u=e.flags;if(!t||!qC(t)||-2147483648&e.flags||_e.serializeTypeOfDeclaration(t,e),e.flags|=-2147483648,l&&(!Tc(n)||1&e.flags)){const i=t&&pU(t)?t:ue(r);if(i&&!xu(i)&&!NN(i)){const t=pU(i),r=!IN(t)&&a(e,t,n,i,c);if(r)return e.flags=u,r}}8192&n.flags&&n.symbol===r&&(!e.enclosingDeclaration||te(r.declarations,(t=>Id(t)===Id(e.enclosingDeclaration))))&&(e.flags|=1048576);const _=null!=(i=null!=t?t:r.valueDeclaration)?i:null==(s=r.declarations)?void 0:s[0],d=_&&function(e){return vu(e)||NP(e)||$f(e)}(_)?ZJ(_):void 0,p=o(e,d,n,c);return e.flags=u,p}function me(e,t){const r=256&e.flags,i=e.flags;let a;r&&(e.flags&=-257);const s=sm(t);return!s||r&&kc(s)?r||(a=_w.createKeywordTypeNode(133)):(!t.declaration||-2147483648&e.flags||_e.serializeReturnTypeForSignature(t.declaration,e),e.flags|=-2147483648,a=function(e,t){const r=om(t),i=sm(t);if(e.enclosingDeclaration&&(!Tc(i)||1&e.flags)&&t.declaration&&!by(t.declaration)){const r=t.declaration&&function(e){const t=Rv(e);if(t)return t;if(177===e.kind){const t=YJ(e).setAccessor;if(t){const e=Cv(t);if(e)return Ov(e)}}}(t.declaration);if(r&&n(e,r)===i){const t=ve(e,r);if(t)return t}}if(r)return P(r,e);const a=t.declaration&&ZJ(t.declaration);return o(e,a,i)}(e,t)),e.flags=i,a}function ge(e,t){let n=!1;const i=Fb(e);if(Wm(e)&&(fg(i)||gg(i.parent)||hN(i.parent)&&mg(i.parent.left)&&fg(i.parent.right)))return n=!0,{introducesError:n,node:e};const o=$s(e);let a;if(Ev(i))return a=os(fm(i,!1,!1)),0!==js(a,i,o,!1).accessibility&&(n=!0,t.tracker.reportInaccessibleThisError()),{introducesError:n,node:s(e)};if(a=Ja(i,o,!0,!0),t.enclosingDeclaration&&!(a&&262144&a.flags)){a=ms(a);const r=Ja(i,o,!0,!0,t.enclosingDeclaration);if(r===bt||void 0===r&&void 0!==a||r&&a&&!fs(ms(r),a))return r!==bt&&t.tracker.reportInferenceFallback(e),n=!0,{introducesError:n,node:e,sym:a}}return a?(1&a.flags&&a.valueDeclaration&&(hy(a.valueDeclaration)||OF(a.valueDeclaration))||(262144&a.flags||kh(e)||0===js(a,t.enclosingDeclaration,o,!1).accessibility?t.tracker.trackSymbol(a,t.enclosingDeclaration,o):(t.tracker.reportInferenceFallback(e),n=!0)),{introducesError:n,node:s(e)}):{introducesError:n,node:e};
6function s(e){if(e===i){const n=Wu(a),i=262144&a.flags?ee(n,t):_w.cloneNode(e);return i.symbol=a,r(t,hw(i,16777216),e)}const n=vJ(e,(e=>s(e)),void 0);return n!==e&&r(t,n,e),n}}function he(e,t,n,r){const i=n?111551:788968,o=Ja(t,i,!0);if(!o)return;const a=2097152&o.flags?Ia(o):o;return 0===js(o,e.enclosingDeclaration,i,!1).accessibility?Y(a,e,i,r):void 0}function ye(e,t){if(Wm(t)&&kf(t)){lx(t);const e=Xo(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&_(t.typeArguments)>=Lf(lu(e)))}if(GN(t))return void 0===e.mapper||!!n(e,t,!0);if(ON(t)){if(jl(t))return!1;const n=Kh(t),r=Xo(t).resolvedSymbol;if(!r)return!1;if(262144&r.flags){const t=Wu(r);if(e.mapper&&Gx(t,e.mapper)!==t)return!1}if(Gm(t))return de(t,n)&&!Hh(t)&&788968&r.flags}if(XN(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;Xo(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!wc(t,(e=>e===n))}return!0}function ve(e,i){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let o=!1;const{finalizeBoundary:a,startRecoveryScope:s}=function(){let t,n;const r=e.tracker,i=e.trackedSymbols;e.trackedSymbols=void 0;const a=e.encounteredError;return e.tracker=new cJ(e,g(m({},r.inner),{reportCyclicStructureError(){s((()=>r.reportCyclicStructureError()))},reportInaccessibleThisError(){s((()=>r.reportInaccessibleThisError()))},reportInaccessibleUniqueSymbolError(){s((()=>r.reportInaccessibleUniqueSymbolError()))},reportLikelyUnsafeImportRequiredError(e){s((()=>r.reportLikelyUnsafeImportRequiredError(e)))},reportNonSerializableProperty(e){s((()=>r.reportNonSerializableProperty(e)))},trackSymbol:(e,n,r)=>((null!=t?t:t=[]).push([e,n,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost}),e.tracker.moduleResolverHost),{startRecoveryScope:function(){var e,r;const i=null!=(e=null==t?void 0:t.length)?e:0,a=null!=(r=null==n?void 0:n.length)?r:0;return()=>{o=!1,t&&(t.length=i),n&&(n.length=a)}},finalizeBoundary:function(){return e.tracker=r,e.trackedSymbols=i,e.encounteredError=a,null==n||n.forEach((e=>e())),!o&&(null==t||t.forEach((([t,n,r])=>e.tracker.trackSymbol(t,n,r))),!0)}};function s(e){o=!0,(null!=n?n:n=[]).push(e)}}(),c=lJ(i,l,Mu);if(a())return e.approximateLength+=i.end-i.pos,c;function l(t){if(o)return t;const i=s(),a=function(e){return vu(e)||bF(e)||YN(e)}(t)?u(t):void 0,c=function(t){if(iF(t))return lJ(t.type,l,Mu);if(uF(t)||319===t.kind)return _w.createKeywordTypeNode(133);if(_F(t))return _w.createKeywordTypeNode(159);if(dF(t))return _w.createUnionTypeNode([lJ(t.type,l,Mu),_w.createLiteralTypeNode(_w.createNull())]);if(fF(t))return _w.createUnionTypeNode([lJ(t.type,l,Mu),_w.createKeywordTypeNode(157)]);if(pF(t))return lJ(t.type,l);if(gF(t))return _w.createArrayTypeNode(lJ(t.type,l,Mu));if(vF(t))return _w.createTypeLiteralNode(j(t.jsDocPropertyTags,(r=>{const i=lJ(nN(r.name)?r.name:r.name.right,l,nN),o=bc(n(e,t),i.escapedText),a=o&&r.typeExpression&&n(e,r.typeExpression.type)!==o?p(o,e):void 0;return _w.createPropertySignature(void 0,i,r.isBracketed||r.typeExpression&&fF(r.typeExpression.type)?_w.createToken(58):void 0,a||r.typeExpression&&lJ(r.typeExpression.type,l,Mu)||_w.createKeywordTypeNode(133))})));if(ON(t)&&nN(t.typeName)&&""===t.typeName.escapedText)return pw(_w.createKeywordTypeNode(133),t);if((PE(t)||ON(t))&&Xm(t))return _w.createTypeLiteralNode([_w.createIndexSignature(void 0,[_w.createParameterDeclaration(void 0,void 0,"x",void 0,lJ(t.typeArguments[0],l,Mu))],lJ(t.typeArguments[1],l,Mu))]);if(mF(t)){if(Ug(t)){let n;return _w.createConstructorTypeNode(void 0,uJ(t.typeParameters,l,vN),H(t.parameters,((t,i)=>t.name&&nN(t.name)&&"new"===t.name.escapedText?void(n=t.type):_w.createParameterDeclaration(void 0,s(t),r(e,_w.createIdentifier(c(t,i)),t),_w.cloneNode(t.questionToken),lJ(t.type,l,Mu),void 0))),lJ(n||t.type,l,Mu)||_w.createKeywordTypeNode(133))}return _w.createFunctionTypeNode(uJ(t.typeParameters,l,vN),j(t.parameters,((t,n)=>_w.createParameterDeclaration(void 0,s(t),r(e,_w.createIdentifier(c(t,n)),t),_w.cloneNode(t.questionToken),lJ(t.type,l,Mu),void 0))),lJ(t.type,l,Mu)||_w.createKeywordTypeNode(133))}if(GN(t))return ye(e,t)||(o=!0),t;if(vN(t))return _w.updateTypeParameterDeclaration(t,uJ(t.modifiers,l,mu),r(e,ee(Wu(os(t)),e),t),lJ(t.constraint,l,Mu),lJ(t.default,l,Mu));if(QN(t)){const e=f(t);return e||(o=!0,t)}if(ON(t)){const e=v(t);return e||(o=!0,t)}if(kf(t)){const i=Xo(t).resolvedSymbol;return!Gm(t)||!i||(t.isTypeOf||788968&i.flags)&&_(t.typeArguments)>=Lf(lu(i))?_w.updateImportTypeNode(t,_w.updateLiteralTypeNode(t.argument,d(t,t.argument.literal)),lJ(t.attributes,l,SP),lJ(t.qualifier,l,gu),uJ(t.typeArguments,l,Mu),t.isTypeOf):r(e,p(n(e,t),e),t)}if(!jc(t)||167!==t.name.kind||__(t.name)||1&e.flags&&ty(t)&&Pb(t.name.expression)&&1&lA(t.name).flags){if(vu(t)&&!t.type||kN(t)&&!t.type&&!t.initializer||SN(t)&&!t.type&&!t.initializer||bN(t)&&!t.type&&!t.initializer){let n=i(t,l);return n===t&&(n=r(e,_w.cloneNode(t),t)),n.type=_w.createKeywordTypeNode(133),bN(t)&&(n.modifiers=void 0),n}if(MN(t)){const e=y(t);return e||(o=!0,t)}if(yN(t)&&Pb(t.expression)){const{node:n,introducesError:r}=ge(t.expression,e);if(r){const n=p(ew(TJ(t.expression)),e);let r;if(ZN(n))r=n.literal;else{const i=hB(t.expression),o="string"==typeof i.value?_w.createStringLiteral(i.value,void 0):"number"==typeof i.value?_w.createNumericLiteral(i.value,0):void 0;if(!o)return eE(n)&&U(t.expression,e.enclosingDeclaration,e),t;r=o}return 11===r.kind&&Ls(r.text,BS(I))?_w.createIdentifier(r.text):9!==r.kind||r.text.startsWith("-")?_w.updateComputedPropertyName(t,r):r}return _w.updateComputedPropertyName(t,n)}if(IN(t)){let n;if(nN(t.parameterName)){const{node:r,introducesError:i}=ge(t.parameterName,e);o=o||i,n=r}else n=_w.cloneNode(t.parameterName);return _w.updateTypePredicateNode(t,_w.cloneNode(t.assertsModifier),n,lJ(t.type,l,Mu))}if(JN(t)||jN(t)||YN(t)){const n=i(t,l),o=r(e,n===t?_w.cloneNode(t):n,t);return hw(o,lp(o)|(1024&e.flags&&jN(t)?0:1)),o}if(BD(t)&&268435456&e.flags&&!t.singleQuote){const e=_w.cloneNode(t);return e.singleQuote=!0,e}if(WN(t)){const e=lJ(t.checkType,l,Mu),n=u(t),r=lJ(t.extendsType,l,Mu),i=lJ(t.trueType,l,Mu);
6n();const o=lJ(t.falseType,l,Mu);return _w.updateConditionalTypeNode(t,e,r,i,o)}if(XN(t))if(158===t.operator&&155===t.type.kind){if(!ye(e,t))return o=!0,t}else if(143===t.operator){const e=h(t);return e||(o=!0,t)}return i(t,l)}function i(t,n){return vJ(t,n,void 0,e.enclosingFile&&e.enclosingFile===Id(t)?void 0:a)}function a(e,t,n,r,i){let o=uJ(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=_w.createNodeArray(e,e.hasTrailingComma)),$T(o,-1,-1))),o}function s(e){return e.dotDotDotToken||(e.type&&gF(e.type)?_w.createToken(26):void 0)}function c(e,t){return e.name&&nN(e.name)&&"this"===e.name.escapedText?"this":s(e)?"args":`arg${t}`}function d(n,r){if(e.bundled||e.enclosingFile!==Id(r)){let i=r.text;const o=Xo(t).resolvedSymbol,a=n.isTypeOf?111551:788968,s=o&&0===js(o,e.enclosingDeclaration,a,!1).accessibility&&z(o,e,a,!0)[0];if(s&&pd(s))i=X(s,e);else{const t=fU(n);t&&(i=X(t.symbol,e))}if(i.includes("/node_modules/")&&(e.encounteredError=!0,e.tracker.reportLikelyUnsafeImportRequiredError&&e.tracker.reportLikelyUnsafeImportRequiredError(i)),i!==r.text)return pw(_w.createStringLiteral(i),r)}return lJ(r,l,BD)}}(t);return null==a||a(),o?Mu(t)&&!IN(t)?(i(),function(e,t){return p(n(e,t),e)}(e,t)):t:c?r(e,c,t):void 0}function u(t){return T(e,t,function(e){return vu(e)||bF(e)?jf(e).parameters:void 0}(t),function(e){return vu(e)||bF(e)?jf(e).typeParameters:WN(e)?sx(e):[Vu(os(e.typeParameter))]}(t))}function d(e){const t=vh(e);switch(t.kind){case 183:return v(t);case 186:return y(t);case 199:return f(t);case 198:const e=t;if(143===e.operator)return h(e)}return lJ(e,l,Mu)}function f(e){const t=d(e.objectType);if(void 0!==t)return _w.updateIndexedAccessTypeNode(e,t,lJ(e.indexType,l,Mu))}function h(e){En.assertEqual(e.operator,143);const t=d(e.type);if(void 0!==t)return _w.updateTypeOperatorNode(e,t)}function y(t){const{introducesError:n,node:i}=ge(t.exprName,e);if(!n)return _w.updateTypeQueryNode(t,i,uJ(t.typeArguments,l,Mu));const o=he(e,t.exprName,!0);return o?r(e,o,t.exprName):void 0}function v(t){if(ye(e,t)){const{introducesError:n,node:i}=ge(t.typeName,e),o=uJ(t.typeArguments,l,Mu);if(!n){const n=_w.updateTypeReferenceNode(t,i,o);return r(e,n,t)}{const n=he(e,t.typeName,!1,o);if(n)return r(e,n,t.typeName)}}}}}(),_e=UK(I,{isEntityNameVisible:Ws,isExpandoFunctionDeclaration:qJ,getAllAccessorDeclarations:YJ,requiresAddingImplicitUndefined:UJ,isUndefinedIdentifierExpression:e=>(En.assert(Lm(e)),xJ(e)===ge)}),de=RC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(Pb(n)&&Z_(e.argumentExpression)){const r=Ja(n,111551,!0);if(r&&384&r.flags){const n=Ec(e.argumentExpression.text),i=r.exports.get(n);if(i)return En.assert(Id(i.valueDeclaration)===Id(r.valueDeclaration)),t?yB(e,i,t):WJ(i.valueDeclaration)}}return LC(void 0)},evaluateEntityNameExpression:hB}),me=_d(),ge=Io(4,"undefined");ge.declarations=[];var be=Io(1536,"globalThis",8);be.exports=me,be.declarations=[],me.set(be.escapedName,be);var xe,Se,ke,Te=Io(4,"arguments"),we=Io(4,"require"),De=I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ne=!I.verbatimModuleSyntax,Ee=0,Re=0,Me=BC({compilerOptions:I,requireSymbol:we,argumentsSymbol:Te,globals:me,getSymbolOfDeclaration:os,error:Co,getRequiresScopeChangeCache:Zo,setRequiresScopeChangeCache:ea,lookup:Qo,onPropertyWithInvalidInitializer:function(e,t,n,r){return!V&&(e&&!r&&ia(e,t,t)||Co(e,e&&n.type&&Qs(n.type,e.pos)?Pa.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Pa.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,zp(n.name),na(t)),!0)},onFailedToResolveSymbol:function(e,t,n,r){const i=mt(t)?t:t.escapedText;a((()=>{if(!e||!(324===e.parent.kind||ia(e,i,t)||oa(e)||function(e,t,n){const r=1920|(Wm(e)?111551:0);if(n===r){const n=Aa(Me(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(hN(i)){En.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(ef(Wu(n),r))return Co(i,Pa.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Pc(t),Pc(r)),!0}return Co(e,Pa._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Pc(t)),!0}}return!1}(e,i,n)||function(e,t){return!(!ca(t)||281!==e.parent.kind)&&(Co(e,Pa.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(e,i)||function(e,t,n){if(111127&n){if(Aa(Me(e,t,1024,void 0,!1)))return Co(e,Pa.Cannot_use_namespace_0_as_a_value,Pc(t)),!0}else if(788544&n&&Aa(Me(e,t,1536,void 0,!1)))return Co(e,Pa.Cannot_use_namespace_0_as_a_type,Pc(t)),!0;return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ca(t)){const n=e.parent.parent;if(n&&n.parent&&XP(n)){const r=n.token,i=n.parent.kind;264===i&&96===r?Co(e,Pa.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Pc(t)):263===i&&96===r?Co(e,Pa.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Pc(t)):263===i&&119===r&&Co(e,Pa.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Pc(t))}else Co(e,Pa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Pc(t));return!0}const n=Aa(Me(e,t,788544,void 0,!1)),r=n&&Oa(n);if(n&&void 0!==r&&!(111551&r)){const r=Pc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?Co(e,Pa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=wc(e.parent,(e=>!yN(e)&&!SN(e)&&(jN(e)||"quit")));if(n&&1===n.members.length){const e=Wu(t);return!!(1048576&e.flags)&&cR(e,384,!0)}return!1}(e,n)?Co(e,Pa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):Co(e,Pa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=Aa(Me(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return Co(e,Pa._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Pc(t)),!0}return!1}(e,i,n))){let o,a;if(t&&(a=function(e){const t=na(e),n=_p().get(t);return n&&Ie(n.keys())}
6(t),a&&Co(e,r,na(t),a)),!a&&Bi<Ji&&(o=FI(e,i,n),(null==o?void 0:o.valueDeclaration)&&yp(o.valueDeclaration)&&Tp(o.valueDeclaration)&&(o=void 0),o)){const i=Hs(o),a=hI(e,o,!1),s=1920===n||t&&"string"!=typeof t&&by(t)?Pa.Cannot_find_namespace_0_Did_you_mean_1:a?Pa.Could_not_find_name_0_Did_you_mean_1:Pa.Cannot_find_name_0_Did_you_mean_1,c=To(e,s,na(t),i);c.canonicalHead=af(r,na(t)),wo(!a,c),o.valueDeclaration&&DT(c,Gp(o.valueDeclaration,Pa._0_is_declared_here,i))}o||a||!t||Co(e,r,na(t)),Bi++}}))},onSuccessfullyResolvedSymbol:function(e,t,n,r,i,o){a((()=>{var a;const s=t.escapedName,c=r&&nF(r)&&_f(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=ms(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(En.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>gp(e)||Du(e)||266===e.kind));if(void 0===r)return En.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||Yo(r,t))){let n;const i=zp(Jc(r));2&e.flags?n=Co(t,Pa.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=Co(t,Pa.Class_0_used_before_its_declaration,i):256&e.flags?n=Co(t,Pa.Enum_0_used_before_its_declaration,i):(En.assert(!!(128&e.flags)),zS(I)&&(n=Co(t,Pa.Enum_0_used_before_its_declaration,i))),n&&DT(n,Gp(r,Pa._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=is(t);_(n.declarations)&&C(n.declarations,(e=>mP(e)||nF(e)&&!!e.symbol.globalExports))&&Do(!I.allowUmdGlobalAccess,e,Pa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Pc(s))}if(i&&!o&&!(111551&~n)){const r=is(S_(t)),o=yy(i);r===os(i)?Co(e,Pa.Parameter_0_cannot_reference_itself,zp(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&Qo(o.parent.locals,r.escapedName,n)===r&&Co(e,Pa.Parameter_0_cannot_reference_identifier_1_declared_after_it,zp(i.name),zp(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!BT(e)){const n=Ma(t,111551);if(n){const t=281===n.kind||278===n.kind||280===n.kind?Pa._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Pa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Pc(s);ta(Co(e,t,r),n,r)}}if(I.isolatedModules&&t&&c&&!(111551&~n)){const e=Qo(me,s,n)===t&&nF(r)&&r.locals&&Qo(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find((e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind));t&&!nu(t)&&Co(t,Pa.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Pc(s))}}}))}}),je=BC({compilerOptions:I,requireSymbol:we,argumentsSymbol:Te,globals:me,getSymbolOfDeclaration:os,error:Co,getRequiresScopeChangeCache:Zo,setRequiresScopeChangeCache:ea,lookup:function(e,t,n){const r=Qo(e,t,n);if(r)return r;let i;return i=e===me?H(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Io(524288,t):void 0)).concat(Xe(e.values())):Xe(e.values()),II(Pc(t),i,n)}});const Ue={getNodeCount:()=>qe(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>qe(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>qe(e.getSourceFiles(),((e,t)=>e+t.symbolCount),h),getTypeCount:()=>f,getInstantiationCount:()=>v,getRelationCacheSizes:()=>({assignable:po.size,identity:mo.size,subtype:uo.size,strictSubtype:_o.size}),isUndefinedSymbol:e=>e===ge,isArgumentsSymbol:e=>e===Te,isUnknownSymbol:e=>e===bt,getMergedSymbol:is,symbolIsValue:gs,getDiagnostics:nJ,getGlobalDiagnostics:function(){return _J(),so.getGlobalDiagnostics()},getRecursionIdentity:eT,getUnmatchedProperties:kw,getTypeOfSymbolAtLocation:(e,t)=>{const n=Nc(t);return n?function(e,t){if(e=ms(e),(80===t.kind||81===t.kind)&&(Rb(t)&&(t=t.parent),Lm(t)&&(!_h(t)||Fx(t)))){const n=IC(Fx(t)&&211===t.kind?sI(t,void 0,!0):BR(t));if(ms(Xo(t).resolvedSymbol)===e)return n}return kh(t)&&z_(t.parent)&&Fl(t.parent)?Jl(t.parent.symbol):Mb(t)&&Fx(t.parent)?Kl(e):Yl(e)}(e,n):Et},getTypeOfSymbol:Gl,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=Nc(e,bN);return void 0===n?En.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(En.assert(fc(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=Qo(n.locals,t,111551),o=Qo(x_(r.symbol),t,111551);return i&&o?[i,o]:En.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,Ec(t)))}
6,getDeclaredTypeOfSymbol:Wu,getPropertiesOfType:Xd,getPropertyOfType:(e,t)=>ef(e,Ec(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=Nc(n);if(!r)return;const i=_I(Ec(t),r);return i?fI(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>bc(e,Ec(t)),getIndexInfoOfType:(e,t)=>Tf(e,0===t?zt:$t),getIndexInfosOfType:Sf,getIndexInfosOfIndexSymbol:bg,getSignaturesOfType:of,getIndexTypeOfType:(e,t)=>Cf(e,0===t?zt:$t),getIndexType:e=>ab(e),getBaseTypes:Au,getBaseTypeOfLiteralType:wT,getWidenedType:ew,getWidenedLiteralType:RT,getTypeFromTypeNode:e=>{const t=Nc(e,Mu);return t?Mx(t):Et},getParameterType:pL,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(317===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(aJ(e)?1:0);if(t<r){const n=e.parameters[t],r=uL(n);return r?{parameter:r,parameterName:n.escapedName,isRestParameter:!1}:void 0}const i=e.parameters[r]||bt,o=uL(i);if(!o)return;const a=Gl(i);if(KT(a)){const e=a.target.labeledElementDeclarations,n=null==e?void 0:e[t-r],i=!!(null==n?void 0:n.dotDotDotToken);return n?(En.assert(nN(n.name)),{parameter:n.name,parameterName:n.name.escapedText,isRestParameter:i}):void 0}return t===r?{parameter:o,parameterName:i.escapedName,isRestParameter:!0}:void 0},getPromisedTypeOfPromise:mM,getAwaitedType:e=>SM(e),getReturnTypeOfSignature:sm,isNullableType:eI,getNullableType:mC,getNonNullableType:wC,getNonOptionalType:IC,getTypeArguments:Xg,typeToTypeNode:ue.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ue.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ue.signatureToSignatureDeclaration,symbolToEntityName:ue.symbolToEntityName,symbolToExpression:ue.symbolToExpression,symbolToNode:ue.symbolToNode,symbolToTypeParameterDeclarations:ue.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ue.symbolToParameterDeclaration,typeParameterToDeclaration:ue.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=Nc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=_d();let r=!1;return i(),n.delete("this"),Pf(n);function i(){for(;e;){switch(C_(e)&&e.locals&&!uf(e)&&a(e.locals,t),e.kind){case 307:if(!aO(e))break;case 267:s(os(e).exports,2623475&t);break;case 266:a(os(e).exports,8&t);break;case 231:e.name&&o(e.symbol,t);case 263:case 264:r||a(x_(os(e)),788968&t);break;case 218:e.name&&o(e.symbol,t)}Xf(e)&&o(Te,t),r=Qv(e),e=e.parent}a(me,t)}function o(e,t){if(Ex(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function a(e,t){t&&e.forEach((e=>{o(e,t)}))}function s(e,t){t&&e.forEach((e=>{ld(e,281)||ld(e,280)||"default"===e.escapedName||o(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=Nc(e);return t?xJ(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=Nc(e);return t?function(e){if(nN(e)&&cE(e.parent)&&e.parent.name===e){const t=qv(e),n=BR(e.parent.expression);return q(1048576&n.flags?n.types:[n],(e=>L(Sf(e),(e=>yf(t,e.keyType)))))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=Nc(e);return t?function(e){if(e&&304===e.kind)return Ja(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=Nc(e,FP);return t?function(e){return FP(e)?e.parent.parent.moduleSpecifier?Ta(e.parent.parent,e):Ja(e.propertyName||e.name,2998271):Ja(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>is(e.exportSymbol||e),getTypeAtLocation:e=>{const t=Nc(e);return t?SJ(t):Et},getTypeOfAssignmentPattern:e=>{const t=Nc(e,Ju);return t&&kJ(t)||Et},getPropertySymbolOfDestructuringAssignment:e=>{const t=Nc(e,nN);return t?function(e){const t=kJ(yt(e.parent.parent,Ju));return t&&ef(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>Gs(e,Nc(t),n,r),typeToString:(e,t,n)=>Ys(e,Nc(t),n),symbolToString:(e,t,n,r)=>Hs(e,Nc(t),n,r),typePredicateToString:(e,t,n)=>ic(e,Nc(t),n),writeSignature:(e,t,n,r,i)=>Gs(e,Nc(t),n,r,i),writeType:(e,t,n,r)=>Ys(e,Nc(t),n,r),writeSymbol:(e,t,n,r,i)=>Hs(e,Nc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>ic(e,Nc(t),n,r),getAugmentedPropertiesOfType:DJ,getRootSymbols:function e(t){const n=function(e){if(6&wx(e))return H(Ko(e).containingType.types,(t=>ef(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:Sn(function(e){let t,n=e;for(;n=Ko(n).target;)t=n;return t}(e))}}(t);return n?q(n,e):[t]},getSymbolOfExpando:UO,getContextualType:(e,t)=>{const n=Nc(e,s_);if(n)return 4&t?$e(n,(()=>$F(n,t))):$F(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=Nc(e,Ru);return t?NF(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=Nc(e,Yu);return n&&yF(n,t)},getContextualTypeForJsxAttribute:e=>{const t=Nc(e,R_);return t&&AF(t,void 0)},isContextSensitive:NS,getTypeOfPropertyOfContextualType:wF,getFullyQualifiedName:Ba,getResolvedSignature:(e,t,n
6)=>Ve(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];$e(t,(()=>Ve(e,r,void 0,0)));for(const i of r)n.add(i);r.length=0,ze(t,(()=>Ve(e,r,void 0,0)));for(const i of r)n.add(i);return Xe(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>ze(e,(()=>Ve(e,t,n,16))),getExpandedParameters:O_,hasEffectiveRestParameter:vL,containsArgumentsReference:Qf,getConstantValue:e=>{const t=Nc(e,HJ);return t?KJ(t):void 0},isValidPropertyAccess:(e,t)=>{const n=Nc(e,Gu);return!!n&&function(e,t){switch(e.kind){case 211:return MI(e,108===e.expression.kind,t,ew(qR(e.expression)));case 166:return MI(e,!1,t,ew(qR(e.left)));case 205:return MI(e,!1,t,Mx(e))}}(n,Ec(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=Nc(e,cE);return!!r&&RI(r,t,n)},getSignatureFromDeclaration:e=>{const t=Nc(e,vu);return t?jf(t):void 0},isImplementationOfOverload:e=>{const t=Nc(e,vu);return t?JJ(t):void 0},getImmediateAliasedSymbol:pA,getAliasedSymbol:Ia,getEmitResolver:function(e,t,n){return n||nJ(e,t),le},requiresAddingImplicitUndefined:UJ,getExportsOfModule:Qa,getExportsAndPropertiesOfModule:function(e){const t=Qa(e),n=Wa(e);if(n!==e){const e=Gl(n);Za(e)&&he(t,Xd(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ts(e).forEach(((e,n)=>{Ts(n)||t(e,n)}));const n=Wa(e);if(n!==e){const e=Gl(n);Za(e)&&function(e,t){3670016&(e=Pp(e)).flags&&Wd(e).members.forEach(((e,n)=>{ws(e,n)&&t(e,n)}))}(e,((e,n)=>{t(e,n)}))}},getSymbolWalker:oB((function(e){return Nm(e)||Ct}),om,sm,Au,Wd,Gl,Qw,Yd,Fb,Xg),getAmbientModules:function(){return Wn||(Wn=[],me.forEach(((e,t)=>{BB.test(t)&&Wn.push(e)}))),Wn},getJsxIntrinsicTagNamesAt:function(e){const t=NA(MB.IntrinsicElements,e);return t?Xd(t):c},isOptionalParameter:e=>{const t=Nc(e,bN);return!!t&&If(t)},tryGetMemberInModuleExports:(e,t)=>Ya(Ec(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=Ya(e,t);if(n)return n;const r=Wa(t);if(r===t)return;const i=Gl(r);return Za(i)?ef(i,e):void 0}(Ec(e),t),tryFindAmbientModule:e=>Ff(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>Ff(e,!1),getApparentType:Ep,getUnionType:mv,isTypeAssignableTo:jS,createAnonymousType:Ns,createSignature:E_,createSymbol:Io,createIndexInfo:pg,getAnyType:()=>Ct,getStringType:()=>zt,getStringLiteralType:Tx,getNumberType:()=>$t,getNumberLiteralType:Cx,getBigIntType:()=>Vt,createPromiseType:BL,createArrayType:jy,getElementTypeOfArrayType:lT,getBooleanType:()=>Qt,getFalseType:e=>e?Wt:Ht,getTrueType:e=>e?Kt:Gt,getVoidType:()=>en,getUndefinedType:()=>Lt,getNullType:()=>Ut,getESSymbolType:()=>Yt,getNeverType:()=>nn,getOptionalType:()=>Jt,getPromiseType:()=>Cy(!1),getPromiseLikeType:()=>wy(!1),getAsyncIterableType:()=>{const e=Ny(!1);if(e!==Ln)return e},isSymbolAccessible:js,isArrayType:oT,isTupleType:KT,isArrayLikeType:uT,isEmptyAnonymousObjectType:xk,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(HP(t.name)?Tx(kC(t.name)):qv(t.name)),r=n&&NC(n)?EC(n):void 0,i=void 0===r?void 0:bc(e,r);return!!i&&CT(i)&&!jS(SJ(t),i)}))},getExactOptionalProperties:function(e){return Xd(e).filter((e=>$C(Gl(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=mv(e);if(!(1048576&t.flags))return DJ(t);const n=_d();for(const r of e)for(const{escapedName:e}of DJ(r))if(!n.has(e)){const r=Fp(t,e);r&&n.set(e,r)}return Xe(n.values())},getSuggestedSymbolForNonexistentProperty:DI,getSuggestedSymbolForNonexistentJSXAttribute:EI,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>FI(e,Ec(t),n),getSuggestedSymbolForNonexistentModule:AI,getSuggestedSymbolForNonexistentClassMember:kI,getBaseConstraintOfType:op,getDefaultFromTypeParameter:e=>e&&262144&e.flags?fp(e):void 0,resolveName:(e,t,n,r)=>Me(t,Ec(e),n,void 0,!1,r),getJsxNamespace:e=>Pc(bo(e)),getJsxFragmentFactory:e=>{const t=dU(e);return t&&Pc(Fb(t).escapedText)},getAccessibleSymbolChain:Fs,getTypePredicateOfSignature:om,resolveExternalModuleName:e=>{const t=Nc(e,s_);return t&&qa(t,t,!0)},resolveExternalModuleSymbol:Wa,tryGetThisTypeAt:(e,t,n)=>{const r=Nc(e);return r&&IP(r,t,n)},getTypeArgumentConstraint:e=>{const t=Nc(e,Mu);return t&&function(e){const t=ht(e.parent,X_);if(!t)return;const n=iM(t);if(!n)return;const r=Yd(n[t.typeArguments.indexOf(e)]);return r&&hS(r,Kx(n,nM(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=Nc(n,nF)||En.fail("Could not determine parsed source file.");if(FT(i,I,e))return c;let o;try{return t=r,dJ(i),En.assert(!!(1&Xo(i).flags)),o=he(o,co.getDiagnostics(i.fileName)),MM(KB(i),((e,t,n)=>{Ad(e)||HB(t,!!(33554432&e.flags))||(o||(o=[])).push(g(m({},n),{category:2}))})),o||c}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(Ue)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:lu,isDeclarationVisible:uc,isPropertyAccessible:jI,getTypeOnlyAliasDeclaration:Ma,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=os(e),i=Wu(r),o=w_(i),a=Gl(r),s=Ih(e)&&Au(i),c=(null==s?void 0:s.length)?w_(Ae(s),i.thisType):void 0,l=Tu(i),u=t.parent?Zv(t):Xv(t,16);return sB(e,a,l,c,i,o,u,eb(t),Qv(t),!1,Ic(n))},isTypeParameterPossiblyReferenced:uS,typeHasCallOrConstructSignatures:NJ,getSymbolFlags:Oa};function ze(e,t){if(e=wc(e,Qu)){const n=[],r=[];for(;e;){const t=Xo(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,iC(e)){const t=Ko(os(e)),n=t.type;r.push([t,n]),t.type=void 0}e=wc(e.parent,Qu)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function $e(e,t){const n=wc(e,Yu);if(n){let t=e;do{Xo(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}k=!0;const r=ze(e,t);if(k=!1,n){let t=e;do{Xo(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Ve(e,t,n,r){const i=Nc(e,Yu);xe=n;const o=i?jO(i,t,r):void 0;return xe=void 0,o}var We=new Map,He=new Map,Ke=new Map,Qe=new Map,Ye=new Map,Ze=new Map,et=new Map,rt=new Map,it=new Map,ot=new Map,at=new Map,lt=new Map,ut=new Map,_t=new Map,dt=new Map,ft=[],gt=new Map,vt=new Set,bt=Io(4,"unknown"),xt=Io(0,"__resolving__"),St=new Map,kt=new Map,Tt=new Set,Ct=xs(1,"any"),wt=xs(1,"any",262144,"auto"),Dt=xs(1,"any",void 0,"wildcard"),Nt=xs(1,"any",void 0,"blocked string"),Et=xs(1,"error"),Pt=xs(1,"unresolved"),Ft=xs(1,"any",65536,"non-inferrable"),At=xs(1,"intrinsic"),It=xs(2,"unknown"),Lt=xs(32768,"undefined"),Rt=K?Lt:xs(32768,"undefined",65536,"widening"),Mt=xs(32768,"undefined",void 0,"missing"),Bt=se?Mt:Lt,Jt=xs(32768,"undefined",void 0,"optional"),Ut=xs(65536,"null"),qt=K?Ut:xs(65536,"null",65536,"widening"),zt=xs(4,"string"),$t=xs(8,"number"),Vt=xs(64,"bigint"),Wt=xs(512,"false",void 0,"fresh"),Ht=xs(512,"false"),Kt=xs(512,"true",void 0,"fresh"),Gt=xs(512,"true");Kt.regularType=Gt,Kt.freshType=Kt,Gt.regularType=Gt,Gt.freshType=Kt,Wt.regularType=Ht,Wt.freshType=Wt,Ht.regularType=Ht,Ht.freshType=Wt;var Xt,Qt=mv([Ht,Gt]),Yt=xs(4096,"symbol"),en=xs(16384,"void"),nn=xs(131072,"never"),rn=xs(131072,"never",262144,"silent"),on=xs(131072,"never",void 0,"implicit"),an=xs(131072,"never",void 0,"unreachable"),cn=xs(67108864,"object"),ln=mv([zt,$t]),un=mv([zt,$t,Yt]),_n=mv([$t,Vt]),dn=mv([zt,$t,Qt,Vt,Ut,Lt]),gn=lb(["",""],[$t]),hn=Yx((e=>{return 262144&e.flags?!(t=e).constraint&&!Tg(t)||t.constraint===Mn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=ks(t.symbol),t.restrictiveInstantiation.constraint=Mn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),xn=Yx((e=>262144&e.flags?Dt:e),(()=>"(permissive mapper)")),kn=xs(131072,"never",void 0,"unique literal"),Cn=Yx((e=>262144&e.flags?kn:e),(()=>"(unique literal mapper)")),wn=Yx((e=>(!Xt||e!==Jn&&e!==Un&&e!==qn||Xt(!0),e)),(()=>"(unmeasurable reporter)")),Dn=Yx((e=>(!Xt||e!==Jn&&e!==Un&&e!==qn||Xt(!1),e)),(()=>"(unreliable reporter)")),Nn=Ns(void 0,T,c,c,c),Pn=Ns(void 0,T,c,c,c);
6Pn.objectFlags|=2048;var Fn=Io(2048,"__type");Fn.members=_d();var An=Ns(Fn,T,c,c,c),In=Ns(void 0,T,c,c,c),On=K?mv([Lt,Ut,In]):It,Ln=Ns(void 0,T,c,c,c);Ln.instantiations=new Map;var Rn=Ns(void 0,T,c,c,c);Rn.objectFlags|=262144;var Mn=Ns(void 0,T,c,c,c),jn=Ns(void 0,T,c,c,c),Bn=Ns(void 0,T,c,c,c),Jn=ks(),Un=ks();Un.constraint=Jn;var qn=ks(),zn=ks(),$n=ks();$n.constraint=zn;var Vn,Wn,Hn,Kn,Gn,Xn,Qn,Yn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr,lr,ur,_r,dr,fr,mr,gr,hr,yr,vr,br,kr,Tr,Cr,wr,Dr,Nr,Er,Pr,Fr,Ar,Ir,Or,Lr,Rr,Mr,jr,Br,Jr,Ur,qr,zr,$r,Vr,Wr,Hr,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri=Of(1,"<<unresolved>>",0,Ct),ii=E_(void 0,void 0,void 0,c,Ct,void 0,0,0),oi=E_(void 0,void 0,void 0,c,Et,void 0,0,0),ai=E_(void 0,void 0,void 0,c,Ct,void 0,0,0),si=E_(void 0,void 0,void 0,c,rn,void 0,0,0),ci=pg($t,zt,!0),li=new Map,ui={get yieldType(){return En.fail("Not supported")},get returnType(){return En.fail("Not supported")},get nextType(){return En.fail("Not supported")}},_i=vj(Ct,Ct,Ct),di=vj(Ct,Ct,It),pi=vj(nn,Ct,Lt),fi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Nr||(Nr=dy("AsyncIterator",3,e))||Ln},getGlobalIterableType:Ny,getGlobalIterableIteratorType:function(e){return Er||(Er=dy("AsyncIterableIterator",1,e))||Ln},getGlobalGeneratorType:function(e){return Pr||(Pr=dy("AsyncGenerator",3,e))||Ln},resolveIterationType:(e,t)=>SM(e,t,Pa.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:Pa.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Pa.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:Pa.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return br||(br=dy("Iterator",3,e))||Ln},getGlobalIterableType:Ey,getGlobalIterableIteratorType:function(e){return kr||(kr=dy("IterableIterator",1,e))||Ln},getGlobalGeneratorType:function(e){return Tr||(Tr=dy("Generator",3,e))||Ln},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:Pa.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Pa.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:Pa.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},gi=new Map,hi=new Map,yi=0,vi=0,bi=0,xi=!1,Si=0,ki=[],Ti=[],Ci=[],wi=0,Di=[],Ni=[],Ei=0,Pi=Tx(""),Fi=Cx(0),Ai=Nx({negative:!1,base10Value:"0"}),Oi=[],Li=[],Ri=[],Mi=0,ji=!1,Bi=0,Ji=10,Ui=[],qi=[],zi=[],$i=[],Vi=[],Wi=[],Hi=[],Ki=[],Gi=[],Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=0,so=Fy(),co=Fy(),lo=mv(Xe(WB.keys(),Tx)),uo=new Map,_o=new Map,po=new Map,fo=new Map,mo=new Map,go=new Map,ho=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===I.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const n of e.getSourceFiles())Zj(n,I);let t;Vn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!_f(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)so.add(Gp(t,Pa.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Wo(me,n.locals)}n.jsGlobalAugmentations&&Wo(me,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Hn=re(Hn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(((e,t)=>{me.has(t)||me.set(t,e)}))}if(t)for(const e of t)for(const t of e)Tp(t.parent)&&Ho(t);if(function(){const e=ge.escapedName,t=me.get(e);t?d(t.declarations,(t=>{_C(t)||so.add(Gp(t,Pa.Declaration_name_conflicts_with_built_in_global_identifier_0,Pc(e)))})):me.set(e,ge)}(),Ko(ge).type=Rt,Ko(Te).type=dy("IArguments",0,!0),Ko(bt).type=Et,Ko(be).type=Ss(16,be),Zn=dy("Array",1,!0),Gn=dy("Object",0,!0),Xn=dy("Function",0,!0),Qn=Y&&dy("CallableFunction",0,!0)||Xn,Yn=Y&&dy("NewableFunction",0,!0)||Xn,tr=dy("String",0,!0),nr=dy("Number",0,!0),rr=dy("Boolean",0,!0),ir=dy("RegExp",0,!0),ar=jy(Ct),(sr=jy(wt))===Nn&&(sr=Ns(void 0,T,c,c,c)),er=Iy("ReadonlyArray",1)||Zn,cr=er?Ly(er,[Ct]):ar,or=Iy("ThisType",1),t)for(const e of t)for(const t of e)Tp(t.parent)||Ho(t);Vn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?Pa.Cannot_redeclare_block_scoped_variable_0:Pa.Duplicate_identifier_0;for(const o of t)Vo(o,i,r,n);for(const o of n)Vo(o,i,r,t)}));else{const r=Xe(n.keys()).join(", ");so.add(DT(Gp(e,Pa.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Gp(t,Pa.Conflicts_are_in_this_file))),so.add(DT(Gp(t,Pa.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Gp(e,Pa.Conflicts_are_in_this_file)))}})),Vn=void 0}(),Ue;function yo(e){return e?dt.get(e):void 0}function vo(e,t){return e&&dt.set(e,t),t}function bo(e){if(e){const t=Id(e);if(t)if(UP(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=pt(n)?n[0]:n;if(t.localJsxFragmentFactory=iO(e.arguments.factory,R),lJ(t.localJsxFragmentFactory,So,gu),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=Fb(t.localJsxFragmentFactory).escapedText}const r=dU(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=Fb(r).escapedText}else{const e=xo(t);if(e)return t.localJsxNamespace=e}}return ti||(ti="React",I.jsxFactory?(lJ(ni=iO(I.jsxFactory,R),So),ni&&(ti=Fb(ni).escapedText)):I.reactNamespace&&(ti=Ec(I.reactNamespace))),ni||(ni=_w.createQualifiedName(_w.createIdentifier(Pc(ti)),"createElement")),ti}function xo(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=pt(t)?t[0]:t;if(e.localJsxFactory=iO(n.arguments.factory,R),lJ(e.localJsxFactory,So,gu),e.localJsxFactory)return e.localJsxNamespace=Fb(e.localJsxFactory).escapedText}}function So(e){return $T(e,-1,-1),vJ(e,So,void 0)}function ko(e,t,n,...r){const i=Co(t,n,...r);return i.skippedOn=e,i}function To(e,t,...n){return e?Gp(e,t,...n):xS(t,...n)}function Co(e,t,...n){const r=To(e,t,...n);return so.add(r),r}function wo(e,t){e?so.add(t):co.add(g(m({},t),{category:2}))}function Do(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=Id(t);
6wo(e,"message"in n?vS(i,0,0,n,...r):nf(i,n))}else wo(e,"message"in n?Gp(t,n,...r):Yp(Id(t),t,n))}function No(e,t,n,...r){const i=Co(e,n,...r);return t&&DT(i,Gp(e,Pa.Did_you_forget_to_use_await)),i}function Eo(e,t){const n=Array.isArray(e)?d(e,ll):ll(e);return n&&DT(t,Gp(n,Pa.The_declaration_was_marked_as_deprecated_here)),co.add(t),t}function Po(e){const t=cs(e);return t&&_(e.declarations)>1?64&t.flags?te(e.declarations,Fo):C(e.declarations,Fo):!!e.valueDeclaration&&Fo(e.valueDeclaration)||_(e.declarations)&&C(e.declarations,Fo)}function Fo(e){return!!(536870912&QU(e))}function Ao(e,t,n){return Eo(t,Gp(e,Pa._0_is_deprecated,n))}function Io(e,t,n){h++;const r=new s(33554432|e,t);return r.links=new QB,r.links.checkFlags=n||0,r}function Oo(e,t){const n=Io(1,e);return n.links.type=t,n}function Lo(e,t){const n=Io(4,e);return n.links.type=t,n}function Ro(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Mo(e,t){t.mergeId||(t.mergeId=zB,zB++),Ui[t.mergeId]=e}function jo(e){const t=Io(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),Mo(t,e),t}function Bo(e,t,n=!1){if(!(e.flags&Ro(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Aa(e);if(n===bt)return t;if(n.flags&Ro(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=jo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&Fg(e,t.valueDeclaration),he(e.declarations,t.declarations),t.members&&(e.members||(e.members=_d()),Wo(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=_d()),Wo(e.exports,t.exports,n)),n||Mo(e,t)}else 1024&e.flags?e!==be&&Co(t.declarations&&Jc(t.declarations[0]),Pa.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Hs(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?Pa.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?Pa.Cannot_redeclare_block_scoped_variable_0:Pa.Duplicate_identifier_0,a=t.declarations&&Id(t.declarations[0]),s=e.declarations&&Id(e.declarations[0]),c=Ld(a,I.checkJs),l=Ld(s,I.checkJs),u=Hs(t);if(a&&s&&Vn&&!n&&a!==s){const n=-1===va(a.path,s.path)?a:s,o=n===a?s:a,_=X(Vn,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=X(_.conflictingSymbols,u,(()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]})));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||Uo(t,o,u,e),l||Uo(e,o,u,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)ye(e,n)}}function Uo(e,t,n,r){d(e.declarations,(e=>{Vo(e,t,n,r.declarations)}))}function Vo(e,t,n,r){const i=(lg(e,!1)?_g(e):Jc(e))||e,o=function(e,t,...n){const r=e?Gp(e,t,...n):xS(t,...n);return so.lookup(r)||(so.add(r),r)}(i,t,n);for(const a of r||c){const e=(lg(a,!1)?_g(a):Jc(a))||a;if(e===i)continue;o.relatedInformation=o.relatedInformation||[];const t=Gp(e,Pa._0_was_also_declared_here,n),r=Gp(e,Pa.and_here);_(o.relatedInformation)>=5||te(o.relatedInformation,(e=>0===wS(e,r)||0===wS(e,t)))||DT(o,_(o.relatedInformation)?r:t)}}function Wo(e,t,n=!1){t.forEach(((t,r)=>{const i=e.get(r);e.set(r,i?Bo(i,t,n):is(t))}))}function Ho(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(Tp(i))Wo(me,i.symbol.exports);else{let t=za(e,e,33554432&e.parent.parent.flags?void 0:Pa.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!t)return;if(t=Wa(t),1920&t.flags)if(te(Hn,(e=>t===e.symbol))){const n=Bo(i.symbol,t,!0);Kn||(Kn=new Map),Kn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=b_(t,"resolvedExports");for(const[n,r]of Xe(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Bo(e.get(n),r)}Bo(t,i.symbol)}else Co(e,Pa.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else En.assert(i.symbol.declarations.length>1)}function Ko(e){var t;if(33554432&e.flags)return e.links;const n=eJ(e);return null!=(t=qi[n])?t:qi[n]=new QB}function Xo(e){const t=ZB(e);return zi[t]||(zi[t]=new YB)}
6function Qo(e,t,n){if(n){const r=is(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags&&Oa(r)&n)return r}}}function Yo(t,n){const r=Id(t),i=Id(n),o=Up(t);if(r!==i){if(B&&(r.externalModuleIndicator||i.externalModuleIndicator)||!I.outFile||Pv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||Pv(n)||Yw(n))return!0;if(t.pos<=n.pos&&(!kN(t)||!Sm(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=Bh(n,208);return e?wc(e,oE)!==wc(t,oE)||t.pos<e.pos:Yo(Bh(t,260),n)}if(260===t.kind)return!function(e,t){switch(e.parent.parent.kind){case 243:case 248:case 250:if(la(t,e,o))return!0}const n=e.parent.parent;return m_(n)&&la(t,n.expression,o)}(t,n);if(Du(t)){const e=wc(n,(e=>e===t?"quit":yN(e)?e.parent.parent===t:!z&&xN(e)&&(e.parent===t||CN(e.parent)&&e.parent.parent===t||El(e.parent)&&e.parent.parent===t||kN(e.parent)&&e.parent.parent===t||bN(e.parent)&&e.parent.parent.parent===t)));return!e||!(z||!xN(e))&&!!wc(n,(t=>t===e?"quit":vu(t)&&!vm(t)))}return kN(t)?!s(t,n,!1):!fc(t,t.parent)||!(V&&um(t)===um(n)&&a(n,t))}return!(!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)&&(277!==n.kind||!n.isExportEquals)&&(!a(n,t)||V&&um(t)&&(kN(t)||fc(t,t.parent))&&s(t,n,!0)));function a(e,t){return!!wc(e,(n=>{if(n===o)return"quit";if(vu(n))return!0;if(wN(n))return t.pos<e.pos;const r=ht(n.parent,kN);if(r&&r.initializer===n)if(Qv(n.parent)){if(174===t.kind)return!0;if(kN(t)&&um(e)===um(t)){const e=t.name;if((nN(e)||rN(e))&&function(e,t,n,r,i){for(const o of n)if(o.pos>=r&&o.pos<=i){const n=_w.createPropertyAccessExpression(_w.createThis(),e);if(HT(n.expression,n),HT(n,o),n.flowNode=o.returnFlowNode,!Sk(BN(n,t,TC(t))))return!0}return!1}(e,Gl(os(t)),L(t.parent.members,wN),t.parent.pos,n.pos))return!0}}else if(172!==t.kind||Qv(t)||um(e)!==um(t))return!0;return!1}))}function s(e,t,n){return!(t.end>e.end)&&void 0===wc(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(kN(e)&&t.parent===e.parent||fc(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function Zo(e){return Xo(e).declarationRequiresScopeChange}function ea(e,t){Xo(e).declarationRequiresScopeChange=t}function ta(e,t,n){return t?DT(e,Gp(t,281===t.kind||278===t.kind||280===t.kind?Pa._0_was_exported_here:Pa._0_was_imported_here,n)):e}function na(e){return mt(e)?Pc(e):zp(e)}function ia(e,t,n){if(!nN(e)||e.escapedText!==t||pJ(e)||Pv(e))return!1;const r=fm(e,!1,!1);let i=r;for(;i;){if(Du(i.parent)){const o=os(i.parent);if(!o)break;if(ef(Gl(o),t))return Co(e,Pa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,na(n),Hs(o)),!0;if(i===r&&!Qv(i)&&ef(Wu(o).thisType,t))return Co(e,Pa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,na(n)),!0}i=i.parent}return!1}function oa(e){const t=sa(e);return!(!t||!Ja(t,64,!0)||(Co(e,Pa.Cannot_extend_an_interface_0_Did_you_mean_implements,ap(t)),0))}function sa(e){switch(e.kind){case 80:case 211:return e.parent?sa(e.parent):void 0;case 233:if(Pb(e.expression))return e.expression;default:return}}function ca(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function la(e,t,n){return!!t&&!!wc(e,(e=>e===t||!!(e===n||vu(e)&&(!vm(e)||3&Qh(e)))&&"quit"))}function ua(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function _a(e){return e.declarations&&D(e.declarations,da)}function da(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&Ph(e)||kE(e)&&2===hg(e)&&Ph(e)||Hx(e)&&kE(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&pa(e.parent.right)||304===e.kind||303===e.kind&&pa(e.initializer)||260===e.kind&&Zm(e)||208===e.kind&&Zm(e.parent.parent)}function pa(e){return Eh(e)||mE(e)&&BO(e)}function fa(e,t){const n=wa(e);if(n){const e=Xx(n.expression).arguments[0];return nN(n.name)?Aa(ef(rm(e),n.name.escapedText)):void 0}if(oP(e)||283===e.moduleReference.kind){const t=qa(e,Um(e)||Jm(e)),n=Wa(t);return La(e,t,n,!1),n}const r=ja(e.moduleReference,t);return function(e,t){if(La(e,void 0,t,!1)&&!e.isTypeOnly){const t=Ma(os(e)),n=281===t.kind||278===t.kind,r=n?Pa.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Pa.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?Pa._0_was_exported_here:Pa._0_was_imported_here,o=278===t.kind?"*":Pc(t.name.escapedText);DT(Co(e.moduleReference,r),Gp(t,i,o))}}(e,r),r}function ma(e,t,n,r){const i=e.exports.get("export="),o=i?ef(Gl(i),t,!0):e.exports.get(t),a=Aa(o,r);return La(n,o,a,!1),a}function ga(e){return NP(e)&&!e.isExportEquals||Xv(e,2048)||FP(e)||CP(e)}function ha(t){return Z_(t)?e.getModeForUsageLocation(Id(t),t):void 0}function ya(e,t){return 99===e&&1===t}function ba(e){return 99===ha(e)&&tn(e.text,".json")}function xa(e,t,n,r){const i=e&&ha(r);if(e&&void 0!==i&&100<=B&&B<=199){const t=ya(i,e.impliedNodeFormat);if(99===i||t)return t}if(!W)return!1;if(!e||e.isDeclarationFile){const e=ma(t,"default",void 0,!0);return!(e&&te(e.declarations,ga)||ma(t,Ec("__esModule"),void 0,n))}return $m(e)?"object"!=typeof e.externalModuleIndicator&&!ma(t,Ec("__esModule"),void 0,n):Xa(t)}function Sa(e,t,n){var r;let i;i=Sp(e)?e:ma(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(nF),a=ka(t);if(!a)return i;const s=ba(a),c=xa(o,e,n,a);if(i||c||s){if(c||s){const r=Wa(e,n)||Aa(e,n);return La(t,e,r,!1),r}}else if(Xa(e)&&!W){const n=B>
6=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=Co(t.name,Pa.Module_0_can_only_be_default_imported_using_the_1_flag,Hs(e),n);r&&DT(i,Gp(r,Pa.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else yP(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))Co(t.name,Pa.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Hs(e),Hs(t.symbol));else{const n=Co(t.name,Pa.Module_0_has_no_default_export,Hs(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(EP(e)&&e.moduleSpecifier&&(null==(n=null==(t=qa(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&DT(n,Gp(e,Pa.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Ca(e,e,t,tu(t)&&t.propertyName||t.name);return La(t,i,void 0,!1),i}function ka(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return LP(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return En.assertNever(e)}}function Ta(e,t,n=!1){var r;const i=Um(e)||e.moduleSpecifier,o=qa(e,i),a=!cE(t)&&t.propertyName||t.name;if(!nN(a))return;const s=Ha(o,i,!1,"default"===a.escapedText&&W);if(s&&a.escapedText){if(Sp(o))return o;let c;c=o&&o.exports&&o.exports.get("export=")?ef(Gl(s),a.escapedText,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Aa(ef(Mx(n),t))}}(s,a.escapedText),c=Aa(c,n);let l=function(e,t,n,r){var i;if(1536&e.flags){const o=es(e).get(t.escapedText),a=Aa(o,r);return La(n,o,a,!1,null==(i=Ko(e).typeOnlyExportStarMap)?void 0:i.get(t.escapedText),t.escapedText),a}}(s,a,t,n);if(void 0===l&&"default"===a.escapedText){const e=null==(r=o.declarations)?void 0:r.find(nF);(ba(i)||xa(e,o,n,i))&&(l=Wa(o,n)||Aa(o,n))}const u=l&&c&&l!==c?function(e,t){if(e===bt&&t===bt)return bt;if(790504&e.flags)return e;const n=Io(e.flags|t.flags,e.escapedName);return En.assert(e.declarations||t.declarations),n.declarations=ae(re(e.declarations,t.declarations),Ot),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(c,l):l||c;return u||Ca(o,s,e,a),u}}function Ca(e,t,n,r){var i;const o=Ba(e,n),a=zp(r),s=AI(r,t);if(void 0!==s){const e=Hs(s),t=Co(r,Pa._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&DT(t,Gp(s.valueDeclaration,Pa._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?Co(r,Pa.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=ht(r.valueDeclaration,C_))?void 0:o.locals)?void 0:a.get(t.escapedText),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)fs(r,s)?function(e,t,n,r){B>=5?Co(t,$S(I)?Pa._0_can_only_be_imported_by_using_a_default_import:Pa._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Wm(e)?Co(t,$S(I)?Pa._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Pa._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Co(t,$S(I)?Pa._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Pa._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):Co(t,Pa.Module_0_has_no_exported_member_1,i,n);else{const e=c?w(Pf(c),(e=>!!fs(e,s))):void 0,r=e?Co(t,Pa.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,Hs(e)):Co(t,Pa.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&DT(r,...j(s.declarations,((e,t)=>Gp(e,0===t?Pa._0_is_declared_here:Pa.and_here,n))))}}else Co(t,Pa.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function wa(e){if(oP(e)&&e.initializer&&cE(e.initializer))return e.initializer}
6function Da(e,t,n){if("default"===Fc(e.propertyName||e.name)){const t=ka(e),r=t&&qa(e,t);if(r)return Sa(r,e,!!n)}const r=e.parent.parent.moduleSpecifier?Ta(e.parent.parent,e,n):Ja(e.propertyName||e.name,t,!1,n);return La(e,void 0,r,!1),r}function Na(e,t){if(NE(e))return kR(e).symbol;if(!gu(e)&&!Pb(e))return;const n=Ja(e,901119,!0,t);return n||(kR(e),Xo(e).resolvedSymbol)}function Ea(e,t=!1){switch(e.kind){case 271:case 260:return fa(e,t);case 273:return function(e,t){const n=qa(e,e.parent.moduleSpecifier);if(n)return Sa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=qa(e,n),i=Ha(r,n,t,!1);return La(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&qa(e,n),i=n&&Ha(r,n,t,!1);return La(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(DP(e)&&"default"===Fc(e.propertyName||e.name)){const n=ka(e),r=n&&qa(e,n);if(r)return Sa(r,e,t)}const n=oE(e)?yy(e):e.parent.parent.parent,r=wa(n),i=Ta(n,r||e,t),o=e.propertyName||e.name;return r&&i&&nN(o)?Aa(ef(Gl(i),o.escapedText),t):(La(e,void 0,i,!1),i)}(e,t);case 281:return Da(e,901119,t);case 277:case 226:return function(e,t){const n=Na(NP(e)?e.expression:e.right,t);return La(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(T_(e.parent)){const n=Wa(e.parent.symbol,t);return La(e,void 0,n,!1),n}}(e,t);case 304:return Ja(e.name,901119,!0,t);case 303:return Na(e.initializer,t);case 212:case 211:return function(e,t){if(kE(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return Na(e.parent.right,t)}(e,t);default:return En.fail()}}function Fa(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Aa(e,t){return!t&&Fa(e)?Ia(e):e}function Ia(e){En.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=Ko(e);if(t.aliasTarget)t.aliasTarget===xt&&(t.aliasTarget=bt);else{t.aliasTarget=xt;const n=_a(e);if(!n)return En.fail();const r=Ea(n);t.aliasTarget===xt?t.aliasTarget=r||bt:Co(n,Pa.Circular_definition_of_import_alias_0,Hs(e))}return t.aliasTarget}function Oa(e,t,n){const r=t&&Ma(e),i=r&&EP(r),o=r&&(i?qa(r.moduleSpecifier,r.moduleSpecifier,!0):Ia(r.symbol)),a=i&&o?ts(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=ms(Ia(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===bt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function La(e,t,n,r,i,o){if(!e||cE(e))return!1;const a=os(e);if(iu(e))return Ko(a).typeOnlyDeclaration=e,!0;if(i){const e=Ko(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=Ko(a);return Ra(s,t,r)||Ra(s,n,r)}function Ra(e,t,n){var r,i,o;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=null!=(r=null==(o=t.exports)?void 0:o.get("export="))?r:t,a=n.declarations&&w(n.declarations,iu);e.typeOnlyDeclaration=null!=(i=null!=a?a:Ko(n).typeOnlyDeclaration)&&i}return!!e.typeOnlyDeclaration}function Ma(e,t){var n;if(!(2097152&e.flags))return;const r=Ko(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=Aa(e);La(null==(n=e.declarations)?void 0:n[0],_a(e)&&pA(e),t,!0)}return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&Oa(278===r.typeOnlyDeclaration.kind?Aa(ts(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ia(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}function ja(e,t){return 80===e.kind&&Rb(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Ja(e,1920,!1,t):(En.assert(271===e.parent.kind),Ja(e,901119,!1,t))}function Ba(e,t){return e.parent?Ba(e.parent,t)+"."+Hs(e):Hs(e,t,void 0,36)}function Ja(e,t,n,r,i){if(Ud(e))return;const o=1920|(Wm(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||by(e)?Pa.Cannot_find_namespace_0:Xw(Fb(e)),s=Wm(e)&&!by(e)?function(e,t){if($h(e.parent)){const n=function(e){if(wc(e,(e=>J_(e)||16777216&e.flags?qg(e):"quit")))return;const t=ih(e);if(t&&zE(t)&&Eg(t.expression)){const e=os(t.expression.left);if(e)return Ua(e)}if(t&&mE(t)&&Eg(t.parent)&&zE(t.parent.parent)){const e=os(t.parent.left);if(e)return Ua(e)}if(t&&(Zf(t)||YP(t))&&kE(t.parent.parent)&&6===hg(t.parent.parent)){const e=os(t.parent.parent.left);if(e)return Ua(e)}const n=rh(e);if(n&&vu(n)){const e=os(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Me(n,e,t,void 0,!0)}}(e,t):void 0;if(a=is(Me(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return is(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Ja(r,o,n,!1,i);if(!c||Ud(s))return;if(c===bt)return c;if(c.valueDeclaration&&Wm(c.valueDeclaration)&&100!==US(I)&&oP(c.valueDeclaration)&&c.valueDeclaration.initializer&&GO(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=qa(e,e);if(t){const e=Wa(t);e&&(c=e)}}if(a=is(Qo(es(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=is(Qo(es(Ia(c)),s.escapedText,t))),!a){if(!n){const n=Ba(c),r=zp(s),i=AI(s,c);if(i)return void Co(s,Pa._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,Hs(i));const o=hN(e)&&function(e){for(;hN(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!yE(o.parent)&&function(e){let t=Fb(e),n=Me(t,t,111551,void 0,!0);if(n){for(;hN(t.parent);){if(n=ef(Gl(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void Co(o,Pa._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Kp(o));if(1920&t&&hN(e.parent)){const t=is(Qo(es(c),s.escapedText,788968));if(t)return void Co(e.parent.right,Pa.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Hs(t),Pc(e.parent.right.escapedText))}Co(s,Pa.Namespace_0_has_no_exported_member_1,n,r)}return}}else En.assertNever(e,"Unknown entity name kind.");return!by(e)&&gu(e)&&(2097152&a.flags||277===e.parent.kind)&&La(Nh(e),a,void 0,!0),a.flags&t||r?a:Ia(a)}function Ua(e){const t=e.parent.valueDeclaration;if(t)return(og(t)?cg(t):K_(t)?sg(t):void 0)||t}function qa(e,t,n){const r=1===US(I)?Pa.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Pa.Cannot_find_module_0_or_its_corresponding_type_declarations;return za(e,t,n?void 0:r)}function za(e,t,n,r=!1){return Z_(t)?$a(e,t.text,n,t,r):void 0}function $a(t,n,r,i,o=!1){var a,s,c,l,u,_,d,p,f,m,g;fn(n,"@types/")&&Co(i,Pa.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,mn(n,"@types/"),n);const h=Ff(n,!0);if(h)return h;const y=Id(t),v=Z_(t)?t:(null==(a=dP(t)?t:t.parent&&dP(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=kf(t)?t:void 0)?void 0:s.argument.literal)||(Wm(t)&&VF(t)?t.moduleSpecifier:void 0)||(oP(t)&&t.initializer&&Qm(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=wc(t,xf))?void 0:c.arguments[0])||
6(null==(l=wc(t,hP))?void 0:l.moduleSpecifier)||(null==(u=wc(t,Bm))?void 0:u.moduleReference.expression)||(null==(_=wc(t,EP))?void 0:_.moduleSpecifier),b=v&&Z_(v)?e.getModeForUsageLocation(y,v):y.impliedNodeFormat,x=US(I),S=null==(d=e.getResolvedModule(y,n,b))?void 0:d.resolvedModule,k=S&&V$(I,S,y),T=S&&(!k||k===Pa.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(S.resolvedFileName);if(T){if(k&&Co(i,k,n,S.resolvedFileName),S.resolvedUsingTsExtension&&fO(n)){const e=(null==(p=wc(t,hP))?void 0:p.importClause)||wc(t,vn(gP,EP));(e&&!e.isTypeOnly||wc(t,xf))&&Co(i,Pa.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=pT(n,e);if(tk(B)||99===b){const r=fO(n)&&Uj(I);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(En.checkDefined($b(n))))}else if(S.resolvedUsingTsExtension&&!Uj(I,y.fileName)){const e=(null==(f=wc(t,hP))?void 0:f.importClause)||wc(t,vn(gP,EP));if(!(null==e?void 0:e.isTypeOnly)&&!wc(t,eE)){const e=En.checkDefined($b(n));Co(i,Pa.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}if(T.symbol){if(S.isExternalLibraryImport&&!vT(S.extension)&&Va(!1,i,y,b,S,n),3===x||99===x){const e=1===y.impliedNodeFormat&&!wc(t,xf)||!!wc(t,gP),r=wc(t,(e=>eE(e)||EP(e)||hP(e)));if(e&&99===T.impliedNodeFormat&&!FC(r))if(wc(t,gP))Co(i,Pa.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=ST(y.fileName);if(".ts"===t||".js"===t||".tsx"===t||".jsx"===t){const n=y.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0;e=n&&!n.contents.packageJsonContent.type?r?kS(void 0,Pa.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,ra(n.packageDirectory,"package.json")):kS(void 0,Pa.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,ra(n.packageDirectory,"package.json")):r?kS(void 0,Pa.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):kS(void 0,Pa.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}so.add(Yp(Id(i),i,kS(e,Pa.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return is(T.symbol)}r&&Co(i,Pa.File_0_is_not_a_module,T.fileName)}else{if(Hn){const e=pn(Hn,(e=>e.pattern),n);if(e){const t=Kn&&Kn.get(n);return is(t||e.symbol)}}if((!S||vT(S.extension)||void 0!==k)&&k!==Pa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(S){const t=e.getProjectReferenceRedirect(S.resolvedFileName);if(t)return void Co(i,Pa.Output_file_0_has_not_been_built_from_source_file_1,t,S.resolvedFileName)}if(k)Co(i,k,n,S.resolvedFileName);else{const t=Jo(n)&&!qo(n),o=3===x||99===x;if(!KS(I)&&zo(n,".json")&&1!==x&&nk(I))Co(i,Pa.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===b&&o&&t){const t=aa(n,Go(y.path)),r=null==(m=ho.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?Co(i,Pa.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):Co(i,Pa.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else(null==(g=e.getResolvedModule(y,n,b))?void 0:g.alternateResult)?Do(!0,i,kS(Dd(y,e,n,b,n),r,n)):Co(i,r,n)}}return}o?Co(i,Pa.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,S.resolvedFileName):Va(ee&&!!r,i,y,b,S,n)}}function Va(t,n,r,i,{packageId:o,resolvedFileName:a},s){let c;!Vs(s)&&o&&(c=Dd(r,e,s,i,o.name)),Do(t,n,kS(c,Pa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function Wa(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===bt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=Ko(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:jo(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=_d()),t.exports.forEac
6h(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Bo(r.exports.get(t),e):e)})),r===e&&(Ko(r).resolvedExports=void 0,Ko(r).resolvedMembers=void 0),Ko(r).cjsExportMerged=r,n.cjsExportMerged=r}(is(Aa(e.exports.get("export="),t)),is(e));return is(n)||e}}function Ha(e,t,n,r){var i;const o=Wa(e,n);if(!n&&o){if(!(r||1539&o.flags||ld(o,307))){const e=B>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Co(t,Pa.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),o}const n=t.parent;if(hP(n)&&Mg(n)||xf(n)){const t=xf(n)?n.arguments[0]:n.moduleSpecifier,r=Gl(o),a=HO(r,o,e,t);if(a)return Ka(o,a,n);const s=null==(i=null==e?void 0:e.declarations)?void 0:i.find(nF),c=s&&ya(ha(t),s.impliedNodeFormat);if($S(I)||c){let i=tf(r,0);if(i&&i.length||(i=tf(r,1)),i&&i.length||ef(r,"default",!0)||c)return Ka(o,3670016&r.flags?KO(r,o,e,t):WO(o,o.parent),n)}}}return o}function Ka(e,t,n){const r=Io(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=Wd(t);return r.links.type=Ns(r,i.members,c,c,i.indexInfos),r}function Xa(e){return void 0!==e.exports.get("export=")}function Qa(e){return Pf(ts(e))}function Ya(e,t){const n=ts(t);if(n)return n.get(e)}function Za(e){return!(402784252&e.flags||1&Bx(e)||oT(e)||KT(e))}function es(e){return 6256&e.flags?b_(e,"resolvedExports"):1536&e.flags?ts(e):e.exports||T}function ts(e){const t=Ko(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=rs(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function ns(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Aa(o)!==Aa(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:ap(r.moduleSpecifier)})}))}function rs(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t))),!(i&&i.exports&&ye(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=_d(),n=new Map;if(c.declarations)for(const r of c.declarations){const i=qa(r,r.moduleSpecifier);ns(t,e(i,r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)so.add(Gp(r,Pa.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,Pc(t)))})),ns(s,t)}return(null==o?void 0:o.isTypeOnly)&&(null!=n||(n=new Map),s.forEach(((e,t)=>n.set(t,o)))),s}(e=Wa(e))||T;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function is(e){let t;return e&&e.mergeId&&(t=Ui[e.mergeId])?t:e}function os(e){return is(e.symbol&&S_(e.symbol))}function as(e){return T_(e)?os(e):void 0}function cs(e){return is(e.parent&&S_(e.parent))}function ls(e){var t,n;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(n=e.valueDeclaration)?void 0:n.kind))&&as(e.valueDeclaration.parent)||e}function _s(t,n,r){const i=cs(t);if(i&&!(262144&t.flags))return u(i);const o=H(t.declarations,(e=>{if(!yp(e)&&e.parent){if(qs(e.parent))return os(e.parent);if(pP(e.parent)&&e.parent.parent&&Wa(os(e.parent.parent))===t)return os(e.parent.parent)}if(NE(e)&&kE(e.parent)&&64===e.parent.operatorToken.kind&&Hx(e.parent.left)&&Pb(e.parent.left.expression))return gg(e.parent.left)||fg(e.parent.left.expression)?os(Id(e)):(kR(e.parent.left.expression),Xo(e.parent.left.expression).resolvedSymbol)}));if(!_(o))return;const a=H(o,(e=>ps(e,t)?e:void 0));let s=[],l=[];for(const e of a){const[t,...n]=u(e);s=fe(s,t),l=he(l,n)}return re(s,l);function u(i){const o=H(i.declarations,d),a=n&&function(t,n){const r=Id(n),i=ZB(r),o=Ko(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;
6if(r&&r.imports){for(const e of r.imports){if(by(e))continue;const r=qa(n,e,!0);r&&ps(r,t)&&(a=fe(a,r))}if(_(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const s=e.getSourceFiles();for(const e of s){if(!aO(e))continue;const n=os(e);ps(n,t)&&(a=fe(a,n))}return o.extendedContainers=a||c}(t,n),s=function(e,t){const n=!!_(e.declarations)&&Ae(e.declarations);if(111551&t&&n&&n.parent&&oP(n.parent)&&(sE(n)&&n===n.parent.initializer||jN(n)&&n===n.parent.type))return os(n.parent)}(i,r);if(n&&i.flags&Ps(r)&&Fs(i,n,1920,!1))return fe(re(re([i],o),a),s);const l=!(i.flags&Ps(r))&&788968&i.flags&&524288&Wu(i).flags&&111551===r?Es(n,(e=>bd(e,(e=>{if(e.flags&Ps(r)&&Gl(e)===Wu(i))return e})))):void 0;let u=l?[l,...o,i]:[...o,i];return u=fe(u,s),u=he(u,a),u}function d(e){return i&&ds(e,i)}}function ds(e,t){const n=Js(e),r=n&&n.exports&&n.exports.get("export=");return r&&fs(r,t)?n:void 0}function ps(e,t){if(e===cs(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&fs(n,t))return e;const r=es(e),i=r.get(t.escapedName);return i&&fs(i,t)?i:bd(r,(e=>{if(fs(e,t))return e}))}function fs(e,t){if(is(Aa(is(e)))===is(Aa(is(t))))return e}function ms(e){return is(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function gs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Oa(e,!t))}function ys(e){var t;const n=new l(Ue,e);return f++,n.id=f,null==(t=pr)||t.recordType(n),n}function vs(e,t){const n=ys(e);return n.symbol=t,n}function bs(e){return new l(Ue,e)}function xs(e,t,n=0,r){!function(e,t){const n=`${e},${null!=t?t:""}`;Tt.has(n)&&En.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`),Tt.add(n)}(t,r);const i=ys(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Ss(e,t){const n=vs(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function ks(e){return vs(262144,e)}function Ts(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Cs(e){let t;return e.forEach(((e,n)=>{ws(e,n)&&(t||(t=[])).push(e)})),t||c}function ws(e,t){return!Ts(t)&&gs(e)}function Ds(e,t,n,r,i){const o=e;return o.members=t,o.properties=c,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==T&&(o.properties=Cs(t)),o}function Ns(e,t,n,r,i){return Ds(Ss(16,e),t,n,r,i)}function Es(e,t){let n;for(let r=e;r;r=r.parent){if(C_(r)&&r.locals&&!uf(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 307:if(!_f(r))break;case 267:const e=os(r);if(n=t((null==e?void 0:e.exports)||T,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((os(r).members||T).forEach(((e,t)=>{788968&e.flags&&(i||(i=_d())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(me,void 0,!0)}function Ps(e){return 111551===e?111551:1920}function Fs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=Ko(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Es(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s&&ZB(s)}|${n}`;if(a.has(c))return a.get(c);const l=eJ(e);let u=i.get(l);u||i.set(l,u=[]);const _=Es(t,d);return a.set(c,_),_;function d(n,i,o){if(!ye(u,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];const a=bd(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(Ux(n)&&t&&aO(Id(t)))&&(!r||te(n.declarations,Bm))&&(!o||!te(n.declarations,jm))&&(i||!ld(n,281))){const e=m(n,Ia(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(is(n.exportSymbol),void 0,i))return[e]}));return a||(n===me?m(be,be,i):void 0)}(n,i,o);return u.pop(),a}function p(e,n){return!As(e,t,n)||!!Fs(e.parent,t,Ps(n),r,i)}function f(t,r,i){return(e===(r||t)||is(e)===is(r||t))&&!te(t.declarations,qs)&&(i||p(is(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=es(t),o=i&&d(i,!0);return o&&p(e,Ps(n))?[e].concat(o):void 0}}
6function As(e,t,n){let r=!1;return Es(t,(t=>{let i=is(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!ld(i,281);return i=o?Ia(i):i,!!((o?Oa(i):i.flags)&n)&&(r=!0,!0)})),r}function Is(e,t){return 0===Bs(e,t,111551,!1,!0).accessibility}function Os(e,t,n){return 0===Bs(e,t,n,!1,!1).accessibility}function Ms(e,t,n,r,i,o){if(!_(e))return;let a,s=!1;for(const c of e){const e=Fs(c,t,r,!1);if(e){a=c;const t=zs(e[0],i);if(t)return t}if(o&&te(c.declarations,qs)){if(i){s=!0;continue}return{accessibility:0}}const l=Ms(_s(c,t,r),t,n,n===c?Ps(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:Hs(n,t,r),errorModuleName:a!==n?Hs(a,t,1920):void 0}:void 0}function js(e,t,n,r){return Bs(e,t,n,r,!0)}function Bs(e,t,n,r,i){if(e&&t){const o=Ms([e],t,e,n,r,i);if(o)return o;const a=d(e.declarations,Js);return a&&a!==Js(t)?{accessibility:2,errorSymbolName:Hs(e,t,n),errorModuleName:Hs(a),errorNode:Wm(t)?t:void 0}:{accessibility:1,errorSymbolName:Hs(e,t,n)}}return{accessibility:0}}function Js(e){const t=wc(e,Us);return t&&os(t)}function Us(e){return yp(e)||307===e.kind&&_f(e)}function qs(e){return vp(e)||307===e.kind&&_f(e)}function zs(e,t){let n;if(C(L(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!uc(t)){const o=ua(t);if(o&&!Xv(o,32)&&uc(o.parent))return r(t,o);if(oP(t)&&UE(t.parent.parent)&&!Xv(t.parent.parent,32)&&uc(t.parent.parent.parent))return r(t,t.parent.parent);if(Mp(t)&&!Xv(t,32)&&uc(t.parent))return r(t,t);if(oE(t)){if(2097152&e.flags&&Wm(t)&&(null==(n=t.parent)?void 0:n.parent)&&oP(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&UE(t.parent.parent.parent.parent)&&!Xv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&uc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=wc(t,UE);return!!Xv(e,32)||!!uc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(Xo(e).isVisible=!0,n=ve(n,r)),!0}}function $s(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!Mf(e.parent)||167===e.parent.kind||182===e.parent.kind&&e.parent.parameterName===e?1160127:166===e.kind||211===e.kind||271===e.parent.kind||166===e.parent.kind&&e.parent.left===e||211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e?1920:788968,t}function Ws(e,t,n=!0){const r=$s(e),i=Fb(e),o=Me(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&Ev(i)&&0===js(os(fm(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?zs(o,n)||{accessibility:1,errorSymbolName:ap(i),errorNode:i}:{accessibility:3,errorSymbolName:ap(i),errorNode:i}}function Hs(e,t,n,r=4,i){let o=70221824;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(o|=134217728),16&r&&(o|=1073741824);const a=4&r?ue.symbolToNode:ue.symbolToEntityName;return i?s(i).getText():kd(s);function s(r){const i=a(e,n,t,o),s=307===(null==t?void 0:t.kind)?xz():bz(),c=t&&Id(t);return s.writeNode(4,i,c,r),r}}function Gs(e,t,n=0,r,i){return i?o(i).getText():kd(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;
6const a=ue.signatureToSignatureDeclaration(e,o,t,70222336|nc(n)),s=Sz(),c=t&&Id(t);return s.writeNode(4,a,c,nv(i)),i}}function Ys(e,t,n=1064960,r=tv("")){const i=I.noErrorTruncation||1&n,o=ue.typeToTypeNode(e,t,70221824|nc(n)|(i?1:0));if(void 0===o)return En.fail("should always get typenode");const a=e!==Pt?bz():vz(),s=t&&Id(t);a.writeNode(4,o,s,r);const c=r.getText(),l=i?2*cd:2*sd;return l&&c&&c.length>=l?c.substr(0,l-3)+"...":c}function Zs(e,t){let n=tc(e.symbol)?Ys(e,e.symbol.valueDeclaration):Ys(e),r=tc(t.symbol)?Ys(t,t.symbol.valueDeclaration):Ys(t);return n===r&&(n=ec(e),r=ec(t)),[n,r]}function ec(e){return Ys(e,void 0,64)}function tc(e){return e&&!!e.valueDeclaration&&s_(e.valueDeclaration)&&!NS(e.valueDeclaration)}function nc(e=0){return 848330095&e}function rc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===Lu(e.symbol)||524288&e.flags&&16777216&Bx(e)))}function ic(e,t,n=16384,r){return r?i(r).getText():kd(i);function i(r){const i=70222336|nc(n),o=ue.typePredicateToTypePredicateNode(e,t,i),a=bz(),s=t&&Id(t);return a.writeNode(4,o,s,r),r}}function oc(e){return 2===e?"private":4===e?"protected":"public"}function ac(e){return e&&e.parent&&268===e.parent.kind&&Cp(e.parent.parent)}function sc(e){return 307===e.kind||yp(e)}function cc(e,t){const n=Ko(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return Ls(e,BS(I))||aC(e)?aC(e)&&fn(e,"-")?`[${e}]`:e:`"${qy(e,34)}"`}if(8192&n.flags)return`[${lc(n.symbol,t)}]`}}function lc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(eJ(e)))&&(e=t.remappedSymbolReferences.get(eJ(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&wc(e.declarations[0],sc)!==wc(t.enclosingDeclaration,sc)))return"default";if(e.declarations&&e.declarations.length){let n=y(e.declarations,(e=>Jc(e)?e:void 0));const r=n&&Jc(n);if(n&&r){if(uE(n)&&yg(n))return Ic(e);if(yN(r)&&!(4096&wx(e))){const n=Ko(e).nameType;if(n&&384&n.flags){const n=cc(e,t);if(void 0!==n)return n}}return zp(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return zp(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=cc(e,t);return void 0!==r?r:Ic(e)}function uc(e){if(e){const t=Xo(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 338:case 346:case 340:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&nF(e.parent.parent.parent));case 208:return uc(e.parent.parent);case 260:if(Bu(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Cp(e))return!0;const t=yc(e);return 32&XU(e)||271!==e.kind&&307!==t.kind&&33554432&t.flags?uc(t):uf(t);case 172:case 171:case 177:case 178:case 174:case 173:if(Gv(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return uc(e.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function _c(e,t){let n,r,i;return e.parent&&277===e.parent.kind?n=Me(e,e,2998271,void 0,!1):281===e.parent.kind&&(n=Da(e.parent,2998271)),n&&(i=new Set,i.add(eJ(n)),function e(n){d(n,(n=>{const o=ua(n)||n;if(t?Xo(n).isVisible=!0:(r=r||[],ye(r,o)),qm(n)){const t=Fb(n.moduleReference),r=Me(n,t.escapedText,901119,void 0,!1);r&&i&&Q(i,eJ(r))&&e(r.declarations)}}))}(n.declarations)),r}function dc(e,t){const n=pc(e,t);if(n>=0){const{length:e}=Oi;for(let t=n;t<e;t++)Li[t]=!1;return!1}return Oi.push(e),Li.push(!0),Ri.push(t),!0}function pc(e,t){for(let n=Oi.length-1;n>=Mi;n--){if(mc(Oi[n],Ri[n]))return-1;if(Oi[n]===e&&Ri[n]===t)return n}return-1}function mc(e,t){switch(t){case 0:return!!Ko(e).type;case 2:return!!Ko(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!Ko(e).writeType;case 8:return void 0!==Xo(e).parameterInitializerContainsUndefined}return En.assertNever(t)}function gc(){return Oi.pop(),Ri.pop(),Li.pop()}function yc(e){return wc(yy(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function bc(e,t){const n=ef(e,t);return n?Gl(n):void 0}function Sc(e,t){var n;let r;return bc(e,t)||(r=null==(n=Nf(e,t))?void 0:n.type)&&Yc(r,!0,!0)}function kc(e){return e&&!!(1&e.flags)}function Tc(e){return e===Et||!!(1&e.flags&&e.aliasSymbol)}function Dc(e,t){if(0!==t)return el(e,!1,t);const n=os(e);return n&&Ko(n).type||el(e,!1,t)}
6function Oc(e,t,n){if(131072&(e=$D(e,(e=>!(98304&e.flags)))).flags)return Nn;if(1048576&e.flags)return HD(e,(e=>Oc(e,t,n)));let r=mv(j(t,qv));const i=[],o=[];for(const c of Xd(e)){const e=zv(c,8576);jS(e,r)||6&Dx(c)||!yx(c)?o.push(e):i.push(c)}if(qb(e)||zb(r)){if(o.length&&(r=mv([r,...o])),131072&r.flags)return e;const t=(Br||(Br=uy("Omit",2,!0)||bt),Br===bt?void 0:Br);return t?sh(t,[e,r]):Et}const a=_d();for(const c of i)a.set(c.escapedName,vx(c,!1));const s=Ns(n,a,c,c,Sf(e));return s.objectFlags|=4194304,s}function Lc(e){return!!(465829888&e.flags)&&aR(op(e)||It,32768)}function Mc(e){return vD(qD(e,Lc)?HD(e,(e=>465829888&e.flags?sp(e):e)):e,524288)}function Bc(e,t){const n=Uc(e);return n?BN(n,t):t}function Uc(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return Uc(t);case 209:return Uc(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&Kg(t)&&t.flowNode){const n=$c(e);if(n){const r=TI(NI.createStringLiteral(n),e),i=t_(t)?t:NI.createParenthesizedExpression(t),o=TI(NI.createElementAccessExpression(i,r),e);return HT(r,o),HT(o,e),i!==t&&HT(i,o),o.flowNode=t.flowNode,o}}}function $c(e){const t=e.parent;return 208===e.kind&&206===t.kind?Wc(e.propertyName||e.name):303===e.kind||304===e.kind?Wc(e.name):""+t.elements.indexOf(e)}function Wc(e){const t=qv(e);return 384&t.flags?""+t.value:void 0}function Hc(e){const t=e.dotDotDotToken?32:0,n=Dc(e.parent.parent,t);return n&&Kc(e,n,!1)}function Kc(e,t,n){if(kc(t))return t;const r=e.parent;let i;if(K&&33554432&e.flags&&hy(e)?t=wC(t):K&&r.parent.initializer&&!hD(FD(r.parent.initializer),65536)&&(t=vD(t,524288)),206===r.kind)if(e.dotDotDotToken){if(2&(t=Op(t)).flags||!gA(t))return Co(e,Pa.Rest_types_may_only_be_created_from_object_types),Et;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);i=Oc(t,n,e.symbol)}else{const n=e.propertyName||e.name;i=Bc(e,Xb(t,qv(n),32,n))}else{const o=gj(65|(e.dotDotDotToken?0:128),t,Lt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=HD(t,(e=>58982400&e.flags?sp(e):e));i=zD(e,KT)?HD(e,(e=>Zy(e,a))):jy(o)}else i=uT(t)?Bc(e,Yb(t,Cx(a),32|(n||oA(e)?16:0),e.name)||Et):o}return e.initializer?Ov(hc(e))?K&&!hD(CR(e,0),16777216)?Mc(i):i:wR(e,mv([Mc(i),CR(e,0)],2)):i}function Gc(e){const t=hl(e);if(t)return Mx(t)}function Qc(e){const t=bh(e,!0);return 209===t.kind&&0===t.elements.length}function Yc(e,t=!1,n=!0){return K&&n?TC(e,t):e}function el(e,t,n){if(oP(e)&&249===e.parent.parent.kind){const t=ab(tI(qR(e.parent.parent.expression,n)));return 4456448&t.flags?sb(t):zt}if(oP(e)&&250===e.parent.parent.kind)return mj(e.parent.parent)||Ct;if(Bu(e.parent))return Hc(e);const r=kN(e)&&!nb(e)||SN(e)||UF(e),i=t&&hC(e),o=Nl(e);if(hp(e))return o?kc(o)||o===It?o:Et:ie?It:Ct;if(o)return Yc(o,r,i);if((ee||Wm(e))&&oP(e)&&!Bu(e.name)&&!(32&XU(e))&&!(33554432&e.flags)){if(!(6&QU(e))&&(!e.initializer||function(e){const t=bh(e,!0);return 106===t.kind||80===t.kind&&Qw(t)===ge}(e.initializer)))return wt;if(e.initializer&&Qc(e.initializer))return sr}if(bN(e)){if(!e.symbol)return;const t=e.parent;if(178===t.kind&&y_(t)){const n=ld(os(e.parent),177);if(n){const r=jf(n),i=FU(t);return i&&e===i?(En.assert(!i.type),Gl(r.thisParameter)):sm(r)}}const n=function(e,t){const n=Bf(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?mL(n,r):pL(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?KP(t):GP(e);if(r)return Yc(r,!1,i)}if(K_(e)&&e.initializer){if(Wm(e)&&!bN(e)){const t=sl(e,os(e),sg(e));if(t)return t}return Yc(wR(e,CR(e,n)),r,i)}if(kN(e)&&(ee||Wm(e))){if(Yv(e)){const t=L(e.parent.members,wN),n=t.length?function(e,t){const n=fn(e.escapedName,"__#")?_w.createPrivateIdentifier(e.escapedName.split("@")[1]):Pc(e.escapedName);for(const r of t){const t=_w.createPropertyAccessExpression(_w.createThis(),n);HT(t.expression,t),HT(t,r),t.flowNode=r.returnFlowNode;const i=ol(t,e);if(!ee||i!==wt&&i!==sr||Co(e.valueDeclaration,Pa.Member_0_implicitly_has_an_1_type,Hs(e),Ys(i)),!zD(i,eI))return rj(i)}}(e.symbol,t):128&cb(e)?Gk(e.symbol):void 0;return n&&Yc(n,!0,i)}{const t=jC(e.parent),n=t?il(e.symbol,t):128&cb(e)?Gk(e.symbol):void 0;return n&&Yc(n,!0,i)}}
6return zP(e)?Kt:Bu(e.name)?ml(e.name,!1,!0):void 0}function tl(e){if(e.valueDeclaration&&kE(e.valueDeclaration)){const t=Ko(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!rl(e)&&C(e.declarations,(t=>kE(t)&&kF(t)&&(212!==t.left.kind||Zh(t.left.argumentExpression))&&!cl(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function nl(e){const t=e.valueDeclaration;return t&&kN(t)&&!Ov(t)&&!t.initializer&&(ee||Wm(t))}function rl(e){if(e.declarations)for(const t of e.declarations){const e=fm(t,!1,!1);if(e&&(176===e.kind||BO(e)))return e}}function il(e,t){const n=fn(e.escapedName,"__#")?_w.createPrivateIdentifier(e.escapedName.split("@")[1]):Pc(e.escapedName),r=_w.createPropertyAccessExpression(_w.createThis(),n);HT(r.expression,r),HT(r,t),r.flowNode=t.returnFlowNode;const i=ol(r,e);return!ee||i!==wt&&i!==sr||Co(e.valueDeclaration,Pa.Member_0_implicitly_has_an_1_type,Hs(e),Ys(i)),zD(i,eI)?void 0:rj(i)}function ol(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!nl(t)||128&cb(t.valueDeclaration))&&Gk(t)||Lt;return BN(e,wt,n)}function al(e,t){const n=cg(e.valueDeclaration);if(n){const t=Wm(n)?gl(n):void 0;return t&&t.typeExpression?Mx(t.typeExpression):e.valueDeclaration&&sl(e.valueDeclaration,e,n)||RT(kR(n))}let r,i=!1,o=!1;if(tl(e)&&(r=il(e,rl(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=kE(r)||uE(r)?r:Hx(r)?kE(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Hx(s)?Dg(s):hg(s);(4===c||kE(s)&&kF(s,c))&&(pl(s)?i=!0:o=!0),uE(s)||(a=cl(a,s,e,r)),a||(n||(n=[])).push(kE(s)||uE(s)?ul(e,t,s,c):nn)}r=a}if(!r){if(!_(n))return Et;let t=i&&e.declarations?function(e,t){return En.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=kE(r)?r:kE(r.parent)?r.parent:void 0;return i&&pl(i)}))}(n,e.declarations):void 0;if(o){const n=Gk(e);n&&((t||(t=[])).push(n),i=!0)}r=mv(te(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=ew(Yc(r,!1,o&&!i));return e.valueDeclaration&&Wm(e.valueDeclaration)&&$D(a,(e=>!!(-98305&e.flags)))===nn?(rw(e.valueDeclaration,Ct),Ct):a}function sl(e,t,n){var r,i;if(!Wm(e)||!n||!sE(n)||n.properties.length)return;const o=_d();for(;kE(e)||cE(e);){const t=as(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&Wo(o,t.exports),e=kE(e)?e.parent:e.parent.parent}const a=as(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&Wo(o,a.exports
6);const s=Ns(t,o,c,c,c);return s.objectFlags|=4096,s}function cl(e,t,n,r){var i;const o=Ov(t.parent);if(o){const t=ew(Mx(o));if(!e)return t;Tc(e)||Tc(t)||AS(e,t)||oj(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=ls(n.parent);if(e.valueDeclaration){const t=Ov(e.valueDeclaration);if(t){const e=ef(Mx(t),n.escapedName);if(e)return Yl(e)}}}return e}function ul(e,t,n,r){if(uE(n)){if(t)return Gl(t);const e=kR(n.arguments[2]),r=bc(e,"value");if(r)return r;const i=bc(e,"get");if(i){const e=YI(i);if(e)return sm(e)}const o=bc(e,"set");if(o){const e=YI(o);if(e)return SL(e)}return Ct}if(function(e,t){return cE(e)&&110===e.expression.kind&&eO(t,(t=>tD(e,t)))}(n.left,n.right))return Ct;const i=1===r&&(cE(n.left)||lE(n.left))&&(gg(n.left.expression)||nN(n.left.expression)&&fg(n.left.expression)),o=t?Gl(t):i?Sx(kR(n.right)):RT(kR(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=Wd(o),r=_d();Sd(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=_d()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&Id(e.valueDeclaration)!==Id(i.valueDeclaration)){const t=Pc(e.escapedName),r=(null==(n=ht(i.valueDeclaration,jc))?void 0:n.name)||i.valueDeclaration;DT(Co(e.valueDeclaration,Pa.Duplicate_identifier_0,t),Gp(r,Pa._0_was_also_declared_here,t)),DT(Co(r,Pa.Duplicate_identifier_0,t),Gp(e.valueDeclaration,Pa._0_was_also_declared_here,t))}const o=Io(e.flags|i.flags,t);o.links.type=mv([Gl(e),Gl(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=re(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Bo(e,i))}));const a=Ns(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&Bx(o))){a.aliasSymbol=o.symbol;const e=Xg(o);a.aliasTypeArguments=_(e)?e:void 0}return a.objectFlags|=jg([o])|20608&Bx(o),a.symbol&&32&a.symbol.flags&&o===Lu(a.symbol)&&(a.objectFlags|=16777216),a}return mT(o)?(rw(n,ar),ar):o}function pl(e){const t=fm(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!Eg(t.parent)}function fl(e,t,n){return e.initializer?Yc(wR(e,CR(e,n?0:1,Bu(e.name)?ml(e.name,!0,!1):It))):Bu(e.name)?ml(e.name,t,n):(n&&!Tl(e)&&rw(e,Ct),t?Ft:Ct)}function ml(e,t=!1,n=!1){return 206===e.kind?function(e,t,n){const r=_d();let i,o=131200;d(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=pg(zt,Ct,!1));const s=qv(a);if(!NC(s))return void(o|=512);const c=EC(s),l=Io(4|(e.initializer?16777216:0),c);l.links.type=fl(e,t,n),l.links.bindingElement=e,r.set(l.escapedName,l)}));const a=Ns(void 0,r,c,c,i?[i]:c);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=Oe(r),o=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return R>=2?My(Ct):ar;const a=j(r,(e=>EE(e)?Ct:fl(e,t,n))),s=E(r,(e=>!(e===o||EE(e)||oA(e))),r.length-1)+1;let c=Hy(a,j(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=Vg(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n)}function yl(e,t){return Sl(el(e,!0,0),e,t)}function vl(e){const t=Xo(e);if(!t.resolvedType){const n=Io(4096,"__importAttributes"),r=_d();d(e.elements,(e=>{const t=Io(4,OC(e));t.parent=n,t.links.type=function(e){return Sx(kR(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=Ns(n,r,c,c,c);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}function xl(e){const t=as(e),n=(r=!1,_r||(_r=sy("SymbolConstructor",r)));var r;return n&&t&&t===n}function Sl(e,t,n){return e?(4096&e.flags&&xl(t.parent)&&(e=Ix(t)),n&&iw(t,e),8192&e.flags&&(oE(t)||!t.type)&&e.symbol!==os(t)&&(e=Yt),ew(e)):(e=bN(t)&&t.dotDotDotToken?ar:Ct,n&&(Tl(t)||rw(t,e)),e)}function Tl(e){const t=yy(e);return uM(169===t.kind?t.parent:t)}function Nl(e){const t=Ov(e);if(t)return Mx(t)}function Pl(e,t){const n=Ko(e);if(!n.type){const r=function(e,t){if(4194304&e.flags)return function(e){const t=Wu(cs(e));return t.typeParameters?$g(t,j(t.typeParameters,(e=>Ct))):t}(e);if(e===we)return Ct;if(134217728&e.flags&&e.valueDeclaration){const t=os(Id(e.valueDeclaration)),n=Io(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=_d();return r.set("exports",n),Ns(e,r,c,c,c)}
6En.assertIsDefined(e.valueDeclaration);const n=e.valueDeclaration;if(nF(n)&&df(n))return n.statements.length?ew(RT(qR(n.statements[0].expression))):Nn;if(Nu(n))return Bl(e);if(!dc(e,0))return 512&e.flags&&!(67108864&e.flags)?ql(e):oE(n)&&1===t?Et:Wl(e);let r;if(277===n.kind)r=Sl(Nl(n)||kR(n.expression),n);else if(kE(n)||Wm(n)&&(uE(n)||(cE(n)||Sg(n))&&kE(n.parent)))r=al(e);else if(cE(n)||lE(n)||nN(n)||Z_(n)||MD(n)||cP(n)||sP(n)||CN(n)&&!Zf(n)||TN(n)||nF(n)){if(9136&e.flags)return ql(e);r=kE(n.parent)?al(e):Nl(n)||Ct}else if(YP(n))r=Nl(n)||PR(n);else if(zP(n))r=Nl(n)||TA(n);else if(ZP(n))r=Nl(n)||ER(n.name,0);else if(Zf(n))r=Nl(n)||FR(n,0);else if(bN(n)||kN(n)||SN(n)||oP(n)||oE(n)||zl(n))r=yl(n,!0);else if(_P(n))r=ql(e);else{if(!tF(n))return En.fail("Unhandled declaration kind! "+En.formatSyntaxKind(n.kind)+" for "+En.formatSymbol(e));r=$l(e)}return gc()?r:512&e.flags&&!(67108864&e.flags)?ql(e):oE(n)&&1===t?r:Wl(e)}(e,t);return n.type||function(e){let t=e.valueDeclaration;return!!t&&(oE(t)&&(t=hc(t)),!!bN(t)&&PS(t.parent))}(e)||t||(n.type=r),r}return n.type}function Fl(e){if(e)switch(e.kind){case 177:return Rv(e);case 178:return jv(e);case 172:return En.assert(nb(e)),Ov(e)}}function Ml(e){const t=Fl(e);return t&&Mx(t)}function Bl(e){const t=Ko(e);if(!t.type){if(!dc(e,0))return Et;const n=ld(e,177),r=ld(e,178),i=ht(ld(e,172),Eu);let o=n&&Wm(n)&&Gc(n)||Ml(n)||Ml(r)||Ml(i)||n&&n.body&&qL(n)||i&&i.initializer&&yl(i,!0);o||(r&&!uM(r)?Do(ee,r,Pa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Hs(e)):n&&!uM(n)?Do(ee,n,Pa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Hs(e)):i&&!uM(i)&&Do(ee,i,Pa.Member_0_implicitly_has_an_1_type,Hs(e),"any"),o=Ct),gc()||(Fl(n)?Co(n,Pa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)):Fl(r)||Fl(i)?Co(r,Pa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)):n&&ee&&Co(n,Pa._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Hs(e)),o=Ct),null!=t.type||(t.type=o)}return t.type}function Jl(e){var t;const n=Ko(e);if(!n.writeType){if(!dc(e,7))return Et;const r=null!=(t=ld(e,178))?t:ht(ld(e,172),Eu);let i=Ml(r);gc()||(Fl(r)&&Co(r,Pa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)),i=Ct),null!=n.writeType||(n.writeType=i||Bl(e))}return n.writeType}function Ul(e){const t=Tu(Lu(e));return 8650752&t.flags?t:2097152&t.flags?w(t.types,(e=>!!(8650752&e.flags))):void 0}function ql(e){let t=Ko(e);const n=t;if(!t.type){const r=e.valueDeclaration&&UO(e.valueDeclaration,!1);if(r){const n=JO(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&Sp(e))return Ct;if(t&&(226===t.kind||Hx(t)&&226===t.parent.kind))return al(e);if(512&e.flags&&t&&nF(t)&&t.commonJsModuleIndicator){const t=Wa(e);if(t!==e){if(!dc(e,0))return Et;const n=is(e.exports.get("export=")),r=al(n,n===t?void 0:t);return gc()?r:Wl(e)}}const n=Ss(16,e);if(32&e.flags){const t=Ul(e);return t?kv([n,t]):n}return K&&16777216&e.flags?TC(n,!0):n}(e)}return t.type}function $l(e){const t=Ko(e);return t.type||(t.type=$u(e))}function Vl(e){var t;const n=Ko(e);if(!n.type){if(!dc(e,0))return Et;const r=Ia(e),i=e.declarations&&Ea(_a(e),!0),o=y(null==i?void 0:i.declarations,(e=>NP(e)?Nl(e):void 0));if(null!=n.type||(n.type=(null==i?void 0:i.declarations)&&OB(i.declarations)&&e.declarations.length?function(e){const t=Id(e.declarations[0]),n=Pc(e.escapedName),r=e.declarations.every((e=>Wm(e)&&Hx(e)&&gg(e.expression))),i=r?_w.createPropertyAccessExpression(_w.createPropertyAccessExpression(_w.createIdentifier("module"),_w.createIdentifier("exports")),n):_w.createPropertyAccessExpression(_w.createIdentifier("exports"),n);return r&&HT(i.expression.expression,i.expression),HT(i.expression,i),HT(i,t),i.flowNode=t.endFlowNode,BN(i,wt,Lt)}(i):OB(e.declarations)?wt:o||(111551&Oa(r)?Gl(r):Et)),!gc())return Wl(null!=i?i:e),null!=(t=n.type)?t:n.type=Et}return n.type}function Wl(e){const t=e.valueDeclaration;if(t){if(Ov(t))return Co(e.valueDeclaration,Pa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)),Et;ee&&(169!==t.kind||t.initializer)&&Co(e.valueDeclaration,Pa._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Hs(e))}else if(2097152&e.flags){const t=_a(e);t&&Co(t,Pa.Circular_definition_of_import_alias_0,Hs(e))}return Ct}function Hl(e){const t=Ko(e);
6return t.type||(En.assertIsDefined(t.deferralParent),En.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?mv(t.deferralConstituents):kv(t.deferralConstituents)),t.type}function Kl(e){const t=wx(e);return 4&e.flags?2&t?65536&t?function(e){const t=Ko(e);return!t.writeType&&t.deferralWriteConstituents&&(En.assertIsDefined(t.deferralParent),En.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?mv(t.deferralWriteConstituents):kv(t.deferralWriteConstituents)),t.writeType}(e)||Hl(e):e.links.writeType||e.links.type:zC(Gl(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=Ko(e);return t.writeType||(t.writeType=hS(Kl(t.target),t.mapper))}(e):Jl(e):Gl(e)}function Gl(e,t){const n=wx(e);return 65536&n?Hl(e):1&n?function(e){const t=Ko(e);return t.type||(t.type=hS(Gl(t.target),t.mapper))}(e):262144&n?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!dc(e,0))return n.containsError=!0,Et;const i=hS(Pd(n.target||n),iS(n.mapper,wd(n),e.links.keyType));let o=K&&16777216&e.flags&&!aR(i,49152)?TC(i,!0):524288&e.links.checkFlags?VC(i):i;gc()||(Co(r,Pa.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Hs(e),Ys(n)),o=Et),null!=(t=e.links).type||(t.type=o)}return e.links.type}(e):8192&n?function(e){const t=Ko(e);return t.type||(t.type=Sw(e.links.propertyType,e.links.mappedType,e.links.constraintType)||It),t.type}(e):7&e.flags?Pl(e,t):9136&e.flags?ql(e):8&e.flags?$l(e):98304&e.flags?Bl(e):2097152&e.flags?Vl(e):Et}function Yl(e){return zC(Gl(e),!!(16777216&e.flags))}function Zl(e,t){return void 0!==e&&void 0!==t&&!!(4&Bx(e))&&e.target===t}function eu(e){return 4&Bx(e)?e.target:e}function ru(e,t){return function e(n){if(7&Bx(n)){const r=eu(n);return r===t||te(Au(r),e)}return!!(2097152&n.flags)&&te(n.types,e)}(e)}function ou(e,t){for(const n of t)e=ve(e,Vu(os(n)));return e}function au(e,t){for(;;){if((e=e.parent)&&kE(e)){const t=hg(e);if(6===t||3===t){const t=os(e.left);t&&t.parent&&!wc(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;switch(e.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{const n=au(e,t);if(200===e.kind)return fe(n,Vu(os(e.typeParameter)));if(194===e.kind)return re(n,sx(e));const r=ou(n,wl(e)),i=t&&(263===e.kind||231===e.kind||264===e.kind||BO(e))&&Lu(os(e)).thisType;return i?fe(r,i):r}case 341:const n=Zg(e);n&&(e=n.valueDeclaration);break;case 320:{const n=au(e,t);return e.tags?ou(n,q(e.tags,(e=>jF(e)?e.typeParameters:void 0))):n}}}}function cu(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return En.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),au(n)}function lu(e){if(!e.declarations)return;let t;for(const n of e.declarations)(264===n.kind||263===n.kind||231===n.kind||BO(n)||zg(n))&&(t=ou(t,wl(n)));return t}function du(e){const t=of(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&aJ(e)){const t=sL(e.parameters[0]);return kc(t)||lT(t)===Ct}}return!1}function pu(e){if(of(e,1).length>0)return!0;if(8650752&e.flags){const t=op(e);return!!t&&du(t)}return!1}function fu(e){const t=jx(e.symbol);return t&&Ih(t)}function yu(e,t,n){const r=_(t),i=Wm(n);return L(of(e,1),(e=>(i||r>=Lf(e.typeParameters))&&r<=_(e.typeParameters)))}function ku(e,t,n){const r=yu(e,t,n),i=j(t,Mx);return J(r,(e=>te(e.typeParameters)?Em(e,i,Wm(n)):e))}function Tu(e){var t,n;if(!e.resolvedBaseConstructorType){const r=jx(e.symbol),i=r&&Ih(r),o=fu(e);if(!o)return e.resolvedBaseConstructorType=Lt;if(!dc(e,1))return Et;const a=qR(o.expression);if(i&&o!==i&&(En.assert(!i.typeArguments),qR(i.expression)),2621440&a.flags&&Wd(a),!gc())return Co(e.symbol.valueDeclaration,Pa._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Hs(e.symbol)),null!=(t=e.resolvedBaseConstructorType)?t:e.resolvedBaseConstructorType=Et;if(!(1&a.flags||a===qt||pu(a))){const t=Co(o.expression,Pa.Type_0_is_not_a_constructor_function_type,Ys(a));if(262144&a.flags){const e=Pg(a);let n=It;if(e){const t=of(e,1);t[0]&&(n=sm(t[0]))}a.symbol.declarations&&DT(t,Gp(a.symbol.declarations[0],Pa.Did_you_mean_for_0_to_be_c
6onstrained_to_type_new_args_Colon_any_1,Hs(a.symbol),Ys(n)))}return null!=(n=e.resolvedBaseConstructorType)?n:e.resolvedBaseConstructorType=Et}null!=e.resolvedBaseConstructorType||(e.resolvedBaseConstructorType=a)}return e.resolvedBaseConstructorType}function Fu(e,t){Co(e,Pa.Type_0_recursively_references_itself_as_a_base_type,Ys(t,void 0,2))}function Au(e){if(!e.baseTypesResolved){if(dc(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[Iu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=od;const t=Ep(Tu(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=c;const n=fu(e);let r;const i=t.symbol?Wu(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=Xg(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=Yg(n,t.symbol);else if(1&t.flags)r=t;else{const i=ku(t,n.typeArguments,n);if(!i.length)return Co(n.expression,Pa.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=c;r=sm(i[0])}if(Tc(r))return e.resolvedBaseTypes=c;const o=Op(r);if(!Ou(o)){const t=kS(Qp(void 0,r),Pa.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ys(o));return so.add(Yp(Id(n.expression),n.expression,t)),e.resolvedBaseTypes=c}if(e===o||ru(o,e))return Co(e.symbol.valueDeclaration,Pa.Type_0_recursively_references_itself_as_a_base_type,Ys(e,void 0,2)),e.resolvedBaseTypes=c;e.resolvedBaseTypes===od&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||c,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&Mh(t))for(const n of Mh(t)){const r=Op(Mx(n));Tc(r)||(Ou(r)?e===r||ru(r,e)?Fu(t,e):e.resolvedBaseTypes===c?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):Co(n,Pa.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):En.fail("type must be class or interface"),!gc()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||Fu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function Iu(e){return jy(mv(J(e.typeParameters,((t,n)=>8&e.elementFlags[n]?Xb(t,$t):t))||c),e.readonly)}function Ou(e){if(262144&e.flags){const t=op(e);if(t)return Ou(t)}return!!(67633153&e.flags&&!$d(e)||2097152&e.flags&&C(e.types,Ou))}function Lu(e){let t=Ko(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=JO(e,e.valueDeclaration&&function(e){var t;const n=e&&UO(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&kE(t)&&Lb(t.left)&&64===t.operatorToken.kind){const e=Ng(t);return sE(e)&&e}}(r.valueDeclaration);return i?os(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Ss(r,e),a=cu(e),s=lu(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=Mh(t);if(e)for(const t of e)if(Pb(t.expression)){const e=Ja(t.expression,788968,!0);if(!e||!(64&e.flags)||Lu(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=re(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(Og(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=ks(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function ju(e){var t;const n=Ko(e);if(!n.declaredType){if(!dc(e,2))return Et;const r=En.checkDefined(null==(t=e.declarations)?void 0:t.find(zg),"Type alias symbol with no valid declaration found"),i=qg(r)?r.typeExpression:r.type;let o=i?Mx(i):Et;if(gc()){const t=lu(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(Og(t),o))}else o=Et,340===r.kind?Co(r.typeExpression.type,Pa.Type_alias_0_circularly_references_itself,Hs(e)):Co(jc(r)&&r.name||r,Pa.Type_alias_0_circularly_references_itself,Hs(e));null!=n.declaredType||(n.declaredType=o)}return n.declaredType}function Uu(e){return 1056&e.flags&&8&e.symbol.flags?Wu(cs(e.symbol)):e}function qu(e){const t=Ko(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(y_(r)){const t=os(r),i=WJ(r).value,o=xx(void 0!==i?Ax(i,eJ(e),t):zu(t));Ko(t).declaredType=o,n.push(Sx(o))}const r=n.length?mv(n,1,e,void 0):zu(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function zu(e){const t=vs(32,e),n=vs(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function $u(e){const t=Ko(e);if(!t.declaredType){const n=qu(cs(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function Vu(e){const t=Ko(e);return t.declaredType||(t.declaredType=ks(e))}function Wu(e){return Hu(e)||Et}function Hu(e){return 96&e.flags?Lu(e):524288&e.flags?ju(e):262144&e.flags?Vu(e):384&e.flags?qu(e):8&e.flags?$u(e):2097152&e.flags?function(e){const t=Ko(e);return t.declaredType||(t.declaredType=Wu(Ia(e)))}(e):void 0}function Ku(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return Ku(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(Ku)}return!1}function e_(e){const t=Dl(e);return!t||Ku(t)}function n_(e){const t=Ov(e);return t?Ku(t):!H_(e)}function r_(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return n_(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=Rv(e),n=wl(e);return(176===e.kind||!!t&&Ku(t))&&e.parameters.every(n_)&&n.every(e_)}(t)}}return!1}function i_(e,t,n){const r=_d();for(const i of e)r.set(i.escapedName,n&&r_(i)?i:cS(i,t));return r}function o_(e,t){for(const n of t){if(a_(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&kE(t.valueDeclaration)&&!tl(t)&&!_m(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function a_(e){return!!e.valueDeclaration&&uu(e.valueDeclaration)&&Qv(e.valueDeclaration)}function l_(e){if(!e.declaredProperties){const t=e.symbol,n=x_(t);e.declaredProperties=Cs(n),e.declaredCallSignatures=c,e.declaredConstructSignatures=c,e.declaredIndexInfos=c,e.declaredCallSignatures=Yf(n.get("__call")),e.declaredConstructSignatures=Yf(n.get("__new")),e.declaredIndexInfos=vg(t)}return e}function __(e){if(!yN(e)&&!lE(e))return!1;const t=yN(e)?e.expression:e.argumentExpression;return Pb(t)&&NC(yN(e)?lA(e):kR(t))}function g_(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function h_(e){const t=Jc(e);return!!t&&__(t)}function y_(e){return!ty(e)||h_(e)}function v_(e,t,n,r){En.assert(!!r.symbol,"The member is expected to have a symbol.");const i=Xo(r);
6if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=kE(r)?r.left:r.name,a=lE(o)?kR(o.argumentExpression):lA(o);if(NC(a)){const s=EC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Io(0,s,4096));const u=t&&t.get(s);if(!(32&e.flags)&&l.flags&Ro(c)){const e=u?re(u.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&Pc(s)||zp(o);d(e,(e=>Co(Jc(e)||e,Pa.Property_0_was_also_declared_here,t))),Co(o||r,Pa.Duplicate_property_0,t),l=Io(0,s,4096)}return l.links.nameType=a,function(e,t,n){En.assert(!!(4096&wx(e)),"Expected a late-bound symbol."),e.flags|=n,Ko(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(l,r,c),l.parent?En.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function b_(e,t){const n=Ko(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?rs(e).exports:e.exports:e.members;n[t]=i||T;const o=_d();for(const t of e.declarations||c){const n=zf(t);if(n)for(const t of n)r===Yv(t)&&h_(t)&&v_(e,i,o,t)}const a=ls(e).assignmentDeclarationMembers;if(a){const t=Xe(a.values());for(const n of t){const t=hg(n);r===!(3===t||kE(n)&&kF(n,t)||9===t||6===t)&&h_(n)&&v_(e,i,o,n)}}let s=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=_d();return Wo(n,e),Wo(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=Ko(n.symbol)[t];s?e&&e.forEach(((e,t)=>{const n=s.get(t);if(n){if(n===e)return;s.set(t,Bo(n,e))}else s.set(t,e)})):s=e}n[t]=s||T}return n[t]}function x_(e){return 6256&e.flags?b_(e,"resolvedMembers"):e.members||T}function S_(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=Ko(e);if(!t.lateSymbol&&te(e.declarations,h_)){const t=is(e.parent);te(e.declarations,Yv)?es(t):x_(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function w_(e,t,n){if(4&Bx(e)){const n=e.target,r=Xg(e);return _(n.typeParameters)===_(r)?$g(n,re(r,[t||n.thisType])):e}if(2097152&e.flags){const r=J(e.types,(e=>w_(e,t,n)));return r!==e.types?kv(r):e}return n?Ep(e):e}function D_(e,t,n,r){let i,o,a,s,c;Ce(n,r,0,n.length)?(o=t.symbol?x_(t.symbol):_d(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Kx(n,r),o=i_(t.declaredProperties,i,1===n.length),a=$x(t.declaredCallSignatures,i),s=$x(t.declaredConstructSignatures,i),c=Vx(t.declaredIndexInfos,i));const l=Au(t);if(l.length){if(t.symbol&&o===x_(t.symbol)){const e=_d(t.declaredProperties),n=ng(t.symbol);n&&e.set("__index",n),o=e}Ds(e,o,a,s,c);const n=Oe(r);for(const e of l){const t=n?w_(hS(e,i),n):e;o_(o,Xd(t)),a=re(a,of(t,0)),s=re(s,of(t,1));const r=t!==Ct?Sf(t):[pg(zt,Ct,!1)];c=re(c,L(r,(e=>!gf(c,e.keyType))))}}Ds(e,o,a,s,c)}function E_(e,t,n,r,i,o,a,s){const c=new u(Ue,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function P_(e){const t=E_(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function A_(e,t){const n=P_(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function I_(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){En.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=P_(e);return n.flags|=t,n}(e,t))}function O_(e,t){if(aJ(e)){const r=e.parameters.length-1,i=e.parameters[r].escapedName,o=Gl(e.parameters[r]);if(KT(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&C(o.types,KT))return j(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=Xg(t),o=function(e,t){const n=new Map;return j(e.target.labeledElementDeclarations,((e,r)=>{const i=cL(e,r,t),o=n.get(i);
6return void 0===o?(n.set(i,1),i):(n.set(i,o+1),`${i}_${o}`)}))}(t,r),a=j(i,((r,i)=>{const a=o&&o[i]?o[i]:lL(e,n+i,t),s=t.target.elementFlags[i],c=Io(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?jy(r):r,c}));return re(e.parameters.slice(0,n),a)}}function L_(e,t,n,r,i){for(const o of e)if(nT(o,t,n,r,i,n?LS:IS))return o}function M_(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n<e.length;n++)if(!L_(e[n],t,!1,!1,!1))return;return[t]}let r;for(let i=0;i<e.length;i++){const o=i===n?t:L_(e[i],t,!1,!1,!0)||L_(e[i],t,!0,!1,!0);if(!o)return;r=ve(r,o)}return r}function B_(e){let t,n;for(let r=0;r<e.length;r++){if(0===e[r].length)return c;e[r].length>1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!L_(t,n,!1,!1,!0)){const i=M_(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=d(i,(e=>e.thisParameter));r&&(t=HC(r,kv(H(i,(e=>e.thisParameter&&Gl(e.thisParameter)))))),e=A_(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!_(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(En.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&te(i,(t=>!!t.typeParameters&&!U_(e.typeParameters,t.typeParameters)))?void 0:j(i,(t=>q_(t,e))),!i)break}t=i}return t||c}function U_(e,t){if(_(e)!==_(t))return!1;if(!e||!t)return!0;const n=Kx(t,e);for(let r=0;r<e.length;r++){const i=e[r],o=t[r];if(i!==o&&!AS(Pg(i)||It,hS(Pg(o)||It,n)))return!1}return!0}function q_(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Kx(t.typeParameters,e.typeParameters));const i=e.declaration,o=function(e,t,n){const r=hL(e),i=hL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=vL(e)||vL(t),l=c&&!vL(o),u=new Array(s+(l?1:0));for(let _=0;_<s;_++){let d=fL(o,_);o===t&&(d=hS(d,n));let p=fL(a,_)||It;a===t&&(p=hS(p,n));const f=kv([d,p]),m=c&&!l&&_===s-1,g=_>=yL(o)&&_>=yL(a),h=_>=r?void 0:lL(e,_),y=_>=i?void 0:lL(t,_),v=Io(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${_}`,m?32768:g?16384:0);v.links.type=m?jy(f):f,u[_]=v}if(l){const e=Io(1,"args",32768);e.links.type=jy(pL(a,s)),a===t&&(e.links.type=hS(e.links.type,n)),u[s]=e}return u}(e,t,r),a=function(e,t,n){return e&&t?HC(e,kv([Gl(e),hS(Gl(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=E_(i,n,a,o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),167&(e.flags|t.flags));return s.compositeKind=1048576,s.compositeSignatures=re(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?nS(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(s.mapper=e.mapper),s}function G_(e){const t=Sf(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;C(e,(e=>!!Tf(e,t)))&&n.push(pg(t,mv(j(e,(e=>Cf(e,t)))),te(e,(e=>Tf(e,t).isReadonly))))}return n}return c}function Q_(e,t){return e?t?kv([e,t]):e:t}function Y_(e){const t=O(e,(e=>of(e,1).length>0)),n=j(e,du);if(t>0&&t===O(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function rd(e,t,n,r){const i=[];for(let o=0;o<t.length;o++)o===r?i.push(e):n[o]&&i.push(sm(of(t[o],1)[0]));return kv(i)}function id(e,t){for(const n of t)e&&!C(e,(e=>!nT(e,n,!1,!1,!1,IS)))||(e=fe(e,n));return e}function fd(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(i.keyType===t.keyType)return e[r]=pg(i.keyType,n?mv([i.type,t.type]):kv([i.type,t.type]),n?i.isReadonly||t.isReadonly:i.isReadonly&&t.isReadonly),e}return fe(e,t)}function md(e){if(e.target)return Ds(e,T,c,c,c),void Ds(e,i_(Hd(e.target),e.mapper,!1),$x(of(e.target,0),e.mapper),$x(of(e.target,1),e.mapper),Vx(Sf(e.target),e.mapper));const t=is(e.symbol);if(2048&t.flags){Ds(e,T,c,c,c);const n=x_(t),r=Yf(n.get("__call")),i=Yf(n.get("__new"));return void Ds(e,n,r,i,vg(t))}let n,r,i=es(t);if(t===be){const e=new Map;i.forEach((t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&C(t.declarations,yp)||e.set(t.escapedName,t)})),i=e}if(Ds(e,i,c,c,c),32&t.flags){const e=Tu(Lu(t));11272192&e.flags?(i=_d(function(e){const t=Cs(e),n=ig(e);return n?re(t,[n]):t}(i)),o_(i,Xd(e))):e===Ct&&(r=pg(zt,Ct,!1))}const o=ig(i);if(o?n=bg(o):(r&&(n=fe(n,r)),384&t.flags&&(32&Wu(t).flags||te(e.properties,(e=>!!(296&Gl(e).flags))))&&(n=fe(n,ci))),Ds(e,i,c,c,n||c),8208&t.flags&&(e.callSignatures=Yf(t)),32&t.flags){const n=Lu(t);let r=t.members?Yf(t.members.get("__constructor")):c;16&t.flags&&(r=he(r.slice(),H(e.callSignatures,(e=>BO(e.declaration)?E_(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=of(Tu(e),1),n=jx(e.symbol),r=!!n&&Xv(n,64);if(0===t.length)return[E_(void 0,e.localTypeParameters,void 0,c,e,void 0,0,r?4:0)];const i=fu(e),o=Wm(i),a=Gh(i),s=_(a),l=[];for(const c of t){const t=Lf(c.typeParameters),n=_(c.typeParameters);if(o||s>=t&&s<=n){const i=n?Im(c,Rf(a,c.typeParameters,t,o)):P_(c);i.typeParameters=e.localTypeParameters,i.resolvedReturnType=e,i.flags=r?4|i.flags:-5&i.flags,l.push(i)}}return l}(n)),e.constructSignatures=r}}function gd(e,t,n){return hS(e,Kx([t.indexType,t.objectType],[Cx(0),Hy([n])]))}function hd(e){const t=Tf(e.source,zt),n=Bd(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[pg(zt,Sw(t.type,e.mappedType,e.constraintType)||It,r&&t.isReadonly)]:c,a=_d(),s=function(e){const t=Nd(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=kv(n.types.filter((t=>t!==e.constraintType)));return r!==nn?r:void 0}(e);for(const c of Xd(e.source)){if(s&&!jS(zv(c,8576),s))continue;const t=8192|(r&&ZL(c)?8:0),n=Io(4|c.flags&i,c.escapedName,t);if(n.declarations=c.declarations,n.links.nameType=Ko(c).nameType,n.links.propertyType=Gl(c),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,r=gd(e.mappedType,e.constraintType.type,t);n.links.mappedType=r,n.links.constraintType=ab(t)}else n.links.mappedType=e.mappedType,n.links.constraintType=e.constraintType;a.set(c.escapedName,n)}Ds(e,a,c,c,o)}function yd(e){if(4194304&e.flags){const t=Ep(e.type);return GT(t)?ev(t):ab(t)}if(16777216&e.flags){if(e.root.isDistributive){const t=e.checkType,n=yd(t);if(n!==t)return gS(e,rS(e.root.checkType,n,e.mapper),!1)}return e}if(1048576&e.flags)return HD(e,yd,!0);if(2097152&e.flags){const t=e.types;return 2===t.length&&76&t[0].flags&&t[1]===An?e:kv(J(e.types,yd))}return e}function vd(e){return 4096&wx(e)}function Td(e,t,n,r){for(const i of Xd(e))r(zv(i,t));if(1&e.flags)r(zt);else for(const i of Sf(e))(!n||134217732&i.keyType.flags)&&r(i.keyType)}function Cd(e){const t=_d();let n;Ds(e,T,c,c,c);const r=wd(e),i=Nd(e),o=e.target||e,a=Ed(o),s=2!==Vd(o),l=Pd(o),u=Ep(jd(e)),_=Bd(e);function d(i){UD(a?hS(a,iS(e.mapper,r,i)):i,(o=>
6function(i,o){if(NC(o)){const n=EC(o),r=t.get(n);if(r)r.links.nameType=mv([r.links.nameType,o]),r.links.keyType=mv([r.links.keyType,i]);else{const r=NC(i)?ef(u,EC(i)):void 0,a=!!(4&_||!(8&_)&&r&&16777216&r.flags),c=!!(1&_||!(2&_)&&r&&ZL(r)),l=K&&!a&&r&&16777216&r.flags,d=Io(4|(a?16777216:0),n,262144|(r?vd(r):0)|(c?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=s?r.declarations:void 0),t.set(n,d)}}else if(xg(o)||33&o.flags){const t=5&o.flags?zt:40&o.flags?$t:o,a=hS(l,iS(e.mapper,r,i)),s=Df(u,o),c=pg(t,a,!!(1&_||!(2&_)&&(null==s?void 0:s.isReadonly)));n=fd(n,c,!0)}}(i,o)))}Md(e)?Td(u,8576,!1,d):UD(yd(i),d),Ds(e,t,c,c,n||c)}function wd(e){return e.typeParameter||(e.typeParameter=Vu(os(e.declaration.typeParameter)))}function Nd(e){return e.constraintType||(e.constraintType=Yd(wd(e))||Et)}function Ed(e){return e.declaration.nameType?e.nameType||(e.nameType=hS(Mx(e.declaration.nameType),e.mapper)):void 0}function Pd(e){return e.templateType||(e.templateType=e.declaration.type?hS(Yc(Mx(e.declaration.type),!0,!!(4&Bd(e))),e.mapper):Et)}function Fd(e){return Dl(e.declaration.typeParameter)}function Md(e){const t=Fd(e);return 198===t.kind&&143===t.operator}function jd(e){if(!e.modifiersType)if(Md(e))e.modifiersType=hS(Mx(Fd(e).type),e.mapper);else{const t=Nd(ex(e.declaration)),n=t&&262144&t.flags?Yd(t):t;e.modifiersType=n&&4194304&n.flags?hS(n.type,e.mapper):It}return e.modifiersType}function Bd(e){const t=e.declaration;return(t.readonlyToken?41===t.readonlyToken.kind?2:1:0)|(t.questionToken?41===t.questionToken.kind?8:4:0)}function Jd(e){const t=Bd(e);return 8&t?-1:4&t?1:0}function zd(e){if(32&Bx(e))return Jd(e)||zd(jd(e));if(2097152&e.flags){const t=zd(e.types[0]);return C(e.types,((e,n)=>0===n||zd(e)===t))?t:0}return 0}function $d(e){if(32&Bx(e)){const t=Nd(e);if(zb(t))return!0;const n=Ed(e);if(n&&zb(hS(n,Qx(wd(e),t))))return!0}return!1}function Vd(e){const t=Ed(e);return t?jS(t,wd(e))?1:2:0}function Wd(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=l_(e.target),n=re(t.typeParameters,[t.thisType]),r=Xg(e);D_(e,t,n,r.length===n.length?r:re(r,[e]))}(e):3&e.objectFlags?function(e){D_(e,l_(e),c,c)}(e):1024&e.objectFlags?hd(e):16&e.objectFlags?md(e):32&e.objectFlags?Cd(e):En.fail("Unhandled object type "+En.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=B_(j(e.types,(e=>e===Xn?[oi]:of(e,0)))),n=B_(j(e.types,(e=>of(e,1)))),r=G_(e.types);Ds(e,T,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=Y_(i),a=O(o,(e=>e));for(let s=0;s<i.length;s++){const c=e.types[s];if(!o[s]){let e=of(c,1);e.length&&a>0&&(e=j(e,(e=>{const t=P_(e);return t.resolvedReturnType=rd(sm(e),i,o,s),t}))),n=id(n,e)}t=id(t,of(c,0)),r=qe(Sf(c),((e,t)=>fd(e,t,!1)),r)}Ds(e,T,t||c,n||c,r||c)}(e):En.fail("Unhandled type "+En.formatTypeFlags(e.flags))),e}function Hd(e){return 524288&e.flags?Wd(e).properties:c}function Kd(e,t){if(524288&e.flags){const n=Wd(e).members.get(t);if(n&&gs(n))return n}}function Gd(e){if(!e.resolvedProperties){const t=_d();for(const n of e.types){for(const r of Xd(n))if(!t.has(r.escapedName)){const n=Ip(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Sf(n).length)break}e.resolvedProperties=Cs(t)}return e.resolvedProperties}function Xd(e){return 3145728&(e=Pp(e)).flags?Gd(e):Hd(e)}function Qd(e){return 262144&e.flags?Yd(e):8388608&e.flags?function(e){return up(e)?function(e){if(wp(e))return Gb(e.objectType,e.indexType);const t=ep(e.indexType);if(t&&t!==e.indexType){const n=Yb(e.objectType,t,e.accessFlags);if(n)return n}const n=ep(e.objectType);return n&&n!==e.objectType?Yb(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?ip(e):op(e)}function Yd(e){return up(e)?Pg(e):void 0}function Zd(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&te(null==(n=e.symbol)?void 0:n.declarations,(e=>Xv(e,4096)))||3145728&e.flags&&te(e.types,(e=>Zd(e,t)))||8388608&e.flags&&Zd(e.objectType,t+1)||16777216&e.flags&&Zd(ip(e),t+1)||33554432&e.flags&&Zd(e.baseType,t)||32&Bx(e)&&function(e,t){const n=_S(e);return!!n&&Zd(n,t)}(e,t)||GT(e)&&N(ov(e),((n,r)=>!!(8&e.target.elementFlags[r])&&Zd(n,t)))>=0))}function ep(e){const t=Wb(e,!1);return t!==e?t:Qd(e)}function tp(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?hS(Mx(e.root.node.trueType),e.combinedMapper):ox(e))}(e),n=ax(e);e.resolvedDefaultConstraint=kc(t)?n:kc(n)?t:mv([t,n])}return e.resolvedDefaultConstraint}function np(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Wb(e.checkType,!1),n=t===e.checkType?Qd(t):t;if(n&&n!==e.checkType){const t=gS(e,rS(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function rp(e){return np(e)||tp(e)}function ip(e){return up(e)?rp(e):void 0}function op(e){if(464781312&e.flags||GT(e)){const t=dp(e);return t!==Mn&&t!==jn?t:void 0}return 4194304&e.flags?un:void 0}function sp(e){return op(e)||e}function up(e){return dp(e)!==jn}function dp(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!dc(e,4))return jn;let n;const o=eT(e);
6if((t.length<10||t.length<50&&!F(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Pg(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?1048576&e.flags&&n.length===t.length?mv(n):2097152&e.flags&&n.length?kv(n):void 0:e}if(4194304&e.flags)return un;if(134217728&e.flags){const t=e.types,n=H(t,i);return n.length===t.length?lb(e.texts,n):zt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?_b(e.symbol,t):zt}if(8388608&e.flags){if(wp(e))return i(Gb(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Yb(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=rp(e);return t&&i(t)}return 33554432&e.flags?i(Uh(e)):GT(e)?Hy(j(ov(e),((t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&zD(r,(e=>sT(e)&&!GT(e)))?r:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(Wb(e,!1)),t.pop()),!gc()){if(262144&e.flags){const t=Tg(e);if(t){const n=Co(t,Pa.Type_parameter_0_has_a_circular_constraint,Ys(e));!r||Sh(t,r)||Sh(r,t)||DT(n,Gp(r,Pa.Circularity_originates_in_type_at_this_location))}}n=jn}null!=e.immediateBaseConstraint||(e.immediateBaseConstraint=n||Mn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==Mn&&t!==jn?t:void 0}}function pp(e){if(e.default)e.default===Bn&&(e.default=jn);else if(e.target){const t=pp(e.target);e.default=t?hS(t,e.mapper):Mn}else{e.default=Bn;const t=e.symbol&&d(e.symbol.declarations,(e=>vN(e)&&e.default)),n=t?Mx(t):Mn;e.default===Bn&&(e.default=n)}return e.default}function fp(e){const t=pp(e);return t!==Mn&&t!==jn?t:void 0}function mp(e){return!(!e.symbol||!d(e.symbol.declarations,(e=>vN(e)&&e.default)))}function bp(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t;const n=null!=(t=e.target)?t:e,r=_S(n);if(r&&!n.declaration.nameType){const t=jd(e),i=$d(t)?bp(t):op(t);if(i&&zD(i,(e=>sT(e)||xp(e))))return hS(n,rS(r,i,e.mapper))}return e}(e))}function xp(e){return!!(2097152&e.flags)&&C(e.types,sT)}function wp(e){let t;return!(!(8388608&e.flags&&32&Bx(t=e.objectType)&&!$d(t)&&zb(e.indexType))||8&Bd(t)||t.declaration.nameType)}function Ep(e){const t=465829888&e.flags?op(e)||It:e,n=Bx(t);return 32&n?bp(t):4&n&&t!==e?w_(t,e):2097152&t.flags?function(e,t){var n;if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=w_(e,t,!0));const r=`I${av(e)},${av(t)}`;return null!=(n=yo(r))?n:vo(r,w_(e,t,!0))}(t,e):402653316&t.flags?tr:296&t.flags?nr:2112&t.flags?Ur||(Ur=dy("BigInt",0,!1))||Nn:528&t.flags?rr:12288&t.flags?Ty():67108864&t.flags?Nn:4194304&t.flags?un:2&t.flags&&!K?Nn:t}function Pp(e){return Op(Ep(Op(e)))}function Fp(e,t,n){var r,i,o;let a,s,c;const l=1048576&e.flags;let u,d=4,p=l?0:8,f=!1;for(const T of e.types){const e=Ep(T);if(!(Tc(e)||131072&e.flags)){const r=ef(e,t,n),i=r?Dx(r):0;if(r){if(106500&r.flags&&(null!=u||(u=l?0:16777216),l?u|=16777216&r.flags:u&=r.flags),a){if(r!==a)if((lB(r)||r)===(lB(a)||a)&&-1===tT(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!_(lu(a.parent));else{s||(s=new Map,s.set(eJ(a),a));const e=eJ(r);s.has(e)||s.set(e,r)}}else a=r;l&&ZL(r)?p|=8:l||ZL(r)||(p&=-9),p|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),GA(r)||(d=2)}else if(l){const n=!g_(t)&&Nf(e,t);n?(p|=32|(n.isReadonly?8:0),c=fe(c,KT(e)?QT(e)||Lt:n.type)):!Uw(e)||2097152&Bx(e)?p|=16:(p|=32,c=fe(c,Lt))}}}if(!a||l&&(s||48&p)&&1536&p&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{F(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&p||c)){if(f){const t=null==(r=ht(a,dd))?void 0:r.links,n=HC(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=Kl(a),n}return a}const m=s?Xe(s.values()):[a];let g,h,y;const v=[];let b,x,S=!1;for(const _ of m){x?_.valueDeclaration&&_.valueDeclaration!==x&&(S=!0):x=_.valueDeclaration,g=he(g,_.declarations);const e=Gl(_);h||(h=e,y=Ko(_).nameType);const t=Kl(_);(b||t!==e)&&(b=fe(b||v.slice(),t)),e!==h&&(p|=64),(CT(e)||Db(e))&&(p|=128),131072&e.flags&&e!==kn&&(p|=131072),v.push(e)}he(v,c);const k=Io(4|(null!=u?u:0),t,d|p);return k.links.containingType=e,!S&&x&&(k.valueDeclaration=x,x.symbol.parent&&(k.parent=x.symbol.parent)),k.declarations=g,k.links.nameType=y,v.length>2?(k.links.checkFlags|=65536,k.links.deferralParent=e,k.links.deferralConstituents=v,k.links.deferralWriteConstituents=b):(k.links.type=l?mv(v):kv(v),b&&(k.links.writeType=l?mv(b):kv(b))),k}function Ap(e,t,n){var r,i,o;
6let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);return!a&&(a=Fp(e,t,n),a)&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=_d()):e.propertyCache||(e.propertyCache=_d())).set(t,a),!n||48&wx(a)||(null==(o=e.propertyCache)?void 0:o.get(t))||(e.propertyCache||(e.propertyCache=_d())).set(t,a)),a}function Ip(e,t,n){const r=Ap(e,t,n);return!r||16&wx(r)?void 0:r}function Op(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=J(e.types,Op);if(t===e.types)return e;const n=mv(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(te(Gd(e),Lp)?33554432:0)),33554432&e.objectFlags?nn:e):e}function Lp(e){return Rp(e)||Bp(e)}function Rp(e){return!(16777216&e.flags||192!=(131264&wx(e))||!(131072&Gl(e).flags))}function Bp(e){return!e.valueDeclaration&&!!(1024&wx(e))}function Wp(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&te(e.types,Wp)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=hS(e,Cn));return Op(t)!==t}(e))}function Qp(e,t){if(2097152&t.flags&&33554432&Bx(t)){const n=w(Gd(t),Rp);if(n)return kS(e,Pa.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ys(t,void 0,536870912),Hs(n));const r=w(Gd(t),Bp);if(r)return kS(e,Pa.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ys(t,void 0,536870912),Hs(r))}return e}function ef(e,t,n,r){var i,o;if(524288&(e=Pp(e)).flags){const a=Wd(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=Ko(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&gs(s,r))return s;if(n)return;const c=a===Rn?Xn:a.callSignatures.length?Qn:a.constructSignatures.length?Yn:void 0;if(c){const e=Kd(c,t);if(e)return e}return Kd(Gn,t)}if(2097152&e.flags){const r=Ip(e,t,!0);return r||(n?void 0:Ip(e,t,n))}if(1048576&e.flags)return Ip(e,t,n)}function tf(e,t){if(3670016&e.flags){const n=Wd(e);return 0===t?n.callSignatures:n.constructSignatures}return c}function of(e,t){const n=tf(Pp(e),t);if(0===t&&!_(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(zD(e,(e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!fs(n,Zn.symbol)&&!fs(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))}))){const n=jy(HD(e,(e=>Gx((mf(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper))),qD(e,(e=>mf(e.symbol.parent))));return e.arrayFallbackSignatures=of(bc(n,r),t)}e.arrayFallbackSignatures=n}return n}function mf(e){return!(!e||!er.symbol||!fs(e,er.symbol))}function gf(e,t){return w(e,(e=>e.keyType===t))}function hf(e,t){let n,r,i;for(const o of e)o.keyType===zt?n=o:yf(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?pg(It,kv(j(i,(e=>e.type))),qe(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&yf(t,zt)?n:void 0)}function yf(e,t){return jS(e,t)||t===zt&&jS(e,$t)||t===$t&&(e===gn||!!(128&e.flags)&&aC(e.value))}function vf(e){return 3670016&e.flags?Wd(e).indexInfos:c}function Sf(e){return vf(Pp(e))}function Tf(e,t){return gf(Sf(e),t)}function Cf(e,t){var n;return null==(n=Tf(e,t))?void 0:n.type}function wf(e,t){return Sf(e).filter((e=>yf(t,e.keyType)))}function Df(e,t){return hf(Sf(e),t)}function Nf(e,t){return Df(e,g_(t)?Yt:Tx(Pc(t)))}function Ef(e){var t;let n;for(const r of wl(e))n=ve(n,Vu(r.symbol));return(null==n?void 0:n.length)?n:sP(e)?null==(t=Bf(e))?void 0:t.typeParameters:void 0}function Pf(e){const t=[];return e.forEach(((e,n)=>{Ts(n)||t.push(e)})),t}function Ff(e,t){if(Vs(e))return;const n=Qo(me,'"'+e+'"',512);return n&&t?is(n):n}function Af(e){return Jg(e)||pC(e)||bN(e)&&gC(e)}function If(e){if(Af(e))return!0;if(!bN(e))return!1;if(e.initializer){const t=jf(e.parent),n=e.parent.parameters.indexOf(e);return En.assert(n>=0),n>=yL(t,3)}const t=vm(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=hO(t).length}function Of(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function Lf(e){let t=0;if(e)for(let n=0;n<e.length;
6n++)mp(e[n])||(t=n+1);return t}function Rf(e,t,n,r){const i=_(t);if(!i)return[];const o=_(e);if(r||o>=n&&o<=i){const n=e?e.slice():[];for(let e=o;e<i;e++)n[e]=Et;const a=Ww(r);for(let e=o;e<i;e++){let i=fp(t[e]);r&&i&&(AS(i,It)||AS(i,Nn))&&(i=Ct),n[e]=i?hS(i,Kx(t,n)):a}return n.length=t.length,n}return e&&e.slice()}function jf(e){const t=Xo(e);if(!t.resolvedSignature){const n=[];let r,i=0,o=0,a=Wm(e)?dl(e):void 0,s=!1;const c=vm(e),l=Ug(e);!c&&Wm(e)&&fh(e)&&!Xc(e)&&!hl(e)&&(i|=32);for(let t=l?1:0;t<e.parameters.length;t++){const l=e.parameters[t];if(Wm(l)&&RF(l)){a=l;continue}let u=l.symbol;const _=OF(l)?l.typeExpression&&l.typeExpression.type:l.type;u&&4&u.flags&&!Bu(l.name)&&(u=Me(l,u.escapedName,111551,void 0,!1)),0===t&&"this"===u.escapedName?(s=!0,r=l.symbol):n.push(u),_&&201===_.kind&&(i|=2),Af(l)||bN(l)&&l.initializer||nd(l)||c&&n.length>c.arguments.length&&!_||(o=n.length)}if((177===e.kind||178===e.kind)&&y_(e)&&(!s||!r)){const t=177===e.kind?178:177,n=ld(os(e),t);n&&(r=function(e){const t=FU(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=HC(Io(1,"this"),Mx(a.typeExpression)));const u=bF(e)?rh(e):e,_=u&&DN(u)?Lu(is(u.parent.symbol)):void 0,d=_?_.localTypeParameters:Ef(e);(td(e)||Wm(e)&&function(e,t){if(bF(e)||!Qf(e))return!1;const n=Oe(e.parameters),r=n?Vc(n):bl(e).filter(OF),i=y(r,(e=>e.typeExpression&&gF(e.typeExpression.type)?e.typeExpression.type:void 0)),o=Io(3,"args",32768);return i?o.links.type=jy(Mx(i.type)):(o.links.checkFlags|=65536,o.links.deferralParent=nn,o.links.deferralConstituents=[ar],o.links.deferralWriteConstituents=[ar]),i&&t.pop(),t.push(o),!0}(e,n))&&(i|=1),(RN(e)&&Xv(e,64)||DN(e)&&Xv(e.parent,64))&&(i|=4),t.resolvedSignature=E_(e,d,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Bf(e){if(!Wm(e)||!xu(e))return;const t=gl(e);return(null==t?void 0:t.typeExpression)&&YI(Mx(t.typeExpression))}function Qf(e){const t=Xo(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Te.escapedName&&oU(t)===Te;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!vy(t)&&!Mf(t)&&!!ZI(t,e)}}(e.body)),t.containsArgumentsReference}function Yf(e){if(!e||!e.declarations)return c;const t=[];for(let n=0;n<e.declarations.length;n++){const r=e.declarations[n];if(vu(r)){if(n>0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Wm(r)&&r.jsDoc){const e=th(r);if(_(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||DN(r)||rw(e,Ct),t.push(jf(e))}continue}}t.push(!iC(r)&&!Zf(r)&&Bf(r)||jf(r))}}return t}function rm(e){const t=qa(e,e);if(t){const e=Wa(t);if(e)return Gl(e)}return Ct}function im(e){if(e.thisParameter)return Gl(e.thisParameter)}function om(e){if(!e.resolvedTypePredicate){if(e.target){const r=om(e.target);e.resolvedTypePredicate=r?(t=r,n=e.mapper,Of(t.kind,t.parameterName,t.parameterIndex,hS(t.type,n))):ri}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const o of e){const e=om(o);if(e){if(0!==e.kind&&1!==e.kind||n&&!hv(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?sm(o):void 0;if(e!==Wt&&e!==Ht)return}}if(!n)return;const i=am(r,t);return Of(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ri;else{const t=e.declaration&&Rv(e.declaration);let n;if(!t){const t=Bf(e.declaration);t&&e!==t&&(n=om(t))}if(t||n)e.resolvedTypePredicate=t&&IN(t)?function(e,t){const n=e.parameterName,r=e.type&&Mx(e.type);return 197===n.kind?Of(e.assertsModifier?2:0,void 0,void 0,r):Of(e.assertsModifier?3:1,n.escapedText,N(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ri;else if(e.declaration&&xu(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&hL(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ri,e.resolvedTypePredicate=function(e){switch(e.kind){case 176:case 177:case 178:return}if(0!==Qh(e))return;let t;if(e.body&&241!==e.body.kind)t=e.body;else if(Jf(e.body,(e=>{if(t||!e.expression)return!0;t=e.expression}))||!t||HL(e))return;return function(e,t){return 16&kR(t=bh(t,!0)).flags?d(e.parameters,((n,r)=>{const i=Gl(n.symbol);if(!i||16&i.flags||!nN(n.name)||VN(n.symbol)||nd(n))return;const o=function(e,t,n,r){const i=t.flowNode||253===t.parent.kind&&t.parent.flowNode||Qj(2,void 0,void 0),o=Qj(32,t,i),a=BN(n.name,r,r,e,o);if(a===r)return;const s=Qj(64,t,i),c=BN(n.name,r,a,e,s);return 131072&c.flags?a:void 0}(e,t,n,i);return o?Of(1,Pc(n.name.escapedText),r,o):void 0})):void 0}(e,t)}(t)||ri}else e.resolvedTypePredicate=ri}En.assert(!!e.resolvedTypePredicate)}var t,n;return e.resolvedTypePredicate===ri?void 0:e.resolvedTypePredicate}function am(e,t,n){return 2097152!==t?mv(e,n):kv(e)}function sm(e){if(!e.resolvedReturnType){if(!dc(e,3))return Et;let t=e.target?hS(sm(e.target),e.mapper):e.compositeSignatures?hS(am(j(e.compositeSignatures,sm),e.compositeKind,2),e.mapper):lm(e.declaration)||(Ud(e.declaration.body)?Ct:qL(e.declaration));if(8&e.flags?t=AC(t):16&e.flags&&(t=TC(t)),!gc()){if(e.declaration){const t=Rv(e.declaration);if(t)Co(t,Pa.Return_type_annotation_circularly_references_itself);else if(ee){const t=e.declaration,n=Jc(t);n?Co(n,Pa._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,zp(n)):Co(t,Pa.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=Ct}null!=e.resolvedReturnType||(e.resolvedReturnType=t)}
6return e.resolvedReturnType}function lm(e){if(176===e.kind)return Lu(is(e.parent.symbol));const t=Rv(e);if(bF(e)){const n=oh(e);if(n&&DN(n.parent)&&!t)return Lu(is(n.parent.parent.symbol))}if(Ug(e))return Mx(e.parameters[0].type);if(t)return Mx(t);if(177===e.kind&&y_(e)){const t=Wm(e)&&Gc(e);if(t)return t;const n=Ml(ld(os(e),178));if(n)return n}return function(e){const t=Bf(e);return t&&sm(t)}(e)}function bm(e){return e.compositeSignatures&&te(e.compositeSignatures,bm)||!e.resolvedReturnType&&pc(e,3)>=0}function Nm(e){if(aJ(e)){const t=Gl(e.parameters[e.parameters.length-1]),n=KT(t)?QT(t):t;return n&&Cf(n,$t)}}function Em(e,t,n,r){const i=Pm(e,Rf(t,e.typeParameters,Lf(e.typeParameters),n));if(r){const e=tO(sm(i));if(e){const t=P_(e);t.typeParameters=r;const n=P_(i);return n.resolvedReturnType=tg(t),n}}return i}function Pm(e,t){const n=e.instantiations||(e.instantiations=new Map),r=Og(t);let i=n.get(r);return i||n.set(r,i=Im(e,t)),i}function Im(e,t){return aS(e,function(e,t){return Kx(e.typeParameters,t)}(e,t),!0)}function zm(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return aS(e,tS(e.typeParameters),!0)}(e)):e}function Vm(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return Em(e,j(e.typeParameters,(e=>e.target&&!Yd(e.target)?e.target:e)),Wm(e.declaration))}(e)):e}function Km(e){return e.typeParameters?e.implementationSignatureCache||(e.implementationSignatureCache=function(e){return e.typeParameters?aS(e,Kx([],[])):e}(e)):e}function Ym(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=tS(t),r=Kx(t,j(t,(e=>Yd(e)||It)));let i=j(t,(e=>hS(e,r)||It));for(let e=0;e<t.length-1;e++)i=zx(i,r);return i=zx(i,n),e.baseSignatureCache=aS(e,Kx(t,i),!0)}return e}function tg(e,t){var n;if(!e.isolatedSignatureType){const r=null==(n=e.declaration)?void 0:n.kind,i=void 0===r||176===r||180===r||185===r,o=Ss(134217744,Io(16,"__function"));e.declaration&&!by(e.declaration)&&(o.symbol.declarations=[e.declaration],o.symbol.valueDeclaration=e.declaration),t||(t=e.declaration&&au(e.declaration,!0)),o.outerTypeParameters=t,o.members=T,o.properties=c,o.callSignatures=i?c:[e],o.constructSignatures=i?[e]:c,o.indexInfos=c,e.isolatedSignatureType=o}return e.isolatedSignatureType}function ng(e){return e.members?ig(e.members):void 0}function ig(e){return e.get("__index")}function pg(e,t,n,r){return{keyType:e,type:t,isReadonly:n,declaration:r}}function vg(e){const t=ng(e);return t?bg(t):c}function bg(e){if(e.declarations){const t=[];for(const n of e.declarations)if(1===n.parameters.length){const e=n.parameters[0];e.type&&UD(Mx(e.type),(e=>{xg(e)&&!gf(t,e)&&t.push(pg(e,n.type?Mx(n.type):Ct,Gv(n,8),n))}))}return t}return c}function xg(e){return!!(4108&e.flags)||Db(e)||!!(2097152&e.flags)&&!Ub(e)&&te(e.types,xg)}function Tg(e){return H(L(e.symbol&&e.symbol.declarations,vN),Dl)[0]}function Cg(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const i of e.symbol.declarations)if(195===i.parent.kind){const[n=i.parent,o]=yh(i.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=fe(r,jy(It));else if(204===o.kind)r=fe(r,zt);else if(168===o.kind&&200===o.parent.kind)r=fe(r,un);else if(200===o.kind&&o.type&&bh(o.type)===i.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=fe(r,hS(Mx(e.type),Qx(Vu(os(e.typeParameter)),e.typeParameter.constraint?Mx(e.typeParameter.constraint):un)))}}else{const t=o,i=iM(t);if(i){const o=t.typeArguments.indexOf(n);if(o<i.length){const n=Yd(i[o]);if(n){const o=hS(n,Zx(i,i.map(((e,n)=>()=>tM(t,i,n)))));o!==e&&(r=fe(r,o))}}}}}return r&&kv(r)}function Pg(e){if(!e.constraint)if(e.target){const t=Yd(e.target);e.constraint=t?hS(t,e.mapper):Mn}else{const t=Tg(e);if(t){let n=Mx(t);1&n.flags&&!Tc(n)&&(n=200===t.parent.parent.kind?un:It),e.constraint=n}else e.constraint=Cg(e)||Mn}return e.constraint===Mn?void 0:e.constraint}function Ag(e){const t=ld(e.symbol,168),n=jF(t.parent)?eh(t.parent):t.parent;return n&&as(n)}function Og(e){let t="";if(e){const n=e.length;let r=0;for(;r<n;){const i=e[r].id;let o=1;for(;r+o<n&&e[r+o].id===i+o;)o++;t.length&&(t+=","),t+=i,o>1&&(t+=":"+o),r+=o}}return t}function Lg(e,t){return e?`@${eJ(e)}`+(t?`:${Og(t)}`:""):""}function jg(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=Bx(r));return 458752&n}function Bg(e,t){return te(t)&&e===Ln?It:$g(e,t)}function $g(e,t){const n=Og(t);let r=e.instantiations.get(n);return r||(r=Ss(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?jg(t):0,r.target=e,r.resolvedTypeArguments=t),r}function Vg(e){const t=vs(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Hg(e,t,n,r,i){if(!r){const e=px(r=dx(t));i=n?zx(e,n):e}const o=Ss(4,e.symbol);
6return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function Xg(e){var t,n;if(!e.resolvedTypeArguments){if(!dc(e,5))return(null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Et)))||c;const i=e.node,o=i?183===i.kind?re(e.target.outerTypeParameters,nM(i,e.target.localTypeParameters)):188===i.kind?[Mx(i.elementType)]:j(i.elements,Mx):c;gc()?null!=e.resolvedTypeArguments||(e.resolvedTypeArguments=e.mapper?zx(o,e.mapper):o):(null!=e.resolvedTypeArguments||(e.resolvedTypeArguments=(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Et)))||c),Co(e.node||r,e.target.symbol?Pa.Type_arguments_for_0_circularly_reference_themselves:Pa.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Hs(e.target.symbol)))}return e.resolvedTypeArguments}function Qg(e){return _(e.target.typeParameters)}function Yg(e,t){const n=Wu(is(t)),r=n.localTypeParameters;if(r){const t=_(e.typeArguments),i=Lf(r),o=Wm(e);if((ee||!o)&&(t<i||t>r.length)){const t=o&&PE(e)&&!xF(e.parent);if(Co(e,i===r.length?t?Pa.Expected_0_type_arguments_provide_these_with_an_extends_tag:Pa.Generic_type_0_requires_1_type_argument_s:t?Pa.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Pa.Generic_type_0_requires_between_1_and_2_type_arguments,Ys(n,void 0,2),i,r.length),!o)return Et}return 183===e.kind&&$y(e,_(e.typeArguments)!==r.length)?Hg(n,e,void 0):$g(n,re(n.outerTypeParameters,Rf(Gh(e),r,i,o)))}return Vh(e,t)?n:Et}function sh(e,t,n,r){const i=Wu(e);if(i===At){const n=XB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?wh(t[0]):_b(e,t[0])}const o=Ko(e),a=o.typeParameters,s=Og(t)+Lg(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=yS(i,Kx(a,Rf(t,a,Lf(a),Wm(e.valueDeclaration))),n,r)),c}function ch(e){var t;const n=null==(t=e.declarations)?void 0:t.find(zg);return!(!n||!cm(n))}function lh(e){return e.parent?`${lh(e.parent)}.${e.escapedName}`:e.escapedName}function ph(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?ph(e.left):211===e.kind?ph(e.expression):void 0,r=n?`${lh(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=Io(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return bt}function mh(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(Pb(t))return t}}(e);if(!r)return bt;const i=Ja(r,t,n);return i&&i!==bt?i:n?bt:ph(r)}function Th(e,t){if(t===bt)return Et;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Wm(t)||524288&e.flags||lg(t,!1))return;const n=oP(t)?sg(t):cg(t);if(n){const t=as(n);if(t)return JO(t,e)}}(t)||t).flags)return Yg(e,t);if(524288&t.flags)return function(e,t){if(1048576&wx(t)){const n=Gh(e),r=Lg(t,n);let i=kt.get(r);return i||(i=xs(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,kt.set(r,i)),i}const n=Wu(t),r=Ko(t).typeParameters;if(r){const n=_(e.typeArguments),i=Lf(r);if(n<i||n>r.length)return Co(e,i===r.length?Pa.Generic_type_0_requires_1_type_argument_s:Pa.Generic_type_0_requires_between_1_and_2_type_arguments,Hs(t),i,r.length),Et;const o=dx(e);let a,s=!o||!ch(t)&&ch(o)?void 0:o;if(s)a=px(s);else if(X_(e)){const t=mh(e,2097152,!0);if(t&&t!==bt){const n=Ia(t);n&&524288&n.flags&&(s=n,a=Gh(e)||(r?[]:void 0))}}return sh(t,Gh(e),s,a)}return Vh(e,t)?n:Et}(e,t);const n=Hu(t);if(n)return Vh(e,t)?Sx(n):Et;if(111551&t.flags&&$h(e)){const n=function(e,t){const n=Xo(e);if(!n.resolvedJSDocType){const r=Gl(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=Th(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(mh(e,788968),Gl(t))}return Et}function wh(e){return Dh(e)?Jh(e,It):e}function Dh(e){return!!(3145728&e.flags&&te(e.types,Dh)||33554432&e.flags&&!Rh(e)&&Dh(e.baseType)||524288&e.flags&&!xk(e)||432275456&e.flags&&!Db(e))}function Rh(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function jh(e,t){return 3&t.flags||t===e||1&e.flags?e:Jh(e,t)}function Jh(e,t){const n=`${av(e)}>${av(t)}`,r=lt.get(n);if(r)return r;const i=ys(33554432);return i.baseType=e,i.constraint=t,lt.set(n,i),i}function Uh(e){return Rh(e)?e.baseType:kv([e.constraint,e.baseType])}function qh(e){return 189===e.kind&&1===e.elements.length}function zh(e,t,n){return qh(t)&&qh(n)?zh(e,t.elements[0],n.elements[0]):tx(Mx(t))===tx(e)?Mx(n):void 0}function $h(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function Vh(e,t){return!e.typeArguments||(Co(e,Pa.Type_0_is_not_generic,t?Hs(t):e.typeName?zp(e.typeName):JB),!1)}function Hh(e){if(nN(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return Vh(e),zt;case"Number":return Vh(e),$t;case"Boolean":return Vh(e),Qt;case"Void":return Vh(e),en;case"Undefined":return Vh(e),Lt;case"Null":return Vh(e),Ut;case"Function":case"function":return Vh(e),Xn;case"array":return t&&t.length||ee?void 0:ar;case"promise":return t&&t.length||ee?void 0:BL(Ct);case"Object":if(t&&2===t.length){if(Xm(e)){const e=Mx(t[0]),n=Mx(t[1]),r=e===zt||e===$t?[pg(e,n,!1)]:c;return Ns(void 0,T,c,c,r)}return Ct}return Vh(e),ee?void 0:Ct}}}function Kh(e){const t=Xo(e);if(!t.resolvedType){if(jl(e)&&c_(e.parent))return t.resolvedSymbol
6=bt,t.resolvedType=kR(e.parent.expression);let n,r;const i=788968;$h(e)&&(r=Hh(e),r||(n=mh(e,i,!0),n===bt?n=mh(e,111551|i):mh(e,i),r=Th(e,n))),r||(n=mh(e,i),r=Th(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Gh(e){return j(e.typeArguments,Mx)}function Xh(e){const t=Xo(e);if(!t.resolvedType){const n=tL(e);t.resolvedType=Sx(ew(n))}return t.resolvedType}function Yh(e,t){function n(e){const t=e.declarations;if(t)for(const n of t)switch(n.kind){case 263:case 264:case 266:return n}}if(!e)return t?Ln:Nn;const r=Wu(e);return 524288&r.flags?_(r.typeParameters)!==t?(Co(n(e),Pa.Global_type_0_must_have_1_type_parameter_s,Ic(e),t),t?Ln:Nn):r:(Co(n(e),Pa.Global_type_0_must_be_a_class_or_interface_type,Ic(e)),t?Ln:Nn)}function ey(e,t){return _y(e,111551,t?Pa.Cannot_find_global_value_0:void 0)}function sy(e,t){return _y(e,788968,t?Pa.Cannot_find_global_type_0:void 0)}function uy(e,t,n){const r=_y(e,788968,n?Pa.Cannot_find_global_type_0:void 0);if(!r||(Wu(r),_(Ko(r).typeParameters)===t))return r;Co(r.declarations&&w(r.declarations,uP),Pa.Global_type_0_must_have_1_type_parameter_s,Ic(r),t)}function _y(e,t,n){return Me(void 0,e,t,n,!1,!1)}function dy(e,t,n){const r=sy(e,n);return r||n?Yh(r,t):void 0}function py(){return Ar||(Ar=dy("ImportMeta",0,!0)||Nn)}function my(){if(!Ir){const e=Io(0,"ImportMetaExpression"),t=py(),n=Io(4,"meta",8);n.parent=e,n.links.type=t;const r=_d([n]);e.members=r,Ir=Ns(e,r,c,c,c)}return Ir}function xy(e){return Or||(Or=dy("ImportCallOptions",0,e))||Nn}function Sy(e){return Lr||(Lr=dy("ImportAttributes",0,e))||Nn}function ky(e){return ur||(ur=ey("Symbol",e))}function Ty(){return dr||(dr=dy("Symbol",0,!1))||Nn}function Cy(e){return mr||(mr=dy("Promise",1,e))||Ln}function wy(e){return gr||(gr=dy("PromiseLike",1,e))||Ln}function Dy(e){return hr||(hr=ey("Promise",e))}function Ny(e){return Dr||(Dr=dy("AsyncIterable",1,e))||Ln}function Ey(e){return vr||(vr=dy("Iterable",1,e))||Ln}function Ay(e){return Rr||(Rr=dy("Disposable",0,e))||Nn}function Iy(e,t=0){const n=_y(e,788968,void 0);return n&&Yh(n,t)}function Oy(e){return Jr||(Jr=uy("Awaited",1,e)||(e?bt:void 0)),Jr===bt?void 0:Jr}function Ly(e,t){return e!==Ln?$g(e,t):Nn}function Ry(e){return Ly(fr||(fr=dy("TypedPropertyDescriptor",1,!0)||Ln),[e])}function My(e){return Ly(Ey(!0),[e])}function jy(e,t){return Ly(t?er:Zn,[e])}function By(e){switch(e.kind){case 190:return 2;case 191:return Jy(e);case 202:return e.questionToken?2:e.dotDotDotToken?Jy(e):1;default:return 1}}function Jy(e){return Rx(e.type)?4:8}function Uy(e){const t=function(e){return XN(e)&&148===e.operator}(e.parent);return Rx(e)?t?er:Zn:Ky(j(e.elements,By),t,j(e.elements,zy))}function zy(e){return UN(e)||bN(e)?e:void 0}function $y(e,t){return!!dx(e)||Vy(e)&&(188===e.kind?Wy(e.elementType):189===e.kind?te(e.elements,Wy):t||te(e.typeArguments,Wy))}function Vy(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return Vy(t);case 265:return!0}return!1}function Wy(e){switch(e.kind){case 183:return $h(e)||!!(524288&mh(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&Wy(e.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return Wy(e.type);case 191:return 188!==e.type.kind||Wy(e.type.elementType);case 192:case 193:return te(e.types,Wy);case 199:return Wy(e.objectType)||Wy(e.indexType);case 194:return Wy(e.checkType)||Wy(e.extendsType)||Wy(e.trueType)||Wy(e.falseType)}return!1}function Hy(e,t,n=!1,r=[]){const i=Ky(t||j(e,(e=>1)),n,r);return i===Ln?Nn:e.length?Gy(i,e):i}function Ky(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=j(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(te(n,(e=>!!e))?","+j(n,(e=>e?ZB(e):"_")).join(","):"");let i=We.get(r);return i||We.set(r,i=function(e,t,n){const r=e.length,i=O(e,(e=>!!(9&e)));let o;const a=[];let s=0;if(r){o=new Array(r);for(let i=0;i<r;i++){const r=o[i]=ks(),c=e[i];if(s|=c,!(12&s)){const e=Io(4|(2&c?16777216:0),""+i,t?8:0);e.links.tupleLabelDeclaration=null==n?void 0:n[i],e.links.type=r,a.push(e)}}}const l=a.length,u=Io(4,"length",t?8:0);if(12&s)u.links.type=$t;else{const e=[];for(let t=i;t<=r;t++)e.push(Cx(t));u.links.type=mv(e)}a.push(u);const _=Ss(12);return _.typeParameters=o,_.outerTypeParameters=void 0,_.localTypeParameters=o,_.instantiations=new Map,_.instantiations.set(Og(_.typeParameters),_),_.target=_,_.resolvedTypeArguments=_.typeParameters,_.thisType=ks(),_.thisType.isThisType=!0,_.thisType.constraint=_,_.declaredProperties=a,_.declaredCallSignatures=c,_.declaredConstructSignatures=c,_.declaredIndexInfos=c,_.elementFlags=e,_.minLength=i,_.fixedLength=l,_.hasRestElement=!!(12&s),_.combinedFlags=s,_.readonly=t,_.labeledElementDeclarations=n,_}(e,t,n)),i}function Gy(e,t){return 8&e.objectFlags?Yy(e,t):$g(e,t)}function Yy(e,t){var n,i,o,a;
6if(!(14&e.combinedFlags))return $g(e,t);if(8&e.combinedFlags){const n=N(t,((t,n)=>!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return Av(j(t,((t,n)=>8&e.elementFlags[n]?t:It)))?HD(t[n],(r=>Yy(e,Be(t,n,r)))):Et}const s=[],c=[],l=[];let u=-1,_=-1,p=-1;for(let g=0;g<t.length;g++){const c=t[g],l=e.elementFlags[g];if(8&l)if(1&c.flags)m(c,4,null==(n=e.labeledElementDeclarations)?void 0:n[g]);else if(58982400&c.flags||$d(c))m(c,8,null==(i=e.labeledElementDeclarations)?void 0:i[g]);else if(KT(c)){const e=ov(c);if(e.length+s.length>=1e4)return Co(r,Mf(r)?Pa.Type_produces_a_tuple_type_that_is_too_large_to_represent:Pa.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;d(e,((e,t)=>{var n;return m(e,c.target.elementFlags[t],null==(n=c.target.labeledElementDeclarations)?void 0:n[t])}))}else m(uT(c)&&Cf(c,$t)||Et,4,null==(o=e.labeledElementDeclarations)?void 0:o[g]);else m(c,l,null==(a=e.labeledElementDeclarations)?void 0:a[g])}for(let r=0;r<u;r++)2&c[r]&&(c[r]=1);_>=0&&_<p&&(s[_]=mv(J(s.slice(_,p+1),((e,t)=>8&c[_+t]?Xb(e,$t):e))),s.splice(_+1,p-_),c.splice(_+1,p-_),l.splice(_+1,p-_));const f=Ky(c,e.readonly,l);return f===Ln?Nn:c.length?$g(f,s):f;function m(e,t,n){1&t&&(u=c.length),4&t&&_<0&&(_=c.length),6&t&&(p=c.length),s.push(2&t?Yc(e,!0):e),c.push(t),l.push(n)}}function Zy(e,t,n=0){const r=e.target,i=Qg(e)-n;return t>r.fixedLength?function(e){const t=QT(e);return t&&jy(t)}(e)||Hy(c):Hy(Xg(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function ev(e){return mv(fe(Ge(e.target.fixedLength,(e=>Tx(""+e))),ab(e.target.readonly?er:Zn)))}function rv(e,t){return e.elementFlags.length-E(e.elementFlags,(e=>!(e&t)))-1}function iv(e){return e.fixedLength+rv(e,3)}function ov(e){const t=Xg(e),n=Qg(e);return t.length===n?t:t.slice(0,n)}function av(e){return e.id}function sv(e,t){return Je(e,t,av,jt)>=0}function cv(e,t){const n=Je(e,t,av,jt);return n<0&&(e.splice(~n,0,t),!0)}function lv(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&Bx(n)&&(t|=536870912),n===Dt&&(t|=8388608),Tc(n)&&(t|=1073741824),!K&&98304&r)65536&Bx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Je(e,n,av,jt);r<0&&e.splice(~r,0,n)}return t}function uv(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?uv(e,t|(dv(i)?1048576:0),i.types):lv(e,t,i),r=i);return t}function _v(e,t){return 134217728&t.flags?Rw(e,t):Iw(e,t)}function dv(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function pv(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?ye(e,n):t&&1048576&t.flags&&pv(e,t.types)}}function fv(e,t){const n=bs(e);return n.types=t,n}function mv(e,t=1,n,r,i){if(0===e.length)return nn;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id<e[1].id?0:1,a=e[o].id+i+e[1-o].id+Lg(n,r);let s=Ke.get(a);return s||(s=gv(e,t,n,r,void 0),Ke.set(a,s)),s}return gv(e,t,n,r,i)}function gv(e,t,n,i,o){let a=[];const s=uv(a,0,e);if(0!==t){if(3&s)return 1&s?8388608&s?Dt:1073741824&s?Et:Ct:It;if(32768&s&&a.length>=2&&a[0]===Lt&&a[1]===Mt&&sn(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||kx(i)&&sv(e,i.regularType))&&sn(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=L(e,Db);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&te(t,(e=>_v(r,e)))&&sn(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&Bx(n)){const e=8650752&n.types[0].flags?0:1;ye(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&Bx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&cv(t,r.types[1-e])}if(zD(op(n),(e=>sv(t,e)))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&Bx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&sv(t,i.types[1-o])&&sn(e,r)}}cv(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=Og(e),o=ut.get(i);if(o)return o;const a=t&&te(e,(e=>!!(524288&e.flags)&&!$d(e)&&vk(Wd(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&sp(t).flags){wk(t,mv(j(e,(e=>e===t?nn:e))),_o)&&sn(e,c);continue}const i=61603840&t.flags?w(Xd(t),(e=>
6xT(Gl(e)))):void 0,o=i&&Sx(Gl(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=pr)||n.instant(pr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void Co(r,Pa.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=bc(a,i.escapedName);if(e&&xT(e)&&Sx(e)!==o)continue}if(wk(t,a,_o)&&(!(1&Bx(eu(t)))||!(1&Bx(eu(a)))||qS(t,a))){sn(e,c);break}}}}return ut.set(i,e),e}(a,!!(524288&s)),!a))return Et;if(0===a.length)return 65536&s?4194304&s?Ut:qt:32768&s?4194304&s?Lt:Rt:nn}if(!o&&1048576&s){const t=[];pv(t,e);const r=[];for(const e of a)te(t,(t=>sv(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(qe(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)cv(r,e);o=fv(1048576,r)}}return yv(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function hv(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function yv(e,t,n,r,i){if(0===e.length)return nn;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${Og(i.types)}`:2097152&i.flags?`&${Og(i.types)}`:`#${i.type.id}|${Og(e)}`:Og(e))+Lg(n,r);let a=He.get(o);return a||(a=ys(1048576),a.objectFlags=t|jg(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),He.set(o,a)),a}function vv(e,t,n){const r=n.flags;return 2097152&r?bv(e,t,n.types):(xk(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Dt&&(t|=8388608),Tc(n)&&(t|=1073741824)):!K&&98304&r||(n===Mt&&(t|=262144,n=Lt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function bv(e,t,n){for(const r of n)t=vv(e,t,Sx(r));return t}function xv(e,t){for(const n of e)if(!sv(n.types,t)){const e=128&t.flags?zt:288&t.flags?$t:2048&t.flags?Vt:8192&t.flags?Yt:void 0;if(!e||!sv(n.types,e))return!1}return!0}function Sv(e,t){for(let n=0;n<e.length;n++)e[n]=$D(e[n],(e=>!(e.flags&t)))}function kv(e,t=0,n,r){const i=new Map,o=bv(i,0,e),a=Xe(i.values());let s=0;if(131072&o)return F(a,rn)?rn:nn;if(K&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return nn;if(402653184&o&&128&o&&function(e){let t=e.length;const n=L(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(RS(i,r)){sn(e,t);break}if(Db(r))return!0}}return!1}(a))return nn;if(1&o)return 8388608&o?Dt:1073741824&o?Et:Ct;if(!K&&98304&o)return 16777216&o?nn:32768&o?Lt:Ut;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||xk(r)&&470302716&t)&&sn(e,n)}}(a,o)),262144&o&&(a[a.indexOf(Lt)]=Mt),0===a.length)return It;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!Nb(n)||16777216&o)){const e=op(t);if(e&&zD(e,(e=>!!(469893116&e.flags)||xk(e)))){if(MS(e,n))return t;if(!(1048576&e.flags&&qD(e,(e=>MS(e,n)))||MS(n,e)))return nn;s=67108864}}}const c=Og(a)+(2&t?"*":Lg(n,r));let l=Qe.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=N(e,(e=>!!(32768&Bx(e))));if(n<0)return!1;let r=n+1;for(;r<e.length;){const i=e[r];32768&Bx(i)?((t||(t=[e[n]])).push(i),sn(e,r)):r++}if(!t)return!1;const i=[],o=[];for(const a of t)for(const e of a.types)cv(i,e)&&xv(t,e)&&cv(o,e);return e[n]=yv(o,32768),!0}(a))l=kv(a,t,n,r);else if(C(a,(e=>!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=te(a,$C)?Mt:Lt;Sv(a,32768),l=mv([kv(a,t),e],1,n,r)}else if(C(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))Sv(a,65536),l=mv([kv(a,t),Ut],1,n,r);else if(a.length>=4){const e=Math.floor(a.length/2);l=kv([kv(a.slice(0,e),t),kv(a.slice(e),t)],t,n,r)}else{if(!Av(a))return Et;const e=function(e,t){const n=wv(e),r=[];for(let i=0;i<n;i++){const n=e.slice();let o=i;for(let t=e.length-1;t>=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;
6n[t]=r[o%i],o=Math.floor(o/i)}const a=kv(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=mv(e,1,n,r,te(e,(e=>!!(2097152&e.flags)))&&Lv(e)>Lv(a)?fv(2097152,a):void 0)}else l=function(e,t,n,r){const i=ys(2097152);return i.objectFlags=t|jg(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);Qe.set(c,l)}return l}function wv(e){return qe(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function Av(e){var t;const n=wv(e);return!(n>=1e5&&(null==(t=pr)||t.instant(pr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),Co(r,Pa.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Iv(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Iv(e.origin):Lv(e.types):1}function Lv(e){return qe(e,((e,t)=>e+Iv(t)),0)}function Bv(e,t){const n=ys(4194304);return n.type=e,n.indexFlags=t,n}function Jv(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Bv(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Bv(e,0))}function Uv(e,t){const n=wd(e),r=Nd(e),i=Ed(e.target||e);if(!(i||2&t))return r;const o=[];if(zb(r)){if(Md(e))return Jv(e,t);UD(r,s)}else Md(e)?Td(Ep(jd(e)),8576,!!(1&t),s):UD(yd(r),s);const a=2&t?$D(mv(o),(e=>!(5&e.flags))):mv(o);return 1048576&a.flags&&1048576&r.flags&&Og(a.types)===Og(r.types)?r:a;function s(t){const r=i?hS(i,iS(e.mapper,n,t)):t;o.push(r===zt?ln:r)}}function qv(e){if(rN(e))return nn;if(MD(e))return Sx(qR(e));if(yN(e))return Sx(lA(e));const t=ry(e);return void 0!==t?Tx(Pc(t)):s_(e)?Sx(qR(e)):nn}function zv(e,t,n){if(n||!(6&Dx(e))){let n=Ko(S_(e)).nameType;if(!n){const t=Jc(e.valueDeclaration);n="default"===e.escapedName?Tx("default"):t&&qv(t)||(ly(e)?void 0:Tx(Ic(e)))}if(n&&n.flags&t)return n}return nn}function $v(e,t){return!!(e.flags&t||2097152&e.flags&&te(e.types,(e=>$v(e,t))))}function Vv(e,t,n){const r=n&&(7&Bx(e)||e.aliasSymbol)?function(e){const t=bs(4194304);return t.type=e,t}(e):void 0;return mv(re(j(Xd(e),(e=>zv(e,t))),j(Sf(e),(e=>e!==ci&&$v(e.keyType,t)?e.keyType===zt&&8&t?ln:e.keyType:nn))),1,void 0,void 0,r)}function Wv(e,t=0){return!!(58982400&e.flags||GT(e)||$d(e)&&(!function(e){const t=wd(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?C(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(Ed(e)||t)}(e)||2===Vd(e))||1048576&e.flags&&!(4&t)&&Wp(e)||2097152&e.flags&&aR(e,465829888)&&te(e.types,xk))}function ab(e,t=0){return Rh(e=Op(e))?wh(ab(e.baseType,t)):Wv(e,t)?Jv(e,t):1048576&e.flags?kv(j(e.types,(e=>ab(e,t)))):2097152&e.flags?mv(j(e.types,(e=>ab(e,t)))):32&Bx(e)?Uv(e,t):e===Dt?Dt:2&e.flags?nn:131073&e.flags?un:Vv(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function sb(e){const t=(jr||(jr=uy("Extract",2,!0)||bt),jr===bt?void 0:jr);return t?sh(t,[e,zt]):zt}function lb(e,t){const n=N(t,(e=>!!(1179648&e.flags)));if(n>=0)return Av(t)?HD(t[n],(r=>lb(e,Be(t,n,r)))):Et;if(F(t,Dt))return Dt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a<n.length;a++){const s=n[a];if(101248&s.flags)o+=ub(s)||"",o+=t[a+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=t[a+1]}else{if(!zb(s)&&!Tb(s))return!1;r.push(s),i.push(o),o=t[a+1]}}return!0}(e,t))return zt;if(0===r.length)return Tx(o);if(i.push(o),C(i,(e=>""===e))){if(C(r,(e=>!!(4&e.flags))))return zt;if(1===r.length&&Db(r[0]))return r[0]}const a=`${Og(r)}|${j(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=ot.get(a);return s||ot.set(a,s=function(e,t){const n=ys(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function ub(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?LT(e.value):98816&e.flags?e.intrinsicName:void 0}function _b(e,t){return 1179648&t.flags?HD(t,(t=>_b(e,t))):128&t.flags?Tx(db(e,t.value)):134217728&t.flags?lb(...function(e,t,n){switch(XB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>_b(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>_b(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[_b(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[_b(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||zb(t)?pb(e,t):Tb(t)?pb(e,lb(["",""],[t])):t}function db(e,t){switch(XB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function pb(e,t){const n=`${eJ(e)},${av(t)}`;let r=at.get(n);return r||at.set(n,r=function(e,t){const n=vs(268435456,e);return n.type=t,n}(e,t)),r}function fb(e){if(ee)return!1;if(4096&Bx(e))return!0;
6if(1048576&e.flags)return C(e.types,fb);if(2097152&e.flags)return te(e.types,fb);if(465829888&e.flags){const t=dp(e);return t!==e&&fb(t)}return!1}function hb(e,t){return NC(e)?EC(e):t&&hu(t)?ry(t):void 0}function yb(e,t){if(8208&t.flags){const n=wc(e.parent,(e=>!Hx(e)))||e.parent;return Yu(n)?Zu(n)&&nN(e)&&dD(n,e):C(t.declarations,(e=>!vu(e)||Fo(e)))}return!0}function vb(e,t,n,r,i,o){var a;const s=i&&212===i.kind?i:void 0,c=i&&rN(i)?void 0:hb(n,i);if(void 0!==c){if(256&o)return wF(t,c)||Ct;const e=ef(t,c);if(e){if(64&o&&i&&e.declarations&&Po(e)&&yb(i,e)&&Ao(null!=(a=null==s?void 0:s.argumentExpression)?a:QN(i)?i.indexType:i,e.declarations,c),s){if(OI(e,s,LI(s.expression,t.symbol)),eR(s,e,uh(s)))return void Co(s.argumentExpression,Pa.Cannot_assign_to_0_because_it_is_a_read_only_property,Hs(e));if(8&o&&(Xo(i).resolvedSymbol=e),mI(s,e))return wt}const n=4&o?Kl(e):Gl(e);return s&&1!==uh(s)?BN(s,n):i&&QN(i)&&$C(n)?mv([n,Lt]):n}if(zD(t,KT)&&aC(c)){const e=+c;if(i&&zD(t,(e=>!e.target.hasRestElement))&&!(16&o)){const n=bb(i);if(KT(t)){if(e<0)return Co(n,Pa.A_tuple_type_cannot_be_indexed_with_a_negative_value),Lt;Co(n,Pa.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ys(t),Qg(t),Pc(c))}else Co(n,Pa.Property_0_does_not_exist_on_type_1,Pc(c),Ys(t))}if(e>=0)return l(Tf(t,$t)),ZT(t,e,1&o?Mt:void 0)}}if(!(98304&n.flags)&&sR(n,402665900)){if(131073&t.flags)return t;const a=Df(t,n)||Tf(t,zt);if(a)return 2&o&&a.keyType!==$t?void(s&&(4&o?Co(s,Pa.Type_0_is_generic_and_can_only_be_indexed_for_reading,Ys(e)):Co(s,Pa.Type_0_cannot_be_used_to_index_type_1,Ys(n),Ys(e)))):i&&a.keyType===zt&&!sR(n,12)?(Co(bb(i),Pa.Type_0_cannot_be_used_as_an_index_type,Ys(n)),1&o?mv([a.type,Mt]):a.type):(l(a),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&cs(n.symbol)===t.symbol)?mv([a.type,Mt]):a.type);if(131072&n.flags)return nn;if(fb(t))return Ct;if(s&&!lR(t)){if(Uw(t)){if(ee&&384&n.flags)return so.add(Gp(s,Pa.Property_0_does_not_exist_on_type_1,n.value,Ys(t))),Lt;if(12&n.flags)return mv(fe(j(t.properties,(e=>Gl(e))),Lt))}if(t.symbol===be&&void 0!==c&&be.exports.has(c)&&418&be.exports.get(c).flags)Co(s,Pa.Property_0_does_not_exist_on_type_1,Pc(c),Ys(t));else if(ee&&!(128&o))if(void 0!==c&&SI(c,t)){const e=Ys(t);Co(s,Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,c,e,e+"["+ap(s.argumentExpression)+"]")}else if(Cf(t,$t))Co(s.argumentExpression,Pa.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==c&&(e=PI(c,t)))void 0!==e&&Co(s.argumentExpression,Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,c,Ys(t),e);else{const e=function(e,t,n){function r(t){const r=Kd(e,t);if(r){const e=YI(Gl(r));return!!e&&yL(e)>=1&&jS(n,pL(e,0))}return!1}const i=_h(t)?"set":"get";if(!r(i))return;let o=Ob(t.expression);return void 0===o?o=i:o+="."+i,o}(t,s,n);if(void 0!==e)Co(s,Pa.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ys(t),e);else{let e;if(1024&n.flags)e=kS(void 0,Pa.Property_0_does_not_exist_on_type_1,"["+Ys(n)+"]",Ys(t));else if(8192&n.flags){const r=Ba(n.symbol,s);e=kS(void 0,Pa.Property_0_does_not_exist_on_type_1,"["+r+"]",Ys(t))}else 128&n.flags||256&n.flags?e=kS(void 0,Pa.Property_0_does_not_exist_on_type_1,n.value,Ys(t)):12&n.flags&&(e=kS(void 0,Pa.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ys(n),Ys(t)));e=kS(e,Pa.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ys(r),Ys(t)),so.add(Yp(Id(s),s,e))}}}return}}if(fb(t))return Ct;if(i){const e=bb(i);384&n.flags?Co(e,Pa.Property_0_does_not_exist_on_type_1,""+n.value,Ys(t)):12&n.flags?Co(e,Pa.Type_0_has_no_matching_index_signature_for_type_1,Ys(t),Ys(n)):Co(e,Pa.Type_0_cannot_be_used_as_an_index_type,Ys(n))}return kc(n)?n:void 0;function l(e){e&&e.isReadonly&&s&&(_h(s)||xh(s))&&Co(s,Pa.Index_signature_in_type_0_only_permits_reading,Ys(t))}}function bb(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function Tb(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||Tb(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||Db(e)}function Db(e){return!!(134217728&e.flags)&&C(e.types,Tb)||!!(268435456&e.flags)&&Tb(e.type)}function Nb(e){return!!(402653184&e.flags)&&!Db(e)}function Ub(e){return!!Vb(e)}function qb(e){return!!(4194304&Vb(e))}function zb(e){return!!(8388608&Vb(e))}
6function Vb(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|qe(e.types,((e,t)=>e|Vb(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Vb(e.baseType)|Vb(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||$d(e)||GT(e)?4194304:0)|(63176704&e.flags||Nb(e)?8388608:0)}function Wb(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===jn?e:e[n];e[n]=jn;const r=Wb(e.objectType,t),i=Wb(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=j(t.types,(t=>Wb(Xb(e,t),n)));return n?kv(r):mv(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Hb(r,i,t);if(o)return e[n]=o}if(GT(r)&&296&i.flags){const o=eC(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return $d(r)&&2!==Vd(r)?e[n]=HD(Gb(r,e.indexType),(e=>Wb(e,t))):e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=ox(e),o=ax(e);if(131072&o.flags&&tx(i)===tx(n)){if(1&n.flags||jS(CS(n),CS(r)))return Wb(i,t);if(Kb(n,r))return nn}else if(131072&i.flags&&tx(o)===tx(n)){if(!(1&n.flags)&&jS(CS(n),CS(r)))return nn;if(1&n.flags||Kb(n,r))return Wb(o,t)}return e}(e,t):e}function Hb(e,t,n){if(1048576&e.flags||2097152&e.flags&&!Wv(e)){const r=j(e.types,(e=>Wb(Xb(e,t),n)));return 2097152&e.flags||n?kv(r):mv(r)}}function Kb(e,t){return!!(131072&mv([Q_(e,t),nn]).flags)}function Gb(e,t){const n=Kx([wd(e)],[t]),r=nS(e.mapper,n),i=hS(Pd(e.target||e),r),o=Jd(e)>0||(Ub(e)?zd(jd(e))>0:function(e,t){const n=op(t);return!!n&&te(Xd(e),(e=>!!(16777216&e.flags)&&jS(zv(e,8576),n)))}(e,t));return Yc(i,!0,o)}function Xb(e,t,n=0,r,i,o){return Yb(e,t,n,r,i,o)||(r?Et:It)}function Qb(e,t){return zD(e,(e=>{if(384&e.flags){const n=EC(e);if(aC(n)){const e=+n;return e>=0&&e<t}}return!1}))}function Yb(e,t,n=0,r,i,o){if(e===Dt||t===Dt)return Dt;if(!kk(e=Op(e))||98304&t.flags||!sR(t,12)||(t=zt),I.noUncheckedIndexedAccess&&32&n&&(n|=1),zb(t)||(r&&199!==r.kind?GT(e)&&!Qb(t,iv(e.target)):qb(e)&&(!KT(e)||!Qb(t,iv(e.target)))||Wp(e))){if(3&e.flags)return e;const r=1&n,a=e.id+","+t.id+","+r+Lg(i,o);let s=it.get(a);return s||it.set(a,s=function(e,t,n,r,i){const o=ys(8388608);return o.objectType=e,o.indexType=t,o.accessFlags=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}(e,t,r,i,o)),s}const a=Pp(e);if(1048576&t.flags&&!(16&t.flags)){const s=[];let c=!1;for(const i of t.types){const o=vb(e,a,i,t,r,n|(c?128:0));if(o)s.push(o);else{if(!r)return;c=!0}}if(c)return;return 4&n?kv(s,0,i,o):mv(s,1,i,o)}return vb(e,a,t,t,r,72|n)}function Zb(e){const t=Xo(e);if(!t.resolvedType){const n=Mx(e.objectType),r=Mx(e.indexType),i=dx(e);t.resolvedType=Xb(n,r,0,e,i,px(i))}return t.resolvedType}function ex(e){const t=Xo(e);if(!t.resolvedType){const n=Ss(32,e.symbol);n.declaration=e,n.aliasSymbol=dx(e),n.aliasTypeArguments=px(n.aliasSymbol),t.resolvedType=n,Nd(n)}return t.resolvedType}function tx(e){return 33554432&e.flags?tx(e.baseType):8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Xb(tx(e.objectType),tx(e.indexType)):e}function nx(e){return JN(e)&&_(e.elements)>0&&!te(e.elements,(e=>qN(e)||zN(e)||UN(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function rx(e,t){return Ub(e)||t&&KT(e)&&te(ov(e),Ub)}function ix(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return Co(r,Pa.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const u=hS(tx(e.checkType),t),d=hS(e.extendsType,t);if(u===Et||d===Et)return Et;if(u===Dt||d===Dt)return Dt;const p=vh(e.node.checkType),f=vh(e.node.extendsType),m=nx(p)&&nx(f)&&_(p.elements)===_(f.elements),g=rx(u,m);let h;if(e.inferTypeParameters){const n=sw(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=nS(n.nonFixingMapper,t)),g||jw(n.inferences,u,d,1536),h=t?nS(n.mapper,t):n.mapper}const y=h?hS(e.extendsType,h):d;if(!g&&!rx(y,m)){if(!(3&y.flags)&&(1&u.flags||!jS(SS(u),SS(y)))){(1&u.flags||n&&!(131072&y.flags)&&qD(SS(y),(e=>jS(e,SS(u)))))&&(s||(s=[])).push(hS(Mx(e.node.trueType),h||t));const r=Mx(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(l(r,t))continue}a=hS(r,t);break}if(3&y.flags||jS(CS(u),CS(y))){const n=Mx(e.node.trueType),r=h||t;if(l(n,r))continue;a=hS(n,r);break}}a=ys(16777216),a.root=e,a.checkType=hS(e.checkType,t),a.extendsType=hS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol
6=i||e.aliasSymbol,a.aliasTypeArguments=i?o:zx(e.aliasTypeArguments,t);break}return s?mv(fe(s,a)):a;function l(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=nS(n.mapper,r),l=j(a.outerTypeParameters,(e=>Gx(e,s))),u=Kx(a.outerTypeParameters,l),_=a.isDistributive?Gx(a.checkType,u):void 0;if(!(_&&_!==a.checkType&&1179648&_.flags))return e=a,t=u,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function ox(e){return e.resolvedTrueType||(e.resolvedTrueType=hS(Mx(e.root.node.trueType),e.mapper))}function ax(e){return e.resolvedFalseType||(e.resolvedFalseType=hS(Mx(e.root.node.falseType),e.mapper))}function sx(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=fe(t,Wu(e)))})),t}function cx(e){return nN(e)?[e]:fe(cx(e.left),e.right)}function lx(e){var t;const n=Xo(e);if(!n.resolvedType){if(!kf(e))return Co(e.argument,Pa.String_literal_expected),n.resolvedSymbol=bt,n.resolvedType=Et;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=qa(e,e.argument.literal);if(!i)return n.resolvedSymbol=bt,n.resolvedType=Et;
6const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=Wa(i,!1);if(Ud(e.qualifier))a.flags&r?n.resolvedType=ux(e,n,a,r):(Co(e,111551===r?Pa.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Pa.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=bt,n.resolvedType=Et);else{const t=cx(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=is(Aa(s)),l=e.isTypeOf||Wm(e)&&o?ef(Gl(c),i.escapedText,!1,!0):void 0,u=e.isTypeOf?void 0:Qo(es(c),i.escapedText,a),_=null!=u?u:l;if(!_)return Co(i,Pa.Namespace_0_has_no_exported_member_1,Ba(s),zp(i)),n.resolvedType=Et;Xo(i).resolvedSymbol=_,Xo(i.parent).resolvedSymbol=_,s=_}n.resolvedType=ux(e,n,s,r)}}return n.resolvedType}function ux(e,t,n,r){const i=Aa(n);return t.resolvedSymbol=i,111551===r?nL(Gl(n),e):Th(e,i)}function _x(e){const t=Xo(e);if(!t.resolvedType){const n=dx(e);if(0!==x_(e.symbol).size||n){let r=Ss(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=px(n),vF(e)&&e.isArrayType&&(r=jy(r)),t.resolvedType=r}else t.resolvedType=An}return t.resolvedType}function dx(e){let t=e.parent;for(;KN(t)||iF(t)||XN(t)&&148===t.operator;)t=t.parent;return zg(t)?os(t):void 0}function px(e){return e?lu(e):void 0}function fx(e){return!!(524288&e.flags)&&!$d(e)}function mx(e){return bk(e)||!!(474058748&e.flags)}function gx(e,t){if(!(1048576&e.flags))return e;if(C(e.types,mx))return w(e.types,bk)||Nn;const n=w(e.types,(e=>!mx(e)));return n?w(e.types,(e=>e!==n&&!mx(e)))?e:function(e){const n=_d();for(const i of Xd(e))if(6&Dx(i));else if(yx(i)){const e=65536&i.flags&&!(32768&i.flags),r=Io(16777220,i.escapedName,vd(i)|(t?8:0));r.links.type=e?Lt:Yc(Gl(i),!0),r.declarations=i.declarations,r.links.nameType=Ko(i).nameType,r.links.syntheticOrigin=i,n.set(i.escapedName,r)}const r=Ns(e.symbol,n,c,c,Sf(e));return r.objectFlags|=131200,r}(n):e}function hx(e,t,n,r,i){if(1&e.flags||1&t.flags)return Ct;if(2&e.flags||2&t.flags)return It;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=gx(e,i)).flags)return Av([e,t])?HD(e,(e=>hx(e,t,n,r,i))):Et;if(1048576&(t=gx(t,i)).flags)return Av([e,t])?HD(t,(t=>hx(e,t,n,r,i))):Et;if(473960444&t.flags)return e;if(qb(e)||qb(t)){if(bk(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(fx(a)&&fx(t))return kv(re(o.slice(0,o.length-1),[hx(a,t,n,r,i)]))}return kv([e,t])}const o=_d(),a=new Set,s=e===Nn?Sf(t):G_([e,t]);for(const c of Xd(t))6&Dx(c)?a.add(c.escapedName):yx(c)&&o.set(c.escapedName,vx(c,i));for(const c of Xd(e))if(!a.has(c.escapedName)&&yx(c))if(o.has(c.escapedName)){const e=o.get(c.escapedName),t=Gl(e);if(16777216&e.flags){const n=re(c.declarations,e.declarations),r=Io(4|16777216&c.flags,c.escapedName),i=Gl(c),a=VC(i),s=VC(t);r.links.type=a===s?i:mv([i,s],2),r.links.leftSpread=c,r.links.rightSpread=e,r.declarations=n,r.links.nameType=Ko(c).nameType,o.set(c.escapedName,r)}}else o.set(c.escapedName,vx(c,i));const l=Ns(n,o,c,c,J(s,(e=>function(e,t){return e.isReadonly!==t?pg(e.keyType,e.type,t,e.declaration):e}(e,i))));return l.objectFlags|=2228352|r,l}function yx(e){var t;return!(te(e.declarations,uu)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>Du(e.parent)))))}function vx(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===ZL(e))return e;const r=Io(4|16777216&e.flags,e.escapedName,vd(e)|(t?8:0));return r.links.type=n?Lt:Gl(e),r.declarations=e.declarations,r.links.nameType=Ko(e).nameType,r.links.syntheticOrigin=e,r}function bx(e,t,n,r){const i=vs(e,n);return i.value=t,i.regularType=r||i,i}function xx(e){if(2976&e.flags){if(!e.freshType){const t=bx(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function Sx(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=HD(e,Sx)):e}function kx(e){return!!(2976&e.flags)&&e.freshType===e}function Tx(e){let t;return Ye.get(e)||(Ye.set(e,t=bx(128,e)),t)}function Cx(e){let t;return Ze.get(e)||(Ze.set(e,t=bx(256,e)),t)}function Nx(e){let t;const n=LT(e);return et.get(n)||(et.set(n,t=bx(2048,e)),t)}function Ax(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return rt.get(i)||(rt.set(i,r=bx(o,e,n)),r)}function Ix(e){if(Wm(e)&&iF(e)){const t=ih(e);t&&(e=Wg(t)||t)}if(Gf(e)){const t=Kf(e)?as(e.left):as(e);if(t){const e=Ko(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=vs(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${eJ(t.symbol)}`,t}(t))}}return Yt}function Ox(e){const t=Xo(e);return t.resolvedType||(t.resolvedType=function(e){const t=fm(e,!1,!1),n=t&&t.parent;if(n&&(Du(n)||264===n.kind)&&!Qv(t)&&(!DN(t)||Sh(e,t.body)))return Lu(os(n)).thisType;if(n&&sE(n)&&kE(n.parent)&&6===hg(n.parent))return Lu(as(n.parent.left).parent).thisType;const r=16777216&e.flags?nh(e):void 0;return r&&mE(r)&&kE(r.parent)&&3===hg(r.parent)?Lu(as(r.parent.left).parent).thisType:BO(t)&&Sh(e,t.body)?Lu(os(t)).thisType:(Co(e,Pa.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}(e)),t.resolvedType}function Lx(e){return Mx(Rx(e.type)||e.type)}function Rx(e){switch(e.kind){case 196:return Rx(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return Rx(e.type);break;case 188:return e.elementType}}function Mx(e){return function(e,t){let n,r=!0;for(;t&&!F_(t)&&320!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=zh(e,i.checkType,i.extendsType);t&&(n=fe(n,t))}else if(262144&e.flags&&200===i.kind&&!i.nameType&&t===i.type){const t=Mx(i);if(wd(t)===tx(e)){const e=_S(t);if(e){const t=Yd(e);t&&zD(t,sT)&&(n=fe(n,mv([$t,gn])))}}}t=i}return n?jh(e,kv(n)):e}(Jx(e),e)}function Jx(e){switch(e.kind){case 133:case 312:case 313:return Ct;case 159:return It;case 154:return zt;case 150:return $t;case 163:return Vt;case 136:return Qt;
6case 155:return Yt;case 116:return en;case 157:return Lt;case 106:return Ut;case 146:return nn;case 151:return 524288&e.flags&&!ee?Ct:cn;case 141:return At;case 197:case 110:return Ox(e);case 201:return function(e){if(106===e.literal.kind)return Ut;const t=Xo(e);return t.resolvedType||(t.resolvedType=Sx(qR(e.literal))),t.resolvedType}(e);case 183:case 233:return Kh(e);case 182:return e.assertsModifier?en:Qt;case 186:return Xh(e);case 188:case 189:return function(e){const t=Xo(e);if(!t.resolvedType){const n=Uy(e);if(n===Ln)t.resolvedType=Nn;else if(189===e.kind&&te(e.elements,(e=>!!(8&By(e))))||!$y(e)){const r=188===e.kind?[Mx(e.elementType)]:j(e.elements,Mx);t.resolvedType=Gy(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:Hg(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return Yc(Mx(e.type),!0)}(e);case 192:return function(e){const t=Xo(e);if(!t.resolvedType){const n=dx(e);t.resolvedType=mv(j(e.types,Mx),1,n,px(n))}return t.resolvedType}(e);case 193:return function(e){const t=Xo(e);if(!t.resolvedType){const n=dx(e),r=j(e.types,Mx),i=2===r.length?r.indexOf(An):-1,o=i>=0?r[1-i]:It,a=!!(76&o.flags||134217728&o.flags&&Db(o));t.resolvedType=kv(r,a?1:0,n,px(n))}return t.resolvedType}(e);case 314:return function(e){const t=Mx(e.type);return K?mC(t,65536):t}(e);case 316:return Yc(Mx(e.type));case 202:return function(e){const t=Xo(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Lx(e):Yc(Mx(e.type),!0,!!e.questionToken))}(e);case 196:case 315:case 309:return Mx(e.type);case 191:return Lx(e);case 318:return function(e){const t=Mx(e.type),{parent:n}=e,r=e.parent.parent;if(iF(e.parent)&&OF(r)){const e=nh(r),n=TF(r.parent.parent);if(e||n){const i=Oe(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Zg(r);if(!i||o&&i.symbol===o&&nd(i))return jy(t)}}return bN(n)&&mF(n.parent)?jy(t):Yc(t)}(e);case 184:case 185:case 187:case 322:case 317:case 323:return _x(e);case 198:return function(e){const t=Xo(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=ab(Mx(e.type));break;case 158:t.resolvedType=155===e.type.kind?Ix(gh(e.parent)):Et;break;case 148:t.resolvedType=Mx(e.type);break;default:En.assertNever(e.operator)}return t.resolvedType}(e);case 199:return Zb(e);case 200:return ex(e);case 194:return function(e){const t=Xo(e);if(!t.resolvedType){const n=Mx(e.checkType),r=dx(e),i=px(r),o=au(e,!0),a=i?o:L(o,(t=>uS(t,e))),s={node:e,checkType:n,extendsType:Mx(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:sx(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=ix(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(Og(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=Xo(e);return t.resolvedType||(t.resolvedType=Vu(os(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=Xo(e);return t.resolvedType||(t.resolvedType=lb([e.head.text,...j(e.templateSpans,(e=>e.literal.text))],j(e.templateSpans,(e=>Mx(e.type))))),t.resolvedType}(e);case 205:return lx(e);case 80:case 166:case 211:const t=xJ(e);return t?Wu(t):Et;default:return Et}}function qx(e,t,n){if(e&&e.length)for(let r=0;r<e.length;r++){const i=e[r],o=n(i,t);if(i!==o){const i=0===r?[]:e.slice(0,r);for(i.push(o),r++;r<e.length;r++)i.push(n(e[r],t));return i}}return e}function zx(e,t){return qx(e,t,hS)}function $x(e,t){return qx(e,t,aS)}function Vx(e,t){return qx(e,t,DS)}function Kx(e,t){return 1===e.length?Qx(e[0],t?t[0]:Ct):function(e,t){return En.attachDebugPrototypeIfDebug({kind:1,sources:e,targets:t})}(e,t)}function Gx(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r?r[t]:Ct;return e}case 2:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r[t]();return e}case 3:return t.func(e);case 4:case 5:const n=Gx(e,t.mapper1);return n!==e&&4===t.kind?hS(n,t.mapper2):Gx(n,t.mapper2)}}function Qx(e,t){return En.attachDebugPrototypeIfDebug({kind:0,source:e,target:t})}function Yx(e,t){return En.attachDebugPrototypeIfDebug({kind:3,func:e,debugInfo:En.isDebugging?t:void 0})}function Zx(e,t){return En.attachDebugPrototypeIfDebug({kind:2,sources:e,targets:t})}
6function eS(e,t,n){return En.attachDebugPrototypeIfDebug({kind:e,mapper1:t,mapper2:n})}function tS(e){return Kx(e,void 0)}function nS(e,t){return e?eS(4,e,t):t}function rS(e,t,n){return n?eS(5,Qx(e,t),n):Qx(e,t)}function iS(e,t,n){return e?eS(5,e,Qx(t,n)):Qx(t,n)}function oS(e){const t=ks(e.symbol);return t.target=e,t}function aS(e,t,n){let r;if(e.typeParameters&&!n){r=j(e.typeParameters,oS),t=nS(Kx(e.typeParameters,r),t);for(const e of r)e.mapper=t}const i=E_(e.declaration,r,e.thisParameter&&cS(e.thisParameter,t),qx(e.parameters,t,cS),void 0,void 0,e.minArgumentCount,167&e.flags);return i.target=e,i.mapper=t,i}function cS(e,t){const n=Ko(e);if(n.type&&!gw(n.type)){if(!(65536&e.flags))return e;if(n.writeType&&!gw(n.writeType))return e}1&wx(e)&&(e=n.target,t=nS(n.mapper,t));const r=Io(e.flags,e.escapedName,1|53256&wx(e));return r.declarations=e.declarations,r.parent=e.parent,r.links.target=e,r.links.mapper=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),n.nameType&&(r.links.nameType=n.nameType),r}function lS(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=Xo(i),a=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let s=134217728&e.objectFlags?e.outerTypeParameters:o.outerTypeParameters;if(!s){let t=au(i,!0);BO(i)&&(t=he(t,Ef(i))),s=t||c;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;s=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?L(s,(e=>te(n,(t=>uS(e,t))))):s,o.outerTypeParameters=s}if(s.length){const i=nS(e.mapper,t),o=j(s,(e=>Gx(e,i))),c=n||e.aliasSymbol,l=n?r:zx(e.aliasTypeArguments,t),u=(134217728&e.objectFlags?"S":"")+Og(o)+Lg(c,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(Og(s)+Lg(a.aliasSymbol,a.aliasTypeArguments),a));let _=a.instantiations.get(u);if(!_){if(134217728&e.objectFlags)return _=fS(e,t),a.instantiations.set(u,_),_;const n=Kx(s,o);_=4&a.objectFlags?Hg(e.target,e.node,n,c,l):32&a.objectFlags?function(e,t,n,r){const i=_S(e);if(i){const e=hS(i,t);if(i!==e)return KD(Op(e),o,n,r)}return hS(Nd(e),t)===Dt?Dt:fS(e,t,n,r);function o(n){if(61603843&n.flags&&n!==Dt&&!Tc(n)){if(!e.declaration.nameType){let r;if(oT(n)||1&n.flags&&pc(i,4)<0&&(r=Yd(i))&&zD(r,sT))return function(e,t,n){const r=pS(t,$t,!0,n);return Tc(r)?Et:jy(r,dS(aT(e),Bd(t)))}(n,e,rS(i,n,t));if(KT(n))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?rS(n,e,r):r,s=j(ov(e),((e,s)=>{var c;const l=i[s];return s<o?pS(t,Tx(""+s),!!(2&l),a):8&l?hS(t,rS(n,e,r)):null!=(c=lT(hS(t,rS(n,jy(e),r))))?c:It})),c=Bd(t),l=4&c?j(i,(e=>1&e?2:e)):8&c?j(i,(e=>2&e?1:e)):i,u=dS(e.target.readonly,Bd(t));return F(s,Et)?Et:Hy(s,l,u,e.target.labeledElementDeclarations)}(n,e,i,t);if(xp(n))return kv(j(n.types,o))}return fS(e,rS(i,n,t))}return n}}(a,n,c,l):fS(a,n,c,l),a.instantiations.set(u,_);const r=Bx(_);if(3899393&_.flags&&!(524288&r)){const e=te(o,gw);524288&Bx(_)||(_.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return _}return e}function uS(e,t){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||241===e.kind||194===e.kind&&ZI(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 197:return!!e.isThisType;case 80:return!e.isThisType&&Mf(t)&&function(e){return!(183===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||205===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&Jx(t)===e;case 186:const r=Fb(t.exprName);if(!Ev(r)){const i=Qw(r),o=e.symbol.declarations[0],a=168===o.kind?o.parent:e.isThisType?o:void 0;if(i.declarations&&a)return te(i.declarations,(e=>Sh(e,a)))||te(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||te(t.typeParameters,n)||te(t.parameters,n)||!!t.type&&n(t.type)}return!!ZI(t,n)}}function _S(e){const t=Nd(e);if(4194304&t.flags){const e=tx(t.type);if(262144&e.flags)return e}}function dS(e,t){return!!(1&t)||!(2&t)&&e}function pS(e,t,n,r){const i=iS(r,wd(e),t),o=hS(Pd(e.target||e),i),a=Bd(e);return K&&4&a&&!aR(o,49152)?TC(o,!0):K&&8&a&&n?vD(o,524288):o}function fS(e,t,n,r){En.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Ss(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=wd(e),r=oS(n);i.typeParameter=r,t=nS(Qx(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),134217728&e.objectFlags&&(i.outerTypeParameters=e.outerTypeParameters),i.target=e,i.mapper=t,i.aliasSymbol
6=n||e.aliasSymbol,i.aliasTypeArguments=n?r:zx(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?jg(i.aliasTypeArguments):0,i}function gS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=j(o.outerTypeParameters,(e=>Gx(e,t))),a=(n?"C":"")+Og(e)+Lg(r,i);let s=o.instantiations.get(a);if(!s){const t=Kx(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?Op(Gx(c,t)):void 0;s=l&&c!==l&&1179648&l.flags?KD(l,(e=>ix(o,rS(c,e,t),n)),r,i):ix(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function hS(e,t){return e&&t?yS(e,t,void 0,void 0):e}function yS(e,t,n,i){var o;if(!gw(e))return e;if(100===x||b>=5e6)return null==(o=pr)||o.instant(pr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:x,instantiationCount:b}),Co(r,Pa.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;v++,b++,x++;const a=function(e,t,n,r){const i=e.flags;if(262144&i)return Gx(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=zx(n,t);return r!==n?Gy(e.target,r):e}return 1024&i?function(e,t){const n=hS(e.mappedType,t);if(!(32&Bx(n)))return e;const r=hS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=bw(hS(e.source,t),n,r);return i||e}(e,t):lS(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=zx(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:zx(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?kv(s,0,c,l):mv(s,1,c,l)}if(4194304&i)return ab(hS(e.type,t));if(134217728&i)return lb(e.texts,zx(e.types,t));if(268435456&i)return _b(e.symbol,hS(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:zx(e.aliasTypeArguments,t);return Xb(hS(e.objectType,t),hS(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return gS(e,nS(e.mapper,t),!1,n,r);if(33554432&i){const n=hS(e.baseType,t);if(Rh(e))return wh(n);const r=hS(e.constraint,t);return 8650752&n.flags&&Ub(r)?jh(n,r):3&r.flags||jS(CS(n),CS(r))?n:8650752&n.flags?jh(n,r):kv([r,n])}return e}(e,t,n,i);return x--,a}function SS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=hS(e,xn))}function CS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=hS(e,hn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function DS(e,t){return pg(e.keyType,hS(e.type,t),e.isReadonly,e.declaration)}function NS(e){switch(En.assert(174!==e.kind||Zf(e)),e.kind){case 218:case 219:case 174:case 262:return ES(e);case 210:return te(e.properties,NS);case 209:return te(e.elements,NS);case 227:return NS(e.whenTrue)||NS(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(NS(e.left)||NS(e.right));case 303:return NS(e.initializer);case 217:return NS(e.expression);case 292:return te(e.properties,NS)||jP(e.parent)&&te(e.parent.parent.children,NS);case 291:{const{initializer:t}=e;return!!t&&NS(t)}case 294:{const{expression:t}=e;return!!t&&NS(t)}}return!1}function ES(e){return tC(e)||function(e){return!(e.typeParameters||Rv(e)||!e.body)&&(241!==e.body.kind?NS(e.body):!!Jf(e.body,(e=>!!e.expression&&NS(e.expression))))}(e)}function PS(e){return(iC(e)||Zf(e))&&ES(e)}function FS(e){if(524288&e.flags){const t=Wd(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Ss(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=c,n.constructSignatures=c,n.indexInfos=c,n}}else if(2097152&e.flags)return kv(j(e.types,FS));return e}function AS(e,t){return wk(e,t,mo)}function IS(e,t){return wk(e,t,mo)?-1:0}function OS(e,t){return wk(e,t,po)?-1:0}function LS(e,t){return wk(e,t,uo)?-1:0}function RS(e,t){return wk(e,t,uo)}function MS(e,t){return wk(e,t,_o)}function jS(e,t){return wk(e,t,po)}function qS(e,t){return 1048576&e.flags?C(e.types,(e=>qS(e,t))):1048576&t.flags?te(t.types,(t=>qS(e,t))):2097152&e.flags?te(e.types,(e=>qS(e,t))):58982400&e.flags?qS(op(e)||It,t):xk(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!xk(e):t===Xn?!!(524288&e.flags)&&mD(e):ru(e,eu(t))||oT(t)&&!aT(t)&&qS(e,er)}function WS(e,t){return wk(e,t,fo)}function HS(e,t){return WS(e,t)||WS(t,e)}function QS(e,t,n,r,i,o){return Fk(e,t,po,n,r,i,o)}function YS(e,t,n,r,i,o){return ZS(e,t,po,n,r,i,o,void 0)}function ZS(e,t,n,r,i,o,a,s){return!!wk(e,t,n)||(!r||!ik(i,e,t,n,o,a,s))&&Fk(e,t,n,r,o,a,s)}function rk(e){return!!(16777216&e.flags||2097152&e.flags&&te(e.types,rk))}function ik(e,t,n,r,i,o,a){if(!e||rk(n))return!1;if(!Fk(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=of(t,0),c=of(t,1);for(const l of[c,s])if(te(l,(e=>{const t=sm(e);return!(131073&t.flags)&&Fk(t,n,r,void 0)}))){const r=a||{};return QS(t,n,e,i,o,r),DT(r.errors[r.errors.length-1],Gp(e,l===c?Pa.Did_you_mean_to_use_new_with_this_expression:Pa.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!MC(e))break;case 294:case 217:return ik(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return ik(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&lk(function*(e){if(_(e.properties))for(const t of e.properties){if(eF(t))continue;const e=zv(os(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Vp(t.name)?Pa.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:En.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(gT(t))return lk(_k(e,n),t,n,r,i,o);HF(e,n,!1);const a=aA(e,1,!0);return KF(),!!gT(a)&&lk(_k(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=lk(function*(e){if(_(e.properties))for(const t of e.properties)VP(t)||hA(kC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:Tx(kC(t.name))})}(e),t,n,r,i,o);if(jP(e.parent)&&RP(e.parent.parent)){const a=e.parent.parent,l=IA(FA(e)),u=void 0===l?"children":Pc(l),d=Tx(u),p=Xb(n,d),f=Py(a.children);if(!_(f))return s;const m=_(f)>1;let g,h;if(Ey(!1)!==Ln){const e=My(Ct);g=$D(p,(t=>jS(t,e))),h=$D(p,(t=>!jS(t,e)))}else g=$D(p,hT),h=$D(p,(e=>!hT(e)));if(m){if(g!==nn){const e=Hy(CA(a,0)),t=function*(e,t){if(!_(e.children))return;let n=0;for(let r=0;r<e.children.length;r++){const i=uk(e.children[r],Cx(r-n),t);i?yield i:n++}}(a,c);s=function(e,t,n,r,i,o){const a=$D(n,hT),s=$D(n,(e=>!hT(e))),c=s!==nn?yj(13,0,s,void 0):void 0;let l=!1;for(let u=e.next();!u.done;u=e.next()){const{errorNode:e,innerExpression:n,nameType:s,errorMessage:_}=u.value;let d=c;const p=a!==nn?ok(t,a,s):void 0;if(!p||8388608&p.flags||(d=c?mv([c,p]):p),!d)continue;let f=Yb(t,s);if(!f)continue;const m=hb(s,void 0);if(!Fk(f,d,r,void 0)&&(l=!0,!n||!ik(n,f,d,r,void 0,i,o))){const s=o||{},c=n?sk(n,f):f;if(se&&Ok(c,d)){const t=Gp(e,Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ys(c),Ys(d));so.add(t),s.errors=[t]}else{const n=!!(m&&16777216&(ef(a,m)||bt).flags),o=!!(m&&16777216&(ef(t,m)||bt).flags);d=zC(d,n),f=zC(f,n&&o),Fk(c,d,r,e,_,i,s)&&c!==f&&Fk(f,d,r,e,_,i,s)}}}return l}(t,e,g,r,i,o)||s}else if(!wk(Xb(t,d),p,r)){s=!0;const e=Co(a.openingElement.tagName,Pa.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,Ys(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==nn){const e=uk(f[0],d,c);e&&(s=lk(function*(){yield e}(),t,n,r,i,o)||s)}else if(!wk(Xb(t,d),p,r)){s=!0;const e=Co(a.openingElement.tagName,Pa.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,Ys(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=ap(e.parent.tagName),r=IA(FA(e)),i=void 0===r?"children":Pc(r),o=Xb(n,Tx(i)),s=Pa._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a=g(m({}
6,s),{key:"!!ALREADY FORMATTED!!",message:bS(s,t,i,Ys(o))})}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(JE(e.body))return!1;if(te(e.parameters,W_))return!1;const a=YI(t);if(!a)return!1;const s=of(n,0);if(!_(s))return!1;const c=e.body,l=sm(a),u=mv(j(s,sm));if(!Fk(l,u,r,void 0)){const t=c&&ik(c,l,u,r,void 0,i,o);if(t)return t;const a=o||{};if(Fk(l,u,r,c,void 0,i,a),a.errors)return n.symbol&&_(n.symbol.declarations)&&DT(a.errors[a.errors.length-1],Gp(n.symbol.declarations[0],Pa.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Qh(e)||bc(l,"then")||!Fk(BL(l),u,r,void 0)||DT(a.errors[a.errors.length-1],Gp(e,Pa.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function ok(e,t,n){const r=Yb(t,n);if(r)return r;if(1048576&t.flags){const r=Lk(e,t);if(r)return Yb(r,n)}}function sk(e,t){HF(e,t,!1);const n=ER(e,1);return KF(),n}function lk(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:u}=s;let d=ok(t,n,l);if(!d||8388608&d.flags)continue;let p=Yb(t,l);if(!p)continue;const f=hb(l,void 0);if(!Fk(p,d,r,void 0)&&(a=!0,!c||!ik(c,p,d,r,void 0,i,o))){const a=o||{},s=c?sk(c,p):p;if(se&&Ok(s,d)){const t=Gp(e,Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ys(s),Ys(d));so.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(ef(n,f)||bt).flags),c=!!(f&&16777216&(ef(t,f)||bt).flags);d=zC(d,o),p=zC(p,o&&c),Fk(s,d,r,e,u,i,a)&&s!==p&&Fk(p,d,r,e,u,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=NC(l)?EC(l):void 0,r=void 0!==t?ef(n,t):void 0;let i=!1;if(!r){const t=Df(n,l);t&&t.declaration&&!Id(t.declaration).hasNoDefaultLib&&(i=!0,DT(e,Gp(t.declaration,Pa.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&_(r.declarations)||n.symbol&&_(n.symbol.declarations))){const i=r&&_(r.declarations)?r.declarations[0]:n.symbol.declarations[0];Id(i).hasNoDefaultLib||DT(e,Gp(i,Pa.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?Ys(l):Pc(t),Ys(n)))}}}}return a}function uk(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return En.assertNever(e,"Found invalid jsx child")}}function*_k(e,t){const n=_(e.elements);if(n)for(let r=0;r<n;r++){if(gT(t)&&!ef(t,""+r))continue;const n=e.elements[r];if(EE(n))continue;const i=Cx(r),o=dO(n);yield{errorNode:o,innerExpression:o,nameType:i}}}function dk(e,t,n,r,i){return Fk(e,t,fo,n,r,i)}function gk(e){if(!e.typeParameters&&(!e.thisParameter||kc(sL(e.thisParameter)))&&1===e.parameters.length&&aJ(e)){const t=sL(e.parameters[0]);return!!(131073&(oT(t)?Xg(t)[0]:t).flags&&3&sm(e).flags)}return!1}
6function hk(e,t,n,r,i,o,a,s){if(e===t)return-1;if(!(16&n&&gk(e))&&gk(t))return-1;if(16&n&&gk(e)&&!gk(t))return 0;const c=hL(t);if(!vL(t)&&(8&n?vL(e)||hL(e)>c:yL(e)>c))return!r||8&n||i(Pa.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,yL(e),c),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=rO(e,t=Vm(t),void 0,a));const l=hL(e),u=xL(e),_=xL(t);(u||_)&&hS(u||_,s);const d=t.declaration?t.declaration.kind:0,p=!(3&n)&&G&&174!==d&&173!==d&&176!==d;let f=-1;const m=im(e);if(m&&m!==en){const e=im(t);if(e){const t=!p&&a(m,e,!1)||a(e,m,r);if(!t)return r&&i(Pa.The_this_types_of_each_signature_are_incompatible),0;f&=t}}const g=u||_?Math.min(l,c):Math.max(l,c),h=u||_?g-1:-1;for(let y=0;y<g;y++){const c=y===h?gL(e,y):fL(e,y),l=y===h?gL(t,y):fL(t,y);if(c&&l&&(c!==l||8&n)){const u=3&n||QI(e,y)?void 0:YI(wC(c)),_=3&n||QI(t,y)?void 0:YI(wC(l));let d=u&&_&&!om(u)&&!om(_)&&gD(c,50331648)===gD(l,50331648)?hk(_,u,8&n|(p?2:1),r,i,o,a,s):!(3&n)&&!p&&a(c,l,!1)||a(l,c,r);if(d&&8&n&&y>=yL(e)&&y<yL(t)&&a(c,l,!1)&&(d=0),!d)return r&&i(Pa.Types_of_parameters_0_and_1_are_incompatible,Pc(lL(e,y)),Pc(lL(t,y))),0;f&=d}}if(!(4&n)){const s=bm(t)?Ct:t.declaration&&BO(t.declaration)?Lu(is(t.declaration.symbol)):sm(t);if(s===en||s===Ct)return f;const c=bm(e)?Ct:e.declaration&&BO(e.declaration)?Lu(is(e.declaration.symbol)):sm(e),l=om(t);if(l){const t=om(e);if(t)f&=function(e,t,n,r,i){if(e.kind!==t.kind)return n&&(r(Pa.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(Pa.Type_predicate_0_is_not_assignable_to_1,ic(e),ic(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return n&&(r(Pa.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),r(Pa.Type_predicate_0_is_not_assignable_to_1,ic(e),ic(t))),0;const o=e.type===t.type?-1:e.type&&t.type?i(e.type,t.type,n):0;return 0===o&&n&&r(Pa.Type_predicate_0_is_not_assignable_to_1,ic(e),ic(t)),o}(t,l,r,i,a);else if(tm(l)||nm(l))return r&&i(Pa.Signature_0_must_be_a_type_predicate,Gs(e)),0}else f&=1&n&&a(s,c,!1)||a(c,s,r),!f&&r&&o&&o(c,s)}return f}function yk(e,t){const n=zm(e),r=zm(t),i=sm(n),o=sm(r);return!(o!==en&&!wk(o,i,po)&&!wk(i,o,po))&&0!==hk(n,r,4,!1,void 0,void 0,OS,void 0)}function vk(e){return e!==Rn&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function bk(e){return 524288&e.flags?!$d(e)&&vk(Wd(e)):!!(67108864&e.flags)||(1048576&e.flags?te(e.types,bk):!!(2097152&e.flags)&&C(e.types,bk))}function xk(e){return!!(16&Bx(e)&&(e.members&&vk(e)||e.symbol&&2048&e.symbol.flags&&0===x_(e.symbol).size))}function Sk(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function kk(e){return 524288&e.flags&&!$d(e)&&0===Xd(e).length&&1===Sf(e).length&&!!Tf(e,zt)||3145728&e.flags&&C(e.types,kk)||!1}function Tk(e,t,n){const r=8&e.flags?cs(e):e,i=8&t.flags?cs(t):t;if(r===i)return!0;if(!(r.escapedName===i.escapedName&&256&r.flags&&256&i.flags))return!1;const o=eJ(r)+","+eJ(i),a=go.get(o);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);const s=Gl(i);for(const c of Xd(Gl(r)))if(8&c.flags){const e=ef(s,c.escapedName);if(!(e&&8&e.flags))return n?(n(Pa.Property_0_is_missing_in_type_1,Ic(c),Ys(Wu(i),void 0,64)),go.set(o,6)):go.set(o,2),!1;const t=WJ(ld(c,306)).value,r=WJ(ld(e,306)).value;if(t!==r){const a="string"==typeof t,s="string"==typeof r;if(void 0!==t&&void 0!==r){if(n){const c=a?`"${qy(t)}"`:t,l=s?`"${qy(r)}"`:r;n(Pa.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Ic(i),Ic(e),l,c),go.set(o,6)}else go.set(o,2);return!1}if(a||s){if(n){const a=null!=t?t:r;En.assert("string"==typeof a);const s=`"${qy(a)}"`;n(Pa.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Ic(i),Ic(e),s),go.set(o,6)}else go.set(o,2);return!1}}}return go.set(o,1),!0}function Ck(e,t,n,r){const i=e.flags,o=t.flags;if(1&o||131072&i||e===Dt)return!0;if(2&o&&!(n===_o&&1&i))return!0;if(131072&o)return!1;if(402653316&i&&4&o)return!0;if(128&i&&1024&i&&128&o&&!(1024&o)&&e.value===t.value)return!0;if(296&i&&8&o)return!0;
6if(256&i&&1024&i&&256&o&&!(1024&o)&&e.value===t.value)return!0;if(2112&i&&64&o)return!0;if(528&i&&16&o)return!0;if(12288&i&&4096&o)return!0;if(32&i&&32&o&&e.symbol.escapedName===t.symbol.escapedName&&Tk(e.symbol,t.symbol,r))return!0;if(1024&i&&1024&o){if(1048576&i&&1048576&o&&Tk(e.symbol,t.symbol,r))return!0;if(2944&i&&2944&o&&e.value===t.value&&Tk(e.symbol,t.symbol,r))return!0}if(32768&i&&(!K&&!(3145728&o)||49152&o))return!0;if(65536&i&&(!K&&!(3145728&o)||65536&o))return!0;if(524288&i&&67108864&o&&(n!==_o||!xk(e)||8192&Bx(e)))return!0;if(n===po||n===fo){if(1&i)return!0;if(8&i&&(32&o||256&o&&1024&o))return!0;if(256&i&&!(1024&i)&&(32&o||256&o&&1024&o&&e.value===t.value))return!0;if(function(e){if(K&&1048576&e.flags){if(!(33554432&e.objectFlags)){const t=e.types;e.objectFlags|=33554432|(t.length>=3&&32768&t[0].flags&&65536&t[1].flags&&te(t,xk)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function wk(e,t,n){if(kx(e)&&(e=e.regularType),kx(t)&&(t=t.regularType),e===t)return!0;if(n!==mo){if(n===fo&&!(131072&t.flags)&&Ck(t,e,n)||Ck(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(Wk(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&Fk(e,t,n,void 0)}function Dk(e,t){return 2048&Bx(e)&&hA(t.escapedName)}function Nk(e,t){for(;;){const n=kx(e)?e.regularType:GT(e)?Pk(e,t):4&Bx(e)?e.node?$g(e.target,Xg(e)):dT(e)||e:3145728&e.flags?Ek(e,t):33554432&e.flags?t?e.baseType:Uh(e):25165824&e.flags?Wb(e,t):e;if(n===e)return n;e=n}}function Ek(e,t){const n=Op(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(465829888&r.flags)),n||(n=!!(98304&r.flags)||xk(r)),t&&n)return!0;return!1}(e)){const n=J(e.types,(e=>Nk(e,t)));if(n!==e.types)return kv(n)}return e}function Pk(e,t){const n=ov(e),r=J(n,(e=>25165824&e.flags?Wb(e,t):e));return n!==r?Yy(e.target,r):e}function Fk(e,t,n,i,o,a,s){var l;let u,d,p,f,m,g,h,y,v=0,b=0,x=0,S=0,k=!1,T=0,C=0,w=16e6-n.size>>3;En.assert(n!==mo||!i,"no error reporting in identity checking");const D=z(e,t,3,!!i,o);if(y&&O(),k){const o=Wk(e,t,0,n,!1);n.set(o,6),null==(l=pr)||l.instant(pr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=w<=0?Pa.Excessive_complexity_comparing_types_0_and_1:Pa.Excessive_stack_depth_comparing_types_0_and_1,c=Co(i||r,a,Ys(e),Ys(t));s&&(s.errors||(s.errors=[])).push(c)}else if(u){if(a){const e=a();e&&(TS(e,u),u=e)}let r;if(o&&i&&!D&&e.symbol){const i=Ko(e.symbol);i.originatingImport&&!xf(i.originatingImport)&&Fk(Gl(i.target),t,n,void 0)&&(r=fe(r,Gp(i.originatingImport,Pa.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const c=Yp(Id(i),i,u,r);d&&DT(c,...d),s&&(s.errors||(s.errors=[])).push(c),s&&s.skipLogging||so.add(c)}return i&&s&&s.skipLogging&&0===D&&En.assert(!!s.errors,"missed opportunity to interact with error."),0!==D;function E(e){u=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,T=e.overrideNextErrorInfo,C=e.skipParentCounter,d=e.relatedInfo}function P(){return{errorInfo:u,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:T,skipParentCounter:C,relatedInfo:null==d?void 0:d.slice()}}function A(e,...t){T++,h=void 0,(y||(y=[])).push([e,...t])}function O(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return L(...e[0]),void(t&&B(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case Pa.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:Ls(e,BS(I))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case Pa.Call_signature_return_types_0_and_1_are_incompatible.code:case Pa.Construct_signature_return_types_0_and_1_are_incompatible.code:case Pa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case Pa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===Pa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=Pa.Call_signature_return_types_0_and_1_are_incompatible:t.code===Pa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=Pa.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[
60],i[1]])}else n=`${t.code===Pa.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===Pa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===Pa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===Pa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case Pa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([Pa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case Pa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([Pa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return En.fail(`Unhandled Diagnostic: ${t.code}`)}}n?L(")"===n[n.length-1]?Pa.The_types_returned_by_0_are_incompatible_between_these_types:Pa.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[i,...o]of r){const e=i.elidedInCompatabilityPyramid;i.elidedInCompatabilityPyramid=!1,L(i,...o),i.elidedInCompatabilityPyramid=e}t&&B(void 0,...t)}function L(e,...t){En.assert(!!i),y&&O(),e.elidedInCompatabilityPyramid||(0===C?u=kS(u,e,...t):C--)}function R(e,...t){L(e,...t),C++}function M(e){En.assert(!!u),d?d.push(e):d=[e]}function B(e,t,r){y&&O();const[i,o]=Zs(t,r);let a=t,s=i;if(CT(t)&&!Ak(r)&&(a=wT(t),En.assert(!jS(a,r),"generalized source shouldn't be assignable"),s=ec(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==zn&&r!==$n){const e=op(r);let n;e&&(jS(a,e)||(n=jS(t,e)))?L(Pa._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,Ys(e)):(u=void 0,L(Pa._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&se&&Ik(t,r).length&&(e=Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===fo)e=Pa.Type_0_is_not_comparable_to_type_1;else if(i===o)e=Pa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(se&&Ik(t,r).length)e=Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Zt(e.value,n,(e=>e.value))}(t,r);if(e)return void L(Pa.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,Ys(e))}e=Pa.Type_0_is_not_assignable_to_type_1}L(e,s,o)}function U(e,t,n){return KT(e)?e.target.readonly&&cT(t)?(n&&L(Pa.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ys(e),Ys(t)),!1):sT(t):aT(e)&&cT(t)?(n&&L(Pa.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ys(e),Ys(t)),!1):!KT(t)||oT(e)}function q(e,t,n){return z(e,t,3,n)}function z(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===fo&&!(131072&t.flags)&&Ck(t,e,n)||Ck(e,t,n,o?L:void 0)?-1:(o&&$(e,t,e,t,a),0);const c=Nk(e,!1);let l=Nk(t,!0);if(c===l)return-1;if(n===mo)return c.flags!==l.flags?0:67358815&c.flags?-1:(V(c,l),Z(c,l,!1,0,r));if(262144&c.flags&&Qd(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=Nk(t,!0),c===l))return-1}if(n===fo&&!(131072&l.flags)&&Ck(l,c,n)||Ck(c,l,n,o?L:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&Uw(c)&&8192&Bx(c)&&function(e,t,r){var o;if(!WA(t)||!ee&&4096&Bx(t))return!1;const a=!!(2048&Bx(e));if((n===po||n===fo)&&(JD(Gn,t)||!a&&bk(t)))return!1;let s,c=t;1048576&t.flags&&(c=KU(e,t,z)||function(e){if(aR(e,67108864)){const t=$D(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const n of Xd(e))if(H(n,e.symbol)&&!Dk(e,n)){if(!VA(c,n.escapedName,a)){if(r){const t=$D(c,WA);if(!i)return En.fail();if($P(i)||j_(i)||j_(i.parent)){n.valueDeclaration&&zP(n.valueDeclaration)&&Id(i)===Id(n.valueDeclaration.name)&&(i=n.valueDeclaration.name);const e=Hs(n),r=EI(e,t),o=r?Hs(r):void 0;o?L(Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Ys(t),o):L(Pa.Property_0_does_not_exist_on_type_1,e,Ys(t))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&Pe(e.symbol.declarations);let a;if(n.valueDeclaration&&wc(n.valueDeclaration,(e=>e===r))&&Id(r)===Id(i)){const e=n.valueDeclaration;En.assertNode(e,Ru);const r=e.name;i=r,nN(r)&&(a=PI(r,t))}void 0!==a?R(Pa.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Hs(n),Ys(t),a):R(Pa.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hs(n),Ys(t))}}return!0}if(s&&!z(Gl(n),W(s,n.escapedName),3,r))return r&&A(Pa.Types_of_property_0_are_incompatible,Hs(n)),!0}return!1}(c,l,o))return o&&B(a,c,t.aliasSymbol?t:l),0;const u=(n!==fo||xT(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&Mk(l)&&(Xd(c).length>0||NJ(c)),_=!!(2048&Bx(c));if(u&&!function(e,t,n){for(const r of Xd(e))if(VA(t,r.escapedName,n))return!0;return!1}(c,l,_)){if(o){const n=Ys(e.aliasSymbol?e:c),r=Ys(t.aliasSymbol?t:l),i=of(c,0),o=of(c,1);i.length>0&&z(sm(i[0]),l,1,!1)||o.length>0&&z(sm(o[0]),l,1,!1)?L(Pa.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):L(Pa.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}V(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?G(c,l,o,s):Z(c,l,o,s,r);if(d)return d}return o&&$(e,t,c,l,a),0}function $(e,t,n,r,o){var a,s;const c=!!dT(e),l=!!dT(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let _=T>0;if(_&&T--,524288&n.flags&&524288&r.flags){const e=u;U(n,r,!0),u!==e&&(_=!!u)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=tc(e.symbol)?Ys(e,e.symbol.valueDeclaration):Ys(e),r=tc(t.symbol)?Ys(t,t.symbol.valueDeclaration):Ys(t);(tr===e&&zt===t||nr===e&&$t===t||rr===e&&Qt===t||Ty()===e&&Yt===t)&&L(Pa._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)L(Pa.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&Bx(n)&&2097152&r.flags){const e=r.types,t=NA(MB.IntrinsicAttributes,i),n=NA(MB.IntrinsicClassAttributes,i);if(!Tc(t)&&!Tc(n)&&(F(e,t)||F(e,n)))return}else u=Qp(u,t);if(!o&&_){const e=P();let t;return B(o,n,r),u&&u!==e.errorInfo&&(t={code:u.code,messageText:u.messageText}),E(e),t&&u&&(u.canonicalHead=t),void(h=[n,r])}if(B(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Qd(n)){const e=oS(n);if(e.constraint=hS(r,Qx(n,e)),up(e)){const e=Ys(r,n.symbol.declarations[0]);M(Gp(n.symbol.declarations[0],Pa.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function V(e,t){if(pr&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&pr.instant(pr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function W(e,t){return mv(qe(e,((e,n)=>{var r;const i=3145728&(n=Ep(n)).flags?Ip(n,t):Kd(n,t);return fe(e,i&&Gl(i)||(null==(r=Nf(n,t))?void 0:r.type)||Lt)}),void 0)||c)}function H(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}
6function G(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&F(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&F(r.types,e))return-1}return n===fo?Y(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?GD(t,-32769):t}(e,t);for(let s=0;s<o.length;s++){const e=o[s];if(1048576&a.flags&&o.length>=a.types.length&&o.length%a.types.length==0){const t=z(e,a.types[s%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=z(e,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Q(KC(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&t.flags)return function(e,t,n,r){let i=-1;const o=t.types;for(const a of o){const t=z(e,a,2,n,void 0,r);if(!t)return 0;i&=t}return i}(e,t,r,2);if(n===fo&&402784252&t.flags){const n=J(e.types,(e=>465829888&e.flags?op(e)||It:e));if(n!==e.types){if(131072&(e=kv(n)).flags)return 0;if(!(2097152&e.flags))return z(e,t,1,!1)||z(t,e,1,!1)}}return Y(e,t,!1,1)}function X(e,t){let n=-1;const r=e.types;for(const i of r){const e=Q(i,t,!1,0);if(!e)return 0;n&=e}return n}function Q(e,t,r,i){const o=t.types;if(1048576&t.flags){if(sv(o,e))return-1;if(n!==fo&&32768&Bx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===uo||n===_o)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?zt:256&e.flags?$t:2048&e.flags?Vt:void 0;return n&&sv(o,n)||t&&sv(o,t)?-1:0}const r=uD(t,e);if(r){const t=z(e,r,2,!1,void 0,i);if(t)return t}}for(const n of o){const t=z(e,n,2,!1,void 0,i);if(t)return t}if(r){const n=Lk(e,t,z);n&&z(e,n,2,!0,void 0,i)}return 0}function Y(e,t,n,r){const i=e.types;if(1048576&e.flags&&sv(i,t))return-1;const o=i.length;for(let a=0;a<o;a++){const e=z(i[a],t,1,n&&a===o-1,void 0,r);if(e)return e}return 0}function Z(e,t,r,i,o){var a,s,l;if(k)return 0;const _=Wk(e,t,i,n,!1),d=n.get(_);if(void 0!==d&&(!(r&&2&d)||4&d)){if(Xt){const t=24&d;8&t&&hS(e,Dn),16&t&&hS(e,wn)}return 1&d?-1:0}if(w<=0)return k=!0,0;if(p){if(f.has(_))return 3;const r=_.startsWith("*")?Wk(e,t,i,n,!0):void 0;if(r&&f.has(r))return 3;if(100===b||100===x)return k=!0,0}else p=[],f=new Set,m=[],g=[];const h=v;p[v]=_,f.add(_),v++;const y=S;let T;1&o&&(m[b]=e,b++,1&S||!Qk(e,m,b)||(S|=1)),2&o&&(g[x]=t,x++,2&S||!Qk(t,g,x)||(S|=2));let C,D=0;return Xt&&(T=Xt,Xt=e=>(D|=e?16:8,T(e))),3===S?(null==(a=pr)||a.instant(pr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map((e=>e.id)),targetId:t.id,targetIdStack:g.map((e=>e.id)),depth:b,targetDepth:x}),C=3):(null==(s=pr)||s.push(pr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),C=function(e,t,r,i){const o=P();let a=function(e,t,r,i,o){let a,s,l=!1,_=e.flags;const d=t.flags;if(n===mo){if(3145728&_){let n=X(e,t);return n&&(n&=X(t,e)),n}if(4194304&_)return z(e.type,t.type,3,!1);if(8388608&_&&(a=z(e.objectType,t.objectType,3,!1))&&(a&=z(e.indexType,t.indexType,3,!1)))return a;if(16777216&_&&e.root.isDistributive===t.root.isDistributive&&(a=z(e.checkType,t.checkType,3,!1))&&(a&=z(e.extendsType,t.extendsType,3,!1))&&(a&=z(ox(e),ox(t),3,!1))&&(a&=z(ax(e),ax(t),3,!1)))return a;if(33554432&_&&(a=z(e.baseType,t.baseType,3,!1))&&(a&=z(e.constraint,t.constraint,3,!1)))return a;if(!(524288&_))return 0}else if(3145728&_||3145728&d){if(a=G(e,t,r,i))return a;if(!(465829888&_||524288&_&&1048576&d||2097152&_&&467402752&d))return 0}if(17301504&_&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!qk(e)&&!qk(t)){const n=Bk(e.aliasSymbol);if(n===c)return 1;const r=Ko(e.aliasSymbol).typeParameters,o=Lf(r),a=y(Rf(e.aliasTypeArguments,r,o,Wm(e.aliasSymbol.valueDeclaration)),Rf(t.aliasTypeArguments,r,o,Wm(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==a)return a}if(XT(e)&&!e.target.readonly&&(a=z(Xg(e)[0],t,1))||XT(t)&&(t.target.readonly||cT(op(e)||e))&&(a=z(e,Xg(t)[0],2)))return a;if(262144&d){if(32&Bx(e)&&!e.declaration.nameType&&z(ab(t),Nd(e),3)&&!(4&Bd(e))){const n=Pd(e),i=Xb(t,wd(e));if(a=z(n,i,3,r))return a}if(n===fo&&262144&_){let n=Yd(e);if(n)for(;n&&qD(n,(e=>
6!!(262144&e.flags)));){if(a=z(n,t,1,!1))return a;n=Yd(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&_&&(a=z(n,e.type,3,!1)))return a;if(KT(n)){if(a=z(e,ev(n),2,r))return a}else{const i=ep(n);if(i){if(-1===z(e,ab(i,4|t.indexFlags),2,r))return-1}else if($d(n)){const t=Ed(n),i=Nd(n);let o;if(o=t&&Md(n)?mv([ne(t,n),t]):t||i,-1===z(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&_){if((a=z(e.objectType,t.objectType,3,r))&&(a&=z(e.indexType,t.indexType,3,r)),a)return a;r&&(s=u)}if(n===po||n===fo){const n=t.objectType,c=t.indexType,l=op(n)||n,_=op(c)||c;if(!qb(l)&&!zb(_)){const t=Yb(l,_,4|(l!==n?2:0));if(t){if(r&&s&&E(o),a=z(e,t,2,r,void 0,i))return a;r&&s&&u&&(u=h([s])<=h([u])?s:u)}}}r&&(s=void 0)}else if($d(t)&&n!==mo){const n=!!t.declaration.nameType,i=Pd(t),c=Bd(t);if(!(8&c)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===wd(t))return-1;if(!$d(e)){const i=n?Ed(t):Nd(t),l=ab(e,2),_=4&c,d=_?Q_(i,l):void 0;if(_?!(131072&d.flags):z(i,l,3)){const o=Pd(t),s=wd(t),c=GD(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=z(e,c.objectType,2,r))return a}else{const t=Xb(e,n?d||i:d?kv([d,s]):s);if(a=z(t,o,3,r))return a}}s=u,E(o)}}}else if(16777216&d){if(Qk(t,g,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(uS(p.checkType,p.node.trueType)||uS(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!jS(SS(n.checkType),SS(n.extendsType)),r=!t&&jS(CS(n.checkType),CS(n.extendsType));if((a=t?-1:z(e,ox(n),2,!1,void 0,i))&&(a&=r?-1:z(e,ax(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&_){if(n===fo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;hS(e,wn)}if(Rw(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&Iw(e,t))return-1;var p,f;if(8650752&_){if(!(8388608&_&&8388608&d)){const n=Qd(e)||It;if(a=z(n,t,1,!1,void 0,i))return a;if(a=z(w_(n,e),t,1,r&&n!==It&&!(d&_&262144),void 0,i))return a;if(wp(e)){const n=Qd(e.indexType);if(n&&(a=z(Xb(e.objectType,n),t,1,r)))return a}}}else if(4194304&_){const n=Wv(e.type,e.indexFlags)&&32&Bx(e.type);if(a=z(un,t,1,r&&!n))return a;if(n){const n=e.type,i=Ed(n),o=i&&Md(n)?ne(i,n):i||Nd(n);if(a=z(o,t,1,r))return a}}else if(134217728&_&&!(524288&d)){if(!(134217728&d)){const n=op(e);if(n&&n!==e&&(a=z(n,t,1,r)))return a}}else if(268435456&_)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=z(e.type,t.type,3,r))return a}else{const n=op(e);if(n&&(a=z(n,t,1,r)))return a}else if(16777216&_){if(Qk(e,m,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=sw(n,void 0,0,q);jw(e.inferences,t.extendsType,o,1536),o=hS(o,e.mapper),i=e.mapper}if(AS(o,t.extendsType)&&(z(e.checkType,t.checkType,3)||z(t.checkType,e.checkType,3))&&((a=z(hS(ox(e),i),ox(t),3,r))&&(a&=z(ax(e),ax(t),3,r)),a))return a}const n=tp(e);if(n&&(a=z(n,t,1,r)))return a;const i=16777216&d||!up(e)?void 0:np(e);if(i&&(E(o),a=z(i,t,1,r)))return a}else{if(n!==uo&&n!==_o&&32&Bx(f=t)&&4&Bd(f)&&bk(e))return-1;if($d(t))return $d(e)&&(a=function(e,t,r){const i=n===fo||(n===mo?Bd(e)===Bd(t):zd(e)<=zd(t));if(i){let n;if(n=z(Nd(t),hS(Nd(e),zd(e)<0?Dn:wn),3,r)){const i=Kx([wd(e)],[wd(t)]);if(hS(Ed(e),i)===hS(Ed(t),i))return n&z(hS(Pd(e),i),Pd(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(402784252&_);
6if(n!==mo)_=(e=Ep(e)).flags;else if($d(e))return 0;if(4&Bx(e)&&4&Bx(t)&&e.target===t.target&&!KT(e)&&!qk(e)&&!qk(t)){if(mT(e))return-1;const n=jk(e.target);if(n===c)return 1;const r=y(Xg(e),Xg(t),n,i);if(void 0!==r)return r}else{if(aT(t)?zD(e,sT):oT(t)&&zD(e,(e=>KT(e)&&!e.target.readonly)))return n!==mo?z(Cf(e,$t)||Ct,Cf(t,$t)||Ct,3,r):0;if(GT(e)&&KT(t)&&!GT(t)){const n=sp(e);if(n!==e)return z(n,t,1,r)}else if((n===uo||n===_o)&&bk(t)&&8192&Bx(t)&&!bk(e))return 0}if(2621440&_&&524288&d){const n=r&&u===o.errorInfo&&!p;if(a=oe(e,t,n,void 0,!1,i),a&&(a&=ae(e,t,0,n,i),a&&(a&=ae(e,t,1,n,i),a&&(a&=de(e,t,p,n,i)))),l&&a)u=s||u||o.errorInfo;else if(a)return a}if(2621440&_&&1048576&d){const r=GD(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=Xd(e),o=sD(i,t);if(!o)return 0;let a=1;for(const n of o)if(a*=WD(Yl(n)),a>25)return null==(r=pr)||r.instant(pr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:a}),0;const s=new Array(o.length),c=new Set;for(let n=0;n<o.length;n++){const e=o[n],t=Yl(e);s[n]=1048576&t.flags?t.types:[t],c.add(e.escapedName)}const l=Tn(s),u=[];for(const d of l){let r=!1;e:for(const i of t.types){for(let r=0;r<o.length;r++){const a=o[r],s=ef(i,a.escapedName);if(!s)continue e;if(a!==s&&!ie(e,t,a,s,(e=>d[r]),!1,0,K||n===fo))continue e}ye(u,i,Ot),r=!0}if(!r)return 0}let _=-1;for(const n of u)if(_&=oe(e,n,!1,c,!1,0),_&&(_&=ae(e,n,0,!1,0),_&&(_&=ae(e,n,1,!1,0),!_||KT(e)&&KT(n)||(_&=de(e,n,!1,!1,0)))),!_)return _;return _}(e,r);if(t)return t}}}return 0;function h(e){return e?qe(e,((e,t)=>e+1+h(t.next)),0):0}function y(e,t,i,_){if(a=function(e=c,t=c,r=c,i,o){if(e.length!==t.length&&n===mo)return 0;const a=e.length<=t.length?e.length:t.length;let s=-1;for(let c=0;c<a;c++){const a=c<r.length?r[c]:1,l=7&a;if(4!==l){const r=e[c],u=t[c];let _=-1;if(8&a?_=n===mo?z(r,u,3,!1):IS(r,u):1===l?_=z(r,u,3,i,void 0,o):2===l?_=z(u,r,3,i,void 0,o):3===l?(_=z(u,r,3,!1),_||(_=z(r,u,3,i,void 0,o))):(_=z(r,u,3,i,void 0,o),_&&(_&=z(u,r,3,i,void 0,o))),!_)return 0;s&=_}}return s}(e,t,i,r,_))return a;if(te(i,(e=>!!(24&e))))return s=void 0,void E(o);const d=t&&function(e,t){for(let n=0;n<t.length;n++)if(1==(7&t[n])&&16384&e[n].flags)return!0;return!1}(t,i);if(l=!d,i!==c&&!d){if(l&&(!r||!te(i,(e=>!(7&e)))))return 0;s=u,E(o)}}}(e,t,r,i,o);if(n!==mo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=Qd(i);for(;e&&21233664&e.flags;)e=Qd(e);e&&(n=fe(n,e),t&&(n=fe(n,i)))}else(469892092&i.flags||xk(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||xk(t))&&(n=fe(n,t));return Nk(kv(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&zD(n,(t=>t!==e))&&(a=z(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!qb(t)&&2621440&e.flags?(a&=oe(e,t,r,void 0,!1,0),a&&Uw(e)&&8192&Bx(e)&&(a&=de(e,t,!1,r,0))):a&&fx(t)&&!sT(t)&&2097152&e.flags&&3670016&Ep(e).flags&&!te(e.types,(e=>e===t||!!(262144&Bx(e))))&&(a&=oe(e,t,r,void 0,!0,i))}return a&&E(o),a}(e,t,r,i),null==(l=pr)||l.pop()),Xt&&(Xt=T),1&o&&b--,2&o&&x--,S=y,C?(-1===C||0===b&&0===x)&&N(-1===C||3===C):(n.set(_,2|(r?4:0)|D),w--,N(!1)),C;function N(e){for(let t=h;t<v;t++)f.delete(p[t]),e&&(n.set(p[t],1|D),w--);v=h}}function ne(e,t){const n=Ep(jd(t)),r=[];return Td(n,8576,!1,(n=>{r.push(hS(e,iS(t.mapper,wd(t),n)))})),mv(r)}function re(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r<e.length;r++)t.has(e[r].escapedName)?n||(n=e.slice(0,r)):n&&n.push(e[r]);return n||e}function ie(e,t,r,i,o,a,s,c){const l=Dx(r),u=Dx(i);if(2&l||2&u){if(r.valueDeclaration!==i.valueDeclaration)return a&&(2&l&&2&u?L(Pa.Types_have_separate_declarations_of_a_private_property_0,Hs(i)):L(Pa.Property_0_is_private_in_type_1_but_not_in_type_2,Hs(i),Ys(2&l?e:t),Ys(2&l?t:e))),0}else if(4&u){if(!function(e,t){return!Hk(t,(t=>{return!!(4&Dx(t))&&(n=e,r=Kk(t),!Hk(n,(e=>{const t=Kk(e);return!!t&&ru(t,r)})));var n,r}))}(r,i))return a&&L(Pa.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Hs(i),Ys(Kk(r)||e),Ys(Kk(i)||t)),0}else if(4&l)return a&&L(Pa.Property_0_is_protected_in_type_1_but_public_in_type_2,Hs(i),Ys(e),Ys(t)),0;if(n===_o&&ZL(r)&&!ZL(i))return 0;const _=function(e,t,n,r,i){const o=K&&!!(48&wx(t)),a=Yc(Yl(t),!1,o);return z(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return _?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&L(Pa.Property_0_is_optional_in_type_1_but_required_in_type_2,Hs(i),Ys(e),Ys(t)),0):_:(a&&A(Pa.Types_of_property_0_are_incompatible,Hs(i)),0)}
6function oe(e,t,r,i,a,s){if(n===mo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=re(Hd(e),n),i=re(Hd(t),n);if(r.length!==i.length)return 0;let o=-1;for(const a of r){const e=Kd(t,a.escapedName);if(!e)return 0;const n=tT(a,e,z);if(!n)return 0;o&=n}return o}(e,t,i);let c=-1;if(KT(t)){if(sT(e)){if(!t.target.readonly&&(aT(e)||KT(e)&&e.target.readonly))return 0;const n=Qg(e),o=Qg(t),a=KT(e)?4&e.target.combinedFlags:4,l=4&t.target.combinedFlags,u=KT(e)?e.target.minLength:0,_=t.target.minLength;if(!a&&n<_)return r&&L(Pa.Source_has_0_element_s_but_target_requires_1,n,_),0;if(!l&&o<u)return r&&L(Pa.Source_has_0_element_s_but_target_allows_only_1,u,o),0;if(!l&&(a||o<n))return r&&(u<_?L(Pa.Target_requires_0_element_s_but_source_may_have_fewer,_):L(Pa.Target_allows_only_0_element_s_but_source_may_have_more,o)),0;const d=Xg(e),p=Xg(t),f=function(e,t){const n=N(e.elementFlags,(e=>!(e&t)));return n>=0?n:e.elementFlags.length}(t.target,11),m=rv(t.target,11),g=t.target.hasRestElement;let h=!!i;for(let y=0;y<n;y++){const a=KT(e)?e.target.elementFlags[y]:4,l=n-1-y,u=g&&y>=f?o-1-Math.min(l,m):y,_=t.target.elementFlags[u];if(8&_&&!(8&a))return r&&L(Pa.Source_provides_no_match_for_variadic_element_at_position_0_in_target,u),0;if(8&a&&!(12&_))return r&&L(Pa.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,y,u),0;if(1&_&&!(1&a))return r&&L(Pa.Source_provides_no_match_for_required_element_at_position_0_in_target,u),0;if(h&&((12&a||12&_)&&(h=!1),h&&(null==i?void 0:i.has(""+y))))continue;const v=zC(d[y],!!(a&_&2)),b=p[u],x=z(v,8&a&&4&_?jy(b):zC(b,!!(2&_)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(g&&y>=f&&l>=m&&f!==n-m-1?A(Pa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,u):A(Pa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,y,u)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==uo&&n!==_o||Uw(e)||mT(e)||KT(e)),d=Tw(e,t,l,!1);if(d)return r&&function(e,t){const n=tf(e,0),r=tf(e,1),i=Hd(e);return!((n.length||r.length)&&!i.length)||!!(of(t,0).length&&n.length||of(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&jc(n.valueDeclaration)&&rN(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=cy(e.symbol,r);if(i&&ef(e,i)){const n=_w.getDeclarationName(e.symbol.valueDeclaration),i=_w.getDeclarationName(t.symbol.valueDeclaration);return void L(Pa.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,na(r),na(""===n.escapedText?JB:n),na(""===i.escapedText?JB:i))}}const a=Xe(kw(e,t,r,!1));if((!o||o.code!==Pa.Class_0_incorrectly_implements_interface_1.code&&o.code!==Pa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=Hs(n,void 0,0,20);L(Pa.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...Zs(e,t)),_(n.declarations)&&M(Gp(n.declarations[0],Pa._0_is_declared_here,r)),i&&u&&T++}else U(e,t,!1)&&(a.length>5?L(Pa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ys(e),Ys(t),j(a.slice(0,4),(e=>Hs(e))).join(", "),a.length-4):L(Pa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ys(e),Ys(t),j(a,(e=>Hs(e))).join(", ")),i&&u&&T++)}(e,t,d,l),0;if(Uw(t))for(const n of re(Xd(e),i))if(!(Kd(t,n.escapedName)||32768&Gl(n).flags))return r&&L(Pa.Property_0_does_not_exist_on_type_1,Hs(n),Ys(t)),0;const p=Xd(t),f=KT(e)&&KT(t);for(const o of re(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||aC(i)||"length"===i)&&(!a||16777216&o.flags)){const a=ef(e,i);if(a&&a!==o){const i=ie(e,t,a,o,Yl,r,s,n===fo);if(!i)return 0;c&=i}}}return c}function ae(e,t,r,i,o){var a,s;if(n===mo)return function(e,t,n){const r=of(e,n),i=of(t,n);if(r.length!==i.length)return 0;let o=-1;for(let a=0;a<r.length;a++){const e=nT(r[a],i[a],!1,!1,!1,z);if(!e)return 0;o&=e}return o}(e,t,r);if(t===Rn||e===Rn)return-1;const c=e.symbol&&BO(e.symbol.valueDeclaration),l=t.symbol&&BO(t.symbol.valueDeclaration),u=of(e,c&&1===r?0:r),_=of(t,l&&1===r?0:r);if(1===r&&u.length&&_.length){const e=!!(4&u[0].flags),t=!!(4&_[0].flags);if(e&&!t)return i&&L(Pa.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,n){if(!e.declaration||!t.declaration)return!0;const r=ob(e.declaration,6),i=ob(t.declaration,6);return 2===i||(4===i&&2!==r||(4!==i&&!r||(n&&L(Pa.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,oc(r),oc(i)),!1)))}(u[0],_[0],i))return 0}let d=-1;const p=1===r?le:ce,f=Bx(e),m=Bx(t);if(64&f&&64&m&&e.symbol===t.symbol||4&f&&4&m&&e.target===t.target){En.assertEqual(u.length,_.length);for(let e=0;e<_.length;e++){const t=ue(u[e],_[e],!0,i,o,p(u[e],_[e]));if(!t)return 0;d&=t}}else if(1===u.length&&1===_.length){const e=n===fo,t=Ae(u),c=Ae(_);
6if(d=ue(t,c,e,i,o,p(t,c)),!d&&i&&1===r&&f&m&&(176===(null==(a=c.declaration)?void 0:a.kind)||176===(null==(s=t.declaration)?void 0:s.kind))){const e=e=>Gs(e,void 0,262144,r);return L(Pa.Type_0_is_not_assignable_to_type_1,e(t),e(c)),L(Pa.Types_of_construct_signatures_are_incompatible),d}}else e:for(const n of _){const t=P();let a=i;for(const e of u){const r=ue(e,n,!0,a,o,p(e,n));if(r){d&=r,E(t);continue e}a=!1}return a&&L(Pa.Type_0_provides_no_match_for_the_signature_1,Ys(e),Gs(n,void 0,void 0,r)),0}return d}function ce(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>A(Pa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ys(e),Ys(t)):(e,t)=>A(Pa.Call_signature_return_types_0_and_1_are_incompatible,Ys(e),Ys(t))}function le(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>A(Pa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ys(e),Ys(t)):(e,t)=>A(Pa.Construct_signature_return_types_0_and_1_are_incompatible,Ys(e),Ys(t))}function ue(e,t,r,i,o,a){const s=n===uo?16:n===_o?24:0;return hk(r?zm(e):e,r?zm(t):t,s,i,L,a,(function(e,t,n){return z(e,t,3,n,void 0,o)}),wn)}function _e(e,t,n,r){const i=z(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?L(Pa._0_index_signatures_are_incompatible,Ys(e.keyType)):L(Pa._0_and_1_index_signatures_are_incompatible,Ys(e.keyType),Ys(t.keyType))),i}function de(e,t,r,i,o){if(n===mo)return function(e,t){const n=Sf(e),r=Sf(t);if(n.length!==r.length)return 0;for(const i of r){const t=Tf(e,i.keyType);if(!t||!z(t.type,i.type,3)||t.isReadonly!==i.isReadonly)return 0}return-1}(e,t);const a=Sf(t),s=te(a,(e=>e.keyType===zt));let c=-1;for(const l of a){const t=n!==_o&&!r&&s&&1&l.type.flags?-1:$d(e)&&s?z(Pd(e),l.type,3,i):pe(e,l,i,o);if(!t)return 0;c&=t}return c}function pe(e,t,r,i){const o=Df(e,t.keyType);return o?_e(o,t,r,i):1&i||!(n!==_o||8192&Bx(e))||!WC(e)?(r&&L(Pa.Index_signature_for_type_0_is_missing_in_type_1,Ys(t.keyType),Ys(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?Gd(e):Hd(e);for(const s of a)if(!Dk(e,s)&&yf(zv(s,8576),o)){const e=Yl(s),a=z(se||32768&e.flags||o===$t||!(16777216&s.flags)?e:vD(e,524288),t.type,3,n,void 0,r);if(!a)return n&&L(Pa.Property_0_is_incompatible_with_index_signature,Hs(s)),0;i&=a}for(const s of Sf(e))if(yf(s.keyType,o)){const e=_e(s,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function Ak(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!d(e.types,Ak);if(465829888&e.flags){const t=Qd(e);if(t&&t!==e)return Ak(t)}return xT(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function Ik(e,t){return KT(e)&&KT(t)?c:Xd(t).filter((t=>Ok(bc(e,t.escapedName),Gl(t))))}function Ok(e,t){return!!e&&!!t&&aR(e,32768)&&!!$C(t)}function Lk(e,t,n=OS){return KU(e,t,n)||function(e,t){const n=Bx(e);if(20&n&&1048576&t.flags)return w(t.types,(t=>{if(524288&t.flags){const r=n&Bx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&Bx(e)&&qD(t,uT))return w(t.types,(e=>!uT(e)))}(e,t)||function(e,t){let n=0;const r=of(e,n).length>0||(n=1,of(e,n).length>0);if(r)return w(t.types,(e=>of(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=kv([ab(e),ab(i)]);if(4194304&t.flags)return i;if(xT(t)||1048576&t.flags){const e=1048576&t.flags?O(t.types,xT):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function Rk(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[a,s]of t){let e=!1;for(let t=0;t<r.length;t++)if(i[t]){const o=Sc(r[t],s);o&&n(a(),o)?e=!0:i[t]=3}for(let t=0;t<r.length;t++)3===i[t]&&(i[t]=e?0:-1)}const o=F(i,0)?mv(r.filter(((e,t)=>i[t])),0):e;return 131072&o.flags?e:o}function Mk(e){if(524288&e.flags){const t=Wd(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&C(t.properties,(e=>!!(16777216&e.flags)))}return 33554432&e.flags?Mk(e.baseType):!!(2097152&e.flags)&&C(e.types,Mk)}function jk(e){return e===Zn||e===er||8&e.objectFlags?P:Jk(e.symbol,e.typeParameters)}function Bk(e){return Jk(e,Ko(e).typeParameters)}function Jk(e,t=c){var n,r;const i=Ko(e);if(!i.variances){null==(n=pr)||n.push(pr.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:av(Wu(e))});const o=ji,a=Mi;ji||(ji=!0,Mi=Oi.length),i.variances=c;const s=[];for(const n of t){const t=zk(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=Xt;Xt=e=>e?i=!0:t=!0;const a=Uk(e,n,Jn),s=Uk(e,n,Un);r=(jS(s,a)?1:0)|(jS(a,s)?2:0),3===r&&jS(Uk(e,n,qn),a)&&(r=4),Xt=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||(ji=!1,Mi=a),i.variances=s,null==(r=pr)||r.pop({variances:s.map(En.formatVariance)})}return i.variances}function Uk(e,t,n){const r=Qx(t,n),i=Wu(e);if(Tc(i))return i;const o=524288&e.flags?sh(e,zx(Ko(e).typeParameters,r)):$g(i,zx(i.typeParameters,r));return vt.add(av(o)),o}function qk(e){return vt.has(av(e))}function zk(e){var t;return 28672&qe(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|cb(t)),0)}function $k(e){return 262144&e.flags&&!Yd(e)}function Vk(e){return function(e){return!!(4&Bx(e))&&!e.node}(e)&&te(Xg(e),(e=>
6!!(262144&e.flags)||Vk(e)))}function Wk(e,t,n,r,i){if(r===mo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return Vk(e)&&Vk(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of Xg(e)){if(262144&a.flags){if(r||$k(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&Vk(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function Hk(e,t){if(!(6&wx(e)))return t(e);for(const n of e.links.containingType.types){const r=ef(n,e.escapedName),i=r&&Hk(r,t);if(i)return i}}function Kk(e){return e.parent&&32&e.parent.flags?Wu(cs(e)):void 0}function Gk(e){const t=Kk(e),n=t&&Au(t)[0];return n&&bc(n,e.escapedName)}function Xk(e,t,n){return Hk(t,(t=>!!(4&Dx(t,n))&&!ru(e,Kk(t))))?void 0:e}function Qk(e,t,n,r=3){if(n>=r){if(96&~Bx(e)||(e=Yk(e)),2097152&e.flags)return te(e.types,(e=>Qk(e,t,n,r)));const i=eT(e);let o=0,a=0;for(let e=0;e<n;e++){const n=t[e];if(Zk(n,i)){if(n.id>=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function Yk(e){let t;for(;!(96&~Bx(e))&&(t=jd(e))&&(t.symbol||2097152&t.flags&&te(t.types,(e=>!!e.symbol)));)e=t;return e}function Zk(e,t){return 96&~Bx(e)||(e=Yk(e)),2097152&e.flags?te(e.types,(e=>Zk(e,t))):eT(e)===t}function eT(e){if(524288&e.flags&&!qw(e)){if(4&Bx(e)&&e.node)return e.node;if(e.symbol&&!(16&Bx(e)&&32&e.symbol.flags))return e.symbol;if(KT(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function tT(e,t,n){if(e===t)return-1;const r=6&Dx(e);if(r!==(6&Dx(t)))return 0;if(r){if(lB(e)!==lB(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return ZL(e)!==ZL(t)?0:n(Gl(e),Gl(t))}function nT(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=hL(e),i=hL(t),o=yL(e),a=yL(t),s=vL(e),c=vL(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(_(e.typeParameters)!==_(t.typeParameters))return 0;if(t.typeParameters){const n=Kx(e.typeParameters,t.typeParameters);for(let r=0;r<t.typeParameters.length;r++){const i=e.typeParameters[r],a=t.typeParameters[r];if(!(i===a||o(hS(Pg(i),n)||It,Pg(a)||It)&&o(hS(fp(i),n)||It,fp(a)||It)))return 0}e=aS(e,n,!0)}let a=-1;if(!r){const n=im(e);if(n){const e=im(t);if(e){const t=o(n,e);if(!t)return 0;a&=t}}}const s=hL(t);for(let c=0;c<s;c++){const n=pL(e,c),r=o(pL(t,c),n);if(!r)return 0;a&=r}if(!i){const n=om(e),r=om(t);a&=n||r?function(e,t,n){return e&&t&&hv(e,t)?e.type===t.type?-1:e.type&&t.type?n(e.type,t.type):0:0}(n,r,o):o(sm(e),sm(t))}return a}function rT(e){return qe(e,((e,t)=>e|(1048576&t.flags?rT(t.types):t.flags)),0)}function iT(e){if(1===e.length)return e[0];const t=K?J(e,(e=>$D(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=wT(n);if(null!=t||(t=e),e===n||e!==t)return!1}return!0}(t)?mv(t):qe(t,((e,t)=>RS(e,t)?t:e));return t===e?n:mC(n,98304&rT(e))}function oT(e){return!!(4&Bx(e))&&(e.target===Zn||e.target===er)}function aT(e){return!!(4&Bx(e))&&e.target===er}function sT(e){return oT(e)||KT(e)}function cT(e){return oT(e)&&!aT(e)||KT(e)&&!e.target.readonly}function lT(e){return oT(e)?Xg(e)[0]:void 0}function uT(e){return oT(e)||!(98304&e.flags)&&jS(e,cr)}function _T(e){return cT(e)||!(98305&e.flags)&&jS(e,ar)}function dT(e){if(!(4&Bx(e)&&3&Bx(e.target)))return;if(33554432&Bx(e))return 67108864&Bx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&Bx(t)){const e=fu(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=Au(t);if(1!==n.length)return;if(x_(e.symbol).size)return;let r=_(t.typeParameters)?hS(n[0],Kx(t.typeParameters,Xg(e).slice(0,t.typeParameters.length))):n[0];return _(Xg(e))>_(t.typeParameters)&&(r=w_(r,Le(Xg(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function fT(e){return K?e===on:e===Rt}function mT(e){const t=lT(e);return!!t&&fT(t)}function gT(e){let t;return KT(e)||!!ef(e,"0")||uT(e)&&!!(t=bc(e,"length"))&&zD(t,(e=>!!(256&e.flags)))}function hT(e){return uT(e)||gT(e)}function yT(e,t){const n=bc(e,""+t);return n||(zD(e,KT)?ZT(e,t,I.noUncheckedIndexedAccess?Lt:void 0):void 0)}function bT(e){return!(240544&e.flags)}function xT(e){return!!(109472&e.flags)}function TT(e){const t=sp(e);return 2097152&t.flags?te(t.types,xT):xT(t)}function CT(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||C(e.types,xT):xT(e))}function wT(e){return 1056&e.flags?Uu(e):402653312&e.flags?zt:256&e.flags?$t:2048&e.flags?Vt:512&e.flags?Qt:1048576&e.flags?function(e){var t;const n=`B${av(e)}`;return null!=(t=yo(n))?t:vo(n,HD(e,wT))}(e):e}function IT(e){return 402653312&e.flags?zt:288&e.flags?$t:2048&e.flags?Vt:512&e.flags?Qt:1048576&e.flags?HD(e,IT):e}function RT(e){return 1056&e.flags&&kx(e)?Uu(e):128&e.flags&&kx(e)?zt:256&e.flags&&kx(e)?$t:2048&e.flags&&kx(e)?Vt:512&e.flags&&kx(e)?Qt:1048576&e.flags?HD(e,RT):e}function qT(e){return 8192&e.flags?Yt:1048576&e.flags?HD(e,qT):e}
6function zT(e,t){return DR(e,t)||(e=qT(RT(e))),Sx(e)}function VT(e,t,n,r){return e&&xT(e)&&(e=zT(e,t?Jj(n,t,r):void 0)),e}function KT(e){return!!(4&Bx(e)&&8&e.target.objectFlags)}function GT(e){return KT(e)&&!!(8&e.target.combinedFlags)}function XT(e){return GT(e)&&1===e.target.elementFlags.length}function QT(e){return eC(e,e.target.fixedLength)}function ZT(e,t,n){return HD(e,(e=>{const r=e,i=QT(r);return i?n&&t>=iv(r.target)?mv([i,n]):i:Lt}))}function eC(e,t,n=0,r=!1,i=!1){const o=Qg(e)-n;if(t<o){const n=Xg(e),a=[];for(let r=t;r<o;r++){const t=n[r];a.push(8&e.target.elementFlags[r]?Xb(t,$t):t)}return r?kv(a):mv(a,i?0:1)}}function oC({value:e}){return"0"===e.base10Value}function lC(e){return $D(e,(e=>hD(e,4194304)))}function uC(e){return 4&e.flags?Pi:8&e.flags?Fi:64&e.flags?Ai:e===Ht||e===Wt||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&oC(e)?e:nn}function mC(e,t){const n=t&~e.flags&98304;return 0===n?e:mv(32768===n?[e,Lt]:65536===n?[e,Ut]:[e,Lt,Ut])}function TC(e,t=!1){En.assert(K);const n=t?Bt:Lt;
6return e===n||1048576&e.flags&&e.types[0]===n?e:mv([e,n])}function wC(e){return K?bD(e,2097152):e}function AC(e){return K?mv([e,Jt]):e}function IC(e){return K?VD(e,Jt):e}function JC(e,t,n){return n?Rl(t)?TC(e):AC(e):e}function UC(e,t){return Ll(t)?wC(e):Il(t)?IC(e):e}function zC(e,t){return se&&t?VD(e,Mt):e}function $C(e){return e===Mt||!!(1048576&e.flags)&&e.types[0]===Mt}function VC(e){return se?VD(e,Mt):vD(e,524288)}function WC(e){const t=Bx(e);return 2097152&e.flags?C(e.types,WC):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||NJ(e))||!!(4194304&t)||!!(1024&t&&WC(e.source))}function HC(e,t){const n=Io(e.flags,e.escapedName,8&wx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=Ko(e).nameType;return r&&(n.links.nameType=r),n}function KC(e){if(!(Uw(e)&&8192&Bx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=_d();for(const r of Hd(e)){const e=Gl(r),i=t(e);n.set(r.escapedName,i===e?r:HC(r,i))}return n}(e,KC),i=Ns(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function GC(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function XC(e){if(!e.siblings){const t=[];for(const n of XC(e.parent))if(Uw(n)){const r=Kd(n,e.propertyName);r&&UD(Gl(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function QC(e){if(!e.resolvedProperties){const t=new Map;for(const n of XC(e))if(Uw(n)&&!(2097152&Bx(n)))for(const e of Xd(n))t.set(e.escapedName,e);e.resolvedProperties=Xe(t.values())}return e.resolvedProperties}function YC(e,t){if(!(4&e.flags))return e;const n=Gl(e),r=tw(n,t&&GC(t,e.escapedName,void 0));return r===n?e:HC(e,r)}function ZC(e){const t=gt.get(e.escapedName);if(t)return t;const n=HC(e,Bt);return n.flags|=16777216,gt.set(e.escapedName,n),n}function ew(e){return tw(e,void 0)}function tw(e,t){if(196608&Bx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=Ct;else if(Uw(e))n=function(e,t){const n=_d();for(const i of Hd(e))n.set(i.escapedName,YC(i,t));if(t)for(const i of QC(t))n.has(i.escapedName)||n.set(i.escapedName,ZC(i));const r=Ns(e.symbol,n,c,c,J(Sf(e),(e=>pg(e.keyType,ew(e.type),e.isReadonly))));return r.objectFlags|=266240&Bx(e),r}(e,t);else if(1048576&e.flags){const r=t||GC(void 0,void 0,e.types),i=J(e.types,(e=>98304&e.flags?e:tw(e,r)));n=mv(i,te(i,bk)?2:1)}else 2097152&e.flags?n=kv(J(e.types,ew)):sT(e)&&(n=$g(e.target,J(Xg(e),ew)));return n&&void 0===t&&(e.widened=n),n||e}return e}function nw(e){let t=!1;if(65536&Bx(e)){if(1048576&e.flags)if(te(e.types,bk))t=!0;else for(const n of e.types)nw(n)&&(t=!0);if(sT(e))for(const n of Xg(e))nw(n)&&(t=!0);if(Uw(e))for(const n of Hd(e)){const e=Gl(n);65536&Bx(e)&&(nw(e)||Co(n.valueDeclaration,Pa.Object_literal_s_property_0_implicitly_has_an_1_type,Hs(n),Ys(ew(e))),t=!0)}}return t}function rw(e,t,n){const r=Ys(ew(t));if(Wm(e)&&!kT(Id(e),I))return;let i;switch(e.kind){case 226:case 172:case 171:i=ee?Pa.Member_0_implicitly_has_an_1_type:Pa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(nN(t.name)){const n=Ac(t.name);if((PN(t.parent)||TN(t.parent)||LN(t.parent))&&t.parent.parameters.includes(t)&&(Me(t,t.name.escapedText,788968,void 0,!0)||n&&Wx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=zp(t.name)+(t.dotDotDotToken?"[]":"");return void Do(ee,e,Pa.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?ee?Pa.Rest_parameter_0_implicitly_has_an_any_type:Pa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ee?Pa.Parameter_0_implicitly_has_an_1_type:Pa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=Pa.Binding_element_0_implicitly_has_an_1_type,!ee)return;break;case 317:return void Co(e,Pa.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 323:return void(ee&&PF(e.parent)&&Co(e.parent.tagName,Pa.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ee&&!e.name)return void Co(e,3===n?Pa.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Pa.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=ee?3===n?Pa._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Pa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Pa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;
6case 200:return void(ee&&Co(e,Pa.Mapped_object_type_implicitly_has_an_any_template_type));default:i=ee?Pa.Variable_0_implicitly_has_an_1_type:Pa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Do(ee,e,i,zp(Jc(e)),r)}function iw(e,t,n){a((()=>{!(ee&&65536&Bx(t))||n&&nA(e)||nw(t)||rw(e,t,n)}))}function ow(e,t,n){const r=hL(e),i=hL(t),o=bL(e),a=bL(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=im(e);if(l){const e=im(t);e&&n(l,e)}for(let u=0;u<c;u++)n(pL(e,u),pL(t,u));a&&n(mL(e,c,Zd(a)&&!qD(a,_T)),a)}function aw(e,t,n){const r=om(t);if(r){const t=om(e);if(t&&hv(t,r)&&t.type&&r.type)return void n(t.type,r.type)}const i=sm(t);gw(i)&&n(sm(e),i)}function sw(e,t,n,r){return cw(e.map(dw),t,n,r||OS)}function cw(e,t,n,r){const i={inferences:e,signature:t,flags:n,compareTypes:r,mapper:Dn,nonFixingMapper:Dn};return i.mapper=function(e){return Zx(j(e.inferences,(e=>e.typeParameter)),j(e.inferences,((t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?DF(t,2):$F(t,2);r&&jw(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),lw(e.inferences),t.isFixed=!0),Vw(e,n)))))}(i),i.nonFixingMapper=function(e){return Zx(j(e.inferences,(e=>e.typeParameter)),j(e.inferences,((t,n)=>()=>Vw(e,n))))}(i),i}function lw(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function uw(e,t,n){var r;(null!=(r=e.intraExpressionInferenceSites)?r:e.intraExpressionInferenceSites=[]).push({node:t,type:n})}function dw(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function fw(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function mw(e){return e&&e.mapper}function gw(e){const t=Bx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!yw(e)&&(4&t&&(e.node||te(Xg(e),gw))||134217728&t&&_(e.outerTypeParameters)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!yw(e)&&te(e.types,gw));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function yw(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=ld(e.aliasSymbol,265);return!(!t||!wc(t.parent,(e=>307===e.kind||267!==e.kind&&"quit")))}return!1}function vw(e,t,n=0){return!!(e===t||3145728&e.flags&&te(e.types,(e=>vw(e,t,n)))||n<3&&16777216&e.flags&&(vw(ox(e),t,n+1)||vw(ax(e),t,n+1)))}function bw(e,t,n){const r=e.id+","+t.id+","+n.id;if(gi.has(r))return gi.get(r);const i=function(e,t,n){if(!(Tf(e,zt)||0!==Xd(e).length&&xw(e)))return;if(oT(e)){const r=Sw(Xg(e)[0],t,n);if(!r)return;return jy(r,aT(e))}if(KT(e)){const r=j(ov(e),(e=>Sw(e,t,n)));if(!C(r,(e=>!!e)))return;return Hy(r,4&Bd(t)?J(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Ss(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return gi.set(r,i),i}function xw(e){return!(262144&Bx(e))||Uw(e)&&te(Xd(e),(e=>xw(Gl(e))))||KT(e)&&te(ov(e),xw)}function Sw(e,t,n){const r=e.id+","+t.id+","+n.id;if(gi.has(r))return gi.get(r)||It;io.push(e),oo.push(t);const i=ao;let o;return Qk(e,io,io.length,2)&&(ao|=1),Qk(t,oo,oo.length,2)&&(ao|=2),3!==ao&&(o=function(e,t,n){const r=Xb(n.type,wd(t)),i=Pd(t),o=dw(r);return jw([o],e,i),Cw(o)||It}(e,t,n)),io.pop(),oo.pop(),ao=i,gi.set(r,o),o}function*kw(e,t,n,r){const i=Xd(t);for(const o of i)if(!a_(o)&&(n||!(16777216&o.flags||48&wx(o)))){const t=ef(e,o.escapedName);if(t){if(r){const e=Gl(o);if(109472&e.flags){const n=Gl(t);1&n.flags||Sx(n)===Sx(e)||(yield o)}}}else yield o}}function Tw(e,t,n,r){return Fe(kw(e,t,n,r))}function Cw(e){return e.candidates?mv(e.candidates,2):e.contraCandidates?kv(e.contraCandidates):void 0}function ww(e){return!!Xo(e).skipDirectInference}function Dw(e){return!(!e.symbol||!te(e.symbol.declarations,ww))}function Ew(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function Aw(e){return Nx(MT(e))}function Iw(e,t){if(1&t.flags)return!0;
6if(134217732&t.flags)return jS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return qe(n,((e,t)=>_b(t,e)),e)===e&&Iw(e,t)}return!1}function Ow(e,t){if(2097152&t.flags)return C(t.types,(t=>t===An||Ow(e,t)));if(4&t.flags||jS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&Ew(n,!1)||64&t.flags&&jT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&Iw(Tx(n),t)||134217728&t.flags&&Rw(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&jS(e.types[0],t)}return!1}function Lw(e,t){return 128&e.flags?Mw([e.value],c,t):134217728&e.flags?A(e.texts,t.texts)?j(e.types,((e,n)=>{return jS(sp(e),sp(t.types[n]))?e:402653317&(r=e).flags?r:lb(["",""],[r]);var r})):Mw(e.texts,e.types,t):void 0}function Rw(e,t){const n=Lw(e,t);return!!n&&C(n,((e,n)=>Ow(e,t.types[n])))}function Mw(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length<c.length+l.length||!i.startsWith(c)||!o.endsWith(l))return;const u=o.slice(0,o.length-l.length),_=[];let d=0,p=c.length;for(let g=1;g<s;g++){const t=a[g];if(t.length>0){let n=d,r=p;for(;r=f(n).indexOf(t,r),!(r>=0);){if(n++,n===e.length)return;r=0}m(n,r),p+=t.length}else if(p<f(d).length)m(d,p+1);else{if(!(d<r))return;m(d+1,0)}}return m(r,f(r).length),_;function f(t){return t<r?e[t]:u}function m(n,r){const i=n===d?Tx(f(n).slice(p,r)):lb([e[d].slice(p),...e.slice(d+1,n),f(n).slice(0,r)],t.slice(d,n));_.push(i),d=n,p=r}}function jw(e,t,n,r=0,i=!1){let o,a,s,l,u=!1,_=2048,d=0;function p(t,a){if(gw(a)&&!Rh(a)){if(t===Dt||t===Nt){const e=o;return o=t,p(a,a),void(o=e)}if(t.aliasSymbol&&t.aliasSymbol===a.aliasSymbol){if(t.aliasTypeArguments){const e=Ko(t.aliasSymbol).typeParameters,n=Lf(e);h(Rf(t.aliasTypeArguments,e,n,Wm(t.aliasSymbol.valueDeclaration)),Rf(a.aliasTypeArguments,e,n,Wm(t.aliasSymbol.valueDeclaration)),Bk(t.aliasSymbol))}}else if(t===a&&3145728&t.flags)for(const e of t.types)p(e,e);else{if(1048576&a.flags){const[e,n]=g(1048576&t.flags?t.types:[t],a.types,Bw),[r,i]=g(e,n,Jw);if(0===i.length)return;if(a=mv(i),0===r.length)return void f(t,a,1);t=mv(r)}else if(2097152&a.flags&&!C(a.types,fx)&&!(1048576&t.flags)){const[e,n]=g(2097152&t.flags?t.types:[t],a.types,AS);if(0===e.length||0===n.length)return;t=kv(e),a=kv(n)}if(41943040&a.flags){if(Rh(a))return;a=tx(a)}if(8650752&a.flags){if(Dw(t))return;const c=b(a);if(c){if(262144&Bx(t)||t===Ft)return;if(!c.isFixed){const _=o||t;if(_===Nt)return;if((void 0===c.priority||r<c.priority)&&(c.candidates=void 0,c.contraCandidates=void 0,c.topLevel=!0,c.priority=r),r===c.priority){if(s=c.typeParameter,KT(l=_)&&yT(l,0)===Xb(s,Cx(0))&&!bc(l,"1"))return;i&&!u?F(c.contraCandidates,_)||(c.contraCandidates=fe(c.contraCandidates,_),lw(e)):F(c.candidates,_)||(c.candidates=fe(c.candidates,_),lw(e))}!(128&r)&&262144&a.flags&&c.topLevel&&!vw(n,a)&&(c.topLevel=!1,lw(e))}return void(_=Math.min(_,r))}const d=Wb(a,!1);if(d!==a)p(t,d);else if(8388608&a.flags){const e=Wb(a.indexType,!1);if(465829888&e.flags){const n=Hb(Wb(a.objectType,!1),e,!1);n&&n!==a&&p(t,n)}}}var s,l;if(!(4&Bx(t)&&4&Bx(a)&&(t.target===a.target||oT(t)&&oT(a)))||t.node&&a.node)if(4194304&t.flags&&4194304&a.flags)y(t.type,a.type);else if((CT(t)||4&t.flags)&&4194304&a.flags){const e=function(e){const t=_d();UD(e,(e=>{if(!(128&e.flags))return;const n=Ec(e.value),r=Io(4,n);r.links.type=Ct,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[pg(zt,Nn,!1)]:c;return Ns(void 0,t,c,c,n)}(t);!function(e,t,n){const i=r;r|=n,y(e,t),r=i}(e,a.type,256)}else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(Uh(t),a,4);else if(16777216&a.flags)m(t,a,k);else if(3145728&a.flags)x(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=Lw(e,t),r=t.types;if(n||C(t.texts,(e=>0===e.length)))for(let i=0;i<r.length;i++){const e=n?n[i]:nn,t=r[i];if(128&e.flags&&8650752&t.flags){const n=b(t),r=n?op(n.typeParameter):void 0;if(r&&!kc(r)){const n=1048576&r.flags?r.types:[r];let i=qe(n,((e,t)=>e|t.flags),0);if(!(4&i)){const r=e.value;296&i&&!Ew(r,!0)&&(i&=-297),2112&i&&!jT(r,!0)&&(i&=-2113);const o=qe(n,((t,n)=>n.flags&i?4&t.flags?t:4&n.flags?e:134217728&t.flags?t:134217728&n.flags&&Rw(e,n)?e:268435456&t.flags?t:268435456&n.flags&&r===db(n.symbol,r)?e:128&t.flags?t:128&n.flags&&n.value===r?n:8&t.flags?t:8&n.flags?Cx(+r):32&t.flags?t:32&n.flags?Cx(+r):256&t.flags?t:256&n.flags&&n.value===+r?n:64&t.flags?t:64&n.flags?Aw(r):2048&t.flags?t:2
6048&n.flags&&LT(n.value)===r?n:16&t.flags?t:16&n.flags?"true"===r?Kt:"false"===r?Wt:Qt:512&t.flags?t:512&n.flags&&n.intrinsicName===r?n:32768&t.flags?t:32768&n.flags&&n.intrinsicName===r?n:65536&t.flags?t:65536&n.flags&&n.intrinsicName===r?n:t:t),nn);if(!(131072&o.flags)){p(o,t);continue}}}}p(e,t)}}(t,a);else{if($d(t=Op(t))&&$d(a)&&m(t,a,T),!(512&r&&467927040&t.flags)){const e=Ep(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,D)}else h(Xg(t),Xg(a),jk(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(_=Math.min(_,i));(a||(a=new Map)).set(r,-1);const o=_;_=2048;const c=d;(null!=s?s:s=[]).push(e),(null!=l?l:l=[]).push(t),Qk(e,s,s.length,2)&&(d|=1),Qk(t,l,l.length,2)&&(d|=2),3!==d?n(e,t):_=-1,l.pop(),s.pop(),d=c,a.set(r,_),_=Math.min(_,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=ve(r,t),i=ve(i,o));return[r?L(e,(e=>!F(r,e))):e,i?L(t,(e=>!F(i,e))):t]}function h(e,t,n){const r=e.length<t.length?e.length:t.length;for(let i=0;i<r;i++)i<n.length&&2==(7&n[i])?y(e[i],t[i]):p(e[i],t[i])}function y(e,t){i=!i,p(e,t),i=!i}function v(e,t){G||1024&r?y(e,t):p(e,t)}function b(t){if(8650752&t.flags)for(const n of e)if(t===n.typeParameter)return n}function x(e,t,n){let i=0;if(1048576&n){let n;const o=1048576&e.flags?e.types:[e],a=new Array(o.length);let s=!1;for(const e of t)if(b(e))n=e,i++;else for(let t=0;t<o.length;t++){const n=_;_=2048,p(o[t],e),_===r&&(a[t]=!0),s=s||-1===_,_=Math.min(_,n)}if(0===i){const n=function(e){let t;for(const n of e){const e=2097152&n.flags&&w(n.types,(e=>!!b(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=q(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(mv(e),n)}}else for(const r of t)b(r)?i++:p(e,r);if(2097152&n?1===i:i>0)for(const r of t)b(r)&&f(e,r,1)}function S(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=S(e,t,i)||r;return r}if(4194304&n.flags){const r=b(n.type);if(r&&!r.isFixed&&!Dw(e)){const i=bw(e,t,n);i&&f(i,r.typeParameter,262144&Bx(e)?16:8)}return!0}if(262144&n.flags){f(ab(e,e.pattern?2:0),n,32);const r=Qd(n);return r&&S(e,t,r)||p(mv(re(j(Xd(e),Gl),j(Sf(e),(e=>e!==ci?e.type:nn)))),Pd(t)),!0}return!1}function k(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(ox(e),ox(t)),p(ax(e),ax(t))):function(e,t,n,i){const o=r;r|=i,x(e,t,n),r=o}(e,[ox(t),ax(t)],t.flags,i?64:0)}function T(e,t){p(Nd(e),Nd(t)),p(Pd(e),Pd(t));const n=Ed(e),r=Ed(t);n&&r&&p(n,r)}function D(e,t){var n,r;if(4&Bx(e)&&4&Bx(t)&&(e.target===t.target||oT(e)&&oT(t)))h(Xg(e),Xg(t),jk(e.target));else{if($d(e)&&$d(t)&&T(e,t),32&Bx(t)&&!t.declaration.nameType&&S(e,t,Nd(t)))return;if(!function(e,t){return KT(e)&&KT(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!Tw(e,t,!1,!0)&&!!Tw(t,e,!1,!1)}(e,t)){if(sT(e)){if(KT(t)){const a=Qg(e),s=Qg(t),c=Xg(t),l=t.target.elementFlags;if(KT(e)&&(o=t,Qg(i=e)===Qg(o)&&C(i.target.elementFlags,((e,t)=>(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t<s;t++)p(Xg(e)[t],c[t]);return}const u=KT(e)?Math.min(e.target.fixedLength,t.target.fixedLength):0,_=Math.min(KT(e)?rv(e.target,3):0,t.target.hasRestElement?rv(t.target,3):0);for(let t=0;t<u;t++)p(Xg(e)[t],c[t]);if(!KT(e)||a-u-_==1&&4&e.target.elementFlags[u]){const t=Xg(e)[u];for(let e=u;e<s-_;e++)p(8&l[e]?jy(t):t,c[e])}else{const i=s-u-_;if(2===i){if(l[u]&l[u+1]&8){const t=b(c[u]);t&&void 0!==t.impliedArity&&(p(Zy(e,u,_+a-t.impliedArity),c[u]),p(Zy(e,u+t.impliedArity,_),c[u+1]))}else if(8&l[u]&&4&l[u+1]){const t=null==(n=b(c[u]))?void 0:n.typeParameter,r=t&&op(t);if(r&&KT(r)&&!r.target.hasRestElement){const t=r.target.fixedLength;p(Zy(e,u,a-(u+t)),c[u]),p(eC(e,u+t,_),c[u+1])}}else if(4&l[u]&&8&l[u+1]){const n=null==(r=b(c[u+1]))?void 0:r.typeParameter,i=n&&op(n);if(i&&KT(i)&&!i.target.hasRestElement){const n=i.target.fixedLength,r=a-rv(t.target,3),o=r-n,s=Hy(Xg(e).slice(o,r),e.target.elementFlags.slice(o,r),!1,e.target.labeledElementDeclarations&&e.target.labeledElementDeclarations.slice(o,r));p(eC(e,u,_+n),c[u]),p(s,c[u+1])}}}else if(1===i&&8&l[u]){const n=2&t.target.elementFlags[s-1];f(Zy(e,u,_),c[u],n?2:0)}else if(1===i&&4&l[u]){const t=eC(e,u,_);t&&p(t,c[u])}}for(let t=0;t<_;t++)p(Xg(e)[a-t-1],c[s-t-1]);return}if(oT(t))return void P(e,t)}!function(e,t){const n=Hd(t);for(const r of n){const t=ef(e,r.escapedName);t&&!te(t.declarations,ww)&&p(zC(Gl(t),!!(16777216&t.flags)),zC(Gl(r),!!(16777216&r.flags)))}}(e,t),N(e,t,0),N(e,t,1),P(e,t)}var i,o}}function N(e,t,n){const r=of(e,n),i=r.length;if(i>0){const e=of(t,n),o=e.length;for(let t=0;t<o;t++)E(Ym(r[Math.max(i-o+t,0)]),zm(e[t]))}}function E(e,t){if(!(64&e.flags)){const n=u,r=t.declaration?t.declaration.kind:0;u=u||174===r||173===r||176===r,ow(e,t,v),u=n}aw(e,t,p)}function P(e,t){const n=Bx(e)&Bx(t)&32?8:0,r=Sf(t);if(WC(e))for(const i of r){const t=[];for(const n of Xd(e))if(yf(zv(n,8576),i.keyType)){const e=Gl(n);t.push(16777216&n.flags?VC(e):e)}for(const n of Sf(e))yf(n.keyType,i.keyType)&&t.push(n.type);t.length&&f(mv(t),i.type,n)}for(const i of r){const t=Df(e,i.keyType);t&&f(t.type,i.type,n)}}
6p(t,n)}function Bw(e,t){return t===Mt?e===t:AS(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Jw(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Uw(e){return!!(128&Bx(e))}function qw(e){return!!(16512&Bx(e))}function zw(e){return 416&e.priority?kv(e.contraCandidates):qe(e.contraCandidates,((e,t)=>RS(t,e)?t:e))}function $w(e,t){const n=function(e){if(e.length>1){const t=L(e,qw);if(t.length){const n=mv(t,2);return re(L(e,(e=>!qw(e))),[n])}}return e}(e.candidates),r=function(e){const t=Yd(e);return!!t&&aR(16777216&t.flags?tp(t):t,406978556)}(e.typeParameter)||Zd(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=om(e);return n?!!n.type&&vw(n.type,t):vw(sm(e),t)}(t,e.typeParameter)),o=r?J(n,Sx):i?J(n,RT):n;return ew(416&e.priority?mv(o,2):iT(o))}function Vw(e,t){const n=e.inferences[t];if(!n.inferredType){let o,a;if(e.signature){const s=n.candidates?$w(n,e.signature):void 0,c=n.contraCandidates?zw(n):void 0;if(s||c){const t=s&&(!c||!(131072&s.flags)&&te(n.contraCandidates,(e=>RS(s,e)))&&C(e.inferences,(e=>e!==n&&Yd(e.typeParameter)!==n.typeParameter||C(e.candidates,(e=>RS(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=rn;else{const a=fp(n.typeParameter);a&&(o=hS(a,(r=function(e,t){const n=e.inferences.slice(t);return Kx(j(n,(e=>e.typeParameter)),j(n,(()=>It)))}(e,t),i=e.nonFixingMapper,r?eS(5,r,i):i)))}}else o=Cw(n);n.inferredType=o||Ww(!!(2&e.flags));const s=Yd(n.typeParameter);if(s){const t=hS(s,e.nonFixingMapper);o&&e.compareTypes(o,w_(t,o))||(n.inferredType=a&&e.compareTypes(a,w_(t,a))?a:t)}}var r,i;return n.inferredType}function Ww(e){return e?Ct:It}function Hw(e){const t=[];for(let n=0;n<e.inferences.length;n++)t.push(Vw(e,n));return t}function Xw(e){switch(e.escapedText){case"document":case"console":return Pa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return I.types?Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return I.types?Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return I.types?Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return I.types?Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return Pa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(uE(e.parent))return Pa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 304===e.parent.kind?Pa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Pa.Cannot_find_name_0}}function Qw(e){const t=Xo(e);
6return t.resolvedSymbol||(t.resolvedSymbol=!Ud(e)&&Me(e,e,1160127,Xw(e),!Px(e),!1)||bt),t.resolvedSymbol}function Yw(e){return!!(33554432&e.flags||wc(e,(e=>lP(e)||uP(e)||jN(e))))}function eD(e,t,n,r){switch(e.kind){case 80:if(!Fv(e)){const i=Qw(e);return i!==bt?`${r?ZB(r):"-1"}|${av(t)}|${av(n)}|${eJ(i)}`:void 0}case 110:return`0|${r?ZB(r):"-1"}|${av(t)}|${av(n)}`;case 235:case 217:return eD(e.expression,t,n,r);case 166:const i=eD(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 211:case 212:const o=nD(e);if(void 0!==o){const i=eD(e.expression,t,n,r);return i&&`${i}.${o}`}if(lE(e)&&nN(e.argumentExpression)){const i=Qw(e.argumentExpression);if(vE(i)||SE(i)&&!VN(i)){const o=eD(e.expression,t,n,r);return o&&`${o}.@${eJ(i)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${ZB(e)}#${av(t)}`}}function tD(e,t){switch(t.kind){case 217:case 235:return tD(e,t.expression);case 226:return wb(t)&&tD(e,t.left)||kE(t)&&28===t.operatorToken.kind&&tD(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return Fv(e)?110===t.kind:80===t.kind&&Qw(e)===Qw(t)||(oP(t)||oE(t))&&ms(Qw(e))===os(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return tD(e.expression,t);case 211:case 212:const n=nD(e);if(void 0!==n){const r=Hx(t)?nD(t):void 0;if(void 0!==r)return r===n&&tD(e.expression,t.expression)}if(lE(e)&&lE(t)&&nN(e.argumentExpression)&&nN(t.argumentExpression)){const n=Qw(e.argumentExpression);if(n===Qw(t.argumentExpression)&&(vE(n)||SE(n)&&!VN(n)))return tD(e.expression,t.expression)}break;case 166:return Hx(t)&&e.right.escapedText===nD(t)&&tD(e.left,t.expression);case 226:return kE(e)&&28===e.operatorToken.kind&&tD(e.right,t)}return!1}function nD(e){if(cE(e))return e.name.escapedText;if(lE(e))return Zh((t=e).argumentExpression)?Ec(t.argumentExpression.text):Pb(t.argumentExpression)?function(e){const t=Ja(e,111551,!0);if(!t||!(vE(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=Nl(n);if(r){const e=rD(r);if(void 0!==e)return e}if(K_(n)&&Yo(n,e)){const e=ag(n);if(e){const t=Bu(n.parent)?Hc(n):BR(e);return t&&rD(t)}if(tF(n))return Hp(n.name)}}(t.argumentExpression):void 0;var t;if(oE(e)){const t=$c(e);return t?Ec(t):void 0}return bN(e)?""+e.parent.parameters.indexOf(e):void 0}function rD(e){return 8192&e.flags?e.escapedName:384&e.flags?Ec(""+e.value):void 0}function iD(e,t){for(;Hx(e);)if(tD(e=e.expression,t))return!0;return!1}function oD(e,t){for(;Il(e);)if(tD(e=e.expression,t))return!0;return!1}function aD(e,t){if(e&&1048576&e.flags){const n=Ap(e,t);if(n&&2&wx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||Ub(Gl(n)))),!!n.links.isDiscriminantProperty}return!1}function sD(e,t){let n;for(const r of e)if(aD(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function cD(e){const t=e.types;if(!(t.length<10||32768&Bx(e)||O(t,(e=>
6!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=d(t,(e=>59506688&e.flags?d(Xd(e),(e=>xT(Gl(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=bc(i,t);if(e){if(!CT(e))return;let t=!1;UD(e,(e=>{const r=av(Sx(e)),o=n.get(r);o?o!==It&&(n.set(r,It),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function lD(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(av(Sx(t)));return r!==It?r:void 0}function uD(e,t){const n=cD(e),r=n&&bc(t,n);return r&&lD(e,r)}function _D(e,t){return tD(e,t)||iD(e,t)}function dD(e,t){if(e.arguments)for(const n of e.arguments)if(_D(t,n)||oD(n,t))return!0;return!(211!==e.expression.kind||!_D(t,e.expression.expression))}function pD(e){return e.id<=0&&(e.id=$B,$B++),e.id}function fD(e,t){var n;if(e===t)return e;if(131072&t.flags)return t;const r=`A${av(e)},${av(t)}`;return null!=(n=yo(r))?n:vo(r,function(e,t){const n=$D(e,(e=>function(e,t){if(!(1048576&e.flags))return jS(e,t);for(const n of e.types)if(jS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&kx(t)?HD(n,xx):n;return jS(t,r)?r:e}(e,t))}function mD(e){const t=Wd(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&RS(e,Xn))}function gD(e,t){return yD(e,t)&t}function hD(e,t){return 0!==gD(e,t)}function yD(e,t){467927040&e.flags&&(e=op(e)||It);const n=e.flags;if(268435460&n)return K?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return K?t?12123649:7929345:t?12582401:16776705}if(40&n)return K?16317698:16776450;if(256&n){const t=0===e.value;return K?t?12123394:7929090:t?12582146:16776450}if(64&n)return K?16317188:16775940;if(2048&n){const t=oC(e);return K?t?12122884:7928580:t?12581636:16775940}return 16&n?K?16316168:16774920:528&n?K?e===Wt||e===Ht?12121864:7927560:e===Wt||e===Ht?12580616:16774920:524288&n?t&(K?83427327:83886079)?16&Bx(e)&&bk(e)?K?83427327:83886079:mD(e)?K?7880640:16728e3:K?7888800:16736160:0:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?K?7925520:16772880:67108864&n?K?7888800:16736160:131072&n?0:1048576&n?qe(e.types,((e,n)=>e|yD(n,t)),0):2097152&n?function(e,t){const n=aR(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=yD(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function vD(e,t){return $D(e,(e=>hD(e,t)))}function bD(e,t){const n=SD(vD(K&&2&e.flags?On:e,t));if(K)switch(t){case 524288:return xD(n,65536,131072,33554432,Ut);case 1048576:return xD(n,131072,65536,16777216,Lt);case 2097152:case 4194304:return HD(n,(e=>hD(e,262144)?function(e){return lr||(lr=_y("NonNullable",524288,void 0)||bt),lr!==bt?sh(lr,[e]):kv([e,Nn])}(e):e))}return n}function xD(e,t,n,r,i){const o=gD(e,50528256);if(!(o&t))return e;const a=mv([Nn,i]);return HD(e,(e=>hD(e,t)?kv([e,o&r||!hD(e,n)?Nn:a]):e))}function SD(e){return e===On?It:e}function kD(e,t){return t?mv([Mc(e),BR(t)]):e}function TD(e,t){var n;const r=qv(t);if(!NC(r))return Et;const i=EC(r);return bc(e,i)||wD(null==(n=Nf(e,i))?void 0:n.type)||Et}function CD(e,t){return zD(e,gT)&&yT(e,t)||wD(gj(65,e,Lt,void 0))||Et}function wD(e){return e&&I.noUncheckedIndexedAccess?mv([e,Mt]):e}function DD(e){return jy(gj(65,e,Lt,void 0)||Et)}function ND(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function ED(e){return TD(PD(e.parent),e.name)}function PD(e){const{parent:t}=e;switch(t.kind){case 249:return zt;case 250:return mj(t)||Et;case 226:return function(e){return 209===e.parent.kind&&ND(e.parent)||303===e.parent.kind&&ND(e.parent.parent)?kD(PD(e),e.right):BR(e.right)}(t);case 220:return Lt;case 209:return function(e,t){return CD(PD(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return DD(PD(e.parent))}(t);case 303:return ED(t);case 304:return function(e){return kD(ED(e),e.objectAssignmentInitializer)}(t)}return Et}function FD(e){return Xo(e).resolvedType||BR(e)}function AD(e){return 260===e.kind?function(e){return e.initializer?FD(e.initializer):249===e.parent.parent.kind?zt:250===e.parent.parent.kind&&mj(e.parent.parent)||Et}(e):function(e){const t=e.parent,n=AD(t.parent);return kD(206===t.kind?TD(n,e.propertyName||e.name):e.dotDotDotToken?DD(n):CD(n,t.elements.indexOf(e)),e.initializer)}(e)}function ID(e){switch(e.kind){case 217:return ID(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return ID(e.left);case 28:return ID(e.right)}}return e}function OD(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?OD(t):e}function LD(e){return 296===e.kind?Sx(BR(e.expression)):nn}function RD(e){const t=Xo(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(LD(n))}return t.switchTypes}function jD(e){if(te(e.caseBlock.clauses,(e=>296===e.kind&&!Z_(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!F(t,e)?e:void 0)}return t}function JD(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!sv(t.types,n))return!1;return!0}return!!(1056&e.flags&&Uu(e)===t)||sv(t.types,e)}(e,t))}function UD(e,t){return 1048576&e.flags?d(e.types,t):t(e)}function qD(e,t){return 1048576&e.flags?te(e.types,t):t(e)}function zD(e,t){return 1048576&e.flags?C(e.types,t):t(e)}
6function $D(e,t){if(1048576&e.flags){const n=e.types,r=L(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=L(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=fv(1048576,a)}}return yv(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:nn}function VD(e,t){return $D(e,(e=>e!==t))}function WD(e){return 1048576&e.flags?e.types.length:1}function HD(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const s of i){const e=1048576&s.flags?HD(s,t,n):t(s);a||(a=s!==e),e&&(o?o.push(e):o=[e])}return a?o&&mv(o,n?0:1):e}function KD(e,t,n,r){return 1048576&e.flags&&n?mv(j(e.types,t),1,n,r):HD(e,t)}function GD(e,t){return $D(e,(e=>!!(e.flags&t)))}function XD(e,t){return aR(e,134217804)&&aR(t,402655616)?HD(e,(e=>4&e.flags?GD(t,402653316):Db(e)&&!aR(t,402653188)?GD(t,128):8&e.flags?GD(t,264):64&e.flags?GD(t,2112):e)):e}function QD(e){return 0===e.flags}function YD(e){return 0===e.flags?e.type:e}function ZD(e,t){return t?{flags:0,type:131072&e.flags?rn:e}:e}function eN(e){return ft[e.id]||(ft[e.id]=function(e){const t=Ss(256);return t.elementType=e,t}(e))}function tN(e,t){const n=KC(wT(UR(t)));return JD(n,e.elementType)?e:eN(mv([e.elementType,n]))}function iN(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?sr:jy(1048576&t.flags?mv(t.types,2):t));var t}function oN(e){return 256&Bx(e)?iN(e):e}function aN(e){return 256&Bx(e)?e.elementType:nn}function sN(e){const t=OD(e),n=t.parent,r=cE(n)&&("length"===n.name.escapedText||213===n.parent.kind&&nN(n.name)&&gy(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!_h(n.parent)&&sR(BR(n.argumentExpression),296);return r||i}function cN(e,t){if(8752&(e=Aa(e)).flags)return Gl(e);if(7&e.flags){if(262144&wx(e)){const t=e.links.syntheticOrigin;if(t&&cN(t))return Gl(e)}const r=e.valueDeclaration;if(r){if((oP(n=r)||kN(n)||SN(n)||bN(n))&&(Ov(n)||Wm(n)&&H_(n)&&n.initializer&&iC(n.initializer)&&Rv(n.initializer)))return Gl(e);if(oP(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=lN(e.expression,void 0);if(t)return gj(e.awaitModifier?15:13,t,Lt,void 0)}t&&DT(t,Gp(r,Pa._0_needs_an_explicit_type_annotation,Hs(e)))}}var n}function lN(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return cN(ms(Qw(e)),t);case 110:return function(e){const t=fm(e,!1,!1);if(vu(t)){const e=jf(t);if(e.thisParameter)return cN(e.thisParameter)}if(Du(t.parent)){const e=os(t.parent);return Qv(t)?Gl(e):Wu(e).thisType}}(e);case 108:return OP(e);case 211:{const n=lN(e.expression,t);if(n){const r=e.name;let i;if(rN(r)){if(!n.symbol)return;i=ef(n,cy(n.symbol,r.escapedText))}else i=ef(n,r.escapedText);return i&&cN(i,t)}return}case 217:return lN(e.expression,t)}}function uN(e){const t=Xo(e);let n=t.effectsSignature;if(void 0===n){let r;kE(e)?r=_R(ZA(e.right)):244===e.parent.kind?r=lN(e.expression,void 0):108!==e.expression.kind&&(r=Il(e)?oI(UC(qR(e.expression),e.expression),e.expression):ZA(e.expression));const i=of(r&&Ep(r)||It,0),o=1!==i.length||i[0].typeParameters?te(i,_N)?jO(e):void 0:i[0];n=t.effectsSignature=o&&_N(o)?o:oi}return n===oi?void 0:n}function _N(e){return!!(om(e)||e.declaration&&131072&(lm(e.declaration)||It).flags)}function dN(e){const t=fN(e,!1);return Yr=e,Zr=t,t}function pN(e){const t=bh(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(pN(t.left)||pN(t.right))||57===t.operatorToken.kind&&pN(t.left)&&pN(t.right))}function fN(e,t){for(;;){if(e===Yr)return Zr;const n=e.flags;if(4096&n){if(!t){const t=pD(e),n=Xi[t];return void 0!==n?n:Xi[t]=fN(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=uN(e.node);if(t){const n=om(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&pN(t))return!1}if(131072&sm(t).flags)return!1}e=e.antecedent}else{if(4&n)return te(e.antecedent,(e=>fN(e,!1)));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){Yr=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=fN(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&WL(t.switchStatement))return!1;e=e.antecedent}}}}}function gN(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=pD(e),n=Qi[t];return void 0!==n?n:Qi[t]=gN(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return C(e.antecedent,(e=>gN(e,!1)));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=gN(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function AN(e){switch(e.kind){case 110:return!0;case 80:if(!Fv(e)){const t=Qw(e);return vE(t)||SE(t)&&!VN(t)||!!t.valueDeclaration&&mE(t.valueDeclaration)}break;case 211:case 212:return AN(e.expression)&&ZL(Xo(e).resolvedSymbol||bt);case 206:case 207:const t=yy(e.parent);return bN(t)||rC(t)?!tE(t):oP(t)&&YU(t)}return!1}function BN(e,t,n=t,r,i=(t=>null==(t=ht(e,Kg))?void 0:t.flowNode)()){let o,a=!1,s=0;if(xi)return Et;if(!i)return t;Si++;const c=bi,l=YD(d(i));bi=c;const u=256&Bx(l)&&sN(e)?sr:oN(l);return u===an||e.parent&&235===e.parent.kind&&!(131072&u.flags)&&131072&vD(u,2097152).flags?t:u;function _(){return a?o:(a=!0,o=eD(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=pr)||o.instant(pr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),xi=!0,function(e){const t=wc(e,Cu),n=Id(e),r=sf(n,t.statements.pos);so.add(vS(n,r.start,r.length,Pa.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Et;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;e<bi;e++)if(Ki[e]===i)return s--,Gi[e];a=i}let l;if(16&o){if(l=f(i),!l){i=i.antecedent;continue}}else if(512&o){if(l=g(i),!l){i=i.antecedent;continue}}else if(96&o)l=y(i);else if(128&o)l=v(i);else if(12&o){if(1===i.antecedent.length){i=i.antecedent[0];continue}l=4&o?b(i):x(i)}else if(256&o){if(l=h(i),!l){i=i.antecedent;continue}}else if(1024&o){const e=i.node.target,t=e.antecedent;e.antecedent=i.node.antecedents,l=d(i.antecedent),e.antecedent=t}else if(2&o){const t=i.node;if(t&&t!==r&&211!==e.kind&&212!==e.kind&&(110!==e.kind||219===t.kind)){i=t.flowNode;continue}l=n}else l=rj(t);return a&&(Ki[bi]=a,Gi[bi]=l,bi++),s--,l}}function p(t){const n=t.node;return FE(260===n.kind||208===n.kind?AD(n):PD(n),e)}function f(n){const r=n.node;if(tD(e,r)){if(!dN(n))return an;if(2===uh(r)){const e=d(n.antecedent);return ZD(wT(YD(e)),QD(e))}if(t===wt||t===sr){if(function(e){return 260===e.kind&&e.initializer&&Qc(e.initializer)||208!==e.kind&&226===e.parent.kind&&Qc(e.parent.right)}(r))return eN(nn);const e=RT(p(n));return jS(e,t)?e:ar}const e=dh(r)?wT(t):t;return 1048576&e.flags?fD(e,p(n)):e}if(iD(e,r)){if(!dN(n))return an;if(oP(r)&&(Wm(r)||YU(r))){const e=sg(r);if(e&&(218===e.kind||219===e.kind))return d(n.antecedent)}return t}if(oP(r)&&249===r.parent.parent.kind&&(tD(e,r.parent.parent.expression)||oD(r.parent.parent.expression,e)))return tI(oN(YD(d(n.antecedent))))}function m(e,t){const n=bh(t,!0);if(97===n.kind)return an;if(226===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return mv([m(e,n.left),m(e,n.right)])}return Z(e,n,!0)}function g(e){const t=uN(e.node);
6if(t){const n=om(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=oN(YD(t)),i=n.type?Y(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex<e.node.arguments.length?m(r,e.node.arguments[n.parameterIndex]):r;return i===r?t:ZD(i,QD(t))}if(131072&sm(t).flags)return an}}function h(n){if(t===wt||t===sr){const t=n.node,r=213===t.kind?t.expression.expression:t.left.expression;if(tD(e,ID(r))){const e=d(n.antecedent),r=YD(e);if(256&Bx(r)){let n=r;if(213===t.kind)for(const e of t.arguments)n=tN(n,e);else sR(UR(t.left.argumentExpression),296)&&(n=tN(n,t.right));return n===r?e:ZD(n,QD(e))}return e}}}function y(e){const t=d(e.antecedent),n=YD(t);if(131072&n.flags)return t;const r=!!(32&e.flags),i=oN(n),o=Z(i,e.node,r);return o===i?t:ZD(o,QD(t))}function v(t){const n=bh(t.node.switchStatement.expression),r=d(t.antecedent);let i=YD(r);if(tD(e,n))i=$(i,t.node);else if(221===n.kind&&tD(e,n.expression))i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=jD(t);if(!i)return e;const o=N(t.caseBlock.clauses,(e=>297===e.kind));if(n===r||o>=n&&o<r){const t=VL(n,r,i);return $D(e,(e=>gD(e,t)===t))}return mv(j(i.slice(n,r),(t=>t?V(e,t):nn)))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=N(t.caseBlock.clauses,(e=>297===e.kind)),o=n===r||i>=n&&i<r;for(let a=0;a<n;a++){const n=t.caseBlock.clauses[a];296===n.kind&&(e=Z(e,n.expression,!1))}if(o){for(let n=r;n<t.caseBlock.clauses.length;n++){const r=t.caseBlock.clauses[n];296===r.kind&&(e=Z(e,r.expression,!1))}return e}return mv(j(t.caseBlock.clauses.slice(n,r),(t=>296===t.kind?Z(e,t.expression,!0):nn)))}(i,t.node);else{K&&(oD(n,e)?i=z(i,t.node,(e=>!(163840&e.flags))):221===n.kind&&oD(n.expression,e)&&(i=z(i,t.node,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=T(n,i);r&&(i=function(e,t,n){if(n.clauseStart<n.clauseEnd&&1048576&e.flags&&cD(e)===nD(t)){const t=mv(j(RD(n.switchStatement).slice(n.clauseStart,n.clauseEnd),(t=>lD(e,t)||It)));if(t!==It)return t}return D(e,t,(e=>$(e,n)))}(i,r,t.node))}return ZD(i,QD(r))}function b(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=YD(e);if(c===t&&t===n)return c;
6ye(r,c),JD(c,n)||(o=!0),QD(e)&&(a=!0)}if(i){const e=d(i),s=YD(e);if(!(131072&s.flags||F(r,s)||WL(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),JD(s,n)||(o=!0),QD(e)&&(a=!0)}}return ZD(k(r,o?2:1),a)}function x(e){const r=pD(e),i=$i[r]||($i[r]=new Map),o=_();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=yi;t<vi;t++)if(Vi[t]===e&&Wi[t]===o&&Hi[t].length)return ZD(k(Hi[t],1),!0);const s=[];let c,l=!1;for(const _ of e.antecedent){let r;if(c){Vi[vi]=e,Wi[vi]=o,Hi[vi]=s,vi++;const t=ei;ei=void 0,r=d(_),ei=t,vi--;const n=i.get(o);if(n)return n}else r=c=d(_);const a=YD(r);if(ye(s,a),JD(a,n)||(l=!0),a===t)break}const u=k(s,l?2:1);return QD(c)?ZD(u,!0):(i.set(o,u),u)}function k(e,n){if(function(e){let t=!1;for(const n of e)if(!(131072&n.flags)){if(!(256&Bx(n)))return!1;t=!0}return t}(e))return eN(mv(j(e,aN)));const r=SD(mv(J(e,oN),n));return r!==t&&r.flags&t.flags&1048576&&A(r.types,t.types)?t:r}function T(n,r){if(1048576&t.flags||1048576&r.flags){const i=function(t){if(Bu(e)||iC(e)||Zf(e)){if(nN(t)){const n=Qw(t).valueDeclaration;if(n&&(oE(n)||bN(n))&&e===n.parent&&!n.initializer&&!n.dotDotDotToken)return n}}else if(Hx(t)){if(tD(e,t.expression))return t}else if(nN(t)){const n=Qw(t);if(vE(n)){const t=n.valueDeclaration;if(oP(t)&&!t.type&&t.initializer&&Hx(t.initializer)&&tD(e,t.initializer.expression))return t.initializer;if(oE(t)&&!t.initializer){const n=t.parent.parent;if(oP(n)&&!n.type&&n.initializer&&(nN(n.initializer)||Hx(n.initializer))&&tD(e,n.initializer))return t}}}}(n);if(i){const e=nD(i);if(e&&aD(1048576&t.flags&&JD(r,t)?t:r,e))return i}}}function D(e,t,n){const r=nD(t);if(void 0===r)return e;const i=Il(t),o=K&&(i||yC(t))&&aR(e,98304);let a=bc(o?vD(e,2097152):e,r);if(!a)return e;a=o&&i?TC(a):a;const s=n(a);return $D(e,(e=>{const t=Sc(e,r)||It;return!(131072&t.flags)&&!(131072&s.flags)&&HS(s,t)}))}function E(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=cD(e);if(o&&o===nD(t)){const t=lD(e,BR(r));if(t)return n===(i?37:38)?t:xT(bc(t,o)||It)?VD(e,t):e}}return D(e,t,(e=>B(e,n,r,i)))}function P(t,n,r){if(tD(e,n))return bD(t,r?4194304:8388608);K&&r&&oD(n,e)&&(t=bD(t,2097152));const i=T(n,t);return i?D(t,i,(e=>vD(e,r?4194304:8388608))):t}function I(e,t,n){const r=ef(e,t);return r?!!(16777216&r.flags||48&wx(r))||n:!!Nf(e,t)||!n}function O(e,t,n){const r=EC(t);if(qD(e,(e=>I(e,r,!0))))return $D(e,(e=>I(e,r,n)));if(n){const n=(zr||(zr=uy("Record",2,!0)||bt),zr===bt?void 0:zr);if(n)return kv([e,sh(n,[t,It])])}return e}function L(e,t,n,r,i){return Z(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function R(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return P(Z(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=ID(n.left),a=ID(n.right);if(221===o.kind&&Z_(a))return U(t,o,i,a,r);if(221===a.kind&&Z_(o))return U(t,a,i,o,r);if(tD(e,o))return B(t,i,a,r);if(tD(e,a))return B(t,i,o,r);K&&(oD(o,e)?t=M(t,i,a,r):oD(a,e)&&(t=M(t,i,o,r)));const s=T(o,t);if(s)return E(t,s,i,a,r);const c=T(a,t);if(c)return E(t,c,i,o,r);if(H(o))return G(t,i,a,r);if(H(a))return G(t,i,o,r);if(Su(a)&&!Hx(o))return L(t,o,a,i,r);if(Su(o)&&!Hx(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=ID(n.left);if(!tD(e,i))return r&&K&&oD(i,e)?bD(t,2097152):t;const o=n.right,a=BR(o);if(!qS(a,Gn))return t;const s=uN(n),c=s&&om(s);if(c&&1===c.kind&&0===c.parameterIndex)return Q(t,c.type,r,!0);if(!qS(a,Xn))return t;const l=HD(a,X);return(!kc(t)||l!==Gn&&l!==Xn)&&(r||524288&l.flags&&!xk(l))?Q(t,l,r,!0):t}(t,n,r);case 103:if(rN(n.left))return function(t,n,r){const i=ID(n.right);if(!tD(e,i))return t;En.assertNode(n.left,rN);const o=pI(n.left);if(void 0===o)return t;const a=o.parent,s=Yv(En.checkDefined(o.valueDeclaration,"should always have a declaration"))?Gl(a):Wu(a);return Q(t,s,r,!0)}(t,n,r);const l=ID(n.right);if($C(t)&&Hx(e)&&tD(e.expression,l)){const i=BR(n.left);if(NC(i)&&nD(e)===EC(i))return vD(t,r?524288:65536)}if(tD(e,l)){const e=BR(n.left);if(NC(e))return O(t,e,r)}break;case 28:return Z(t,n.right,r);case 56:return r?Z(Z(t,n.left,!0),n.right,!0):mv([Z(t,n.left,!1),Z(t,n.right,!1)]);case 57:return r?mv([Z(t,n.left,!0),Z(t,n.right,!0)]):Z(Z(t,n.left,!1),n.right,!1)}return t}function M(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=BR(n);return i!==r&&zD(a,(e=>!!(e.flags&o)))||i===r&&zD(a,(e=>!(e.flags&(3|o))))?bD(e,2097152):e}function B(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=BR(n),o=35===t||36===t;if(98304&i.flags)return K?bD(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||qD(e,xk))){if(469893116&i.flags||xk(i))return i;if(524288&i.flags)return cn}return XD($D(e,(e=>{return HS(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t})),i)}return xT(i)?$D(e,(e=>!(TT(e)&&HS(e,i)))):e}function U(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=ID(n.expression);if(!tD(e,a)){K&&oD(a,e)&&o===("undefined"!==i.text)&&(t=bD(t,2097152));const n=T(a,t);return n?D(t,n,(e=>q(e,i,o))):t}return q(t,i,o)}function q(e,t,n){return n?V(e,t.text):bD(e,WB.get(t.text)||32768)}function z(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&C(RD(t).slice(n,r),i)?vD(e,2097152):e}function $(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=RD(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||F(o,nn);if(2&e.flags&&!a){let t;for(let n=0;n<o.length;n+=1){const r=o[n];if(469893116&r.flags)void 0!==t&&t.push(r);else{if(!(524288&r.flags))return e;void 0===t&&(t=o.slice(0,n)),t.push(cn)}}return mv(void 0===t?o:t)}const s=mv(o),c=131072&s.flags?nn:XD($D(e,(e=>HS(s,e))),s);if(!a)return c;const l=$D(e,(e=>!(TT(e)&&F(i,32768&e.flags?Lt:Sx(function(e){return 2097152&e.flags&&w(e.types,xT)||e}(e))))));return 131072&c.flags?l:mv([c,l])}function V(e,t){switch(t){case"string":return W(e,zt,1);case"number":return W(e,$t,2);case"bigint":return W(e,Vt,4);case"boolean":return W(e,Qt,8);case"symbol":return W(e,Yt,16);case"object":return 1&e.flags?e:mv([W(e,cn,32),W(e,Ut,131072)]);case"function":return 1&e.flags?e:W(e,Xn,64);case"undefined":return W(e,Lt,65536)}return W(e,cn,128)}function W(e,t,n){return HD(e,(e=>
6wk(e,t,_o)?hD(e,n)?e:nn:RS(t,e)?t:hD(e,n)?kv([e,t]):nn))}function H(t){return(cE(t)&&"constructor"===Fc(t.name)||lE(t)&&Z_(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&tD(e,t.expression)}function G(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=BR(n);if(!GJ(i)&&!pu(i))return e;const o=ef(i,"prototype");if(!o)return e;const a=Gl(o),s=kc(a)?void 0:a;return s&&s!==Gn&&s!==Xn?kc(e)?s:$D(e,(e=>{return n=s,524288&(t=e).flags&&1&Bx(t)||524288&n.flags&&1&Bx(n)?t.symbol===n.symbol:RS(t,n);var t,n})):e}function X(e){const t=bc(e,"prototype");if(t&&!kc(t))return t;const n=of(e,1);return n.length?mv(j(n,(e=>sm(zm(e))))):Nn}function Q(e,t,n,r){var i;const o=1048576&e.flags?`N${av(e)},${av(t)},${(n?1:0)|(r?2:0)}`:void 0;return null!=(i=yo(o))?i:vo(o,function(e,t,n,r){if(!n){if(e===t)return nn;if(r)return $D(e,(e=>!qS(e,t)));const n=Q(e,t,!0,!1);return $D(e,(e=>!JD(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?qS:RS,o=1048576&e.flags?cD(e):void 0,a=HD(t,(t=>{const n=o&&bc(t,o),a=HD(n&&lD(e,n)||e,r?e=>qS(e,t)?e:qS(t,e)?t:nn:e=>MS(e,t)?e:MS(t,e)?t:RS(e,t)?e:RS(t,e)?t:nn);return 131072&a.flags?HD(e,(e=>aR(e,465829888)&&i(t,op(e)||It)?kv([e,t]):nn)):a}));return 131072&a.flags?RS(t,e)?t:jS(e,t)?e:jS(t,e)?t:kv([e,t]):a}(e,t,n,r))}function Y(t,n,r,i){if(n.type&&(!kc(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=bh(t.expression);return Hx(n)?bh(n.expression):void 0}(n,r);if(o){if(tD(e,o))return Q(t,n.type,i,!1);K&&oD(o,e)&&(i&&!hD(n.type,65536)||!i&&zD(n.type,eI))&&(t=bD(t,2097152));const r=T(o,t);if(r)return D(t,r,(e=>Q(e,n.type,i,!1)))}}return t}function Z(t,n,r){if(Ll(n)||kE(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(tD(e,n))return bD(t,r?2097152:262144);const i=T(n,t);return i?D(t,i,(e=>vD(e,r?2097152:262144))):t}(t,n,r);switch(n.kind){case 80:if(!tD(e,n)&&S<5){const i=Qw(n);if(vE(i)){const n=i.valueDeclaration;if(n&&oP(n)&&!n.type&&n.initializer&&AN(e)){S++;const e=Z(t,n.initializer,r);return S--,e}}}case 110:case 108:case 211:case 212:return P(t,n,r);case 213:return function(t,n,r){if(dD(n,e)){const e=r||!Al(n)?uN(n):void 0,i=e&&om(e);if(i&&(0===i.kind||1===i.kind))return Y(t,i,n,r)}if($C(t)&&Hx(e)&&cE(n.expression)){const i=n.expression;if(tD(e.expression,ID(i.expression))&&nN(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(Z_(i)&&nD(e)===Ec(i.text))return vD(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Z(t,n.expression,r);case 226:return R(t,n,r);case 224:if(54===n.operator)return Z(t,n.operand,!r)}return t}}function $N(e){return wc(e.parent,(e=>vu(e)&&!vm(e)||268===e.kind||307===e.kind||172===e.kind))}function VN(e){return!HN(e,void 0)}function HN(e,t){const n=wc(e.valueDeclaration,pE);if(!n)return!1;const r=Xo(n);return 131072&r.flags||(r.flags|=131072,wc(n.parent,(e=>pE(e)&&!!(131072&Xo(e).flags)))||hE(n)),!e.lastAssignmentPos||t&&e.lastAssignmentPos<t.pos}function tE(e){return En.assert(oP(e)||bN(e)),nE(e.name)}function nE(e){return 80===e.kind?VN(os(e.parent)):te(e.elements,(e=>232!==e.kind&&nE(e.name)))}function pE(e){return xu(e)||nF(e)}function hE(e){switch(e.kind){case 80:if(_h(e)){const t=Qw(e);if(SE(t)&&t.lastAssignmentPos!==Number.MAX_VALUE){const n=wc(e,pE),r=wc(t.valueDeclaration,pE);t.lastAssignmentPos=n===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:n=e.end}e=e.parent}return n}(e,t.valueDeclaration):Number.MAX_VALUE}}return;case 281:const t=e.parent.parent;if(!e.isTypeOnly&&!t.isTypeOnly&&!t.moduleSpecifier){const t=Ja(e.propertyName||e.name,111551,!0,!0);t&&SE(t)&&(t.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}Mu(e)||ZI(e,hE)}function vE(e){return 3&e.flags&&!!(6&KA(e))}function SE(e){const t=e.valueDeclaration&&yy(e.valueDeclaration);return!!t&&(bN(t)||oP(t)&&(QP(t.parent)||function(e){return!!(1&e.parent.flags)&&!(32&vc(e)||243===e.parent.parent.kind&&uf(e.parent.parent.parent))}(t)))}function TE(e,t){const n=K&&169===t.kind&&t.initializer&&hD(e,16777216)&&!function(e){const t=Xo(e);if(void 0===t.parameterInitializerContainsUndefined){if(!dc(e,8))return Wl(e.symbol),!0;const n=!!hD(CR(e,0),16777216);if(!gc())return Wl(e.symbol),!0;null!=t.parameterInitializerContainsUndefined||(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?vD(e,524288):e}function CE(e){return 2097152&e.flags?te(e.types,CE):!!(465829888&e.flags&&1146880&sp(e).flags)}function wE(e){return 2097152&e.flags?te(e.types,wE):!(!(465829888&e.flags)||aR(sp(e),98304))}function FE(e,t,n){Rh(e)&&(e=e.baseType);const r=!(n&&2&n)&&qD(e,CE)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||214===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(qD(e,wE)&&zb(BR(n.argumentExpression)))}(e,t)||function(e,t){const n=(nN(e)||cE(e)||lE(e))&&!((jP(e.parent)||MP(e.parent))&&e.parent.tagName===e)&&$F(e,t&&32&t?8:void 0);return n&&!Ub(n)}(t,n));return r?HD(e,sp):e}function LE(e){return!!wc(e,(e=>{const t=e.parent;return void 0===t?"quit":NP(t)?t.expression===e&&Pb(e):!!FP(t)&&(t.name===e||t.propertyName===e)}))}function RE(e,t,n,r){if(Ne&&!(33554432&e.flags))switch(t){case 1:return ME(e);case 2:return BE(e,n,r);case 3:return qE(e);case 4:return VE(e);case 5:return WE(e);case 6:return XE(e);case 7:return QE(e);case 8:return YE(e);case 0:if(nN(e)&&(Lm(e)||ZP(e.parent)||gP(e.parent)&&e.parent.moduleReference===e)&&vP(e)){if(Xu(e.parent)&&(cE(e.parent)?e.parent.expression:e.parent.left)!==e)return;return void ME(e)}if(Xu(e)){let t=e;for(;Xu(t);){if(Mf(t))return;t=t.parent}return BE(e)}if(NP(e))return qE(e);if(j_(e)||UP(e))return VE(e);if(gP(e))return qm(e)||TB(e)?XE(e):void 0;if(FP(e))return QE(e);if((xu(e)||TN(e))&&WE(e),!I.emitDecoratorMetadata)return;if(!(wI(e)&&ib(e)&&e.modifiers&&Dm(z,e,e.parent,e.parent.parent)))return;return YE(e);default:En.assertNever(t,`Unhandled reference hint: ${t}`)}}function ME(e){const t=Qw(e);t&&t!==Te&&t!==bt&&!Fv(e)&&ZE(t,e)}function BE(e,t,n){const r=cE(e)?e.expression:e.left;if(Ev(r)||!nN(r))return;const i=Qw(r);if(!i||i===bt)return;if(zS(I)||XS(I)&&LE(e))return void ZE(i,e);const o=n||kR(r);if(kc(o)||o===rn)return void ZE(i,e);let a=t;if(!a&&!n){const t=cE(e)?e.name:e.right,n=rN(t)&&_I(t.escapedText,t),r=Ep(0!==uh(e)||uI(e)?ew(o):o);a=rN(t)?n&&fI(r,n)||void 0:ef(r,t.escapedText)}a&&(jJ(a)||8&a.flags&&306===e.parent.kind)||ZE(i,e)}function qE(e){if(nN(e.expression)){const t=e.expression,n=ms(Ja(t,-1,!0,!0,e));n&&ZE(n,t)}}function VE(e){if(!PA(e)){const t=so&&2===I.jsx?Pa.Cannot_find_name_0:void 0,n=bo(e),r=j_(e)?e.tagName:e;let i;if(UP(e)&&"null"===n||(i=Me(r,n,111551,t,!0)),i&&(i.isReferenced=-1,Ne&&2097152&i.flags&&!Ma(i)&&eP(i)),UP(e)){const n=xo(Id(e));n&&Me(r,n,111551,t,!0)}}}function WE(e){if(R<2&&2&Qh(e)){const n=Rv(e);nP((t=n)&&Cm(t),!1)}var t}function XE(e){Xv(e,32)&&tP(e)}function QE(e){if(e.parent.parent.moduleSpecifier||e.isTypeOnly||e.parent.parent.isTypeOnly);else{const t=e.propertyName||e.name,n=Me(t,t.escapedText,2998271,void 0,!0);if(n&&(n===ge||n===be||n.declarations&&uf(yc(n.declarations[0]))));else{const t=n&&(2097152&n.flags?Ia(n):n);(!t||111551&Oa(t))&&(tP(e),ME(e.propertyName||e.name))}}}function YE(e){if(I.emitDecoratorMetadata){const t=w(e.modifiers,xN);if(!t)return;switch(mU(t,16),e.kind){case 263:const t=Tv(e);
6if(t)for(const e of t.parameters)rP(AM(e));break;case 177:case 178:const n=177===e.kind?178:177,r=ld(os(e),n);rP(Fl(e)||r&&Fl(r));break;case 174:for(const o of e.parameters)rP(AM(o));rP(Rv(e));break;case 172:rP(Ov(e));break;case 169:rP(AM(e));const i=e.parent;for(const e of i.parameters)rP(AM(e));rP(Rv(i))}}}function ZE(e,t){if(Ne&&Fa(e,111551)&&!Pv(t)){const n=Ia(e);1160127&Oa(e,!0)&&(zS(I)||XS(I)&&LE(t)||!jJ(ms(n)))&&eP(e)}}function eP(e){En.assert(Ne);const t=Ko(e);if(!t.referenced){t.referenced=!0;const n=_a(e);if(!n)return En.fail();qm(n)&&111551&Oa(Aa(e))&&ME(Fb(n.moduleReference))}}function tP(e){const t=os(e),n=Ia(t);n&&(n===bt||111551&Oa(t,!0)&&!jJ(n))&&eP(t)}function nP(e,t){if(!e)return;const n=Fb(e),r=2097152|(80===e.kind?788968:1920),i=Me(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Ne&&gs(i)&&!jJ(Ia(i))&&!Ma(i))eP(i);else if(t&&zS(I)&&JS(I)>=5&&!gs(i)&&!te(i.declarations,iu)){const t=Co(e,Pa.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=w(i.declarations||c,da);r&&DT(t,Gp(r,Pa._0_was_imported_here,Fc(n)))}}function rP(e){const t=EM(e);t&&gu(t)&&nP(t,!0)}function iP(e,t){if(Fv(e))return;if(t===Te){if(vI(e))return void Co(e,Pa.arguments_cannot_be_referenced_in_property_initializers);let t=cm(e);if(t)for(R<2&&(219===t.kind?Co(e,Pa.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Xv(t,1024)&&Co(e,Pa.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Xo(t).flags|=512;t&&gE(t);)t=cm(t),t&&(Xo(t).flags|=512);return}const n=ms(t),r=wB(n,e);Po(r)&&yb(e,r)&&r.declarations&&Ao(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&Du(i)&&i.name!==e){let t=fm(e,!1,!1);for(;307!==t.kind&&t.parent!==i;)t=fm(t,!1,!1);307!==t.kind&&(Xo(i).flags|=262144,Xo(t).flags|=262144,Xo(e).flags|=536870912)}!function(e,t){if(R>=2||!(34&t.flags)||!t.valueDeclaration||nF(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=Up(t.valueDeclaration),r=function(e,t){return!!wc(e,(e=>e===t?"quit":vu(e)||e.parent&&kN(e.parent)&&!Yv(e.parent)&&e.parent.initializer===e))}(e,n),i=bP(n);if(i){if(r){let r=!0;if(HE(n)){const i=Bh(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return wc(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=Xo(i);e.flags|=8192,ye(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(Xo(i).flags|=4096)}if(HE(n)){const r=Bh(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(_h(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;
6r=46===e.operator||47===e.operator}return!!r&&!!wc(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(Xo(t.valueDeclaration).flags|=65536)}Xo(t.valueDeclaration).flags|=32768}r&&(Xo(t.valueDeclaration).flags|=16384)}(e,t)}function fP(e,t){if(Fv(e))return AP(e);const n=Qw(e);if(n===bt)return Et;if(iP(e,n),n===Te)return vI(e)?Et:Gl(n);vP(e)&&RE(e,1);const r=ms(n);let i=r.valueDeclaration,o=function(e,t,n){var r;const i=Gl(e,n),o=e.valueDeclaration;if(o){if(oE(o)&&!o.initializer&&!o.dotDotDotToken&&o.parent.elements.length>=2){const e=o.parent.parent,n=yy(e);if(260===n.kind&&6&QU(n)||169===n.kind){const r=Xo(e);if(!(4194304&r.flags)){r.flags|=4194304;const i=Dc(e,0),a=i&&HD(i,sp);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!tE(n))){const e=BN(o.parent,a,a,void 0,t.flowNode);return 131072&e.flags?nn:Kc(o,e,!0)}}}}if(bN(o)&&!o.type&&!o.initializer&&!o.dotDotDotToken){const e=o.parent;if(e.parameters.length>=2&&PS(e)){const n=rA(e);if(n&&1===n.parameters.length&&aJ(n)){const i=Pp(hS(Gl(n.parameters[0]),null==(r=XF(e))?void 0:r.nonFixingMapper));if(1048576&i.flags&&zD(i,KT)&&!te(e.parameters,tE))return Xb(BN(e,i,i,void 0,t.flowNode),Cx(e.parameters.indexOf(o)-(Dv(e)?1:0)))}}}}return i}(r,e,t);const a=uh(e);if(a){if(!(3&r.flags||Wm(e)&&512&r.flags))return Co(e,384&r.flags?Pa.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?Pa.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?Pa.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?Pa.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?Pa.Cannot_assign_to_0_because_it_is_an_import:Pa.Cannot_assign_to_0_because_it_is_not_a_variable,Hs(n)),Et;if(ZL(r))return 3&r.flags?Co(e,Pa.Cannot_assign_to_0_because_it_is_a_constant,Hs(n)):Co(e,Pa.Cannot_assign_to_0_because_it_is_a_read_only_property,Hs(n)),Et}const s=2097152&r.flags;if(3&r.flags){if(1===a)return dh(e)?wT(o):o}else{if(!s)return o;i=_a(n)}if(!i)return o;o=FE(o,e,t);const c=169===yy(i).kind,l=$N(i);let u=$N(e);const _=u!==l,d=e.parent&&e.parent.parent&&eF(e.parent)&&ND(e.parent.parent),p=134217728&n.flags,f=o===wt||o===sr,m=f&&235===e.parent.kind;for(;u!==l&&(218===u.kind||219===u.kind||em(u))&&(vE(r)&&o!==sr||SE(r)&&HN(r,e));)u=$N(u);const g=c||s||_||d||p||function(e,t){if(oE(t)){const n=wc(e,oE);return n&&yy(n)===yy(t)}}(e,i)||o!==wt&&o!==sr&&(!K||!!(16387&o.flags)||Pv(e)||Yw(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,h=m?Lt:g?c?TE(o,i):o:f?Lt:TC(o),y=m?wC(BN(e,o,h,u)):BN(e,o,h,u);if(sN(e)||o!==wt&&o!==sr){if(!g&&!Sk(o)&&Sk(y))return Co(e,Pa.Variable_0_is_used_before_being_assigned,Hs(n)),o}else if(y===wt||y===sr)return ee&&(Co(Jc(i),Pa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Hs(n),Ys(y)),Co(e,Pa.Variable_0_implicitly_has_an_1_type,Hs(n),Ys(y))),rj(y);return a?wT(y):y}function vP(e){var t;const n=e.parent;if(n){if(cE(n)&&n.expression===e)return!1;if(FP(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&EP(r)&&r.isTypeOnly)return!1}return!0}function bP(e){return wc(e,(e=>!e||vy(e)?"quit":u_(e,!1)))}function xP(e,t){Xo(e).flags|=2,172===t.kind||176===t.kind?Xo(t.parent).flags|=4:Xo(t).flags|=4}function kP(e){return bf(e)?e:vu(e)?void 0:ZI(e,kP)}function TP(e){return Tu(Wu(os(e)))===qt}function wP(e,t,n){const r=t.parent;Oh(r)&&!TP(r)&&Kg(e)&&e.flowNode&&!gN(e.flowNode,!1)&&Co(e,n)}function AP(e){const t=Pv(e);let n=fm(e,!0,!0),r=!1,i=!1;for(176===n.kind&&wP(e,n,Pa.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=fm(n,!1,!i),r=!0),167===n.kind;)n=fm(n,!r,!1),i=!0;if(function(e,t){kN(t)&&Yv(t)&&z&&t.initializer&&Qs(t.initializer,e.pos)&&ib(t.parent)&&Co(e,Pa.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)Co(e,Pa.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:Co(e,Pa.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Co(e,Pa.this_cannot_be_referenced_in_current_location)}!t&&r&&R<2&&xP(e,n);const o=IP(e,!0,n);if(ne){const t=Gl(be);if(o===t&&r)Co(e,Pa.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=Co(e,Pa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!nF(n)){const e=IP(n);e&&e!==t&&DT(r,Gp(n,Pa.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||Ct}function IP(e,t=!0,n=fm(e,!1,!1)){const r=Wm(e);if(vu(n)&&(!sF(e)||Dv(n))){let t=im(jf(n))||r&&function(e){const t=dl(e);if(t&&t.typeExpression)return Mx(t.typeExpression);const n=Bf(e);return n?im(n):void 0}(n);if(!t){const e=function(e){return 218===e.kind&&kE(e.parent)&&3===hg(e.parent)?e.parent.left.expression.expression:174===e.kind&&210===e.parent.kind&&kE(e.parent.parent)&&6===hg(e.parent.parent)?e.parent.parent.left.expression:218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&kE(e.parent.parent.parent)&&6===hg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:218===e.kind&&YP(e.parent)&&nN(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&sE(e.parent.parent)&&uE(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===hg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:CN(e)&&nN(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&sE(e.parent)&&uE(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===hg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=qR(e).symbol;n&&n.members&&16&n.flags&&(t=Wu(n).thisType)}else BO(n)&&(t=Wu(is(n.symbol)).thisType);t||(t=KP(n))}if(t)return BN(e,t)}if(Du(n.parent)){const t=os(n.parent);return BN(e,Qv(n)?Gl(t):Wu(t).thisType)}if(nF(n)){if(n.commonJsModuleIndicator){const e=os(n);return e&&Gl(e)}if(n.externalModuleIndicator)return Lt;
6if(t)return Gl(be)}}function OP(e){const t=213===e.parent.kind&&e.parent.expression===e,n=ym(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)Xv(r,1024)&&(o=!0),r=ym(r,!0),i=R<2;r&&Xv(r,1024)&&(o=!0)}let a=0;if(!r||(s=r,!(t?176===s.kind:(Du(s.parent)||210===s.parent.kind)&&(Qv(s)?174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||175===s.kind:174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||171===s.kind||176===s.kind)))){const n=wc(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?Co(e,Pa.super_cannot_be_referenced_in_a_computed_property_name):t?Co(e,Pa.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Du(r.parent)||210===r.parent.kind)?Co(e,Pa.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Co(e,Pa.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Et}var s;if(t||176!==n.kind||wP(e,r,Pa.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Qv(r)||t?(a=32,!t&&R>=2&&R<=8&&(kN(r)||wN(r))&&qp(e.parent,(e=>{nF(e)&&!_f(e)||(Xo(e).flags|=2097152)}))):a=16,Xo(e).flags|=a,174===r.kind&&o&&(xm(e.parent)&&_h(e.parent)?Xo(r).flags|=256:Xo(r).flags|=128),i&&xP(e.parent,r),210===r.parent.kind)return R<2?(Co(e,Pa.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):Ct;const c=r.parent;if(!Oh(c))return Co(e,Pa.super_can_only_be_referenced_in_a_derived_class),Et;if(TP(c))return t?Et:qt;const l=Wu(os(c)),u=l&&Au(l)[0];return u?176===r.kind&&function(e,t){return!!wc(e,(e=>xu(e)?"quit":169===e.kind&&e.parent===t))}(e,r)?(Co(e,Pa.super_cannot_be_referenced_in_constructor_arguments),Et):32===a?Tu(l):w_(u,l.thisType):Et}function BP(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function JP(e){return 4&Bx(e)&&e.target===or?Xg(e)[0]:void 0}function qP(e){return HD(e,(e=>2097152&e.flags?d(e.types,JP):JP(e)))}function WP(e,t){let n=e,r=t;for(;r;){const e=qP(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=MF(n,void 0)}}function KP(e){if(219===e.kind)return;if(PS(e)){const t=rA(e);if(t){const e=t.thisParameter;if(e)return Gl(e)}}const t=Wm(e);if(ne||t){const n=BP(e);
6if(n){const e=MF(n,void 0),t=WP(n,e);return t?hS(t,mw(XF(n))):ew(e?wC(e):kR(n))}const r=hh(e.parent);if(wb(r)){const e=r.left;if(Hx(e)){const{expression:n}=e;if(t&&nN(n)){const e=Id(r);if(e.commonJsModuleIndicator&&Qw(n)===e.symbol)return}return ew(kR(n))}}}}function GP(e){const t=e.parent;if(!PS(t))return;const n=vm(t);if(n&&n.arguments){const r=hO(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return lO(r,i,r.length,Ct,void 0,0);const o=Xo(n),a=o.resolvedSignature;o.resolvedSignature=ii;const s=i<r.length?RT(qR(r[i])):e.initializer?void 0:Rt;return o.resolvedSignature=a,s}const r=rA(t);if(r){const n=t.parameters.indexOf(e)-(Dv(t)?1:0);return e.dotDotDotToken&&Oe(t.parameters)===e?mL(r,n):fL(r,n)}}function rF(e,t){const n=Ov(e)||(Wm(e)?xC(e):void 0);if(n)return Mx(n);switch(e.kind){case 169:return GP(e);case 208:return function(e,t){const n=e.parent.parent,r=e.propertyName||e.name,i=rF(n,t)||208!==n.kind&&n.initializer&&CR(n,e.dotDotDotToken?32:0);if(!i||Bu(r)||Vp(r))return;if(207===n.name.kind){const t=cp(e.parent.elements,e);if(t<0)return;return EF(i,t)}const o=qv(r);return NC(o)?bc(i,EC(o)):void 0}(e,t);case 172:if(Qv(e))return function(e,t){const n=s_(e.parent)&&$F(e.parent,t);return n?wF(n,os(e).escapedName):void 0}(e,t)}}function sF(e){let t=!1;for(;e.parent&&!vu(e.parent);){if(bN(e.parent)&&(t||e.parent.initializer===e))return!0;oE(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}return!1}function cF(e,t){const n=!!(2&Qh(t)),r=lF(t,void 0);if(r)return Jj(e,r,n)||void 0}function lF(e,t){const n=lm(e);if(n)return n;const r=nA(e);if(r&&!bm(r)){const t=sm(r),n=Qh(e);return 1&n?$D(t,(e=>!!(58998787&e.flags)||HR(e,n,void 0))):2&n?$D(t,(e=>!!(58998787&e.flags)||!!fM(e))):t}const i=vm(e);return i?$F(i,t):void 0}function hF(e,t){const n=hO(e).indexOf(t);return-1===n?void 0:yF(e,n)}function yF(e,t){if(xf(e))return 0===t?zt:1===t?xy(!1):Ct;const n=Xo(e).resolvedSignature===ai?ai:jO(e);if(j_(e)&&0===t)return QF(n,e);const r=n.parameters.length-1;return aJ(n)&&t>=r?Xb(Gl(n.parameters[r]),Cx(t-r),256):pL(n,t)}function SF(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=hg(e);switch(r){case 0:case 4:const i=function(e){if(T_(e)&&e.symbol)return e.symbol;if(nN(e))return Qw(e);if(cE(e)){const n=BR(e.expression);return rN(e.name)?t(n,e.name):ef(n,e.name.escapedText)}if(lE(e)){const t=kR(e.argumentExpression);if(!NC(t))return;return ef(BR(e.expression),EC(t))}return;function t(e,t){const n=_I(t.escapedText,t);return n&&fI(e,n)}}(e.left),o=i&&i.valueDeclaration;if(o&&(kN(o)||SN(o))){const t=Ov(o);return t&&hS(Mx(t),Ko(i).mapper)||(kN(o)?o.initializer&&BR(e.left):void 0)}return 0===r?BR(e.left):CF(e);case 5:if(kF(e,r))return CF(e);if(T_(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=yt(e.left,Hx),r=Ov(t);if(r)return Mx(r);if(nN(n.expression)){const e=n.expression,t=Me(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&Ov(t.valueDeclaration);if(e){const t=wg(n);if(void 0!==t)return wF(Mx(e),t)}return}}return Wm(t)||t===e.left?void 0:BR(e.left)}return BR(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=T_(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&Ov(a);return s?Mx(s):void 0;case 7:case 8:case 9:return En.fail("Does not apply");default:return En.assertNever(r)}}(n):void 0;case 57:case 61:const i=$F(n,t);return e===o&&(i&&i.pattern||!i&&!ug(n))?BR(r):i;case 56:case 28:return e===o?$F(n,t):void 0;default:return}}function kF(e,t=hg(e)){if(4===t)return!0;if(!Wm(e)||5!==t||!nN(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Me(e.left,n,111551,void 0,!0,!0);return km(null==r?void 0:r.valueDeclaration)}function CF(e){if(!e.symbol)return BR(e.left);if(e.symbol.valueDeclaration){const t=Ov(e.symbol.valueDeclaration);if(t){const e=Mx(t);if(e)return e}}const t=yt(e.left,Hx);if(!Zf(fm(t.expression,!1,!1)))return;const n=AP(t.expression),r=wg(t);return void 0!==r&&wF(n,r)||void 0}
6function wF(e,t,n){return HD(e,(e=>{var r,i;if($d(e)&&!e.declaration.nameType){const r=Nd(e),i=op(r)||r,o=n||Tx(Pc(t));if(jS(o,i))return Gb(e,o)}else if(3670016&e.flags){const o=ef(e,t);if(o)return 262144&wx(i=o)&&!i.links.type&&pc(i,0)>=0?void 0:zC(Gl(o),!!(16777216&o.flags));if(KT(e)&&aC(t)&&+t>=0){const t=eC(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=hf(vf(e),n||Tx(Pc(t))))?void 0:r.type}}),!0)}function DF(e,t){if(En.assert(Zf(e)),!(67108864&e.flags))return NF(e,t)}function NF(e,t){const n=e.parent,r=YP(e)&&rF(e,t);if(r)return r;const i=MF(n,t);if(i){if(y_(e)){const t=os(e);return wF(i,t.escapedName,Ko(t).nameType)}if(ty(e)){const t=Jc(e);if(t&&yN(t)){const e=qR(t.expression),n=NC(e)&&wF(i,EC(e));if(n)return n}}if(e.name){const t=qv(e.name);return HD(i,(e=>{var n;return null==(n=hf(vf(e),t))?void 0:n.type}),!0)}}}function EF(e,t,n,r,i){return e&&HD(e,(e=>{if(KT(e)){if((void 0===r||t<r)&&t<e.target.fixedLength)return zC(Xg(e)[t],!!e.target.elementFlags[t]);const o=void 0!==n&&(void 0===i||t>i)?n-t:0,a=o>0&&e.target.hasRestElement?rv(e.target,3):0;return o>0&&o<=a?Xg(e)[Qg(e)-o]:eC(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t<r)&&wF(e,""+t)||hj(1,e,Lt,void 0,!1)}),!0)}function FF(e,t){const n=e.parent;return R_(n)?$F(e,t):RP(n)?function(e,t,n){const r=MF(e.openingElement.attributes,n),i=IA(FA(e));if(!r||kc(r)||!i||""===i)return;const o=Py(e.children),a=o.indexOf(t),s=wF(r,i);return s&&(1===o.length?s:HD(s,(e=>uT(e)?Xb(e,Cx(a)):e),!0))}(n,e,t):void 0}function AF(e,t){if(zP(e)){const n=MF(e.parent,t);if(!n||kc(n))return;return wF(n,SC(e.name))}return $F(e.parent,t)}function IF(e){switch(e.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return IF(e.expression);case 294:return!e.expression||IF(e.expression)}return!1}function LF(e,t){var n,r;const i=`D${ZB(e)},${av(t)}`;return null!=(r=yo(i))?r:vo(i,null!=(n=function(e,t){const n=cD(e),r=n&&w(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&IF(e.initializer))),i=r&&UR(r.initializer);return i&&lD(e,i)}(t,e))?n:Rk(t,re(j(L(e.properties,(e=>!!e.symbol&&(303===e.kind?IF(e.initializer)&&aD(t,e.symbol.escapedName):304===e.kind&&aD(t,e.symbol.escapedName)))),(e=>[()=>UR(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),j(L(Xd(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&aD(t,n.escapedName)})),(e=>[()=>Lt,e.escapedName]))),jS))}function MF(e,t){const n=JF(Zf(e)?DF(e,t):$F(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){const t=HD(n,(e=>32&Bx(e)?e:Ep(e)),!0);return 1048576&t.flags&&sE(e)?LF(e,t):1048576&t.flags&&$P(e)?function(e,t){const n=`D${ZB(e)},${av(t)}`,r=yo(n);if(r)return r;const i=IA(FA(e));return vo(n,Rk(t,re(j(L(e.properties,(e=>!!e.symbol&&291===e.kind&&aD(t,e.symbol.escapedName)&&(!e.initializer||IF(e.initializer)))),(e=>[e.initializer?()=>UR(e.initializer):()=>Kt,e.symbol.escapedName])),j(L(Xd(t),(n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!RP(o)||!Py(o.children).length)&&!e.symbol.members.has(n.escapedName)&&aD(t,n.escapedName)})),(e=>[()=>Lt,e.escapedName]))),jS))}(e,t):t}}function JF(e,t,n){if(e&&aR(e,465829888)){const r=XF(t);if(r&&1&n&&te(r.inferences,LR))return qF(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=qF(e,r.returnMapper);return 1048576&t.flags&&sv(t.types,Ht)&&sv(t.types,Gt)?$D(t,(e=>e!==Ht&&e!==Gt)):t}}return e}function qF(e,t){return 465829888&e.flags?hS(e,t):1048576&e.flags?mv(j(e.types,(e=>qF(e,t))),0):2097152&e.flags?kv(j(e.types,(e=>qF(e,t)))):e}function $F(e,t){var n,r;if(67108864&e.flags)return;const i=GF(e,!t);if(i>=0)return Ti[i];const{parent:o}=e;switch(o.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(H_(n)&&e===n.initializer){const e=rF(n,t);if(e)return e;if(!(8&t)&&Bu(n.name)&&n.name.elements.length>0)return ml(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=cm(e);if(n){let e=lF(n,t);if(e){const t=Qh(n);if(1&t){const n=!!(2&t);1048576&e.flags&&(e=$D(e,(e=>!!Jj(1,e,n))));const r=Jj(1,e,!!(2&t));if(!r)return;e=r}
6if(2&t){const t=HD(e,kM);return t&&mv([t,JL(t)])}return e}}}(e,t);case 229:return function(e,t){var n,r,i;const o=cm(e);if(o){const a=Qh(o);let s=lF(o,t);if(s){const o=!!(2&a);if(!e.asteriskToken&&1048576&s.flags&&(s=$D(s,(e=>!!Jj(1,e,o)))),e.asteriskToken){const a=qj(s,o),c=null!=(n=null==a?void 0:a.yieldType)?n:rn,l=null!=(r=$F(e,t))?r:rn,u=null!=(i=null==a?void 0:a.nextType)?i:It,_=zL(c,l,u,!1);return o?mv([_,zL(c,l,u,!0)]):_}return Jj(0,s,o)}}}(o,t);case 223:return function(e,t){const n=$F(e,t);if(n){const e=kM(n);return e&&mv([e,JL(e)])}}(o,t);case 213:case 214:return hF(o,e);case 170:return function(e){const t=jL(e);return t?tg(t):void 0}(o);case 216:case 234:return jl(o.type)?$F(o,t):Mx(o.type);case 226:return SF(e,t);case 303:case 304:return NF(o,t);case 305:return $F(o.parent,t);case 209:{const i=o,a=MF(i,t),s=cp(i.elements,e),c=null!=(n=(r=Xo(i)).spreadIndices)?n:r.spreadIndices=function(e){let t,n;for(let r=0;r<e.length;r++)DE(e[r])&&(null!=t||(t=r),n=r);return{first:t,last:n}}(i.elements);return EF(a,s,i.elements.length,c.first,c.last)}case 227:return function(e,t){const n=e.parent;return e===n.whenTrue||e===n.whenFalse?$F(n,t):void 0}(e,t);case 239:return En.assert(228===o.parent.kind),function(e,t){if(215===e.parent.kind)return hF(e.parent,t)}(o.parent,e);case 217:if(Wm(o)){if(vC(o))return Mx(bC(o));const e=gl(o);if(e&&!jl(e.typeExpression.type))return Mx(e.typeExpression.type)}return $F(o,t);case 235:return $F(o,t);case 238:return Mx(o.type);case 277:return Nl(o);case 294:return FF(o,t);case 291:case 293:return AF(o,t);case 286:case 285:return function(e,t){if(jP(e)&&4!==t){const n=GF(e.parent,!t);if(n>=0)return Ti[n]}return yF(e,0)}(o,t);case 301:return function(e){return wF(Sy(!1),OC(e))}(o)}}function WF(e){HF(e,$F(e,void 0),!0)}function HF(e,t,n){ki[wi]=e,Ti[wi]=t,Ci[wi]=n,wi++}function KF(){wi--}function GF(e,t){for(let n=wi-1;n>=0;n--)if(e===ki[n]&&(t||!Ci[n]))return n;return-1}function XF(e){for(let t=Ei-1;t>=0;t--)if(Sh(e,Di[t]))return Ni[t]}function QF(e,t){return 0!==_O(t)?function(e,t){let n=kL(e,It);n=ZF(t,FA(t),n);const r=NA(MB.IntrinsicAttributes,t);return Tc(r)||(n=Q_(r,n)),n}(e,t):function(e,t){const n=FA(t),r=(i=n,AA(MB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?kL(e,It):""===r?sm(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=sm(r);if(kc(e))return e;const i=bc(e,t);if(!i)return;n.push(i)}return kv(n)}const n=sm(e);return kc(n)?n:bc(n,t)}(e,r);if(!o)return r&&_(t.attributes.properties)&&Co(t,Pa.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Pc(r)),It;if(o=ZF(t,n,o),kc(o))return o;{let n=o;const r=NA(MB.IntrinsicClassAttributes,t);if(!Tc(r)){const i=lu(r.symbol),o=sm(e);let a;a=i?hS(r,Kx(i,Rf([o],i,Lf(i),Wm(t)))):r,n=Q_(a,n)}const i=NA(MB.IntrinsicAttributes,t);return Tc(i)||(n=Q_(i,n)),n}}(e,t)}function ZF(e,t,n){const r=(i=t)&&Qo(i.exports,MB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(xA(e.tagName))return tg(LO(e,RA(e)));const t=kR(e.tagName);if(128&t.flags){const n=LA(t,e);return n?tg(LO(e,n)):Et}return t}(e),i=UA(r,Wm(e),t,n);if(i)return i}return n}function eA(e){return ak(I,"noImplicitAny")?qe(e,((e,t)=>e!==t&&e?U_(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Kx(t.typeParameters,e.typeParameters));const i=e.declaration,o=function(e,t,n){const r=hL(e),i=hL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=vL(e)||vL(t),l=c&&!vL(o),u=new Array(s+(l?1:0));for(let _=0;_<s;_++){let d=fL(o,_);o===t&&(d=hS(d,n));let p=fL(a,_)||It;a===t&&(p=hS(p,n));const f=mv([d,p]),m=c&&!l&&_===s-1,g=_>=yL(o)&&_>=yL(a),h=_>=r?void 0:lL(e,_),y=_>=i?void 0:lL(t,_),v=Io(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${_}`);v.links.type=m?jy(f):f,u[_]=v}if(l){const e=Io(1,"args");e.links.type=jy(pL(a,s)),a===t&&(e.links.type=hS(e.links.type,n)),u[s]=e}return u}(e,t,r),a=function(e,t,n){if(!e||!t)return e||t;const r=mv([Gl(e),hS(Gl(t),n)]);return HC(e,r)}(e.thisParameter,t.thisParameter,r),s=Math.max(e.minArgumentCount,t.minArgumentCount),c=E_(i,n,a,o,void 0,void 0,s,167&(e.flags|t.flags));return c.compositeKind=2097152,c.compositeSignatures=re(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(c.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?nS(e.mapper,r):r),c}(e,t):void 0:e)):void 0}function tA(e,t){const n=L(of(e,0),(e=>!function(e,t){let n=0;for(;n<t.parameters.length;n++){const e=t.parameters[n];if(e.initializer||e.questionToken||e.dotDotDotToken||gC(e))break}return t.parameters.length&&Nv(t.parameters[0])&&n--,!vL(e)&&hL(e)<n}(e,t)));return 1===n.length?n[0]:eA(n)}function nA(e){return iC(e)||Zf(e)?rA(e):void 0}function rA(e){En.assert(174!==e.kind||Zf(e));const t=Bf(e);
6if(t)return t;const n=MF(e,1);if(!n)return;if(!(1048576&n.flags))return tA(n,e);let r;const i=n.types;for(const o of i){const t=tA(o,e);if(t)if(r){if(!nT(r[0],t,!1,!0,!0,IS))return;r.push(t)}else r=[t]}return r?1===r.length?r[0]:A_(r[0],r):void 0}function iA(e){const t=Xo(e);return 1&t.flags||(t.flags|=1,a((()=>function(e){const t=Id(e);if(!JU(t)&&!e.isUnterminated){let r;null!=n||(n=Rs(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError(((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=mS(t.fileName,t.text,a,i,e,o);DT(r,n)}else r&&a===r.start||(r=vS(t,a,i,e,o),so.add(r))})),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),En.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e)))),ir}function oA(e){return 208===e.kind&&!!e.initializer||226===e.kind&&64===e.operatorToken.kind}function aA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];WF(e);const s=_h(e),c=NR(e),l=MF(e,void 0),u=function(e){const t=hh(e.parent);return DE(t)&&Zu(t.parent)}(e)||!!l&&qD(l,(e=>gT(e)||$d(e)&&!e.nameType&&!!_S(e.target||e)));let _=!1;for(let d=0;d<i;d++){const i=r[d];if(230===i.kind){R<2&&mU(i,I.downlevelIteration?1536:1024);const e=qR(i.expression,t,n);if(uT(e))o.push(e),a.push(8);else if(s){const t=Cf(e,$t)||hj(65,e,Lt,void 0,!1)||It;o.push(t),a.push(4)}else o.push(gj(33,e,Lt,i.expression)),a.push(4)}else if(se&&232===i.kind)_=!0,o.push(Bt),a.push(2);else{const r=ER(i,t,n);if(o.push(Yc(r,!0,_)),a.push(_?2:1),u&&t&&2&t&&!(4&t)&&NS(i)){const t=XF(e);En.assert(t),uw(t,i,r)}}}return KF(),s?Hy(o,a):sA(n||c||u?Hy(o,a,c&&!(l&&qD(l,_T))):jy(o.length?mv(J(o,((e,t)=>8&a[t]?Yb(e,$t)||Ct:e)),2):K?on:Rt,c))}function sA(e){if(!(4&Bx(e)))return e;let t=e.literalType;return t||(t=e.literalType=Vg(e),t.objectFlags|=147456),t}function cA(e){switch(e.kind){case 167:return function(e){return sR(lA(e),296)}(e);case 80:return aC(e.escapedText);case 9:case 11:return aC(e.text);default:return!1}}function lA(e){const t=Xo(e.expression);if(!t.resolvedType){if((jN(e.parent.parent)||Du(e.parent.parent)||lP(e.parent.parent))&&kE(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Et;if(t.resolvedType=qR(e.expression),kN(e.parent)&&!Yv(e.parent)&&NE(e.parent.parent)){const t=bP(Up(e.parent.parent));t&&(Xo(t).flags|=4096,Xo(e).flags|=32768,Xo(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!sR(t.resolvedType,402665900)&&!jS(t.resolvedType,un))&&Co(e,Pa.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function uA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return aC(e.escapedName)||n&&jc(n)&&cA(n.name)}function _A(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return ly(e)||n&&jc(n)&&yN(n.name)&&sR(lA(n.name),4096)}function dA(e,t,n,r){const i=[];for(let o=t;o<n.length;o++){const e=n[o];(r===zt&&!_A(e)||r===$t&&uA(e)||r===Yt&&_A(e))&&i.push(Gl(n[o]))}return pg(r,i.length?mv(i,2):Lt,NR(e))}function pA(e){En.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=Ko(e);if(!t.immediateTarget){const n=_a(e);if(!n)return En.fail();t.immediateTarget=Ea(n,!0)}return t.immediateTarget}function fA(e,t=0){var n;const r=_h(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=bh(r.expression);if(aE(e)||sE(e))return zU(r.expression,Pa.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&wU(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&zU(r.equalsToken,Pa.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),81===e.kind&&zU(e,Pa.Private_identifiers_are_not_allowed_outside_class_bodies),CI(r)&&r.modifiers)for(const t of r.modifiers)!mu(t)||134===t.kind&&174===r.kind||zU(t,Pa._0_modifier_cannot_be_used_here,ap(t));else if($A(r)&&r.modifiers)for(const t of r.modifiers)mu(t)&&zU(t,Pa._0_modifier_cannot_be_used_here,a
6p(t));let i;switch(r.kind){case 304:case 303:EU(r.exclamationToken,Pa.A_definite_assignment_assertion_is_not_permitted_in_this_context),NU(r.questionToken,Pa.An_object_member_cannot_be_declared_optional),9===e.kind&&WU(e),i=4;break;case 174:i=8;break;case 177:i=1;break;case 178:i=2;break;default:En.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=GU(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)zU(e,Pa.Duplicate_identifier_0,ap(e));else if(4&i&&4&r)zU(e,Pa.An_object_literal_cannot_have_multiple_properties_with_the_same_name,ap(e));else{if(!(3&i&&3&r))return zU(e,Pa.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return zU(e,Pa.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,r);const i=K?_d():void 0;let o=_d(),a=[],s=Nn;WF(e);const l=MF(e,void 0),u=l&&l.pattern&&(206===l.pattern.kind||210===l.pattern.kind),_=NR(e),d=_?8:0,p=Wm(e)&&!Hm(e),f=p?_l(e):void 0,m=!l&&p&&!f;let g=8192,h=!1,y=!1,v=!1,b=!1;for(const c of e.properties)c.name&&yN(c.name)&&lA(c.name);let x=0;for(const c of e.properties){let n=os(c);const m=c.name&&167===c.name.kind?lA(c.name):void 0;if(303===c.kind||304===c.kind||Zf(c)){let o=303===c.kind?PR(c,t):304===c.kind?ER(!r&&c.objectAssignmentInitializer?c.objectAssignmentInitializer:c.name,t):FR(c,t);if(p){const e=Gc(c);e?(QS(o,e,c),o=e):f&&f.typeExpression&&QS(o,Mx(f.typeExpression),c)}g|=458752&Bx(o);const a=m&&NC(m)?m:void 0,s=a?Io(4|n.flags,EC(a),4096|d):Io(4|n.flags,n.escapedName,d);if(a&&(s.links.nameType=a),r)(303===c.kind&&oA(c.initializer)||304===c.kind&&c.objectAssignmentInitializer)&&(s.flags|=16777216);else if(u&&!(512&Bx(l))){const e=ef(l,n.escapedName);e?s.flags|=16777216&e.flags:Tf(l,zt)||Co(c.name,Pa.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hs(n),Ys(l))}if(s.declarations=n.declarations,s.parent=n.parent,n.valueDeclaration&&(s.valueDeclaration=n.valueDeclaration),s.links.type=o,s.links.target=n,n=s,null==i||i.set(s.escapedName,s),l&&2&t&&!(4&t)&&(303===c.kind||174===c.kind)&&NS(c)){const t=XF(e);En.assert(t),uw(t,303===c.kind?c.initializer:c,o)}}else{if(305===c.kind){R<2&&mU(c,2),a.length>0&&(s=hx(s,S(),e.symbol,g,_),a=[],o=_d(),y=!1,v=!1,b=!1);const n=Op(qR(c.expression,2&t));if(gA(n)){const t=gx(n,_);if(i&&wA(t,i,c),x=a.length,Tc(s))continue;s=hx(s,t,e.symbol,g,_)}else Co(c,Pa.Spread_types_may_only_be_created_from_object_types),s=Et;continue}En.assert(177===c.kind||178===c.kind),UB(c)}!m||8576&m.flags?o.set(n.escapedName,n):jS(m,un)&&(jS(m,$t)?v=!0:jS(m,Yt)?b=!0:y=!0,r&&(h=!0)),a.push(n)}if(KF(),u){const t=wc(l.pattern.parent,(e=>260===e.kind||226===e.kind||169===e.kind));if(305!==wc(e,(e=>e===t||305===e.kind)).kind)for(const e of Xd(l))o.get(e.escapedName)||ef(s,e.escapedName)||(16777216&e.flags||Co(e.valueDeclaration||(null==(n=ht(e,dd))?void 0:n.links.bindingElement),Pa.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),o.set(e.escapedName,e),a.push(e))}return Tc(s)?Et:s!==Nn?(a.length>0&&(s=hx(s,S(),e.symbol,g,_),a=[],o=_d(),y=!1,v=!1),HD(s,(e=>e===Nn?S():e))):S();function S(){const t=[];y&&t.push(dA(e,x,a,zt)),v&&t.push(dA(e,x,a,$t)),b&&t.push(dA(e,x,a,Yt));const n=Ns(e.symbol,o,c,c,t);return n.objectFlags|=131200|g,m&&(n.objectFlags|=4096),h&&(n.objectFlags|=512),r&&(n.pattern=e),n}}function gA(e){const t=lC(HD(e,sp));return!!(126615553&t.flags||3145728&t.flags&&C(t.types,gA))}function hA(e){return e.includes("-")}function xA(e){return nN(e)&&Qy(e.escapedText)||HP(e)}function TA(e,t){return e.initializer?ER(e.initializer,t):Kt}function CA(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(zt);else{if(294===r.kind&&!r.expression)continue;n.push(ER(r,t))}return n}function wA(e,t,n){for(const r of Xd(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);e&&DT(Co(e.valueDeclaration,Pa._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Pc(e.escapedName)),Gp(n,Pa.This_spread_always_overwrites_this_property))}}function DA(e,t){return function(e,t=0){const n=e.attributes,r=$F(n,0),i=K?_d():void 0;let o,a=_d(),s=Pn,l=!1,u=!1,_=2048;const d=IA(FA(e));for(const c of n.properties){const e=c.symbol;if(zP(c)){const o=TA(c,t);_|=458752&Bx(o);const s=Io(4|e.flags,e.escapedName);if(s.declarations=e.declarations,s.parent=e.parent,e.valueDeclaration&&(s.valueDeclaration=e.valueDeclaration),s.links.type=o,s.links.target=e,a.set(s.escapedName,s),null==i||i.set(s.escapedName,s),SC(c.name)===d&&(u=!0),r){const t=ef(r,e.escapedName);t&&t.declarations&&Po(t)&&nN(c.name)&&Ao(c.name,t.declarations,c.name.escapedText)}if(r&&2&t&&!(4&t)&&NS(c)){const e=XF(n);En.assert(e),uw(e,c.initializer.expression,o)}}else{En.assert(293===c.kind),a.size>0&&(s=hx(s,f(),n.symbol,_,!1),a=_d());const e=Op(qR(c.expression,2&t));kc(e)&&(l=!0),gA(e)?(s=hx(s,e,n.symbol,_,!1),i&&wA(e,i,c)):(Co(c.expression,Pa.Spread_types_may_only_be_created_from_object_types),o=o?kv([o,e]):e)}}l||a.size>0&&(s=hx(s,f(),n.symbol,_,!1));const p=284===e.parent.kind?e.parent:void 0;if(p&&p.openingElement===e&&Py(p.children).length>0){const r=CA(p,t);
6if(!l&&d&&""!==d){u&&Co(n,Pa._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Pc(d));const t=MF(e.attributes,void 0),i=t&&wF(t,d),o=Io(4,d);o.links.type=1===r.length?r[0]:i&&qD(i,gT)?Hy(r):jy(mv(r)),o.valueDeclaration=_w.createPropertySignature(void 0,Pc(d),void 0,void 0),HT(o.valueDeclaration,n),o.valueDeclaration.symbol=o;const a=_d();a.set(d,o),s=hx(s,Ns(n.symbol,a,c,c,c),n.symbol,_,!1)}}return l?Ct:o&&s!==Pn?kv([o,s]):o||(s===Pn?f():s);function f(){_|=8192;const e=Ns(n.symbol,a,c,c,c);return e.objectFlags|=131200|_,e}}(e.parent,t)}function NA(e,t){const n=FA(t),r=n&&es(n),i=r&&Qo(r,e,788968);return i?Wu(i):Et}function EA(e){const t=Xo(e);if(!t.resolvedSymbol){const n=NA(MB.IntrinsicElements,e);if(Tc(n))return ee&&Co(e,Pa.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Pc(MB.IntrinsicElements)),t.resolvedSymbol=bt;{if(!nN(e.tagName)&&!HP(e.tagName))return En.fail();const r=HP(e.tagName)?CC(e.tagName):e.tagName.escapedText,i=ef(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=yJ(n,Tx(Pc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):Sc(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(Co(e,Pa.Property_0_does_not_exist_on_type_1,DC(e.tagName),"JSX."+MB.IntrinsicElements),t.resolvedSymbol=bt)}}return t.resolvedSymbol}function PA(e){const t=e&&Id(e),n=t&&Xo(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=mk(fk(I,t),I);if(!r)return;const i=1===US(I)?Pa.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Pa.Cannot_find_module_0_or_its_corresponding_type_declarations,o=function(e,t){const n=I.importHelpers?1:0,r=null==e?void 0:e.imports[n];return r&&En.assert(by(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}(t,r),a=$a(o||e,r,i,e),s=a&&a!==bt?is(Aa(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function FA(e){const t=e&&Xo(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=PA(e);if(!n||n===bt){const t=bo(e);n=Me(e,t,1920,void 0,!1)}if(n){const e=Aa(Qo(es(Aa(n)),MB.JSX,1920));if(e&&e!==bt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Aa(_y(MB.JSX,1920,void 0));return n!==bt?n:void 0}function AA(e,t){const n=t&&Qo(t.exports,e,788968),r=n&&Wu(n),i=r&&Xd(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&Co(n.declarations[0],Pa.The_global_type_JSX_0_may_not_have_more_than_one_property,Pc(e))}}function IA(e){return AA(MB.ElementChildrenAttributeNameContainer,e)}function OA(e,t){if(4&e.flags)return[ii];if(128&e.flags){const n=LA(e,t);return n?[LO(t,n)]:(Co(t,Pa.Property_0_does_not_exist_on_type_1,e.value,"JSX."+MB.IntrinsicElements),c)}const n=Ep(e);let r=of(n,1);return 0===r.length&&(r=of(n,0)),0===r.length&&1048576&n.flags&&(r=B_(j(n.types,(e=>OA(e,t))))),r}function LA(e,t){const n=NA(MB.IntrinsicElements,t);if(!Tc(n)){const t=ef(n,Ec(e.value));if(t)return Gl(t);const r=Cf(n,zt);return r||void 0}return Ct}function RA(e){var t;En.assert(xA(e.tagName));const n=Xo(e);if(!n.resolvedJsxElementAttributesType){const r=EA(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=Gl(r)||Et;if(2&n.jsxFlags){const r=HP(e.tagName)?CC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=Nf(NA(MB.IntrinsicElements,e),r))?void 0:t.type)||Et}return n.resolvedJsxElementAttributesType=Et}return n.resolvedJsxElementAttributesType}function MA(e){const t=NA(MB.ElementClass,e);if(!Tc(t))return t}function jA(e){return NA(MB.Element,e)}function BA(e){const t=jA(e);if(t)return mv([t,Ut])}function JA(e){const t=FA(e);if(!t)return;const n=(r=t)&&Qo(r.exports,MB.ElementType,788968);var r;if(!n)return;const i=UA(n,Wm(e));return i&&!Tc(i)?i:void 0}function UA(e,t,...n){const r=Wu(e);if(524288&e.flags){const i=Ko(e).typeParameters;if(_(i)>=n.length){const o=Rf(n,i,n.length,t);return 0===_(o)?r:sh(e,o)}}if(_(r.typeParameters)>=n.length)return $g(r,Rf(n,r.typeParameters,n.length,t))}function qA(e){const t=j_(e);var n;if(t&&function(e){(function(e){if(cE(e)&&HP(e.expression))return zU(e.expression,Pa.JSX_property_access_expressions_cannot_include_JSX_namespace_names);HP(e)&&pk(I)&&!Qy(e.namespace.escapedText)&&zU(e,Pa.React_components_cannot_include_JSX_namespace_names)})(e.tagName),kU(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=SC(e);if(t.get(i))return zU(e,Pa.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return zU(r,Pa.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(I.jsx||0)&&Co(n,Pa.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===jA(n)&&ee&&Co(n,Pa.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),RE(e,4),t){const t=e,n=jO(t);qO(n,e);const r=JA(t);if(void 0!==r){const e=t.tagName;Fk(xA(e)?Tx(DC(e)):qR(e),r,po,e,Pa.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=ap(e);return kS(void 0,Pa._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=BA(n);e&&Fk(t,e,po,n.tagName,Pa.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=MA(n);e&&Fk(t,e,po,n.tagName,Pa.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=BA(n),i=MA(n);if(!e||!i)return;Fk(t,mv([e,i]),po,n.tagName,Pa.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=ap(n.tagName);return kS(void 0,Pa._0_cannot_be_used_as_a_JSX_component,e)}}(_O(t),sm(n),t)}}function VA(e,t,n){if(524288&e.flags&&(Kd(e,t)||Nf(e,t)||g_(t)&&Tf(e,zt)||n&&hA(t)))return!0;
6if(33554432&e.flags)return VA(e.baseType,t,n);if(3145728&e.flags&&WA(e))for(const r of e.types)if(VA(r,t,n))return!0;return!1}function WA(e){return!!(524288&e.flags&&!(512&Bx(e))||67108864&e.flags||33554432&e.flags&&WA(e.baseType)||1048576&e.flags&&te(e.types,WA)||2097152&e.flags&&C(e.types,WA))}function HA(e,t){if(function(e){e.expression&&yA(e.expression)&&zU(e.expression,Pa.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=qR(e.expression,t);return e.dotDotDotToken&&n!==Ct&&!oT(n)&&Co(e,Pa.JSX_spread_child_must_be_an_array_type),n}return Et}function KA(e){return e.valueDeclaration?QU(e.valueDeclaration):0}function GA(e){if(8192&e.flags||4&wx(e))return!0;if(Wm(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&kE(t)&&3===hg(t)}}function XA(e,t,n,r,i,o=!0){return QA(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function QA(e,t,n,r,i,o){var a;const s=Dx(i,n);if(t){if(R<2&&YA(i))return o&&Co(o,Pa.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&Co(o,Pa.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Hs(i),Ys(Kk(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(Pu)))return o&&Co(o,Pa.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Hs(i)),!1}if(64&s&&YA(i)&&(Sm(e)||Tm(e)||rE(e.parent)&&km(e.parent.parent))){const t=jx(cs(i));if(t&&wc(e,(e=>!!(DN(e)&&qd(e.body)||kN(e))||!(!Du(e)&&!xu(e))&&"quit")))return o&&Co(o,Pa.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Hs(i),oy(t.name)),!1}if(!(6&s))return!0;if(2&s)return!!mJ(e,jx(cs(i)))||(o&&Co(o,Pa.Property_0_is_private_and_only_accessible_within_class_1,Hs(i),Ys(Kk(i))),!1);if(t)return!0;let c=fJ(e,(e=>Xk(Wu(os(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=fm(e,!1,!1);return t&&vu(t)?Dv(t):void 0}(e);let n=(null==t?void 0:t.type)&&Mx(t.type);if(n&&262144&n.flags&&(n=Yd(n)),n&&7&Bx(n))return eu(n)}(e),c=c&&Xk(c,i,n),256&s||!c)?(o&&Co(o,Pa.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Hs(i),Ys(Kk(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?Yd(r):op(r)),!(!r||!ru(r,c))||(o&&Co(o,Pa.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Hs(i),Ys(c),Ys(r)),!1))}function YA(e){return!!Hk(e,(e=>!(8192&e.flags)))}function ZA(e){return oI(qR(e),e)}function eI(e){return hD(e,50331648)}function tI(e){return eI(e)?wC(e):e}function nI(e,t){const n=Pb(e)?Kp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(nN(e)&&"undefined"===n)return void Co(e,Pa.The_value_0_cannot_be_used_here,"undefined");Co(e,16777216&t?33554432&t?Pa._0_is_possibly_null_or_undefined:Pa._0_is_possibly_undefined:Pa._0_is_possibly_null,n)}else Co(e,16777216&t?33554432&t?Pa.Object_is_possibly_null_or_undefined:Pa.Object_is_possibly_undefined:Pa.Object_is_possibly_null);else Co(e,Pa.The_value_0_cannot_be_used_here,"null")}function rI(e,t){Co(e,16777216&t?33554432&t?Pa.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Pa.Cannot_invoke_an_object_which_is_possibly_undefined:Pa.Cannot_invoke_an_object_which_is_possibly_null)}function iI(e,t,n){if(K&&2&e.flags){if(Pb(t)){const e=Kp(t);if(e.length<100)return Co(t,Pa._0_is_of_type_unknown,e),Et}return Co(t,Pa.Object_is_of_type_unknown),Et}const r=gD(e,50331648);if(50331648&r){n(t,r);const i=wC(e);return 229376&i.flags?Et:i}return e}function oI(e,t){return iI(e,t,nI)}function aI(e,t){const n=oI(e,t);if(16384&n.flags){if(Pb(t)){const e=Kp(t);if(nN(t)&&"undefined"===e)return Co(t,Pa.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return Co(t,Pa._0_is_possibly_undefined,e),n}Co(t,Pa.Object_is_possibly_undefined)}return n}function sI(e,t,n){return 64&e.flags?function(e,t){const n=qR(e.expression),r=UC(n,e.expression);return JC(gI(e,e.expression,oI(r,e.expression),e.name,t),e,r!==n)}(e,t):gI(e,e.expression,ZA(e.expression),e.name,t,n)}function lI(e,t){const n=Mm(e)&&Ev(e.left)?oI(AP(e.left),e.left):ZA(e.left);return gI(e,e.left,n,e.right,t)}function uI(e){for(;217===e.parent.kind;)e=e.parent;return Zu(e.parent)&&e.parent.expression===e}function _I(e,t){for(let n=pm(t);n;n=um(n)){const{symbol:t}
6=n,r=cy(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function dI(e){!function(e){if(!um(e))return zU(e,Pa.Private_identifiers_are_not_allowed_outside_class_bodies);if(!KE(e.parent)){if(!Lm(e))return zU(e,Pa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=kE(e.parent)&&103===e.parent.operatorToken.kind;if(!pI(e)&&!t)zU(e,Pa.Cannot_find_name_0,Fc(e))}}(e);const t=pI(e);return t&&OI(t,void 0,!1),Ct}function pI(e){if(!Lm(e))return;const t=Xo(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=_I(e.escapedText,e)),t.resolvedSymbol}function fI(e,t){return ef(e,t.escapedName)}function mI(e,t){return(tl(t)||Sm(e)&&nl(t))&&fm(e,!0,!1)===rl(t)}function gI(e,t,n,r,i,o){const a=Xo(t).resolvedSymbol,s=uh(e),c=Ep(0!==s||uI(e)?ew(n):n),l=kc(c)||c===rn;let u,_;if(rN(r)){(R<9||R<99||!$)&&(0!==s&&mU(e,1048576),1!==s&&mU(e,524288));const t=_I(r.escapedText,r);if(s&&t&&t.valueDeclaration&&CN(t.valueDeclaration)&&zU(r,Pa.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Fc(r)),l){if(t)return Tc(c)?Et:c;if(void 0===pm(r))return zU(r,Pa.Private_identifiers_are_not_allowed_outside_class_bodies),Ct}if(u=t&&fI(n,t),void 0===u){if(function(e,t,n){let r;const i=Xd(e);i&&d(i,(e=>{const n=e.valueDeclaration;if(n&&jc(n)&&rN(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=na(t);if(r){const i=En.checkDefined(r.valueDeclaration),a=En.checkDefined(um(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=um(r);if(En.assert(!!s),wc(s,(e=>a===e)))return DT(Co(t,Pa.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Ys(e)),Gp(r,Pa.The_shadowing_declaration_of_0_is_defined_here,o),Gp(i,Pa.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return Co(t,Pa.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,na(a.name||JB)),!0}return!1}(n,r,t))return Et;const e=pm(r);e&&Ld(Id(e),I.checkJs)&&zU(r,Pa.Private_field_0_must_be_declared_in_an_enclosing_class,Fc(r))}else 65536&u.flags&&!(32768&u.flags)&&1!==s&&Co(e,Pa.Private_accessor_was_defined_without_a_getter)}else{if(l)return nN(t)&&a&&RE(e,2,void 0,n),Tc(c)?Et:c;u=ef(c,r.escapedText,lR(c),166===e.kind)}if(RE(e,2,u,n),u){const n=wB(u,r);if(Po(n)&&yb(e,n)&&n.declarations&&Ao(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||Id(t).isDeclarationFile)return;let i;const o=Fc(n);!vI(t)||function(e){return kN(e)&&!nb(e)&&e.questionToken}(r)||Hx(t)&&Hx(t.expression)||Yo(r,n)||CN(r)&&256&XU(r)||!$&&function(e){if(!(32&e.parent.flags))return!1;let t=Gl(e.parent);for(;;){if(t=t.symbol&&bI(t),!t)return!1;const n=ef(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||Yo(r,n)||(i=Co(n,Pa.Class_0_used_before_its_declaration,o)):i=Co(n,Pa.Property_0_is_used_before_its_initialization,o),i&&DT(i,Gp(r,Pa._0_is_declared_here,o))}(u,e,r),OI(u,e,LI(t,a)),Xo(e).resolvedSymbol=u,XA(e,108===t.kind,Fx(e),c,u),eR(e,u,s))return Co(r,Pa.Cannot_assign_to_0_because_it_is_a_read_only_property,Fc(r)),Et;_=mI(e,u)?wt:o||Px(e)?Kl(u):Gl(u)}else{const t=rN(r)||0!==s&&qb(n)&&!cC(n)?void 0:Nf(c,r.escapedText);if(!t||!t.type){const t=hI(e,n.symbol,!0);return!t&&fb(n)?Ct:n.symbol===be?(be.exports.has(r.escapedText)&&418&be.exports.get(r.escapedText).flags?Co(r,Pa.Property_0_does_not_exist_on_type_1,Pc(r.escapedText),Ys(n)):ee&&Co(r,Pa.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ys(n)),Ct):(r.escapedText&&!oa(e)&&xI(r,cC(n)?c:n,t),Et)}t.isReadonly&&(_h(e)||xh(e))&&Co(e,Pa.Index_signature_in_type_0_only_permits_reading,Ys(c)),_=t.type,I.noUncheckedIndexedAccess&&1!==uh(e)&&(_=mv([_,Mt])),I.noPropertyAccessFromIndexSignature&&cE(e)&&Co(r,Pa.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Pc(r.escapedText)),t.declaration&&Fo(t.declaration)&&Ao(r,[t.declaration],r.escapedText)}return yI(e,u,_,r,i)}
6function hI(e,t,n){var r;const i=Id(e);if(i&&void 0===I.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=d(null==t?void 0:t.declarations,Id),a=!(null==t?void 0:t.valueDeclaration)||!Du(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||Fm(!1,t.valueDeclaration);return!(i!==o&&o&&uf(o)||n&&t&&32&t.flags&&a||e&&n&&cE(e)&&110===e.expression.kind&&a)}return!1}function yI(e,t,n,r,i){const o=uh(e);if(1===o)return zC(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!OB(t.declarations))return n;if(n===wt)return ol(e,t);n=FE(n,e,i);let a=!1;if(K&&Z&&Hx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&_B(n)&&!Qv(n)){const t=$N(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else K&&t&&t.valueDeclaration&&cE(t.valueDeclaration)&&Dg(t.valueDeclaration)&&$N(e)===$N(t.valueDeclaration)&&(a=!0);const s=BN(e,n,a?TC(n):n);return a&&!Sk(n)&&Sk(s)?(Co(r,Pa.Property_0_is_used_before_being_assigned,Hs(t)),n):o?wT(s):s}function vI(e){return!!wc(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!JE(e.parent)||!wN(e.parent.parent))||"quit";default:return!Lm(e)&&"quit"}}))}function bI(e){const t=Au(e);if(0!==t.length)return kv(t)}function xI(e,t,n){let r,i;if(!rN(e)&&1048576&t.flags&&!(402784252&t.flags))for(const a of t.types)if(!ef(a,e.escapedText)&&!Nf(a,e.escapedText)){r=kS(r,Pa.Property_0_does_not_exist_on_type_1,zp(e),Ys(a));break}if(SI(e.escapedText,t)){const n=zp(e),i=Ys(t);r=kS(r,Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=mM(t);if(o&&ef(o,e.escapedText))r=kS(r,Pa.Property_0_does_not_exist_on_type_1,zp(e),Ys(t)),i=Gp(e,Pa.Did_you_forget_to_use_await);else{const o=zp(e),a=Ys(t),s=function(e,t){const n=Ep(t).symbol;if(!n)return;const r=Ic(n),i=_p().get(r);if(i)for(const[o,a]of i)if(F(a,e))return o}(o,t);if(void 0!==s)r=kS(r,Pa.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,o,a,s);else{const s=DI(e,t);if(void 0!==s){const e=Ic(s);r=kS(r,n?Pa.Property_0_may_not_exist_on_type_1_Did_you_mean_2:Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&Gp(s.valueDeclaration,Pa._0_is_declared_here,e)}else{const e=function(e){return I.lib&&!I.lib.includes("dom")&&(n=e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Pc(e.symbol.escapedName)),3145728&(t=e).flags?C(t.types,n):n(t))&&bk(e);var t,n}(t)?Pa.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Pa.Property_0_does_not_exist_on_type_1;r=kS(Qp(r,t),e,o,a)}}}}const o=Yp(Id(e),e,r);i&&DT(o,i),wo(!n||r.code!==Pa.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function SI(e,t){const n=t.symbol&&ef(Gl(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Qv(n.valueDeclaration)}function kI(e,t){return II(e,Xd(t),106500)}function DI(e,t){let n=Xd(t);if("string"!=typeof e){const r=e.parent;cE(r)&&(n=L(n,(e=>RI(r,t,e)))),e=Fc(e)}return II(e,n,111551)}function EI(e,t){const n=mt(e)?e:Fc(e),r=Xd(t),i="for"===n?w(r,(e=>"htmlFor"===Ic(e))):"class"===n?w(r,(e=>"className"===Ic(e))):void 0;return null!=i?i:II(n,r,111551)}function PI(e,t){const n=DI(e,t);return n&&Ic(n)}function FI(e,t,n){return En.assert(void 0!==t,"outername should always be defined"),je(e,t,n,void 0,!1,!1)}function AI(e,t){return t.exports&&II(Fc(e),Qa(t),2623475)}function II(e,t,n){return Zt(e,t,(function(e){const t=Ic(e);if(!fn(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(Ko(e).aliasTarget!==xt)return Ia(e)}(e);if(r&&r.flags&n)return t}}}))}function OI(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=Gv(r,2),o=e.valueDeclaration&&jc(e.valueDeclaration)&&rN(e.valueDeclaration.name);if((i||o)&&(!t||!Px(t)||65536&e.flags)){if(n){const n=wc(t,xu);if(n&&n.symbol===e)return}(1&wx(e)?Ko(e).target:e).isReferenced=-1}}function LI(e,t){return 110===e.kind||!!t&&Pb(e)&&t===Qw(Fb(e))}
6function RI(e,t,n){return jI(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function MI(e,t,n,r){if(kc(r))return!0;const i=ef(r,n);return!!i&&jI(e,t,!1,r,i)}function jI(e,t,n,r,i){if(kc(r))return!0;if(i.valueDeclaration&&uu(i.valueDeclaration)){const t=um(i.valueDeclaration);return!Il(e)&&!!wc(e,(e=>e===t))}return QA(e,t,n,r,i)}function BI(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!Bu(e.name))return os(e)}else if(80===t.kind)return Qw(t)}function JI(e,t){return 64&e.flags?function(e,t){const n=qR(e.expression),r=UC(n,e.expression);return JC(UI(e,oI(r,e.expression),t),e,r!==n)}(e,t):UI(e,ZA(e.expression),t)}function UI(e,t,n){const r=0!==uh(e)||uI(e)?ew(t):t,i=e.argumentExpression,o=qR(i);if(Tc(r)||r===rn)return r;if(lR(r)&&!Z_(i))return Co(i,Pa.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;const a=function(e){const t=bh(e);if(80===t.kind){const r=Qw(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&BI(i)===r&&1===Sf(n=BR(i.expression)).length&&Tf(n,$t))return!0;t=i,i=i.parent}}}var n;return!1}(i)?$t:o,s=uh(e);let c;0===s?c=32:(c=4|(qb(r)&&!cC(r)?2:0),2===s&&(c|=32));const l=Yb(r,a,c,e)||Et;return sM(yI(e,Xo(e).resolvedSymbol,l,i,n),e)}function qI(e){return Zu(e)||dE(e)||j_(e)}function zI(e){return qI(e)&&d(e.typeArguments,LB),215===e.kind?qR(e.template):j_(e)?qR(e.attributes):kE(e)?qR(e.left):Zu(e)&&d(e.arguments,(e=>{qR(e)})),ii}function $I(e){return zI(e),oi}function VI(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function WI(e){return N(e,VI)}function HI(e){return!!(16384&e.flags)}function KI(e){return!!(49155&e.flags)}function GI(e,t,n,r=!1){let i,o=!1,a=hL(n),s=yL(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=Le(e.template.templateSpans);o=Ud(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;En.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=yO(e,n);else if(226===e.kind)i=1;else if(j_(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return En.assert(214===e.kind),0===yL(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=WI(t);if(a>=0)return a>=yL(n)&&(vL(n)||a<hL(n))}}if(!vL(n)&&i>a)return!1;if(o||i>=s)return!0;for(let c=i;c<s;c++)if(131072&$D(pL(n,c),Wm(e)&&!K?KI:HI).flags)return!1;return!0}function XI(e,t){const n=_(e.typeParameters),r=Lf(e.typeParameters);return!te(t)||t.length>=r&&t.length<=n}function QI(e,t){let n;return!!(e.target&&(n=fL(e.target,t))&&Ub(n))}function YI(e){return nO(e,0,!1)}function tO(e){return nO(e,0,!1)||nO(e,1,!1)}function nO(e,t,n){if(524288&e.flags){const r=Wd(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function rO(e,t,n,r){const i=sw(e.typeParameters,e,0,r),o=bL(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return ow(a?aS(t,a):t,e,((e,t)=>{jw(i.inferences,e,t)})),n||aw(t,e,((e,t)=>{jw(i.inferences,e,t,128)})),Em(e,Hw(i),Wm(t.declaration))}function oO(e){if(!e)return en;const t=qR(e);return Jb(e)?t:Ol(e.parent)?wC(t):Il(e.parent)?IC(t):t}function sO(e,t,n,r,i){if(j_(e))return function(e,t,n,r){const i=QF(t,e),o=SR(e.attributes,i,r,n);return jw(r.inferences,o,i),Hw(r)}(e,t,r,i);if(170!==e.kind&&226!==e.kind){const n=C(t.typeParameters,(e=>!!fp(e))),r=$F(e,n?8:0);if(r){const o=sm(t);if(gw(o)){const a=XF(e);if(n||$F(e,8)===r){const e=mw(function(e,t=0){return e&&cw(j(e.inferences,fw),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=hS(r,e),n=YI(t),s=n&&n.typeParameters?tg(Pm(n,n.typeParameters)):t;jw(i.inferences,s,o,128)}const s=sw(t.typeParameters,t,i.flags),c=hS(r,a&&a.returnMapper);jw(s.inferences,c,o),i.returnMapper=te(s.inferences,OR)?mw(function(e){const t=L(e.inferences,OR);return t.length?cw(j(t,fw),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=xL(t),a=o?Math.min(hL(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=w(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=N(n,VI,a)<0?n.length-a:void 0)}const s=im(t);if(s&&gw(s)){const t=mO(e);jw(i.inferences,oO(t),s)}for(let c=0;c<a;c++){const e=n[c];if(232!==e.kind){const n=pL(t,c);if(gw(n)){const t=SR(e,n,i,r);jw(i.inferences,t,n)}}}if(o&&gw(o)){const e=lO(n,a,n.length,o,i,r);jw(i.inferences,e,o)}return Hw(i)}function cO(e){return 1048576&e.flags?HD(e,cO):1&e.flags||cT(op(e)||e)?e:KT(e)?Hy(ov(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Hy([e],[8])}function lO(e,t,n,r,i,o){const a=Zd(r);if(t>
6=n-1){const t=e[n-1];if(VI(t)){const e=237===t.kind?t.type:SR(t.expression,r,i,o);return uT(e)?cO(e):jy(gj(33,e,Lt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let u=t;u<n;u++){const _=e[u];if(VI(_)){const e=237===_.kind?_.type:qR(_.expression);uT(e)?(s.push(e),c.push(8)):(s.push(gj(33,e,Lt,230===_.kind?_.expression:_)),c.push(4))}else{const e=KT(r)?EF(r,u-t,n-t)||It:Xb(r,Cx(u-t),256),l=SR(_,e,i,o),d=a||aR(e,406978556);s.push(d?Sx(l):RT(l)),c.push(1)}237===_.kind&&_.tupleNameSource?l.push(_.tupleNameSource):l.push(void 0)}return Hy(s,c,a&&!qD(r,_T),l)}function uO(e,t,n,r){const i=Wm(e.declaration),o=e.typeParameters,a=Rf(j(t,Mx),o,Lf(o),i);let s;for(let c=0;c<t.length;c++){En.assert(void 0!==o[c],"Should not call checkTypeArguments with too many type arguments");const e=Yd(o[c]);if(e){const i=n&&r?()=>kS(void 0,Pa.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||Pa.Type_0_does_not_satisfy_the_constraint_1;s||(s=Kx(o,a));const u=a[c];if(!QS(u,w_(hS(e,s),u),n?t[c]:void 0,l,i))return}}return a}function _O(e){if(xA(e.tagName))return 2;const t=Ep(qR(e.tagName));return _(of(t,1))?0:_(of(t,0))?1:2}function dO(e){return AE(e=bh(e))?bh(e.expression):e}function pO(e,t,n,r,i,o,a,s){const l={errors:void 0,skipLogging:!0};if(j_(e))return function(e,t,n,r,i,o,a){const s=QF(t,e),c=SR(e.attributes,s,void 0,r),l=4&r?KC(c):c;return function(){var t;if(PA(e))return!0;const n=!jP(e)&&!MP(e)||xA(e.tagName)||HP(e.tagName)?void 0:qR(e.tagName);if(!n)return!0;const r=of(n,0);if(!_(r))return!0;const o=_U(e);if(!o)return!0;const s=Ja(o,111551,!0,!1,e);if(!s)return!0;const c=of(Gl(s),0);if(!_(c))return!0;let l=!1,u=0;for(const e of c){const t=of(pL(e,0),0);if(_(t))for(const e of t){if(l=!0,vL(e))return!0;const t=hL(e);t>u&&(u=t)}}if(!l)return!0;let d=1/0;for(const e of r){const t=yL(e);t<d&&(d=t)}if(d<=u)return!0;if(i){const n=Gp(e.tagName,Pa.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Kp(e.tagName),d,Kp(o),u),r=null==(t=xJ(e.tagName))?void 0:t.valueDeclaration;r&&DT(n,Gp(r,Pa._0_is_declared_here,Kp(e.tagName))),a&&a.skipLogging&&(a.errors||(a.errors=[])).push(n),a.skipLogging||so.add(n)}return!1}()&&ZS(l,s,n,i?e.tagName:void 0,e.attributes,void 0,o,a)}(e,n,r,i,o,a,l)?void 0:(En.assert(!o||!!l.errors,"jsx should have errors when reporting errors"),l.errors||c);const u=im(n);if(u&&u!==en&&!(_E(e)||uE(e)&&xm(e.expression))){const t=mO(e),n=oO(t),i=o?t||e:void 0,s=Pa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Fk(n,u,r,i,s,a,l))return En.assert(!o||!!l.errors,"this parameter should have errors when reporting errors"),l.errors||c}const d=Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=xL(n),f=p?Math.min(hL(n)-1,t.length):t.length;for(let _=0;_<f;_++){const e=t[_];if(232!==e.kind){const t=pL(n,_),u=SR(e,t,void 0,i),p=4&i?KC(u):u,f=s?hS(p,s.nonFixingMapper):p,g=dO(e);if(!ZS(f,t,r,o?g:void 0,g,d,a,l))return En.assert(!o||!!l.errors,"parameter should have errors when reporting errors"),m(e,f,t),l.errors||c}}if(p){const n=lO(t,f,t.length,p,void 0,i),a=t.length-f,s=o?0===a?e:1===a?dO(t[f]):$T(gO(e,n),t[f].pos,t[t.length-1].end):void 0;if(!Fk(n,p,r,s,d,void 0,l))return En.assert(!o||!!l.errors,"rest parameter should have errors when reporting errors"),m(s,n,p),l.errors||c}return;function m(e,t,n){if(e&&o&&l.errors&&l.errors.length){if(fM(n))return;const i=fM(t);i&&wk(i,n,r)&&DT(l.errors[0],Gp(e,Pa.Did_you_forget_to_use_await))}}}function mO(e){if(226===e.kind)return e.right;const t=213===e.kind?e.expression:215===e.kind?e.tag:170!==e.kind||z?void 0:e.expression;if(t){const e=SA(t);if(Hx(e))return e.expression}}function gO(e,t,n,r){const i=NI.createSyntheticExpression(t,n,r);return TI(i,e),HT(i,e),i}function hO(e){if(215===e.kind){const t=e.template,n=[gO(t,Fr||(Fr=dy("TemplateStringsArray",0,!0)||Nn))];return 228===t.kind&&d(t.templateSpans,(e=>{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=jL(e);if(n){const e=[];for(const r of n.parameters){const n=Gl(r);e.push(gO(t,n))}return e}return En.fail()}(e);if(226===e.kind)return[e.left];if(j_(e))return e.attributes.properties.length>0||jP(e)&&e.parent.children.length>0?[e.attributes]:c;const t=e.arguments||c,n=WI(t);
6if(n>=0){const e=t.slice(0,n);for(let r=n;r<t.length;r++){const n=t[r],i=230===n.kind&&(vi?qR(n.expression):kR(n.expression));i&&KT(i)?d(ov(i),((t,r)=>{var o;const a=i.target.elementFlags[r],s=gO(n,4&a?jy(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function yO(e,t){return I.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return nb(e.parent)?3:2;case 174:case 177:case 178:return t.parameters.length<=2?2:3;case 169:return 3;default:return En.fail()}}(e,t):Math.min(Math.max(hL(t),1),2)}function vO(e){const t=Id(e),{start:n,length:r}=lf(t,cE(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function bO(e,t,...n){if(uE(e)){const{sourceFile:r,start:i,length:o}=vO(e);return"message"in t?vS(r,i,o,t,...n):nf(r,t)}return"message"in t?Gp(e,t,...n):Yp(Id(e),e,t)}function xO(e,t,n,r){var i;const o=WI(n);if(o>-1)return Gp(n[o],Pa.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;for(const m of t){const e=yL(m),t=hL(m);e<s&&(s=e,a=m),c=Math.max(c,t),e<n.length&&e>l&&(l=e),n.length<t&&t<u&&(u=t)}const _=te(t,vL),d=_?s:s<c?s+"-"+c:s,p=!_&&1===d&&0===n.length&&function(e){if(!uE(e)||!nN(e.expression))return!1;const t=Me(e.expression,e.expression.escapedText,111551,void 0,!1),n=null==t?void 0:t.valueDeclaration;if(!(n&&bN(n)&&iC(n.parent)&&_E(n.parent.parent)&&nN(n.parent.parent.expression)))return!1;const r=Dy(!1);return!!r&&xJ(n.parent.parent.expression,!0)===r}(e);if(p&&Wm(e))return bO(e,Pa.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const f=xN(e)?_?Pa.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Pa.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:_?Pa.Expected_at_least_0_arguments_but_got_1:p?Pa.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Pa.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c){if(r){let t=kS(void 0,Pa.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,u);return t=kS(t,r),bO(e,t)}return bO(e,Pa.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,u)}if(n.length<s){let t;if(r){let i=kS(void 0,f,d,n.length);i=kS(i,r),t=bO(e,i)}else t=bO(e,f,d,n.length);const o=null==(i=null==a?void 0:a.declaration)?void 0:i.parameters[a.thisParameter?n.length+1:n.length];return o?DT(t,Gp(o,...Bu(o.name)?[Pa.An_argument_matching_this_binding_pattern_was_not_provided]:nd(o)?[Pa.Arguments_for_the_rest_parameter_0_were_not_provided,Fc(Fb(o.name))]:[Pa.An_argument_for_0_was_not_provided,o.name?Fc(Fb(o.name)):n.length])):t}{const t=_w.createNodeArray(n.slice(c)),i=Ae(t).pos;let o=Le(t).end;if(o===i&&o++,$T(t,i,o),r){let i=kS(void 0,f,d,n.length);return i=kS(i,r),Zp(Id(e),t,i)}return Xp(Id(e),t,f,d,n.length)}}function SO(e,t,n,r,i,o){const a=215===e.kind,s=170===e.kind,l=j_(e),u=226===e.kind,p=!k&&!n;let f;s||u||bf(e)||(f=e.typeArguments,(a||l||108!==e.expression.kind)&&d(f,LB));const m=n||[];!function(e,t,n){let r,i,o,a,s=0,c=-1;En.assert(!t.length);for(const l of e){const e=l.declaration&&os(l.declaration),u=l.declaration&&l.declaration.parent;i&&e!==i?(o=s=t.length,r=u):r&&u===r?o+=1:(r=u,o=s),i=e,sJ(l)?(c++,a=c,s++):a=o,t.splice(a,0,n?I_(l,n):l)}}(t,m,i),En.assert(m.length,"Revert #54442 and add a testcase with whatever triggered this");const g=hO(e),h=1===m.length&&!m[0].typeParameters;let y,v,b,x,S=s||h||!te(g,NS)?0:4;const T=!!(16&r)&&213===e.kind&&e.arguments.hasTrailingComma;if(m.length>1&&(x=E(m,uo,h,T)),x||(x=E(m,po,h,T)),x)return x;if(x=function(e,t,n,r,i){return En.assert(t.length>0),UB(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i<e.length;i++){const o=e[i],a=hL(o);if(vL(o)||a>=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===xe?n.length:xe),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=qI(e)?e.typeArguments:void 0,c=s?Im(o,function(e,t,n){const r=e.map(SJ);for(;r.length>t.length;)r.pop();for(;r.length<t.length;)r.push(fp(t[r.length])||Yd(t[r.length])||Ww(n));return r}
6(s,a,Wm(e))):function(e,t,n,r,i){const o=sw(t,n,Wm(e)?2:0),a=sO(e,n,r,12|i,o);return Im(n,a)}(e,a,o,n,r);return t[i]=c,c}(e,t,n,i):function(e){const t=H(e,(e=>e.thisParameter));let n;t.length&&(n=TO(t,t.map(sL)));const{min:r,max:i}=NT(e,kO),o=[];for(let c=0;c<i;c++){const t=H(e,(e=>aJ(e)?c<e.parameters.length-1?e.parameters[c]:Le(e.parameters):c<e.parameters.length?e.parameters[c]:void 0));En.assert(0!==t.length),o.push(TO(t,H(e,(e=>fL(e,c)))))}const a=H(e,(e=>aJ(e)?Le(e.parameters):void 0));let s=128;if(0!==a.length){const t=jy(mv(H(e,Nm),2));o.push(CO(a,t)),s|=1}return e.some(sJ)&&(s|=2),E_(e[0].declaration,void 0,n,o,kv(e.map(sm)),void 0,r,s)}(t)}(e,m,g,!!n,r),Xo(e).resolvedSignature=x,p)if(!o&&u&&(o=Pa.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),y)if(1===y.length||y.length>3){const t=y[y.length-1];let n;y.length>3&&(n=kS(n,Pa.The_last_overload_gave_the_following_error),n=kS(n,Pa.No_overload_matches_this_call)),o&&(n=kS(n,o));const r=pO(e,g,t,po,0,!0,(()=>n),void 0);if(r)for(const e of r)t.declaration&&y.length>3&&DT(e,Gp(t.declaration,Pa.The_last_overload_is_declared_here)),N(t,e),so.add(e);else En.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of y){const s=pO(e,g,o,po,0,!0,(()=>kS(void 0,Pa.Overload_0_of_1_2_gave_the_following_error,a+1,m.length,Gs(o))),void 0);s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):En.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:U(t);En.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=kS(j(s,rf),Pa.No_overload_matches_this_call);o&&(c=kS(c,o));const l=[...q(s,(e=>e.relatedInformation))];let u;if(C(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];u={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else u=Yp(Id(e),Zu(D=e)?cE(D.expression)?D.expression.name:D.expression:dE(D)?cE(D.tag)?D.tag.name:D.tag:j_(D)?D.tagName:D,c,l);N(y[0],u),so.add(u)}else if(v)so.add(xO(e,[v],g,o));else if(b)uO(b,e.typeArguments,!0,o);else{const n=L(t,(e=>XI(e,f)));0===n.length?so.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=Lf(o.typeParameters),s=_(o.typeParameters);if(r){let t=kS(void 0,Pa.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,i);return t=kS(t,r),Zp(Id(e),n,t)}return Xp(Id(e),n,Pa.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,i)}let o=-1/0,a=1/0;for(const s of t){const e=Lf(s.typeParameters),t=_(s.typeParameters);e>i?a=Math.min(a,e):t<i&&(o=Math.max(o,t))}if(o!==-1/0&&a!==1/0){if(r){let t=kS(void 0,Pa.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,o,a);return t=kS(t,r),Zp(Id(e),n,t)}return Xp(Id(e),n,Pa.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,o,a)}if(r){let t=kS(void 0,Pa.Expected_0_type_arguments_but_got_1,o===-1/0?a:o,i);return t=kS(t,r),Zp(Id(e),n,t)}return Xp(Id(e),n,Pa.Expected_0_type_arguments_but_got_1,o===-1/0?a:o,i)}(e,t,f,o)):so.add(xO(e,n,g,o))}var D;return x;function N(e,t){var n,r;const i=y,o=v,a=b,s=(null==(r=null==(n=e.declaration)?void 0:n.symbol)?void 0:r.declarations)||c,l=s.length>1?w(s,(e=>xu(e)&&qd(e.body))):void 0;if(l){const e=jf(l),n=!e.typeParameters;E([e],po,n)&&DT(t,Gp(l,Pa.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}y=i,v=o,b=a}function E(t,n,r,i=!1){var o,a;if(y=void 0,v=void 0,b=void 0,r){const r=t[0];if(te(f)||!GI(e,g,r,i))return;return pO(e,g,r,n,0,!1,void 0,void 0)?void(y=[r]):r}for(let s=0;s<t.length;s++){let r,c,l=t[s];if(XI(l,f)&&GI(e,g,l,i)){if(l.typeParameters){const t=(null==(a=null==(o=l.typeParameters[0].symbol.declarations)?void 0:o[0])?void 0:a.parent)||(l.declaration&&DN(l.declaration)?l.declaration.parent:l.declaration);let n;if(t&&wc(e,(e=>e===t))&&(l=Km(l)),te(f)){if(n=uO(l,f,!1),!n){b=l;continue}}else c=sw(l.typeParameters,l,Wm(e)?2:0),n=zx(sO(e,l,g,8|S,c),c.nonFixingMapper),S|=4&c.flags?8:0;if(r=Em(l,n,Wm(l.declaration),c&&c.inferredTypeParameters),xL(l)&&!GI(e,g,r,i)){v=r;continue}}else r=l;if(!pO(e,g,r,n,S,!1,void 0,c)){if(S){if(S=0,c&&(r=Em(l,zx(sO(e,l,g,S,c),c.mapper),Wm(l.declaration),c.inferredTypeParameters),xL(l)&&!GI(e,g,r,i))){v=r;continue}if(pO(e,g,r,n,S,!1,void 0,c)){(y||(y=[])).push(r);continue}}return t[s]=r,r}(y||(y=[])).push(r)}}}}function kO(e){const t=e.parameters.length;return aJ(e)?t-1:t}function TO(e,t){return CO(e,mv(t,2))}function CO(e,t){return HC(Ae(e),t)}function wO(e){return!(!e.typeParameters||!GJ(sm(e)))}function DO(e,t,n,r){return kc(e)||kc(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&Op(t).flags)&&jS(e,Xn)}function NO(e,t,n){let r=ZA(e.expression);if(r===rn)return si;if(r=Ep(r),Tc(r))return $I(e);if(kc(r))return e.typeArguments&&Co(e,Pa.Untyped_function_calls_may_not_accept_type_arguments),zI(e);const i=of(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=ob(n,6);if(!r||176!==n.kind)return!0;const i=jx(n.parent.symbol),o=Wu(n.parent.symbol);if(!mJ(e,i)){const t=um(e);
6if(t&&4&r){const e=SJ(t);if(PO(n.parent.symbol,e))return!0}return 2&r&&Co(e,Pa.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ys(o)),4&r&&Co(e,Pa.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ys(o)),!1}return!0}(e,i[0]))return $I(e);if(EO(i,(e=>!!(4&e.flags))))return Co(e,Pa.Cannot_create_an_instance_of_an_abstract_class),$I(e);const o=r.symbol&&jx(r.symbol);return o&&Xv(o,64)?(Co(e,Pa.Cannot_create_an_instance_of_an_abstract_class),$I(e)):SO(e,i,t,n,0)}const o=of(r,0);if(o.length){const r=SO(e,o,t,n,0);return ee||(r.declaration&&!BO(r.declaration)&&sm(r)!==en&&Co(e,Pa.Only_a_void_function_can_be_called_with_the_new_keyword),im(r)===en&&Co(e,Pa.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return AO(e.expression,r,1),$I(e)}function EO(e,t){return pt(e)?te(e,(e=>EO(e,t))):1048576===e.compositeKind?te(e.compositeSignatures,t):t(e)}function PO(e,t){const n=Au(t);if(!_(n))return!1;const r=n[0];if(2097152&r.flags){const t=Y_(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&Bx(i)){if(i.symbol===e)return!0;if(PO(e,i))return!0}n++}return!1}return r.symbol===e||PO(e,r)}function FO(e,t,n){let r;const i=0===n,o=SM(t),a=o&&of(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==of(a,n).length){if(o=!0,r)break}else if(r||(r=kS(r,i?Pa.Type_0_has_no_call_signatures:Pa.Type_0_has_no_construct_signatures,Ys(a)),r=kS(r,i?Pa.Not_all_constituents_of_type_0_are_callable:Pa.Not_all_constituents_of_type_0_are_constructable,Ys(t))),o)break;o||(r=kS(void 0,i?Pa.No_constituent_of_type_0_is_callable:Pa.No_constituent_of_type_0_is_constructable,Ys(t))),r||(r=kS(r,i?Pa.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Pa.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ys(t)))}else r=kS(r,i?Pa.Type_0_has_no_call_signatures:Pa.Type_0_has_no_construct_signatures,Ys(t));let s=i?Pa.This_expression_is_not_callable:Pa.This_expression_is_not_constructable;if(uE(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=Xo(e);t&&32768&t.flags&&(s=Pa.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:kS(r,s),relatedMessage:a?Pa.Did_you_forget_to_use_await:void 0}}function AO(e,t,n,r){const{messageChain:i,relatedMessage:o}=FO(e,t,n),a=Yp(Id(e),e,i);if(o&&DT(a,Gp(e,o)),uE(e.parent)){const{start:t,length:n}=vO(e.parent);a.start=t,a.length=n}so.add(a),IO(t,n,r?DT(a,r):a)}function IO(e,t,n){if(!e.symbol)return;const r=Ko(e.symbol).originatingImport;if(r&&!xf(r)){const i=of(Gl(Ko(e.symbol).target),t);if(!i||!i.length)return;DT(n,Gp(r,Pa.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function OO(e,t,n){const r=qR(e.expression),i=Ep(r);if(Tc(i))return $I(e);const o=of(i,0),a=of(i,1).length;if(DO(r,i,o.length,a))return zI(e);if(s=e,(c=o).length&&C(c,(e=>0===e.minArgumentCount&&!aJ(e)&&e.parameters.length<yO(s,e)))&&!fE(e.expression)){const t=ap(e.expression,!1);return Co(e,Pa._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,t),$I(e)}var s,c;const l=function(e){switch(e.parent.kind){case 263:case 231:return Pa.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return Pa.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return Pa.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return Pa.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return En.fail()}}(e);if(!o.length){const t=FO(e.expression,i,0),n=kS(t.messageChain,l),r=Yp(Id(e.expression),e.expression,n);return t.relatedMessage&&DT(r,Gp(e.expression,t.relatedMessage)),so.add(r),IO(i,0,r),$I(e)}return SO(e,o,t,n,0,l)}function LO(e,t){const n=FA(e),r=n&&es(n),i=r&&Qo(r,MB.Element,788968),o=i&&ue.symbolToEntityName(i,788968,e),a=_w.createFunctionTypeNode(void 0,[_w.createParameterDeclaration(void 0,void 0,"props",void 0,ue.typeToTypeNode(t,e))],o?_w.createTypeReferenceNode(o,void 0):_w.createKeywordTypeNode(133)),s=Io(1,"props");return s.links.type=t,E_(a,void 0,void 0,[s],i?Wu(i):Et,void 0,1,0)}function RO(e,t,n){if(xA(e.tagName)){const t=RA(e),n=LO(e,t);return YS(SR(e.attributes,QF(n,e),void 0,0),t,e.tagName,e.attributes),_(e.typeArguments)&&(d(e.typeArguments,LB),so.add(Xp(Id(e),e.typeArguments,Pa.Expected_0_type_arguments_but_got_1,0,_(e.typeArguments)))),n}const r=qR(e.tagName),i=Ep(r);if(Tc(i))return $I(e);const o=OA(r,e);return DO(r,i,o.length,0)?zI(e):0===o.length?(Co(e.tagName,Pa.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,ap(e.tagName)),$I(e)):SO(e,o,t,n,0)}function MO(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=OP(e.expression);if(kc(r)){for(const t of e.arguments)qR(t);return ii}if(!Tc(r)){const i=Ih(um(e));if(i)return SO(e,ku(r,i.typeArguments,i),t,n,0)}return zI(e)}let r,i=qR(e.expression);if(Al(e)){const t=UC(i,e.expression);r=t===i?0:Rl(e)?16:8,i=t}else r=0;if(i=iI(i,e.expression,rI),i===rn)return si;const o=Ep(i);if(Tc(o))return $I(e);const a=of(o,0),s=of(o,1).length;if(DO(i,o,a.length,s))return!Tc(i)&&e.typeArguments&&Co(e,Pa.Untyped_function_calls_may_not_accept_type_arguments),zI(e);if(!a.length){if(s)Co(e,Pa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ys(i));else{let t;if(1===e.arguments.length){const n=Id(e).text;us(n.charCodeAt(hs(n,e.expression.end,!0)-1))&&(t=Gp(e.expression,Pa.Are_you_missing_a_semicolon))}AO(e.expression,o,0,t)}return $I(e)}return 8&n&&!e.typeArguments&&a.some(wO)?(IR(e,n),ai):a.some((e=>Wm(e.declaration)&&!!Zc(e.declaration)))?(Co(e,Pa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ys(i)),$I(e)):SO(e,a,t,n,r)}(e,t,n);case 214:return NO(e,t,n);case 215:return function(e,t,n){const r=qR(e.tag),i=Ep(r);if(Tc(i))return $I(e);const o=of(i,0),a=of(i,1).length;if(DO(r,i,o.length,a))return zI(e);if(!o.length){if(aE(e.parent)){const t=Gp(e.tag,Pa.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return so.add(t),$I(e)}return AO(e.tag,i,0),$I(e)}return SO(e,o,t,n,0)}
6(e,t,n);case 170:return OO(e,t,n);case 286:case 285:return RO(e,t,n);case 226:return function(e,t,n){const r=qR(e.right);if(!kc(r)){const i=_R(r);if(i){const r=Ep(i);if(Tc(r))return $I(e);const o=of(r,0),a=of(r,1);if(DO(i,r,o.length,a.length))return zI(e);if(o.length)return SO(e,o,t,n,0)}else if(!NJ(r)&&!RS(r,Xn))return Co(e.right,Pa.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),$I(e)}return ii}(e,t,n)}En.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function jO(e,t,n){const r=Xo(e),i=r.resolvedSignature;if(i&&i!==ai&&!t)return i;const o=Mi;i||(Mi=Oi.length),r.resolvedSignature=ai;let a=MO(e,t,n||0);return Mi=o,a!==ai&&(r.resolvedSignature!==ai&&(a=r.resolvedSignature),r.resolvedSignature=yi===vi?a:i),a}function BO(e){var t;if(!e||!Wm(e))return!1;const n=sP(e)||mE(e)?e:(oP(e)||YP(e))&&e.initializer&&mE(e.initializer)?e.initializer:void 0;if(n){if(Zc(e))return!0;if(YP(hh(n.parent)))return!1;const r=os(n);return!!(null==(t=null==r?void 0:r.members)?void 0:t.size)}return!1}function JO(e,t){var n,r;if(t){const i=Ko(t);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(eJ(e))){const o=dd(e)?e:jo(e);return o.exports=o.exports||_d(),o.members=o.members||_d(),o.flags|=32&t.flags,(null==(n=t.exports)?void 0:n.size)&&Wo(o.exports,t.exports),(null==(r=t.members)?void 0:r.size)&&Wo(o.members,t.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new Map)).set(eJ(o),o),o}return i.inferredClassSymbol.get(eJ(e))}}function UO(e,t){if(!e.parent)return;let n,r;if(oP(e.parent)&&e.parent.initializer===e){if(!(Wm(e)||YU(e.parent)&&xu(e)))return;n=e.parent.name,r=e.parent}else if(kE(e.parent)){const i=e.parent,o=e.parent.operatorToken.kind;if(64!==o||!t&&i.right!==e){if(!(57!==o&&61!==o||(oP(i.parent)&&i.parent.initializer===i?(n=i.parent.name,r=i.parent):kE(i.parent)&&64===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=i.parent.left,r=n),n&&kg(n)&&dg(n,i.left))))return}else n=i.left,r=n}else t&&sP(e)&&(n=e.name,r=e);return r&&n&&(t||lg(e,Lb(n)))?as(r):void 0}function qO(e,t){var n,r,i,o;if(!(128&e.flags)&&e.declaration&&536870912&e.declaration.flags){const a=zO(t),s=Ob(wm(t));n=a,r=e.declaration,i=s,o=Gs(e),Eo(r,i?Gp(n,Pa.The_signature_0_of_1_is_deprecated,o,i):Gp(n,Pa._0_is_deprecated,o))}}function zO(e){switch((e=bh(e)).kind){case 213:case 170:case 214:return zO(e.expression);case 215:return zO(e.tag);case 286:case 285:return zO(e.tagName);case 212:return e.argumentExpression;case 211:return e.name;case 183:const t=e;return hN(t.typeName)?t.typeName.right:t;default:return e}}function $O(e){if(!uE(e))return!1;let t=e.expression;if(cE(t)&&"for"===t.name.escapedText&&(t=t.expression),!nN(t)||"Symbol"!==t.escapedText)return!1;const n=ky(!1);return!!n&&n===Me(t,"Symbol",111551,void 0,!1)}function VO(e){if(function(e){if(I.verbatimModuleSyntax&&1===B)return zU(e,Pa.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===B)return zU(e,Pa.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return zU(e,Pa.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==B&&199!==B&&100!==B&&(vU(t),t.length>1))return zU(t[1],Pa.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===t.length||t.length>2)return zU(e,Pa.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=w(t,DE);n&&zU(n,Pa.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return UL(e,Ct);const t=e.arguments[0],n=kR(t),r=e.arguments.length>1?kR(e.arguments[1]):void 0;for(let o=2;o<e.arguments.length;++o)kR(e.arguments[o]);if((32768&n.flags||65536&n.flags||!jS(n,zt))&&Co(t,Pa.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ys(n)),r){const t=xy(!0);t!==Nn&&QS(r,mC(t,32768),e.arguments[1])}const i=qa(e,t);if(i){const n=Ha(i,t,!0,!1);if(n)return UL(e,HO(Gl(n),n,i,t)||KO(Gl(n),n,i,t))}return UL(e,Ct)}function WO(e,t,n){const r=_d(),i=Io(2097152,"default");return i.parent=t,i.links.nameType=Tx("default"),i.links.aliasTarget=Aa(e),r.set("default",i),Ns(n,r,c,c,c)}function HO(e,t,n,r){if(ba(r)&&e&&!Tc(e)){const r=e;if(!r.defaultOnlyType){const e=WO(t,n);r.defaultOnlyType=e}return r.defaultOnlyType}}function KO(e,t,n,r){var i;if(W&&e&&!Tc(e)){const o=e;if(!o.syntheticType)if(xa(null==(i=n.declarations)?void 0:i.find(nF),n,!1,r)){const r=Io(2048,"__type"),i=WO(t,n,r);r.links.type=i,o.syntheticType=gA(e)?hx(e,i,r,0,!1):i}else o.syntheticType=e;return o.syntheticType}return e}function GO(e){if(!Qm(e,!0))return!1;if(!nN(e.expression))return En.fail();
6const t=Me(e.expression,e.expression.escapedText,111551,void 0,!0);if(t===we)return!0;if(2097152&t.flags)return!1;const n=16&t.flags?262:3&t.flags?260:0;if(0!==n){const e=ld(t,n);return!!e&&!!(33554432&e.flags)}return!1}function XO(e){(function(e){return!!(e.questionDotToken||64&e.flags)&&zU(e.template,Pa.Tagged_template_expressions_are_not_permitted_in_an_optional_chain)})(e)||kU(e,e.typeArguments),R<2&&mU(e,262144);const t=jO(e);return qO(t,e),sm(t)}function QO(e){switch(e.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return QO(e.expression);case 224:const t=e.operator,n=e.operand;return 41===t&&(9===n.kind||10===n.kind)||40===t&&9===n.kind;case 211:case 212:const r=bh(e.expression),i=Pb(r)?Ja(r,111551,!0):void 0;return!!(i&&384&i.flags)}return!1}function YO(e,t){const{type:n,expression:r}=ZO(e),i=qR(r,t);return jl(n)?(QO(r)||Co(r,Pa.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Sx(i)):(Xo(e).assertionExpressionType=i,LB(n),UB(e),Mx(n))}function ZO(e){let t,n;switch(e.kind){case 234:case 216:t=e.type,n=e.expression;break;case 217:t=bA(e),n=e.expression}return{type:t,expression:n}}function eL(e){return 64&e.flags?function(e){const t=qR(e.expression),n=UC(t,e.expression);return JC(wC(n),e,n!==t)}(e):wC(qR(e.expression))}function tL(e){if(CU(e),d(e.typeArguments,LB),233===e.kind){const t=hh(e.parent);226===t.kind&&104===t.operatorToken.kind&&Sh(e,t.right)&&Co(e,Pa.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}return nL(233===e.kind?qR(e.expression):Ev(e.exprName)?AP(e.exprName):qR(e.exprName),e)}function nL(e,t){const n=t.typeArguments;if(e===rn||Tc(e)||!te(n))return e;let r,i=!1;const o=function e(n){let o=!1,a=!1;const c=l(n);return i||(i=a),o&&!a&&(null!=r||(r=n)),c;function l(n){if(524288&n.flags){const e=Wd(n),r=s(e.callSignatures),i=s(e.constructSignatures);if(o||(o=0!==e.callSignatures.length||0!==e.constructSignatures.length),a||(a=0!==r.length||0!==i.length),r!==e.callSignatures||i!==e.constructSignatures){const n=Ns(Io(0,"__instantiationExpression"),e.members,r,i,e.indexInfos);return n.objectFlags|=8388608,n.node=t,n}}else if(58982400&n.flags){const e=op(n);if(e){const t=l(e);if(t!==e)return t}}else{if(1048576&n.flags)return HD(n,e);if(2097152&n.flags)return kv(J(n.types,l))}return n}}(e),a=i?r:e;return a&&so.add(Xp(Id(t),n,Pa.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Ys(a))),o;function s(e){return J(L(e,(e=>!!e.typeParameters&&XI(e,n))),(e=>{const t=uO(e,n,!0);return t?Em(e,t,Wm(e.declaration)):e}))}}function rL(e,t,n){const r=qR(e,n),i=Mx(t);return Tc(i)?i:(YS(r,i,wc(t.parent,(e=>238===e.kind||350===e.kind)),e,Pa.Type_0_does_not_satisfy_the_expected_type_1),r)}function iL(e){return function(e){const t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return zU(e.name,Pa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Pc(e.name.escapedText),Ga(e.keywordToken),"target");break;case 102:"meta"!==t&&zU(e.name,Pa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Pc(e.name.escapedText),Ga(e.keywordToken),"meta")}}(e),105===e.keywordToken?aL(e):102===e.keywordToken?function(e){100===B||199===B?99!==Id(e).impliedNodeFormat&&Co(e,Pa.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):B<6&&4!==B&&Co(e,Pa.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const t=Id(e);return En.assert(!!(8388608&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?py():Et}(e):En.assertNever(e.keywordToken)}function oL(e){switch(e.keywordToken){case 102:return my();case 105:const t=aL(e);return Tc(t)?Et:function(e){const t=Io(0,"NewTargetExpression"),n=Io(4,"target",8);n.parent=t,n.links.type=e;const r=_d([n]);return t.members=r,Ns(t,r,c,c,c)}(t);default:En.assertNever(e.keywordToken)}}function aL(e){const t=hm(e);return t?176===t.kind?Gl(os(t.parent)):Gl(os(t)):(Co(e,Pa.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et)}function sL(e){const t=e.valueDeclaration;return Yc(Gl(e),!1,!!t&&(H_(t)||hC(t)))}function cL(e,t,n="arg"){return e?(En.assert(nN(e.name)),e.name.escapedText):`${n}_${t}`}
6function lL(e,t,n){const r=e.parameters.length-(aJ(e)?1:0);if(t<r)return e.parameters[t].escapedName;const i=e.parameters[r]||bt,o=n||Gl(i);if(KT(o)){const e=o.target.labeledElementDeclarations,n=t-r;return cL(null==e?void 0:e[n],n,i.escapedName)}return i.escapedName}function uL(e){return e.valueDeclaration&&bN(e.valueDeclaration)&&nN(e.valueDeclaration.name)&&e.valueDeclaration.name}function _L(e){return 202===e.kind||bN(e)&&e.name&&nN(e.name)}function dL(e,t){const n=e.parameters.length-(aJ(e)?1:0);if(t<n){const n=e.parameters[t].valueDeclaration;return n&&_L(n)?n:void 0}const r=e.parameters[n]||bt,i=Gl(r);if(KT(i)){const e=i.target.labeledElementDeclarations;return e&&e[t-n]}return r.valueDeclaration&&_L(r.valueDeclaration)?r.valueDeclaration:void 0}function pL(e,t){return fL(e,t)||Ct}function fL(e,t){const n=e.parameters.length-(aJ(e)?1:0);if(t<n)return sL(e.parameters[t]);if(aJ(e)){const r=Gl(e.parameters[n]),i=t-n;if(!KT(r)||r.target.hasRestElement||i<r.target.fixedLength)return Xb(r,Cx(i))}}function mL(e,t,n){const r=hL(e),i=yL(e),o=bL(e);if(o&&t>=r-1)return t===r-1?o:jy(Xb(o,$t));const a=[],s=[],c=[];for(let l=t;l<r;l++)!o||l<r-1?(a.push(pL(e,l)),s.push(l<i?1:2)):(a.push(o),s.push(8)),c.push(dL(e,l));return Hy(a,s,n,c)}function gL(e,t){const n=mL(e,t),r=n&&lT(n);return r&&kc(r)?Ct:n}function hL(e){const t=e.parameters.length;if(aJ(e)){const n=Gl(e.parameters[t-1]);if(KT(n))return t+n.target.fixedLength-(n.target.hasRestElement?0:1)}return t}function yL(e,t){const n=1&t,r=2&t;if(r||void 0===e.resolvedMinArgumentCount){let t;if(aJ(e)){const n=Gl(e.parameters[e.parameters.length-1]);if(KT(n)){const r=N(n.target.elementFlags,(e=>!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&$D(pL(e,n),HI).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function vL(e){if(aJ(e)){const t=Gl(e.parameters[e.parameters.length-1]);return!KT(t)||t.target.hasRestElement}return!1}function bL(e){if(aJ(e)){const t=Gl(e.parameters[e.parameters.length-1]);if(!KT(t))return kc(t)?ar:t;if(t.target.hasRestElement)return Zy(t,t.target.fixedLength)}}function xL(e){const t=bL(e);return!t||oT(t)||kc(t)?void 0:t}function SL(e){return kL(e,nn)}function kL(e,t){return e.parameters.length>0?pL(e,0):t}function TL(e,t,n){const r=e.parameters.length-(aJ(e)?1:0);for(let i=0;i<r;i++){const r=e.parameters[i].valueDeclaration,o=Ov(r);if(o){const e=Yc(Mx(o),!1,hC(r)),a=pL(t,i);jw(n.inferences,e,a)}}}function CL(e,t){const n=Ko(e);if(n.type)t&&En.assertEqual(n.type,t,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;n.type=Yc(t||(r?yl(r,!0):Gl(e)),!1,!!r&&!r.initializer&&hC(r)),r&&80!==r.name.kind&&(n.type===It&&(n.type=ml(r.name)),wL(r.name,n.type))}}function wL(e,t){for(const n of e.elements)if(!EE(n)){const e=Kc(n,t,!1);80===n.name.kind?Ko(os(n)).type=e:wL(n.name,e)}}function DL(e){return Bg((t=!0,null!=(n=null!=$r?$r:$r=dy("ClassDecoratorContext",1,t))?n:Ln),[e]);var t,n}function NL(e,t){return Bg((n=!0,null!=(r=null!=Vr?Vr:Vr=dy("ClassMethodDecoratorContext",2,n))?r:Ln),[e,t]);var n,r}function EL(e,t){return Bg((n=!0,null!=(r=null!=Wr?Wr:Wr=dy("ClassGetterDecoratorContext",2,n))?r:Ln),[e,t]);var n,r}function PL(e,t){return Bg((n=!0,null!=(r=null!=Hr?Hr:Hr=dy("ClassSetterDecoratorContext",2,n))?r:Ln),[e,t]);var n,r}function FL(e,t){return Bg((n=!0,null!=(r=null!=Kr?Kr:Kr=dy("ClassAccessorDecoratorContext",2,n))?r:Ln),[e,t]);var n,r}function AL(e,t){return Bg((n=!0,null!=(r=null!=Qr?Qr:Qr=dy("ClassFieldDecoratorContext",2,n))?r:Ln),[e,t]);var n,r}function IL(e,t,n){const r=Yv(e),i=rN(e.name),o=i?Tx(Fc(e.name)):qv(e.name),a=CN(e)?NL(t,n):NN(e)?EL(t,n):EN(e)?PL(t,n):Eu(e)?FL(t,n):kN(e)?AL(t,n):En.failBadSyntaxKind(e),s=function(e,t,n){const r=`${t?"p":"P"}${n?"s":"S"}${e.id}`;let i=_t.get(r);if(!i){const o=_d();o.set("name",Lo("name",e)),o.set("private",Lo("private",t?Kt:Wt)),o.set("static",Lo("static",n?Kt:Wt)),i=Ns(void 0,o,c,c,c),_t.set(r,i)}return i}(o,i,r);return kv([a,s])}function OL(e,t){return Bg((n=!0,null!=(r=null!=Gr?Gr:Gr=dy("ClassAccessorDecoratorTarget",2,n))?r:Ln),[e,t]);var n,r}function LL(e,t){return Bg((n=!0,null!=(r=null!=Xr?Xr:Xr=dy("ClassAccessorDecoratorResult",2,n))?r:Ln),[e,t]);var n,r}function RL(e,t,n){return CM(void 0,void 0,[Oo("target",e),Oo("context",t)],mv([n,en]))}function ML(e){const{parent:t}=e,n=Xo(t);if(!n.decoratorSignature)switch(n.decoratorSignature=ii,t.kind){case 263:case 231:{const e=Gl(os(t)),r=DL(e);n.decoratorSignature=RL(e,r,e);break}case 174:case 177:case 178:{const e=t;if(!Du(e.parent))break;const r=CN(e)?tg(jf(e)):SJ(e),i=Yv(e)?Gl(os(e.parent)):Lu(os(e.parent)),o=NN(e)?DM(r):EN(e)?NM(r):r,a=IL(e,i,r),s=NN(e)?DM(r):EN(e)?NM(r):r;n.decoratorSignature=RL(o,a,s);break}case 172:{const e=t;if(!Du(e.parent))break;const r=SJ(e),i=Yv(e)?Gl(os(e.parent)):Lu(os(e.parent)),o=nb(e)?OL(i,r):Lt,a=IL(e,i,r),s=nb(e)?LL(i,r):function(e,t){return wM(void 0,Oo("this",e),[Oo("value",t)],t,void 0,1)}(i,r);
6n.decoratorSignature=RL(o,a,s);break}}return n.decoratorSignature===ii?void 0:n.decoratorSignature}function jL(e){return z?function(e){const{parent:t}=e,n=Xo(t);if(!n.decoratorSignature)switch(n.decoratorSignature=ii,t.kind){case 263:case 231:{const e=Gl(os(t)),r=Oo("target",e);n.decoratorSignature=CM(void 0,void 0,[r],mv([e,en]));break}case 169:{const e=t;if(!DN(e.parent)&&!(CN(e.parent)||EN(e.parent)&&Du(e.parent.parent)))break;if(Dv(e.parent)===e)break;const r=Dv(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);En.assert(r>=0);const i=DN(e.parent)?Gl(os(e.parent.parent)):CJ(e.parent),o=DN(e.parent)?Lt:wJ(e.parent),a=Cx(r),s=Oo("target",i),c=Oo("propertyKey",o),l=Oo("parameterIndex",a);n.decoratorSignature=CM(void 0,void 0,[s,c,l],en);break}case 174:case 177:case 178:case 172:{const e=t;if(!Du(e.parent))break;const r=Oo("target",CJ(e)),i=Oo("propertyKey",wJ(e)),o=kN(e)?en:Ry(SJ(e));if(!kN(t)||nb(t)){const t=Oo("descriptor",Ry(SJ(e)));n.decoratorSignature=CM(void 0,void 0,[r,i,t],mv([o,en]))}else n.decoratorSignature=CM(void 0,void 0,[r,i],mv([o,en]));break}}return n.decoratorSignature===ii?void 0:n.decoratorSignature}(e):ML(e)}function BL(e){const t=Cy(!0);return t!==Ln?$g(t,[e=kM(vM(e))||It]):It}function JL(e){const t=wy(!0);return t!==Ln?$g(t,[e=kM(vM(e))||It]):It}function UL(e,t){const n=BL(t);return n===It?(Co(e,xf(e)?Pa.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Pa.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(Dy(!0)||Co(e,xf(e)?Pa.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Pa.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function qL(e,t){if(!e.body)return Et;const n=Qh(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=en;if(241!==e.body.kind)o=kR(e.body,t&&-9&t),r&&(o=vM(gM(o,!1,e,Pa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=KL(e,t);n?n.length>0&&(o=mv(n,2)):c=nn;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Qh(e));return Uf(e.body,(e=>{const o=e.expression?qR(e.expression,t):Rt;let a;if(ye(n,$L(e,o,Ct,i)),e.asteriskToken){const t=kj(o,i?19:17,e.expression);a=t&&t.nextType}else a=$F(e,void 0);a&&ye(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=te(r)?mv(r,2):void 0,s=te(i)?kv(i):void 0}else{const r=KL(e,t);if(!r)return 2&n?UL(e,nn):nn;if(0===r.length){const t=lF(e,void 0),r=t&&32768&($j(t,n)||en).flags?Lt:en;return 2&n?UL(e,r):r}o=mv(r,2)}if(o||a||s){if(a&&iw(e,a,3),o&&iw(e,o,1),s&&iw(e,s,2),o&&xT(o)||a&&xT(a)||s&&xT(s)){const t=nA(e),n=t?t===jf(e)?i?void 0:o:JF(sm(t),e,void 0):void 0;i?(a=VT(a,n,0,r),o=VT(o,n,1,r),s=VT(s,n,2,r)):o=function(e,t,n){return e&&xT(e)&&(e=zT(e,t?n?mM(t):t:void 0)),e}(o,n,r)}a&&(a=ew(a)),o&&(o=ew(o)),s&&(s=ew(s))}return i?zL(a||nn,o||c,s||cF(2,e)||It,r):r?BL(o||c):o||c}function zL(e,t,n,r){const i=r?fi:mi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||It,t=i.resolveIterationType(t,void 0)||It,n=i.resolveIterationType(n,void 0)||It,o===Ln){const r=i.getGlobalIterableIteratorType(!1),o=r!==Ln?Dj(r,i):void 0,a=o?o.returnType:Ct,s=o?o.nextType:Lt;return jS(t,a)&&jS(s,n)?r!==Ln?Ly(r,[e]):(i.getGlobalIterableIteratorType(!0),Nn):(i.getGlobalGeneratorType(!0),Nn)}return Ly(o,[e,t,n])}function $L(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?gj(r?19:17,t,n,i):t;return r?SM(o,i,e.asteriskToken?Pa.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Pa.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function VL(e,t,n){let r=0;for(let i=0;i<n.length;i++){const o=i<e||i>=t?n[i]:void 0;r|=void 0!==o?WB.get(o)||32768:0}return r}function WL(e){const t=Xo(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=jD(e);if(!t)return!1;const n=sp(kR(e.expression.expression)),r=VL(0,0,t);return 3&n.flags?!(556800&~r):!qD(n,(e=>gD(e,r)===r))}const t=kR(e.expression);if(!CT(t))return!1;const n=RD(e);return!(!n.length||te(n,bT))&&(r=HD(t,Sx),i=n,1048576&r.flags?!d(r.types,(e=>!F(i,e))):F(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function HL(e){return e.endFlowNode&&dN(e.endFlowNode)}function KL(e,t){const n=Qh(e),r=[];let i=HL(e),o=!1;if(Jf(e.body,(a=>{let s=a.expression;if(s){if(s=bh(s,!0),2&n&&223===s.kind&&(s=bh(s.expression,!0)),213===s.kind&&80===s.expression.kind&&kR(s.expression).symbol===is(e.symbol)&&(!iC(e.symbol.valueDeclaration)||AN(s.expression)))return void(o=!0);let i=kR(s,t&&-9&t);2&n&&(i=vM(gM(i,!1,e,Pa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),ye(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(K&&r.length&&i)||BO(e)&&r.some((t=>t.symbol===e.symbol))||ye(r,Lt),r}function GL(e,t){a((function(){const n=Qh(e),r=t&&$j(t,n);
6if(r&&(aR(r,16384)||32769&r.flags))return;if(173===e.kind||Ud(e.body)||241!==e.body.kind||!HL(e))return;const i=1024&e.flags,o=Rv(e)||e;if(r&&131072&r.flags)Co(o,Pa.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)Co(o,Pa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&K&&!jS(Lt,r))Co(o,Pa.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(I.noImplicitReturns){if(!r){if(!i)return;const t=sm(jf(e));if(Vj(e,t))return}Co(o,Pa.Not_all_code_paths_return_a_value)}}))}function XL(e,t){if(En.assert(174!==e.kind||Zf(e)),UB(e),mE(e)&&nj(e,e.name),t&&4&t&&NS(e)){if(!Rv(e)&&!tC(e)){const n=rA(e);if(n&&gw(sm(n))){const n=Xo(e);if(n.contextFreeType)return n.contextFreeType;const r=qL(e,t),i=E_(void 0,void 0,void 0,c,r,void 0,0,64),o=Ns(e.symbol,T,[i],c,c);return o.objectFlags|=262144,n.contextFreeType=o}}return Rn}return SU(e)||218!==e.kind||DU(e),function(e,t){const n=Xo(e);if(!(64&n.flags)){const r=rA(e);if(!(64&n.flags)){n.flags|=64;const i=Pe(of(Gl(os(e)),0));if(!i)return;if(NS(e))if(r){const n=XF(e);let o;if(t&&2&t){TL(i,r,n);const e=bL(r);e&&262144&e.flags&&(o=aS(r,n.nonFixingMapper))}o||(o=n?aS(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=HC(t.thisParameter,void 0)),CL(e.thisParameter,Gl(t.thisParameter)))}const n=e.parameters.length-(aJ(e)?1:0);for(let r=0;r<n;r++){const n=e.parameters[r],i=n.valueDeclaration;if(!Ov(i)){let e=fL(t,r);if(e&&i.initializer){let t=CR(i,0);!jS(t,e)&&jS(e,t=wR(i,t))&&(e=t)}CL(n,e)}}if(aJ(e)){const r=Le(e.parameters);(r.valueDeclaration?!Ov(r.valueDeclaration):65536&wx(r))&&CL(r,mL(t,n))}}(i,o)}else!function(e){e.thisParameter&&CL(e.thisParameter);for(const t of e.parameters)CL(t)}(i);else if(r&&!e.typeParameters&&r.parameters.length>e.parameters.length){const n=XF(e);t&&2&t&&TL(i,r,n)}if(r&&!lm(e)&&!i.resolvedReturnType){const n=qL(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}WR(e)}}}(e,t),Gl(os(e))}function QL(e,t,n,r=!1){if(!jS(t,_n)){const i=r&&fM(t);return No(e,!!i&&jS(i,_n),n),!1}return!0}function YL(e){if(!uE(e))return!1;if(!yg(e))return!1;const t=kR(e.arguments[2]);if(bc(t,"value")){const e=ef(t,"writable"),n=e&&Gl(e);if(!n||n===Wt||n===Ht)return!0;if(e&&e.valueDeclaration&&YP(e.valueDeclaration)){const t=qR(e.valueDeclaration.initializer);if(t===Wt||t===Ht)return!0}return!1}return!ef(t,"set")}function ZL(e){return!!(8&wx(e)||4&e.flags&&8&Dx(e)||3&e.flags&&6&KA(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||te(e.declarations,YL))}function eR(e,t,n){var r,i;if(0===n)return!1;if(ZL(t)){if(4&t.flags&&Hx(e)&&110===e.expression.kind){const n=cm(e);if(!n||176!==n.kind&&!BO(n))return!0;if(t.valueDeclaration){const e=kE(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(Hx(e)){const t=bh(e.expression);if(80===t.kind){const e=Xo(t).resolvedSymbol;if(2097152&e.flags){const t=_a(e);return!!t&&274===t.kind}}}return!1}function tR(e,t,n){const r=SA(e,7);return 80===r.kind||Hx(r)?!(64&r.flags&&(Co(e,n),1)):(Co(e,t),!1)}function nR(e){qR(e.expression);const t=bh(e.expression);if(!Hx(t))return Co(t,Pa.The_operand_of_a_delete_operator_must_be_a_property_reference),Qt;cE(t)&&rN(t.name)&&Co(t,Pa.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const n=ms(Xo(t).resolvedSymbol);return n&&(ZL(n)?Co(t,Pa.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,t){const n=Gl(t);!K||131075&n.flags||(se?16777216&t.flags:hD(n,16777216))||Co(e,Pa.The_operand_of_a_delete_operator_must_be_optional)}(t,n)),Qt}function rR(e){let t=!1;const n=dm(e);if(n&&wN(n))Co(e,bE(e)?Pa.await_expression_cannot_be_used_inside_a_class_static_block:Pa.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(gm(e)){const n=Id(e);if(!JU(n)){let r;if(!Np(n,I)){null!=r||(r=sf(n,e.pos));const i=bE(e)?Pa.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Pa.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=vS(n,r.start,r.length,i);so.add(o),t=!0}
6switch(B){case 100:case 199:if(1===n.impliedNodeFormat){null!=r||(r=sf(n,e.pos)),so.add(vS(n,r.start,r.length,Pa.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(R>=4)break;default:null!=r||(r=sf(n,e.pos));const i=bE(e)?Pa.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Pa.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;so.add(vS(n,r.start,r.length,i)),t=!0}}}else{const r=Id(e);if(!JU(r)){const i=sf(r,e.pos),o=bE(e)?Pa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Pa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=vS(r,i.start,i.length,o);!n||176===n.kind||2&Qh(n)||DT(a,Gp(n,Pa.Did_you_mean_to_mark_this_function_as_async)),so.add(a),t=!0}}return bE(e)&&sF(e)&&(Co(e,Pa.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function iR(e){return aR(e,2112)?sR(e,3)||aR(e,296)?_n:Vt:$t}function oR(e,t){if(aR(e,t))return!0;const n=sp(e);return!!n&&aR(n,t)}function aR(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(aR(e,t))return!0}return!1}function sR(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&jS(e,$t)||!!(2112&t)&&jS(e,Vt)||!!(402653316&t)&&jS(e,zt)||!!(528&t)&&jS(e,Qt)||!!(16384&t)&&jS(e,en)||!!(131072&t)&&jS(e,nn)||!!(65536&t)&&jS(e,Ut)||!!(32768&t)&&jS(e,Lt)||!!(4096&t)&&jS(e,Yt)||!!(67108864&t)&&jS(e,cn))}function cR(e,t,n){return 1048576&e.flags?C(e.types,(e=>cR(e,t,n))):sR(e,t,n)}function lR(e){return!!(16&Bx(e))&&!!e.symbol&&uR(e.symbol)}function uR(e){return!!(128&e.flags)}function _R(e){const t=Ej("hasInstance");if(cR(e,67108864)){const n=ef(e,t);if(n){const e=Gl(n);if(e&&0!==of(e,0).length)return e}}}function dR(e,t,n,r){return n===rn||r===rn?rn:(rN(e)?((R<9||R<99||!$)&&mU(e,2097152),!Xo(e).resolvedSymbol&&um(e)&&xI(e,r,hI(e,r.symbol,!0))):QS(oI(n,e),un,e),QS(oI(r,t),cn,t)&&qD(r,(e=>e===In||!!(2097152&e.flags)&&xk(sp(e))))&&Co(t,Pa.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Ys(r)),Qt)}function pR(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=qv(e);if(NC(n)){const e=ef(t,EC(n));e&&(OI(e,a,i),XA(a,!1,!0,t,e))}const r=Bc(a,Xb(t,n,32,e));return mR(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(n<o.length-1)){R<5&&mU(a,4);const e=[];if(r)for(const t of r)eF(t)||e.push(t.name);const n=Oc(t,e,t.symbol);return vU(r,Pa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),mR(a.expression,n)}Co(a,Pa.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Co(a,Pa.Property_assignment_expected)}function fR(e,t,n,r,i){const o=e.elements,a=o[n];if(232!==a.kind){if(230!==a.kind){const e=Cx(n);if(uT(t)){const n=Yb(t,e,32|(oA(a)?16:0),gO(a,e))||Et;return mR(a,Bc(a,oA(a)?vD(n,524288):n),i)}return mR(a,r,i)}if(n<o.length-1)Co(a,Pa.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const o=a.expression;if(226!==o.kind||64!==o.operatorToken.kind)return vU(e.elements,Pa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),mR(o,zD(t,KT)?HD(t,(e=>Zy(e,n))):jy(r),i);Co(o.operatorToken,Pa.A_rest_element_cannot_have_an_initializer)}}}function mR(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(K&&!hD(qR(r.objectAssignmentInitializer),16777216)&&(t=vD(t,524288)),function(e,t,n,r,i){const o=t.kind;if(64===o&&(210===e.kind||209===e.kind))return mR(e,qR(n,r),r,110===n.kind);let a;a=xb(o)?pj(e,r):qR(e,r);const s=qR(n,r);yR(e,t,n,a,s,r,i)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(ce(i,n),i=i.left,K&&(t=vD(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(K&&0===r.length)return oI(t,e);for(let i=0;i<r.length;i++)pR(e,t,i,r,n);return t}(i,t,r):209===i.kind?function(e,t,n){const r=e.elements;R<2&&I.downlevelIteration&&mU(e,512);const i=gj(193,t,Lt,e)||Et;let o=I.noUncheckedIndexedAccess?void 0:i;for(let a=0;a<r.length;a++){let r=i;230===e.elements[a].kind&&(r=o=null!=o?o:gj(65,t,Lt,e)||Et),fR(e,t,a,r,n)}return t}(i,t,n):function(e,t,n){const r=qR(e,n),i=305===e.parent.kind?Pa.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Pa.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,o=305===e.parent.kind?Pa.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Pa.The_left_hand_side_of_an_assignment_expression_may_
6not_be_an_optional_property_access;return tR(e,i,o)&&YS(t,r,e,e),_u(e)&&mU(e.parent,1048576),t}(i,t,n)}function gR(e){switch((e=bh(e)).kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return gR(e.whenTrue)&&gR(e.whenFalse);case 226:return!kb(e.operatorToken.kind)&&gR(e.left)&&gR(e.right);case 224:case 225:switch(e.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function hR(e,t){return!!(98304&t.flags)||WS(e,t)}function yR(e,t,n,r,i,o,s){const c=t.kind;switch(c){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(r===rn||i===rn)return rn;let a;if(r=oI(r,e),i=oI(i,n),528&r.flags&&528&i.flags&&void 0!==(a=function(e){switch(e){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}(t.kind)))return Co(s||t,Pa.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Ga(t.kind),Ga(a)),$t;{const t=QL(e,r,Pa.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),o=QL(n,i,Pa.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let a;if(sR(r,3)&&sR(i,3)||!aR(r,2112)&&!aR(i,2112))a=$t;else if(_(r,i)){switch(c){case 50:case 73:m();break;case 43:case 68:R<3&&Co(s,Pa.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}a=Vt}else m(_),a=Et;return t&&o&&p(a),a}case 40:case 65:if(r===rn||i===rn)return rn;let h;if(sR(r,402653316)||sR(i,402653316)||(r=oI(r,e),i=oI(i,n)),sR(r,296,!0)&&sR(i,296,!0)?h=$t:sR(r,2112,!0)&&sR(i,2112,!0)?h=Vt:sR(r,402653316,!0)||sR(i,402653316,!0)?h=zt:(kc(r)||kc(i))&&(h=Tc(r)||Tc(i)?Et:Ct),h&&!d(c))return h;if(!h){const e=402655727;return m(((t,n)=>sR(t,e)&&sR(n,e))),Ct}return 65===c&&p(h),h;case 30:case 32:case 33:case 34:return d(c)&&(r=IT(oI(r,e)),i=IT(oI(i,n)),f(((e,t)=>{if(kc(e)||kc(t))return!0;const n=jS(e,_n),r=jS(t,_n);return n&&r||!n&&!r&&HS(e,t)}))),Qt;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Ql(e)||Ql(n))&&(!Wm(e)||37===c||38===c)){const e=35===c||37===c;Co(s,Pa.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(bh(n)),o=g(bh(r));if(i||o){const a=Co(e,Pa.This_condition_will_always_return_0,Ga(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Ga(54):"",c=i?r:n,l=bh(c);DT(a,Gp(c,Pa.Did_you_mean_0,`${s}Number.isNaN(${Pb(l)?Kp(l):"..."})`))}}(s,c,e,n),f(((e,t)=>hR(e,t)||hR(t,e)))}return Qt;case 104:return function(e,t,n,r,i){if(n===rn||r===rn)return rn;!kc(n)&&cR(n,402784252)&&Co(e,Pa.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),En.assert(Bb(e.parent));const o=jO(e.parent,void 0,i);return o===ai?rn:(QS(sm(o),Qt,t,Pa.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Qt)}(e,n,r,i,o);case 103:return dR(e,n,r,i);case 56:case 77:{const e=hD(r,4194304)?mv([(u=K?r:wT(i),HD(u,uC)),i]):r;return 77===c&&p(i),e}case 57:case 76:{const e=hD(r,8388608)?mv([wC(lC(r)),i],2):r;return 76===c&&p(i),e}case 61:case 78:{const e=hD(r,262144)?mv([wC(r),i],2):r;return 78===c&&p(i),e}case 64:const y=kE(e.parent)?hg(e.parent):0;return function(e,t){if(2===e)for(const n of Hd(t)){const e=Gl(n);if(e.symbol&&32&e.symbol.flags){const e=n.escapedName,t=Me(n.valueDeclaration,e,788968,void 0,!1);(null==t?void 0:t.declarations)&&t.declarations.some(BF)&&(Uo(t,Pa.Duplicate_identifier_0,Pc(e),n),Uo(n,Pa.Duplicate_identifier_0,Pc(e),t))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=as(e),i=cg(n);return!!i&&sE(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||bk(i)||mD(i)||1&Bx(i))||p(i),r):(p(i),i);case 28:if(!I.allowUnreachableCode&&gR(e)&&!(217===(l=e.parent).parent.kind&&MD(l.left)&&"0"===l.left.text&&(uE(l.parent.parent)&&l.parent.parent.expression===l.parent||215===l.parent.parent.kind)&&(Hx(l.right)||nN(l.right)&&"eval"===l.right.escapedText))){const t=Id(e),n=hs(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===Pa.JSX_expressions_must_have_one_parent_element.code&&Xs(e,n)))||Co(e,Pa.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return En.fail()}var l,u;function _(e,t){return sR(e,2112)&&sR(t,2112)}function d(t){const o=oR(r,12288)?e:oR(i,12288)?n:void 0;return!o||(Co(o,Pa.The_0_operator_cannot_be_applied_to_type_symbol,Ga(t)),!1)}function p(i){kb(c)&&a((function(){let o=r;if(nU(t.kind)&&211===e.kind&&(o=sI(e,void 0,!0)),tR(e,Pa.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,Pa.The_left_hand_side_of_an_assignment_expression_may_
6not_be_an_optional_property_access)){let t;if(se&&cE(e)&&aR(i,32768)){const n=bc(BR(e.expression),e.name.escapedText);Ok(i,n)&&(t=Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}YS(i,o,e,n,t)}}))}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=s||t;if(e){const t=kM(r),o=kM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=wT(e),a=wT(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,u]=Zs(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return No(e,n,Pa.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,u)||No(o,n,Pa.Operator_0_cannot_be_applied_to_types_1_and_2,Ga(t.kind),l,u)}function g(e){if(nN(e)&&"NaN"===e.escapedText){const t=qr||(qr=ey("NaN",!1));return!!t&&t===Qw(e)}return!1}}function vR(e){const t=e.parent;return fE(t)&&vR(t)||lE(t)&&t.argumentExpression===e}function bR(e){const t=[e.head.text],n=[];for(const i of e.templateSpans){const e=qR(i.expression);oR(e,12288)&&Co(i.expression,Pa.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(i.literal.text),n.push(jS(e,dn)?e:zt)}const r=215!==e.parent.kind&&de(e).value;return r?xx(Tx(r)):NR(e)||vR(e)||qD($F(e,void 0)||It,xR)?lb(t,n):zt}function xR(e){return!!(134217856&e.flags||58982400&e.flags&&aR(op(e)||It,402653316))}function SR(e,t,n,r){const i=function(e){return $P(e)&&!MP(e.parent)?e.parent.parent:e}(e);HF(i,t,!1),function(e,t){Di[Ei]=e,Ni[Ei]=t,Ei++}(i,n);const o=qR(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=aR(o,2944)&&DR(o,JF(t,e,void 0))?Sx(o):o;return Ei--,KF(),a}function kR(e,t){if(t)return qR(e,t);const n=Xo(e);if(!n.resolvedType){const r=yi,i=ei;yi=vi,ei=void 0,n.resolvedType=qR(e,t),ei=i,yi=r}return n.resolvedType}function TR(e){return 216===(e=bh(e,!0)).kind||234===e.kind||vA(e)}function CR(e,t,n){const r=ag(e);if(Wm(e)){const n=xC(e);if(n)return rL(r,n,t)}const i=JR(r)||(n?SR(r,n,void 0,t||0):kR(r,t));return bN(e)&&207===e.name.kind&&KT(i)&&!i.target.hasRestElement&&Qg(i)<e.name.elements.length?function(e,t){const n=t.elements,r=ov(e).slice(),i=e.target.elementFlags.slice();for(let o=Qg(e);o<n.length;o++){const e=n[o];(o<n.length-1||208!==e.kind||!e.dotDotDotToken)&&(r.push(!EE(e)&&oA(e)?fl(e,!1,!1):Ct),i.push(2),EE(e)||oA(e)||rw(e,Ct))}return Hy(r,i,e.target.readonly)}(i,e.name):i}function wR(e,t){const n=6&QU(e)||ff(e)?t:RT(t);if(Wm(e)){if(fT(n))return rw(e,Ct),Ct;if(mT(n))return rw(e,ar),ar}return n}function DR(e,t){if(t){if(3145728&t.flags)return te(t.types,(t=>DR(e,t)));if(58982400&t.flags){const n=op(t)||It;return aR(n,4)&&aR(e,128)||aR(n,8)&&aR(e,256)||aR(n,64)&&aR(e,2048)||aR(n,4096)&&aR(e,8192)||DR(e,n)}return!!(406847616&t.flags&&aR(e,128)||256&t.flags&&aR(e,256)||2048&t.flags&&aR(e,2048)||512&t.flags&&aR(e,512)||8192&t.flags&&aR(e,8192))}return!1}function NR(e){const t=e.parent;return c_(t)&&jl(t.type)||vA(t)&&jl(bA(t))||QO(e)&&Zd($F(e,0))||(fE(t)||aE(t)||DE(t))&&NR(t)||(YP(t)||ZP(t)||jE(t))&&NR(t.parent)}function ER(e,t,n){const r=qR(e,t,n);return NR(e)||Hf(e)?Sx(r):TR(e)?r:zT(r,JF($F(e,void 0),e,void 0))}function PR(e,t){return 167===e.name.kind&&lA(e.name),ER(e.initializer,t)}function FR(e,t){return IU(e),167===e.name.kind&&lA(e.name),AR(e,XL(e,t),t)}function AR(e,t,n){if(n&&10&n){const r=nO(t,0,!0),i=nO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=MF(e,2);if(t){const i=nO(wC(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return IR(e,n),Rn;const t=XF(e),r=t.signature&&sm(t.signature),a=r&&tO(r);if(a&&!a.typeParameters&&!C(t.inferences,OR)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(RR(e.inferredTypeParameters,t)||RR(n,t)){const a=ks(Io(262144,MR(re(e.inferredTypeParameters,n),t)));a.target=o,r=fe(r,o),i=fe(i,a),n.push(a)}else n.push(o)}if(i){const e=Kx(r,i);for(const t of i)t.mapper=e}return n}
6(t,o.typeParameters),n=Pm(o,e),r=j(t.inferences,(e=>dw(e.typeParameter)));if(ow(n,i,((e,t)=>{jw(r,e,t,0,!0)})),te(r,OR)&&(aw(n,i,((e,t)=>{jw(r,e,t)})),!function(e,t){for(let n=0;n<e.length;n++)if(OR(e[n])&&OR(t[n]))return!0;return!1}(t.inferences,r)))return function(e,t){for(let n=0;n<e.length;n++)!OR(e[n])&&OR(t[n])&&(e[n]=t[n])}(t.inferences,r),t.inferredTypeParameters=re(t.inferredTypeParameters,e),tg(n)}return tg(rO(o,i,t),q(Ni,(e=>e&&j(e.inferences,(e=>e.typeParameter)))).slice())}}}}return t}function IR(e,t){2&t&&(XF(e).flags|=4)}function OR(e){return!(!e.candidates&&!e.contraCandidates)}function LR(e){return!!(e.candidates||e.contraCandidates||mp(e.typeParameter))}function RR(e,t){return te(e,(e=>e.symbol.escapedName===t))}function MR(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let i=1;;i++){const t=r+i;if(!RR(e,t))return t}}function jR(e){const t=YI(e);if(t&&!t.typeParameters)return sm(t)}function BR(e){const t=JR(e);if(t)return t;if(268435456&e.flags&&ei){const t=ei[ZB(e)];if(t)return t}const n=Si,r=qR(e,64);return Si!==n&&((ei||(ei=[]))[ZB(e)]=r,WT(e,268435456|e.flags)),r}function JR(e){let t=bh(e,!0);if(vA(t)){const e=bA(t);if(!jl(e))return Mx(e)}if(t=bh(e),bE(t)){const e=JR(t.expression);return e?SM(e):void 0}return!uE(t)||108===t.expression.kind||Qm(t,!0)||$O(t)?c_(t)&&!jl(t.type)?Mx(t.type):Xl(e)||Su(e)?qR(e):void 0:Al(t)?function(e){const t=qR(e.expression),n=UC(t,e.expression),r=jR(t);return r&&JC(r,e,n!==t)}(t):jR(ZA(t.expression))}function UR(e){const t=Xo(e);if(t.contextFreeType)return t.contextFreeType;HF(e,Ct,!1);const n=t.contextFreeType=qR(e,4);return KF(),n}function qR(n,i,o){var s,l;null==(s=pr)||s.push(pr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const u=r;r=n,b=0;const _=function(e,n,r){const i=e.kind;if(t)switch(i){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(i){case 80:return fP(e,n);case 81:return dI(e);case 110:return AP(e);case 108:return OP(e);case 106:return qt;case 15:case 11:return ww(e)?Nt:xx(Tx(e.text));case 9:return WU(e),xx(Cx(+e.text));case 10:return function(e){const t=ZN(e.parent)||xE(e.parent)&&ZN(e.parent.parent);if(!t&&R<7&&zU(e,Pa.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),xx(Nx({negative:!1,base10Value:OT(e.text)}));case 112:return Kt;case 97:return Wt;case 228:return bR(e);case 14:return iA(e);case 209:return aA(e,n,r);case 210:return fA(e,n);case 211:return sI(e,n);case 166:return lI(e,n);case 212:return JI(e,n);case 213:if(102===e.expression.kind)return VO(e);case 214:return function(e,t){var n,r,i;kU(e,e.typeArguments);const o=jO(e,void 0,t);if(o===ai)return rn;if(qO(o,e),108===e.expression.kind)return en;if(214===e.kind){const t=o.declaration;if(t&&176!==t.kind&&180!==t.kind&&185!==t.kind&&(!bF(t)||176!==(null==(r=null==(n=oh(t))?void 0:n.parent)?void 0:r.kind))&&!Ug(t)&&!BO(t))return ee&&Co(e,Pa.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ct}if(Wm(e)&&GO(e))return rm(e.arguments[0]);const a=sm(o);if(12288&a.flags&&$O(e))return Ix(hh(e.parent));if(213===e.kind&&!e.questionDotToken&&244===e.parent.kind&&16384&a.flags&&om(o))if(Ab(e.expression)){if(!uN(e)){const t=Co(e.expression,Pa.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);lN(e.expression,t)}}else Co(e.expression,Pa.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(Wm(e)){const t=UO(e,!1);if(null==(i=null==t?void 0:t.exports)?void 0:i.size){const e=Ns(t,t.exports,c,c,c);return e.objectFlags|=4096,kv([a,e])}}return a}(e,n);case 215:return XO(e);case 217:return function(e,t){if(V_(e)){if(vC(e))return rL(e.expression,bC(e),t);if(vA(e))return YO(e,t)}return qR(e.expression,t)}(e,n);case 231:return function(e){return iB(e),UB(e),function(e){var t;if(e.name)return;const n=kA(e);if(!fy(n))return;let r;r=!z&&R<99&&Fm(!1,e)?null!=(t=Pe(qc(e)))?t:e:rB(e),r&&(mU(r,4194304),(YP(n)||kN(n)||oE(n))&&yN(n.name)&&mU(r,8388608))}(e),Gl(os(e))}(e);case 218:case 219:return XL(e,n);case 221:return function(e){return qR(e.expression),lo}(e);case 216:case 234:return function(e,t){if(216===e.kind){const t=Id(e);t&&$o(t.fileName,[".cts",".mts"])&&zU(e,Pa.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_
6instead)}return YO(e,t)}(e,n);case 235:return eL(e);case 233:return tL(e);case 238:return function(e){return LB(e.type),rL(e.expression,e.type)}(e);case 236:return iL(e);case 220:return nR(e);case 222:return function(e){return UB(e),Rt}(e);case 223:return function(e){a((()=>rR(e)));const t=qR(e.expression),n=gM(t,!0,e,Pa.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||Tc(n)||3&t.flags||wo(!1,Gp(e,Pa.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=qR(e.operand);if(t===rn)return rn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return xx(Cx(-e.operand.text));case 40:return xx(Cx(+e.operand.text))}break;case 10:if(41===e.operator)return xx(Nx({negative:!0,base10Value:OT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return oI(t,e.operand),oR(t,12288)&&Co(e.operand,Pa.The_0_operator_cannot_be_applied_to_type_symbol,Ga(e.operator)),40===e.operator?(oR(t,2112)&&Co(e.operand,Pa.Operator_0_cannot_be_applied_to_type_1,Ga(e.operator),Ys(wT(t))),$t):iR(t);case 54:dj(t,e.operand);const n=gD(t,12582912);return 4194304===n?Wt:8388608===n?Kt:Qt;case 46:case 47:return QL(e.operand,oI(t,e.operand),Pa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&tR(e.operand,Pa.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Pa.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),iR(t)}return Et}(e);case 225:return function(e){const t=qR(e.operand);return t===rn?rn:(QL(e.operand,oI(t,e.operand),Pa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&tR(e.operand,Pa.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Pa.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),iR(t))}(e);case 226:return ce(e,n);case 227:return function(e,t){const n=pj(e.condition,t);return _j(e.condition,n,e.whenTrue),mv([qR(e.whenTrue,t),qR(e.whenFalse,t)],2)}(e,n);case 230:return function(e,t){return R<2&&mU(e,I.downlevelIteration?1536:1024),gj(33,qR(e.expression,t),Lt,e.expression)}(e,n);case 232:return Rt;case 229:return function(e){a((function(){16384&e.flags||UU(e,Pa.A_yield_expression_is_only_allowed_in_a_generator_body),sF(e)&&Co(e,Pa.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const t=cm(e);if(!t)return Ct;const n=Qh(t);if(!(1&n))return Ct;const r=!!(2&n);e.asteriskToken&&(r&&R<5&&mU(e,26624),!r&&R<2&&I.downlevelIteration&&mU(e,256));let i=lm(t);i&&1048576&i.flags&&(i=$D(i,(e=>HR(e,n,void 0))));const o=i&&qj(i,r),s=o&&o.yieldType||Ct,c=o&&o.nextType||Ct,l=r?SM(c)||Ct:c,u=e.expression?qR(e.expression):Rt,_=$L(e,u,l,r);if(i&&_&&YS(_,s,e.expression||e,e.expression),e.asteriskToken)return yj(r?19:17,1,u,e.expression)||Ct;if(i)return Jj(2,i,r)||Ct;let d=cF(2,t);return d||(d=Ct,a((()=>{if(ee&&!YT(e)){const t=$F(e,void 0);t&&!kc(t)||Co(e,Pa.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),d}(e);case 237:return function(e){return e.isSpread?Xb(e.type,$t):e.type}(e);case 294:return HA(e,n);case 284:case 285:return function(e,t){return UB(e),jA(e)||Ct}(e);case 288:return function(e){qA(e.openingFragment);const t=Id(e);return!pk(I)||!I.jsxFactory&&!t.pragmas.has("jsx")||I.jsxFragmentFactory||t.pragmas.has("jsxfrag")||Co(e,I.jsxFactory?Pa.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Pa.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),CA(e),jA(e)||Ct}(e);case 292:return DA(e,n);case 286:En.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}(n,i,o),d=AR(n,_,i);return lR(d)&&function(t,n){const r=211===t.parent.kind&&t.parent.expression===t||212===t.parent.kind&&t.parent.expression===t||(80===t.kind||166===t.kind)&&gJ(t)||186===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;if(r||Co(t,Pa.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),zS(I)){En.assert(!!(128&n.symbol.flags));const r=n.symbol.valueDeclaration,i=e.getRedirectReferenceForResolutionFromSourceOfProject(Id(r).resolvedPath);!(33554432&r.flags)||BT(t)||i&&XS(i.commandLine.options)||Co(t,Pa.Cannot_access_ambient_const_enums_when_0_is_enabled,De)}}(n,d),r=u,null==(l=pr)||l.pop(),d}function zR(e){hU(e),e.expression&&UU(e.expression,Pa.Type_expected),LB(e.constraint),LB(e.default);const t=Vu(os(e));op(t),function(e){return pp(e)!==jn}(t)||Co(e.default,Pa.Type_parameter_0_has_a_circular_default,Ys(t));const n=Yd(t),r=fp(t);n&&r&&QS(r,w_(hS(n,Qx(t,r)),r),e.default,Pa.Type_0_does_not_satisfy_the_constraint_1),UB(e),a((()=>Yj(e.name,Pa.Type_parameter_name_cannot_be_0)))}function $R(e){hU(e),ij(e);const t=cm(e);Xv(e,31)&&(176===t.kind&&qd(t.body)||Co(e,Pa.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&nN(e.name)&&"constructor"===e.name.escapedText&&Co(e.name,Pa.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&hC(e)&&Bu(e.name)&&t.body&&Co(e,Pa.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&nN(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&Co(e,Pa.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||Co(e,Pa.A_constructor_cannot_have_a_this_parameter),219===t.kind&&Co(e,Pa.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||Co(e,Pa.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||Bu(e.name)||jS(Op(Gl(e.symbol)),cr)||Co(e,Pa.A_rest_parameter_must_be_of_an_array_type)}function VR(e,t,n){for(const r of e.elements){if(EE(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return Co(t,Pa.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&VR(e,t,n))return!0}}function WR(e){181===e.kind?function(e){hU(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return zU(t?t.name:e,Pa.An_index_signature_must_have_exactly_one_parameter);if(vU(e.parameters,Pa.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return zU(t.dotDotDotToken,Pa.An_index_signature_cannot_have_a_rest_parameter);if(Hv(t))return zU(t.name,Pa.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return zU(t.questionToken,Pa.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return zU(t.name,Pa.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return zU(t.name,Pa.An_index_signature_parameter_must_have_a_type_annotation);const n=Mx(t.type);qD(n,(e=>!!(8576&e.flags)))||Ub(n)?zU(t.name,Pa.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):zD(n,xg)?e.type||zU(e,Pa.An_index_signature_must_have_a_type_annotation):zU(t.name,Pa.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||SU(e);const t=Qh(e);4&t||(!(3&~t)&&R<5&&mU(e,6144),2==(3&t)&&R<4&&mU(e,64),3&t&&R<2&&mU(e,128)),eB(wl(e)),function(e){const t=L(bl(e),OF);if(!_(t))return;const n=Wm(e),r=new Set,i=new Set;d(e.parameters,(({name:e},t)=>{nN(e)&&r.add(e.escapedText),Bu(e)&&i.add(t)}));const o=Qf(e);
6if(o){const e=t.length-1,o=t[e];n&&o&&nN(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!oT(Mx(o.typeExpression.type))&&Co(o.name,Pa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Fc(o.name))}else d(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||nN(e)&&r.has(e.escapedText)||(hN(e)?n&&Co(e,Pa.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Kp(e),Kp(e.left)):t||Do(n,e,Pa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Fc(e)))}))}(e),d(e.parameters,$R),e.type&&LB(e.type),a((function(){!function(e){R>=2||!td(e)||33554432&e.flags||Ud(e.body)||d(e.parameters,(e=>{e.name&&!Bu(e.name)&&e.name.escapedText===Te.escapedName&&ko("noEmit",e,Pa.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=Rv(e),n=t;if(Wm(e)){const r=gl(e);if(r&&r.typeExpression&&ON(r.typeExpression.type)){const e=YI(Mx(r.typeExpression));e&&e.declaration&&(t=Rv(e.declaration),n=r.typeExpression.type)}}if(ee&&!t)switch(e.kind){case 180:Co(e,Pa.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Co(e,Pa.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Qh(e);if(1==(5&r)){const e=Mx(t);e===en?Co(n,Pa.A_generator_cannot_have_a_void_type_annotation):HR(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=Mx(t);if(R>=2){if(Tc(r))return;const e=Cy(!0);if(e!==Ln&&!Zl(r,e))return void o(Pa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,Ys(kM(r)||en))}else{if(RE(e,5),Tc(r))return;const a=Cm(t);if(void 0===a)return void o(Pa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Ys(r));const s=Ja(a,111551,!0),c=s?Gl(s):Et;if(Tc(c))return void(80===a.kind&&"Promise"===a.escapedText&&eu(r)===Cy(!1)?Co(n,Pa.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):o(Pa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Kp(a)));const l=(i=!0,yr||(yr=dy("PromiseConstructorLike",0,i))||Nn);if(l===Nn)return void o(Pa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Kp(a));const u=Pa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!QS(c,l,n,u,(()=>t===n?void 0:kS(void 0,Pa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const _=a&&Fb(a),d=Qo(e.locals,_.escapedText,111551);if(d)return void Co(d.valueDeclaration,Pa.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Fc(_),Kp(a))}var i;function o(e,t,n,r){t===n?Co(n,e,r):DT(Co(n,Pa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Gp(t,e,r))}gM(r,!1,e,Pa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&317!==e.kind&&RM(e)}))}function HR(e,t,n){const r=Jj(0,e,!!(2&t))||Ct;return QS(zL(r,Jj(1,e,!!(2&t))||r,Jj(2,e,!!(2&t))||It,!!(2&t)),e,n)}function KR(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=Fc(r);break;default:continue}t.get(e)?(Co(Jc(n.symbol.valueDeclaration),Pa.Duplicate_identifier_0,e),Co(n.name,Pa.Duplicate_identifier_0,e)):t.set(e,!0)}}function GR(e){if(264===e.kind){const t=os(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=ng(os(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)1===n.parameters.length&&n.parameters[0].type&&UD(Mx(n.parameters[0].type),(t=>{const r=e.get(av(t));r?r.declarations.push(n):e.set(av(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)Co(t,Pa.Duplicate_index_signature_for_type_0,Ys(e.type))}))}}function XR(e){hU(e)||function(e){if(yN(e.name)&&kE(e.name.expression)&&103===e.name.expression.operatorToken.kind)return zU(e.parent.members[0],Pa.A_mapped_type_may_not_declare_properties_or_methods);if(Du(e.parent)){if(BD(e.name)&&"constructor"===e.name.text)return zU(e.name,Pa.Classes_may_not_have_a_field_named_constructor);if(AU(e.name,Pa.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;
6if(R<2&&rN(e.name))return zU(e.name,Pa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(R<2&&Eu(e))return zU(e.name,Pa.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Eu(e)&&NU(e.questionToken,Pa.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(AU(e.name,Pa.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(En.assertNode(e,SN),e.initializer)return zU(e.initializer,Pa.An_interface_property_cannot_have_an_initializer)}else if(jN(e.parent)){if(AU(e.name,Pa.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(En.assertNode(e,SN),e.initializer)return zU(e.initializer,Pa.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&LU(e),kN(e)&&e.exclamationToken&&(!Du(e.parent)||!e.type||e.initializer||33554432&e.flags||Qv(e)||eb(e))){const t=e.initializer?Pa.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Pa.A_definite_assignment_assertion_is_not_permitted_in_this_context:Pa.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return zU(e.exclamationToken,t)}}(e)||wU(e.name),ij(e),QR(e),Xv(e,64)&&172===e.kind&&e.initializer&&Co(e,Pa.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,zp(e.name))}function QR(e){if(rN(e.name)&&(R<9||R<99||!$)){for(let t=Up(e);t;t=Up(t))Xo(t).flags|=1048576;if(NE(e.parent)){const t=bP(e.parent);t&&(Xo(e.name).flags|=32768,Xo(t).flags|=4096)}}}function YR(e){WR(e),function(e){const t=Wm(e)?Mv(e):void 0,n=e.typeParameters||t&&Pe(t);if(n){const t=n.pos===n.end?n.pos:hs(Id(e).text,n.pos);return qU(e,t,n.end-t,Pa.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||Rv(e);t&&zU(t,Pa.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),LB(e.body);const t=os(e),n=ld(t,e.kind);function r(e){return!!uu(e)||172===e.kind&&!Qv(e)&&!!e.initializer}e===n&&dM(t),Ud(e.body)||a((function(){const t=e.parent;if(Oh(t)){xP(e.parent,t);const n=TP(t),i=kP(e.body);if(i){if(n&&Co(i,Pa.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!V&&(te(e.parent.members,r)||te(e.parameters,(e=>Xv(e,31)))))if(function(e,t){const n=hh(e.parent);return zE(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(zE(n)&&bf(SA(n.expression))){t=n;break}if(ZR(n))break}void 0===t&&Co(e,Pa.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Co(i,Pa.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||Co(e,Pa.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function ZR(e){return 108===e.kind||110===e.kind||!mm(e)&&!!ZI(e,ZR)}function eM(e){nN(e.name)&&"constructor"===Fc(e.name)&&Du(e.parent)&&Co(e.name,Pa.Class_constructor_may_not_be_an_accessor),a((function(){if(SU(e)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(R<2&&rN(e.name))return zU(e.name,Pa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!Xv(e,64))return qU(e,e.end-1,1,Pa._0_expected,"{")}if(e.body){if(Xv(e,64))return zU(e,Pa.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return zU(e.body,Pa.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return zU(e.name,Pa.An_accessor_cannot_have_type_parameters);if(!function(e){return FU(e)||e.parameters.length===(177===e.kind?0:1)}(e))return zU(e.name,177===e.kind?Pa.A_get_accessor_cannot_have_parameters:Pa.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return zU(e.name,Pa.A_set_accessor_cannot_have_a_return_type_annotation);const t=En.checkDefined(Cv(e),"Return value does not match parameter count assertion.");
6if(t.dotDotDotToken)return zU(t.dotDotDotToken,Pa.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return zU(t.questionToken,Pa.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return zU(e.name,Pa.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||wU(e.name),IM(e),WR(e),177===e.kind&&!(33554432&e.flags)&&qd(e.body)&&512&e.flags&&(1024&e.flags||Co(e.name,Pa.A_get_accessor_must_return_a_value)),167===e.name.kind&&lA(e.name),y_(e)){const t=os(e),n=ld(t,177),r=ld(t,178);if(n&&r&&!(1&$J(n))){Xo(n).flags|=1;const e=cb(n),t=cb(r);(64&e)!=(64&t)&&(Co(n.name,Pa.Accessors_must_both_be_abstract_or_non_abstract),Co(r.name,Pa.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&t)||2&e&&!(2&t))&&(Co(n.name,Pa.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Co(r.name,Pa.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=Bl(os(e));177===e.kind&&GL(e,t)})),LB(e.body),QR(e)}function tM(e,t,n){return e.typeArguments&&n<e.typeArguments.length?Mx(e.typeArguments[n]):nM(e,t)[n]}function nM(e,t){return Rf(j(e.typeArguments,Mx),t,Lf(t),Wm(e))}function rM(e,t){let n,r,i=!0;for(let o=0;o<t.length;o++){const a=Yd(t[o]);a&&(n||(n=nM(e,t),r=Kx(t,n)),i=i&&QS(n[o],hS(a,r),e.typeArguments[o],Pa.Type_0_does_not_satisfy_the_constraint_1))}return i}function iM(e){const t=Mx(e);if(!Tc(t)){const n=Xo(e).resolvedSymbol;if(n)return function(e,t){if(!Tc(e))return 524288&t.flags&&Ko(t).typeParameters||(4&Bx(e)?e.target.localTypeParameters:void 0)}(t,n)}}function oM(e){if(kU(e,e.typeArguments),183===e.kind&&!Wm(e)&&!Gm(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const t=Id(e);25===cf(t,e.typeName.end)&&qU(e,hs(t.text,e.typeName.end),1,Pa.JSDoc_types_can_only_be_used_inside_documentation_comments)}d(e.typeArguments,LB),aM(e)}function aM(e){if(!Tc(Mx(e))){e.typeArguments&&a((()=>{const t=iM(e);t&&rM(e,t)}));const t=Xo(e).resolvedSymbol;t&&te(t.declarations,(e=>_C(e)&&!!(536870912&e.flags)))&&Ao(zO(e),t.declarations,t.escapedName)}}function sM(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=$d(n)&&2===Vd(n)?Uv(n,0):ab(n,0),o=!!Tf(n,$t);if(zD(r,(e=>jS(e,i)||o&&yf(e,$t))))return 212===t.kind&&_h(t)&&32&Bx(n)&&1&Bd(n)&&Co(t,Pa.Index_signature_in_type_0_only_permits_reading,Ys(n)),e;if(qb(n)){const e=hb(r,t);if(e){const r=UD(Ep(n),(t=>ef(t,e)));if(r&&6&Dx(r))return Co(t,Pa.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Pc(e)),Et}}return Co(t,Pa.Type_0_cannot_be_used_to_index_type_1,Ys(r),Ys(n)),Et}function cM(e){!function(e){var t;(null==(t=e.members)?void 0:t.length)&&zU(e.members[0],Pa.A_mapped_type_may_not_declare_properties_or_methods)}(e),LB(e.typeParameter),LB(e.nameType),LB(e.type),e.type||rw(e,Ct);const t=ex(e),n=Ed(t);n?QS(n,un,e.nameType):QS(Nd(t),un,Dl(e.typeParameter))}function lM(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return zU(e.type,Pa._0_expected,Ga(155));let t=gh(e.parent);if(Wm(t)&&iF(t)){const e=ih(t);e&&(t=Wg(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return zU(e,Pa.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Wf(n))return zU(e,Pa.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return zU(t.name,Pa.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Qv(t)||!rb(t))return zU(t.name,Pa.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Xv(t,8))return zU(t.name,Pa.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:zU(e,Pa.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&188!==e.type.kind&&189!==e.type.kind&&UU(e,Pa.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ga(155))}(e),LB(e.type)}function uM(e){return(Gv(e,2)||uu(e))&&!!(33554432&e.flags)}function _M(e,t){let n=XU(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Jp(e);!(t&&128&t.flags)||128&n||pP(e.parent)&&dP(e.parent.parent)&&Tp(e.parent.parent)||(n|=32),n|=128}return n&t}function dM(e){a((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function n(e,n,r,i,o){if(i^o){const i=_M(t(e,n),r);d(e,(e=>{const t=_M(e,r)^i;32&t?Co(Jc(e),Pa.Overload_signatures_must_all_be_exported_or_non_exported):128&t?Co(Jc(e),Pa.Overload_signatures_must_all_be_ambient_or_non_ambient):6&t?Co(Jc(e)||e,Pa.Overload_signatures_must_all_be_public_private_or_protected):64&t&&Co(Jc(e),Pa.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}function r(e,n,r,i){if(r!==i){const r=Jg(t(e,n));d(e,(e=>{Jg(e)!==r&&Co(Jc(e),Pa.Overload_signatures_must_all_be_optional_or_required)}))}}const i=230;let o,a,s,c=0,l=i,u=!1,p=!0,f=!1;const m=e.declarations,g=!!(16384&e.flags);function h(e){if(e.name&&Ud(e.name))return;let t=!1;const n=ZI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(rN(e.name)&&rN(r)&&e.name.escapedText===r.escapedText||yN(e.name)&&yN(r)&&AS(lA(e.name),lA(r))||iy(e.name)&&iy(r)&&ay(e.name)===ay(r)))return void(174!==e.kind&&173!==e.kind||Qv(e)===Qv(n)||Co(t,Qv(e)?Pa.Function_overload_must_be_static:Pa.Function_overload_must_not_be_static));if(qd(n.body))return void Co(t,Pa.Function_implementation_name_must_be_0,zp(e.name))}const r=e.name||e;g?Co(r,Pa.Constructor_implementation_is_missing):Xv(e,64)?Co(r,Pa.All_declarations_of_an_abstract_method_must_be_consecutive):Co(r,Pa.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let y=!1,v=!1,b=!1;const x=[];if(m)for(const d of m){const e=d,t=33554432&e.flags,n=e.parent&&(264===e.parent.kind||187===e.parent.kind)||t;if(n&&(s=void 0),263!==e.kind&&231!==e.kind||t||(b=!0),262===e.kind||174===e.kind||173===e.kind||176===e.kind){x.push(e);const t=_M(e,i);c|=t,l&=t,u=u||Jg(e),p=p&&Jg(e);const r=qd(e.body);r&&o?g?v=!0:y=!0:(null==s?void 0:s.parent)===e.parent&&s.end!==e.pos&&h(s),r?o||(o=e):f=!0,s=e,n||(a=e)}Wm(d)&&vu(d)&&d.jsDoc&&(f=_(th(d))>0)}if(v&&d(x,(e=>{Co(e,Pa.Multiple_constructor_implementations_are_not_allowed)})),y&&d(x,(e=>{Co(Jc(e)||e,Pa.Duplicate_function_implementation)})),b&&!g&&16&e.flags&&m){const t=L(m,(e=>263===e.kind)).map((e=>Gp(e,Pa.Consider_adding_a_declare_modifier_to_this_class)));d(m,(n=>{const r=263===n.kind?Pa.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?Pa.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&DT(Co(Jc(n)||n,r,Ic(e)),...t)}))}if(!a||a.body||Xv(a,64)||a.questionToken||h(a),f&&(m&&(n(m,o,i,c,l),r(m,o,u,p)),o)){const t=Yf(e),n=jf(o);for(const e of t)if(!yk(n,e)){DT(Co(e.declaration&&bF(e.declaration)?e.declaration.parent.tagName:e.declaration,Pa.This_overload_signature_is_not_compatible_with_its_implementation_signature),Gp(o,Pa.The_implementation_signature_is_declared_here));break}}}(e)))}function pM(e){a((()=>function(e){let t=e.localSymbol;if(!t&&(t=os(e),!t.exportSymbol))return;if(ld(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const c of t.declarations){const e=s(c),t=_M(c,2080);32&t?2048&t?i|=e:n|=e:r|=e}const o=n&r,a=i&(n|r);if(o||a)for(const c of t.declarations){const e=s(c),t=Jc(c);e&a?Co(t,Pa.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,zp(t)):e&o&&Co(t,Pa.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,zp(t))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return yp(t)||0!==Hj(t)?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:const e=t,n=NP(e)?e.expression:e.right;if(!Pb(n))return 1;t=n;case 271:case 274:case 273:let r=0;return d(Ia(os(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return En.failBadSyntaxKind(t)}}}(e)))}function fM(e,t,n,...r){const i=mM(e,t);return i&&SM(i,t,n,...r)}function mM(e,t,n){if(kc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Zl(e,Cy(!1)))return r.promisedTypeOfPromise=Xg(e)[0];if(cR(sp(e),402915324))return;const i=bc(e,"then");if(kc(i))return;const o=i?of(i,0):c;if(0===o.length)return void(t&&Co(t,Pa.A_promise_must_have_a_then_method));let a,s;for(const c of o){const t=im(c);t&&t!==en&&!wk(e,t,uo)?a=t:s=fe(s,c)}
6if(!s)return En.assertIsDefined(a),n&&(n.value=a),void(t&&Co(t,Pa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ys(e),Ys(a)));const l=vD(mv(j(s,SL)),2097152);if(kc(l))return;const u=of(l,0);if(0!==u.length)return r.promisedTypeOfPromise=mv(j(u,SL),2);t&&Co(t,Pa.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function gM(e,t,n,r,...i){return(t?SM(e,n,r,...i):kM(e,n,r,...i))||Et}function hM(e){if(cR(sp(e),402915324))return!1;const t=bc(e,"then");return!!t&&of(vD(t,2097152),0).length>0}function yM(e){var t;if(16777216&e.flags){const n=Oy(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function vM(e){return 1048576&e.flags?HD(e,vM):yM(e)?e.aliasTypeArguments[0]:e}function bM(e){if(kc(e)||yM(e))return!1;if(qb(e)){const t=op(e);if(t?3&t.flags||bk(t)||qD(t,hM):aR(e,8650752))return!0}return!1}function xM(e){var t;return bM(e)?null!=(t=function(e){const t=Oy(!0);if(t)return sh(t,[vM(e)])}(e))?t:e:(En.assert(yM(e)||void 0===mM(e),"type provided should not be a non-generic 'promise'-like."),e)}function SM(e,t,n,...r){const i=kM(e,t,n,...r);return i&&xM(i)}function kM(e,t,n,...r){if(kc(e))return e;if(yM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(ro.lastIndexOf(e.id)>=0)return void(t&&Co(t,Pa.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>kM(e,t,n,...r):kM;ro.push(e.id);const a=HD(e,o);return ro.pop(),i.awaitedTypeOfType=a}if(bM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=mM(e,void 0,o);if(a){if(e.id===a.id||ro.lastIndexOf(a.id)>=0)return void(t&&Co(t,Pa.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));ro.push(e.id);const o=kM(a,t,n,...r);if(ro.pop(),!o)return;return i.awaitedTypeOfType=o}if(!hM(e))return i.awaitedTypeOfType=e;if(t){let i;En.assertIsDefined(n),o.value&&(i=kS(i,Pa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ys(e),Ys(o.value))),i=kS(i,n,...r),so.add(Yp(Id(t),t,i))}}function TM(e){!function(e){if(!JU(Id(e))){let t=e.expression;if(fE(t))return!1;let n,r=!0;for(;;)if(PE(t)||IE(t))t=t.expression;else if(uE(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!cE(t)){nN(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)DT(Co(e.expression,Pa.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Gp(n,Pa.Invalid_syntax_in_decorator))}}(e);const t=jO(e);qO(t,e);const n=sm(t);if(1&n.flags)return;const r=jL(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=Pa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!z){i=Pa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=Pa.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=Pa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return En.failBadSyntaxKind(e.parent)}QS(n,o,e.expression,i)}function CM(e,t,n,r,i,o=n.length,a=0){return E_(_w.createFunctionTypeNode(void 0,c,_w.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function wM(e,t,n,r,i,o,a){return tg(CM(e,t,n,r,i,o,a))}function DM(e){return wM(void 0,void 0,c,e)}function NM(e){return wM(void 0,void 0,[Oo("value",e)],en)}function EM(e){if(e)switch(e.kind){case 193:case 192:return FM(e.types);case 194:return FM([e.trueType,e.falseType]);case 196:case 202:return EM(e.type);case 183:return e.typeName}}function FM(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!K&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=EM(n);if(!e)return;if(t){if(!nN(t)||!nN(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function AM(e){const t=Ov(e);return nd(e)?qf(t):t}function IM(e){if(!(wI(e)&&ib(e)&&e.modifiers&&Dm(z,e,e.parent,e.parent.parent)))return;const t=w(e.modifiers,xN);if(t){z?(mU(t,8),169===e.kind&&mU(t,32)):R<99&&(mU(t,8),cP(e)?e.name?rB(e)&&mU(t,4194304):mU(t,4194304):NE(e)||(rN(e.name)&&(CN(e)||Nu(e)||Eu(e))&&mU(t,4194304),yN(e.name)&&mU(t,8388608))),RE(e,8);for(const t of e.modifiers)xN(t)&&TM(t)}}function OM(e){switch(e.kind){case 80:return e;case 211:return e.name;default:return}}function LM(e){var t;IM(e),WR(e);const n=Qh(e);if(e.name&&167===e.name.kind&&lA(e.name),y_(e)){const n=os(e),r=e.localSymbol||n,i=null==(t=r.declarations)?void 0:t.find((t=>t.kind===e.kind&&!(524288&t.flags)));e===i&&dM(r),n.parent&&dM(n)}const r=173===e.kind?void 0:e.body;if(LB(r),GL(e,lm(e)),a((function(){Rv(e)||(Ud(r)&&!uM(e)&&rw(e,Ct),1&n&&qd(r)&&sm(jf(e)))})),Wm(e)){const t=gl(e);t&&t.typeExpression&&!tA(Mx(t.typeExpression),e)&&Co(t.typeExpression.type,Pa.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function RM(e){a((function(){const t=Id(e);let n=hi.get(t.path);n||(n=[],hi.set(t.path,n)),n.push(e)}))}function MM(e,t){for(const n of e)switch(n.kind){case 263:case 231:JM(n,t),qM(n,t);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:HM(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&HM(n,t),qM(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:qM(n,t);break;case 195:UM(n,t);break;default:En.assertNever(n,"Node should not have been registered for unused identifiers check")}}function jM(e,t,n){n(e,0,Gp(Jc(e)||e,_C(e)?Pa._0_is_declared_but_never_used:Pa._0_is_declared_but_its_value_is_never_read,t))}function BM(e){return nN(e)&&95===Fc(e).charCodeAt(0)}function JM(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=os(n);e.isReferenced||!(Gv(n,2)||jc(n)&&rN(n.name))||33554432&n.flags||t(n,0,Gp(n.name,Pa._0_is_declared_but_its_value_is_never_read,Hs(e)));break;
6case 176:for(const r of n.parameters)!r.symbol.isReferenced&&Xv(r,2)&&t(r,0,Gp(r.name,Pa.Property_0_is_declared_but_its_value_is_never_read,Ic(r.symbol)));break;case 181:case 240:case 175:break;default:En.fail("Unexpected class member")}}function UM(e,t){const{typeParameter:n}=e;zM(n)&&t(e,1,Gp(e,Pa._0_is_declared_but_its_value_is_never_read,Fc(n.name)))}function qM(e,t){const n=os(e).declarations;if(!n||Le(n)!==e)return;const r=wl(e),i=new Set;for(const o of r){if(!zM(o))continue;const e=Fc(o.name),{parent:n}=o;if(195!==n.kind&&n.typeParameters.every(zM)){if(Q(i,n)){const r=Id(n),i=jF(n)?ET(n):PT(r,n.typeParameters),a=1===n.typeParameters.length?[Pa._0_is_declared_but_its_value_is_never_read,e]:[Pa.All_type_parameters_are_unused];t(o,1,vS(r,i.pos,i.end-i.pos,...a))}}else t(o,1,Gp(o,Pa._0_is_declared_but_its_value_is_never_read,e))}}function zM(e){return!(262144&is(e.symbol).isReferenced||BM(e.name))}function $M(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function VM(e){return ht(yy(e),bN)}function WM(e){return oE(e)?rE(e.parent)?!(!e.propertyName||!BM(e.name)):BM(e.name):yp(e)||(oP(e)&&m_(e.parent.parent)||GM(e))&&BM(e.name)}function HM(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!WM(a))if(GM(a))$M(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,ZB);else if(oE(a)&&rE(a.parent))a!==Le(a.parent.elements)&&Le(a.parent.elements).dotDotDotToken||$M(r,a.parent,a,ZB);else if(oP(a)){const e=7&QU(a),t=Jc(a);(4===e||6===e)&&t&&BM(t)||$M(i,a.parent,a,ZB)}else{const n=e.valueDeclaration&&VM(e.valueDeclaration),i=e.valueDeclaration&&Jc(e.valueDeclaration);n&&i?fc(n,n.parent)||Nv(n)||BM(i)||(oE(a)&&iE(a.parent)?$M(r,a.parent,a,ZB):t(n,1,Gp(i,Pa._0_is_declared_but_its_value_is_never_read,Ic(e)))):jM(a,Ic(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Gp(r,Pa._0_is_declared_but_its_value_is_never_read,Fc(Ae(n).name)):Gp(r,Pa.All_imports_in_import_declaration_are_unused));else for(const i of n)jM(i,Fc(i.name),t)})),r.forEach((([e,n])=>{const r=VM(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?$M(i,e.parent.parent,e.parent,ZB):t(e,r,1===n.length?Gp(e,Pa._0_is_declared_but_its_value_is_never_read,KM(Ae(n).name)):Gp(e,Pa.All_destructured_elements_are_unused));else for(const i of n)t(i,r,Gp(i,Pa._0_is_declared_but_its_value_is_never_read,KM(i.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Gp(Ae(n).name,Pa._0_is_declared_but_its_value_is_never_read,KM(Ae(n).name)):Gp(243===e.parent.kind?e.parent:e,Pa.All_variables_are_unused));else for(const r of n)t(r,0,Gp(r,Pa._0_is_declared_but_its_value_is_never_read,KM(r.name)))}))}function KM(e){switch(e.kind){case 80:return Fc(e);case 207:case 206:return KM(yt(Ae(e.elements),oE).name);default:return En.assertNever(e)}}function GM(e){return 273===e.kind||276===e.kind||274===e.kind}function XM(e){if(241===e.kind&&VU(e),Cu(e)){const t=xi;d(e.statements,LB),xi=t}else d(e.statements,LB);e.locals&&RM(e)}function QM(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((yP(e)||gP(e)||DP(e))&&iu(e))return!1;const r=yy(e);return!bN(r)||!Ud(r.parent.body)}function YM(e){wc(e,(t=>!!(4&$J(t))&&(80!==e.kind?Co(Jc(e),Pa.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Co(e,Pa.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function ZM(e){wc(e,(t=>!!(8&$J(t))&&(80!==e.kind?Co(Jc(e),Pa.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Co(e,Pa.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function ej(e){1048576&$J(Up(e))&&(En.assert(jc(e)&&nN(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check 
6should be an identifier"),ko("noEmit",e,Pa.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function tj(e){let t=!1;if(NE(e)){for(const n of e.members)if(2097152&$J(n)){t=!0;break}}else if(mE(e))2097152&$J(e)&&(t=!0);else{const n=Up(e);n&&2097152&$J(n)&&(t=!0)}t&&(En.assert(jc(e)&&nN(e.name),"The target of a Reflect collision check should be an identifier"),ko("noEmit",e,Pa.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,zp(e.name),"Reflect"))}function nj(e,t){t&&(function(e,t){if(B>=5&&!(B>=100&&1===Id(e).impliedNodeFormat))return;if(!t||!QM(e,t,"require")&&!QM(e,t,"exports"))return;if(dP(e)&&1!==Hj(e))return;const n=yc(e);307===n.kind&&_f(n)&&ko("noEmit",t,Pa.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,zp(t),zp(t))}(e,t),function(e,t){if(!t||R>=4||!QM(e,t,"Promise"))return;if(dP(e)&&1!==Hj(e))return;const n=yc(e);307===n.kind&&_f(n)&&4096&n.flags&&ko("noEmit",t,Pa.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,zp(t),zp(t))}(e,t),function(e,t){R<=8&&(QM(e,t,"WeakMap")||QM(e,t,"WeakSet"))&&eo.push(e)}(e,t),function(e,t){t&&R>=2&&R<=8&&QM(e,t,"Reflect")&&to.push(e)}(e,t),Du(e)?(Yj(t,Pa.Class_name_cannot_be_0),33554432&e.flags||function(e){R>=1&&"Object"===e.escapedText&&(B<5||1===Id(e).impliedNodeFormat)&&Co(e,Pa.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Ii[B])}(t)):_P(e)&&Yj(t,Pa.Enum_name_cannot_be_0))}function rj(e){return e===wt?Ct:e===sr?ar:e}function ij(e){var t;if(IM(e),oE(e)||LB(e.type),!e.name)return;if(167===e.name.kind&&(lA(e.name),K_(e)&&e.initializer&&kR(e.initializer)),oE(e)){if(e.propertyName&&nN(e.name)&&hy(e)&&Ud(cm(e).body))return void no.push(e);rE(e.parent)&&e.dotDotDotToken&&R<5&&mU(e,4),e.propertyName&&167===e.propertyName.kind&&lA(e.propertyName);const t=e.parent.parent,n=Dc(t,e.dotDotDotToken?32:0),r=e.propertyName||e.name;if(n&&!Bu(r)){const i=qv(r);if(NC(i)){const r=ef(n,EC(i));r&&(OI(r,void 0,!1),XA(e,!!t.initializer&&108===t.initializer.kind,!1,n,r))}}}if(Bu(e.name)&&(207===e.name.kind&&R<2&&I.downlevelIteration&&mU(e,512),d(e.name.elements,LB)),e.initializer&&hy(e)&&Ud(cm(e).body))return void Co(e,Pa.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(Bu(e.name)){if(Yw(e))return;const t=K_(e)&&e.initializer&&249!==e.parent.parent.kind,n=!te(e.name.elements,bn(EE));if(t||n){const r=yl(e);if(t){const t=kR(e.initializer);K&&n?aI(t,e):YS(t,yl(e),e,e.initializer)}n&&(iE(e.name)?gj(65,r,Lt,e):K&&aI(r,e))}return}const n=os(e);if(2097152&n.flags&&(Zm(e)||eg(e)))return void CB(e);const r=rj(Gl(n));if(e===n.valueDeclaration){const o=K_(e)&&ag(e);if(o&&!(Wm(e)&&sE(o)&&(0===o.properties.length||Lb(e.name))&&(null==(t=n.exports)?void 0:t.size)||249===e.parent.parent.kind)){const t=kR(o);YS(t,r,e,o,void 0);const n=7&QU(e);if(6===n){const e=(i=!0,Mr||(Mr=dy("AsyncDisposable",0,i))||Nn),n=Ay(!0);e!==Nn&&n!==Nn&&QS(t,mv([e,n,Ut,Lt]),o,Pa.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}else if(4===n){const e=Ay(!0);e!==Nn&&QS(t,mv([e,Ut,Lt]),o,Pa.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}n.declarations&&n.declarations.length>1&&te(n.declarations,(t=>t!==e&&$f(t)&&!aj(t,e)))&&Co(e.name,Pa.All_declarations_of_0_must_have_identical_modifiers,zp(e.name))}else{const t=rj(yl(e));Tc(r)||Tc(t)||AS(r,t)||67108864&n.flags||oj(n.valueDeclaration,r,e,t),K_(e)&&e.initializer&&YS(kR(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!aj(e,n.valueDeclaration)&&Co(e.name,Pa.All_declarations_of_0_must_have_identical_modifiers,zp(e.name))}var i;172!==e.kind&&171!==e.kind&&(pM(e),260!==e.kind&&208!==e.kind||function(e){if(7&QU(e)||hy(e))return;const t=os(e);if(1&t.flags){if(!nN(e.name))return En.fail();const n=Me(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&KA(n)){const t=Bh(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&vu(r.parent)||268===r.kind||267===r.kind||307===r.kind)){const t=Hs(n);Co(e,Pa.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),nj(e,e.name))}function oj(e,t,n,r){const i=Jc(n),o=172===n.kind||171===n.kind?Pa.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Pa.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=zp(i),s=Co(i,o,a,Ys(t),Ys(r));e&&DT(s,Gp(e,Pa._0_was_also_declared_here,a))}function aj(e,t){return 169===e.kind&&260===t.kind||260===e.kind&&169===t.kind||Jg(e)===Jg(t)&&ob(e,1358)===ob(t,1358)}function sj(e){var t,n;null==(t=pr)||t.push(pr.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){const t=QU(e),n=7&t;if(Bu(e.name))switch(n){case 6:return zU(e,Pa._0_declarations_may_not_have_binding_patterns,"await using");case 4:return zU(e,Pa._0_declarations_may_not_have_binding_patterns,"using")}if(249!==e.parent.parent.kind&&250!==e.parent.parent.kind)if(33554432&t)LU(e);else if(!e.initializer){if(Bu(e.name)&&!Bu(e.parent))return zU(e,Pa.A_destructuring_declaration_must_have_an_initializer);switch(n){case 6:return zU(e,Pa._0_declarations_must_be_initialized,"await using");case 4:return zU(e,Pa._0_declarations_must_be_initialized,"using");case 2:return zU(e,Pa._0_declarations_must_be_initialized,"const")}}if(e.exclamationToken&&(243!==e.parent.parent.kind||!e.type||e.initializer||33554432&t)){const t=e.initializer?Pa.Declarations_with_initializer
6s_cannot_also_have_definite_assignment_assertions:e.type?Pa.A_definite_assignment_assertion_is_not_permitted_in_this_context:Pa.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return zU(e.exclamationToken,t)}!(B<5||1===Id(e).impliedNodeFormat)||4===B||33554432&e.parent.parent.flags||!Xv(e.parent.parent,32)||RU(e.name),n&&MU(e.name)}(e),ij(e),null==(n=pr)||n.pop()}function cj(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==Le(t))return zU(e,Pa.A_rest_element_must_be_last_in_a_destructuring_pattern);if(vU(t,Pa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return zU(e.name,Pa.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&qU(e,e.initializer.pos-1,1,Pa.A_rest_element_cannot_have_an_initializer)}(e),ij(e)}function lj(e){const t=7&xc(e);(4===t||6===t)&&R<99&&mU(e,16777216),d(e.declarations,LB)}function uj(e){hU(e)||jU(e.declarationList)||function(e){if(!BU(e.parent)){const t=7&QU(e.declarationList);if(t){const n=1===t?"let":2===t?"const":4===t?"using":6===t?"await using":En.fail("Unknown BlockScope flag");zU(e,Pa._0_declarations_can_only_be_declared_inside_a_block,n)}}}(e),lj(e.declarationList)}function _j(e,t,n){function r(e,t){for(i(e=bh(e),t);kE(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)i(e=bh(e.left),t)}function i(e,n){var i;const o=Sb(e)?bh(e.right):e;if(gg(o))return;if(Sb(o))return void r(o,n);const a=o===e?t:pj(o);if(1024&a.flags&&cE(o)&&384&(null!=(i=Xo(o.expression).resolvedSymbol)?i:bt).flags)return void Co(o,Pa.This_condition_will_always_return_0,a.value?"true":"false");const s=cE(o)&&TR(o.expression);if(!hD(a,4194304)||s)return;const c=of(a,0),l=!!fM(a);if(0===c.length&&!l)return;const u=nN(o)?o:cE(o)?o.name:void 0,_=u&&xJ(u);if(!_&&!l)return;const d=_&&kE(e.parent)&&function(e,t){for(;kE(e)&&56===e.operatorToken.kind;){if(ZI(e.right,(function e(n){if(nN(n)){const e=xJ(n);if(e&&e===t)return!0}return ZI(n,e)})))return!0;e=e.parent}return!1}(e.parent,_)||_&&n&&function(e,t,n,r){return!!ZI(t,(function t(i){if(nN(i)){const t=xJ(i);if(t&&t===r){if(nN(e)||nN(n)&&kE(n.parent))return!0;let t=n.parent,r=i.parent;for(;t&&r;){if(nN(t)&&nN(r)||110===t.kind&&110===r.kind)return xJ(t)===xJ(r);if(cE(t)&&cE(r)){if(xJ(t.name)!==xJ(r.name))return!1;r=r.expression,t=t.expression}else{if(!uE(t)||!uE(r))return!1;r=r.expression,t=t.expression}}}}return ZI(i,t)}))}(e,n,u,_);d||(l?No(o,!0,Pa.This_condition_will_always_return_true_since_this_0_is_always_defined,ec(a)):Co(o,Pa.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}K&&r(e,n)}function dj(e,t){return 16384&e.flags&&Co(t,Pa.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function pj(e,t){return dj(qR(e,t),e)}function fj(e){PU(e);const t=tI(qR(e.expression));if(261===e.initializer.kind){const t=e.initializer.declarations[0];t&&Bu(t.name)&&Co(t.name,Pa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),lj(e.initializer)}else{const n=e.initializer,r=qR(n);209===n.kind||210===n.kind?Co(n,Pa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):jS(function(e){const t=sb(ab(e));return 131072&t.flags?zt:t}(t),r)?tR(n,Pa.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,Pa.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Co(n,Pa.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==nn&&sR(t,126091264)||Co(e.expression,Pa.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Ys(t)),LB(e.statement),e.locals&&RM(e)}function mj(e){return gj(e.awaitModifier?15:13,ZA(e.expression),Lt,e.expression)}function gj(e,t,n,r){return kc(t)?t:hj(e,t,n,r,!0)||Ct}function hj(e,t,n,r,i){const o=!!(2&e);if(t===nn)return void(r&&Fj(r,t,o));const a=R>=2,s=!a&&I.downlevelIteration,c=I.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=kj(t,e,a?r:void 0);if(i&&o){const t=8&e?Pa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?Pa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al
6ways_send_0:64&e?Pa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?Pa.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&QS(n,o.nextType,r,t)}if(o||a)return c?wD(o&&o.yieldType):o&&o.yieldType}let l=t,u=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=L(e,(e=>!(402653316&e.flags)));n!==e&&(l=mv(n,2))}else 402653316&l.flags&&(l=nn);if(u=l!==t,u&&131072&l.flags)return c?wD(zt):zt}if(!uT(l)){if(r){const n=!!(4&e)&&!u,[i,o]=function(n,r){var i;return r?n?[Pa.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[Pa.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:yj(e,0,t,void 0)?[Pa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[Pa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[Pa.Type_0_is_not_an_array_type_or_a_string_type,!0]:[Pa.Type_0_is_not_an_array_type,!0]}(n,s);No(r,o&&!!fM(l),i,Ys(l))}return u?c?wD(zt):zt:void 0}const _=Cf(l,$t);return u&&_?402653316&_.flags&&!I.noUncheckedIndexedAccess?zt:mv(c?[_,zt,Lt]:[_,zt],2):128&e?wD(_):_}function yj(e,t,n,r){if(kc(n))return;const i=kj(n,e,r);return i&&i[oJ(t)]}function vj(e=nn,t=nn,n=It){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=Og([e,t,n]);let i=li.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},li.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function bj(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==ui){if(i===_i)return _i;t=fe(t,i.yieldType),n=fe(n,i.returnType),r=fe(r,i.nextType)}return t||n||r?vj(t&&mv(t),n&&mv(n),r&&kv(r)):ui}function xj(e,t){return e[t]}function Sj(e,t,n){return e[t]=n}function kj(e,t,n){var r,i;if(kc(e))return _i;if(!(1048576&e.flags)){const i=n?{errors:void 0}:void 0,o=Cj(e,t,n,i);if(o===ui){if(n){const r=Fj(n,e,!!(2&t));(null==i?void 0:i.errors)&&DT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)so.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=xj(e,o);if(a)return a===ui?void 0:a;let s;for(const l of e.types){const r=n?{errors:void 0}:void 0,a=Cj(l,t,n,r);if(a===ui){if(n){const i=Fj(n,e,!!(2&t));(null==r?void 0:r.errors)&&DT(i,...r.errors)}return void Sj(e,o,ui)}if(null==(i=null==r?void 0:r.errors)?void 0:i.length)for(const e of r.errors)so.add(e);s=fe(s,a)}const c=s?bj(s):ui;return Sj(e,o,c),c===ui?void 0:c}function Tj(e,t){if(e===ui)return ui;if(e===_i)return _i;const{yieldType:n,returnType:r,nextType:i}=e;return t&&Oy(!0),vj(SM(n,t)||Ct,SM(r,t)||Ct,i)}function Cj(e,t,n,r){if(kc(e))return _i;let i=!1;if(2&t){const r=wj(e,fi)||Nj(e,fi);if(r){if(r!==ui||!n)return 8&t?Tj(r,n):r;i=!0}}if(1&t){let r=wj(e,mi)||Nj(e,mi);if(r)if(r===ui&&n)i=!0;else{if(!(2&t))return r;if(r!==ui)return r=Tj(r,n),i?r:Sj(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=Pj(e,fi,n,r,i);if(t!==ui)return t}if(1&t){let o=Pj(e,mi,n,r,i);if(o!==ui)return 2&t?(o=Tj(o,n),i?o:Sj(e,"iterationTypesOfAsyncIterable",o)):o}return ui}function wj(e,t){return xj(e,t.iterableCacheKey)}function Dj(e,t){const n=wj(e,t)||Pj(e,t,void 0,void 0,!1);return n===ui?pi:n}function Nj(e,t){let n;if(Zl(e,n=t.getGlobalIterableType(!1))||Zl(e,n=t.getGlobalIterableIteratorType(!1))){const[r]=Xg(e),{returnType:i,nextType:o}=Dj(n,t);return Sj(e,t.iterableCacheKey,vj(t.resolveIterationType(r,void 0)||r,t.resolveIterationType(i,void 0)||i,o))}if(Zl(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Xg(e);return Sj(e,t.iterableCacheKey,vj(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function Ej(e){const t=ky(!1),n=t&&bc(Gl(t),Ec(e));return n&&NC(n)?EC(n):`__@${e}`}function Pj(e,t,n,r,i){var o;const a=ef(e,Ej(t.iteratorSymbolName)),s=!a||16777216&a.flags?void 0:Gl(a);if(kc(s))return i?_i:Sj(e,t.iterableCacheKey,_i);const c=s?of(s,0):void 0;if(!te(c))return i?ui:Sj(e,t.iterableCacheKey,ui);const l=null!=(o=Aj(kv(j(c,sm)),t,n,r,i))?o:ui;return i?l:Sj(e,t.iterableCacheKey,l)}function Fj(e,t,n){const r=n?Pa.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Pa.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return No(e,!!fM(t)||!n&&GE(e.parent)&&e.parent.expression===e&&Ny(!1)!==Ln&&jS(t,Ny(!1)),r,Ys(t))}function Aj(e,t,n,r,i){if(kc(e))return _i;let o=Ij(e,t)||function(e,t){const n=t.getGlobalIterableIteratorType(!1);if(Zl(e,n)){const[r]=Xg(e),i=Ij(n,t)||Bj(n,t,void 0,void 0,!1),{returnType:o,nextType:a}=i===ui?pi:i;return Sj(e,t.iteratorCacheKey,vj(r,o,a))}if(Zl(e,t.getGlobalIteratorType(!1))||Zl(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Xg(e);return Sj(e,t.iteratorCacheKey,vj(n,r,i))}}(e,t);return o===ui&&n&&(o=void 0,i=!0),null!=o||(o=Bj(e,t,n,r,i)),o===ui?void 0:o}function Ij(e,t){return xj(e,t.iteratorCacheKey)}function Oj(e,t){const n=bc(e,"done")||Wt;return jS(0===t?Wt:Kt,n)}function Lj(e){return Oj(e,0)}function Rj(e){return Oj(e,1)}function Mj(e){if(kc(e))return _i;const t=xj(e,"iterationTypesOfIteratorResult");if(t)return t;if(Zl(e,(n=!1,Cr||(Cr=dy("IteratorYieldResult",1,n))||Ln)))return Sj(e,"iterationTypesOfIteratorResult",vj(Xg(e)[0],void 0,void 0));var n;
6if(Zl(e,function(e){return wr||(wr=dy("IteratorReturnResult",1,e))||Ln}(!1)))return Sj(e,"iterationTypesOfIteratorResult",vj(void 0,Xg(e)[0],void 0));const r=$D(e,Lj),i=r!==nn?bc(r,"value"):void 0,o=$D(e,Rj),a=o!==nn?bc(o,"value"):void 0;return Sj(e,"iterationTypesOfIteratorResult",i||a?vj(i,a||en,void 0):ui)}function jj(e,t,n,r,i){var o,a,s,l;const u=ef(e,n);if(!u&&"next"!==n)return;const _=!u||"next"===n&&16777216&u.flags?void 0:"next"===n?Gl(u):vD(Gl(u),2097152);if(kc(_))return"next"===n?_i:di;const d=_?of(_,0):c;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(null!=i.errors||(i.errors=[]),i.errors.push(Gp(r,e,n))):Co(r,e,n)}return"next"===n?ui:void 0}if((null==_?void 0:_.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===_.symbol,c=!i&&(null==(l=null==(s=r.symbol)?void 0:s.members)?void 0:l.get(n))===_.symbol;if(i||c){const t=i?e:r,{mapper:o}=_;return vj(Gx(t.typeParameters[0],o),Gx(t.typeParameters[1],o),"next"===n?Gx(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const c of d)"throw"!==n&&te(c.parameters)&&(p=fe(p,pL(c,0))),f=fe(f,sm(c));if("throw"!==n){const e=p?mv(p):It;"next"===n?g=e:"return"===n&&(m=fe(m,t.resolveIterationType(e,r)||Ct))}const y=f?kv(f):nn,v=Mj(t.resolveIterationType(y,r)||Ct);return v===ui?(r&&(i?(null!=i.errors||(i.errors=[]),i.errors.push(Gp(r,t.mustHaveAValueDiagnostic,n))):Co(r,t.mustHaveAValueDiagnostic,n)),h=Ct,m=fe(m,Ct)):(h=v.yieldType,m=fe(m,v.returnType)),vj(h,mv(m),g)}function Bj(e,t,n,r,i){const o=bj([jj(e,t,"next",n,r),jj(e,t,"return",n,r),jj(e,t,"throw",n,r)]);return i?o:Sj(e,t.iteratorCacheKey,o)}function Jj(e,t,n){if(kc(t))return;const r=qj(t,n);return r&&r[oJ(e)]}function qj(e,t){if(kc(e))return _i;const n=t?fi:mi;return kj(e,t?2:1,void 0)||function(e,t,n,r){return Aj(e,t,n,r,!1)}(e,n,void 0,void 0)}function zj(e){VU(e)||function(e){let t=e;for(;t;){if(bu(t))return zU(e,Pa.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 256:if(e.label&&t.label.escapedText===e.label.escapedText)return!(251!==e.kind||u_(t.statement,!0))&&zU(e,Pa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 255:if(252===e.kind&&!e.label)return!1;break;default:if(u_(t,!1)&&!e.label)return!1}t=t.parent}if(e.label)return zU(e,252===e.kind?Pa.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Pa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);zU(e,252===e.kind?Pa.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Pa.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function $j(e,t){const n=!!(2&t);if(1&t){const t=Jj(1,e,n);return t?n?kM(vM(t)):t:Et}return n?kM(e)||Et:e}function Vj(e,t){const n=$j(t,Qh(e));return!(!n||!(aR(n,16384)||32769&n.flags))}function Wj(e){VU(e)||nN(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=Id(e);if(!JU(r)){const i=sf(r,e.pos);so.add(vS(r,Ks(i),0,t,...n))}}(e,Pa.Line_break_not_permitted_here),e.expression&&qR(e.expression)}function Kj(e,t,n){const r=Sf(e);if(0===r.length)return;for(const o of Hd(e))n&&4194304&o.flags||Gj(e,o,zv(o,8576,!0),Yl(o));const i=t.valueDeclaration;if(i&&Du(i))for(const o of i.members)if(!Qv(o)&&!y_(o)){const t=os(o);Gj(e,t,BR(o.name.expression),Yl(t))}if(r.length>1)for(const o of r)Xj(e,o)}function Gj(e,t,n,r){const i=t.valueDeclaration,o=Jc(i);if(o&&rN(o))return;const a=wf(e,n),s=2&Bx(e)?ld(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=cs(t)===e.symbol?i:void 0;for(const u of a){const n=u.declaration&&cs(os(u.declaration))===e.symbol?u.declaration:void 0,i=l||n||(s&&!te(Au(e),(e=>!!Kd(e,t.escapedName)&&!!Cf(e,u.keyType)))?s:void 0);if(i&&!jS(r,u.type)){const e=To(i,Pa.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Hs(t),Ys(r),Ys(u.keyType),Ys(u.type));c&&i!==c&&DT(e,Gp(c,Pa._0_is_declared_here,Hs(t))),so.add(e)}}}
6function Xj(e,t){const n=t.declaration,r=wf(e,t.keyType),i=2&Bx(e)?ld(e.symbol,264):void 0,o=n&&cs(os(n))===e.symbol?n:void 0;for(const a of r){if(a===t)continue;const n=a.declaration&&cs(os(a.declaration))===e.symbol?a.declaration:void 0,r=o||n||(i&&!te(Au(e),(e=>!!Tf(e,t.keyType)&&!!Cf(e,a.keyType)))?i:void 0);r&&!jS(t.type,a.type)&&Co(r,Pa._0_index_type_1_is_not_assignable_to_2_index_type_3,Ys(t.keyType),Ys(t.type),Ys(a.keyType),Ys(a.type))}}function Yj(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":Co(e,t,e.escapedText)}}function eB(e){let t=!1;if(e)for(let r=0;r<e.length;r++){const t=e[r];zR(t),a(n(t,r))}function n(n,r){return()=>{n.default?(t=!0,function(e,t,n){function r(e){if(183===e.kind){const r=Kh(e);if(262144&r.flags)for(let i=n;i<t.length;i++)r.symbol===os(t[i])&&Co(e,Pa.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}ZI(e,r)}r(e)}(n.default,e,r)):t&&Co(n,Pa.Required_type_parameters_may_not_follow_optional_type_parameters);for(let t=0;t<r;t++)e[t].symbol===n.symbol&&Co(n.name,Pa.Duplicate_identifier_0,zp(n.name))}}}function tB(e){if(e.declarations&&1===e.declarations.length)return;const t=Ko(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;const n=function(e){return L(e.declarations,(e=>263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!nB(n,Wu(e).localTypeParameters,wl)){const t=Hs(e);for(const e of n)Co(e.name,Pa.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function nB(e,t,n){const r=_(t),i=Lf(t);for(const o of e){const e=n(o),a=e.length;if(a<i||a>r)return!1;for(let n=0;n<a;n++){const r=e[n],i=t[n];if(r.name.escapedText!==i.symbol.escapedName)return!1;const o=Dl(r),a=o&&Mx(o),s=Yd(i);if(a&&s&&!AS(a,s))return!1;const c=r.default&&Mx(r.default),l=fp(i);if(c&&l&&!AS(c,l))return!1}}return!0}function rB(e){var t;const n=!z&&R<99&&Fm(!1,e),r=R<9||R<99,i=!V;if(n||r)for(const o of e.members){if(n&&Am(!1,o,e))return null!=(t=Pe(qc(e)))?t:e;if(r){if(wN(o))return o;if(Qv(o)&&(uu(o)||i&&uU(o)))return o}}}function iB(e){!function(e){const t=Id(e);(function(e){let t=!1,n=!1;if(!hU(e)&&e.heritageClauses)for(const r of e.heritageClauses){if(96===r.token){if(t)return UU(r,Pa.extends_clause_already_seen);if(n)return UU(r,Pa.extends_clause_must_precede_implements_clause);if(r.types.length>1)return UU(r.types[1],Pa.Classes_can_only_extend_a_single_class);t=!0}else{if(En.assert(119===r.token),n)return UU(r,Pa.implements_clause_already_seen);n=!0}TU(r)}})(e)||bU(e.typeParameters,t)}(e),IM(e),nj(e,e.name),eB(wl(e)),pM(e);const t=os(e),n=Wu(t),r=w_(n),i=Gl(t);tB(t),dM(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)fc(e,o)&&!Bu(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Qv(o),a=o.name;if(!a)continue;const s=rN(a),c=s&&e?16:0,l=s?r:e?n:t,u=a&&GU(a);if(u)switch(o.kind){case 177:i(l,a,u,1|c);break;case 178:i(l,a,u,2|c);break;case 172:i(l,a,u,3|c);break;case 174:i(l,a,u,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))Co(t,Pa.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,ap(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&Co(t,Pa.Duplicate_identifier_0,ap(t)):i&r&-17?Co(t,Pa.Duplicate_identifier_0,ap(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(Qv(t)&&n){const t=GU(n);switch(t){case"name":case"length":case"caller":case"arguments":if($)break;case"prototype":Co(n,Pa.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,lc(os(e)))}}}}(e);const o=Ih(e);if(o){d(o.typeArguments,LB),R<2&&mU(o.parent,1);const t=Oh(e);t&&t!==o&&qR(t.expression);const s=Au(n);s.length&&a((()=>{const t=s[0],a=Tu(n),c=Ep(a);if(function(e,t){const n=of(e,1);if(n.length){const r=n[0].declaration;r&&Gv(r,2)&&(mJ(t,jx(e.symbol))||Co(t,Pa.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ba(e.symbol)))}}(c,o),LB(o.expression),te(o.typeArguments)){d(o.typeArguments,LB);for(const e of yu(c,o.typeArguments,o))if(!rM(o,e.typeParameters))break}const l=w_(t,n.thisType);
6QS(r,l,void 0)?QS(i,FS(c),e.name||e,Pa.Class_static_side_0_incorrectly_extends_base_class_static_side_1):cB(e,r,l,Pa.Class_0_incorrectly_extends_base_class_1),8650752&a.flags&&(du(i)?of(a,1).some((e=>4&e.flags))&&!Xv(e,64)&&Co(e.name||e,Pa.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Co(e.name||e,Pa.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&a.flags||d(ku(c,o.typeArguments,o),(e=>!BO(e.declaration)&&!AS(sm(e),t)))&&Co(o.expression,Pa.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o,a;const s=Xd(t),c=new Map;e:for(const l of s){const s=lB(l);if(4194304&s.flags)continue;const u=Kd(e,s.escapedName);if(!u)continue;const _=lB(u),d=Dx(s);if(En.assert(!!_,"derived should point to something, even if it is the base class' declaration."),_===s){const r=jx(e.symbol);if(64&d&&(!r||!Xv(r,64))){for(const n of Au(e)){if(n===t)continue;const e=Kd(n,s.escapedName),r=e&&lB(e);if(r&&r!==s)continue e}const i=Ys(t),o=Ys(e),a=Hs(l),u=fe(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:u})}}else{const n=Dx(_);if(2&d||2&n)continue;let c;const l=98308&s.flags,u=98308&_.flags;if(l&&u){if((6&wx(s)?null==(r=s.declarations)?void 0:r.some((e=>uB(e,d))):null==(i=s.declarations)?void 0:i.every((e=>uB(e,d))))||262144&wx(s)||_.valueDeclaration&&kE(_.valueDeclaration))continue;const c=4!==l&&4===u;if(c||4===l&&4!==u){const n=c?Pa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Pa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Co(Jc(_.valueDeclaration)||_.valueDeclaration,n,Hs(s),Ys(t),Ys(e))}else if($){const r=null==(o=_.declarations)?void 0:o.find((e=>172===e.kind&&!e.initializer));if(r&&!(33554432&_.flags)&&!(64&d)&&!(64&n)&&!(null==(a=_.declarations)?void 0:a.some((e=>!!(33554432&e.flags))))){const n=jC(jx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!nN(i)||!K||!dB(i,e,n)){const e=Pa.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Co(Jc(_.valueDeclaration)||_.valueDeclaration,e,Hs(s),Ys(t))}}}continue}if(GA(s)){if(GA(_)||4&_.flags)continue;En.assert(!!(98304&_.flags)),c=Pa.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?Pa.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Pa.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Co(Jc(_.valueDeclaration)||_.valueDeclaration,c,Ys(t),Hs(s),Ys(e))}}for(const[l,u]of c)if(1===_(u.missedProperties))NE(l)?Co(l,Pa.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ae(u.missedProperties),u.baseTypeName):Co(l,Pa.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,u.typeName,Ae(u.missedProperties),u.baseTypeName);else if(_(u.missedProperties)>5){const e=j(u.missedProperties.slice(0,4),(e=>`'${e}'`)).join(", "),t=_(u.missedProperties)-4;NE(l)?Co(l,Pa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,u.baseTypeName,e,t):Co(l,Pa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,u.typeName,u.baseTypeName,e,t)}else{const e=j(u.missedProperties,(e=>`'${e}'`)).join(", ");NE(l)?Co(l,Pa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,u.baseTypeName,e):Co(l,Pa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,u.typeName,u.baseTypeName,e)}}(n,t)}))}!function(e,t,n,r){const i=Ih(e),o=i&&Au(t),a=(null==o?void 0:o.length)?w_(Ae(o),t.thisType):void 0,s=Tu(t);for(const c of e.members)tb(c)||(DN(c)&&d(c.parameters,(i=>{fc(i,c)&&aB(e,r,s,a,t,n,i,!0)})),aB(e,r,s,a,t,n,c,!1))}(e,n,r,i);const s=Lh(e);if(s)for(const l of s)Pb(l.expression)&&!Il(l.expression)||Co(l.expression,Pa.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),oM(l),a(c(l));function c(t){return()=>{const i=Op(Mx(t));if(!Tc(i))if(Ou(i)){const t=i.symbol&&32&i.symbol.flags?Pa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Pa.Class_0_incorrectly_implements_interface_1,o=w_(i,n.thisType);QS(r,o,void 0)||cB(e,r,o,t)}else Co(t,Pa.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a((()=>{Kj(n,t),Kj(i,t,!0),GR(e),function(e){if(!K||!Z||33554432&e.flags)return;const t=jC(e);for(const n of e.members)if(!(128&cb(n))&&!Qv(n)&&_B(n)){const e=n.name;if(nN(e)||rN(e)||yN(e)){const r=Gl(os(n));3&r.flags||Sk(r)||t&&dB(e,r,t)||Co(n.name,Pa.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,zp(e))}}}(e)}))}function aB(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&xJ(a.name)||xJ(a
6);return l?sB(e,t,n,r,i,o,Zv(a),eb(a),Qv(a),s,Ic(l),c?a:void 0):0}function sB(e,t,n,r,i,o,a,s,c,l,u,_){const d=Wm(e),p=!!(33554432&e.flags);if(r&&(a||I.noImplicitOverride)){const e=Ec(u),i=c?n:r,f=ef(c?t:o,e),m=ef(i,e),g=Ys(r);if(f&&!m&&a){if(_){const e=kI(u,i);e?Co(_,d?Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Pa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,g,Hs(e)):Co(_,d?Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Pa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,g)}return 2}if(f&&(null==m?void 0:m.declarations)&&I.noImplicitOverride&&!p){const e=te(m.declarations,eb);if(a)return 0;if(!e)return _&&Co(_,l?d?Pa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Pa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?Pa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Pa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,g),1;if(s&&e)return _&&Co(_,Pa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,g),1}}else if(a){if(_){const e=Ys(i);Co(_,d?Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Pa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function cB(e,t,n,r){let i=!1;for(const o of e.members){if(Qv(o))continue;const e=o.name&&xJ(o.name)||xJ(o);if(e){const r=ef(t,e.escapedName),a=ef(n,e.escapedName);if(r&&a){const s=()=>kS(void 0,Pa.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Hs(e),Ys(t),Ys(n));QS(Gl(r),Gl(a),o.name||o,void 0,s)||(i=!0)}}}i||QS(t,n,e.name||e,r)}function lB(e){return 1&wx(e)?e.links.target:e}function uB(e,t){return 64&t&&(!kN(e)||!e.initializer)||lP(e.parent)}function _B(e){return 172===e.kind&&!eb(e)&&!e.exclamationToken&&!e.initializer}function dB(e,t,n){const r=yN(e)?_w.createElementAccessExpression(_w.createThis(),e.expression):_w.createPropertyAccessExpression(_w.createThis(),e);return HT(r.expression,r),HT(r,n),r.flowNode=n.returnFlowNode,!Sk(BN(r,t,TC(t)))}function pB(e){hU(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return En.assert(119===n.token),UU(n,Pa.Interface_declaration_cannot_have_implements_clause);if(t)return UU(n,Pa.extends_clause_already_seen);t=!0,TU(n)}}(e),eB(e.typeParameters),a((()=>{Yj(e.name,Pa.Interface_name_cannot_be_0),pM(e);const t=os(e);tB(t);const n=ld(t,264);if(e===n){const n=Wu(t),r=w_(n);if(function(e,t){const n=Au(e);if(n.length<2)return!0;const r=new Map;d(l_(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=Xd(w_(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===tT(n.prop,a,IS)){i=!1;const r=Ys(n.containingType),s=Ys(o);let c=kS(void 0,Pa.Named_property_0_of_types_1_and_2_are_not_identical,Hs(a),r,s);c=kS(c,Pa.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ys(e),r,s),so.add(Yp(Id(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of Au(n))QS(r,w_(t,n.thisType),e.name,Pa.Interface_0_incorrectly_extends_interface_1);Kj(n,t)}}KR(e)})),d(Mh(e),(e=>{Pb(e.expression)&&!Il(e.expression)||Co(e.expression,Pa.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),oM(e)})),d(e.members,LB),a((()=>{GR(e),RM(e)}))}function fB(e){const t=Xo(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=gB(t,r,n);Xo(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function gB(e,t,n){if(Vp(e.name))Co(e.name,Pa.Computed_property_names_are_not_allowed_in_enums);else{const t=Hp(e.name);aC(t)&&!nC(t)&&Co(e.name,Pa.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=pf(e.parent),n=e.initializer,r=de(n,e);return void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?Co(n,isNaN(r.value)?Pa.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Pa.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):zS(I)&&"string"==typeof r.value&&!r.isSyntacticallyString&&Co(n,Pa._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Fc(e.parent.name)}.${Hp(e.name)}
6`):t?Co(n,Pa.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?Co(n,Pa.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):QS(qR(n),$t,n,Pa.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e);if(33554432&e.parent.flags&&!pf(e.parent))return LC(void 0);if(void 0===t)return Co(e.name,Pa.Enum_member_must_have_initializer),LC(void 0);if(zS(I)&&(null==n?void 0:n.initializer)){const t=WJ(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&Co(e.name,Pa.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return LC(t)}function hB(e,t){const n=Ja(e,111551,!0);if(!n)return LC(void 0);if(80===e.kind){const t=e;if(nC(t.escapedText)&&n===_y(t.escapedText,111551,void 0))return LC(+t.escapedText,!1)}if(8&n.flags)return t?yB(e,n,t):WJ(n.valueDeclaration);if(vE(n)){const e=n.valueDeclaration;if(e&&oP(e)&&!e.type&&e.initializer&&(!t||e!==t&&Yo(e,t))){const n=de(e.initializer,e);return t&&Id(t)!==Id(e)?LC(n.value,!1,!0,!0):LC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return LC(void 0)}function yB(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return Co(e,Pa.Property_0_is_used_before_being_assigned,Hs(t)),LC(void 0);if(!Yo(r,n))return Co(e,Pa.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),LC(0);const i=WJ(r);return n.parent!==r.parent?LC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function vB(e){a((()=>function(e){hU(e),nj(e,e.name),pM(e),e.members.forEach(xB),fB(e);const t=os(e),n=ld(t,e.kind);if(e===n){if(t.declarations&&t.declarations.length>1){const n=pf(e);d(t.declarations,(e=>{_P(e)&&pf(e)!==n&&Co(Jc(e),Pa.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;d(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?Co(r.name,Pa.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}function xB(e){rN(e.name)&&Co(e,Pa.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&qR(e.initializer)}function SB(e){e.body&&(LB(e.body),Tp(e)||RM(e)),a((function(){var t,n;const r=Tp(e),i=33554432&e.flags;r&&!i&&Co(e.name,Pa.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const o=yp(e),a=o?Pa.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Pa.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(FB(e,a))return;hU(e)||i||11!==e.name.kind||zU(e.name,Pa.Only_ambient_modules_can_use_quoted_names),nN(e.name)&&nj(e,e.name),pM(e);const s=os(e);if(512&s.flags&&!i&&tJ(e,XS(I))){if(zS(I)&&!Id(e).externalModuleIndicator&&Co(e.name,Pa.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,De),(null==(t=s.declarations)?void 0:t.length)>1){const t=function(e){const t=e.declarations;if(t)for(const n of t)if((263===n.kind||262===n.kind&&qd(n.body))&&!(33554432&n.flags))return n}(s);t&&(Id(e)!==Id(t)?Co(e.name,Pa.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<t.pos&&Co(e.name,Pa.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const n=ld(s,263);n&&function(e,t){const n=Up(e),r=Up(t);return uf(n)?uf(r):!uf(r)&&n===r}(e,n)&&(Xo(e).flags|=2048)}if(I.verbatimModuleSyntax&&307===e.parent.kind&&(1===B||1===e.parent.impliedNodeFormat)){const t=null==(n=e.modifiers)?void 0:n.find((e=>95===e.kind));t&&Co(t,Pa.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(o)if(Cp(e)){if((r||33554432&os(e).flags)&&e.body)for(const c of e.body.statements)kB(c,r)}else uf(e.parent)?r?Co(e.name,Pa.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Vs(oy(e.name))&&Co(e.name,Pa.Ambient_module_declaration_cannot_specify_relative_module_name):Co(e.name,r?Pa.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Pa.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function kB(e,t){switch(e.kind){case 243:for(const r of e.declarationList.declarations)kB(r,t);break;case 277:case 278:UU(e,Pa.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:UU(e,Pa.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(Bu(n)){for(const e of n.elements)kB(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function TB(e){const t=Rg(e);
6if(!t||Ud(t))return!1;if(!BD(t))return Co(t,Pa.String_literal_expected),!1;const n=268===e.parent.kind&&yp(e.parent.parent);if(307!==e.parent.kind&&!n)return Co(t,278===e.kind?Pa.Export_declarations_are_not_permitted_in_a_namespace:Pa.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Vs(t.text)&&!ac(e))return Co(e,Pa.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!gP(e)&&e.attributes){const t=118===e.attributes.token?Pa.Import_attribute_values_must_be_string_literal_expressions:Pa.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)BD(r.value)||(n=!0,Co(r.value,t));return!n}return!0}function CB(e){var t,n,r,i,o;let a=os(e);const s=Ia(a);if(s!==bt){if(a=is(a.exportSymbol||a),Wm(e)&&!(111551&s.flags)&&!iu(e)){const c=tu(e)?e.propertyName||e.name:jc(e)?e.name:e;if(En.assert(280!==e.kind),281===e.kind){const t=Co(c,Pa.Types_cannot_appear_in_export_declarations_in_JavaScript_files),o=null==(r=null==(n=Id(e).symbol)?void 0:n.exports)?void 0:r.get((e.propertyName||e.name).escapedText);if(o===s){const e=null==(i=o.declarations)?void 0:i.find(J_);e&&DT(t,Gp(e,Pa._0_is_automatically_exported_here,Pc(o.escapedName)))}}else{En.assert(260!==e.kind);const n=wc(e,vn(hP,gP)),r=null!=(t=n&&(null==(o=Ig(n))?void 0:o.text))?t:"...",i=Pc(nN(c)?c.escapedText:a.escapedName);Co(c,Pa._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const c=Oa(s);if(c&((1160127&a.flags?111551:0)|(788968&a.flags?788968:0)|(1920&a.flags?1920:0))?Co(e,281===e.kind?Pa.Export_declaration_conflicts_with_exported_declaration_of_0:Pa.Import_declaration_conflicts_with_local_declaration_of_0,Hs(a)):281!==e.kind&&I.isolatedModules&&!wc(e,iu)&&1160127&a.flags&&Co(e,Pa.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Hs(a),De),zS(I)&&!iu(e)&&!(33554432&e.flags)){const t=Ma(a),n=!(111551&c);if(n||t)switch(e.kind){case 273:case 276:case 271:if(I.verbatimModuleSyntax){En.assertIsDefined(e.name,"An ImportClause with a symbol should have a name");const r=I.verbatimModuleSyntax&&qm(e)?Pa.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:n?Pa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Pa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=Fc(276===e.kind&&e.propertyName||e.name);ta(Co(e,r,i),n?void 0:t,i)}n&&271===e.kind&&Gv(e,32)&&Co(e,Pa.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,De);break;case 281:if(I.verbatimModuleSyntax||Id(t)!==Id(e)){const r=Fc(e.propertyName||e.name);ta(n?Co(e,Pa.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,De):Co(e,Pa._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,r,De),n?void 0:t,r);break}}!I.verbatimModuleSyntax||271===e.kind||Wm(e)||1!==B&&1!==Id(e).impliedNodeFormat||Co(e,Pa.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(DP(e)){const t=wB(a,e);Po(t)&&t.declarations&&Ao(e,t.declarations,t.escapedName)}}}function wB(e,t){if(!(2097152&e.flags)||Po(e)||!_a(e))return e;const n=Ia(e);if(n===bt)return n;for(;2097152&e.flags;){const r=pA(e);if(!r)break;if(r===n)break;if(r.declarations&&_(r.declarations)){if(Po(r)){Ao(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function DB(e){nj(e,e.name),CB(e),276===e.kind&&"default"===Fc(e.propertyName||e.name)&&$S(I)&&4!==B&&(B<5||1===Id(e).impliedNodeFormat)&&mU(e,131072)}function NB(e){var t;const n=e.attributes;if(n){const r=Sy(!0);r!==Nn&&QS(vl(n),mC(r,32768),n);const i=d$(e),o=m$(n,i?zU:void 0),a=118===e.attributes.token;if(i&&o)return;if(99!==(199===B&&e.moduleSpecifier&&ha(e.moduleSpecifier))&&99!==B&&200!==B)return zU(n,a?199===B?Pa.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Pa.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:199===B?Pa.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Pa.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve);if(VF(e)||(hP(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return zU(n,a?Pa.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Pa.Import_assertions_cannot_be_used_with_type_only_imports_or_exports
6);if(o)return zU(n,Pa.resolution_mode_can_only_be_set_for_type_only_imports)}}function EB(e){if(!FB(e,Wm(e)?Pa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Pa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!hU(e)&&e.modifiers&&UU(e,Pa.An_import_declaration_cannot_have_modifiers),TB(e)){const t=e.importClause;t&&!function(e){var t;return e.isTypeOnly&&e.name&&e.namedBindings?zU(e,Pa.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!e.isTypeOnly||275!==(null==(t=e.namedBindings)?void 0:t.kind))&&HU(e.namedBindings)}(t)&&(t.name&&DB(t),t.namedBindings)&&(274===t.namedBindings.kind?(DB(t.namedBindings),4!==B&&(B<5||1===Id(e).impliedNodeFormat)&&$S(I)&&mU(e,65536)):qa(e,e.moduleSpecifier)&&d(t.namedBindings.elements,DB))}NB(e)}}function PB(e){if(!FB(e,Wm(e)?Pa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Pa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!hU(e)&&Kv(e)&&UU(e,Pa.An_export_declaration_cannot_have_modifiers),function(e){var t;if(e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind))HU(e.exportClause)}(e),!e.moduleSpecifier||TB(e))if(e.exportClause&&!CP(e.exportClause)){d(e.exportClause.elements,AB);const t=268===e.parent.kind&&yp(e.parent.parent),n=!t&&268===e.parent.kind&&!e.moduleSpecifier&&33554432&e.flags;307===e.parent.kind||t||n||Co(e,Pa.Export_declarations_are_not_permitted_in_a_namespace)}else{const t=qa(e,e.moduleSpecifier);t&&Xa(t)?Co(e.moduleSpecifier,Pa.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Hs(t)):e.exportClause&&CB(e.exportClause),4!==B&&(B<5||1===Id(e).impliedNodeFormat)&&(e.exportClause?$S(I)&&mU(e,65536):mU(e,32768))}NB(e)}}function FB(e,t){const n=307===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||UU(e,t),!n}function AB(e){if(CB(e),GS(I)&&_c(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier)$S(I)&&4!==B&&(B<5||1===Id(e).impliedNodeFormat)&&"default"===Fc(e.propertyName||e.name)&&mU(e,131072);else{const t=e.propertyName||e.name,n=Me(t,t.escapedText,2998271,void 0,!0);n&&(n===ge||n===be||n.declarations&&uf(yc(n.declarations[0])))?Co(t,Pa.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Fc(t)):RE(e,7)}}function IB(e){const t=os(e),n=Ko(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return bd(e.exports,((e,t)=>"export="!==t))}(t)){const t=_a(e)||e.valueDeclaration;!t||ac(t)||Wm(t)||Co(t,Pa.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ts(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=O(e,yn(GB,bn(lP)));if(!(524288&t&&r<=2)&&r>1&&!OB(e))for(const i of e)rJ(i)&&so.add(Gp(i,Pa.Cannot_redeclare_exported_variable_0,Pc(n)))})),n.exportsChecked=!0}}function OB(e){return e&&e.length>1&&e.every((e=>Wm(e)&&Hx(e)&&(fg(e.expression)||gg(e.expression))))}function LB(e){if(e){const n=r;r=e,b=0,function(e){Gg(e)&&d(e.jsDoc,(({comment:t,tags:n})=>{RB(t),d(n,(t=>{RB(t.comment),Wm(e)&&LB(t)}))}));const n=e.kind;if(t)switch(n){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}switch(n>=243&&n<=259&&Kg(e)&&e.flowNode&&!dN(e.flowNode)&&Do(!1===I.allowUnreachableCode,e,Pa.Unreachable_code_detected),n){case 168:return zR(e);case 169:return $R(e);case 172:return XR(e);case 171:return function(e){return rN(e.name)&&Co(e,Pa.Private_identifiers_are_not_allowed_outside_class_bodies),XR(e)}(e);case 185:case 184:case 179:case 180:case 181:return WR(e);case 174:case 173:return function(e){IU(e)||wU(e.name),CN(e)&&e.asteriskToken&&nN(e.name)&&"constructor"===Fc(e.name)&&Co(e.name,Pa.Class_constructor_may_not_be_a_generator),LM(e),Xv(e,64)&&174===e.kind&&e.body&&Co(e,Pa.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,zp(e.name)),rN(e.name)&&!um(e)&&Co(e,Pa.Private_identifiers_are_not_allowed_outside_class_bodies),QR(e)}(e);case 175:return function(e){hU(e),ZI(e,LB)}(e);case 176:return YR(e);case 177:case 178:return eM(e);case 183:return oM(e);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void Co(e,Pa.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=jf(t),r=om(n);if(!r)return;LB(e.type);const{parameterName:i}=e;if(0===r.kind||2===r.kind)Ox(i);else if(r.parameterIndex>=0){if(aJ(n)&&r.parameterIndex===n.parameters.length-1)Co(i,Pa.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>kS(void 0,Pa.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);QS(r.type,Gl(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(Bu(e)&&VR(e,i,r.parameterName)){n=!0;break}n||Co(e.parameterName,Pa.Cannot_find_parameter_0,r.parameterName)}
6}(e);case 186:return function(e){Xh(e)}(e);case 187:return function(e){d(e.members,LB),a((function(){const t=_x(e);Kj(t,t.symbol),GR(e),KR(e)}))}(e);case 188:return function(e){LB(e.elementType)}(e);case 189:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=By(r);if(8&e){const t=Mx(r.type);if(!uT(t)){Co(r,Pa.A_rest_element_type_must_be_an_array_type);break}(oT(t)||KT(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){zU(r,Pa.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){zU(r,Pa.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){zU(r,Pa.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,LB),Mx(e)}(e);case 192:case 193:return function(e){d(e.types,LB),Mx(e)}(e);case 196:case 190:case 191:return LB(e.type);case 197:return function(e){Ox(e)}(e);case 198:return lM(e);case 194:return function(e){ZI(e,LB)}(e);case 195:return function(e){wc(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||zU(e,Pa.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),LB(e.typeParameter);const t=os(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=Ko(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=Vu(t),r=ud(t,168);if(!nB(r,[n],(e=>[e]))){const e=Hs(t);for(const t of r)Co(t.name,Pa.All_declarations_of_0_must_have_identical_constraints,e)}}}RM(e)}(e);case 203:return function(e){for(const t of e.templateSpans)LB(t.type),QS(Mx(t.type),dn,t.type);Mx(e)}(e);case 205:return function(e){LB(e.argument),e.attributes&&m$(e.attributes,zU),aM(e)}(e);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&zU(e,Pa.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&zU(e.type,Pa.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&zU(e.type,Pa.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),LB(e.type),Mx(e)}(e);case 328:return function(e){const t=rh(e);if(!t||!cP(t)&&!NE(t))return void Co(t,Pa.JSDoc_0_is_not_attached_to_a_class,Fc(e.tagName));const n=bl(t).filter(xF);En.assert(n.length>0),n.length>1&&Co(n[1],Pa.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=OM(e.class.expression),i=Oh(t);if(i){const t=OM(i.expression);t&&r.escapedText!==t.escapedText&&Co(r,Pa.JSDoc_0_1_does_not_match_the_extends_2_clause,Fc(e.tagName),Fc(r),Fc(t))}}(e);case 329:return function(e){const t=rh(e);t&&(cP(t)||NE(t))||Co(t,Pa.JSDoc_0_is_not_attached_to_a_class,Fc(e.tagName))}(e);case 346:case 338:case 340:return function(e){e.typeExpression||Co(e.name,Pa.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&Yj(e.name,Pa.Type_alias_name_cannot_be_0),LB(e.typeExpression),eB(wl(e))}(e);case 345:return function(e){LB(e.constraint);for(const t of e.typeParameters)LB(t)}(e);case 344:return function(e){LB(e.typeExpression)}(e);case 324:case 325:case 326:return function(e){e.name&&bJ(e.name,!0)}(e);case 341:case 348:return function(e){LB(e.typeExpression)}(e);case 317:!function(e){a((function(){e.type||Ug(e)||rw(e,Ct)})),WR(e)}(e);case 315:case 314:case 312:case 313:case 322:return jB(e),void ZI(e,LB);case 318:return void function(e){jB(e),LB(e.type);const{parent:t}=e;if(bN(t)&&mF(t.parent))return void(Le(t.parent.parameters)!==t&&Co(e,Pa.A_rest_parameter_must_be_last_in_a_parameter_list));iF(t)||Co(e,Pa.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!OF(n))return void Co(e,Pa.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Zg(n);if(!r)return;const i=nh(n);i&&Le(i.parameters).symbol===r||Co(e,Pa.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 309:return LB(e.type);case 333:case 335:case 334:return function(e){const t=ih(e);t&&uu(t)&&Co(e,Pa.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 350:return function(e){LB(e.typeExpression);const t=rh(e);if(t){const e=kl(t,zF);if(_(e)>1)for(let t=1;t<_(e);t++){const n=e[t].tagName;Co(n,Pa._0_tag_already_specified,Fc(n))}}}(e);case 343:return function(e){const t=rh(e);t&&gE(t)&&Co(e.tagName,Pa.An_arrow_function_cannot_have_a_this_parameter)}(e);case 351:return function(e){NB(e)}(e);case 199:return function(e){LB(e.objectType),LB(e.indexType),sM(
6Zb(e),e)}(e);case 200:return cM(e);case 262:return function(e){a((function(){LM(e),DU(e),nj(e,e.name)}))}(e);case 241:case 268:return XM(e);case 243:return uj(e);case 244:return function(e){VU(e),qR(e.expression)}(e);case 245:return function(e){VU(e);const t=pj(e.expression);_j(e.expression,t,e.thenStatement),LB(e.thenStatement),242===e.thenStatement.kind&&Co(e.thenStatement,Pa.The_body_of_an_if_statement_cannot_be_the_empty_statement),LB(e.elseStatement)}(e);case 246:return function(e){VU(e),LB(e.statement),pj(e.expression)}(e);case 247:return function(e){VU(e),pj(e.expression),LB(e.statement)}(e);case 248:return function(e){VU(e)||e.initializer&&261===e.initializer.kind&&jU(e.initializer),e.initializer&&(261===e.initializer.kind?lj(e.initializer):qR(e.initializer)),e.condition&&pj(e.condition),e.incrementor&&qR(e.incrementor),LB(e.statement),e.locals&&RM(e)}(e);case 249:return fj(e);case 250:return function(e){PU(e);const t=dm(e);if(e.awaitModifier?t&&wN(t)?zU(e.awaitModifier,Pa.for_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&Qh(t))&&R<5&&mU(e,16384):I.downlevelIteration&&R<2&&mU(e,256),261===e.initializer.kind)lj(e.initializer);else{const t=e.initializer,n=mj(e);if(209===t.kind||210===t.kind)mR(t,n||Et);else{const r=qR(t);tR(t,Pa.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,Pa.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),n&&YS(n,r,t,e.expression)}}LB(e.statement),e.locals&&RM(e)}(e);case 251:case 252:return zj(e);case 253:return function(e){var t;if(VU(e))return;const n=dm(e);if(n&&wN(n))return void UU(e,Pa.A_return_statement_cannot_be_used_inside_a_class_static_block);if(!n)return void UU(e,Pa.A_return_statement_can_only_be_used_within_a_function_body);const r=sm(jf(n)),i=Qh(n);if(K||e.expression||131072&r.flags){const o=e.expression?kR(e.expression):Lt;if(178===n.kind)e.expression&&Co(e,Pa.Setters_cannot_return_a_value);else if(176===n.kind)e.expression&&!YS(o,r,e,e.expression)&&Co(e,Pa.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(lm(n)){const n=null!=(t=$j(r,i))?t:r,a=2&i?gM(o,!1,e,Pa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;n&&YS(a,n,e,e.expression)}}else 176!==n.kind&&I.noImplicitReturns&&!Vj(n,r)&&Co(e,Pa.Not_all_code_paths_return_a_value)}(e);case 254:return function(e){VU(e)||65536&e.flags&&UU(e,Pa.with_statements_are_not_allowed_in_an_async_function_block),qR(e.expression);const t=Id(e);if(!JU(t)){const n=sf(t,e.pos).start;qU(t,n,e.statement.pos-n,Pa.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(e);case 255:return function(e){let t;VU(e);let n=!1;const r=qR(e.expression);d(e.caseBlock.clauses,(e=>{var i;297!==e.kind||n||(void 0===t?t=e:(zU(e,Pa.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&a((i=e,()=>{const e=qR(i.expression);hR(r,e)||dk(e,r,i.expression,void 0)})),d(e.statements,LB),I.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&dN(e.fallthroughFlowNode)&&Co(e,Pa.Fallthrough_case_in_switch)})),e.caseBlock.locals&&RM(e.caseBlock)}(e);case 256:return function(e){VU(e)||wc(e.parent,(t=>vu(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(zU(e.label,Pa.Duplicate_label_0,ap(e.label)),!0))),LB(e.statement)}(e);case 257:return Wj(e);case 258:return function(e){VU(e),XM(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;ij(e);const n=Ov(e);if(n){const e=Mx(n);!e||3&e.flags||UU(n,Pa.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)UU(e.initializer,Pa.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&xd(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&zU(n.valueDeclaration,Pa.Cannot_redeclare_identifier_0_in_catch_clause,Pc(t))}))}}XM(t.block)}e.finallyBlock&&XM(e.finallyBlock)}(e);case 260:return sj(e);case 208:return cj(e);case 263:return function(e){const t=w(e.modifiers,xN);z&&t&&te(e.members,(e=>Yv(e)&&uu(e)))&&zU(t,Pa.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Xv(e,2048)||UU(e,Pa.A_class_declaration_without_the_default_modifier_must_have_a_name),iB(e),d(e.members,LB),RM(e)}(e);case 264:return pB(e);case 265:return function(e){hU(e),Yj(e.name,Pa.Type_alias_name_cannot_be_0),pM(e),eB(e.typeParameters),141===e.type.kind?XB.has(e.name.escapedText)&&1===_(e.typeParameters)||Co(e.type,Pa.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(LB(e.type),RM(e))}(e);case 266:return vB(e);case 267:return SB(e);case 272:return EB(e);case 271:return function(e){if(!FB(e,Wm(e)?Pa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Pa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(hU(e),qm(e)||TB(e)))if(DB(e),RE(e,6),283!==e.moduleReference.kind){const t=Ia(os(e));if(t!==bt){const n=Oa(t);if(111551&n){const t=Fb(e.moduleReference);1920&Ja(t,112575).flags||Co(t,Pa.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,zp(t))}788968&n&&Yj(e.name,Pa.Import_name_cannot_be_0)}
6e.isTypeOnly&&zU(e,Pa.An_import_alias_cannot_use_import_type)}else!(B>=5&&200!==B&&void 0===Id(e).impliedNodeFormat)||e.isTypeOnly||33554432&e.flags||zU(e,Pa.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(e);case 278:return PB(e);case 277:return function(e){if(FB(e,e.isExportEquals?Pa.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Pa.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const t=307===e.parent.kind?e.parent:e.parent.parent;if(267===t.kind&&!yp(t))return void(e.isExportEquals?Co(e,Pa.An_export_assignment_cannot_be_used_in_a_namespace):Co(e,Pa.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!hU(e)&&Hv(e)&&UU(e,Pa.An_export_assignment_cannot_have_modifiers);const n=Ov(e);n&&QS(kR(e.expression),Mx(n),e.expression);const r=!e.isExportEquals&&!(33554432&e.flags)&&I.verbatimModuleSyntax&&(1===B||1===Id(e).impliedNodeFormat);if(80===e.expression.kind){const t=e.expression,n=ms(Ja(t,-1,!0,!0,e));if(n){RE(e,3);const i=Ma(n,111551);if(111551&Oa(n)?(kR(t),r||33554432&e.flags||!I.verbatimModuleSyntax||!i||Co(t,e.isExportEquals?Pa.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Pa.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Fc(t))):r||33554432&e.flags||!I.verbatimModuleSyntax||Co(t,e.isExportEquals?Pa.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Pa.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Fc(t)),!r&&!(33554432&e.flags)&&zS(I)&&!(111551&n.flags)){const r=Oa(n,!1,!0);!(2097152&n.flags&&788968&r)||111551&r||i&&Id(i)===Id(e)?i&&Id(i)!==Id(e)&&ta(Co(t,e.isExportEquals?Pa._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Pa._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Fc(t),De),i,Fc(t)):Co(t,e.isExportEquals?Pa._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Pa._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Fc(t),De)}}else kR(t);GS(I)&&_c(t,!0)}else kR(e.expression);r&&Co(e,Pa.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),IB(t),33554432&e.flags&&!Pb(e.expression)&&zU(e.expression,Pa.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(B>=5&&200!==B&&(33554432&e.flags&&99===Id(e).impliedNodeFormat||!(33554432&e.flags)&&1!==Id(e).impliedNodeFormat)?zU(e,Pa.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==B||33554432&e.flags||zU(e,Pa.Export_assignment_is_not_supported_when_module_flag_is_system))}(e);case 242:case 259:return void VU(e);case 282:!function(e){IM(e)}(e)}}(e),r=n}}function RB(e){pt(e)&&d(e,(e=>{ed(e)&&LB(e)}))}function jB(e){if(!Wm(e))if(pF(e)||dF(e)){const t=Ga(pF(e)?54:58),n=e.postfix?Pa._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Pa._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Mx(e.type);zU(e,n,t,Ys(dF(e)&&r!==nn&&r!==en?mv(fe([r,Lt],e.postfix?void 0:Ut)):r))}else zU(e,Pa.JSDoc_types_can_only_be_used_inside_documentation_comments)}function UB(e){const t=Xo(Id(e));1&t.flags?En.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function qB(e){var t,n;null==(t=pr)||t.push(pr.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,b=0,e.kind){case 213:case 214:case 215:case 170:case 286:zI(e);break;case 218:case 219:case 174:case 173:!function(e){En.assert(174!==e.kind||Zf(e));const t=Qh(e),n=lm(e);
6if(GL(e,n),e.body)if(Rv(e)||sm(jf(e)),241===e.body.kind)LB(e.body);else{const r=qR(e.body),i=n&&$j(n,t);if(i){const n=dO(e.body);YS(2==(3&t)?gM(r,!1,n,Pa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,n,n)}}}(e);break;case 177:case 178:eM(e);break;case 231:!function(e){d(e.members,LB),RM(e)}(e);break;case 168:!function(e){var t,n;if(lP(e.parent)||Du(e.parent)||uP(e.parent)){const r=Vu(os(e)),o=24576&zk(r);if(o){const a=os(e.parent);if(!uP(e.parent)||52&Bx(Wu(a))){if(8192===o||16384===o){null==(t=pr)||t.push(pr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:av(Wu(a)),id:av(r)});const s=Uk(a,r,16384===o?$n:zn),c=Uk(a,r,16384===o?zn:$n),l=r;i=r,QS(s,c,e,Pa.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=pr)||n.pop()}}else Co(e,Pa.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){qA(e)}(e);break;case 284:!function(e){qA(e.openingElement),xA(e.closingElement.tagName)?EA(e.closingElement):qR(e.closingElement.tagName),CA(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=ZO(e),n=fE(e)?t:e,r=Xo(e);En.assertIsDefined(r.assertionExpressionType);const i=KC(wT(r.assertionExpressionType)),o=Mx(t);Tc(o)||a((()=>{const e=ew(i);WS(o,e)||dk(i,o,n,Pa.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 222:qR(e.expression);break;case 226:Bb(e)&&zI(e)}r=o,null==(n=pr)||n.pop()}function VB(t){var n,r;null==(n=pr)||n.push(pr.Phase.Check,"checkSourceFile",{path:t.path},!0),xr("beforeCheck"),function(t){const n=Xo(t);if(!(1&n.flags)){if(FT(t,I,e))return;!function(e){33554432&e.flags&&function(e){for(const t of e.statements)if((N_(t)||243===t.kind)&&$U(t))return!0}(e)}(t),M(Yi),M(Zi),M(eo),M(to),M(no),d(t.statements,LB),LB(t.endOfFileToken),function(e){const t=Xo(e);t.deferredNodes&&t.deferredNodes.forEach(qB),t.deferredNodes=void 0}(t),_f(t)&&RM(t),a((()=>{t.isDeclarationFile||!I.noUnusedLocals&&!I.noUnusedParameters||MM(KB(t),((e,t,n)=>{!Ad(e)&&HB(t,!!(33554432&e.flags))&&so.add(n)})),t.isDeclarationFile||function(){var e;for(const t of no)if(!(null==(e=os(t))?void 0:e.isReferenced)){const e=hc(t);En.assert(hy(e),"Only parameter declaration should be checked here");const n=Gp(t.name,Pa._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,zp(t.name),zp(t.propertyName));e.type||DT(n,vS(Id(e),e.end,1,Pa.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,zp(t.propertyName))),so.add(n)}}()})),_f(t)&&IB(t),Yi.length&&(d(Yi,YM),M(Yi)),Zi.length&&(d(Zi,ZM),M(Zi)),eo.length&&(d(eo,ej),M(eo)),to.length&&(d(to,tj),M(to)),n.flags|=1}}(t),xr("afterCheck"),Sr("Check","beforeCheck","afterCheck"),null==(r=pr)||r.pop()}function HB(e,t){if(t)return!1;switch(e){case 0:return!!I.noUnusedLocals;case 1:return!!I.noUnusedParameters;default:return En.assertNever(e)}}function KB(e){return hi.get(e.path)||c}function nJ(n,r){try{return t=r,function(t){if(t){_J();const e=so.getGlobalDiagnostics(),n=e.length;dJ(t);const r=so.getDiagnostics(t.fileName),i=so.getGlobalDiagnostics();return i!==e?re(pe(e,i,wS),r):0===n&&i.length>0?re(i,r):r}return d(e.getSourceFiles(),dJ),so.getDiagnostics()}(n)}finally{t=void 0}}function _J(){for(const e of o)e();o=[]}function dJ(e){_J();const t=a;a=e=>e(),VB(e),a=t}function pJ(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function fJ(e,t){let n,r=um(e);for(;r&&!(n=t(r));)r=um(r);return n}function mJ(e,t){return!!fJ(e,(e=>e===t))}function gJ(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function hJ(e){if(kh(e))return as(e.parent);if(Wm(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!rN(e)&&!aF(e)&&!function(e){if(110===e.expression.kind){const t=fm(e,!1,!1);if(vu(t)){const e=BP(t);if(e){const t=WP(e,MF(e,void 0));return t&&!kc(t)}}}}(e.parent)){const t=function(e){switch(hg(e.parent.parent)){case 1:case 3:return as(e.parent);case 5:if(cE(e.parent)&&Xx(e.parent)===e)return;case 4:case 2:return os(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&Pb(e)){const t=Ja(e,2998271,!0);if(t&&t!==bt)return t}else if(gu(e)&&gJ(e)){const t=Bh(e,271);return En.assert(void 0!==t),ja(e,!0)}if(gu(e)){const t=function(e){let t=e.parent;for(;hN(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){Mx(t);const n=Xo(e).resolvedSymbol;return n===bt?void 0:n}}for(;jb(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=Mf(e)?788968:111551,Eb(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=Pb(e)?Ja(e,t,!0):void 0;if(n)return n}if(341===e.parent.kind)return Zg(e.parent);if(168===e.parent.kind&&345===e.parent.parent.kind){En.assert(!Wm(e));const t=ah(e.parent);return t&&t.symbol}if(Lm(e)){if(Ud(e))return;const t=wc(e,vn(ed,oF,aF)),n=t?901119:111551;if(80===e.kind){if(Om(e)&&xA(e)){const t=EA(e.parent);return t===bt?void 0:t}const r=Ja(e,n,!0,!0,nh(e));if(!r&&t){const t=wc(e,vn(Du,lP));if(t)return bJ(e,!0,os(t))}if(r&&t){const t=ih(e);if(t&&tF(t)&&t===r.valueDeclaration)return Ja(e,n,!0,!0,Id(t))||r}return r}if(rN(e))return pI(e);if(211===e.kind||166===e.kind){const n=Xo(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(sI(e,0),n.resolvedSymbol||(n.resolvedSymbol
6=yJ(kR(e.expression),qv(e.name)))):lI(e,0),!n.resolvedSymbol&&t&&hN(e)?bJ(e):n.resolvedSymbol)}if(aF(e))return bJ(e)}else if(pJ(e)){const t=Ja(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==bt?t:ph(e)}return 182===e.parent.kind?Ja(e,1):void 0}function yJ(e,t){const n=wf(e,t);if(n.length&&e.members){const t=ig(Wd(e).members);if(n===Sf(e))return t;if(t){const r=Ko(t),i=j(H(n,(e=>e.declaration)),ZB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Io(131072,"__index");return t.declarations=H(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:xJ(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function bJ(e,t,n){if(gu(e)){const r=901119;let i=Ja(e,r,t,!0,nh(e));if(!i&&nN(e)&&n&&(i=is(Qo(es(n),e.escapedText,r))),i)return i}const r=nN(e)?n:bJ(e.left,t,n),i=nN(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&ef(Gl(r),"prototype");return ef(e?Gl(e):Wu(r),i)}}function xJ(e,t){var n;if(nF(e))return aO(e)?is(e.symbol):void 0;const{parent:r}=e,i=r.parent;if(!(67108864&e.flags)){if(iJ(e)){const t=os(r);return tu(e.parent)&&e.parent.propertyName===e?pA(t):t}if(Ch(e))return os(r.parent);if(80===e.kind){if(gJ(e))return hJ(e);if(208===r.kind&&206===i.kind&&e===r.propertyName){const t=ef(SJ(i),e.escapedText);if(t)return t}else if(OE(r)&&r.name===e)return 105===r.keywordToken&&"target"===Fc(e)?aL(r).symbol:102===r.keywordToken&&"meta"===Fc(e)?my().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!Fv(e))return hJ(e);case 110:const o=fm(e,!1,!1);if(vu(o)){const e=jf(o);if(e.thisParameter)return e.thisParameter}if(Rm(e))return qR(e).symbol;case 197:return Ox(e).symbol;case 108:return qR(e).symbol;case 137:const a=e.parent;return a&&176===a.kind?a.parent.symbol:void 0;case 11:case 15:if(Bm(e.parent.parent)&&Jm(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||Wm(e)&&VF(e.parent)&&e.parent.moduleSpecifier===e||Wm(e)&&Qm(e.parent,!1)||xf(e.parent)||ZN(e.parent)&&kf(e.parent.parent)&&e.parent.parent.argument===e.parent)return qa(e,e,t);if(uE(r)&&yg(r)&&r.arguments[1]===e)return os(r);case 9:const s=lE(r)?r.argumentExpression===e?BR(r.expression):void 0:ZN(r)&&QN(i)?Mx(i.objectType):void 0;return s&&ef(s,Ec(e.text));case 90:case 100:case 39:case 86:return as(e.parent);case 205:return kf(e)?xJ(e.argument.literal,t):void 0;case 95:return NP(e.parent)?En.checkDefined(e.parent.symbol):void 0;case 102:case 105:return OE(e.parent)?oL(e.parent).symbol:void 0;case 104:if(kE(e.parent)){const t=BR(e.parent.right),r=_R(t);return null!=(n=null==r?void 0:r.symbol)?n:t.symbol}return;case 236:return qR(e).symbol;case 295:if(Om(e)&&xA(e)){const t=EA(e.parent);return t===bt?void 0:t}default:return}}}function SJ(e){if(nF(e)&&!aO(e))return Et;if(67108864&e.flags)return Et;const t=Cb(e),n=t&&Lu(os(t.class));if(Mf(e)){const t=Mx(e);return n?w_(t,n.thisType):t}if(Lm(e))return TJ(e);if(n&&!t.isImplements){const e=Pe(Au(n));return e?w_(e,n.thisType):Et}if(_C(e))return Wu(os(e));if(80===(r=e).kind&&_C(r.parent)&&Jc(r.parent)===r){const t=xJ(e);return t?Wu(t):Et}var r;if(oE(e))return el(e,!0,0)||Et;if(N_(e)){const t=os(e);return t?Gl(t):Et}if(iJ(e)){const t=xJ(e);return t?Gl(t):Et}if(Bu(e))return el(e.parent,!0,0)||Et;if(gJ(e)){const t=xJ(e);if(t){const e=Wu(t);return Tc(e)?Gl(t):e}}return OE(e.parent)&&e.parent.keywordToken===e.kind?oL(e.parent):SP(e)?Sy(!1):Et}function kJ(e){if(En.assert(210===e.kind||209===e.kind),250===e.parent.kind)return mR(e,mj(e.parent)||Et);if(226===e.parent.kind)return mR(e,BR(e.parent.right)||Et);if(303===e.parent.kind){const t=yt(e.parent.parent,sE);return pR(t,kJ(t)||Et,cp(t.properties,e.parent))}const t=yt(e.parent,aE),n=kJ(t)||Et,r=gj(65,n,Lt,e.parent)||Et;return fR(t,n,t.elements.indexOf(e),r)}function TJ(e){return Rb(e)&&(e=e.parent),Sx(BR(e))}function CJ(e){const t=as(e.parent);return Qv(e)?Gl(t):Wu(t)}function wJ(e){const t=e.name;switch(t.kind){case 80:return Tx(Fc(t));case 9:case 11:return Tx(t.text);case 167:const e=lA(t);return sR(e,12288)?e:zt;default:return En.fail("Unsupported property name.")}}function DJ(e){const t=_d(Xd(e=Ep(e))),n=of(e,0).length?Qn:of(e,1).length?Yn:void 0;return n&&d(Xd(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)}
6)),Cs(t)}function NJ(e){return 0!==of(e,0).length||0!==of(e,1).length}function EJ(e){if(su(e))return!1;const t=Nc(e,nN);if(!t)return!1;const n=t.parent;return!!n&&(!((cE(n)||YP(n))&&n.name===t)&&oU(t)===Te)}function PJ(e,t){var n;const r=Nc(e,nN);if(r){let e=oU(r,function(e){return k_(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=is(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=cs(e);if(i){if(512&i.flags&&307===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==Id(r)?void 0:e}return wc(r.parent,(e=>k_(e)&&os(e)===i))}}}}function FJ(e){const t=Zw(e);if(t)return t;const n=Nc(e,nN);if(n){const e=function(e){const t=Xo(e).resolvedSymbol;return t&&t!==bt?t:Me(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Fa(e,111551)&&!Ma(e,111551))return _a(e)}}function AJ(e){if(418&e.flags&&e.valueDeclaration&&!nF(e.valueDeclaration)){const t=Ko(e);if(void 0===t.isDeclarationWithCollidingName){const n=Up(e.valueDeclaration);if(Rd(n)||function(e){return e.valueDeclaration&&oE(e.valueDeclaration)&&299===hc(e.valueDeclaration).parent.kind}(e))if(Me(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(VJ(e.valueDeclaration,16384)){const r=VJ(e.valueDeclaration,32768),i=u_(n,!1),o=241===n.kind&&u_(n.parent,!1);t.isDeclarationWithCollidingName=!(kp(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function IJ(e){if(!su(e)){const t=Nc(e,nN);if(t){const e=oU(t);if(e&&AJ(e))return e.valueDeclaration}}}function OJ(e){const t=Nc(e,N_);if(t){const e=os(t);if(e)return AJ(e)}return!1}function LJ(e){switch(En.assert(Ne),e.kind){case 271:return MJ(os(e));case 273:case 274:case 276:case 281:const t=os(e);return!!t&&MJ(t,!0);case 278:const n=e.exportClause;return!!n&&(CP(n)||te(n.elements,LJ));case 277:return!e.expression||80!==e.expression.kind||MJ(os(e),!0)}return!1}function RJ(e){const t=Nc(e,gP);return!(void 0===t||307!==t.parent.kind||!qm(t))&&(MJ(os(t))&&t.moduleReference&&!Ud(t.moduleReference))}function MJ(e,t){if(!e)return!1;const n=Id(e.valueDeclaration);Wa(n&&os(n));const r=ms(Ia(e));return r===bt?!t||!Ma(e):!!(111551&Oa(e,t,!0))&&(XS(I)||!jJ(r))}function jJ(e){return uR(e)||!!e.constEnumOnlyModule}function BJ(e,t){if(En.assert(Ne),da(e)){const t=os(e),n=t&&Ko(t);if(null==n?void 0:n.referenced)return!0;const r=Ko(t).aliasTarget;if(r&&32&cb(e)&&111551&Oa(r)&&(XS(I)||!jJ(r)))return!0}return!!t&&!!ZI(e,(e=>BJ(e,t)))}function JJ(e){if(qd(e.body)){if($_(e)||z_(e))return!1;const t=Yf(os(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function UJ(e){return(function(e){return!(!K||If(e)||OF(e)||!e.initializer||Xv(e,31))}(e)||function(e){return K&&If(e)&&(OF(e)||!e.initializer)&&Xv(e,31)}(e))&&!function(e){const t=pU(e);return!!t&&Sk(Mx(t))}(e)}function qJ(e){const t=Nc(e,(e=>sP(e)||oP(e)));if(!t)return!1;let n;if(oP(t)){if(t.type||!Wm(t)&&!YU(t))return!1;const e=sg(t);if(!e||!T_(e))return!1;n=os(e)}else n=os(t);return!!(n&&16&n.flags|3)&&!!bd(es(n),(e=>111551&e.flags&&PC(e.valueDeclaration)))}function zJ(e){const t=Nc(e,sP);if(!t)return c;const n=os(t);return n&&Xd(Gl(n))||c}function $J(e){var t;const n=e.id||0;return n<0||n>=zi.length?0:(null==(t=zi[n])?void 0:t.flags)||0}function VJ(e,t){return function(e,t){if(!I.noCheck&&AT(Id(e),I))return;const n=Xo(e);if(!(n.calculatedFlags&t))switch(t){case 16:case 32:return a(e);case 128:case 256:case 2097152:return o(e);case 512:case 8192:case 65536:case 262144:return c(e);case 536870912:return l(e);case 4096:case 32768:case 16384:return _(e);default:return En.assertNever(t,`Unhandled node check flag calculation: ${En.formatNodeCheckFlags(t)}`)}function r(e,t){const n=t(e,e.parent);if("skip"!==n)return n||eO(e,t)}function i(e){const n=Xo(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,a(e)}function o(e){r(e,i)}function a(e){Xo(e).calculatedFlags|=48,108===e.kind&&OP(e)}function s(e){const n=Xo(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,l(e)}function c(e){r(e,s)}function l(e){if(Xo(e).calculatedFlags|=536920064,nN(e)&&Lm(e)&&(!cE(e.parent)||e.parent.name!==e)){const t=xJ(e,!0);t&&t!==bt&&iP(e,t)}}function u(e){const n=Xo(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,d(e)}function _(e){r(Up(kh(e)?e.parent:e),u)}function d(e){l(e),yN(e)&&lA(e),rN(e)&&wu(e.parent)&&QR(e.parent)}}(e,t),!!($J(e)&t)}function WJ(e){var t;return fB(e.parent),null!=(t=Xo(e).enumMemberValue)?t:LC(void 0)}function HJ(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function KJ(e){if(306===e.kind)return WJ(e).value;Xo(e).resolvedSymbol||kR(e);const t=Xo(e).resolvedSymbol||(Pb(e)?Ja(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(pf(e.parent))return WJ(e).value}}function GJ(e){return!!(524288&e.flags)&&of(e,0).length>0}function XJ(e,t){var n;const r=Nc(e,gu);if(!r)return 0;if(t&&!(t=Nc(t)))return 0;let i=!1;if(hN(r)){const e=Ja(Fb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(iu))}const o=Ja(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ia(o):o;i||(i=!(!o||!Ma(o,111551)));const s=Ja(r,788968,!0,!0,t),c=s&&2097152&s.flags?Ia(s):s;
6if(o||i||(i=!(!s||!Ma(s,788968))),a&&a===c){const e=Dy(!1);if(e&&a===e)return 9;const t=Gl(a);if(t&&pu(t))return i?10:1}if(!c)return i?11:0;const l=Wu(c);return Tc(l)?i?11:0:3&l.flags?11:sR(l,245760)?2:sR(l,528)?6:sR(l,296)?3:sR(l,2112)?4:sR(l,402653316)?5:KT(l)?7:sR(l,12288)?8:GJ(l)?10:oT(l)?7:11}function QJ(e,t,n,r){const i=Nc(e,Vf);if(!i)return _w.createToken(133);const o=os(i),a=!o||133120&o.flags?Et:RT(Gl(o));return ue.serializeTypeForDeclaration(i,a,o,t,1024|n,r)}function YJ(e){const t=178===(e=Nc(e,El)).kind?177:178,n=ld(os(e),t);return{firstAccessor:n&&n.pos<e.pos?n:e,secondAccessor:n&&n.pos<e.pos?e:n,setAccessor:178===e.kind?e:n,getAccessor:177===e.kind?e:n}}function ZJ(e){return vu(e)&&!z_(e)?eU(e):NP(e)?e.expression:e.initializer?e.initializer:bN(e)&&z_(e.parent)?eU(YJ(e.parent).getAccessor):void 0}function eU(e){let t;if(e&&!Ud(e.body)){if(3&Qh(e))return;const n=e.body;n&&JE(n)?Jf(n,(e=>{if(t)return t=void 0,!0;t=e.expression})):t=n}return t}function tU(e,t,n,r){const i=Nc(e,vu);return i?ue.serializeReturnTypeForSignature(jf(i),t,1024|n,r):_w.createToken(133)}function rU(e,t,n,r){const i=Nc(e,s_);if(!i)return _w.createToken(133);const o=ew(TJ(i));return ue.expressionOrTypeToTypeNode(i,o,void 0,t,1024|n,r)}function iU(e){return me.has(Ec(e))}function oU(e,t){const n=Xo(e).resolvedSymbol;if(n)return n;let r=e;if(t){const t=e.parent;N_(t)&&e===t.name&&(r=yc(t))}return Me(r,e.escapedText,3257279,void 0,!0)}function aU(e){if(!su(e)){const t=Nc(e,nN);if(t){const e=oU(t);if(e)return ms(e).valueDeclaration}}}function sU(e){if(!su(e)){const t=Nc(e,nN);if(t){const e=oU(t);if(e)return L(ms(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}}function cU(e){return!!(ff(e)||oP(e)&&YU(e))&&kx(Gl(os(e)))}function lU(e,t){return function(e,t,n){const r=1056&e.flags?ue.symbolToExpression(e.symbol,111551,t,void 0,n):e===Kt?_w.createTrue():e===Wt&&_w.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?_w.createBigIntLiteral(i):"string"==typeof i?_w.createStringLiteral(i):i<0?_w.createPrefixUnaryExpression(41,_w.createNumericLiteral(-i)):_w.createNumericLiteral(i)}(Gl(os(e)),e,t)}function _U(e){return e?(bo(e),Id(e).localJsxFactory||ni):ni}function dU(e){if(e){const t=Id(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=pt(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=iO(n.arguments.factory,R),t.localJsxFragmentFactory}}if(I.jsxFragmentFactory)return iO(I.jsxFragmentFactory,R)}function pU(e){const t=Ov(e);if(t)return t;if(169===e.kind&&178===e.parent.kind){const t=YJ(e.parent).getAccessor;if(t)return Rv(t)}}function fU(e){const t=267===e.kind?ht(e.name,BD):Rg(e),n=za(t,t,void 0);if(n)return ld(n,307)}function mU(e,t){if(I.importHelpers){const n=Id(e);if(Np(n,I)&&!(33554432&e.flags)){const r=function(e,t){const n=Xo(e);return n.externalHelpersModule||(n.externalHelpersModule=$a(function(e){En.assert(I.importHelpers,"Expected importHelpers to be enabled");const t=e.imports[0];return En.assert(t&&by(t)&&"tslib"===t.text,"Expected sourceFile.imports[0] to be the synthesized tslib import"),t}(e),ad,Pa.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||bt),n.externalHelpersModule}(n,e);if(r!==bt){const n=Ko(r);if(null!=n.requestedExternalEmitHelpers||(n.requestedExternalEmitHelpers=0),(n.requestedExternalEmitHelpers&t)!==t){const i=t&~n.requestedExternalEmitHelpers;for(let t=1;t<=16777216;t<<=1)if(i&t)for(const n of gU(t)){const i=Aa(Qo(ts(r),Ec(n),111551));i?524288&t?te(Yf(i),(e=>hL(e)>3))||Co(e,Pa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,ad,n,4):1048576&t?te(Yf(i),(e=>hL(e)>4))||Co(e,Pa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,ad,n,5):1024&t&&(te(Yf(i),(e=>hL(e)>2))||Co(e,Pa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,ad,n,3)):Co(e,Pa.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,ad,n)}}n.requestedExternalEmitHelpers|=t}}}}function gU(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return z?["__decorate"]:["__esDecorate","__runInitializer
6s"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];default:return En.fail("Unrecognized helper")}}function hU(e){var t;const n=function(e){const t=function(e){return zA(e)?w(e.modifiers,xN):void 0}(e);return t&&UU(t,Pa.Decorators_are_not_valid_here)}(e)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return w(e.modifiers,mu);default:if(268===e.parent.kind||307===e.parent.kind)return;switch(e.kind){case 262:return yU(e,134);case 263:case 185:return yU(e,128);case 231:case 264:case 265:return w(e.modifiers,mu);case 243:return 4&e.declarationList.flags?yU(e,135):w(e.modifiers,mu);case 266:return yU(e,87);default:En.assertNever(e)}}}(e);return t&&UU(t,Pa.Modifiers_cannot_appear_here)}(e);if(void 0!==n)return n;if(bN(e)&&Nv(e))return UU(e,Pa.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const r=UE(e)?7&e.declarationList.flags:0;let i,o,a,s,c,l=0,u=!1,_=!1;for(const d of e.modifiers)if(xN(d)){if(!Dm(z,e,e.parent,e.parent.parent))return 174!==e.kind||qd(e.body)?UU(e,Pa.Decorators_are_not_valid_here):UU(e,Pa.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(z&&(177===e.kind||178===e.kind)){const t=YJ(e);if(ib(t.firstAccessor)&&e===t.secondAccessor)return UU(e,Pa.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&l)return zU(d,Pa.Decorators_are_not_valid_here);if(_&&98303&l)return En.assertIsDefined(c),!JU(Id(d))&&(DT(Co(d,Pa.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Gp(c,Pa.Decorator_used_before_export_here)),!0);l|=32768,98303&l?32&l&&(u=!0):_=!0,null!=c||(c=d)}else{if(148!==d.kind){if(171===e.kind||173===e.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_type_member,Ga(d.kind));if(181===e.kind&&(126!==d.kind||!Du(e.parent)))return zU(d,Pa._0_modifier_cannot_appear_on_an_index_signature,Ga(d.kind))}if(103!==d.kind&&147!==d.kind&&87!==d.kind&&168===e.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_type_parameter,Ga(d.kind));switch(d.kind){case 87:{if(266!==e.kind&&168!==e.kind)return zU(e,Pa.A_class_member_cannot_have_the_0_keyword,Ga(87));const t=jF(e.parent)&&rh(e.parent)||e.parent;if(168===e.kind&&!(xu(t)||Du(t)||LN(t)||RN(t)||PN(t)||FN(t)||TN(t)))return zU(d,Pa._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Ga(d.kind));break}case 164:if(16&l)return zU(d,Pa._0_modifier_already_seen,"override");if(128&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"override","readonly");if(512&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"override","async");l|=16,s=d;break;case 125:case 124:case 123:const n=oc(gb(d.kind));if(7&l)return zU(d,Pa.Accessibility_modifier_already_seen);if(16&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,n,"override");if(256&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,n,"static");if(512&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,n,"accessor");if(8&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,n,"readonly");if(1024&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,n,"async");if(268===e.parent.kind||307===e.parent.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_module_or_namespace_element,n);if(64&l)return 123===d.kind?zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,n,"abstract"):zU(d,Pa._0_modifier_must_precede_1_modifier,n,"abstract");if(uu(e))return zU(d,Pa.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);l|=gb(d.kind);break;case 126:if(256&l)return zU(d,Pa._0_modifier_already_seen,"static");if(8&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"static","async");if(512&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"static","accessor");if(268===e.parent.kind||307===e.parent.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===e.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_parameter,"static");if(64&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"static","override");l|=256,i=d;break;case 129:if(512&l)return zU(d,Pa._0_modifier_already_seen,"accessor");if(8&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==e.kind)return zU(d,Pa.accessor_modifier_can_only_appear_on_a_property_declaration);l|=512;break;case 148:if(8&l)return zU(d,Pa._0_modifier_already_seen,"readonly");if(172!==e.kind&&171!==e.kind&&181!==e.kind&&169!==e.kind)return zU(d,Pa.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");l|=8;break;case 95:if(I.verbatimModuleSyntax&&!(33554432&e.flags)&&265!==e.kind&&264!==e.kind&&267!==e.kind&&307===e.parent.kind&&(1===B||1===Id(e).impl
6iedNodeFormat))return zU(d,Pa.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&l)return zU(d,Pa._0_modifier_already_seen,"export");if(128&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"export","declare");if(64&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"export","async");if(Du(e.parent))return zU(d,Pa._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===e.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_parameter,"export");if(4===r)return zU(d,Pa._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===r)return zU(d,Pa._0_modifier_cannot_appear_on_an_await_using_declaration,"export");l|=32;break;case 90:const _=307===e.parent.kind?e.parent:e.parent.parent;if(267===_.kind&&!yp(_))return zU(d,Pa.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===r)return zU(d,Pa._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===r)return zU(d,Pa._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&l))return zU(d,Pa._0_modifier_must_precede_1_modifier,"export","default");if(u)return zU(c,Pa.Decorators_are_not_valid_here);l|=2048;break;case 138:if(128&l)return zU(d,Pa._0_modifier_already_seen,"declare");if(1024&l)return zU(d,Pa._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&l)return zU(d,Pa._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Du(e.parent)&&!kN(e))return zU(d,Pa._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===e.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===r)return zU(d,Pa._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===r)return zU(d,Pa._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&e.parent.flags&&268===e.parent.kind)return zU(d,Pa.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(uu(e))return zU(d,Pa._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");l|=128,o=d;break;case 128:if(64&l)return zU(d,Pa._0_modifier_already_seen,"abstract");if(263!==e.kind&&185!==e.kind){if(174!==e.kind&&172!==e.kind&&177!==e.kind&&178!==e.kind)return zU(d,Pa.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==e.parent.kind||!Xv(e.parent,64))return zU(d,172===e.kind?Pa.Abstract_properties_can_only_appear_within_an_abstract_class:Pa.Abstract_methods_can_only_appear_within_an_abstract_class);if(256&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&l&&a)return zU(a,Pa._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"abstract","override");if(512&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(jc(e)&&81===e.name.kind)return zU(d,Pa._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");l|=64;break;case 134:if(1024&l)return zU(d,Pa._0_modifier_already_seen,"async");if(128&l||33554432&e.parent.flags)return zU(d,Pa._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===e.kind)return zU(d,Pa._0_modifier_cannot_appear_on_a_parameter,"async");if(64&l)return zU(d,Pa._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");l|=1024,a=d;break;case 103:case 147:{const n=103===d.kind?8192:16384,r=103===d.kind?"in":"out",i=jF(e.parent)&&(rh(e.parent)||w(null==(t=oh(e.parent))?void 0:t.tags,BF))||e.parent;if(168!==e.kind||i&&!(lP(i)||Du(i)||uP(i)||BF(i)))return zU(d,Pa._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,r);if(l&n)return zU(d,Pa._0_modifier_already_seen,r);if(8192&n&&16384&l)return zU(d,Pa._0_modifier_must_precede_1_modifier,"in","out");l|=n;break}}}return 176===e.kind?256&l?zU(i,Pa._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&l?zU(s,Pa._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&l)&&zU(a,Pa._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===e.kind||271===e.kind)&&128&l?zU(o,Pa.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===e.kind&&31&l&&Bu(e.name)?zU(e,Pa.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===e.kind&&31&l&&e.dotDotDotToken?zU(e,Pa.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&l)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return zU(t,Pa._0_modifier_cannot_be_used_here,"async")}(e,a)}function yU(e,t){const n=w(e.modifiers,mu);return n&&n.kind!==t?n:void 0}function vU(e,t=Pa.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&qU(e[0],e.end-1,1,t)}function bU(e,t){if(e&&0===e.length){const n=e.pos-1;
6return qU(t,n,hs(t.text,e.end)+1-n,Pa.Type_parameter_list_cannot_be_empty)}return!1}function xU(e){if(R>=3){const t=e.body&&JE(e.body)&&mA(e.body.statements);if(t){const n=L(e.parameters,(e=>!!e.initializer||Bu(e.name)||nd(e)));if(_(n)){d(n,(e=>{DT(Co(e,Pa.This_parameter_is_not_allowed_with_use_strict_directive),Gp(t,Pa.use_strict_directive_used_here))}));const e=n.map(((e,t)=>Gp(e,0===t?Pa.Non_simple_parameter_declared_here:Pa.and_here)));return DT(Co(t,Pa.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function SU(e){const t=Id(e);return hU(e)||bU(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r<n;r++){const i=e[r];if(i.dotDotDotToken){if(r!==n-1)return zU(i.dotDotDotToken,Pa.A_rest_parameter_must_be_last_in_a_parameter_list);if(33554432&i.flags||vU(e,Pa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return zU(i.questionToken,Pa.A_rest_parameter_cannot_be_optional);if(i.initializer)return zU(i.name,Pa.A_rest_parameter_cannot_have_an_initializer)}else if(Af(i)){if(t=!0,i.questionToken&&i.initializer)return zU(i.name,Pa.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return zU(i.name,Pa.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!gE(e))return!1;e.typeParameters&&!(_(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&$o(t.fileName,[".mts",".cts"])&&zU(e.typeParameters[0],Pa.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e,r=ss(t,n.pos).line,i=ss(t,n.end).line;return r!==i&&zU(n,Pa.Line_terminator_not_permitted_before_arrow)}(e,t)||xu(e)&&xU(e)}function kU(e,t){return vU(t)||function(e,t){if(t&&0===t.length){const n=Id(e),r=t.pos-1;return qU(n,r,hs(n.text,t.end)+1-r,Pa.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function TU(e){const t=e.types;if(vU(t))return!0;if(t&&0===t.length){const n=Ga(e.token);return qU(e,t.pos,0,Pa._0_list_cannot_be_empty,n)}return te(t,CU)}function CU(e){return PE(e)&&mN(e.expression)&&e.typeArguments?zU(e,Pa.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):kU(e,e.typeArguments)}function wU(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&zU(t.expression,Pa.A_comma_expression_is_not_allowed_in_a_computed_property_name)}
6function DU(e){if(e.asteriskToken){if(En.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return zU(e.asteriskToken,Pa.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return zU(e.asteriskToken,Pa.An_overload_signature_cannot_be_declared_as_a_generator)}}function NU(e,t){return!!e&&zU(e,t)}function EU(e,t){return!!e&&zU(e,t)}function PU(e){if(VU(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=Id(e);if(gm(e)){if(!JU(t))switch(Np(t,I)||so.add(Gp(e.awaitModifier,Pa.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),B){case 100:case 199:if(1===t.impliedNodeFormat){so.add(Gp(e.awaitModifier,Pa.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(R>=4)break;default:so.add(Gp(e.awaitModifier,Pa.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!JU(t)){const t=Gp(e.awaitModifier,Pa.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=cm(e);return n&&176!==n.kind&&(En.assert(!(2&Qh(n)),"Enclosing function should never be an async function."),DT(t,Gp(n,Pa.Did_you_mean_to_mark_this_function_as_async))),so.add(t),!0}}if(GE(e)&&!(65536&e.flags)&&nN(e.initializer)&&"async"===e.initializer.escapedText)return zU(e.initializer,Pa.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!jU(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?Pa.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Pa.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return UU(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?Pa.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Pa.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return zU(r.name,t)}if(r.type)return zU(r,249===e.kind?Pa.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Pa.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function FU(e){if(e.parameters.length===(177===e.kind?1:2))return Dv(e)}function AU(e,t){if(function(e){return ny(e)&&!__(e)}(e))return zU(e,t)}function IU(e){if(SU(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==Ae(e.modifiers).kind))return UU(e,Pa.Modifiers_cannot_appear_here);if(NU(e.questionToken,Pa.An_object_member_cannot_be_declared_optional))return!0;if(EU(e.exclamationToken,Pa.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return qU(e,e.end-1,1,Pa._0_expected,"{")}if(DU(e))return!0}if(Du(e.parent)){if(R<2&&rN(e.name))return zU(e.name,Pa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return AU(e.name,Pa.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(174===e.kind&&!e.body)return AU(e.name,Pa.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===e.parent.kind)return AU(e.name,Pa.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return AU(e.name,Pa.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function OU(e){return Zh(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function LU(e){const t=e.initializer;if(t){const r=!(OU(t)||function(e){if((cE(e)||lE(e)&&OU(e.argumentExpression))&&Pb(e.expression))return!!(1056&kR(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));
6if(!(ff(e)||oP(e)&&YU(e))||e.type)return zU(t,Pa.Initializers_are_not_allowed_in_ambient_contexts);if(r)return zU(t,Pa.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function RU(e){if(80===e.kind){if("__esModule"===Fc(e))return function(e,t,n,...r){return!JU(Id(t))&&(ko(e,t,n,...r),!0)}("noEmit",e,Pa.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!EE(e))return RU(e.name)}return!1}function MU(e){if(80===e.kind){if("let"===e.escapedText)return zU(e,Pa.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)EE(e)||MU(e.name)}return!1}function jU(e){const t=e.declarations;if(vU(e.declarations))return!0;if(!e.declarations.length)return qU(e,t.pos,t.end-t.pos,Pa.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!KE(e.parent)?6===n&&rR(e):zU(e,4===n?Pa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Pa.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function BU(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return BU(e.parent)}return!0}function JU(e){return e.parseDiagnostics.length>0}function UU(e,t,...n){const r=Id(e);if(!JU(r)){const i=sf(r,e.pos);return so.add(vS(r,i.start,i.length,t,...n)),!0}return!1}function qU(e,t,n,r,...i){const o=Id(e);return!JU(o)&&(so.add(vS(o,t,n,r,...i)),!0)}function zU(e,t,...n){return!JU(Id(e))&&(so.add(Gp(e,t,...n)),!0)}function $U(e){return 264!==e.kind&&265!==e.kind&&272!==e.kind&&271!==e.kind&&278!==e.kind&&277!==e.kind&&270!==e.kind&&!Xv(e,2208)&&UU(e,Pa.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function VU(e){if(33554432&e.flags){if(!Xo(e).hasReportedStatementInAmbientContext&&(vu(e.parent)||Nu(e.parent)))return Xo(e).hasReportedStatementInAmbientContext=UU(e,Pa.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||307===e.parent.kind){const t=Xo(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=UU(e,Pa.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function WU(e){const t=ap(e).includes("."),n=16&e.numericLiteralFlags;t||n||+e.text<=p(2,53)-1||wo(!1,Gp(e,Pa.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function HU(e){return!!d(e.elements,(e=>{if(e.isTypeOnly)return UU(e,276===e.kind?Pa.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Pa.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function KU(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=uD(t,e);if(r)return r;const i=Xd(e);if(i){const e=sD(i,t);if(e){const r=Rk(t,j(e,(e=>[()=>Gl(e),e.escapedName])),n);if(r!==t)return r}}}}function GU(e){const t=ry(e);return t||(yN(e)?rD(BR(e.expression)):void 0)}function XU(e){return ke===e?Re:(ke=e,Re=vc(e))}function QU(e){return Se===e?Ee:(Se=e,Ee=xc(e))}function YU(e){const t=7&QU(e);return 2===t||4===t||6===t}}function rJ(e){return 262!==e.kind&&174!==e.kind||!!e.body}function iJ(e){switch(e.parent.kind){case 276:case 281:return nN(e);default:return kh(e)}}function oJ(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function aJ(e){return!!(1&e.flags)}function sJ(e){return!!(2&e.flags)}(jB=MB||(MB={})).JSX="JSX",jB.IntrinsicElements="IntrinsicElements",jB.ElementClass="ElementClass",jB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",jB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",jB.Element="Element",jB.ElementType="ElementType",jB.IntrinsicAttributes="IntrinsicAttributes",jB.IntrinsicClassAttributes="IntrinsicClassAttributes",jB.LibraryManagedAttributes="LibraryManagedAttributes";var cJ=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol
6=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i,o;if((null==(i=this.inner)?void 0:i.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||(null!=(r=(o=this.context).trackedSymbols)?r:o.trackedSymbols=[]).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&this.inner.reportInferenceFallback(e)}};function lJ(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=pt(i)?(r||xJ)(i):i,En.assertNode(o,n),o):void 0}function uJ(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||i<o?a=e.hasTrailingComma&&r+i===o:(s=e.pos,c=e.end,a=e.hasTrailingComma);const l=dJ(e,t,n,r,i);if(l!==e){const e=_w.createNodeArray(l,a);return $T(e,s,c),e}return e}function _J(e,t,n,r,i){if(void 0===e)return e;const o=e.length;return(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r),dJ(e,t,n,r,i)}function dJ(e,t,n,r,i){let o;const a=e.length;(r>0||i<a)&&(o=[]);for(let s=0;s<i;s++){const i=e[s+r],a=void 0!==i?t?t(i):i:void 0;if((void 0!==o||void 0===a||a!==i)&&(void 0===o&&(o=e.slice(0,s),En.assertEachNode(o,n)),a))if(pt(a))for(const e of a)En.assertNode(e,n),o.push(e);else En.assertNode(a,n),o.push(a)}return o||(En.assertEachNode(e,n),e)}function pJ(e,t,n,r,i,o=uJ){return n.startLexicalEnvironment(),e=o(e,t,F_,r),i&&(e=n.factory.ensureUseStrict(e)),_w.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function fJ(e,t,n,r=uJ){let i;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),i=r(e,t,bN),2&n.getLexicalEnvironmentFlags()&&BS(n.getCompilerOptions())>=2&&(i=function(e,t){let n;for(let r=0;r<e.length;r++){const i=e[r],o=mJ(i,t);(n||o!==i)&&(n||(n=e.slice(0,r)),n[r]=o)}return n?TI(t.factory.createNodeArray(n,e.hasTrailingComma),e):e}(i,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),i}function mJ(e,t){return e.dotDotDotToken?e:Bu(e.name)?function(e,t){const{factory:n}=t;return t.addInitializationStatement(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e.name,void 0,e.type,e.initializer?n.createConditionalExpression(n.createStrictEquality(n.getGeneratedNameForNode(e),n.createVoidZero()),void 0,e.initializer,void 0,n.getGeneratedNameForNode(e)):n.getGeneratedNameForNode(e))]))),n.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,n.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,t):e.initializer?function(e,t,n,r){const i=r.factory;
6return r.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(t),"undefined"),hw(TI(i.createBlock([i.createExpressionStatement(hw(TI(i.createAssignment(hw(i.cloneNode(t),96),hw(n,3168|lp(n))),e),3072))]),e),3905))),i.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,t):e}function gJ(e,t,n,r=lJ){n.resumeLexicalEnvironment();const i=r(e,t,g_),o=n.endLexicalEnvironment();if(te(o)){if(!i)return n.factory.createBlock(o);const e=n.factory.converters.convertToFunctionBlock(i),t=_w.mergeLexicalEnvironment(e.statements,o);return n.factory.updateBlock(e,t)}return i}function hJ(e,t,n,r=lJ){n.startBlockScope();const i=r(e,t,F_,n.factory.liftToBlock);En.assert(i);const o=n.endBlockScope();return te(o)?JE(i)?(o.push(...i.statements),n.factory.updateBlock(i,o)):(o.push(i),n.factory.createBlock(o)):i}function yJ(e,t,n=t){if(n===t||e.length<=1)return uJ(e,t,s_);let r=0;const i=e.length;return uJ(e,(e=>{const o=r<i-1;return r++,o?n(e):t(e)}),s_)}function vJ(e,t,n=Vq,r=uJ,i,o=lJ){if(void 0===e)return;const a=bJ[e.kind];return void 0===a?e:a(e,t,n,r,o,i)}var bJ={166:function(e,t,n,r,i,o){return n.factory.updateQualifiedName(e,En.checkDefined(i(e.left,t,gu)),En.checkDefined(i(e.right,t,nN)))},167:function(e,t,n,r,i,o){return n.factory.updateComputedPropertyName(e,En.checkDefined(i(e.expression,t,s_)))},168:function(e,t,n,r,i,o){return n.factory.updateTypeParameterDeclaration(e,r(e.modifiers,t,mu),En.checkDefined(i(e.name,t,nN)),i(e.constraint,t,Mu),i(e.default,t,Mu))},169:function(e,t,n,r,i,o){return n.factory.updateParameterDeclaration(e,r(e.modifiers,t,Iu),o?i(e.dotDotDotToken,o,WD):e.dotDotDotToken,En.checkDefined(i(e.name,t,yu)),o?i(e.questionToken,o,YD):e.questionToken,i(e.type,t,Mu),i(e.initializer,t,s_))},170:function(e,t,n,r,i,o){return n.factory.updateDecorator(e,En.checkDefined(i(e.expression,t,s_)))},171:function(e,t,n,r,i,o){return n.factory.updatePropertySignature(e,r(e.modifiers,t,mu),En.checkDefined(i(e.name,t,hu)),o?i(e.questionToken,o,YD):e.questionToken,i(e.type,t,Mu))},172:function(e,t,n,r,i,o){var a,s;return n.factory.updatePropertyDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,hu)),o?i(null!=(a=e.questionToken)?a:e.exclamationToken,o,VA):null!=(s=e.questionToken)?s:e.exclamationToken,i(e.type,t,Mu),i(e.initializer,t,s_))},173:function(e,t,n,r,i,o){return n.factory.updateMethodSignature(e,r(e.modifiers,t,mu),En.checkDefined(i(e.name,t,hu)),o?i(e.questionToken,o,YD):e.questionToken,r(e.typeParameters,t,vN),r(e.parameters,t,bN),i(e.type,t,Mu))},174:function(e,t,n,r,i,o){return n.factory.updateMethodDeclaration(e,r(e.modifiers,t,Iu),o?i(e.asteriskToken,o,XD):e.asteriskToken,En.checkDefined(i(e.name,t,hu)),o?i(e.questionToken,o,YD):e.questionToken,r(e.typeParameters,t,vN),fJ(e.parameters,t,n,r),i(e.type,t,Mu),gJ(e.body,t,n,i))},176:function(e,t,n,r,i,o){return n.factory.updateConstructorDeclaration(e,r(e.modifiers,t,Iu),fJ(e.parameters,t,n,r),gJ(e.body,t,n,i))},177:function(e,t,n,r,i,o){return n.factory.updateGetAccessorDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,hu)),fJ(e.parameters,t,n,r),i(e.type,t,Mu),gJ(e.body,t,n,i))},178:function(e,t,n,r,i,o){return n.factory.updateSetAccessorDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,hu)),fJ(e.parameters,t,n,r),gJ(e.body,t,n,i))},175:function(e,t,n,r,i,o){return n.startLexicalEnvironment(),n.suspendLexicalEnvironment(),n.factory.updateClassStaticBlockDeclaration(e,gJ(e.body,t,n,i))},179:function(e,t,n,r,i,o){return n.factory.updateCallSignature(e,r(e.typeParameters,t,vN),r(e.parameters,t,bN),i(e.type,t,Mu))},180:function(e,t,n,r,i,o){return n.factory.updateConstructSignature(e,r(e.typeParameters,t,vN),r(e.parameters,t,bN),i(e.type,t,Mu))},181:function(e,t,n,r,i,o){return n.factory.updateIndexSignature(e,r(e.modifiers,t,Iu),r(e.parameters,t,bN),En.checkDefined(i(e.type,t,Mu)))},182:function(e,t,n,r,i,o){return n.factory.updateTypePredicateNode(e,i(e.assertsModifier,t,sN),En.checkDefined(i(e.parameterName,t,WA)),i(e.type,t,Mu))},183:function(e,t,n,r,i,o){return n.factory.updateTypeReferenceNode(e,En.checkDefined(i(e.typeName,t,gu)),r(e.typeArguments,t,Mu))},184:function(e,t,n,r,i,o){return n.factory.updateFunctionTypeNode(e,r(e.typeParameters,t,vN),r(e.parameters,t,bN),En.checkDefined(i(e.type,t,Mu)))},185:function(e,t,n,r,i,o){return n.factory.updateConstructorTypeNode(e,r(e.modifiers,t,mu),r(e.typeParameters,t,vN),r(e.parameters,t,bN),En.checkDefined(i(e.type,t,Mu)))},186:function(e,t,n,r,i,o){return n.factory.updateTypeQueryNode(e,En.checkDefined(i(e.exprName,t,gu)),r(e.typeArguments,t,Mu))},187:function(e,t,n,r,i,o){return n.factory.updateTypeLiteralNode(e,r(e.members,t,Ou))},188:function(e,t,n,r,i,o){return n.factory.updateArrayTypeNode(e,En.checkDefined(i(e.elementType,t,Mu)))},189:function(e,t,n,r,i,o){return n.factory.updateTupleTypeNode(e,r(e.elements,t,Mu))},190:function(e,t,n,r,i,o){return n.factory.updateOptionalTypeNode(e,En.checkDefined(i(e.type,t,Mu)))},191:function(e,t,n,r,i,o){return n.factory.updateRestTypeNode(e,En.checkDefined(i(e.type,t,Mu)))},192:function(e,t,n,r,i,o){return n.factory.updateUnionTypeNode(e,r(e.types,t,Mu))},193:function(e,t,n,r,i,o){return n.factory.updateIntersectionTypeNode(e,r(e.types,t,Mu))},194:function(e,t,n,r,i,o){return n.factory.updateConditionalTypeNode(e,En.checkDefined(i(e.checkType,t,Mu)),En.checkDefined(i(e.extendsType,t,Mu)),En.checkDefined(i(e.trueType,t,Mu)),En.checkDefined(i(e.falseType,t,Mu)))},195:function(e,t,n,r,i,o){return n.factory.updateInferTypeNode(e,En.checkDefined(i(e.typeParameter,t,vN)))},205:function(e,t,n,r,i,o){return n.factory.updateImportTypeNode(e,En.checkDefined(i(e.argument,t,Mu)),i(e.attributes,t,SP),i(e.qualifier,t,gu),r(e.typeArguments,t,Mu),e.isTypeOf)},302:function(e,t,n,r,i,o){return n.factory.updateImportTypeAssertionContainer(e,En.checkDefined(i(e.assertClause,t,bP)),e.multiLine)},202:function(e,t,n,r,i,o){return n.factory.updateNamedTupleMember(e,o?i(e.dotDotDotToken,o,WD):e.dotDotDotToken,En.checkDefined(i(e.name,t,nN)),o?i(e.questionToken,o,YD):e.questionToken,En.checkDefined(i(e.type,t,Mu)))},196:function(e,t,n,r,i,o){return n.factory.updateParenthesizedType(e,En.checkDefined(i(e.type,t,Mu)))},198:function(e,t,n,r,i,o){return n.factory.updateTypeOperatorNode(e,En.checkDefined(i(e.type,t,Mu)))},199:function(e,t,n,r,i,o){return n.factory.updateIndexedAccessTypeNode(e,En.checkDefined(i(e.objectType,t,Mu)),En.checkDefined(i(e.indexType,t,Mu)))},200:function(e,t,n,r,i,o){return n.factory.updateMappedTypeNode(e,o?i(e.readonlyToken,o,HA):e.readonlyToken,En.checkDefined(i(e.typeParameter,t,vN)),i(e.nameType,t,Mu),o?i(e.questionToken,o,KA):e.questionToken,i(e.type,t,Mu),r(e.members,t,Ou))},201:function(e,t,n,r,i,o){return n.factory.updateLiteralTypeNode(e,En.checkDefined(i(e.literal,t,a_)))},203:function(e,t,n,r,i,o){return n.factory.updateTemplateLiteralType(e,En.checkDefined(i(e.head,t,zD)),r(e.templateSpans,t,tE))},204:function(e,t,n,r,i,o){return n.factory.updateTemplateLiteralTypeSpan(e,En.checkDefined(i(e.type,t,Mu)),En.checkDefined(i(e.literal,t,eu)))},206:function(e,t,n,r,i,o){return n.factory.updateObjectBindingPattern(e,r(e.elements,t,oE))},207:function(e,t,n,r,i,o){return n.factory.updateArrayBindingPattern(e,r(e.elements,t,Uu))},208:function(e,t,n,r,i,o){return n.factory.updateBindingElement(e,o?i(e.dotDotDotToken,o,WD):e.dotDotDotToken,i(e.propertyName,t,hu),En.checkDefined(i(e.name,t,yu)),i(e.initializer,t,s_))},209:function(e,t,n,r,i,o){return n.factory.updateArrayLiteralExpression(e,r(e.elements,t,s_))},210:function(e,t,n,r,i,o){return n.factory.updateObjectLiteralExpression(e,r(e.properties,t,Ru))},211:function(e,t,n,r,i,o){return Pl(e)?n.factory.updatePropertyAccessChain(e,En.checkDefined(i(e.expression,t,s_)),o?i(e.questionDotToken,o,eN):e.questionDotToken,En.checkDefined(i(e.name,t,Nl))):n.factory.updatePropertyAccessExpression(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.name,t,Nl)))},212:function(e,t,n,r,i,o){return Fl(e)?n.factory.updateElementAccessChain(e,En.checkDefined(i(e.expression,t,s_)),o?i(e.questionDotToken,o,eN):e.questionDotToken,En.checkDefined(i(e.argumentExpression,t,s_))):n.factory.updateElementAccessExpression(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.argumentExpression,t,s_)))},213:function(e,t,n,r,i,o){return Al(e)?n.factory.updateCallChain(e,En.checkDefined(i(e.expression,t,s_)),o?i(e.questionDotToken,o,eN):e.questionDotToken,r(e.typeArguments,t,Mu),r(e.arguments,t,s_)):n.factory.updateCallExpression(e,En.checkDefined(i(e.expression,t,s_)),r(e.typeArguments,t,Mu),r(e.arguments,t,s_))},214:function(e,t,n,r,i,o){return n.factory.updateNewExpression(e,En.checkDefined(i(e.expression,t,s_)),r(e.typeArguments,t,Mu),r(e.arguments,t,s_))},215:function(e,t,n,r,i,o){return n.factory.updateTaggedTemplateExpression(e,En.checkDefined(i(e.tag,t,s_)),r(e.typeArguments,t,Mu),En.checkDefined(i(e.template,t,e_)))},216:function(e,t,n,r,i,o){return n.factory.updateTypeAssertion(e,En.checkDefined(i(e.type,t,Mu)),En.checkDefined(i(e.expression,t,s_)))},217:function(e,t,n,r,i,o){return n.factory.updateParenthesizedExpression(e,En.checkDefined(i(e.expression,t,s_)))},218:function(e,t,n,r,i,o){return n.factory.updateFunctionExpression(e,r(e.modifiers,t,mu),o?i(e.asteriskToken,o,XD):e.asteriskToken,i(e.name,t,nN),r(e.typeParameters,t,vN),fJ(e.parameters,t,n,r),i(e.type,t,Mu),gJ(e.body,t,n,i)
6)},219:function(e,t,n,r,i,o){return n.factory.updateArrowFunction(e,r(e.modifiers,t,mu),r(e.typeParameters,t,vN),fJ(e.parameters,t,n,r),i(e.type,t,Mu),o?En.checkDefined(i(e.equalsGreaterThanToken,o,tN)):e.equalsGreaterThanToken,gJ(e.body,t,n,i))},220:function(e,t,n,r,i,o){return n.factory.updateDeleteExpression(e,En.checkDefined(i(e.expression,t,s_)))},221:function(e,t,n,r,i,o){return n.factory.updateTypeOfExpression(e,En.checkDefined(i(e.expression,t,s_)))},222:function(e,t,n,r,i,o){return n.factory.updateVoidExpression(e,En.checkDefined(i(e.expression,t,s_)))},223:function(e,t,n,r,i,o){return n.factory.updateAwaitExpression(e,En.checkDefined(i(e.expression,t,s_)))},224:function(e,t,n,r,i,o){return n.factory.updatePrefixUnaryExpression(e,En.checkDefined(i(e.operand,t,s_)))},225:function(e,t,n,r,i,o){return n.factory.updatePostfixUnaryExpression(e,En.checkDefined(i(e.operand,t,s_)))},226:function(e,t,n,r,i,o){return n.factory.updateBinaryExpression(e,En.checkDefined(i(e.left,t,s_)),o?En.checkDefined(i(e.operatorToken,o,tI)):e.operatorToken,En.checkDefined(i(e.right,t,s_)))},227:function(e,t,n,r,i,o){return n.factory.updateConditionalExpression(e,En.checkDefined(i(e.condition,t,s_)),o?En.checkDefined(i(e.questionToken,o,YD)):e.questionToken,En.checkDefined(i(e.whenTrue,t,s_)),o?En.checkDefined(i(e.colonToken,o,ZD)):e.colonToken,En.checkDefined(i(e.whenFalse,t,s_)))},228:function(e,t,n,r,i,o){return n.factory.updateTemplateExpression(e,En.checkDefined(i(e.head,t,zD)),r(e.templateSpans,t,jE))},229:function(e,t,n,r,i,o){return n.factory.updateYieldExpression(e,o?i(e.asteriskToken,o,XD):e.asteriskToken,i(e.expression,t,s_))},230:function(e,t,n,r,i,o){return n.factory.updateSpreadElement(e,En.checkDefined(i(e.expression,t,s_)))},231:function(e,t,n,r,i,o){return n.factory.updateClassExpression(e,r(e.modifiers,t,Iu),i(e.name,t,nN),r(e.typeParameters,t,vN),r(e.heritageClauses,t,XP),r(e.members,t,wu))},233:function(e,t,n,r,i,o){return n.factory.updateExpressionWithTypeArguments(e,En.checkDefined(i(e.expression,t,s_)),r(e.typeArguments,t,Mu))},234:function(e,t,n,r,i,o){return n.factory.updateAsExpression(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.type,t,Mu)))},238:function(e,t,n,r,i,o){return n.factory.updateSatisfiesExpression(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.type,t,Mu)))},235:function(e,t,n,r,i,o){return Il(e)?n.factory.updateNonNullChain(e,En.checkDefined(i(e.expression,t,s_))):n.factory.updateNonNullExpression(e,En.checkDefined(i(e.expression,t,s_)))},236:function(e,t,n,r,i,o){return n.factory.updateMetaProperty(e,En.checkDefined(i(e.name,t,nN)))},239:function(e,t,n,r,i,o){return n.factory.updateTemplateSpan(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.literal,t,eu)))},241:function(e,t,n,r,i,o){return n.factory.updateBlock(e,r(e.statements,t,F_))},243:function(e,t,n,r,i,o){return n.factory.updateVariableStatement(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.declarationList,t,aP)))},244:function(e,t,n,r,i,o){return n.factory.updateExpressionStatement(e,En.checkDefined(i(e.expression,t,s_)))},245:function(e,t,n,r,i,o){return n.factory.updateIfStatement(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.thenStatement,t,F_,n.factory.liftToBlock)),i(e.elseStatement,t,F_,n.factory.liftToBlock))},246:function(e,t,n,r,i,o){return n.factory.updateDoStatement(e,hJ(e.statement,t,n,i),En.checkDefined(i(e.expression,t,s_)))},247:function(e,t,n,r,i,o){return n.factory.updateWhileStatement(e,En.checkDefined(i(e.expression,t,s_)),hJ(e.statement,t,n,i))},248:function(e,t,n,r,i,o){return n.factory.updateForStatement(e,i(e.initializer,t,y_),i(e.condition,t,s_),i(e.incrementor,t,s_),hJ(e.statement,t,n,i))},249:function(e,t,n,r,i,o){return n.factory.updateForInStatement(e,En.checkDefined(i(e.initializer,t,y_)),En.checkDefined(i(e.expression,t,s_)),hJ(e.statement,t,n,i))},250:function(e,t,n,r,i,o){return n.factory.updateForOfStatement(e,o?i(e.awaitModifier,o,cN):e.awaitModifier,En.checkDefined(i(e.initializer,t,y_)),En.checkDefined(i(e.expression,t,s_)),hJ(e.statement,t,n,i))},251:function(e,t,n,r,i,o){return n.factory.updateContinueStatement
6(e,i(e.label,t,nN))},252:function(e,t,n,r,i,o){return n.factory.updateBreakStatement(e,i(e.label,t,nN))},253:function(e,t,n,r,i,o){return n.factory.updateReturnStatement(e,i(e.expression,t,s_))},254:function(e,t,n,r,i,o){return n.factory.updateWithStatement(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.statement,t,F_,n.factory.liftToBlock)))},255:function(e,t,n,r,i,o){return n.factory.updateSwitchStatement(e,En.checkDefined(i(e.expression,t,s_)),En.checkDefined(i(e.caseBlock,t,fP)))},256:function(e,t,n,r,i,o){return n.factory.updateLabeledStatement(e,En.checkDefined(i(e.label,t,nN)),En.checkDefined(i(e.statement,t,F_,n.factory.liftToBlock)))},257:function(e,t,n,r,i,o){return n.factory.updateThrowStatement(e,En.checkDefined(i(e.expression,t,s_)))},258:function(e,t,n,r,i,o){return n.factory.updateTryStatement(e,En.checkDefined(i(e.tryBlock,t,JE)),i(e.catchClause,t,QP),i(e.finallyBlock,t,JE))},260:function(e,t,n,r,i,o){return n.factory.updateVariableDeclaration(e,En.checkDefined(i(e.name,t,yu)),o?i(e.exclamationToken,o,QD):e.exclamationToken,i(e.type,t,Mu),i(e.initializer,t,s_))},261:function(e,t,n,r,i,o){return n.factory.updateVariableDeclarationList(e,r(e.declarations,t,oP))},262:function(e,t,n,r,i,o){return n.factory.updateFunctionDeclaration(e,r(e.modifiers,t,mu),o?i(e.asteriskToken,o,XD):e.asteriskToken,i(e.name,t,nN),r(e.typeParameters,t,vN),fJ(e.parameters,t,n,r),i(e.type,t,Mu),gJ(e.body,t,n,i))},263:function(e,t,n,r,i,o){return n.factory.updateClassDeclaration(e,r(e.modifiers,t,Iu),i(e.name,t,nN),r(e.typeParameters,t,vN),r(e.heritageClauses,t,XP),r(e.members,t,wu))},264:function(e,t,n,r,i,o){return n.factory.updateInterfaceDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,nN)),r(e.typeParameters,t,vN),r(e.heritageClauses,t,XP),r(e.members,t,Ou))},265:function(e,t,n,r,i,o){return n.factory.updateTypeAliasDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,nN)),r(e.typeParameters,t,vN),En.checkDefined(i(e.type,t,Mu)))},266:function(e,t,n,r,i,o){return n.factory.updateEnumDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,nN)),r(e.members,t,tF))},267:function(e,t,n,r,i,o){return n.factory.updateModuleDeclaration(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.name,t,GA)),i(e.body,t,v_))},268:function(e,t,n,r,i,o){return n.factory.updateModuleBlock(e,r(e.statements,t,F_))},269:function(e,t,n,r,i,o){return n.factory.updateCaseBlock(e,r(e.clauses,t,B_))},270:function(e,t,n,r,i,o){return n.factory.updateNamespaceExportDeclaration(e,En.checkDefined(i(e.name,t,nN)))},271:function(e,t,n,r,i,o){return n.factory.updateImportEqualsDeclaration(e,r(e.modifiers,t,Iu),e.isTypeOnly,En.checkDefined(i(e.name,t,nN)),En.checkDefined(i(e.moduleReference,t,I_)))},272:function(e,t,n,r,i,o){return n.factory.updateImportDeclaration(e,r(e.modifiers,t,Iu),i(e.importClause,t,yP),En.checkDefined(i(e.moduleSpecifier,t,s_)),i(e.attributes,t,SP))},300:function(e,t,n,r,i,o){return n.factory.updateImportAttributes(e,r(e.elements,t,kP),e.multiLine)},301:function(e,t,n,r,i,o){return n.factory.updateImportAttribute(e,En.checkDefined(i(e.name,t,au)),En.checkDefined(i(e.value,t,s_)))},273:function(e,t,n,r,i,o){return n.factory.updateImportClause(e,e.isTypeOnly,i(e.name,t,nN),i(e.namedBindings,t,S_))},274:function(e,t,n,r,i,o){return n.factory.updateNamespaceImport(e,En.checkDefined(i(e.name,t,nN)))},280:function(e,t,n,r,i,o){return n.factory.updateNamespaceExport(e,En.checkDefined(i(e.name,t,nN)))},275:function(e,t,n,r,i,o){return n.factory.updateNamedImports(e,r(e.elements,t,DP))},276:function(e,t,n,r,i,o){return n.factory.updateImportSpecifier(e,e.isTypeOnly,i(e.propertyName,t,nN),En.checkDefined(i(e.name,t,nN)))},277:function(e,t,n,r,i,o){return n.factory.updateExportAssignment(e,r(e.modifiers,t,Iu),En.checkDefined(i(e.expression,t,s_)))},278:function(e,t,n,r,i,o){return n.factory.updateExportDeclaration(e,r(e.modifiers,t,Iu),e.isTypeOnly,i(e.exportClause,t,ql),i(e.moduleSpecifier,t,s_),i(e.attributes,t,SP))},279:function(e,t,n,r,i,o){return n.factory.updateNamedExports(e,r(e.elements,t,FP))},281:function(e,t,n,r,i,o){return n.factory.updateExportSpecifier(e,e.isTypeOnly,i(e.propertyName,t,nN),En.checkDefined(i(e.name,t,nN)))}
6,283:function(e,t,n,r,i,o){return n.factory.updateExternalModuleReference(e,En.checkDefined(i(e.expression,t,s_)))},284:function(e,t,n,r,i,o){return n.factory.updateJsxElement(e,En.checkDefined(i(e.openingElement,t,jP)),r(e.children,t,L_),En.checkDefined(i(e.closingElement,t,BP)))},285:function(e,t,n,r,i,o){return n.factory.updateJsxSelfClosingElement(e,En.checkDefined(i(e.tagName,t,O_)),r(e.typeArguments,t,Mu),En.checkDefined(i(e.attributes,t,$P)))},286:function(e,t,n,r,i,o){return n.factory.updateJsxOpeningElement(e,En.checkDefined(i(e.tagName,t,O_)),r(e.typeArguments,t,Mu),En.checkDefined(i(e.attributes,t,$P)))},287:function(e,t,n,r,i,o){return n.factory.updateJsxClosingElement(e,En.checkDefined(i(e.tagName,t,O_)))},295:function(e,t,n,r,i,o){return n.factory.updateJsxNamespacedName(e,En.checkDefined(i(e.namespace,t,nN)),En.checkDefined(i(e.name,t,nN)))},288:function(e,t,n,r,i,o){return n.factory.updateJsxFragment(e,En.checkDefined(i(e.openingFragment,t,UP)),r(e.children,t,L_),En.checkDefined(i(e.closingFragment,t,qP)))},291:function(e,t,n,r,i,o){return n.factory.updateJsxAttribute(e,En.checkDefined(i(e.name,t,TC)),i(e.initializer,t,M_))},292:function(e,t,n,r,i,o){return n.factory.updateJsxAttributes(e,r(e.properties,t,R_))},293:function(e,t,n,r,i,o){return n.factory.updateJsxSpreadAttribute(e,En.checkDefined(i(e.expression,t,s_)))},294:function(e,t,n,r,i,o){return n.factory.updateJsxExpression(e,i(e.expression,t,s_))},296:function(e,t,n,r,i,o){return n.factory.updateCaseClause(e,En.checkDefined(i(e.expression,t,s_)),r(e.statements,t,F_))},297:function(e,t,n,r,i,o){return n.factory.updateDefaultClause(e,r(e.statements,t,F_))},298:function(e,t,n,r,i,o){return n.factory.updateHeritageClause(e,r(e.types,t,PE))},299:function(e,t,n,r,i,o){return n.factory.updateCatchClause(e,i(e.variableDeclaration,t,oP),En.checkDefined(i(e.block,t,JE)))},303:function(e,t,n,r,i,o){return n.factory.updatePropertyAssignment(e,En.checkDefined(i(e.name,t,hu)),En.checkDefined(i(e.initializer,t,s_)))},304:function(e,t,n,r,i,o){return n.factory.updateShorthandPropertyAssignment(e,En.checkDefined(i(e.name,t,nN)),i(e.objectAssignmentInitializer,t,s_))},305:function(e,t,n,r,i,o){return n.factory.updateSpreadAssignment(e,En.checkDefined(i(e.expression,t,s_)))},306:function(e,t,n,r,i,o){return n.factory.updateEnumMember(e,En.checkDefined(i(e.name,t,hu)),i(e.initializer,t,s_))},307:function(e,t,n,r,i,o){return n.factory.updateSourceFile(e,pJ(e.statements,t,n))},354:function(e,t,n,r,i,o){return n.factory.updatePartiallyEmittedExpression(e,En.checkDefined(i(e.expression,t,s_)))},355:function(e,t,n,r,i,o){return n.factory.updateCommaListExpression(e,r(e.elements,t,s_))}};function xJ(e){return En.assert(e.length<=1,"Too many nodes written to output."),Re(e)}function SJ(e,t,n,r,i){var o,a,{enter:s,exit:c}=i.extendedDiagnostics?dr("Source Map","beforeSourcemap","afterSourcemap"):mr,l=[],u=[],_=new Map,d=[],p=[],f="",m=0,g=0,h=0,y=0,v=0,b=0,x=!1,S=0,k=0,T=0,C=0,w=0,D=0,N=!1,E=!1,P=!1;return{getSources:()=>l,addSource:F,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){En.assert(e>=S,"generatedLine cannot backtrack"),En.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const u=FJ(n.mappings);for(const s of u){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLine<i.line||i.line===s.generatedLine&&s.generatedCharacter<i.character))continue;let c,u,_,d;if(void 0!==s.sourceIndex){if(c=a[s.sourceIndex],void 0===c){const e=n.sources[s.sourceIndex],t=n.sourceRoot?ra(n.sourceRoot,e):e,i=ra(Go(r),t);a[s.sourceIndex]=c=F(i),n.sourcesContent&&"string"==typeof n.sourcesContent[s.sourceIndex]&&A(c,n.sourcesContent[s.sourceIndex])}u=s.sourceLine,_=s.sourceCharacter,n.names&&void 0!==s.nameIndex&&(l||(l=[]),d=l[s.nameIndex],void 0===d&&(l[s.nameIndex]=d=I(n.names[s.nameIndex])))}const p=s.generatedLine-(i?i.line:0),f=p+e,m=i&&i.line===s.generatedLine?s.generatedCharacter-i.character:s.generatedCharacter;O(f,0===p?m+t:m,c,u,_,d)}c()},toJSON:j,toString:()=>JSON.stringify(j())};function F(t){s();const n=wa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=_.get(n);return void 0===i&&(i=u.length,u.push(n),l.push(t),_.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length<e;)o.push(null);o[e]=t}c()}function I(e){s(),a||(a=new Map);let t=a.get(e);return void 0===t&&(t=d.length,d.push(e),a.set(e,t)),c(),t}function O(e,t,n,r,i,o){En.assert(e>=S,"generatedLine cannot backtrack"),En.assert(t>=0,"generatedCharacter cannot be negative"),En.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),En.assert(void 0===r||r>=0,"sourceLine cannot be negative"),En.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!N||S!==e||k!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(R(),S=e,k=t,E=!1,P=!1,N=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,E=!0,void 0!==o&&(D=o,P=!0)),c()}function L(e){p.push(e),p.length>=1024&&M()}function R(){if(N&&(!x||m!==S||g!==k||h!==T||y!==C||v!==w||b!==D)){if(s(),m<S){do{L(59),m++}while(m<S);g=0}else En.assertEqual(m,S,"generatedLine cannot backtrack"),x&&L(44);B(k-g),g=k,E&&(B(T-h),h=T,B(C-y),y=C,B(w-v),v=w,P&&(B(D-b),b=D)),x=!0,c()}}function M(){p.length>0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function j(){return R(),M(),{version:3,file:t,sourceRoot:n,sources:u,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:En.fail(`${t}: not a base64 value`))}while(e>0);var t}}var kJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,TJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,CJ=/^\s*(\/\/[@#] .*)?$/;function wJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function DJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=TJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(CJ))break}}function NJ(e){return"string"==typeof e||null===e}function EJ(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&pt(e.sources)&&C(e.sources,mt)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||pt(e.sourcesContent)&&C(e.sourcesContent,NJ))&&(void 0===e.names||null===e.names||pt(e.names)&&C(e.names,mt))}function PJ(e){try{const t=JSON.parse(e);if(EJ(t))return t}catch(Fhe){}}function FJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return u(!0,!0)},next(){for(;!n&&r<e.length;){const t=e.charCodeAt(r);if(59===t){i++,o=0,r++;continue}if(44===t){r++;continue}let d=!1,h=!1;if(o+=g(),f())return _();if(o<0)return p("Invalid generatedCharacter found");if(!m()){if(d=!0,a+=g(),f())return _();if(a<0)return p("Invalid sourceIndex found");if(m())return p("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return _();if(s<0)return p("Invalid sourceLine found");if(m())return p("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return _();if(c<0)return p("Invalid sourceCharacter found");if(!m()){if(h=!0,l+=g(),f())return _();if(l<0)return p("Invalid nameIndex found");if(!m())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:u(d,h),done:n}}return _()},[Symbol.iterator](){return this}};function u(e,t){return{generatedLine:i,generatedCharacter:o,sourceIndex:e?a:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function _(){return n=!0,{value:void 0,done:!0}}function d(e){void 0===t&&(t=e)}function p(e){return d(e),_()}function f(){return void 0!==t}function m(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function g(){let t=!0,n=0,i=0;for(;t;r++){if(r>=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=!!(32&a),i|=(31&a)<<n,n+=5}var o;return 1&i?(i>>=1,i=-i):i>>=1,i}}function AJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function IJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function OJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function LJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function RJ(e,t){return En.assert(e.sourceIndex===t.sourceIndex),jt(e.sourcePosition,t.sourcePosition)}function MJ(e,t){return jt(e.generatedPosition,t.generatedPosition)}function jJ(e){return e.sourcePosition}function BJ(e){return e.generatedPosition}function JJ(e,t,n){const r=Go(n),i=t.sourceRoot?aa(t.sourceRoot,r):r,o=aa(t.file,r),a=e.getSourceFileLike(o),s=t.sources.map((e=>aa(e,i))),l=new Map(s.map(((t,n)=>[e.getCanonicalFileName(t),n])));let u,_,d;return{getSourcePosition:function(e){const t=function(){if(void 0===_){const e=[];for(const t of f())e.push(t);_=le(e,MJ,LJ)}return _}();if(!te(t))return e;let n=Ue(t,e.pos,BJ,jt);n<0&&(n=~n);const r=t[n];return void 0!==r&&OJ(r)?{fileName:s[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=l.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!OJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>le(e,RJ,LJ)))}return d[e]}(n);if(!te(r))return t;let i=Ue(r,t.pos,jJ,jt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?ts(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(IJ(n)){const r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?ts(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===u){const n=FJ(t.mappings),r=Xe(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),u=c):u=r}return u}}var UJ={getSourcePosition:kt,getGeneratedPosition:kt};function qJ(e){return(e=Cc(e))?ZB(e):0}function zJ(e){return!!e&&!(!wP(e)&&!PP(e))&&te(e.elements,$J)}function $J(e){return void 0!==e.propertyName?"default"===e.propertyName.escapedText:"default"===e.name.escapedText}function VJ(e,t){return function(n){return 307===n.kind?t(n):function(n){return e.factory.createBundle(j(n.sourceFiles,t))}(n)}}function WJ(e){return!!Mg(e)}function HJ(e){if(Mg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!wP(t))return!1;let n=0;for(const r of t.elements)$J(r)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&jg(e)}function KJ(e){return!HJ(e)&&(jg(e)||!!e.importClause&&wP(e.importClause.namedBindings)&&zJ(e.importClause.namedBindings)
6)}function GJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new ZJ,a=[],s=new Map,c=new Set;let l,u,_=!1,d=!1,p=!1,f=!1;for(const y of t.statements)switch(y.kind){case 272:i.push(y),!p&&HJ(y)&&(p=!0),!f&&KJ(y)&&(f=!0);break;case 271:283===y.moduleReference.kind&&i.push(y);break;case 278:if(y.moduleSpecifier)if(y.exportClause)if(i.push(y),PP(y.exportClause))g(y),f||(f=zJ(y.exportClause));else{const e=y.exportClause.name;s.get(Fc(e))||(QJ(a,qJ(y),e),s.set(Fc(e),!0),l=fe(l,e)),p=!0}else i.push(y),d=!0;else g(y);break;case 277:y.isExportEquals&&!u&&(u=y);break;case 243:if(Xv(y,32))for(const e of y.declarationList.declarations)l=XJ(e,s,l,a);break;case 262:Xv(y,32)&&h(y,void 0,Xv(y,2048));break;case 263:if(Xv(y,32))if(Xv(y,2048))_||(QJ(a,qJ(y),e.factory.getDeclarationName(y)),_=!0);else{const e=y.name;e&&!s.get(Fc(e))&&(QJ(a,qJ(y),e),s.set(Fc(e),!0),l=fe(l,e))}}const m=NA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:u,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of yt(e.exportClause,PP).elements)if(!s.get(Fc(t.name))){const r=t.propertyName||t.name;e.moduleSpecifier||o.add(r,t);const i=n.getReferencedImportDeclaration(r)||n.getReferencedValueDeclaration(r);if(i){if(262===i.kind){h(i,t.name,"default"===t.name.escapedText);continue}QJ(a,qJ(i),t.name)}s.set(Fc(t.name),!0),l=fe(l,t.name)}}function h(t,n,r){c.add(t),r?_||(QJ(a,qJ(t),null!=n?n:e.factory.getDeclarationName(t)),_=!0):(null!=n||(n=t.name),s.get(Fc(n))||(QJ(a,qJ(t),n),s.set(Fc(n),!0)))}}function XJ(e,t,n,r){if(Bu(e.name))for(const i of e.name.elements)EE(i)||(n=XJ(i,t,n,r));else if(!su(e.name)){const i=Fc(e.name);t.get(i)||(t.set(i,!0),n=fe(n,e.name),dA(e.name)&&QJ(r,qJ(e),e.name))}return n}function QJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var YJ=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n,r;return null!=(n=null==(r=this._map)?void 0:r.delete(e.toKey(t)))&&n}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(cu(t)||su(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=pI(t),i=Nl(r)&&r!==t?e.toKey(r):`(generated@${ZB(r)})`;return gI(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return gI(!1,n.prefix,t,n.suffix,e.toKey)}}return rN(t)?Fc(t).slice(1):Fc(t)}},ZJ=class extends YJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(ln(n,t),n.length||this.delete(e))}};function eU(e){return Z_(e)||9===e.kind||Jh(e.kind)||nN(e)}function tU(e){return!nN(e)&&eU(e)}function nU(e){return e>=65&&e<=79}function rU(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function iU(e){if(!zE(e))return;const t=bh(e.expression);return bf(t)?t:void 0}function oU(e,t,n){for(let r=t;r<e.length;r+=1){const t=e[r];if(iU(t))return n.unshift(r),!0;if(rP(t)&&oU(t.tryBlock.statements,0,n))return n.unshift(r),!0}return!1}function aU(e,t){const n=[];return oU(e,t,n),n}function sU(e,t,n){return L(e.members,(e=>function(e,t,n){return kN(e)&&(!!e.initializer||!t)&&Yv(e)===n}(e,t,n)))}function cU(e){return kN(t=e)&&Yv(t)||wN(e);var t}function lU(e){return L(e.members,cU)}function uU(e){return 172===e.kind&&void 0!==e.initializer}function _U(e){return!Qv(e)&&(Fu(e)||Eu(e))&&rN(e.name)}function dU(e){let t;if(e){const n=e.parameters,r=n.length>0&&Nv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;e<o;e++){const r=n[e+i];(t||ib(r))&&(t||(t=new Array(o)),t[e]=qc(r))}}return t}function pU(e){const t=qc(e),n=dU(Tv(e));if(te(t)||te(n))return{decorators:t,parameters:n}}function fU(e,t,n){switch(e.kind){case 177:case 178:return n?function(e,t){if(!e.body)return;const{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}=Iv(t.members,e),a=ib(n)?n:r&&ib(r)?r:void 0;if(!a||e!==a)return;const s=qc(a),c=dU(o);return te(s)||te(c)?{decorators:s,parameters:c,getDecorators:i&&qc(i),setDecorators:o&&qc(o)}:void 0}(e,t):mU(e);case 174:return mU(e);case 172:return function(e){const t=qc(e);if(te(t))return{decorators:t}}(e);default:return}}function mU(e){if(!e.body)return;const t=qc(e),n=dU(e);return te(t)||te(n)?{decorators:t,parameters:n}:void 0}function gU(e,t){for(;e;){const n=t(e);if(void 0!==n)return n;e=e.previous}}function hU(e){return{data:e}}function yU(e,t){var n,r;return cu(t)?null==(n=null==e?void 0:e.generatedIdentifiers)?void 0:n.get(p
6I(t)):null==(r=null==e?void 0:e.identifiers)?void 0:r.get(t.escapedText)}function vU(e,t,n){cu(t)?(null!=e.generatedIdentifiers||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(pI(t),n)):(null!=e.identifiers||(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function bU(e,t){return gU(e,(e=>yU(e.privateEnv,t)))}function xU(e){return!e.initializer&&nN(e.name)}function SU(e){return C(e,xU)}var kU=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kU||{});function TU(e,t,n,r,i,o){let a,s,c=e;if(Nb(e))for(a=e.right;qb(e.left)||Ub(e.left);){if(!Nb(a))return En.checkDefined(lJ(a,t,s_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:function(e,r,i,a){En.assertNode(e,o?nN:s_);const s=o?o(e,r,i):TI(n.factory.createAssignment(En.checkDefined(lJ(e,t,s_)),r),i);s.original=a,u(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return En.assertEachNode(t,Ku),e.createArrayLiteralExpression(j(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return En.assertEachNode(t,Wu),e.createObjectLiteralExpression(j(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:AU,visitor:t};
6if(a&&(a=lJ(a,t,s_),En.assert(a),nN(a)&&CU(e,a.escapedText)||wU(e)?a=FU(l,a,!1,c):i?a=FU(l,a,!0,c):by(e)&&(c=a)),NU(l,e,a,c,Nb(e)),a&&i){if(!te(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function u(e){s=fe(s,e)}}function CU(e,t){const n=OA(e);return $u(n)?function(e,t){const n=BA(e);for(const r of n)if(CU(r,t))return!0;return!1}(n,t):!!nN(n)&&n.escapedText===t}function wU(e){const t=MA(e);if(t&&yN(t)&&!Xl(t.expression))return!0;const n=OA(e);return!!n&&$u(n)&&!!d(BA(n),wU)}function DU(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],u={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=fe(s,e)},emitBindingOrAssignment:_,createArrayBindingOrAssignmentPattern:e=>function(e,t){return En.assertEachNode(t,Uu),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return En.assertEachNode(t,oE),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(oP(e)){let t=IA(e);t&&(nN(t)&&CU(e,t.escapedText)||wU(e))&&(t=FU(u,En.checkDefined(lJ(t,u.visitor,s_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(NU(u,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,_(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=Le(c);t.pendingExpressions=fe(t.pendingExpressions,n.factory.createAssignment(e,t.value)),he(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:d,name:p,value:f,location:m,original:g}of c){const e=n.factory.createVariableDeclaration(p,void 0,void 0,d?n.factory.inlineExpressions(fe(d,f)):f);e.original=g,TI(e,m),l.push(e)}return l;function _(e,t,r,i){En.assertNode(e,yu),s&&(t=n.factory.inlineExpressions(fe(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function NU(e,t,n,r,i){const o=OA(t);if(!i){const i=lJ(IA(t),e.visitor,s_);i?n?(n=function(e,t,n,r){return t=FU(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!tU(i)&&$u(o)&&(n=FU(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}
6Vu(o)?function(e,t,n,r,i){const o=BA(n),a=o.length;let s,c;1!==a&&(r=FU(e,r,!qu(t)||0!==a,i));for(let l=0;l<a;l++){const t=o[l];if(LA(t)){if(l===a-1){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const a=e.context.getEmitHelperFactory().createRestHelper(r,o,c,n);NU(e,t,a,t)}}else{const o=RA(t);if(!(e.level>=1)||98304&t.transformFlags||98304&OA(t).transformFlags||yN(o)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const a=PU(e,r,o);yN(o)&&(c=fe(c,a.argumentExpression)),NU(e,t,a,t)}else s=fe(s,lJ(t,e.visitor,zu))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):Hu(o)?function(e,t,n,r,i){const o=BA(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=FU(e,TI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&LA(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||C(o,EE))&&(r=FU(e,r,!qu(t)||0!==a,i));for(let l=0;l<a;l++){const t=o[l];if(e.level>=1)if(65536&t.transformFlags||e.hasTransformedPriorElement&&!EU(t)){e.hasTransformedPriorElement=!0;const n=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(n),c=fe(c,[n,t]),s=fe(s,e.createArrayBindingOrAssignmentElement(n))}else s=fe(s,t);else{if(EE(t))continue;if(LA(t)){if(l===a-1){const n=e.context.factory.createArraySliceCall(r,l);NU(e,t,n,t)}}else{const n=e.context.factory.createElementAccessExpression(r,l);NU(e,t,n,t)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[l,u]of c)NU(e,u,l,u)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function EU(e){const t=OA(e);if(!t||EE(t))return!0;const n=MA(e);if(n&&!iy(n))return!1;const r=IA(e);return!(r&&!tU(r))&&($u(t)?C(BA(t),EU):nN(t))}function PU(e,t,n){const{factory:r}=e.context;if(yN(n)){const r=FU(e,En.checkDefined(lJ(n.expression,e.visitor,s_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Zh(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(Fc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function FU(e,t,n,r){if(nN(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(TI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function AU(e){return e}function IU(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return fw(a).classThis=t,a}function OU(e){var t;if(!wN(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return zE(n)&&wb(n.expression,!0)&&nN(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function LU(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&te(e.members,OU)}function RU(e,t,n,r){if(LU(t))return t;const i=IU(e,n,r);t.name&&Sw(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);TI(o,t.members);const a=cP(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return fw(a).classThis=n,a}function MU(e,t,n){const r=Cc(SA(n));return(cP(r)||sP(r))&&!r.name&&Xv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function jU(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(iy(t)||rN(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(iy(t.expression)&&!nN(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function BU(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement
6(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return fw(s).assignedName=t,s}function JU(e){var t;if(!wN(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return zE(n)&&RD(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function UU(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&te(e.members,JU)}function qU(e){return!!e.name||UU(e)}function zU(e,t,n,r){if(UU(t))return t;const{factory:i}=e,o=BU(e,n,r);t.name&&Sw(o.body.statements[0],t.name);const a=N(t.members,OU)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return TI(l,t.members),fw(t=cP(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function $U(e,t,n,r){if(r&&BD(n)&&Im(n))return t;const{factory:i}=e,o=SA(t),a=NE(o)?yt(zU(e,o,n),NE):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function VU(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=jU(e,t.name,r),s=$U(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):MU(i,t.name,t.objectAssignmentInitializer),a=$U(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):MU(i,t.name,t.initializer),a=$U(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):MU(i,t.name,t.initializer),a=$U(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):MU(i,t.name,t.initializer),a=$U(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){var i;const{factory:o}=e,{assignedName:a,name:s}=jU(e,t.name,r),c=$U(e,t.initializer,a,n);return o.updatePropertyDeclaration(t,t.modifiers,s,null!=(i=t.questionToken)?i:t.exclamationToken,t.type,c)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):MU(i,t.left,t.right),a=$U(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=$U(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var WU=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(WU||{});function HU(e,t,n,r,i,o){const a=lJ(t.tag,n,s_);En.assert(a);const s=[void 0],c=[],l=[],u=t.template;if(0===o&&!Ly(u))return vJ(t,n,e);const{factory:_}=e;if(qD(u))c.push(KU(_,u)),l.push(GU(_,u,r));else{c.push(KU(_,u.head)),l.push(GU(_,u.head,r));for(const e of u.templateSpans)c.push(KU(_,e.literal)),l.push(GU(_,e.literal,r)),s.push(En.checkDefined(lJ(e.expression,n,s_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(_.createArrayLiteralExpression(c),_.createArrayLiteralExpression(l));if(aO(r)){const e=_.createUniqueName("templateObject");i(e),s[0]=_.createLogicalOr(e,_.createAssignment(e,d))}else s[0]=d;return _.createCallExpression(a,void 0,s)}function KU(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function GU(e,t,n){let r=t.rawText;if(void 0===r){En.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=rp(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),TI(e.createStringLiteral(r),t)}function XU(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistV
6ariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=BS(c),u=JS(c),_=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?ZU(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v,b,x,S;return e.onEmitNode=function(e,t,n){const r=S,i=m;nF(t)&&(m=t),2&x&&function(e){return 267===Cc(e).kind}(t)&&(S|=2),8&x&&function(e){return 266===Cc(e).kind}(t)&&(S|=8),p(e,t,n),S=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return Te(e)||e}(e);case 211:case 212:return function(e){return Ce(e)}(e)}return e}(n):ZP(n)?function(e){if(2&x){const n=e.name,r=Te(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return TI(t.createPropertyAssignment(n,i),e)}return TI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(211),e.enableSubstitution(212),function(e){return 308===e.kind?function(e){return t.createBundle(e.sourceFiles.map(k))}(e):k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=T(t,B);return Bw(n,e.readEmitHelpers()),m=void 0,n}function T(e,t){const n=y,r=v,i=b;!function(e){switch(e.kind){case 307:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(Xv(e,128))break;e.name?ie(e):En.assert(263===e.kind||Xv(e,2048))}}(e);const o=t(e);return y!==n&&(v=r),y=n,b=i,o}function C(e){return T(e,w)}function w(e){return 1&e.transformFlags?M(e):e}function D(e){return T(e,N)}function N(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(function(e){const t=Nc(e);if(t===e||NP(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 272:if(En.assertNode(t,hP),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 271:if(En.assertNode(t,gP),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(gu(e.moduleReference)||gu(t.moduleReference)))return!0;break;case 278:if(En.assertNode(t,EP),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?vJ(n,C,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=lJ(e.importClause,le,yP);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return pe(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?vJ(t,C,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||CP(e.exportClause))return e;const n=!!c.verbatimModuleSyntax,r=lJ(e.exportClause,(e=>function(e,n){return CP(e)?function(e){return t.updateNamespaceExport(e,En.checkDefined(lJ(e.name,C,nN)))}(e):function(e,n){const r=uJ(e.elements,de,FP);return n||te(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),ql);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:En.fail("Unhandled ellided statement")}}(n);default:return w(n)}}function E(e){return T(e,P)}function P(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||Xv(e,32)?M(e):e}function F(n){return r=>T(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(W(n))return t.updateConstructorDeclaration(n,void 0,fJ(n.parameters,C,e),function(n,r){const a=r&&L(r.parameters,(e=>fc(e,r)));if(!te(a))return gJ(n,C,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,C),l=aU(n.statements,c),u=H(a,G);l.length?K(s,n.statements,c,l,0,u):(he(s,u),he(s,uJ(n.statements,C,F_,c))),s=t.mergeLexicalEnvironment(s,o());const _=t.createBlock(TI(t.createNodeArray(s),n.statements),!0);return TI(_,n),pw(_,n),_}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||Xv(e,64);if(r&&(!_||!ib(e)))return;let i=Du(n)?uJ(e.modifiers,r?O:C,Iu):uJ(e.modifiers,I,Iu);return i=z(i,e,n),r?t.updatePropertyDeclaration(e,re(i,t.createModifiersFromModifierFlags(128)),En.checkDefined(lJ(e.name,C,hu)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,V(e),void 0,void 0,lJ(e.initializer,C,s_))}(n,r);case 177:return Y(n,r);case 178:return Z(n,r);case 174:return X(n,r);case 175:return vJ(n,C,e);case 240:return n;case 181:return;default:return En.failBadSyntaxKind(n)}}(r,n)))}function A(e){return t=>T(t,(t=>function(e,t){switch(e.kind){case 303:case 304:case 305:return C(e);case 177:return Y(e,t);case 178:return Z(e,t);case 174:return X(e,t);default:return En.failBadSyntaxKind(e)}}(t,e)))}function I(e){return xN(e)?void 0:C(e)}function O(e){return mu(e)?void 0:C(e)}function R(e){if(!xN(e)&&!(28895&gb(e.kind)||g&&95===e.kind))return e}function M(n){if(F_(n)&&Xv(n,128))return t.createNotEmittedStatement
6(n);switch(n.kind){case 95:case 90:return g?void 0:n;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:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){var r;const i=function(e){let t=0;te(sU(e,!0,!0))&&(t|=1);const n=Ih(e);return n&&106!==SA(n.expression).kind&&(t|=64),Fm(_,e)&&(t|=2),Pm(_,e)&&(t|=4),me(e)?t|=8:function(e){return ge(e)&&Xv(e,2048)}(e)?t|=32:ye(e)&&(t|=16),t}(n),o=l<=1&&!!(7&i);if(!function(e){return ib(e)||te(e.typeParameters)||te(e.heritageClauses,J)||te(e.members,J)}(n)&&!Fm(_,n)&&!me(n))return t.updateClassDeclaration(n,uJ(n.modifiers,R,mu),n.name,void 0,uJ(n.heritageClauses,C,XP),uJ(n.members,F(n),wu));o&&e.startLexicalEnvironment();const a=o||8&i;let s=uJ(n.modifiers,a?O:C,Iu);2&i&&(s=q(s,n));const c=a&&!n.name||4&i||1&i,u=c?null!=(r=n.name)?r:t.getGeneratedNameForNode(n):n.name,d=t.updateClassDeclaration(n,s,u,void 0,uJ(n.heritageClauses,C,XP),U(n));let p,f=lp(n);if(1&i&&(f|=64),hw(d,f),o){const r=[d],i=cx(hs(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);zT(a,i.end),hw(a,3072);
6const s=t.createReturnStatement(a);qT(s,i.pos),hw(s,3840),r.push(s),Kd(r,e.endLexicalEnvironment());const c=t.createImmediatelyInvokedArrowFunction(r);vw(c,1);const l=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,c);pw(l,n);const u=t.createVariableStatement(void 0,t.createVariableDeclarationList([l],1));pw(u,n),Nw(u,n),Sw(u,ox(n)),CA(u),p=u}else p=d;if(a){if(8&i)return[p,ve(n)];if(32&i)return[p,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&i)return[p,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return p}(n);case 231:return function(e){let n=uJ(e.modifiers,O,Iu);return Fm(_,e)&&(n=q(n,e)),t.updateClassExpression(e,n,e.name,void 0,uJ(e.heritageClauses,C,XP),U(e))}(n);case 298:return function(t){if(119!==t.token)return vJ(t,C,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,En.checkDefined(lJ(e.expression,C,t_)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,uJ(e.properties,A(e),Ru))}(n);case 176:case 172:case 174:case 177:case 178:case 175:return En.fail("Class and object literal elements must be visited 
6with their respective visitors");case 262:return function(n){if(!W(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,uJ(n.modifiers,R,mu),n.asteriskToken,n.name,void 0,fJ(n.parameters,C,e),void 0,gJ(n.body,C,e)||t.createBlock([]));if(me(n)){const e=[r];return function(e,t){e.push(ve(t))}(e,n),e}return r}(n);case 218:return function(n){if(!W(n))return t.createOmittedExpression();const r=t.updateFunctionExpression(n,uJ(n.modifiers,R,mu),n.asteriskToken,n.name,void 0,fJ(n.parameters,C,e),void 0,gJ(n.body,C,e)||t.createBlock([]));return r}(n);case 219:return function(n){const r=t.updateArrowFunction(n,uJ(n.modifiers,R,mu),void 0,fJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,gJ(n.body,C,e));return r}(n);case 169:return function(e){if(Nv(e))return;const n=t.updateParameterDeclaration(e,uJ(e.modifiers,(e=>xN(e)?C(e):void 0),Iu),e.dotDotDotToken,En.checkDefined(lJ(e.name,C,yu)),void 0,void 0,lJ(e.initializer,C,s_));return n!==e&&(Nw(n,e),TI(n,ax(e)),Sw(n,ax(e)),hw(n.name,64)),n}(n);case 217:return function(n){const r=SA(n.expression,-7);if(c_(r)||AE(r)){const e=lJ(n.expression,C,s_);return En.assert(e),t.createPartiallyEmittedExpression(e,n)}return vJ(n,C,e)}(n);case 216:case 234:return function(e){const n=lJ(e.expression,C,s_);return En.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=lJ(e.expression,C,s_);return En.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,En.checkDefined(lJ(e.expression,C,s_)),void 0,uJ(e.arguments,C,s_))}(n);case 214:return function(e){return t.updateNewExpression(e,En.checkDefined(lJ(e.expression,C,s_)),void 0,uJ(e.arguments,C,s_))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,En.checkDefined(lJ(e.tag,C,s_)),void 0,En.checkDefined(lJ(e.template,C,e_)))}(n);case 235:return function(e){const n=lJ(e.expression,C,t_);return En.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!pf(e)||XS(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=ae(n,e);a&&(4===u&&y===m||(i|=1024));const s=Se(e),l=ke(e),_=me(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(_,t.createAssignment(_,t.createObjectLiteralExpression()));if(me(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=j(e.members,ne);return Kd(a,o()),he(a,s),h=i,t.createBlock(TI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return pw(p,e),a&&(Pw(p,void 0),Iw(p,void 0)),TI(p,e),yw(p,i),n.push(p),n}(n);case 243:return function(n){if(me(n)){const e=Sx(n.declarationList);if(0===e.length)return;return TI(t.createExpressionStatement(t.inlineExpressions(j(e,ee))),n)}return vJ(n,C,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,En.checkDefined(lJ(e.name,C,yu)),void 0,void 0,lJ(e.initializer,C,s_));return e.type&&Ww(n.name,e.type),n}(n);case 267:return se(n);case 271:return pe(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,En.checkDefined(lJ(e.tagName,C,O_)),void 0,En.checkDefined(lJ(e.attributes,C,$P)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,En.checkDefined(lJ(e.tagName,C,O_)),void 0,En.checkDefined(lJ(e.attributes,C,$P)))}(n);default:return vJ(n,C,e)}}function B(n){const r=ak(c,"alwaysStrict")&&!(aO(n)&&u>=5)&&!df(n);return t.updateSourceFile(n,pJ(n.statements,D,e,0,r))}function J(e){return!!(8192&e.transformFlags)}function U(e){const n=uJ(e.members,F(e),wu);let r;const i=Tv(e),o=i&&L(i.parameters,(e=>fc(e,i)));if(o)for(const a of o){const e=t.createPropertyDeclaration(void 0,a.name,void 0,void 0,void 0);pw(e,a),r=fe(r,e)}return r?(r=he(r,n),TI(t.createNodeArray(r),e.members)):n}function q(e,n){const r=$(n,n);if(te(r)){const n=[];he(n,wn(e,uI)),he(n,L(e,xN)),he(n,r),he(n,L(Dn(e,uI),mu)),e=TI(t.createNodeArray(n),e)}return e}function z(e,n,r){if(Du(r)&&Am(_,n,r)){const i=$(n,r);if(te(i)){const n=[];he(n,L(e,xN)),he(n,i),he(n,L(e,mu)),e=TI(t.createNodeArray(n),e)}}return e}function $(e,r){if(_)return function(e,r){if(d){let i;if(function(e){const t=e.kind;return 174===t||177===t||178===t||172===t}(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=fe(i,t.createDecorator(o))}if(function(e){switch(e.kind){case 263:case 231:return void 0!==Tv(e);case 174:case 177:case 178:return!0}return!1}(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=fe(i,t.createDecorator(o))}if(function(e){return 174===e.kind}(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=fe(i,t.createDecorator(o))}return i}}(e,r)}function V(e){const n=e.name;if(yN(n)&&(!Yv(e)&&b||ib(e)&&_)){const e=lJ(n.expression,C,s_);if(En.assert(e),!tU(Bl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return En.checkDefined(lJ(n,C,hu))}function W(e){return!Ud(e.body)}function K(e,n,r,i,o,a){const s=i[o],c=n[s];if(he(e,uJ(n,C,F_,r,s-r)),rP(c)){const n=[];K(n,c.tryBlock.statements,0,i,o+1,a),TI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement
6(c,t.updateBlock(c.tryBlock,n),lJ(c.catchClause,C,QP),lJ(c.finallyBlock,C,JE)))}else he(e,uJ(n,C,F_,s,1)),he(e,a);he(e,uJ(n,C,F_,s+1))}function G(e){const n=e.name;if(!nN(n))return;const r=HT(TI(t.cloneNode(n),n),n.parent);hw(r,3168);const i=HT(TI(t.cloneNode(n),n),n.parent);return hw(i,3072),CA(gw(TI(pw(t.createExpressionStatement(t.createAssignment(TI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),ix(e,-1))))}function X(n,r){if(!(1&n.transformFlags))return n;if(!W(n))return;let i=Du(r)?uJ(n.modifiers,C,Iu):uJ(n.modifiers,I,Iu);return i=z(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,V(n),void 0,void 0,fJ(n.parameters,C,e),void 0,gJ(n.body,C,e))}function Q(e){return!(Ud(e.body)&&Xv(e,64))}function Y(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=Du(r)?uJ(n.modifiers,C,Iu):uJ(n.modifiers,I,Iu);return i=z(i,n,r),t.updateGetAccessorDeclaration(n,i,V(n),fJ(n.parameters,C,e),void 0,gJ(n.body,C,e)||t.createBlock([]))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=Du(r)?uJ(n.modifiers,C,Iu):uJ(n.modifiers,I,Iu);return i=z(i,n,r),t.updateSetAccessorDeclaration(n,i,V(n),fJ(n.parameters,C,e),gJ(n.body,C,e)||t.createBlock([]))}function ee(n){const r=n.name;return Bu(r)?TU(n,C,e,0,!1,be):TI(t.createAssignment(xe(r),En.checkDefined(lJ(n.initializer,C,s_))),n)}function ne(n){const r=function(e,n){const r=e.name;return rN(r)?t.createIdentifier(""):yN(r)?r.expression:nN(r)?t.createStringLiteral(Fc(r)):t.cloneNode(r)}(n),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?En.checkDefined(lJ(n.initializer,C,s_)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return TI(t.createExpressionStatement(TI(c,n)),n)}function ie(e){v||(v=new Map);const t=oe(e);v.has(t)||v.set(t,e)}function oe(e){return En.assertNode(e.name,nN),e.name.escapedText}function ae(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=307===y.kind?0:1,o=t.createVariableStatement(uJ(n.modifiers,R,mu),t.createVariableDeclarationList([r],i));return pw(r,n),Pw(r,void 0),Iw(r,void 0),pw(o,n),ie(n),!!function(e){if(v){const t=oe(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?Sw(o.declarationList,n):Sw(o,n),Nw(o,n),yw(o,2048),e.push(o),!0)}function se(n){if(!function(e){const t=Nc(e,dP);return!t||tJ(t,XS(c))}(n))return t.createNotEmittedStatement(n);En.assertNode(n.name,nN,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const i=[];let a=4;const s=ae(i,n);s&&(4===u&&y===m||(a|=1024));const l=Se(n),_=ke(n),d=me(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(me(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,u;if(r(),e.body)if(268===e.body.kind)T(e.body,(e=>he(c,uJ(e.statements,E,F_)))),l=e.body.statements,u=e.body;else{const t=se(e.body);t&&(pt(t)?he(c,t):c.push(t)),l=ix(ce(e).body.statements,-1)}Kd(c,o()),h=i,g=a,v=s;const _=t.createBlock(TI(t.createNodeArray(c),l),!0);return TI(_,u),e.body&&268===e.body.kind||hw(_,3072|lp(_)),_}(n,_)),void 0,[p]));return pw(f,n),s&&(Pw(f,void 0),Iw(f,void 0)),TI(f,n),yw(f,a),i.push(f),i}function ce(e){if(267===e.body.kind)return ce(e.body)||e.body}function le(e){En.assert(!e.isTypeOnly);const n=we(e)?e.name:void 0,r=lJ(e.namedBindings,ue,S_);return n||r?t.updateImportClause(e,!1,n,r):void 0}function ue(e){if(274===e.kind)return we(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=uJ(e.elements,_e,DP);return n||te(r)?t.updateNamedImports(e,r):void 0}}function _e(e){return!e.isTypeOnly&&we(e)?e:void 0}function de(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function pe(n){if(n.isTypeOnly)return;if(Bm(n))return we(n)?vJ(n,C,e):void 0;if(!function(e){return we(e)||!aO(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=sA(t,n.moduleReference);
6return hw(r,7168),ye(n)||!me(n)?pw(TI(t.createVariableStatement(uJ(n.modifiers,R,mu),t.createVariableDeclarationList([pw(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):pw((i=n.name,o=r,a=n,TI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function me(e){return void 0!==g&&Xv(e,32)}function ge(e){return void 0===g&&Xv(e,32)}function ye(e){return ge(e)&&!Xv(e,2048)}function ve(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));Sw(n,nx(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return Sw(r,nx(-1,e.end)),r}function be(e,n,r){return TI(t.createAssignment(xe(e),n),r)}function xe(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Se(e){const n=t.getGeneratedNameForNode(e);return Sw(n,e.name),n}function ke(e){return t.getGeneratedNameForNode(e)}function Te(e){if(x&S&&!su(e)&&!dA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&307!==n.kind&&(2&S&&267===n.kind||8&S&&266===n.kind))return TI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function Ce(e){const n=function(e){if(!zS(c))return cE(e)||lE(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){Mw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){const t=Cc(e,Hx);Ow(i,3,` ${r=ap(t),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}function we(e){return c.verbatimModuleSyntax||Wm(e)||s.isReferencedAliasDeclaration(e)}}function QU(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),u=BS(l),_=ek(l),d=!!l.experimentalDecorators,p=!_,f=_&&u<9,m=p||f,g=u<9,h=u<99?-1:_?0:3,y=u<9,v=y&&u>=2,b=m||g||-1===h,x=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=x(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&k&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return Sw(n,e),Nw(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&k&&(null==N?void 0:N.data)&&!F.has(e)){const{facts:n,classConstructor:r,classThis:i}=N.data,o=O&&null!=i?i:r;if(o)return TI(pw(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=Cc(t),i=P.get(r);if(i){const o=N,a=R;return N=i,R=O,O=!(wN(r)&&32&up(r)),S(e,t,n),O=R,R=a,void(N=o)}switch(t.kind){case 218:if(gE(r)||524288&lp(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=N,i=R;return N=void 0,R=O,O=!1,S(e,t,n),O=R,R=i,void(N=r)}case 167:{const r=N,i=O;return N=null==N?void 0:N.previous,O=R,S(e,t,n),O=i,void(N=r)}}S(e,t,n)};let k,T,C,D,N,E=!1;const P=new Map,F=new Set;let A,I,O=!1,R=!1;return VJ(e,(function(t){if(t.isDeclarationFile)return t;if(N=void 0,E=!!(32&up(t)),!b&&!E)return t;const n=vJ(t,B,e);return Bw(n,e.readEmitHelpers()),n}));function M(e){return 129===e.kind?ne()?void 0:e:ht(e,mu)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 129:return En.fail("Use `modifierVisitor` instead.");case 263:return function(e){return ye(e,ve)}(n);case 231:return function(e){return ye(e,be)}(n);case 175:case 172:return En.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){return my(t,ue)&&(t=VU(e,t)),vJ(t,B,e)}(n);case 243:return function(t){const n=D;D=[];const r=vJ(t,B,e),i=te(D)?[r,...D]:r;return D=n,i}(n);case 277:return function(t){return my(t,ue)&&(t=VU(e,t,!0,t.isExportEquals?"":"default")),vJ(t,B,e)}(n);case 81:return function(e){return g?F_(e.parent)?e:pw(t.createIdentifier(""),e):e}(n);case 211:return function(n){if(rN(n.name)){const e=je(n.name);if(e)return TI(pw(oe(e,n.expression),n),n)}if(v&&I&&xm(n)&&nN(n.name)&&YU(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:r,facts:i}=N.data;if(1&i)return Ee(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return pw(i,n.expression),TI(i,n.expression),i}}return vJ(n,B,e)}(n);case 212:return function(n){if(v&&I&&xm(n)&&YU(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:r,facts:i}=N.data;if(1&i)return Ee(n);if(e&&r){const i=t.createReflectGetCall(r,lJ(n.argumentExpression,B,s_),e);return pw(i,n.expression),TI(i,n.expression),i}}return vJ(n,B,e)}(n);case 224:case 225:return se(n,!1);case 226:return _e(n,!1);case 217:return pe(n,!1);case 213:return function(n){var i;if(_u(n.expression)&&je(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,u);return Al(n)?t.updateCallChain(n,t.createPropertyAccessChain(lJ(i,B,s_),n.questionDotToken,"call"),void 0,void 0,[lJ(e,B,s_),...uJ(n.arguments,B,s_)]):t.updateCallExpression(n,t.createPropertyAccessExpression(lJ(i,B,s_),"call"),void 0,[lJ(e,B,s_),...uJ(n.arguments,B,s_)])}if(v&&I&&xm(n.expression)&&YU(I)&&(null==(i=null==N?void 0:N.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(lJ(n.expression,B,s_),N.data.classConstructor,uJ(n.arguments,B,s_));return pw(e,n),TI(e,n),e}return vJ(n,B,e)}(n);
6case 244:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,U,s_))}(n);case 215:return function(n){var i;if(_u(n.tag)&&je(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,u);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(lJ(i,B,s_),"bind"),void 0,[lJ(e,B,s_)]),void 0,lJ(n.template,B,e_))}if(v&&I&&xm(n.tag)&&YU(I)&&(null==(i=null==N?void 0:N.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(lJ(n.tag,B,s_),N.data.classConstructor,[]);return pw(e,n),TI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,lJ(n.template,B,e_))}return vJ(n,B,e)}(n);case 248:return function(n){return t.updateForStatement(n,lJ(n.initializer,U,y_),lJ(n.condition,B,s_),lJ(n.incrementor,U,s_),hJ(n.statement,B,e))}(n);case 110:return function(e){var t;if(y&&I&&wN(I)&&(null==N?void 0:N.data)){const{classThis:n,classConstructor:r}=N.data;return null!=(t=null!=n?n:r)?t:e}return e}(n);case 262:case 218:return Q(void 0,J,n);case 176:case 174:case 177:case 178:return Q(n,J,n);default:return J(n)}}function J(t){return vJ(t,B,e)}function U(e){switch(e.kind){case 224:case 225:return se(e,!0);case 226:return _e(e,!0);case 355:return function(e,n){const r=yJ(e.elements,U);return t.updateCommaListExpression(e,r)}(e);case 217:return pe(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 298:return vJ(n,q,e);case 233:return function(n){var i;if(4&((null==(i=null==N?void 0:N.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return Pe().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,lJ(n.expression,B,s_)),void 0)}return vJ(n,B,e)}(n);default:return B(n)}}function z(e){switch(e.kind){case 210:case 209:return ze(e);default:return B(e)}}function $(e){switch(e.kind){case 176:return Q(e,K,e);case 177:case 178:case 174:return Q(e,X,e);case 172:return Q(e,re,e);case 175:return Q(e,xe,e);case 167:return H(e);case 240:return e;default:return Iu(e)?M(e):B(e)}}function V(e){return 167===e.kind?H(e):B(e)}function W(e){switch(e.kind){case 172:return ee(e);case 177:case 178:return $(e);default:En.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function H(e){const n=lJ(e.expression,B,s_);return t.updateComputedPropertyName(e,function(e){return te(C)&&(fE(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inline
6Expressions(C)),C=void 0),e}(n))}function K(e){return A?ke(e,A):J(e)}function G(e){return!!g||!!(Yv(e)&&32&up(e))}function X(n){if(En.assert(!ib(n)),!uu(n)||!G(n))return vJ(n,$,e);const r=je(n.name);if(En.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){En.assert(rN(e.name));const t=je(e.name);if(En.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if($_(e))return t.getterName;if(z_(e))return t.setterName}}(n);i&&Ae().push(t.createAssignment(i,t.createFunctionExpression(L(n.modifiers,(e=>mu(e)&&!uN(e)&&!pN(e))),n.asteriskToken,i,void 0,fJ(n.parameters,B,e),void 0,gJ(n.body,B,e))))}function Q(e,t,n){if(e!==I){const r=I;I=e;const i=t(n);return I=r,i}return t(n)}function Y(e){var n;const i=Dw(e),o=xw(e),a=e.name;let s=a,c=a;if(yN(a)&&!tU(a.expression)){const e=bI(a);if(e)s=t.updateComputedPropertyName(a,lJ(a.expression,B,s_)),c=t.updateComputedPropertyName(a,e.left);else{const e=t.createTempVariable(r);Sw(e,a.expression);const n=lJ(a.expression,B,s_),i=t.createAssignment(e,n);Sw(i,a.expression),s=t.updateComputedPropertyName(a,i),c=t.updateComputedPropertyName(a,e)}}const l=uJ(e.modifiers,M,mu),u=hI(t,e,l,e.initializer);pw(u,e),hw(u,3072),Sw(u,o);const _=Qv(e)&&null!=(n=function(){var e,t;const n=Pe();return null!=(t=null!=(e=n.classThis)?e:n.classConstructor)?t:null==A?void 0:A.name}())?n:t.createThis(),d=yI(t,e,l,s,_);pw(d,e),Nw(d,i),Sw(d,o);const p=t.createModifiersFromModifierFlags(mb(l)),f=vI(t,e,p,c,_);return pw(f,e),hw(f,3072),Sw(f,o),_J([u,d,f],W,wu)}function Z(e){if(!m||Eu(e))return t.updatePropertyDeclaration(e,uJ(e.modifiers,M,mu),lJ(e.name,V,hu),void 0,void 0,lJ(e.initializer,B,s_));{const n=function(e,n){if(yN(e)){const i=bI(e),o=lJ(e.expression,B,s_),a=Bl(o),l=tU(a);if(!(i||wb(a)&&su(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||nN(a)?void 0:o}}(e.name,!!e.initializer||_);if(n&&Ae().push(...SI(n)),Qv(e)&&!g){const n=we(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return pw(r,e),Nw(r,e),Nw(n,{pos:-1,end:-1}),Pw(n,void 0),Iw(n,void 0),r}}}}function ee(n){return En.assert(!ib(n),"Decorators should already have been transformed and elided."),uu(n)?function(n){if(!G(n))return p&&!Qv(n)&&(null==N?void 0:N.data)&&16&N.data.facts?t.updatePropertyDeclaration(n,uJ(n.modifiers,B,Iu),n.name,void 0,void 0,void 0):(my(n,ue)&&(n=VU(e,n)),t.updatePropertyDeclaration(n,uJ(n.modifiers,M,mu),lJ(n.name,V,hu),void 0,void 0,lJ(n.initializer,B,s_)));{const e=je(n.name);if(En.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=we(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):Z(n)}function ne(){return-1===h||3===h&&!!(null==N?void 0:N.data)&&!!(16&N.data.facts)}function re(e){return Eu(e)&&(ne()||Yv(e)&&32&up(e))?Y(e):ee(e)}function ie(e){if(I&&Yv(I)&&Nu(I)&&Eu(Cc(I))){const t=SA(e);110===t.kind&&F.add(t)}}function oe(e,t){return ie(t=lJ(t,B,s_)),ae(e,t)}function ae(e,t){switch(Nw(t,ix(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return En.fail("Access helpers should not be created for untransformed private elements");default:En.assertNever(e,"Unknown private element type")}}function se(n,i){if(46===n.operator||47===n.operator){const e=bh(n.operand);if(_u(e)){let o;if(o=je(e.name)){const a=lJ(e.expression,B,s_);ie(a);const{readExpression:s,initializeExpression:c}=ce(a);let l=oe(o,s);const u=xE(n)||i?void 0:t.createTempVariable(r);return l=uA(t,n,l,r,u),l=me(o,c||s,l,64),pw(l,n),TI(l,n),u&&(l=t.createComma(l,u),TI(l,n)),l}}else if(v&&I&&xm(e)&&YU(I)&&(null==N?void 0:N.data)){const{classConstructor:o,superClassReference:a,facts:s}=N.data;if(1&s){const r=Ee(e);return xE(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(cE(e)?nN(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):tU(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,lJ(e.argumentExpression,B,s_))),s&&c){let l=t.createReflectGetCall(a,c,o);TI(l,e);const u=i?void 0:t.createTempVariable(r);return l=uA(t,n,l,r,u),l=t.createReflectSetCall(a,s,l,o),pw(l,n),TI(l,n),u&&(l=t.createComma(l,u),TI(l,n)),l}}}}return vJ(n,B,e)}function ce(e){const n=by(e)?e:t.cloneNode(e);if(110===e.kind&&F.has(e)&&F.add(n),tU(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function le(e){if(N&&P.set(Cc(e),N),g){if(OU(e)){const t=lJ(e.body.statements[0].expression,B,s_);if(wb(t,!0)&&t.left===t.right)return;return t}if(JU(e))return lJ(e.body.statements[0].expression,B,s_);o();let n=Q(e,(e=>uJ(e,B,F_)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return pw(bh(r.expression),e),yw(bh(r.expression),4),pw(r,e),TI(r,e),r}}function ue(e){if(NE(e)&&!e.name){const t=lU(e);return!te(t,JU)&&((g||!!up(e))&&te(t,(e=>wN(e)||uu(e)||m&&uU(e))))}return!1}function _e(i,o){if(Nb(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,lJ(i.left,z,s_),i.operatorToken,lJ(i.right,B,s_));const n=te(C)?t.inlineExpressions(de([...C,i])):i;return C=e,n}if(wb(i)){my(i,ue)&&(i=VU(e,i),En.assertNode(i,wb));const n=SA(i.left,9);if(_u(n)){const e=je(n.name);if(e)return TI(pw(me(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&I&&xm(i.left)&&YU(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:n,facts:a}=N.data;if(1&a)return t.updateBinaryExpression(i,Ee(i.left),i.operatorToken,lJ(i.right,B,s_));if(e&&n){let a=lE(i.left)?lJ(i.left.argumentExpression,B,s_):nN(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=lJ(i.right,B,s_);if(nU(i.operatorToken.kind)){let o=a;tU(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);pw(c,i.left),TI(c,i.left),s=t.createBinaryExpression(c,rU(i.operatorToken.kind),s),TI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),TI(c,i)),s=t.createReflectSetCall(n,a,s,e),pw(s,i),TI(s,i),c&&(s=t.createComma(s,c),TI(s,i)),s}}}}return function(e){return rN(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=je(t.left);if(r){const e=lJ(t.right,B,s_);return pw(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return vJ(t,B,e)}(i):vJ(i,B,e)}function pe(e,n){const r=n?U:B,i=lJ(e.expression,r,s_);return t.updateParenthesizedExpression(e,i)}function me(e,r,i,o){if(r=lJ(r,B,s_),i=lJ(i,B,s_),ie(r),nU(o)){const{readExpression:n,initializeExpression:a}=ce(r);r=a||n,i=t.createBinaryExpression(ae(e,n),rU(o),i)}switch(Nw(r,ix(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return En.fail("Access helpers should not be created for untransformed private elements");default:En.assertNever(e,"Unknown private element type")}}function ge(e){return L(e.members,_U)}function ye(n,r){var i;const o=A,a=C,s=N;A=n,C=void 0,N={previous:N,data:void 0};const l=32&up(n);if(g||l){const e=Jc(n);if(e&&nN(e))Fe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&BD(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&nN(n.emitNode.assignedName.textSourceNode))Fe().data.className=n.emitNode.assignedName.textSourceNode;else if(Ls(n.emitNode.assignedName.text,u)){const e=t.createIdentifier(n.emitNode.assignedName.text);Fe().data.className=e}}if(g){const e=ge(n);
6te(e)&&(Fe().data.weakSetName=Re("instances",e[0].name))}const _=function(e){var t;let n=0;const r=Cc(e);Du(r)&&Fm(d,r)&&(n|=1),g&&(LU(e)||UU(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const l of e.members)Qv(l)?(l.name&&(rN(l.name)||Eu(l))&&g?n|=2:!Eu(l)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(kN(l)||wN(l))&&(y&&16384&l.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&l.transformFlags&&(1&n||(n|=6)))):eb(Cc(l))||(Eu(l)?(s=!0,a||(a=uu(l))):uu(l)?(a=!0,c.hasNodeCheckFlag(l,262144)&&(n|=2)):kN(l)&&(i=!0,o||(o=!!l.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);_&&(Pe().facts=_),8&_&&(2&k||(k|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167)));const m=r(n,_);return N=null==N?void 0:N.previous,En.assert(N===s),A=o,C=a,m}function ve(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))Pe().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);Pe().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(Pe().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=Xv(e,32),u=Xv(e,2048);let _=uJ(e.modifiers,M,mu);const d=uJ(e.heritageClauses,q,XP),{members:f,prologue:m}=Se(e),h=[];if(a&&Ae().unshift(a),te(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&up(e)){const n=lU(e);te(n)&&Ce(h,n,t.getInternalName(e))}h.length>0&&l&&u&&(_=uJ(_,(e=>uI(e)?void 0:e),mu),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=Pe().classConstructor;s&&y&&(Ne(),T[qJ(e)]=y);const v=t.updateClassDeclaration(e,_,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function be(e,n){var i,o,a,l;const u=!!(1&n),_=lU(e),d=c.hasNodeCheckFlag(e,262144),p=c.hasNodeCheckFlag(e,32768);let f;function h(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return Pe().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(p?s:r,!0);return Pe().classConstructor=t.cloneNode(i),i}(null==(o=e.emitNode)?void 0:o.classThis)&&(Pe().classThis=e.emitNode.classThis),2&n&&(null!=f||(f=h()));const y=uJ(e.modifiers,M,mu),v=uJ(e.heritageClauses,q,XP),{members:b,prologue:x}=Se(e),S=t.updateClassExpression(e,y,e.name,void 0,v,b),k=[];if(x&&k.push(x),(g||32&up(e))&&te(_,(e=>wN(e)||uu(e)||m&&uU(e)))||te(C))if(u)En.assertIsDefined(D,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),te(C)&&he(D,j(C,t.createExpressionStatement)),te(_)&&Ce(D,_,null!=(i=null==(a=e.emitNode)?void 0:a.classThis)?i:t.getInternalName(e)),f?k.push(t.createAssignment(f,S)):g&&(null==(l=e.emitNode)?void 0:l.classThis)?k.push(t.createAssignment(e.emitNode.classThis,S)):k.push(S);else{if(null!=f||(f=h()),d){Ne();const n=t.cloneNode(f);n.emitNode.autoGenerate.flags&=-9,T[qJ(e)]=n}k.push(t.createAssignment(f,S)),he(k,C),he(k,function(e,t){const n=[];for(const r of e){const e=wN(r)?Q(r,le,r):Q(r,(()=>De(r,t)),void 0);e&&(CA(e),pw(e,r),yw(e,3072&lp(r)),Sw(e,ax(r)),Nw(e,r),n.push(e))}return n}
6(_,f)),k.push(t.cloneNode(f))}else k.push(S);return k.length>1&&(yw(S,131072),k.forEach(CA)),t.inlineExpressions(k)}function xe(t){if(!g)return vJ(t,B,e)}function Se(e){const n=!!(32&up(e));if(g||E){for(const t of e.members)uu(t)&&(G(t)?Le(t,t.name,Ie):vU(Fe(),t.name,{kind:"untransformed"}));if(g&&te(ge(e))&&function(){const{weakSetName:e}=Fe().data;En.assert(e,"weakSetName should be set in private identifier environment"),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ne())for(const r of e.members)if(Eu(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&Yv(r)?Le(r,e,Oe):vU(Fe(),e,{kind:"untransformed"})}}let i,o,a,s=uJ(e.members,$,wu);if(te(s,DN)||(i=ke(void 0,e)),!g&&te(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=w(s,OU),o=w(s,JU);n=fe(n,r),n=fe(n,o),n=fe(n,i),n=fe(n,a),n=he(n,r||o?L(s,(e=>e!==r&&e!==o)):s),s=TI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function ke(n,r){if(n=lJ(n,B,DN),!((null==N?void 0:N.data)&&16&N.data.facts))return n;const o=Ih(r),s=!(!o||106===SA(o.expression).kind),c=fJ(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=sU(n,!1,!1);let l=c;_||(l=L(l,(e=>!!e.initializer||rN(e.name)||nb(e))));const u=ge(n),d=te(l)||te(u);if(!r&&!d)return gJ(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!te(n))return;const{weakSetName:i}=Fe().data;En.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,u,y),r){const e=L(c,(e=>fc(Cc(e),r))),t=L(l,(e=>!fc(Cc(e),r)));Ce(h,e,y),Ce(h,t,y)}else Ce(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=aU(r.body.statements,f);if(e.length)Te(m,r.body.statements,f,e,0,h,r);else{for(;f<r.body.statements.length&&fc(Cc(r.body.statements[f]),r);)f++;he(m,h),he(m,uJ(r.body.statements,B,F_,f))}}else p&&m.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),he(m,h);if(m=t.mergeLexicalEnvironment(m,i()),0===m.length&&!r)return;const v=(null==r?void 0:r.body)&&r.body.statements.length>=m.length&&null!=(s=r.body.multiLine)?s:m.length>0;return TI(t.createBlock(TI(t.createNodeArray(m),r?r.body.statements:n.members),v),r?r.body:void 0)}(r,n,s);return l?n?(En.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):CA(pw(TI(t.createConstructorDeclaration(void 0,null!=c?c:[],l),n||r),n)):n}function Te(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(he(e,uJ(n,B,F_,r,c-r)),r=c+1,rP(l)){const n=[];Te(n,l.tryBlock.statements,0,i,o+1,a,s),TI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),lJ(l.catchClause,B,QP),lJ(l.finallyBlock,B,JE)))}else{for(he(e,uJ(n,B,F_,c,1));r<n.length&&fc(Cc(n[r]),s);)r++;he(e,a)}he(e,uJ(n,B,F_,r))}function Ce(e,t,n){for(const r of t){if(Qv(r)&&!g)continue;const t=we(r,n);t&&e.push(t)}}function we(e,n){const r=wN(e)?Q(e,le,e):De(e,n);if(!r)return;const i=t.createExpressionStatement(r);pw(i,e),yw(i,3072&lp(e)),Nw(i,e);const o=Cc(e);return bN(o)?(Sw(i,o),gw(i)):Sw(i,ax(e)),Pw(r,void 0),Iw(r,void 0),nb(o)&&yw(i,3072),i}function De(n,r){var i;const o=I,a=function(n,r){const i=!_;my(n,ue)&&(n=VU(e,n));const o=nb(n)?t.getGeneratedPrivateNameForNode(n.name):yN(n.name)&&!tU(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;if(Yv(n)&&(I=n),rN(o)&&G(n)){const e=je(o);if(e)return"f"===e.kind?e.isStatic?function(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}(t,e.variableName,lJ(n.initializer,B,s_)):function(e,t,n,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"set"),void 0,[t,n||e.createVoidZero()])}(t,r,lJ(n.initializer,B,s_),e.brandCheckIdentifier):void 0;En.fail("Undeclared private name for property declaration.")}if((rN(o)||Yv(n))&&!n.initializer)return;const a=Cc(n);if(Xv(a,64))return;let s=lJ(n.initializer,B,s_);if(fc(a,a.parent)&&nN(o)){const e=t.cloneNode(o);s?(fE(s)&&hA(s.expression)&&RD(s.expression.left,"___runInitializer
6s")&&vE(s.expression.right)&&MD(s.expression.right.expression)&&(s=s.expression.left),s=t.inlineExpressions([s,e])):s=e,hw(o,3168),Sw(e,a.name),hw(e,3072)}else null!=s||(s=t.createVoidZero());if(i||rN(o)){const e=ZF(t,r,o,o);return yw(e,1024),t.createAssignment(e,s)}{const e=yN(o)?o.expression:nN(o)?t.createStringLiteral(Pc(o.escapedText)):o,n=t.createPropertyDescriptor({value:s,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,e,n)}}(n,r);return a&&Yv(n)&&(null==(i=null==N?void 0:N.data)?void 0:i.facts)&&(pw(a,n),yw(a,4),Sw(a,xw(n.name)),P.set(Cc(n),N)),I=o,a}function Ne(){1&k||(k|=1,e.enableSubstitution(80),T=[])}function Ee(e){return cE(e)?t.updatePropertyAccessExpression(e,t.createVoidZero(),e.name):t.updateElementAccessExpression(e,t.createVoidZero(),lJ(e.argumentExpression,B,s_))}function Pe(){var e;return En.assert(N),null!=(e=N.data)?e:N.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Fe(){var e;return En.assert(N),null!=(e=N.privateEnv)?e:N.privateEnv=hU({className:void 0,weakSetName:void 0})}function Ae(){return null!=C?C:C=[]}function Ie(e,t,n,r,i,o,a){Eu(e)?function(e,t,n,r,i,o,a){var s;const c=Me(t,"_get"),l=Me(t,"_set"),u=i?En.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):En.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");vU(r,t,{kind:"a",getterName:c,setterName:l,brandCheckIdentifier:u,isStatic:i,isValid:o})}(0,t,n,r,i,o):kN(e)?Oe(0,t,n,r,i,o):CN(e)?function(e,t,n,r,i,o,a){var s;const c=Me(t),l=i?En.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):En.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");vU(r,t,{kind:"m",methodName:c,brandCheckIdentifier:l,isStatic:i,isValid:o})}(0,t,n,r,i,o):NN(e)?function(e,t,n,r,i,o,a){var s;const c=Me(t,"_get"),l=i?En.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):En.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.getterName?vU(r,t,{kind:"a",getterName:c,setterName:void 0,brandCheckIdentifier:l,isStatic:i,isValid:o}):a.getterName=c}(0,t,n,r,i,o,a):EN(e)&&function(e,t,n,r,i,o,a){var s;const c=Me(t,"_set"),l=i?En.checkDefined(null!=(s=n.classThis)?s:n.classConstructor,"classConstructor should be set in private identifier environment"):En.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.setterName?vU(r,t,{kind:"a",getterName:void 0,setterName:c,brandCheckIdentifier:l,isStatic:i,isValid:o}):a.setterName=c}(0,t,n,r,i,o,a)}function Oe(e,n,r,i,o,a,s){var c;if(o)vU(i,n,{kind:"f",isStatic:!0,brandCheckIdentifier:En.checkDefined(null!=(c=r.classThis)?c:r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Me(n),isValid:a});else{const e=Me(n);vU(i,n,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:a}),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Le(e,t,n){const r=Pe(),i=Fe(),o=yU(i,t),a=Yv(e),s=!function(e){return!cu(e)&&"#constructor"===e.escapedText}(t)&&void 0===o;n(e,t,r,i,a,s,o)}function Re(e,n,i){const{className:o}=Fe().data,a=o?{prefix:"_",node:o,suffix:"_"}:"_",l="object"==typeof e?t.getGeneratedNameForNode(e,24,a,i):"string"==typeof e?t.createUniqueName(e,16,a,i):t.createTempVariable(void 0,!0,a,i);return c.hasNodeCheckFlag(n,32768)?s(l):r(l),l}function Me(e,t){var n;const r=Wp(e);return Re(null!=(n=null==r?void 0:r.substring(1))?n:e,e,t)}function je(e){const t=bU(N,e);return"untransformed"===(null==t?void 0:t.kind)?void 0:t}function Be(n){if(sE(n)||aE(n))return ze(n);if(_u(n))return function(n){const i=t.getGeneratedNameForNode(n),o=je(n.name);if(!o)return vJ(n,B,e);let a=n.expression;return(Sm(n)||xm(n)||!eU(n.expression))&&(a=t.createTempVariable(r,!0),Ae().push(t.createBinaryExpression(a,64,lJ(n.expression,B,s_)))),t.createAssignmentTargetWrapper(i,me(
6o,a,i,64))}(n);if(v&&I&&xm(n)&&YU(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:r,facts:i}=N.data;if(1&i)return Ee(n);if(e&&r){const i=lE(n)?lJ(n.argumentExpression,B,s_):nN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(i){const n=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(n,t.createReflectSetCall(r,i,n,e))}}}return vJ(n,B,e)}function Je(n){if(my(n,ue)&&(n=VU(e,n)),wb(n,!0)){const e=Be(n.left),r=lJ(n.right,B,s_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}return Be(n)}function Ue(n){if(Ku(n)){if(DE(n))return function(n){if(t_(n.expression)){const e=Be(n.expression);return t.updateSpreadElement(n,e)}return vJ(n,B,e)}(n);if(!EE(n))return Je(n)}return vJ(n,B,e)}function qe(n){return En.assertNode(n,Wu),eF(n)?function(n){if(t_(n.expression)){const e=Be(n.expression);return t.updateSpreadAssignment(n,e)}return vJ(n,B,e)}(n):ZP(n)?function(t){return my(t,ue)&&(t=VU(e,t)),vJ(t,B,e)}(n):YP(n)?function(n){const r=lJ(n.name,B,hu);if(wb(n.initializer,!0)){const e=Je(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(t_(n.initializer)){const e=Be(n.initializer);return t.updatePropertyAssignment(n,r,e)}return vJ(n,B,e)}(n):vJ(n,B,e)}function ze(e){return aE(e)?t.updateArrayLiteralExpression(e,uJ(e.elements,Ue,s_)):t.updateObjectLiteralExpression(e,uJ(e.properties,qe,Ru))}}function YU(e){return wN(e)||function(e){return kN(e)&&Yv(e)}(e)}function ZU(e){const{factory:t,hoistVariableDeclaration:n}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=BS(i),a=ak(i,"strictNullChecks");let s,c;return{serializeTypeNode:(e,t)=>l(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,u,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,_,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function u(e,n){switch(e.kind){case 172:case 169:return p(e.type);case 178:case 177:return p(function(e,t){const n=Iv(t.members,e);return n.setAccessor&&wv(n.setAccessor)||n.getAccessor&&Rv(n.getAccessor)}(e,n));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function _(e,n){const r=Du(e)?Tv(e):vu(e)&&qd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=Iv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;r<t;r++){const t=e[r];0===r&&nN(t.name)&&"this"===t.name.escapedText||(t.dotDotDotToken?i.push(p(qf(t.type))):i.push(u(t,n)))}}return t.createArrayLiteralExpression(i)}function d(e){return vu(e)&&e.type?p(e.type):Yh(e)?t.createIdentifier("Promise"):t.createVoidZero()}function p(e){if(void 0===e)return t.createIdentifier("Object");switch((e=vh(e)).kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return e.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return f(e.literal);case 150:return t.createIdentifier("Number");case 163:return b("BigInt",7);case 155:return b("Symbol",2);case 183:return function(e){const i=r.getTypeReferenceSerializationKind(e.typeName,null!=c?c:s);switch(i){case 0:if(wc(e,(e=>e.parent&&WN(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return En.assertNever(i)}}(e);case 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return p(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return p(e.type);default:return En.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return En.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return En.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=vh(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");
6if(!a&&(ZN(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(nN(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return null!=r?r:t.createVoidZero()}function g(e,t){return su(e)?su(t):nN(e)?nN(t)&&e.escapedText===t.escapedText:cE(e)?cE(t)&&g(e.expression,t.expression)&&g(e.name,t.name):vE(e)?vE(t)&&MD(e.expression)&&"0"===e.expression.text&&MD(t.expression)&&"0"===t.expression.text:BD(e)?BD(t)&&e.text===t.text:yE(e)?yE(t)&&g(e.expression,t.expression):fE(e)?fE(t)&&g(e.expression,t.expression):TE(e)?TE(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!kE(e)&&kE(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=HT(TI(NI.cloneNode(e),e),e.parent);return n.original=void 0,HT(n,Nc(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return o<n?function(e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(e),"function"),void 0,t.createIdentifier(e),void 0,t.createIdentifier("Object"))}(e):t.createIdentifier(e)}}function eq(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),a=BS(o),s=e.onSubstituteNode;let c;return e.onSubstituteNode=function(e,n){return n=s(e,n),1===e?function(e){return 80===e.kind?function(e){var n;return null!=(n=function(e){if(c&&i.hasNodeCheckFlag(e,536870912)){const n=i.getReferencedValueDeclaration(e);if(n){const r=c[n.id];if(r){const n=t.cloneNode(r);return Sw(n,e),Nw(n,e),n}}}}(e))?n:e}(e):e}(n):n},VJ(e,(function(t){const n=vJ(t,u,e);return Bw(n,e.readEmitHelpers()),n}));function l(e){return xN(e)?void 0:e}function u(o){if(!(33554432&o.transformFlags))return o;switch(o.kind){case 170:return;case 263:return function(o){if(!Fm(!0,o)&&!Pm(!0,o))return vJ(o,u,e);const s=Fm(!0,o)?function(o,s){const l=Xv(o,32),_=Xv(o,2048),d=uJ(o.modifiers,(e=>uI(e)||xN(e)?void 0:e),Iu),f=ax(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!su(n.name)?Fc(n.name):"default");return c[qJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=uJ(o.heritageClauses,u,XP);let v=uJ(o.members,u,wu),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&te(v,(e=>kN(e)&&Xv(e,256)||wN(e)));x&&(v=TI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const S=t.createClassExpression(d,s&&su(s)?void 0:s,void 0,y,v);pw(S,o),TI(S,f);const k=m&&!x?t.createAssignment(m,S):S,T=t.createVariableDeclaration(h,void 0,void 0,k);pw(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);pw(w,o),TI(w,f),Nw(w,o);const D=[w];if(he(D,b),function(e,r){const i=function(e){const r=pU(e),i=g(r);if(!i)return;const o=c&&c[qJ(e)],s=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),l=n().createDecorateHelper(i,s),u=t.createAssignment(s,o?t.createAssignment(o,l):l);return hw(u,3072),Sw(u,ax(e)),u}(r);i&&e.push(pw(t.createExpressionStatement(i),r))}(D,o),l)if(_){const e=t.createExportDefault(h);D.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));D.push(e)}return D}(o,o.name):function(e,n){const r=uJ(e.modifiers,l,mu),i=uJ(e.heritageClauses,u,XP);let o=uJ(e.members,u,wu),a=[];({members:o,decorationStatements:a}=p(e,o));const s=t.updateClassDeclaration(e,r,n,void 0,i,o);return he([s],a)}(o,o.name);return je(s)}(o);case 231:return function(e){return t.updateClassExpression(e,uJ(e.modifiers,l,mu),e.name,void 0,uJ(e.heritageClauses,u,XP),uJ(e.members,u,wu))}(o);case 176:return function(e){return t.updateConstructorDeclaration(e,uJ(e.modifiers,l,mu),uJ(e.parameters,u,bN),lJ(e.body,u,JE))}(o);case 174:return function(e){return f(t.updateMethodDeclaration(e,uJ(e.modifiers,l,mu),e.asteriskToken,En.checkDefined(lJ(e.name,u,hu)),void 0,void 0,uJ(e.parameters,u,bN),void 0,lJ(e.body,u,JE)),e)}(o);case 178:return function(e){return f(t.updateSetAccessorDeclaration(e,uJ(e.modifiers,l,mu),En.checkDefined(lJ(e.name,u,hu)),uJ(e.parameters,u,bN),lJ(e.body,u,JE)),e)}(o);case 177:return function(e){return f(t.updateGetAccessorDeclaration(e,uJ(e.modifiers,l,mu),En.checkDefined(lJ(e.name,u,hu)),uJ(e.parameters,u,bN),void 0,lJ(e.body,u,JE)),e)}(o);case 172:return function(e){if(!(33554432&e.flags||Xv(e,128)))return f(t.updatePropertyDeclaration(e,uJ(e.modifiers,l,mu),En.checkDefined(lJ(e.name,u,hu)),void 0,void 0,lJ(e.initializer,u,s_)),e)}(o);case 169:return function(e){const n=t.updateParameterDeclaration(e,dI(t,e.modifiers),e.dotDotDotToken,En.checkDefined(lJ(e.name,u,yu)),void 0,void 0,lJ(e.initializer,u,s_));return n!==e&&(Nw(n,e),TI(n,ax(e)),Sw(n,ax(e)),hw(n.name,64)),n}(o);default:return vJ(o,u,e)}}function _(e){return!!(536870912&e.transformFlags)}function d(e){return te(e,_)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!wI(t))continue;const n=fU(t,e,!0);if(te(null==n?void 0:n.decorators,_))return!0;
6if(te(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=TI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(Nw(e,t),Sw(e,ax(t))),e}function m(e){return RD(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=rt(e.decorators,m),r=[];return he(r,j(t,v)),he(r,q(e.parameters,b)),he(r,j(n,v)),r}function h(e,n,r){he(e,j(function(e,t){const n=function(e,t){return L(e.members,(n=>{return i=t,Em(!0,r=n,e)&&i===Qv(r);var r,i}))}(e,t);let r;for(const i of n)r=fe(r,y(e,i));return r}(n,r),(e=>t.createExpressionStatement(e))))}function y(e,r){const i=g(fU(r,e,!0));if(!i)return;const o=function(e,n){return Qv(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return rN(r)?t.createIdentifier(""):yN(r)?n&&!tU(r.expression)?t.getGeneratedNameForNode(r):r.expression:nN(r)?t.createStringLiteral(Fc(r)):t.cloneNode(r)}(r,!Xv(r,128)),s=kN(r)&&!nb(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return hw(c,3072),Sw(c,ax(r)),c}function v(e){return En.checkDefined(lJ(e.expression,u,s_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);TI(e,i.expression),hw(e,3072),r.push(e)}}return r}}function tq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=BS(e.getCompilerOptions());let s,c,l,u,_,d;return VJ(e,(function(t){s=void 0,d=!1;const n=vJ(t,b,e);return Bw(n,e.readEmitHelpers()),d&&(bw(n,32),d=!1),n}));function p(){switch(c=void 0,l=void 0,u=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,u=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,u=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:_},_=void 0,p()}function m(){En.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),_=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;En.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(wN(e)||kN(e)&&Yv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;En.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),En.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,p()}function y(){En.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},p()}function v(){En.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!u&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return En.fail("Use `modifierVisitor` instead.");case 263:return function(n){var r;if(N(n)){const i=[],o=null!=(r=Cc(n,Du))?r:n,a=o.name?t.createStringLiteralFromNode(o.name):t.createStringLiteral("default"),s=Xv(n,32),c=Xv(n,2048);if(n.name||(n=zU(e,n,a)),s&&c){const e=D(n);if(n.name){const r=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);pw(r,n);const o=t.createVariableDeclarationList([r],1),a=t.createVariableStatement(void 0,o);i.push(a);const s=t.createExportDefault(t.getDeclarationName(n));pw(s,n),Nw(s,Dw(n)),Sw(s,ox(n)),i.push(s)}else{const r=t.createExportDefault(e);pw(r,n),Nw(r,Dw(n)),Sw(r,ox(n)),i.push(r)}}
6else{En.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=D(n),r=s?e=>iN(e)?void 0:S(e):S,o=uJ(n.modifiers,r,mu),a=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(a,void 0,void 0,e);pw(c,n);const l=t.createVariableDeclarationList([c],1),u=t.createVariableStatement(o,l);if(pw(u,n),Nw(u,Dw(n)),i.push(u),s){const e=t.createExternalModuleExport(a);pw(e,n),i.push(e)}}return je(i)}{const e=uJ(n.modifiers,S,mu),r=uJ(n.heritageClauses,b,XP);f(void 0);const i=uJ(n.members,k,wu);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(N(e)){const t=D(e);return pw(t,e),t}{const n=uJ(e.modifiers,S,mu),r=uJ(e.heritageClauses,b,XP);f(void 0);const i=uJ(e.members,k,wu);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return En.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){my(n,I)&&(n=VU(e,n,O(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,lJ(n.name,b,yu),void 0,void 0,lJ(n.initializer,b,s_));return r!==n&&(Nw(r,n),TI(r,ax(n)),Sw(r,ax(n)),hw(r.name,64)),r}(n);case 226:return L(n,!1);case 303:case 260:case 208:return function(t){return my(t,I)&&(t=VU(e,t,O(t.initializer))),vJ(t,b,e)}(n);case 277:return function(t){return my(t,I)&&(t=VU(e,t,O(t.expression))),vJ(t,b,e)}(n);case 110:return function(e){return null!=l?l:e}(n);case 248:return function(n){return t.updateForStatement(n,lJ(n.initializer,T,y_),lJ(n.condition,b,s_),lJ(n.incrementor,T,s_),hJ(n.statement,b,e))}(n);case 244:return function(t){return vJ(t,T,e)}(n);case 355:return M(n,!1);case 217:return W(n,!1);case 354:return function(e,n){const r=b,i=lJ(e.expression,r,s_);return t.updatePartiallyEmittedExpression(e,i)}(n);case 213:return function(n){if(xm(n.expression)&&l){const e=lJ(n.expression,b,s_),r=uJ(n.arguments,b,s_),i=t.createFunctionCallCall(e,l,r);return pw(i,n),TI(i,n),i}return vJ(n,b,e)}(n);case 215:return function(n){if(xm(n.tag)&&l){const e=lJ(n.tag,b,s_),r=t.createFunctionBindCall(e,l,[]);pw(r,n),TI(r,n);const i=lJ(n.template,b,e_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return vJ(n,b,e)}(n);case 224:case 225:return R(n,!1);case 211:return function(n){if(xm(n)&&nN(n.name)&&l&&u){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(u,e,l);return pw(r,n.expression),TI(r,n.expression),r}return vJ(n,b,e)}(n);case 212:return function(n){if(xm(n)&&l&&u){const e=lJ(n.argumentExpression,b,s_),r=t.createReflectGetCall(u,e,l);return pw(r,n.expression),TI(r,n.expression),r}return vJ(n,b,e)}(n);case 167:return J(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(En.assert(!_),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:_},_=void 0,p());const t=vJ(n,x,e);return En.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(En.assert(!_),s.depth--):(_=s.savedPendingExpressions,s=s.next,p()),t}default:return vJ(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function S(e){if(170!==e.kind)return e}function k(a){switch(a.kind){case 176:return function(e){g(e);const n=uJ(e.modifiers,S,mu),r=uJ(e.parameters,b,bN);let i;if(e.body&&c){const n=E(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=aU(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(he(r,n),he(r,uJ(e.body.statements,b,F_))),i=t.createBlock(r,!0),pw(i,e.body),TI(i,e.body)}}return null!=i||(i=lJ(e.body,b,JE)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,Z);if(i)return h(),F(function(e,n,r){return e=uJ(e,(e=>uN(e)?e:void 0),mu),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement
6(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=uJ(e.parameters,b,bN),o=lJ(e.body,b,JE);return h(),F(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,ee);if(i)return h(),F(ie(n,r,i),e);{const i=uJ(e.parameters,b,bN),o=lJ(e.body,b,JE);return h(),F(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,ne);if(i)return h(),F(oe(n,r,i),e);{const i=uJ(e.parameters,b,bN),o=lJ(e.body,b,JE);return h(),F(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){var s;my(a,I)&&(a=VU(e,a,O(a.initializer))),g(a),En.assert(!Pp(a),"Not yet implemented.");const{modifiers:l,name:u,initializersName:_,extraInitializersName:d,descriptorName:p,thisArg:f}=A(a,c,nb(a)?re:void 0);r();let m=lJ(a.initializer,b,s_);_&&(m=n().createRunInitializersHelper(null!=f?f:t.createThis(),_,null!=m?m:t.createVoidZero())),Qv(a)&&c&&m&&(c.hasStaticInitializers=!0);const y=i();if(te(y)&&(m=t.createImmediatelyInvokedArrowFunction([...y,t.createReturnStatement
6(m)])),c&&(Qv(a)?(m=G(c,!0,m),d&&(null!=c.pendingStaticInitializers||(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(null!=(s=c.classThis)?s:t.createThis(),d)))):(m=G(c,!1,m),d&&(null!=c.pendingInstanceInitializers||(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),d))))),h(),nb(a)&&p){const e=Dw(a),n=xw(a),r=a.name;let i=r,s=r;if(yN(r)&&!tU(r.expression)){const e=bI(r);if(e)i=t.updateComputedPropertyName(r,lJ(r.expression,b,s_)),s=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);Sw(e,r.expression);const n=lJ(r.expression,b,s_),a=t.createAssignment(e,n);Sw(a,r.expression),i=t.updateComputedPropertyName(r,a),s=t.updateComputedPropertyName(r,e)}}const c=uJ(l,(e=>129!==e.kind?e:void 0),mu),u=hI(t,a,c,m);pw(u,a),hw(u,3072),Sw(u,n),Sw(u.name,a.name);const _=ie(c,i,p);pw(_,a),Nw(_,e),Sw(_,n);const d=oe(c,s,p);return pw(d,a),hw(d,3072),Sw(d,n),[u,_,d]}return F(t.updatePropertyDeclaration(a,l,u,void 0,void 0,m),a)}(a);case 175:return function(n){let r;if(g(n),JU(n))r=vJ(n,b,e);else if(OU(n)){const t=l;l=void 0,r=vJ(n,b,e),l=t}else if(r=n=vJ(n,b,e),c&&(c.hasStaticInitializers=!0,te(c.pendingStaticInitializers))){const e=[];for(const r of c.pendingStaticInitializers){const n=t.createExpressionStatement(r);Sw(n,xw(r)),e.push(n)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 224:case 225:return R(e,!0);case 226:return L(e,!0);case 355:return M(e,!0);case 217:return W(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&nN(e.name)&&!su(e.name)?Fc(e.name):e.name&&rN(e.name)&&!su(e.name)?Fc(e.name).slice(1):e.name&&BD(e.name)&&Ls(e.name.text,99)?e.name.text:Du(e)?"class":"member";return $_(e)&&(t=`get_${t}`),z_(e)&&(t=`set_${t}`),e.name&&rN(e.name)&&(t=`private_${t}`),Qv(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function D(o){var a,s;r(),!qU(o)&&Fm(!1,o)&&(o=zU(e,o,t.createStringLiteral("")));const c=t.getLocalName(o,!1,!1,!0),l=function(e){var r,i;const o=t.createUniqueName("_metadata",48);let a,s,c,l,u,_=!1,d=!1,p=!1;if(Nm(!1,e)){const n=te(e.members,(e=>(uu(e)||Eu(e))&&Yv(e)));c=t.createUniqueName("_classThis",n?24:48)}for(const f of e.members){if(Fu(f)&&Em(!1,f,e))if(Yv(f)){if(!s){s=t.createUniqueName("_staticExtraInitializers",48);
6const i=n().createRunInitializersHelper(null!=c?c:t.createThis(),s);Sw(i,null!=(r=e.name)?r:ox(e)),null!=l||(l=[]),l.push(i)}}else{if(!a){a=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),a);Sw(r,null!=(i=e.name)?i:ox(e)),null!=u||(u=[]),u.push(r)}null!=a||(a=t.createUniqueName("_instanceExtraInitializers",48))}if(wN(f)?JU(f)||(_=!0):kN(f)&&(Yv(f)?_||(_=!!f.initializer||ib(f)):d||(d=!Pp(f))),(uu(f)||Eu(f))&&Yv(f)&&(p=!0),s&&a&&_&&d&&p)break}return{class:e,classThis:c,metadataReference:o,instanceMethodExtraInitializersName:a,staticMethodExtraInitializersName:s,hasStaticInitializers:_,hasNonAmbientInstanceFields:d,hasStaticPrivateClassElements:p,pendingStaticInitializers:l,pendingInstanceInitializers:u}}(o),u=[];let p,g,h,y,v=!1;const x=X(pU(o));x&&(l.classDecoratorsName=t.createUniqueName("_classDecorators",48),l.classDescriptorName=t.createUniqueName("_classDescriptor",48),l.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),En.assertIsDefined(l.classThis),u.push(w(l.classDecoratorsName,t.createArrayLiteralExpression(x)),w(l.classDescriptorName),w(l.classExtraInitializersName,t.createArrayLiteralExpression()),w(l.classThis)),l.hasStaticPrivateClassElements&&(v=!0,d=!0));const S=jh(o.heritageClauses,96),T=S&&Pe(S.types),C=T&&lJ(T.expression,b,s_);if(C){l.classSuper=t.createUniqueName("_classSuper",48);const e=SA(C),n=NE(e)&&!e.name||mE(e)&&!e.name||gE(e)?t.createComma(t.createNumericLiteral(0),C):C;u.push(w(l.classSuper,n));const r=t.updateExpressionWithTypeArguments(T,l.classSuper,void 0),i=t.updateHeritageClause(S,[r]);y=t.createNodeArray([i])}const D=null!=(a=l.classThis)?a:t.createThis();f(l),p=fe(p,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ae(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(l.metadataReference,l.classSuper));let N=o.members;if(N=uJ(N,(e=>DN(e)?e:k(e)),wu),N=uJ(N,(e=>DN(e)?k(e):e),wu),_){let n;for(let r of _)r=lJ(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),u.unshift(w(n,t.createThis()))),n):vJ(i,r,e):i}),s_),p=fe(p,t.createExpressionStatement(r));_=void 0}if(m(),te(l.pendingInstanceInitializers)&&!Tv(o)){const e=E(0,l);if(e){const n=Ih(o),r=[];if(n&&106!==SA(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}he(r,e);const i=t.createBlock(r,!0);h=t.createConstructorDeclaration(void 0,[],i)}}if(l.staticMethodExtraInitializersName&&u.push(w(l.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),l.instanceMethodExtraInitializersName&&u.push(w(l.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),l.memberInfos&&bd(l.memberInfos,((e,n)=>{Qv(n)&&(u.push(w(e.memberDecoratorsName)),e.memberInitializersName&&u.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&u.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&u.push(w(e.memberDescriptorName)))})),l.memberInfos&&bd(l.memberInfos,((e,n)=>{Qv(n)||(u.push(w(e.memberDecoratorsName)),e.memberInitializersName&&u.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&u.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&u.push(w(e.memberDescriptorName)))})),p=he(p,l.staticNonFieldDecorationStatements),p=he(p,l.nonStaticNonFieldDecorationStatements),p=he(p,l.staticFieldDecorationStatements),p=he(p,l.nonStaticFieldDecorationStatements),l.classDescriptorName&&l.classDecoratorsName&&l.classExtraInitializer
6sName&&l.classThis){null!=p||(p=[]);const e=t.createPropertyAssignment("value",D),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(l.classDescriptorName,r),a=t.createPropertyAccessExpression(D,"name"),s=n().createESDecorateHelper(t.createNull(),i,l.classDecoratorsName,{kind:"class",name:a,metadata:l.metadataReference},t.createNull(),l.classExtraInitializersName),u=t.createExpressionStatement(s);Sw(u,ox(o)),p.push(u);const _=t.createPropertyAccessExpression(l.classDescriptorName,"value"),d=t.createAssignment(l.classThis,_),f=t.createAssignment(c,d);p.push(t.createExpressionStatement(f))}if(p.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return hw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(D,l.metadataReference)),te(l.pendingStaticInitializers)){for(const e of l.pendingStaticInitializers){const n=t.createExpressionStatement
6(e);Sw(n,xw(e)),g=fe(g,n)}l.pendingStaticInitializers=void 0}if(l.classExtraInitializersName){const e=n().createRunInitializersHelper(D,l.classExtraInitializersName),r=t.createExpressionStatement(e);Sw(r,null!=(s=o.name)?s:ox(o)),g=fe(g,r)}p&&g&&!l.hasStaticInitializers&&(he(p,g),g=void 0);const P=p&&t.createClassStaticBlockDeclaration(t.createBlock(p,!0));P&&v&&vw(P,32);const F=g&&t.createClassStaticBlockDeclaration(t.createBlock(g,!0));if(P||h||F){const e=[],n=N.findIndex(JU);P?(he(e,N,0,n+1),e.push(P),he(e,N,n+1)):he(e,N),h&&e.push(h),F&&e.push(F),N=TI(t.createNodeArray(e),N)}const A=i();let I;if(x){I=t.createClassExpression(void 0,void 0,void 0,y,N),l.classThis&&(I=RU(t,I,l.classThis));const e=t.createVariableDeclaration(c,void 0,void 0,I),n=t.createVariableDeclarationList([e]),r=l.classThis?t.createAssignment(c,l.classThis):c;u.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else I=t.createClassExpression(void 0,o.name,void 0,y,N),u.push(t.createReturnStatement(I));if(v){bw(I,32);for(const e of I.members)(uu(e)||Eu(e))&&Yv(e)&&bw(e,32)}return pw(I,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(u,A))}function N(e){return Fm(!1,e)||Pm(!1,e)}function E(e,n){if(te(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(he(e,uJ(n,b,F_,r,s-r)),rP(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a),TI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),lJ(c.catchClause,b,QP),lJ(c.finallyBlock,b,JE)))}else he(e,uJ(n,b,F_,s,1)),he(e,a);he(e,uJ(n,b,F_,s+1))}function F(e,t){return e!==t&&(Nw(e,t),Sw(e,ox(t))),e}function A(e,r,i){var a,s,c,l,u,d;let p,f,m,g,h,x;if(!r){const t=uJ(e.modifiers,S,mu);return y(),f=B(e.name),v(),{modifiers:t,referencedName:p,name:f,initializersName:m,descriptorName:x,thisArg:h}}const k=X(fU(e,r.class,!1)),T=uJ(e.modifiers,S,mu);if(k){const S=C(e,"decorators"),w=t.createArrayLiteralExpression(k),D=t.createAssignment(S,w),N={memberDecoratorsName:S};null!=r.memberInfos||(r.memberInfos=new Map),r.memberInfos.set(e,N),null!=_||(_=[]),_.push(D);const E=Fu(e)||Eu(e)?Qv(e)?null!=(a=r.staticNonFieldDecorationStatements)?a:r.staticNonFieldDecorationStatements=[]:null!=(s=r.nonStaticNonFieldDecorationStatements)?s:r.nonStaticNonFieldDecorationStatements=[]:kN(e)&&!Eu(e)?Qv(e)?null!=(c=r.staticFieldDecorationStatements)?c:r.staticFieldDecorationStatements=[]:null!=(l=r.nonStaticFieldDecorationStatements)?l:r.nonStaticFieldDecorationStatements=[]:En.fail(),P=NN(e)?"getter":EN(e)?"setter":CN(e)?"method":Eu(e)?"accessor":kN(e)?"field":En.fail();let F;if(nN(e.name)||rN(e.name))F={computed:!1,name:e.name};else if(iy(e.name))F={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;iy(r)&&!nN(r)?F={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:p,name:f}=function(e){if(iy(e)||rN(e))return{referencedName:t.createStringLiteralFromNode(e),name:lJ(e,b,hu)};if(iy(e.expression)&&!nN(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:lJ(e,b,hu)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(lJ(e.expression,b,s_)),a=t.createAssignment(r,i),s=t.updateComputedPropertyName(e,K(a));return{referencedName:r,name:s}}(e.name)),F={computed:!0,name:p},v())}const A={kind:P,name:F,static:Qv(e),private:rN(e.name),access:{get:kN(e)||NN(e)||CN(e),set:kN(e)||EN(e)},metadata:r.metadataReference};if(Fu(e)){const o=Qv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;En.assertIsDefined(o),uu(e)&&i&&(a=i(e,uJ(T,(e=>ht(e,aN)),mu)),N.memberDescriptorName=x=C(e,"descriptor"),a=t.createAssignment(x,a));const s=n().createESDecorateHelper(t.createThis(),null!=a?a:t.createNull(),S,A,t.createNull(),o),c=t.createExpressionStatement(s);Sw(c,ox(e)),E.push(c)}else if(kN(e)){let o;m=null!=(u=N.memberInitializersName)?u:N.memberInitializersName=C(e,"initializer
6s"),g=null!=(d=N.memberExtraInitializersName)?d:N.memberExtraInitializersName=C(e,"extraInitializers"),Qv(e)&&(h=r.classThis),uu(e)&&nb(e)&&i&&(o=i(e,void 0),N.memberDescriptorName=x=C(e,"descriptor"),o=t.createAssignment(x,o));const a=n().createESDecorateHelper(Eu(e)?t.createThis():t.createNull(),null!=o?o:t.createNull(),S,A,m,g),s=t.createExpressionStatement(a);Sw(s,ox(e)),E.push(s)}}return void 0===f&&(y(),f=B(e.name),v()),te(T)||!CN(e)&&!kN(e)||hw(f,1024),{modifiers:T,referencedName:p,name:f,initializersName:m,extraInitializersName:g,descriptorName:x,thisArg:h}}function I(e){return NE(e)&&!e.name&&N(e)}function O(e){const t=SA(e);return NE(t)&&!t.name&&!Fm(!1,t)}function L(n,r){if(Nb(n)){const e=V(n.left),r=lJ(n.right,b,s_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(wb(n)){if(my(n,I))return vJ(n=VU(e,n,O(n.right)),b,e);if(xm(n.left)&&l&&u){let e=lE(n.left)?lJ(n.left.argumentExpression,b,s_):nN(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=lJ(n.right,b,s_);if(nU(n.operatorToken.kind)){let r=e;tU(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(u,r,l);pw(a,n.left),TI(a,n.left),i=t.createBinaryExpression(a,rU(n.operatorToken.kind),i),TI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),TI(a,n)),i=t.createReflectSetCall(u,e,i,l),pw(i,n),TI(i,n),a&&(i=t.createComma(i,a),TI(i,n)),i}}}if(28===n.operatorToken.kind){const e=lJ(n.left,T,s_),i=lJ(n.right,r?T:b,s_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return vJ(n,b,e)}function R(n,r){if(46===n.operator||47===n.operator){const e=bh(n.operand);if(xm(e)&&l&&u){let i=lE(e)?lJ(e.argumentExpression,b,s_):nN(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;tU(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(u,e,l);pw(a,n),TI(a,n);const s=r?void 0:t.createTempVariable(o);return a=uA(t,n,a,o,s),a=t.createReflectSetCall(u,i,a,l),pw(a,n),TI(a,n),s&&(a=t.createComma(a,s),TI(a,n)),a}}}return vJ(n,b,e)}function M(e,n){const r=n?yJ(e.elements,T):yJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return yN(e)?J(e):lJ(e,b,hu)}function J(e){let n=lJ(e.expression,b,s_);return tU(n)||(n=K(n)),t.updateComputedPropertyName(e,n)}function U(n){if(sE(n)||aE(n))return V(n);if(xm(n)&&l&&u){const e=lE(n)?lJ(n.argumentExpression,b,s_):nN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(u,e,r,l));return pw(i,n),TI(i,n),i}}return vJ(n,b,e)}function q(n){if(wb(n,!0)){my(n,I)&&(n=VU(e,n,O(n.right)));const r=U(n.left),i=lJ(n.right,b,s_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return U(n)}function z(n){return En.assertNode(n,Ku),DE(n)?function(n){if(t_(n.expression)){const e=U(n.expression);return t.updateSpreadElement(n,e)}return vJ(n,b,e)}(n):EE(n)?vJ(n,b,e):q(n)}function $(n){return En.assertNode(n,Wu),eF(n)?function(n){if(t_(n.expression)){const e=U(n.expression);return t.updateSpreadAssignment(n,e)}return vJ(n,b,e)}(n):ZP(n)?function(t){return my(t,I)&&(t=VU(e,t,O(t.objectAssignmentInitializer))),vJ(t,b,e)}(n):YP(n)?function(n){const r=lJ(n.name,b,hu);if(wb(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(t_(n.initializer)){const e=U(n.initializer);return t.updatePropertyAssignment(n,r,e)}return vJ(n,b,e)}(n):vJ(n,b,e)}function V(e){if(aE(e)){const n=uJ(e.elements,z,s_);return t.updateArrayLiteralExpression(e,n)}{const n=uJ(e.properties,$,Ru);return t.updateObjectLiteralExpression(e,n)}}function W(e,n){const r=n?T:b,i=lJ(e.expression,r,s_);return t.updateParenthesizedExpression(e,i)}function H(e,n){return te(e)&&(n?fE(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function K(e){const t=H(_,e);return En.assertIsDefined(t),t!==e&&(_=void 0),t}function G(e,t,n){const r=H(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);
6return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function X(e){if(!e)return;const t=[];return he(t,j(e.decorators,Q)),t}function Q(e){const n=lJ(e.expression,b,s_);if(hw(n,3072),Hx(SA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Y(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,null!=c?c:t.createBlock([]));pw(l,e),Sw(l,ox(e)),hw(l,3072);const u="get"===a||"set"===a?a:void 0,_=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,_,u),p=t.createPropertyAssignment(t.createIdentifier(a),d);return pw(p,e),Sw(p,ox(e)),hw(p,3072),p}function Z(e,n){return t.createObjectLiteralExpression([Y(e,e.name,n,e.asteriskToken,"value",uJ(e.parameters,b,bN),lJ(e.body,b,JE))])}function ee(e,n){return t.createObjectLiteralExpression([Y(e,e.name,n,void 0,"get",[],lJ(e.body,b,JE))])}function ne(e,n){return t.createObjectLiteralExpression([Y(e,e.name,n,void 0,"set",uJ(e.parameters,b,bN),lJ(e.body,b,JE))])}function re(e,n){return t.createObjectLiteralExpression([Y(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement
6(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Y(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function ie(e,n,r){return e=uJ(e,(e=>uN(e)?e:void 0),mu),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function oe(e,n,r){return e=uJ(e,(e=>uN(e)?e:void 0),mu),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ae(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function nq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=BS(s);let l,u,_,p,f,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&l&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(l&&g[ZB(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){return n=v(e,n),1===e&&m?function(e){switch(e.kind){case 211:return W(e);case 212:return H(e);case 213:return function(e){const n=e.expression;if(xm(n)){const r=cE(n)?W(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},VJ(e,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!Ep(t,s));const n=vJ(t,C,e);return Bw(n,e.readEmitHelpers()),n}));function b(e,t){h=t?h|e:h&~e}function x(e){return!!(h&e)}function S(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function k(t){return vJ(t,C,e)}function T(t){switch(t.kind){case 218:case 262:case 174:case 177:case 178:case 176:return t;case 169:case 208:case 260:break;case 80:if(f&&a.isArgumentsLocalBinding(t))return f}return vJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return f?T(n):n;switch(n.kind){case 134:return;case 223:return function(n){return x(1)?pw(TI(t.createYieldExpression(void 0,lJ(n.expression,C,s_)),n),n):vJ(n,C,e)}(n);case 174:return S(3,N,n);case 262:return S(3,F,n);case 218:return S(3,A,n);case 219:return S(1,I,n);case 211:return _&&cE(n)&&108===n.expression.kind&&_.add(n.name.escapedText),vJ(n,C,e);case 212:return _&&108===n.expression.kind&&(p=!0),vJ(n,C,e);case 177:return S(3,E,n);case 178:return S(3,P,n);case 176:return S(3,D,n);case 263:case 231:return S(3,k,n);default:return vJ(n,C,e)}}function w(n){if(ph(n))switch(n.kind){case 243:return function(n){if(L(n.declarationList)){const e=R(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return vJ(n,C,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,L(r)?R(r,!1):lJ(n.initializer,C,y_),lJ(n.condition,C,s_),lJ(n.incrementor,C,s_),hJ(n.statement,w,e))}(n);case 249:return function(n){return t.updateForInStatement(n,L(n.initializer)?R(n.initializer,!0):En.checkDefined(lJ(n.initializer,C,y_)),En.checkDefined(lJ(n.expression,C,s_)),hJ(n.statement,w,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,lJ(n.awaitModifier,C,cN),L(n.initializer)?R(n.initializer,!0):En.checkDefined(lJ(n.initializer,C,y_)),En.checkDefined(lJ(n.expression,C,s_)),hJ(n.statement,w,e))}(n);case 299:return function(t){const n=new Set;let r;if(O(t.variableDeclaration,n),n.forEach(((e,t)=>{u.has(t)&&(r||(r=new Set(u)),r.delete(t))})),r){const n=u;u=r;const i=vJ(t,w,e);return u=n,i}return vJ(t,w,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return vJ(n,w,e);default:return En.assertNever(n,"Unhandled node.")}return C(n)}function D(n){const r=f;f=void 0;const i=t.updateConstructorDeclaration(n,uJ(n.modifiers,C,mu),fJ(n.parameters,C,e),U(n));return f=r,i}function N(n){let r;const i=Qh(n),o=f;f=void 0;const a=t.updateMethodDeclaration(n,uJ(n.modifiers,C,Iu),n.asteriskToken,n.name,void 0,void 0,r=2&i?z(n):fJ(n.parameters,C,e),void 0,2&i?$(n,r):U(n));return f=o,a}function E(n){const r=f;f=void 0;const i=t.updateGetAccessorDeclaration(n,uJ(n.modifiers,C,Iu),n.name,fJ(n.parameters,C,e),void 0,U(n));return f=r,i}function P(n){const r=f;f=void 0;const i=t.updateSetAccessorDeclaration(n,uJ(n.modifiers,C,Iu),n.name,fJ(n.parameters,C,e),U(n));return f=r,i}function F(n){let r;const i=f;f=void 0;const o=Qh(n),a=t.updateFunctionDeclaration(n,uJ(n.modifiers,C,Iu),n.asteriskToken,n.name,void 0,r=2&o?z(n):fJ(n.parameters,C,e),void 0,2&o?$(n,r):gJ(n.body,C,e));return f=i,a}function A(n){let r;const i=f;f=void 0;const o=Qh(n),a=t.updateFunctionExpression(n,uJ(n.modifiers,C,mu),n.asteriskToken,n.name,void 0,r=2&o?z(n):fJ(n.parameters,C,e),void 0,2&o?$(n,r):gJ(n.body,C,e));return f=i,a}function I(n){let r;const i=Qh(n);return t.updateArrowFunction(n,uJ(n.modifiers,C,mu),void 0,r=2&i?z(n):fJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?$(n,r):gJ(n.body,C,e))}function O({name:e},t){if(nN(e))t.add(e.escapedText);else for(const n of e.elements)EE(n)||O(n,t)}function L(e){return!!e&&aP(e)&&!(7&e.flags)&&e.declarations.some(J)}function R(e,n){!function(e){d(e.declarations,M)}(e);const r=Sx(e);return 0===r.length?n?lJ(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,s_):void 0:t.inline
6Expressions(j(r,B))}function M({name:e}){if(nN(e))o(e);else for(const t of e.elements)EE(t)||M(t)}function B(e){const n=Sw(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return En.checkDefined(lJ(n,C,s_))}function J({name:e}){if(nN(e))return u.has(e.escapedText);for(const t of e.elements)if(!EE(t)&&J(t))return!0;return!1}function U(n){En.assertIsDefined(n.body);const r=_,i=p;_=new Set,p=!1;let o=gJ(n.body,C,e);const s=Cc(n,xu);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&3&~Qh(s)){if(V(),_.size){const e=rq(t,a,n,_);g[ZB(e)]=!0;const r=o.statements.slice();Kd(r,[e]),o=t.updateBlock(o,r)}p&&(a.hasNodeCheckFlag(n,256)?jw(o,LD):a.hasNodeCheckFlag(n,128)&&jw(o,OD))}return _=r,p=i,o}function q(){En.assert(f);const e=t.createVariableDeclaration(f,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return CA(n),yw(n,2097152),n}function z(n){if(SU(n.parameters))return fJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(219===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return TI(i,n.parameters),i}function $(o,s){const l=SU(o.parameters)?void 0:fJ(o.parameters,C,e);r();const d=Cc(o,vu).type,m=c<2?function(e){const t=e&&Cm(e);if(t&&gu(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(d):void 0,h=219===o.kind,y=f,v=a.hasNodeCheckFlag(o,512)&&!f;let b;if(v&&(f=t.createUniqueName("arguments")),l)if(h){const e=[];En.assert(s.length<=o.parameters.length);for(let n=0;n<o.parameters.length;n++){En.assert(n<s.length);const r=o.parameters[n],i=s[n];if(En.assertNode(i.name,nN),r.initializer||r.dotDotDotToken){En.assert(n===s.length-1),e.push(t.createSpreadElement(i.name));break}e.push(i.name)}b=t.createArrayLiteralExpression(e)}else b=t.createIdentifier("arguments");const S=u;u=new Set;for(const e of o.parameters)O(e,u);const k=_,T=p;h||(_=new Set,p=!1);const D=x(2);let N=JE(E=o.body)?t.updateBlock(E,uJ(E.statements,w,F_,P)):t.converters.convertToFunctionBlock(En.checkDefined(lJ(E,w,g_)));var E,P;let F;if(N=t.updateBlock(N,t.mergeLexicalEnvironment(N.statements,i())),h){if(F=n().createAwaiterHelper(D,b,m,l,N),v){const e=t.converters.convertToFunctionBlock(F);F=t.updateBlock(e,t.mergeLexicalEnvironment(e.statements,[q()]))}}else{const e=[];
6e.push(t.createReturnStatement(n().createAwaiterHelper(D,b,m,l,N)));const r=c>=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(V(),_.size)){const n=rq(t,a,o,_);g[ZB(n)]=!0,Kd(e,[n])}v&&Kd(e,[q()]);const i=t.createBlock(e,!0);TI(i,o.body),r&&p&&(a.hasNodeCheckFlag(o,256)?jw(i,LD):a.hasNodeCheckFlag(o,128)&&jw(i,OD)),F=i}return u=S,h||(_=k,p=T,f=y),F}function V(){1&l||(l|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function W(e){return 108===e.expression.kind?TI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,TI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function rq(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach(((t,n)=>{const r=Pc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,hw(e.createPropertyAccessExpression(hw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(hw(e.createPropertyAccessExpression(hw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function iq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=BS(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&_&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(_&&x[ZB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const u=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=u(e,n),1===e&&v?function(e){switch(e.kind){case 211:return G(e);case 212:return X(e);case 213:return function(e){const n=e.expression;if(xm(n)){const r=cE(n)?G(n):X(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let _,d,p,f,m,g,h,y=!1,v=0,b=0;const x=[];return VJ(e,(function(n){if(n.isDeclarationFile)return n;f=n;const r=function(n){const r=S(2,Ep(n,s)?0:1);y=!1;const i=vJ(n,C,e),o=re(i.statements,m&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(m))]),a=t.updateSourceFile(i,TI(t.createNodeArray(o),n.statements));return k(r),a}(n);return Bw(r,e.readEmitHelpers()),f=void 0,m=void 0,r}));function S(e,t){const n=b;return b=3&(b&~e|t),n}function k(e){b=e}function T(e){m=fe(m,t.createVariableDeclaration(e))}function C(e){return P(e,!1)}function w(e){return P(e,!0)}function D(e){if(134!==e.kind)return e}function N(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=S(n,r),o=e(t);return k(i),o}return e(t)}function E(t){return vJ(t,C,e)}function P(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){return 2&d&&1&d?pw(TI(t.createYieldExpression(void 0,n().createAwaitHelper(lJ(r.expression,C,s_))),r),r):vJ(r,C,e)}(r);case 229:return function(r){if(2&d&&1&d){if(r.asteriskToken){const e=lJ(En.checkDefined(r.expression),C,s_);return pw(TI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,TI(n().createAsyncDelegatorHelper(TI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return pw(TI(t.createYieldExpression(void 0,O(r.expression?lJ(r.expression,C,s_):t.createVoidZero())),r),r)}return vJ(r,C,e)}(r);case 253:return function(n){return 2&d&&1&d?t.updateReturnStatement
6(n,O(n.expression?lJ(n.expression,C,s_):t.createVoidZero())):vJ(n,C,e)}(r);case 256:return function(n){if(2&d){const e=Qf(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(lJ(e,C,F_,t.liftToBlock),n)}return vJ(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(lJ(e,C,s_))}else n=fe(n,303===i.kind?t.createPropertyAssignment(i.name,lJ(i.initializer,C,s_)):lJ(i,C,Ru));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t<e.length;t++)i=n().createAssignHelper([i,e[t]]);return i}return n().createAssignHelper(e)}return vJ(r,C,e)}(r);case 226:return function(n,r){return Nb(n)&&kI(n.left)?TU(n,C,e,1,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,lJ(n.left,w,s_),n.operatorToken,lJ(n.right,r?w:C,s_)):vJ(n,C,e)}(r,i);case 355:return function(n,r){if(r)return vJ(n,w,e);let i;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=lJ(t,e<n.elements.length-1?w:C,s_);(i||r!==t)&&(i||(i=n.elements.slice(0,e)),i.push(r))}const o=i?TI(t.createNodeArray(i),n.elements):n.elements;return t.updateCommaListExpression(n,o)}(r,i);case 299:return function(n){if(n.variableDeclaration&&Bu(n.variableDeclaration.name)&&65536&n.variableDeclaration.name.transformFlags){const r=t.getGeneratedNameForNode(n.variableDeclaration.name),i=DU(t.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,r),C,e,1);let o=lJ(n.block,C,JE);return te(i)&&(o=t.updateBlock(o,[t.createVariableStatement(void 0,i),...o.statements])),t.updateCatchClause(n,t.updateVariableDeclaration(n.variableDeclaration,r,void 0,void 0,void 0),o)}return vJ(n,C,e)}(r);case 243:return function(t){if(Xv(t,32)){const n=y;y=!0;const r=vJ(t,C,e);return y=n,r}return vJ(t,C,e)}(r);case 260:return function(e){if(y){const t=y;y=!1;const n=F(e,!0);return y=t,n}return F(e,!1)}(r);case 246:case 247:case 249:return N(E,r,0,2);case 250:return I(r,void 0);case 248:return N(A,r,0,2);case 222:case 244:return function(t){return vJ(t,w,e)}(r);case 176:return N(j,r,2,1);case 174:return N(U,r,2,1);case 177:return N(B,r,2,1);case 178:return N(J,r,2,1);case 262:return N(q,r,2,1);case 218:return N($,r,2,1);case 219:return N(z,r,2,0);case 169:return R(r);case 217:return function(t,n){return vJ(t,n?w:C,e)}(r,i);case 215:return function(t){return HU(e,t,C,f,T,0)}(r);case 211:return g&&cE(r)&&108===r.expression.kind&&g.add(r.name.escapedText),vJ(r,C,e);case 212:return g&&108===r.expression.kind&&(h=!0),vJ(r,C,e);case 263:case 231:return N(E,r,2,1);default:return vJ(r,C,e)}}function F(t,n){return Bu(t.name)&&65536&t.name.transformFlags?DU(t,C,e,1,void 0,n):vJ(t,C,e)}function A(n){return t.updateForStatement(n,lJ(n.initializer,w,y_),lJ(n.condition,C,s_),lJ(n.incrementor,w,s_),hJ(n.statement,C,e))}function I(r,i){const a=S(0,2);(65536&r.initializer.transformFlags||Ju(r.initializer)&&kI(r.initializer))&&(r=function(e){const n=bh(e.initializer);if(aP(n)||Ju(n)){let r,i;const o=t.createTempVariable(void 0),a=[oA(t,n,o)];return JE(e.statement)?(he(a,e.statement.statements),r=e.statement,i=e.statement.statements):e.statement&&(fe(a,e.statement),r=e.statement,i=e.statement),t.updateForOfStatement(e,e.awaitModifier,TI(t.createVariableDeclarationList([TI(t.createVariableDeclaration(o),e.initializer)],1),e.initializer),e.expression,TI(t.createBlock(TI(t.createNodeArray(a),i),!0),r))}return e}(r));const s=r.awaitModifier?function(r,i,a){const s=lJ(r.expression,C,s_),c=nN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=nN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),u=t.createTempVariable(void 0),_=t.createTempVariable(o),d=t.createUniqueName("e"),p=t.getGeneratedNameForNode(d),f=t.createTempVariable(void 0),m=TI(n().createAsyncValuesHelper(s),r.expression),g=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]),h=t.createPropertyAccessExpression(l,"done"),y=t.createPropertyAccessExpression(l,"value"),v=t.createFunctionCallCall(f,c,[]);o(d),o(f);const b=2&a?t.inlineExpressions([t.createAssignment(d,t.createVoidZero()),m]):m,x=hw(TI(t.createForStatement
6(hw(TI(t.createVariableDeclarationList([t.createVariableDeclaration(u,void 0,void 0,t.createTrue()),TI(t.createVariableDeclaration(c,void 0,void 0,b),r.expression),t.createVariableDeclaration(l)]),r.expression),4194304),t.inlineExpressions([t.createAssignment(l,O(g)),t.createAssignment(_,h),t.createLogicalNot(_)]),t.createAssignment(u,t.createTrue()),function(n,r,i){const a=t.createTempVariable(o),s=t.createAssignment(a,r),c=t.createExpressionStatement(s);Sw(c,n.expression);const l=t.createAssignment(i,t.createFalse()),u=t.createExpressionStatement(l);Sw(u,n.expression);const _=[c,u],d=oA(t,n.initializer,a);let p,f;_.push(lJ(d,C,F_));const m=hJ(n.statement,C,e);return JE(m)?(he(_,m.statements),p=m,f=m.statements):_.push(m),TI(t.createBlock(TI(t.createNodeArray(_),f),!0),p)}(r,y,u)),r),512);return pw(x,r),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(x,i)]),t.createCatchClause(t.createVariableDeclaration(p),hw(t.createBlock([t.createExpressionStatement(t.createAssignment(d,t.createObjectLiteralExpression([t.createPropertyAssignment("error",p)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([hw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(u),t.createLogicalNot(_)),t.createAssignment(f,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(O(v))),1)]),void 0,hw(t.createBlock([hw(t.createIfStatement(d,t.createThrowStatement(t.createPropertyAccessExpression(d,"error"))),1)]),1))]))}(r,i,a):t.restoreEnclosingLabel(vJ(r,C,e),i);return k(a),s}function O(e){return 1&d?t.createYieldExpression(void 0,n().createAwaitHelper(e)):t.createAwaitExpression(e)}function L(e){return En.assertNode(e,bN),R(e)}function R(n){return(null==p?void 0:p.has(n))?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,Bu(n.name)?t.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):65536&n.transformFlags?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,t.getGeneratedNameForNode(n),void 0,void 0,lJ(n.initializer,C,s_)):vJ(n,C,e)}function M(e){let t;for(const n of e.parameters)t?t.add(n):65536&n.transformFlags&&(t=new Set);return t}function j(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateConstructorDeclaration(n,n.modifiers,fJ(n.parameters,L,e),H(n));return d=r,p=i,o}function B(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateGetAccessorDeclaration(n,n.modifiers,lJ(n.name,C,hu),fJ(n.parameters,L,e),void 0,H(n));return d=r,p=i,o}function J(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateSetAccessorDeclaration(n,n.modifiers,lJ(n.name,C,hu),fJ(n.parameters,L,e),H(n));return d=r,p=i,o}function U(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateMethodDeclaration(n,1&d?uJ(n.modifiers,D,Iu):n.modifiers,2&d?void 0:n.asteriskToken,lJ(n.name,C,hu),lJ(void 0,C,YD),void 0,2&d&&1&d?V(n):fJ(n.parameters,L,e),void 0,2&d&&1&d?W(n):H(n));return d=r,p=i,o}function q(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateFunctionDeclaration(n,1&d?uJ(n.modifiers,D,mu):n.modifiers,2&d?void 0:n.asteriskToken,n.name,void 0,2&d&&1&d?V(n):fJ(n.parameters,L,e),void 0,2&d&&1&d?W(n):H(n));return d=r,p=i,o}function z(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateArrowFunction(n,n.modifiers,void 0,fJ(n.parameters,L,e),void 0,n.equalsGreaterThanToken,H(n));return d=r,p=i,o}function $(n){const r=d,i=p;d=Qh(n),p=M(n);const o=t.updateFunctionExpression(n,1&d?uJ(n.modifiers,D,mu):n.modifiers,2&d?void 0:n.asteriskToken,n.name,void 0,2&d&&1&d?V(n):fJ(n.parameters,L,e),void 0,2&d&&1&d?W(n):H(n));return d=r,p=i,o}function V(n){if(SU(n.parameters))return fJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken)break;const n=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(n)}const i=t.createNodeArray(r);return TI(i,n.parameters),i}function W(o){const s=SU(o.parameters)?void 0:fJ(o.parameters,C,e);r();const l=g,u=h;g=new Set,h=!1;const d=[];let p=t.updateBlock(o.body,uJ(o.body.statements,C,F_));p=t.updateBlock(p,t.mergeLexicalEnvironment(p.statements,K(i(),o)));
6const f=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),o.name&&t.getGeneratedNameForNode(o.name),void 0,null!=s?s:[],void 0,p),!!(1&b))),m=c>=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(m){1&_||(_|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=rq(t,a,o,g);x[ZB(n)]=!0,Kd(d,[n])}d.push(f);const y=t.updateBlock(o.body,d);return m&&h&&(a.hasNodeCheckFlag(o,256)?jw(y,LD):a.hasNodeCheckFlag(o,128)&&jw(y,OD)),g=l,h=u,y}function H(e){var n;r();let o=0;const a=[],s=null!=(n=lJ(e.body,C,g_))?n:t.createBlock([]);JE(s)&&(o=t.copyPrologue(s.statements,a,!1,C)),he(a,K(void 0,e));const c=i();if(o>0||te(a)||te(c)){const e=t.converters.convertToFunctionBlock(s,!0);return Kd(a,c),he(a,e.statements.slice(o)),t.updateBlock(e,TI(t.createNodeArray(a),e.statements))}return s}function K(n,r){let i=!1;for(const o of r.parameters)if(i){if(Bu(o.name)){if(o.name.elements.length>0){const r=DU(o,C,e,0,t.getGeneratedNameForNode(o));if(te(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);hw(i,2097152),n=fe(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=lJ(o.initializer,C,s_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);hw(a,2097152),n=fe(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);TI(e,o.name),hw(e,96);const r=lJ(o.initializer,C,s_);yw(r,3168);const i=t.createAssignment(e,r);TI(i,o),hw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);TI(a,o),hw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);CA(c),TI(c,o),hw(c,2101056),n=fe(n,c)}}else if(65536&o.transformFlags){i=!0;const r=DU(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(te(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);hw(i,2097152),n=fe(n,i)}}return n}function G(e){return 108===e.expression.kind?TI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function X(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,TI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function oq(e){const t=e.factory;return VJ(e,(function(t){return t.isDeclarationFile?t:vJ(t,n,e)}));function n(r){return 64&r.transformFlags?299===r.kind?function(r){return r.variableDeclaration?vJ(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),lJ(r.block,n,JE))}(r):vJ(r,n,e):r}}function aq(e){const{factory:t,hoistVariableDeclaration:n}=e;return VJ(e,(function(t){return t.isDeclarationFile?t:vJ(t,r,e)}));function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return En.assertNotNode(e,OP),e}case 211:case 212:if(Il(i)){const e=s(i,!1,!1);return En.assertNotNode(e,OP),e}return vJ(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=lJ(e.left,r,s_),o=i;return eU(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),TI(t.createConditionalExpression(c(i,o),void 0,o,void 0,lJ(e.right,r,s_)),e)}(i):vJ(i,r,e);case 220:return function(e){return Il(bh(e.expression))?pw(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,lJ(e.expression,r,s_))}(i);default:return vJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return OP(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(Il(n))return s(n,o,!1);if(fE(n.expression)&&Il(bh(n.expression))){const e=i(n.expression,!0,!1),o=uJ(n.arguments,r,s_);return OP(e)?TI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return vJ(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(Il(e))return s(e,i,o);let a,c=lJ(e.expression,r,s_);return En.assertNotNode(c,OP),i&&(eU(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,lJ(e.name,r,nN)):t.updateElementAccessExpression(e,c,lJ(e.argumentExpression,r,s_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return lJ(e,r,s_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){En.assertNotNode(e,Jl);const t=[e];for(;!e.questionDotToken&&!dE(e);)e=yt(Bl(e.expression),Il),En.assertNotNode(e,Jl),t.unshift(e);return{expression:e.expression,chain:t}}(e),u=a(Bl(s),Al(l[0]),!1);let _=OP(u)?u.thisArg:void 0,d=OP(u)?u.expression:u,p=t.restoreOuterExpressions(s,d,8);eU(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let a=0;a<l.length;a++){const e=l[a];switch(e.kind){case 211:case 212:a===l.length-1&&i&&(eU(m)?f=m:(f=t.createTempVariable(n),m=t.createAssignment(f,m))),m=211===e.kind?t.createPropertyAccessExpression(m,lJ(e.name,r,nN)):t.createElementAccessExpression(m,lJ(e.argumentExpression,r,s_));break;case 213:0===a&&_?(su(_)||(_=t.cloneNode(_),yw(_,3072)),m=t.createFunctionCallCall(m,108===_.kind?t.createThis():_,uJ(e.arguments,r,s_))):m=t.createCallExpression(m,void 0,uJ(e.arguments,r,s_))}pw(m,e)}const g=o?t.createConditionalExpression(c(p,d,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(m)):t.createConditionalExpression(c(p,d,!0),void 0,t.createVoidZero(),void 0,m);return TI(g,e),f?t.createSyntheticReferenceExpression(g,f):g}function c(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?37:38),t.createNull()),t.createToken(r?57:56),t.createBinaryExpression(n,t.createToken(r?37:38),t.createVoidZero()))}}function sq(e){const{hoistVariableDeclaration:t,factory:n}=e;return VJ(e,(function(t){return t.isDeclarationFile?t:vJ(t,r,e)}));function r(i){return 16&i.transformFlags?bb(i)?function(e){const i=rU(e.operatorToken.kind);let o=bh(lJ(e.left,r,t_)),a=o;const s=bh(lJ(e.right,r,s_));if(Hx(o)){const e=eU(o.expression),r=e?o.expression:n.createTempVariable(t),i=e?o.expression:n.createAssignment(r,o.expression);
6if(cE(o))a=n.createPropertyAccessExpression(r,o.name),o=n.createPropertyAccessExpression(i,o.name);else{const e=eU(o.argumentExpression),s=e?o.argumentExpression:n.createTempVariable(t);a=n.createElementAccessExpression(r,s),o=n.createElementAccessExpression(i,e?o.argumentExpression:n.createAssignment(s,o.argumentExpression))}}return n.createBinaryExpression(o,i,n.createParenthesizedExpression(n.createAssignment(a,s)))}(i):vJ(i,r,e):i}}function cq(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,startLexicalEnvironment:i,endLexicalEnvironment:o}=e;let a,s,c,l;return VJ(e,(function(t){if(t.isDeclarationFile)return t;const n=lJ(t,u,nF);return Bw(n,e.readEmitHelpers()),s=void 0,a=void 0,c=void 0,n}));function u(n){if(!(4&n.transformFlags))return n;switch(n.kind){case 307:return function(n){const r=pq(n.statements);if(r){i(),a=new YJ,s=[];const e=lq(n.statements),c=[];he(c,_J(n.statements,u,F_,0,e));let d=e;for(;d<n.statements.length;){if(0!==dq(n.statements[d])){d>e&&he(c,uJ(n.statements,u,F_,e,d-e));break}d++}En.assert(d<n.statements.length,"Should have encountered at least one 'using' statement.");const p=m(),f=_(n.statements,d,n.statements.length,p,c);return a.size&&fe(c,t.createExportDeclaration(void 0,!1,t.createNamedExports(Xe(a.values())))),he(c,o()),s.length&&c.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(s,1))),he(c,g(f,p,2===r)),l&&c.push(t.createExportAssignment(void 0,!0,l)),t.updateSourceFile(n,c)}return vJ(n,u,e)}(n);case 241:return function(n){const r=pq(n.statements);if(r){const e=lq(n.statements),i=m();return t.updateBlock(n,[..._J(n.statements,u,F_,0,e),...g(_(n.statements,e,n.statements.length,i,void 0),i,2===r)])}return vJ(n,u,e)}(n);case 248:return function(n){return n.initializer&&uq(n.initializer)?lJ(t.createBlock([t.createVariableStatement(void 0,n.initializer),t.updateForStatement(n,void 0,n.condition,n.incrementor,n.statement)]),u,F_):vJ(n,u,e)}(n);case 250:return function(n){if(uq(n.initializer)){const e=n.initializer,r=Pe(e.declarations)||t.createVariableDeclaration(t.createTempVariable(void 0)),i=2===_q(e),o=t.getGeneratedNameForNode(r.name),a=t.updateVariableDeclaration(r,r.name,void 0,void 0,o),s=t.createVariableDeclarationList([a],i?6:4),c=t.createVariableStatement(void 0,s);return lJ(t.updateForOfStatement(n,n.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(o)],2),n.expression,JE(n.statement)?t.updateBlock(n.statement,[c,...n.statement.statements]):t.createBlock([c,n.statement],!0)),u,F_)}return vJ(n,u,e)}(n);case 255:return function(n){const r=function(e){let t=0;for(const n of e){const e=pq(n.statements);if(2===e)return 2;e>t&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,lJ(n.expression,u,s_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){return 0!==pq(n.statements)?KP(n)?t.updateCaseClause(n,lJ(n.expression,u,s_),_(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,_(n.statements,0,n.statements.length,r,void 0)):vJ(n,u,e)}(n,i)))))],i,2===r)}return vJ(n,u,e)}(n);default:return vJ(n,u,e)}}function _(i,o,a,s,_){var m;const g=[];for(let r=o;r<a;r++){const o=i[r],a=dq(o);if(a){En.assertNode(o,UE);const r=[];for(let i of o.declarationList.declarations){if(!nN(i.name)){r.length=0;break}my(i)&&(i=VU(e,i));const o=null!=(m=lJ(i.initializer,u,s_))?m:t.createVoidZero();r.push(t.updateVariableDeclaration(i,i.name,void 0,void 0,n().createAddDisposableResourceHelper(s,o,2===a)))}if(r.length){const e=t.createVariableDeclarationList(r,2);pw(e,o.declarationList),TI(e,o.declarationList),h(t.updateVariableStatement(o,void 0,e));continue}}const c=u(o);pt(c)?c.forEach(h):c&&h(c)}return g;function h(n){En.assertNode(n,F_),fe(g,function(n){if(!_)return n;switch(n.kind){case 272:case 271:case 278:case 262:return function(e,t){t.push(e)}(n,_);case 277:return function(n){return n.isExportEquals?function(e){if(l)return e;l=t.createUniqueName("_default",56),r(l);const n=t.createAssignment(l,e.expression);
6return t.createExpressionStatement(n)}(n):function(n){if(c)return n;c=t.createUniqueName("_default",56),f(c,!0,"default",n);let r=n.expression,i=SA(r);my(i)&&(i=VU(e,i,!1,"default"),r=t.restoreOuterExpressions(r,i));const o=t.createAssignment(c,r);return t.createExpressionStatement(o)}(n)}(n);case 263:return function(n){if(!n.name&&c)return n;const r=Xv(n,32),i=Xv(n,2048);let o=t.converters.convertToClassExpression(n);return n.name&&(f(t.getLocalName(n),r&&!i,void 0,n),o=t.createAssignment(t.getDeclarationName(n),o),my(o)&&(o=VU(e,o,!1)),pw(o,n),Sw(o,n),Nw(o,n)),i&&!c&&(c=t.createUniqueName("_default",56),f(c,!0,"default",n),o=t.createAssignment(c,o),my(o)&&(o=VU(e,o,!1,"default")),pw(o,n)),t.createExpressionStatement(o)}(n);case 243:return function(e){let n;const r=Xv(e,32);for(const t of e.declarationList.declarations)p(t,r,t),t.initializer&&(n=fe(n,d(t)));if(n){const r=t.createExpressionStatement(t.inlineExpressions(n));return pw(r,e),Nw(r,e),Sw(r,e),r}}(n)}return n}(n))}}function d(e){let n;En.assertIsDefined(e.initializer),nN(e.name)?(n=t.cloneNode(e.name),hw(n,-114689&lp(n))):n=t.converters.convertToAssignmentPattern(e.name);const r=t.createAssignment(n,e.initializer);return pw(r,e),Nw(r,e),Sw(r,e),r}function p(e,t,n){if(Bu(e.name))for(const r of e.name.elements)EE(r)||p(r,t,n);else f(e.name,t,void 0,n)}function f(e,n,i,o){const c=su(e)?e:t.cloneNode(e);if(n){if(void 0===i&&!dA(c)){const e=t.createVariableDeclaration(c);return o&&pw(e,o),void s.push(e)}const e=void 0!==i?c:void 0,n=void 0!==i?i:c,r=t.createExportSpecifier(!1,e,n);o&&pw(r,o),a.set(c,r)}r(c)}function m(){return t.createUniqueName("env")}function g(e,r,i){const o=[],a=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),s=t.createVariableDeclaration(r,void 0,void 0,a),c=t.createVariableDeclarationList([s],2),l=t.createVariableStatement(void 0,c);o.push(l);const u=t.createBlock(e,!0),_=t.createUniqueName("e"),d=t.createCatchClause(_,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"error"),_)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"hasError"),t.createTrue()))],!0));let p;if(i){const e=t.createUniqueName("result");p=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n().createDisposeResourcesHelper(r))],2)),t.createIfStatement(e,t.createExpressionStatement(t.createAwaitExpression(e)))],!0)}else p=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(r))],!0);const f=t.createTryStatement(u,d,p);return o.push(f),o}}function lq(e){for(let t=0;t<e.length;t++)if(!Tf(e[t])&&!Cf(e[t]))return t;return 0}function uq(e){return aP(e)&&0!==_q(e)}function _q(e){return 6==(7&e.flags)?2:4==(7&e.flags)?1:0}function dq(e){return UE(e)?_q(e.declarationList):0}function pq(e){let t=0;for(const n of e){const e=dq(n);if(2===e)return 2;e>t&&(t=e)}return t}function fq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return VJ(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=fk(r,n);let a=vJ(n,u,e);Bw(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=Qd(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Xe(o.utilizedImplicitRuntimeImports.entries()))if(aO(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Xe(r.values())
6)),t.createStringLiteral(e),void 0);GT(n,!1),s=Qd(s.slice(),n)}else if(_f(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Xe(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));GT(n,!1),s=Qd(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a}));function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function s(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return l(t)}function l(e){var n,i;const a="createElement"===e?o.importSpecifier:mk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),u=t.createImportSpecifier(!1,t.createIdentifier(e),l);return Yw(l,u),c.set(e,u),l}function u(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return m(t,!1);case 285:return g(t,!1);case 288:return h(t,!1);case 294:return F(t);default:return vJ(t,u,e)}}(t):t}function d(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);us(o)?(-1!==n&&-1!==r&&(t=N(t,e.substr(n,r-n+1))),n=-1):ls(o)||(r=i,-1===n&&(n=i))}return-1!==n?N(t,e.substr(n)):t}(e.text);return void 0===n?void 0:t.createStringLiteral(n)}(e);case 294:return F(e);case 284:return m(e,!0);case 285:return g(e,!0);case 288:return h(e,!0);default:return En.failBadSyntaxKind(e)}}function p(e){return e.properties.some((e=>YP(e)&&(nN(e.name)&&"__proto__"===Fc(e.name)||BD(e.name)&&"__proto__"===e.name.text)))}function f(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!VP(n)||sE(n.expression)&&!n.expression.properties.some(eF)){if(t&&zP(n)&&nN(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function m(e,t){return(f(e.openingElement)?x:v)(e.openingElement,e.children,t,e)}function g(e,t){return(f(e)?x:v)(e,void 0,t,e)}function h(e,t){return(void 0===o.importSpecifier?k:S)(e.openingFragment,e.children,t,e)}function y(e){const n=Py(e);if(1===_(n)&&!n[0].dotDotDotToken){const e=d(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=H(e,d);return _(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function v(e,n,r,i){const o=P(e),a=n&&n.length?y(n):void 0,s=w(e.attributes.properties,(e=>!!e.name&&nN(e.name)&&"key"===e.name.escapedText)),l=s?L(e.attributes.properties,(e=>e!==s)):e.attributes.properties;return b(o,_(l)?T(l,a):t.createObjectLiteralExpression(a?[a]:c),s,n||c,r,i)}function b(e,n,o,c,l,u){var d;const p=Py(c),f=_(p)>1||!!(null==(d=p[0])?void 0:d.dotDotDotToken),m=[e,n];if(o&&m.push(D(o.initializer)),5===r.jsx){const e=Cc(i);if(e&&nF(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=ss(e,u.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=TI(t.createCallExpression(s(f),void 0,m),u);return l&&CA(g),g}function x(n,a,s,c){const u=P(n),p=n.attributes.properties,f=_(p)?T(p):t.createNull(),m=void 0===o.importSpecifier?nA(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):l("createElement"),g=rA(t,m,u,f,H(a,d),c);return s&&CA(g),g}function S(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=y(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return b(l("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function k(n,o,a,s){const c=iA(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,H(o,d),n,s);return a&&CA(c),c}function T(e,i){const o=BS(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=U(Z(e,VP,((e,n
6)=>U(j(e,(e=>{return n?sE((r=e).expression)&&!p(r.expression)?J(r.expression.properties,(e=>En.checkDefined(lJ(e,u,Ru)))):t.createSpreadAssignment(En.checkDefined(lJ(r.expression,u,s_))):C(e);var r}))))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(VP(t)){if(sE(t.expression)&&!p(t.expression)){for(const e of t.expression.properties)eF(e)?(a(),i.push(En.checkDefined(lJ(e.expression,u,s_)))):o.push(En.checkDefined(lJ(e,u)));continue}a(),i.push(En.checkDefined(lJ(t.expression,u,s_)))}else o.push(C(t));return r&&o.push(r),a(),i.length&&!sE(i[0])&&i.unshift(t.createObjectLiteralExpression()),Re(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function C(e){const n=function(e){const n=e.name;if(nN(n)){const e=Fc(n);return/^[A-Za-z_]\w*$/.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(Fc(n.namespace)+":"+Fc(n.name))}(e),r=D(e.initializer);return t.createPropertyAssignment(n,r)}function D(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!ig(e,i);return TI(t.createStringLiteral(function(e){const t=E(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():En.checkDefined(lJ(e.expression,u,s_)):RP(e)?m(e,!1):MP(e)?g(e,!1):JP(e)?h(e,!1):En.failBadSyntaxKind(e)}function N(e,t){const n=E(t);return void 0===e?n:e+" "+n}function E(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return Js(parseInt(i,10));if(o)return Js(parseInt(o,16));{const t=mq.get(a);return t?Js(t):e}}))}function P(e){if(284===e.kind)return P(e.openingElement);{const n=e.tagName;return nN(n)&&Qy(n.escapedText)?t.createStringLiteral(Fc(n)):HP(n)?t.createStringLiteral(Fc(n.namespace)+":"+Fc(n.name)):sA(t,n)}}function F(e){const n=lJ(e.expression,u,s_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var mq=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,o
6plus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function gq(e){const{factory:t,hoistVariableDeclaration:n}=e;return VJ(e,(function(t){return t.isDeclarationFile?t:vJ(t,r,e)}));function r(i){return 512&i.transformFlags?226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=lJ(e.left,r,s_),s=lJ(e.right,r,s_);if(lE(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=TI(t.createElementAccessExpression(TI(t.createAssignment(e,a.expression),a.expression),TI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=TI(t.createElementAccessExpression(e,r),a)}else if(cE(a)){const e=t.createTempVariable(n);i=TI(t.createPropertyAccessExpression(TI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=TI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return TI(t.createAssignment(i,TI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=lJ(e.left,r,s_),i=lJ(e.right,r,s_);return TI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return vJ(i,r,e)}}(i):vJ(i,r,e):i}}function hq(e,t){return{kind:e,expression:t}}function yq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,u=e.onEmitNode;let _,d,p,f,m,g;function h(e){f=fe(f,t.createVariableDeclaration(e))}return e.onEmitNode=function(e,t,n){if(1&g&&vu(t)){const r=y(32670,16&lp(t)?81:65);return u(e,t,n),void v(r,0,0)}u(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&g&&!_A(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!Du(n)||!function(e,t){let n=Nc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Up(e);for(;n;){if(n===r||n===e)return!1;if(wu(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return TI(t.getGeneratedNameForNode(Jc(n)),e)}return e}(e);case 110:return function(e){return 1&g&&16&p?TI(E(),e):e}(e)}return e}(n):nN(n)?function(e){if(2&g&&!_A(e)){const n=Nc(e,nN);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return TI(t.getGeneratedNameForNode(n),e)}return e}(n):n},VJ(e,(function(n){if(n.isDeclarationFile)return n;_=n,d=n.text;const i=function(e){const n=y(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);return he(a,uJ(e.statements,S,F_,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f))),t.mergeLexicalEnvironment(i,o()),oe(i,e),v(n,0,0),t.updateSourceFile(e,TI(t.createNodeArray(re(i,a)),e.statements))}(n);return Bw(i,e.readEmitHelpers()),_=void 0,d=void 0,f=void 0,p=0,i}));function y(e,t){const n=p;return p=32767&(p&~e|t),n}function v(e,t,n){p=-32768&(p&~t|n)|e}function b(e){return!!(8192&p)&&253===e.kind&&!e.expression}function x(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(YE(e)||$E(e)||ZE(e)||eP(e)||fP(e)||KP(e)||GP(e)||rP(e)||QP(e)||tP(e)||u_(e,!1)||JE(e))}(e)||u_(e,!1)&&qe(e)||!!(1&up(e))}function S(e){return x(e)?D(e,!1):e}function k(e){return x(e)?D(e,!0):e}function T(e){if(x(e)){const t=Cc(e);if(kN(t)&&Yv(t)){const t=y(32670,16449),n=D(e,!1);return v(t,229376,0),n}return D(e,!1)}return e}function w(e){return 108===e.kind?st(e,!0):S(e)}function D(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,F(e));pw(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(pw(i,e),TI(i,e),CA(i),r.push(i),Xv(e,32)){const n=Xv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));pw(n,i),r.push(n)}return je(r)}(n);case 231:return function(e){return F(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:Bu(e.name)?pw(TI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?pw(TI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=m;m=void 0;const i=y(32670,65),o=fJ(n.parameters,S,e),a=me(n),s=32768&p?t.getLocalName(n):n.name;return v(i,229376,0),m=r,t.updateFunctionDeclaration(n,uJ(n.modifiers,S,mu),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=y(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,fJ(n.parameters,S,e),void 0,me(n));return TI(o,n),pw(o,n),hw(o,16),v(i,0,0),m=r,o}(n);case 218:return function(n){const r=524288&lp(n)?y(32662,69):y(32670,65),i=m;m=void 0;const o=fJ(n.parameters,S,e),a=me(n),s=32768&p?t.getLocalName(n):n.name;return v(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 260:return ve(n);case 80:return P(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&ct();const e=uJ(n.declarations,1&n.flags?ye:ve,oP),r=t.createVariableDeclarationList(e);return pw(r,n),TI(r,n),Nw(r,n),524288&n.transformFlags&&(Bu(n.declarations[0].name)||Bu(Le(n.declarations).name))&&Sw(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return nx(t,n)}(e)),r}return vJ(n,S,e)}(n);case 255:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=vJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return vJ(t,S,e)}(n);case 269:return function(t){const n=y(7104,0),r=vJ(t,S,e);return v(n,0,0),r}(n);case 241:return function(t,n){const r=256&p?y(7104,512):y(6976,128),i=vJ(t,S,e);return v(r,0,0),i}(n);case 252:case 251:return function(n){if(m){const e=252===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(Fc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,Fc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,Fc(r),e)):252===n.kind?(m.nonLocalJumps|=2,e="break"):(m.n
6onLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;r<e.length;r++){const i=He(e[r],1);n=0===r?i:t.createBinaryExpression(n,28,i)}i=t.createBinaryExpression(n,28,i)}return t.createReturnStatement(i)}}return vJ(n,S,e)}(n);case 256:return function(e){m&&!m.labels&&(m.labels=new Map);const n=Qf(e,m&&be);return u_(n,!1)?function(e,t){switch(e.kind){case 246:case 247:return ke(e,t);case 248:return Te(e,t);case 249:return Ce(e,t);case 250:return we(e,t)}}(n,e):t.restoreEnclosingLabel(En.checkDefined(lJ(n,S,F_,t.liftToBlock)),e,m&&xe)}(n);case 246:case 247:return ke(n,void 0);case 248:return Te(n,void 0);case 249:return Ce(n,void 0);case 250:return we(n,void 0);case 244:case 222:return function(t){return vJ(t,k,e)}(n);case 210:return function(n){const r=n.properties;let i=-1,o=!1;for(let e=0;e<r.length;e++){const t=r[e];if(1048576&t.transformFlags&&4&p||(o=167===En.checkDefined(t.name).kind)){i=e;break}}if(i<0)return vJ(n,S,e);const s=t.createTempVariable(a),c=[],l=t.createAssignment(s,hw(t.createObjectLiteralExpression(uJ(r,S,Ru,0,i),n.multiLine),o?131072:0));return n.multiLine&&CA(l),c.push(l),function(e,t,n,r){const i=t.properties,o=i.length;for(let a=r;a<o;a++){const r=i[a];switch(r.kind){case 177:case 178:const i=Iv(t.properties,r);r===i.firstAccessor&&e.push(de(n,i,t,!!t.multiLine));break;case 174:e.push(et(r,n,t,t.multiLine));break;case 303:e.push(Ye(r,n,t.multiLine));break;case 304:e.push(Ze(r,n,t.multiLine));break;default:En.failBadSyntaxKind(t)}}}(c,n,s,i),c.push(n.multiLine?CA(HT(TI(t.cloneNode(s),s),s.parent)):s),t.inlineExpressions(c)}(n);case 299:return function(n){const r=y(7104,0);let i;if(En.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Bu(n.variableDeclaration.name)){const r=t.createTempVariable(void 0),o=t.createVariableDeclaration(r);TI(o,n.variableDeclaration);const a=DU(n.variableDeclaration,S,e,0,r),s=t.createVariableDeclarationList(a);TI(s,n.variableDeclaration);const c=t.createVariableStatement(void 0,s);i=t.updateCatchClause(n,o,function(e,n){const r=uJ(e.statements,S,F_);return t.updateBlock(e,[n,...r])}(n.block,c))}else i=vJ(n,S,e);return v(r,0,0),i}(n);case 304:return function(e){return TI(t.createPropertyAssignment(e.name,P(t.cloneNode(e.name))),e)}(n);case 167:case 229:return function(t){return vJ(t,S,e)}(n);case 209:return function(t){return te(t.elements,DE)?tt(t.elements,!1,!!t.multiLine,!!t.elements.hasTrailingComma):vJ(t,S,e)}(n);case 213:return function(n){if(1&up(n))return function(e){const n=yt(yt(SA(e.expression),gE).body,JE),r=e=>UE(e)&&!!Ae(e.declarationList.declarations).initializer,i=m;m=void 0;const o=uJ(n.statements,T,F_);m=i;const a=L(o,r),s=L(o,(e=>!r(e))),c=yt(Ae(a),UE).declarationList.declarations[0],l=SA(c.initializer);let u=ht(l,wb);!u&&kE(l)&&28===l.operatorToken.kind&&(u=ht(l.left,wb));const _=yt(u?SA(u.right):l,uE),d=yt(SA(_.expression),mE),p=d.body.statements;let f=0,g=-1;const h=[];if(u){const e=ht(p[f],zE);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(u.left,yt(c.name,nN))))}for(;!YE(Ne(p,g));)g--;he(h,p,f,g),g<-1&&he(h,p,g+1);const y=ht(Ne(p,g),YE);for(const t of s)YE(t)&&(null==y?void 0:y.expression)&&!nN(y.expression)?h.push(y):h.push(t);return he(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(u&&u.right,t.updateCallExpression(_,t.restoreOuterExpressions(_.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,_.arguments))))}(n);const r=SA(n.expression);return 108===r.kind||xm(r)||te(n.arguments,DE)?function(n,r){if(32768&n.transformFlags||108===n.expression.kind||xm(SA(n.expression))){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&hw(r,8),i=32768&n.transformFlags?t.createFunctionApplyCall(En.checkDefined(lJ(e,w,s_)),108===n.expression.kind?r:En.checkDefined(lJ(r,S,s_)),tt(n.arguments,!0,!1,!1)):TI(t.createFunctionCallCall(En.checkDefined(lJ(e,w,s_)),108===n.expression.kind?r:En.checkDefined(lJ(r,S,s_)),uJ(n.arguments,S,s_)),n),108===n.expression.kind){const e=t.createLogicalOr(i,X());i=t.createAssignment(E(),e)}return pw(i,n)}return bf(n)&&(p|=131072),vJ(n,S,e)}(n):t.updateCallExpression(n,En.checkDefined(lJ(n.expression,w,s_)),void 0,uJ(n.arguments,S,s_))}(n);case 214:return function(n){if(te(n.arguments,DE)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(En.checkDefined(lJ(e,S,s_)),r,tt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,
6!1)),void 0,[])}return vJ(n,S,e)}(n);case 217:return function(t,n){return vJ(t,n?k:S,e)}(n,r);case 226:return ge(n,r);case 355:return function(n,r){if(r)return vJ(n,k,e);let i;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=lJ(t,e<n.elements.length-1?k:S,s_);(i||r!==t)&&(i||(i=n.elements.slice(0,e)),En.assert(r),i.push(r))}const o=i?TI(t.createNodeArray(i),n.elements):n.elements;return t.updateCommaListExpression(n,o)}(n,r);case 15:case 16:case 17:case 18:return function(e){return TI(t.createStringLiteral(e.text),e)}(n);case 11:return function(e){return e.hasExtendedUnicodeEscape?TI(t.createStringLiteral(e.text),e):e}(n);case 9:return function(e){return 384&e.numericLiteralFlags?TI(t.createNumericLiteral(e.text),e):e}(n);case 215:return function(t){return HU(e,t,S,_,h,1)}(n);case 228:return function(e){let n=t.createStringLiteral(e.head.text);for(const r of e.templateSpans){const e=[En.checkDefined(lJ(r.expression,S,s_))];r.literal.text.length>0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return TI(n,e)}(n);case 230:return function(e){return lJ(e.expression,S,s_)}(n);case 108:return st(n,!1);case 110:return function(e){return p|=65536,2&p&&!(16384&p)&&(p|=131072),m?2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this")):e}(n);case 236:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 174:return function(e){En.assert(!yN(e.name));const n=pe(e,ix(e,-1),void 0,void 0);return hw(n,1024|lp(n)),TI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){En.assert(!yN(n.name));const r=m;m=void 0;const i=y(32670,65);let o;const a=fJ(n.parameters,S,e),s=me(n);return o=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),v(i,229376,0),m=r,o}(n);case 243:return function(n){const r=y(0,Xv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&up(e.declarationList.declarations[0].initializer))}(n))i=vJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if($e(m,i),i.initializer){let n;Bu(i.name)?n=TU(i,S,e,0):(n=t.createBinaryExpression(i.name,64,En.checkDefined(lJ(i.initializer,S,s_))),TI(n,i)),r=fe(r,n)}i=r?TI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return v(r,0,0),i}(n);case 253:return function(n){return m?(m.nonLocalJumps|=8,b(n)&&(n=N(n)),t.createReturnStatement
6(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?En.checkDefined(lJ(n.expression,S,s_)):t.createVoidZero())]))):b(n)?N(n):vJ(n,S,e)}(n);default:return vJ(n,S,e)}}function N(e){return pw(t.createReturnStatement(E()),e)}function E(){return t.createUniqueName("_this",48)}function P(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?pw(TI(t.createIdentifier(Pc(e.escapedText)),e),e):e}function F(a){a.name&&ct();const s=Oh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,at())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),u=Kh(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(TI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=y(32662,73),u=Tv(r),_=function(e,t){if(!e||!t)return!1;if(te(e.parameters))return!1;const n=Pe(e.body.statements);if(!n||!by(n)||244!==n.kind)return!1;const r=n.expression;if(!by(r)||213!==r.kind)return!1;const i=r.expression;if(!by(i)||108!==i.kind)return!1;const o=Re(r.arguments);if(!o||!by(o)||230!==o.kind)return!1;const a=o.expression;return nN(a)&&"arguments"===a.escapedText}(u,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return fJ(t&&!n?t.parameters:void 0,S,e)||[]}(u,_),void 0,function(e,n,r,a){const s=!!r&&106!==SA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement
6(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(at(),t.createNull()),t.createFunctionApplyCall(at(),X(),t.createIdentifier("arguments"))),X())));const a=t.createNodeArray(r);TI(a,e.members);const s=t.createBlock(a,!0);return TI(s,e),hw(s,3072),s}(n,s);const c=[],l=[];i();const u=t.copyStandardPrologue(e.body.statements,c,0);(a||I(e.body))&&(p|=8192),he(l,uJ(e.body.statements,S,F_,u));const _=s||8192&p;Y(c,e),ie(c,e,a),se(c,e),_?ae(c,e,X()):oe(c,e),t.mergeLexicalEnvironment(c,o()),_&&!G(e.body)&&l.push(t.createReturnStatement(E()));const d=t.createBlock(TI(t.createNodeArray([...c,...l]),e.body.statements),!0);return TI(d,e.body),function(e,n,r){const i=e;return e=function(e){for(let n=0;n<e.statements.length-1;n++){const r=e.statements[n];if(!M(r))continue;const i=r.declarationList.declarations[0];if(110!==i.initializer.kind)continue;const o=n;let a=n+1;for(;a<e.statements.length;){const t=e.statements[a];if(zE(t)&&W(SA(t.expression)))break;if(!A(t))return e;a++}const s=e.statements[a];let c=s.expression;B(c)&&(c=c.right);const l=t.updateVariableDeclaration(i,i.name,void 0,void 0,c),u=t.updateVariableDeclarationList(r.declarationList,[l]),_=t.createVariableStatement(r.modifiers,u);pw(_,s),TI(_,s);const d=t.createNodeArray([...e.statements.slice(0,o),...e.statements.slice(o+1,a),_,...e.statements.slice(a+1)]);return TI(d,e.statements),t.updateBlock(e,d)}return e}(e),e=function(e,n){for(const t of n.statements)if(134217728&t.transformFlags&&!iU(t))return e;const r=!(16384&n.transformFlags||65536&p||131072&p);for(let i=e.statements.length-1;i>0;i--){const n=e.statements[i];if(YE(n)&&n.expression&&O(n.expression)){const n=e.statements[i-1];let o;if(zE(n)&&V(SA(n.expression)))o=n.expression;else if(r&&M(n)){const e=n.declarationList.declarations[0];W(SA(e.initializer))&&(o=t.createAssignment(E(),e.initializer))}if(!o)break;
6const a=t.createReturnStatement(o);pw(a,n),TI(a,n);const s=t.createNodeArray([...e.statements.slice(0,i-1),a,...e.statements.slice(i+1)]);return TI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!iU(t))return e;return t.updateBlock(e,uJ(e.statements,H,F_))}(e,n)),r&&(e=function(e){return t.updateBlock(e,uJ(e.statements,K,F_))}(e)),e}(d,e.body,a)}(u,r,s,_));TI(d,u||r),s&&hw(d,16),n.push(d),v(l,229376,0),m=c}(c,a,u,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(ce(n));break;case 174:e.push(le(lt(t,n),n,t));break;case 177:case 178:const r=Iv(t.members,n);n===r.firstAccessor&&e.push(ue(lt(t,n),r,t));break;case 176:case 175:break;default:En.failBadSyntaxKind(n,_&&_.fileName)}}(c,a);const f=cx(hs(d,a.members.end),20),g=t.createPartiallyEmittedExpression(u);zT(g,f.end),hw(g,3072);const h=t.createReturnStatement(g);qT(h,f.pos),hw(h,3840),c.push(h),Kd(c,o());const b=t.createBlock(TI(t.createNodeArray(c),a.members),!0);return hw(b,3072),b}(a,s));hw(c,131072&lp(a)|1048576);const l=t.createPartiallyEmittedExpression(c);zT(l,a.end),hw(l,3072);const u=t.createPartiallyEmittedExpression(l);zT(u,hs(d,a.pos)),hw(u,3072);const f=t.createParenthesizedExpression(t.createCallExpression(u,void 0,s?[En.checkDefined(lJ(s.expression,S,s_))]:[]));return Fw(f,3,"* @class "),f}function A(e){return UE(e)&&C(e.declarationList.declarations,(e=>nN(e.name)&&!e.initializer))}function I(e){if(bf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!yN(t.name)&&!!ZI(t.name,I)}}return!!ZI(e,I)}function O(e){return su(e)&&"_this"===Fc(e)}function R(e){return su(e)&&"_super"===Fc(e)}function M(e){return UE(e)&&1===e.declarationList.declarations.length&&function(e){return oP(e)&&O(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function B(e){return wb(e,!0)&&O(e.left)}function J(e){return uE(e)&&cE(e.expression)&&R(e.expression.expression)&&nN(e.expression.name)&&("call"===Fc(e.expression.name)||"apply"===Fc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function q(e){return kE(e)&&57===e.operatorToken.kind&&110===e.right.kind&&J(e.left)}function z(e){return kE(e)&&56===e.operatorToken.kind&&kE(e.left)&&38===e.left.operatorToken.kind&&R(e.left.left)&&106===e.left.right.kind&&J(e.right)&&"apply"===Fc(e.right.expression.name)}function $(e){return kE(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function V(e){return B(e)&&q(e.right)}function W(e){return J(e)||q(e)||V(e)||z(e)||$(e)||function(e){return B(e)&&$(e.right)}(e)}function H(e){if(M(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(B(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return yN(n.name)?t.replacePropertyName(n,vJ(n.name,H,void 0)):e}}return vJ(e,H,void 0)}function K(e){if(J(e)&&2===e.arguments.length&&nN(e.arguments[1])&&"arguments"===Fc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(at(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return yN(n.name)?t.replacePropertyName(n,vJ(n.name,K,void 0)):e}}return vJ(e,K,void 0)}function G(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return G(t.thenStatement)&&G(t.elseStatement)}else if(241===e.kind){const t=Oe(e.statements);if(t&&G(t))return!0}return!1}function X(){return hw(t.createThis(),8)}function Q(e){return void 0!==e.initializer||Bu(e.name)}function Y(e,t){if(!te(t.parameters,Q))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(Bu(t)?n=ee(e,r,t,i)||n:i&&(ne(e,r,t,i),n=!0))}return n}function ee(n,r,i,o){return i.elements.length>0?(Qd(n,hw(t.createVariableStatement(void 0,t.createVariableDeclarationList(DU(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Qd(n,hw(t.createExpressionStatement
6(t.createAssignment(t.getGeneratedNameForNode(r),En.checkDefined(lJ(o,S,s_)))),2097152)),!0)}function ne(e,n,r,i){i=En.checkDefined(lJ(i,S,s_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),hw(TI(t.createBlock([t.createExpressionStatement(hw(TI(t.createAssignment(hw(HT(TI(t.cloneNode(r),r),r.parent),96),hw(i,3168|lp(i))),n),3072))]),n),3905));CA(o),TI(o,n),hw(o,2101056),Qd(e,o)}function ie(n,r,i){const o=[],a=Oe(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?HT(TI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);hw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,u=t.createLoopVariable();o.push(hw(TI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const _=t.createForStatement(TI(t.createVariableDeclarationList([t.createVariableDeclaration(u,void 0,void 0,t.createNumericLiteral(l))]),a),TI(t.createLessThan(u,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),TI(t.createPostfixIncrement(u),a),t.createBlock([CA(TI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?u:t.createSubtract(u,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),u))),a))]));return hw(_,2097152),CA(_),o.push(_),80!==a.name.kind&&o.push(hw(TI(t.createVariableStatement(void 0,t.createVariableDeclarationList(DU(a,S,e,0,c))),a),2097152)),Gd(n,o),!0}function oe(e,n){return!!(131072&p&&219!==n.kind)&&(ae(e,n,t.createThis()),!0)}function ae(n,r,i){1&g||(g|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(E(),void 0,void 0,i)]));hw(o,2100224),Sw(o,r),Qd(n,o)}function se(e,n){if(32768&p){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(hw(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(hw(t.createThis(),8),t.createBinaryExpression(hw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(hw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return En.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));hw(i,2100224),Qd(e,i)}return e}function ce(e){return TI(t.createEmptyStatement(),e)}function le(n,r,i){const o=Dw(r),a=xw(r),s=pe(r,r,void 0,i),c=lJ(r.name,S,hu);let l;if(En.assert(c),!rN(c)&&ek(e.getCompilerOptions())){const e=yN(c)?c.expression:nN(c)?t.createStringLiteral(Pc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=ZF(t,n,c,r.name);l=t.createAssignment(e,s)}hw(s,3072),Sw(s,a);const u=TI(t.createExpressionStatement(l),r);return pw(u,r),Nw(u,o),hw(u,96),u}function ue(e,n,r){const i=t.createExpressionStatement(de(e,n,r,!1));return hw(i,3072),Sw(i,xw(n.firstAccessor)),i}function de(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=HT(TI(t.cloneNode(e),e),e.parent);hw(s,3136),Sw(s,n.name);const c=lJ(n.name,S,hu);if(En.assert(c),rN(c))return En.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=cA(t,c);hw(l,3104),Sw(l,n.name);const u=[];if(r){const e=pe(r,void 0,void 0,o);Sw(e,xw(r)),hw(e,1024);const n=t.createPropertyAssignment("get",e);Nw(n,Dw(r)),u.push(n)}if(i){const e=pe(i,void 0,void 0,o);Sw(e,xw(i)),hw(e,1024);const n=t.createPropertyAssignment("set",e);Nw(n,Dw(i)),u.push(n)}u.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const _=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(u,!0)]);return a&&CA(_),_}function pe(n,r,i,o){const a=m;m=void 0;const s=o&&Du(o)&&!Qv(n)?y(32670,73):y(32670,65),c=fJ(n.parameters,S,e),l=me(n);return 32768&p&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),v(s,229376,0),m=a,pw(TI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function me(e){let n,r,a=!1,s=!1;const c=[],l=[],u=e.body;let d;if(i(),JE(u)&&(d=t.copyStandardPrologue(u.statements,c,0,!1),d=t.copyCustomPrologue(u.statements,l,d,S,wf),d=t.copyCustomPrologue(u.statements,l,d,S,Nf)),a=Y(l,e)||a,a=ie(l,e,!1)||a,JE(u))d=t.copyCustomPrologue(u.statements,l,d,S),n=u.statements,he(l,uJ(u.statements,S,F_,d)),!a&&u.multiLine&&(a=!0);else{En.assert(219===e.kind),n=rx(u,-1);const i=e.equalsGreaterThanToken;by(i)||by(u)||(px(i,u,_)?s=!0:a=!0);
6const o=lJ(u,S,s_),c=t.createReturnStatement(o);TI(c,u),Lw(c,u),hw(c,2880),l.push(c),r=u}if(t.mergeLexicalEnvironment(c,o()),se(c,e),oe(c,e),te(c)&&(a=!0),l.unshift(...c),JE(u)&&_e(l,u.statements))return u;const p=t.createBlock(TI(t.createNodeArray(l),n),a);return TI(p,e.body),!a&&s&&hw(p,1),r&&Tw(p,20,r),pw(p,e.body),p}function ge(n,r){return Nb(n)?TU(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,En.checkDefined(lJ(n.left,k,s_)),n.operatorToken,En.checkDefined(lJ(n.right,r?k:S,s_))):vJ(n,S,e)}function ye(n){return Bu(n.name)?ve(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):vJ(n,S,e)}function ve(t){const n=y(32,0);let r;return r=Bu(t.name)?DU(t,S,e,0,void 0,!!(32&n)):vJ(t,S,e),v(n,0,0),r}function be(e){m.labels.set(Fc(e.label),!0)}function xe(e){m.labels.set(Fc(e.label),!1)}function Se(n,i,a,s,c){const l=y(n,i),u=function(n,i,a,s){if(!qe(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(HE(n)?function(e){return t.updateForStatement(e,lJ(e.initializer,k,y_),lJ(e.condition,S,s_),lJ(e.incrementor,k,s_),En.checkDefined(lJ(e.statement,S,F_,t.liftToBlock)))}(n):vJ(n,S,e),i,m&&xe);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&xc(t)){const i=Be(e)||Je(e)||Ue(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables)),i}(n),l=[],u=m;m=c;const _=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);const s=t.createVariableStatement(void 0,hw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,hw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,En.checkDefined(lJ(t.createBlock(a,!0),S,JE))),o))]),4194304)),c=t.createVariableDeclarationList(j(n.loopOutParameters,We));return{functionName:r,containsYield:i,functionDeclaration:s,part:c}}(n,c):void 0,d=ze(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=lJ(e.statement,S,F_,t.liftToBlock),c=o(),l=[];(Je(e)||Ue(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(En.checkDefined(lJ(e.incrementor,S,s_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,En.checkDefined(lJ(e.condition,S,s_))),En.checkDefined(lJ(t.createBreakStatement(),S,F_))))),En.assert(s),JE(s)?he(l,s.statements):l.push(s),Ke(n.loopOutParameters,1,1,l),Kd(l,c);const u=t.createBlock(l,!0);JE(s)&&pw(u,s);const _=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),_&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,hw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,hw(t.createFunctionExpression(void 0,_?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,u),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,j(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),hw(s,8388608)):s;
6if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,_);return{functionName:a,containsYield:_,functionDeclaration:f,part:m}}(n,c,u):void 0;let f;if(m=u,_&&l.push(_.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,u),_&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),hw(r,8388608)):r;return t.createExpressionStatement(i)}(_.functionName,_.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=Ve(n,_,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&xe)}else{const e=Ve(n,_,En.checkDefined(lJ(n.statement,S,F_,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&xe)}return l.push(f),l}(a,s,l,c);return v(l,0,0),u}function ke(e,t){return Se(0,1280,e,t)}function Te(e,t){return Se(5056,3328,e,t)}function Ce(e,t){return Se(3008,5376,e,t)}function we(e,t){return Se(3008,5376,e,t,s.downlevelIteration?Ie:Fe)}function De(n,r,i){const o=[],a=n.initializer;if(aP(a)){7&n.initializer.flags&&ct();const i=Pe(a.declarations);if(i&&Bu(i.name)){const a=DU(i,S,e,0,r),s=TI(t.createVariableDeclarationList(a),n.initializer);pw(s,n.initializer),Sw(s,nx(a[0].pos,Le(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(TI(t.createVariableStatement(void 0,pw(TI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),ix(a,-1)),a)),rx(a,-1)))}else{const e=t.createAssignment(a,r);Nb(e)?o.push(t.createExpressionStatement(ge(e,!0))):(zT(e,a.end),o.push(TI(t.createExpressionStatement(En.checkDefined(lJ(e,S,s_))),rx(a,-1))))}if(i)return Ee(he(o,i));{const e=lJ(n.statement,S,F_,t.liftToBlock);return En.assert(e),JE(e)?t.updateBlock(e,TI(t.createNodeArray(re(o,e.statements)),e.statements)):(o.push(e),Ee(o))}}function Ee(e){return hw(t.createBlock(t.createNodeArray(e),!0),864)}function Fe(e,n,r){const i=lJ(e.expression,S,s_);En.assert(i);const o=t.createLoopVariable(),a=nN(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);hw(i,96|lp(i));const s=TI(t.createForStatement(hw(TI(t.createVariableDeclarationList([TI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),ix(e.expression,-1)),TI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),TI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),TI(t.createPostfixIncrement(o),e.expression),De(e,t.createElementAccessExpression(a,o),r)),e);return hw(s,512),TI(s,e),t.restoreEnclosingLabel(s,n,m&&xe)}function Ie(e,r,i,o){const s=lJ(e.expression,S,s_);En.assert(s);const c=nN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=nN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),u=t.createUniqueName("e"),_=t.getGeneratedNameForNode(u),d=t.createTempVariable(void 0),p=TI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(u),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(u,t.createVoidZero()),p]):p,h=hw(TI(t.createForStatement
6(hw(TI(t.createVariableDeclarationList([TI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),De(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&xe)]),t.createCatchClause(t.createVariableDeclaration(_),hw(t.createBlock([t.createExpressionStatement(t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("error",_)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([hw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,hw(t.createBlock([hw(t.createIfStatement(u,t.createThrowStatement(t.createPropertyAccessExpression(u,"error"))),1)]),1))]))}function Me(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return HE(e)&&!!e.initializer&&Me(e.initializer)}function Je(e){return HE(e)&&!!e.condition&&Me(e.condition)}function Ue(e){return HE(e)&&!!e.incrementor&&Me(e.incrementor)}function qe(e){return ze(e)||Be(e)}function ze(e){return c.hasNodeCheckFlag(e,4096)}function $e(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)EE(e)||t(e.name)}(t.name)}function Ve(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&Me(e.condition),o=i||e.incrementor&&Me(e.incrementor);return t.updateForStatement(e,lJ(n?n.part:e.initializer,k,y_),lJ(i?void 0:e.condition,S,s_),lJ(o?void 0:e.incrementor,k,s_),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,En.checkDefined(lJ(e.initializer,S,y_)),En.checkDefined(lJ(e.expression,S,s_)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,En.checkDefined(lJ(e.initializer,S,y_)),En.checkDefined(lJ(e.expression,S,s_)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,En.checkDefined(lJ(e.expression,S,s_)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,En.checkDefined(lJ(e.expression,S,s_)),n)}(e,r);default:return En.failBadSyntaxKind(e,"IterationStatement expected")}}function We(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}
6else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Qe(e,n,r,i,o){const a=n.name;if(Bu(a))for(const t of a.elements)EE(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+Fc(a));let o=0;s&&(o|=1),HE(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(ZF(t,n,En.checkDefined(lJ(e.name,S,hu))),En.checkDefined(lJ(e.initializer,S,s_)));return TI(i,e),r&&CA(i),i}function Ze(e,n,r){const i=t.createAssignment(ZF(t,n,En.checkDefined(lJ(e.name,S,hu))),t.cloneNode(e.name));return TI(i,e),r&&CA(i),i}function et(e,n,r,i){const o=t.createAssignment(ZF(t,n,En.checkDefined(lJ(e.name,S,hu))),pe(e,e,void 0,r));return TI(o,e),i&&CA(o),o}function tt(e,r,i,o){const a=e.length,c=U(Z(e,nt,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||QT(e.expression)||RD(e.expression,"___spreadArray"))return e.expression}const l=n(),u=0!==c[0].kind;let _=u?t.createArrayLiteralExpression():c[0].expression;for(let t=u?0:1;t<c.length;t++){const e=c[t];_=l.createSpreadArrayHelper(_,e.expression,1===e.kind&&!r)}return _}function nt(e){return DE(e)?rt:ot}function rt(e){return j(e,it)}function it(e){En.assertNode(e,DE);let t=lJ(e.expression,S,s_);En.assert(t);const r=RD(t,"___read");let i=r||QT(t)?2:1;return!s.downlevelIteration||1!==i||aE(t)||r||(t=n().createReadHelper(t,void 0),i=2),hq(i,t)}function ot(e,n,r){return hq(0,t.createArrayLiteralExpression(uJ(t.createNodeArray(e,r),S,s_),n))}function at(){return t.createUniqueName("_super",48)}function st(e,n){const r=8&p&&!n?t.createPropertyAccessExpression(pw(at(),e),"prototype"):at();return pw(r,e),Nw(r,e),Sw(r,e),r}function ct(){2&g||(g|=2,e.enableSubstitution(80))}function lt(e,n){return Qv(n)?t.getInternalName(e):t.createPropertyAccessExpression(t.getInternalName(e),"prototype")}}function vq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=BS(s),l=e.getEmitResolver(),u=e.onSubstituteNode;let _,p,f,m,g,h,y,v,b,x;e.onSubstituteNode=function(e,n){return n=u(e,n),1===e?function(e){return nN(e)?function(e){if(!su(e)&&_&&_.has(Fc(e))){const n=Cc(e);if(nN(n)&&n.parent){const r=l.getReferencedValueDeclaration(n);if(r){const n=p[qJ(r)];if(n){const r=HT(TI(t.cloneNode(n),n),n.parent);return Sw(r,e),Nw(r,e),r}}}}return e}(e):e}(n):n};let S,k,T,C,w,D,N,E,P,F,A,I,O=1,L=0,R=0;return VJ(e,(function(t){if(t.isDeclarationFile||!(2048&t.transformFlags))return t;const n=vJ(t,M,e);return Bw(n,e.readEmitHelpers()),n}));function M(t){const n=t.transformFlags;return m?function(t){switch(t.kind){case 246:case 247:return function(t){return m?(ae(),t=vJ(t,M,e),ce(),t):vJ(t,M,e)}(t);case 255:return function(t){return m&&ne({kind:2,isScript:!0,breakLabel:-1}),t=vJ(t,M,e),m&&le(),t}(t);case 256:return function(t){return m&&ne({kind:4,isScript:!0,labelText:Fc(t.label),breakLabel:-1}),t=vJ(t,M,e),m&&ue(),t}(t);default:return B(t)}}(t):f?B(t):xu(t)&&t.asteriskToken?function(e){switch(e.kind){case 262:return J(e);case 218:return U(e);default:return En.failBadSyntaxKind(e)}}(t):2048&n?vJ(t,M,e):t}function B(r){switch(r.kind){case 262:return J(r);case 218:return U(r);case 177:case 178:return function(t){const n=f,r=m;return f=!1,m=!1,t=vJ(t,M,e),f=n,m=r,t}(r);case 243:return function(e){if(!(1048576&e.transformFlags)){if(2097152&lp(e))return e;for(const t of e.declarationList.declarations)a(t.name);const n=Sx(e.declarationList);if(0===n.length)return;return Sw(t.createExpressionStatement(t.inlineExpressions(j(n,G))),e)}K(e.declarationList)}(r);case 248:return function(n){m&&ae();const r=n.initializer;if(r&&aP(r)){for(const e of r.declarations)a(e.name);const i=Sx(r);
6n=t.updateForStatement(n,i.length>0?t.inlineExpressions(j(i,G)):void 0,lJ(n.condition,M,s_),lJ(n.incrementor,M,s_),hJ(n.statement,M,e))}else n=vJ(n,M,e);return m&&ce(),n}(r);case 249:return function(n){m&&ae();const r=n.initializer;if(aP(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,En.checkDefined(lJ(n.expression,M,s_)),En.checkDefined(lJ(n.statement,M,F_,t.liftToBlock)))}else n=vJ(n,M,e);return m&&ce(),n}(r);case 252:return function(t){if(m){const e=me(t.label&&Fc(t.label));if(e>0)return ve(e,t)}return vJ(t,M,e)}(r);case 251:return function(t){if(m){const e=ge(t.label&&Fc(t.label));if(e>0)return ve(e,t)}return vJ(t,M,e)}(r);case 253:return function(e){return n=lJ(e.expression,M,s_),r=e,TI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ye(2),n]:[ye(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=ky(n);switch(r){case 0:return function(n){return X(n.right)?yb(n.operatorToken.kind)?function(e){const t=ee(),n=Z();return Se(n,En.checkDefined(lJ(e.left,M,s_)),e.left),56===e.operatorToken.kind?Ce(t,n,e.left):Te(t,n,e.left),Se(n,En.checkDefined(lJ(e.right,M,s_)),e.right),te(t),n}(n):28===n.operatorToken.kind?z(n):t.updateBinaryExpression(n,Y(En.checkDefined(lJ(n.left,M,s_))),n.operatorToken,En.checkDefined(lJ(n.right,M,s_))):vJ(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Y(En.checkDefined(lJ(r.expression,M,t_))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Y(En.checkDefined(lJ(r.expression,M,t_))),Y(En.checkDefined(lJ(r.argumentExpression,M,s_))));break;default:e=En.checkDefined(lJ(r,M,s_))}const o=n.operatorToken.kind;return nU(o)?TI(t.createAssignment(e,TI(t.createBinaryExpression(Y(e),rU(o),En.checkDefined(lJ(i,M,s_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,En.checkDefined(lJ(i,M,s_)))}return vJ(n,M,e)}(n);default:return En.assertNever(r)}}(r);case 355:return function(e){let n=[];for(const r of e.elements)kE(r)&&28===r.operatorToken.kind?n.push(z(r)):(X(r)&&n.length>0&&(we(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(En.checkDefined(lJ(r,M,s_))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ce(e,En.checkDefined(lJ(t.condition,M,s_)),t.condition),Se(r,En.checkDefined(lJ(t.whenTrue,M,s_)),t.whenTrue),ke(n),te(e),Se(r,En.checkDefined(lJ(t.whenFalse,M,s_)),t.whenFalse),te(n),r}return vJ(t,M,e)}(r);case 229:return function(e){const r=ee(),i=lJ(e.expression,M,s_);return e.asteriskToken?function(e,t){we(7,[e],t)}(8388608&lp(e.expression)?i:TI(n().createValuesHelper(i),e),e):function(e,t){we(6,[e],t)}(i,e),te(r),o=e,TI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),o);var o}(r);case 209:return function(e){return $(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(uJ(n,M,Ru,0,i),r));const a=qe(n,s,[],i);return a.push(r?CA(HT(TI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a);function s(n,i){X(i)&&n.length>0&&(xe(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=lJ(lA(t,e,i,o),M,s_);return a&&(r&&CA(a),n.push(a)),n}}(r);case 212:return function(n){return X(n.argumentExpression)?t.updateElementAccessExpression(n,Y(En.checkDefined(lJ(n.expression,M,t_))),En.checkDefined(lJ(n.argumentExpression,M,s_))):vJ(n,M,e)}(r);case 213:return function(n){if(!xf(n)&&d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return pw(TI(t.createFunctionApplyCall(Y(En.checkDefined(lJ(e,M,t_))),r,$(n.arguments)),n),n)}return vJ(n,M,e)}(r);case 214:return function(n){if(d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return pw(TI(t.createNewExpression(t.createFunctionApplyCall(Y(En.checkDefined(lJ(e,M,s_))),r,$(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return vJ(n,M,e)}(r);default:return vJ(r,M,e)}}(r):4196352&r.transformFlags?vJ(r,M,e):r}}function J(n){if(n.asteriskToken)n=pw(TI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,fJ(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=vJ(n,M,e),f=t,m=r}return f?void o(n):n}function U(n){if(n.asteriskToken)n=pw(TI(t.createFunctionExpression(void 0,void 0,n.name,void 0,fJ(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=vJ(n,M,e),f=t,m=r}return n}function q(e){const o=[],a=f,s=m,c=g,l=h,u=y,_=v,d=b,p=x,j=O,B=S,J=k,U=T,q=C;f=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,O=1,S=void 0,k=void 0,T=void 0,C=t.createTempVariable(void 0),r();const z=t.copyPrologue(e.statements,o,!1,M);V(e.statements,z);const $=function(){L=0,R=0,w=void 0,D=!1,N=!1,E=void 0,P=void 0,F=void 0,A=void 0,I=void 0;const e=function(){if(S){for(let e=0;e<S.length;e++)Pe(e);De(S.length)}else De(0);if(E){const e=t.createPropertyAccessExpression(C,"label");
6return[CA(t.createSwitchStatement(e,t.createCaseBlock(E)))]}return P||[]}();return n().createGeneratorHelper(hw(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C)],void 0,t.createBlock(e,e.length>0)),1048576))}();return Kd(o,i()),o.push(t.createReturnStatement($)),f=a,m=s,g=c,h=l,y=u,v=_,b=d,x=p,O=j,S=B,k=J,T=U,C=q,TI(t.createBlock(o,e.multiLine),e)}function z(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){kE(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(we(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(En.checkDefined(lJ(e,M,s_))))}}function $(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=uJ(e,M,s_,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=qe(e,(function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(En.checkDefined(lJ(r,M,s_))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):TI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function V(e,t=0){const n=e.length;for(let r=t;r<n;r++)H(e[r])}function W(e){JE(e)?V(e.statements):H(e)}function H(n){const r=m;m||(m=X(n)),function(n){switch(n.kind){case 241:return function(e){X(e)?V(e.statements):xe(lJ(e,M,F_))}(n);case 244:return function(e){xe(lJ(e,M,F_))}(n);case 245:return function(e){if(X(e))if(X(e.thenStatement)||X(e.elseStatement)){const t=ee(),n=e.elseStatement?ee():void 0;Ce(e.elseStatement?n:t,En.checkDefined(lJ(e.expression,M,s_)),e.expression),W(e.thenStatement),e.elseStatement&&(ke(t),te(n),W(e.elseStatement)),te(t)}else xe(lJ(e,M,F_));else xe(lJ(e,M,F_))}(n);case 246:return function(e){if(X(e)){const t=ee(),n=ee();se(t),te(n),W(e.statement),te(t),Te(n,En.checkDefined(lJ(e.expression,M,s_))),ce()}else xe(lJ(e,M,F_))}(n);case 247:return function(e){if(X(e)){const t=ee(),n=se(t);te(t),Ce(n,En.checkDefined(lJ(e.expression,M,s_))),W(e.statement),ke(t),ce()}else xe(lJ(e,M,F_))}(n);case 248:return function(e){if(X(e)){const n=ee(),r=ee(),i=se(r);if(e.initializer){const n=e.initializer;aP(n)?K(n):xe(TI(t.createExpressionStatement(En.checkDefined(lJ(n,M,s_))),n))}te(n),e.condition&&Ce(i,En.checkDefined(lJ(e.condition,M,s_))),W(e.statement),te(r),e.incrementor&&xe(TI(t.createExpressionStatement(En.checkDefined(lJ(e.incrementor,M,s_))),e.incrementor)),ke(n),ce()}else xe(lJ(e,M,F_))}(n);case 249:return function(e){if(X(e)){const n=Z(),r=Z(),i=Z(),o=t.createLoopVariable(),s=e.initializer;a(o),Se(n,En.checkDefined(lJ(e.expression,M,s_))),Se(r,t.createArrayLiteralExpression()),xe(t.createForInStatement(i,n,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(r,"push"),void 0,[i])))),Se(o,t.createNumericLiteral(0));const c=ee(),l=ee(),u=se(l);let _;if(te(c),Ce(u,t.createLessThan(o,t.createPropertyAccessExpression(r,"length"))),Se(i,t.createElementAccessExpression(r,o)),Ce(l,t.createBinaryExpression(i,103,n)),aP(s)){for(const e of s.declarations)a(e.name);_=t.cloneNode(s.declarations[0].name)}else _=En.checkDefined(lJ(s,M,s_)),En.assert(t_(_));Se(_,i),W(e.statement),te(l),xe(t.createExpressionStatement(t.createPostfixIncrement(o))),ke(c),ce()}else xe(lJ(e,M,F_))}(n);case 251:return function(e){const t=ge(e.label?Fc(e.label):void 0);t>0?ke(t,e):xe(e)}(n);case 252:return function(e){const t=me(e.label?Fc(e.label):void 0);t>0?ke(t,e):xe(e)}(n);case 253:return function(e){we(8,[lJ(e.expression,M,s_)],e)}(n);case 254:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(En.checkDefined(lJ(e.expression,M,s_)))),W(e.statement),En.assert(1===oe()),te(re().endLabel)):xe(lJ(e,M,F_))}(n);case 255:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(En.checkDefined(lJ(e.expression,M,s_))),a=[];let s=-1;for(let e=0;e<r;e++){const t=n.clauses[e];a.push(ee()),297===t.kind&&-1===s&&(s=e)}let c=0,l=[];for(;c<r;){let e=0;for(let i=c;i<r;i++){const r=n.clauses[i];if(296===r.kind){if(X(r.expression)&&l.length>0)break;l.push(t.createCaseClause(En.checkDefined(lJ(r.expression,M,s_)),[ve(a[i],r.expression)])
6)}else e++}l.length&&(xe(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}ke(s>=0?a[s]:i);for(let e=0;e<r;e++)te(a[e]),V(n.clauses[e].statements);le()}else xe(lJ(e,M,F_))}(n);case 256:return function(e){X(e)?(function(e){const t=ee();ne({kind:4,isScript:!1,labelText:e,breakLabel:t})}(Fc(e.label)),W(e.statement),ue()):xe(lJ(e,M,F_))}(n);case 257:return function(e){var n;we(9,[En.checkDefined(lJ(null!=(n=e.expression)?n:t.createVoidZero(),M,s_))],e)}(n);case 258:return function(n){X(n)?(function(){const e=ee(),t=ee();te(e),ne({kind:0,state:0,startLabel:e,endLabel:t}),be()}(),W(n.tryBlock),n.catchClause&&(function(n){let r;if(En.assert(0===oe()),su(n.name))r=n.name,a(n.name);else{const t=Fc(n.name);r=Z(t),_||(_=new Map,p=[],e.enableSubstitution(80)),_.set(t,!0),p[qJ(n)]=r}const i=ie();En.assert(i.state<1),ke(i.endLabel);const o=ee();te(o),i.state=1,i.catchVariable=r,i.catchLabel=o,Se(r,t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[])),be()}(n.catchClause.variableDeclaration),W(n.catchClause.block)),n.finallyBlock&&(function(){En.assert(0===oe());const e=ie();En.assert(e.state<2),ke(e.endLabel);const t=ee();te(t),e.state=2,e.finallyLabel=t}(),W(n.finallyBlock)),function(){En.assert(0===oe());const e=re();e.state<2?ke(e.endLabel):we(10),te(e.endLabel),be(),e.state=3}()):xe(vJ(n,M,e))}(n);default:xe(lJ(n,M,F_))}}(n),m=r}function K(e){for(const s of e.declarations){const e=t.cloneNode(s.name);Nw(e,s.name),a(e)}const n=Sx(e),r=n.length;let i=0,o=[];for(;i<r;){for(let e=i;e<r;e++){const t=n[e];if(X(t.initializer)&&o.length>0)break;o.push(G(t))}o.length&&(xe(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return Sw(t.createAssignment(Sw(t.cloneNode(e.name),e.name),En.checkDefined(lJ(e.initializer,M,s_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n<t;n++)if(X(e[n]))return n;return-1}function Y(e){if(su(e)||8192&lp(e))return e;const n=t.createTempVariable(a);return Se(n,e,e),n}function Z(e){const n=e?t.createUniqueName(e):t.createTempVariable(void 0);return a(n),n}function ee(){b||(b=[]);const e=O;return O++,b[e]=-1,e}function te(e){En.assert(void 0!==b,"No labels were defined."),b[e]=S?S.length:0}function ne(e){g||(g=[],y=[],h=[],v=[]);const t=y.length;return y[t]=0,h[t]=S?S.length:0,g[t]=e,v.push(e),t}function re(){const e=ie();if(void 0===e)return En.fail("beginBlock was never called.");const t=y.length;return y[t]=1,h[t]=S?S.length:0,g[t]=e,v.pop(),e}function ie(){return Oe(v)}function oe(){const e=ie();return e&&e.kind}function ae(){ne({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){const t=ee();return ne({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ce(){En.assert(3===oe());const e=re(),t=e.breakLabel;e.isScript||te(t)}function le(){En.assert(2===oe());const e=re(),t=e.breakLabel;e.isScript||te(t)}function ue(){En.assert(4===oe());const e=re();e.isScript||te(e.breakLabel)}function _e(e){return 2===e.kind||3===e.kind}function de(e){return 4===e.kind}function pe(e){return 3===e.kind}function fe(e,t){for(let n=t;n>=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(_e(n)&&fe(e,t-1))return n.breakLabel}else for(let t=v.length-1;t>=0;t--){const e=v[t];if(_e(e))return e.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let t=v.length-1;t>=0;t--){const e=v[t];if(pe(e))return e.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ye(e){const n=t.createNumericLiteral(e);return Ow(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function ve(e,n){return En.assertLessThan(0,e,"Invalid label"),TI(t.createReturnStatement
6(t.createArrayLiteralExpression([ye(3),he(e)])),n)}function be(){we(0)}function xe(e){e?we(1,[e]):be()}function Se(e,t,n){we(2,[e,t],n)}function ke(e,t){we(3,[e],t)}function Te(e,t,n){we(4,[e,t],n)}function Ce(e,t,n){we(5,[e,t],n)}function we(e,t,n){void 0===S&&(S=[],k=[],T=[]),void 0===b&&te(ee());const r=S.length;S[r]=e,k[r]=t,T[r]=n}function De(e){(function(e){if(!N)return!0;if(!b||!x)return!1;for(let t=0;t<b.length;t++)if(b[t]===e&&x[t])return!0;return!1})(e)&&(Ee(e),I=void 0,Ae(void 0,void 0)),P&&E&&Ne(!1),function(){if(void 0!==x&&void 0!==w)for(let e=0;e<w.length;e++){const t=w[e];if(void 0!==t)for(const n of t){const t=x[n];if(void 0!==t)for(const n of t)n.text=String(e)}}}()}function Ne(e){if(E||(E=[]),P){if(I)for(let e=I.length-1;e>=0;e--){const n=I[e];P=[t.createWithStatement(n.expression,t.createBlock(P))]}if(A){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=A;P.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([he(e),he(n),he(r),he(i)])]))),A=void 0}e&&P.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(R+1))))}E.push(t.createCaseClause(t.createNumericLiteral(R),P||[])),P=void 0}function Ee(e){if(b)for(let t=0;t<b.length;t++)b[t]===e&&(P&&(Ne(!D),D=!1,N=!1,R++),void 0===w&&(w=[]),void 0===w[R]?w[R]=[t]:w[R].push(t))}function Pe(e){if(Ee(e),function(e){if(g)for(;L<y.length&&h[L]<=e;L++){const e=g[L],t=y[L];switch(e.kind){case 0:0===t?(F||(F=[]),P||(P=[]),F.push(A),A=e):1===t&&(A=F.pop());break;case 1:0===t?(I||(I=[]),I.push(e)):1===t&&I.pop()}}}(e),D)return;D=!1,N=!1;const n=S[e];if(0===n)return;
6if(10===n)return D=!0,void Fe(t.createReturnStatement(t.createArrayLiteralExpression([ye(7)])));const r=k[e];if(1===n)return Fe(r[0]);const i=T[e];switch(n){case 2:return o=r[0],a=r[1],s=i,void Fe(TI(t.createExpressionStatement(t.createAssignment(o,a)),s));case 3:return function(e,n){D=!0,Fe(hw(TI(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),he(e)])),n),768))}(r[0],i);case 4:return function(e,n,r){Fe(hw(t.createIfStatement(n,hw(TI(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),he(e)])),r),768)),1))}(r[0],r[1],i);case 5:return function(e,n,r){Fe(hw(t.createIfStatement(t.createLogicalNot(n),hw(TI(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),he(e)])),r),768)),1))}(r[0],r[1],i);case 6:return function(e,n){D=!0,Fe(hw(TI(t.createReturnStatement(t.createArrayLiteralExpression(e?[ye(4),e]:[ye(4)])),n),768))}(r[0],i);case 7:return function(e,n){D=!0,Fe(hw(TI(t.createReturnStatement(t.createArrayLiteralExpression([ye(5),e])),n),768))}(r[0],i);case 8:return Ae(r[0],i);case 9:return function(e,n){D=!0,N=!0,Fe(TI(t.createThrowStatement(e),n))}(r[0],i)}var o,a,s}function Fe(e){e&&(P?P.push(e):P=[e])}
6function Ae(e,n){D=!0,N=!0,Fe(hw(TI(t.createReturnStatement(t.createArrayLiteralExpression(e?[ye(2),e]:[ye(2)])),n),768))}}function bq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getCompilerOptions(),s=e.getEmitResolver(),l=e.getEmitHost(),u=BS(a),d=JS(a),p=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=function(e,n){return(n=p(e,n)).id&&y[n.id]?n:1===e?function(e){switch(e.kind){case 80:return Q(e);case 213:return function(e){if(nN(e.expression)){const n=Q(e.expression);if(y[ZB(n)]=!0,!(nN(n)||8192&lp(e.expression)))return bw(t.updateCallExpression(e,n,void 0,e.arguments),16)}return e}(e);case 215:return function(e){if(nN(e.tag)){const n=Q(e.tag);if(y[ZB(n)]=!0,!(nN(n)||8192&lp(e.tag)))return bw(t.updateTaggedTemplateExpression(e,n,void 0,e.template),16)}return e}(e);case 226:return function(e){if(kb(e.operatorToken.kind)&&nN(e.left)&&(!su(e.left)||lu(e.left))&&!dA(e.left)){const t=Y(e.left);if(t){let n=e;for(const r of t)y[ZB(n)]=!0,n=G(r,n,e);return n}}return e}(e)}return e}(n):ZP(n)?function(e){const n=e.name,r=Q(n);if(r!==n){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return TI(t.createPropertyAssignment(n,i),e)}return TI(t.createPropertyAssignment(n,r),e)}return e}(n):n},e.onEmitNode=function(e,t,n){307===t.kind?(g=t,h=m[qJ(g)],f(e,t,n),g=void 0,h=void 0):f(e,t,n)},e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(307);const m=[];let g,h;const y=[];let v;return VJ(e,(function(t){if(t.isDeclarationFile||!(Np(t,a)||8388608&t.transformFlags||df(t)&&nk(a)&&a.outFile))return t;g=t,h=GJ(e,t),m[qJ(t)]=h;const n=function(e){switch(e){case 2:return S;case 3:return k;default:return x}}(d)(t);return g=void 0,h=void 0,v=!1,n}));function b(){return!(nT(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator)||h.exportEquals||!aO(g))}function x(n){r();const o=[],s=ak(a,"alwaysStrict")||aO(g),c=t.copyPrologue(n.statements,o,s&&!df(n),N);if(b()&&fe(o,W()),te(h.exportedNames)){const e=50;for(let n=0;n<h.exportedNames.length;n+=e)fe(o,t.createExpressionStatement(qe(h.exportedNames.slice(n,n+e),((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Fc(n))),e)),t.createVoidZero())))}for(const e of h.exportedFunctions)z(o,e);fe(o,lJ(h.externalHelpersImportDeclaration,N,F_)),he(o,uJ(n.statements,N,F_,c)),D(o,!1),Kd(o,i());const l=t.updateSourceFile(n,TI(t.createNodeArray(o),n.statements));return Bw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=AA(t,n,l,a),o=df(n)&&n,{aliasedModuleNames:s,unaliasedModuleNames:u,importAliasNames:_}=T(n,!0),d=t.updateSourceFile(n,TI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?c:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...s,...u]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),..._],void 0,w(n))]))]),n.statements));return Bw(d,e.readEmitHelpers()),d}function k(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=T(n,!1),s=AA(t,n,l,a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,TI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),hw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement
6(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),u=t.updateSourceFile(n,TI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(c,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,w(n))]))]),n.statements));return Bw(u,e.readEmitHelpers()),u}function T(e,n){const r=[],i=[],o=[];for(const a of e.amdDependencies)a.name?(r.push(t.createStringLiteral(a.path)),o.push(t.createParameterDeclaration(void 0,void 0,a.name))):i.push(t.createStringLiteral(a.path));for(const c of h.externalImports){const e=FA(t,c,g,l,s,a),u=PA(t,c,g);e&&(n&&u?(hw(u,8),r.push(e),o.push(t.createParameterDeclaration(void 0,void 0,u))):i.push(e))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function C(e){if(gP(e)||EP(e)||!FA(t,e,g,l,s,a))return;const n=PA(t,e,g),r=M(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function w(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,N);b()&&fe(n,W()),te(h.exportedNames)&&fe(n,t.createExpressionStatement(qe(h.exportedNames,((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Fc(n))),e)),t.createVoidZero())));for(const t of h.exportedFunctions)z(n,t);fe(n,lJ(h.externalHelpersImportDeclaration,N,F_)),2===d&&he(n,H(h.externalImports,C)),he(n,uJ(e.statements,N,F_,o)),D(n,!0),Kd(n,i());const a=t.createBlock(n,!0);return v&&jw(a,xq),a}function D(e,n){if(h.exportEquals){const r=lJ(h.exportEquals.expression,F,s_);
6if(r)if(n){const n=t.createReturnStatement(r);TI(n,h.exportEquals),hw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));TI(n,h.exportEquals),hw(n,3072),e.push(n)}}}function N(e){switch(e.kind){case 272:return function(e){let n;const r=Mg(e);if(2!==d){if(!e.importClause)return pw(TI(t.createExpressionStatement(j(e)),e),e);{const i=[];r&&!jg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,M(e,j(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,M(e,j(e)))),r&&jg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=fe(n,pw(TI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,u>=2?2:0)),e),e))}}else r&&jg(e)&&(n=fe(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([pw(TI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],u>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new YJ;n.name&&(e=$(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=$(e,r,i);break;case 275:for(const t of i.elements)e=$(e,r,t,!0)}return e}(n,e),je(n)}(e);case 271:return function(e){let n;return En.assert(Bm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=Xv(e,32)?fe(n,pw(TI(t.createExpressionStatement(G(e.name,j(e))),e),e)):fe(n,pw(TI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,j(e))],u>=2?2:0)),e),e)):Xv(e,32)&&(n=fe(n,pw(TI(t.createExpressionStatement(G(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return h.exportEquals?e:$(e,new YJ,t)}(n,e),je(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&PP(e.exportClause)){const i=[];2!==d&&i.push(pw(TI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,j(e))])),e),e));for(const o of e.exportClause.elements){const s=!(!$S(a)||2&up(e)||"default"!==Fc(o.propertyName||o.name)),c=t.createPropertyAccessExpression(s?n().createImportDefaultHelper(r):r,o.propertyName||o.name);i.push(pw(TI(t.createExpressionStatement(G(t.getExportName(o),c,void 0,!0)),o),o))}return je(i)}if(e.exportClause){const i=[];return i.push(pw(TI(t.createExpressionStatement(G(t.cloneNode(e.exportClause.name),function(e,t){return!$S(a)||2&up(e)?t:WJ(e)?n().createImportStarHelper(t):t}(e,2!==d?j(e):ip(e)?r:t.createIdentifier(Fc(e.exportClause.name))))),e),e)),je(i)}return pw(TI(t.createExpressionStatement(n().createExportStarHelper(2!==d?j(e):r)),e),e)}(e);case 277:return function(e){if(!e.isExportEquals)return K(t.createIdentifier("default"),lJ(e.expression,F,s_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 243:return function(n){let r,i,o;if(Xv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(nN(r.name)&&dA(r.name))e||(e=uJ(n.modifiers,X,mu)),i=r.initializer?fe(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,G(r.name,lJ(r.initializer,F,s_)))):fe(i,r);else if(r.initializer)if(!Bu(r.name)&&(gE(r.initializer)||mE(r.initializer)||NE(r.initializer))){const e=t.createAssignment(TI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(oy(r.name)));i=fe(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,lJ(r.initializer,F,s_))),o=fe(o,e),a=!0}else o=fe(o,J(r));if(i&&(r=fe(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=pw(TI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&gw(e),r=fe(r,e)}}else r=fe(r,vJ(n,F,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),je(r)}(n);case 262:return function(n){let r;return r=Xv(n,32)?fe(r,pw(TI(t.createFunctionDeclaration(uJ(n.modifiers,X,mu),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,uJ(n.parameters,F,bN),void 0,vJ(n.body,F,e)),n),n)):fe(r,vJ(n,F,e)),je(r)}(n);case 263:return function(n){let r;return r=Xv(n,32)?fe(r,pw(TI(t.createClassDeclaration(uJ(n.modifiers,X,Iu),t.getDeclarationName(n,!0,!0),void 0,uJ(n.heritageClauses,F,XP),uJ(n.members,F,wu)),n),n)):fe(r,vJ(n,F,e)),r=z(r,n),je(r)}(n);case 248:return O(n,!0);case 249:return function(n){if(aP(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if(te(r)){const i=lJ(n.initializer,A,y_),o=lJ(n.expression,F,s_),a=hJ(n.statement,E,e),s=JE(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);
6return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,lJ(n.initializer,A,y_),lJ(n.expression,F,s_),hJ(n.statement,E,e))}(n);case 250:return function(n){if(aP(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=lJ(n.initializer,A,y_),o=lJ(n.expression,F,s_);let a=hJ(n.statement,E,e);return te(r)&&(a=JE(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,lJ(n.initializer,A,y_),lJ(n.expression,F,s_),hJ(n.statement,E,e))}(n);case 246:return function(n){return t.updateDoStatement(n,hJ(n.statement,E,e),lJ(n.expression,F,s_))}(n);case 247:return function(n){return t.updateWhileStatement(n,lJ(n.expression,F,s_),hJ(n.statement,E,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,En.checkDefined(lJ(e.statement,E,F_,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,lJ(e.expression,F,s_),En.checkDefined(lJ(e.statement,E,F_,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,lJ(e.expression,F,s_),En.checkDefined(lJ(e.thenStatement,E,F_,t.liftToBlock)),lJ(e.elseStatement,E,F_,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,lJ(e.expression,F,s_),En.checkDefined(lJ(e.caseBlock,E,fP)))}(n);case 269:return function(e){return t.updateCaseBlock(e,uJ(e.clauses,E,B_))}(n);case 296:return function(e){return t.updateCaseClause(e,lJ(e.expression,F,s_),uJ(e.statements,E,F_))}(n);case 297:case 258:return function(t){return vJ(t,E,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,En.checkDefined(lJ(e.block,E,JE)))}(n);case 241:return function(t){return t=vJ(t,E,e)}(n);default:return F(n)}}function P(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return O(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,A,s_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,lJ(e.expression,n?A:F,s_))}(n,r);case 354:return function(e,n){return t.updatePartiallyEmittedExpression(e,lJ(e.expression,n?A:F,s_))}(n,r);case 213:if(xf(n)&&void 0===g.impliedNodeFormat)return function(n){if(0===d&&u>=7)return vJ(n,F,e);const r=FA(t,n,g,l,s,a),i=lJ(Pe(n.arguments),F,s_),c=!r||i&&BD(i)&&i.text===r.text?i:r,_=!!(16384&n.transformFlags);switch(a.module){case 2:return L(c,_);case 3:return function(e,n){if(v=!0,eU(e)){const r=su(e)?e:BD(e)?t.createStringLiteralFromNode(e):hw(TI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,R(e),void 0,L(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,R(r,!0),void 0,L(r,n)))}}(null!=c?c:t.createVoidZero(),_);default:return R(c)}}(n);break;case 226:if(Nb(n))return function(t,n){return I(t.left)?TU(t,F,e,0,!n,B):vJ(t,F,e)}(n,r);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&nN(n.operand)&&!su(n.operand)&&!dA(n.operand)&&!xx(n.operand)){const e=Y(n.operand);if(e){let i,a=lJ(n.operand,F,s_);xE(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),TI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),TI(a,n));for(const t of e)y[ZB(a)]=!0,a=G(t,a),TI(a,n);return i&&(y[ZB(a)]=!0,a=t.createComma(a,i),TI(a,n)),a}}return vJ(n,F,e)}(n,r)}return vJ(n,F,e)}function F(e){return P(e,!1)}function A(e){return P(e,!0)}function I(e){if(sE(e))for(const t of e.properties)switch(t.kind){case 303:if(I(t.initializer))return!0;break;case 304:if(I(t.name))return!0;break;case 305:if(I(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:En.assertNever(t,"Unhandled object member kind")}else if(aE(e)){for(const t of e.elements)if(DE(t)){if(I(t.expression))return!0}else if(I(t))return!0}else if(nN(e))return _(Y(e))>(pA(e)?1:0);return!1}function O(n,r){if(r&&n.initializer&&aP(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=lJ(n.initializer,A,aP),s=t.createVariableStatement
6(void 0,a);o.push(s),he(o,i);const c=lJ(n.condition,F,s_),l=lJ(n.incrementor,A,s_),u=hJ(n.statement,r?E:F,e);return o.push(t.updateForStatement(n,void 0,c,l,u)),o}}return t.updateForStatement(n,lJ(n.initializer,A,y_),lJ(n.condition,F,s_),lJ(n.incrementor,A,s_),hJ(n.statement,r?E:F,e))}function L(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;u>=2?l=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&hw(l,16));const _=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return $S(a)?t.createCallExpression(t.createPropertyAccessExpression(_,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):_}function R(e,r){const i=e&&!tU(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?u>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);$S(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;return l=u>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement
6(s)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function M(e,t){return!$S(a)||2&up(e)?t:HJ(e)?n().createImportStarHelper(t):KJ(e)?n().createImportDefaultHelper(t):t}function j(e){const n=FA(t,e,g,l,s,a),r=[];return n&&r.push(n),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function B(e,n,r){const i=Y(e);if(i){let o=pA(e)?n:t.createAssignment(e,n);for(const e of i)hw(o,8),o=G(e,o,r);return o}return t.createAssignment(e,n)}function J(n){return Bu(n.name)?TU(lJ(n,F,kx),F,e,0,!1,B):t.createAssignment(TI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?lJ(n.initializer,F,s_):t.createVoidZero())}function U(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=q(e,r,n);return e}function q(e,t,n){if(h.exportEquals)return e;if(Bu(t.name))for(const r of t.name.elements)EE(r)||(e=q(e,r,n));else su(t.name)||oP(t)&&!t.initializer&&!n||(e=$(e,new YJ,t));return e}function z(e,n){if(h.exportEquals)return e;const r=new YJ;return Xv(n,32)&&(e=V(e,r,Xv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=$(e,r,n)),e}function $(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=V(e,n,t.name,o,t.name,void 0,i);return e}function V(e,t,n,r,i,o,a){return t.has(n)||(t.set(n,!0),e=fe(e,K(n,r,i,o,a))),e}function W(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return hw(e,2097152),e}function K(e,n,r,i,o){const a=TI(t.createExpressionStatement(G(e,n,void 0,o)),r);return CA(a),i||hw(a,3072),a}function G(e,n,r,i){return TI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement
6(n)])))])]):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function X(e){switch(e.kind){case 95:case 90:return}return e}function Q(e){var n,r;if(8192&lp(e)){const n=wA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!su(e)||64&e.emitNode.autoGenerate.flags)&&!dA(e)){const i=s.getReferencedExportContainer(e,pA(e));if(i&&307===i.kind)return TI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=s.getReferencedImportDeclaration(e);if(o){if(yP(o))return TI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(DP(o)){const i=o.propertyName||o.name;return TI(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(i)),e)}}}return e}function Y(e){if(su(e)){if(lu(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=s.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[qJ(t)];const n=new Set,r=s.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[qJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Xe(n)}}}}var xq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function Sq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&lp(e)){const n=wA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!su(e)&&!dA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(yP(i))return TI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(DP(i))return TI(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i),t.cloneNode(i.propertyName||i.name)),e)}}return e}(e);case 226:return function(e){if(kb(e.operatorToken.kind)&&nN(e.left)&&(!su(e.left)||lu(e.left))&&!dA(e.left)){const t=H(e.left);if(t){let n=e;for(const e of t)n=M(e,K(n));return n}}return e}(e);case 236:return function(e){return Sf(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 304===e.kind?function(e){var n,r;const i=e.name;if(!su(i)&&!dA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(yP(o))return TI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(DP(o))return TI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(o.propertyName||o.name))),e)}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(307===t.kind){const r=qJ(t);m=t,g=u[r],h=_[r],x=p[r],y=f[r],x&&delete p[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);const u=[],_=[],p=[],f=[];let m,g,h,y,v,b,x;return VJ(e,(function(i){if(i.isDeclarationFile||!(Np(i,o)||8388608&i.transformFlags))return i;const c=qJ(i);m=i,b=i,g=u[c]=GJ(e,i),h=t.createUniqueName("exports"),_[c]=h,y=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=FA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),d=function(e,i){const a=[];n();const s=ak(o,"alwaysStrict")||aO(m),c=t.copyPrologue(e.statements,a,s,T);
6a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),lJ(g.externalHelpersImportDeclaration,T,F_);const l=uJ(e.statements,T,F_,c);he(a,v),Kd(a,r());const u=function(e){if(!g.hasExportStarsToExportValues)return;if(!te(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=S(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const o of g.exportedNames)"default"!==o.escapedText&&n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(o),t.createTrue()));for(const o of g.exportedFunctions)Xv(o,2048)||(En.assert(!!o.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(o.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=S(r);return e.push(i),i.name}(a),_=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",k(u,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(_,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);
6return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,d),w=AA(t,i,s,o),D=t.createArrayLiteralExpression(j(l,(e=>e.name))),N=hw(t.updateSourceFile(i,TI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,D,C]:[D,C]))]),i.statements)),2048);return o.outFile||qw(N,d,(e=>!e.scoped)),x&&(p[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,N}));function S(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([hw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function k(e,n){const r=[];for(const i of n){const n=d(i.externalImports,(e=>PA(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const r of i.externalImports){const n=PA(t,r,m);switch(r.kind){case 272:if(!r.importClause)break;case 271:En.assert(void 0!==n),a.push(t.createExpressionStatement(t.createAssignment(n,o))),Xv(r,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Fc(n)),o])));break;case 278:if(En.assert(void 0!==n),r.exportClause)if(PP(r.exportClause)){const e=[];for(const n of r.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Fc(n.name)),t.createElementAccessExpression(o,t.createStringLiteral(Fc(n.propertyName||n.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Fc(r.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 272:return function(e){let n;return e.importClause&&i(PA(t,e,m)),je(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=O(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=O(e,r);break;case 275:for(const t of r.elements)e=O(e,t)}return e}(n,e))}(e);case 271:return function(e){let n;return En.assert(Bm(e),"import= for internal module references should be handled in an earlier transformer."),i(PA(t,e,m)),je(function(e,t){return g.exportEquals?e:O(e,t)}(n,e))}(e);case 278:return function(e){En.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=lJ(e.expression,z,s_);return R(t.createIdentifier("default"),n,!0)}(e);default:return B(e)}}function C(e){if(!D(e.declarationList))return lJ(e,z,F_);let n;if(gf(e.declarationList)||mf(e.declarationList)){const r=uJ(e.modifiers,W,Iu),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,N(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=fe(n,t.updateVariableStatement(e,r,o))}else{let r;const i=Xv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=fe(r,N(t,i)):w(t);
6r&&(n=fe(n,TI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)(r.initializer||n)&&(e=A(e,r));return e}(n,e,!1),je(n)}function w(e){if(Bu(e.name))for(const t of e.name.elements)EE(t)||w(t);else i(t.cloneNode(e.name))}function D(e){return!(4194304&lp(e)||307!==b.kind&&7&Cc(e).flags)}function N(t,n){const r=n?E:P;return Bu(t.name)?TU(t,z,e,0,!1,r):t.initializer?r(t.name,lJ(t.initializer,z,s_)):t.name}function E(e,t,n){return F(e,t,n,!0)}function P(e,t,n){return F(e,t,n,!1)}function F(e,n,r,o){return i(t.cloneNode(e)),o?M(e,K(TI(t.createAssignment(e,n),r))):K(TI(t.createAssignment(e,n),r))}function A(e,t,n){if(g.exportEquals)return e;if(Bu(t.name))for(const r of t.name.elements)EE(r)||(e=A(e,r));else if(!su(t.name)){let n;e=O(e,t,n)}return e}function I(e,n){if(g.exportEquals)return e;let r;if(Xv(n,32)){const i=Xv(n,2048)?t.createStringLiteral("default"):n.name;e=L(e,i,t.getLocalName(n)),r=oy(i)}return n.name&&(e=O(e,n,r)),e}function O(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)t.name.escapedText!==r&&(e=L(e,t.name,i));return e}function L(e,t,n,r){return e=fe(e,R(t,n,r))}function R(e,n,r){const i=t.createExpressionStatement(M(e,n));return CA(i),r||hw(i,3072),i}function M(e,n){const r=nN(e)?t.createStringLiteralFromNode(e):e;return hw(n,3072|lp(n)),Nw(t.createCallExpression(h,void 0,[r,n]),n)}function B(n){switch(n.kind){case 243:return C(n);case 262:return function(n){v=Xv(n,32)?fe(v,t.updateFunctionDeclaration(n,uJ(n.modifiers,W,Iu),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,uJ(n.parameters,z,bN),void 0,lJ(n.body,z,JE))):fe(v,vJ(n,z,e)),v=I(v,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=fe(n,TI(t.createExpressionStatement(t.createAssignment(r,TI(t.createClassExpression(uJ(e.modifiers,W,Iu),e.name,void 0,uJ(e.heritageClauses,z,XP),uJ(e.members,z,wu)),e))),e)),n=I(n,e),je(n)}(n);case 248:return J(n,!0);case 249:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,U(n.initializer),lJ(n.expression,z,s_),hJ(n.statement,B,e)),b=r,n}(n);case 250:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,U(n.initializer),lJ(n.expression,z,s_),hJ(n.statement,B,e)),b=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,hJ(n.statement,B,e),lJ(n.expression,z,s_))}(n);case 247:return function(n){return t.updateWhileStatement(n,lJ(n.expression,z,s_),hJ(n.statement,B,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,En.checkDefined(lJ(e.statement,B,F_,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,lJ(e.expression,z,s_),En.checkDefined(lJ(e.statement,B,F_,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,lJ(e.expression,z,s_),En.checkDefined(lJ(e.thenStatement,B,F_,t.liftToBlock)),lJ(e.elseStatement,B,F_,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,lJ(e.expression,z,s_),En.checkDefined(lJ(e.caseBlock,B,fP)))}(n);case 269:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,uJ(e.clauses,B,B_)),b=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,lJ(e.expression,z,s_),uJ(e.statements,B,F_))}(n);case 297:case 258:return function(t){return vJ(t,B,e)}(n);case 299:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,En.checkDefined(lJ(e.block,B,JE))),b=n,e}(n);case 241:return function(t){const n=b;return b=t,t=vJ(t,B,e),b=n,t}(n);default:return z(n)}}function J(n,r){const i=b;return b=n,n=t.updateForStatement(n,lJ(n.initializer,r?U:$,y_),lJ(n.condition,z,s_),lJ(n.incrementor,$,s_),hJ(n.statement,r?B:z,e)),b=i,n}function U(e){if(function(e){return aP(e)&&D(e)}(e)){let n;for(const t of e.declarations)n=fe(n,N(t,!1)),t.initializer||w(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return lJ(e,$,y_)}function q(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return J(n,!1);
6case 244:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,$,s_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,lJ(e.expression,n?$:z,s_))}(n,r);case 354:return function(e,n){return t.updatePartiallyEmittedExpression(e,lJ(e.expression,n?$:z,s_))}(n,r);case 226:if(Nb(n))return function(t,n){return V(t.left)?TU(t,z,e,0,!n):vJ(t,z,e)}(n,r);break;case 213:if(xf(n))return function(e){const n=FA(t,e,m,s,a,o),r=lJ(Pe(e.arguments),z,s_),i=!n||r&&BD(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&nN(n.operand)&&!su(n.operand)&&!dA(n.operand)&&!xx(n.operand)){const e=H(n.operand);if(e){let o,a=lJ(n.operand,z,s_);xE(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),TI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),TI(a,n));for(const t of e)a=M(t,K(a));return o&&(a=t.createComma(a,o),TI(a,n)),a}}return vJ(n,z,e)}(n,r)}return vJ(n,z,e)}function z(e){return q(e,!1)}function $(e){return q(e,!0)}function V(e){if(wb(e,!0))return V(e.left);if(DE(e))return V(e.expression);if(sE(e))return te(e.properties,V);if(aE(e))return te(e.elements,V);if(ZP(e))return V(e.name);if(YP(e))return V(e.initializer);if(nN(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&307===t.kind}return!1}function W(e){switch(e.kind){case 95:case 90:return}return e}function H(e){let n;const r=function(e){if(!su(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[qJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[qJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&307===i.kind&&(n=fe(n,t.getDeclarationName(r))),n=he(n,null==g?void 0:g.exportedBindings[qJ(r)])}else if(su(e)&&lu(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function K(e){return void 0===x&&(x=[]),x[ZB(e)]=!0,e}}function kq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=BS(o),s=e.onEmitNode,c=e.onSubstituteNode;let l,u,_;return e.onEmitNode=function(e,t,n){nF(t)?((aO(t)||zS(o))&&o.importHelpers&&(l=new Map),s(e,t,n),l=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return n=c(e,n),l&&nN(n)&&8192&lp(n)?function(e){const n=Fc(e);let r=l.get(n);return r||l.set(n,r=t.createUniqueName(n,48)),r}(n):n},e.enableEmitNotification(307),e.enableSubstitution(80),VJ(e,(function(r){if(r.isDeclarationFile)return r;if(aO(r)||zS(o)){u=r,_=void 0;let i=function(r){const i=NA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return fe(e,i),he(e,uJ(r.statements,d,F_,n)),t.updateSourceFile(r,TI(t.createNodeArray(e),r.statements))}return vJ(r,d,e)}(r);return u=void 0,_&&(i=t.updateSourceFile(i,TI(t.createNodeArray(Gd(i.statements.slice(),_)),i.statements))),!aO(r)||200===JS(o)||te(i.statements,f_)?i:t.updateSourceFile(i,TI(t.createNodeArray([...i.statements,YF(t)]),i.statements))}return r}));function d(e){switch(e.kind){case 271:return JS(o)>=100?function(e){let n;return En.assert(Bm(e),"import= for internal module references should be handled in an earlier transformer."),n=fe(n,pw(TI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,p(e))],a>=2?2:0)),e),e)),n=function(e,n){return Xv(n,32)&&(e=fe(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Fc(n.name))])))),e}(n,e),je(n)}(e):void 0;case 277:return function(e){return e.isExportEquals?200===JS(o)?pw(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e):void 0:e}(e);case 278:return function(e){if(void 0!==o.module&&o.module>
65)return e;if(!e.exportClause||!CP(e.exportClause)||!e.moduleSpecifier)return e;const n=e.exportClause.name,r=t.getGeneratedNameForNode(n),i=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(r)),e.moduleSpecifier,e.attributes);pw(i,e.exportClause);const a=ip(e)?t.createExportDefault(r):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,r,n)]));return pw(a,e),[i,a]}(e)}return e}function p(e){const n=FA(t,e,En.checkDefined(u),r,i,o),s=[];if(n&&s.push(n),200===JS(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!_){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));_=[n,i]}const c=_[1].declarationList.declarations[0].name;return En.assertNode(c,nN),t.createCallExpression(t.cloneNode(c),void 0,s)}}function Tq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=kq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=bq(e),s=e.onSubstituteNode,c=e.onEmitNode;let l;return e.onSubstituteNode=function(e,n){return nF(n)?(l=n,t(e,n)):l?99===l.impliedNodeFormat?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return nF(t)&&(l=t),l?99===l.impliedNodeFormat?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(307),e.enableEmitNotification(307),function(t){return 307===t.kind?u(t):function(t){return e.factory.createBundle(j(t.sourceFiles,u))}(t)};function u(e){if(e.isDeclarationFile)return e;l=e;const t=(99===e.impliedNodeFormat?r:a)(e);return l=void 0,En.assert(nF(t)),t}}function Cq(e){return oP(e)||kN(e)||SN(e)||oE(e)||z_(e)||$_(e)||FN(e)||PN(e)||CN(e)||TN(e)||sP(e)||bN(e)||vN(e)||PE(e)||gP(e)||uP(e)||DN(e)||AN(e)||cE(e)||lE(e)||kE(e)||qg(e)}function wq(e){return z_(e)||$_(e)?function(t){const n=function(t){return Qv(e)?t.errorModuleName?2===t.accessibility?Pa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Pa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Pa.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:TN(e)||CN(e)?function(t){const n=function(t){return Qv(e)?t.errorModuleName?2===t.accessibility?Pa.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Pa.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Pa.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Dq(e)}function Dq(e){return oP(e)||kN(e)||SN(e)||cE(e)||lE(e)||kE(e)||oE(e)||DN(e)?t:z_(e)||$_(e)?function(t){let n;return n=178===e.kind?Qv(e)?t.errorModuleName?Pa.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Pa.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Qv(e)?t.errorModuleName?2===t.accessibility?Pa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?Pa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:FN(e)||PN(e)||CN(e)||TN(e)||sP(e)||AN(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?Pa.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?Pa.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?Pa.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=Qv(e)?t.errorModuleName?2===t.accessibility?Pa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Pa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Pa.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Pa.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?Pa.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?Pa.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Pa.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Pa.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return En.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:bN(e)?fc(e,e.parent)&&Xv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?Pa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?Pa.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?Pa.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?Pa.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Qv(e.parent)?t.errorModuleName?2===t.accessibility?Pa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?Pa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Pa.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?Pa.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?Pa.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Pa.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return En.fail(`Unknown parent for parameter: ${En.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:vN(e)?function(){let t;switch(e.parent.kind){case 263:t=Pa.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=Pa.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=Pa.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=Pa.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=Pa.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=Qv(e.parent)?Pa.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?Pa.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Pa.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=Pa.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=Pa.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=Pa.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return En.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:PE(e)?function(){let t;return t=cP(e.parent.parent)?XP(e.parent)&&119===e.parent.token?Pa.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?Pa.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Pa.extends_clause_of_exported_class_has_or_is_using_private_name_0:Pa.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:Jc(e.parent.parent)}}:gP(e)?function(){return{diagnosticMessage:Pa.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:uP(e)||qg(e)?function(t){return{diagnosticMessage:t.errorModuleName?Pa.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Pa.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:qg(e)?En.checkDefined(e.typeExpression):e.type,typeName:qg(e)?Jc(e):e.name}}:En.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${En.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?Pa.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Pa.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&Xv(e.parent,2)?Qv(e)?t.errorModuleName?2===t.accessibility?Pa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?Pa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Pa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Pa.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Pa.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Pa.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function Nq(e){const t={219:Pa.Add_a_return_type_to_the_function_expression,218:Pa.Add_a_return_type_to_the_function_expression,174:Pa.Add_a_return_type_to_the_method,177:Pa.Add_a_return_type_to_the_get_accessor_declaration,178:Pa.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:Pa.Add_a_return_type_to_the_function_declaration,180:Pa.Add_a_return_type_to_the_function_declaration,169:Pa.Add_a_type_annotation_to_the_parameter_0,260:Pa.Add_a_type_annotation_to_the_variable_0,172:Pa.Add_a_type_annotation_to_the_property_0,171:Pa.Add_a_type_annotation_to_the_property_0,277:Pa.Move_the_expression_
6in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:Pa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:Pa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:Pa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:Pa.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:Pa.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:Pa.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:Pa.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,169:Pa.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:Pa.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:Pa.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:Pa.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:Pa.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:Pa.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:Pa.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:Pa.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:Pa.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:Pa.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(wc(r,XP))return Gp(r,Pa.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Mf(r)||MN(r.parent))&&(gu(r)||Pb(r)))return function(e){const t=Gp(e,Pa.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,ap(e,!1));return o(e,t),t}(r);switch(En.type(r),r.kind){case 177:case 178:return i(r);case 167:case 304:case 305:return function(e){const t=Gp(e,n[e.kind]);return o(e,t),t}(r);case 209:case 230:return function(e){const t=Gp(e,n[e.kind]);return o(e,t),t}(r);case 174:case 180:case 218:case 219:case 262:return function(e){const r=Gp(e,n[e.kind]);return o(e,r),DT(r,Gp(e,t[e.kind])),r}(r);case 208:return function(e){return Gp(e,Pa.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 172:case 260:return function(e){const r=Gp(e,n[e.kind]),i=ap(e.name,!1);return DT(r,Gp(e,t[e.kind],i)),r}(r);case 169:return function(r){if(z_(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r);if(!o&&r.initializer)return a(r.initializer);const s=o?Pa.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind],c=Gp(r,s),l=ap(r.name,!1);return DT(c,Gp(r,t[r.kind],l)),c}(r);case 303:return a(r.initializer);case 231:return function(e){return a(e,Pa.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=wc(e,(e=>NP(e)||F_(e)||oP(e)||kN(e)||bN(e)));if(t)return NP(t)?t:YE(t)?wc(t,(e=>xu(e)&&!DN(e))):F_(t)?void 0:t}function i(e){var r;const{getAccessor:i,setAccessor:o}=Iv(e.symbol.declarations,e),a=Gp(null!=(r=z_(e)?e.parameters[0]:e)?r:e,n[e.kind]);return o&&DT(a,Gp(o,t[o.kind])),i&&DT(a,Gp(i,t[i.kind])),a}function o(e,n){const i=r(e);if(i){const e=NP(i)||!i.name?"":ap(i.name,!1);DT(n,Gp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=NP(o)||!o.name?"":ap(o.name,!1);o===wc(e.parent,(e=>NP(e)||(F_(e)?"quit":!fE(e)&&!pE(e)&&!FE(e))))?(a=Gp(e,null!=i?i:n[o.kind]),DT(a,Gp(o,t[o.kind],r))):(a=Gp(e,null!=i?i:Pa.Expression_type_can_t_be_inferred_with_isolatedDeclarations),DT(a,Gp(o,t[o.kind],r)),DT(a,Gp(e,Pa.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Gp(e,null!=i?i:Pa.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function Eq(e,t,n){const r=e.getCompilerOptions(),i=L(mv(e,n),Km);return $q(t,e,_w,r,n?F(i,n)?[n]:c:i,[Fq],!1).diagnostics}var Pq=531469;function Fq(e){const t=()=>En.fail("Diagnostic emitted without context");let n,r,i,o,a=t,s=!0,l=!1,u=!1,p=!1,f=!1;const{factory:g}=e,h=e.getEmitHost(),y={trackSymbol:function(e,t,n){return!(262144&e.flags)&&I(C.isSymbolA
6ccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,O(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,O(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,O()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,O(),t))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:h,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>Id(e)===t)),a=L(r.declarations,(e=>Id(e)!==t));if(o&&a)for(const s of a)e.addDiagnostic(DT(Gp(s,Pa.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Gp(o,Pa.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(Gp(v||b,Pa.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:A};let v,b,x,S,k,T;const C=e.getEmitResolver(),w=e.getCompilerOptions(),D=Nq(C),{stripInternal:N,isolatedDeclarations:E}=w;return function(c){if(307===c.kind&&c.isDeclarationFile)return c;if(308===c.kind){l=!0,S=[],k=[],T=[];let _=!1;const d=g.createBundle(j(c.sourceFiles,(c=>{if(c.isDeclarationFile)return;if(_=_||c.hasNoDefaultLib,x=c,n=c,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,y(c),_f(c)||df(c)){u=!1,s=!1;const t=$m(c)?g.createNodeArray(R(c)):uJ(c.statements,ae,F_);return g.updateSourceFile(c,[g.createModuleDeclaration([g.createModifier(138)],g.createStringLiteral(ov(e.getEmitHost(),c)),g.createModuleBlock(TI(g.createNodeArray(ie(t)),c.statements)))],!0,[],[],!1,[])}s=!0;const l=$m(c)?g.createNodeArray(R(c)):uJ(c.statements,ae,F_);return g.updateSourceFile(c,ie(l),!0,[],[],!1,[])}))),m=Go(ta(Qq(c,h,!0).declarationFilePath));return d.syntheticFileReferences=w(m),d.syntheticTypeReferences=b(),d.syntheticLibReferences=C(),d.hasNoDefaultLib=_,d}let _;if(s=!0,p=!1,f=!1,n=c,x=c,a=t,l=!1,u=!1,o=!1,r=void 0,i=new Map,S=[],k=[],T=[],y(x),$m(x))_=g.createNodeArray(R(c));else{const e=uJ(c.statements,ae,F_);_=TI(g.createNodeArray(ie(e)),c.statements),aO(c)&&(!u||p&&!f)&&(_=TI(g.createNodeArray([..._,YF(g)]),_))}const d=Go(ta(Qq(c,h,!0).declarationFilePath));return g.updateSourceFile(c,_,!0,w(d),b(),c.hasNoDefaultLib,C());function y(e){S=re(S,j(e.referencedFiles,(t=>[e,t]))),k=re(k,e.typeReferenceDirectives),T=re(T,e.libReferenceDirectives)}function v(e){const t=m({},e);return t.pos=-1,t.end=-1,t}function b(){return H(k,(e=>{if(e.preserve)return v(e)}))}function C(){return H(T,(e=>{if(e.preserve)return v(e)}))}function w(e){return H(S,(([t,n])=>{if(!n.preserve)return;const r=h.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(l&&F(c.sourceFiles,r))return;const e=Qq(r,h,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=wa(e,i,h.getCurrentDirectory(),h.getCanonicalFileName,!1),a=v(n);return a.fileName=o,a}))}};function P(t){C.getPropertiesOfContainerFunction(t).forEach((t=>{if(PC(t.valueDeclaration)){const n=kE(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(Gp(n,Pa.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}}))}function A(t){E&&!$m(x)&&(oP(t)&&C.isExpandoFunctionDeclaration(t)?P(t):e.addDiagnostic(D(t)))}function I(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)ye(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(Gp(t.errorNode||n.errorNode,n.diagnosticMessage,ap(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Gp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function O(){return v?zp(v):b&&Jc(b)?zp(Jc(b)):b&&NP(b)?b.isExportEquals?"export=":"default":"(Missing)"}function R(e){const t=a;a=t=>t.errorNode&&Cq(t.errorNode)?Dq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?Pa.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Pa.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=C.getDeclarationStatementsForSourceFile(e,Pq,y);return a=t,n}function M(e){return 80===e.kind?e:207===e.kind?g.updateArrayBindingPattern(e,uJ(e.elements,t,Uu)):g.updateObjectBindingPattern(e,uJ(e.elements,t,oE));function t(e){return 232===e.kind?e:(e.propertyName&&yN(e.propertyName)&&Pb(e.propertyName.expression)&&Y(e.propertyName.expression,n),g.updateBindingElement(e,e.dotDotDotToken,e.propertyName,M(e.name),void 0))}}function B(e,t,n){let r;o||(r=a,a=Dq(e));const i=g.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(Aq(t,n,r))}(g,e,t),e.dotDotDotToken,M(e.name),C.isOptionalParameter(e)?e.questionToken||g.createToken(58):void 0,$(e,n||e.type,!0),z(e));return o||(a=r),i}function J(e){return Oq(e)&&!!e.initializer&&C.isLiteralConstDeclaration(Nc(e))}function z(e){if(J(e))return JC(UC(e.initializer))||A(e),C.createLiteralConstValue(Nc(e,Oq),y)}function $(e,t,r){if(!r&&Gv(e,2))return;if(J(e))return;
6const i=169===e.kind&&C.requiresAddingImplicitUndefined(e);if(t&&!i)return lJ(t,oe,Mu);let s,c;switch(v=e.name,o||(s=a,a=Dq(e)),e.kind){case 169:case 171:case 172:case 208:case 260:c=C.createTypeOfDeclaration(e,n,Pq,y);break;case 262:case 180:case 173:case 174:case 177:case 179:c=C.createReturnTypeOfSignatureDeclaration(e,n,Pq,y);break;default:En.assertNever(e)}return v=void 0,o||(a=s),null!=c?c:g.createKeywordTypeNode(133)}function V(e){switch((e=Nc(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!C.isDeclarationVisible(e);case 260:return!W(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function W(e){return!EE(e)&&(Bu(e.name)?te(e.name.elements,W):C.isDeclarationVisible(e))}function K(e,t,n){if(Gv(e,2))return g.createNodeArray();const r=j(t,(e=>B(e,n)));return r?g.createNodeArray(r,t.hasTrailingComma):g.createNodeArray()}function G(e,t){let n;if(!t){const t=Dv(e);t&&(n=[B(t)])}if(EN(e)){let r;if(!t){const t=Cv(e);t&&(r=B(t,void 0,ge(e,Iv(sE(e.parent)?e.parent.properties:e.parent.members,e))))}r||(r=g.createParameterDeclaration(void 0,void 0,"value")),n=fe(n,r)}return g.createNodeArray(n||c)}function X(e,t){return Gv(e,2)?void 0:uJ(t,oe,vN)}function Q(e){return nF(e)||uP(e)||dP(e)||cP(e)||lP(e)||vu(e)||AN(e)||YN(e)}function Y(e,t){I(C.isEntityNameVisible(e,t))}function Z(e,t){return V_(e)&&V_(t)&&(e.jsDoc=t.jsDoc),Nw(e,Dw(t))}function ee(t,n){if(n){if(u=u||267!==t.kind&&205!==t.kind,Z_(n)&&l){const n=sv(e.getEmitHost(),C,t);if(n)return g.createStringLiteral(n)}return n}}function ne(e){const t=m$(e);return e&&void 0!==t?e:void 0}function ie(e){for(;_(r);){const e=r.shift();if(!Mp(e))return En.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${En.formatSyntaxKind(e.kind)}`);const t=s;s=e.parent&&nF(e.parent)&&!(aO(e.parent)&&l);const n=le(e);s=t,i.set(qJ(e),n)}return uJ(e,(function(e){if(Mp(e)){const t=qJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((pt(n)?te(n,p_):p_(n))&&(p=!0),nF(e.parent)&&(pt(n)?te(n,f_):f_(n))&&(u=!0)),n}}return e}),F_)}function oe(t){if(_e(t))return;if(N_(t)){if(V(t))return;if(ty(t))if(E){if(cP(t.parent)||sE(t.parent))return void e.addDiagnostic(Gp(t,Pa.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((lP(t.parent)||jN(t.parent))&&!Pb(t.name.expression))return void e.addDiagnostic(Gp(t,Pa.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}else if(!C.isLateBound(Nc(t))||!Pb(t.name.expression))return}if(vu(t)&&C.isImplementationOfOverload(t))return;if(BE(t))return;let r;Q(t)&&(r=n,n=t);const i=a,s=Cq(t),c=o;let l=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((CN(t)||TN(t))&&Gv(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return _(g.createPropertyDeclaration(me(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=Dq(t)),MN(t)&&Y(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(gu(t.expression)||Pb(t.expression))&&Y(t.expression,n);const r=vJ(t,oe,e);return _(g.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{Y(t.typeName,n);const r=vJ(t,oe,e);return _(g.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return _(g.updateConstructSignature(t,X(t,t.typeParameters),K(t,t.parameters),$(t,t.type)));case 176:return _(g.createConstructorDeclaration(me(t),K(t,t.parameters,0),void 0));case 174:return rN(t.name)?_(void 0):_(g.createMethodDeclaration(me(t),void 0,t.name,t.questionToken,X(t,t.typeParameters),K(t,t.parameters),$(t,t.type),void 0));case 177:{if(rN(t.name))return _(void 0);const e=ge(t,Iv(sE(t.parent)?t.parent.properties:t.parent.members,t));return _(g.updateGetAccessorDeclaration(t,me(t),t.name,G(t,Gv(t,2)),$(t,e),void 0))}case 178:return rN(t.name)?_(void 0):_(g.updateSetAccessorDeclaration(t,me(t),t.name,G(t,Gv(t,2)),void 0));case 172:return rN(t.name)?_(void 0):_(g.updatePropertyDeclaration(t,me(t),t.name,t.questionToken,$(t,t.type),z(t)));case 171:return rN(t.name)?_(void 0):_(g.updatePropertySignature(t,me(t),t.name,t.questionToken,$(t,t.type)));case 173:return rN(t.name)?_(void 0):_(g.updateMethodSignature(t,me(t),t.name,t.questionToken,X(t,t.typeParameters),K(t,t.parameters),$(t,t.type)));case 179:return _(g.updateCallSignature(t,X(t,t.typeParameters),K(t,t.parameters),$(t,t.type)));case 181:return _(g.updateIndexSignature(t,me(t),K(t,t.parameters),lJ(t.type,oe,Mu)||g.createKeywordTypeNode(133)));
6case 260:return Bu(t.name)?ue(t.name):(l=!0,o=!0,_(g.updateVariableDeclaration(t,t.name,void 0,$(t,t.type),z(t))));case 168:return 174===(u=t).parent.kind&&Gv(u.parent,2)&&(t.default||t.constraint)?_(g.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):_(vJ(t,oe,e));case 194:{const e=lJ(t.checkType,oe,Mu),r=lJ(t.extendsType,oe,Mu),i=n;n=t.trueType;const o=lJ(t.trueType,oe,Mu);n=i;const a=lJ(t.falseType,oe,Mu);return En.assert(e),En.assert(r),En.assert(o),En.assert(a),_(g.updateConditionalTypeNode(t,e,r,o,a))}case 184:return _(g.updateFunctionTypeNode(t,uJ(t.typeParameters,oe,vN),K(t,t.parameters),En.checkDefined(lJ(t.type,oe,Mu))));case 185:return _(g.updateConstructorTypeNode(t,me(t),uJ(t.typeParameters,oe,vN),K(t,t.parameters),En.checkDefined(lJ(t.type,oe,Mu))));case 205:return kf(t)?_(g.updateImportTypeNode(t,g.updateLiteralTypeNode(t.argument,ee(t,t.argument.literal)),t.attributes,t.qualifier,uJ(t.typeArguments,oe,Mu),t.isTypeOf)):_(t);default:En.assertNever(t,`Attempted to process unhandled node kind: ${En.formatSyntaxKind(t.kind)}`)}var u;return JN(t)&&ss(x,t.pos).line===ss(x,t.end).line&&hw(t,1),_(vJ(t,oe,e));function _(e){return e&&s&&ty(t)&&function(e){let t;o||(t=a,a=wq(e)),v=e.name,En.assert(ty(e));const r=e;Y(r.name.expression,n),o||(a=t),v=void 0}(t),Q(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&pw(Z(e,t),t)}}function ae(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(_e(e))return;switch(e.kind){case 278:return nF(e.parent)&&(u=!0),f=!0,g.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ee(e,e.moduleSpecifier),ne(e.attributes));case 277:if(nF(e.parent)&&(u=!0),f=!0,80===e.expression.kind)return e;{const t=g.createUniqueName("_default",16);a=()=>({diagnosticMessage:Pa.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=g.createVariableDeclaration(t,void 0,C.createTypeOfExpression(e.expression,e,Pq,y),void 0);b=void 0;const r=g.createVariableStatement(s?[g.createModifier(138)]:[],g.createVariableDeclarationList([n],2));return Z(r,e),gw(e),[r,g.updateExportAssignment(e,e.modifiers,t)]}}const t=le(e);return i.set(qJ(e),t),e}function se(e){if(gP(e)||Gv(e,2048)||!CI(e))return e;const t=g.createModifiersFromModifierFlags(131039&cb(e));return g.replaceModifiers(e,t)}function ce(e,t,n,r){const i=g.updateModuleDeclaration(e,t,n,r);if(yp(i)||32&i.flags)return i;const o=g.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return pw(o,i),TI(o,i),o}function le(t){if(r)for(;an(r,t););if(_e(t))return;switch(t.kind){case 271:return function(e){if(C.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=Jm(e);return g.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,g.updateExternalModuleReference(e.moduleReference,ee(e,t)))}{const t=a;return a=Dq(e),Y(e.moduleReference,n),a=t,e}}}(t);case 272:return function(t){if(!t.importClause)return g.updateImportDeclaration(t,t.modifiers,t.importClause,ee(t,t.moduleSpecifier),ne(t.attributes));const n=t.importClause&&t.importClause.name&&C.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return n&&g.updateImportDeclaration(t,t.modifiers,g.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,void 0),ee(t,t.moduleSpecifier),ne(t.attributes));if(274===t.importClause.namedBindings.kind){const e=C.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return n||e?g.updateImportDeclaration(t,t.modifiers,g.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,e),ee(t,t.moduleSpecifier),ne(t.attributes)):void 0}const r=H(t.importClause.namedBindings.elements,(e=>C.isDeclarationVisible(e)?e:void 0));return r&&r.length||n?g.updateImportDeclaration(t,t.modifiers,g.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,r&&r.length?g.updateNamedImports(t.importClause.namedBindings,r):void 0),ee(t,t.moduleSpecifier),ne(t.attributes)):C.isImportRequiredByAugmentation(t)?(E&&e.addDiagnostic(Gp(t,Pa.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),g.updateImportDeclaration(t,t.modifiers,void 0,ee(t,t.moduleSpecifier),ne(t.attributes))):void 0}(t)}if(N_(t)&&V(t))return;if(VF(t))return;if(vu(t)&&C.isImplementationOfOverload(t))return;let o;Q(t)&&(o=n,n=t);const c=Cq(t),l=a;c&&(a=Dq(t));const m=s;switch(t.kind){case 265:{s=!1;const e=h(g.updateTypeAliasDeclaration(t,me(t),t.name,uJ(t.typeParameters,oe,vN),En.checkDefined(lJ(t.type,oe,Mu))));return s=m,e}case 264:return h(g.updateInterfaceDeclaration(t,me(t),t.name,X(t,t.typeParameters),he(t.heritageClauses),uJ(t.members,oe,Ou)));case 262:{const e=h(g.updateFunctionDeclaration(t,me(t),void 0,t.name,X(t,t.typeParameters),K(t,t.parameters),$(t,t.type),void 0));if(e&&C.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>sP(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(t)){const r=C.getPropertiesOfContainerFunction(t);E&&P(t);const i=NI.createModuleDeclaration(void 0,e.name||g.createIdentifier("_default"),g.createModuleBlock([]),32);HT(i,n),i.locals=_d(r),i.symbol=r[0].parent;const o=[];let s=H(r,(e=>{if(!PC(e.valueDeclaration))return;
6const t=Pc(e.escapedName);if(!Ls(t,99))return;a=Dq(e.valueDeclaration);const n=C.createTypeOfDeclaration(e.valueDeclaration,i,-2147483648|Pq,y);a=l;const r=Wh(t),s=r?g.getGeneratedNameForNode(e.valueDeclaration):g.createIdentifier(t);r&&o.push([s,t]);const c=g.createVariableDeclaration(s,void 0,n,void 0);return g.createVariableStatement(r?void 0:[g.createToken(95)],g.createVariableDeclarationList([c]))}));o.length?s.push(g.createExportDeclaration(void 0,!1,g.createNamedExports(j(o,(([e,t])=>g.createExportSpecifier(!1,e,t)))))):s=H(s,(e=>g.replaceModifiers(e,0)));const c=g.createModuleDeclaration(me(t),t.name,g.createModuleBlock(s),32);if(!Gv(e,2048))return[e,c];const _=g.createModifiersFromModifierFlags(-2081&cb(e)|128),d=g.updateFunctionDeclaration(e,_,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),p=g.updateModuleDeclaration(c,_,c.name,c.body),m=g.createExportAssignment(void 0,!1,c.name);return nF(t.parent)&&(u=!0),f=!0,[d,p,m]}return e}case 267:{s=!1;const e=t.body;if(e&&268===e.kind){const n=p,r=f;f=!1,p=!1;let i=ie(uJ(e.statements,ae,F_));33554432&t.flags&&(p=!1),Tp(t)||function(e){return te(e,pe)}(i)||f||(i=p?g.createNodeArray([...i,YF(g)]):uJ(i,se,F_));const o=g.updateModuleBlock(e,i);s=m,p=n,f=r;const a=me(t);return h(ce(t,a,Cp(t)?ee(t,t.name):t.name,o))}{s=m;const n=me(t);s=!1,lJ(e,ae);const r=qJ(e),o=i.get(r);return i.delete(r),h(ce(t,n,t.name,o))}}case 263:{v=t.name,b=t;const e=g.createNodeArray(me(t)),n=X(t,t.typeParameters),r=Tv(t);let i;if(r){const e=a;i=de(q(r.parameters,(e=>{if(Xv(e,31)&&!_e(e))return a=Dq(e),80===e.name.kind?Z(g.createPropertyDeclaration(me(e),e.name,e.questionToken,$(e,e.type),z(e)),e):function t(n){let r;for(const i of n.elements)EE(i)||(Bu(i.name)&&(r=re(r,t(i.name))),r=r||[],r.push(g.createPropertyDeclaration(me(e),i.name,void 0,$(i,void 0),void 0)));return r}(e.name)}))),a=e}const o=re(re(te(t.members,(e=>!!e.name&&rN(e.name)))?[g.createPropertyDeclaration(void 0,g.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,i),uJ(t.members,oe,wu)),c=g.createNodeArray(o),l=Ih(t);if(l&&!Pb(l.expression)&&106!==l.expression.kind){const r=t.name?Pc(t.name.escapedText):"default",i=g.createUniqueName(`${r}_base`,16);a=()=>({diagnosticMessage:Pa.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:l,typeName:t.name});const o=g.createVariableDeclaration(i,void 0,C.createTypeOfExpression(l.expression,t,Pq,y),void 0),u=g.createVariableStatement(s?[g.createModifier(138)]:[],g.createVariableDeclarationList([o],2)),_=g.createNodeArray(j(t.heritageClauses,(e=>{if(96===e.token){const t=a;a=Dq(e.types[0]);const n=g.updateHeritageClause(e,j(e.types,(e=>g.updateExpressionWithTypeArguments(e,i,uJ(e.typeArguments,oe,Mu)))));return a=t,n}return g.updateHeritageClause(e,uJ(g.createNodeArray(L(e.types,(e=>Pb(e.expression)||106===e.expression.kind))),oe,PE))})));return[u,h(g.updateClassDeclaration(t,e,t.name,n,_,c))]}{const r=he(t.heritageClauses);return h(g.updateClassDeclaration(t,e,t.name,n,r,c))}}case 243:return h(function(e){if(!d(e.declarationList.declarations,W))return;const t=uJ(e.declarationList.declarations,oe,oP);if(!_(t))return;const n=g.createNodeArray(me(e));let r;return gf(e.declarationList)||mf(e.declarationList)?(r=g.createVariableDeclarationList(t,2),pw(r,e.declarationList),TI(r,e.declarationList),Nw(r,e.declarationList)):r=g.updateVariableDeclarationList(e.declarationList,t),g.updateVariableStatement(e,n,r)}(t));case 266:return h(g.updateEnumDeclaration(t,g.createNodeArray(me(t)),t.name,g.createNodeArray(H(t.members,(t=>{if(_e(t))return;const n=C.getEnumMemberValue(t),r=null==n?void 0:n.value;E&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!yN(t.name)&&e.addDiagnostic(Gp(t,Pa.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?g.createStringLiteral(r):r<0?g.createPrefixUnaryExpression(41,g.createNumericLiteral(-r)):g.createNumericLiteral(r);return Z(g.updateEnumMember(t,t.name,i),t)})))))}return En.assertNever(t,`Unhandled top-level node in declaration emit: ${En.formatSyntaxKind(t.kind)}`);function h(e){return Q(t)&&(n=o),c&&(a=l),267===t.kind&&(s=m),e===t?e:(b=void 0,v=void 0,e&&pw(Z(e,t),t))}}function ue(e){return U(H(e.elements,(e=>function(e){if(232!==e.kind&&e.name){if(!W(e))return;return Bu(e.name)?ue(e.name):g.createVariableDeclaration(e.name,void 0,$(e,void 0),void 0)}}(e))))}function _e(e){return!!N&&!!e&&id(e,x)}function pe(e){return NP(e)||EP(e)}function me(e){const t=cb(e),n=function(e){let t=130030,n=s&&!function(e){return 264===e.kind}(e)?128:0;const r=307===e.parent.kind;return(!r||l&&r&&aO(e.parent))&&(t^=128,n=0),Aq(e,t,n)}(e);return t===n?_J(e.modifiers,(e=>ht(e,mu)),mu):g.createModifiersFromModifierFlags(n)}function ge(e,t){let n=Iq(e);return n||e===t.firstAccessor||(n=Iq(t.firstAccessor),a=Dq(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=Iq(t.secondAccessor),a=Dq(t.secondAccessor)),n}function he(e){return g.createNodeArray(L(j(e,(e=>g.updateHeritageClause(e,uJ(g.createNodeArray(L(e.types,(t=>Pb(t.expression)||96===e.token&&106===t.expression.kind))),oe,PE)))),(e=>e.types&&!!e.types.length)))}}function Aq(e,t=131070,n=0){let r=cb(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function Iq(e){if(e)return 177===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function Oq(e){switch(e.kind){case 172:case 171:return!Gv(e,2);case 169:case 260:return!0}return!1}var Lq={scriptTransformers:c,declarationTransformers:c};function Rq(e,t,n){return{scriptTransformers:Mq(e,t,n),declarationTransformers:jq(t)}}function Mq(e,t,n){if(n)return c;const r=BS(e),i=JS(e),o=ek(e),a=[];return he(a,t&&j(t.before,Jq)),a.push(XU),e.experimentalDecorators&&a.push(eq),pk(e)&&a.push(fq),r<99&&a.push(cq),e.experimentalDecorators||!(r<99)&&o||a.push(tq),a.push(QU),r<8&&a.push(sq),r<7&&a.push(aq),r<6&&a.push(oq),r<5&&a.push(iq),r<4&&a.push(nq),r<3&&a.push(gq),r<2&&(a.push(yq),a.push(vq)),a.push(function(e){switch(e){case 99:case 7:case 
66:case 5:case 200:return kq;case 4:return Sq;case 100:case 199:return Tq;default:return bq}}(i)),he(a,t&&j(t.after,Jq)),a}function jq(e){const t=[];return t.push(Fq),he(t,e&&j(e.afterDeclarations,Uq)),t}function Bq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>rF(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function Jq(e){return Bq(e,VJ)}function Uq(e){return Bq(e,((e,t)=>t))}function qq(e,t){return t}function zq(e,t,n){n(e,t)}function $q(e,t,n,r,i,o,a){var s,c;const l=new Array(357);let u,_,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,S=[],k=0,T=qq,C=zq,w=0;const D=[],N={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Nt((()=>tD(N))),startLexicalEnvironment:function(){En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),En.assert(!x,"Lexical environment is suspended."),g[b]=u,h[b]=_,y[b]=d,v[b]=m,b++,u=void 0,_=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),En.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),En.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),En.assert(!x,"Lexical environment is suspended."),u||_||d){if(_&&(e=[..._]),u){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));hw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,u=g[b],_=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=hw(n.createVariableDeclaration(e),128);u?u.push(t):u=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),hw(e,2097152),_?_.push(e):_=[e]},addInitializationStatement:function(e){En.assert(w>0,"Cannot modify the lexical environment during initialization."),En.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),hw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){En.assert(w>0,"Cannot start a block scope during initialization."),En.assert(w<2,"Cannot start a block scope after transformation has completed."),S[k]=p,k++,p=void 0},endBlockScope:function(){En.assert(w>0,"Cannot end a block scope during initialization."),En.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=te(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return k--,p=S[k],0===k&&(S=[]),e},addBlockScopedVariable:function(e){En.assert(k>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(En.assert(w>0,"Cannot modify the transformation context during initialization."),En.assert(w<2,"Cannot modify the transformation context after transformation has completed."),En.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=fe(f,t)},readEmitHelpers:function(){En.assert(w>0,"Cannot modify the transformation context during initialization."),En.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){En.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){En.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){En.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),En.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){En.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),En.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){D.push(e)}};for(const L of i)mw(Id(Nc(L)));xr("beforeTransform");const E=o.map((e=>e(N))),P=e=>{for(const t of E)e=t(e);return e};w=1;const F=[];for(const L of i)null==(s=pr)||s.push(pr.Phase.Emit,"transformNodes",307===L.kind?{path:L.path}:{kind:L.kind,pos:L.pos,end:L.end}),F.push((a?P:A)(L)),null==(c=pr)||c.pop();return w=2,xr("afterTransform"),Sr("transformTime","beforeTransform","afterTransform"),{transformed:F,substituteNode:function(e,t){return En.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){En.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n
6):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)mw(Id(Nc(e)));u=void 0,g=void 0,_=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:D};function A(e){return!e||nF(e)&&e.isDeclarationFile?e:P(e)}function I(e){return!(!(1&l[e.kind])||8&lp(e))}function O(e){return!!(2&l[e.kind])||!!(4&lp(e))}}var Vq={factory:_w,getCompilerOptions:()=>({}),getEmitResolver:Dt,getEmitHost:Dt,getEmitHelperFactory:Dt,startLexicalEnvironment:vt,resumeLexicalEnvironment:vt,suspendLexicalEnvironment:vt,endLexicalEnvironment:St,setLexicalEnvironmentFlags:vt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:vt,hoistFunctionDeclaration:vt,addInitializationStatement:vt,startBlockScope:vt,endBlockScope:St,addBlockScopedVariable:vt,requestEmitHelper:vt,readEmitHelpers:Dt,enableSubstitution:vt,enableEmitNotification:vt,isSubstitutionEnabled:Dt,isEmitNotificationEnabled:Dt,onSubstituteNode:qq,onEmitNode:zq,addDiagnostic:vt},Wq=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function Hq(e){return zo(e,".tsbuildinfo")}function Kq(e,t,n,r=!1,i,o){const a=pt(n)?n:mv(e,n,r),s=e.getCompilerOptions();if(s.outFile){if(a.length){const n=_w.createBundle(a),i=t(Qq(n,e,r),n);if(i)return i}}else{if(!i)for(const n of a){const i=t(Qq(n,e,r),n);if(i)return i}if(o){const e=Gq(s);if(e)return t({buildInfoPath:e},void 0)}}}function Gq(e){const t=e.configFilePath;if(!QS(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=_T(n);else{if(!t)return;const n=_T(t);r=e.outDir?e.rootDir?ia(e.outDir,ka(e.rootDir,n,!0)):ra(e.outDir,Xo(n)):n}return r+".tsbuildinfo"}function Xq(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&Yq(r,e),o=t||GS(e)?_T(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&YS(e)?o+".map":void 0,buildInfoPath:Gq(e)}}function Qq(e,t,n){const r=t.getCompilerOptions();if(308===e.kind)return Xq(r,n);{const i=lv(e.fileName,t,Zq(e.fileName,r)),o=df(e),a=o&&0===va(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||df(e)?void 0:Yq(s,r),l=n||GS(r)&&!o?uv(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&YS(r)?l+".map":void 0,buildInfoPath:void 0}}}function Yq(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Zq(e,t){return zo(e,".json")?".json":1===t.jsx&&$o(e,[".jsx",".tsx"])?".jsx":$o(e,[".mts",".mjs"])?".mjs":$o(e,[".cts",".cjs"])?".cjs":".js"}function ez(e,t,n,r){return n?ia(n,ka(r(),e,t)):e}function tz(e,t,n,r=(()=>lz(t,n))){return nz(e,t.options,n,r)}function nz(e,t,n,r){return fT(ez(e,n,t.declarationDir||t.outDir,r),dv(e))}function rz(e,t,n,r=(()=>lz(t,n))){if(t.options.emitDeclarationOnly)return;const i=zo(e,".json"),o=iz(e,t.options,n,r);return i&&0===va(e,o,En.checkDefined(t.options.configFilePath),n)?void 0:o}function iz(e,t,n,r){return fT(ez(e,n,t.outDir,r),Zq(e,t))}function oz(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||c}}}function az(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o,buildInfoPath:a}=Xq(e.options,!1);t(n),t(r),t(i),t(o),t(a)}function sz(e,t,n,r,i){if(fO(t))return;const o=rz(t,e,n,i);if(r(o),!zo(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),GS(e.options))){const o=tz(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function cz(e,t,n,r,i){let o;return e.rootDir?(o=aa(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Go(ta(e.configFilePath)),null==i||i(o)):o=qz(t(),n,r),o&&o[o.length-1]!==Fo&&(o+=Fo),o}function lz({options:e,fileNames:t},n){return cz(e,(()=>L(t,(t=>!(e.noEmitForJsFiles&&$o(t,Kk)||fO(t))))),Go(ta(En.checkDefined(e.configFilePath))),un(!n))}function uz(e,t){const{addOutput:n,getOutputs:r}=oz();if(e.options.outFile)az(e,n);else{const r=Nt((()=>lz(e,t)));for(const i of e.fileNames)sz(e,i,t,n,r);n(Gq(e.options))}return r()}function _z(e,t,n){t=sa(t),En.assert(F(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=oz();return e.options.outFile?az(e,r):sz(e,t,n,r),i()}function dz(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=Xq(e.options,!1);return En.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=Nt((()=>lz(e,t)));
6for(const i of e.fileNames){if(fO(i))continue;const r=rz(i,e,t,n);if(r)return r;if(!zo(i,".json")&&GS(e.options))return tz(i,e,t,n)}const r=Gq(e.options);return r||En.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function pz(e,t){return!!t&&!!e}function fz(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,s){var c=t.getCompilerOptions(),l=c.sourceMap||c.inlineSourceMap||YS(c)?[]:void 0,u=c.listEmittedFiles?[]:void 0,d=Fy(),p=tx(c),f=tv(p),{enter:m,exit:g}=dr("printTime","beforePrint","afterPrint"),h=!1;return m(),Kq(t,(function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:p,declarationMapPath:f,buildInfoPath:m},g){var b,x,S,k,T,C;null==(b=pr)||b.push(pr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a){if(!n||o||!i)return;if(t.isEmitBlocked(i)||c.noEmit)return void(h=!0);(nF(n)?[n]:L(n.sourceFiles,Km)).forEach((t=>{!c.noCheck&&AT(t,c)||eO(t,(t=>!gP(t)||32&ub(t)?hP(t)?"skip":void e.markLinkedReferences(t):"skip"))}));const s=$q(e,t,_w,c,[n],r,!1),l=kz({removeComments:c.removeComments,newLine:c.newLine,noEmitHelpers:c.noEmitHelpers,module:JS(c),target:BS(c),sourceMap:c.sourceMap,inlineSourceMap:c.inlineSourceMap,inlineSources:c.inlineSources,extendedDiagnostics:c.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});En.assert(1===s.transformed.length,"Should only see one output from the transform"),v(i,a,s,l,c),s.dispose(),u&&(u.push(i),a&&u.push(a))}(g,a,l),null==(x=pr)||x.pop(),null==(S=pr)||S.push(pr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:p}),function(n,r,a){if(!n||0===o)return;if(!r)return void((o||c.emitDeclarationOnly)&&(h=!0));const l=nF(n)?[n]:n.sourceFiles,p=s?l:L(l,Km),f=c.outFile?[_w.createBundle(p)]:p;p.forEach((e=>{(o&&!GS(c)||c.noCheck||pz(o,s)||!AT(e,c))&&y(e)}));const m=$q(e,t,_w,c,f,i,!1);if(_(m.diagnostics))for(const e of m.diagnostics)d.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!c.noEmit;if(h=h||g,!g||s){En.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:c.removeComments,newLine:c.newLine,noEmitHelpers:!0,module:c.module,target:c.target,sourceMap:!s&&c.declarationMap,inlineSourceMap:c.inlineSourceMap,extendedDiagnostics:c.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0};v(r,a,m,kz(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:c.sourceRoot,mapRoot:c.mapRoot,extendedDiagnostics:c.extendedDiagnostics}),u&&(u.push(r),a&&u.push(a))}m.dispose()}(g,p,f),null==(k=pr)||k.pop(),null==(T=pr)||T.push(pr.Phase.Emit,"emitBuildInfo",{buildInfoPath:m}),function(e){if(!e||n||h)return;if(t.isEmitBlocked(e))return void(h=!0);const r=t.getBuildInfo()||mz(void 0);vv(t,d,e,gz(r),!1,void 0,{buildInfo:r}),null==u||u.push(e)}(m),null==(C=pr)||C.pop()}),mv(t,n,s),s,a,!n),g(),{emitSkipped:h,diagnostics:d.getDiagnostics(),emittedFiles:u,sourceMaps:l};function y(t){NP(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):FP(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):ZI(t,y)}function v(e,n,r,i,o){const a=r.transformed[0],s=308===a.kind?a:void 0,u=307===a.kind?a:void 0,_=s?s.sourceFiles:[u];let m,g;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(307!==t.kind||!zo(t.fileName,".json"))}(o,a)&&(m=SJ(t,Xo(ta(e)),function(e){const t=ta(e.sourceRoot||"");return t?_a(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=ta(e.mapRoot);return r&&(n=Go(hv(r.fileName,t,n))),0===Ko(n)&&(n=ra(t.getCommonSourceDirectory(),n)),n}return Go(sa(n))}(o,e,u),o)),s?i.writeBundle(s,f,m):i.writeFile(u,f,m),m){l&&l.push({inputSourceFileNames:m.getSources(),sourceMap:m.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${Hb(Eo,e)}`}const a=Xo(ta(En.checkDefined(i)));if(e.mapRoot){let n=ta(e.mapRoot);return o&&(n=Go(hv(o.fileName,t,n))),0===Ko(n)?(n=ra(t.getCommonSourceDirectory(),n),encodeURI(wa(Go(sa(r)),ra(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(ra(n,a))}return encodeURI(a)}(o,m,e,n,u);if(r&&(f.isAtStartOfLine()||f.rawWrite(p),g=f.getTextPos(),f.writeComment(`//# sourceMappingURL=${r}`)),n){const e=m.toString();vv(t,d,n,e,!1,_)}}else f.writeLine();const h=f.getText();vv(t,d,e,h,!!c.emitBOM,_,{sourceMapUrlPos:g,diagnostics:r.diagnostics}),f.clear()}}function mz(e){return{program:e,version:a}}function gz(e){return JSON.stringify(e)}function hz(e,t){return Gb(e,t)}var yz={hasGlobalName:Dt,getReferencedExportContainer:Dt,getReferencedImportDeclaration:Dt,getReferencedDeclarationWithCollidingName:Dt,isDeclarationWithCollidingName:Dt,isValueAliasDeclaration:Dt,isReferencedAliasDeclaration:Dt,isTopLevelValueImportEqualsWithEntityName:Dt,hasNodeCheckFlag:Dt,isDeclarationVisible:Dt,isLateBound:e=>!1,collectLinkedAliases:Dt,markLinkedReferences:Dt,isImplementationOfOverload:Dt,requiresAddingImplicitUndef
6ined:Dt,isExpandoFunctionDeclaration:Dt,getPropertiesOfContainerFunction:Dt,createTypeOfDeclaration:Dt,createReturnTypeOfSignatureDeclaration:Dt,createTypeOfExpression:Dt,createLiteralConstValue:Dt,isSymbolAccessible:Dt,isEntityNameVisible:Dt,getConstantValue:Dt,getEnumMemberValue:Dt,getReferencedValueDeclaration:Dt,getReferencedValueDeclarations:Dt,getTypeReferenceSerializationKind:Dt,isOptionalParameter:Dt,isArgumentsLocalBinding:Dt,getExternalModuleFileFromDeclaration:Dt,isLiteralConstDeclaration:Dt,getJsxFactoryEntity:Dt,getJsxFragmentFactoryEntity:Dt,isBindingCapturedByNode:Dt,getDeclarationStatementsForSourceFile:Dt,isImportRequiredByAugmentation:Dt},vz=Nt((()=>kz({}))),bz=Nt((()=>kz({removeComments:!0}))),xz=Nt((()=>kz({removeComments:!0,neverAsciiEscape:!0}))),Sz=Nt((()=>kz({removeComments:!0,omitTrailingSemicolon:!0})));function kz(e={},t={}){var n,r,i,o,a,s,c,l,u,_,p,f,m,g,h,y,v,b,x,S,k,T,w,D,E,P,{hasGlobalName:F,onEmitNode:A=zq,isEmitNotificationEnabled:I,substituteNode:O=qq,onBeforeEmitNode:L,onAfterEmitNode:R,onBeforeEmitNodeArray:M,onAfterEmitNodeArray:j,onBeforeEmitToken:B,onAfterEmitToken:J}=t,U=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,z=tx(e),$=JS(e),V=new Map,W=e.preserveSourceNewlines,H=function(e){v.write(e)},K=!0,G=-1,X=-1,Q=-1,Y=-1,Z=-1,ee=!1,ne=!!e.removeComments,{enter:re,exit:ie}=_r(U,"commentTime","beforeComment","afterComment"),oe=_w.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return cI((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=W,t.containerPosStack[t.stackIndex]=Q,t.containerEndStack[t.stackIndex]=Y,t.declarationListContainerEndStack[t.stackIndex]=Z;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ee(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Fe(e);null==L||L(e),n&&Gn(e),r&&yr(e),we(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=Tn(n,n.left,e),o=Tn(n,e,n.right);mn(i,r),sr(e.pos),_n(e,103===e.kind?Zt:en),lr(e.end,!0),mn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){const n=Tn(e,e.left,e.operatorToken),r=Tn(e,e.operatorToken,e.right);if(gn(n,r),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];De(n),s&&vr(e),a&&Xn(e,r,i,o),null==R||R(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Ae(0,1,e);if(i===Je&&(En.assertIsDefined(E),i=Ie(1,1,e=r(yt(E,s_))),E=void 0),(i===Kn||i===hr||i===je)&&kE(e))return e;P=r,i(1,e)}}();return ve(),{printNode:function(e,t,n){switch(e){case 0:En.assert(nF(t),"Expected a SourceFile node.");break;case 2:En.assert(nN(t),"Expected an Identifier node.");break;case 1:En.assert(s_(t),"Expected an Expression node.")}switch(t.kind){case 307:return le(t);case 308:return ce(t)}return ue(e,t,n,fe()),me()},printList:function(e,t,n){return _e(e,t,n,fe()),me()},printFile:le,printBundle:ce,writeNode:ue,writeList:_e,writeFile:pe,writeBundle:de};function ce(e){return de(e,fe(),void 0),me()}function le(e){return pe(e,fe(),void 0),me()}function ue(e,t,n,r){const i=v;ye(r,void 0),ge(e,t,n),ve(),v=i}function _e(e,t,n,r){const i=v;ye(r,void 0),n&&he(n),Vt(void 0,t,e),ve(),v=i}function de(e,t,n){x=!1;const r=v;var i;ye(t,n),Ft(e),Pt(e),Ue(e),Dt(!!(i=e).hasNoDefaultLib,i.syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(const o of e.sourceFiles)ge(0,o,o);ve(),v=r}function pe(e,t,n){x=!0;const r=v;ye(t,n),Ft(e),Pt(e),ge(0,e,e),ve(),v=r}function fe(){return b||(b=tv(z))}function me(){const e=b.getText();return b.clear(),e}function ge(e,t,n){n&&he(n),Ne(e,t,void 0)}function he(e){n=e,w=void 0,D=void 0,e&&kr(e)}function ye(t,n){t&&e.omitTrailingSemicolon&&(t=nv(t)),S=n,K=!(v=t)||!S}function ve(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],u=0,_=[],p=0,f=[],m=void 0,g=[],h=void 0,n=void 0,w=void 0,D=void 0,ye(void 0,void 0)}function be(){return w||(w=rs(En.checkDefined(n)))}function xe(e,t){void 0!==e&&Ne(4,e,t)}function Se(e){void 0!==e&&Ne(2,e,void 0)}function Te(e,t){void 0!==e&&Ne(1,e,t)}function Ce(e){Ne(BD(e)?6:4,e)}function we(e){W&&4&up(e)&&(W=!1)}function De(e){W=e}function Ne(e,t,n){P=n,Ae(0,e,t)(e,t),P=void 0}function Ee(e){return!ne&&!nF(e)}function Fe(e){return!K&&!nF(e)&&!Hm(e)}function Ae(e,t,n){switch(e){case 0:if(A!==zq&&(!I||I(n)))return Me;case 1:if(O!==qq&&(E=O(t,n)||n)!==n)return P&&(E=P(E)),Je;
6case 2:if(Ee(n))return Kn;case 3:if(Fe(n))return hr;case 4:return je;default:return En.assertNever(e)}}function Ie(e,t,n){return Ae(e+1,t,n)}function Me(e,t){const n=Ie(0,e,t);A(e,t,n)}function je(e,t){if(null==L||L(t),W){const n=W;we(t),Be(e,t),De(n)}else Be(e,t);null==R||R(t),P=void 0}function Be(e,t,r=!0){if(r){const n=zw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){an(`\${${n.order}:`),Be(e,t,!1),an("}")}(e,t,n);break;case 0:!function(e,t,n){En.assert(242===t.kind,`A tab stop cannot be attached to a node of kind ${En.formatSyntaxKind(t.kind)}.`),En.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),an(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return wt(yt(t,nF));if(2===e)return $e(yt(t,nN));if(6===e)return ze(yt(t,BD),!0);if(3===e)return function(e){xe(e.name),rn(),Zt("in"),rn(),xe(e.constraint)}(yt(t,vN));if(7===e)return function(e){Qt("{"),rn(),Zt(132===e.token?"assert":"with"),Qt(":"),rn();const t=e.elements;Vt(e,t,526226),rn(),Qt("}")}(yt(t,SP));if(5===e)return En.assertNode(t,qE),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return ze(t,!1);case 80:return $e(t);case 81:return Ve(t);case 166:return function(e){(function(e){80===e.kind?Te(e):xe(e)})(e.left),Qt("."),xe(e.right)}(t);case 167:return function(e){Qt("["),Te(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Qt("]")}(t);case 168:return function(e){Ot(e,e.modifiers),xe(e.name),e.constraint&&(rn(),Zt("extends"),rn(),xe(e.constraint)),e.default&&(rn(),en("="),rn(),xe(e.default))}(t);case 169:return function(e){It(e,e.modifiers,!0),xe(e.dotDotDotToken),At(e.name,tn),xe(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?xe(e.type):Lt(e.type),Rt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 170:return a=t,Qt("@"),void Te(a.expression,oe.parenthesizeLeftSideOfAccess);case 171:return function(e){Ot(e,e.modifiers),At(e.name,on),xe(e.questionToken),Lt(e.type),Yt()}(t);case 172:return function(e){It(e,e.modifiers,!0),xe(e.name),xe(e.questionToken),xe(e.exclamationToken),Lt(e.type),Rt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Yt()}(t);case 173:return function(e){Ot(e,e.modifiers),xe(e.name),xe(e.questionToken),st(e,ut,lt)}(t);case 174:return function(e){It(e,e.modifiers,!0),xe(e.asteriskToken),xe(e.name),xe(e.questionToken),st(e,ut,ct)}(t);case 175:return function(e){Zt("static"),Pn(e),_t(e.body),Fn(e)}(t);case 176:return function(e){It(e,e.modifiers,!1),Zt("constructor"),st(e,ut,ct)}(t);case 177:case 178:return function(e){const t=It(e,e.modifiers,!0),n=177===e.kind?139:153;tt(n,t,Zt,e),rn(),xe(e.name),st(e,ut,ct)}(t);case 179:return function(e){st(e,ut,lt)}(t);case 180:return function(e){Zt("new"),rn(),st(e,ut,lt)}(t);case 181:return function(e){var t,n;It(e,e.modifiers,!1),t=e,n=e.parameters,Vt(t,n,8848),Lt(e.type),Yt()}(t);case 182:return function(e){e.assertsModifier&&(xe(e.assertsModifier),rn()),xe(e.parameterName),e.type&&(rn(),Zt("is"),rn(),xe(e.type))}(t);case 183:return function(e){xe(e.typeName),Jt(e,e.typeArguments)}(t);case 184:return function(e){st(e,We,He)}(t);case 185:return function(e){Ot(e,e.modifiers),Zt("new"),rn(),st(e,We,He)}(t);case 186:return function(e){Zt("typeof"),rn(),xe(e.exprName),Jt(e,e.typeArguments)}(t);case 187:return function(e){Pn(e),d(e.members,Ln),Qt("{");const t=1&lp(e)?768:32897;Vt(e,e.members,524288|t),Qt("}"),Fn(e)}(t);case 188:return function(e){xe(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),Qt("]")}(t);case 189:return function(e){tt(23,e.pos,Qt,e);const t=1&lp(e)?528:657;Vt(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),tt(24,e.elements.end,Qt,e)}(t);case 190:return function(e){xe(e.type,oe.parenthesizeTypeOfOptionalType),Qt("?")}(t);case 192:return function(e){Vt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Vt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){xe(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),rn(),Zt("extends"),rn(),xe(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),rn(),Qt("?"),rn(),xe(e.trueType),rn(),Qt(":"),rn(),xe(e.falseType)}(t);case 195:return function(e){Zt("infer"),rn(),xe(e.typeParameter)}(t);case 196:return function(e){Qt("("),xe(e.type),Qt(")")}(t);case 233:return Xe(t);case 197:return void Zt("this");case 198:return function(e){dn(e.operator,Zt),rn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;xe(e.type,t)}(t);case 199:return function(e){xe(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),xe(e.indexType),Qt("]")}(t);case 200:return function(e){const t=lp(e);Qt("{"),1&t?rn():(sn(),cn()),e.readonlyToken&&(xe(e.readonlyToken),148!==e.readonlyToken.kind&&Zt("readonly"),rn()),Qt("["),Ne(3,e.typeParameter),e.nameType&&(rn(),Zt("as"),rn(),xe(e.nameType)),Qt("]"),e.questionToken&&(xe(e.questionToken),58!==e.questionToken.kind&&Qt("?")),Qt(":"),rn(),xe(e.type),Yt(),1&t?rn():(sn(),ln()),Vt(e,e.members,2),Qt("}")}(t);case 201:return function(e){Te(e.literal)}(t);case 202:return function(e){xe(e.dotDotDotToken),xe(e.name),xe(e.questionToken),tt(59,e.name.end,Qt,e),rn(),xe(e.type)}(t);case 203:return function(e){xe(e.head),Vt(e,e.templateSpans,262144)}(t);case 204:return function(e){xe(e.type),xe(e.literal)}(t);case 205:return function(e){e.isTypeOf&&(Zt("typeof"),rn()),Zt("import"),Qt("("),xe(e.argument),e.attributes&&(Qt
6(","),rn(),Ne(7,e.attributes)),Qt(")"),e.qualifier&&(Qt("."),xe(e.qualifier)),Jt(e,e.typeArguments)}(t);case 206:return function(e){Qt("{"),Vt(e,e.elements,525136),Qt("}")}(t);case 207:return function(e){Qt("["),Vt(e,e.elements,524880),Qt("]")}(t);case 208:return function(e){xe(e.dotDotDotToken),e.propertyName&&(xe(e.propertyName),Qt(":"),rn()),xe(e.name),Rt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){Te(e.expression),xe(e.literal)}(t);case 240:return void Yt();case 241:return function(e){Qe(e,!e.multiLine&&Cn(e))}(t);case 243:return function(e){It(e,e.modifiers,!1),xe(e.declarationList),Yt()}(t);case 242:return Ye(!1);case 244:return function(e){Te(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&df(n)&&!by(e.expression)||Yt()}(t);case 245:return function(e){const t=tt(101,e.pos,Zt,e);rn(),tt(21,t,Qt,e),Te(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.thenStatement),e.elseStatement&&(pn(e,e.thenStatement,e.elseStatement),tt(93,e.thenStatement.end,Zt,e),245===e.elseStatement.kind?(rn(),xe(e.elseStatement)):Bt(e,e.elseStatement))}(t);case 246:return function(e){tt(92,e.pos,Zt,e),Bt(e,e.statement),JE(e.statement)&&!W?rn():pn(e,e.statement,e.expression),Ze(e,e.statement.end),Yt()}(t);case 247:return function(e){Ze(e,e.pos),Bt(e,e.statement)}(t);case 248:return function(e){const t=tt(99,e.pos,Zt,e);rn();let n=tt(21,t,Qt,e);et(e.initializer),n=tt(27,e.initializer?e.initializer.end:n,Qt,e),jt(e.condition),n=tt(27,e.condition?e.condition.end:n,Qt,e),jt(e.incrementor),tt(22,e.incrementor?e.incrementor.end:n,Qt,e),Bt(e,e.statement)}(t);case 249:return function(e){const t=tt(99,e.pos,Zt,e);rn(),tt(21,t,Qt,e),et(e.initializer),rn(),tt(103,e.initializer.end,Zt,e),rn(),Te(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 250:return function(e){const t=tt(99,e.pos,Zt,e);rn(),function(e){e&&(xe(e),rn())}(e.awaitModifier),tt(21,t,Qt,e),et(e.initializer),rn(),tt(165,e.initializer.end,Zt,e),rn(),Te(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 251:return function(e){tt(88,e.pos,Zt,e),Mt(e.label),Yt()}(t);case 252:return function(e){tt(83,e.pos,Zt,e),Mt(e.label),Yt()}(t);case 253:return function(e){tt(107,e.pos,Zt,e),jt(e.expression&&it(e.expression),it),Yt()}(t);case 254:return function(e){const t=tt(118,e.pos,Zt,e);rn(),tt(21,t,Qt,e),Te(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 255:return function(e){const t=tt(109,e.pos,Zt,e);rn(),tt(21,t,Qt,e),Te(e.expression),tt(22,e.expression.end,Qt,e),rn(),xe(e.caseBlock)}(t);case 256:return function(e){xe(e.label),tt(59,e.label.end,Qt,e),rn(),xe(e.statement)}(t);case 257:return function(e){tt(111,e.pos,Zt,e),jt(it(e.expression),it),Yt()}(t);case 258:return function(e){tt(113,e.pos,Zt,e),rn(),xe(e.tryBlock),e.catchClause&&(pn(e,e.tryBlock,e.catchClause),xe(e.catchClause)),e.finallyBlock&&(pn(e,e.catchClause||e.tryBlock,e.finallyBlock),tt(98,(e.catchClause||e.tryBlock).end,Zt,e),rn(),xe(e.finallyBlock))}(t);case 259:return function(e){un(89,e.pos,Zt),Yt()}(t);case 260:return function(e){var t,n,r,i,o;xe(e.name),xe(e.exclamationToken),Lt(e.type),Rt(e.initializer,null!=(n=null!=(t=null==(r=e.type)?void 0:r.end)?t:null==(o=null==(i=e.name.emitNode)?void 0:i.typeNode)?void 0:o.end)?n:e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){mf(e)?(Zt("await"),rn(),Zt("using")):Zt(vf(e)?"let":hf(e)?"const":gf(e)?"using":"var"),rn(),Vt(e,e.declarations,528)}(t);case 262:return function(e){at(e)}(t);case 263:return function(e){ft(e)}(t);case 264:return function(e){It(e,e.modifiers,!1),Zt("interface"),rn(),xe(e.name),Ut(e,e.typeParameters),Vt(e,e.heritageClauses,512),rn(),Qt("{"),Pn(e),d(e.members,Ln),Vt(e,e.members,129),Fn(e),Qt("}")}(t);case 265:return function(e){It(e,e.modifiers,!1),Zt("type"),rn(),xe(e.name),Ut(e,e.typeParameters),rn(),Qt("="),rn(),xe(e.type),Yt()}(t);case 266:return function(e){It(e,e.modifiers,!1),Zt("enum"),rn(),xe(e.name),rn(),Qt("{"),Vt(e,e.members,145),Qt("}")}(t);case 267:return function(e){It(e,e.modifiers,!1),2048&~e.flags&&(Zt(32&e.flags?"namespace":"module"),rn()),xe(e.name);let t=e.body;if(!t)return Yt();for(;t&&dP(t);)Qt("."),xe(t.name),t=t.body;rn(),xe(t)}(t);case 268:return function(e){Pn(e),d(e.statements,On),Qe(e,Cn(e)),Fn(e)}(t);case 269:return function(e){tt(19,e.pos,Qt,e),Vt(e,e.clauses,129),tt(20,e.clauses.end,Qt,e,!0)}(t);case 270:return function(e){let t=tt(95,e.pos,Zt,e);rn(),t=tt(130,t,Zt,e),rn(),t=tt(145,t,Zt,e),rn(),xe(e.name),Yt()}(t);case 271:return function(e){It(e,e.modifiers,!1),tt(102,e.modifiers?e.modifiers.end:e.pos,Zt,e),rn(),e.isTypeOnly&&
6(tt(156,e.pos,Zt,e),rn()),xe(e.name),rn(),tt(64,e.name.end,Qt,e),rn(),function(e){80===e.kind?Te(e):xe(e)}(e.moduleReference),Yt()}(t);case 272:return function(e){It(e,e.modifiers,!1),tt(102,e.modifiers?e.modifiers.end:e.pos,Zt,e),rn(),e.importClause&&(xe(e.importClause),rn(),tt(161,e.importClause.end,Zt,e),rn()),Te(e.moduleSpecifier),e.attributes&&Mt(e.attributes),Yt()}(t);case 273:return function(e){e.isTypeOnly&&(tt(156,e.pos,Zt,e),rn()),xe(e.name),e.name&&e.namedBindings&&(tt(28,e.name.end,Qt,e),rn()),xe(e.namedBindings)}(t);case 274:return function(e){const t=tt(42,e.pos,Qt,e);rn(),tt(130,t,Zt,e),rn(),xe(e.name)}(t);case 280:return function(e){const t=tt(42,e.pos,Qt,e);rn(),tt(130,t,Zt,e),rn(),xe(e.name)}(t);case 275:case 279:return function(e){mt(e)}(t);case 276:case 281:return function(e){gt(e)}(t);case 277:return function(e){const t=tt(95,e.pos,Zt,e);rn(),e.isExportEquals?tt(64,t,en,e):tt(90,t,Zt,e),rn(),Te(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Yt()}(t);case 278:return function(e){It(e,e.modifiers,!1);let t=tt(95,e.pos,Zt,e);rn(),e.isTypeOnly&&(t=tt(156,t,Zt,e),rn()),e.exportClause?xe(e.exportClause):t=tt(42,t,Qt,e),e.moduleSpecifier&&(rn(),tt(161,e.exportClause?e.exportClause.end:t,Zt,e),rn(),Te(e.moduleSpecifier)),e.attributes&&Mt(e.attributes),Yt()}(t);case 300:return function(e){tt(e.token,e.pos,Zt,e),rn();const t=e.elements;Vt(e,t,526226)}(t);case 301:return function(e){xe(e.name),Qt(":"),rn();const t=e.value;1024&lp(t)||lr(Dw(t).pos),xe(t)}(t);case 282:case 319:case 330:case 331:case 333:case 334:case 335:case 336:case 353:return;case 283:return function(e){Zt("require"),Qt("("),Te(e.expression),Qt(")")}(t);case 12:return function(e){v.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(Qt("<"),jP(e)){const t=xn(e.tagName,e);vt(e.tagName),Jt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&rn(),xe(e.attributes),Sn(e.attributes,e),gn(t)}Qt(">")}(t);case 287:case 290:return function(e){Qt("</"),BP(e)&&vt(e.tagName),Qt(">")}(t);case 291:return function(e){xe(e.name),function(e,t,n,r){n&&(t(e),r(n))}("=",Qt,e.initializer,Ce)}(t);case 292:return function(e){Vt(e,e.properties,262656)}(t);case 293:return function(e){Qt("{..."),Te(e.expression),Qt("}")}(t);case 294:return function(e){var t,r;if(e.expression||!ne&&!by(e)&&(function(e){let t=!1;return ws((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r=e.pos)||function(e){let t=!1;return Cs((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!by(e)&&ss(n,e.pos).line!==ss(n,e.end).line;r&&v.increaseIndent();const i=tt(19,e.pos,Qt,e);xe(e.dotDotDotToken),Te(e.expression),tt(20,(null==(t=e.expression)?void 0:t.end)||i,Qt,e),r&&v.decreaseIndent()}}(t);case 295:return function(e){Se(e.namespace),Qt(":"),Se(e.name)}(t);case 296:return function(e){tt(84,e.pos,Zt,e),rn(),Te(e.expression,oe.parenthesizeExpressionForDisallowedComma),bt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=tt(90,e.pos,Zt,e);bt(e,e.statements,t)}(t);case 298:return function(e){rn(),dn(e.token,Zt),rn(),Vt(e,e.types,528)}(t);case 299:return function(e){const t=tt(85,e.pos,Zt,e);rn(),e.variableDeclaration&&(tt(21,t,Qt,e),xe(e.variableDeclaration),tt(22,e.variableDeclaration.end,Qt,e),rn()),xe(e.block)}(t);case 303:return function(e){xe(e.name),Qt(":"),rn();const t=e.initializer;1024&lp(t)||lr(Dw(t).pos),Te(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){xe(e.name),e.objectAssignmentInitializer&&(rn(),Qt("="),rn(),Te(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(tt(26,e.pos,Qt,e),Te(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){xe(e.name),Rt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 307:return wt(t);case 308:return En.fail("Bundles should be printed using printBundle");case 309:return Ct(t);case 310:return function(e){rn(),Qt("{"),xe(e.name),Qt("}")}(t);case 312:return Qt("*");case 313:return Qt("?");case 314:return function(e){Qt("?"),xe(e.type)}(t);case 315:return function(e){Qt("!"),xe(e.type)}(t);case 316:return function(e){xe(e.type),Qt("=")}(t);case 317:return function(e){Zt("function"),qt(e,e.parameters),Qt(":"),xe(e.type)}(t);case 191:case 318:return function(e){Qt("..."),xe(e.type)}(t);case 320:return function(e){if(H("/**"),e.comment){const t=Cl(e.comment);if(t){const e=t.split(/\r\n?|\n/g);for(const t of e)sn(),rn(),Qt("*"),rn(),H(t)}}e.tags&&(1!==e.tags.length||344!==e.tags[0].kind||e.comment?Vt(e,e.tags,33):(rn(),xe(e.tags[0]))),rn(),H("*/")}(t);case 322:return xt(t);case 323:return St(t);case 327:case 332:case 337:return kt((o=t).tagName),void Tt(o.comment);case 328:case 329:return function(e){kt(e.tagName),rn(),Qt("{"),xe(e.class),Qt("}"),Tt(e.comment)}(t);case 338:return function(e){kt(e.tagName),e.name&&(rn(),xe(e.name)),Tt(e.comment),St(e.typeExpression)}(t);case 339:return function(e){Tt(e.comment),St(e.typeExpression)}(t);case 341:case 348:return kt((i=t).tagName),Ct(i.typeExpression),rn(),i.isBracketed&&Qt("["),xe(i.name),i.isBracketed&&Qt("]"),void Tt(i.comment);case 340:case 342:case 343:case 344:case 349:case 350:return function(e){kt(e.tagName),Ct(e.typeExpression),Tt(e.comment)}(t);case 345:return function(e){kt(e.tagName),Ct(e.constraint),rn(),Vt(e,e.typeParameters,528),Tt(e.comment)}(t);case 346:return function(e){kt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?Ct(e.typeExpression):(rn(),Qt("{"),H("Object"),e.typeExpression.isArrayType&&(Qt("["),Qt("]")),Qt("}"))),e.fullName&&(rn(),xe(e.fullName)),Tt(e.comment),e.typeExpression&&322===e.typeExpression.kind&&xt(e.typeExpression)}(t);case 347:return function(e){kt(e.tagName),xe(e.name),Tt(e.comment)}(t);case 351:return function(e){kt(e.tagName),rn(),e.importClause&&(xe(e.importClause),rn(),tt(161,e.importClause.end,Zt,e),rn()),Te(e.moduleSpecifier),e.attributes&&Mt(e.attributes),Tt(e.comment)}(t)}if(s_(t)&&(e=1,O!==qq)){const n=O(e,t)||t;n!==t&&(t=n,P&&(t=P(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){ze(e,!1)}(t);case 11:case 14:case 15:return ze(t,!1);case 80:return $e(t);case 81:return Ve(t);case 209:return function(e){const t=e.elements,n=e.multiLine?65536:0;Wt(e,t,8914|n,oe.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){Pn(e),d(e.properties,Ln);const t=131072&lp(e);t&&cn();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!df(n)?64:0;
6Vt(e,e.properties,526226|i|r),t&&ln(),Fn(e)}(t);case 211:return function(e){Te(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||$T(_w.createToken(25),e.expression.end,e.name.pos),n=Tn(e,e.expression,t),r=Tn(e,t,e.name);mn(n,!1);const i=29!==t.kind&&function(e){if(MD(e=Bl(e))){const t=Nn(e,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Ga(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(Hx(e)){const t=Rw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!v.hasTrailingComment()&&!v.hasTrailingWhitespace();i&&Qt("."),e.questionDotToken?xe(t):tt(t.kind,e.expression.end,Qt,e),mn(r,!1),xe(e.name),gn(n,r)}(t);case 212:return function(e){Te(e.expression,oe.parenthesizeLeftSideOfAccess),xe(e.questionDotToken),tt(23,e.expression.end,Qt,e),Te(e.argumentExpression),tt(24,e.argumentExpression.end,Qt,e)}(t);case 213:return function(e){const t=16&up(e);t&&(Qt("("),Gt("0"),Qt(","),rn()),Te(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Qt(")"),xe(e.questionDotToken),Jt(e,e.typeArguments),Wt(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){tt(105,e.pos,Zt,e),rn(),Te(e.expression,oe.parenthesizeExpressionOfNew),Jt(e,e.typeArguments),Wt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&up(e);t&&(Qt("("),Gt("0"),Qt(","),rn()),Te(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Qt(")"),Jt(e,e.typeArguments),rn(),Te(e.template)}(t);case 216:return function(e){Qt("<"),xe(e.type),Qt(">"),Te(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=tt(21,e.pos,Qt,e),n=xn(e.expression,e);Te(e.expression,void 0),Sn(e.expression,e),gn(n),tt(22,e.expression?e.expression.end:t,Qt,e)}(t);case 218:return function(e){Rn(e.name),at(e)}(t);case 219:return function(e){Ot(e,e.modifiers),st(e,Ke,Ge)}(t);case 220:return function(e){tt(91,e.pos,Zt,e),rn(),Te(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){tt(114,e.pos,Zt,e),rn(),Te(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){tt(116,e.pos,Zt,e),rn(),Te(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){tt(135,e.pos,Zt,e),rn(),Te(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){dn(e.operator,en),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&rn(),Te(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){Te(e.operand,oe.parenthesizeOperandOfPostfixUnary),dn(e.operator,en)}(t);case 226:return se(t);case 227:return function(e){const t=Tn(e,e.condition,e.questionToken),n=Tn(e,e.questionToken,e.whenTrue),r=Tn(e,e.whenTrue,e.colonToken),i=Tn(e,e.colonToken,e.whenFalse);Te(e.condition,oe.parenthesizeConditionOfConditionalExpression),mn(t,!0),xe(e.questionToken),mn(n,!0),Te(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),gn(t,n),mn(r,!0),xe(e.colonToken),mn(i,!0),Te(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),gn(r,i)}(t);case 228:return function(e){xe(e.head),Vt(e,e.templateSpans,262144)}(t);case 229:return function(e){tt(127,e.pos,Zt,e),xe(e.asteriskToken),jt(e.expression&&it(e.expression),ot)}(t);case 230:return function(e){tt(26,e.pos,Qt,e),Te(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){Rn(e.name),ft(e)}(t);case 232:case 282:case 353:return;case 234:return function(e){Te(e.expression,void 0),e.type&&(rn(),Zt("as"),rn(),xe(e.type))}(t);case 235:return function(e){Te(e.expression,oe.parenthesizeLeftSideOfAccess),en("!")}(t);case 233:return Xe(t);case 238:return function(e){Te(e.expression,void 0),e.type&&(rn(),Zt("satisfies"),rn(),xe(e.type))}(t);case 236:return function(e){un(e.keywordToken,e.pos,Qt),Qt("."),xe(e.name)}(t);case 237:return En.fail("SyntheticExpression should never be printed.");case 284:return function(e){xe(e.openingElement),Vt(e,e.children,262144),xe(e.closingElement)}(t);case 285:return function(e){Qt("<"),vt(e.tagName),Jt(e,e.typeArguments),rn(),xe(e.attributes),Qt("/>")}(t);case 288:return function(e){xe(e.openingFragment),Vt(e,e.children,262144),xe(e.closingFragment)}(t);case 352:return En.fail("SyntaxList should not be printed");case 354:return function(e){const t=lp(e);1024&t||e.pos===e.expression.pos||lr(e.expression.pos),Te(e.expression),2048&t||e.end===e.expression.end||sr(e.expression.end)}(t);case 355:return function(e){Wt(e,e.elements,528,void 0)}(t);case 356:return En.fail("SyntheticReferenceExpression should not be printed")}return Jh(t.kind)?_n(t,Zt):Wl(t.kind)?_n(t,Qt):void En.fail(`Unhandled SyntaxKind: ${En.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=Ie(1,e,t);
6En.assertIsDefined(E),t=E,E=void 0,n(e,t)}function Ue(t){let r=!1;const i=308===t.kind?t:void 0;if(i&&0===$)return;const o=i?i.sourceFiles.length:1;for(let a=0;a<o;a++){const o=i?i.sourceFiles[a]:t,s=nF(o)?o:n,c=e.noEmitHelpers||!!s&&DA(s),l=nF(o)&&!x,u=qe(o);if(u)for(const e of u){if(e.scoped){if(i)continue}else{if(c)continue;if(l){if(V.get(e.name))continue;V.set(e.name,!0)}}"string"==typeof e.text?fn(e.text):fn(e.text($n)),r=!0}}return r}function qe(e){const t=Uw(e);return t&&ke(t,nD)}function ze(t,n){const r=Nn(t,e.neverAsciiEscape,n);var i;!e.sourceMap&&!e.inlineSourceMap||11!==t.kind&&!Yl(t.kind)?(i=r,v.writeStringLiteral(i)):Gt(r)}function $e(e){(e.symbol?Xt:H)(Dn(e,!1),e.symbol),Vt(e,Gw(e),53776)}function Ve(e){H(Dn(e,!1))}function We(e){Ut(e,e.typeParameters),zt(e,e.parameters),rn(),Qt("=>")}function He(e){rn(),xe(e.type)}function Ke(e){Ut(e,e.typeParameters),zt(e,e.parameters),Lt(e.type),rn(),xe(e.equalsGreaterThanToken)}function Ge(e){JE(e.body)?_t(e.body):(rn(),Te(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){Te(e.expression,oe.parenthesizeLeftSideOfAccess),Jt(e,e.typeArguments)}function Qe(e,t){tt(19,e.pos,Qt,e);const n=t||1&lp(e)?768:129;Vt(e,e.statements,n),tt(20,e.statements.end,Qt,e,!!(1&n))}function Ye(e){e?Qt(";"):Yt()}function Ze(e,t){const n=tt(117,t,Zt,e);rn(),tt(21,n,Qt,e),Te(e.expression),tt(22,e.expression.end,Qt,e)}function et(e){void 0!==e&&(261===e.kind?xe(e):Te(e))}function tt(e,t,r,i,o){const a=Nc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=hs(n.text,t)),s&&i.pos!==c){const e=o&&n&&!hx(c,t,n);e&&cn(),sr(c),e&&ln()}if(t=q||19!==e&&20!==e?dn(e,r,t):un(e,t,r,i),s&&i.end!==t){const e=294===i.kind;lr(t,!e,e)}return t}function nt(e){return 2===e.kind||!!e.hasTrailingNewLine}function rt(e){if(!n)return!1;const t=Ps(n.text,e.pos);if(t){const t=Nc(e);if(t&&fE(t.parent))return!0}return!!te(t,nt)||!!te(Ew(e),nt)||!!RE(e)&&(!(e.pos===e.expression.pos||!te(Fs(n.text,e.expression.pos),nt))||rt(e.expression))}function it(e){if(!ne&&RE(e)&&rt(e)){const t=Nc(e);if(t&&fE(t)){const n=_w.createParenthesizedExpression(e.expression);return pw(n,e),TI(n,t),n}return _w.createParenthesizedExpression(e)}return e}function ot(e){return it(oe.parenthesizeExpressionForDisallowedComma(e))}function at(e){It(e,e.modifiers,!1),Zt("function"),xe(e.asteriskToken),rn(),Se(e.name),st(e,ut,ct)}function st(e,t,n){const r=131072&lp(e);r&&cn(),Pn(e),d(e.parameters,On),t(e),n(e),Fn(e),r&&ln()}function ct(e){const t=e.body;t?_t(t):Yt()}function lt(e){Yt()}function ut(e){Ut(e,e.typeParameters),qt(e,e.parameters),Lt(e.type)}function _t(e){On(e),null==L||L(e),rn(),Qt("{"),cn();const t=function(e){if(1&lp(e))return!0;if(e.multiLine)return!1;if(!by(e)&&n&&!lx(e,n))return!1;if(hn(e,Pe(e.statements),2)||vn(e,Oe(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(yn(t,n,2)>0)return!1;t=n}return!0}(e)?dt:pt;tr(e,e.statements,t),ln(),un(20,e.statements.end,Qt,e),null==R||R(e)}function dt(e){pt(e,!0)}function pt(e,t){const n=Et(e.statements),r=v.getTextPos();Ue(e),0===n&&r===v.getTextPos()&&t?(ln(),Vt(e,e.statements,768),cn()):Vt(e,e.statements,1,void 0,n)}function ft(e){It(e,e.modifiers,!0),tt(86,ax(e).pos,Zt,e),e.name&&(rn(),Se(e.name));const t=131072&lp(e);t&&cn(),Ut(e,e.typeParameters),Vt(e,e.heritageClauses,0),rn(),Qt("{"),Pn(e),d(e.members,Ln),Vt(e,e.members,129),Fn(e),Qt("}"),t&&ln()}function mt(e){Qt("{"),Vt(e,e.elements,525136),Qt("}")}function gt(e){e.isTypeOnly&&(Zt("type"),rn()),e.propertyName&&(xe(e.propertyName),rn(),tt(130,e.propertyName.end,Zt,e),rn()),xe(e.name)}
6function vt(e){80===e.kind?Te(e):xe(e)}function bt(e,t,r){let i=163969;1===t.length&&(!n||by(e)||by(t[0])||ux(e,t[0],n))?(un(59,r,Qt,e),rn(),i&=-130):tt(59,r,Qt,e),Vt(e,t,i)}function xt(e){Vt(e,_w.createNodeArray(e.jsDocPropertyTags),33)}function St(e){e.typeParameters&&Vt(e,_w.createNodeArray(e.typeParameters),33),e.parameters&&Vt(e,_w.createNodeArray(e.parameters),33),e.type&&(sn(),rn(),Qt("*"),rn(),xe(e.type))}function kt(e){Qt("@"),xe(e)}function Tt(e){const t=Cl(e);t&&(rn(),H(t))}function Ct(e){e&&(rn(),Qt("{"),xe(e.type),Qt("}"))}function wt(e){sn();const t=e.statements;0===t.length||!Tf(t[0])||by(t[0])?tr(e,t,Nt):Nt(e)}function Dt(e,t,r,i){if(e&&(nn('/// <reference no-default-lib="true"/>'),sn()),n&&n.moduleName&&(nn(`/// <amd-module name="${n.moduleName}" />`),sn()),n&&n.amdDependencies)for(const a of n.amdDependencies)a.name?nn(`/// <amd-dependency name="${a.name}" path="${a.path}" />`):nn(`/// <amd-dependency path="${a.path}" />`),sn();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";nn(`/// <reference ${e}="${n.fileName}" ${t}${r}/>`),sn()}}o("path",t),o("types",r),o("lib",i)}function Nt(e){const t=e.statements;Pn(e),d(e.statements,On),Ue(e);const n=N(t,(e=>!Tf(e)));!function(e){e.isDeclarationFile&&Dt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Vt(e,t,1,void 0,-1===n?t.length:n),Fn(e)}function Et(e,t,n){let r=!!t;for(let i=0;i<e.length;i++){const o=e[i];if(!Tf(o))return i;(!n||!n.has(o.expression.text))&&(r&&(r=!1,he(t)),sn(),xe(o),n&&n.add(o.expression.text))}return e.length}function Pt(e){if(nF(e))Et(e.statements,e);else{const t=new Set;for(const n of e.sourceFiles)Et(n.statements,n,t);he(void 0)}}function Ft(e){if(nF(e)){const t=As(e.text);if(t)return nn(t),sn(),!0}else for(const t of e.sourceFiles)if(Ft(t))return!0}function At(e,t){if(!e)return;const n=H;H=t,xe(e),H=n}function It(e,t,n){if(null==t?void 0:t.length){if(C(t,mu))return Ot(e,t);if(C(t,xN))return n?function(e,t){Vt(e,t,2146305);const n=Oe(t);return n&&!hT(n.end)?n.end:e.pos}(e,t):e.pos;let r,i;null==M||M(t);let o,a=0,s=0;for(;a<t.length;){for(;s<t.length;){if(o=t[s],i=xN(o)?"decorators":"modifiers",void 0===r)r=i;else if(i!==r)break;s++}const c={pos:-1,end:-1};0===a&&(c.pos=t.pos),s===t.length-1&&(c.end=t.end),("modifiers"===r||n)&&Kt(xe,e,t,"modifiers"===r?2359808:2146305,void 0,a,s-a,!1,c),a=s,r=i,s++}if(null==j||j(t),o&&!hT(o.end))return o.end}return e.pos}function Ot(e,t){Vt(e,t,2359808);const n=Oe(t);return n&&!hT(n.end)?n.end:e.pos}function Lt(e){e&&(Qt(":"),rn(),xe(e))}function Rt(e,t,n,r){e&&(rn(),tt(64,t,en,n),rn(),Te(e,r))}function Mt(e){e&&(rn(),xe(e))}function jt(e,t){e&&(rn(),Te(e,t))}function Bt(e,t){JE(t)||1&lp(e)||W&&!hn(e,t,0)?(rn(),xe(t)):(sn(),cn(),qE(t)?Ne(5,t):xe(t),ln())}function Jt(e,t){Vt(e,t,53776,ae)}function Ut(e,t){if(vu(e)&&e.typeArguments)return Jt(e,e.typeArguments);Vt(e,t,53776)}function qt(e,t){Vt(e,t,2576)}function zt(e,t){!function(e,t){const n=Re(t);return n&&n.pos===e.pos&&gE(e)&&!e.type&&!te(e.modifiers)&&!te(e.typeParameters)&&!te(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&nN(n.name)}(e,t)?qt(e,t):Vt(e,t,528)}function $t(e){switch(60&e){case 0:break;case 16:Qt(",");break;case 4:rn(),Qt("|");break;case 32:rn(),Qt("*"),rn();break;case 8:rn(),Qt("&")}}function Vt(e,t,n,r,i,o){Ht(xe,e,t,n|(e&&2&lp(e)?65536:0),r,i,o)}function Wt(e,t,n,r,i,o){Ht(Te,e,t,n,r,i,o)}function Ht(e,t,r,i,o,a=0,s=(r?r.length-a:0)){if(void 0===r&&16384&i)return;const c=void 0===r||a>=r.length||0===s;if(c&&32768&i)return null==M||M(r),void(null==j||j(r));15360&i&&(Qt(function(e){return Wq[15360&e][0]}(i)),c&&r&&lr(r.pos,!0)),null==M||M(r),c?!(1&i)||W&&(!t||n&&lx(t,n))?256&i&&!(524288&i)&&rn():sn():Kt(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==j||j(r),15360&i&&(c&&r&&sr(r.end),Qt(function(e){return Wq[15360&e][1]}(i)))}function Kt(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let u=l;const _=hn(t,n[o],r);_?(sn(_),u=!1):256&r&&rn(),128&r&&cn();const d=function(e,t){return 1===e.length?Tz:"object"==typeof t?Cz:wz}(e,i);let p,f=!1;for(let b=0;b<a;b++){const a=n[o+b];if(32&r)sn(),$t(r);else if(p){60&r&&p.end!==(t?t.end:-1)&&(2048&lp(p)||sr(p.end)),$t(r);const e=yn(p,a,r);e>0?(131&r||(cn(),f=!0),u&&60&r&&!hT(a.pos)&&lr(Dw(a).pos,!!(512&r),!0),sn(e),u=!1):p&&512&r&&rn()}u?lr(Dw(a).pos):u=l,y=a.pos,d(a,e,i,b),f&&(ln(),f=!1),p=a}const m=p?lp(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?tt(28,p.end,Qt,p):Qt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&sr(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&ln();const v=vn(t,n[o+a-1],r,c);v?sn(v):2097408&r&&rn()}function Gt(e){v.writeLiteral(e)}function Xt(e,t){v.writeSymbol(e,t)}function Qt(e){v.writePunctuation(e)}function Yt(){v.writeTrailingSemicolon(";")}function Zt(e){v.writeKeyword(e)}function en(e){v.writeOperator(e)}function tn(e){v.writeParameter(e)}function nn(e){v.writeComment(e)}function rn(){v.writeSpace(" ")}function on(e){v.writeProperty(e)}function an(e){v.nonEscapingWrite?v.nonEscapingWrite(e):v.write(e)}function sn(e=1){for(let t=0;t<e;t++)v.writeLine(t>0)}function cn(){v.increaseIndent()}function ln(){v.decreaseIndent()}function un(e,t,n,r){return K?dn(e,n,t):function(e,t,n,r,i){if(K||e&&Hm(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||k;return r=br(c,s?s.pos:r),!(256&a)&&r>=0&&Sr(c,r),r=i(t,n,r),s&&(r=s.end),!(512&a)&&r>=0&&Sr(c,r),r}(r,e,n,t,dn)}function _n(e,t){B&&B(e),t(Ga(e.kind)),J&&J(e)}function dn(e,t,n){const r=Ga(e);return t(r),n<0?n:n+r.length}function pn(e,t,n){if(1&lp(e))rn();else if(W){const r=Tn(e,t,n);r?sn(r):rn()}else sn()}function fn(e){const t=e.split(/\r\n?|\n/g),n=Y_(t);for(const r of t){const e=n?r.slice(n):r;e.length&&(sn(),H(e))}}function mn(e,t){e?(cn(),sn(e)):t&&rn()}function gn(e,t){e&&ln(),t&&ln()}function hn(e,t,r){if(2&r||W){if(65536&r)return 1;if(void 0===t)return!e||n&&lx(e,n)?0:1;if(t.pos===y)return 0;if(12===t.kind)return 0;if(n&&e&&!hT(e.pos)&&!by(t)&&(!t.parent||Cc(t.parent)===Cc(e)))return W?bn((r=>vx(t.pos,e.pos,n,r))):ux(e,t,n)?0:1;if(kn(t,r))return 1}return 1&r?1:0}function yn(e,t,r){if(2&r||W){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!by(e)&&!by(t))return W&&function(e,t){if(t.pos<e.end)return!1;e=Cc(e),t=Cc(t);const n=e.parent;if(!n||n!==t.parent)return!1;const r=eC(e),i=null==r?void 0:r.indexOf(e);return void 0!==i&&i>-1&&r.indexOf(t)===i+1}
6(e,t)?bn((r=>fx(e,t,n,r))):!W&&(o=t,(i=Cc(i=e)).parent&&i.parent===Cc(o).parent)?px(e,t,n)?0:1:65536&r?1:0;if(kn(e,r)||kn(t,r))return 1}else if(Cw(t))return 1;var i,o;return 1&r?1:0}function vn(e,t,r,i){if(2&r||W){if(65536&r)return 1;if(void 0===t)return!e||n&&lx(e,n)?0:1;if(n&&e&&!hT(e.pos)&&!by(t)&&(!t.parent||t.parent===e)){if(W){const r=i&&!hT(i.end)?i.end:t.end;return bn((t=>bx(r,e.end,n,t)))}return _x(e,t,n)?0:1}if(kn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function bn(e){En.assert(!!W);const t=e(!0);return 0===t?e(!1):t}function xn(e,t){const n=W&&hn(t,e,0);return n&&mn(n,!1),!!n}function Sn(e,t){const n=W&&vn(t,e,0,void 0);n&&sn(n)}function kn(e,t){if(by(e)){const n=Cw(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Tn(e,t,r){return 262144&lp(e)?0:(e=wn(e),t=wn(t),Cw(r=wn(r))?1:!n||by(e)||by(t)||by(r)?0:W?bn((e=>fx(t,r,n,e))):px(t,r,n)?0:1)}function Cn(e){return 0===e.statements.length&&(!n||px(e,e,n))}function wn(e){for(;217===e.kind&&by(e);)e=e.expression;return e}function Dn(e,t){if(su(e)||cu(e))return Mn(e);if(BD(e)&&e.textSourceNode)return Dn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!by(e);if(Nl(e)){if(!i||Id(e)!==Cc(r))return Fc(e)}else if(HP(e)){if(!i||Id(e)!==Cc(r))return wC(e)}else if(En.assertNode(e,Xl),!i)return e.text;return rp(r,e,t)}function Nn(t,r,i){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(nN(e)||rN(e)||MD(e)||HP(e)){const n=MD(e)?e.text:Dn(e);return i?`"${Gy(n)}"`:r||16777216&lp(t)?`"${qy(n)}"`:`"${$y(n)}"`}return Nn(e,r,i)}const o=(r?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return pp(t,n,o)}function Pn(e){l.push(u),u=0,g.push(h),e&&1048576&lp(e)||(_.push(p),p=0,s.push(c),c=void 0,f.push(m))}function Fn(e){u=l.pop(),h=g.pop(),e&&1048576&lp(e)||(p=_.pop(),c=s.pop(),m=f.pop())}function An(e){m&&m!==Oe(f)||(m=new Set),m.add(e)}function In(e){h&&h!==Oe(g)||(h=new Set),h.add(e)}function On(e){if(e)switch(e.kind){case 241:case 296:case 297:d(e.statements,On);break;case 256:case 254:case 246:case 247:On(e.statement);break;case 245:On(e.thenStatement),On(e.elseStatement);break;case 248:case 250:case 249:On(e.initializer),On(e.statement);break;case 255:On(e.caseBlock);break;case 269:d(e.clauses,On);break;case 258:On(e.tryBlock),On(e.catchClause),On(e.finallyBlock);break;case 299:On(e.variableDeclaration),On(e.block);break;case 243:On(e.declarationList);break;case 261:d(e.declarations,On);break;case 260:case 169:case 208:case 263:case 274:case 280:Rn(e.name);break;case 262:Rn(e.name),1048576&lp(e)&&(d(e.parameters,On),On(e.body));break;case 206:case 207:case 275:d(e.elements,On);break;case 272:On(e.importClause);break;case 273:Rn(e.name),On(e.namedBindings);break;case 276:Rn(e.propertyName||e.name)}}function Ln(e){if(e)switch(e.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:Rn(e.name)}}function Rn(e){e&&(su(e)||cu(e)?Mn(e):Bu(e)&&On(e))}function Mn(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return jn(pI(e),rN(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=fI(t.prefix,Mn),r=fI(t.suffix);switch(7&t.flags){case 1:return qn(0,!!(8&t.flags),rN(e),n,r);case 2:return En.assertNode(e,nN),qn(268435456,!!(8&t.flags),!1,n,r);case 3:return zn(Fc(e),32&t.flags?Jn:Bn,!!(16&t.flags),!!(8&t.flags),rN(e),n,r)}return En.fail(`Unsupported GeneratedIdentifierKind: ${En.formatEnum(7&t.flags,Br,!0)}.`)}(e))}}function jn(e,t,n,o,a){const s=ZB(e),c=t?i:r;return c[s]||(c[s]=Hn(e,t,null!=n?n:0,fI(o,Mn),fI(a)))}function Bn(e,t){return Jn(e)&&!function(e,t){let n,r;if(t?(n=h,r=g):(n=m,r=f),null==n?void 0:n.has(e))return!0;for(let i=r.length-1;i>=0;i--)if(n!==r[i]&&(n=r[i],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Jn(e,t){return!n||Jd(n,e,F)}function Un(e,t){switch(e){case"":p=t;break;case"#":u=t;break;default:null!=c||(c=new Map),c.set(e,t)}}function qn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=gI(n,r,"",i);let a=function(e){var t;switch(e){case"":return p;case"#":return u;default:return null!=(t=null==c?void 0:c.get(e))?t:0}}(o);if(e&&!(a&e)){const s=gI(n,r,268435456===e?"_i":"_n",i);if(Bn(s,n))return a|=e,n?In(s):t&&An(s),Un(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=gI(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Bn(s,n))return n?In(s):t&&An(s),Un(o,a),s}}}
6function zn(e,t=Bn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=gI(i,o,e,s);if(t(n,i))return i?In(n):r?An(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=gI(i,o,e+c,s);if(t(n,i))return i?In(n):r?An(n):a.add(n),n;c++}}function $n(e){return zn(e,Jn,!0,!1,!1,"","")}function Vn(e){const t=Dn(e.name);return function(e,t){for(let n=t;n&&Sh(n,t);n=n.nextContainer)if(C_(n)&&n.locals){const t=n.locals.get(Ec(e));if(t&&3257279&t.flags)return!1}return!0}(t,ht(e,C_))?t:zn(t,Bn,!1,!1,!1,"","")}function Wn(){return zn("default",Bn,!1,!1,!1,"","")}function Hn(e,t,n,r,i){switch(e.kind){case 80:case 81:return zn(Dn(e),Bn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return En.assert(!r&&!i&&!t),Vn(e);case 272:case 278:return En.assert(!r&&!i&&!t),function(e){const t=Rg(e);return zn(BD(t)?mp(t.text):"module",Bn,!1,!1,!1,"","")}(e);case 262:case 263:{En.assert(!r&&!i&&!t);const o=e.name;return o&&!su(o)?Hn(o,!1,n,r,i):Wn()}case 277:return En.assert(!r&&!i&&!t),Wn();case 231:return En.assert(!r&&!i&&!t),zn("class",Bn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return nN(e.name)?jn(e.name,t):qn(0,!1,t,n,r)}(e,t,r,i);case 167:return qn(0,!0,t,r,i);default:return qn(0,!1,t,r,i)}}function Kn(e,t){const n=Ie(2,e,t),r=Q,i=Y,o=Z;Gn(t),n(e,t),Xn(t,r,i,o)}function Gn(e){const t=lp(e),n=Dw(e);!function(e,t,n,r){re(),ee=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||nr(n,353!==e.kind),(!i||n>=0&&1024&t)&&(Q=n),(!o||r>=0&&2048&t)&&(Y=r,261===e.kind&&(Z=r))),d(Ew(e),Yn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Xn(e,t,n,r){const i=lp(e),o=Dw(e);4096&i&&(ne=!1),Qn(e,i,o.pos,o.end,t,n,r);const a=Hw(e);a&&Qn(e,i,a.pos,a.end,t,n,r)}function Qn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;d(Aw(e),Zn),(n>0||r>0)&&n!==r&&(Q=i,Y=o,Z=a,s||353===e.kind||function(e){fr(e,cr)}(r)),ie()}function Yn(e){(e.hasLeadingNewline||2===e.kind)&&v.writeLine(),er(e),e.hasTrailingNewLine||2===e.kind?v.writeLine():v.writeSpace(" ")}function Zn(e){v.isAtStartOfLine()||v.writeSpace(" "),er(e),e.hasTrailingNewLine&&v.writeLine()}function er(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);$v(t,3===e.kind?es(t):void 0,v,0,t.length,z)}function tr(e,t,r){re();const{pos:i,end:o}=t,a=lp(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&zv(n.text,be(),v,mr,e,z,ne);t&&(D?D.push(t):D=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(nr(t.end,!0),ee&&!v.isAtStartOfLine()&&v.writeLine()),ie()}function nr(e,t){ee=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?pr(e,ir):pr(e,ar):0===e&&pr(e,rr)}function rr(e,t,n,r,i){gr(e,t)&&ar(e,t,n,r,i)}function ir(e,t,n,r,i){gr(e,t)||ar(e,t,n,r,i)}function or(t,n){return!e.onlyPrintJsDocStyle||FI(t,n)||Zd(t,n)}function ar(e,t,r,i,o){n&&or(n.text,e)&&(ee||(Uv(be(),v,o,e),ee=!0),xr(e),$v(n.text,be(),v,e,t,z),xr(t),i?v.writeLine():3===r&&v.writeSpace(" "))}function sr(e){ne||-1===e||nr(e,!0)}function cr(e,t,r,i){n&&or(n.text,e)&&(v.isAtStartOfLine()||v.writeSpace(" "),xr(e),$v(n.text,be(),v,e,t,z),xr(t),i&&v.writeLine())}function lr(e,t,n){ne||(re(),fr(e,t?cr:n?ur:dr),ie())}function ur(e,t,r){n&&(xr(e),$v(n.text,be(),v,e,t,z),xr(t),2===r&&v.writeLine())}function dr(e,t,r,i){n&&(xr(e),$v(n.text,be(),v,e,t,z),xr(t),i?v.writeLine():v.writeSpace(" "))}function pr(e,t){!n||-1!==Q&&e===Q||(function(e){return void 0!==D&&Le(D).nodePos===e}(e)?function(e){if(!n)return;const t=Le(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0,Cs(n.text,t,e,t)}(t):Cs(n.text,e,t,e))}function fr(e,t){n&&(-1===Y||e!==Y&&e!==Z)&&ws(n.text,e,t)}function mr(e,t,r,i,o,a){n&&or(n.text,i)&&(xr(i),$v(e,t,r,i,o,a),xr(o))}function gr(e,t){return!!n&&Yd(n.text,e,t)}function hr(e,t){const n=Ie(3,e,t);yr(t),n(e,t),vr(t)}function yr(e){const t=lp(e),n=xw(e),r=n.source||k;353!==e.kind&&!(32&t)&&n.pos>=0&&Sr(n.source||k,br(r,n.pos)),128&t&&(K=!0)}function vr(e){const t=lp(e),n=xw(e);128&t&&(K=!1),353!==e.kind&&!(64&t)&&n.end>=0&&Sr(n.source||k,n.end)}function br(e,t){return e.skipTrivia?e.skipTrivia(t):hs(e.text,t)}function xr(e){if(K||hT(e)||Tr(k))return;const{line:t,character:n}=ss(k,e);S.addMapping(v.getLine(),v.getColumn(),G,t,n,void 0)}function Sr(e,t){if(e!==k){const n=k,r=G;kr(e),xr(t),function(e,t){k=e,G=t}(n,r)}else xr(t)}function kr(t){K||(k=t,t!==T?Tr(t)||(G=S.addSource(t.fileName),e.inlineSources&&S.setSourceContent(G,t.text),T=t,X=G):G=X)}function Tr(e){return zo(e.fileName,".json")}}function Tz(e,t,n,r){t(e)}function Cz(e,t,n,r){t(e,n.select(r))}function wz(e,t,n,r){t(e,n)}function Dz(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=un(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=s(o(t));return n&&_(n.sortedAndCanonicalizedFiles,i(l(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(_a(n))||e.directoryExists(t)},getDirectories:function(t){const n=o(t),r=u(t,n);return r?r.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,a,s,_){const p=o(r),f=u(r,p);let m;return void 0!==f?jk(r,i,a,s,n,t,_,(function(e){const t=o(e);if(t===p)return f||g(e,t);const n=u(e,t);return void 0!==n?n||g(e,t):TT}),d):e.readDirectory(r,i,a,s,_);function g(t,n){if(m&&n===p)return m;const r={files:j(e.readDirectory(t,void 0,void 0,["*.*"]),l)||c,directories:e.getDirectories(t)||c};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=s(o(t));if(n){const e=l(t),r=i(e);ce(n.sortedAndCanonicalizedDirectories,r,zt)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=s(o(t));return i&&p(i,l(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void f();const r=s(n);if(!r)return;if(!e.directoryExists)return void f();const o=l(t),c={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return c.directoryExists||_(r.sortedAndCanonicalizedDirectories,i(o))?f():p(r,o,c.fileExists),c},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=s(t);r&&p(r,l(e),0===n)},clearCache:f,realpath:e.realpath&&d};function o(e){return la(e,t,i)}function a(e){return r.get(_a(e))}function s(e){const t=a(Go(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function l(e){return Xo(sa(e))}function u(t,n){const i=a(n=_a(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||_a(o(e.realpath(t)))===n){const i={files:j(e.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:e.getDirectories(t)||[]};return r.set(_a(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch(s){return void En.assert(!r.has(_a(n)))}}function _(e,t){return Je(e,t,kt,zt)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)ce(r,o,zt)&&e.files.push(t);else{const t=Je(r,o,kt,zt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function f(){r.clear()}}var Nz=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Nz||{});function Ez(e,t,n,r,i){var o;const a=Ze((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||c,i);
6n.forEach(((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())})),a.forEach(((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})}))}function Pz(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function Fz(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&Fz(e,i,n)}))}function Az(e,t,n){Rx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:Cx})}function Iz(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?Rx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:Bz,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}):Ox(e,Bz)}function Oz({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:u,getScriptKind:_}){const d=LV(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(qo(n)&&!sT(t,i,a)&&!function(){if(!_)return!1;switch(_(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return ZS(i);case 6:return KS(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(BR(t,i.configFile.configFileSpecs,aa(Go(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if(fO(n)){if(i.declarationDir)return!1}else if(!$o(n,Kk))return!1;const p=_T(n),f=pt(o)?void 0:function(e){return!!e.getState}(o)?o.getProgramOrUndefined():o,m=f||pt(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function g(e){return f?!!f.getSourceFileByPath(e):m?m.getState().fileInfos.has(e):!!w(o,(t=>u(t)===e))}}function Lz(e,t){return!!e&&e.isEmittedFile(t)}var Rz=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Rz||{});function Mz(e,t,n,r){So(2===t?n:vt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${u(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${u(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${u(e,i,a,s,c,r)}`;n(l);const _=ar(),d=o.watchDirectory(e,t,i,a,s,c),p=ar()-_;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${u(e,i,a,s,c,r)}`;n(t);const o=ar();d.close();const l=ar()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${u(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${u(e,t,i,o,a,r)}`)}}:xW;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var u;return UR(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(u=e.getCurrentDirectory)?void 0:u.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const _=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${u(t,a,s,c,l,r)}`;n(_);const d=ar();o.call(void 0,...i);const p=ar()-d;n(`Elapsed:: ${p}ms ${_}`)}),a,s,c,l)}function u(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function jz(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function Bz(e){e.watcher.close()}function Jz(e,t,n="tsconfig.json"){return Da(e,(e=>{const r=ra(e,n);return t(r)?r:void 0}))}function Uz(e,t){const n=Go(t);return sa(Mo(e)?e:ra(n,e))}function qz(e,t,n){let r;return d(e,(e=>{const i=oa(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let t=0;t<o;t++)if(n(r[t])!==n(i[t])){if(0===t)return!0;r.length=t;break}i.length<r.length&&(r.length=i.length)}))?"":r?ea(r):t}function zz(e,t){return Wz(e,t)}function $z(e,t){return(n,r,i)=>{let o;try{xr("beforeIORead"),o=e(n),xr("afterIORead"),Sr("I/O Read","beforeIORead","afterIORead")}catch(Fhe){i&&i(Fhe.message),o=""}return void 0!==o?rO(n,o,r,t):void 0}}function Vz(e,t,n){return(r,i,o,a)=>{try{xr("beforeIOWrite"),xv(r,i,o,e,t,n),xr("afterIOWrite"),Sr("I/O Write","beforeIOWrite","afterIOWrite")}catch(Fhe){a&&a(Fhe.message)}}}function Wz(e,t,n=Eo){const r=new Map,i=un(n.useCaseSensitiveFileNames);function o(){return Go(sa(n.getExecutingFilePath()))}const a=tx(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:$z((e=>c.readFile(e)),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>ra(o(),Hs(e)),writeFile:Vz(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:Nt((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:st(n,n.createHash)};return c}function Hz(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,u=new Map,_=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:zo(n,".json")||Hq(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=_.get(s),l=null==c?void 0:c.get(a);if(l)return l;const u=n(e,r,i,o);return u&&(fO(e)||zo(e,".json"))&&_.set(s,(c||new Map).set(a,u)),u}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),_.forEach((e=>e.delete(o)))):p&&_.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)}
6)),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=u.get(r);if(void 0!==i)return i;const a=o.call(e,n);return u.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);u.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function Kz(e,t,n){let r;return r=he(r,e.getConfigFileParsingDiagnostics()),r=he(r,e.getOptionsDiagnostics(n)),r=he(r,e.getSyntacticDiagnostics(t,n)),r=he(r,e.getGlobalDiagnostics(n)),r=he(r,e.getSemanticDiagnostics(t,n)),GS(e.getCompilerOptions())&&(r=he(r,e.getDeclarationDiagnostics(t,n))),Ws(r||c)}function Gz(e,t){let n="";for(const r of e)n+=Xz(r,t);return n}function Xz(e,t){const n=`${Di(e)} TS${e.code}: ${l$(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=ss(e.file,e.start);return`${Ta(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}var Qz=(e=>(e.Grey="�[90m",e.Red="�[91m",e.Yellow="�[93m",e.Blue="�[94m",e.Cyan="�[96m",e))(Qz||{}),Yz="�[7m",Zz=" ",e$="�[0m",t$="...",n$="  ",r$="    ";function i$(e){switch(e){case 1:return"�[91m";case 0:return"�[93m";case 2:return En.fail("Should never get an Info diagnostic on the command line.");case 3:return"�[94m"}}function o$(e,t){return t+e+e$}function a$(e,t,n,r,i,o){const{line:a,character:s}=ss(e,t),{line:c,character:l}=ss(e,t+n),u=ss(e,e.text.length).line,_=c-a>=4;let d=(c+1+"").length;_&&(d=Math.max(t$.length,d));let p="";for(let f=a;f<=c;f++){p+=o.getNewLine(),_&&a+1<f&&f<c-1&&(p+=r+o$(t$.padStart(d),Yz)+Zz+o.getNewLine(),f=c-1);const t=ts(e,f,0),n=f<u?ts(e,f+1,0):e.text.length;let m=e.text.slice(t,n);if(m=m.trimEnd(),m=m.replace(/\t/g," "),p+=r+o$((f+1+"").padStart(d),Yz)+Zz,p+=m+o.getNewLine(),p+=r+o$("".padStart(d),Yz)+Zz,p+=i,f===a){const e=f===c?l:void 0;p+=m.slice(0,s).replace(/\S/g," "),p+=m.slice(s,e).replace(/./g,"~")}else p+=f===c?m.slice(0,l).replace(/./g,"~"):m.replace(/./g,"~");p+=e$}return p}function s$(e,t,n,r=o$){const{line:i,character:o}=ss(e,t);let a="";return a+=r(n?Ta(e.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):e.fileName,"�[96m"),a+=":",a+=r(`${i+1}`,"�[93m"),a+=":",a+=r(`${o+1}`,"�[93m"),a}function c$(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=s$(e,i,t),n+=" - "}if(n+=o$(Di(r),i$(r.category)),n+=o$(` TS${r.code}: `,"�[90m"),n+=l$(r.messageText,t.getNewLine()),r.file&&r.code!==Pa.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=a$(r.file,r.start,r.length,"",i$(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=n$+s$(e,i,t),n+=a$(e,i,o,r$,"�[96m",t)),n+=t.getNewLine(),n+=r$+l$(a,t.getNewLine())}n+=t.getNewLine()}return n}function l$(e,t,n=0){if(mt(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;e<n;e++)r+="  "}if(r+=e.messageText,n++,e.next)for(const i of e.next)r+=l$(i,t,n);return r}function u$(e,t){return(mt(e)?t:e.resolutionMode)||t}function _$(e,t,n){return f$(e,H$(e,t),n)}function d$(e){var t;return EP(e)?e.isTypeOnly:!!(null==(t=e.importClause)?void 0:t.isTypeOnly)}function p$(e,t,n){return f$(e,t,n)}function f$(e,t,n){var r;if((hP(t.parent)||EP(t.parent))&&d$(t.parent)){const e=m$(t.parent.attributes);if(e)return e}if(t.parent.parent&&eE(t.parent.parent)){const e=m$(t.parent.parent.attributes);if(e)return e}if(n&&200===JS(n))return t.parent.parent&&gP(t.parent.parent)||Qm(t.parent,!1)?1:99;if(void 0===e.impliedNodeFormat)return;if(99!==e.impliedNodeFormat)return xf(hh(t.parent))?99:1;const i=null==(r=hh(t.parent))?void 0:r.parent;return i&&gP(i)?1:99}function m$(e,t){if(!e)return;if(1!==_(e.elements))return void(null==t||t(e,118===e.token?Pa.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Pa.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require));const n=e.elements[0];if(Z_(n.name))if("resolution-mode"===n.name.text){if(Z_(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?99:1;null==t||t(n.value,Pa.resolution_mode_should_be_either_require_or_import)}}else null==t||t(n.name,118===e.token?Pa.resolution_mode_is_the_only_valid_key_for_type_import_attributes:Pa.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}var g$={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function h$(e){return e.text}var y$={getName:h$,getMode:(e,t,n)=>p$(t,e,n)};function v$(e,t,n,r,i){return{nameAndMode:y$,resolve:(o,a)=>UM(o,e,n,r,i,t,a)}}function b$(e){return mt(e)?e:e.fileName}var x$={getName:b$,getMode:(e,t)=>u$(e,null==t?void 0:t.impliedNodeFormat)};function S$(e,t,n,r,i){return{nameAndMode:x$,resolve:(o,a)=>vM(o,e,n,r,t,i,a)}}
6function k$(e,t,n,r,i,o,a,s){if(0===e.length)return c;const l=[],u=new Map,_=s(t,n,r,o,a);for(const c of e){const e=_.nameAndMode.getName(c),t=_.nameAndMode.getMode(c,i,(null==n?void 0:n.commandLine.options)||r),o=PM(e,t);let a=u.get(o);a||u.set(o,a=_.resolve(e,t)),l.push(a)}return l}function T$(e,t){return C$(void 0,e,((e,n)=>e&&t(e,n)))}function C$(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}return d(o,((t,r)=>{if(t&&(null==i?void 0:i.has(t.sourceFile.path)))return;const o=n(t,a,r);return o||!t?o:((i||(i=new Set)).add(t.sourceFile.path),e(t.commandLine.projectReferences,t.references,t))}))}(e,t,void 0)}var w$="__inferred type names__.ts";function D$(e,t,n){return ra(e.configFilePath?Go(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function N$(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function E$(e){return wt(e.fileName)}function P$(e){const t=E$(e);return FO.get(t)}function F$(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function A$(e){return void 0!==e.pos}function I$(e,t){var n,r,i,o;const a=En.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,u,_;switch(s){case 3:const t=H$(a,c);if(_=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:_,text:t.text};l=hs(a.text,t.pos),u=t.end;break;case 4:({pos:l,end:u}=a.referencedFiles[c]);break;case 5:({pos:l,end:u}=a.typeReferenceDirectives[c]),_=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:u}=a.libReferenceDirectives[c]);break;default:return En.assertNever(s)}return{file:a,pos:l,end:u,packageId:_}}function O$(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!_e(e.getRootFileNames(),t))return!1;let u;if(!_e(e.getProjectReferences(),l,(function(t,n,r){return Cd(t,n)&&f(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;const _=e.getMissingFilePaths();if(_&&bd(_,i))return!1;const p=e.getCompilerOptions();return!(!Ix(p,n)||e.resolvedLibReferences&&bd(e.resolvedLibReferences,((e,t)=>a(t)))||p.configFile&&n.configFile&&p.configFile.text!==n.configFile.text);function f(e,t){if(e){if(F(u,e))return!0;const n=$$(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!_e(e.commandLine.fileNames,r.fileNames)&&((u||(u=[])).push(e),!d(e.references,((t,n)=>!f(t,e.commandLine.projectReferences[n]))))}const n=$$(t);return!c(n)}}function L$(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function R$(e,t,n,r){const i=M$(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function M$(e,t,n,r){switch(US(r)){case 3:case 99:return $o(e,[".d.mts",".mts",".mjs"])?99:$o(e,[".d.cts",".cts",".cjs"])?1:$o(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=pj(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=fj(e,i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0;default:return}}var j$=new Set([Pa.Cannot_redeclare_block_scoped_variable_0.code,Pa.A_module_cannot_have_multiple_default_exports.code,Pa.Another_export_default_is_here.code,Pa.The_first_export_default_is_here.code,Pa.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,Pa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,Pa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,Pa.constructor_is_a_reserved_word.code,Pa.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,Pa.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,Pa.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,Pa.Invalid_use_of_0_in_strict_mode.code,Pa.A_label_is_not_allowed_here.code,Pa.with_statements_are_not_allowed_in_strict_mode.code,Pa.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,Pa.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,Pa.A_class_declaration_without_the_default_modifier_must_have_a_name.code,Pa.A_class_member_cannot_have_the_0_keyword.code,Pa.A_comma_expression_
6is_not_allowed_in_a_computed_property_name.code,Pa.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,Pa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Pa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Pa.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,Pa.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,Pa.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,Pa.A_destructuring_declaration_must_have_an_initializer.code,Pa.A_get_accessor_cannot_have_parameters.code,Pa.A_rest_element_cannot_contain_a_binding_pattern.code,Pa.A_rest_element_cannot_have_a_property_name.code,Pa.A_rest_element_cannot_have_an_initializer.code,Pa.A_rest_element_must_be_last_in_a_destructuring_pattern.code,Pa.A_rest_parameter_cannot_have_an_initializer.code,Pa.A_rest_parameter_must_be_last_in_a_parameter_list.code,Pa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,Pa.A_return_statement_cannot_be_used_inside_a_class_static_block.code,Pa.A_set_accessor_cannot_have_rest_parameter.code,Pa.A_set_accessor_must_have_exactly_one_parameter.code,Pa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Pa.An_export_declaration_cannot_have_modifiers.code,Pa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Pa.An_import_declaration_cannot_have_modifiers.code,Pa.An_object_member_cannot_be_declared_optional.code,Pa.Argument_of_dynamic_import_cannot_be_spread_element.code,Pa.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,Pa.Cannot_redeclare_identifier_0_in_catch_clause.code,Pa.Catch_clause_variable_cannot_have_an_initializer.code,Pa.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,Pa.Classes_can_only_extend_a_single_class.code,Pa.Classes_may_not_have_a_field_named_constructor.code,Pa.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,Pa.Duplicate_label_0.code,Pa.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,Pa.for_await_loops_cannot_be_used_inside_a_class_static_block.code,Pa.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,Pa.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,Pa.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,Pa.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,Pa.Jump_target_cannot_cross_function_boundary.code,Pa.Line_terminator_not_permitted_before_arrow.code,Pa.Modifiers_cannot_appear_here.code,Pa.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,Pa.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,Pa.Private_identifiers_are_not_allowed_outside_class_bodies.code,Pa.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,Pa.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,Pa.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,Pa.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,Pa.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,Pa.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,Pa.Trailing_comma_not_allowed.code,Pa.Variable_declaration_list_cannot_be_empty.c
6ode,Pa._0_and_1_operations_cannot_be_mixed_without_parentheses.code,Pa._0_expected.code,Pa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,Pa._0_list_cannot_be_empty.code,Pa._0_modifier_already_seen.code,Pa._0_modifier_cannot_appear_on_a_constructor_declaration.code,Pa._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,Pa._0_modifier_cannot_appear_on_a_parameter.code,Pa._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,Pa._0_modifier_cannot_be_used_here.code,Pa._0_modifier_must_precede_1_modifier.code,Pa._0_declarations_can_only_be_declared_inside_a_block.code,Pa._0_declarations_must_be_initialized.code,Pa.extends_clause_already_seen.code,Pa.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,Pa.Class_constructor_may_not_be_a_generator.code,Pa.Class_constructor_may_not_be_an_accessor.code,Pa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Pa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Pa.Private_field_0_must_be_declared_in_an_enclosing_class.code,Pa.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function B$(e,t,n,r,i){var a,s,l,u,_,p,f,h,y,v,x,S,k,T,C,D;const E=pt(e)?function(e,t,n,r,i,o){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:o}}(e,t,n,r,i):e,{rootNames:P,options:A,configFileParsingDiagnostics:I,projectReferences:O,typeScriptVersion:R}=E;let{oldProgram:M}=E;for(const o of HO)if($e(A,o.name)&&"string"==typeof A[o.name])throw new Error(`${o.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const j=Nt((()=>Qn("ignoreDeprecations",Pa.Invalid_value_for_ignoreDeprecations)));let B,J,z,$,V,W,K;const G=new Map;let X,Q,Y,Z=ct();const ee={},ne={};let ie,oe,ae,se,ce,le,ue,de,pe,me;const ge="number"==typeof A.maxNodeModuleJsDepth?A.maxNodeModuleJsDepth:0;let he=0;const ye=new Map,ve=new Map;null==(a=pr)||a.push(pr.Phase.Program,"createProgram",{configFilePath:A.configFilePath,rootDir:A.rootDir},!0),xr("beforeProgram");const be=E.host||zz(A),xe=z$(be);let Se=A.noLib;const Te=Nt((()=>be.getDefaultLibFileName(A))),Ce=be.getDefaultLibLocation?be.getDefaultLibLocation():Go(Te()),we=Fy();let De=[];const Ne=be.getCurrentDirectory(),Ee=eT(A),Pe=tT(A,Ee),Fe=new Map;let Ae,Ie,Oe,Le;const Re=be.hasInvalidatedResolutions||bt;let Me;if(be.resolveModuleNameLiterals?(Le=be.resolveModuleNameLiterals.bind(be),Oe=null==(s=be.getModuleResolutionCache)?void 0:s.call(be)):be.resolveModuleNames?(Le=(e,t,n,r,i,o)=>be.resolveModuleNames(e.map(h$),t,null==o?void 0:o.map(h$),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:g(m({},e),{extension:bT(e.resolvedFileName)})}:g$)),Oe=null==(l=be.getModuleResolutionCache)?void 0:l.call(be)):(Oe=RM(Ne,Mn,A),Le=(e,t,n,r,i)=>k$(e,t,n,r,i,be,Oe,v$)),be.resolveTypeReferenceDirectiveReferences)Me=be.resolveTypeReferenceDirectiveReferences.bind(be);else if(be.resolveTypeReferenceDirectives)Me=(e,t,n,r,i)=>be.resolveTypeReferenceDirectives(e.map(b$),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=MM(Ne,Mn,void 0,null==Oe?void 0:Oe.getPackageJsonInfoCache(),null==Oe?void 0:Oe.optionsToRedirectsKey);Me=(t,n,r,i,o)=>k$(t,n,r,i,o,be,e,S$)}const je=be.hasInvalidatedLibResolutions||bt;let Be;if(be.resolveLibrary)Be=be.resolveLibrary.bind(be);else{const e=RM(Ne,Mn,A,null==Oe?void 0:Oe.getPackageJsonInfoCache());Be=(t,n,r)=>BM(t,n,r,be,e)}const Je=new Map;let Ue=new Map,qe=ct(),ze=!1;const Ve=new Map;let We=new Map;const He=be.useCaseSensitiveFileNames()?new Map:void 0;let Ke,Ge,Xe,Qe;const Ye=!!(null==(u=be.useSourceOfProjectReferenceRedirect)?void 0:u.call(be))&&!A.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ze,fileExists:et,directoryExists:tt}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:vt,fileExists:c};let a;return e.compilerHost.fileExists=c,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(_(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=n.commandLine.options.outFile;if(r)t.add(Go(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),d(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.c
6all(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:s,fileExists:c,directoryExists:a};function s(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i}function c(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!fO(t)&&d(t,!0)}function l(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!mt(r)||n.call(e.compilerHost,r):void 0}function u(n){const r=e.toPath(n),i=`${r}${Fo}`;return xd(t,(e=>r===e||fn(e,i)||fn(r,`${e}/`)))}function _(t){var n;if(!e.getResolvedProjectReferences()||ZT(t))return;if(!o||!t.includes(ZM))return;const r=e.getSymlinkCache(),i=_a(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=sa(o.call(e.compilerHost,t));let s;a!==t&&(s=_a(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:_a(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}function d(t,n){var r;const i=n?e=>l(e):e=>u(e),o=i(t);if(void 0!==o)return o;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const c=e.toPath(t);return!!c.includes(ZM)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(c)))||b(s.entries(),(([r,o])=>{if(!o||!fn(c,r))return;const s=i(c.replace(r,o.realPath));if(n&&s){const n=aa(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(c,`${o.real}${n.replace(new RegExp(r,"i"),"")}`)}return s}))||!1)}}({compilerHost:be,getSymlinkCache:ar,useSourceOfProjectReferenceRedirect:Ye,toPath:Pt,getResolvedProjectReferences:Bt,getSourceOfProjectReferenceRedirect:Dn,forEachResolvedProjectReference:wn}),nt=be.readFile.bind(be);null==(_=pr)||_.push(pr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!M});const rt=function(e,t){return!!e&&yd(e.getCompilerOptions(),t,qO)}(M,A);let it;if(null==(p=pr)||p.pop(),null==(f=pr)||f.push(pr.Phase.Program,"tryReuseStructureFromOldProgram",{}),it=function(){var e;if(!M)return 0;const t=M.getCompilerOptions();if(md(t,A))return 0;if(!_e(M.getRootFileNames(),P))return 0;if(C$(M.getProjectReferences(),M.getResolvedProjectReferences(),((e,t,n)=>{const r=Jn((t?t.commandLine.projectReferences:O)[n]);return e?!r||r.sourceFile!==e.sourceFile||!_e(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!_e(e,t?Pn(t.sourceFile.path).commandLine.projectReferences:O,Cd))))return 0;O&&(Ke=O.map(Jn));const n=[],r=[];if(it=2,bd(M.getMissingFilePaths(),(e=>be.fileExists(e))))return 0;const i=M.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const c of i){const t=yn(c.fileName,Oe,be,A);let i,o=be.getSourceFileByPath?be.getSourceFileByPath(c.fileName,c.resolvedPath,t,void 0,rt):be.getSourceFile(c.fileName,t,void 0,rt);if(!o)return 0;if(o.packageJsonLocations=(null==(e=t.packageJsonLocations)?void 0:e.length)?t.packageJsonLocations:void 0,o.packageJsonScope=t.packageJsonScope,En.assert(!o.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),c.redirectInfo){if(o!==c.redirectInfo.unredirected)return 0;i=!1,o=c}else if(M.redirectTargetsMap.has(c.path)){if(o!==c)return 0;i=!1}else i=o!==c;o.path=c.path,o.originalFileName=c.originalFileName,o.resolvedPath=c.resolvedPath,o.fileName=c.fileName;const a=M.sourceFileToPackageName.get(c.path);if(void 0!==a){const e=s.get(a),t=i?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(a,t)}if(i)c.impliedNodeFormat!==o.impliedNodeFormat?it=1:_e(c.libReferenceDirectives,o.libReferenceDirectives,sn)?c.hasNoDefaultLib!==o.hasNoDefaultLib?it=1:_e(c.referencedFiles,o.referencedFiles,sn)?(un(o),_e(c.imports,o.imports,cn)&&_e(c.moduleAugmentations,o.moduleAugmentations,cn)?(12582912&c.flags)!=(12582912&o.flags)?it=1:_e(c.typeReferenceDirectives,o.typeReferenceDirectives,sn)||(it=1):it=1):it=1:it=1,r.push(o);else if(Re(c.path))it=1,r.push(o);else for(const e of c.ambientModuleNames)G.set(e,c.fileName);n.push(o)}if(2!==it)return it;for(const c of r){const e=W$(c),t=At(e,c);(null!=ue?ue:ue=new Map).set(c.path,t),Fd(e,t,(e=>M.getResolvedModule(c,e.text,sr(c,e))),wd)&&(it=1);const n=c.typeReferenceDirectives,r=It(n,c);(null!=pe?pe:pe=new Map).set(c.path,r),Fd(n,r,(e=>M.getResolvedTypeReferenceDirective(c,b$(e),u$(e,c.impliedNodeFormat))),Pd)&&(it=1)}if(2!==it)return it;if(hd(t,A))return 1;if(M.resolvedLibReferences&&bd(M.resolvedLibReferences,((e,t)=>Ln(t).actual!==e.actual)))return 1;
6if(be.hasChangedAutomaticTypeDirectiveNames){if(be.hasChangedAutomaticTypeDirectiveNames())return 1}else if(oe=kM(A,be),!_e(M.getAutomaticTypeDirectiveNames(),oe))return 1;We=M.getMissingFilePaths(),En.assert(n.length===M.getSourceFiles().length);for(const c of n)Ve.set(c.path,c);return M.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Ve.set(t,Ve.get(e.path)):M.isSourceFileFromExternalLibrary(e)&&ve.set(e.path,!0):Ve.set(t,e)})),z=n,Z=M.getFileIncludeReasons(),ie=M.getFileProcessingDiagnostics(),oe=M.getAutomaticTypeDirectiveNames(),ae=M.getAutomaticTypeDirectiveResolutions(),Ue=M.sourceFileToPackageName,qe=M.redirectTargetsMap,ze=M.usesUriStyleNodeCoreModules,le=M.resolvedModules,de=M.resolvedTypeReferenceDirectiveNames,se=M.resolvedLibReferences,me=M.getCurrentPackagesMap(),2}(),null==(h=pr)||h.pop(),2!==it){if(B=[],J=[],O&&(Ke||(Ke=O.map(Jn)),P.length&&(null==Ke||Ke.forEach(((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(Ye){if(n||0===JS(e.commandLine.options))for(const r of e.commandLine.fileNames)pn(r,{kind:1,index:t})}else if(n)pn(fT(n,".d.ts"),{kind:2,index:t});else if(0===JS(e.commandLine.options)){const n=Nt((()=>lz(e.commandLine,!be.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)fO(r)||zo(r,".json")||pn(tz(r,e.commandLine,!be.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(y=pr)||y.push(pr.Phase.Program,"processRootFiles",{count:P.length}),d(P,((e,t)=>an(e,!1,!1,{kind:0,index:t}))),null==(v=pr)||v.pop(),null!=oe||(oe=P.length?kM(A,be):c),ae=FM(),oe.length){null==(x=pr)||x.push(pr.Phase.Program,"processTypeReferences",{count:oe.length});const e=ra(A.configFilePath?Go(A.configFilePath):Ne,w$),t=It(oe,e);for(let n=0;n<oe.length;n++)ae.set(oe[n],void 0,t[n]),In(oe[n],0,t[n],{kind:8,typeReference:oe[n],packageId:null==(k=null==(S=t[n])?void 0:S.resolvedTypeReferenceDirective)?void 0:k.packageId});null==(T=pr)||T.pop()}if(P.length&&!Se){const e=Te();!A.lib&&e?an(e,!0,!1,{kind:6}):d(A.lib,((e,t)=>{an(On(e),!0,!1,{kind:6,index:t})}))}z=ke(B,(function(e,t){return jt(Et(e),Et(t))})).concat(J),B=void 0,J=void 0,X=void 0}if(M&&be.onReleaseOldSourceFile){const e=M.getSourceFiles();for(const t of e){const e=$t(t.resolvedPath);(rt||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&be.onReleaseOldSourceFile(t,M.getCompilerOptions(),!!$t(t.path))}be.getParsedCommandLine||M.forEachResolvedProjectReference((e=>{Pn(e.sourceFile.path)||be.onReleaseOldSourceFile(e.sourceFile,M.getCompilerOptions(),!1)}))}M&&be.onReleaseParsedCommandLine&&C$(M.getProjectReferences(),M.getResolvedProjectReferences(),((e,t,n)=>{const r=$$((null==t?void 0:t.commandLine.projectReferences[n])||M.getProjectReferences()[n]);(null==Ge?void 0:Ge.has(Pt(r)))||be.onReleaseParsedCommandLine(r,e,M.getCompilerOptions())})),M=void 0,ce=void 0,ue=void 0,pe=void 0;const ot={getRootFileNames:()=>P,getSourceFile:zt,getSourceFileByPath:$t,getSourceFiles:()=>z,getMissingFilePaths:()=>We,getModuleResolutionCache:()=>Oe,getFilesByNameMap:()=>Ve,getCompilerOptions:()=>A,getSyntacticDiagnostics:function(e,t){return Vt(e,Ht,t)},getOptionsDiagnostics:function(){return Ws(re(at().getGlobalDiagnostics(),function(){if(!A.configFile)return c;let e=at().getDiagnostics(A.configFile.fileName);return wn((t=>{e=re(e,at().getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return P.length?Ws(Ut().getGlobalDiagnostics().slice()):c},getSemanticDiagnostics:function(e,t){return Vt(e,Gt,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null==(t=ee.perFile)?void 0:t.get(e.path):ee.allDiagnostics},getSuggestionDiagnostics:function(e,t){return Kt((()=>Ut().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){const n=ot.getCompilerOptions();return!e||n.outFile?en(e,t):Vt(e,on,t)},getBindAndCheckDiagnostics:function(e,t){return Xt(e,t)},getProgramDiagnostics:Wt,getTypeChecker:Ut,getClassifiableNames:function(){var e;if(!K){Ut(),K=new Set;for(const t of z)null==(e=t.classifiableNames)||e.forEach((e=>K.add(e)))}return K},getCommonSourceDirectory:Ft,emit:function(e,t,n,r,i,o){var a,s;null==(a=pr)||a.push(pr.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const c=Kt((()=>function(e,t,n,r,i,o,a){if(!a){const i=U$(e,t,n,r);if(i)return i}const s=Ut(),c=s.getEmitResolver(A.outFile?void 0:t,r,pz(i,a));xr("beforeEmit");const l=s.runWithCancellationToken(r,(()=>fz(c,Ot(n),t,Rq(A,o,i),i,!1,a)));return xr("afterEmit"),Sr("Emit","beforeEmit","afterEmit"),l}(ot,e,t,n,r,i,o)));return null==(s=pr)||s.pop(),c},getCurrentDirectory:()=>Ne,getNodeCount:()=>Ut().getNodeCount(),getIdentifierCount:()=>Ut().getIdentifierCount(),getSymbolCount:()=>Ut().getSymbolCount(),getTypeCount:()=>Ut().getTypeCount(),getInstantiationCount:()=>Ut().getInstantiationCount(),getRelationCacheSizes:()=>Ut().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ie,getAutomaticTypeDirectiveNames:()=>oe,getAutomaticTypeDirectiveResolutions:()=>ae,isSourceFileFromExternalLibrary:Jt,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;
6if(!A.noLib)return!1;const t=be.useCaseSensitiveFileNames()?Rt:Lt;return A.lib?te(A.lib,(n=>t(e.fileName,se.get(n).actual))):t(e.fileName,Te())},getModeForUsageLocation:sr,getModeForResolutionAtIndex:function(e,t){return sr(e,H$(e,t))},getSourceFileFromReference:function(e,t){return _n(Uz(t.fileName,e.fileName),zt)},getLibFileFromReference:function(e){var t;const n=P$(e),r=n&&(null==(t=null==se?void 0:se.get(n))?void 0:t.actual);return void 0!==r?zt(r):void 0},sourceFileToPackageName:Ue,redirectTargetsMap:qe,usesUriStyleNodeCoreModules:ze,resolvedModules:le,resolvedTypeReferenceDirectiveNames:de,resolvedLibReferences:se,getResolvedModule:lt,getResolvedModuleFromModuleSpecifier:function(e,t){return null!=t||(t=Id(e)),En.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),lt(t,e.text,sr(t,e))},getResolvedTypeReferenceDirective:ut,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return ut(t,e.fileName,e.resolutionMode||t.impliedNodeFormat)},forEachResolvedModule:_t,forEachResolvedTypeReferenceDirective:dt,getCurrentPackagesMap:()=>me,typesPackageExists:function(e){return gt().has(Oj(e))},packageBundlesTypes:function(e){return!!gt().get(e)},isEmittedFile:function(e){if(A.noEmit)return!1;const t=Pt(e);if($t(t))return!1;const n=A.outFile;if(n)return or(t,n)||or(t,_T(n)+".d.ts");if(A.declarationDir&&ba(A.declarationDir,t,Ne,!be.useCaseSensitiveFileNames()))return!0;if(A.outDir)return ba(A.outDir,t,Ne,!be.useCaseSensitiveFileNames());if($o(t,Kk)||fO(t)){const e=_T(t);return!!$t(e+".ts")||!!$t(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return I||c},getProjectReferences:function(){return O},getResolvedProjectReferences:Bt,getProjectReferenceRedirect:Sn,getResolvedProjectReferenceToRedirect:Cn,getResolvedProjectReferenceByPath:Pn,forEachResolvedProjectReference:wn,isSourceOfProjectReferenceRedirect:Nn,getRedirectReferenceForResolutionFromSourceOfProject:Dt,emitBuildInfo:function(e){var t,n;En.assert(!A.outFile),null==(t=pr)||t.push(pr.Phase.Emit,"emitBuildInfo",{},!0),xr("beforeEmit");const r=fz(yz,Ot(e),void 0,Lq,!1,!0);return xr("afterEmit"),Sr("Emit","beforeEmit","afterEmit"),null==(n=pr)||n.pop(),r},fileExists:et,readFile:nt,directoryExists:tt,getSymlinkCache:ar,realpath:null==(C=be.realpath)?void 0:C.bind(be),useCaseSensitiveFileNames:()=>be.useCaseSensitiveFileNames(),getCanonicalFileName:Mn,getFileIncludeReasons:()=>Z,structureIsReused:it,writeFile:Mt};return Ze(),function(){A.strictPropertyInitialization&&!ak(A,"strictNullChecks")&&Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),A.exactOptionalPropertyTypes&&!ak(A,"strictNullChecks")&&Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(A.isolatedModules||A.verbatimModuleSyntax)&&A.outFile&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"outFile",A.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),A.isolatedDeclarations&&(ZS(A)&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),GS(A)||Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),A.inlineSourceMap&&(A.sourceMap&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),A.mapRoot&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),A.composite&&(!1===A.declaration&&Xn(Pa.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===A.incremental&&Xn(Pa.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=A.outFile;if(A.tsBuildInfoFile?QS(A)||Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!A.incremental||e||A.configFilePath||we.add(xS(Pa.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Un("5.0","5.5","6.0",(function(e,t,n,r,...i){if(n){const o=kS(void 0,Pa.Use_0_instead,n);Zn(!t,e,void 0,kS(o,r,...i))}else Zn(!t,e,void 0,r,...i)}),(e=>{0===A.target&&e("target","ES3"),A.noImplicitUseStrict&&e("noImplicitUseStrict"),A.keyofStringsOnly&&e("keyofStringsOnly"),A.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),A.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),A.noStrictGenericChecks&&e("noStrictGenericChecks"),A.charset&&e("charset"),A.out&&e("out",void 0,"outFile"),A.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),A.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),function(){const e=A.suppressOutputPathCheck?void 0:Gq(A);C$(O,Ke,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:O)[r],o=n&&n.sourceFile;if(function(e,t,n){function r(e,r,i,o,...a){Yn(t,n,o,...a)}Un("5.0","5.5","6.0",r,(t=>
6{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Yn(o,r,Pa.File_0_not_found,i.path);const a=t.commandLine.options;a.composite&&!a.noEmit||(n?n.commandLine.fileNames:P).length&&(a.composite||Yn(o,r,Pa.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Yn(o,r,Pa.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===Gq(a)&&(Yn(o,r,Pa.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Fe.set(Pt(e),!0))}))}(),A.composite){const e=new Set(P.map(Pt));for(const t of z)gv(t,ot)&&!e.has(t.path)&&$n(t,Pa.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,A.configFilePath||""])}if(A.paths)for(const a in A.paths)if($e(A.paths,a))if(gk(a)||Wn(!0,a,Pa.Pattern_0_can_have_at_most_one_Asterisk_character,a),pt(A.paths[a])){const e=A.paths[a].length;0===e&&Wn(!1,a,Pa.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(let t=0;t<e;t++){const e=A.paths[a][t],n=typeof e;"string"===n?(gk(e)||Vn(a,t,Pa.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,e,a),A.baseUrl||Jo(e)||Bo(e)||Vn(a,t,Pa.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Vn(a,t,Pa.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,e,a,n)}}else Wn(!1,a,Pa.Substitutions_for_pattern_0_should_be_an_array,a);A.sourceMap||A.inlineSourceMap||(A.inlineSources&&Xn(Pa.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),A.sourceRoot&&Xn(Pa.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),!A.mapRoot||A.sourceMap||A.declarationMap||Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),A.declarationDir&&(GS(A)||Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile")),A.declarationMap&&!GS(A)&&Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),A.lib&&A.noLib&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"lib","noLib");const t=BS(A),n=w(z,(e=>aO(e)&&!e.isDeclarationFile));if(A.isolatedModules||A.verbatimModuleSyntax)0===A.module&&t<2&&A.isolatedModules&&Xn(Pa.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===A.preserveConstEnums&&Xn(Pa.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,A.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===A.module){const e=lf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);we.add(vS(n,e.start,e.length,Pa.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!A.emitDeclarationOnly)if(A.module&&2!==A.module&&4!==A.module)Xn(Pa.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===A.module&&n){const e=lf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);we.add(vS(n,e.start,e.length,Pa.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}if(KS(A)&&(1===US(A)?Xn(Pa.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):nk(A)||Xn(Pa.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),A.outDir||A.rootDir||A.sourceRoot||A.mapRoot){const e=Ft();A.outDir&&""===e&&z.some((e=>Ko(e.fileName)>1))&&Xn(Pa.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}A.checkJs&&!ZS(A)&&Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),A.emitDeclarationOnly&&(GS(A)||Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),A.noEmit&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),A.noCheck&&A.noEmit&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"noCheck","noEmit"),A.emitDecoratorMetadata&&!A.experimentalDecorators&&Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),A.jsxFactory?(A.reactNamespace&&Xn(Pa.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==A.jsx&&5!==A.jsx||Xn(Pa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",NO.get(""+A.jsx)),iO(A.jsxFactory,t)||Qn("jsxFactory",Pa.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFactory)):A.reactNamespace&&!Ls(A.reactNamespace,t)&&Qn("reactNamespace",Pa.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,A.reactNamespace),A.jsxFragmentFactory&&(A.jsxFactory||Xn(Pa.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==A.jsx&&5!==A.jsx||Xn(Pa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",NO.get(""+A.jsx)),iO(A.jsxFragmentFactory,t)||Qn("jsxFragmentFactory",Pa.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFragmentFactory)
6),A.reactNamespace&&(4!==A.jsx&&5!==A.jsx||Xn(Pa.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",NO.get(""+A.jsx))),A.jsxImportSource&&2===A.jsx&&Xn(Pa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",NO.get(""+A.jsx));const r=JS(A);A.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Xn(Pa.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax")),!A.allowImportingTsExtensions||A.noEmit||A.emitDeclarationOnly||Qn("allowImportingTsExtensions",Pa.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=US(A);if(A.resolvePackageJsonExports&&!ok(i)&&Xn(Pa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),A.resolvePackageJsonImports&&!ok(i)&&Xn(Pa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),A.customConditions&&!ok(i)&&Xn(Pa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||tk(r)||200===r||Qn("moduleResolution",Pa.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),Ii[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=Ii[r];Qn("moduleResolution",Pa.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(Ni[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=Ni[i];Qn("module",Pa.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!A.noEmit&&!A.suppressOutputPathCheck){const e=Ot(),t=new Set;Kq(e,(e=>{A.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=Pt(e);if(Ve.has(n)){let t;A.configFilePath||(t=kS(void 0,Pa.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=kS(t,Pa.Cannot_write_file_0_because_it_would_overwrite_input_file,e),ir(e,SS(t))}const r=be.useCaseSensitiveFileNames()?n:wt(n);t.has(r)?ir(e,xS(Pa.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),xr("afterProgram"),Sr("Program","beforeProgram","afterProgram"),null==(D=pr)||D.pop(),ot;function at(){return De&&(null==ie||ie.forEach((e=>{switch(e.kind){case 1:return we.add(qn(e.file&&$t(e.file),e.fileProcessingReason,e.diagnostic,e.args||c));case 0:return we.add(function({reason:e}){const{file:t,pos:n,end:r}=I$(ot,e),i=E$(t.libReferenceDirectives[e.index]),o=Zt(nn(mn(i,"lib."),".d.ts"),PO,kt);return vS(t,En.checkDefined(n),En.checkDefined(r)-n,o?Pa.Cannot_find_lib_definition_for_0_Did_you_mean_1:Pa.Cannot_find_lib_definition_for_0,i,o)}(e));case 2:return e.diagnostics.forEach((e=>we.add(e)));default:En.assertNever(e)}})),De.forEach((({file:e,diagnostic:t,args:n})=>we.add(qn(e,void 0,t,n)))),De=void 0,Q=void 0,Y=void 0),we}function lt(e,t,n){var r;return null==(r=null==le?void 0:le.get(e.path))?void 0:r.get(t,n)}function ut(e,t,n){var r;return null==(r=null==de?void 0:de.get(e.path))?void 0:r.get(t,n)}function _t(e,t){ft(le,e,t)}function dt(e,t){ft(de,e,t)}function ft(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,i)=>t(e,r,i,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,i)=>t(e,r,i,n)))))}function gt(){return me||(me=new Map,_t((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&me.set(e.packageId.name,".d.ts"===e.extension||!!me.get(e.packageId.name))})),me)}function yt(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(null!=ie?ie:ie=[]).push({kind:2,diagnostics:e.resolutionDiagnostics})}function xt(e,t,n,r){if(be.resolveModuleNameLiterals||!be.resolveModuleNames)return yt(n);if(!Oe||Vs(t))return;const i=Go(aa(e.originalFileName,Ne)),o=Ct(e),a=Oe.getFromNonRelativeNameCache(t,r,i,o);a&&yt(a)}function St(e,t,n){var r,i;if(!e.length)return c;const o=aa(t.originalFileName,Ne),a=Ct(t);null==(r=pr)||r.push(pr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),xr("beforeResolveModule");const s=Le(e,o,a,A,t,n);return xr("afterResolveModule"),Sr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=pr)||i.pop(),s}function Tt(e,t,n){var r,i;if(!e.length)return[];const o=mt(t)?void 0:t,a=mt(t)?t:aa(t.originalFileName,Ne),s=o&&Ct(o);null==(r=pr)||r.push(pr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),xr("beforeResolveTypeReference");const c=Me(e,a,s,A,o,n);return xr("afterResolveTypeReference"),Sr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=pr)||i.pop(),c}function Ct(e){const t=Cn(e.originalFileName);if(t||!fO(e.originalFileName))return t;const n=Dt(e.path);if(n)return n;if(!be.realpath||!A.preserveSymlinks||!e.originalFileName.includes(ZM))return;const r=Pt(be.realpath(e.originalFileName));return r===e.path?void 0:Dt(r)}function Dt(e){const t=Dn(e);return mt(t)?Cn(t):t?wn((t=>{const n=t.commandLine.options.outFile;if(n)return Pt(n)===e?t:void 0})):void 0}function Et(e){if(ba(Ce,e.fileName,!1)){const t=Xo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=nn(mn(t,"lib."),".d.ts"),r=PO.indexOf(n);if(-1!==r)return r+1}return PO.length+2}function Pt(e){return la(e,Ne,Mn)}function Ft(){if(void 0===V){const e=L(z,(e=>gv(e,ot)));V=cz(A,(()=>H(e,(e=>e.isDeclarationFile?void 0:e.fileName))),Ne,Mn,(t=>function(e,t){let n=!0;const r=be.getCanonicalFileName(aa(t,Ne));for(const i of e)i.isDeclarationFile||0!==be.getCanonicalFileName(aa(i.fileName,Ne)).indexOf(r)&&($n(i,Pa.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1);return n}(e,t)))}return V}function At(e,t){if(0===it&&!t.ambientModuleNames.length)return St(e,t,void 0);let n,r,i;const o=g$,a=M&&M.getSourceFile(t.fileName);for(let c=0;c<e.length;c++){const s=e[c];if(t===a&&!Re(t.path)){const n=null==M?void 0:M.getResolvedModule(t,s.text,sr(t,s));if(null==n?void 0:n.resolvedModule){eM(A,be)&&ZR(be,n.resolvedModule.packageId?Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,s.text,aa(t.originalFileName,Ne),n.resolvedModule.resolvedFileName,n.resolvedModule.packageId&&Ed(n.resolvedModule.packageId)),(null!=r?r:r=new Array(e.length))[
6c]=n,(null!=i?i:i=[]).push(s);continue}}let l=!1;F(t.ambientModuleNames,s.text)?(l=!0,eM(A,be)&&ZR(be,Pa.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,s.text,aa(t.originalFileName,Ne))):l=u(s),l?(r||(r=new Array(e.length)))[c]=o:(null!=n?n:n=[]).push(s)}const s=n&&n.length?St(n,t,i):c;if(!r)return En.assert(s.length===e.length),s;let l=0;for(let c=0;c<r.length;c++)r[c]||(r[c]=s[l],l++);return En.assert(l===s.length),r;function u(e){var n;const r=null==(n=null==M?void 0:M.getResolvedModule(t,e.text,sr(t,e)))?void 0:n.resolvedModule,i=r&&M.getSourceFile(r.resolvedFileName);if(r&&i)return!1;const o=G.get(e.text);return!!o&&(eM(A,be)&&ZR(be,Pa.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e.text,o),!0)}}function It(e,t){var n;if(0===it)return Tt(e,t,void 0);let r,i,o;const a=mt(t)?void 0:t,s=mt(t)?void 0:M&&M.getSourceFile(t.fileName),l=mt(t)?!Re(Pt(t)):t===s&&!Re(t.path);for(let c=0;c<e.length;c++){const s=e[c];if(l){const r=b$(s),l=u$(s,null==a?void 0:a.impliedNodeFormat),u=mt(t)?null==(n=null==M?void 0:M.getAutomaticTypeDirectiveResolutions())?void 0:n.get(r,l):null==M?void 0:M.getResolvedTypeReferenceDirective(t,r,l);if(null==u?void 0:u.resolvedTypeReferenceDirective){eM(A,be)&&ZR(be,u.resolvedTypeReferenceDirective.packageId?Pa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Pa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,r,mt(t)?t:aa(t.originalFileName,Ne),u.resolvedTypeReferenceDirective.resolvedFileName,u.resolvedTypeReferenceDirective.packageId&&Ed(u.resolvedTypeReferenceDirective.packageId)),(null!=i?i:i=new Array(e.length))[c]=u,(null!=o?o:o=[]).push(s);continue}}(null!=r?r:r=[]).push(s)}if(!r)return i||c;const u=Tt(r,t,o);if(!i)return En.assert(u.length===e.length),u;let _=0;for(let c=0;c<i.length;c++)i[c]||(i[c]=u[_],_++);return En.assert(_===u.length),i}function Ot(e){return{getCanonicalFileName:Mn,getCommonSourceDirectory:ot.getCommonSourceDirectory,getCompilerOptions:ot.getCompilerOptions,getCurrentDirectory:()=>Ne,getSourceFile:ot.getSourceFile,getSourceFileByPath:ot.getSourceFileByPath,getSourceFiles:ot.getSourceFiles,isSourceFileFromExternalLibrary:Jt,getResolvedProjectReferenceToRedirect:Cn,getProjectReferenceRedirect:Sn,isSourceOfProjectReferenceRedirect:Nn,getSymlinkCache:ar,writeFile:e||Mt,isEmitBlocked:qt,readFile:e=>be.readFile(e),fileExists:e=>{const t=Pt(e);return!!$t(t)||!We.has(t)&&be.fileExists(e)},realpath:st(be,be.realpath),useCaseSensitiveFileNames:()=>be.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=ot.getBuildInfo)?void 0:e.call(ot)},getSourceFileFromReference:(e,t)=>ot.getSourceFileFromReference(e,t),redirectTargetsMap:qe,getFileIncludeReasons:ot.getFileIncludeReasons,createHash:st(be,be.createHash),getModuleResolutionCache:()=>ot.getModuleResolutionCache(),trace:st(be,be.trace)}}function Mt(e,t,n,r,i,o){be.writeFile(e,t,n,r,i,o)}function Bt(){return Ke}function Jt(e){return!!ve.get(e.path)}function Ut(){return W||(W=nJ(ot))}function qt(e){return Fe.has(Pt(e))}function zt(e){return $t(Pt(e))}function $t(e){return Ve.get(e)||void 0}function Vt(e,t,n){return Ws(e?t(e,n):q(ot.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function Wt(e){var t;if(FT(e,A,ot))return c;const n=at().getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Yt(e,e.commentDirectives,n).diagnostics:n}function Ht(e){return $m(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Kt((()=>{const t=[];return n(e,e),eO(e,n,r),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(a(e,Pa.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(a(e,Pa.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(a(n,Pa._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(a(e,Pa._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(a(e,Pa._0_declarations_can_only_be_used_in_TypeScript_files,DP(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(a(e,Pa.import_can_only_be_used_in_TypeScript_files)),"ski
6p";case 277:if(e.isExportEquals)return t.push(a(e,Pa.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(a(e,Pa.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=Ga(120);return En.assertIsDefined(r),t.push(a(e,Pa._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const i=32&e.flags?Ga(145):Ga(144);return En.assertIsDefined(i),t.push(a(e,Pa._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 265:return t.push(a(e,Pa.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(a(e,Pa.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const o=En.checkDefined(Ga(94));return t.push(a(e,Pa._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 235:return t.push(a(e,Pa.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(a(e.type,Pa.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(a(e.type,Pa.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:En.fail()}}function r(e,n){if(zA(n)){const e=w(n.modifiers,xN);e&&t.push(a(e,Pa.Decorators_are_not_valid_here))}else if(wI(n)&&n.modifiers){const e=N(n.modifiers,xN);if(e>=0)if(bN(n)&&!A.experimentalDecorators)t.push(a(n.modifiers[e],Pa.Decorators_are_not_valid_here));else if(cP(n)){const r=N(n.modifiers,iN);if(r>=0){const i=N(n.modifiers,oN);if(e>r&&i>=0&&e<i)t.push(a(n.modifiers[e],Pa.Decorators_are_not_valid_here));else if(r>=0&&e<r){const i=N(n.modifiers,xN,r);i>=0&&t.push(DT(a(n.modifiers[i],Pa.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(n.modifiers[e],Pa.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(o(e,Pa.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return i(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)mu(n)&&126!==n.kind&&129!==n.kind&&t.push(a(n,Pa.The_0_modifier_can_only_be_used_in_TypeScript_files,Ga(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&te(e,mu))return t.push(o(e,Pa.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(o(e,Pa.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function i(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(a(r,Pa.The_0_modifier_can_only_be_used_in_TypeScript_files,Ga(r.kind)))}}function o(t,n,...r){const i=t.pos;return vS(e,i,t.end-i,n,...r)}function a(t,n,...r){return Qp(e,t,n,...r)}}))}(e)),re(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Kt(e){try{return e()}catch(Fhe){throw Fhe instanceof $r&&(W=void 0),Fhe}}function Gt(e,t){return re(q$(Xt(e,t),A),Wt(e))}function Xt(e,t){return rn(e,t,ee,Qt)}function Qt(e,t){return Kt((()=>{if(FT(e,A,ot))return c;const n=Ut();En.assert(!!e.bindDiagnostics);const r=(1===e.scriptKind||2===e.scriptKind)&&kT(e,A),i=Ld(e,A.checkJs);let o=e.bindDiagnostics,a=n.getDiagnostics(e,t);return i&&(o=L(o,(e=>j$.has(e.code))),a=L(a,(e=>j$.has(e.code)))),function(e,t,...n){var r;const i=U(n);if(!t||!(null==(r=e.commentDirectives)?void 0:r.length))return i;const{diagnostics:o,directives:a}=Yt(e,e.commentDirectives,i);for(const s of a.getUnusedExpectations())o.push(of(e,s.range,Pa.Unused_ts_expect_error_directive));return o}(e,!i,o,a,r?e.jsDocDiagnostics:void 0)}))}function Yt(e,t,n){const r=ep(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=rs(n);let o=is(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^(\s*)\/\/(.*)$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function en(e,t){return rn(e,t,ne,tn)}function tn(e,t){return Kt((()=>{const n=Ut().getEmitResolver(e,t);return Eq(Ot(vt),n,e)||c}))}function rn(e,t,n,r){var i;const o=e?null==(i=n.perFile)?void 0:i.get(e.path):n.allDiagnostics;if(o)return o;const a=r(e,t);return e?(n.perFile||(n.perFile=new Map)).set(e.path,a):n.allDiagnostics=a,a}function on(e,t){return e.isDeclarationFile?[]:en(e,t)}function an(e,t,n,r){dn(sa(e),t,n,void 0,r)}function sn(e,t){return e.fileName===t.fileName}function cn(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function ln(e,t){const n=_w.createStringLiteral(e),r=_w.createImportDeclaration(void 0,void 0,n);return bw(r,2),HT(n,r),HT(r,t),n.flags&=-17,r.flags&=-17,n}function un(e){if(e.imports)return;const t=$m(e),n=aO(e);let r,i,o;if(t||!e.isDeclarationFile&&(zS(A)||aO(e))){A.importHelpers&&(r=[ln(ad,e)]);const t=mk(fk(A,e),A);t&&(r||(r=[])).push(ln(t,e))}for(const c of e.statements)a(c,!1);return(4194304&e.flags||t)&&function(e){const n=/import|require/g;for(;null!==n.exec(e.text);){const i=s(e,n.lastIndex);if(t&&Qm(i,!0))GT(i,!1),r=fe(r,i.arguments[0]);else if(xf(i)&&i.arguments.length>=1&&Z_(i.arguments[0]))GT(i,!1),r=fe(r,i.arguments[0]);else if(kf(i))GT(i,!1),r=fe(r,i.argument.literal);else if(t&&VF(i)){const e=Rg(i);e&&BD(e)&&e.text&&(GT(i,!1),r=fe(r,e))}}}(e),e.imports=r||c,e.moduleAugmentations=i||c,void(e.ambientModuleNames=o||c);function a(t,s){if(Bp(t)){const n=Rg(t);!(n&&BD(n)&&n.text)||s&&Vs(n.text)||(GT(t,!1),r=fe(r,n),ze||0!==he||e.isDeclarationFile||(ze=fn(n.text,"
6node:")))}else if(dP(t)&&yp(t)&&(s||Xv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=oy(t.name);if(n||s&&!Vs(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}function s(e,n){let r=e;const i=e=>{if(e.pos<=n&&(n<e.end||n===e.end&&1===e.kind))return e};for(;;){const e=t&&V_(r)&&d(r.jsDoc,i)||ZI(r,i);if(!e)return r;r=e}}}function _n(e,t,n,r){if(qo(e)){const i=be.getCanonicalFileName(e);if(!A.allowNonTsExtensions&&!d(U(Pe),(e=>zo(i,e))))return void(n&&(nT(i)?n(Pa.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(Pa.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+U(Ee).join("', '")+"'")));const o=t(e);if(n)if(o)F$(r)&&i===be.getCanonicalFileName($t(r.file).fileName)&&n(Pa.A_file_cannot_have_a_reference_to_itself);else{const t=Sn(e);t?n(Pa.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(Pa.File_0_not_found,e)}return o}{const r=A.allowNonTsExtensions&&t(e);if(r)return r;if(n&&A.allowNonTsExtensions)return void n(Pa.File_0_not_found,e);const i=d(Ee[0],(n=>t(e+n)));return n&&!i&&n(Pa.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+U(Ee).join("', '")+"'"),i}}function dn(e,t,n,r,i){_n(e,(e=>hn(e,t,n,i,r)),((e,...t)=>zn(void 0,i,e,t)),i)}function pn(e,t){return dn(e,!1,!1,void 0,t)}function gn(e,t,n){!F$(n)&&te(Z.get(t.path),F$)?zn(t,n,Pa.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):zn(t,n,Pa.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function hn(e,t,n,r,i){var o,a;null==(o=pr)||o.push(pr.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Vr[r.kind]});const s=function(e,t,n,r,i){var o;const a=Pt(e);if(Ye){let o=Dn(a);if(!o&&be.realpath&&A.preserveSymlinks&&fO(e)&&e.includes(ZM)){const t=Pt(be.realpath(e));t!==a&&(o=Dn(t))}if(o){const s=mt(o)?hn(o,t,n,r,i):void 0;return s&&bn(s,a,e,void 0),s}}const s=e;if(Ve.has(a)){const n=Ve.get(a),i=vn(n||void 0,r,!0);if(n&&i&&!1!==A.forceConsistentCasingInFileNames){const t=n.fileName;Pt(t)!==Pt(e)&&(e=Sn(e)||e),ca(t,Ne)!==ca(e,Ne)&&gn(e,n,r)}return n&&ve.get(n.path)&&0===he?(ve.set(n.path,!1),A.noResolve||(Fn(n,t),An(n)),A.noLib||Rn(n),ye.set(n.path,!1),Bn(n)):n&&ye.get(n.path)&&he<ge&&(ye.set(n.path,!1),Bn(n)),n||void 0}let c;if(!Ye){const t=kn(e);if(t){if(t.commandLine.options.outFile)return;const n=Tn(t,e);e=n,c=Pt(n)}}const l=yn(e,Oe,be,A),u=be.getSourceFile(e,l,(t=>zn(void 0,r,Pa.Cannot_read_file_0_Colon_1,[e,t])),rt);if(i){const t=Ed(i),n=Je.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=NI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,ve.set(r,he>0),c}(n,u,e,a,Pt(e),s,l);return qe.add(n.path,e),bn(t,a,e,c),vn(t,r,!1),Ue.set(a,Nd(i)),J.push(t),t}u&&(Je.set(t,u),Ue.set(a,Nd(i)))}if(bn(u,a,e,c),u){if(ve.set(a,he>0),u.fileName=e,u.path=a,u.resolvedPath=Pt(e),u.originalFileName=s,u.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,u.packageJsonScope=l.packageJsonScope,vn(u,r,!1),be.useCaseSensitiveFileNames()){const t=wt(a),n=He.get(t);n?gn(e,n,r):He.set(t,u)}Se=Se||u.hasNoDefaultLib&&!n,A.noResolve||(Fn(u,t),An(u)),A.noLib||Rn(u),Bn(u),t?B.push(u):J.push(u),(null!=X?X:X=new Set).add(u.path)}return u}(e,t,n,r,i);return null==(a=pr)||a.pop(),s}function yn(e,t,n,r){const i=M$(aa(e,Ne),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=BS(r),a=MS(r);return"object"==typeof i?g(m({},i),{languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}):{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}
6function vn(e,t,n){return!(!e||n&&F$(t)&&(null==X?void 0:X.has(t.file))||(Z.add(e.path,t),0))}function bn(e,t,n,r){r?(xn(n,r,e),xn(n,t,e||!1)):xn(n,t,e)}function xn(e,t,n){Ve.set(t,n),void 0!==n?We.delete(t):We.set(t,e)}function Sn(e){const t=kn(e);return t&&Tn(t,e)}function kn(e){if(Ke&&Ke.length&&!fO(e)&&!zo(e,".json"))return Cn(e)}function Tn(e,t){const n=e.commandLine.options.outFile;return n?fT(n,".d.ts"):tz(t,e.commandLine,!be.useCaseSensitiveFileNames())}function Cn(e){void 0===Xe&&(Xe=new Map,wn((e=>{Pt(A.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Xe.set(Pt(t),e.sourceFile.path)))})));const t=Xe.get(Pt(e));return t&&Pn(t)}function wn(e){return T$(Ke,e)}function Dn(e){if(fO(e))return void 0===Qe&&(Qe=new Map,wn((e=>{const t=e.commandLine.options.outFile;if(t){const e=fT(t,".d.ts");Qe.set(Pt(e),!0)}else{const t=Nt((()=>lz(e.commandLine,!be.useCaseSensitiveFileNames())));d(e.commandLine.fileNames,(n=>{if(!fO(n)&&!zo(n,".json")){const r=tz(n,e.commandLine,!be.useCaseSensitiveFileNames(),t);Qe.set(Pt(r),n)}}))}}))),Qe.get(e)}function Nn(e){return Ye&&!!Cn(e)}function Pn(e){if(Ge)return Ge.get(e)||void 0}function Fn(e,t){d(e.referencedFiles,((n,r)=>{dn(Uz(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function An(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==pe?void 0:pe.get(e.path))||It(t,e),r=FM();(null!=de?de:de=new Map).set(e.path,r);for(let i=0;i<t.length;i++){const t=e.typeReferenceDirectives[i],o=n[i],a=t.fileName;r.set(a,u$(t,e.impliedNodeFormat),o),In(a,t.resolutionMode||e.impliedNodeFormat,o,{kind:5,file:e.path,index:i})}}function In(e,t,n,r){var i,o;null==(i=pr)||i.push(pr.Phase.Program,"processTypeReferenceDirective",{directive:e,hasResolved:!!n.resolvedTypeReferenceDirective,ref
6Kind:r.kind,refPath:F$(r)?r.file:void 0}),function(e,t,n,r){yt(n);const{resolvedTypeReferenceDirective:i}=n;i?(i.isExternalLibraryImport&&he++,dn(i.resolvedFileName,!1,!1,i.packageId,r),i.isExternalLibraryImport&&he--):zn(void 0,r,Pa.Cannot_find_type_definition_file_for_0,[e])}(e,0,n,r),null==(o=pr)||o.pop()}function On(e){const t=null==se?void 0:se.get(e);if(t)return t.actual;const n=Ln(e);return(null!=se?se:se=new Map).set(e,n),n.actual}function Ln(e){var t,n,r,i,o;const a=null==ce?void 0:ce.get(e);if(a)return a;if(0!==it&&M&&!je(e)){const i=null==(t=M.resolvedLibReferences)?void 0:t.get(e);if(i){if(i.resolution&&eM(A,be)){const t=N$(e),o=D$(A,Ne,e);ZR(be,i.resolution.resolvedModule?i.resolution.resolvedModule.packageId?Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,aa(o,Ne),null==(n=i.resolution.resolvedModule)?void 0:n.resolvedFileName,(null==(r=i.resolution.resolvedModule)?void 0:r.packageId)&&Ed(i.resolution.resolvedModule.packageId))}return(null!=ce?ce:ce=new Map).set(e,i),i}}const s=N$(e),c=D$(A,Ne,e);null==(i=pr)||i.push(pr.Phase.Program,"resolveLibrary",{resolveFrom:c}),xr("beforeResolveLibrary");const l=Be(s,c,A,e);xr("afterResolveLibrary"),Sr("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),null==(o=pr)||o.pop();const u={resolution:l,actual:l.resolvedModule?l.resolvedModule.resolvedFileName:ra(Ce,e)};return(null!=ce?ce:ce=new Map).set(e,u),u}function Rn(e){d(e.libReferenceDirectives,((t,n)=>{const r=P$(t);r?an(On(r),!0,!0,{kind:7,file:e.path,index:n}):(ie||(ie=[])).push({kind:0,reason:{kind:7,file:e.path,index:n}})}))}function Mn(e){return be.getCanonicalFileName(e)}function Bn(e){var t;if(un(e),e.imports.length||e.moduleAugmentations.length){const n=W$(e),r=(null==ue?void 0:ue.get(e.path))||At(n,e);En.assert(r.length===n.length);const i=(null==(t=Ct(e))?void 0:t.commandLine.options)||A,o=FM();(null!=le?le:le=new Map).set(e.path,o);for(let t=0;t<n.length;t++){const a=r[t].resolvedModule,s=n[t].text,c=f$(e,n[t],i);if(o.set(s,c,r[t]),xt(e,s,r[t],c),!a)continue;const l=a.isExternalLibraryImport,u=!vT(a.extension)&&!kn(a.resolvedFileName),_=l&&u&&(!a.originalPath||ej(a.resolvedFileName)),d=a.resolvedFileName;l&&he++;const p=_&&he>ge,f=d&&!V$(i,a,e)&&!i.noResolve&&t<e.imports.length&&!p&&!(u&&!ZS(i))&&(Wm(e.imports[t])||!(16777216&e.imports[t].flags));p?ye.set(e.path,!0):f&&hn(d,!1,!1,{kind:3,file:e.path,index:t},a.packageId),l&&he--}}}function Jn(e){Ge||(Ge=new Map);const t=$$(e),n=Pt(t),r=Ge.get(n);if(void 0!==r)return r||void 0;let i,o;if(be.getParsedCommandLine){if(i=be.getParsedCommandLine(t),!i)return bn(void 0,n,t,void 0),void Ge.set(n,!1);o=En.checkDefined(i.options.configFile),En.assert(!o.path||o.path===n),bn(o,n,t,void 0)}else{const e=aa(Go(t),Ne);if(o=be.getSourceFile(t,100),bn(o,n,t,void 0),void 0===o)return void Ge.set(n,!1);i=rR(o,xe,e,void 0,t)}o.fileName=t,o.path=n,o.resolvedPath=n,o.originalFileName=t;const a={commandLine:i,sourceFile:o};return Ge.set(n,a),i.projectReferences&&(a.references=i.projectReferences.map(Jn)),a}function Un(e,t,n,r,i){const a=new jn(e),s=new jn(n),c=new jn(R||o),l=function(){const e=A.ignoreDeprecations;if(e){if("5.0"===e)return new jn(e);j()}return jn.zero}(),u=!(1===s.compareTo(c)),_=!u&&-1===l.compareTo(a);(u||_)&&i(((n,i,o)=>{u?void 0===i?r(n,i,o,Pa.Option_0_has_been_removed_Please_remove_it_from_your_configuration,n):r(n,i,o,Pa.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,n,i):void 0===i?r(n,i,o,Pa.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,n,t,e):r(n,i,o,Pa.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,n,i,t,e)}))}function qn(e,t,n,r){let i;const o=e&&Z.get(e.path);let a,s,l,u,_,d=F$(t)?t:void 0,p=e&&(null==Q?void 0:Q.get(e.path));
6p?(p.fileIncludeReasonDetails?(i=new Set(o),null==o||o.forEach(h)):null==o||o.forEach(g),u=p.redirectInfo):(null==o||o.forEach(g),u=e&&pW(e)),t&&g(t);const f=(null==i?void 0:i.size)!==(null==o?void 0:o.length);d&&1===(null==i?void 0:i.size)&&(i=void 0),i&&p&&(p.details&&!f?_=kS(p.details,n,...r||c):p.fileIncludeReasonDetails&&(f?a=y()?fe(p.fileIncludeReasonDetails.next.slice(0,o.length),a[0]):[...p.fileIncludeReasonDetails.next,a[0]]:y()?a=p.fileIncludeReasonDetails.next.slice(0,o.length):l=p.fileIncludeReasonDetails)),_||(l||(l=i&&kS(a,Pa.The_file_is_in_the_program_because_Colon)),_=kS(u?l?[l,...u]:u:l,n,...r||c)),e&&(p?(!p.fileIncludeReasonDetails||!f&&l)&&(p.fileIncludeReasonDetails=l):(null!=Q?Q:Q=new Map).set(e.path,p={fileIncludeReasonDetails:l,redirectInfo:u}),p.details||f||(p.details=_.next));const m=d&&I$(ot,d);return m&&A$(m)?tf(m.file,m.pos,m.end-m.pos,_,s):SS(_,s);function g(e){(null==i?void 0:i.has(e))||((null!=i?i:i=new Set).add(e),(null!=a?a:a=[]).push(gW(ot,e)),h(e))}function h(e){!d&&F$(e)?d=e:d!==e&&(s=fe(s,function(e){var t;let n=null==Y?void 0:Y.get(e);return void 0===n&&(null!=Y?Y:Y=new Map).set(e,n=null!=(t=function(e){if(F$(e)){const t=I$(ot,e);let n;switch(e.kind){case 3:n=Pa.File_is_included_via_import_here;break;case 4:n=Pa.File_is_included_via_reference_here;break;case 5:n=Pa.File_is_included_via_type_library_reference_here;break;case 7:n=Pa.File_is_included_via_library_reference_here;break;default:En.assertNever(e)}return A$(t)?vS(t.file,t.pos,t.end-t.pos,n):void 0}if(!A.configFile)return;let t,n;switch(e.kind){case 0:if(!A.configFile.configFileSpecs)return;const i=aa(P[e.index],Ne),o=fW(ot,i);if(o){t=am(A.configFile,"files",o),n=Pa.File_is_matched_by_files_list_specified_here;break}const a=mW(ot,i);if(!a||!mt(a))return;t=am(A.configFile,"include",a),n=Pa.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=En.checkDefined(null==Ke?void 0:Ke[e.index]),c=C$(O,Ke,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||A.configFile,index:n}:void 0));if(!c)return;const{sourceFile:l,index:u}=c,_=sm(l,"references",(e=>aE(e.initializer)?e.initializer:void 0));return _&&_.elements.length>u?Qp(l,_.elements[u],2===e.kind?Pa.File_is_output_from_referenced_project_specified_here:Pa.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!A.types)return;t=Gn("types",e.typeReference),n=Pa.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=Gn("lib",A.lib[e.index]),n=Pa.File_is_library_specified_here;break}const d=sk(BS(A));t=d?(r=d,Hn("target",(e=>BD(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=Pa.File_is_default_library_for_target_specified_here;break;default:En.assertNever(e)}var r;return t&&Qp(A.configFile,t,n)}(e))&&t),n||void 0}(e)))}function y(){var e;return(null==(e=p.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==o?void 0:o.length)}}function zn(e,t,n,r){(ie||(ie=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function $n(e,t,n){De.push({file:e,diagnostic:t,args:n})}function Vn(e,t,n,...r){let i=!0;Kn((o=>{sE(o.initializer)&&rm(o.initializer,e,(e=>{const o=e.initializer;aE(o)&&o.elements.length>t&&(we.add(Qp(A.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&er(n,...r)}function Wn(e,t,n,...r){let i=!0;Kn((o=>{sE(o.initializer)&&rr(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&er(n,...r)}function Hn(e,t){return rm(tr(),e,t)}function Kn(e){return Hn("paths",e)}function Gn(e,t){const n=tr();return n&&im(n,e,t)}function Xn(e,t,n,r){Zn(!0,t,n,e,t,n,r)}function Qn(e,t,...n){Zn(!1,e,void 0,t,...n)}function Yn(e,t,n,...r){const i=sm(e||A.configFile,"references",(e=>aE(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?we.add(Qp(e||A.configFile,i.elements[t],n,...r)):we.add(xS(n,...r))}function Zn(e,t,n,r,...i){const o=tr();(!o||!rr(o,e,t,n,r,...i))&&er(r,...i)}function er(e,...t){const n=nr();n?"messageText"in e?we.add(Yp(A.configFile,n.name,e)):we.add(Qp(A.configFile,n.name,e,...t)):"messageText"in e?we.add(SS(e)):we.add(xS(e,...t))}function tr(){if(void 0===Ae){const e=nr();Ae=e&&ht(e.initializer,sE)||!1}return Ae||void 0}function nr(){return void 0===Ie&&(Ie=rm(om(A.configFile),"compilerOptions",kt)||!1),Ie||void 0}function rr(e,t,n,r,i,...o){let a=!1;return rm(e,n,(e=>{"messageText"in i?we.add(Yp(A.configFile,t?e.name:e.initializer,i)):we.add(Qp(A.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function ir(e,t){Fe.set(Pt(e),!0),we.add(t)}function or(e,t){return 0===va(e,t,Ne,!be.useCaseSensitiveFileNames())}function ar(){return be.getSymlinkCache?be.getSymlinkCache():($||($=hk(Ne,Mn)),z&&!$.hasProcessedResolutions()&&$.setSymlinksFromResolutions(_t,dt,ae),$)}function sr(e,t){var n;return f$(e,t,(null==(n=Ct(e))?void 0:n.commandLine.options)||A)}}var J$={diagnostics:c,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function U$(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(t,r),t||i.outFile?J$:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&GS(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t&&!i.outFile){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function q$(e,t){return L(e,(e=>
6!e.skippedOn||!t[e.skippedOn]))}function z$(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(En.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:st(t,t.directoryExists),getDirectories:st(t,t.getDirectories),realpath:st(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||St,trace:e.trace?t=>e.trace(t):void 0}}function $$(e){return JW(e.path)}function V$(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return KS(e)?void 0:Pa.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:Pa.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:Pa.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return ZS(e)||!ak(e,"noImplicitAny")?void 0:Pa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function W$({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const r of t)11===r.kind&&n.push(r);return n}function H$({imports:e,moduleAugmentations:t},n){if(n<e.length)return e[n];let r=e.length;for(const i of t)if(11===i.kind){if(n===r)return i;r++}En.fail("should never ask for module name at index higher than possible module name")}function K$(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,(function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})}),r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var G$,X$=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(X$||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return H(e.declarations,(e=>{var t;return null==(t=Id(e))?void 0:t.resolvedPath}))}(n)}function i(e,t,n,r){return la(e.getProjectReferenceRedirect(t)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Go(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(i(e,r.fileName,a,n));if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!BD(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const r of e.getTypeChecker().getAmbientModules())r.declarations&&r.declarations.length>1&&s(r);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=Id(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function s(e){return 0===e.module||e.outFile?void 0:t()}function l(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?_(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:c}function u(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{En.assert(fO(n),`File extension for signature expected to be dts: Got:: ${n}`),i(SV(e,t,o,r,l),c)}),n,!0,void 0,!0)}function _(e,t,n,r,i,o=e.useFileVersionAsSignature){var a,s;if(null==(s=e.hasCalledUpdateShapeSignature)?void 0:s.has(n.resolvedPath))return!1;
6const c=e.fileInfos.get(n.resolvedPath),l=c.signature;let _;return n.isDeclarationFile||o||u(t,n,r,i,(t=>{var r;_=t,i.storeSignatureInfo&&(null!=(r=e.signatureInfo)?r:e.signatureInfo=new Map).set(n.resolvedPath,0)})),void 0===_&&(_=n.version,i.storeSignatureInfo&&(null!=(a=e.signatureInfo)?a:e.signatureInfo=new Map).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,l||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),c.signature=_,_!==l}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===c?c:n.map((e=>e.fileName))}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Xe(n.keys()):[]}function f(e){return function(e){return te(e.moduleAugmentations,(e=>Tp(e.parent)))}(e)||!_f(e)&&!df(e)&&!function(e){for(const t of e.statements)if(!vp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const o of t.getSourceFiles())o!==n&&i(o);return e.allFilesExcludingDefaultLibraryFile=r||c,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(zS(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&_(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Xe(K(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=s,e.create=function(e,t,n){var r,i;const c=new Map,l=e.getCompilerOptions(),u=s(l),_=a(u,t);e.getTypeChecker();for(const a of e.getSourceFiles()){const n=En.checkDefined(a.version,"Program intended to be used with Builder should have source files with versions set"),s=_?null==(r=t.oldSignatures)?void 0:r.get(a.resolvedPath):void 0,d=void 0===s?_?null==(i=t.fileInfos.get(a.resolvedPath))?void 0:i.signature:void 0:s||void 0;if(u){const t=o(e,a,e.getCanonicalFileName);t&&u.set(a.resolvedPath,t)}c.set(a.resolvedPath,{version:n,signature:d,affectsGlobalScope:l.outFile?void 0:f(a)||void 0,impliedFormat:a.impliedNodeFormat})}return{fileInfos:c,referencedMap:u,useFileVersionAsSignature:!n&&!_}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=l(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=l,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=u,e.updateShapeSignature=_,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Xe(K(r.keys(),(e=>{var n,r;return null!=(n=null==(r=t.getSourceFileByPath(e))?void 0:r.fileName)?n:e})))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(G$||(G$={}));var Q$=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Q$||{});function Y$(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),GS(e)&&(t|=8),e.declarationMap&&(t|=16),e.emitDeclarationOnly&&(t&=24),t}function Z$(e,t){const n=t&&(gt(t)?t:Y$(t)),r=gt(e)?e:Y$(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),24&i&&(o|=24&r),o}function eV(e,t){var n,r;const i=G$.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;a?o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&nV(o,t.compilerOptions,t.outSignature)):i.semanticDiagnosticsPerFile=new Map,i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0;const s=G$.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0,l=s&&t.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile&&!lk(o,c),u=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!_k(o,t.compilerOptions);
6s?(null==(n=t.changedFilesSet)||n.forEach((e=>i.changedFilesSet.add(e))),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending):i.buildInfoEmitPending=!0;const _=i.referencedMap,d=s?t.referencedMap:void 0,p=l&&!o.skipLibCheck==!c.skipLibCheck,f=p&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach(((n,r)=>{var a,c,m,g;let h,y;if(!s||!(h=t.fileInfos.get(r))||h.version!==n.version||h.impliedFormat!==n.impliedFormat||(v=y=_&&_.getValues(r),b=d&&d.getValues(r),v!==b&&(void 0===v||void 0===b||v.size!==b.size||xd(v,(e=>!b.has(e)))))||y&&xd(y,(e=>!i.fileInfos.has(e)&&t.fileInfos.has(e))))tV(i,r);else{const n=e.getSourceFileByPath(r),o=null==(g=t.emitDiagnosticsPerFile)?void 0:g.get(r);if(o&&(null!=(a=i.emitDiagnosticsPerFile)?a:i.emitDiagnosticsPerFile=new Map).set(r,t.hasReusableDiagnostic?aV(o,r,e):rV(o,e)),l){if(n.isDeclarationFile&&!p)return;if(n.hasNoDefaultLib&&!f)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?aV(o,r,e):rV(o,e)),(null!=(c=i.semanticDiagnosticsFromOldState)?c:i.semanticDiagnosticsFromOldState=new Set).add(r))}}var v,b;if(u){const e=t.emitSignatures.get(r);e&&(null!=(m=i.emitSignatures)?m:i.emitSignatures=new Map).set(r,nV(o,t.compilerOptions,e))}})),s&&bd(t.fileInfos,((e,t)=>!(i.fileInfos.has(t)||!a&&!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,1)))))G$.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>tV(i,e.resolvedPath)));else if(c){const t=uk(o,c)?Y$(o):Z$(o,c);0!==t&&(a?i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t:(e.getSourceFiles().forEach((e=>{i.changedFilesSet.has(e.resolvedPath)||CV(i,e.resolvedPath,t)})),En.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set,i.buildInfoEmitPending=!0))}return i}function tV(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function nV(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:mt(n)?[n]:n[0]}function rV(e,t){return e.length?J(e,(e=>{if(mt(e.messageText))return e;const n=iV(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:g(m({},e),{messageText:n})})):e}function iV(e,t,n,r){const i=r(e);if(i)return g(m({},Dd(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference)),{next:oV(e.next,t,n,r)});const o=oV(e.next,t,n,r);return o===e.next?e:g(m({},e),{next:o})}function oV(e,t,n,r){return J(e,(e=>iV(e,t,n,r)))}function aV(e,t,n){if(!e.length)return c;let r;return e.map((e=>{const r=sV(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map((e=>sV(e,t,n,i))):[]:void 0,r}));function i(e){return null!=r||(r=Go(aa(Gq(n.getCompilerOptions()),n.getCurrentDirectory()))),la(e,r,n.getCanonicalFileName)}}function sV(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return g(m({},e),{file:o,messageText:mt(e.messageText)?e.messageText:iV(e.messageText,o,n,(e=>e.info))})}function cV(e,t){En.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function lV(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a<i.length;){const r=i[a];if(!o.has(r.resolvedPath))return e.affectedFilesIndex=a,CV(e,r.resolvedPath,Y$(e.compilerOptions)),_V(e,r,t,n),r;a++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,null==(r=e.oldSignatures)||r.clear(),e.affectedFiles=void 0}const o=e.changedFilesSet.keys().next();if(o.done)return;const a=En.checkDefined(e.program);if(a.getCompilerOptions().outFile)return En.assert(!e.semanticDiagnosticsPerFile),a;e.affectedFiles=G$.getFilesAffectedByWithOldState(e,a,o.value,t,n),e.currentChangedFilePath=o.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function uV(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=En.checkDefined(e.program),n=t.getCompilerOptions();d(t.getSourceFiles(),(r=>t.isSourceFileDefaultLibrary(r)&&!FT(r,n,t)&&pV(e,r.resolvedPath)))}}function _V(e,t,n,r){if(pV(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return uV(e),void G$.updateShapeSignature(e,En.checkDefined(e.program),t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!fV(e,t.resolvedPath))return;if(zS(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=G$.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),mV(e,t,!1,n,r))return;if(dV(e,t,!1,n,r),fV(e,t)){const n=En.checkDefined(e.program).getSourceFileByPath(t);o.push(...G$.getReferencedByPaths(e,n.resolvedPath))}}}}
6const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!bd(t.symbol.exports,(n=>{if(128&n.flags)return!0;const r=Nx(n,e.program.getTypeChecker());return r!==n&&!!(128&r.flags)&&te(r.declarations,(e=>Id(e)===t))}));null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(mV(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&xd(i,(t=>gV(e,t,s,a,n,r)))}))}(e,t,n,r)}function dV(e,t,n,r,i){if(pV(e,t),!e.changedFilesSet.has(t)){const o=En.checkDefined(e.program),a=o.getSourceFileByPath(t);a&&(G$.updateShapeSignature(e,o,a,r,i,!0),n?CV(e,t,Y$(e.compilerOptions)):GS(e.compilerOptions)&&CV(e,t,e.compilerOptions.declarationMap?24:8))}}function pV(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function fV(e,t){const n=En.checkDefined(e.oldSignatures).get(t)||void 0;return En.checkDefined(e.fileInfos.get(t)).signature!==n}function mV(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(G$.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>dV(e,t.resolvedPath,n,r,i))),uV(e),!0)}function gV(e,t,n,r,i,o){var a;if(Q(r,t)){if(mV(e,t,n,i,o))return!0;dV(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>gV(e,t,n,r,i,o)))}}function hV(e,t,n){return re(function(e,t,n){const r=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const t=e.semanticDiagnosticsPerFile.get(r);if(t)return q$(t,e.compilerOptions)}const i=En.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,i),q$(i,e.compilerOptions)}(e,t,n),En.checkDefined(e.program).getProgramDiagnostics(t))}function yV(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}var vV=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(vV||{});function bV(e,t,n,r,i,o){let a,s,l;return void 0===e?(En.assert(void 0===t),a=n,l=r,En.assert(!!l),s=l.getProgram()):pt(e)?(l=r,s=B$({rootNames:e,options:t,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(s=e,a=t,l=n,i=r),{host:a,newProgram:s,oldProgram:l,configFileParsingDiagnostics:i||c}}function xV(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function SV(e,t,n,r,i){var o,a;let s;return n=xV(n,i),(null==(a=null==i?void 0:i.diagnostics)?void 0:a.length)&&(n+=i.diagnostics.map((n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===s&&(s=Go(t.resolvedPath)),`${da(ka(s,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${wi[n.category]}${n.code}: ${c(n.messageText)}`)).join("\n")),(null!=(o=r.createHash)?o:no)(n);function c(e){return mt(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(c).join("\n"):e.messageText}}function kV(e,t,n){var r;return(null!=(r=t.createHash)?r:no)(xV(e,n))}function TV(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.getState();if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const a=eV(t,o);t.getBuildInfo=()=>function(e){var t,n;const r=En.checkDefined(e.program).getCurrentDirectory(),i=Go(aa(Gq(e.compilerOptions),r)),o=e.latestChangedDtsFile?k(e.latestChangedDtsFile):void 0,a=[],s=new Map,l=new Set(e.program.getRootFileNames().map((t=>la(t,r,e.program.getCanonicalFileName)))),u=[];
6if(e.compilerOptions.outFile){const t=Xe(e.fileInfos.entries(),(([e,t])=>(D(e,C(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version)));return mz({fileNames:a,fileInfos:t,root:u,resolvedRoot:N(),options:E(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending!==Y$(e.compilerOptions)&&e.programEmitPending:void 0})}let _,p,f;const h=Xe(e.fileInfos.entries(),(([t,n])=>{var r,i;const o=C(t);D(t,o),En.assert(a[o-1]===T(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),l=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!df(n)&&gv(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==l&&(f=fe(f,void 0===n?o:[o,mt(n)||n[0]!==l?n:c]))}}return n.version===l?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==l?void 0===s?n:{version:n.version,signature:l,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let y;(null==(t=e.referencedMap)?void 0:t.size())&&(y=Xe(e.referencedMap.keys()).sort(zt).map((t=>[C(t),w(e.referencedMap.getValues(t))])));const v=function(){let t;return e.fileInfos.forEach(((n,r)=>{var i;const o=null==(i=e.semanticDiagnosticsPerFile)?void 0:i.get(r);o?o.length&&(t=fe(t,[C(r),F(o,r)])):e.changedFilesSet.has(r)||(t=fe(t,C(r)))})),t}();let b,x;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=Y$(e.compilerOptions),n=new Set;for(const r of Xe(e.affectedFilesPendingEmit.keys()).sort(zt))if(Q(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!gv(n,e.program))continue;const i=C(r),o=e.affectedFilesPendingEmit.get(r);b=fe(b,o===t?i:8===o?[i]:[i,o])}}if(e.changedFilesSet.size)for(const c of Xe(e.changedFilesSet.keys()).sort(zt))x=fe(x,C(c));const S=function(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const r of Xe(e.emitDiagnosticsPerFile.keys()).sort(zt)){const t=e.emitDiagnosticsPerFile.get(r);n=fe(n,[C(r),F(t,r)])}return n}();return mz({fileNames:a,fileInfos:h,root:u,resolvedRoot:N(),options:E(e.compilerOptions),fileIdsList:_,referencedMap:y,semanticDiagnosticsPerFile:v,emitDiagnosticsPerFile:S,affectedFilesPendingEmit:b,changeFileSet:x,emitSignatures:f,latestChangedDtsFile:o});function k(e){return T(aa(e,r))}function T(t){return da(ka(i,t,e.program.getCanonicalFileName))}function C(e){let t=s.get(e);return void 0===t&&(a.push(T(e)),s.set(e,t=a.length)),t}function w(e){const t=Xe(e.keys(),C).sort(jt),n=t.join();let r=null==p?void 0:p.get(n);return void 0===r&&(_=fe(_,t),(null!=p?p:p=new Map).set(n,r=_.length)),r}function D(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=pt(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return gt(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function N(){let t;return l.forEach((n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=fe(t,[C(r.resolvedPath),C(n)]))})),t}function E(e){let t;const{optionsNameMap:n}=YO();for(const r of We(e).sort(zt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=P(i,e[r]))}return t}function P(e,t){if(e)if(En.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(k)}else if(e.isFilePath)return k(t);return t}function F(e,t){return En.assert(!!e.length),e.map((e=>{const n=A(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>A(e,t))):[]:void 0,n}))}function A(e,t){const{file:n}=e;return g(m({},e),{file:!!n&&(n.resolvedPath===t?void 0:T(n.resolvedPath)),messageText:mt(e.messageText)?e.messageText:I(e.messageText)})}function I(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:O(e.next)};const t=O(e.next);return t===e.next?e:g(m({},e),{next:t})}function O(e){return e&&d(e,((t,n)=>{const r=I(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let o=n+1;o<e.length;o++)i.push(I(e[o]));return i}))||e}}(a),t=void 0,r=void 0,o=void 0;const s=()=>a,l=FV(s,i);return l.getState=s,l.saveEmitState=()=>function(e){const t=e.compilerOptions.outFile;return En.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}(a),l.restoreEmitState=e=>function(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}(a,e),l.hasChangedEmitSignature=()=>!!a.hasChangedEmitSignature,l.getAllDependencies=e=>G$.getAllDependencies(a,En.checkDefined(a.program),e),l.getSemanticDiagnostics=function(e,t){if(cV(a,e),En.checkDefined(a.program).getCompilerOptions().outFile)return En.assert(!a.semanticDiagnosticsPerFile),En.checkDefined(a.program).getSemanticDiagnostics(e,t);if(e)return hV(a,e,t);for(;p(t););let n;for(const r of En.checkDefined(a.program).getSourceFiles())n=he(n,hV(a,r,t));return n||c},l.emit=function(t,n,r,i,o){1===e&&cV(a,t);const s=U$(l,t,n,r);if(s)return s;if(!t){if(1===e){let e,t,a=[],s=!1,l=[];for(;t=u(n,r,i,o);)s=s||t.result.emitSkipped,e=he(e,t.result.diagnostics),l=he(l,t.result.emittedFiles),a=he(a,t.result.sourceMaps);return{emitSkipped:s,diagnostics:e||c,emittedFiles:l,sourceMaps:a}}!function(e,t){var n;(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)&&(t?e.affectedFilesPendingEmit.forEach(((t,n)=>{const r=7&t;r?e.affectedFilesPendingEmit.set(n,r):e.affectedFilesPendingEmit.delete(n)})):e.affectedFilesPendingEmit=void 0)}(a,i)}
6return En.checkDefined(a.program).emit(t,_(n,o),r,i,o)},l.releaseProgram=()=>function(e){G$.releaseCache(e),e.program=void 0}(a),0===e?l.getSemanticDiagnosticsOfNextAffectedFile=p:1===e?(l.getSemanticDiagnosticsOfNextAffectedFile=p,l.emitNextAffectedFile=u,l.emitBuildInfo=function(e,t){if(a.buildInfoEmitPending){const r=En.checkDefined(a.program).emitBuildInfo(e||st(n,n.writeFile),t);return a.buildInfoEmitPending=!1,r}return J$}):Dt(),l;function u(e,t,r,i){var o,s,c,l,u,d,p;let f=lV(a,t,n);const m=Y$(a.compilerOptions);let g,h=r?24&m:m;if(!f)if(a.compilerOptions.outFile){if(!a.programEmitPending)return;if(h=a.programEmitPending,r&&(h&=24),!h)return;f=a.program}else{const i=function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)return bd(e.affectedFilesPendingEmit,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!gv(o,e.program))return void e.affectedFilesPendingEmit.delete(r);let a=Z$(n,null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath));return t&&(a&=24),a?{affectedFile:o,emitKind:a}:void 0}))}(a,r);if(!i){const r=function(e){var t;if(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size)return bd(e.emitDiagnosticsPerFile,((t,n)=>{var r;const i=e.program.getSourceFileByPath(n);if(!i||!gv(i,e.program))return void e.emitDiagnosticsPerFile.delete(n);const o=(null==(r=e.seenEmittedFiles)?void 0:r.get(i.resolvedPath))||0;return 24&o?void 0:{affectedFile:i,diagnostics:t,seenKind:o}}))}(a);if(r)return(null!=(o=a.seenEmittedFiles)?o:a.seenEmittedFiles=new Map).set(r.affectedFile.resolvedPath,24|r.seenKind),{result:{emitSkipped:!0,diagnostics:r.diagnostics},affected:r.affectedFile};if(!a.buildInfoEmitPending)return;const i=a.program,s=i.emitBuildInfo(e||st(n,n.writeFile),t);return a.buildInfoEmitPending=!1,{result:s,affected:i}}({affectedFile:f,emitKind:h}=i)}7&h&&(g=0),24&h&&(g=void 0===g?1:void 0),f===a.program&&(a.programEmitPending=a.changedFilesSet.size?Z$(m,h):a.programEmitPending?Z$(a.programEmitPending,h):void 0);const y=a.program.emit(f===a.program?void 0:f,_(e,i),t,g,i);if(f!==a.program){const e=f;a.seenAffectedFiles.add(e.resolvedPath),void 0!==a.affectedFilesIndex&&a.affectedFilesIndex++,a.buildInfoEmitPending=!0;const t=(null==(u=a.seenEmittedFiles)?void 0:u.get(e.resolvedPath))||0;(null!=(s=a.seenEmittedFiles)?s:a.seenEmittedFiles=new Map).set(e.resolvedPath,h|t);const n=Z$((null==(d=a.affectedFilesPendingEmit)?void 0:d.get(e.resolvedPath))||m,h|t);n?(null!=(c=a.affectedFilesPendingEmit)?c:a.affectedFilesPendingEmit=new Map).set(e.resolvedPath,n):null==(p=a.affectedFilesPendingEmit)||p.delete(e.resolvedPath),y.diagnostics.length&&(null!=(l=a.emitDiagnosticsPerFile)?l:a.emitDiagnosticsPerFile=new Map).set(e.resolvedPath,y.diagnostics)}else a.changedFilesSet.clear();return{result:y,affected:f}}function _(e,t){return GS(a.compilerOptions)?(r,i,o,s,c,l)=>{var u,_,d,p,f,m;if(fO(r))if(a.compilerOptions.outFile){if(a.compilerOptions.composite){const e=g(a.outSignature,void 0);if(!e)return;a.outSignature=e}}else{let e;if(En.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=a.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=SV(a.program,t,i,n,l);(null==(p=null==l?void 0:l.diagnostics)?void 0:p.length)||(e=o),o!==t.version&&(n.storeSignatureInfo&&(null!=(u=a.signatureInfo)?u:a.signatureInfo=new Map).set(t.resolvedPath,1),a.affectedFiles?(void 0===(null==(f=a.oldSignatures)?void 0:f.get(t.resolvedPath))&&(null!=(_=a.oldSignatures)?_:a.oldSignatures=new Map).set(t.resolvedPath,r.signature||!1),r.signature=o):r.signature=o)}}if(a.compilerOptions.composite){const t=c[0].resolvedPath;if(e=g(null==(m=a.emitSignatures)?void 0:m.get(t),e),!e)return;(null!=(d=a.emitSignatures)?d:a.emitSignatures=new Map).set(t,e)}}function g(e,t){const o=!e||mt(e)?e:e[0];if(null!=t||(t=kV(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else a.hasChangedEmitSignature=!0,a.latestChangedDtsFile=r;return t}e?e(r,i,o,s,c,l):n.writeFile?n.writeFile(r,i,o,s,c,l):a.program.writeFile(r,i,o,s,c,l)}:e||st(n,n.writeFile)}function p(e,t){for(;;){const r=lV(a,e,n);let i;if(!r)return;if(r!==a.program){const n=r;if(t&&t(n)||(i=hV(a,n,e)),a.seenAffectedFiles.add(n.resolvedPath),a.affectedFilesIndex++,a.buildInfoEmitPending=!0,!i)continue}else i=a.program.getSemanticDiagnostics(void 0,e),a.changedFilesSet.clear(),a.programEmitPending=Y$(a.compilerOptions);return{result:i,affected:r}}}}function CV(e,t,n){var r,i,o;const a=(null==(i=e.affectedFilesPendingEmit)?void 0:i.get(t))||0;(null!=(r=e.affectedFilesPendingEmit)?r:e.affectedFilesPendingEmit=new Map).set(t,a|n),null==(o=e.emitDiagnosticsPerFile)||o.delete(t)}function wV(e){return mt(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:mt(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function DV(e,t){return gt(e)?t:e[1]||8}function NV(e,t){return e||Y$(t||{})}function EV(e,t,n){var r,i,o,a,s;const l=e.program,u=Go(aa(t,n.getCurrentDirectory())),_=un(n.useCaseSensitiveFileNames());let d;const p=null==(i=l.fileNames)?void 0:i.map((function(e){return la(e,u,_)}));let f;const m=l.latestChangedDtsFile?h(l.latestChangedDtsFile):void 0;if(yV(l)){const e=new Map;l.fileInfos.forEach(((t,n)=>{const r=y(n+1);e.set(r,mt(t)?{version:t,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:t)})),d={fileInfos:e,compilerOptions:l.options?eR(l.options,h):{},latestChangedDtsFile:m,outSignature:l.outSignature,programEmitPending:void 0===l.pendingEmit?void 0:NV(l.pendingEmit,l.options)}}else{f=null==(o=l.fileIdsList)?void 0:o.map((e=>new Set(e.map(y))));const e=new Map,t=(null==(a=l.options)?void 0:a.composite)&&!l.options.outFile?new Map:void 0;l.fileInfos.forEach(((n,r)=>{const i=y(r+1),o=wV(n);e.set(i,o),t&&o.signature&&t.set(i,o.signature)}
6)),null==(s=l.emitSignatures)||s.forEach((e=>{if(gt(e))t.delete(y(e));else{const n=y(e[0]);t.set(n,mt(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=new Set(j(l.changeFileSet,y)),i=l.affectedFilesPendingEmit?Y$(l.options||{}):void 0;d={fileInfos:e,compilerOptions:l.options?eR(l.options,h):{},referencedMap:function(e,t){const n=G$.createReferencedMap(t);return n&&e?(e.forEach((([e,t])=>n.set(y(e),f[t-1]))),n):n}(l.referencedMap,null!=(r=l.options)?r:{}),semanticDiagnosticsPerFile:function(e,t,n){const r=new Map(K(t.keys(),(e=>n.has(e)?void 0:[e,c])));return null==e||e.forEach((e=>{gt(e)?r.delete(y(e)):r.set(y(e[0]),e[1])})),r.size?r:void 0}(l.semanticDiagnosticsPerFile,e,n),emitDiagnosticsPerFile:(g=l.emitDiagnosticsPerFile,g&&Ze(g,(e=>y(e[0])),(e=>e[1]))),hasReusableDiagnostic:!0,affectedFilesPendingEmit:l.affectedFilesPendingEmit&&Ze(l.affectedFilesPendingEmit,(e=>y(gt(e)?e:e[0])),(e=>DV(e,i))),changedFilesSet:n,latestChangedDtsFile:m,emitSignatures:(null==t?void 0:t.size)?t:void 0}}var g;return{getState:()=>d,saveEmitState:vt,restoreEmitState:vt,getProgram:Dt,getProgramOrUndefined:St,releaseProgram:vt,getCompilerOptions:()=>d.compilerOptions,getSourceFile:Dt,getSourceFiles:Dt,getOptionsDiagnostics:Dt,getGlobalDiagnostics:Dt,getConfigFileParsingDiagnostics:Dt,getSyntacticDiagnostics:Dt,getDeclarationDiagnostics:Dt,getSemanticDiagnostics:Dt,emit:Dt,getAllDependencies:Dt,getCurrentDirectory:Dt,emitNextAffectedFile:Dt,getSemanticDiagnosticsOfNextAffectedFile:Dt,emitBuildInfo:Dt,close:vt,hasChangedEmitSignature:bt};function h(e){return aa(e,u)}function y(e){return p[e-1]}}function PV(e,t,n){const r=Go(aa(t,n.getCurrentDirectory())),i=un(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach(((t,n)=>{const s=la(e.fileNames[n],r,i),c=mt(t)?t:t.version;if(o.set(s,c),a<e.root.length){const t=e.root[a],r=n+1;pt(t)?t[0]<=r&&r<=t[1]&&(l(r,s),t[1]===r&&a++):t===r&&(l(r,s),a++)}})),{fileInfos:o,roots:s};function l(t,n){const o=c.get(t);o?s.set(la(e.fileNames[o-1],r,i),n):s.set(n,void 0)}}function FV(e,t){return{getState:Dt,saveEmitState:vt,restoreEmitState:vt,getProgram:n,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:Dt,getCurrentDirectory:()=>n().getCurrentDirectory(),close:vt};function n(){return En.checkDefined(e().program)}}function AV(e,t,n,r,i,o){return TV(0,bV(e,t,n,r,i,o))}function IV(e,t,n,r,i,o){return TV(1,bV(e,t,n,r,i,o))}function OV(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=bV(e,t,n,r,i,o);return FV((()=>({program:a,compilerOptions:a.getCompilerOptions()})),s)}function LV(e){return tn(e,"/node_modules/.staging")?nn(e,"/.staging"):te(vo,(t=>e.includes(t)))?void 0:e}function RV(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-zA-Z]:/);if(e[0]!==Fo&&!r&&0===e[1].search(/[a-zA-Z]\$$/)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function MV(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>RV(e,t)+1}function jV(e){return JV(Go(e))}function BV(e,t){if(t.length<t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function JV(e){return MV(Zo(e))}function UV(e){return JV(e)}function qV(e,t,n,r,i,o){const a=Zo(t),s=Zo(e=Mo(e)?sa(e):aa(e,o())),c=RV(a,a.length);if(a.length<=c+1)return;const l=a.indexOf("node_modules");if(-1!==l&&l+1<=c+1)return;const u=a.lastIndexOf("node_modules");return BV(i,a)?a.length>i.length+1?$V(s,a,Math.max(i.length+1,c+1),u):{dir:n,dirPath:r,nonRecursive:!0}:zV(s,a,a.length-1,c,l,i,u)}function zV(e,t,n,r,i,o,a){if(-1!==i)return $V(e,t,i+1,a);let s=!0,c=n;for(let l=0;l<n;l++)if(t[l]!==o[l]){s=!1,c=Math.max(l+1,r+1);break}return $V(e,t,c,a,s)}function $V(e,t,n,r,i){let o;return-1!==r&&r+1>=n&&r+2<t.length&&(fn(t[r+1],"@")?r+3<t.length&&(o=r+3):o=r+2),{dir:ea(e,n),dirPath:ea(t,n),nonRecursive:i,packageDir:void 0!==o?ea(e,o):void 0,packageDirPath:void 0!==o?ea(t,o):void 0}}function VV(e,t,n,r,i,o){const a=Zo(t);if(BV(r,a))return n;const s=zV(Zo(e=Mo(e)?sa(e):aa(e,i())),a,a.length,RV(a,a.length),a.indexOf("node_modules"),r,a.lastIndexOf("node_modules"));return s&&o(s.dirPath)?s.dirPath:void 0}function WV(e,t){const n=aa(e,t());return jo(n)?n:ua(n)}function HV(e){return e.split(Fo).length-(Vo(e)?1:0)}function KV(e){var t;return(null==(t=e.getCompilerHost)?void 0:t.call(e))||e}function GV(e,t,n,r,i){return{nameAndMode:y$,resolve:(o,a)=>function(e,t,n,r,i,o,a){const s=KV(e),c=UM(n,r,i,s,t,o,a);if(!e.getGlobalCache)return c;const l=e.getGlobalCache();if(!(void 0===l||Vs(n)||c.resolvedModule&&yT(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:u}=qj(En.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=lM(c.failedLookupLocations,o),c.affectingLocations=lM(c.affectingLocations,a),c.resolutionDiagnostics=lM(c.resolutionDiagnostics,u),c}return c}(r,i,o,e,n,t,a)}}function XV(e,t,n){let r,i,o;const a=ct(),s=new Set,l=new Set,u=new Map,_=new Map;let d,p,f,m,g,h=!1,y=!1;const v=Nt((()=>e.getCurrentDirectory())),x=e.getCachedDirectoryStructureHost(),S=new Map,k=RM(v(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=MM(v(),e.getCanonicalFileName,e.getCompilationSettings(),k.getPackageJsonInfoCache(),k.optionsToRedirectsKey),w=new Map,D=RM(v(),e.getCanonicalFileName,jM(e.getCompilationSettings()),k.getPackageJsonInfoCache()),N=new Map,E=new Map,P=WV(t,v),F=e.toPath(P),A=Zo(F),I=new Map,O=new Map,L=new Map,R=new Map;return{rootDirForResolution:t,resolvedModuleNames:S,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:u,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:l,directoryWatchesOfFailedLookups:N,fileWatchesOfAffectingLocations:E,packageDirWatchers:O,dirPathToSymlinkPackageRefCount:L,watchFailedLookupLocationsOfExternalModuleResolutions:V,getModuleResolutionCache:()=>k,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){k.isReadonly=void 0,C.isReadonly=void 0,D.isReadonly=void 0,k.getPackageJsonInfoCache().isReadonly=void 0,k.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),D.clearAllExceptPackageJsonInfoCache(),a.forEach(Q),a.clear(),I.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,y=!1,a.forEach(Q),a.clear(),t!==n&&(function(t){w.forEac
6h(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ne(n,e.toPath(D$(e.getCompilationSettings(),v(),r)),M),w.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t,n,r;const i=_f(e)&&null!=(t=null==(r=e.packageJsonLocations)?void 0:r.length)?t:0,o=null!=(n=_.get(e.resolvedPath))?n:c;for(let a=o.length;a<i;a++)G(e.packageJsonLocations[a],!1);if(o.length>i)for(let a=i;a<o.length;a++)E.get(o[a]).files--;i?_.set(e.resolvedPath,e.packageJsonLocations):_.delete(e.resolvedPath)})),_.forEach(((e,n)=>{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach((e=>E.get(e).files--)),_.delete(n))}))),N.forEach(U),E.forEach(q),O.forEach(J),h=!1,k.isReadonly=!0,C.isReadonly=!0,D.isReadonly=!0,k.getPackageJsonInfoCache().isReadonly=!0,I.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return z({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:S,loader:GV(r,i,o,e,k),getResolutionWithResolvedFileName:M,shouldRetryResolution:e=>!e.resolvedModule||!vT(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return z({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:S$(n,r,i,KV(e),C),getResolutionWithResolvedFileName:j,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=KV(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=BM(t,n,r,o,D);const c=e.toPath(n);V(t,a,c,M,!1),w.set(i,a),s&&ne(s,c,M)}else if(eM(r,o)){const e=M(a);ZR(o,(null==e?void 0:e.resolvedFileName)?e.packageId?Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&Ed(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=S.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,k),l=KV(e),u=UM(t,n,e.getCompilationSettings(),l,k);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,k,t,n,u,c),u},removeResolutionsFromProjectReferenceRedirects:function(t){if(!zo(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach((t=>ae(e.toPath(t))))},removeResolutionsOfFile:ae,hasChangedAutomaticTypeDirectiveNames:()=>h,invalidateResolutionOfFile:function(t){ae(t);const n=h;se(u.get(t),xt)&&h&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ue,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){En.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ue();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||y||!!(null==n?void 0:n.has(t))||B(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:B,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void fe();const n=mM(t,{getCurrentDirectory:v});n?Rx(R,new Set(n),{createNewValue:me,onDeleteValue:Cx}):fe()},closeTypeRootsWatch:fe,clear:function(){Ox(N,Bz),Ox(E,Bz),I.clear(),O.clear(),L.clear(),a.clear(),fe(),S.clear(),T.clear(),u.clear(),s.clear(),l.clear(),f=void 0,m=void 0,g=void 0,p=void 0,d=void 0,y=!1,k.clear(),
6C.clear(),k.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),D.clear(),_.clear(),w.clear(),h=!1},onChangesAffectModuleResolution:function(){y=!0,k.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),k.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function M(e){return e.resolvedModule}function j(e){return e.resolvedTypeReferenceDirective}function B(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function J(e,t){0===e.dirPathToWatcher.size&&O.delete(t)}function U(e,t){0===e.refCount&&(N.delete(t),e.watcher.close())}function q(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(E.delete(t),e.watcher.close())}function z({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:u,deferWatchingNonRelativeResolution:_,shouldRetryResolution:d,logChanges:p}){const f=e.toPath(n),m=s.get(f)||s.set(f,FM()).get(f),g=[],h=p&&B(f),v=e.getCurrentProgram(),b=v&&v.getResolvedProjectReferenceToRedirect(n),x=b?!o||o.sourceFile.path!==b.sourceFile.path:!!o,k=FM();for(const C of t){const t=l.nameAndMode.getName(C),c=l.nameAndMode.getMode(C,i,(null==o?void 0:o.commandLine.options)||a);let v=m.get(t,c);if(!k.has(t,c)&&(y||x||!v||v.isInvalidated||h&&!Vs(t)&&d(v))){const n=v;v=l.resolve(t,c),e.onDiscoveredSymlink&&QV(v)&&e.onDiscoveredSymlink(),m.set(t,c,v),v!==n&&(V(t,v,f,u,_),n&&ne(n,f,u)),p&&r&&!T(n,v)&&(r.push(f),p=!1)}else{const r=KV(e);if(eM(a,r)&&!k.has(t,c)){const e=u(v);ZR(r,s===S?(null==e?void 0:e.resolvedFileName)?e.packageId?Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Pa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?Pa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Pa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Pa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&Ed(e.packageId))}}En.assert(void 0!==v&&!v.isInvalidated),k.set(t,c,!0),g.push(v)}return null==c||c.forEach((e=>k.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0))),m.size()!==k.size()&&m.forEach(((e,t,n)=>{k.has(t,n)||(ne(e,f,u),m.delete(t,n))})),g;function T(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=u(e),r=u(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function $(e){return tn(e,"/node_modules/@types")}function V(t,n,r,i,o){var s,c;if(n.refCount)n.refCount++,En.assertIsDefined(n.files);else{n.refCount=1,En.assert(!(null==(c=n.files)?void 0:c.size)),!o||Vs(t)?H(n):a.add(t,n);const r=i(n);if(r&&r.resolvedFileName){const t=e.toPath(r.resolvedFileName);let i=u.get(t);i||u.set(t,i=new Set),i.add(n)}}(null!=(s=n.files)?s:n.files=new Set).add(r)}function W(t,n){const r=qV(t,e.toPath(t),P,F,A,v);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===F?(En.assert(i),En.assert(!o),n=!0):Y(e,t,o,a,i)}return n}function H(e){En.assert(!!e.refCount);const{failedLookupLocations:t,affectingLocations:n,alternateResult:r}=e;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length)&&!r)return;((null==t?void 0:t.length)||r)&&s.add(e);let i=!1;if(t)for(const o of t)i=W(o,i);r&&(i=W(r,i)),i&&Y(P,F,void 0,void 0,!0),K(e,!(null==t?void 0:t.length)&&!r)}function K(e,t){En.assert(!!e.refCount);const{affectingLocations:n}=e;if(null==n?void 0:n.length){t&&l.add(e);for(const e of n)G(e,!0)}}function G(t,n){var r;const i=E.get(t);if(i)return void(n?i.resolutions++:i.files++);let o,a=t,s=!1;e.realpath&&(a=e.realpath(t),t!==a&&(s=!0,o=E.get(a)));const c=n?1:0,l=n?0:1;if(!s||!o){const t={watcher:UV(e.toPath(a))?e.watchAffectingFileLocation(a,((t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(a),n),X(a,k.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):bW,resolutions:s?0:c,files:s?0:l,symlinks:void 0};E.set(a,t),s&&(o=t)}
6if(s){En.assert(!!o);const e={watcher:{close:()=>{var e;const n=E.get(a);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(E.delete(a),n.watcher.close())}},resolutions:c,files:l,symlinks:void 0};E.set(t,e),(null!=(r=o.symlinks)?r:o.symlinks=new Set).add(t)}}function X(t,n){var r;const i=E.get(t);(null==i?void 0:i.resolutions)&&(null!=p?p:p=new Set).add(t),(null==i?void 0:i.files)&&(null!=d?d:d=new Set).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach((e=>X(e,n))),null==n||n.delete(e.toPath(t))}function Q(t,n){const r=e.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?t.forEach((e=>K(e,!0))):t.forEach(H)}function Y(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){var a;En.assert(!o);let s=I.get(i),c=O.get(i);if(void 0===s){const t=e.realpath(r);s=t!==r&&e.toPath(t)!==i,I.set(i,s),c?c.isSymlink!==s&&(c.dirPathToWatcher.forEach((e=>{re(c.isSymlink?i:n,!1),e.watcher=u()})),c.isSymlink=s):O.set(i,c={dirPathToWatcher:new Map,isSymlink:s})}else En.assertIsDefined(c),En.assert(s===c.isSymlink);const l=c.dirPathToWatcher.get(n);function u(){return s?Z(r,i,o):Z(t,n,o)}l?l.refCount++:(c.dirPathToWatcher.set(n,{watcher:u(),refCount:1}),s&&L.set(n,(null!=(a=L.get(n))?a:0)+1))}(t,n,r,i,o):Z(t,n,o)}function Z(e,t,n){let r=N.get(t);return r?(En.assert(!!n==!!r.nonRecursive),r.refCount++):N.set(t,r={watcher:ie(e,t,n),refCount:1,nonRecursive:n}),r}function ee(t,n,r){const i=qV(t,e.toPath(t),P,F,A,v);if(i){const{dirPath:t,packageDirPath:o}=i;if(t===F)n=!0;else if(o&&e.realpath){const e=O.get(o),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount){if(re(e.isSymlink?o:t,r),e.dirPathToWatcher.delete(t),e.isSymlink){const e=L.get(t)-1;0===e?L.delete(t):L.set(t,e)}r&&J(e,o)}}else re(t,r)}return n}function ne(t,n,r,i){if(En.checkDefined(t.files).delete(n),t.refCount--,t.refCount)return;const o=r(t);if(o&&o.resolvedFileName){const n=e.toPath(o.resolvedFileName),r=u.get(n);(null==r?void 0:r.delete(t))&&!r.size&&u.delete(n)}const{failedLookupLocations:a,affectingLocations:c,alternateResult:_}=t;if(s.delete(t)){let e=!1;if(a)for(const t of a)e=ee(t,e,i);_&&(e=ee(_,e,i)),e&&re(F,i)}else(null==c?void 0:c.length)&&l.delete(t);if(c)for(const e of c){const t=E.get(e);t.resolutions--,i&&q(t,e)}}function re(e,t){const n=N.get(e);n.refCount--,t&&U(n,e)}function ie(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ce(r,n===r)}),r?0:1)}function oe(e,t,n,r){const i=e.get(t);i&&(i.forEach((e=>ne(e,t,n,r))),e.delete(t))}function ae(e,t){oe(S,e,M,t),oe(T,e,j,t)}function se(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of En.checkDefined(e.files))(null!=i?i:i=new Set).add(t),h=h||tn(t,w$)}})),n}function ce(t,n){if(n)(g||(g=new Set)).add(t);else{const n=LV(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Go(t);if($(t)||Na(t)||$(r)||Na(r))(f||(f=new Set)).add(t),(m||(m=new Set)).add(t);else{if(Lz(e.getCurrentProgram(),t))return!1;if(zo(t,".map"))return!1;(f||(f=new Set)).add(t);const n=tj(t,!0);n&&(m||(m=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function le(){const e=k.getPackageJsonInfoCache().getInternalMap();e&&(f||m||g)&&e.forEach(((t,n)=>de(n)?e.delete(n):void 0))}function ue(){var t;if(y)return d=void 0,le(),(f||m||g||p)&&se(w,_e),f=void 0,m=void 0,g=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{te(e.packageJsonLocations,(e=>d.has(e)))&&((null!=i?i:i=new Set).add(e.path),n=!0)})),d=void 0),f||m||g||p?(n=se(s,_e)||n,le(),f=void 0,m=void 0,g=void 0,n=se(l,pe)||n,p=void 0,n):n}function _e(t){var n;return!!pe(t)||!!(f||m||g)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>de(e.toPath(t)))))||!!t.alternateResult&&de(e.toPath(t.alternateResult)))}function de(e){return(null==f?void 0:f.has(e))||b((null==m?void 0:m.keys())||[],(t=>!!fn(e,t)||void 0))||b((null==g?void 0:g.keys())||[],(t=>!(!(e.length>t.length&&fn(e,t))||!jo(t)&&e[t.length]!==Fo)||void 0))}function pe(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some((e=>p.has(e))))}function fe(){Ox(R,Cx)}function me(t){return function(t){return!!e.getCompilationSettings().typeRoots||jV(e.toPath(t))}
6(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),h=!0,e.onChangedAutomaticTypeDirectiveNames();const i=VV(t,e.toPath(t),F,A,v,(e=>N.has(e)||L.has(e)));i&&ce(r,i===r)}),1):bW}}function QV(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var YV=Eo?{getCurrentDirectory:()=>Eo.getCurrentDirectory(),getNewLine:()=>Eo.newLine,getCanonicalFileName:un(Eo.useCaseSensitiveFileNames)}:void 0;function ZV(e,t){const n=e===Eo&&YV?YV:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:un(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(Xz(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(c$(r,n)+n.getNewLine()),r[0]=void 0}}function eW(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!F(tW,t.code)||(e.clearScreen(),0))}var tW=[Pa.Starting_compilation_in_watch_mode.code,Pa.File_change_detected_Starting_incremental_compilation.code];function nW(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function rW(e,t){return t?(t,n,r)=>{eW(e,t,r);let i=`[${o$(nW(e),"�[90m")}] `;i+=`${l$(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";eW(e,t,r)||(i+=n),i+=`${nW(e)} - `,i+=`${l$(t.messageText,e.newLine)}${function(e,t){return F(tW,e.code)?t+t:t}(t,n)}`,e.write(i)}}function iW(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>PW(i,o,e);const s=yL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function oW(e){return O(e,(e=>1===e.category))}function aW(e){return L(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=w(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=ss(n.file,n.start);return{fileName:t,line:e+1}}}))}function sW(e){return 1===e?Pa.Found_1_error_Watching_for_file_changes:Pa.Found_0_errors_Watching_for_file_changes}function cW(e,t){const n=o$(":"+e.line,"�[90m");return Bo(e.fileName)&&Bo(t)?ka(t,e.fileName,!1)+n:e.fileName+n}function lW(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&cW(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[Pa.Found_1_error_in_0,a]:[Pa.Found_1_error]:0===o.length?[Pa.Found_0_errors,e]:1===o.length?[Pa.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[Pa.Found_0_errors_in_1_files,e,o.length];const c=xS(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,O(e,(e=>e.fileName===t.fileName))])),o=i.reduce(((e,t)=>Math.max(e,t[1]||0)),0),a=Pa.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let u="";return u+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=i<c?" ".repeat(c-i):"",a=cW(n,t.getCurrentDirectory());u+=`${o}${r}  ${a}\n`})),u}(i,r):"";return`${n}${l$(c.messageText,n)}${n}${n}${l}`}function uW(e){return!!e.getState}function _W(e,t){const n=e.getCompilerOptions();n.explainFiles?dW(uW(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&d(e.getSourceFiles(),(e=>{t(e.fileName)}))}function dW(e,t){var n,r;const i=e.getFileIncludeReasons(),o=t=>Ta(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${hW(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(`  ${gW(e,n,o).messageText}`))),null==(r=pW(a,o))||r.forEach((e=>t(`  ${e.messageText}`)))}function pW(e,t){var n;let r;if(e.path!==e.resolvedPath&&(null!=r?r:r=[]).push(kS(void 0,Pa.File_is_output_of_project_reference_source_0,hW(e.originalFileName,t))),e.redirectInfo&&(null!=r?r:r=[]).push(kS(void 0,Pa.File_redirects_to_file_0,hW(e.redirectInfo.redirectTarget,t))),_f(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(null!=r?r:r=[]).push(kS(void 0,Pa.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,hW(Le(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(null!=r?r:r=[]).push(kS(void 0,e.packageJsonScope.contents.packageJsonContent.type?Pa.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Pa.File_is_CommonJS_module_because_0_does_not_have_field_type,hW(Le(e.packageJsonLocations),t))):(null==(n=e.packageJsonLocations)?void 0:n.length)&&(null!=r?r:r=[]).push(kS(void 0,Pa.File_is_CommonJS_module_because_package_json_was_not_found))}return r}function fW(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Go(aa(r.fileName,e.getCurrentDirectory())),a=N(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(aa(t,o))===i));return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function mW(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=zo(t,".json"),a=Go(aa(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=N(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!tn(e,".json"))return!1;const n=Ik(e,a,"files");return!!n&&Mk(`(${n})$`,s).test(t)}));return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function gW(e,t,n){var r,i;const o=e.getCompilerOptions();if(F$(t)){const r=I$(e,t),i=A$(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(En.assert(A$(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=A$(r)?r.packageId?Pa.Imported_via_0_from_file_1_with_packageId_2:Pa.Imported_via_0_from_file_1:r.text===ad?r.packageId?Pa.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Pa.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?Pa.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Pa.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:En.assert(!r.packageId),o=Pa.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?Pa.Type_library_referenced_via_0_from_file_1_with_packageId_2:Pa.Type_library_referenced_via_0_from_file_1;break;case 7:En.assert(!r.packageId),o=Pa.Library_referenced_via_0_from_file_1;break;default:En.assertNever(t)}return kS(void 0,o,i,hW(r.file,n),r.packageId&&Ed(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return kS(void 0,Pa.Root_file_specified_for_compilation);const a=aa(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(fW(e,a))return kS(void 0,Pa.Part_of_files_list_in_tsconfig_json);const s=mW(e,a);return mt(s)?kS(void 0,Pa.Matched_by_include_pattern_0_in_1,s,hW(
6o.configFile,n)):kS(void 0,s?Pa.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Pa.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=En.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return kS(void 0,o.outFile?c?Pa.Output_from_referenced_project_0_included_because_1_specified:Pa.Source_from_referenced_project_0_included_because_1_specified:c?Pa.Output_from_referenced_project_0_included_because_module_is_specified_as_none:Pa.Source_from_referenced_project_0_included_because_module_is_specified_as_none,hW(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return kS(void 0,...o.types?t.packageId?[Pa.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Ed(t.packageId)]:[Pa.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[Pa.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Ed(t.packageId)]:[Pa.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return kS(void 0,Pa.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=sk(BS(o));return kS(void 0,...e?[Pa.Default_library_for_target_0,e]:[Pa.Default_library])}default:En.assertNever(t)}}function hW(e,t){const n=mt(e)?e:e.fileName;return t?t(n):n}function yW(e,t,n,r,i,o,a,s){const l=!!e.getCompilerOptions().listFilesOnly,u=e.getConfigFileParsingDiagnostics().slice(),_=u.length;he(u,e.getSyntacticDiagnostics(void 0,o)),u.length===_&&(he(u,e.getOptionsDiagnostics(o)),l||(he(u,e.getGlobalDiagnostics(o)),u.length===_&&he(u,e.getSemanticDiagnostics(void 0,o))));const p=l?{emitSkipped:!0,diagnostics:c}:e.emit(void 0,i,o,a,s),{emittedFiles:f,diagnostics:m}=p;he(u,m);const g=Ws(u);if(g.forEach(t),n){const t=e.getCurrentDirectory();d(f,(e=>{const r=aa(e,t);n(`TSFILE: ${r}`)})),_W(e,n)}return r&&r(oW(g),aW(g)),{emitResult:p,diagnostics:g}}function vW(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=yW(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var bW={close:vt},xW=()=>bW;function SW(e=Eo,t){return{onWatchStatusChange:t||rW(e),watchFile:st(e,e.watchFile)||xW,watchDirectory:st(e,e.watchDirectory)||xW,setTimeout:st(e,e.setTimeout)||vt,clearTimeout:st(e,e.clearTimeout)||vt}}var kW={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function TW(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):vt,i=Mz(e,n,r);return i.writeLog=r,i}function CW(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:$z(((t,n)=>n?e.readFile(t,n):i.readFile(t)),void 0),getDefaultLibLocation:st(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:Vz(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:Nt((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:un(r),getNewLine:()=>tx(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:st(e,e.trace),directoryExists:st(n,n.directoryExists),getDirectories:st(n,n.getDirectories),realpath:st(e,e.realpath),getEnvironmentVariable:st(e,e.getEnvironmentVariable)||(()=>""),createHash:st(e,e.createHash),readDirectory:st(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function wW(e,t){if(t.match(kJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!us(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(TJ)){t=t.substring(0,n);break}if(!o.match(CJ))break;e=n}}return(e.createHash||no)(t)}function DW(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=wW(e,r.text)),r}}function NW(e,t){const n=Nt((()=>Go(sa(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Nt((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>ra(n(),Hs(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:st(e,e.realpath),getEnvironmentVariable:st(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:st(e,e.createHash),createProgram:t||IV,storeSignatureInfo:e.storeSignatureInfo,now:st(e,e.now)}}function EW(e=Eo,t,n,r){const i=t=>e.write(t+e.newLine),o=NW(e,t);return at(o,SW(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=tx(t);yW(e,n,i,(e=>o.onWatchStatusChange(xS(sW(e),e),r,t,e)))},o}function PW(e,t,n){t(n),e.exit(1)}function FW({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||ZV(i),l=EW(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>PW(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}
6function AW({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=EW(i,o,a||ZV(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function IW(e){const t=e.system||Eo,n=e.host||(e.host=LW(e.options,t)),r=RW(e),i=vW(r,e.reportDiagnostic||ZV(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(lW(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function OW(e,t){const n=Gq(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=hz(n,e)}return r&&r.version===a&&r.program?EV(r,n,t):void 0}function LW(e,t=Eo){const n=Wz(e,void 0,t);return n.createHash=st(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,DW(n),Hz(n,(e=>la(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function RW({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||IV)(e,t,i=i||LW(t),OW(t,i),n,r)}function MW(e,t,n,r,i,o,a,s){return pt(e)?AW({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):FW({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function jW(e){let t,n,r,i,o,a,s,c,l=e.extendedConfigCache,u=!1;const _=new Map;let d,p=!1;const f=e.useCaseSensitiveFileNames(),h=e.getCurrentDirectory(),{configFileName:y,optionsToExtend:v={},watchOptionsToExtend:b,extraFileExtensions:x,createProgram:S}=e;let k,T,{rootFiles:C,options:w,watchOptions:D,projectReferences:N}=e,E=!1,P=!1;const F=void 0===y?void 0:Dz(e,h,f),A=F||e,I=z$(e,A);let O=X();y&&e.configFileParsingResult&&(le(e.configFileParsingResult),O=X()),te(Pa.Starting_compilation_in_watch_mode),y&&!e.configFileParsingResult&&(O=tx(v),En.assert(!C),ce(),O=X()),En.assert(w),En.assert(C);const{watchFile:L,watchDirectory:R,writeLog:M}
6=TW(e,w),j=un(f);let B;M(`Current directory: ${h} CaseSensitiveFileNames: ${f}`),y&&(B=L(y,(function(){En.assert(!!y),n=2,oe()}),2e3,D,kW.ConfigFile));const J=CW(e,(()=>w),A);DW(J);const U=J.getSourceFile;J.getSourceFile=(e,...t)=>Z(e,Q(e),...t),J.getSourceFileByPath=Z,J.getNewLine=()=>O,J.fileExists=function(e){const t=Q(e);return!Y(_.get(t))&&A.fileExists(e)},J.onReleaseOldSourceFile=function(e,t,n){const r=_.get(e.resolvedPath);void 0!==r&&(Y(r)?(d||(d=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),_.delete(e.resolvedPath),n||q.removeResolutionsOfFile(e.path)))},J.onReleaseParsedCommandLine=function(e){var t;const n=Q(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&Ox(r.watchedDirectories,Bz),null==(t=r.watcher)||t.close(),Pz(n,c))},J.toPath=Q,J.getCompilationSettings=()=>w,J.useSourceOfProjectReferenceRedirect=st(e,e.useSourceOfProjectReferenceRedirect),J.watchDirectoryOfFailedLookupLocation=(e,t,n)=>R(e,t,n,D,kW.FailedLookupLocations),J.watchAffectingFileLocation=(e,t)=>L(e,t,2e3,D,kW.AffectingFileLocation),J.watchTypeRootsDirectory=(e,t,n)=>R(e,t,n,D,kW.TypeRoots),J.getCachedDirectoryStructureHost=()=>F,J.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return q.invalidateResolutionsOfFailedLookupLocations();const t=re();M("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(ie,250,"timerToInvalidateFailedLookupResolutions")},J.onInvalidatedResolution=oe,J.onChangedAutomaticTypeDirectiveNames=oe,J.fileIsOpen=bt,J.getCurrentProgram=K,J.writeLog=M,J.getParsedCommandLine=ue;const q=XV(J,y?Go(aa(y,h)):h,!1);J.resolveModuleNameLiterals=st(e,e.resolveModuleNameLiterals),J.resolveModuleNames=st(e,e.resolveModuleNames),J.resolveModuleNameLiterals||J.resolveModuleNames||(J.resolveModuleNameLiterals=q.resolveModuleNameLiterals.bind(q)),J.resolveTypeReferenceDirectiveReferences=st(e,e.resolveTypeReferenceDirectiveReferences),J.resolveTypeReferenceDirectives=st(e,e.resolveTypeReferenceDirectives),J.resolveTypeReferenceDirectiveReferences||J.resolveTypeReferenceDirectives||(J.resolveTypeReferenceDirectiveReferences=q.resolveTypeReferenceDirectiveReferences.bind(q)),J.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):q.resolveLibrary.bind(q),J.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?st(e,e.getModuleResolutionCache):()=>q.getModuleResolutionCache();const z=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?st(e,e.hasInvalidatedResolutions)||xt:bt,$=e.resolveLibrary?st(e,e.hasInvalidatedLibResolutions)||xt:bt;return t=OW(w,J),G(),ge(),y&&ye(Q(y),w,D,kW.ExtendedConfigFile),y?{getCurrentProgram:H,getProgram:se,close:V,getResolutionCache:W}:{getCurrentProgram:H,getProgram:se,updateRootFileNames:function(e){En.assert(!y,"Cannot update root file names with config file watch mode"),C=e,oe()},close:V,getResolutionCache:W};function V(){re(),q.clear(),Ox(_,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),B&&(B.close(),B=void 0),null==l||l.clear(),l=void 0,c&&(Ox(c,Bz),c=void 0),i&&(Ox(i,Bz),i=void 0),r&&(Ox(r,Cx),r=void 0),s&&(Ox(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&Ox(e.watchedDirectories,Bz),e.watchedDirectories=void 0})),s=void 0),t=void 0}function W(){return q}function H(){return t}function K(){return t&&t.getProgramOrUndefined()}function G(){M("Synchronizing program"),En.assert(w),En.assert(C),re();const n=H();p&&(O=X(),n&&md(n.getCompilerOptions(),w)&&q.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=q.createHasInvalidatedResolutions(z,$),{originalReadFile:a,originalFileExists:s,originalDirectoryExists:c,originalCreateDirectory:l,originalWriteFile:f,readFileWithCache:m}=Hz(J,Q);return O$(K(),C,w,(e=>function(e,t){const n=_.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?wW(J,r):void 0}(e,m)),(e=>J.fileExists(e)),i,o,ne,ue,N)?P&&(u&&te(Pa.File_change_detected_Starting_incremental_compilation),t=S(void 0,void 0,J,t,T,N),P=!1):(u&&te(Pa.File_change_detected_Starting_incremental_compilation),function(e,n){M("
6CreatingProgramWith::"),M(`  roots: ${JSON.stringify(C)}`),M(`  options: ${JSON.stringify(w)}`),N&&M(`  projectReferences: ${JSON.stringify(N)}`);const i=p||!K();p=!1,P=!1,q.startCachingPerDirectoryResolution(),J.hasInvalidatedResolutions=e,J.hasInvalidatedLibResolutions=n,J.hasChangedAutomaticTypeDirectiveNames=ne;const o=K();if(t=S(C,w,J,t,T,N),q.finishCachingPerDirectoryResolution(t.getProgram(),o),Az(t.getProgram(),r||(r=new Map),fe),i&&q.updateTypeRootsWatch(),d){for(const e of d)r.has(e)||_.delete(e);d=void 0}}(i,o)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),J.readFile=a,J.fileExists=s,J.directoryExists=c,J.createDirectory=l,J.writeFile=f,t}function X(){return tx(w||v)}function Q(e){return la(e,h,j)}function Y(e){return"boolean"==typeof e}function Z(e,t,n,r,i){const o=_.get(t);if(Y(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=U(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=_e(t,e,de,250,D,kW.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),_.set(t,!1));else if(i){const n=_e(t,e,de,250,D,kW.SourceFile);_.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else _.set(t,!1);return i}return o.sourceFile}function ee(e){const t=_.get(e);void 0!==t&&(Y(t)?_.set(e,{version:!1}):t.version=!1)}function te(t){e.onWatchStatusChange&&e.onWatchStatusChange(xS(t),O,w||v)}function ne(){return q.hasChangedAutomaticTypeDirectiveNames()}function re(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function ie(){a=void 0,q.invalidateResolutionsOfFailedLookupLocations()&&oe()}function oe(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),M("Scheduling update"),o=e.setTimeout(ae,250,"timerToUpdateProgram"))}function ae(){o=void 0,u=!0,se()}function se(){var e,t,r,i;switch(n){case 1:null==(e=lr)||e.logStartUpdateProgram("PartialConfigReload"),M("Reloading new file names and options"),En.assert(w),En.assert(y),n=0,C=jR(w.configFile.configFileSpecs,aa(Go(y),h),w,I,x),vR(C,aa(y,h),w.configFile.configFileSpecs,T,E)&&(P=!0),G();break;case 2:null==(t=lr)||t.logStartUpdateProgram("FullConfigReload"),En.assert(y),M(`Reloading config file: ${y}`),n=0,F&&F.clearCache(),ce(),p=!0,G(),ge(),ye(Q(y),w,D,kW.ExtendedConfigFile);break;default:null==(r=lr)||r.logStartUpdateProgram("SynchronizeProgram"),G()}return null==(i=lr)||i.logStopUpdateProgram("Done"),H()}function ce(){En.assert(y),le(yL(y,v,I,l||(l=new Map),b,x))}function le(e){C=e.fileNames,w=e.options,D=e.watchOptions,N=e.projectReferences,k=e.wildcardDirectories,T=L$(e).slice(),E=yR(e.raw),P=!0}function ue(t){const n=Q(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){M("Reloading new file names and options"),En.assert(w);const e=jR(r.parsedCommandLine.options.configFile.configFileSpecs,aa(Go(t),h),w,I);return r.parsedCommandLine=g(m({},r.parsedCommandLine),{fileNames:e}),r.updateLevel=void 0,r.parsedCommandLine}}M(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=I.onUnRecoverableConfigFileDiagnostic;I.onUnRecoverableConfigFileDiagnostic=vt;const n=yL(e,void 0,I,l||(l=new Map),b);return I.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=L(e,((n,r)=>{pe(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),q.removeResolutionsFromProjectReferenceRedirects(t),oe()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||D,kW.ConfigFileOfReferencedProject)),Iz(n.watchedDirectories||
6(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,((r,i)=>{var o;return R(r,(n=>{const i=Q(n);F&&F.addOrDeleteFileOrDirectory(n,i),ee(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(Oz({watchedDirPath:Q(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:h,useCaseSensitiveFileNames:f,writeLog:M,toPath:Q})||2!==o.updateLevel&&(o.updateLevel=1,oe()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||D,kW.WildcardDirectoryOfReferencedProject)})),ye(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||D,kW.ExtendedConfigOfReferencedProject)}(t,n,r),i}function _e(e,t,n,r,i,o){return L(t,((t,r)=>n(t,r,e)),r,i,o)}function de(e,t,n){pe(e,n,t),2===t&&_.has(n)&&q.invalidateResolutionOfFile(n),ee(n),oe()}function pe(e,t,n){F&&F.addOrDeleteFile(e,t,n)}function fe(e,t){return(null==s?void 0:s.has(e))?bW:_e(e,t,me,500,D,kW.MissingFile)}function me(e,t,n){pe(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),ee(n),oe())}function ge(){Iz(i||(i=new Map),k,he)}function he(e,t){return R(e,(t=>{En.assert(y),En.assert(w);const r=Q(t);F&&F.addOrDeleteFileOrDirectory(t,r),ee(r),Oz({watchedDirPath:Q(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:y,extraFileExtensions:x,options:w,program:H()||C,currentDirectory:h,useCaseSensitiveFileNames:f,writeLog:M,toPath:Q})||2!==n&&(n=1,oe())}),t,D,kW.WildcardDirectory)}function ye(e,t,r,i){Ez(e,t,c||(c=new Map),((e,t)=>L(e,((r,i)=>{var o;pe(e,t,i),l&&Fz(l,t,Q);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(y&&Q(y)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),q.removeResolutionsFromProjectReferenceRedirects(e)}oe()}))}),2e3,r,i)),Q)}}var BW=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=7]="OutOfDateBuildInfo",e[e.OutOfDateOptions=8]="OutOfDateOptions",e[e.OutOfDateRoots=9]="OutOfDateRoots",e[e.UpstreamOutOfDate=10]="UpstreamOutOfDate",e[e.UpstreamBlocked=11]="UpstreamBlocked",e[e.ComputingUpstream=12]="ComputingUpstream",e[e.TsVersionOutputOfDate=13]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=14]="UpToDateWithInputFileText",e[e.ContainerOnly=15]="ContainerOnly",e[e.ForceBuild=16]="ForceBuild",e))(BW||{});function JW(e){return zo(e,".json")?e:ra(e,"tsconfig.json")}var UW=new Date(-864e13),qW=new Date(864e13);function zW(e,t){return function(e,t,n){const r=e.get(t);let i;return r||(i=n(),e.set(t,i)),r||i}(e,t,(()=>new Map))}function $W(e){return e.now?e.now():new Date}function VW(e){return!!e&&!!e.buildOrder}function WW(e){return VW(e)?e.buildOrder:e}function HW(e,t){return n=>{let r=t?`[${o$(nW(e),"�[90m")}] `:`${nW(e)} - `;r+=`${l$(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function KW(e,t,n,r){const i=NW(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):St,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):vt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):vt,i.reportDiagnostic=n||ZV(e),i.reportSolutionBuilderStatus=r||HW(e),i.now=st(e,e.now),i}function GW(e=Eo,t,n,r,i){const o=KW(e,t,n,r);return o.reportErrorSummary=i,o}function XW(e=Eo,t,n,r,i){const o=KW(e,t,n,r);return at(o,SW(e,i)),o}function QW(e,t,n){return KH(!1,e,t,n)}function YW(e,t,n,r){return KH(!0,e,t,n,r)}function ZW(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return IO.forEach((n=>{$e(e,n.name)&&(t[n.name]=e[n.name])})),t}(r),c=CW(o,(()=>m.projectCompilerOptions));let l,u,_;DW(c),c.getParsedCommandLine=e=>iH(m,e,tH(m,e)),c.resolveModuleNameLiterals=st(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=st(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=st(o,o.resolveLibrary),c.resolveModuleNames=st(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=st(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=st(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=RM(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>k$(e,t,n,r,i,o,l,v$),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(u=MM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>k$(e,t,n,r,i,o,u,S$)),c.resolveLibrary||(_=RM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>BM(e,t,n,o,_)),c.getBuildInfo=(e,t)=>EH(m,e,tH(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=TW(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:z$(o),write:st(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:u,libraryResolutionCache:_,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}function eH(e,t){return la(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function tH(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=eH(e,t);return n.set(t,i),i}function nH(e){return!!e.options}function rH(e,t){const n=e.configFileCache.get(t);return n&&nH(n)?n:void 0}
6function iH(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return nH(i)?i:void 0;let o;xr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:u}=e;let _;return u.getParsedCommandLine?(_=u.getParsedCommandLine(t),_||(o=xS(Pa.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,_=yL(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=vt),r.set(n,_||o),xr("SolutionBuilder::afterConfigFileParsing"),Sr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),_}function oH(e,t){return JW(ia(e.compilerHost.getCurrentDirectory(),t))}function aH(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const c of t)s(c);return a?{buildOrder:o||c,circularDiagnostics:a}:o||c;function s(t,c){const l=tH(e,t);if(r.has(l))return;if(n.has(l))return void(c||(a||(a=[])).push(xS(Pa.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const u=iH(e,t,l);if(u&&u.projectReferences)for(const n of u.projectReferences)s(oH(e,n.path),c||n.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function sH(e){return e.buildOrder||function(e){const t=aH(e,e.rootNames.map((t=>oH(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set(WW(t).map((t=>tH(e,t)))),r={onDeleteValue:vt};return Lx(e.configFileCache,n,r),Lx(e.projectStatus,n,r),Lx(e.builderPrograms,n,r),Lx(e.diagnostics,n,r),Lx(e.projectPendingBuild,n,r),Lx(e.projectErrorsReported,n,r),Lx(e.buildInfoCache,n,r),Lx(e.outputTimeStamps,n,r),Lx(e.lastCachedPackageJsonLookups,n,r),e.watch&&(Lx(e.allWatchedConfigFiles,n,{onDeleteValue:Cx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),Lx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(Bz)}),Lx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(Cx)}),Lx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(Cx)})),e.buildOrder=t}(e)}function cH(e,t,n){const r=t&&oH(e,t),i=sH(e);if(VW(i))return i;if(r){const t=tH(e,r);if(-1===N(i,(n=>tH(e,n)===t)))return}const o=r?aH(e,[r]):i;return En.assert(!VW(o)),En.assert(!n||void 0!==r),En.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function lH(e){e.cache&&uH(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:u,readFileWithCache:_}=Hz(n,(t=>eH(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=_,t.getSourceFile=u,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function uH(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function _H(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function dH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||r<n)&&e.set(t,n)}function pH(e,t){e.allProjectBuildPending&&(e.allProjectBuildPending=!1,e.options.watch&&QH(e,Pa.Starting_compilation_in_watch_mode),lH(e),WW(sH(e)).forEach((t=>e.projectPendingBuild.set(tH(e,t),0))),t&&t.throwIfCancellationRequested())}var fH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(fH||{});function mH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function gH(e,t,n,r,i,o){let a,s,l=0;return{kind:0,project:t,projectPath:n,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(kt),getProgram:()=>u((e=>e.getProgramOrUndefined())),getSourceFile:e=>u((t=>t.getSourceFile(e))),getSourceFiles:()=>_((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>_((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>_((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>_((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>_((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>_((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>_((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>
6u((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(n,r,i,o,a)=>n||o?u((s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))})):(y(2,i),4===l?h(r,i):3===l?g(r,i,a):void 0),done:function(t,r,i){return y(6,t,r,i),xr("SolutionBuilder::Projects built"),mH(e,n)}};function u(e){return y(0),a&&e(a)}function _(e){return u(e)||c}function d(){var r,o,c;if(En.assert(void 0===a),e.options.dry)return XH(e,Pa.A_non_dry_build_would_build_project_0,t),s=1,void(l=5);if(e.options.verbose&&XH(e,Pa.Building_project_0,t),0===i.fileNames.length)return ZH(e,n,L$(i)),s=0,void(l=5);const{host:u,compilerHost:_}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),a=u.createProgram(i.fileNames,i.options,_,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(e.force)return;const o=t.get(r);return o||OW(i.options,n)}(e,n,i),L$(i),i.projectReferences),e.watch){const t=null==(c=e.moduleResolutionCache)?void 0:c.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Xe(t.values(),(t=>e.host.realpath&&(TM(t)||t.directoryExists)?e.host.realpath(ra(t.packageDirectory,"package.json")):ra(t.packageDirectory,"package.json"))))),e.builderPrograms.set(n,a)}l++}function p(t,r,i){t.length?({buildResult:s,step:l}=SH(e,n,a,0,t,r,i)):l++}function f(e){En.assertIsDefined(a),p([...a.getConfigFileParsingDiagnostics(),...a.getOptionsDiagnostics(e),...a.getGlobalDiagnostics(e),...a.getSyntacticDiagnostics(void 0,e)],8,"Syntactic")}function m(e){p(En.checkDefined(a).getSemanticDiagnostics(void 0,e),16,"Semantic")}function g(r,o,c){var u,_,d;En.assertIsDefined(a),En.assert(3===l);const p=a.saveEmitState();let f;const m=[],{emitResult:g}=yW(a,(e=>(f||(f=[])).push(e)),void 0,void 0,((e,t,n,r,i,o)=>m.push({name:e,text:t,writeByteOrderMark:n,data:o})),o,!1,c||(null==(_=(u=e.host).getCustomTransformers)?void 0:_.call(u,t)));if(f)return a.restoreEmitState(p),({buildResult:s,step:l}=SH(e,n,a,0,f,32,"Declaration file")),{emitSkipped:!0,diagnostics:g.diagnostics};const{host:h,compilerHost:y}=e,v=(null==(d=a.hasChangedEmitSignature)?void 0:d.call(a))?0:2,b=Fy(),x=new Map,S=a.getCompilerOptions(),k=QS(S);let T,C;return m.forEach((({name:t,text:i,writeByteOrderMark:o,data:a})=>{const s=eH(e,t);x.set(eH(e,t),t),(null==a?void 0:a.buildInfo)&&DH(e,a.buildInfo,n,S,v);const c=(null==a?void 0:a.differsOnlyInMap)?so(e.host,t):void 0;vv(r?{writeFile:r}:y,b,t,i,o),(null==a?void 0:a.differsOnlyInMap)?e.host.setModifiedTime(t,c):!k&&e.watch&&(T||(T=wH(e,n))).set(s,C||(C=$W(e.host)))})),function(t,r,o,c){const u=t.getDiagnostics();if(u.length)return({buildResult:s,step:l}=SH(e,n,a,0,u,64,"Emit")),u;e.write&&r.forEach((t=>bH(e,i,t))),IH(e,i,n,Pa.Updating_unchanged_output_timestamps_of_project_0,r),e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:o}),xH(e,a),l=5,s=c}(b,x,m.length?m[0].name:dz(i,!h.useCaseSensitiveFileNames()),v),g}function h(t,r){En.assertIsDefined(a),En.assert(4===l);const o=a.emitBuildInfo(((r,i,o,s,c,l)=>{(null==l?void 0:l.buildInfo)&&DH(e,l.buildInfo,n,a.getCompilerOptions(),2),t?t(r,i,o,s,c,l):e.compilerHost.writeFile(r,i,o,s,c,l)}),r);return o.diagnostics.length&&(YH(e,o.diagnostics),e.diagnostics.set(n,[...e.diagnostics.get(n),...o.diagnostics]),s&=64),o.emittedFiles&&e.write&&o.emittedFiles.forEach((t=>bH(e,i,t))),xH(e,a),l=5,o}function y(a,c,u,_){for(;l<=a&&l<6;){const a=l;switch(l){case 0:d();break;case 1:f(c);break;case 2:m(c);break;case 3:g(u,c,_);break;case 4:h(u,c);break;case 5:RH(e,t,n,r,i,o,En.checkDefined(s)),l++}En.assert(l>a)}}}function hH(e,t,n){if(!e.projectPendingBuild.size)return;if(VW(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;o<t.length;o++){const a=t[o],s=tH(e,a),c=e.projectPendingBuild.get(s);if(void 0===c)continue;n&&(n=!1,nK(e,t));const l=iH(e,a,s);if(!l){eK(e,s),i.delete(s);continue}2===c?(zH(e,a,s,l),$H(e,s,l),VH(e,a,s,l),WH(e,a,s,l),HH(e,a,s,l)):1===c&&(l.fileNames=jR(l.options.configFile.configFileSpecs,Go(a),l.options,e.parseConfigFileHost),vR(l.fileNames,a,l.options.configFile.configFileSpecs,l.errors,yR(l.raw)),WH(e,a,s,l),HH(e,a,s,l));const u=AH(e,l,s);if(!r.force){if(1===u.type){rK(e,a,u),ZH(e,s,L$(l)),i.delete(s),r.dry&&XH(e,Pa.Project_0_is_up_to_date,a);continue}if(2===u.type||14===u.type)return ZH(e,s,L$(l)),{kind:1,status:u,project:a,projectPath:s,projectIndex:o,config:l}}if(11!==u.type){if(15!==u.type)return{kind:0,status:u,project:a,projectPath:s,projectIndex:o,config:l};rK(e,a,u),ZH(e,s,L$(l)),i.delete(s)}else rK(e,a,u),ZH(e,s,L$(l)),i.delete(s),r.verbose&&XH(e,u.upstreamProjectBlocked?Pa.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Pa.Skipping_build_of_project_0_because_its_dependency_1_has_errors,a,u.upstreamProjectName)}}
6function yH(e,t,n){return rK(e,t.project,t.status),1!==t.kind?gH(e,t.project,t.projectPath,t.projectIndex,t.config,n):function(e,t,n,r,i){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{LH(e,r,n),o=!1},done:()=>(o&&LH(e,r,n),xr("SolutionBuilder::Timestamps only updates"),mH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function vH(e,t,n){const r=hH(e,t,n);return r?yH(e,r,t):r}function bH({write:e},t,n){e&&t.options.listEmittedFiles&&e(`TSFILE: ${n}`)}function xH(e,t){t&&(e.write&&_W(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}function SH(e,t,n,r,i,o,a){const s=n&&!n.getCompilerOptions().outFile;return ZH(e,t,i),e.projectStatus.set(t,{type:0,reason:`${a} errors`}),s?{buildResult:o,step:4}:(xH(e,n),{buildResult:o,step:5})}function kH(e){return!!e.watcher}function TH(e,t){const n=eH(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!kH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=so(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function CH(e,t,n,r,i,o,a){const s=eH(e,t),c=e.filesWatched.get(s);if(c&&kH(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=En.checkDefined(e.filesWatched.get(s));En.assert(kH(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=En.checkDefined(e.filesWatched.get(s));En.assert(kH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),Bz(t)):ln(t.callbacks,n)}}}function wH(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function DH(e,t,n,r,i){const o=Gq(r),a=NH(e,o,n),s=$W(e.host);a?(a.buildInfo=t,a.modifiedTime=s,2&i||(a.latestChangedDtsTime=s)):e.buildInfoCache.set(n,{path:eH(e,o),buildInfo:t,modifiedTime:s,latestChangedDtsTime:2&i?void 0:s})}function NH(e,t,n){const r=eH(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function EH(e,t,n,r){const i=eH(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?hz(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||ao}),s}function PH(e,t,n,r){if(n<TH(e,t))return{type:5,outOfDateOutputFileName:r,newerInputFileName:t}}function FH(e,t,n){return e.buildInfoCache.get(n).path===t.path}function AH(e,t,n){if(void 0===t)return{type:0,reason:"File deleted mid-build"};const r=e.projectStatus.get(n);if(void 0!==r)return r;xr("SolutionBuilder::beforeUpToDateCheck");const i=function(e,t,n){var r,i,o,s;if(!t.fileNames.length&&!yR(t.raw))return{type:15};let l;const u=!!e.options.force;if(t.projectReferences){e.projectStatus.set(n,{type:12});for(const n of t.projectReferences){const t=$$(n),r=tH(e,t),i=iH(e,t,r),o=AH(e,i,r);if(12!==o.type&&15!==o.type){if(0===o.type||11===o.type)return{type:11,upstreamProjectName:n.path,upstreamProjectBlocked:11===o.type};if(1!==o.type)return{type:10,upstreamProjectName:n.path};u||(l||(l=[])).push({ref:n,refStatus:o,resolvedRefPath:r,resolvedConfig:i})}}}if(u)return{type:16};const{host:_}=e,p=Gq(t.options);let f,m,g,h,y,v=qW;if(p){const c=NH(e,p,n);if(m=(null==c?void 0:c.modifiedTime)||so(_,p),m===ao)return c||e.buildInfoCache.set(n,{path:eH(e,p),buildInfo:!1,modifiedTime:m}),{type:3,missingOutputFileName:p};const l=EH(e,p,n,m);if(!l)return{type:4,fileName:p};if(l.program&&l.version!==a)return{type:13,version:l.version};if(l.program){if((null==(r=l.program.changeFileSet)?void 0:r.length)||(t.options.noEmit?null==(s=l.program.semanticDiagnosticsPerFile)?void 0:s.length:(null==(i=l.program.affectedFilesPendingEmit)?void 0:i.length)||(null==(o=l.program.emitDiagnosticsPerFile)?void 0:o.length)))return{type:7,buildInfoFile:p};if(!t.options.noEmit&&Z$(t.options,l.program.options||{}))return{type:8,buildInfoFile:p};g=l.program}v=m,f=p}let b=UW,x=!1;const S=new Set;for(const a of t.fileNames){const t=TH(e,a);if(t===ao)return{type:0,reason:`${a} does not exist`};const n=g?eH(e,a):void 0;if(m&&m<t){let t,r;if(g){h||(h=PV(g,p,_));const i=h.roots.get(n);t=h.fileInfos.get(null!=i?i:n);const o=t?e.readFileWithCache(null!=i?i:a):void 0;r=void 0!==o?wW(_,o):void 0,t&&t===r&&(x=!0)}if(!t||t!==r)return{type:5,outOfDateOutputFileName:p,newerInputFileName:a}}t>b&&(y=a,b=t),g&&S.add(n)}if(g){h||(h=PV(g,p,_));const e=bd(h.roots,((e,t)=>S.has(t)?void 0:t));if(e)return{type:9,buildInfoFile:p,inputFile:e}}if(!p){const r=uz(t,!_.useCaseSensitiveFileNames()),i=wH(e,n);for(const t of r){const n=eH(e,t);let r=null==i?void 0:i.get(n);if(r||(r=so(e.host,t),null==i||i.set(n,r)),r===ao)return{type:3,missingOutputFileName:t};if(r<b)return{type:5,outOfDateOutputFileName:t,newerInputFileName:y};r<v&&(v=r,f=t)}}const k=e.buildInfoCache.get(n);let T=!1;if(l)for(const{ref:a,refStatus:c,resolvedConfig:d,resolvedRefPath:E}of l){if(c.newestInputFileTime&&c.newestInputFileTime<=v)continue;if(k&&FH(e,k,E))return{type:6,outOfDateOutputFileName:p,newerProjectName:a.path};const t=OH(e,d.options,E);if(!(t&&t<=v))return En.assert(void 0!==f,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:f,newerProjectName:a.path};T=!0}const C=PH(e,t.options.configFilePath,v,f);if(C)return C;const w=d(t.options.configFile.extendedSourceFiles||c,(t=>PH(e,t,v,f)));if(w)return w;
6const D=e.lastCachedPackageJsonLookups.get(n),N=D&&xd(D,(t=>PH(e,t,v,f)));return N||{type:T?2:x?14:1,newestInputFileTime:b,newestInputFileName:y,oldestOutputFileName:f}}(e,t,n);return xr("SolutionBuilder::afterUpToDateCheck"),Sr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function IH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Gq(t.options);if(a)return(null==i?void 0:i.has(eH(e,a)))||(e.options.verbose&&XH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=$W(e.host)),NH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:s}=e,c=uz(t,!s.useCaseSensitiveFileNames()),l=wH(e,n),u=l?new Set:void 0;if(!i||c.length!==i.size){let n=!!e.options.verbose;for(const a of c){const c=eH(e,a);(null==i?void 0:i.has(c))||(n&&(n=!1,XH(e,r,t.options.configFilePath)),s.setModifiedTime(a,o||(o=$W(e.host))),l&&(l.set(c,o),u.add(c)))}}null==l||l.forEach(((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||l.delete(t)}))}function OH(e,t,n){if(!t.composite)return;const r=En.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&r.buildInfo.program&&r.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(aa(r.buildInfo.program.latestChangedDtsFile,Go(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function LH(e,t,n){if(e.options.dry)return XH(e,Pa.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);IH(e,t,n,Pa.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:dz(t,!e.host.useCaseSensitiveFileNames())})}function RH(e,t,n,r,i,o,a){if(!(124&a)&&i.options.composite)for(let s=r+1;s<o.length;s++){const r=o[s],i=tH(e,r);if(e.projectPendingBuild.has(i))continue;const c=iH(e,r,i);if(c&&c.projectReferences)for(const o of c.projectReferences){if(tH(e,oH(e,o.path))!==n)continue;const r=e.projectStatus.get(i);if(r)switch(r.type){case 1:if(2&a){r.type=2;break}case 14:case 2:2&a||e.projectStatus.set(i,{type:6,outOfDateOutputFileName:r.oldestOutputFileName,newerProjectName:t});break;case 11:tH(e,oH(e,r.upstreamProjectName))===n&&_H(e,i)}dH(e,i,0);break}}}function MH(e,t,n,r,i,o){xr("SolutionBuilder::beforeBuild");const a=function(e,t,n,r,i,o){const a=cH(e,t,o);if(!a)return 3;pH(e,n);let s=!0,c=0;for(;;){const t=vH(e,a,s);if(!t)break;s=!1,t.done(n,r,null==i?void 0:i(t.project)),e.diagnostics.has(t.projectPath)||c++}return uH(e),tK(e,a),function(e,t){if(e.watchAllProjectsPending){xr("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of WW(t)){const t=tH(e,n),r=iH(e,n,t);zH(e,n,t,r),$H(e,t,r),r&&(VH(e,n,t,r),WH(e,n,t,r),HH(e,n,t,r))}xr("SolutionBuilder::afterWatcherCreation"),Sr("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}(e,a),VW(a)?4:a.some((t=>e.diagnostics.has(tH(e,t))))?c?2:1:0}(e,t,n,r,i,o);return xr("SolutionBuilder::afterBuild"),Sr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function jH(e,t,n){xr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=cH(e,t,n);if(!r)return 3;if(VW(r))return YH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const s of r){const t=tH(e,s),n=iH(e,s,t);if(void 0===n){eK(e,t);continue}const r=uz(n,!o.useCaseSensitiveFileNames());if(!r.length)continue;const i=new Set(n.fileNames.map((t=>eH(e,t))));for(const s of r)i.has(eH(e,s))||o.fileExists(s)&&(a?a.push(s):(o.deleteFile(s),BH(e,t,0)))}return a&&XH(e,Pa.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join("")),0}(e,t,n);return xr("SolutionBuilder::afterClean"),Sr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function BH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,_H(e,t),dH(e,t,n),lH(e)}function JH(e,t,n){e.reportFileChangeDetected=!0,BH(e,t,n),UH(e,250,!0)}
6function UH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(qH,t,"timerToBuildInvalidatedProject",e,n))}function qH(e,t,n){xr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),QH(e,Pa.File_change_detected_Starting_incremental_compilation));let n=0;const r=sH(e),i=vH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=hH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void UH(e,100,!1);yH(e,i,r).done(),1!==i.kind&&n++}return uH(e),r}(t,n);xr("SolutionBuilder::afterBuild"),Sr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&tK(t,r)}function zH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,CH(e,t,(()=>JH(e,n,2)),2e3,null==r?void 0:r.watchOptions,kW.ConfigFile,t))}function $H(e,t,n){Ez(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>CH(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>JH(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,kW.ExtendedConfigFile)),(t=>eH(e,t)))}function VH(e,t,n,r){e.watch&&Iz(zW(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((i,o)=>e.watchDirectory(i,(o=>{var a;Oz({watchedDirPath:eH(e,i),fileOrDirectory:o,fileOrDirectoryPath:eH(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=rH(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>eH(e,t)})||JH(e,n,1)}),o,null==r?void 0:r.watchOptions,kW.WildcardDirectory,t)))}function WH(e,t,n,r){e.watch&&Rx(zW(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>CH(e,i,(()=>JH(e,n,0)),250,null==r?void 0:r.watchOptions,kW.SourceFile,t),onDeleteValue:Cx})}function HH(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&Rx(zW(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>CH(e,i,(()=>JH(e,n,0)),2e3,null==r?void 0:r.watchOptions,kW.PackageJson,t),onDeleteValue:Cx})}function KH(e,t,n,r,i){const o=ZW(e,t,n,r,i);return{build:(e,t,n,r)=>MH(o,e,t,n,r),clean:e=>jH(o,e),buildReferences:(e,t,n,r)=>MH(o,e,t,n,r,!0),cleanReferences:e=>jH(o,e,!0),getNextInvalidatedProject:e=>(pH(o,e),vH(o,sH(o),!1)),getBuildOrder:()=>sH(o),getUpToDateStatusOfProject:e=>{const t=oH(o,e),n=tH(o,t);return AH(o,iH(o,t,n),n)},invalidateProject:(e,t)=>BH(o,e,t||0),close:()=>function(e){Ox(e.allWatchedConfigFiles,Cx),Ox(e.allWatchedExtendedConfigFiles,Bz),Ox(e.allWatchedWildcardDirectories,(e=>Ox(e,Bz))),Ox(e.allWatchedInputFiles,(e=>Ox(e,Cx))),Ox(e.allWatchedPackageJsonFiles,(e=>Ox(e,Cx)))}(o)}}function GH(e,t){return Ta(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function XH(e,t,...n){e.host.reportSolutionBuilderStatus(xS(t,...n))}function QH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,xS(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function YH({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function ZH(e,t,n){YH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function eK(e,t){ZH(e,t,[e.configFileCache.get(t)])}function tK(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];VW(t)?(nK(e,t.buildOrder),YH(e,t.circularDiagnostics),n&&(i+=oW(t.circularDiagnostics)),n&&(o=[...o,...aW(t.circularDiagnostics)])):(t.forEach((t=>{const n=tH(e,t);e.projectErrorsReported.has(n)||YH(e,r.get(n)||c)})),n&&r.forEach((e=>i+=oW(e))),n&&r.forEach((e=>[...o,...aW(e)]))),e.watch?QH(e,sW(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function nK(e,t){e.options.verbose&&XH(e,Pa.Projects_in_this_build_Colon_0,t.map((t=>"\r\n    * "+GH(e,t))).join(""))}function rK(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return XH(e,Pa.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,GH(e,t),GH(e,n.outOfDateOutputFileName),GH(e,n.newerInputFileName));case 6:return XH(e,Pa.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,GH(e,t),GH(e,n.outOfDateOutputFileName),GH(e,n.newerProjectName));case 3:return XH(e,Pa.Project_0_is_out_of_date_because_output_file_1_does_not_exist,GH(e,t),GH(e,n.missingOutputFileName));case 4:return XH(e,Pa.Project_0_is_out_of_date_because_there_was_error_reading_file_1,GH(e,t),GH(e,n.fileName));case 7:return XH(e,Pa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,GH(e,t),GH(e,n.buildInfoFile));case 8:return XH(e,Pa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,GH(e,t),GH(e,n.buildInfoFile));case 9:return XH(e,Pa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,GH(e,t),GH(e,n.buildInfoFile),GH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return XH(e,Pa.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,GH(e,t),GH(e,n.newestInputFileName||""),GH(e,n.oldestOutputFileName||""));break;case 2:return XH(e,Pa.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,GH(e,t));case 14:return XH(e,Pa.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,GH(e,t));case 10:return XH(e,Pa.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,GH(e,t),GH(e,n.upstreamProjectName));case 11:return XH(e,n.upstreamProjectBlocked?Pa.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Pa.Project_0_can_t_be_built_because_its_dependency_1_has_errors,GH(e,t),GH(e,n.upstreamProjectName));case 0:return XH(e,Pa.Failed_to_parse_file_0_Colon_1,GH(e,t),n.reason);case 13:return XH(e,Pa.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,GH(e,t),n.version,a);case 16:XH(e,Pa.Project_0_is_being_forcibly_rebuilt,GH(e,t))}}
6(e,t,n)}var iK=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(iK||{});function oK(e){const t=function(){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}();return d(e.getSourceFiles(),(n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return $o(n,$k)?"TypeScript":$o(n,Kk)?"JavaScript":zo(n,".json")?"JSON":"Other"}(e,n),i=rs(n).length;t.set(r,t.get(r)+i)})),t}function aK(e,t,n){return cK(e,n)?ZV(e,!0):t}function sK(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function cK(e,t){return t&&void 0!==t.pretty?t.pretty:sK(e)}function lK(e){return e.options.all?xe(MO,((e,t)=>Ut(e.name,t.name))):L(MO.slice(),(e=>!!e.showInSimplifiedHelpView))}function uK(e){e.write(hL(Pa.Version_0,a)+e.newLine)}function _K(e){if(!sK(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM"),i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`�[97m${e}�[39m`}return{bold:function(e){return`�[1m${e}�[22m`},blue:function(e){return!t||n||r?`�[94m${e}�[39m`:o(e)},brightWhite:o,blueBackground:function(e){return i?`�[48;5;68m${e}�[39;49m`:`�[44m${e}�[39;49m`}}}function dK(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function pK(e,t,n,r){var i,o;const a=[],s=_K(e),c=dK(t),l=function(e){if("object"!==e.type)return{valueType:function(e){switch(En.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return hL(Pa.type_Colon);case"list":return hL(Pa.one_or_more_Colon);default:return hL(Pa.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach(((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)})),Object.entries(r).map((([,e])=>e.join("/"))).join(", ")}return n}(e)}}(t),u="object"==typeof t.defaultValueDescription?hL(t.defaultValueDescription):(_=t.defaultValueDescription,d="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==_&&"object"==typeof d?Xe(d.entries()).filter((([,e])=>e===_)).map((([e])=>e)).join("/"):String(_));var _,d;const p=null!=(i=null==(o=e.getWidthOfTerminal)?void 0:o.call(e))?i:0;if(p>=80){let i="";t.description&&(i=hL(t.description)),a.push(...m(c,i,n,r,p,!0),e.newLine),f(l,t)&&(l&&a.push(...m(l.valueType,l.possibleValues,n,r,p,!1),e.newLine),u&&a.push(...m(hL(Pa.default_Colon),u,n,r,p,!1),e.newLine)),a.push(e.newLine)}else{if(a.push(s.blue(c),e.newLine),t.description){const e=hL(t.description);a.push(e)}if(a.push(e.newLine),f(l,t)){if(l&&a.push(`${l.valueType} ${l.possibleValues}`),u){l&&a.push(e.newLine);const t=hL(Pa.default_Colon);a.push(`${t} ${u}`)}a.push(e.newLine)}a.push(e.newLine)}return a;function f(e,t){const n=t.defaultValueDescription;return!(t.category===Pa.Command_line_Options||F(["string"],null==e?void 0:e.possibleValues)&&F([void 0,"false","n/a"],n))}function m(e,t,n,r,i,o){const a=[];let c=!0,l=t;const u=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?s.blue(t):t):t="".padStart(r);const i=l.substr(0,u);l=l.slice(u),a.push(`${t}${i}`),c=!1}return a}}function fK(e,t){let n=0;for(const a of t){const e=dK(a).length;n=n>e?n:e}const r=n+2,i=r+2;let o=[];for(const a of t){const t=pK(e,a,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function mK(e,t,n,r,i,o){var a;let s=[];if(s.push(_K(e).bold(t)+e.newLine+e.newLine),i&&s.push(i+e.newLine+e.newLine),!r)return s=[...s,...fK(e,n)],o&&s.push(o+e.newLine+e.newLine),s;const c=new Map;for(const l of n){if(!l.category)continue;const e=hL(l.category),t=null!=(a=c.get(e))?a:[];t.push(l),c.set(e,t)}
6return c.forEach(((t,n)=>{s.push(`### ${n}${e.newLine}${e.newLine}`),s=[...s,...fK(e,t)]})),o&&s.push(o+e.newLine+e.newLine),s}function gK(e,t){let n=[...hK(e,`${hL(Pa.tsc_Colon_The_TypeScript_Compiler)} - ${hL(Pa.Version_0,a)}`)];n=[...n,...mK(e,hL(Pa.BUILD_OPTIONS),t,!1,bS(Pa.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const r of n)e.write(r)}function hK(e,t){var n,r;const i=_K(e),o=[],a=null!=(n=null==(r=e.getWidthOfTerminal)?void 0:r.call(e))?n:0,s=i.blueBackground("".padStart(5)),c=i.blueBackground(i.brightWhite("TS ".padStart(5)));if(a>=t.length+5){const n=(a>120?120:a)-5;o.push(t.padEnd(n)+s+e.newLine),o.push("".padStart(n)+c+e.newLine)}else o.push(t+e.newLine),o.push(e.newLine);return o}function yK(e,t){t.options.all?function(e,t,n,r){let i=[...hK(e,`${hL(Pa.tsc_Colon_The_TypeScript_Compiler)} - ${hL(Pa.Version_0,a)}`)];i=[...i,...mK(e,hL(Pa.ALL_COMPILER_OPTIONS),t,!0,void 0,bS(Pa.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...mK(e,hL(Pa.WATCH_OPTIONS),r,!1,hL(Pa.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...mK(e,hL(Pa.BUILD_OPTIONS),n,!1,bS(Pa.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const o of i)e.write(o)}(e,lK(t),KO,AO):function(e,t){const n=_K(e);let r=[...hK(e,`${hL(Pa.tsc_Colon_The_TypeScript_Compiler)} - ${hL(Pa.Version_0,a)}`)];r.push(n.bold(hL(Pa.COMMON_COMMANDS))+e.newLine+e.newLine),s("tsc",Pa.Compiles_the_current_project_tsconfig_json_in_the_working_directory),s("tsc app.ts util.ts",Pa.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),s("tsc -b",Pa.Build_a_composite_project_in_the_working_directory),s("tsc --init",Pa.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),s("tsc -p ./path/to/tsconfig.json",Pa.Compiles_the_TypeScript_project_located_at_the_specified_path),s("tsc --help --all",Pa.An_expanded_version_of_this_information_showing_all_possible_compiler_options),s(["tsc --noEmit","tsc --target esnext"],Pa.Compiles_the_current_project_with_additional_settings);const i=t.filter((e=>e.isCommandLineOnly||e.category===Pa.Command_line_Options)),o=t.filter((e=>!F(i,e)));r=[...r,...mK(e,hL(Pa.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...mK(e,hL(Pa.COMMON_COMPILER_OPTIONS),o,!1,void 0,bS(Pa.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const a of r)e.write(a);function s(t,i){const o="string"==typeof t?[t]:t;for(const a of o)r.push("  "+n.blue(a)+e.newLine);r.push("  "+hL(i)+e.newLine+e.newLine)}}(e,lK(t))}function vK(e,t,n){let r,i=ZV(e);if(n.options.build)return i(xS(Pa.Option_build_must_be_the_first_command_line_argument)),e.exit(1);if(n.options.locale&&Tc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n,r){const i=e.getCurrentDirectory(),o=sa(ra(i,"tsconfig.json"));if(e.fileExists(o))t(xS(Pa.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,ZL(n,r,e.newLine));const t=[e.newLine,...hK(e,"Created a new tsconfig.json with:")];t.push(QL(n,e.newLine)+e.newLine+e.newLine),t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return uK(e),e.exit(0);if(n.options.help||n.options.all)return yK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(xS(Pa.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(xS(Pa.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=sa(n.options.project);if(!t||e.directoryExists(t)){if(r=ra(t,"tsconfig.json"),!e.fileExists(r))return i(xS(Pa.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(xS(Pa.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else 0===n.fileNames.length&&(r=Jz(sa(e.getCurrentDirectory()),(t=>e.fileExists(t))));if(0===n.fileNames.length&&!r)return n.options.showConfig?i(xS(Pa.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,sa(e.getCurrentDirectory()))):(uK(e),yK(e,n)),e.exit(1);
6const o=e.getCurrentDirectory(),a=eR(n.options,(e=>aa(e,o)));if(r){const o=new Map,s=iW(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=aK(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify($L(s,r,e),null,4)+e.newLine),e.exit(0));if(i=aK(e,i,s.options),Tx(s.options)){if(SK(e,i))return;return function(e,t,n,r,i,o,a){const s=FW({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:FK(e,r.options)});return PK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,jW(s)}(e,t,i,s,a,n.watchOptions,o)}QS(s.options)?DK(e,t,i,s):wK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify($L(n,ra(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=aK(e,i,a),Tx(a)){if(SK(e,i))return;return function(e,t,n,r,i,o){const a=AW({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:FK(e,i)});return PK(e,t,a),jW(a)}(e,t,i,n.fileNames,a,n.watchOptions)}QS(a)?DK(e,t,i,g(m({},n),{options:a})):wK(e,t,i,g(m({},n),{options:a}))}}function bK(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return"build"===t||"b"===t}return!1}function xK(e,t,n){if(bK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=gL(n.slice(1));if(!r.generateCpuProfile||!e.enableCPUProfiler)return TK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,(()=>TK(e,t,r,i,o,a)))}const r=_L(n,(t=>e.readFile(t)));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return vK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,(()=>vK(e,t,r)))}function SK(e,t){return!(e.watchFile&&e.watchDirectory||(t(xS(Pa.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),0))}var kK=2;function TK(e,t,n,r,i,o){const a=aK(e,ZV(e),n);if(n.locale&&Tc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return uK(e),gK(e,GO),e.exit(0);if(0===i.length)return uK(e),gK(e,GO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(xS(Pa.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(SK(e,a))return;const o=XW(e,void 0,a,HW(e,cK(e,n)),FK(e,n));o.jsDocParsingMode=kK;const s=AK(e,n);NK(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==Pa.Found_0_errors_Watching_for_file_changes.code&&e.code!==Pa.Found_1_error_Watching_for_file_changes.code||IK(u,s)};const u=YW(o,i,n,r);return u.build(),IK(u,s),l=!0,u}const s=GW(e,void 0,a,HW(e,cK(e,n)),CK(e,n));s.jsDocParsingMode=kK;const c=AK(e,n);NK(e,t,s,c);const l=QW(s,i,n),u=n.clean?l.clean():l.build();return IK(l,c),Ir(),e.exit(u)}function CK(e,t){return cK(e,t)?(t,n)=>e.write(lW(t,n,e.newLine,e)):void 0}function wK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=Wz(o,void 0,e);s.jsDocParsingMode=kK;const c=s.getCurrentDirectory(),l=un(s.useCaseSensitiveFileNames());Hz(s,(e=>la(e,c,l))),RK(e,o,!1);const u=B$({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:L$(r)}),_=vW(u,n,(t=>e.write(t+e.newLine)),CK(e,o));return jK(e,u,void 0),t(u),e.exit(_)}function DK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;RK(e,i,!1);const s=LW(i,e);s.jsDocParsingMode=kK;const c=IW({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:L$(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:CK(e,i),afterProgramEmitAndDiagnostics:n=>{jK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function NK(e,t,n,r){EK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{jK(e,n.getProgram(),r),t(n)}}function EK(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(En.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&RK(e,i,n),r(t,i,o,a,s,c))}function PK(e,t,n){n.jsDocParsingMode=kK,EK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),jK(e,n.getProgram(),void 0),t(n)}}function FK(e,t){return rW(e,cK(e,t))}function AK(e,t){if(e===Eo&&t.extendedDiagnostics)return Pr(),function(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:r};function t(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(null!=e?e:e=new Map).set(t.name,t)}function n(t){null==e||e.forEach(t)}function r(){e=void 0}}()}function IK(e,t){if(!t)return;if(!Er())return void Eo.write(Pa.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+"\n");const n=[];function r(e){const t=kr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:WW(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics((e=>{e.name=`Aggregate ${e.name}`,n.push(e)})),Cr(((e,t)=>{MK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})})),Fr(),Pr(),t.clear(),BK(Eo,n)}function OK(e,t){return e===Eo&&(t.diagnostics||t.extendedDiagnostics)}function LK(e,t){return e===Eo&&t.generateTrace}function RK(e,t,n){OK(e,t)&&Pr(e),LK(e,t)&&Ar(n?"build":"project",t.generateTrace,t.configFilePath)}function MK(e){return fn(e,"SolutionBuilder::")}function jK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(LK(e,i)&&(null==(r=pr)||r.stopTracing()),OK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=oK(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",S(l.values(),((e,t)=>e+t),0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const u=Er(),_=u?Tr("Program"):0,d=u?Tr("Bind"):0,p=u?Tr("Check"):0,f=u?Tr("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),u&&Cr(((e,t)=>{MK(e)||c(`${e} time`,t,!0)}))}else u&&(c("I/O read",Tr("I/O Read"),!0),c("I/O write",Tr("I/O Write"),!0),c("Parse time",_,!0),c("Bind time",d,!0),c("Check time",p,!0),c("Emit time",f,!0));u&&c("Total time",_+d+p+f,!1),BK(e,o),u?n?(Cr((e=>{MK(e)||Dr(e)})),wr((e=>{MK(e)||Nr(e)}
6))):Fr():e.write(Pa.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+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function BK(e,t){let n=0,r=0;for(const i of t){i.name.length>n&&(n=i.name.length);const e=JK(i);e.length>r&&(r=e.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+JK(i).toString().padStart(r)+e.newLine)}function JK(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:En.assertNever(e.type)}}function UK(e,t){const n=ak(e,"strictNullChecks");return{typeFromExpression:_,serializeTypeOfDeclaration:function(e,n){switch(e.kind){case 171:return r(Ov(e));case 169:return s(e,n);case 260:return function(e,n){const i=Ov(e);if(i)return r(i);let o;return e.initializer&&(t.isExpandoFunctionDeclaration(e)||(o=_(e.initializer,n,void 0,void 0,yf(e)))),null!=o?o:c(e,n)}(e,n);case 172:return function(e,t){const n=Ov(e);if(n)return r(n);let i;if(e.initializer){const n=ff(e);i=_(e.initializer,t,void 0,void 0,n)}return null!=i?i:c(e,t)}(e,n);case 208:return c(e,n);case 277:return i(e.expression,n,void 0,!0);case 211:case 212:case 226:return r(Ov(e))||c(e,n);case 303:return _(e.initializer,n)||c(e,n);default:En.assertNever(e,`Node needs to be an inferrable node, found ${En.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t){switch(e.kind){case 177:return a(e,t);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return y(e,t);default:En.assertNever(e,`Node needs to be an inferrable node, found ${En.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:i};function r(e,t){return!(void 0===e||!(!t||e&&h(e)))||void 0}function i(e,t,n,r){var i;return null!=(i=_(e,t,!1,n,r))?i:l(e,t)}function o(e){if(e)return 177===e.kind?Rv(e):e.parameters.length>0?Ov(e.parameters[0]):void 0}function a(e,n){const i=t.getAllAccessorDeclarations(e),a=function(e,t){let n=o(e);return n||e===t.firstAccessor||(n=o(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=o(t.secondAccessor)),n}(e,i);return a?r(a):!!i.getAccessor&&y(i.getAccessor,n)}function s(e,n){const i=e.parent;if(178===i.kind)return a(i,n);const o=Ov(e),s=t.requiresAddingImplicitUndefined(e);let l;return o?l=r(o,s):e.initializer&&nN(e.name)&&(l=_(e.initializer,n,void 0,s)),null!=l?l:c(e,n)}function c(e,t){return t.tracker.reportInferenceFallback(e),!1}function l(e,t){return t.tracker.reportInferenceFallback(e),!1}function u(e,t,n,i){return jl(t)?_(e,n,!0,i):(i&&!h(t)&&n.tracker.reportInferenceFallback(t),r(t))}function _(e,n,i=!1,o=!1,a=!1){switch(e.kind){case 217:return vA(e)?u(e.expression,bA(e),n,o):_(e.expression,n,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return!0;break;case 106:case 9:case 15:case 11:case 10:case 112:case 97:return!0;case 219:case 218:return function(e,t){var n;const i=null!=(n=r(e.type))?n:y(e,t),o=f(e.typeParameters),a=e.parameters.every((e=>p(e,t)));return i&&o&&a}(e,n);case 216:case 234:const s=e;return u(s.expression,s.type,n,o);case 224:const c=e;if(JC(c)){if(10===c.operand.kind)return!0;if(9===c.operand.kind)return!0}break;case 228:if(!i&&!a)return!0;break;case 209:return function(e,t,n){var r;if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const r of e.elements)if(230===r.kind)return t.tracker.reportInferenceFallback(r),!1;return!0}(e,t,n))return!1;let i=!0;for(const o of e.elements)En.assert(230!==o.kind),232!==o.kind&&(i=(null!=(r=_(o,t,n))?r:l(o,t))&&i);return!0}(e,n,i);case 210:return function(e,t,n){if(!function(e,t){let n=!0;for(const r of e.properties){if(262144&r.flags){n=!1;break}if(304===r.kind||305===r.kind)t.tracker.reportInferenceFallback(r),n=!1;else{if(262144&r.name.flags){n=!1;break}81===r.name.kind?n=!1:167===r.name.kind&&(JC(r.name.expression,!1)||(t.tracker.reportInferenceFallback(r.name),n=!1))}}return n}(e,t))return!1;let r=!0;for(const i of e.properties){En.assert(!ZP(i)&&!eF(i));i.name;switch(i.kind){case 174:r=!!m(i,0,t)&&r;break;case 303:r=!!d(i,0,t,n)&&r;break;case 178:case 177:r=!!g(i,0,t)&&r}}return r}(e,n,i);case 231:return l(e,n)}}function d(e,t,n,r){var i;return null!=(i=_(e.initializer,n,r))?i:c(e,n)}function p(e,t){return s(e,t)}function f(e){var t;return null==(t=null==e?void 0:e.every((e=>r(e.constraint)&&r(e.default))))||t}function m(e,t,n){const r=y(e,n),i=f(e.typeParameters),o=e.parameters.every((e=>
6p(e,n)));return r&&i&&o}function g(e,n,i){const a=t.getAllAccessorDeclarations(e),s=a.getAccessor&&o(a.getAccessor),c=a.setAccessor&&o(a.setAccessor);if(void 0!==s&&void 0!==c){const t=e.parameters.every((e=>p(e,i)));return $_(e)?t&&r(s):t}if(a.firstAccessor===e){const t=null!=s?s:c,n=t?r(t):function(e,t,n){return 177===e.kind?y(e,n):(n.tracker.reportInferenceFallback(e),!1)}(e,0,i);return n}return!1}function h(e){return!n||!(!Jh(e.kind)&&201!==e.kind&&184!==e.kind&&185!==e.kind&&188!==e.kind&&189!==e.kind&&187!==e.kind&&203!==e.kind&&197!==e.kind)||(196===e.kind?h(e.type):(192===e.kind||193===e.kind)&&e.types.every(h))}function y(e,t){let n;const i=Rv(e);return i&&(n=r(i)),!n&&fh(e)&&(n=function(e,t){let n;if(e&&!Ud(e.body)){if(3&Qh(e))return;const t=e.body;t&&JE(t)?Jf(t,(e=>{if(n)return n=void 0,!0;n=e.expression})):n=t}if(n)return _(n,t)}(e,t)),null!=n?n:function(e,t){return t.tracker.reportInferenceFallback(e),!1}(e,t)}}var qK={};r(qK,{NameValidationResult:()=>mG,discoverTypings:()=>pG,isTypingUpToDate:()=>oG,loadSafeList:()=>_G,loadTypesMap:()=>dG,nodeCoreModuleList:()=>cG,nodeCoreModules:()=>lG,nonRelativeModuleNameForTypingCache:()=>uG,prefixedNodeCoreModuleList:()=>sG,renderPackageNameValidationFailure:()=>vG,validatePackageName:()=>hG});var zK,$K,VK="action::set",WK="action::invalidate",HK="action::packageInstalled",KK="event::typesRegistry",GK="event::beginInstallTypes",XK="event::endInstallTypes",QK="event::initializationFailed",YK="action::watchTypingLocations";function ZK(e){return Eo.args.includes(e)}function eG(e){const t=Eo.args.indexOf(e);return t>=0&&t<Eo.args.length-1?Eo.args[t+1]:void 0}function tG(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}($K=zK||(zK={})).GlobalCacheLocation="--globalTypingsCacheLocation",$K.LogFile="--logFile",$K.EnableTelemetry="--enableTelemetry",$K.TypingSafeListLocation="--typingSafeListLocation",$K.TypesMapLocation="--typesMapLocation",$K.NpmLocation="--npmLocation",$K.ValidateDefaultNpmLocation="--validateDefaultNpmLocation";var nG="\n    ";function rG(e){return nG+e.replace(/\n/g,nG)}function iG(e){return rG(JSON.stringify(e,void 0,2))}function oG(e,t){return new jn(Ve(t,`ts${o}`)||Ve(t,"latest")).compareTo(e.version)<=0}var aG=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],sG=aG.map((e=>`node:${e}`)),cG=[...aG,...sG],lG=new Set(cG);function uG(e){return lG.has(e)?"node":e}function _G(e,t){const n=vL(t,(t=>e.readFile(t)));return new Map(Object.entries(n.config))}function dG(e,t){var n;const r=vL(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function pG(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const u=new Map;n=H(n,(e=>{const t=sa(e);if(nT(t))return t}));const _=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types){const e=new Set(n.map(Go));e.add(r),e.forEach((e=>{v(e,"bower.json","bower_components",_),v(e,"package.json","node_modules",_)}))}a.disableFilenameBasedTypeAcquisition||function(e){const n=H(e,(e=>{if(!nT(e))return;const t=on(_T(wt(Xo(e))));return i.get(t)}));n.length&&y(n,"Inferred typings from file names"),te(e,(e=>zo(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s&&y(ae(s.map(uG),Rt,zt),"Inferred typings from unresolved imports");for(const d of p)u.delete(d)&&t&&t(`Typing for ${d} is in exclude list, will be ignored.`);o.forEach(((e,t)=>{const n=c.get(t);!1===u.get(t)&&void 0!==n&&oG(e,n)&&u.set(t,e.typingLocation)}));const f=[],m=[];u.forEach(((e,t)=>{e?m.push(e):f.push(t)}));const g={cachedTypingPaths:m,newTypingNames:f,filesToWatch:_};
6return t&&t(`Finished typings discovery:${iG(g)}`),g;function h(e){u.has(e)||u.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),d(e,h)}function v(n,r,i,o){const a=ra(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=vL(a,(t=>e.readFile(t))).config,c=q([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],We),y(c,`Typing names in '${a}' dependencies`));const l=ra(n,i);if(o.push(l),!e.directoryExists(l))return;const _=[],d=c?c.map((e=>ra(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(Xo(e)!==r)return!1;const t=Zo(sa(e)),n="@"===t[t.length-3][0];return n&&wt(t[t.length-4])===i||!n&&wt(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const p of d){const n=sa(p),r=vL(n,(t=>e.readFile(t))).config;if(!r.name)continue;const i=r.types||r.typings;if(i){const o=aa(i,Go(n));e.fileExists(o)?(t&&t(`    Package '${r.name}' provides its own types.`),u.set(r.name,o)):t&&t(`    Package '${r.name}' provides its own types but they are missing.`)}else _.push(r.name)}y(_,"    Found package names")}}var fG,mG=(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))(mG||{}),gG=214;function hG(e){return yG(e,!0)}function yG(e,t){if(!e)return 1;if(e.length>gG)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=yG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=yG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function vG(e,t){return"object"==typeof e?bG(t,e.result,e.name,e.isScopeName):bG(t,e,t,!1)}function bG(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${gG} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return En.fail();default:En.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(fG||(fG={}));var xG=(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))(xG||{}),SG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(SG||{}),kG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(kG||{}),TG={},CG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(CG||{}),wG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(wG||{}),DG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(DG||{}),NG=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(NG||{}),EG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(EG||{}),PG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(PG||{}),FG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(FG||{});function AG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",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 IG=AG("\n"),OG=(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))(OG||{}),LG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.Re
6solvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(LG||{}),RG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(RG||{}),MG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(MG||{}),jG=(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))(jG||{}),BG=(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))(BG||{}),JG=(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))(JG||{}),UG=(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))(UG||{}),qG=(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))(qG||{}),zG=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(zG||{}),$G=Rs(99,!0),VG=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(VG||{});function WG(e){switch(e.kind){case 260:return Wm(e)&&_l(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return yp(e)||1===Hj(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function HG(e){const t=(e=GX(e)).parent;return 307===e.kind?1:NP(t)||FP(t)||LP(t)||DP(t)||yP(t)||gP(t)&&e===t.name?7:KG(e)?function(e){const t=166===e.kind?e:hN(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):kh(e)?WG(t):gu(e)&&wc(e,vn(oF,ed,aF))?7:function(e){switch(Rb(e)&&(e=e.parent),e.kind){case 110:return!Lm(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Mf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:vN(t)?(En.assert(jF(t.parent)),2):ZN(t)?3:1}function KG(e){for(;166===e.parent.kind;)e=e.parent;return qm(e.parent)&&e.parent.moduleReference===e}function GG(e,t=!1,n=!1){return iX(e,uE,tX,t,n)}
6function XG(e,t=!1,n=!1){return iX(e,_E,tX,t,n)}function QG(e,t=!1,n=!1){return iX(e,Zu,tX,t,n)}function YG(e,t=!1,n=!1){return iX(e,dE,nX,t,n)}function ZG(e,t=!1,n=!1){return iX(e,xN,tX,t,n)}function eX(e,t=!1,n=!1){return iX(e,j_,rX,t,n)}function tX(e){return e.expression}function nX(e){return e.tag}function rX(e){return e.tagName}function iX(e,t,n,r,i){let o=r?aX(e):oX(e);return i&&(o=SA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function oX(e){return fX(e)?e.parent:e}function aX(e){return fX(e)||mX(e)?e.parent:e}function sX(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function cX(e,t){return!!cE(e.expression)&&e.expression.name.text===t}function lX(e){var t;return nN(e)&&(null==(t=ht(e.parent,Ul))?void 0:t.label)===e}function uX(e){var t;return nN(e)&&(null==(t=ht(e.parent,tP))?void 0:t.label)===e}function _X(e){return uX(e)||lX(e)}function dX(e){var t;return(null==(t=ht(e.parent,q_))?void 0:t.tagName)===e}function pX(e){var t;return(null==(t=ht(e.parent,hN))?void 0:t.right)===e}function fX(e){var t;return(null==(t=ht(e.parent,cE))?void 0:t.name)===e}function mX(e){var t;return(null==(t=ht(e.parent,lE))?void 0:t.argumentExpression)===e}function gX(e){var t;return(null==(t=ht(e.parent,dP))?void 0:t.name)===e}function hX(e){var t;return nN(e)&&(null==(t=ht(e.parent,vu))?void 0:t.name)===e}function yX(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Jc(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function vX(e){return Bm(e.parent.parent)&&Jm(e.parent.parent)===e}function bX(e){for(qg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function xX(e){switch(e.kind){case 307:return aO(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(yy(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return vu(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Xv(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=hg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=xX(i);return""===e?"const":e;case 3:case 5:return mE(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return yP(e.parent)?"alias":"";case 277:const o=xX(e.expression);return""===o?"const":o;default:return""}function t(e){return hf(e)?"const":vf(e)?"let":"var"}}function SX(e){switch(e.kind){case 110:return!0;case 80:return Av(e)&&169===e.parent.kind;default:return!1}}var kX=/^\/\/\/\s*</;function TX(e,t){return rs(t)[t.getLineAndCharacterOfPosition(e).line]}function CX(e,t){return EX(e.pos,e.end,t)}function wX(e,t){return NX(e,t.pos)&&NX(e,t.end)}function DX(e,t){return e.pos<=t&&t<=e.end}function NX(e,t){return e.pos<t&&t<e.end}function EX(e,t,n){return e<=n.pos&&t>=n.end}function PX(e,t,n){return e.pos<=t&&e.end>=n}function FX(e,t,n){return IX(e.pos,e.end,t,n)}function AX(e,t,n,r){return IX(e.getStart(t),e.end,n,r)}function IX(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}function OX(e,t,n){return En.assert(e.pos<=t),t<e.end||!LX(e,n)}function LX(e,t){if(void 0===e||Ud(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return RX(e,20,t);case 299:return LX(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return RX(e,22,t);case 184:case 185:return LX(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?LX(e.body,t):e.type?LX(e.type,t):jX(e,22,t);case 267:return!!e.body&&LX(e.body,t);case 245:return e.elseStatement?LX(e.elseStatement,t):LX(e.thenStatement,t);case 244:return LX(e.expression,t)||jX(e,27,t);case 209:case 207:case 212:case 167:case 189:return RX(e,24,t);case 181:return e.type?LX(e.type,t):jX(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return LX(e.statement,t);case 246:return jX(e,117,t)?RX(e,22,t):LX(e.statement,t);case 186:return LX(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return LX(e.expression,t);case 215:return LX(e.template,t);case 228:return LX(Oe(e.templateSpans),t);case 239:return qd(e.literal);case 278:case 272:return qd(e.moduleSpecifier);case 224:return LX(e.operand,t);case 226:return LX(e.right,t);case 227:return LX(e.whenFalse,t);default:return!0}}function RX(e,t,n){const r=e.getChildren(n);if(r.length){const e=Le(r);if(e.kind===t)return!0;
6if(27===e.kind&&1!==r.length)return r[r.length-2].kind===t}return!1}function MX(e){const t=JX(e);if(t)return{listItemIndex:cp(t.getChildren(),e),list:t}}function jX(e,t,n){return!!BX(e,t,n)}function BX(e,t,n){return w(e.getChildren(n),(e=>e.kind===t))}function JX(e){const t=w(e.parent.getChildren(),(t=>WF(t)&&CX(t,e)));return En.assert(!t||F(t.getChildren(),e)),t}function UX(e){return 90===e.kind}function qX(e){return 86===e.kind}function zX(e){return 100===e.kind}function $X(e,t){if(16777216&e.flags)return;const n=wZ(e,t);if(n)return n;const r=function(e){let t;return wc(e,(e=>(Mu(e)&&(t=e),!hN(e.parent)&&!Mu(e.parent)&&!Ou(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function VX(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(jc(e))return e.name;if(cP(e)){const t=e.modifiers&&w(e.modifiers,UX);if(t)return t}if(NE(e)){const t=w(e.getChildren(),qX);if(t)return t}}(e);case 262:case 218:return function(e){if(jc(e))return e.name;if(sP(e)){const t=w(e.modifiers,UX);if(t)return t}if(mE(e)){const t=w(e.getChildren(),zX);if(t)return t}}(e);case 176:return e}if(jc(e))return e.name}function WX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(wP(e.importClause.namedBindings)){const t=Re(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(TP(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function HX(e,t){if(e.exportClause){if(PP(e.exportClause)){if(!Re(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(CP(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function KX(e,t){const{parent:n}=e;if(mu(e)&&(t||90!==e.kind)?CI(n)&&F(n.modifiers,e):86===e.kind?cP(n)||NE(e):100===e.kind?sP(n)||mE(e):120===e.kind?lP(n):94===e.kind?_P(n):156===e.kind?uP(n):145===e.kind||144===e.kind?dP(n):102===e.kind?gP(n):139===e.kind?NN(n):153===e.kind&&EN(n)){const e=VX(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&aP(n)&&1===n.declarations.length){const e=n.declarations[0];if(nN(e.name))return e.name}if(156===e.kind){if(yP(n)&&n.isTypeOnly){const e=WX(n.parent,t);if(e)return e}if(EP(n)&&n.isTypeOnly){const e=HX(n,t);if(e)return e}}if(130===e.kind){if(DP(n)&&n.propertyName||FP(n)&&n.propertyName||TP(n)||CP(n))return n.name;if(EP(n)&&n.exportClause&&CP(n.exportClause))return n.exportClause.name}if(102===e.kind&&hP(n)){const e=WX(n,t);if(e)return e}if(95===e.kind){if(EP(n)){const e=HX(n,t);if(e)return e}if(NP(n))return SA(n.expression)}if(149===e.kind&&LP(n))return n.expression;if(161===e.kind&&(hP(n)||EP(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&XP(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(vN(n)&&n.constraint&&ON(n.constraint))return n.constraint.typeName;if(WN(n)&&ON(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&HN(n))return n.typeParameter.name;if(103===e.kind&&vN(n)&&YN(n.parent))return n.name;if(143===e.kind&&XN(n)&&143===n.operator&&ON(n.type))return n.type.typeName;if(148===e.kind&&XN(n)&&148===n.operator&&BN(n.type)&&ON(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&_E(n)||116===e.kind&&vE(n)||114===e.kind&&yE(n)||135===e.kind&&bE(n)||127===e.kind&&wE(n)||91===e.kind&&hE(n))&&n.expression)return SA(n.expression);if((103===e.kind||104===e.kind)&&kE(n)&&n.operatorToken===e)return SA(n.right);if(130===e.kind&&FE(n)&&ON(n.type))return n.type.typeName;if(103===e.kind&&KE(n)||165===e.kind&&GE(n))return SA(n.expression)}return e}function GX(e){return KX(e,!1)}function XX(e){return KX(e,!0)}function QX(e,t){return YX(e,t,(e=>iy(e)||Jh(e.kind)||rN(e)))}function YX(e,t,n){return eQ(e,t,!1,n,!1)}function ZX(e,t){return eQ(e,t,!0,void 0,!1)}function eQ(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ue(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(c<t)return-1;const l=n?i[o].getFullStart():i[o].getStart(e,!0);return l>t?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(null!=c||(c=a.getEnd()),c<t)return!1;if(null!=s||(s=n?a.getFullStart():a.getStart(e,!0)),s>t)return!1;if(t<c||t===c&&(1===a.kind||i))return!0;
6if(r&&c===t){const n=iQ(t,e,a);if(n&&r(n))return o=n,!0}return!1}}function tQ(e,t){let n=ZX(e,t);for(;uQ(n);){const t=rQ(n,n.parent,e);if(!t)return;n=t}return n}function nQ(e,t){const n=ZX(e,t);return Hl(n)&&t>n.getStart(e)&&t<n.getEnd()?n:iQ(t,e)}function rQ(e,t,n){return function t(r){return Hl(r)&&r.pos===e.end?r:y(r.getChildren(n),(r=>(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&xQ(r,n)?t(r):void 0))}(t)}function iQ(e,t,n,r){const i=function i(o){if(oQ(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ue(a,e,((e,t)=>t),((t,n)=>e<a[t].end?!a[t-1]||e>=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e<n.end){if(n.getStart(t,!r)>=e||!xQ(n,t)||uQ(n)){const e=sQ(a,s,t,o.kind);return e?!r&&U_(e)&&e.getChildren(t).length?i(e):aQ(e,t):void 0}return i(n)}}En.assert(void 0!==n||307===o.kind||1===o.kind||U_(o));const c=sQ(a,a.length,t,o.kind);return c&&aQ(c,t)}(n||t);return En.assert(!(i&&uQ(i))),i}function oQ(e){return Hl(e)&&!uQ(e)}function aQ(e,t){if(oQ(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=sQ(n,n.length,t,e.kind);return r&&aQ(r,t)}function sQ(e,t,n,r){for(let i=t-1;i>=0;i--)if(uQ(e[i]))0!==i||12!==r&&285!==r||En.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(xQ(e[i],n))return e[i]}function cQ(e,t,n=iQ(t,e)){if(n&&ou(n)){const r=n.getStart(e),i=n.getEnd();if(r<t&&t<i)return!0;if(t===i)return!!n.isUnterminated}return!1}function lQ(e,t){const n=ZX(e,t);return!!n&&(12===n.kind||30===n.kind&&12===n.parent.kind||30===n.kind&&294===n.parent.kind||!(!n||20!==n.kind||294!==n.parent.kind)||30===n.kind&&287===n.parent.kind)}function uQ(e){return JD(e)&&e.containsOnlyTriviaWhiteSpaces}function _Q(e,t){const n=ZX(e,t);return Yl(n.kind)&&t>n.getStart(e)}function dQ(e,t){const n=ZX(e,t);return!!JD(n)||!(19!==n.kind||!WP(n.parent)||!RP(n.parent.parent))||!(30!==n.kind||!j_(n.parent)||!RP(n.parent.parent))}function pQ(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(ZX(e,t))}function fQ(e,t,n){const r=Ga(e.kind),i=Ga(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)<a){const e=iQ(a+1,n);if(e&&e.kind===t)return e}const s=e.kind;let c=0;for(;;){const r=iQ(e.getFullStart(),n);if(!r)return;if((e=r).kind===t){if(0===c)return e;c--}else e.kind===s&&c++}}function mQ(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function gQ(e,t,n){const r=yQ(e,t);return void 0!==r&&(Mf(r.called)||0!==hQ(r.called,r.nTypeArguments,n).length||gQ(r.called,t,n))}function hQ(e,t,n){let r=n.getTypeAtLocation(e);return Il(e.parent)&&(r=mQ(r,Ol(e.parent),!0)),(_E(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=t))}function yQ(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=iQ(n.getFullStart(),t),n&&29===n.kind&&(n=iQ(n.getFullStart(),t)),!n||!nN(n))return;if(!r)return kh(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=fQ(n,19,t),!n)return;break;case 22:if(n=fQ(n,21,t),!n)return;break;case 24:if(n=fQ(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Mu(n))break;return}n=iQ(n.getFullStart(),t)}}function vQ(e,t,n){return wde.getRangeOfEnclosingComment(e,t,void 0,n)}function bQ(e,t){return!!wc(ZX(e,t),yF)}function xQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function SQ(e,t=0){const n=[],r=N_(e)?bc(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||wN(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function kQ(e){return 183===e.kind||213===e.kind?e.typeArguments:vu(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function TQ(e){return 2===e||3===e}function CQ(e){return!(11!==e&&14!==e&&!Yl(e))}
6function wQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function DQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(wQ(n,t[0],t[1])||wQ(n,t[1],t[0]))}function NQ(e,t,n){return Yl(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function EQ(e){switch(e){case 125:case 123:case 124:return!0}return!1}function PQ(e){const t=it(e);return iR(t,e&&e.configFile),t}function FQ(e){if(209===e.kind||210===e.kind){if(226===e.parent.kind&&e.parent.left===e&&64===e.parent.operatorToken.kind)return!0;if(250===e.parent.kind&&e.parent.initializer===e)return!0;if(FQ(303===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function AQ(e,t){return OQ(e,t,!0)}function IQ(e,t){return OQ(e,t,!1)}function OQ(e,t,n){const r=vQ(e,t,void 0);return!!r&&n===kX.test(e.text.substring(r.pos,r.end))}function LQ(e,t){if(e)switch(e.kind){case 11:case 15:return MQ(e,t);default:return RQ(e)}}function RQ(e,t,n){return sc(e.getStart(t),(n||e).getEnd())}function MQ(e,t){let n=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===n)return;n=Math.min(t,e.getEnd())}return sc(e.getStart()+1,n)}function jQ(e,t){return nx(e.getStart(t),e.end)}function BQ(e){return sc(e.pos,e.end)}function JQ(e){return nx(e.start,e.start+e.length)}function UQ(e,t,n){return qQ(ac(e,t),n)}function qQ(e,t){return{span:e,newText:t}}var zQ=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function $Q(e){return F(zQ,e)}function VQ(e){return 156===e.kind}function WQ(e){return VQ(e)||nN(e)&&"type"===e.text}function HQ(){const e=[];return t=>{const n=ZB(t);return!e[n]&&(e[n]=!0)}}function KQ(e){return e.getText(0,e.getLength())}function GQ(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function XQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function QQ(e){return 167===e.kind?Zh(e.expression)?e.expression.text:void 0:rN(e)?Fc(e):oy(e)}function YQ(e){return e.getSourceFiles().some((t=>!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function ZQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function eY(e){return!!e.module||BS(e)>=2||!!e.noEmit}function tY(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:st(t,t.readFile),useCaseSensitiveFileNames:st(t,t.useCaseSensitiveFileNames),getSymlinkCache:st(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:st(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:st(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:st(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function nY(e,t){return g(m({},tY(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function rY(e){return 2===e||e>=3&&e<=99||100===e}function iY(e,t,n,r,i){return _w.createImportDeclaration(void 0,e||t?_w.createImportClause(!!i,e,t&&t.length?_w.createNamedImports(t):void 0):void 0,"string"==typeof n?oY(n,r):n,void 0)}function oY(e,t){return _w.createStringLiteral(e,0===t)}var aY=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(aY||{});function sY(e,t){return ig(e,t)?1:0}function cY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=zm(e)&&e.imports&&w(e.imports,(e=>BD(e)&&!by(e.parent)));return t?sY(t,e):1}}function lY(e){switch(e){case 0:return"'";case 1:return'"';default:return En.assertNever(e)}}function uY(e){const t=_Y(e);return void 0===t?void 0:Pc(t)}function _Y(e){return"default"!==e.escapedName?e.escapedName:y(e.declarations,(e=>{const t=Jc(e);return t&&80===t.kind?t.escapedText:void 0}))}function dY(e){return Z_(e)&&(LP(e.parent)||hP(e.parent)||VF(e.parent)||Qm(e.parent,!1)&&e.parent.arguments[0]===e||xf(e.parent)&&e.parent.arguments[0]===e)}function pY(e){return oE(e)&&rE(e.parent)&&nN(e.name)&&!e.propertyName}function fY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function mY(e,t,n){if(e)for(;e.parent;){if(nF(e.parent)||!gY(n,e.parent,t))return e;e=e.parent}}function gY(e,t,n){return Xs(e,t.getStart(n))&&t.getEnd()<=Ks(e)}function hY(e,t){return CI(e)?w(e.modifiers,(e=>e.kind===t)):void 0}function yY(e,t,n,r,i){var o;const a=243===(pt(n)?n[0]:n).kind?ng:Op,s=L(t.statements,a),{comparer:c,isSorted:l}=_ue.getOrganizeImportsStringComparerWithDetection(s,i),u=pt(n)?ke(n,((e,t)=>_ue.compareImportsOrRequireStatements(e,t,c))):[n];if(null==s?void 0:s.length)if(En.assert(zm(t)),s&&l)for(const _ of u){const n=_ue.getImportDeclarationInsertionIndex(s,_,c);if(0===n){const n=s[0]===t.statements[0]?{leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude}:{};
6e.insertNodeBefore(t,s[0],_,!1,n)}else{const r=s[n-1];e.insertNodeAfter(t,r,_)}}else{const n=Oe(s);n?e.insertNodesAfter(t,n,u):e.insertNodesAtTopOfFile(t,u,r)}else if(zm(t))e.insertNodesAtTopOfFile(t,u,r);else for(const _ of u)e.insertStatementsInNewFile(t.fileName,[_],null==(o=Cc(_))?void 0:o.getSourceFile())}function vY(e,t){return En.assert(e.isTypeOnly),yt(e.getChildAt(0,t),VQ)}function bY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function xY(e,t,n){return(n?Rt:Lt)(e.fileName,t.fileName)&&bY(e.textSpan,t.textSpan)}function SY(e){return(t,n)=>xY(t,n,e)}function kY(e,t){if(e)for(let n=0;n<e.length;n++)if(e.indexOf(e[n])===n){const r=t(e[n],n);if(r)return r}}function TY(e,t,n){for(let r=t;r<n;r++)if(!cs(e.charCodeAt(r)))return!1;return!0}function CY(e,t,n){const r=t.tryGetSourcePosition(e);return r&&(!n||n(sa(r.fileName))?r:void 0)}function wY(e,t,n){const{fileName:r,textSpan:i}=e,o=CY({fileName:r,pos:i.start},t,n);if(!o)return;const a=CY({fileName:r,pos:i.start+i.length},t,n),s=a?a.pos-o.pos:i.length;return{fileName:o.fileName,textSpan:{start:o.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:DY(e,t,n),originalContextSpan:e.contextSpan}}function DY(e,t,n){const r=e.contextSpan&&CY({fileName:e.fileName,pos:e.contextSpan.start},t,n),i=e.contextSpan&&CY({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return r&&i?{start:r.pos,length:i.pos-r.pos}:void 0}function NY(e){return!!wc(e.declarations?Pe(e.declarations):void 0,(e=>!!bN(e)||!(oE(e)||rE(e)||iE(e))&&"quit"))}var EY=function(){const e=10*sd;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(cs(n.charCodeAt(n.length-1))||t.push(FY(" ",16)),t.push(FY("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(PY(n,r)))},writeLine:function(){i>e||(i+=1,t.push(KY()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Dt,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=Zy(r);e&&(i+=e.length,t.push(FY(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(FY(n,r)))}function c(){t=[],n=!0,r=0,i=0}}();function PY(e,t){return FY(e,function(e){const t=e.flags;return 3&t?NY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}function FY(e,t){return{text:e,kind:OG[t]}}function AY(){return FY(" ",16)}function IY(e){return FY(Ga(e),5)}function OY(e){return FY(Ga(e),15)}function LY(e){return FY(Ga(e),12)}function RY(e){return FY(e,13)}function MY(e){return FY(e,14)}function jY(e){const t=Xa(e);return void 0===t?BY(e):IY(t)}function BY(e){return FY(e,17)}function JY(e){return FY(e,0)}function UY(e){return FY(e,18)}function qY(e){return FY(e,24)}function zY(e,t){return{text:e,kind:OG[23],target:{fileName:Id(t).fileName,textSpan:RQ(t)}}}function $Y(e){return FY(e,22)}function VY(e,t){var n;const r=[$Y(`{@${sF(e)?"link":cF(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?nZ(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t<e.length&&124!==e.charCodeAt(t);)t++;return t}if(0===e.indexOf("()"))return 2;if("<"===e.charAt(0)){let t=0,n=0;for(;n<e.length;)if("<"===e[n]&&t++,">"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=ap(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e}(e.text.slice(a)),l=(null==o?void 0:o.valueDeclaration)||(null==(n=null==o?void 0:o.declarations)?void 0:n[0]);if(l)r.push(zY(s,l)),c&&r.push(qY(c));else{const t=0===a||124===e.text.charCodeAt(a)&&32!==s.charCodeAt(s.length-1)?" ":"";r.push(qY(s+t+c))}}else e.text&&r.push(qY(e.text));return r.push($Y("}")),r}var WY="\n";function HY(e,t){var n;return(null==t?void 0:t.newLineCharacter)||(null==(n=e.getNewLine)?void 0:n.call(e))||WY}function KY(){return FY("\n",6)}function GY(e){try{return e(EY),EY.displayParts()}finally{EY.clear()}}function XY(e,t,n,r=0){return GY((i=>{e.writeType(t,n,17408|r,i)}))}function QY(e,t,n,r,i=0){return GY((o=>{e.writeSymbol(t,n,r,8|i,o)}))}
6function YY(e,t,n,r=0){return r|=25632,GY((i=>{e.writeSignature(t,n,r,void 0,i)}))}function ZY(e,t){const n=t.getSourceFile();return GY((t=>{Sz().writeNode(4,e,n,t)}))}function eZ(e){return!!e.parent&&tu(e.parent)&&e.parent.propertyName===e}function tZ(e,t){return Uk(e,t.getScriptKind&&t.getScriptKind(e))}function nZ(e,t){let n=e;for(;rZ(n)||dd(n)&&n.links.target;)n=dd(n)&&n.links.target?n.links.target:Nx(n,t);return n}function rZ(e){return!!(2097152&e.flags)}function iZ(e,t){return eJ(Nx(e,t))}function oZ(e,t){for(;cs(e.charCodeAt(t));)t+=1;return t}function aZ(e,t){for(;t>-1&&ls(e.charCodeAt(t));)t-=1;return t+1}function sZ(e,t=!0){const n=e&&lZ(e);return n&&!t&&dZ(n),GT(n,!1)}function cZ(e,t,n){let r=n(e);return r?pw(r,e):r=lZ(e,n),r&&!t&&dZ(r),r}function lZ(e,t){const n=t?e=>cZ(e,!0,t):sZ,r=vJ(e,n,void 0,t?e=>e&&_Z(e,!0,t):e=>e&&uZ(e),n);return r===e?TI(BD(e)?pw(_w.createStringLiteralFromNode(e),e):MD(e)?pw(_w.createNumericLiteral(e.text,e.numericLiteralFlags),e):_w.cloneNode(e),e):(r.parent=void 0,r)}function uZ(e,t=!0){if(e){const n=_w.createNodeArray(e.map((e=>sZ(e,t))),e.hasTrailingComma);return TI(n,e),n}return e}function _Z(e,t,n){return _w.createNodeArray(e.map((e=>cZ(e,t,n))),e.hasTrailingComma)}function dZ(e){pZ(e),fZ(e)}function pZ(e){gZ(e,1024,hZ)}function fZ(e){gZ(e,2048,zx)}function mZ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let i=n;i<r;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,n.text)?SZ(e,t,n):bZ(e,t,n),xZ(e,t,n)}function gZ(e,t,n){yw(e,t);const r=n(e);r&&gZ(r,t,n)}function hZ(e){return e.forEachChild((e=>e))}function yZ(e,t){let n=e;for(let r=1;!Jd(t,n);r++)n=`${e}_${r}`;return n}function vZ(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){En.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=TZ(a,qy(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return En.assert(r),En.assert(o>=0),o}function bZ(e,t,n,r,i){Cs(n.text,e.pos,kZ(t,n,r,i,Fw))}function xZ(e,t,n,r,i){ws(n.text,e.end,kZ(t,n,r,i,Ow))}function SZ(e,t,n,r,i){ws(n.text,e.pos,kZ(t,n,r,i,Fw))}function kZ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function TZ(e,t){if(fn(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function CZ(e){return kE(e)&&28===e.operatorToken.kind||sE(e)||(FE(e)||AE(e))&&sE(e.expression)}function wZ(e,t,n){const r=hh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return NZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return FZ(r,t);default:return t.getContextualType(e,n)}}function DZ(e,t,n){const r=cY(e,t),i=JSON.stringify(n);return 0===r?`'${Xy(i).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:i}function NZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function EZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function PZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function FZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var AZ="anonymous function";function IZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:nY(n,r)});return o?s:void 0}function OZ(e){return 179===e||180===e||181===e||171===e||173===e}function LZ(e){return 262===e||176===e||174===e||177===e||178===e}function RZ(e){return 267===e}function MZ(e){return 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===e}var jZ=vn(OZ,LZ,RZ,MZ);function BZ(e,t,n){const r=wc(t,(t=>t.end!==e?"quit":jZ(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(OZ(e.kind)){if(n&&28===n.kind)return!1}else if(RZ(e.kind)){const n=Le(e.getChildren(t));if(n&&pP(n))return!1}else if(LZ(e.kind)){const n=Le(e.getChildren(t));if(n&&Yf(n))return!1}else if(!MZ(e.kind))return!1;if(246===e.kind)return!0;const r=rQ(e,wc(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function JZ(e){let t=0,n=0;return ZI(e,(function r(i){if(MZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(OZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&ss(e,r.getStart(e)).line!==ss(e,sf(e,r.end).start).line&&n++}return t+n>=5||ZI(i,r)})),0===t&&n<=1||t/n>.2}function UZ(e,t){return WZ(e,e.getDirectories,t)||[]}function qZ(e,t,n,r,i){return WZ(e,e.readDirectory,t,n,r,i)||c}function zZ(e,t){return WZ(e,e.fileExists,t)}function $Z(e,t){return VZ((()=>Yb(t,e)))||!1}function VZ(e){try{return e()}catch(Fhe){return}}function WZ(e,t,...n){return VZ((()=>t&&t.apply(e,n)))}function HZ(e,t,n){const r=[];return Da(e,(e=>{if(e===n)return!0;const i=ra(e,"package.json");zZ(t,i)&&r.push(i)})),r}function KZ(e,t){let n;return Da(e,(e=>"node_modules"===e||(n=Jz(e,(e=>zZ(t,e)),"package.json"),!!n||void 0))),n}function GZ(e,t){if(!t.fileExists)return[];const n=[];return Da(Go(e),(e=>{const r=ra(e,"package.json");if(t.fileExists(r)){const e=XZ(r,t);e&&n.push(e)}})),n}function XZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDepen
6dencies"],r=Qb(t.readFile(e)||""),i={};if(r)for(const s of n){const e=r[s];if(!e)continue;const t=new Map;for(const n in e)t.set(n,e[n]);i[s]=t}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return g(m({},i),{parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)});function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function QZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||GZ(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Xy(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},allowsImportingSourceFile:function(e,t){if(!r.length)return!0;if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n)return a.set(e,!0),!0;const i=s(n);return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!Jo(e)&&!Mo(e))||s(e))}};function s(e){const t=u(e);for(const n of r)if(n.has(t)||n.has(Oj(t)))return!0;return!1}function c(t){return!!(zm(e)&&$m(e)&&qK.nodeCoreModules.has(t)&&(void 0===i&&(i=YZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=aB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?Jo(o)||Mo(o)?void 0:u(o):void 0}function u(e){const t=Zo(Rj(e)).slice(1);return fn(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function YZ(e){return te(e.imports,(({text:e})=>qK.nodeCoreModules.has(e)))}function ZZ(e){return F(Zo(e),"node_modules")}function e0(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function t0(e,t){const n=Ue(t,RQ(e),kt,Bt);if(n>=0){const r=t[n];return En.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),yt(r,e0)}}function n0(e,t){var n;let r=Ue(t,e.start,(e=>e.start),jt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Ks(e);for(;;){const n=ht(t[r],e0);if(!n||n.start>o)break;Ys(e,n)&&i.push(n),r++}return i}function r0({startPosition:e,endPosition:t}){return sc(e,void 0===t?e:t)}function i0(e,t){return wc(ZX(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>Ks(t)?"quit":s_(n)&&bY(t,RQ(n,e))))}function o0(e,t,n=kt){return e?pt(e)?n(j(e,t)):t(e,0):void 0}function a0(e){return pt(e)?Ae(e):e}function s0(e,t){if(l0(e)){const n=u0(e);if(n)return n;const r=d0(_0(e),t,!1),i=d0(_0(e),t,!0);return r===i?r:[r,i]}return e.name}function c0(e,t,n){return l0(e)?u0(e)||d0(_0(e),t,!!n):e.name}function l0(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function u0(e){return y(e.declarations,(e=>{var t,n,r;return NP(e)?null==(t=ht(SA(e.expression),nN))?void 0:t.text:FP(e)&&2097152===e.symbol.flags?null==(n=ht(e.propertyName,nN))?void 0:n.text:null==(r=ht(Jc(e),nN))?void 0:r.text}))}function _0(e){var t;return En.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${En.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=En.formatSyntaxKind(e.kind),n=Wm(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${En.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}function d0(e,t,n){return p0(_T(Xy(e.name)),t,n)}function p0(e,t,n){const r=Xo(nn(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);Is(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let s=1;s<r.length;s++){const e=r.charCodeAt(s),n=Os(e,t);if(n){let t=String.fromCharCode(e);o||(t=t.toUpperCase()),i+=t}o=n}return Wh(i)?`_${i}`:i||"_"}function f0(e,t,n){const r=t.length;if(r+n>e.length)return!1;for(let i=0;i<r;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+n))return!1;return!0}function m0(e){return 95===e.charCodeAt(0)}function g0(e){return!h0(e)}function h0(e){const t=e.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(Wm(e)||!wc(e,(e=>dP(e)&&Tp(e))))}function y0(e){return!!(65536&bc(e))}function v0(e,t){const n=y(e.imports,(e=>{if(qK.nodeCoreModules.has(e.text))return fn(e.text,"node:")}));return null!=n?n:t.usesUriStyleNodeCoreModules}function b0(e){return"\n"===e?1:0}function x0(e){return pt(e)?_S(fS(e[0]),e.slice(1)):fS(e)}function S0({options:e},t){const n=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||n&&
6!JZ(t);return g(m({},e),{semicolons:r?"remove":"ignore"})}function k0(e){return 2===e||3===e}function T0(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function C0(e,t){const n=new Set,r=new Set,i=new Set;for(const a of t)if(!GP(a)){const t=bh(a.expression);if(Xl(t))switch(t.kind){case 15:case 11:n.add(t.text);break;case 9:r.add(parseInt(t.text));break;case 10:const e=RT(tn(t.text,"n")?t.text.slice(0,-1):t.text);e&&i.add(LT(e))}else{const t=e.getSymbolAtLocation(a.expression);if(t&&t.valueDeclaration&&tF(t.valueDeclaration)){const n=e.getConstantValue(t.valueDeclaration);void 0!==n&&o(n)}}}return{addValue:o,hasValue:function(e){switch(typeof e){case"string":return n.has(e);case"number":return r.has(e);case"object":return i.has(LT(e))}}};function o(e){switch(typeof e){case"string":n.add(e);break;case"number":r.add(e)}}}function w0(e,t,n,r){var i;if(!nT("string"==typeof e?e:e.fileName))return!1;const o=t.getCompilerOptions(),a=JS(o),s="string"==typeof e?R$(la(e,n.getCurrentDirectory(),iv(n)),null==(i=t.getPackageJsonInfoCache)?void 0:i.call(t),n,o):e.impliedNodeFormat;if(99===s)return!1;if(1===s)return!0;if(o.verbatimModuleSyntax&&1===a)return!0;if(o.verbatimModuleSyntax&&tk(a))return!1;if("object"==typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return r}function D0(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function N0(e,t,n,r){var i;const o=M$(e,null==(i=n.getPackageJsonInfoCache)?void 0:i.call(n),r,n.getCompilerOptions());let a,s;return"object"==typeof o&&(a=o.impliedNodeFormat,s=o.packageJsonScope),{path:la(e,n.getCurrentDirectory(),n.getCanonicalFileName),fileName:e,externalModuleIndicator:99===t||void 0,commonJsModuleIndicator:1===t||void 0,impliedNodeFormat:a,packageJsonScope:s,statements:c,imports:c}}var E0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(E0||{}),P0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(P0||{});function F0(e){let t=1;const n=ct(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,u,_,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),u){const t=lC(u.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=Mj(Rj(u.fileName.substring(r+1,o))),fn(e,u.path.substring(0,n))){const e=i.get(f),t=u.fileName.substring(0,r+1);e?n>e.indexOf(ZM)&&i.set(f,t):i.set(f,t)}}}const m=1===_&&zb(s)||s,g=0===_||pd(m)?Pc(c):s0(m,void 0),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Xy(l.name),b=t++,x=Nx(s,p),S=33554432&s.flags?void 0:s,k=33554432&l.flags?void 0:l;S&&k||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${eJ(Nx(t,r))} ${e} ${i}`}(h,s,Vs(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:u,moduleFileName:null==u?void 0:u.fileName,packageName:f,exportKind:_,targetFlags:x.flags,isFromPackageJson:d,symbol:S,moduleSymbol:k})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(s)},search:(t,r,a,c)=>{if(t===o)return bd(n,((t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1),s=""===a?void 0:a;return{symbolName:o,ambientModuleName:s}}(n),u=r&&t[0].capitalizedSymbolName||o;if(a(u,t[0].targetFlags)){const r=t.map(s).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&fn(t.moduleFileName,r))return!0;const o=i.get(n);return!o||fn(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=c(r,u,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(l(e)&&l(t)||(o&&o!==t.path||n&&YZ(e)!==YZ(t)||!_e(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!_e(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>bp(e)&&e.name.text===i;if(n=N(e.statements,o,n+1),r=N(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),0):(o=t.path,1)))};return En.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function s(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:s}=t,[l,u]=r.get(n)||c;if(l&&u)return{symbol:l,moduleSymbol:u,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a};const _=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||u||En.checkDefined(t.moduleFile?_.getMergedSymbol(t.moduleFile.symbol):_.tryFindAmbientModule(t.moduleName)),p=t.symbol||l||En.checkDefined(2===i?_.resolveExter
6nalModuleSymbol(d):_.tryGetMemberInModuleExportsAndProperties(Pc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function A0(e,t,n,r,i,o,a){var s;if(t===n)return!1;const c=null==a?void 0:a.get(t.path,n.path,r,{});if(void 0!==(null==c?void 0:c.isBlockedByPackageJsonDependencies))return!c.isBlockedByPackageJsonDependencies;const l=iv(o),u=null==(s=o.getGlobalTypingsCacheLocation)?void 0:s.call(o),_=!!aB.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r){const i=Da(t,(e=>"node_modules"===Xo(e)?e:void 0)),o=i&&Go(n(i));return void 0===o||fn(n(e),o)||!!r&&fn(n(r),o)}(t.fileName,r,l,u)}));if(i){const e=_&&i.allowsImportingSourceFile(n,o);return null==a||a.setBlockedByPackageJsonDependencies(t.path,n.path,r,{},!e),e}return _}function I0(e,t,n,r,i){var o,a;const s=rv(t),c=n.autoImportFileExcludePatterns&&H(n.autoImportFileExcludePatterns,(e=>{const t=Ok(e,"","exclude");return t?Mk(t,s):void 0}));O0(e.getTypeChecker(),e.getSourceFiles(),c,t,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=ar(),r=e.getTypeChecker();O0(l.getTypeChecker(),l.getSourceFiles(),c,t,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(ar()-n))}}function O0(e,t,n,r,i){var o,a;const s=null==(o=r.getSymlinkCache)?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),c=n&&(({fileName:e,path:t})=>{var r;if(n.some((t=>t.test(e))))return!0;if((null==s?void 0:s.size)&&ej(e)){let i=Go(e);return null!=(r=Da(Go(t),(t=>{const r=s.get(_a(t));if(r)return r.some((t=>n.some((n=>n.test(e.replace(i,t))))));i=Go(i)})))&&r}return!1});for(const l of e.getAmbientModules())l.name.includes("*")||n&&(null==(a=l.declarations)?void 0:a.every((e=>c(e.getSourceFile()))))||i(l,void 0);for(const l of t)_f(l)&&!(null==c?void 0:c(l))&&i(e.getMergedSymbol(l.symbol),l)}function L0(e,t,n,r,i){var o,a,s,c,l;const u=ar();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const _=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||F0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(_.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),_;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{I0(n,t,r,!0,((t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Map,s=r.getTypeChecker(),c=R0(t,s);c&&M0(c.symbol,s)&&_.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&M0(r,s)&&$x(a,i)&&_.add(e.path,r,i,t,n,0,o,s)}))}))}catch(p){throw _.clear(),p}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${ar()-u} ms`),_}function R0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const r=t.tryGetMemberInModuleExports("default",e);return r?{symbol:r,exportKind:1}:void 0}function M0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||ly(e)||uy(e))}function j0(e,t,n,r,i){let o,a=e;for(;a;){const e=u0(a);if(e){const t=i(e);if(t)return t}if("default"!==a.escapedName&&"export="!==a.escapedName){const e=i(a.name);if(e)return e}o=fe(o,a),a=2097152&a.flags?t.getImmediateAliasedSymbol(a):void 0}for(const s of null!=o?o:c)if(s.parent&&pd(s.parent)){const e=i(d0(s.parent,BS(n),r));if(e)return e}}function B0(){const e=Rs(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return En.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let u=0;const _=[];let d=0;do{i=e.scan(),Gh(i)||(p(),o=i);const n=e.getTokenEnd();if(z0(e.getTokenStart(),n,l,V0(i),_),n>=t.length){const t=q0(e,i,Oe(a));void 0!==t&&(u=t)}}while(1!==i);
6function p(){switch(i){case 44:case 69:U0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=Oe(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():En.assertEqual(i,17,"Should have been a template middle.")):(En.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Jh(i))break;(25===o||Jh(o)&&Jh(i)&&!function(e,t){if(!EQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:u,spans:_}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let a=0;a<r.length;a+=3){const e=r[a],t=r[a+1],o=r[a+2];if(i>=0){const t=e-i;t>0&&n.push({length:t,classification:4})}n.push({length:t,classification:$0(o)}),i=e+t}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var J0,U0=et([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0));function q0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Yl(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return En.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function z0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function $0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function V0(e){if(Jh(e))return 3;if(function(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 
667:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(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;default:return Yl(e)?6:2}}function W0(e,t,n,r,i){return Q0(K0(e,t,n,r,i))}function H0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function K0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&nc(i,s.pos,s.getFullWidth())){if(H0(t,s.kind),nN(s)&&!Ud(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&G0(t,HG(s),e);r&&function(e,t,n){const r=t-e;En.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function G0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return te(e.declarations,(e=>dP(e)&&1===Hj(e)))}(e)?14:void 0:2097152&r?G0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function X0(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 Q0(e){En.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let r=0;r<t.length;r+=3)n.push({textSpan:ac(t[r],t[r+1]),classificationType:X0(t[r+2])});return n}function Y0(e,t,n){return Q0(Z0(e,t,n))}function Z0(e,t,n){const r=n.start,i=n.length,o=Rs(99,!1,t.languageVariant,t.text),a=Rs(99,!1,t.languageVariant,t.text),s=[];return g(t),{spans:s,endOfLineState:0};function c(e,t,n){s.push(e),s.push(t),s.push(n)}function l(e,n,r,i){if(3===n){const n=cO(t.text,r,i);if(n&&n.jsDoc)return HT(n.jsDoc,e),void function(e){var t,n,r,i,o,a,s,l;let d=e.pos;if(e.tags)for(const f of e.tags){f.pos!==d&&u(d,f.pos-d),c(f.pos,1,10),c(f.tagName.pos,f.tagName.end-f.tagName.pos,18),d=f.tagName.end;let e=f.tagName.end;switch(f.kind){case 341:const c=f;p(c),e=c.isNameFirst&&(null==(t=c.typeExpression)?void 0:t.end)||c.name.end;break;case 348:const u=f;e=u.isNameFirst&&(null==(n=u.typeExpression)?void 0:n.end)||u.name.end;break;case 345:_(f),d=f.end,e=f.typeParameters.end;break;case 346:const m=f;e=309===(null==(r=m.typeExpression)?void 0:r.kind)&&(null==(i=m.fullName)?void 0:i.end)||(null==(o=m.typeExpression)?void 0:o.end)||e;break;case 338:case 343:case 340:e=f.typeExpression.end;break;case 344:g(f.typeExpression),d=f.end,e=f.typeExpression.end;break;case 342:g(f.typeExpression),d=f.end,e=(null==(a=f.typeExpression)?void 0:a.end)||e;break;case 347:e=(null==(s=f.name)?void 0:s.end)||e;break;case 328:case 329:e=f.class.end;break;case 349:g(f.typeExpression),d=f.end,e=(null==(l=f.typeExpression)?void 0:l.end)||e}"object"==typeof f.comment?u(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&u(e,f.end-e)}return void(d!==e.end&&u(d,e.end-d));function p(e){e.isNameFirst&&(u(d,e.name.pos-d),c(e.name.pos,e.name.end-e.name.pos,17),d=e.name.end),e.typeExpression&&(u(d,e.typeExpression.pos-d),g(e.typeExpression),d=e.typeExpression.end),e.isNameFirst||(u(d,e.name.pos-d),c(e.name.pos,e.name.end-e.name.pos,17),d=e.name.end)}}(n.jsDoc)}else if(2===n&&function(e,n){const r=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=t.text.substr(e,n),a=r.exec(o);if(!a)return!1;if(!a[3]||!(a[3]in eo))return!1;let s=e;u(s,a[1].length),s+=a[1].length,c(s,a[2].length,10),s+=a[2].length,c(s,a[3].length,21),s+=a[3].length;const l=a[4];let _=s;for(;;){const e=i.exec(l);if(!e)break;const t=s+e.index+e[1].length;t>_&&(u(_,t-_),_=t),c(_,e[2].length,22),_+=e[2].length,e[3].length&&(u(_,e[3].length),_+=e[3].length),c(_,e[4].length,5),_+=e[4].length,e[5].length&&(u(_,e[5].length),_+=e[5].length),c(_,e[6].length,24),_+=e[6].length}s+=a[4].length,s>_&&u(_,s-_),a[5]&&(c(s,a[5].length,10),s+=a[5].length);const d=e+n;return s<d&&u(s,d-s),!0}(r,i))return;u(r,i)}function u(e,t){c(e,t,1)}function _(e){for(const t of e.getChildren())g(t)}function d(e,t,n){let r;for(r=t;r<n&&!us(e.charCodeAt(r));r++);for(c(t,r-t,1),a.resetTokenState(r);a.getTokenEnd()<n;)p()}function p(){const e=a.getTokenEnd(),t=a.scan(),n=a.getTokenEnd(),r=m(t);r&&c(e,n-e,r)}function f(e){if(yF(e))return!0;
6if(Ud(e))return!0;const n=function(e){switch(e.parent&&e.parent.kind){case 286:if(e.parent.tagName===e)return 19;break;case 287:if(e.parent.tagName===e)return 20;break;case 285:if(e.parent.tagName===e)return 21;break;case 291:if(e.parent.name===e)return 22}}(e);if(!Hl(e)&&12!==e.kind&&void 0===n)return!1;const r=12===e.kind?e.pos:function(e){for(o.resetTokenState(e.pos);;){const n=o.getTokenEnd();if(!gs(t.text,n))return n;const r=o.scan(),i=o.getTokenEnd(),a=i-n;if(!Gh(r))return n;switch(r){case 4:case 5:continue;case 2:case 3:l(e,r,n,a),o.resetTokenState(i);continue;case 7:const s=t.text,u=s.charCodeAt(n);if(60===u||62===u){c(n,a,1);continue}En.assert(124===u||61===u),d(s,n,i);break;case 6:break;default:En.assertNever(r)}}}(e),i=e.end-r;if(En.assert(i>=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Jh(e))return 3;if((30===e||32===e)&&t&&kQ(t.parent))return 10;if(Uh(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(Yl(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?Ev(t)?3:17:void 0}if(jl(t.parent))return 3}return 2}}function g(n){if(n&&rc(r,i,n.pos,n.getFullWidth())){H0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function e1(e){return!!e.sourceFile}function t1(e,t,n){return n1(e,t,n)}function n1(e,t="",n,r){const i=new Map,o=un(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return u(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return u(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=e1(e)?e:e.get(En.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return En.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function u(e,t,o,s,c,u,_,d,p){var f,m,g,h;d=Uk(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:BS(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&R$(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:MS(y),jsDocParsingMode:n};x.languageVersion=b,En.assertEqual(n,x.jsDocParsingMode);const S=i.size,k=i1(s,x.impliedNodeFormat),T=X(i,k,(()=>new Map));if(pr){i.size>S&&pr.instant(pr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:k});const e=!fO(t)&&bd(i,((e,n)=>n!==k&&e.has(t)&&n));e&&pr.instant(pr.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:k})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(k,t);e&&e.scriptKind===d&&e.text===KQ(c)&&(En.assert(_),w={sourceFile:e,languageServiceRefCount:0},D())}if(w)w.sourceFile.version!==u&&(w.sourceFile=g7(w.sourceFile,c,u,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(k,t,w.sourceFile)),_&&w.languageServiceRefCount++;else{const n=m7(e,c,x,u,!1,d);r&&r.setDocument(k,t,n),w={sourceFile:n,languageServiceRefCount:1},D()}return En.assert(0!==w.languageServiceRefCount),w.sourceFile;function D(){if(C)if(e1(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function _(e,t,n,r){const o=En.checkDefined(i.get(i1(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,En.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(e1(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,b(a.values(),kt))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,la(e,t,o),n,r1(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,la(e,t,o),n,r1(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return _(la(e,t,o),r1(n),r,i)},releaseDocumentWithKey:_,getKeyForCompilationSettings:r1,getDocumentRegistryBucketKeyWithMode:i1,reportStats:function(){const e=Xe(i.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=i.get(e),n=[];return t.forEach(((e,t)=>{e1(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function r1(e){return DM(e,qO)}function i1(e,t){return t?`${e}|${t}`:e}function o1(e,t,n,r,i,o,a){const s=rv(r),c=un(s),l=a1(t,n,c,a),u=a1(n,t,c,a);return Q_e.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Go(s.fileName),l=om(s);function u(e){const t=aE(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const r of t)n=_(r)||n;return n}function _(e){if(!BD(e))return!1;const r=s1(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,_1(e,s),d(i)),!0)}function d(e){return ka(c,e,!a)}l&&d1(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(u(e)||"include"!==n||!aE(e.initializer))return;const l=H(e.initializer.elements,(e=>BD(e)?e.text:void 0));if(0===l.length)return;const _=Rk(c,[],l,a,o);return void(Mk(En.checkDefined(_.includeFilePattern),a).test(r)&&!Mk(En.checkDefined(_.includeFilePattern),a).test(i)&&t.insertN
6odeAfter(s,Le(e.initializer.elements),_w.createStringLiteral(d(i))))}case"compilerOptions":return void d1(e.initializer,((e,t)=>{const n=dL(t);En.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?u(e):"paths"===t&&d1(e.initializer,(e=>{if(aE(e.initializer))for(const t of e.initializer.elements)_(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=null!=c?c:s.fileName,u=Go(l),_=r(s.fileName),d=_||s.fileName,p=Go(d),f=void 0!==c||void 0!==_;u1(s,t,(e=>{if(!Jo(e))return;const t=s1(p,e),r=n(t);return void 0===r?void 0:da(ka(u,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>yp(e))))return;const o=void 0!==_?l1(t,UM(t.text,d,e.getCompilerOptions(),i),n,a):c1(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&Jo(t.text))?aB.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,tY(e,i),t.text):void 0}))}}(e,i,l,u,r,c)}))}function a1(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=vk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=Ca(e,t,r);return s1(Go(n),i)}(o.fileName,a,e,n):a}}function s1(e,t){return da(function(e,t){return sa(ra(e,t))}(e,t))}function c1(e,t,n,r,i,o){if(e){const t=w(e.declarations,nF).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return l1(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function l1(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=a(t.resolvedModule.resolvedFileName);if(e)return e}const i=d(t.failedLookupLocations,(function(e){const t=n(e);return t&&w(r,(e=>e.fileName===t))?o(e):void 0}))||Jo(e.text)&&d(t.failedLookupLocations,o);return i||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(e){return tn(e,"/package.json")?void 0:a(e)}function a(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function u1(e,t,n,r){for(const i of e.referencedFiles||c){const r=n(i.fileName);void 0!==r&&r!==e.text.slice(i.pos,i.end)&&t.replaceRangeWithText(e,i,r)}for(const i of e.imports){const n=r(i);void 0!==n&&n!==i.text&&t.replaceRangeWithText(e,_1(i,e),n)}}function _1(e,t){return nx(e.getStart(t)+1,e.end-1)}function d1(e,t){if(sE(e))for(const n of e.properties)YP(n)&&BD(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:RQ(e,t),kind:"none"}}function n(e){return nP(e)?[e]:rP(e)?re(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):vu(e)?void 0:i(e,n)}function r(e){return Ul(e)?[e]:vu(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...ft(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return wc(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!wc(e.parent,(e=>tP(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return vu(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!F(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return d(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return c(t);case 255:return u(t)}}function u(e){const t=[];return s(t,e.getFirstToken(),109),d(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),d(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function _(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,BX(e,98,t),98),n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Yf(e)||307===e.kind)return e;if(rP(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return d(n(r),(e=>{i.push(BX(e,111,t))})),Yf(r)&&Jf(r,(e=>{i.push(BX(e,107,t))})),i}function f(e,t){const r=cm(e);if(!r)return;const i=[];return Jf(yt(r.body,JE),(e=>{i.push(BX(e,107,t))})),d(n(r.body),(e=>{i.push(BX(e,111,t))})),i}function m(e){const t=cm(e);if(!t)return;const n=[];
6return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),ZI(t,(e=>{g(e,(e=>{bE(e)&&s(n,e.getFirstToken(),135)}))})),n}function g(e,t){t(e),vu(e)||Du(e)||lP(e)||dP(e)||uP(e)||Mu(e)||ZI(e,(e=>g(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=QX(r,i);if(a.parent&&(jP(a.parent)&&a.parent.tagName===a||BP(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=Ace.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=tt(a.map(Ace.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=un(n.useCaseSensitiveFileNames());return Xe(K(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(la(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=w(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,En.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return $E(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;$E(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!$E(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let o=0;o<r.length;o++){if(93===r[o].kind&&o<r.length-1){const e=r[o],t=r[o+1];let a=!0;for(let r=t.getStart(n)-1;r>=e.end;r--)if(!ls(n.text.charCodeAt(r))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:sc(e.getStart(),t.end),kind:"reference"}),o++;continue}}i.push(t(r[o],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,YE,f);case 111:return o(e.parent,nP,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,rP,_);case 109:return o(e.parent,eP,u);case 84:case 90:return GP(e.parent)||KP(e.parent)?o(e.parent.parent.parent,eP,u):void 0;case 83:case 88:return o(e.parent,Ul,l);case 99:case 117:case 92:return o(e.parent,(e=>u_(e,!0)),c);case 137:return i(DN,[137]);case 139:case 153:return i(Nu,[139,153]);case 135:return o(e.parent,bE,m);case 134:return a(m(e));case 127:return a(function(e){const t=cm(e);if(!t)return;const n=[];return ZI(t,(e=>{g(e,(e=>{wE(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return du(e.kind)&&(N_(e.parent)||UE(e.parent))?a((r=e.kind,H(function(e,t){const n=e.parent;switch(n.kind){case 268:case 307:case 241:case 296:case 297:return 64&t&&cP(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...Du(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=w(n.members,DN);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;case 210:return;default:En.assertNever(n,"Invalid container kind.")}}(e.parent,gb(r)),(e=>hY(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return H(null==(i=ht(e,T_))?void 0:i.symbol.declarations,(e=>t(e)?w(e.getChildren(n),(e=>F(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(J0||(J0={}));var p1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(p1||{});function f1(e,t){return{kind:e,isCaseSensitive:t}}function m1(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:E1(t=e.trim()),subWordTextChunks:N1(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>f1(2,!0),getFullMatch:()=>f1(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){const i=y1(t,Le(n),r);if(!i)return;if(n.length-1>e.length)return;let o;for(let a=n.length-2,s=e.length-1;a>=0;a-=1,s-=1)o=v1(o,y1(e[s],n[a],r));return o}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>y1(e,Le(n),t),patternContainsDots:n.length>1}}function g1(e,t){let n=t.get(e);return n||t.set(e,n=F1(e)),n}function h1(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(j1(t,((t,n)=>C1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return f1(t.text.length===e.length?0:1,fn(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=g1(e,n);for(const n of i)if(x1(e,n,t.text,!0))return f1(2,x1(e,n,t.text,!1));if(t.text.length<e.length&&k1(e.charCodeAt(r)))return f1(2,!1)}else{if(e.indexOf(t.text)>0)return f1(2,!0);if(t.characterSpans.length>0){const r=g1(e,n),i=!!S1(e,r,t,!1)||!S1(e,r,t,!0)&&void 0;if(void 0!==i)return f1(3,i)}}}function y1(e,t,n){if(j1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=h1(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const o of r)i=v1(i,h1(e,o,n));return i}function v1(e,t){return Jt([e,t],b1)}function b1(e,t){return void 0===e?1:void 0===t?-1:jt(e.kind,t.kind)||Yt(!e.isCaseSensitive,!t.isCaseSensitive)}
6function x1(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&M1(0,i.length,(o=>function(e,t,n){return n?C1(e)===C1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function S1(e,t,n,r){const i=n.characterSpans;let o=0,a=0;for(;;){if(a===i.length)return!0;if(o===t.length)return!1;let s=t[o],c=!1;for(;a<i.length;a++){const t=i[a];if(c&&(!k1(n.text.charCodeAt(i[a-1].start))||!k1(n.text.charCodeAt(i[a].start))))break;if(!x1(e,s,n.text,r,t))break;c=!0,s=ac(s.start+t.length,s.length-t.length)}o++}}function k1(e){if(e>=65&&e<=90)return!0;if(e<127||!Wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function T1(e){if(e>=97&&e<=122)return!0;if(e<127||!Wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function C1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function w1(e){return e>=48&&e<=57}function D1(e){return k1(e)||T1(e)||w1(e)||95===e||36===e}function N1(e){const t=[];let n=0,r=0;for(let i=0;i<e.length;i++)D1(e.charCodeAt(i))?(0===r&&(n=i),r++):r>0&&(t.push(E1(e.substr(n,r))),r=0);return r>0&&t.push(E1(e.substr(n,r))),t}function E1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:P1(e)}}function P1(e){return A1(e,!1)}function F1(e){return A1(e,!0)}function A1(e,t){const n=[];let r=0;for(let i=1;i<e.length;i++){const o=w1(e.charCodeAt(i-1)),a=w1(e.charCodeAt(i)),s=R1(e,t,i),c=t&&L1(e,i,r);(I1(e.charCodeAt(i-1))||I1(e.charCodeAt(i))||o!==a||s||c)&&(O1(e,r,i)||n.push(ac(r,i-r)),r=i)}return O1(e,r,e.length)||n.push(ac(r,e.length-r)),n}function I1(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function O1(e,t,n){return j1(e,(e=>I1(e)&&95!==e),t,n)}function L1(e,t,n){return t!==n&&t+1<e.length&&k1(e.charCodeAt(t))&&T1(e.charCodeAt(t+1))&&j1(e,k1,n,t)}function R1(e,t,n){const r=k1(e.charCodeAt(n-1));return k1(e.charCodeAt(n))&&(!t||!r)}function M1(e,t,n){for(let r=e;r<t;r++)if(!n(r))return!1;return!0}function j1(e,t,n=0,r=e.length){return M1(n,r,(n=>t(e.charCodeAt(n),n)))}function B1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function u(){return a=s,s=$G.scan(),19===s?c++:20===s&&c--,s}function d(){const e=$G.getTokenValue(),t=$G.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){i.push(d()),f()}function f(){0===c&&(l=!0)}function m(){let e=$G.getToken();return 138===e&&(e=u(),144===e&&(e=u(),11===e&&(o||(o=[]),o.push({ref:d(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=$G.getToken();if(102===e){if(e=u(),21===e){if(e=u(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e&&$G.lookAhead((()=>{const e=$G.scan();return 161!==e&&(42===e||19===e||80===e||Jh(e))}))&&(e=u()),80===e||Jh(e))if(e=u(),161===e){if(e=u(),11===e)return p(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=u()}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&p()))}else 42===e&&(e=u(),130===e&&(e=u(),(80===e||Jh(e))&&(e=u(),161===e&&(e=u(),11===e&&p()))))}return!0}return!1}function h(){let e=$G.getToken();if(95===e){if(f(),e=u(),156===e&&$G.lookAhead((()=>{const e=$G.scan();return 42===e||19===e}))&&(e=u()),19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&p()))}else if(42===e)e=u(),161===e&&(e=u(),11===e&&p());else if(102===e&&(e=u(),156===e&&$G.lookAhead((()=>{const e=$G.scan();return 80===e||Jh(e)}))&&(e=u()),(80===e||Jh(e))&&(e=u(),64===e&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?u():$G.getToken();return 149===n&&(n=u(),21===n&&(n=u(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=$G.getToken();if(80===e&&"define"===$G.getTokenValue()){if(e=u(),21!==e)return!0;if(e=u(),11===e||15===e){if(e=u(),28!==e)return!0;e=u()}if(23!==e)return!0;for(e=u();24!==e&&1!==e;)11!==e&&15!==e||p(),e=u();return!0}return!1}if(t&&function(){for($G.setText(e),u();1!==$G.getToken();){if(16===$G.getToken()){const e=[$G.getToken()];e:for(;_(e);){const t=$G.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:_(e)&&e.push(t);break;case 20:_(e)&&(16===Oe(e)?18===$G.reScanTemplateToken(!1)&&e.pop():e.pop())}}u()}m()||g()||h()||n&&(y(!1,!0)||v())||u()}$G.setText(void 0)}(),gO(r,e),hO(r,vt),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var J1=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/;function U1(e){const t=un(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!fO(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(r){if(fO(r.fileName))return;const i=s(r.fileName);if(!i)return;const o=e.getProgram();if(o.isSourceOfProjectReferenceRedirect(i.fileName))return;const c=o.getCompilerOptions().outFile,l=c?_T(c)+".d.ts":_v(r.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),t);
6if(void 0===l)return;const u=a(l,r.fileName).getGeneratedPosition(r);return u===r?void 0:u},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return la(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let c;if(e.getDocumentPositionMapper)c=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=l(n);c=r&&q1({getSourceFileLike:l,getCanonicalFileName:t,log:t=>e.log(t)},n,wJ(r.text,rs(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,c||UJ),c||UJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(e){return is(rs(this),e)}}}(a);return r.set(n,s),s||void 0}function l(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||c(t)}}function q1(e,t,n,r){let i=DJ(n);if(i){const n=J1.exec(i);if(n){if(n[1]){const r=n[1];return z1(e,Kb(Eo,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&aa(i,Go(t));for(const s of o){const n=aa(s,Go(t)),i=r(n,a);if(mt(i))return z1(e,i,n);if(void 0!==i)return i||void 0}}function z1(e,t,n){const r=PJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(mt)))return JJ(e,r,n)}var $1=new Map;function V1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;1!==e.impliedNodeFormat&&!$o(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&(ZQ(t)||eY(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&Qm(W1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!kE(t))return Qm(t,!0);const n=hg(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(Gp(kE(a=e.commonJsModuleIndicator)?a.left:a,Pa.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=$m(e);if($1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(mE(e)){if(oP(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!sP(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,o)&&i.push(Gp(oP(n.parent)?n.parent.name:n,Pa.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(UE(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Qm(e,!0)&&i.push(Gp(e,Pa.require_call_may_be_converted_to_an_import))}const t=Q7.getJSDocTypedefNodes(n);for(const e of t)i.push(Gp(e,Pa.JSDoc_typedef_may_be_converted_to_TypeScript_type));Q7.parameterShouldGetTypeFromJSDoc(n)&&i.push(Gp(n.name||n,Pa.JSDoc_types_may_be_moved_to_TypeScript_types))}t2(n)&&function(e,t,n){(function(e,t){return!Yh(e)&&e.body&&JE(e.body)&&function(e,t){return!!Jf(e,(e=>G1(e,t)))}(e.body,t)&&K1(e,t)})(e,t)&&!$1.has(e2(e))&&n.push(Gp(!e.name&&oP(e.parent)&&nN(e.parent.name)?e.parent.name:e,Pa.This_may_be_converted_to_an_async_function))}(n,o,i),n.forEachChild(t)}(e),VS(t.getCompilerOptions()))for(const c of e.imports){const n=H1(Og(c));if(!n)continue;const o=null==(r=t.getResolvedModuleFromModuleSpecifier(c,e))?void 0:r.resolvedModule,a=o&&t.getSourceFile(o.resolvedFileName);a&&a.externalModuleIndicator&&!0!==a.externalModuleIndicator&&NP(a.externalModuleIndicator)&&a.externalModuleIndicator.isExportEquals&&i.push(Gp(n,Pa.Import_may_be_converted_to_a_default_import))}return he(i,e.bindSuggestionDiagnostics),he(i,t.getSuggestionDiagnostics(e,n)),i.sort(((e,t)=>e.start-t.start))}function W1(e){return cE(e)?W1(e.expression):e}function H1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&BD(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function K1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function G1(e,t){return YE(e)&&!!e.expression&&X1(e.expression,t)}function X1(e,t){if(!Q1(e)||!Y1(e)||!e.arguments.every((e=>Z1(e,t))))return!1;let n=e.expression.expression;for(;Q1(n)||cE(n);)if(uE(n)){if(!Y1(n)||!n.arguments.every((e=>Z1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}
6function Q1(e){return uE(e)&&(cX(e,"then")||cX(e,"catch")||cX(e,"finally"))}function Y1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length<n||1===n||te(e.arguments,(e=>106===e.kind||nN(e)&&"undefined"===e.text)))}function Z1(e,t){switch(e.kind){case 262:case 218:if(1&Qh(e))return!1;case 219:$1.set(e2(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||te(Nx(n,t).declarations,(e=>vu(e)||H_(e)&&!!e.initializer&&vu(e.initializer))))}default:return!1}}function e2(e){return`${e.pos.toString()}:${e.end.toString()}`}function t2(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var n2=new Set(["isolatedModules"]);function r2(e,t){return l2(e,t,!1)}function i2(e,t){return l2(e,t,!0)}var o2,a2,s2='/// <reference no-default-lib="true"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array<T> { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n    (desc?: string | number): symbol;\n    for(name: string): symbol;\n    readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n    readonly [Symbol.toStringTag]: string;\n}',c2="lib.d.ts";function l2(e,t,n){var r;null!=o2||(o2=rO(c2,s2,{languageVersion:99}));const i=[],o=t.compilerOptions?_2(t.compilerOptions,i):{},a={target:1,jsx:1};for(const f in a)$e(a,f)&&void 0===o[f]&&(o[f]=a[f]);for(const f of $O)o.verbatimModuleSyntax&&n2.has(f.name)||(o[f.name]=f.transpileOptionValue);o.suppressOutputPathCheck=!0,o.allowNonTsExtensions=!0,n?(o.declaration=!0,o.emitDeclarationOnly=!0,o.isolatedDeclarations=!0):o.declaration=!1;const s=tx(o),c={getSourceFile:e=>e===sa(l)?u:e===sa(c2)?o2:void 0,writeFile:(e,t)=>{zo(e,".map")?(En.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",e),d=t):(En.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>c2,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:e=>e===l||!!n&&e===c2,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},l=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),u=rO(l,e,{languageVersion:BS(o),impliedNodeFormat:R$(la(l,"",c.getCanonicalFileName),void 0,c,o),setExternalModuleIndicator:MS(o),jsDocParsingMode:null!=(r=t.jsDocParsingMode)?r:0});let _,d;t.moduleName&&(u.moduleName=t.moduleName),t.renamedDependencies&&(u.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const p=B$(n?[l,c2]:[l],o,c);return t.reportDiagnostics&&(he(i,p.getSyntacticDiagnostics(u)),he(i,p.getOptionsDiagnostics())),he(i,p.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===_?En.fail("Output generation failed"):{outputText:_,diagnostics:i,sourceMapText:d}}function u2(e,t,n,r,i){const o=r2(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return he(r,o.diagnostics),o.outputText}function _2(e,t){a2=a2||L(MO,(e=>"object"==typeof e.type&&!bd(e.type,(e=>"number"!=typeof e)))),e=PQ(e);for(const n of a2){if(!$e(e,n.name))continue;const r=e[n.name];mt(r)?e[n.name]=rL(n,r,t):bd(n.type,(e=>e===r))||t.push(tL(n))}return e}var d2={};function p2(e,t,n,r,i,o,a){const s=m1(r);if(!s)return c;const l=[],u=1===e.length?e[0]:void 0;for(const c of e)n.throwIfCancellationRequested(),o&&c.isDeclarationFile||f2(c,!!a,u)||c.getNamedDeclarations().forEach(((e,n)=>{m2(s,n,e,t,c.fileName,!!a,u,l)}));return l.sort(x2),(void 0===i?l:l.slice(0,i)).map(S2)}function f2(e,t,n){return e!==n&&t&&(ZZ(e.path)||e.hasNoDefaultLib)}function m2(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(g2(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(b2(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function g2(e,t,n,r){var i;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every((e=>f2(e.getSourceFile(),n,r))));default:return!0}}function h2(e,t){const n=Jc(e);return!!n&&(v2(n,t)||167===n.kind&&y2(n.expression,t))}function y2(e,t){return v2(e,t)||cE(e)&&(t.push(e.name.text),!0)&&y2(e.expression,t)}function v2(e,t){return iy(e)&&(t.push(oy(e)),!0)}function b2(e){const t=[],n=Jc(e);
6if(n&&167===n.kind&&!y2(n.expression,t))return c;t.shift();let r=bX(e);for(;r;){if(!h2(r,t))return c;r=bX(r)}return t.reverse()}function x2(e,t){return jt(e.matchKind,t.matchKind)||Xt(e.name,t.name)}function S2(e){const t=e.declaration,n=bX(t),r=n&&Jc(n);return{name:e.name,kind:xX(t),kindModifiers:SQ(t),matchKind:p1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:RQ(t),containerName:r?r.text:"",containerKind:r?xX(n):""}}r(d2,{getNavigateToItems:()=>p2});var k2={};r(k2,{getNavigationBarItems:()=>I2,getNavigationTree:()=>O2});var T2,C2,w2,D2,N2=/\s+/g,E2=150,P2=[],F2=[],A2=[];function I2(e,t){T2=t,C2=e;try{return j(function(e){const t=[];function n(e){if(r(e)&&(t.push(e),e.children))for(const t of e.children)n(t)}return n(e),t;function r(e){if(e.children)return!0;switch(M2(e)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(M2(e.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}(B2(e)),c6)}finally{L2()}}function O2(e,t){T2=t,C2=e;try{return s6(B2(e))}finally{L2()}}function L2(){C2=void 0,T2=void 0,P2=[],w2=void 0,A2=[]}function R2(e){return y6(e.getText(C2))}function M2(e){return e.node.kind}function j2(e,t){e.children?e.children.push(t):e.children=[t]}function B2(e){En.assert(!P2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};w2=t;for(const n of e.statements)X2(n);return W2(),En.assert(!w2&&!P2.length),t}function J2(e,t){j2(w2,U2(e,t))}function U2(e,t){return{node:e,name:t||(N_(e)||s_(e)?Jc(e):void 0),additionalNodes:void 0,parent:w2,children:void 0,indent:w2.indent+1}}function q2(e){D2||(D2=new Map),D2.set(e,!0)}function z2(e){for(let t=0;t<e;t++)W2()}function $2(e,t){const n=[];for(;!iy(t);){const e=Tg(t),r=wg(t);t=t.expression,"prototype"===r||rN(e)||n.push(e)}n.push(t);for(let r=n.length-1;r>0;r--)V2(e,n[r]);return[n.length-1,n[0]]}function V2(e,t){const n=U2(e,t);j2(w2,n),P2.push(w2),F2.push(D2),D2=void 0,w2=n}function W2(){w2.children&&(Q2(w2.children,w2),r6(w2.children)),w2=P2.pop(),D2=F2.pop()}function H2(e,t,n){V2(e,n),X2(t),W2()}function K2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(V2(e),ZI(e.initializer,X2),W2()):H2(e,e.initializer)}function G2(e){const t=Jc(e);if(void 0===t)return!1;if(yN(t)){const e=t.expression;return Pb(e)||MD(e)||Zh(e)}return!!t}function X2(e){if(T2.throwIfCancellationRequested(),e&&!Hl(e))switch(e.kind){case 176:const t=e;H2(t,t.body);for(const e of t.parameters)fc(e,t)&&J2(e);break;case 174:case 177:case 178:case 173:G2(e)&&H2(e,e.body);break;case 172:G2(e)&&K2(e);break;case 171:G2(e)&&J2(e);break;case 273:const n=e;n.name&&J2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)J2(r);else for(const e of r.elements)J2(e);break;case 304:H2(e,e.name);break;case 305:const{expression:i}=e;nN(i)?J2(e,i):J2(e);break;case 208:case 303:case 260:{const t=e;Bu(t.name)?X2(t.name):K2(t);break}case 262:const o=e.name;o&&nN(o)&&q2(o.text),H2(e,e.body);break;case 219:case 218:H2(e,e.body);break;case 266:V2(e);for(const a of e.members)p6(a)||J2(a);W2();break;case 263:case 231:case 264:V2(e);for(const a of e.members)X2(a);W2();break;case 267:H2(e,d6(e).body);break;case 277:{const t=e.expression,n=sE(t)||uE(t)?t:gE(t)||mE(t)?t.body:void 0;n?(V2(e),X2(n),W2()):J2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:J2(e);break;case 213:case 226:{const t=hg(e);switch(t){case 1:case 2:return void H2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return nN(i.expression)?(q2(i.expression.text),o=i.expression):[a,o]=$2(n,i.expression),6===t?sE(n.right)&&n.right.properties.length>0&&(V2(n,o),ZI(n.right,X2),W2()):mE(n.right)||gE(n.right)?H2(e,n.right,o):(V2(n,o),H2(e,n.right,r.name),W2()),void z2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=$2(e,r);return V2(e,a),V2(e,TI(_w.createIdentifier(i.text),i)),X2(e.arguments[2]),W2(),W2(),void z2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(nN(r)&&"prototype"!==wg(n)&&D2&&D2.has(r.text))return void(mE(t.right)||gE(t.right)?H2(e,t.right,r):xg(n)&&(V2(t,r),H2(t.left,t.right,Tg(n)),W2()
6));break}case 4:case 0:case 8:break;default:En.assertNever(t)}}default:V_(e)&&d(e.jsDoc,(e=>{d(e.tags,(e=>{qg(e)&&J2(e)}))})),ZI(e,X2)}}function Q2(e,t){const n=new Map;R(e,((e,r)=>{const i=e.name||Jc(e.node),o=i&&R2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(Z2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!Z2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}var Y2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function Z2(e,t,n,r){return!!function(e,t,n,r){function i(e){return mE(e)||sP(e)||oP(e)}const o=kE(t.node)||uE(t.node)?hg(t.node):0,a=kE(e.node)||uE(e.node)?hg(e.node):0;if(Y2[o]&&Y2[a]||i(e.node)&&Y2[o]||i(t.node)&&Y2[a]||cP(e.node)&&e6(e.node)&&Y2[o]||cP(t.node)&&Y2[a]||cP(e.node)&&e6(e.node)&&i(t.node)||cP(t.node)&&i(e.node)&&e6(e.node)){let o=e.additionalNodes&&Oe(e.additionalNodes)||e.node;if(!cP(e.node)&&!cP(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=U2(TI(_w.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?re([r],t.children||[t]):re(e.children||[m({},e)],[r])}else(e.children||t.children)&&(e.children=re(e.children||[m({},e)],t.children||[t]),e.children&&(Q2(e.children,e),r6(e.children)));o=e.node=TI(_w.createClassDeclaration(void 0,e.name||_w.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=re(e.children,t.children),e.children&&Q2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?TI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(TI(_w.createClassDeclaration(void 0,e.name||_w.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!t6(e,n)||!t6(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Qv(e)===Qv(t);case 267:return n6(e,t)&&_6(e)===_6(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=re(i.children,o.children),i.children&&(Q2(i.children,i),r6(i.children)),!0);var i,o}function e6(e){return!!(16&e.flags)}function t6(e,t){const n=pP(e.parent)?e.parent.parent:e.parent;return n===t.node||F(t.additionalNodes,n)}function n6(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||n6(e.body,t.body)):e.body===t.body}function r6(e){e.sort(i6)}function i6(e,t){return Xt(o6(e.node),o6(t.node))||jt(M2(e),M2(t))}function o6(e){if(267===e.kind)return u6(e);const t=Jc(e);if(t&&hu(t)){const e=ry(t);return e&&Pc(e)}switch(e.kind){case 218:case 219:case 231:return g6(e);default:return}}function a6(e,t){if(267===e.kind)return y6(u6(e));if(t){const e=nN(t)?t.text:lE(t)?`[${R2(t.argumentExpression)}]`:R2(t);if(e.length>0)return y6(e)}switch(e.kind){case 307:const t=e;return aO(t)?`"${qy(Xo(_T(sa(t.fileName))))}"`:"<global>";case 277:return NP(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&ub(e)?"default":g6(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function s6(e){return{text:a6(e.node,e.name),kind:xX(e.node),kindModifiers:m6(e.node),spans:l6(e),nameSpan:e.name&&f6(e.name),childItems:j(e.children,s6)}}function c6(e){return{text:a6(e.node,e.name),kind:xX(e.node),kindModifiers:m6(e.node),spans:l6(e),childItems:j(e.children,(function(e){return{text:a6(e.node,e.name),kind:xX(e.node),kindModifiers:SQ(e.node),spans:l6(e),childItems:A2,indent:0,bolded:!1,grayed:!1}}))||A2,indent:e.indent,bolded:!1,grayed:!1}}function l6(e){const t=[f6(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(f6(n));return t}function u6(e){return yp(e)?ap(e.name):_6(e)}function _6(e){const t=[oy(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(oy(e.name));return t.join(".")}function d6(e){return e.body&&dP(e.body)?d6(e.body):e}function p6(e){return!e.name||167===e.name.kind}function f6(e){return 307===e.kind?BQ(e):RQ(e,C2)}function m6(e){return e.parent&&260===e.parent.kind&&(e=e.parent),SQ(e)}function g6(e){const{parent:t}=e;if(e.name&&Td(e.name)>0)return y6(zp(e.name));if(oP(t))return y6(zp(t.name));if(kE(t)&&64===t.operatorToken.kind)return R2(t.left).replace(N2,"");if(YP(t))return R2(t.name);if(2048&ub(e))return"default";if(Du(e))return"<class>";if(uE(t)){let e=h6(t.expression);if(void 0!==e)return e=y6(e),e.length>E2?`${e} callback`:`${e}(${y6(H(t.arguments,(e=>Z_(e)||e_(e)?e.getText(C2):void 0)).join(", "))}) callback`}return"<function>"}function h6(e){if(nN(e))return e.text;if(cE(e)){const t=h6(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function y6(e){return(e=e.length>E2?e.substring(0,E2)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var v6={};r(v6,{addExportToChanges:()=>y3,addExportsInOldFile:()=>e3,addImportsForMovedSymbols:()=>c3,addNewFileToTsconfig:()=>Q6,addOrRemoveBracesToArrowFunction:()=>K3,addTargetFileImports:()=>M3,containsJsx:()=>x3,convertArrowFunctionOrFunctionExpression:()=>o4,convertParamsToDestructuredObject:()=>
6m4,convertStringOrTemplateLiteral:()=>R4,convertToOptionalChainExpression:()=>X4,createNewFileName:()=>v3,deleteMovedStatements:()=>Y6,deleteUnusedImports:()=>u3,deleteUnusedOldImports:()=>Z6,doChangeNamedToNamespaceOrDefault:()=>L6,extractSymbol:()=>c8,filterImport:()=>m3,forEachImportInStatement:()=>a3,generateGetAccessorAndSetAccessor:()=>D8,getApplicableRefactors:()=>S6,getEditsForRefactor:()=>k6,getExistingLocals:()=>I3,getIdentifierForNode:()=>R3,getNewStatementsAndRemoveFromOldFile:()=>X6,getStatementsToMove:()=>b3,getTopLevelDeclarationStatement:()=>h3,getUsageInfo:()=>k3,inferFunctionReturnType:()=>F8,isRefactorErrorInfo:()=>O3,isTopLevelDeclaration:()=>E3,moduleSpecifierFromImport:()=>o3,nameOfTopLevelDeclaration:()=>g3,refactorKindBeginsWith:()=>L3,registerRefactor:()=>x6,updateImportsInOtherFiles:()=>t3});var b6=new Map;function x6(e,t){b6.set(e,t)}function S6(e,t){return Xe($(b6.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>L3(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function k6(e,t,n,r){const i=b6.get(t);return i&&i.getEditsForAction(e,n,r)}var T6="Convert export",C6={name:"Convert default export to named export",description:fS(Pa.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},w6={name:"Convert named export to default export",description:fS(Pa.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function D6(e,t=!0){const{file:n,program:r}=e,i=r0(e),o=ZX(n,i.start),a=o.parent&&32&ub(o.parent)&&t?o.parent:mY(o,n,i);if(!a||!(nF(a.parent)||pP(a.parent)&&yp(a.parent.parent)))return{error:fS(Pa.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(nF(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&Cp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=ub(a)||(NP(a)&&!a.isExportEquals?2080:0),u=!!(2048&l);if(!(32&l)||!u&&c.exports.has("default"))return{error:fS(Pa.This_file_already_has_a_default_export)};const _=e=>nN(e)&&s.getSymbolAtLocation(e)?void 0:{error:fS(Pa.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return _(e.name)||{exportNode:e,exportName:e.name,wasDefault:u,exportingModuleSymbol:c}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=Ae(e.declarationList.declarations);if(!t.initializer)return;return En.assert(!u,"Can't have a default flag here"),_(t.name)||{exportNode:e,exportName:t.name,wasDefault:u,exportingModuleSymbol:c}}case 277:{const e=a;if(e.isExportEquals)return;return _(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:u,exportingModuleSymbol:c}}default:return}}function N6(e,t){return _w.createImportSpecifier(!1,e===t?void 0:_w.createIdentifier(e),_w.createIdentifier(t))}function E6(e,t){return _w.createExportSpecifier(!1,e===t?void 0:_w.createIdentifier(e),_w.createIdentifier(t))}x6(T6,{kinds:[C6.kind,w6.kind],getAvailableActions:function(e){const t=D6(e,"invoked"===e.triggerReason);if(!t)return c;if(!O3(t)){const e=t.wasDefault?C6:w6;return[{name:T6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:T6,description:fS(Pa.Convert_default_export_to_named_export),actions:[g(m({},C6),{notApplicableReason:t.error}),g(m({},w6),{notApplicableReason:t.error})]}]:c},getEditsForAction:function(e,t){En.assert(t===C6.name||t===w6.name,"Unexpected action name");const n=D6(e);En.assert(n&&!O3(n),"Expected applicable refactor info");const r=Q_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(NP(n)&&!n.isExportEquals){const t=n.expression,r=E6(t.text,t.text);i.replaceNode(e,n,_w.createExportDeclaration(void 0,!1,_w.createNamedExports([r])))}else i.delete(e,En.checkDefined(hY(n,90),"Should find a default keyword in modifier list"));else{const t=En.checkDefined(hY(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,_w.createToken(90));break;case 243:const a=Ae(n.declarationList.declarations);
6if(!Ace.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,_w.createExportDefault(En.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,_w.createExportDefault(_w.createIdentifier(r.text)));break;default:En.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=En.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");Ace.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 211:n.replaceNode(e,t,_w.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,N6(r,t.name.text));break}case 273:{const o=i;En.assert(o.name===t,"Import clause name should match provided ref");const a=N6(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=BD(o.parent.moduleSpecifier)?sY(o.parent.moduleSpecifier,e):1,a=iY(void 0,[N6(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,_w.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,_w.createImportTypeNode(o.argument,o.attributes,_w.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:En.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,_w.createIdentifier("default"));break;case 276:{const t=_w.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,E6("default",r.name.text));break;default:En.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var P6="Convert import",F6={0:{name:"Convert namespace import to named imports",description:fS(Pa.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:fS(Pa.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:fS(Pa.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function A6(e,t=!0){const{file:n}=e,r=r0(e),i=ZX(n,r.start),o=t?wc(i,vn(hP,VF)):mY(i,n,r);if(void 0===o||!hP(o)&&!VF(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=rQ(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?274===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:I6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:fS(Pa.Could_not_find_namespace_import_or_named_imports)}:{error:fS(Pa.Could_not_find_import_clause)}}function I6(e,t){return VS(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const r=t.resolveExternalModuleSymbol(n);return n!==r}(t.parent.moduleSpecifier,e.getTypeChecker())}function O6(e){return cE(e)?e.name:e.right}function L6(e,t,n,r,i=I6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&BD(s)?p0(s.text,99):"module",u=r.elements.some((function(t){return!!Ace.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||FP(e.parent))}))}))?yZ(l,e):l,_=new Set;for(const d of r.elements){const t=(d.propertyName||d.name).text;Ace.Core.eachSymbolReferenceInFile(d.name,o,e,(r=>{const i=_w.createPropertyAccessExpression(_w.createIdentifier(u),t);ZP(r.parent)?n.replaceNode(e,r.parent,_w.createPropertyAssignment(r.text,i)):FP(r.parent)?_.add(d):n.replaceNode(e,r,i)}))}if(n.replaceNode(e,r,i?_w.createIdentifier(u):_w.createNamespaceImport(_w.createIdentifier(u))),_.size&&hP(a)){const t=Xe(_.values(),(e=>_w.createImportSpecifier(e.isTypeOnly,e.propertyName&&_w.createIdentifier(e.propertyName.text),_w.createIdentifier(e.n
6ame.text))));n.insertNodeAfter(e,r.parent.parent,R6(a,void 0,t))}}function R6(e,t,n){return _w.createImportDeclaration(void 0,M6(t,n),e.moduleSpecifier,void 0)}function M6(e,t){return _w.createImportClause(!1,e,t&&t.length?_w.createNamedImports(t):void 0)}x6(P6,{kinds:Ke(F6).map((e=>e.kind)),getAvailableActions:function(e){const t=A6(e,"invoked"===e.triggerReason);if(!t)return c;if(!O3(t)){const e=F6[t.convertTo];return[{name:P6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ke(F6).map((e=>({name:P6,description:e.description,actions:[g(m({},e),{notApplicableReason:t.error})]}))):c},getEditsForAction:function(e,t){En.assert(te(Ke(F6),(e=>e.name===t)),"Unexpected action name");const n=A6(e);En.assert(n&&!O3(n),"Expected applicable refactor info");const r=Q_e.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;Ace.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(Xu(e.parent)){const r=O6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),En.assert((cE(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const _ of a){const t=O6(_).text;let r=c.get(t);void 0===r&&c.set(t,r=s.has(t)?yZ(t,e):t),n.replaceNode(e,_,_w.createIdentifier(r))}const l=[];c.forEach(((e,t)=>{l.push(_w.createImportSpecifier(!1,e===t?void 0:_w.createIdentifier(t),_w.createIdentifier(e)))}));const u=r.parent.parent;if(o&&!i&&hP(u))n.insertNodeAfter(e,u,R6(u,void 0,l));else{const t=o?_w.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,M6(t,l))}}(e,i,n,r.import,VS(t.getCompilerOptions())):L6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var j6="Extract type",B6={name:"Extract to type alias",description:fS(Pa.Extract_to_type_alias),kind:"refactor.extract.type"},J6={name:"Extract to interface",description:fS(Pa.Extract_to_interface),kind:"refactor.extract.interface"},U6={name:"Extract to typedef",description:fS(Pa.Extract_to_typedef),kind:"refactor.extract.typedef"};function q6(e,t=!0){const{file:n,startPosition:r}=e,i=$m(n),o=JQ(r0(e)),a=o.pos===o.end&&t,s=function(e,t,n,r){const i=[()=>ZX(e,t),()=>YX(e,t,(()=>!0))];for(const o of i){const t=o(),i=AX(t,e,n.pos,n.end),a=wc(t,(t=>t.parent&&Mu(t)&&!$6(n,t.parent,e)&&(r||i)));if(a)return a}}(n,r,o,a);if(!s||!Mu(s))return{info:{error:fS(Pa.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const l=e.program.getTypeChecker(),u=function(e,t){return wc(e,F_)||(t?wc(e,yF):void 0)}(s,i);if(void 0===u)return{info:{error:fS(Pa.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const _=function(e,t){var n;return null!=(n=wc(e,(e=>e===t?"quit":!(!$N(e.parent)&&!VN(e.parent)))))?n:e}(s,u);if(!Mu(_))return{info:{error:fS(Pa.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];($N(_.parent)||VN(_.parent))&&o.end>s.end&&he(d,_.parent.types.filter((e=>AX(e,n,o.pos,o.end))));const p=d.length>1?d:_,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=ft(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const c of o)if(s(c))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function s(t){if(ON(t)){if(nN(t.typeName)){const o=t.typeName,s=e.resolveName(o.text,o,262144,!0);for(const e of(null==s?void 0:s.declarations)||c)if(vN(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&$6(e,a,r))return!0;if($6(n,e,r)&&!$6(a,e,r)){ye(i,e);break}}}}else if(HN(t)){const e=wc(t,(e=>WN(e)&&$6(e.extendsType,t,r)));if(!e||!$6(a,e,r))return!0}else if(IN(t)||GN(t)){const e=wc(t.parent,vu);if(e&&e.type&&$6(e.type,t,r)&&!$6(a,e,r))return!0}else if(MN(t))if(nN(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&$6(n,i.valueDeclaration,r)&&!$6(a,i.valueDeclaration,r))return!0}else if(Ev(t.exprName.left)&&!$6(a,t.parent,r))return!0;return r&&JN(t)&&ss(r,t.pos).line===ss(r,t.end).line&&hw(t,1),ZI(t,s)}}(l,p,u,n);return f?{info:{isJS:i,selection:p,enclosingNode:u,typeParameters:f,typeElements:z6(l,p)},affectedTextRange:m}:{info:{error:fS(Pa.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function z6(e,t){if(t){if(pt(t)){const n=[];for(const r of t){const t=z6(e,r);if(!t)return;he(n,t)}return n}if(VN(t)){const n=[],r=new Map;for(const i of t.types){const t=z6(e,i);if(!t||!t.every((e=>e.name&&$x(r,QQ(e.name)))))return;he(n,t)}return n}return KN(t)?z6(e,t.type):jN(t)?t.members:void 0}}
6function $6(e,t,n){return PX(e,hs(n.text,t.pos),t.end)}function V6(e){return pt(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:$N(e.selection[0].parent)?_w.createUnionTypeNode(e.selection):_w.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}x6(j6,{kinds:[B6.kind,J6.kind,U6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=q6(e,"invoked"===e.triggerReason);return t?O3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:j6,description:fS(Pa.Extract_type),actions:[g(m({},U6),{notApplicableReason:t.error}),g(m({},B6),{notApplicableReason:t.error}),g(m({},J6),{notApplicableReason:t.error})]}]:c:[{name:j6,description:fS(Pa.Extract_type),actions:t.isJS?[U6]:fe([B6],t.typeElements&&J6)}].map((t=>g(m({},t),{actions:t.actions.map((t=>g(m({},t),{range:n?{start:{line:ss(e.file,n.pos).line,offset:ss(e.file,n.pos).character},end:{line:ss(e.file,n.end).line,offset:ss(e.file,n.end).character}}:void 0})))}))):c},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=q6(e);En.assert(r&&!O3(r),"Expected to find a range to extract");const i=yZ("NewType",n),o=Q_e.ChangeTracker.with(e,(o=>{switch(t){case B6.name:return En.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=V6(r),l=_w.createTypeAliasDeclaration(void 0,n,o.map((e=>_w.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,Vw(l),!0),e.replaceNodeRange(t,a,s,_w.createTypeReferenceNode(n,o.map((e=>_w.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Q_e.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case U6.name:return En.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;ft(i.selection).forEach((e=>{hw(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:u}=V6(i),_=_w.createJSDocTypedefTag(_w.createIdentifier("typedef"),_w.createJSDocTypeExpression(u),_w.createIdentifier(r)),p=[];d(s,(e=>{const t=Dl(e),n=_w.createTypeParameterDeclaration(void 0,e.name),r=_w.createJSDocTemplateTag(_w.createIdentifier("template"),t&&yt(t,iF),[n]);p.push(r)}));const f=_w.createJSDocComment(void 0,_w.createNodeArray(re(p,[_])));if(yF(a)){const r=a.getStart(n),i=HY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(aZ(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,_w.createTypeReferenceNode(r,s.map((e=>_w.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case J6.name:return En.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=_w.createInterfaceDeclaration(void 0,n,a,void 0,s);TI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Vw(c),!0);const{firstTypeNode:l,lastTypeNode:u}=V6(r);e.replaceNodeRange(t,l,u,_w.createTypeReferenceNode(n,a.map((e=>_w.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Q_e.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:En.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:vZ(o,a,i,!1)}}});var W6="Move to file",H6=fS(Pa.Move_to_file),K6={name:"Move to file",description:H6,kind:"refactor.move.file"};function G6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function X6(e,t,n,r,i,o,a,s,c,l){const u=o.getTypeChecker(),d=wn(e.statements,Tf),p=!w0(t.fileName,o,a,!!e.commonJsModuleIndicator),f=cY(e,s);c3(n.oldFileImportsFromTargetFile,t.fileName,l,o),Z6(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,f),Y6(e,i.ranges,r),t3(r,o,a,e,n.movedSymbols,t.fileName,f),e3(e,n.targetFileImportsFromOldFile,r,p),M3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,u,o,c),!zm(t)&&d.length&&r.insertStatementsInNewFile(t.fileName,d,e),c.writeFixes(r,f);const m=function(e,t,n,r){return q(t,(t=>{if(_3(t)&&!l3(e,t,r)&&w3(t,(e=>{var t;return n.includes(En.checkDefined(null==(t=ht(e,T_))?void 0:t.symbol))}))){const e=function(e,t){return t?[d3(e)]:function(e){return[e,...f3(e).map(p3)]}(e)}
6(sZ(t),r);if(e)return e}return sZ(t)}))}(e,i.all,Xe(n.oldFileImportsFromTargetFile.keys()),p);zm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)_3(e)&&Xv(e,32)&&w3(e,(e=>{var t;const n=y(T_(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>EP(e)?e:FP(e)?ht(e.parent.parent,EP):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of Xe(o))if(t.exportClause&&PP(t.exportClause)&&_(t.exportClause.elements)){const o=t.exportClause.elements,s=L(o,(e=>void 0===w(Nx(e.symbol,n).declarations,(e=>E3(e)&&i.has(e)))));if(0===_(s)){e.deleteNode(r,t),a.add(t);continue}_(s)<_(o)&&e.replaceNode(r,t,_w.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,_w.updateNamedExports(t.exportClause,_w.createNodeArray(s,o.hasTrailingComma)),t.moduleSpecifier,t.attributes))}}const c=D(r.statements,(e=>EP(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}
6(r,o,m,t,i):zm(t)?r.insertNodesAtEndOfFile(t,m,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...m]:m,e)}function Q6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=sa(ra(n,"..",r)),s=Ca(o.fileName,a,i),c=o.statements[0]&&ht(o.statements[0].expression,sE),l=c&&w(c.properties,(e=>YP(e)&&BD(e.name)&&"files"===e.name.text));l&&aE(l.initializer)&&t.insertNodeInListAfter(o,Le(l.initializer.elements),_w.createStringLiteral(s),l.initializer.elements)}function Y6(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}function Z6(e,t,n,r){for(const i of e.statements)F(t,i)||a3(i,(e=>{s3(e,(e=>{n.has(e.symbol)&&r.removeExistingImport(e)}))}))}function e3(e,t,n,r){const i=HQ();t.forEach(((t,o)=>{if(o.declarations)for(const a of o.declarations){if(!E3(a))continue;const t=g3(a);if(!t)continue;const o=h3(a);i(o)&&y3(e,o,t,n,r)}}))}function t3(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)a3(l,(u=>{if(s.getSymbolAtLocation(o3(u))!==r.symbol)return;const _=e=>
6{const t=oE(e.parent)?fY(s,e.parent):Nx(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};u3(c,u,e,_);const d=ia(Go(aa(r.fileName,t.getCurrentDirectory())),o);if(0===$t(!t.useCaseSensitiveFileNames())(d,c.fileName))return;const p=uB(t.getCompilerOptions(),c,c.fileName,d,tY(t,n)),f=m3(u,oY(p,a),_);f&&e.insertNodeAfter(c,l,f);const m=n3(u);m&&r3(e,c,s,i,p,m,u,a)}))}function n3(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ht(e.name,nN);default:return En.assertNever(e,`Unexpected node kind ${e.kind}`)}}function r3(e,t,n,r,i,o,a,s){const c=p0(i,99);let l=!1;const u=[];if(Ace.Core.eachSymbolReferenceInFile(o,n,t,(e=>{cE(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&u.push(e))})),u.length){const n=l?yZ(c,t):c;for(const r of u)e.replaceNode(t,r,_w.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=_w.createIdentifier(t),o=oY(n,r);switch(e.kind){case 272:return _w.createImportDeclaration(void 0,_w.createImportClause(!1,void 0,_w.createNamespaceImport(i)),o,void 0);case 271:return _w.createImportEqualsDeclaration(void 0,!1,i,_w.createExternalModuleReference(o));case 260:return _w.createVariableDeclaration(i,void 0,void 0,i3(o));default:return En.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function i3(e){return _w.createCallExpression(_w.createIdentifier("require"),void 0,[e])}function o3(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function a3(e,t){if(hP(e))BD(e.moduleSpecifier)&&t(e);else if(gP(e))LP(e.moduleReference)&&Z_(e.moduleReference.expression)&&t(e);else if(UE(e))for(const n of e.declarationList.declarations)n.initializer&&Qm(n.initializer,!0)&&t(n)}function s3(e,t){var n,r,i,o,a;if(272===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),274===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),275===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const s of e.importClause.namedBindings.elements)t(s)}else if(271===e.kind)t(e);else if(260===e.kind)if(80===e.name.kind)t(e);else if(206===e.name.kind)for(const s of e.name.elements)nN(s.name)&&t(s)}function c3(e,t,n,r){for(const[i,o]of e){const e=c0(i,BS(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function l3(e,t,n,r){var i;return n?!zE(t)&&Xv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&f3(t).some((t=>e.symbol.exports.has(Ec(t))))}function u3(e,t,n,r){if(272===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||275===o.kind&&0!==o.elements.length&&o.elements.every((e=>r(e.name)))))return n.delete(e,t)}s3(t,(t=>{t.name&&nN(t.name)&&r(t.name)&&n.delete(e,t)}))}function _3(e){return En.assert(nF(e.parent),"Node parent should be a SourceFile"),F3(e)||UE(e)}function d3(e){const t=CI(e)?re([_w.createModifier(95)],zc(e)):void 0;switch(e.kind){case 262:return _w.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=wI(e)?qc(e):void 0;return _w.updateClassDeclaration(e,re(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return _w.updateVariableStatement(e,t,e.declarationList);case 267:return _w.updateModuleDeclaration(e,t,e.name,e.body);case 266:return _w.updateEnumDeclaration(e,t,e.name,e.members);case 265:return _w.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return _w.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return _w.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return En.fail();default:return En.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function p3(e){return _w.createExpressionStatement(_w.createBinaryExpression(_w.createPropertyAccessExpression(_w.createIdentifier("exports"),_w.createIdentifier(e)),64,_w.createIdentifier(e)))}function f3(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return H(e.declarationList.declarations,(e=>nN(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return c;case 244:return En.fail("Can't export an ExpressionStatement");default:return En.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function m3(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?_w.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?_w.createImportDeclaration(void 0,_w.createImportClause(r.isTypeOnly,i,o),sZ(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!nN(e.name)||t(e.name)));return n.length?_w.createObjectBindingPattern(n):void 0}}}(e.name,n);
6return r?function(e,t,n,r=2){return _w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,i3(t),e.parent.flags):void 0}default:return En.assertNever(e,`Unexpected import kind ${e.kind}`)}}function g3(e){return zE(e)?ht(e.expression.left.name,nN):ht(e.name,nN)}function h3(e){switch(e.kind){case 260:return e.parent.parent;case 208:return h3(yt(e.parent.parent,(e=>oP(e)||oE(e))));default:return e}}function y3(e,t,n,r,i){if(!l3(e,t,i,n))if(i)zE(t)||r.insertExportModifier(e,t);else{const n=f3(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(p3))}}function v3(e,t,n,r){const i=t.getTypeChecker();if(r){const t=k3(e,r.all,i),s=Go(e.fileName),c=bT(e.fileName),l=ra(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=ra(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,xd(o,uY)||xd(a,uY)||"newFile"),c,s,n))+c;return l}var o,a;return""}function b3(e){const t=function(e){const{file:t}=e,n=JQ(r0(e)),{statements:r}=t;let i=N(r,(e=>e.end>n.pos));if(-1===i)return;const o=A3(t,r[i]);o&&(i=o.start);let a=N(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=A3(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return ne(i,S3,((e,t)=>{for(let r=e;r<t;r++)n.push(i[r]);r.push({first:i[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:r}}function x3(e){return w(e,(e=>!!(2&e.transformFlags)))}function S3(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!Xv(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&Qm(e.initializer,!0)));default:return!1}}(e)&&!Tf(e)}function k3(e,t,n,r=new Set){var i;const o=new Set,a=new Map,s=new Map,c=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&te(r.declarations,D3)?r:void 0}(x3(t));c&&a.set(c,[!1,ht(null==(i=c.declarations)?void 0:i[0],(e=>DP(e)||yP(e)||TP(e)||gP(e)||oE(e)||oP(e)))]);for(const _ of t)w3(_,(e=>{o.add(En.checkDefined(zE(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const l=new Set;for(const _ of t)C3(_,n,((t,i)=>{var c;if(t.declarations&&!T3(n,t))if(r.has(Nx(t,n)))l.add(t);else for(const n of t.declarations)if(D3(n)){const e=a.get(t);a.set(t,[(void 0===e||e)&&i,ht(n,(e=>DP(e)||yP(e)||TP(e)||gP(e)||oE(e)||oP(e)))])}else E3(n)&&(oP(c=n)?c.parent.parent.parent:c.parent)===e&&!o.has(t)&&s.set(t,i)}));for(const _ of a.keys())l.add(_);const u=new Map;for(const _ of e.statements)F(t,_)||(c&&2&_.transformFlags&&l.delete(c),C3(_,n,((e,t)=>{o.has(e)&&u.set(e,t),l.delete(e)})));return{movedSymbols:o,targetFileImportsFromOldFile:s,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:a,unusedImportsFromOldFile:l}}function T3(e,t){return!!e.resolveName(t.name,void 0,788968,!1)}function C3(e,t,n){e.forEachChild((function e(r){if(nN(r)&&!kh(r)){const e=t.getSymbolAtLocation(r);e&&n(e,BT(r))}else r.forEachChild(e)}))}function w3(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return y(e.declarationList.declarations,(e=>P3(e.name,t)));case 244:{const{expression:n}=e;return kE(n)&&1===hg(n)?t(e):void 0}}}function D3(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return N3(e);case 208:return oP(e.parent.parent)&&N3(e.parent.parent);default:return!1}}function N3(e){return nF(e.parent.parent.parent)&&!!e.initializer&&Qm(e.initializer,!0)}function E3(e){return F3(e)&&nF(e.parent)||oP(e)&&nF(e.parent.parent.parent)}function P3(e,t){switch(e.kind){case 80:return t(yt(e.parent,(e=>oP(e)||oE(e))));case 207:case 206:return y(e.elements,(e=>EE(e)?void 0:P3(e.name,t)));default:return En.assertNever(e,`Unexpected name kind ${e.kind}`)}}function F3(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function A3(e,t){if(xu(t)){const n=t.symbol.declarations;if(void 0===n||_(n)<=1||!F(n,t))return;const r=n[0],i=n[_(n)-1],o=H(n,(t=>
6Id(t)===e&&F_(t)?t:void 0)),a=N(e.statements,(e=>e.end>=i.end));return{toMove:o,start:N(e.statements,(e=>e.end>=r.end)),end:a}}}function I3(e,t,n){const r=new Set;for(const i of e.imports){const e=Og(i);if(hP(e)&&e.importClause&&e.importClause.namedBindings&&wP(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(Nx(e,n))}if(Ym(e.parent)&&rE(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(Nx(e,n))}}for(const i of t)C3(i,n,(t=>{const i=Nx(t,n);i.valueDeclaration&&Id(i.valueDeclaration).path===e.path&&r.add(i)}));return r}function O3(e){return void 0!==e.error}function L3(e,t){return!t||e.substr(0,t.length)===t}function R3(e,t,n,r){return!cE(e)||Du(t)||n.resolveName(e.name.text,e,111551,!1)||rN(e.name)||Ac(e.name)?yZ(Du(t)?"newProperty":"newLocal",r):e.name.text}function M3(e,t,n,r,i,o){t.forEach((([e,t],n)=>{var i;const a=Nx(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(En.checkDefined(null!=t?t:wc(null==(i=n.declarations)?void 0:i[0],Rp))):o.addImportFromExportedSymbol(a,e,t)})),c3(n,e.fileName,o,i)}x6(W6,{kinds:[K6.kind],getAvailableActions:function(e,t){const n=e.file,r=b3(e);if(!t)return c;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=wc(ZX(n,e.startPosition),D0),r=wc(ZX(n,e.endPosition),D0);if(t&&!nF(t)&&r&&!nF(r))return c}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:ss(n,r.all[0].getStart(n)).line,offset:ss(n,r.all[0].getStart(n)).character},end:{line:ss(n,Le(r.all).end).line,offset:ss(n,Le(r.all).end).character}};return[{name:W6,description:H6,actions:[g(m({},K6),{range:e})]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:W6,description:H6,actions:[g(m({},K6),{notApplicableReason:fS(Pa.Selection_is_not_a_valid_statement_or_statements)})]}]:c},getEditsForAction:function(e,t,n){En.assert(t===W6,"Wrong refactor invoked");const r=En.checkDefined(b3(e)),{host:i,program:o}=e;En.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(nT(a)||rT(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return G6(fS(Pa.Cannot_move_statements_to_the_selected_file));const t=Q_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),u=l?N0(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):En.checkDefined(r.getSourceFile(n)),_=Q7.createImportAdder(t,e.program,e.preferences,e.host),d=Q7.createImportAdder(u,e.program,e.preferences,e.host);X6(t,u,k3(t,i.all,c,l?void 0:I3(u,i.all,c)),o,i,r,a,s,d,_),l&&Q6(r,o,t.fileName,n,iv(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return G6(fS(Pa.Cannot_move_to_file_selected_file_is_invalid))}});var j3="Inline variable",B3=fS(Pa.Inline_variable),J3={name:j3,description:B3,kind:"refactor.inline.variable"};function U3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=QX(e,t),c=s.parent;if(nN(s)){if(kx(c)&&Wf(c)&&nN(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:fS(Pa.Variables_with_multiple_declarations_cannot_be_inlined)};if(q3(c))return;const t=z3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:fS(Pa.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!kx(n)||!Wf(n)||!nN(n.name))return;if(q3(n))return;const r=z3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:fS(Pa.Could_not_find_variable_to_inline)}}}function q3(e){return te(yt(e.parent.parent,UE).modifiers,iN)}function z3(e,t,n){const r=[],i=Ace.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!Ace.isWriteAccessForReference(t)||ZP(t.parent))||!(!FP(t.parent)&&!NP(t.parent))||!!MN(t.parent)||!!Qs(e,t.pos)||void r.push(t)));return 0===r.length||i?void 0:r}function $3(e,t){t=sZ(t);const{parent:n}=e;return s_(n)&&(Cy(t)<Cy(n)||CZ(n))||vu(t)&&(Yu(n)||cE(n))||cE(n)&&(MD(t)||sE(t))?_w.createParenthesizedExpression(t):nN(e)&&ZP(n)?_w.createPropertyAssignment(e,t):t}x6(j3,{kinds:[J3.kind],getAvailableActions(e){const{file:t,program:n,preferences:r,startPosition:i,triggerReason:o}=e,a=U3(t,i,"invoked"===o,n);return a?v6.isRefactorErrorInfo(a)?r.provideRefactorNotApplicableReason?[{name:j3,description:B3,actions:[g(m({}
6,J3),{notApplicableReason:a.error})]}]:c:[{name:j3,description:B3,actions:[J3]}]:c},getEditsForAction(e,t){En.assert(t===j3,"Unexpected refactor invoked");const{file:n,program:r,startPosition:i}=e,o=U3(n,i,!0,r);if(!o||v6.isRefactorErrorInfo(o))return;const{references:a,declaration:s,replacement:c}=o;return{edits:Q_e.ChangeTracker.with(e,(e=>{for(const t of a)e.replaceNode(n,t,$3(t,c));e.delete(n,s)}))}}});var V3="Move to a new file",W3=fS(Pa.Move_to_a_new_file),H3={name:V3,description:W3,kind:"refactor.move.newFile"};x6(V3,{kinds:[H3.kind],getAvailableActions:function(e){const t=b3(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=wc(ZX(n,e.startPosition),D0),r=wc(ZX(n,e.endPosition),D0);if(t&&!nF(t)&&r&&!nF(r))return c}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:ss(n,t.all[0].getStart(n)).line,offset:ss(n,t.all[0].getStart(n)).character},end:{line:ss(n,Le(t.all).end).line,offset:ss(n,Le(t.all).end).character}};return[{name:V3,description:W3,actions:[g(m({},H3),{range:r})]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:V3,description:W3,actions:[g(m({},H3),{notApplicableReason:fS(Pa.Selection_is_not_a_valid_statement_or_statements)})]}]:c},getEditsForAction:function(e,t){En.assert(t===V3,"Wrong refactor invoked");const n=En.checkDefined(b3(e)),r=Q_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=k3(e,n.all,s),l=v3(e,t,i,n),u=N0(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),_=Q7.createImportAdder(e,o.program,o.preferences,o.host),d=Q7.createImportAdder(u,o.program,o.preferences,o.host);X6(e,u,c,r,n,t,i,a,d,_),Q6(t,r,e.fileName,l,iv(i))}(e.file,e.program,n,t,e.host,e,e.preferences)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var K3={},G3="Convert overload list to single signature",X3=fS(Pa.Convert_overload_list_to_single_signature),Q3={name:G3,description:X3,kind:"refactor.rewrite.function.overloadList"};function Y3(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function Z3(e,t,n){const r=wc(ZX(e,t),Y3);if(!r)return;if(xu(r)&&r.body&&DX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(_(a)<=1)return;if(!C(a,(t=>Id(t)===e)))return;if(!Y3(a[0]))return;const s=a[0].kind;if(!C(a,(e=>e.kind===s)))return;const c=a;if(te(c,(e=>!!e.typeParameters||te(e.parameters,(e=>!!e.modifiers||!nN(e.name))))))return;const l=H(c,(e=>i.getSignatureFromDeclaration(e)));if(_(l)!==_(a))return;const u=i.getReturnTypeOfSignature(l[0]);return C(l,(e=>i.getReturnTypeOfSignature(e)===u))?c:void 0}x6(G3,{kinds:[Q3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=Z3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=_w.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 174:s=_w.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 179:s=_w.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 176:s=_w.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 180:s=_w.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 262:s=_w.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return En.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:Q_e.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return xu(t)&&t.body&&(e=e.slice(0,e.length-1)),_w.createNodeArray([_w.createParameterDeclaration(void 0,_w.createToken(26),"args",void 0,_w.createUnionTypeNode(j(e,l)))])}function l(e){const t=j(e.parameters,u);return hw(_w.createTupleTypeNode(t),te(t,(e=>!!_(Ew(e))))?0:1)}function u(e){En.assert(nN(e.name));const t=TI(_w.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||_w.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=u7(n);e.length&&Pw(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return Z3(t,n,r)?[{name:G3,description:X3,actions:[Q3]}]:c}});var e4="Add or remove braces in an arrow function",t4=fS(Pa.Add_or_remove_braces_in_an_arrow_function),n4={name:"Add braces to arrow function",description:fS(Pa.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},r4={name:"Remove braces from arrow function",description:fS(Pa.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function i4(e,t,n=!0,r){const i=ZX(e,t),o=cm(i);if(!o)return{error:fS(Pa.Could_not_find_a_containing_arrow_function)};if(!gE(o))return{error:fS(Pa.Containing_function_is_not_an_arrow_function)};if(CX(o,i)&&(!CX(o.body,i)||n)){if(L3(n4.kind,r)&&s_(o.body))return{func:o,addBraces:!0,expression:o.body};if(L3(r4.kind,r)&&JE(o.body)&&1===o.body.statements.length){const e=Ae(o.body.statements);if(YE(e))return{func:o,addBraces:!1,expression:e.expression&&sE(Yx(e.expression,!1))?_w.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}x6(e4,{kinds:[r4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=i4(n,r);En.assert(i&&!O3(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;
6if(t===n4.name){const e=_w.createReturnStatement(o);c=_w.createBlock([e],!0),bZ(o,e,n,3,!0)}else if(t===r4.name&&a){const e=o||_w.createVoidZero();c=CZ(e)?_w.createParenthesizedExpression(e):e,SZ(a,c,n,3,!1),bZ(a,c,n,3,!1),xZ(a,c,n,3,!1)}else En.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Q_e.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=i4(t,n,"invoked"===r);return i?O3(i)?e.preferences.provideRefactorNotApplicableReason?[{name:e4,description:t4,actions:[g(m({},n4),{notApplicableReason:i.error}),g(m({},r4),{notApplicableReason:i.error})]}]:c:[{name:e4,description:t4,actions:[i.addBraces?n4:r4]}]:c}});var o4={},a4="Convert arrow function or function expression",s4=fS(Pa.Convert_arrow_function_or_function_expression),c4={name:"Convert to anonymous function",description:fS(Pa.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},l4={name:"Convert to named function",description:fS(Pa.Convert_to_named_function),kind:"refactor.rewrite.function.named"},u4={name:"Convert to arrow function",description:fS(Pa.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function _4(e){let t=!1;return e.forEachChild((function e(n){SX(n)?t=!0:Du(n)||sP(n)||mE(n)||ZI(n,e)})),t}function d4(e,t,n){const r=ZX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return oP(e)||aP(e)&&1===e.declarations.length}(n))return;const r=(oP(n)?n:Ae(n.declarations)).initializer;return r&&(gE(r)||mE(r)&&!f4(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!_4(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=cm(r);if(a&&(mE(a)||gE(a))&&!CX(a.body,r)&&!_4(a.body)&&!i.containsArgumentsReference(a)){if(mE(a)&&f4(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}
6function p4(e){if(s_(e)){const t=_w.createReturnStatement(e),n=e.getSourceFile();return TI(t,e),dZ(t),SZ(e,t,n,void 0,!0),_w.createBlock([t],!0)}return e}function f4(e,t,n){return!!n.name&&Ace.Core.isSymbolReferencedInFile(n.name,t,e)}x6(a4,{kinds:[c4.kind,l4.kind,u4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=d4(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case c4.name:s.push(...function(e,t){const{file:n}=e,r=p4(t.body),i=_w.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return Q_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case l4.name:const t=function(e){const t=e.parent;if(!oP(t)||!Wf(t))return;const n=t.parent,r=n.parent;return aP(n)&&UE(r)&&nN(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=p4(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;pZ(s);const l=32&vc(o)|cb(t),u=_w.createModifiersFromModifierFlags(l),d=_w.createFunctionDeclaration(_(u)?u:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?Q_e.ChangeTracker.with(e,(e=>e.replaceNode(r,s,d))):Q_e.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)}))}(e,a,t));break;case u4.name:if(!mE(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements,i=r[0];let o;!function(e,t){return 1===e.statements.length&&YE(t)&&!!t.expression}(t.body,i)?o=t.body:(o=i.expression,dZ(o),mZ(i,o));const a=_w.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,_w.createToken(39),o);return Q_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,a)))}(e,a));break;default:return En.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=d4(t,n,r);if(!o)return c;const{selectedVariableDeclaration:a,func:s}=o,l=[],u=[];if(L3(l4.kind,i)){const e=a||gE(s)&&oP(s.parent)?void 0:fS(Pa.Could_not_convert_to_named_function);e?u.push(g(m({},l4),{notApplicableReason:e})):l.push(l4)}if(L3(c4.kind,i)){const e=!a&&gE(s)?void 0:fS(Pa.Could_not_convert_to_anonymous_function);e?u.push(g(m({},c4),{notApplicableReason:e})):l.push(c4)}if(L3(u4.kind,i)){const e=mE(s)?void 0:fS(Pa.Could_not_convert_to_arrow_function);e?u.push(g(m({},u4),{notApplicableReason:e})):l.push(u4)}return[{name:a4,description:s4,actions:0===l.length&&e.preferences.provideRefactorNotApplicableReason?u:l}]}});var m4={},g4="Convert parameters to destructured object",h4=1,y4=fS(Pa.Convert_parameters_to_destructured_object),v4={name:g4,description:y4,kind:"refactor.rewrite.parameters.toDestructured"};function b4(e,t){const n=T7(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&wx(r)))return r}}function x4(e){const t=e.node;return DP(t.parent)||yP(t.parent)||gP(t.parent)||TP(t.parent)||FP(t.parent)||NP(t.parent)?t:void 0}function S4(e){if(N_(e.node.parent))return e.node}function k4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=ht(n,Zu);if(e&&e.expression===t)return e;break;case 211:const r=ht(n,cE);if(r&&r.parent&&r.name===t){const e=ht(r.parent,Zu);if(e&&e.expression===r)return e}break;case 212:const i=ht(n,lE);if(i&&i.parent&&i.argumentExpression===t){const e=ht(i.parent,Zu);if(e&&e.expression===i)return e}}}}function T4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=ht(n,cE);if(e&&e.expression===t)return e;break;case 212:const r=ht(n,lE);if(r&&r.expression===t)return r}}}function C4(e){const t=e.node;if(2===HG(t)||Eb(t.parent))return t}function w4(e,t,n){const r=YX(e,t),i=lm(r);if(!function(e){const t=wc(e,J_);if(t){const e=wc(t,(e=>!J_(e)));return!!e&&xu(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return F4(e)?e.length-1:e.length}(e)>=h4&&C(e,(e=>function(e,t){if(nd(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&nN(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return E4(e)&&N4(e,t);case 174:if(sE(e.parent)){const r=b4(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&N4(e,t)}return N4(e,t);case 176:return cP(e.parent)?E4(e.parent)&&N4(e,t):P4(e.parent.parent)&&N4(e,t);case 218:case 219:return P4(e.parent)}return!1}(i,n)&&CX(i,r))||i.body&&CX(i.body,r)?void 0:i}function D4(e){return TN(e)&&(lP(e.parent)||jN(e.parent))}function N4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function E4(e){return!!e.name||!!hY(e,90)}function P4(e){return oP(e)&&hf(e)&&nN(e.name)&&!e.type}
6function F4(e){return e.length>0&&SX(e[0].name)}function A4(e){return F4(e)&&(e=_w.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function I4(e,t){const n=A4(e.parameters),r=nd(Le(n)),i=j(r?t.slice(0,n.length-1):t,((e,t)=>{const r=L4(n[t]),i=(o=r,nN(a=e)&&oy(a)===o?_w.createShorthandPropertyAssignment(o):_w.createPropertyAssignment(o,a));var o,a;return dZ(i.name),YP(i)&&dZ(i.initializer),mZ(e,i),i}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=_w.createPropertyAssignment(L4(Le(n)),_w.createArrayLiteralExpression(e));i.push(r)}return _w.createObjectLiteralExpression(i,!1)}function O4(e,t,n){const r=t.getTypeChecker(),i=A4(e.parameters),o=j(i,(function(e){const t=_w.createBindingElement(void 0,void 0,L4(e),nd(e)&&_(e)?_w.createArrayLiteralExpression():e.initializer);return dZ(t),e.initializer&&t.initializer&&mZ(e.initializer,t.initializer),t})),a=_w.createObjectBindingPattern(o),s=function(e){const t=j(e,u);return yw(_w.createTypeLiteralNode(t),1)}(i);let c;C(i,_)&&(c=_w.createObjectLiteralExpression());const l=_w.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(F4(e.parameters)){const t=e.parameters[0],n=_w.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return dZ(n.name),mZ(t.name,n.name),t.type&&(dZ(n.type),mZ(t.type,n.type)),_w.createNodeArray([n,l])}return _w.createNodeArray([l]);function u(e){let i=e.type;var o;i||!e.initializer&&!nd(e)||(o=e,i=IZ(r.getTypeAtLocation(o),o,t,n));const a=_w.createPropertySignature(void 0,L4(e),_(e)?_w.createToken(58):e.questionToken,i);return dZ(a),mZ(e.name,a.name),e.type&&a.type&&mZ(e.type,a.type),a}function _(e){if(nd(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function L4(e){return oy(e.name)}x6(g4,{kinds:[v4.kind],getEditsForAction:function(e,t){En.assert(t===g4,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=w4(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:return e.name?[e.name]:[En.checkDefined(hY(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=En.checkDefined(BX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 231===e.parent.kind?[e.parent.parent.name,t]:[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return En.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=DN(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[En.checkDefined(hY(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=ae([...r,...i],Ot),a=t.getTypeChecker(),s=q(o,(e=>Ace.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))),c=l(s);return C(c.declarations,(e=>F(o,e)))||(c.valid=!1),c;function l(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=j(r,u),c=j(i,u),l=DN(e),_=j(r,(e=>b4(e,a)));for(const r of t){if(r.kind===Ace.EntryKind.Span){o.valid=!1;continue}if(F(_,u(r.node))){if(D4(r.node.parent)){o.signature=r.node.parent;continue}const e=k4(r);if(e){o.functionCalls.push(e);continue}}const t=b4(r.node,a);if(t&&F(_,t)){const e=S4(r);if(e){o.declarations.push(e);continue}}if(F(s,u(r.node))||XG(r.node)){if(x4(r))continue;const e=S4(r);if(e){o.declarations.push(e);continue}const t=k4(r);if(t){o.functionCalls.push(t);continue}}if(l&&F(c,u(r.node))){if(x4(r))continue;const t=S4(r);if(t){o.declarations.push(t);continue}const i=T4(r);if(i){n.accessExpressions.push(i);continue}if(cP(e.parent)){const e=C4(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}function u(e){const t=a.getSymbolAtLocation(e);return t&&nZ(t,a)}}(s,i,o);if(c.valid){const t=Q_e.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=j(O4(i,t,n),(e=>sZ(e)));a&&l(a,j(O4(a,t,n),(e=>sZ(e)))),l(i,s);const c=le(o.functionCalls,((e,t)=>jt(e.pos,t.pos)));for(const u of c)if(u.arguments&&u.arguments.length){const e=sZ(I4(i,u.arguments),!0);r.replaceNodeRange(Id(u),Ae(u.arguments),Le(u.arguments),e,{leadingTriviaOption:Q_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Q_e.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,Ae(t.parameters),Le(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:Q_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Q_e.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;return $m(t)?c:w4(t,n,e.program.getTypeChecker())?[{name:g4,description:y4,actions:[v4]}]:c}});var R4={},M4="Convert to template string",j4=fS(Pa.Convert_to_template_str
6ing),B4={name:M4,description:j4,kind:"refactor.rewrite.string"};function J4(e,t){const n=ZX(e,t),r=q4(n);return!z4(r).isValidConcatenation&&fE(r.parent)&&kE(r.parent.parent)?r.parent.parent:n}function U4(e,t){const n=q4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=$4(t,n),i=V4(e,n,r),[o,a,s,c]=H4(0,e);if(o===e.length){const e=_w.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],u=_w.createTemplateHead(a,s);i(c,u);for(let _=o;_<e.length;_++){const t=G4(e[_]);r(_,t);const[n,o,a,s]=H4(_+1,e);_=n-1;const c=_===e.length-1;if(CE(t)){const e=j(t.templateSpans,((e,n)=>{K4(e);const r=n===t.templateSpans.length-1,i=e.literal.text+(r?o:""),s=W4(e.literal)+(r?a:"");return _w.createTemplateSpan(e.expression,c&&r?_w.createTemplateTail(i,s):_w.createTemplateMiddle(i,s))}));l.push(...e)}else{const e=c?_w.createTemplateTail(o,a):_w.createTemplateMiddle(o,a);i(s,e),l.push(_w.createTemplateSpan(t,e))}}return _w.createTemplateExpression(u,l)}(z4(n),r),o=Fs(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return Q_e.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return Q_e.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function q4(e){return wc(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(kE(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function z4(e){const t=e=>{if(!kE(e))return{nodes:[e],operators:[],validOperators:!0,hasString:BD(e)||qD(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||BD(e.right)||CE(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}x6(M4,{kinds:[B4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=J4(n,r);return t===j4?{edits:U4(e,i)}:En.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=q4(J4(t,n)),i=BD(r),o={name:M4,description:j4,actions:[]};return i&&"invoked"!==e.triggerReason?c:Lm(r)&&(i||kE(r)&&z4(r).isValidConcatenation)?(o.actions.push(B4),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push(g(m({},B4),{notApplicableReason:fS(Pa.Can_only_convert_string_concatenations_and_string_literals)})),[o]):c}});var $4=(e,t)=>(n,r)=>{n<e.length&&xZ(e[n],r,t,3,!1)},V4=(e,t,n)=>(r,i)=>{for(;r.length>0;){const o=r.shift();xZ(e[o],i,t,3,!1),n(o,i)}};function W4(e){const t=zD(e)||$D(e)?-2:-1;return ap(e).slice(1,t)}function H4(e,t){const n=[];let r="",i="";for(;e<t.length;){const o=t[e];if(!Z_(o)){if(CE(o)){r+=o.head.text,i+=W4(o.head);break}break}r+=o.text,i+=ap(o).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function K4(e){const t=e.getSourceFile();xZ(e,e.expression,t,3,!1),SZ(e.expression,e.expression,t,3,!1)}function G4(e){return fE(e)&&(K4(e),e=e.expression),e}var X4={},Q4="Convert to optional chain expression",Y4=fS(Pa.Convert_to_optional_chain_expression),Z4={name:Q4,description:Y4,kind:"refactor.rewrite.expression.optionalChain"};function e8(e){return kE(e)||TE(e)}function t8(e){return e8(e)||function(e){return zE(e)||YE(e)||UE(e)}(e)}function n8(e,t=!0){const{file:n,program:r}=e,i=r0(e),o=0===i.length;if(o&&!t)return;const a=ZX(n,i.start),s=nQ(n,i.start+i.length),c=sc(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(t8(e)&&!t8(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(t8(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),u=l&&t8(l)?function(e){if(e8(e))return e;if(UE(e)){const t=Wg(e),n=null==t?void 0:t.initializer;return n&&e8(n)?n:void 0}return e.expression&&e8(e.expression)?e.expression:void 0}(l):void 0;if(!u)return{error:fS(Pa.Could_not_find_convertible_access_expression)};const _=r.getTypeChecker();return TE(u)?function(e,t){const n=e.condition,r=a8(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:fS(Pa.Could_not_find_convert
6ible_access_expression)};if((cE(n)||nN(n))&&i8(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(kE(n)){const t=r8(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:fS(Pa.Could_not_find_matching_access_expressions)}}}(u,_):function(e){if(56!==e.operatorToken.kind)return{error:fS(Pa.Can_only_convert_logical_AND_access_chains)};const t=a8(e.right);if(!t)return{error:fS(Pa.Could_not_find_convertible_access_expression)};const n=r8(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:fS(Pa.Could_not_find_matching_access_expressions)}}(u)}function r8(e,t){const n=[];for(;kE(t)&&56===t.operatorToken.kind;){const r=i8(bh(e),bh(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=i8(e,t);return r&&n.push(r),n.length>0?n:void 0}function i8(e,t){if(nN(t)||cE(t)||lE(t))return function(e,t){for(;(uE(e)||cE(e)||lE(e))&&o8(e)!==o8(t);)e=e.expression;for(;cE(e)&&cE(t)||lE(e)&&lE(t);){if(o8(e)!==o8(t))return!1;e=e.expression,t=t.expression}return nN(e)&&nN(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function o8(e){return nN(e)||Zh(e)?e.getText():cE(e)?o8(e.name):lE(e)?o8(e.argumentExpression):void 0}function a8(e){return kE(e=bh(e))?a8(e.left):(cE(e)||lE(e)||uE(e))&&!Il(e)?e:void 0}function s8(e,t,n){if(cE(t)||lE(t)||uE(t)){const r=s8(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),uE(t))return o?_w.createCallChain(r,_w.createToken(29),t.typeArguments,t.arguments):_w.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(cE(t))return o?_w.createPropertyAccessChain(r,_w.createToken(29),t.name):_w.createPropertyAccessChain(r,t.questionDotToken,t.name);if(lE(t))return o?_w.createElementAccessChain(r,_w.createToken(29),t.argumentExpression):_w.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}x6(Q4,{kinds:[Z4.kind],getEditsForAction:function(e,t){const n=n8(e);return En.assert(n&&!O3(n),"Expected applicable refactor info"),{edits:Q_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i){const{finalExpression:o,occurrences:a,expression:s}=r,c=a[a.length-1],l=s8(t,o,a);l&&(cE(l)||lE(l)||uE(l))&&(kE(s)?n.replaceNodeRange(e,c,o,l):TE(s)&&n.replaceNode(e,s,_w.createBinaryExpression(l,_w.createToken(61),s.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=n8(e,"invoked"===e.triggerReason);return t?O3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Q4,description:Y4,actions:[g(m({},Z4),{notApplicableReason:t.error})]}]:c:[{name:Q4,description:Y4,actions:[Z4]}]:c}});var c8={};r(c8,{Messages:()=>l8,RangeFacts:()=>m8,getRangeToExtract:()=>g8,getRefactorActionsToExtractSymbol:()=>p8,getRefactorEditsToExtractSymbol:()=>f8});var l8,u8="Extract Symbol",_8={name:"Extract Constant",description:fS(Pa.Extract_constant),kind:"refactor.extract.constant"},d8={name:"Extract Function",description:fS(Pa.Extract_function),kind:"refactor.extract.function"};function p8(e){const t=e.kind,n=g8(e.file,r0(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return c;const r=[];return L3(d8.kind,t)&&r.push({name:u8,description:d8.description,actions:[g(m({},d8),{notApplicableReason:h(n.errors)})]}),L3(_8.kind,t)&&r.push({name:u8,description:_8.description,actions:[g(m({},_8),{notApplicableReason:h(n.errors)})]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=v8(e,t),a=n.map(((e,t)=>{const n=function(e){return xu(e)?"inner function":Du(e)?"method":"function"}(e),r=function(e){return Du(e)?"readonly field":"constant"}(e),a=xu(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:AZ;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:En.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):Du(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=_S(fS(Pa.Extract_to_0_in_1_scope),[n,"global"]),c=_S(fS(Pa.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=_S(fS(Pa.Extract_to_0_in_1_scope),[n,"module"]),c=_S(fS(Pa.Extract_to_0_in_1_scope),[r,"module"])):(s=_S(fS(Pa.Extract_to_0_in_1),[n,a]),c=_S(fS(Pa.Extract_to_0_in_1),[r,a])),0!==t||Du(e)||(c=_S(fS(Pa.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}}));return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return c;const a=[],s=new Map;let l;const u=[],_=new Map;let d,p=0;for(const{functionExtraction:c,constantExtraction:m}of o){if(L3(d8.kind,t)){const t=c.description;0===c.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:d8.kind,range:{start:{line:ss(e.file,i.pos).line,offset:ss(e.file,i.pos).character},end:{line:ss(e.file,i.end).line,offset:ss(e.file,i.end).character}}})):l||(l={description:t,name:`function_scope_${p}`,notApplicableReason:h(c.errors),kind:d8.kind})}if(L3(_8.kind,t)){const t=m.description;0===m.errors.length?_.has(t)||(_.set(t,!0),u.push({description:t,name:`constant_scope_${p}`,kind:_8.kind,range:{start:{line:ss(e.file,i.pos).line,offset:ss(e.file,i.pos).character},end:{line:ss(e.file,i.end).line,offset:ss(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:h(m.errors),kind:_8.kind})}p++}const f=[];return a.length?f.push({name:u8,description:fS(Pa.Extract_function),actions:a}
6):e.preferences.provideRefactorNotApplicableReason&&l&&f.push({name:u8,description:fS(Pa.Extract_function),actions:[l]}),u.length?f.push({name:u8,description:fS(Pa.Extract_constant),actions:u}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:u8,description:fS(Pa.Extract_constant),actions:[d]}),f.length?f:c;function h(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function f8(e,t){const n=g8(e.file,r0(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return En.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:s}}=v8(e,t);return En.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,s){const l=s.program.getTypeChecker(),u=BS(s.program.getCompilerOptions()),_=Q7.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),p=yZ(Du(t)?"newMethod":"newFunction",d),f=Wm(t),m=_w.createIdentifier(p);let g;const h=[],y=[];let v;
6n.forEach(((e,n)=>{let r;if(!f){let n=l.getTypeOfSymbolAtLocation(e.symbol,e.node);n=l.getBaseTypeOfLiteralType(n),r=Q7.typeToAutoImportableTypeNode(l,_,n,t,u,1)}const i=_w.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(_w.createIdentifier(n))}));const b=Xe(r.values(),(e=>({type:e,declaration:b8(e,s.startPosition)}))),x=b.sort(x8),S=0===x.length?void 0:H(x,(({declaration:e})=>e)),k=void 0!==S?S.map((e=>_w.createTypeReferenceNode(e.name,void 0))):void 0;if(s_(e)&&!f){const n=l.getContextualType(e);g=l.typeToTypeNode(n,t,1)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(JE(e)&&!o&&0===r.size)return{body:_w.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=_w.createNodeArray(JE(e)?e.statements.slice(0):[F_(e)?e:_w.createReturnStatement(bh(e))]);if(o||r.size){const r=uJ(c,l,F_).slice();if(o&&!i&&F_(e)){const e=S8(t,n);1===e.length?r.push(_w.createReturnStatement(e[0].name)):r.push(_w.createReturnStatement
6(_w.createObjectLiteralExpression(e)))}return{body:_w.createBlock(r,!0),returnValueProperty:a}}return{body:_w.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&YE(e)&&o){const r=S8(t,n);return e.expression&&(a||(a="__return"),r.unshift(_w.createPropertyAssignment(a,lJ(e.expression,l,s_)))),1===r.length?_w.createReturnStatement(r[0].name):_w.createReturnStatement(_w.createObjectLiteralExpression(r))}{const t=s;s=s||xu(e)||Du(e);const n=r.get(ZB(e).toString()),i=n?sZ(n):vJ(e,l,void 0);return s=t,i}}}(e,o,v,i,!!(1&a.facts));let D;dZ(T);const N=!!(16&a.facts);if(Du(t)){const e=f?[]:[_w.createModifier(123)];32&a.facts&&e.push(_w.createModifier(126)),4&a.facts&&e.push(_w.createModifier(134)),D=_w.createMethodDeclaration(e.length?e:void 0,2&a.facts?_w.createToken(42):void 0,m,void 0,S,h,g,T)}else N&&h.unshift(_w.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(l.getTypeAtLocation(a.thisNode),t,1),void 0)),D=_w.createFunctionDeclaration(4&a.facts?[_w.createToken(134)]:void 0,2&a.facts?_w.createToken(42):void 0,m,S,h,g,T);const E=Q_e.ChangeTracker.fromContext(s),P=function(e,t){return w(function(e){if(xu(e)){const t=e.body;if(JE(t))return t.statements}else{if(pP(e)||nF(e))return e.statements;if(Du(e))return e.members}return c}(t),(t=>t.pos>=e&&xu(t)&&!DN(t)))}((k8(a.range)?Le(a.range):a.range).end,t);P?E.insertNodeBefore(s.file,P,D,!0):E.insertNodeAtEndOfScope(s.file,t,D),_.writeFixes(E);const F=[],A=function(e,t,n){const r=_w.createIdentifier(n);if(Du(e)){const n=32&t.facts?_w.createIdentifier(e.name.text):_w.createThis();return _w.createPropertyAccessExpression(n,r)}return r}(t,a,p);N&&y.unshift(_w.createIdentifier("this"));let I=_w.createCallExpression(N?_w.createPropertyAccessExpression(A,"call"):A,k,y);if(2&a.facts&&(I=_w.createYieldExpression(_w.createToken(42),I)),4&a.facts&&(I=_w.createAwaitExpression(I)),C8(e)&&(I=_w.createJsxExpression(void 0,I)),o.length&&!v)if(En.assert(!C,"Expected no returnValueProperty"),En.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];F.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(sZ(e.name),void 0,sZ(e.type),I)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const s of o){e.push(_w.createBindingElement(void 0,void 0,sZ(s.name)));const o=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(s)),t,1);n.push(_w.createPropertySignature(void 0,s.symbol.name,void 0,o)),i=i||void 0!==s.type,r&=s.parent.flags}const a=i?_w.createTypeLiteralNode(n):void 0;a&&hw(a,1),F.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(_w.createObjectBindingPattern(e),void 0,a,I)],r)))}else if(o.length||v){if(o.length)for(const t of o){let e=t.parent.flags;2&e&&(e=-3&e|1),F.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(t.symbol.name,void 0,M(t.type))],e)))}C&&F.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(C,void 0,M(g))],1)));const e=S8(o,v);C&&e.unshift(_w.createShorthandPropertyAssignment(C)),1===e.length?(En.assert(!C,"Shouldn't have returnValueProperty here"),F.push(_w.createExpressionStatement(_w.createAssignment(e[0].name,I))),1&a.facts&&F.push(_w.createReturnStatement
6())):(F.push(_w.createExpressionStatement(_w.createAssignment(_w.createObjectLiteralExpression(e),I))),C&&F.push(_w.createReturnStatement(_w.createIdentifier(C))))}else 1&a.facts?F.push(_w.createReturnStatement(I)):k8(a.range)?F.push(_w.createExpressionStatement(I)):F.push(I);k8(a.range)?E.replaceNodeRangeWithNodes(s.file,Ae(a.range),Le(a.range),F):E.replaceNodeWithNodes(s.file,a.range,F);const O=E.getChanges(),L=(k8(a.range)?Ae(a.range):a.range).getSourceFile().fileName,R=vZ(O,L,p,!1);return{renameFilename:L,renameLocation:R,edits:O};function M(e){if(void 0===e)return;const t=sZ(e);let n=t;for(;KN(n);)n=n.type;return $N(n)&&w(n.types,(e=>157===e.kind))?t:_w.createUnionTypeNode([t,_w.createKeywordTypeNode(157)])}}(i,r[n],o[n],s,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return En.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=v8(e,t);return En.assert(!a[n].length,"The extraction went missing? How?"),En.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=R3(e,t,o,a),c=Wm(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),u=function(e,t){return t.size?n(e):e;function n(e){const r=t.get(ZB(e).toString());return r?sZ(r):vJ(e,n,void 0)}}(bh(e),n);({variableType:l,initializer:u}=m(l,u)),dZ(u);const _=Q_e.ChangeTracker.fromContext(i);if(Du(t)){En.assert(!c,"Cannot extract to a JS class");const n=[];n.push(_w.createModifier(123)),32&r&&n.push(_w.createModifier(126)),n.push(_w.createModifier(148));const o=_w.createPropertyDeclaration(n,s,void 0,l,u);let a=_w.createPropertyAccessExpression(32&r?_w.createIdentifier(t.name.getText()):_w.createThis(),_w.createIdentifier(s));C8(e)&&(a=_w.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;En.assert(n.length>0,"Found no members");let i=!0;for(const o of n){if(o.pos>e)return r||n[0];if(i&&!kN(o)){if(void 0!==r)return o;i=!1}r=o}return void 0===r?En.fail():r}(e.pos,t);_.insertNodeBefore(i.file,d,o,!0),_.replaceNode(i.file,e,a)}else{const n=_w.createVariableDeclaration(s,void 0,l,u),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(oP(e)&&e.initializer===n&&aP(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){_.insertNodeBefore(i.file,r,n);const t=_w.createIdentifier(s);_.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===wc(e,y8)){const t=_w.createVariableStatement(void 0,_w.createVariableDeclarationList([n],2));_.replaceNode(i.file,e.parent,t)}else{const r=_w.createVariableStatement(void 0,_w.createVariableDeclarationList([n],2)),o=function(e,t){let n;En.assert(!Du(t));for(let r=e;r!==t;r=r.parent)y8(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(D0(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&KP(r)?(En.assert(eP(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):En.checkDefined(t,"prevStatement failed to get set")}En.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?_.insertNodeAtTopOfFile(i.file,r,!1):_.insertNodeBefore(i.file,o,r,!1),244===e.parent.kind)_.delete(i.file,e.parent);else{let t=_w.createIdentifier(s);C8(e)&&(t=_w.createJsxExpression(void 0,t)),_.replaceNode(i.file,e,t)}}}const d=_.getChanges(),p=e.getSourceFile().fileName,f=vZ(d,p,s,!0);return{renameFilename:p,renameLocation:f,edits:d};function m(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!mE(r)&&!gE(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=Re(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(_w.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,gE(r))r=_w.updateArrowFunction(r,CI(e)?zc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=Pe(s);if(!n||nN(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,_w.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1)))}}r=_w.updateFunctionExpression(r,CI(e)?zc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}}(s_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}En.fail("Unrecognized action name")}x6(u8,{kinds:[_8.kind,d8.kind],getEditsForAction:f8,getAvailableActions:p8}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(l8||(l8={}));var m8=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(m8||{});function g8(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[vS(e,t.start,r,l8.cannotExtractEmpty)]};const i=0===r&&n,o=tQ(e,t.start),a=nQ(e,Ks(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return wc(e,(e=>e.parent&&T8(e)&&!kE(e.parent)))}(o):mY(o,e,s),l=i?c:mY(a,e,s);let u,_=0;if(!c||!l)return{errors:[vS(e,t.start,r,l8.cannotExtractRange)]};if(16777216&c.flags)return{errors:[vS(e,t.start,r,l8.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[vS(e,t.start,r,l8.cannotExtractRange)]};if(c!==l){if(!D0(c.parent))return{errors:[vS(e,t.start,r,l8.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);
6if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:_,thisNode:u}}:{errors:[vS(e,t.start,r,l8.cannotExtractRange)]}}if(YE(c)&&!c.expression)return{errors:[vS(e,t.start,r,l8.cannotExtractRange)]};const d=function(e){if(YE(e)){if(e.expression)return e.expression}else if(UE(e)||aP(e)){const t=UE(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(oP(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(nN(zE(e)?e.expression:e))return[Gp(e,l8.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:h8(d),facts:_,thisNode:u}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",En.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),En.assert(!hT(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(F_(e)||Lm(e)&&T8(e)||w8(e)))return[Gp(e,l8.statementOrExpressionExpected)];if(33554432&e.flags)return[Gp(e,l8.cannotExtractAmbientBlock)];const i=um(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){Qv(n)&&(_|=32);break}if(169===n.kind){176===cm(n).kind&&(_|=32);break}174===n.kind&&Qv(n)&&(_|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(N_(n)&&Xv(260===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Gp(n,l8.cannotExtractExportedEntity)),!0;switch(n.kind){case 272:return(o||(o=[])).push(Gp(n,l8.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(Gp(n,l8.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=um(n);if(void 0===e||e.pos<t.start||e.end>=t.start+t.length)return(o||(o=[])).push(Gp(n,l8.cannotExtractSuper)),!0}else _|=8,u=n;break;case 219:ZI(n,(function e(t){if(SX(t))_|=8,u=n;else{if(Du(t)||vu(t)&&!gE(t))return!1;ZI(t,e)}}));case 263:case 262:nF(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Gp(n,l8.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:u_(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:_|=8,u=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),ZI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?F(a,e.escapedText)||(o||(o=[])).push(Gp(n,l8.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(Gp(n,l8.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:_|=4;break;case 229:_|=2;break;case 253:4&s?_|=1:(o||(o=[])).push(Gp(n,l8.cannotExtractRangeContainingConditionalReturnStatement));break;default:ZI(n,e)}s=r}(e),8&_){const t=fm(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(_|=16)}return o}}function h8(e){return F_(e)?[e]:Lm(e)?zE(e.parent)?[e.parent]:e:w8(e)?e:void 0}function y8(e){return gE(e)?h_(e.body):xu(e)||nF(e)||pP(e)||Du(e)}function v8(e,t){const{file:n}=t,r=function(e){let t=k8(e.range)?Ae(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=um(t);if(e){const n=wc(t,xu);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=wc(t,(e=>xu(e))).parent),y8(t)&&(n.push(t),307===t.kind))return n}(e),i=function(e,t){return k8(e.range)?{pos:Ae(e.range).getStart(t),end:Le(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],u=[],_=[],d=new Map,p=[];let f;const m=k8(e.range)?1===e.range.length&&zE(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=Ae(t).getStart(),i=Le(t).end;g=vS(r,n,i-n,l8.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=Gp(m,l8.uselessConstantType));for(const w of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const e=[];g&&e.push(g),Du(w)&&Wm(w)&&e.push(Gp(w,l8.cannotExtractToJSClass)),gE(w)&&!JE(w.body)&&e.push(Gp(w,l8.cannotExtractToExpressionArrowFunction)),u.push(e)}const h=new Map,y=k8(e.range)?_w.createBlock(e.range):e.range,v=k8(e.range)?Ae(e.range):e.range,b=x(v);if(k(y),!b||k8(e.range)||zP(e.range)||S(i.getContextualType(e.range)),a.size>0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n<t.length;r=r.parent)if(r===t[n]&&(e.forEach(((e,t)=>{s[n].typeParameterUsages.set(t,e)})),n++),Ap(r))for(const t of wl(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}En.assert(n===t.length,"Should have iterated all scopes")}_.length&&ZI(Fp(t[0],t[0].parent)?t[0]:Up(t[0]),D);for(let w=0;w<t.length;w++){const n=s[w];if(w>0&&(n.usages.size>0||n.typeParameterUsages.size>0)){const t=k8(e.range)?e.range[0]:e.range;u[w].push(Gp(t,l8.cannotAccessVariablesFromNestedScopes))}16&e.facts&&Du(t[w])&&l[w].push(Gp(e.thisNode,l8.cannotExtractFunctionsContainingThisToMethod));let r,i=!1;
6if(s[w].usages.forEach((e=>{2===e.usage&&(i=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Gv(e.symbol.valueDeclaration,8)&&(r=e.symbol.valueDeclaration))})),En.assert(k8(e.range)||0===p.length,"No variable declarations expected if something was extracted"),i&&!k8(e.range)){const t=Gp(e.range,l8.cannotWriteInExpression);l[w].push(t),u[w].push(t)}else if(r&&w>0){const e=Gp(r,l8.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[w].push(e),u[w].push(e)}else if(f){const e=Gp(f,l8.cannotExtractExportedEntity);l[w].push(e),u[w].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:u,exposedVariableDeclarations:p};function x(e){return!!wc(e,(e=>Ap(e)&&0!==wl(e).length))}function S(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const r of n)r.isTypeParameter()&&a.set(r.id.toString(),r)}function k(e,t=1){if(b&&S(i.getTypeAtLocation(e)),N_(e)&&e.symbol&&_.push(e),wb(e))k(e.left,2),k(e.right);else if(o_(e))k(e.operand,2);else if(cE(e)||lE(e))ZI(e,k);else if(nN(e)){if(!e.parent)return;if(hN(e.parent)&&e!==e.parent.left)return;if(cE(e.parent)&&e!==e.parent.expression)return;T(e,t,Mf(e))}else ZI(e,k)}function T(e,n,r){const i=C(e,n,r);if(i)for(let o=0;o<t.length;o++){const t=c[o].get(i);t&&s[o].substitutions.set(ZB(e).toString(),t)}}function C(o,a,_){const d=N(o);if(!d)return;const p=eJ(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&w(m,(e=>e.getSourceFile()===r));if(g&&!PX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Gp(o,l8.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of u)t.push(e)}for(let e=0;e<t.length;e++){const n=t[e];if(i.resolveName(d.name,n,d.flags,!1)!==d&&!c[e].has(p)){const t=E(d.exportSymbol||d,n,_);if(t)c[e].set(p,t);else if(_){if(!(262144&d.flags)){const t=Gp(o,l8.typeWillNotBeVisibleInTheNewScope);l[e].push(t),u[e].push(t)}}else s[e].usages.set(o.text,{usage:a,symbol:d,node:o})}}return p}}function D(t){if(t===e.range||k8(e.range)&&e.range.includes(t))return;const n=nN(t)?N(t):i.getSymbolAtLocation(t);if(n){const e=w(_,(e=>e.symbol===n));
6if(e)if(oP(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}ZI(t,D)}function N(e){return e.parent&&ZP(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function E(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return _w.createIdentifier(e.name);const i=E(e.parent,t,n);return void 0!==i?n?_w.createQualifiedName(i,_w.createIdentifier(e.name)):_w.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function b8(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const i of r.declarations)(void 0===n||i.pos<n.pos)&&i.pos<t&&(n=i);return n}function x8({type:e,declaration:t},{type:n,declaration:r}){return Qt(t,r,"pos",jt)||zt(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||jt(e.id,n.id)}function S8(e,t){const n=j(e,(e=>_w.createShorthandPropertyAssignment(e.symbol.name))),r=j(t,(e=>_w.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function k8(e){return pt(e)}function T8(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function C8(e){return w8(e)||(RP(e)||MP(e)||JP(e))&&(RP(e.parent)||JP(e.parent))}function w8(e){return BD(e)&&e.parent&&zP(e.parent)}var D8={},N8="Generate 'get' and 'set' accessors",E8=fS(Pa.Generate_get_and_set_accessors),P8={name:N8,description:E8,kind:"refactor.rewrite.property.generateAccessors"};x6(N8,{kinds:[P8.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=Q7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);En.assert(n&&!O3(n),"Expected applicable refactor info");const r=Q7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(nN(o)?0:-1)+vZ(r,i,o.text,bN(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return c;const t=Q7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?O3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:N8,description:E8,actions:[g(m({},P8),{notApplicableReason:t.error})]}]:c:[{name:N8,description:E8,actions:[P8]}]:c}});var F8={},A8="Infer function return type",I8=fS(Pa.Infer_function_return_type),O8={name:A8,description:I8,kind:"refactor.rewrite.function.returnType"};function L8(e){if(Wm(e.file)||!L3(O8.kind,e.kind))return;const t=wc(QX(e.file,e.startPosition),(e=>JE(e)||e.parent&&gE(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:fS(Pa.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker(),r=function(e,t){if(e.isImplementationOfOverload(t)){const n=e.getTypeAtLocation(t).getCallSignatures();if(n.length>1)return e.getUnionType(H(n,(e=>e.getReturnType())))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}(n,t);if(!r)return{error:fS(Pa.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1);return i?{declaration:t,returnTypeNode:i}:void 0}x6(A8,{kinds:[O8.kind],getEditsForAction:function(e){const t=L8(e);if(t&&!O3(t))return{renameFilename:void 0,renameLocation:void 0,edits:Q_e.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=BX(n,22,e),o=gE(n)&&void 0===i,a=o?Ae(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,_w.createToken(21)),t.insertNodeAfter(e,a,_w.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}},getAvailableActions:function(e){const t=L8(e);return t?O3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:A8,description:I8,actions:[g(m({}
6,O8),{notApplicableReason:t.error})]}]:c:[{name:A8,description:I8,actions:[O8]}]:c}});var R8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(R8||{}),M8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(M8||{}),j8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(j8||{});function B8(e,t,n,r){const i=J8(e,t,n,r);En.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let s=0;s<o.length;s+=3)a.push({textSpan:ac(o[s],o[s+1]),classificationType:o[s+2]});return a}function J8(e,t,n,r){return{spans:U8(e,n,r,t),endOfLineState:0}}function U8(e,t,n,r){const i=[];return e&&t&&function(e,t,n,r,i){const o=e.getTypeChecker();let a=!1;function s(c){switch(c.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:i.throwIfCancellationRequested()}if(!c||!nc(n,c.pos,c.getFullWidth())||0===c.getFullWidth())return;const l=a;if((RP(c)||MP(c))&&(a=!0),WP(c)&&(a=!1),nN(c)&&!a&&!function(e){const t=e.parent;return t&&(yP(t)||DP(t)||TP(t))}(c)&&!nC(c.escapedText)){let n=o.getSymbolAtLocation(c);if(n){2097152&n.flags&&(n=o.getAliasedSymbol(n));let i=function(e,t){const n=e.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&t)return 2}else if(262144&n)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];return r&&oE(r)&&(r=q8(r)),r&&$8.get(r.kind)}(n,HG(c));if(void 0!==i){let a=0;c.parent&&(oE(c.parent)||$8.get(c.parent.kind)===i)&&c.parent.name===c&&(a=1),6===i&&z8(c)&&(i=9),i=function(e,t,n){if(7===n||9===n||6===n){const r=e.getTypeAtLocation(t);if(r){const e=e=>e(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;z8(e);)e=e.parent;return uE(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=vc(s),o=xc(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return oE(e)&&(e=q8(e)),oP(e)?(!nF(e.parent.parent.parent)||QP(e.parent))&&e.getSourceFile()===t:!!sP(e)&&(!nF(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}ZI(c,s),a=l}s(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function q8(e){for(;;){if(!oE(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function z8(e){return hN(e.parent)&&e.parent.right===e||cE(e.parent)&&e.parent.name===e}var $8=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),V8="0.8";function W8(e,t,n,r){const i=Vl(e)?new H8(e,t,n):80===e?new Y8(80,t,n):81===e?new Z8(81,t,n):new Q8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var H8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){En.assert(!hT(this.pos)&&!hT(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Id(this)}getStart(e,t){return this.assertHasRealPosition(),tp(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.get
6Start(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){var t;return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),null!=(t=GF(this))?t:XF(this,function(e,t){const n=[];if(U_(e))return e.forEachChild((e=>{n.push(e)})),n;$G.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{K8(n,r,t.pos,e),n.push(t),r=t.end},o=t=>{K8(n,r,t.pos,e),n.push(function(e,t){const n=W8(352,e.pos,e.end,t),r=[];let i=e.pos;for(const o of e)K8(r,i,o.pos,t),r.push(o),i=o.end;return K8(r,i,e.end,t),XF(n,r),n}(t,e)),r=t.end};return d(e.jsDoc,i),r=e.pos,e.forEachChild(i,o),K8(n,r,e.end,e),$G.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=w(t,(e=>e.kind<309||e.kind>351));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=Oe(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return ZI(this,e,t)}};function K8(e,t,n,r){for($G.resetTokenState(t);t<n;){const i=$G.scan(),o=$G.getTokenEnd();if(o<=n){if(80===i){if(mC(r))continue;En.fail(`Did not expect ${En.formatSyntaxKind(r.kind)} to have an Identifier in its trivia`)}e.push(W8(i,t,o,r))}if(t=o,1===i)break}}var G8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}getSourceFile(){return Id(this)}getStart(e,t){return tp(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}
6getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||c}getFirstToken(){}getLastToken(){}forEachChild(){}},X8=class{constructor(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}getFlags(){return this.flags}get name(){return Ic(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=c,!this.declarations&&dd(this)&&this.links.target&&dd(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=i7([t],e)}else this.documentationComment=i7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if($_(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=i7(L(this.declarations,$_),t)),_(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(z_(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=i7(L(this.declarations,z_),t)),_(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=c,this.tags=r7(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if($_(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=r7(L(this.declarations,$_),t)),_(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(z_(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=r7(L(this.declarations,z_),t)),_(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Q8=class extends G8{constructor(e,t,n){super(e,t,n)}},Y8=class extends G8{constructor(e,t,n){super(e,t,n)}get text(){return Fc(this)}},Z8=class extends G8{constructor(e,t,n){super(e,t,n)}get text(){return Fc(this)}},e7=class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&Bx(this))}isClass(){return!!(1&Bx(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&Bx(this))return this.checker.getTypeArguments(this)}},t7=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&cC(t.type)){const e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=i7(Sn(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=r7(Sn(this.declaration),this.checker))}};function n7(e){return bl(e).some((e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function r7(e,t){if(!e)return c;let n=Ble.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(n7))){const r=new Set;for(const i of e){const e=o7(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0}));e&&(n=[...e,...n])}}return n}function i7(e,t){if(!e)return c;let n=Ble.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(n7))){const r=new Set;for(const i of e){const e=o7(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(KY(),n))}}return n}function o7(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Yv(t);return y(Rh(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}var a7=class extends H8{constructor(e,t,n){super(e,t,n)}update(e,t){return sO(this,e,t)}getLineAndCharacterOfPosition(e){return ss(this,e)}getLineStarts(){return rs(this)}getPositionOfLineAndCharacter(e,t,n){return ns(rs(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=ct();return this.forEachChild((function r(i){switch(i.kind){case 262:case 218:case 174:case 173:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=Oe(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}ZI(i,r);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(i),ZI(i,r);break;case 169:if(!Xv(i,31))break;case 260:case 208:{const e=i;if(Bu(e.name)){ZI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(PP(s.exportClause)?d(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):d(c.namedBindings.elements,r)));break;case 226:0!==hg(i)&&t(i);default:ZI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Bc(e);return t&&(yN(t)&&cE(t.expression)?t.expression.name.text:hu(t)?QQ(t):void 0)}}},s7=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return ss(this,e)}};function c7(e){let t=!0;for(const r in e)if($e(e,r)&&!l7(r)){t=!1;break}if(t)return e;const n={};for(const r in e)$e(e,r)&&(n[l7(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]);return n}function l7(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function u7(e){return e?j(e,(e=>e.text)).join(""):""}function _7(){return{target:1,jsx:1}}function d7(){return Q7.getSupportedErrorCodes()}var p7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);
6if(!l)throw new Error("Could not find file: '"+e+"'.");const u=tZ(e,this.host),_=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=m7(e,l,{languageVersion:99,impliedNodeFormat:R$(la(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||iv(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:MS(this.host.getCompilationSettings()),jsDocParsingMode:0},_,!0,u);else if(this.currentFileVersion!==_){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=g7(this.currentSourceFile,l,_,e)}return d&&(this.currentFileVersion=_,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function f7(e,t,n){e.version=n,e.scriptSnapshot=t}function m7(e,t,n,r,i,o){const a=rO(e,KQ(t),n,i,o);return f7(a,t,r),a}function g7(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Ks(r.span)!==e.text.length?e.text.substr(Ks(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=sO(e,o,r,i);return f7(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return m7(e.fileName,t,o,n,!0,e.scriptKind)}var h7={isCancellationRequested:bt,throwIfCancellationRequested:vt},y7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=pr)||e.instant(pr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new $r}},v7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=ar();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=pr)||e.instant(pr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new $r}},b7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],x7=[...b7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];function S7(e,t=t1(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new p7(e);let a,s,l=0;const u=e.getCancellationToken?new y7(e.getCancellationToken()):h7,_=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}pS(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=rv(e),h=un(f),y=U1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>_,getProgram:x,fileExists:st(e,e.fileExists),readFile:st(e,e.readFile),getDocumentPositionMapper:st(e,e.getDocumentPositionMapper),getSourceFileLike:st(e,e.getSourceFileLike),log:p});function v(e){const t=a.getSourceFile(e);
6if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map((e=>e.fileName)),t}return t}function b(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(En.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(s===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;s=t}}const c=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==c&&(p("TypeRoots version has changed; provide new program"),a=void 0,l=c);const d=e.getScriptFileNames().slice(),m=e.getCompilationSettings()||{target:1,jsx:1},g=e.hasInvalidatedResolutions||bt,v=st(e,e.hasInvalidatedLibResolutions)||bt,b=st(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let S,k={getSourceFile:I,getSourceFileByPath:O,getCancellationToken:()=>u,getCanonicalFileName:h,useCaseSensitiveFileNames:()=>f,getNewLine:()=>tx(m),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:vt,getCurrentDirectory:()=>_,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:st(e,e.getSymlinkCache),realpath:st(e,e.realpath),directoryExists:t=>Yb(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(En.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:A,onReleaseParsedCommandLine:F,hasInvalidatedResolutions:g,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:st(e,e.trace),resolveModuleNames:st(e,e.resolveModuleNames),getModuleResolutionCache:st(e,e.getModuleResolutionCache),createHash:st(e,e.createHash),resolveTypeReferenceDirectives:st(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:st(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:st(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:st(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:st(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:E,jsDocParsingMode:e.jsDocParsingMode};const T=k.getSourceFile,{getSourceFileWithCache:C}=Hz(k,(e=>la(e,_,h)),((...e)=>T.call(k,...e)));k.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,k);const w={useCaseSensitiveFileNames:f,fileExists:e=>k.fileExists(e),readFile:e=>k.readFile(e),directoryExists:e=>k.directoryExists(e),getDirectories:e=>k.getDirectories(e),realpath:k.realpath,readDirectory:(...e)=>k.readDirectory(...e),trace:k.trace,getCurrentDirectory:k.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:vt},D=t.getKeyForCompilationSettings(m);let N=new Set;return O$(a,d,m,((t,n)=>e.getScriptVersion(n)),(e=>k.fileExists(e)),g,v,b,E,x)?(k=void 0,S=void 0,void(N=void 0)):(a=B$({rootNames:d,options:m,host:k,oldProgram:a,projectReferences:x}),k=void 0,S=void 0,N=void 0,y.clearCache(),void a.getTypeChecker());function E(t){const n=la(t,_,h),r=null==S?void 0:S.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):P(t);return(S||(S=new Map)).set(n,i||!1),i}function P(e){const t=I(e,100);if(t)return t.path=la(e,_,h),t.resolvedPath=t.path,t.originalFileName=t.fileName,rR(t,w,aa(Go(e),_),void 0,aa(e,_))}function F(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&A(n.sourceFile,r)}function A(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function I(e,t,n,r){return O(e,la(e,_,h),t,n,r)}function O(n,r,i,o,s){En.assert(k,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=tZ(n,e),u=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||N.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,D,c,u,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),N.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,D,c,u,l,i)}}()}function x(){if(2!==i)return b(),a;En.assert(void 0===a)}function S(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),a=void 0}}function k(e,t,n,r){b();const i=n&&n.use===Ace.FindReferencesUse.Rename?a.getSourceFiles().filter((e=>!a.isSourceFileDefaultLibrary(e))):a.getSourceFiles();return Ace.findReferenceOrRenameEntries(a,u,i,e,t,n,r)}const T=new Map(Object.entries({19:20,21:22,23:24,32:30}));function C(t){return En.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,la(n,_,h)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function w(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function D(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=w(r,t);let l=n||!1,u=Number.MAX_VALUE;const _=new Map,d=new RegExp(/\S/),p=pQ(r,a[s]),f=p?"{/*":"//";for(let o=s;o<=c;o++){const e=r.text.substring(a[o],r.getLineEndOfPosition(a[o])),t=d.exec(e);t&&(u=Math.min(u,t.index),_.set(o.toString(),t.index),e.substr(t.index,f.length)!==f&&(l=void 0===n||n))}for(let o=s;o<=c;o++){if(s!==c&&a[o]===t.end)continue;const n=_.get(o.toString());void 0!==n&&(p?i.push(...N(e,{pos:a[o]+u,end:r.getLineEndOfPosition(a[o])},l,p)):l?i.push({newText:f,span:{length:0,start:a[o]+u}}):r.text.substr(a[o]+n,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[o]+n}}))}return i}function N(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,u=n||!1;const _=[];let{pos:d}=t;const p=void 0!==r?r:pQ(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=vQ(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),_.push(e.pos),3===e.kind&&_.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);u=void 0!==n?n:u||!TY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(u||!l){2!==(null==(i=vQ(a,t.pos))?void 0:i.kind)&&ce(_,t.pos,jt),ce(_,t.end,jt);const e=_[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}}
6);for(let t=1;t<_.length-1;t++)c.substr(_[t]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:_[t]}}),c.substr(_[t],f.length)!==f&&s.push({newText:f,span:{length:0,start:_[t]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:_[_.length-1]}})}else for(const o of _){const e=o-m.length>0?o-m.length:0,t=c.substr(e,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:o-t}})}return s}function E({openingElement:e,closingElement:t,parent:n}){return!TO(e.tagName,t.tagName)||RP(n)&&TO(e.tagName,n.openingElement.tagName)&&E(n)}function P({closingFragment:e,parent:t}){return!!(262144&e.flags)||JP(t)&&P(t)}function F(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:x(),host:e,formatContext:wde.getFormatContext(i,e),cancellationToken:u,preferences:r,triggerReason:o,kind:a}}T.forEach(((e,t)=>T.set(e.toString(),Number(t))));const A={dispose:function(){S(),e=void 0},cleanupSemanticCache:S,getSyntacticDiagnostics:function(e){return b(),a.getSyntacticDiagnostics(v(e),u).slice()},getSemanticDiagnostics:function(e){b();const t=v(e),n=a.getSemanticDiagnostics(t,u);if(!GS(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,u);return[...n,...r]},getSuggestionDiagnostics:function(e){return b(),V1(v(e),a,u)},getCompilerOptionsDiagnostics:function(){return b(),[...a.getOptionsDiagnostics(u),...a.getGlobalDiagnostics(u)]},getSyntacticClassifications:function(e,t){return Y0(u,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return b(),"2020"===(n||"original")?B8(a,u,v(e),t):W0(a.getTypeChecker(),u,v(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return Z0(u,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return b(),"original"===(n||"original")?K0(a.getTypeChecker(),u,v(e),a.getClassifiableNames(),t):J8(a,u,v(e),t)},getCompletionsAtPosition:function(t,n,r=TG,i){const o=g(m({},r),{includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions});return b(),Oae.getCompletionsAtPosition(e,a,p,v(t),n,o,r.triggerCharacter,r.triggerKind,u,i&&wde.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=TG,c){return b(),Oae.getCompletionEntryDetails(a,p,v(t),n,{name:r,source:o,data:c},e,i&&wde.getFormatContext(i,e),s,u)},getCompletionEntrySymbol:function(t,n,r,i,o=TG){return b(),Oae.getCompletionEntrySymbol(a,p,v(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=TG){b();const r=v(e);return o_e.getSignatureHelpItems(a,r,t,n,u)},getQuickInfoAtPosition:function(e,t){b();const n=v(e),r=QX(n,t);if(r===n)return;const i=a.getTypeChecker(),o=function(e){return _E(e.parent)&&e.pos===e.parent.pos?e.parent.expression:UN(e.parent)&&e.pos===e.parent.pos||Sf(e.parent)&&e.parent.name===e||HP(e.parent)?e.parent:e}(r),s=function(e,t){const n=T7(e);if(n){const e=t.getContextualType(n.parent),r=e&&C7(n,t,e,!1);if(r&&1===r.length)return Ae(r)}return t.getSymbolAtLocation(e)}(o,i);if(!s||i.isUnknownSymbol(s)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Wm(t)&&(171===t.parent.kind&&t.parent.name===t||wc(t,(e=>169===e.kind)))||_X(t)||dX(t)||jl(t.parent));case 211:case 166:return!vQ(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return Sf(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:RQ(o,n),displayParts:i.runWithCancellationToken(u,(t=>XY(t,e,bX(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:l,documentation:_,tags:d}=i.runWithCancellationToken(u,(e=>q_e.getSymbolDisplayPartsDocumentationAndSymbolKind(e,s,n,bX(o),o)));return{kind:c,kindModifiers:q_e.getSymbolModifiers(i,s),textSpan:RQ(o,n),displayParts:l,documentation:_,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return b(),gle.getDefinitionAtPosition(a,v(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return b(),gle.getDefinitionAndBoundSpan(a,v(e),t)},getImplementationAtPosition:function(e,t){return b(),Ace.getImplementationsAtPosition(a,u,a.get
6SourceFiles(),v(e),t)},getTypeDefinitionAtPosition:function(e,t){return b(),gle.getTypeDefinitionAtPosition(a.getTypeChecker(),v(e),t)},getReferencesAtPosition:function(e,t){return b(),k(QX(v(e),t),t,{use:Ace.FindReferencesUse.References},Ace.toReferenceEntry)},findReferences:function(e,t){return b(),Ace.findReferencedSymbols(a,u,a.getSourceFiles(),v(e),t)},getFileReferences:function(e){return b(),Ace.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(Ace.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=sa(e);En.assert(n.some((e=>sa(e)===r))),b();const i=H(n,(e=>a.getSourceFile(e))),o=v(e);return J0.getDocumentHighlights(a,u,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=QX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let a=i;for(;;)if(fX(a)||pX(a))a=a.parent;else{if(!gX(a))break;if(267!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return sc(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return N7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return b(),p2(n?[v(n)]:a.getSourceFiles(),a.getTypeChecker(),u,e,t,r,i)},getRenameInfo:function(e,t,n){return b(),Yue.getRenameInfo(a,v(e),t,n||{})},getSmartSelectionRange:function(e,t){return F_e.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){b();const o=v(e),a=XX(QX(o,t));if(Yue.nodeIsEligibleForRename(a)){if(nN(a)&&(jP(a.parent)||BP(a.parent))&&Qy(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=RQ(e.tagName,o);return m({fileName:o.fileName,textSpan:t},Ace.toContextSpan(t,o,e.parent))}))}{const e=cY(o,null!=i?i:TG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return k(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:Ace.FindReferencesUse.Rename},((t,n,r)=>Ace.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return I2(o.getCurrentSourceFile(e),u)},getNavigationTree:function(e){return O2(o.getCurrentSourceFile(e),u)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return zue.collectElements(t,u)},getTodoComments:function(e,t){b();const n=v(e);u.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+j(t,(e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")")).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){u.throwIfCancellationRequested();const e=3;En.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!vQ(n,c))continue;let l;for(let n=0;n<t.length;n++)a[n+e]&&(l=t[n]);if(void 0===l)return En.fail();if((o=r.charCodeAt(c+l.text.length))>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const _=a[2];i.push({descriptor:l,message:_,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=YX(n,t),i=r.getStart(n)===t?T.get(r.kind.toString()):void 0,a=i&&BX(r.parent,i,n);return a?[RQ(r,n),RQ(a,n)].sort(((e,t)=>e.start-t.start)):c},getIndentationAtPosition:function(e,t,n){let r=ar();const i=c7(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(ar()-r)),r=ar();const s=wde.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation  : "+(ar()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return wde.formatSelection(n,r,a,wde.getFormatContext(c7(i),e))},getFormattingEditsForDocument:function(t,n){return wde.formatDocument(o.getCurrentSourceFile(t),wde.getFormatContext(c7(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=wde.getFormatContext(c7(i),e);if(!vQ(a,n))switch(r){case"{":return wde.formatOnOpeningCurly(n,a,s);case"}":return wde.formatOnClosingCurly(n,a,s);case";":return wde.formatOnSemicolon(n,a,s);case"\n":return wde.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?wde.getFormatContext(i,e).options:void 0;return Ble.getDocCommentTemplateAtPosition(HY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);
6if(cQ(r,t))return!1;if(lQ(r,t))return 123===n;if(_Q(r,t))return!1;switch(n){case 39:case 34:case 96:return!vQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=iQ(t,n);if(!r)return;const i=32===r.kind&&jP(r.parent)?r.parent.parent:JD(r)&&RP(r.parent)?r.parent:void 0;if(i&&E(i))return{newText:`</${i.openingElement.tagName.getText(n)}>`};const a=32===r.kind&&UP(r.parent)?r.parent.parent:JD(r)&&JP(r.parent)?r.parent:void 0;return a&&P(a)?{newText:"</>"}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=iQ(t,n);if(!r||307===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(JP(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(Ad(e)||Ad(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=wc(r.parent,(e=>!(!jP(e)&&!BP(e))));if(!e)return;En.assert(jP(e)||BP(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),u=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||u===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=u))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:u-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=wde.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:BQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=TG){b();const c=v(t),l=sc(n,r),_=wde.getFormatContext(o,e);return q(ae(i,Ot,jt),(t=>(u.throwIfCancellationRequested(),Q7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:u,formatContext:_,preferences:s}))))},getCombinedCodeFix:function(t,n,r,i=TG){b(),En.assert("file"===t.type);const o=v(t.fileName),s=wde.getFormatContext(r,e);return Q7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:u,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return pt(n)?Promise.all(n.map((e=>C(e)))):C(n)},organizeImports:function(t,n,r=TG){var i;b(),En.assert("file"===t.type);const o=v(t.fileName),s=wde.getFormatContext(n,e),c=null!=(i=t.mode)?i:t.skipDestructiveCodeActions?"SortAndCombine":"All";return _ue.organizeImports(o,s,e,a,r,c)},getEditsForFileRename:function(t,n,r,i=TG){return o1(x(),t,n,e,wde.getFormatContext(r,e),i,y)},getEmitOutput:function(t,n,r){b();const i=v(t),o=e.getCustomTransformers&&e.getCustomTransformers();return K$(a,i,!!n,u,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:x,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return En.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=wY(t,y,st(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const a of t)for(const t of a.references){const r=o(t);if(En.assertIsDefined(r),n.has(t)||Ace.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=wY(t,y,st(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=QX(t,e.textSpan.start);return Ace.Core.getAdjustedNode(n,{use:Ace.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=TG,r,i,o){b();const a=v(e);return v6.getApplicableRefactors(F(a,t,n,TG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=TG,a){b();const s=v(e);return v6.getEditsForRefactor(F(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=TG){b();const i=v(t),o=En.checkDefined(a.getSourceFiles()),s=bT(t),c=b3(F(i,n,r,TG)),l=x3(null==c?void 0:c.all),u=H(o,(e=>{const t=bT(e.fileName);return(null==a?void 0:a.isSourceFileFromExternalLibrary(i))||i===v(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&fn(Xo(e.fileName),"lib.")&&".d.ts"===t||s!==t&&(!(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)||l)?void 0:e.fileName}));return{newFileName:v3(i,a,e,c),files:u}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:y.toLineColumnOffset(e,t)},getSourceMapper:()=>y,clearSourceMapperCache:()=>y.clearCache(),prepareCallHierarchy:function(e,t){b();const n=P7.resolveCallHierarchyDeclaration(a,QX(v(e),t));return n&&o0(n,(e=>
6P7.createCallHierarchyItem(a,e)))},provideCallHierarchyIncomingCalls:function(e,t){b();const n=v(e),r=a0(P7.resolveCallHierarchyDeclaration(a,0===t?n:QX(n,t)));return r?P7.getIncomingCalls(a,r,u):[]},provideCallHierarchyOutgoingCalls:function(e,t){b();const n=v(e),r=a0(P7.resolveCallHierarchyDeclaration(a,0===t?n:QX(n,t)));return r?P7.getOutgoingCalls(a,r):[]},toggleLineComment:D,toggleMultilineComment:N,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=w(n,t);return r===i&&t.pos!==t.end?N(e,t,!0):D(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=pQ(n,i)?2:1);for(let o=i;o<=a;o++){const t=vQ(n,o);if(t){switch(t.kind){case 2:r.push(...D(e,{end:t.end,pos:t.pos+1},!1));break;case 3:r.push(...N(e,{end:t.end,pos:t.pos+1},!1))}o=t.end+1}}return r},provideInlayHints:function(t,n,r=TG){b();const i=v(t);return Ole.provideInlayHints(function(t,n,r){return{file:t,program:x(),host:e,span:n,preferences:r,cancellationToken:u}}(i,n,r))},getSupportedCodeFixes:d7,getPasteEdits:function(t,n){return b(),wfe.pasteEditsProvider(v(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:v(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,wde.getFormatContext(n,e),u)},mapCode:function(t,n,r,i,a){return oue.mapCode(o.getCurrentSourceFile(t),n,r,e,wde.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:b7.forEach((e=>A[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:x7.forEach((e=>A[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:En.assertNever(i)}return A}function k7(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(nN(n)&&!dX(n)&&n.escapedText||Zh(n)&&function(e){return kh(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||Ch(e)}(n)){const e=ay(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(rN(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(ZI(n,e),V_(n))for(const t of n.jsDoc)ZI(t,e)}))}(e),e.nameTable}function T7(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return G_(e.parent.parent)?e.parent.parent:void 0;case 80:return!G_(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&(sE(t.parent)||$P(t.parent))?t:void 0}function C7(e,t,n,r){const i=QQ(e.name);if(!i)return c;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:c}const o=sE(e.parent)||$P(e.parent)?L(n.types,(n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent))):n.types,a=H(o,(e=>e.getProperty(i)));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?ae(a,Ot):H(n.types,(e=>e.getProperty(i)))}function w7(e){if(Eo)return ra(Go(sa(Eo.getExecutingFilePath())),Hs(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function D7(e,t,n){const r=[];n=_2(n,r);const i=pt(e)?e:[e],o=$q(void 0,void 0,_w,n,i,t,!0);return o.diagnostics=re(o.diagnostics,r),o}uS({getNodeConstructor:()=>H8,getTokenConstructor:()=>Q8,getIdentifierConstructor:()=>Y8,getPrivateIdentifierConstructor:()=>Z8,getSourceFileConstructor:()=>a7,getSymbolConstructor:()=>X8,getTypeConstructor:()=>e7,getSignatureConstructor:()=>t7,getSourceMapSourceConstructor:()=>s7});var N7={};function E7(e,t){if(e.isDeclarationFile)return;let n=ZX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=iQ(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=wI(t)?D(t.modifiers,xN):void 0;return sc(r?hs(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,rQ(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(iQ(t.pos,e))}function c(t){return l(rQ(t,t.parent,e))}function l(t){if(t){const{parent:u}=t;switch(t.kind){case 243:return _(t.declarationList.declarations[0]);case 260:case 172:case 171:return _(t);
6case 169:return function e(t){if(Bu(t.name))return g(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Xv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return En.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(e.body)return p(e)?i(e):l(e.body)}(t);case 241:if(Yf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):l(t)}(t);case 268:return f(t);case 299:return f(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248:return(r=t).initializer?m(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 249:return o(t,t.expression);case 250:return m(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return f(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==Hj(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o<t.length&&r(t[o]);)o++;return sc(hs(e.text,t[n].pos),t[o-1].end)}}return i(n)}(u.modifiers,t,xN);case 206:case 207:return g(t);case 264:case 265:return;case 27:case 1:return a(iQ(t.pos,e));case 28:return s(t);case 19:return function(t){switch(t.parent.kind){case 266:const n=t.parent;return a(iQ(t.pos,e,t.parent),n.members.length?n.members[0]:n.getLastToken(e));case 263:const r=t.parent;return a(iQ(t.pos,e,t.parent),r.members.length?r.members[0]:r.getLastToken(e));case 269:return a(t.parent.parent,t.parent.clauses[0])}return l(t.parent)}(t);case 20:return function(e){switch(e.parent.kind){case 268:if(1!==Hj(e.parent.parent))return;case 266:case 263:return i(e);case 241:if(Yf(e.parent))return i(e);case 299:return l(Oe(e.parent.statements));case 269:const t=Oe(e.parent.clauses);return t?l(Oe(t.statements)):void 0;case 206:const n=e.parent;return l(Oe(n.elements)||n);default:if(FQ(e.parent)){const t=e.parent;return i(Oe(t.properties)||t)}return l(e.parent)}}(t);case 24:return function(e){if(207===e.parent.kind){const t=e.parent;return i(Oe(t.elements)||t)}if(FQ(e.parent)){const t=e.parent;return i(Oe(t.elements)||t)}return l(e.parent)}(t);case 21:return 246===(n=t).parent.kind||213===n.parent.kind||214===n.parent.kind?s(n):217===n.parent.kind?c(n):l(n.parent);case 22:return function(e){switch(e.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return s(e);default:return l(e.parent)}}(t);case 59:return function(e){return vu(e.parent)||303===e.parent.kind||169===e.parent.kind?s(e):l(e.parent)}(t);case 32:case 30:return function(e){return 216===e.parent.kind?c(e):l(e.parent)}(t);case 117:return function(e){return 246===e.parent.kind?o(e,e.parent.expression):l(e.parent)}(t);case 93:case 85:case 98:return c(t);case 165:return function(e){return 250===e.parent.kind?c(e):l(e.parent)}(t);default:if(FQ(t))return h(t);if((80===t.kind||230===t.kind||303===t.kind||304===t.kind)&&FQ(u))return i(t);if(226===t.kind){const{left:e,operatorToken:n}=t;if(FQ(e))return h(e);if(64===n.kind&&FQ(t.parent))return i(t);if(28===n.kind)return l(e)}if(Lm(t))switch(u.kind){case 246:return s(t);case 170:return l(t.parent);case 248:case 250:return i(t);case 226:if(28===t.parent.operatorToken.kind)return i(t);break;case 219:if(t.parent.body===t)return i(t)}switch(t.parent.kind){case 303:if(t.parent.name===t&&!FQ(t.parent.parent))return l(t.parent.initializer);break;case 216:if(t.parent.type===t)return c(t.parent.type);break;case 260:case 169:{const{initializer:e,type:n}=t.parent;if(e===t||n===t||kb(t.kind))return s(t);break}case 226:{const{left:e}=t.parent;if(FQ(e)&&t!==e)return s(t);break}default:if(vu(t.parent)&&t.parent.type===t)return s(t)}return l(t.parent)}}var n,r;function u(t){return aP(t.parent)&&t.parent.declarations[0]===t?i(iQ(t.pos,e,t.parent),t):i(t)}function _(t){if(249===t.parent.parent.kind)return l(t.parent.parent);const n=t.parent;
6return Bu(t.name)?g(t.name):K_(t)&&t.initializer||Xv(t,32)||250===n.parent.kind?u(t):aP(t.parent)&&t.parent.declarations[0]!==t?l(iQ(t.pos,e,t.parent)):void 0}function p(e){return Xv(e,32)||263===e.parent.kind&&176!==e.kind}function f(t){switch(t.parent.kind){case 267:if(1!==Hj(t.parent))return;case 247:case 245:case 249:return a(t.parent,t.statements[0]);case 248:case 250:return a(iQ(t.pos,e,t.parent),t.statements[0])}return l(t.statements[0])}function m(e){if(261!==e.initializer.kind)return l(e.initializer);{const t=e.initializer;if(t.declarations.length>0)return l(t.declarations[0])}}function g(e){const t=d(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):u(e.parent)}function h(e){En.assert(207!==e.kind&&206!==e.kind);const t=d(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}r(N7,{spanInSourceFileAtLocation:()=>E7});var P7={};function F7(e){return kN(e)||oP(e)}function A7(e){return(mE(e)||gE(e)||NE(e))&&F7(e.parent)&&e===e.parent.initializer&&nN(e.parent.name)&&(!!(2&xc(e.parent))||kN(e.parent))}function I7(e){return nF(e)||dP(e)||sP(e)||mE(e)||cP(e)||NE(e)||wN(e)||CN(e)||TN(e)||NN(e)||EN(e)}function O7(e){return nF(e)||dP(e)&&nN(e.name)||sP(e)||cP(e)||wN(e)||CN(e)||TN(e)||NN(e)||EN(e)||function(e){return(mE(e)||NE(e))&&jc(e)}(e)||A7(e)}function L7(e){return nF(e)?e:jc(e)?e.name:A7(e)?e.parent.name:En.checkDefined(e.modifiers&&w(e.modifiers,R7))}function R7(e){return 90===e.kind}function M7(e,t){const n=L7(t);return n&&e.getSymbolAtLocation(n)}function j7(e,t){if(t.body)return t;if(DN(t))return Tv(t.parent);if(sP(t)||CN(t)){const n=M7(e,t);return n&&n.valueDeclaration&&xu(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function B7(e,t){const n=M7(e,t);let r;if(n&&n.declarations){const e=oe(n.declarations),t=j(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>zt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=j(e,(e=>n.declarations[e]));let o;for(const n of i)O7(n)&&(o&&o.parent===n.parent&&o.end===n.pos||(r=fe(r,n)),o=n)}return r}function J7(e,t){var n,r,i;return wN(t)?t:xu(t)?null!=(r=null!=(n=j7(e,t))?n:B7(e,t))?r:t:null!=(i=B7(e,t))?i:t}function U7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(O7(t))return J7(n,t);if(I7(t)){const e=wc(t,O7);return e&&J7(n,e)}if(kh(t)){if(O7(t.parent))return J7(n,t.parent);if(I7(t.parent)){const e=wc(t.parent,O7);return e&&J7(n,e)}return F7(t.parent)&&t.parent.initializer&&A7(t.parent.initializer)?t.parent.initializer:void 0}if(DN(t))return O7(t.parent)?t.parent:void 0;if(126!==t.kind||!wN(t.parent)){if(oP(t)&&t.initializer&&A7(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function q7(e,t){const n=t.getSourceFile(),r=function(e,t){if(nF(t))return{text:t.fileName,pos:0,end:0};if((sP(t)||cP(t))&&!jc(t)){const e=t.modifiers&&w(t.modifiers,R7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(wN(t)){const n=hs(t.getSourceFile().text,ax(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=A7(t)?t.parent.name:En.checkDefined(Jc(t),"Expected call hierarchy item to have a name");let r=nN(n)?Fc(n):Zh(n)?n.text:yN(n)&&Zh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=Sz();r=kd((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(A7(e))return kN(e.parent)&&Du(e.parent.parent)?NE(e.parent.parent)?null==(t=Uc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():pP(e.parent.parent.parent.parent)&&nN(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(r=Uc(e.parent))?void 0:r.getText():null==(i=Jc(e.parent))?void 0:i.getText();case 262:case 263:case 267:if(pP(e.parent)&&nN(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=xX(t),a=SQ(t),s=sc(hs(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=sc(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function z7(e){return void 0!==e}function $7(e){if(e.kind===Ace.EntryKind.Node){const{node:t}=e;if(QG(t,!0,!0)||YG(t,!0,!0)||ZG(t,!0,!0)||eX(t,!0,!0)||fX(t)||mX(t)){const e=t.getSourceFile();return{declaration:wc(t,O7)||e,range:jQ(t,e)}}}}function V7(e){return ZB(e.declaration)}function W7(e,t,n){if(nF(t)||dP(t)||wN(t))return[];const r=L7(t),i=L(Ace.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:Ace.FindReferencesUse.References},$7),z7);return i?nt(i,V7,(t=>function(e,t){return n=q7(e,t[0].declaration),r=j(t,(e=>BQ(e.range))),{from:n,fromSpans:r};var n,r}(e,t))):[]}function H7(e,t){const n=[],r=function(e,t){function n(n){const r=dE(n)?n.tag:j_(n)?n.tagName:Hx(n)||wN(n)?n:n.expression,i=U7(e,r);if(i){const e=jQ(r,n.getSourceFile());if(pt(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(O7(t)){if(Du(t))for(const n of t.members)n.name&&yN(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void d(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),ZI(t,e)}Mf(t)||ZI(t,e)}}}(e,n);switch(t.kind){case 307:!function(e,t){d(e.statements,t)}(t,r);break;case 267:!function(e,t){!Xv(e,128)&&e.body&&pP(e.body)&&d(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=j7(e,t);r&&(d(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){d(e.modifiers,t);const n=Oh(e);n&&t(n.expression);for(const r of e.members)CI(r)&&d(r.modifiers,t),kN(r)?t(r.initializer):DN(r)&&r.body?(d(r.parameters,t),t(r.body)):wN(r)&&t(r)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:En.assertNever(t)}return n}function K7(e,t){return 33554432&t.flags||TN(t)?[]:nt(H7(e,t),V7,(t=>function(e,t){return n=q7(e,t[0].declaration),r=j(t,(e=>BQ(e.range))),{to:n,fromSpans:r};var n,r}(e,t)))}r(P7,{createCallHierarchyItem:()=>q7,getIncomingCalls:()=>W7,getOutgoingCalls:()=>K7,resolveCallHierarchyDeclaration:()=>U7});var G7={};r(G7,{v2020:()=>X7});var X7={};r(X7,{TokenEncodingConsts:()=>R8,TokenModifier:()=>j8,TokenType:()=>M8,getEncodedSemanticClassifications:()=>J8,getSemanticClassifications:()=>B8});var Q7={};r(Q7,{PreserveOptionalFlags:()=>
6toe,addNewNodeForMemberSymbol:()=>noe,codeFixAll:()=>_5,createCodeFixAction:()=>n5,createCodeFixActionMaybeFixAll:()=>r5,createCodeFixActionWithoutFixAll:()=>t5,createCombinedCodeActions:()=>l5,createFileTextChanges:()=>u5,createImportAdder:()=>Iee,createImportSpecifierResolver:()=>Lee,createJsonPropertyAssignment:()=>moe,createMissingMemberNodes:()=>Zie,createSignatureDeclarationFromCallExpression:()=>ioe,createSignatureDeclarationFromSignature:()=>roe,createStubbedBody:()=>doe,eachDiagnostic:()=>d5,findAncestorMatchingSpan:()=>boe,findJsonProperty:()=>goe,generateAccessorFromProperty:()=>xoe,getAccessorConvertiblePropertyAtPosition:()=>Coe,getAllFixes:()=>c5,getAllSupers:()=>Noe,getArgumentTypesAndTypeParameters:()=>coe,getFixes:()=>s5,getImportCompletionAction:()=>Ree,getImportKind:()=>Yee,getJSDocTypedefNodes:()=>bee,getNoopSymbolTrackerWithResolver:()=>eoe,getPromoteTypeOnlyCompletionAction:()=>Mee,getSupportedErrorCodes:()=>a5,importFixName:()=>Pee,importSymbols:()=>voe,parameterShouldGetTypeFromJSDoc:()=>Z5,registerCodeFix:()=>o5,setJsonCompilerOptionValue:()=>foe,setJsonCompilerOptionValues:()=>poe,tryGetAutoImportableReferenceFromTypeNode:()=>hoe,typeToAutoImportableTypeNode:()=>aoe});var Y7,Z7=ct(),e5=new Map;function t5(e,t,n){return i5(e,x0(n),t,void 0,void 0)}function n5(e,t,n,r,i,o){return i5(e,x0(n),t,r,x0(i),o)}function r5(e,t,n,r,i,o){return i5(e,x0(n),t,r,i&&x0(i),o)}function i5(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function o5(e){for(const t of e.errorCodes)Y7=void 0,Z7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)En.assert(!e5.has(t)),e5.set(t,e)}function a5(){return null!=Y7?Y7:Y7=Xe(Z7.keys())}function s5(e){const t=p5(e);return q(Z7.get(String(e.errorCode)),(n=>j(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const o of t)if(F(n,o.code)&&r++,r>1)break;const i=r<2;return e=>{var t=e,{fixId:n,fixAllDescription:r}=t,o=h(t,["fixId","fixAllDescription"]);return i?o:g(m({},o),{fixId:n,fixAllDescription:r})}}(n,t))))}function c5(e){return e5.get(yt(e.fixId,mt)).getAllCodeActions(e)}function l5(e,t){return{changes:e,commands:t}}function u5(e,t){return{fileName:e,textChanges:t}}function _5(e,t,n){const r=[];return l5(Q_e.ChangeTracker.with(e,(i=>d5(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function d5(e,t,n){for(const r of p5(e))F(t,r.code)&&n(r)}function p5({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...V1(t,e,n)];return GS(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var f5="addConvertToUnknownForNonOverlappingTypes",m5=[Pa.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function g5(e,t,n){const r=FE(n)?_w.createAsExpression(n.expression,_w.createKeywordTypeNode(159)):_w.createTypeAssertion(_w.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function h5(e,t){if(!Wm(e))return wc(ZX(e,t),(e=>FE(e)||pE(e)))}o5({errorCodes:m5,getCodeActions:function(e){const t=h5(e.sourceFile,e.span.start);if(void 0===t)return;const n=Q_e.ChangeTracker.with(e,(n=>g5(n,e.sourceFile,t)));return[n5(f5,n,Pa.Add_unknown_conversion_for_non_overlapping_types,f5,Pa.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[f5],getAllCodeActions:e=>_5(e,m5,((e,t)=>{const n=h5(t.file,t.start);n&&g5(e,t.file,n)}))}),o5({errorCodes:[Pa.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Pa.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Pa.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[t5("addEmptyExportDeclaration",Q_e.ChangeTracker.with(e,(e=>{const n=_w.createExportDeclaration(void 0,!1,_w.createNamedExports([]),void 0);
6e.insertNodeAtEndOfScope(t,t,n)})),Pa.Add_export_to_make_this_file_into_a_module)]}});var y5="addMissingAsync",v5=[Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Pa.Type_0_is_not_assignable_to_type_1.code,Pa.Type_0_is_not_comparable_to_type_1.code];function b5(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(ZB(n)))return;null==r||r.add(ZB(n));const i=_w.replaceModifiers(sZ(n,!0),_w.createNodeArray(_w.createModifiersFromModifierFlags(1024|ub(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return n5(y5,i,Pa.Add_async_modifier_to_containing_function,y5,Pa.Add_all_missing_async_modifiers)}function x5(e,t){if(t)return wc(ZX(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>Ks(t)?"quit":(gE(n)||CN(n)||mE(n)||sP(n))&&bY(t,RQ(n,e))))}o5({fixIds:[y5],errorCodes:v5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=w(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>gt(n)&&gt(r)&&bY({start:n,length:r},e)&&o===t&&!!i&&te(i,(e=>e.code===Pa.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=x5(t,a&&a.relatedInformation&&w(a.relatedInformation,(e=>e.code===Pa.Did_you_mean_to_mark_this_function_as_async.code)));if(s)return[b5(e,s,(t=>Q_e.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return _5(e,v5,((r,i)=>{const o=i.relatedInformation&&w(i.relatedInformation,(e=>e.code===Pa.Did_you_mean_to_mark_this_function_as_async.code)),a=x5(t,o);if(a)return b5(e,a,(e=>(e(r),[])),n)}))}});var S5="addMissingAwait",k5=Pa.Property_0_does_not_exist_on_type_1.code,T5=[Pa.This_expression_is_not_callable.code,Pa.This_expression_is_not_constructable.code],C5=[Pa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,Pa.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Pa.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Pa.Operator_0_cannot_be_applied_to_type_1.code,Pa.Operator_0_cannot_be_applied_to_types_1_and_2.code,Pa.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,Pa.This_condition_will_always_return_true_since_this_0_is_always_defined.code,Pa.Type_0_is_not_an_array_type.code,Pa.Type_0_is_not_an_array_type_or_a_string_type.code,Pa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,Pa.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Pa.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Pa.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Pa.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,k5,...T5];function w5(e,t,n,r,i){const o=i0(e,n);return o&&function(e,t,n,r,i){const o=i.getTypeChecker(),a=o.getDiagnostics(e,r);return te(a,(({start:e,length:r,relatedInformation:i,code:o})=>gt(e)&&gt(r)&&bY({start:e,length:r},n)&&o===t&&!!i&&te(i,(e=>e.code===Pa.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&P5(o)?o:void 0}function D5(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(cE(e.parent)&&nN(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(nN(e))return{identifiers:[e],isCompleteFix:!0};if(kE(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!nN(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const c of o.identifiers){const e=i.getSymbolAtLocation(c);if(!e)continue;const o=ht(e.valueDeclaration,oP),l=o&&ht(o.name,nN),u=Bh(o,243);if(!o||!u||o.type||!o.initializer||u.getSourceFile()!==t||Xv(u,32)||!l||!P5(o.initializer)){s=!1;continue}const _=r.getSemanticDiagnostics(t,n);Ace.Core.eachSymbolReferenceInFile(l,i,t,(e=>c!==e&&!E5(e,_,t,i)))?s=!1:(a||(a=[])).push({expression:o.initializer,declarationSymbol:e})}
6return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return t5("addMissingAwaitToInitializer",i((e=>{d(l.initializers,(({expression:t})=>F5(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&F5(e,n,a,r,t,o)})),1===l.initializers.length?[Pa.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:Pa.Add_await_to_initializers)}function N5(e,t,n,r,i,o){const a=i((i=>F5(i,n,e.sourceFile,r,t,o)));return n5(S5,a,Pa.Add_await,S5,Pa.Fix_all_expressions_possibly_missing_await)}function E5(e,t,n,r){const i=cE(e.parent)?e.parent.name:kE(e.parent)?e.parent:e,o=w(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&F(C5,o.code)||1&r.getTypeAtLocation(i).flags}function P5(e){return 65536&e.flags||!!wc(e,(e=>e.parent&&gE(e.parent)&&e.parent.body===e||JE(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function F5(e,t,n,r,i,o){if(GE(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,_w.updateForOfStatement(t,_w.createToken(135),t.initializer,t.expression,t.statement))}}if(kE(i))for(const a of[i.left,i.right]){if(o&&nN(a)){const e=r.getSymbolAtLocation(a);if(e&&o.has(eJ(e)))continue}const t=r.getTypeAtLocation(a),i=r.getPromisedTypeOfPromise(t)?_w.createAwaitExpression(a):a;e.replaceNode(n,a,i)}else if(t===k5&&cE(i.parent)){if(o&&nN(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(eJ(e)))return}e.replaceNode(n,i.parent.expression,_w.createParenthesizedExpression(_w.createAwaitExpression(i.parent.expression))),A5(e,i.parent.expression,n)}else if(F(T5,t)&&Zu(i.parent)){if(o&&nN(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(eJ(e)))return}e.replaceNode(n,i,_w.createParenthesizedExpression(_w.createAwaitExpression(i))),A5(e,i,n)}else{if(o&&oP(i.parent)&&nN(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!Q(o,eJ(e)))return}e.replaceNode(n,i,_w.createAwaitExpression(i))}}function A5(e,t,n){const r=iQ(t.pos,n);r&&BZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}o5({fixIds:[S5],errorCodes:C5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=w5(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>Q_e.ChangeTracker.with(e,t);return de([D5(e,a,n,s,c),N5(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return _5(e,C5,((a,s)=>{const c=w5(t,s.code,s,r,n);if(!c)return;const l=e=>
6(e(a),[]);return D5(e,c,s.code,i,l,o)||N5(e,c,s.code,i,l,o)}))}});var I5="addMissingConst",O5=[Pa.Cannot_find_name_0.code,Pa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function L5(e,t,n,r,i){const o=ZX(t,n),a=wc(o,(e=>m_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return R5(e,a,t,i);const s=o.parent;if(kE(s)&&64===s.operatorToken.kind&&zE(s.parent))return R5(e,o,t,i);if(aE(s)){const n=r.getTypeChecker();if(!C(s.elements,(e=>function(e,t){const n=nN(e)?e:wb(e,!0)&&nN(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return R5(e,s,t,i)}const c=wc(o,(e=>!!zE(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!M5(c,r.getTypeChecker()))return;return R5(e,c,t,i)}}function R5(e,t,n,r){r&&!Q(r,t)||e.insertModifierBefore(n,87,t)}function M5(e,t){return!!kE(e)&&(28===e.operatorToken.kind?C([e.left,e.right],(e=>M5(e,t))):64===e.operatorToken.kind&&nN(e.left)&&!t.getSymbolAtLocation(e.left))}o5({errorCodes:O5,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>L5(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[n5(I5,t,Pa.Add_const_to_unresolved_variable,I5,Pa.Add_const_to_all_unresolved_variables)]},fixIds:[I5],getAllCodeActions:e=>{const t=new Set;return _5(e,O5,((n,r)=>L5(n,r.file,r.start,e.program,t)))}});var j5="addMissingDeclareProperty",B5=[Pa.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function J5(e,t,n,r){const i=ZX(t,n);if(!nN(i))return;const o=i.parent;172!==o.kind||r&&!Q(r,o)||e.insertModifierBefore(t,138,o)}o5({errorCodes:B5,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>J5(t,e.sourceFile,e.span.start)));if(t.length>0)return[n5(j5,t,Pa.Prefix_with_declare,j5,Pa.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[j5],getAllCodeActions:e=>{const t=new Set;return _5(e,B5,((e,n)=>J5(e,n.file,n.start,t)))}});var U5="addMissingInvocationForDecorator",q5=[Pa._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function z5(e,t,n){const r=wc(ZX(t,n),xN);En.assert(!!r,"Expected position to be owned by a decorator.");const i=_w.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}o5({errorCodes:q5,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>z5(t,e.sourceFile,e.span.start)));return[n5(U5,t,Pa.Call_decorator_expression,U5,Pa.Add_to_all_uncalled_decorators)]},fixIds:[U5],getAllCodeActions:e=>_5(e,q5,((e,t)=>z5(e,t.file,t.start)))});var $5="addNameToNamelessParameter",V5=[Pa.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function W5(e,t,n){const r=ZX(t,n),i=r.parent;if(!bN(i))return En.fail("Tried to add a parameter name to a non-parameter: "+En.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);En.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),En.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=_w.createTypeReferenceNode(i.name,void 0),c=H5(t,i);for(;c;)s=_w.createArrayTypeNode(s),a=c.getEnd(),c=H5(t,c);const l=_w.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!BN(s)?_w.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,nx(i.getStart(t),a),l)}function H5(e,t){const n=rQ(t.name,t.parent,e);if(n&&23===n.kind&&iE(n.parent)&&bN(n.parent.parent))return n.parent.parent}o5({errorCodes:V5,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>W5(t,e.sourceFile,e.span.start)));return[n5($5,t,Pa.Add_parameter_name,$5,Pa.Add_names_to_all_parameters_without_names)]},fixIds:[$5],getAllCodeActions:e=>_5(e,V5,((e,t)=>W5(e,t.file,t.start)))});var K5="addOptionalPropertyUndefined";function G5(e,t){var n;if(e){if(kE(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(oP(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(uE(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!Tu(n.valueDeclaration.kind))return;if(!s_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(nN(i))return{source:e,target:i}}else if(YP(e.parent)&&nN(e.parent.name)||ZP(e.parent)){const r=G5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:YP(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}o5({errorCodes:[Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=G5(i0(e,t),n);if(!o)return c;const{source:a,target:s}=o,l=function(e,t,n){return cE(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,s,n)?n.getTypeAtLocation(s.expression):n.getTypeAtLocation(s);return(null==(i=null==(r=l.symbol)?void 0:r.declarations)?void 0:i.some((e=>Id(e).fileName.match(/\.d\.ts$/))))?c:n.getExactOptionalProperties(l)}(e.sourceFile,e.span,t);if(!n.length)return;const r=Q_e.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(SN(t)||kN(t))&&t.type){const n=_w.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],_w.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[t5(K5,r,Pa.Add_undefined_to_optional_property_type)]},fixIds:[K5]});var X5="annotateWithTypeFromJSDoc",Q5=[Pa.JSDoc_types_may_be_moved_to_TypeScript_types.code];function Y5(e,t){const n=ZX(e,t);return ht(bN(n.parent)?n.parent.parent:n.parent,Z5)}function Z5(e){return function(e){return xu(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&e9(e)}function e9(e){return xu(e)?e.parameters.some(e9)||!e.type&&!!yl(e):!e.type&&!!hl(e)}function t9(e,t,n){if(xu(n)&&(yl(n)||n.parameters.some((e=>
6!!hl(e))))){if(!n.typeParameters){const r=Mv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=gE(n)&&!BX(n,21,t);r&&e.insertNodeBefore(t,Ae(n.parameters),_w.createToken(21));for(const i of n.parameters)if(!i.type){const n=hl(i);n&&e.tryInsertTypeAnnotation(t,i,lJ(n,n9,Mu))}if(r&&e.insertNodeAfter(t,Le(n.parameters),_w.createToken(22)),!n.type){const r=yl(n);r&&e.tryInsertTypeAnnotation(t,n,lJ(r,n9,Mu))}}else{const r=En.checkDefined(hl(n),"A JSDocType for this declaration should exist");En.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,lJ(r,n9,Mu))}}function n9(e){switch(e.kind){case 312:case 313:return _w.createTypeReferenceNode("any",c);case 316:return function(e){return _w.createUnionTypeNode([lJ(e.type,n9,Mu),_w.createTypeReferenceNode("undefined",c)])}(e);case 315:return n9(e.type);case 314:return function(e){return _w.createUnionTypeNode([lJ(e.type,n9,Mu),_w.createTypeReferenceNode("null",c)])}(e);case 318:return function(e){return _w.createArrayTypeNode(lJ(e.type,n9,Mu))}(e);case 317:return function(e){var t;return _w.createFunctionTypeNode(c,e.parameters.map(r9),null!=(t=e.type)?t:_w.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(nN(e.typeName)){if(Xm(e))return function(e){const t=_w.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,_w.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=_w.createTypeLiteralNode([_w.createIndexSignature(void 0,[t],e.typeArguments[1])]);return hw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=_w.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?uJ(e.typeArguments,n9,Mu):_w.createNodeArray([_w.createTypeReferenceNode("any",c)])}return _w.createTypeReferenceNode(t,n)}(e);case 322:return function(e){const t=_w.createTypeLiteralNode(j(e.jsDocPropertyTags,(e=>_w.createPropertySignature(void 0,nN(e.name)?e.name:e.name.right,pC(e)?_w.createToken(58):void 0,e.typeExpression&&lJ(e.typeExpression.type,n9,Mu)||_w.createKeywordTypeNode(133)))));return hw(t,1),t}(e);default:const t=vJ(e,n9,void 0);return hw(t,1),t}}function r9(e){const t=e.parent.parameters.indexOf(e),n=318===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?_w.createToken(26):e.dotDotDotToken;return _w.createParameterDeclaration(e.modifiers,i,r,e.questionToken,lJ(e.type,n9,Mu),e.initializer)}o5({errorCodes:Q5,getCodeActions(e){const t=Y5(e.sourceFile,e.span.start);if(!t)return;const n=Q_e.ChangeTracker.with(e,(n=>t9(n,e.sourceFile,t)));return[n5(X5,n,Pa.Annotate_with_type_from_JSDoc,X5,Pa.Annotate_everything_with_types_from_JSDoc)]},fixIds:[X5],getAllCodeActions:e=>_5(e,Q5,((e,t)=>{const n=Y5(t.file,t.start);n&&t9(e,t.file,n)}))});var i9="convertFunctionToEs6Class",o9=[Pa.This_constructor_function_may_be_converted_to_a_class_declaration.code];function a9(e,t,n,r,i,o){const a=r.getSymbolAtLocation(ZX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(sP(s)||mE(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(_w.createConstructorDeclaration(void 0,e.parameters,e.body));const n=s9(e,95);return _w.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(oP(s)){const n=function(e){const t=e.initializer;if(!t||!mE(t)||!nN(e.name))return;const n=c(e.symbol);t.body&&n.unshift(_w.createConstructorDeclaration(void 0,t.parameters,t.body));const r=s9(e.parent.parent,95);return _w.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;aP(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&cE(t)&&kE(t.parent)&&64===t.parent.operatorToken.kind&&sE(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[_w.createToken(126)],r)}
6)),n.members&&n.members.forEach(((i,o)=>{var s,c,l,u;if("constructor"===o&&i.valueDeclaration){const r=null==(u=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:u.parent;r&&kE(r)&&sE(r.right)&&te(r.right.properties,c9)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(_=l,!(Hx(u=s)?cE(u)&&c9(u)||vu(_):C(u.properties,(e=>!!(CN(e)||El(e)||YP(e)&&mE(e.initializer)&&e.name||c9(e))))))return;var u,_;if(te(a,(e=>{const t=Jc(e);return!(!t||!nN(t)||Fc(t)!==Ic(n))})))return;const p=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,p),l)if(Hx(s)&&(mE(l)||gE(l))){const e=cY(t,i),n=function(e,t,n){if(cE(e))return e.name;const r=e.argumentExpression;return MD(r)?r:Z_(r)?Ls(r.text,BS(t))?_w.createIdentifier(r.text):qD(r)?_w.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);n&&f(a,l,n)}else{if(!sE(l)){if($m(t))return;if(!cE(s))return;const e=_w.createPropertyDeclaration(r,s.name,void 0,void 0,l);return bZ(c.parent,e,t),void a.push(e)}d(l.properties,(e=>{(CN(e)||El(e))&&a.push(e),YP(e)&&mE(e.initializer)&&f(a,e.initializer,e.name),c9(e)}))}else a.push(_w.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return mE(n)?function(e,n,i){const o=re(r,s9(n,134)),a=_w.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return bZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;
6a=241===o.kind?o:_w.createBlock([_w.createReturnStatement(o)]);const s=re(r,s9(n,134)),l=_w.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);bZ(c,l,t),e.push(l)}(e,n,i)}}}}function s9(e,t){return CI(e)?L(e.modifiers,(e=>e.kind===t)):void 0}function c9(e){return!!e.name&&!(!nN(e.name)||"constructor"!==e.name.text)}o5({errorCodes:o9,getCodeActions(e){const t=Q_e.ChangeTracker.with(e,(t=>a9(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[n5(i9,t,Pa.Convert_function_to_an_ES2015_class,i9,Pa.Convert_all_constructor_functions_to_classes)]},fixIds:[i9],getAllCodeActions:e=>_5(e,o9,((t,n)=>a9(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))});var l9="convertToAsyncFunction",u9=[Pa.This_may_be_converted_to_an_async_function.code],_9=!0;function d9(e,t,n,r){const i=ZX(t,n);let o;if(o=nN(i)&&oP(i.parent)&&i.parent.initializer&&xu(i.parent.initializer)?i.parent.initializer:ht(cm(ZX(t,n)),t2),!o)return;const a=new Map,s=Wm(o),l=function(e,t){if(!e.body)return new Set;const n=new Set;return ZI(e.body,(function e(r){p9(r,t,"then")?(n.add(ZB(r)),d(r.arguments,e)):p9(r,t,"catch")||p9(r,t,"finally")?(n.add(ZB(r)),ZI(r,e)):g9(r,t)?n.add(ZB(r)):ZI(r,e)})),n}(o,r),u=function(e,t,n){const r=new Map,i=ct();return ZI(e,(function e(o){if(!nN(o))return void ZI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=E9(t.getTypeAtLocation(o),t),s=eJ(a).toString();if(!e||bN(o.parent)||xu(o.parent)||n.has(s)){if(o.parent&&(bN(o.parent)||oP(o.parent)||oE(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=h9(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=sZ(o);n.set(s,I9(t)),i.add(e,a)}}}else{const t=Pe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&bN(t.valueDeclaration)&&ht(t.valueDeclaration.name,nN)||_w.createUniqueName("result",16),o=h9(r,i);n.set(s,o),i.add(r.text,a)}}})),cZ(e,!0,(e=>{if(oE(e)&&nN(e.name)&&rE(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(eJ(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return _w.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(nN(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(eJ(n)));if(i)return _w.createIdentifier(i.text)}}))}(o,r,a);if(!K1(u,r))return;const _=u.body&&JE(u.body)?function(e,t){const n=[];return Jf(e,(e=>{G1(e,t)&&n.push(e)})),n}(u.body,r):c,p={checker:r,synthNamesMap:a,setOfExpressionsToReturn:l,isInJSFile:s};if(!_.length)return;const f=hs(t.text,ax(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const c of _)if(ZI(c,(function n(r){if(uE(r)){const n=b9(r,r,p,!1);if(y9())return!0;e.replaceNodeWithNodes(t,c,n)}else if(!vu(r)&&(ZI(r,n),y9()))return!0})),y9())return}function p9(e,t,n){if(!uE(e))return!1;const r=cX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function f9(e,t){return!!(4&Bx(e))&&e.target===t}function m9(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(f9(r,n.getPromiseType())||f9(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return Ne(e.typeArguments,0);if(t===Ne(e.arguments,0))return Ne(e.typeArguments,0);if(t===Ne(e.arguments,1))return Ne(e.typeArguments,1)}}function g9(e,t){return!!s_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function h9(e,t){const n=(t.get(e.text)||c).length;return I9(0===n?e:_w.createIdentifier(e.text+"_"+n))}function y9(){return!_9}function v9(){return _9=!1,c}function b9(e,t,n,r,i){if(p9(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||x9(r,t))return T9(e,n,r,i,o);if(n&&!x9(r,n))return v9();const a=F9(t,r),s=b9(e.expression.expression,e.expression.expression,r,!0,a);if(y9())return v9();const c=D9(t,i,o,a,e,r);return y9()?v9():re(s,c)}(t,Ne(t.arguments,0),Ne(t.arguments,1),n,r,i);if(p9(t,n.checker,"catch"))return T9(t,Ne(t.arguments,0),n,r,i);if(p9(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||x9(n,t))return b9(e,e.expression.expression,n,r,i);const o=S9(e,n,i),a=b9(e,e.expression.expression,n,!0,o);if(y9())return v9();const s=D9(t,r,void 0,void 0,e,n);if(y9())return v9();const c=_w.createBlock(a),l=_w.createBlock(s),u=_w.createTryStatement
6(c,void 0,l);return k9(e,n,u,o,i)}(t,Ne(t.arguments,0),n,r,i);if(cE(t))return b9(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(En.assertNode(Cc(t).parent,cE),function(e,t,n,r,i){if(B9(e,n)){let e=sZ(t);return r&&(e=_w.createAwaitExpression(e)),[_w.createReturnStatement(e)]}return C9(i,_w.createAwaitExpression(t),void 0)}(e,t,n,r,i)):v9()}function x9({checker:e},t){if(106===t.kind)return!0;if(nN(t)&&!su(t)&&"undefined"===Fc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function S9(e,t,n){let r;return n&&!B9(e,t)&&(j9(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,I9(_w.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=I9(_w.createUniqueName("result",16),n.types),M9(r)),r}function k9(e,t,n,r,i){const o=[];let a;if(r&&!B9(e,t)){a=sZ(M9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[_w.createVariableDeclaration(a,void 0,i)],c=_w.createVariableStatement(void 0,_w.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(sZ(R9(i)),void 0,void 0,a)],2))),o}function T9(e,t,n,r,i){if(!t||x9(n,t))return b9(e,e.expression.expression,n,r,i);const o=F9(t,n),a=S9(e,n,i),s=b9(e,e.expression.expression,n,!0,a);if(y9())return v9();const c=D9(t,r,a,o,e,n);if(y9())return v9();
6const l=_w.createBlock(s),u=_w.createCatchClause(o&&sZ(L9(o)),_w.createBlock(c));return k9(e,n,_w.createTryStatement(l,u,void 0),a,i)}function C9(e,t,n){return!e||A9(e)?[_w.createExpressionStatement(t)]:j9(e)&&e.hasBeenDeclared?[_w.createExpressionStatement(_w.createAssignment(sZ(O9(e)),t))]:[_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(sZ(L9(e)),void 0,n,t)],2))]}function w9(e,t){if(t&&e){const n=_w.createUniqueName("result",16);return[...C9(I9(n),e,t),_w.createReturnStatement(n)]}return[_w.createReturnStatement(e)]}function D9(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const s=_w.createCallExpression(sZ(e),void 0,j9(r)?[O9(r)]:[]);if(B9(i,o))return w9(s,m9(i,e,o.checker));const l=o.checker.getTypeAtLocation(e),u=o.checker.getSignaturesOfType(l,0);if(!u.length)return v9();const _=u[0].getReturnType(),d=C9(n,_w.createAwaitExpression(s),m9(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(_)||_),d;case 218:case 219:{const r=e.body,s=null==(a=E9(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(JE(r)){let a=[],c=!1;for(const l of r.statements)if(YE(l))if(c=!0,G1(l,o.checker))a=a.concat(P9(o,l,t,n));else{const t=s&&l.expression?N9(o.checker,s,l.expression):l.expression;a.push(...w9(t,m9(i,e,o.checker)))}else{if(t&&Jf(l,xt))return v9();a.push(l)}return B9(i,o)?a.map((e=>sZ(e))):function(e,t,n,r){const i=[];for(const o of e)if(YE(o)){if(o.expression){const e=g9(o.expression,n.checker)?_w.createAwaitExpression(o.expression):o.expression;void 0===t?i.push(_w.createExpressionStatement(e)):j9(t)&&t.hasBeenDeclared?i.push(_w.createExpressionStatement(_w.createAssignment(O9(t),e))):i.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(L9(t),void 0,void 0,e)],2)))}}else i.push(sZ(o));return r||void 0===t||i.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(L9(t),void 0,void 0,_w.createIdentifier("undefined"))],2))),i}(a,n,o,c)}
6{const a=X1(r,o.checker)?P9(o,_w.createReturnStatement(r),t,n):c;if(a.length>0)return a;if(s){const t=N9(o.checker,s,r);if(B9(i,o))return w9(t,m9(i,e,o.checker));{const e=C9(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(s)||s),e}}return v9()}}default:return v9()}return c}function N9(e,t,n){const r=sZ(n);return e.getPromisedTypeOfPromise(t)?_w.createAwaitExpression(r):r}function E9(e,t){return Oe(t.getSignaturesOfType(e,0))}function P9(e,t,n,r){let i=[];return ZI(t,(function t(o){if(uE(o)){const t=b9(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else vu(o)||ZI(o,t)})),i}function F9(e,t){const n=[];let r;if(xu(e)?e.parameters.length>0&&(r=function e(t){if(nN(t))return i(t);const n=q(t.elements,(t=>EE(t)?[]:[e(t.name)]));return function(e,t=c,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,n)}(e.parameters[0].name)):nN(e)?r=i(e):cE(e)&&nN(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n,r;return null!=(n=null==(r=ht(e,T_))?void 0:r.symbol)?n:t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(eJ(i).toString())||I9(e,n)}}function A9(e){return!e||(j9(e)?!e.identifier.text:C(e.elements,A9))}function I9(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function O9(e){return e.hasBeenReferenced=!0,e.identifier}function L9(e){return j9(e)?M9(e):R9(e)}function R9(e){for(const t of e.elements)L9(t);return e.bindingPattern}function M9(e){return e.hasBeenDeclared=!0,e.identifier}function j9(e){return 0===e.kind}function B9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ZB(e.original))}function J9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=Og(a);switch(c.kind){case 271:r.replaceNode(e,c,iY(c.name,void 0,a,i));break;case 213:Qm(c,!1)&&r.replaceNode(e,c,_w.createPropertyAccessExpression(sZ(c),"default"))}}}function U9(e,t){e.forEachChild((function n(r){if(cE(r)&&nB(e,r.expression)&&nN(r.name)){const{parent:e}=r;t(r,kE(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function q9(e,t,n,r,i,o,a,s,c){switch(t.kind){case 243:return z9(e,t,r,n,i,o,c),!1;case 244:{const{expression:i}=t;switch(i.kind){case 213:return Qm(i,!0)&&r.replaceNode(e,t,iY(void 0,void 0,i.arguments[0],c)),!1;case 226:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!cE(a))return!1;if(nB(e,a)){if(!nB(e,s)){const i=sE(s)?function(e,t){const n=W(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return nN(e.name)?function(e,t,n){const r=[_w.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return X9(e,r,t,n);case 231:return function(e,t,n,r){return _w.createClassDeclaration(re(t,uZ(n.modifiers)),e,uZ(n.typeParameters),uZ(n.heritageClauses),W9(n.members,r))}(e,r,t,n);default:return i()}function i(){return Z9(r,_w.createIdentifier(e),W9(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return nN(e.name)?X9(e.name.text,[_w.createToken(95)],e,t):void 0;default:En.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(s,o):Qm(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:l;return i.has("export=")?[[V9(n)],!0]:i.has("default")?i.size>1?[[$9(n),V9(n)],!0]:[[V9(n)],!0]:[[$9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,nx(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else nB(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[Z9(void 0,o,t.right),eee([_w.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(mE(t)||gE(t)||NE(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,BX(e,25,r),[_w.createToken(95),_w.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},_w.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=BX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function z9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=j(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(nB(e,l))return c=!0,tee([]);if(Qm(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=W(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!nN(e.propertyName)||!nN(e.name)?void 0:Y9(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return tee([iY(void 0,n,t,o)])}case 207:{const n=H9(p0(t.text,i),r);return tee([iY(_w.createIdentifier(n),void 0,t,o),Z9(void 0,sZ(e),_w.createIdentifier(n))])}
6case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const u of r.original.get(e.text)){if(n.getSymbolAtLocation(u)!==o||u===e)continue;const{parent:t}=u;if(cE(t)){const{name:{text:e}}=t;if("default"===e){c=!0;const e=u.getText();(null!=s?s:s=new Map).set(t,_w.createIdentifier(e))}else{En.assert(t.expression===u,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=H9(e,r),a.set(e,n)),(null!=s?s:s=new Map).set(t,_w.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Xe(B(a.entries(),(([e,t])=>_w.createImportSpecifier(!1,e===t?void 0:_w.createIdentifier(e),_w.createIdentifier(t)))));return l||(c=!0),tee([iY(c?sZ(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return En.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(cE(l)&&Qm(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=H9(t,r);return tee([Q9(o,t,n,i),Z9(void 0,e,_w.createIdentifier(o))])}case 80:return tee([Q9(e.text,t,n,i)]);default:return En.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return tee([_w.createVariableStatement(void 0,_w.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,q(l,(e=>e.newImports))),d(l,(e=>{e.useSitesToUnqualify&&Sd(e.useSitesToUnqualify,null!=r?r:r=new Map)})),r}}function $9(e){return eee(void 0,e)}function V9(e){return eee([_w.createExportSpecifier(!1,void 0,"default")],e)}function W9(e,t){return t&&te(Xe(t.keys()),(t=>CX(e,t)))?pt(e)?_Z(e,!0,n):cZ(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function H9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function K9(e){const t=ct();return G9(e,(e=>t.add(e.text,e))),t}function G9(e,t){nN(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>G9(e,t)))}function X9(e,t,n,r){return _w.createFunctionDeclaration(re(t,uZ(n.modifiers)),sZ(n.asteriskToken),e,uZ(n.typeParameters),uZ(n.parameters),sZ(n.type),_w.converters.convertToFunctionBlock(W9(n.body,r)))}function Q9(e,t,n,r){return"default"===t?iY(_w.createIdentifier(e),void 0,n,r):iY(void 0,[Y9(t,e)],n,r)}function Y9(e,t){return _w.createImportSpecifier(!1,void 0!==e&&e!==t?_w.createIdentifier(e):void 0,_w.createIdentifier(t))}function Z9(e,t,n){return _w.createVariableStatement(e,_w.createVariableDeclarationList([_w.createVariableDeclaration(t,void 0,void 0,n)],2))}function eee(e,t){return _w.createExportDeclaration(void 0,!1,e&&_w.createNamedExports(e),void 0===t?void 0:_w.createStringLiteral(t))}function tee(e,t){return{newImports:e,useSitesToUnqualify:t}}o5({errorCodes:u9,getCodeActions(e){_9=!0;const t=Q_e.ChangeTracker.with(e,(t=>d9(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return _9?[n5(l9,t,Pa.Convert_to_async_function,l9,Pa.Convert_all_to_async_functions)]:[]},fixIds:[l9],getAllCodeActions:e=>_5(e,u9,((t,n)=>d9(t,n.file,n.start,e.program.getTypeChecker())))}),o5({errorCodes:[Pa.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[t5("convertToEsModule",Q_e.ChangeTracker.with(e,(e=>{const i=function(e,t,n,r,i){const o={original:K9(e),additional:new Set},a=function(e,t,n){const r=new Map;return U9(e,(e=>{const{text:i}=e.name;r.has(i)||!Kh(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,H9(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){U9(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,_w.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const l of L(e.statements,UE)){const a=z9(e,l,n,t,o,r,i);a&&Sd(a,null!=s?s:s=new Map)}for(const l of L(e.statements,(e=>!UE(e)))){const u=q9(e,l,t,n,o,r,a,s,i);c=c||u}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,BS(n.getCompilerOptions()),cY(t,r));if(i)for(const o of n.getSourceFiles())J9(o,t,n,e,cY(o,r))})),Pa.Convert_to_ES_module)]}});var nee="correctQualifiedNameToIndexedAccessType",ree=[Pa.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function iee(e,t){const n=wc(ZX(e,t),hN);return En.assert(!!n,"Expected position to be owned by a qualified name."),nN(n.left)?n:void 0}function oee(e,t,n){const r=n.right.text,i=_w.createIndexedAccessTypeNode(_w.createTypeReferenceNode(n.left,void 0),_w.createLiteralTypeNode(_w.createStringLiteral(r)));e.replaceNode(t,n,i)}o5({errorCodes:ree,getCodeActions(e){const t=iee(e.sourceFile,e.span.start);if(!t)return;const n=Q_e.ChangeTracker.with(e,(n=>oee(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[n5(nee,n,[Pa.Rewrite_as_the_indexed_access_type_0,r],nee,Pa.Rewrite_all_as_indexed_access_types)]},fixIds:[nee],getAllCodeActions:e=>_5(e,ree,((e,t)=>
6{const n=iee(t.file,t.start);n&&oee(e,t.file,n)}))});var aee=[Pa.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],see="convertToTypeOnlyExport";function cee(e,t){return ht(ZX(t,e.start).parent,FP)}function lee(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=n0(RQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return L(n.elements,(t=>{var n;return t===e||(null==(n=t0(t,r))?void 0:n.code)===aee[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=_w.updateExportDeclaration(i,i.modifiers,!1,_w.updateNamedExports(r,L(r.elements,(e=>!F(o,e)))),i.moduleSpecifier,void 0),a=_w.createExportDeclaration(void 0,!0,_w.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:Q_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Q_e.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}o5({errorCodes:aee,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>lee(t,cee(e.span,e.sourceFile),e)));if(t.length)return[n5(see,t,Pa.Convert_to_type_only_export,see,Pa.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[see],getAllCodeActions:function(e){const t=new Map;return _5(e,aee,((n,r)=>{const i=cee(r,e.sourceFile);i&&$x(t,ZB(i.parent.parent))&&lee(n,i,e)}))}});var uee=[Pa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,Pa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],_ee="convertToTypeOnlyImport";function dee(e,t){const{parent:n}=ZX(e,t);return DP(n)||hP(n)&&n.importClause?n:void 0}function pee(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const o of r)if(Ace.Core.eachSymbolReferenceInFile(o.name,i,t,(e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!BT(e)})))return!1;return!0}function fee(e,t,n){var r;if(DP(n))e.replaceNode(t,n,_w.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[_w.createImportDeclaration(uZ(n.modifiers,!0),_w.createImportClause(!0,sZ(i.name,!0),void 0),sZ(n.moduleSpecifier,!0),sZ(n.attributes,!0)),_w.createImportDeclaration(uZ(n.modifiers,!0),_w.createImportClause(!0,void 0,sZ(i.namedBindings,!0)),sZ(n.moduleSpecifier,!0),sZ(n.attributes,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?_w.updateNamedImports(i.namedBindings,J(i.namedBindings.elements,(e=>_w.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=_w.updateImportDeclaration(n,n.modifiers,_w.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}o5({errorCodes:uee,getCodeActions:function(e){var t,n;const r=dee(e.sourceFile,e.span.start);if(r){const i=Q_e.ChangeTracker.with(e,(t=>fee(t,e.sourceFile,r))),o=276===r.kind&&hP(r.parent.parent.parent)&&pee(r,e.sourceFile,e.program)?Q_e.ChangeTracker.with(e,(t=>fee(t,e.sourceFile,r.parent.parent.parent))):void 0,a=n5(_ee,i,276===r.kind?[Pa.Use_type_0,null!=(t=null==(n=r.propertyName)?void 0:n.text)?t:r.name.text]:Pa.Use_import_type,_ee,Pa.Fix_all_with_type_only_imports);return te(o)?[t5(_ee,o,Pa.Use_import_type),a]:[a]}},fixIds:[_ee],getAllCodeActions:function(e){const t=new Set;return _5(e,uee,((n,r)=>{const i=dee(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&hP(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&pee(i,r.file,e.program)?(fee(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&fee(n,r.file,i):(fee(n,r.file,i),t.add(i))}))}});var mee="convertTypedefToType",gee=[Pa.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function hee(e,t,n,r,i=!1){if(!BF(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?322===n.kind?function(e,t){const n=vee(t);if(te(n))return _w.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}
6(r,n):309===n.kind?function(e,t){const n=sZ(t.type);if(n)return _w.createTypeAliasDeclaration(void 0,_w.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd())),i=r>0?t.getChildAt(r-1):void 0,o=r<n?t.getChildAt(r+1):void 0;return{leftSibling:i,rightSibling:o}}(t);let l=a.getStart(),u="";!s&&a.comment&&(l=yee(a,a.getStart(),t.getStart()),u=`${r} */${r}`),s&&(i&&BF(s)?(l=t.getStart(),u=""):(l=yee(a,s.getStart(),t.getStart()),u=`${r} */${r}`));let _=a.getEnd(),d="";c&&(i&&BF(c)?(_=c.getStart(),d=`${r}${r}`):(_=c.getStart(),d=`${r}/**${r} * `)),e.replaceRange(n,{pos:l,end:_},o,{prefix:u,suffix:d})}function yee(e,t,n){const r=e.getText().substring(t-e.getStart(),n-e.getStart());for(let i=r.length;i>0;i--)if(!/[*/\s]/g.test(r.substring(i-1,i)))return t+i;return n}function vee(e){const t=e.jsDocPropertyTags;if(te(t))return H(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&vF(r)){const e=vee(r);o=_w.createTypeLiteralNode(e)}else r&&(o=sZ(r));if(o&&n){const e=i?_w.createToken(58):void 0;return _w.createPropertySignature(void 0,n,e,o)}}))}function bee(e){return V_(e)?q(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>BF(e)))})):[]}o5({fixIds:[mee],errorCodes:gee,getCodeActions(e){const t=HY(e.host,e.formatContext.options),n=ZX(e.sourceFile,e.span.start);if(!n)return;const r=Q_e.ChangeTracker.with(e,(r=>hee(r,n,e.sourceFile,t)));return r.length>0?[n5(mee,r,Pa.Convert_typedef_to_TypeScript_type,mee,Pa.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>_5(e,gee,((t,n)=>{const r=HY(e.host,e.formatContext.options),i=ZX(n.file,n.start);i&&hee(t,i,n.file,r,!0)}))});var xee="convertLiteralTypeToMappedType",See=[Pa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function kee(e,t){const n=ZX(e,t);if(nN(n)){const t=yt(n.parent.parent,SN),r=n.getText(e);return{container:yt(t.parent,jN),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function Tee(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,_w.createMappedTypeNode(void 0,_w.createTypeParameterDeclaration(void 0,o,_w.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}o5({errorCodes:See,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=kee(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=Q_e.ChangeTracker.with(e,(e=>Tee(e,t,r)));return[n5(xee,a,[Pa.Convert_0_to_1_in_0,o,i],xee,Pa.Convert_all_type_literals_to_mapped_type)]},fixIds:[xee],getAllCodeActions:e=>_5(e,See,((e,t)=>{const n=kee(t.file,t.start);n&&Tee(e,t.file,n)}))});var Cee=[Pa.Class_0_incorrectly_implements_interface_1.code,Pa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],wee="fixClassIncorrectlyImplementsInterface";function Dee(e,t){return En.checkDefined(um(ZX(e,t)),"There should be a containing class")}function Nee(e){return!(e.valueDeclaration&&2&cb(e.valueDeclaration))}function Eee(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=Ih(e);if(!n)return _d();const r=t.getTypeAtLocation(n),i=t.getPropertiesOfType(r);return _d(i.filter(Nee))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(yn(Nee,(e=>!s.has(e.escapedName)))),u=a.getTypeAtLocation(r),_=w(r.members,(e=>DN(e)));u.getNumberIndexType()||p(c,1),u.getStringIndexType()||p(c,0);const d=Iee(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,eoe(e)))}function f(e,t,n){_?i.insertNodeAfter(e,_,n):i.insertMemberAtStart(e,t,n)}Zie(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}o5({errorCodes:Cee,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Dee(t,n.start);return H(Lh(r),(n=>{const i=Q_e.ChangeTracker.with(e,(i=>Eee(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:n5(wee,i,[Pa.Implement_interface_0,n.getText(t)],wee,Pa.Implement_all_unimplemented_interfaces)}
6))},fixIds:[wee],getAllCodeActions(e){const t=new Map;return _5(e,Cee,((n,r)=>{const i=Dee(r.file,r.start);if($x(t,ZB(i)))for(const t of Lh(i))Eee(e,t,r.file,i,n,e.preferences)}))}});var Pee="import",Fee="fixMissingImport",Aee=[Pa.Cannot_find_name_0.code,Pa.Cannot_find_name_0_Did_you_mean_1.code,Pa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Pa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Pa.Cannot_find_namespace_0.code,Pa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,Pa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,Pa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,Pa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,Pa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,Pa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,Pa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,Pa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,Pa.Cannot_find_namespace_0_Did_you_mean_1.code];function Iee(e,t,n,r,i){return Oee(e,t,!1,n,r,i)}function Oee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,u=new Set,_=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=Hee(t,e.code,e.start,n);r&&r.length&&p(Ae(r))},addImportFromExportedSymbol:function(n,s,c){var l,u;const _=En.checkDefined(n.parent),d=c0(n,BS(a)),f=t.getTypeChecker(),h=f.getMergedSymbol(Nx(n,f)),y=Jee(e,h,d,_,!1,t,i,r,o),v=Vee(e,t);let b=jee(e,En.checkDefined(y),t,void 0,!!s,v,i,r);if(b){const e=null!=(l=null==(u=ht(null==c?void 0:c.name,nN))?void 0:u.text)?l:d;c&&nu(c)&&(3===b.kind||2===b.kind)&&1===b.addAsTypeOnly&&(b=g(m({},b),{addAsTypeOnly:2})),p({fix:b,symbolName:null!=e?e:d,errorIdentifierText:void 0})}},writeFixes:function(t,n){var i,o;let p,f,m;p=zm(e)&&0===e.imports.length&&void 0!==n?n:cY(e,r);for(const r of s)ote(t,e,r);for(const r of c)ate(t,e,r,p);if(u.size){En.assert(zm(e),"Cannot remove imports from a future source file");const n=new Set(H([...u],(e=>wc(e,hP)))),r=new Set(H([...u],(e=>wc(e,Ym)))),a=[...n].filter((e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||u.has(e.importClause))&&(!ht(null==(n=e.importClause)?void 0:n.namedBindings,TP)||u.has(e.importClause.namedBindings))&&(!ht(null==(r=e.importClause)?void 0:r.namedBindings,wP)||C(e.importClause.namedBindings.elements,(e=>u.has(e))))})),s=[...r].filter((e=>(206!==e.name.kind||!l.has(e.name))&&(206!==e.name.kind||C(e.name.elements,(e=>u.has(e)))))),c=[...n].filter((e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(274===e.importClause.namedBindings.kind||C(e.importClause.namedBindings.elements,(e=>u.has(e))))}));for(const i of[...a,...s])t.delete(e,i);for(const i of c)t.replaceNode(e,i.importClause,_w.updateImportClause(i.importClause,i.importClause.isTypeOnly,i.importClause.name,void 0));for(const _ of u){const n=wc(_,hP);n&&-1===a.indexOf(n)&&-1===c.indexOf(n)?273===_.kind?t.delete(e,_.name):(En.assert(276===_.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(n.importClause))?void 0:i.namedImports)?(null!=f?f:f=new Set).add(_):t.delete(e,_)):208===_.kind?(null==(o=l.get(_.parent))?void 0:o.namedImports)?(null!=f?f:f=new Set).add(_):t.delete(e,_):271===_.kind&&t.delete(e,_)}
6}l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{ite(t,e,n,i,Xe(o.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),f,r)})),d.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?_te:ute)(o.slice(2),p,t,n&&Xe(n.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),i,a,r);m=me(m,s)})),m=me(m,function(){if(!_.size)return;const e=new Set(H([..._],(e=>wc(e,hP)))),t=new Set(H([..._],(e=>wc(e,ng))));return[...H([..._],(e=>271===e.kind?sZ(e,!0):void 0)),...[...e].map((e=>{var t;return _.has(e)?sZ(e,!0):sZ(_w.updateImportDeclaration(e,e.modifiers,e.importClause&&_w.updateImportClause(e.importClause,e.importClause.isTypeOnly,_.has(e.importClause)?e.importClause.name:void 0,_.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=ht(e.importClause.namedBindings,wP))?void 0:t.elements.some((e=>_.has(e))))?_w.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter((e=>_.has(e)))):void 0),e.moduleSpecifier,e.attributes),!0)})),...[...t].map((e=>
6_.has(e)?sZ(e,!0):sZ(_w.updateVariableStatement(e,e.modifiers,_w.updateVariableDeclarationList(e.declarationList,H(e.declarationList.declarations,(e=>_.has(e)?e:_w.updateVariableDeclaration(e,206===e.name.kind?_w.updateObjectBindingPattern(e.name,e.name.elements.filter((e=>_.has(e)))):e.name,e.exclamationToken,e.type,e.initializer))))),!0)))]}()),m&&yY(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||_.size>0||u.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=Zee(e,t,n),i=QZ(e.sourceFile,e.preferences,e.host);return r&&Kee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);r&&r.length&&p(Ae(r))},addImportForNonExistentExport:function(n,o,s,c,l){const u=t.getSourceFile(o),_=Vee(e,t);if(u&&u.symbol){const{fixes:a}=qee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:u.symbol,targetFlags:c}],void 0,l,_,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const r=N0(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:aB.getLocalModuleSpecifierBetweenFileNames(e,o,a,tY(t,i)),importKind:Yee(r,s,a),addAsTypeOnly:zee(l,0,void 0,c,t.getTypeChecker(),a),useRequire:_},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){273===e.kind&&En.assertIsDefined(e.name,"ImportClause should have a name if it's being removed"),u.add(e)},addVerbatimImport:function(e){_.add(e)}};function p(e){var t,n;const{fix:r,symbolName:i}=e;switch(r.kind){case 0:s.push(r);break;case 1:c.push(r);break;case 2:{const{importClauseOrBindingPattern:e,importKind:n,addAsTypeOnly:a}=r;let s=l.get(e);if(s||l.set(e,s={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===n){const e=null==s?void 0:s.namedImports.get(i);s.namedImports.set(i,o(e,a))}else En.assert(void 0===s.defaultImport||s.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),s.defaultImport={name:i,addAsTypeOnly:o(null==(t=s.defaultImport)?void 0:t.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:s,addAsTypeOnly:c}=r,l=function(e,t,n,r){const i=u(e,!0),o=u(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?a||(d.set(i,c),c):1===r&&(a||s)?a||s:s||(d.set(o,c),c)}(e,t,s,c);switch(En.assert(l.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:En.assert(void 0===l.defaultImport||l.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:i,addAsTypeOnly:o(null==(n=l.defaultImport)?void 0:n.addAsTypeOnly,c)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(i);l.namedImports.set(i,o(e,c));break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(i);l.namedImports.set(i,o(e,c))}else En.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:i,addAsTypeOnly:c};break;case 2:En.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:i,addAsTypeOnly:c}}break}case 4:break;default:En.assertNever(r,`fix wasn't never - got kind ${r.kind}`)}function o(e,t){return Math.max(null!=e?e:0,t)}function u(e,t){return`${t?1:0}|${e}`}}}function Lee(e,t,n,r){const i=QZ(e,r,n),o=$ee(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:u,computedWithoutCacheCount:_}=qee(a,s,c,!1,t,e,n,r,o,l),d=Gee(u,e,t,i,n,r);return d&&g(m({},d),{computedWithoutCacheCount:_})}}}function Ree(e,t,n,r,i,o,a,s,c,l,u,_){let d;n?(d=L0(r,a,s,u,_).get(r.path,n),En.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=Uo(Xy(t.name))?[Uee(e,i,t,s,a)]:Jee(r,e,i,t,o,s,a,u,_),En.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=Vee(r,s),f=BT(ZX(r,l)),m=En.checkDefined(jee(r,d,s,l,f,p,a,u));return{moduleSpecifier:m.moduleSpecifier,codeAction:Bee(nte({host:a,formatContext:c,preferences:u},r,i,m,!1,s,u))}}function Mee(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=Me(tte(e,n.getTypeChecker(),t,a)),c=ete(e,t,s,n),l=s!==t.text;return c&&Bee(nte({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function jee(e,t,n,r,i,o,a,s){const c=QZ(e,s,a);return Gee(qee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function Bee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Jee(e,t,n,r,i,o,a,s,c){const l=Wee(o,a);return L0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{if(Nx(e[0].symbol,l(e[0].isFromPackageJson))===t&&e.some((e=>e.moduleSymbol===r||e.symbol.parent===r)))return e}))}function Uee(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return En.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=R0(n,r);if(o&&Nx(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,export
6Kind:o.exportKind,targetFlags:Nx(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&Nx(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Nx(e,r).flags,isFromPackageJson:i}:void 0}}function qee(e,t,n,r,i,o,a,s,l=(zm(o)?$ee(i.getTypeChecker(),o,i.getCompilerOptions()):void 0),u){const _=i.getTypeChecker(),d=l?q(e,l.getImportsForExportInfo):c,p=void 0!==t&&function(e,t){return y(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=ht(e.name,nN))?void 0:t.text;case 271:return e.name.text;case 351:case 272:return null==(r=ht(null==(n=e.importClause)?void 0:n.namedBindings,TP))?void 0:r.name.text;default:return En.assertNever(e)}}(e),o=i&&(null==(r=Ig(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0}))}(d,t),f=function(e,t,n,r){let i;for(const a of e){const e=o(a);if(!e)continue;const t=nu(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&t||4===e.addAsTypeOnly&&!t)return e;null!=i||(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!Z_(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const u=zee(t,0,o,a,n,r);return 1===i&&(c||2===u&&l)||0===i&&274===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:u}}}(d,n,_,i.getCompilerOptions());if(f)return{computedWithoutCacheCount:0,fixes:[...p?[p]:c,f]};const{fixes:m,computedWithoutCacheCount:g=0}=function(e,t,n,r,i,o,a,s,c,l){const u=y(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=Ig(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:zee(i,0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return u?{fixes:[u]}:function(e,t,n,r,i,o,a,s,c){const l=nT(t.fileName),u=e.getCompilerOptions(),_=tY(e,a),d=Wee(e,a),p=rY(US(u)),f=c?e=>aB.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,_,s):(e,n)=>aB.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,u,t,_,s,void 0,!0);let m=0;const g=q(o,((e,o)=>{var a;const s=d(e.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:_,kind:g}=null!=(a=f(e,s))?a:{},h=!!(111551&e.targetFlags),y=zee(r,0,e.symbol,e.targetFlags,s,u);return m+=c?1:0,H(_,(r=>{if(p&&ej(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:e,isReExport:o>0};const a=Yee(t,e.exportKind,u);let c;if(void 0!==n&&3===a&&0===e.exportKind){const t=s.resolveExternalModuleSymbol(e.moduleSymbol);let r;t!==e.moduleSymbol&&(r=j0(t,s,u,!1,kt)),r||(r=d0(e.moduleSymbol,BS(u),!1)),c={namespacePrefix:r,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:a,useRequire:i,addAsTypeOnly:y,exportInfo:e,isReExport:o>0,qualification:c}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,a,s,u);return{computedWithoutCacheCount:g,fixes:[...p?[p]:c,...m]}}function zee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function $ee(e,t,n){let r;for(const i of t.imports){const t=Og(i);if(Ym(t.parent)){const n=e.resolveExternalModuleName(i);n&&(r||(r=ct())).add(eJ(n),t.parent)}else if(272===t.kind||271===t.kind||351===t.kind){const n=e.getSymbolAtLocation(i);n&&(r||(r=ct())).add(eJ(n),t)}}return{getImportsForExportInfo:({moduleSymbol:e,exportKind:i,targetFlags:o,symbol:a})=>{const s=null==r?void 0:r.get(eJ(e));if(!s)return c;if($m(t)&&!(111551&o)&&!C(s,VF))return c;const l=Yee(t,i,n);return s.map((e=>
6({declaration:e,importKind:l,symbol:a,targetFlags:o})))}}}function Vee(e,t){if(!nT(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return JS(n)<5;if(1===e.impliedNodeFormat)return!0;if(99===e.impliedNodeFormat)return!1;for(const r of t.getSourceFiles())if(r!==e&&$m(r)&&!t.isSourceFileFromExternalLibrary(r)){if(r.commonJsModuleIndicator&&!r.externalModuleIndicator)return!0;if(r.externalModuleIndicator&&!r.commonJsModuleIndicator)return!1}return!0}function Wee(e,t){return Et((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function Hee(e,t,n,r){const i=ZX(e.sourceFile,n);let o;if(t===Pa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=nN(e)?t.getSymbolAtLocation(e):void 0;if(Ux(n))return n;const{parent:r}=e;if(j_(r)&&r.tagName===e||UP(r)){const n=t.resolveName(t.getJsxNamespace(r),j_(r)?e:r,111551,!1);if(Ux(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name,l=[{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],u=Vee(e,t);return qee(l,void 0,!1,u,t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=ht(i,nN))?void 0:t.text}}))}(e,i);else{if(!nN(i))return;if(t===Pa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=Me(tte(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=ete(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=Zee(e,i,r)}const a=QZ(e.sourceFile,e.preferences,e.host);return o&&Kee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function Kee(e,t,n,r,i,o){const a=e=>la(e,i.getCurrentDirectory(),iv(i));return xe(e,((e,i)=>Yt(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||jt(e.fix.kind,i.fix.kind)||Xee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a)))}function Gee(e,t,n,r,i,o){if(te(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,a)=>-1===Xee(a,e,t,n,o,r.allowsImportingSpecifier,(e=>la(e,i.getCurrentDirectory(),iv(i))))?a:e))}function Xee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?Yt("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){return"non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference?Yt("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind):0}(e,t,i)||function(e,t,n,r){return fn(e,"node:")&&!fn(t,"node:")?v0(n,r)?-1:1:fn(t,"node:")&&!fn(e,"node:")?v0(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Yt(Qee(e,n.path,a),Qee(t,n.path,a))||lT(e.moduleSpecifier,t.moduleSpecifier):0}function Qee(e,t,n){var r;return!(!e.isReExport||!(null==(r=e.exportInfo)?void 0:r.moduleFileName)||"index"!==Xo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&fn(t,n(Go(e.exportInfo.moduleFileName)))}function Yee(e,t,n,r){if(n.verbatimModuleSyntax&&(1===JS(n)||1===e.impliedNodeFormat))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){var r;const i=VS(t),o=nT(e.fileName);if(!o&&JS(t)>=5)return i?1:2;if(o)return e.externalModuleIndicator||n?i?1:2:3;for(const a of null!=(r=e.statements)?r:c)if(gP(a)&&!Ud(a.moduleReference))return 3;return i?1:3}(e,n,!!r);case 3:return function(e,t,n){if(VS(t))return 1;const r=JS(t);switch(r){case 2:case 1:case 3:return nT(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return 99===e.impliedNodeFormat?2:3;default:return En.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);default:return En.assertNever(t)}}function Zee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return q(tte(e,s,o,c),(s=>{if("default"===s)return;const c=BT(o),l=Vee(e,t),u=function(e,t,n,r,i,o,a,s,c){var l;const u=ct(),_=QZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=Et((e=>tY(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(t&&A0(o,i,t,c,_,s,d)||!t&&_.allowsImportingAmbientModule(e,s)){const i=o.getTypeChecker();u.add(iZ(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:Nx(n,i).flags,isFromPackageJson:a})}}return I0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),u=R0(i,c);u&&pte(c.getSymbolFlags(u.symbol),n)&&j0(u.symbol,c,l,t,(t=>t===e))&&f(i,o,u.symbol,u.exportKind,a,s);const _=c.tryGetMemberInModuleExportsAndProperties(e,i);_&&pte(c.getSymbolFlags(_),n)&&f(i,o,_,0,a,s)})),u}(s,Om(o),HG(o),n,e,t,a,r,i);return Xe($(u.values(),(n=>qee(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}function ete(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&Id(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function tte(e,t,n,r){const i=n.parent;if((j_(i)||BP(i))&&i.tagName===n&&k0(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Qy(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||te(r.declarations,iu)&&!(111551&r.flags)}(r,n,t))return Qy(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function nte(e,t,n,r,i,o,a){let s;const l=Q_e.ChangeTracker.with(e,(e=>{s=function(e,t,n,r,i,o,a){const s=cY(t,a);switch(r.kind){case 0:return ote(e,t,r),[Pa.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return ate(e,t,r,s),[Pa.Change_0_to_1,n,ste(r.moduleSpecifier,s)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:s,addAsTypeOnly:l,moduleSpecifier:u}=r;ite(e,t,o,1===s?{name:n,addAsTypeOnly:l}:void 0,0===s?[{name:n,addAsTypeOnly:l}]:c,void 0,a);const _=Xy(u);return i?[Pa.Import_0_from_1,n,_]:[Pa.Update_import_from_0,_]}case 3:{const{importKind:c,moduleSpecifier:l,addAsTypeOnly:u,useRequire:_,qualification:d}=r;return yY(e,t,(_?_te:ute)(l,s,1===c?{name:n,addAsTypeOnly:u}:void 0,0===c?[{name:n,addAsTypeOnly:u}]:void 0,2===c||3===c?{importKind:c,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:u}:void 0,o.getCompilerOptions(),a),!0,a),d&&ote(e,t,d),i?[Pa.Import_0_from_1,n,l]:[Pa.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){var o;const a=n.getCompilerOptions(),s=a.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=_w.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=_ue.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=_ue.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:tp(t.getFirstToken()),end:tp(null!=(o=t.propertyName)?o:t.name)}),t}return En.assert(t.parent.parent.isTypeOnly),c(t.parent.parent),t.parent.parent;case 273:return c(t),t;case 274:return c(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:En.failBadSyntaxKind(t)}function c(o){var c;if(e.delete(r,vY(o,r)),!a.allowImportingTsExtensions){const t=Ig(o.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=pa(t.text,Zq(t.text,a));e.replaceNode(r,t,_w.createStringLiteral(n))}}if(s){const n=ht(o.namedBindings,wP);if(n&&n.elements.length>1){!1!==_ue.getNamedImportSpecifierComparerWithDetection(o.parent,i,r).isSorted&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 276===s.kind?[Pa.Remove_type_from_import_of_0_from_1,n,rte(s.parent.parent)]:[Pa.Remove_type_from_import_declaration_from_0,rte(s)]}default:return En.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)}));return n5(Pee,l,s,Fee,Pa.Add_all_missing_imports)}function rte(e){var t,n;return 271===e.kind?(null==(n=ht(null==(t=ht(e.moduleReference,LP))?void 0:t.expression,Z_))?void 0:n.text)||e.moduleReference.getText():yt(e.parent.moduleSpecifier,BD).text}function ite(e,t,n,r,i,o,a){var s;if(206===n.kind){if(o&&n.elements.some((e=>o.has(e))))return void e.replaceNode(t,n,_w.createObjectBindingPattern([...n.elements.filter((e=>!o.has(e))),...r?[_w.createBindingElement(void 0,"default",r.name)]:c,...i.map((e=>_w.createBindingElement(void 0,void 0,e.name)))]));r&&_(n,r.name,"default");for(const e of i)_(n,e.name,void 0);return}const l=n.isTypeOnly&&te([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),u=n.namedBindings&&(null==(s=ht(n.namedBindings,wP))?void 0:s.elements);if(r&&(En.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertN
6odeAt(t,n.getStart(t),_w.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=_ue.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),c=ke(i.map((e=>_w.createImportSpecifier((!n.isTypeOnly||l)&&lte(e,a),void 0,_w.createIdentifier(e.name)))),r);if(o)e.replaceNode(t,n.namedBindings,_w.updateNamedImports(n.namedBindings,ke([...u.filter((e=>!o.has(e))),...c],r)));else if((null==u?void 0:u.length)&&!1!==s){const i=l&&u?_w.updateNamedImports(n.namedBindings,J(u,(e=>_w.updateImportSpecifier(e,!0,e.propertyName,e.name)))).elements:u;for(const o of c){const a=_ue.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==u?void 0:u.length)for(const n of c)e.insertNodeInListAfter(t,Le(u),n,u);else if(c.length){const r=_w.createNamedImports(c);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,En.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(l&&(e.delete(t,vY(n,t)),u))for(const c of u)e.insertModifierBefore(t,156,c);function _(n,r,i){const o=_w.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,Le(n.elements),o):e.replaceNode(t,n,_w.createObjectBindingPattern([o]))}}function ote(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function ate(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,ste(n,i))}function ste(e,t){const n=lY(t);return`import(${n}${e}${n}).`}function cte({addAsTypeOnly:e}){return 2===e}function lte(e,t){return cte(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function ute(e,t,n,r,i,o,a){const s=oY(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||cte(n))&&C(r,cte)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!te(r,(e=>4===e.addAsTypeOnly));c=me(c,iY(n&&_w.createIdentifier(n.name),null==r?void 0:r.map((e=>_w.createImportSpecifier(!i&&lte(e,a),void 0,_w.createIdentifier(e.name)))),e,t,i))}return i&&(c=me(c,3===i.importKind?_w.createImportEqualsDeclaration(void 0,lte(i,a),_w.createIdentifier(i.name),_w.createExternalModuleReference(s)):_w.createImportDeclaration(void 0,_w.createImportClause(lte(i,a),void 0,_w.createNamespaceImport(_w.createIdentifier(i.name))),s,void 0))),En.checkDefined(c)}function _te(e,t,n,r,i){const o=oY(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e})=>_w.createBindingElement(void 0,void 0,e))))||[];n&&e.unshift(_w.createBindingElement(void 0,"default",n.name)),a=me(a,dte(_w.createObjectBindingPattern(e),o))}return i&&(a=me(a,dte(i.name,o))),En.checkDefined(a)}function dte(e,t){return _w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration("string"==typeof e?_w.createIdentifier(e):e,void 0,void 0,_w.createCallExpression(_w.createIdentifier("require"),void 0,[t]))],2))}function pte(e,t){return!!(7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e))}o5({errorCodes:Aee,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=Hee(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>nte(e,r,i,t,i!==a,o,n)))},fixIds:[Fee],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=Oee(t,n,!0,r,i,o);return d5(e,Aee,(t=>a.addImportFromDiagnostic(t,e))),l5(Q_e.ChangeTracker.with(e,a.writeFixes))}});var fte="addMissingConstraint",mte=[Pa.Type_0_is_not_comparable_to_type_1.code,Pa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Pa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Pa.Type_0_is_not_assignable_to_type_1.code,Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Pa.Property_0_is_incompatible_with_index_signature.code,Pa.Property_0_in_type_1_is_not_assignable_to_type_2.code,Pa.Type_0_does_not_satisfy_the_constraint_1.code];function gte(e,t,n){const r=w(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=w(r.relatedInformation,(e=>e.code===Pa.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=boe(i.file,ac(i.start,i.length));if(void 0!==o&&(nN(o)&&vN(o.parent)&&(o=o.parent),vN(o))){if(YN(o.parent))return;const r=ZX(t,n.start),a=function(e,t){if(Mu(t.parent))return e.getTypeArgumentConstraint(t.parent);const n=s_(t)?e.getContextualType(t):void 0;return n||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=l$(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText);return{constraint:a,declaration:o,token:r}}}function hte(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(mt(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=BS(t.getCompilerOptions()),l=eoe({program:t,host:r}),u=Iee(i,t,n,r),_=aoe(c,u,s,void 0,o,void 0,l);_&&(e.replaceNode(i,a,_w.updateTypeParameterDeclaration(a,void 0,a.name,_,a.default)),u.writeFixes(e))}}o5({errorCodes:mte,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=gte(r,t,n);if(void 0===a)return;const s=Q_e.ChangeTracker.with(e,(e=>hte(e,r,i,o,t,a)));return[n5(fte,s,Pa.Add_extends_constraint,fte,Pa.Add_extends_constraint_to_all_type_parameters)]},fixIds:[fte],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Map;return l5(Q_e.ChangeTracker.with(e,(o=>{d5(e,mte,(e=>{const a=gte(t,e.file,ac(e.start,e.length));if(a&&$x(i,ZB(a.declaration)))return hte(o,t,n,r,e.file,a)}))})))}});var yte="fixOverrideModifier",vte="fixAddOverrideModifier",bte="fixRemoveOverrideModifier",xte=[Pa.This_member_cannot_have_an_override_modifier_be
6cause_it_is_not_declared_in_the_base_class_0.code,Pa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,Pa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,Pa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,Pa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,Pa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,Pa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Ste={[Pa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Pa.Add_override_modifier,fixId:vte,fixAllDescriptions:Pa.Add_all_missing_override_modifiers},[Pa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Pa.Add_override_modifier,fixId:vte,fixAllDescriptions:Pa.Add_all_missing_override_modifiers},[Pa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Pa.Remove_override_modifier,fixId:bte,fixAllDescriptions:Pa.Remove_all_unnecessary_override_modifiers},[Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Pa.Remove_override_modifier,fixId:bte,fixAllDescriptions:Pa.Remove_override_modifier},[Pa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:Pa.Add_override_modifier,fixId:vte,fixAllDescriptions:Pa.Add_all_missing_override_modifiers},[Pa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Pa.Add_override_modifier,fixId:vte,fixAllDescriptions:Pa.Add_all_missing_override_modifiers},[Pa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:Pa.Add_override_modifier,fixId:vte,fixAllDescriptions:Pa.Remove_all_unnecessary_override_modifiers},[Pa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Pa.Remove_override_modifier,fixId:bte,fixAllDescriptions:Pa.Remove_all_unnecessary_override_modifiers},[Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Pa.Remove_override_modifier,fixId:bte,fixAllDescriptions:Pa.Remove_all_unnecessary_override_modifiers}};function kte(e,t,n,r){switch(n){case Pa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case Pa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case Pa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case Pa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case Pa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=Cte(t,n);if($m(t))return void e.addJSDocTags(t,r,[_w.createJSDocOverrideTag(_w.createIdentifier("override"))]);const i=r.modifiers||c,o=w(i,uN),a=w(i,_N),s=w(i,(e=>EQ(e.kind))),l=D(i,xN),u=a?a.end:o?o.end:s?s.end:l?hs(t.text,l.end):r.getStart(t),_=s||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,u,164,_)}(e,t.sourceFile,r);
6case Pa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case Pa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=Cte(t,n);if($m(t))return void e.filterJSDocTags(t,r,bn(EF));const i=w(r.modifiers,dN);En.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:En.fail("Unexpected error code: "+n)}}function Tte(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return fc(e,e.parent);default:return!1}}function Cte(e,t){const n=wc(ZX(e,t),(e=>Du(e)?"quit":Tte(e)));return En.assert(n&&Tte(n)),n}o5({errorCodes:xte,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=Ste[t];if(!r)return c;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,s=Q_e.ChangeTracker.with(e,(r=>kte(r,e,t,n.start)));return[r5(yte,s,i,o,a)]},fixIds:[yte,vte,bte],getAllCodeActions:e=>_5(e,xte,((t,n)=>{const{code:r,start:i}=n,o=Ste[r];o&&o.fixId===e.fixId&&kte(t,e,r,i)}))});var wte="fixNoPropertyAccessFromIndexSignature",Dte=[Pa.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function Nte(e,t,n,r){const i=cY(t,r),o=_w.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,Pl(n)?_w.createElementAccessChain(n.expression,n.questionDotToken,o):_w.createElementAccessExpression(n.expression,o))}function Ete(e,t){return yt(ZX(e,t).parent,cE)}o5({errorCodes:Dte,fixIds:[wte],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=Ete(t,n.start),o=Q_e.ChangeTracker.with(e,(t=>Nte(t,e.sourceFile,i,r)));return[n5(wte,o,[Pa.Use_element_access_for_0,i.name.text],wte,Pa.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>_5(e,Dte,((t,n)=>Nte(t,n.file,Ete(n.file,n.start),e.preferences)))});var Pte="fixImplicitThis",Fte=[Pa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Ate(e,t,n,r){const i=ZX(t,n);if(!SX(i))return;const o=fm(i,!1,!1);if((sP(o)||mE(o))&&!nF(fm(o,!1,!1))){const n=En.checkDefined(BX(o,100,t)),{name:i}=o,a=En.checkDefined(o.body);if(mE(o)){if(i&&Ace.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[Pa.Convert_function_expression_0_to_arrow_function,i?i.text:AZ]}return e.replaceNode(t,n,_w.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[Pa.Convert_function_declaration_0_to_arrow_function,i.text]}}o5({errorCodes:Fte,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=Q_e.ChangeTracker.with(e,(e=>{i=Ate(e,t,r.start,n.getTypeChecker())}));return i?[n5(Pte,o,i,Pte,Pa.Fix_all_implicit_this_errors)]:c},fixIds:[Pte],getAllCodeActions:e=>_5(e,Fte,((t,n)=>{Ate(t,n.file,n.start,e.program.getTypeChecker())}))});var Ite="fixImportNonExportedMember",Ote=[Pa.Module_0_declares_1_locally_but_it_is_not_exported.code];function Lte(e,t,n){var r,i;const o=ZX(e,t);if(nN(o)){const t=wc(o,hP);if(void 0===t)return;const a=BD(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||T0(n,c))return;const l=null==(i=ht(c.symbol.valueDeclaration,C_))?void 0:i.locals;if(void 0===l)return;const u=l.get(o.escapedText);if(void 0===u)return;const d=function(e){if(void 0===e.valueDeclaration)return Pe(e.declarations);const t=e.valueDeclaration,n=oP(t)?ht(t.parent.parent,UE):void 0;return n&&1===_(n.declarationList.declarations)?n:t}(u);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:_C(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function Rte(e,t,n,r,i){_(r)&&(i?jte(e,t,n,i,r):Bte(e,t,n,r))}function Mte(e,t){return D(e.statements,(e=>EP(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function jte(e,t,n,r,i){const o=r.exportClause&&PP(r.exportClause)?r.exportClause.elements:_w.createNodeArray([]),a=!(r.isTypeOnly||!zS(t.getCompilerOptions())&&!w(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,_w.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,_w.createNamedExports(_w.createNodeArray([...o,...Jte(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}
6function Bte(e,t,n,r){e.insertNodeAtEndOfScope(n,n,_w.createExportDeclaration(void 0,!1,_w.createNamedExports(Jte(r,zS(t.getCompilerOptions()))),void 0,void 0))}function Jte(e,t){return _w.createNodeArray(j(e,(e=>_w.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}o5({errorCodes:Ote,fixIds:[Ite],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Lte(t,n.start,r);if(void 0===i)return;const o=Q_e.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=Mte(i,n.isTypeOnly);o?jte(e,t,i,o,[n]):dC(r)?e.insertExportModifier(i,r):Bte(e,t,i,[n])}(e,r,i)));return[n5(Ite,o,[Pa.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],Ite,Pa.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return l5(Q_e.ChangeTracker.with(e,(n=>{const r=new Map;d5(e,Ote,(e=>{const i=Lte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===Mte(s,o.isTypeOnly)&&dC(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=Mte(r,!0);i&&i.isTypeOnly?(Rte(n,t,r,e.typeOnlyExports,i),Rte(n,t,r,e.exports,Mte(r,!1))):Rte(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}});var Ute="fixIncorrectNamedTupleSyntax";o5({errorCodes:[Pa.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,Pa.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){const n=ZX(e,t);return wc(n,(e=>202===e.kind))}(t,n.start),i=Q_e.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=_w.updateNamedTupleMember(n,n.dotDotDotToken||(o?_w.createToken(26):void 0),n.name,n.questionToken||(i?_w.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[n5(Ute,i,Pa.Move_labeled_tuple_element_modifiers_to_labels,Ute,Pa.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Ute]});var qte="fixSpelling",zte=[Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Pa.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Pa.Cannot_find_name_0_Did_you_mean_1.code,Pa.Could_not_find_name_0_Did_you_mean_1.code,Pa.Cannot_find_namespace_0_Did_you_mean_1.code,Pa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Pa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Pa._0_has_no_exported_member_named_1_Did_you_mean_2.code,Pa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Pa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Pa.No_overload_matches_this_call.code,Pa.Type_0_is_not_assignable_to_type_1.code];function $te(e,t,n,r){const i=ZX(e,t),o=i.parent;if((r===Pa.No_overload_matches_this_call.code||r===Pa.Type_0_is_not_assignable_to_type_1.code)&&!zP(o))return;const a=n.program.getTypeChecker();let s;if(cE(o)&&o.name===i){En.assert(Nl(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(kE(o)&&103===o.operatorToken.kind&&o.left===i&&rN(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(hN(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(DP(o)&&o.name===i){En.assertNode(i,nN,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!Z_(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,wc(i,hP),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(zP(o)&&o.name===i){En.assertNode(i,nN,"Expected an identifier for JSX attribute");const e=wc(i,j_),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Zv(o)&&wu(o)&&o.name===i){const e=wc(i,Du),t=e?Ih(e):void 0,n=t?a.getTypeAtLocation(t):void 0;
6n&&(s=a.getSuggestedSymbolForNonexistentClassMember(ap(i),n))}else{const e=HG(i),t=ap(i);En.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function Vte(e,t,n,r,i){const o=Ic(r);if(!Ls(o,i)&&cE(n.parent)){const i=r.valueDeclaration;i&&jc(i)&&rN(i.name)?e.replaceNode(t,n,_w.createIdentifier(o)):e.replaceNode(t,n.parent,_w.createElementAccessExpression(n.parent.expression,_w.createStringLiteral(o)))}else e.replaceNode(t,n,_w.createIdentifier(o))}o5({errorCodes:zte,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=$te(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=BS(e.host.getCompilationSettings());return[n5("spelling",Q_e.ChangeTracker.with(e,(e=>Vte(e,t,i,o,a))),[Pa.Change_spelling_to_0,Ic(o)],qte,Pa.Fix_all_detected_spelling_errors)]},fixIds:[qte],getAllCodeActions:e=>_5(e,zte,((t,n)=>{const r=$te(n.file,n.start,e,n.code),i=BS(e.host.getCompilationSettings());r&&Vte(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))});var Wte="returnValueCorrect",Hte="fixAddReturnStatement",Kte="fixRemoveBracesFromArrowFunctionBody",Gte="fixWrapTheBlockWithParen",Xte=[Pa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,Pa.Type_0_is_not_assignable_to_type_1.code,Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function Qte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=_d([r]);return e.createAnonymousType(void 0,i,[],[],[])}function Yte(e,t,n,r){if(!t.body||!JE(t.body)||1!==_(t.body.statements))return;const i=Ae(t.body.statements);if(zE(i)&&Zte(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(tP(i)&&zE(i.statement)){const o=_w.createObjectLiteralExpression([_w.createPropertyAssignment(i.label,i.statement.expression)]);if(Zte(e,t,Qte(e,i.label,i.statement.expression),n,r))return gE(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(JE(i)&&1===_(i.statements)){const o=Ae(i.statements);if(tP(o)&&zE(o.statement)){const a=_w.createObjectLiteralExpression([_w.createPropertyAssignment(o.label,o.statement.expression)]);if(Zte(e,t,Qte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function Zte(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){Xv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,_d(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function ene(e,t,n,r){const i=ZX(t,n);if(!i.parent)return;const o=wc(i.parent,xu);switch(r){case Pa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&CX(o.type,i)))return;return Yte(e,o,e.getTypeFromTypeNode(o.type),!1);case Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!uE(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return Yte(e,o,n,!0);case Pa.Type_0_is_not_assignable_to_type_1.code:if(!kh(i)||!$f(i.parent)&&!zP(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(WP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}(i.parent);if(!r||!xu(r)||!r.body)return;return Yte(e,r,e.getTypeAtLocation(i.parent),!0)}}function tne(e,t,n,r){dZ(n);const i=JZ(t);
6e.replaceNode(t,r,_w.createReturnStatement(n),{leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Q_e.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function nne(e,t,n,r,i,o){const a=CZ(r)?_w.createParenthesizedExpression(r):r;dZ(i),mZ(i,a),e.replaceNode(t,n.body,a)}function rne(e,t,n,r){e.replaceNode(t,n.body,_w.createParenthesizedExpression(r))}function ine(e,t,n){const r=Q_e.ChangeTracker.with(e,(r=>tne(r,e.sourceFile,t,n)));return n5(Wte,r,Pa.Add_a_return_statement,Hte,Pa.Add_all_missing_return_statement)}function one(e,t,n){const r=Q_e.ChangeTracker.with(e,(r=>rne(r,e.sourceFile,t,n)));return n5(Wte,r,Pa.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Gte,Pa.Wrap_all_object_literal_with_parentheses)}o5({errorCodes:Xte,fixIds:[Hte,Kte,Gte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=ene(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?fe([ine(e,o.expression,o.statement)],gE(o.declaration)?function(e,t,n,r){const i=Q_e.ChangeTracker.with(e,(i=>nne(i,e.sourceFile,t,n,r)));return n5(Wte,i,Pa.Remove_braces_from_arrow_function_body,Kte,Pa.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[one(e,o.declaration,o.expression)]},getAllCodeActions:e=>_5(e,Xte,((t,n)=>{const r=ene(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Hte:tne(t,n.file,r.expression,r.statement);break;case Kte:if(!gE(r.declaration))return;nne(t,n.file,r.declaration,r.expression,r.commentSource);break;case Gte:if(!gE(r.declaration))return;rne(t,n.file,r.declaration,r.expression);break;default:En.fail(JSON.stringify(e.fixId))}}))});var ane="fixMissingMember",sne="fixMissingProperties",cne="fixMissingAttributes",lne="fixMissingFunctionDeclaration",une=[Pa.Property_0_does_not_exist_on_type_1.code,Pa.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Pa.Property_0_is_missing_in_type_1_but_required_in_type_2.code,Pa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,Pa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Pa.Cannot_find_name_0.code];function _ne(e,t,n,r,i){var o;const a=ZX(e,t),s=a.parent;if(n===Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==a.kind||!sE(s)||!uE(s.parent))return;const e=N(s.parent.arguments,(e=>e===s));if(e<0)return;const t=r.getResolvedSignature(s.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&bN(n)&&nN(n.name)))return;const i=Xe(r.getUnmatchedProperties(r.getTypeAtLocation(s),r.getParameterType(t,e),!1,!1));if(!_(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:s}}if(19===a.kind&&sE(s)){const e=r.getContextualType(s)||r.getTypeAtLocation(s),t=Xe(r.getUnmatchedProperties(r.getTypeAtLocation(s),e,!1,!1));if(!_(t))return;return{kind:3,token:s,identifier:"",properties:t,parentDeclaration:s}}if(!Nl(a))return;if(nN(a)&&H_(s)&&s.initializer&&sE(s.initializer)){const e=r.getContextualType(a)||r.getTypeAtLocation(a),t=Xe(r.getUnmatchedProperties(r.getTypeAtLocation(s.initializer),e,!1,!1));if(!_(t))return;return{kind:3,token:a,identifier:a.text,properties:t,parentDeclaration:s.initializer}}if(nN(a)&&j_(a.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return c;const i=r.getProperties();if(!_(i))return c;const o=new Set;for(const a of n.attributes.properties)if(zP(a)&&o.add(SC(a.name)),VP(a)){const t=e.getTypeAtLocation(a.expression);for(const e of t.getProperties())o.add(e.escapedName)}return L(i,(e=>Ls(e.name,t,1)&&!(16777216&e.flags||48&wx(e)||o.has(e.escapedName))))}(r,BS(i.getCompilerOptions()),a.parent);if(!_(e))return;return{kind:4,token:a,attributes:e,parentDeclaration:a.parent}}if(nN(a)){const t=null==(o=r.getContextualType(a))?void 0:o.getNonNullableType();if(t&&16&Bx(t)){const n=Pe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:a,signature:n,sourceFile:e,parentDeclaration:Tne(a)}}if(uE(s)&&s.expression===a)return{kind:2,token:a,call:s,sourceFile:e,modifierFlags:0,parentDeclaration:Tne(a)}}if(!cE(s))return;const l=XQ(r.getTypeAtLocation(s.expression)),u=l.symbol;if(!u||!u.declarations)return;if(nN(a)&&uE(s.parent)){const t=w(u.declarations,dP),n=null==t?void 0:t.getSourceFile();if(t&&n&&!T0(i,n))return{kind:2,token:a,call:s.parent,sourceFile:e,modifierFlags:32,parentDeclaration:t};const r=w(u.declarations,nF);if(e.commonJsModuleIndicator)return;if(r&&!T0(i,r))return{kind:2,token:a,call:s.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const d=w(u.declarations,Du);if(!d&&rN(a))return;const p=d||w(u.declarations,(e=>lP(e)||jN(e)));if(p&&!T0(i,p.getSourceFile())){const e=!jN(p)&&(l.target||l)!==r.getDeclaredTypeOfSymbol(u);
6if(e&&(rN(a)||lP(p)))return;const t=p.getSourceFile(),n=jN(p)?0:(e?256:0)|(m0(a.text)?2:0),i=$m(t);return{kind:0,token:a,call:ht(s.parent,uE),modifierFlags:n,parentDeclaration:p,declSourceFile:t,isJSFile:i}}const f=w(u.declarations,_P);return!f||1056&l.flags||rN(a)||T0(i,f.getSourceFile())?void 0:{kind:1,token:a,parentDeclaration:f}}function dne(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=pne(_w.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(rN(r)){const r=_w.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=gne(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=Tv(n);if(!r)return;const i=pne(_w.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function pne(e,t){return _w.createExpressionStatement(_w.createAssignment(_w.createPropertyAccessExpression(e,t),kne()))}function fne(e,t,n){let r;if(226===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1):void 0}return r||_w.createKeywordTypeNode(133)}function mne(e,t,n,r,i,o){const a=o?_w.createNodeArray(_w.createModifiersFromModifierFlags(o)):void 0,s=Du(n)?_w.createPropertyDeclaration(a,r,void 0,i,void 0):_w.createPropertySignature(void 0,r,void 0,i),c=gne(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function gne(e){let t;for(const n of e.members){if(!kN(n))break;t=n}return t}function hne(e,t,n,r,i,o,a){const s=Iee(a,e.program,e.preferences,e.host),c=ioe(Du(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(jN(e))return;const n=wc(t,(e=>CN(e)||DN(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function yne(e,t,{token:n,parentDeclaration:r}){const i=te(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=r.getSourceFile(),a=_w.createEnumMember(n,i?_w.createStringLiteral(n.text):void 0),s=Oe(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function vne(e,t,n){const r=cY(t.sourceFile,t.preferences),i=Iee(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?ioe(262,t,i,n.call,Fc(n.token),n.modifierFlags,n.parentDeclaration):roe(262,t,r,n.signature,doe(Pa.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&En.fail("fixMissingFunctionDeclaration codefix got unexpected error."),YE(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function bne(e,t,n){const r=Iee(t.sourceFile,t.program,t.preferences,t.host),i=cY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=te(a.properties,VP),c=j(n.attributes,(e=>{const a=Sne(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=_w.createIdentifier(e.name),c=_w.createJsxAttribute(s,_w.createJsxExpression(void 0,a));return HT(s,c),c})),l=_w.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),u={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,u),r.writeFixes(e)}function xne(e,t,n){const r=Iee(t.sourceFile,t.program,t.preferences,t.host),i=cY(t.sourceFile,t.preferences),o=BS(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=j(n.properties,(e=>{const s=Sne(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return _w.createPropertyAssignment(function(e,t,n,r){if(dd(e)){const t=r.symbolToNode(e,111551,void 0,1073741824);if(t&&yN(t))return t}return sC(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Q_e.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,_w.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Sne(e,t,n,r,i,o){if(3&i.flags)return kne();if(134217732&i.flags)return _w.createStringLiteral("",0===r);if(8&i.flags)return _w.createNumericLiteral(0);if(64&i.flags)return _w.createBigIntLiteral("0n");if(16&i.flags)return _w.createFalse();if(1056&i.flags){const e=i.symbol.exports?Fe(i.symbol.exports.values()):i.symbol,n=t.symbolToExpression(i.symbol.parent?i.symbol.parent:i.symbol,111551,void 0,64);return void 0===e||void 0===n?_w.createNumericLiteral(0):_w.createPropertyAccessExpression(n,t.symbolToString(e))}if(256&i.flags)return _w.createNumericLiteral(i.value);if(2048&i.flags)return _w.createBigIntLiteral(i.value);if(128&i.flags)return _w.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?_w.createFalse():_w.createTrue();if(65536&i.flags)return _w.createNull();if(1048576&i.flags){const a=y(i.types,(i=>Sne(e,t,n,r,i,o)));return null!=a?a:kne()}if(t.isArrayLikeType(i))return _w.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&Bx(e)||e.symbol&&ht(Re(e.symbol.declarations),jN))}(i)){const a=j(t.getPropertiesOfType(i),(i=>{const a=Sne(e,t,n,r,t.getTypeOfSymbol(i),o);return _w.createPropertyAssignment(i.name,a)}));return _w.createObjectLiteralExpression(a,!0)}if(16&Bx(i)){if(void 0===w(i.symbol.declarations||c,vn(LN,TN,CN)))return kne();const a=t.getSignaturesOfType(i,0);if(void 0===a)return kne();const s=roe(218,e,r,a[0],doe(Pa.Function_not_implemented.message,r),void 0,void 0,void 0,o,n);return null!=s?s:kne()}if(1&Bx(i)){const e=jx(i.symbol);if(void 0===e||eb(e))return kne();const t=Tv(e);return t&&_(t.parameters)?kne():_w.createNewExpression(_w.createIdentifier(i.symbol.name),void 0,void 0)}return kne()}function kne(){return _w.createIdentifier("undefined")}function Tne(e){if(wc(e,WP)){const t=wc(e.parent,YE);if(t)return t}return Id(e)}o5({errorCodes:une,getCodeActions(e){const t=e.program.getTypeChecker(),n=_ne(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=Q_e.ChangeTracker.with(e,(t=>xne(t,e,n)));return[n5(sne,t,Pa.Add_missing_properties,sne,Pa.Add_all_missing_properties)]}if(4===n.kind){const t=Q_e.ChangeTracker.with(e,(t=>bne(t,e,n)));return[n5(cne,t,Pa.Add_missing_attributes,cne,Pa.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=Q_e.ChangeTracker.with(e,(t=>vne(t,e,n)));return[n5(lne,t,[Pa.Add_missing_function_declaration_0,n.token.text],lne,Pa.Add_all_missing_function_declarations)]}if(1===n.kind){const t=Q_e.ChangeTracker.with(e,(t=>yne(t,e.program.getTypeChecker(),n)));return[n5(ane,t,[Pa.Add_missing_enum_member_0,n.token.text],ane,Pa.Add_all_missing_members)]}return re(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>Q_e.ChangeTracker.with(e,(i=>hne(e,i,a,o,t,n,r))),l=[n5(ane,c(256&i),[256&i?Pa.Declare_static_method_0:Pa.Declare_method_0,s],ane,Pa.Add_all_missing_members)];return 2&i&&l.unshift(t5(ane,c(2),[Pa.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?Sn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(lP(t)||jN(t))return;const o=Q_e.ChangeTracker.with(e,(e=>dne(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?Pa.Initialize_static_property_0:rN(i)?Pa.Declare_a_private_field_named_0:Pa.Initialize_property_0_in_the_constructor;return n5(ane,o,[a,i.text],ane,Pa.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=fne(e.program.getTypeChecker(),t,i),c=r=>Q_e.ChangeTracker.with(e,(e=>mne(e,n,t,o,s,r))),l=[n5(ane,c(256&r),[a?Pa.Declare_static_property_0:Pa.Declare_property_0,o],ane,Pa.Add_all_missing_members)];return a||rN(i)||(2&r&&l.unshift(t5(ane,c(2),[Pa.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=_w.createKeywordTypeNode(154),a=_w.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=_w.createIndexSignature(void 0,[a],i),c=Q_e.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return t5(ane,c,[Pa.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[ane,lne,sne,cne],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Map,o=new Map;return l5(Q_e.ChangeTracker.with(e,(t=>{d5(e,une,(a=>{const s=_ne(a.file,a.start,a.code,r,e.program);if(s&&$x(i,ZB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier:s.token.text)))if(n!==lne||2!==s.kind&&5!==s.kind){if(n===sne&&3===s.kind)xne(t,e,s);else if(n===cne&&4===s.kind)bne(t,e,s);else if(1===s.kind&&yne(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=X(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else vne(t,e,s)}
6)),o.forEach(((n,i)=>{const a=jN(i)?void 0:Noe(i,r);for(const s of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===s.token.text))})))continue;const{parentDeclaration:n,declSourceFile:i,modifierFlags:c,token:l,call:u,isJSFile:_}=s;if(u&&!rN(l))hne(e,t,u,l,256&c,n,i);else if(!_||lP(n)||jN(n)){const e=fne(r,n,l);mne(t,i,n,l.text,e,256&c)}else dne(t,i,n,l,!!(256&c))}}))})))}});var Cne="addMissingNewOperator",wne=[Pa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function Dne(e,t,n){const r=yt(function(e,t){let n=ZX(e,t.start);const r=Ks(t);for(;n.end<r;)n=n.parent;return n}(t,n),uE),i=_w.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(t,r,i)}o5({errorCodes:wne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Q_e.ChangeTracker.with(e,(e=>Dne(e,t,n)));return[n5(Cne,r,Pa.Add_missing_new_operator_to_call,Cne,Pa.Add_missing_new_operator_to_all_calls)]},fixIds:[Cne],getAllCodeActions:e=>_5(e,wne,((t,n)=>Dne(t,e.sourceFile,n)))});var Nne="addMissingParam",Ene="addOptionalParam",Pne=[Pa.Expected_0_arguments_but_got_1.code];function Fne(e,t,n){const r=wc(ZX(e,n),uE);if(void 0===r||0===_(r.arguments))return;const i=t.getTypeChecker(),o=L(i.getTypeAtLocation(r.expression).symbol.declarations,One);if(void 0===o)return;const a=Oe(o);if(void 0===a||void 0===a.body||T0(t,a.getSourceFile()))return;const s=function(e){const t=Jc(e);return t||(oP(e.parent)&&nN(e.parent.name)||kN(e.parent)||bN(e.parent)?e.parent.name:void 0)}(a);if(void 0===s)return;const c=[],l=[],u=_(a.parameters),d=_(r.arguments);if(u>d)return;const p=[a,...Rne(a,o)];for(let _=0,f=0,m=0;_<d;_++){const e=r.arguments[_],t=Hx(e)?Kx(e):e,n=i.getWidenedType(i.getBaseTypeOfLiteralType(i.getTypeAtLocation(e))),o=f<u?a.parameters[f]:void 0;if(o&&i.isTypeAssignableTo(n,i.getTypeAtLocation(o))){f++;continue}const s=t&&nN(t)?t.text:"p"+m++,d=Ane(i,n,a);fe(c,{pos:_,declaration:jne(s,d,void 0)}),Bne(p,f)||fe(l,{pos:_,declaration:jne(s,d,_w.createToken(58))})}return{newParameters:c,newOptionalParameters:l,name:zp(s),declarations:p}}function Ane(e,t,n){var r;return null!=(r=e.typeToTypeNode(e.getWidenedType(t),n,1))?r:_w.createKeywordTypeNode(159)}function Ine(e,t,n,r,i,o){const a=BS(t.getCompilerOptions());d(i,(i=>{const s=Id(i),c=Iee(s,t,n,r);_(i.parameters)?e.replaceNodeRangeWithNodes(s,Ae(i.parameters),Le(i.parameters),Lne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:Q_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Q_e.TrailingTriviaOption.Include}):d(Lne(c,a,i,o),((t,n)=>{0===_(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)})),c.writeFixes(e)}))}function One(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function Lne(e,t,n,r){const i=j(n.parameters,(e=>_w.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer)));for(const{pos:o,declaration:a}of r){const n=o>0?i[o-1]:void 0;i.splice(o,0,_w.updateParameterDeclaration(a,a.modifiers,a.dotDotDotToken,a.name,n&&n.questionToken?_w.createToken(58):a.questionToken,Jne(e,a.type,t),a.initializer))}return i}function Rne(e,t){const n=[];for(const r of t)if(Mne(r)){if(_(r.parameters)===_(e.parameters)){n.push(r);continue}if(_(r.parameters)>_(e.parameters))return[]}return n}function Mne(e){return One(e)&&void 0===e.body}function jne(e,t,n){return _w.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function Bne(e,t){return _(e)&&te(e,(e=>t<_(e.parameters)&&!!e.parameters[t]&&void 0===e.parameters[t].questionToken))}function Jne(e,t,n){const r=hoe(t,n);return r?(voe(e,r.symbols),r.typeNode):t}o5({errorCodes:Pne,fixIds:[Nne,Ene],getCodeActions(e){const t=Fne(e.sourceFile,e.program,e.span.start);if(void 0===t)return;const{name:n,declarations:r,newParameters:i,newOptionalParameters:o}=t,a=[];return _(i)&&fe(a,n5(Nne,Q_e.ChangeTracker.with(e,(t=>Ine(t,e.program,e.preferences,e.host,r,i))),[_(i)>1?Pa.Add_missing_parameters_to_0:Pa.Add_missing_parameter_to_0,n],Nne,Pa.Add_all_missing_parameters)),_(o)&&fe(a,n5(Ene,Q_e.ChangeTracker.with(e,(t=>Ine(t,e.program,e.preferences,e.host,r,o))),[_(o)>1?Pa.Add_optional_parameters_to_0:Pa.Add_optional_parameter_to_0,n],Ene,Pa.Add_all_optional_parameters)),a},getAllCodeActions:e=>_5(e,Pne,((t,n)=>{const r=Fne(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===Nne&&Ine(t,e.program,e.preferences,e.host,n,i),e.fixId===Ene&&Ine(t,e.program,e.preferences,e.host,n,o)}}))});var Une="installTypesPackage",qne=Pa.Cannot_find_module_0_or_its_corresponding_type_declarations.code,zne=[qne,Pa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function $ne(e,t){return{type:"install package",file:e,packageName:t}}function Vne(e,t){const n=ht(ZX(e,t),BD);if(!n)return;const r=n.text,{packageName:i}=bj(r);return Vs(i)?void 0:i}function Wne(e,t,n){var r;return n===qne?qK.nodeCoreModules.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?Oj(e):void 0}o5({errorCodes:zne,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r}}=e,i=Vne(n,r);if(void 0===i)return;const o=Wne(i,t,e.errorCode);
6return void 0===o?[]:[n5("fixCannotFindModule",[],[Pa.Install_0,o],Une,Pa.Install_all_missing_types_packages,$ne(n.fileName,o))]},fixIds:[Une],getAllCodeActions:e=>_5(e,zne,((t,n,r)=>{const i=Vne(n.file,n.start);if(void 0!==i)switch(e.fixId){case Une:{const t=Wne(i,e.host,n.code);t&&r.push($ne(n.file.fileName,t));break}default:En.fail(`Bad fixId: ${e.fixId}`)}}))});var Hne=[Pa.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,Pa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,Pa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,Pa.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,Pa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,Pa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Kne="fixClassDoesntImplementInheritedAbstractMember";function Gne(e,t){return yt(ZX(e,t).parent,Du)}function Xne(e,t,n,r,i){const o=Ih(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(Qne),l=Iee(t,n.program,i,n.host);Zie(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function Qne(e){const t=ub(Ae(e.getDeclarations()));return!(2&t||!(64&t))}o5({errorCodes:Hne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Q_e.ChangeTracker.with(e,(r=>Xne(Gne(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[n5(Kne,r,Pa.Implement_inherited_abstract_class,Kne,Pa.Implement_all_inherited_abstract_classes)]},fixIds:[Kne],getAllCodeActions:function(e){const t=new Map;return _5(e,Hne,((n,r)=>{const i=Gne(r.file,r.start);$x(t,ZB(i))&&Xne(i,e.sourceFile,e,n,e.preferences)}))}});var Yne="classSuperMustPrecedeThisAccess",Zne=[Pa.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function ere(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function tre(e,t){const n=ZX(e,t);if(110!==n.kind)return;const r=cm(n),i=nre(r.body);return i&&!i.expression.arguments.some((e=>cE(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function nre(e){return zE(e)&&bf(e.expression)?e:vu(e)?void 0:ZI(e,nre)}o5({errorCodes:Zne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=tre(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=Q_e.ChangeTracker.with(e,(e=>ere(e,t,i,o)));return[n5(Yne,a,Pa.Make_super_call_the_first_statement_in_the_constructor,Yne,Pa.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Yne],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return _5(e,Zne,((e,r)=>{const i=tre(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;$x(n,ZB(o.parent))&&ere(e,t,o,a)}))}});var rre="constructorForDerivedNeedSuperCall",ire=[Pa.Constructors_for_derived_classes_must_contain_a_super_call.code];function ore(e,t){const n=ZX(e,t);return En.assert(DN(n.parent),"token should be at the constructor declaration"),n.parent}function are(e,t,n){const r=_w.createExpressionStatement(_w.createCallExpression(_w.createSuper(),void 0,c));e.insertNodeAtConstructorStart(t,n,r)}o5({errorCodes:ire,getCodeActions(e){const{sourceFile:t,span:n}=e,r=ore(t,n.start),i=Q_e.ChangeTracker.with(e,(e=>are(e,t,r)));return[n5(rre,i,Pa.Add_missing_super_call,rre,Pa.Add_all_missing_super_calls)]},fixIds:[rre],getAllCodeActions:e=>_5(e,ire,((t,n)=>are(t,e.sourceFile,ore(n.file,n.start))))});var sre="fixEnableJsxFlag",cre=[Pa.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function lre(e,t){foe(e,t,"jsx",_w.createStringLiteral("react"))}o5({errorCodes:cre,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=Q_e.ChangeTracker.with(e,(e=>lre(e,t)));return[t5(sre,n,Pa.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[sre],getAllCodeActions:e=>_5(e,cre,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&lre(t,n)}))});var ure="fixNaNEquality",_re=[Pa.This_condition_will_always_return_0.code];function dre(e,t,n){const r=w(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=w(r.relatedInformation,(e=>e.code===Pa.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=boe(i.file,ac(i.start,i.length));return void 0!==o&&s_(o)&&kE(o.parent)?{suggestion:fre(i.messageText),expression:o.parent,arg:o}:void 0}function pre(e,t,n,r){const i=_w.createCallExpression(_w.createPropertyAccessExpression(_w.createIdentifier("Number"),_w.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?_w.createPrefixUnaryExpression(54,i):i)}function fre(e){const[,t]=l$(e,"\n",0).match(/'(.*)'/)||[];return t}o5({errorCodes:_re,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=dre(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=Q_e.ChangeTracker.with(e,(e=>pre(e,t,s,a)));return[n5(ure,c,[Pa.Use_0,o],ure,Pa.Use_Number_isNaN_in_all_conditions)]},fixIds:[ure],getAllCodeActions:e=>
6_5(e,_re,((t,n)=>{const r=dre(e.program,n.file,ac(n.start,n.length));r&&pre(t,n.file,r.arg,r.expression)}))}),o5({errorCodes:[Pa.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,Pa.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,Pa.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=JS(t);if(i>=5&&i<99){const t=Q_e.ChangeTracker.with(e,(e=>{foe(e,n,"module",_w.createStringLiteral("esnext"))}));r.push(t5("fixModuleOption",t,[Pa.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=BS(t);if(o<4||o>99){const t=Q_e.ChangeTracker.with(e,(e=>{if(!om(n))return;const t=[["target",_w.createStringLiteral("es2017")]];1===i&&t.push(["module",_w.createStringLiteral("commonjs")]),poe(e,n,t)}));r.push(t5("fixTargetOption",t,[Pa.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var mre="fixPropertyAssignment",gre=[Pa.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];function hre(e,t,n){e.replaceNode(t,n,_w.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function yre(e,t){return yt(ZX(e,t).parent,ZP)}o5({errorCodes:gre,fixIds:[mre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=yre(t,n.start),i=Q_e.ChangeTracker.with(e,(t=>hre(t,e.sourceFile,r)));return[n5(mre,i,[Pa.Change_0_to_1,"=",":"],mre,[Pa.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>_5(e,gre,((e,t)=>hre(e,t.file,yre(t.file,t.start))))});var vre="extendsInterfaceBecomesImplements",bre=[Pa.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function xre(e,t){const n=um(ZX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function Sre(e,t,n,r){if(e.replaceNode(t,n,_w.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},_w.createToken(28));const o=t.text;let a=n.end;for(;a<o.length&&ls(o.charCodeAt(a));)a++;e.deleteRange(t,{pos:n.getStart(),end:a})}}o5({errorCodes:bre,getCodeActions(e){const{sourceFile:t}=e,n=xre(t,e.span.start);if(!n)return;const{extendsToken:r,heritageClauses:i}=n,o=Q_e.ChangeTracker.with(e,(e=>Sre(e,t,r,i)));return[n5(vre,o,Pa.Change_extends_to_implements,vre,Pa.Change_all_extended_interfaces_to_implements)]},fixIds:[vre],getAllCodeActions:e=>_5(e,bre,((e,t)=>{const n=xre(t.file,t.start);n&&Sre(e,t.file,n.extendsToken,n.heritageClauses)}))});var kre="forgottenThisPropertyAccess",Tre=Pa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Cre=[Pa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Pa.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,Tre];function wre(e,t,n){const r=ZX(e,t);if(nN(r)||rN(r))return{node:r,className:n===Tre?um(r).name.text:void 0}}function Dre(e,t,{node:n,className:r}){dZ(n),e.replaceNode(t,n,_w.createPropertyAccessExpression(r?_w.createIdentifier(r):_w.createThis(),n))}o5({errorCodes:Cre,getCodeActions(e){const{sourceFile:t}=e,n=wre(t,e.span.start,e.errorCode);if(!n)return;const r=Q_e.ChangeTracker.with(e,(e=>Dre(e,t,n)));return[n5(kre,r,[Pa.Add_0_to_unresolved_variable,n.className||"this"],kre,Pa.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[kre],getAllCodeActions:e=>_5(e,Cre,((t,n)=>{const r=wre(n.file,n.start,n.code);r&&Dre(t,e.sourceFile,r)}))});var Nre="fixInvalidJsxCharacters_expression",Ere="fixInvalidJsxCharacters_htmlEntity",Pre=[Pa.Unexpected_token_Did_you_mean_or_gt.code,Pa.Unexpected_token_Did_you_mean_or_rbrace.code];o5({errorCodes:Pre,fixIds:[Nre,Ere],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=Q_e.ChangeTracker.with(e,(e=>
6Are(e,n,t,r.start,!1))),o=Q_e.ChangeTracker.with(e,(e=>Are(e,n,t,r.start,!0)));return[n5(Nre,i,Pa.Wrap_invalid_character_in_an_expression_container,Nre,Pa.Wrap_all_invalid_characters_in_an_expression_container),n5(Ere,o,Pa.Convert_invalid_character_to_its_html_entity_code,Ere,Pa.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>_5(e,Pre,((t,n)=>Are(t,e.preferences,n.file,n.start,e.fixId===Ere)))});var Fre={">":"&gt;","}":"&rbrace;"};function Are(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return $e(Fre,e)}(o))return;const a=i?Fre[o]:`{${DZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var Ire="deleteUnmatchedParameter",Ore="renameUnmatchedParameter",Lre=[Pa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function Rre(e,t){const n=ZX(e,t);if(n.parent&&OF(n.parent)&&nN(n.parent.name)){const e=n.parent,t=ih(e),r=nh(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}o5({fixIds:[Ire,Ore],errorCodes:Lre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=Rre(t,n.start);if(i)return fe(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=Q_e.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return n5(Ire,i,[Pa.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Ire,Pa.Delete_all_unused_param_tags)}(e,i)),fe(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!_(r.parameters))return;const o=e.sourceFile,a=bl(r),s=new Set;for(const _ of a)OF(_)&&nN(_.name)&&s.add(_.name.escapedText);const c=y(r.parameters,(e=>nN(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const l=_w.updateJSDocParameterTag(i,i.tagName,_w.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),u=Q_e.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,j(a,(e=>e===i?l:e)))));return t5(Ore,u,[Pa.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return l5(Q_e.ChangeTracker.with(e,(n=>{d5(e,Lre,(({file:e,start:n})=>{const r=Rre(e,n);r&&t.set(r.signature,fe(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===Ire){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}});var Mre="fixUnreferenceableDecoratorMetadata";o5({errorCodes:[Pa.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=ht(ZX(e,n),nN);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return w((null==i?void 0:i.declarations)||c,vn(yP,DP,gP))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Q_e.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){v6.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=Q_e.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Bg(i,(e=>{if(111551&Nx(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=fe(i,t5(Mre,n,Pa.Convert_named_imports_to_namespace_import))),r.length&&(i=fe(i,t5(Mre,r,Pa.Use_import_type))),i},fixIds:[Mre]});var jre="unusedIdentifier",Bre="unusedIdentifier_prefix",Jre="unusedIdentifier_delete",Ure="unusedIdentifier_deleteImports",qre="unusedIdentifier_infer",zre=[Pa._0_is_declared_but_its_value_is_never_read.code,Pa._0_is_declared_but_never_used.code,Pa.Property_0_is_declared_but_its_value_is_never_read.code,Pa.All_imports_in_import_declaration_are_unused.code,Pa.All_destructured_elements_are_unused.code,Pa.All_variables_are_unused.code,Pa.All_type_parameters_are_unused.code];function $re(e,t,n){e.replaceNode(t,n.parent,_w.createKeywordTypeNode(159))}function Vre(e,t){return n5(jre,e,t,Jre,Pa.Delete_all_unused_declarations)}function Wre(e,t,n){e.delete(t,En.checkDefined(yt(n.parent,Ip).typeParameters,"The type parameter to delete should exist"))}function Hre(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function Kre(e){return 102===e.kind?ht(e.parent,hP):void 0}function Gre(e,t){return aP(t.parent)&&Ae(t.parent.getChildren(e))===t}function Xre(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function Qre(e,t,n,r){t!==Pa.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=yt(r.parent,HN).typeParameter.name),nN(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,_w.createIdentifier(`_${r.text}`)),bN(r.parent)&&Vc(r.parent).forEach((t=>{nN(t.name)&&e.replaceNode(n,t.name,_w.createIdentifier(`_${t.name.text}`))}))))}function Yre(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(bN(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const c=s.parameters.indexOf(n),l=CN(s)?s.name:s,u=Ace.Core.getReferencedSymbol
6sForNode(s.pos,l,i,r,o);if(u)for(const e of u)for(const t of e.references)if(t.kind===Ace.EntryKind.Node){const e=fN(t.node)&&uE(t.node.parent)&&t.node.parent.arguments.length>c,r=cE(t.node.parent)&&fN(t.node.parent.expression)&&uE(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(CN(t.node.parent)||TN(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!Ace.Core.eachSymbolReferenceInFile(n,e,t,(e=>nN(e)&&uE(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||eie(s,n,a);case 218:case 219:return eie(s,n,a);case 178:return!1;case 177:return!0;default:return En.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!nN(n.name)||Ace.Core.isSymbolReferencedInFile(n.name,r,t)))for(const c of n.modifiers)mu(c)&&e.deleteModifier(t,c);else!n.initializer&&Zre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&nN(e)&&Ace.Core.isSymbolReferencedInFile(e,r,n))){const r=yP(c)?e:yN(c)?c.parent:c;En.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),nN(t)&&Ace.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;cE(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(kE((r=t).parent)&&r.parent.left===r||(SE(r.parent)||xE(r.parent))&&r.parent.operand===r)&&zE(r.parent.parent)&&n.delete(e,t.parent.parent)}))}function Zre(e,t,n){const r=e.parent.parameters.indexOf(e);return!Ace.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function eie(e,t,n){const r=e.parameters,i=r.indexOf(t);return En.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>nN(e.name)&&!e.symbol.isReferenced)):i===r.length-1}o5({errorCodes:zre,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=ZX(n,e.span.start);if(jF(s))return[Vre(Q_e.ChangeTracker.with(e,(e=>e.delete(n,s))),Pa.Remove_template_tag)];if(30===s.kind)return[Vre(Q_e.ChangeTracker.with(e,(e=>Wre(e,n,s))),Pa.Remove_type_parameters)];const c=Kre(s);if(c){const t=Q_e.ChangeTracker.with(e,(e=>e.delete(n,c)));return[n5(jre,t,[Pa.Remove_import_from_0,qx(c)],Ure,Pa.Delete_all_unused_imports)]}if(Hre(s)){const t=Q_e.ChangeTracker.with(e,(e=>Yre(n,s,e,o,a,r,i,!1)));if(t.length)return[n5(jre,t,[Pa.Remove_unused_declaration_for_Colon_0,s.getText(n)],Ure,Pa.Delete_all_unused_imports)]}if(rE(s.parent)||iE(s.parent)){if(bN(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?Pa.Remove_unused_declarations_for_Colon_0:Pa.Remove_unused_declaration_for_Colon_0,j(t,(e=>e.getText(n))).join(", ")];return[Vre(Q_e.ChangeTracker.with(e,(e=>function(e,t,n){d(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[Vre(Q_e.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(oP(r)&&r.initializer&&Yu(r.initializer))if(aP(r.parent)&&_(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:HY(e.host,e.formatContext.options)+n.text.slice(aZ(n.text,o-1),o),suffix:JZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),Pa.Remove_unused_destructuring_declaration)]}if(Gre(n,s))return[Vre(Q_e.ChangeTracker.with(e,(e=>Xre(e,n,s.parent))),Pa.Remove_variable_statement)];if(nN(s)&&sP(s.parent))return[Vre(Q_e.ChangeTracker.with(e,(e=>function(e,t,n){const r=n.symbol.declarations;if(r)for(const i of r)e.delete(t,i)}(e,n,s.parent))),[Pa.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const l=[];if(140===s.kind){const t=Q_e.ChangeTracker.with(e,(e=>$re(e,n,s))),r=yt(s.parent,HN).typeParameter.name.text;l.push(n5(jre,t,[Pa.Replace_infer_0_with_unknown,r],qre,Pa.Replace_all_unused_infer_with_unknown))}else{const t=Q_e.ChangeTracker.with(e,(e=>Yre(n,s,e,o,a,r,i,!1)));if(t.length){const e=yN(s.parent)?s.parent:s;l.push(Vre(t,[Pa.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const u=Q_e.ChangeTracker.with(e,(e=>Qre(e,t,n,s)));return u.length&&l.push(n5(jre,u,[Pa.Prefix_0_with_an_underscore,s.getText(n)],Bre,Pa.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[Bre,Jre,Ure,qre],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}
6=e,i=n.getTypeChecker(),o=n.getSourceFiles();return _5(e,zre,((a,s)=>{const c=ZX(t,s.start);switch(e.fixId){case Bre:Qre(a,s.code,t,c);break;case Ure:{const e=Kre(c);e?a.delete(t,e):Hre(c)&&Yre(t,c,a,i,o,n,r,!0);break}case Jre:if(140===c.kind||Hre(c))break;if(jF(c))a.delete(t,c);else if(30===c.kind)Wre(a,t,c);else if(rE(c.parent)){if(c.parent.parent.initializer)break;bN(c.parent.parent)&&!Zre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(iE(c.parent.parent)&&c.parent.parent.parent.initializer)break;Gre(t,c)?Xre(a,t,c.parent):Yre(t,c,a,i,o,n,r,!0)}break;case qre:140===c.kind&&$re(a,t,c);break;default:En.fail(JSON.stringify(e.fixId))}}))}});var tie="fixUnreachableCode",nie=[Pa.Unreachable_code_detected.code];function rie(e,t,n,r,i){const o=ZX(t,n),a=wc(o,F_);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:En.formatSyntaxKind(a.kind),tokenKind:En.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});En.fail("Token and statement should start at the same point. "+e)}const s=(JE(a.parent)?a.parent:a).parent;if(!JE(a.parent)||a===Ae(a.parent.statements))switch(s.kind){case 245:if(s.elseStatement){if(JE(a.parent))break;return void e.replaceNode(t,a,_w.createBlock(c))}case 247:case 248:return void e.delete(t,s)}if(JE(a.parent)){const i=n+r,o=En.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(wT(a.parent.statements,a),(e=>e.pos<i)),"Some statement should be last");e.deleteNodeRange(t,a,o)}else e.delete(t,a)}o5({errorCodes:nie,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const t=Q_e.ChangeTracker.with(e,(t=>rie(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[n5(tie,t,Pa.Remove_unreachable_code,tie,Pa.Remove_all_unreachable_code)]},fixIds:[tie],getAllCodeActions:e=>_5(e,nie,((e,t)=>rie(e,t.file,t.start,t.length,t.code)))});var iie="fixUnusedLabel",oie=[Pa.Unused_label.code];function aie(e,t,n){const r=ZX(t,n),i=yt(r.parent,tP),o=r.getStart(t),a=i.statement.getStart(t),s=hx(o,a,t)?a:hs(t.text,BX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}o5({errorCodes:oie,getCodeActions(e){const t=Q_e.ChangeTracker.with(e,(t=>aie(t,e.sourceFile,e.span.start)));return[n5(iie,t,Pa.Remove_unused_label,iie,Pa.Remove_all_unused_labels)]},fixIds:[iie],getAllCodeActions:e=>_5(e,oie,((e,t)=>aie(e,t.file,t.start)))});var sie="fixJSDocTypes_plain",cie="fixJSDocTypes_nullable",lie=[Pa.JSDoc_types_can_only_be_used_inside_documentation_comments.code,Pa._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,Pa._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function uie(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function _ie(e,t,n){const r=wc(ZX(e,t),die),i=r&&r.type;return i&&{typeNode:i,type:pie(n,i)}}function die(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function pie(e,t){if(dF(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(fe([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}o5({errorCodes:lie,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=_ie(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,sie,Pa.Change_all_jsdoc_style_types_to_TypeScript)];return 314===i.kind&&s.push(c(o,cie,Pa.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return n5("jdocTypes",Q_e.ChangeTracker.with(e,(e=>uie(e,t,i,r,n))),[Pa.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[sie,cie],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return _5(e,lie,((e,n)=>{const o=_ie(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=314===a.kind&&t===cie?i.getNullableType(s,32768):s;uie(e,r,a,c,i)}))}});var fie="fixMissingCallParentheses",mie=[Pa.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function gie(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function hie(e,t){const n=ZX(e,t);if(cE(n.parent)){let e=n.parent;for(;cE(e.parent);)e=e.parent;return e.name}if(nN(n))return n}o5({errorCodes:mie,fixIds:[fie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=hie(t,n.start);if(!r)return;const i=Q_e.ChangeTracker.with(e,(t=>
6gie(t,e.sourceFile,r)));return[n5(fie,i,Pa.Add_missing_call_parentheses,fie,Pa.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>_5(e,mie,((e,t)=>{const n=hie(t.file,t.start);n&&gie(e,t.file,n)}))});var yie="fixMissingTypeAnnotationOnExports",vie="add-annotation",bie="add-type-assertion",xie=[Pa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,Pa.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,Pa.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,Pa.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,Pa.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,Pa.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,Pa.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,Pa.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,Pa.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,Pa.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,Pa.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,Pa.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,Pa.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,Pa.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,Pa.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,Pa.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,Pa.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,Pa.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,Pa.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code,Pa.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,Pa.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],Sie=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),kie=1074273293;function Tie(e,t,n,r,i){const o=Cie(n,r,i);o.result&&o.textChanges.length&&t.push(n5(e,o.textChanges,o.result,yie,Pa.Add_all_missing_type_annotations))}function Cie(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=Q_e.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=BS(a.getCompilerOptions()),l=Iee(e.sourceFile,e.program,e.preferences,e.host),u=new Set,_=new Set,d=kz({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=ZX(o,t.start),r=g(n);if(r)return sP(r)?function(e){var t;if(null==_?void 0:_.has(e))return;null==_||_.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const i of r)Ls(i.name,BS(a.getCompilerOptions()))&&(i.valueDeclaration&&oP(i.valueDeclaration)||c.push(_w.createVariableStatement([_w.createModifier(95)],_w.createVariableDeclarationList([_w.createVariableDeclaration(i.name,void 0,w(s.getTypeOfSymbol(i),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some((e=>95===e.kind)))&&l.push(_w.createModifier(95)),l.push(_w.createModifier(138));const u=_w.createModuleDeclaration(l,e.name,_w.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,u),[Pa.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=wc(n,(e=>Sie.has(e.kind)&&(!rE(e)&&!iE(e)||oP(e.parent))));return c?h(c):void 0},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=ZX(o,t.start);if(g(n))return;const r=N(n,t);if(!r||fh(r)||fh(r.parent))return;const a=s_(r),c=ZP(r);if(!c&&N_(r))return;if(wc(r,Bu))return;if(wc(r,tF))return;if(a&&(wc(r,XP)||wc(r,Mu)))return;if(DE(r))return;const l=wc(r,oP),u=l&&s.getTypeAtLocation(l);if(u&&8192&u.flags)return;if(!a&&!c)return;const{typeNode:_,mutatedTarget:d}=x(r,u);return _&&!d?(c?i.insertNodeAt(o,r.end,m(sZ(r.name),_),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){return f(e)&&(e=_w.createParenthesizedExpression(e)),_w.createAsExpression(_w.createSatisfiesExpression(e,sZ(t)),t)}(sZ(r),_)):En.assertNever(r),[Pa.Add_satisfies_and_an_inline_type_assertion_with_0,D(_)]):void 0},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=N(ZX(o,t.start),t);if(!n||fh(n)||fh(n.parent))return;if(!s_(n))return;if(aE(n))return i.replaceNode(o,n,m(n,_w.createTypeReferenceNode("const"))),[Pa.Mark_array_literal_as_const];const r=wc(n,YP);if(r){if(r===n.parent&&Pb(n))return;const e=_w.createUniqueName(R3(n,o,s,o),16);let t=n,a=n;if(DE(t)&&(t=hh(t.parent),a=T(t.parent)?t=t.parent:m(t,_w.createTypeReferenceNode("const"))),Pb(t))return;
6const c=_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(e,void 0,void 0,a)],2)),l=wc(n,F_);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,_w.createAsExpression(_w.cloneNode(e),_w.createTypeQueryNode(_w.cloneNode(e)))),[Pa.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(Pb(e)||uE(e)||sE(e)||aE(e))}function m(e,t){return f(e)&&(e=_w.createParenthesizedExpression(e)),_w.createAsExpression(e,t)}function g(e){const t=wc(e,(e=>F_(e)?"quit":PC(e)));if(t&&PC(t)){let e=t;if(kE(e)&&(e=e.left,!PC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if(te(s.getPropertiesOfType(n),(e=>e.valueDeclaration===t||e.valueDeclaration===t.parent))){const e=n.symbol.valueDeclaration;if(e){if(iC(e)&&oP(e.parent))return e.parent;if(sP(e))return e}}}}function h(e){if(!(null==u?void 0:u.has(e)))switch(null==u||u.add(e),e.kind){case 169:case 172:case 260:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(Id(e),e.type,t):i.tryInsertTypeAnnotation(Id(e),e,t),[Pa.Add_annotation_of_type_0,D(t)]}(e);case 219:case 218:case 262:case 174:case 177:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);return n?(i.tryInsertTypeAnnotation(t,e,n),[Pa.Add_return_type_0,D(n)]):void 0}(e,o);case 277:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=_w.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(n,void 0,t,e.expression)],2)),_w.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[Pa.Extract_default_export_to_variable]}(e);case 263:return function(e){var t,n,r;const a=null==(n=e.heritageClauses)?void 0:n.find((e=>96===e.token)),s=null==a?void 0:a.types[0];if(!s)return;const{typeNode:c}=x(s.expression);if(!c)return;const l=_w.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),u=_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(l,void 0,c,s.expression)],2));i.insertNodeBefore(o,e,u);const _=Fs(o.text,s.end),d=null!=(t=null==(r=null==_?void 0:_[_.length-1])?void 0:r.end)?t:s.end;return i.replaceRange(o,{pos:s.getFullStart(),end:d},l,{prefix:" "}),[Pa.Extract_base_class_to_variable]}(e);case 206:case 207:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(nN(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=_w.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];iE(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const i of c){if(i.element.propertyName&&yN(i.element.propertyName)){const e=i.element.propertyName.expression,t=_w.getGeneratedNameForNode(e),n=_w.createVariableDeclaration(t,void 0,void 0,e),r=_w.createVariableDeclarationList([n],2),o=_w.createVariableStatement(void 0,r);s.push(o),l.set(e,t)}const e=i.element.name;if(iE(e))y(e,c,i);else if(rE(e))v(e,c,i);else{const{typeNode:n}=x(e);let o=b(i,l);if(i.element.initializer){const e=null==(t=i.element)?void 0:t.propertyName,n=_w.createUniqueName(e&&nN(e)?e.text:"temp",16);s.push(_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(n,void 0,void 0,o)],2))),o=_w.createConditionalExpression(_w.createBinaryExpression(n,_w.createToken(37),_w.createIdentifier("undefined")),_w.createToken(58),i.element.initializer,_w.createToken(59),o)}const a=Xv(r,32)?[_w.createToken(95)]:void 0;s.push(_w.createVariableStatement(a,_w.createVariableDeclarationList([_w.createVariableDeclaration(e,void 0,n,o)],2)))}}return r.declarationList.declarations.length>
61&&s.push(_w.updateVariableStatement(r,r.modifiers,_w.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter((t=>t!==e.parent))))),i.replaceNodeWithNodes(o,r,s),[Pa.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r<e.elements.length;++r){const i=e.elements[r];EE(i)||t.push({element:i,parent:n,expression:{kind:2,arrayIndex:r}})}}function v(e,t,n){for(const r of e.elements){let e;if(r.propertyName){if(yN(r.propertyName)){t.push({element:r,parent:n,expression:{kind:1,computed:r.propertyName.expression}});continue}e=r.propertyName.text}else e=r.name.text;t.push({element:r,parent:n,expression:{kind:0,text:e}})}}function b(e,t){const n=[e];for(;e.parent;)e=e.parent,n.push(e);let r=n[n.length-1].expression.identifier;for(let i=n.length-2;i>=0;--i){const e=n[i].expression;0===e.kind?r=_w.createPropertyAccessChain(r,void 0,_w.createIdentifier(e.text)):1===e.kind?r=_w.createElementAccessExpression(r,t.get(e.computed)):2===e.kind&&(r=_w.createElementAccessExpression(r,e.arrayIndex))}return r}function x(e,n){var i;if(1===t)return C(e);let a=fh(e)?function(e){const t=s.getSignatureFromDeclaration(e);if(t)return s.getReturnTypeOfSignature(t)}(e):s.getTypeAtLocation(e);if(!a)return r;if(2===t){n&&(a=n);const e=s.getWidenedLiteralType(a);if(s.isTypeAssignableTo(e,a))return r;a=e}bN(e)&&s.requiresAddingImplicitUndefined(e)&&(a=s.getUnionType([s.getUndefinedType(),a],0));const c=(oP(e)||kN(e)&&Xv(e,264))&&8192&a.flags?1048576:0;return{typeNode:w(a,null!=(i=wc(e,N_))?i:o,c),mutatedTarget:!1}}function S(e){return _w.createTypeQueryNode(sZ(e))}function k(e,t,n,a,s,c,l,u){const _=[],d=[];let p;const f=wc(e,F_);for(const r of a(e))s(r)?(g(),Pb(r.expression)?(_.push(S(r.expression)),d.push(r)):m(r.expression)):(null!=p?p:p=[]).push(r);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:u(_),mutatedTarget:!0});function m(e){const r=_w.createUniqueName(t+"_Part"+(d.length+1),16),a=n?_w.createAsExpression(e,_w.createTypeReferenceNode("const")):e,s=_w.createVariableStatement(void 0,_w.createVariableDeclarationList([_w.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),_.push(S(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return c_(e)&&jl(e.type)}function C(e){if(bN(e))return r;if(ZP(e))return{typeNode:S(e.name),mutatedTarget:!1};if(Pb(e))return{typeNode:S(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(aE(e)){const t=wc(e,oP);return function(e,t="temp"){const n=!!wc(e,T);return n?k(e,t,n,(e=>e.elements),DE,_w.createSpreadElement,(e=>_w.createArrayLiteralExpression(e,!0)),(e=>_w.createTupleTypeNode(e.map(_w.createRestTypeNode)))):r}(e,t&&nN(t.name)?t.name.text:void 0)}if(sE(e)){const t=wc(e,oP);return function(e,t="temp"){return k(e,t,!!wc(e,T),(e=>e.properties),eF,_w.createSpreadAssignment,(e=>_w.createObjectLiteralExpression(e,!0)),_w.createIntersectionTypeNode)}(e,t&&nN(t.name)?t.name.text:void 0)}if(oP(e)&&e.initializer)return C(e.initializer);if(TE(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:_w.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=aoe(s,l,e,t,c,kie|n,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?_w.createKeywordTypeNode(133):i}function D(e){hw(e,1);const t=d.printNode(4,e,o);return t.length>sd?t.substring(0,sd-3)+"...":(hw(e,0),t)}function N(e,t){for(;e&&e.end<t.start+t.length;)e=e.parent;for(;e.parent.pos===e.pos&&e.parent.end===e.end;)e=e.parent;return nN(e)&&H_(e.parent)&&e.parent.initializer?e.parent.initializer:e}}o5({errorCodes:xie,fixIds:[yie],getCodeActions(e){const t=[];return Tie(vie,t,e,0,(t=>t.addTypeAnnotation(e.span))),Tie(vie,t,e,1,(t=>t.addTypeAnnotation(e.span))),Tie(vie,t,e,2,(t=>t.addTypeAnnotation(e.span))),Tie(bie,t,e,0,(t=>t.addInlineAssertion(e.span))),Tie(bie,t,e,1,(t=>t.addInlineAssertion(e.span))),Tie(bie,t,e,2,(t=>t.addInlineAssertion(e.span))),Tie("extract-expression",t,e,0,(t=>t.extractAsVariable(e.span))),t},getAllCodeActions:e=>l5(Cie(e,0,(t=>{d5(e,xie,(e=>{t.addTypeAnnotation(e)}))})).textChanges)});var wie="fixAwaitInSyncFunction",Die=[Pa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Pa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Pa.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Pa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function Nie(e,t){const n=cm(ZX(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=BX(n,100,e);break;case 219:r=BX(n,n.typeParameters?30:21,e)||Ae(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:oP(i.parent)&&i.parent.type&&LN(i.parent.type)?i.parent.type.type:void 0)};var i}function Eie(e,t,{insertBefore:n,returnType:r}){if(r){const n=Cm(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,_w.createTypeReferenceNode("Promise",_w.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}o5({errorCodes:Die,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Nie(t,n.start);if(!r)return;const i=Q_e.ChangeTracker.with(e,(e=>Eie(e,t,r)));return[n5(wie,i,Pa.Add_async_modifier_to_containing_function,wie,Pa.Add_all_missing_async_modifiers)]},fixIds:[wie],getAllCodeActions:function(e){const t=new Map;return _5(e,Die,((n,r)=>{const i=Nie(r.file,r.start);
6i&&$x(t,ZB(i.insertBefore))&&Eie(n,e.sourceFile,i)}))}});var Pie=[Pa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,Pa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Fie="fixPropertyOverrideAccessor";function Aie(e,t,n,r,i){let o,a;if(r===Pa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===Pa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=ZX(e,t).parent;En.assert(Nu(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;En.assert(Du(s),"erroneous accessors should only be inside classes");const c=Re(Noe(s,n));if(!c)return[];const l=Pc(Hp(r.name)),u=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!u||!u.valueDeclaration)return[];o=u.valueDeclaration.pos,a=u.valueDeclaration.end,e=Id(u.valueDeclaration)}else En.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return xoe(e,i.program,o,a,i,Pa.Generate_get_and_set_accessors.message)}o5({errorCodes:Pie,getCodeActions(e){const t=Aie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[n5(Fie,t,Pa.Generate_get_and_set_accessors,Fie,Pa.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Fie],getAllCodeActions:e=>_5(e,Pie,((t,n)=>{const r=Aie(n.file,n.start,n.length,n.code,e);if(r)for(const i of r)t.pushRaw(e.sourceFile,i)}))});var Iie="inferFromUsage",Oie=[Pa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,Pa.Variable_0_implicitly_has_an_1_type.code,Pa.Parameter_0_implicitly_has_an_1_type.code,Pa.Rest_parameter_0_implicitly_has_an_any_type.code,Pa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,Pa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,Pa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,Pa.Member_0_implicitly_has_an_1_type.code,Pa.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,Pa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Pa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Pa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,Pa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,Pa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,Pa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,Pa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Pa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Lie(e,t){switch(e){case Pa.Parameter_0_implicitly_has_an_1_type.code:case Pa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return EN(cm(t))?Pa.Infer_type_of_0_from_usage:Pa.Infer_parameter_types_from_usage;case Pa.Rest_parameter_0_implicitly_has_an_any_type.code:case Pa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Pa.Infer_parameter_types_from_usage;case Pa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return Pa.Infer_this_type_of_0_from_usage;default:return Pa.Infer_type_of_0_from_usage}}function Rie(e,t,n,r,i,o,a,s,c){if(!pu(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,u=Iee(t,i,c,s);switch(r=function(e){switch(e){case Pa.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return Pa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case Pa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Pa.Variable_0_implicitly_has_an_1_type.code;case Pa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Pa.Parameter_0_implicitly_has_an_1_type.code;case Pa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Pa.Rest_parameter_0_implicitly_has_an_any_type.code;case Pa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return Pa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case Pa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return Pa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case Pa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return Pa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case Pa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Pa.Member_0_implicitly_has_an_1_type.code}return e}(r)){case Pa.Member_0_implicitly_has_an_1_type.code:case Pa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(oP(l)&&a(l)||kN(l)||SN(l))return Mie(e,u,t,l,i,s,o),u.writeFixes(e),l;if(cE(l)){const n=IZ(qie(l.name,i,o),l,i,s);if(n){const r=_w.createJSDocTypeTag(void 0,_w.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,yt(l.parent.parent,zE),[r])}return u.writeFixes(e),l}return;case Pa.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&oP(t.valueDeclaration)&&a(t.valueDeclaration)?(Mie(e,u,Id(t.valueDeclaration),t.valueDeclaration,i,s,o),u.writeFixes(e),t.valueDeclaration):void 0}}const _=cm(n);if(void 0===_)return;let d;switch(r){case Pa.Parameter_0_implicitly_has_an_1_type.code:if(EN(_)){jie(e,u,t,_,i,s,o),d=_;break}case Pa.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(_)){const n=yt(l,bN);
6!function(e,t,n,r,i,o,a,s){if(!nN(r.name))return;const c=function(e,t,n,r){const i=zie(e,t,n,r);return i&&$ie(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:nN(e.name)?qie(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(En.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Wm(i))Jie(e,n,c,o,a);else{const r=gE(i)&&!BX(i,21,n);r&&e.insertNodeBefore(n,Ae(i.parameters),_w.createToken(21));for(const{declaration:i,type:s}of c)!i||i.type||i.initializer||Bie(e,t,n,i,s,o,a);r&&e.insertNodeAfter(n,Le(i.parameters),_w.createToken(22))}}(e,u,t,n,_,i,s,o),d=n}break;case Pa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case Pa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:NN(_)&&nN(_.name)&&(Bie(e,u,t,_,qie(_.name,i,o),i,s),d=_);break;case Pa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:EN(_)&&(jie(e,u,t,_,i,s,o),d=_);break;case Pa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Q_e.isThisTypeAnnotatable(_)&&a(_)&&(function(e,t,n,r,i,o){const a=zie(n,t,r,o);if(!a||!a.length)return;const s=$ie(r,a,o).thisParameter(),c=IZ(s,n,r,i);c&&(Wm(n)?function(e,t,n,r){e.addJSDocTags(t,n,[_w.createJSDocThisTag(void 0,_w.createJSDocTypeExpression(r))])}(e,t,n,c):e.tryInsertThisTypeAnnotation(t,n,c))}(e,t,_,i,s,o),d=_);break;default:return En.fail(String(r))}return u.writeFixes(e),d}function Mie(e,t,n,r,i,o,a){nN(r.name)&&Bie(e,t,n,r,qie(r.name,i,a),i,o)}function jie(e,t,n,r,i,o,a){const s=Pe(r.parameters);if(s&&nN(r.name)&&nN(s.name)){let c=qie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=qie(s.name,i,a)),Wm(r)?Jie(e,n,[{declaration:s,type:c}],i,o):Bie(e,t,n,s,c,i,o)}}function Bie(e,t,n,r,i,o,a){const s=IZ(i,r,o,a);if(s)if(Wm(n)&&171!==r.kind){const t=oP(r)?ht(r.parent.parent,UE):r;if(!t)return;const i=_w.createJSDocTypeExpression(s),o=NN(r)?_w.createJSDocReturnTag(void 0,i,void 0):_w.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=hoe(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(d(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0)})(s,r,n,e,t,BS(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function Jie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=H(n,(e=>{const t=e.declaration;if(t.initializer||hl(t)||!nN(t.name))return;const n=e.type&&IZ(e.type,t,r,i);return n?(hw(_w.cloneNode(t.name),7168),{name:_w.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0}));if(a.length)if(gE(o)||mE(o)){const n=gE(o)&&!BX(o,21,t);n&&e.insertNodeBefore(t,Ae(o.parameters),_w.createToken(21)),d(a,(({typeNode:n,param:r})=>{const i=_w.createJSDocTypeTag(void 0,_w.createJSDocTypeExpression(n)),o=_w.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,Le(o.parameters),_w.createToken(22))}else{const n=j(a,(({name:e,typeNode:t,isOptional:n})=>_w.createJSDocParameterTag(void 0,e,!!n,_w.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function Uie(e,t,n){return H(Ace.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==Ace.EntryKind.Span?ht(e.node,nN):void 0))}function qie(e,t,n){return $ie(t,Uie(e,t,n),n).single()}function zie(e,t,n,r){let i;switch(e.kind){case 176:i=BX(e,137,t);break;case 219:case 218:const n=e.parent;i=(oP(n)||kN(n))&&nN(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return Uie(i,n,r)}function $ie(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return f(s(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),l(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map(((t,o)=>{const c=[],l=nd(t);let u=!1;for(const e of a)if(e.argumentTypes.length<=o)u=Wm(i),c.push(r.getUndefinedType());else if(l)for(let t=o;t<e.argumentTypes.length;t++)c.push(r.getBaseTypeOfLiteralType(e.argumentTypes[t]));else c.push(r.getBaseTypeOfLiteralType(e.argumentTypes[o]));if(nN(t.name)){const i=s(Uie(t.name,e,n));c.push(...l?H(i,r.getElementTypeOfArrayType):i)}const _=f(c);return{type:l?r.createArrayType(_):_,isOptional:u&&!l,declaration:t}}))},thisParameter:function(){const e={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of t)n.throwIfCancellationRequested(),l(r,e);return f(e.candidateThisTypes||c)}};function a(e){const t=new Map;
6for(const r of e)r.properties&&r.properties.forEach(((e,n)=>{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,a(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:q(e,(e=>e.candidateTypes)),properties:n,calls:q(e,(e=>e.calls)),constructs:q(e,(e=>e.constructs)),numberIndex:d(e,(e=>e.numberIndex)),stringIndex:d(e,(e=>e.stringIndex)),candidateThisTypes:q(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function s(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),l(r,t);return m(t)}function l(e,t){for(;Rb(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){v(t,uE(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 
668:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!wb(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const i of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(i));l(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):u(e,t);break;case 211:!function(e,t){const n=Ec(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=oP(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return u(e,t)}}function u(e,t){Lm(e)&&v(t,r.getContextualType(e))}function p(e){return f(m(e))}function f(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(En.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&Bx(e)),low:e=>!!(16&Bx(e))}]);const i=n.filter((e=>16&Bx(e)));return i.length&&(n=n.filter((e=>!(16&Bx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=ct();for(const _ of e){for(const t of r.getPropertiesOfType(_))c.add(t.escapedName,t.valueDeclaration?r.getTypeOfSymbolAtLocation(t,t.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(_,0)),n.push(...r.getSignaturesOfType(_,1));const e=r.getIndexInfoOfType(_,0);e&&(i.push(e.type),a=a||e.isReadonly);const l=r.getIndexInfoOfType(_,1);l&&(o.push(l.type),s=s||l.isReadonly)}const l=ee(c,((t,n)=>{const i=n.length<e.length?16777216:0,o=r.createSymbol(4|i,t);return o.links.type=r.getUnionType(n),[t,o]})),u=[];return i.length&&u.push(r.createIndexInfo(r.getStringType(),r.getUnionType(i),a)),o.length&&u.push(r.createIndexInfo(r.getNumberType(),r.getUnionType(o),s)),r.createAnonymousType(e[0].symbol,l,t,n,u)}(i))),r.getWidenedType(r.getUnionType(n.map(r.getBaseTypeOfLiteralType),2))}function m(e){var t,n,a;const s=[];e.isNumber&&s.push(r.getNumberType()),e.isString&&s.push(r.getStringType()),e.isNumberOrString&&s.push(r.getUnionType([r.getStringType(),r.getNumberType()])),e.numberIndex&&s.push(r.createArrayType(p(e.numberIndex))),((null==(t=e.properties)?void 0:t.size)||(null==(n=e.constructs)?void 0:n.length)||e.stringIndex)&&s.push(g(e));const l=(e.candidateTypes||[]).map((e=>r.getBaseTypeOfLiteralType(e))),u=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return u&&l?s.push(r.getUnionType([u,...l],2)):(u&&s.push(u),_(l)&&s.push(...l)),s.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter((t=>function(e,t){return!!t.properties&&!bd(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,_d(),[y(o)],c,c))):!r.isTypeAssignableTo(i,p(t)));var o}))}(t,e)));return 0<t.length&&t.length<3?t.map((t=>function(e,t){if(!(4&Bx(e)&&t.properties))return e;const n=e.target,o=Re(n.typeParameters);if(!o)return e;const a=[];
6return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);En.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,p(e),o))})),i[e.symbol.escapedName](f(a))}(t,e))):[]}(e)),s}function g(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const i=r.createSymbol(4,n);i.links.type=p(e),t.set(n,i)}));const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),p(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(3145728&e.flags)return q(e.types,(e=>h(e,t,n)));if(4&Bx(e)&&4&Bx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;e<i.length;e++)o[e]&&a.push(...h(i[e],o[e],n));return a}const i=r.getSignaturesOfType(e,0),o=r.getSignaturesOfType(t,0);return 1===i.length&&1===o.length?function(e,t,n){var i;const o=[];for(let c=0;c<e.parameters.length;c++){const a=e.parameters[c],s=t.parameters[c],l=e.declaration&&nd(e.declaration.parameters[c]);if(!s)break;let u=a.valueDeclaration?r.getTypeOfSymbolAtLocation(a,a.valueDeclaration):r.getAnyType();const _=l&&r.getElementTypeOfArrayType(u);_&&(u=_);const d=(null==(i=ht(s,dd))?void 0:i.links.type)||(s.valueDeclaration?r.getTypeOfSymbolAtLocation(s,s.valueDeclaration):r.getAnyType());o.push(...h(u,d,n))}const a=r.getReturnTypeOfSignature(e),s=r.getReturnTypeOfSignature(t);return o.push(...h(a,s,n)),o}(i[0],o[0],n):[]}function y(e){const t=[],n=Math.max(...e.map((e=>e.argumentTypes.length)));for(let o=0;o<n;o++){const n=r.createSymbol(1,Ec(`arg${o}`));n.links.type=f(e.map((e=>e.argumentTypes[o]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[o]))&&(n.flags|=16777216),t.push(n)}const i=p(a(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}o5({errorCodes:Oie,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=ZX(t,r);let l;const u=Q_e.ChangeTracker.with(e,(e=>{l=Rie(e,t,c,i,n,o,xt,a,s)})),_=l&&Jc(l);return _&&0!==u.length?[n5(Iie,u,[Lie(i,c),ap(_)],Iie,Pa.Infer_all_types_from_usage)]:void 0},fixIds:[Iie],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=HQ();return _5(e,Oie,((e,s)=>{Rie(e,t,ZX(s.file,s.start),s.code,n,r,a,i,o)}))}});var Vie="fixReturnTypeInAsyncFunction",Wie=[Pa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function Hie(e,t,n){if(Wm(e))return;const r=wc(ZX(e,n),xu),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function Kie(e,t,n,r){e.replaceNode(t,n,_w.createTypeReferenceNode("Promise",[r]))}o5({errorCodes:Wie,fixIds:[Vie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=Hie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,u=Q_e.ChangeTracker.with(e,(e=>Kie(e,t,a,c)));return[n5(Vie,u,[Pa.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Vie,Pa.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>_5(e,Wie,((t,n)=>{const r=Hie(n.file,e.program.getTypeChecker(),n.start);r&&Kie(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))});var Gie="disableJsDiagnostics",Xie="disableJsDiagnostics",Qie=H(Object.keys(Pa),(e=>{const t=Pa[e];return 1===t.category?t.code:void 0}));function Yie(e,t,n,r){const{line:i}=ss(t,n);r&&!Q(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function Zie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||noe(c,e,n,r,i,o,a,void 0)}function eoe(e){return{trackSymbol:()=>!1,moduleResolverHost:nY(e.program,e.host)}}o5({errorCodes:Qie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Wm(t)||!kT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":HY(i,o.options),s=[t5(Gie,[u5(t.fileName,[qQ(t.checkJsDirective?sc(t.checkJsDirective.pos,t.checkJsDirective.end):ac(0,0),`// @ts-nocheck${a}`)])],Pa.Disable_checking_for_this_file)];return Q_e.isValidLocationToAddComment(t,r.start)&&s.unshift(n5(Gie,Q_e.ChangeTracker.with(e,(e=>Yie(e,t,r.start))),Pa.Ignore_this_error_message,Xie,Pa.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Xie],getAllCodeActions:e=>{const t=new Set;return _5(e,Qie,((e,n)=>{Q_e.isValidLocationToAddComment(n.file,n.start)&&Yie(e,n.file,n.start,t)}))}});var toe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(toe||{});function noe(e,t,n,r,i,o,a,s,l=3,u=!1){var d;const p=e.getDeclarations(),f=Pe(p),m=r.program.getTypeChecker(),g=BS(r.program.getCompilerOptions()),h=null!=(d=null==f?void 0:f.kind)?d:171,y=function(e,t){if(262144&wx(e)){const t=e.links.nameType;if(t&&NC(t))return _w.createIdentifier(Pc(EC(t)))}return sZ(Jc(t),!1)}(e,f),v=f?cb(f):0;let b=256&v;b|=1&v?1:4&v?4:0,f&&Eu(f)&&(b|=512);const x=function(){let e;return b&&(e=me(e,_w.createModifiersFromModifierFlags(b))),r.program.getCompilerOptions().noImplicitOverride&&f&&eb(f)&&(e=fe(e,_w.createToken(164))),e&&_w.createNodeArray(e)}(),S=m.getWidenedType(m.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),T=!!(33554432&t.flags)||u,C=cY(n,i);switch(h){case 171:case 172:let n=1;n|=0===C?268435456:0;let i=m.typeToTypeNode(S,t,n,eoe(r));if(o){const e=hoe(i,g);e&&(i=e.typeNode,voe(o,e.symbols))}a(_w.createPropertyDeclaration(x,f?D(y):e.getName(),k&&2&l?_w.createToken(58):void 0,i,void 0));break;
6case 177:case 178:{En.assertIsDefined(p);let e=m.typeToTypeNode(S,t,void 0,eoe(r));const n=Iv(p,f),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=hoe(e,g);t&&(e=t.typeNode,voe(o,t.symbols))}for(const t of i)if(NN(t))a(_w.createGetAccessorDeclaration(x,D(y),c,E(e),N(s,C,T)));else{En.assertNode(t,EN,"The counterpart to a getter should be a setter");const n=Cv(t),r=n&&nN(n.name)?Fc(n.name):void 0;a(_w.createSetAccessorDeclaration(x,D(y),uoe(1,[r],[E(e)],1,!1),N(s,C,T)))}break}case 173:case 174:En.assertIsDefined(p);const u=S.isUnion()?q(S.types,(e=>e.getCallSignatures())):S.getCallSignatures();if(!te(u))break;if(1===p.length){En.assert(1===u.length,"One declaration implies one signature");const e=u[0];w(C,e,x,D(y),N(s,C,T));break}for(const e of u)w(C,e,x,D(y));if(!T)if(p.length>u.length){const e=m.getSignatureFromDeclaration(p[p.length-1]);w(C,e,x,D(y),N(s,C))}else En.assert(p.length===u.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let l=r[0],u=r[0].minArgumentCount,d=!1;for(const _ of r)u=Math.min(_.minArgumentCount,u),aJ(_)&&(d=!0),_.parameters.length>=l.parameters.length&&(!aJ(_)||aJ(l))&&(l=_);const p=l.parameters.length-(aJ(l)?1:0),f=l.parameters.map((e=>e.name)),m=uoe(p,f,void 0,u,!1);if(d){const e=_w.createParameterDeclaration(void 0,_w.createToken(26),f[p]||"rest",p>=u?_w.createToken(58):void 0,_w.createArrayTypeNode(_w.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return _w.createMethodDeclaration(e,void 0,t,n?_w.createToken(58):void 0,r,i,o,s||_oe(a))}(a,i,o,void 0,m,function(e,t,n,r){if(_(e)){const i=t.getUnionType(j(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,eoe(n))}}(r,e,t,n),s,c)}(m,r,t,u,D(y),k&&!!(1&l),x,C,s))}function w(e,n,i,s,c){const u=roe(174,r,e,n,c,s,i,k&&!!(1&l),t,o);u&&a(u)}function D(e){return nN(e)&&"constructor"===e.escapedText?_w.createComputedPropertyName(_w.createStringLiteral(Fc(e),0===C)):sZ(e,!1)}function N(e,t,n){return n?void 0:sZ(e,!1)||_oe(t)}function E(e){return sZ(e,!1)}}function roe(e,t,n,r,i,o,a,s,c,l){const u=t.program,_=u.getTypeChecker(),d=BS(u.getCompilerOptions()),p=Wm(c),f=524545|(0===n?268435456:0),m=_.signatureToSignatureDeclaration(r,e,c,f,eoe(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:sZ(m.type);if(l){if(g){const e=J(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=hoe(t,d);e&&(t=e.typeNode,voe(l,e.symbols))}if(n){const e=hoe(n,d);e&&(n=e.typeNode,voe(l,e.symbols))}return _w.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=TI(_w.createNodeArray(e,g.hasTrailingComma),g))}const e=J(h,(e=>{let t=p?void 0:e.type;if(t){const e=hoe(t,d);e&&(t=e.typeNode,voe(l,e.symbols))}return _w.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=TI(_w.createNodeArray(e,h.hasTrailingComma),h)),y){const e=hoe(y,d);e&&(y=e.typeNode,voe(l,e.symbols))}}const v=s?_w.createToken(58):void 0,b=m.asteriskToken;return mE(m)?_w.updateFunctionExpression(m,a,m.asteriskToken,ht(o,nN),g,h,y,null!=i?i:m.body):gE(m)?_w.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,null!=i?i:m.body):CN(m)?_w.updateMethodDeclaration(m,a,b,null!=o?o:_w.createIdentifier(""),v,g,h,y,i):sP(m)?_w.updateFunctionDeclaration(m,a,m.asteriskToken,ht(o,nN),g,h,y,null!=i?i:m.body):void 0}function ioe(e,t,n,r,i,o,a){const s=cY(t.sourceFile,t.preferences),c=BS(t.program.getCompilerOptions()),l=eoe(t),u=t.program.getTypeChecker(),_=Wm(a),{typeArguments:d,arguments:p,parent:f}=r,m=_?void 0:u.getContextualType(r),g=j(p,(e=>nN(e)?e.text:cE(e)&&nN(e.name)?e.name.text:void 0)),h=_?[]:j(p,(e=>u.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=coe(u,n,h,a,c,1,l),b=o?_w.createNodeArray(_w.createModifiersFromModifierFlags(o)):void 0,x=wE(f)?_w.createToken(42):void 0,S=_?void 0:function(e,t,n){const r=new Set(t.map((e=>e[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size<o;e+=1)r.add(ooe(e))}return Xe(r.values(),(e=>{var t;return _w.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(u,v,d),k=uoe(p.length,g,y,void 0,_),T=_||void 0===m?void 0:u.typeToTypeNode(m,a,void 0,l);switch(e){case 174:return _w.createMethodDeclaration(b,x,i,void 0,S,k,T,_oe(s));case 173:return _w.createMethodSignature(b,i,void 0,S,k,void 0===T?_w.createKeywordTypeNode(159):T);case 262:return En.assert("string"==typeof i||nN(i),"Unexpected name"),_w.createFunctionDeclaration(b,x,i,S,k,T,doe(Pa.Function_not_implemented.message,s));default:En.fail("Unexpected kind")}}function ooe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function aoe(e,t,n,r,i,o,a){let s=e.typeToTypeNode(n,r,o,a);if(s&&eE(s)){const e=hoe(s,i);e&&(voe(t,e.symbols),s=e.typeNode)}return sZ(s)}function soe(e){return e.isUnionOrIntersection()?e.types.some(soe):262144&e.flags}function coe(e,t,n,r,i,o,a){const s=[],c=new Map;for(let u=0;u<n.length;u+=1){const _=n[u];if(_.isUnionOrIntersection()&&_.types.some(soe)){const e=ooe(u);s.push(_w.createTypeReferenceNode(e)),c.set(e,void 0);continue}const d=e.getBaseTypeOfLiteralType(_),p=aoe(e,t,d,r,i,o,a);if(!p)continue;s.push(p);const f=loe(_),m=!_.isTypeParameter()||!_.constraint||524288&(l=_.constraint).flags&&16===l.objectFlags?void 0:aoe(e,t,_.constraint,r,i,o,a);f&&c.set(f,{argumentType:_,constraint:m})}var l;return{argumentTypeNodes:s,argumentTypeParameters:Xe(c.entries())}}function loe(e){var t;if(3145728&e.flags)for(const n of e.types){const e=loe(n);if(e)return e}return 262144&e.flags?null==(t=e.getSymbol())?void 0:t.getName():void 0}function uoe(e,t,n,r,i){const o=[],a=new Map;for(let s=0;s<e;s++){const e=(null==t?void 0:t[s])||`arg${s}`,c=a.get(e);a.set(e,(c||0)+1);const l=_w.createParameterDeclaration(void 0,void 0,e+(c||""),void 0!==r&&s>=r?_w.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||_w.createKeywordTypeNode(159),void 0);o.push(l)}return o}function _oe(e){return doe(Pa.Method_not_implemented.message,e)}function doe(e,t){return _w.createBlock([_w.createThrowStatement
6(_w.createNewExpression(_w.createIdentifier("Error"),void 0,[_w.createStringLiteral(e,0===t)]))],!0)}function poe(e,t,n){const r=om(t);if(!r)return;const i=goe(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,moe("compilerOptions",_w.createObjectLiteralExpression(n.map((([e,t])=>moe(e,t))),!0)));const o=i.initializer;if(sE(o))for(const[a,s]of n){const n=goe(o,a);void 0===n?e.insertNodeAtObjectStart(t,o,moe(a,s)):e.replaceNode(t,n.initializer,s)}}function foe(e,t,n,r){poe(e,t,[[n,r]])}function moe(e,t){return _w.createPropertyAssignment(_w.createStringLiteral(e),t)}function goe(e,t){return w(e.properties,(e=>YP(e)&&!!e.name&&BD(e.name)&&e.name.text===t))}function hoe(e,t){let n;const r=lJ(e,(function e(r){if(kf(r)&&r.qualifier){const i=Fb(r.qualifier),o=c0(i.symbol,t),a=o!==i.text?yoe(r.qualifier,_w.createIdentifier(o)):r.qualifier;n=fe(n,i.symbol);const s=uJ(r.typeArguments,e,Mu);return _w.createTypeReferenceNode(a,s)}return vJ(r,e,void 0)}),Mu);if(n&&r)return{typeNode:r,symbols:n}}function yoe(e,t){return 80===e.kind?t:_w.createQualifiedName(yoe(e.left,t),e.right)}function voe(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function boe(e,t){const n=Ks(t);let r=ZX(e,t.start);for(;r.end<n;)r=r.parent;return r}function xoe(e,t,n,r,i,o){const a=Coe(e,t,n,r);if(!a||v6.isRefactorErrorInfo(a))return;const s=Q_e.ChangeTracker.fromContext(i),{isStatic:c,isReadonly:l,fieldName:u,accessorName:_,originalName:d,type:p,container:f,declaration:m}=a;let g,h;if(dZ(u),dZ(_),dZ(m),dZ(f),Du(f)){const t=cb(m);if($m(e)){const e=_w.createModifiersFromModifierFlags(t);g=e,h=e}else g=_w.createModifiersFromModifierFlags(function(e){return e&=-9,4&(e&=-3)||(e|=1),e}(t)),h=_w.createModifiersFromModifierFlags(function(e){return e&=-2,e&=-5,e|=2}(t));wI(m)&&(h=re(qc(m),h))}!function(e,t,n,r,i,o){kN(n)?function(e,t,n,r,i,o){const a=_w.updatePropertyDeclaration(n,o,i,n.questionToken||n.exclamationToken,r,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,i,o):YP(n)?function(e,t,n,r){let i=_w.updatePropertyAssignment(n,r,n.initializer);(i.modifiers||i.questionToken||i.exclamationToken)&&(i===n&&(i=_w.cloneNode(i)),i.modifiers=void 0,i.questionToken=void 0,i.exclamationToken=void 0),e.replacePropertyAssignment(t,n,i)}(e,t,n,i):e.replaceNode(t,n,_w.updateParameterDeclaration(n,o,n.dotDotDotToken,yt(i,nN),n.questionToken,n.type,n.initializer))}(s,e,m,p,u,h);const y=function(e,t,n,r,i,o){return _w.createGetAccessorDeclaration(r,t,[],n,_w.createBlock([_w.createReturnStatement
6(Toe(e,i,o))],!0))}(u,_,p,g,c,f);if(dZ(y),woe(s,e,y,m,f),l){const t=Tv(f);t&&function(e,t,n,r,i){n.body&&n.body.forEachChild((function n(o){lE(o)&&110===o.expression.kind&&BD(o.argumentExpression)&&o.argumentExpression.text===i&&Fx(o)&&e.replaceNode(t,o.argumentExpression,_w.createStringLiteral(r)),cE(o)&&110===o.expression.kind&&o.name.text===i&&Fx(o)&&e.replaceNode(t,o.name,_w.createIdentifier(r)),vu(o)||Du(o)||o.forEachChild(n)}))}(s,e,t,u.text,d)}else{const t=function(e,t,n,r,i,o){return _w.createSetAccessorDeclaration(r,t,[_w.createParameterDeclaration(void 0,void 0,_w.createIdentifier("value"),void 0,n)],_w.createBlock([_w.createExpressionStatement(_w.createAssignment(Toe(e,i,o),_w.createIdentifier("value")))],!0))}(u,_,p,g,c,f);dZ(t),woe(s,e,t,m,f)}return s.getChanges()}function Soe(e){return fc(e,e.parent)||kN(e)||YP(e)}function koe(e,t){return nN(t)?_w.createIdentifier(e):_w.createStringLiteral(e)}function Toe(e,t,n){const r=t?n.name:_w.createThis();return nN(e)?_w.createPropertyAccessExpression(r,e):_w.createElementAccessExpression(r,_w.createStringLiteralFromNode(e))}function Coe(e,t,n,r,i=!0){const o=n===r&&i,a=wc(ZX(e,n).parent,Soe);if(!a||!AX(a.name,e,n,r)&&!o)return{error:fS(Pa.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return nN(e)||BD(e)}(a.name))return{error:fS(Pa.Name_is_not_valid)};if(271!=(98303&cb(a)|271))return{error:fS(Pa.Can_only_convert_property_with_modifier)};const s=a.name.text,c=m0(s),l=koe(c?s:yZ(`_${s}`,e),a.name),u=koe(c?yZ(s.substring(1),e):s,a.name);return{isStatic:Yv(a),isReadonly:rb(a),type:Doe(a,t),container:169===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:l,accessorName:u,renameAccessor:c}}function woe(e,t,n,r,i){fc(r,r.parent)?e.insertMemberAtStart(t,i,n):YP(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function Doe(e,t){const n=Lv(e);if(kN(e)&&n&&e.questionToken){const e=t.getTypeChecker(),r=e.getTypeFromTypeNode(n);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=$N(n)?n.types:[n];return _w.createUnionTypeNode([...e,_w.createKeywordTypeNode(157)])}}return n}function Noe(e,t){const n=[];for(;e;){const r=Oh(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&w(o.declarations,Du);if(!a)break;n.push(a),e=a}return n}var Eoe="invalidImportSyntax";function Poe(e,t,n,r){const i=Q_e.ChangeTracker.with(e,(e=>e.replaceNode(t,n,r)));return t5(Eoe,i,[Pa.Replace_import_with_0,i[0].textChanges[0].newText])}function Foe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&dd(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(xf(i)||he(r,function(e,t){const n=Id(t),r=Mg(t),i=e.program.getCompilerOptions(),o=[];return o.push(Poe(e,n,t,iY(r.name,void 0,t.moduleSpecifier,cY(n,e.preferences)))),1===JS(i)&&o.push(Poe(e,n,t,_w.createImportEqualsDeclaration(void 0,!1,r.name,_w.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),s_(t)&&(!jc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=Q_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,_w.createPropertyAccessExpression(t,"default"),{})));r.push(t5(Eoe,i,Pa.Use_synthetic_default_member))}return r}o5({errorCodes:[Pa.This_expression_is_not_callable.code,Pa.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=Pa.This_expression_is_not_callable.code===e.errorCode?213:214,r=wc(ZX(t,e.span.start),(e=>e.kind===n));if(!r)return[];const i=r.expression;return Foe(e,i)}}),o5({errorCodes:[Pa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Pa.Type_0_does_not_satisfy_the_constraint_1.code,Pa.Type_0_is_not_assignable_to_type_1.code,Pa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Pa.Type_predicate_0_is_not_assignable_to_1.code,Pa.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,Pa._0_index_type_1_is_not_assignable_to_2_index_type_3.code,Pa.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,Pa.Property_0_in_type_1_is_not_assignable_to_type_2.code,Pa.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,Pa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=wc(ZX(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?Foe(e,t):[]}});var Aoe="strictClassInitialization",Ioe="addMissingPropertyDefiniteAssignmentAssertions",Ooe="addMissingPropertyUndefinedType",Loe="addMissingPropertyInitializer",Roe=[Pa.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function Moe(e,t){const n=ZX(e,t);if(nN(n)&&kN(n.parent)){const e=Ov(n.parent);if(e)return{type:e,prop:n.parent,isJs:Wm(n.parent)}}}function joe(e,t,n){dZ(n);const r=_w.updatePropertyDeclaration(n,n.modifiers,n.name,_w.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function Boe(e,t,n){const r=_w.createKeywordTypeNode(157),i=$N(n.type)?n.type.types.concat(r):[n.type,r],o=_w.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[_w.createJSDocTypeTag(void 0,_w.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function Joe(e,t,n,r){dZ(n);const i=_w.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function Uoe(e,t){return qoe(e,e.getTypeFromTypeNode(t.type))}function qoe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?_w.createFalse():_w.createTrue();if(t.isStringLiteral())return _w.createStringLiteral(t.value);if(t.isNumberLiteral())return _w.createNumericLiteral(t.value);if(2048&t.flags)return _w.createBigIntLiteral(t.value);if(t.isUnion())return y(t.types,(t=>qoe(e,t)));if(t.isClass()){const e=jx(t.symbol);if(!e||Xv(e,64))return;const n=Tv(e);
6if(n&&n.parameters.length)return;return _w.createNewExpression(_w.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?_w.createArrayLiteralExpression():void 0}o5({errorCodes:Roe,getCodeActions:function(e){const t=Moe(e.sourceFile,e.span.start);if(!t)return;const n=[];return fe(n,function(e,t){const n=Q_e.ChangeTracker.with(e,(n=>Boe(n,e.sourceFile,t)));return n5(Aoe,n,[Pa.Add_undefined_type_to_property_0,t.prop.name.getText()],Ooe,Pa.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),fe(n,function(e,t){if(t.isJs)return;const n=Q_e.ChangeTracker.with(e,(n=>joe(n,e.sourceFile,t.prop)));return n5(Aoe,n,[Pa.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Ioe,Pa.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),fe(n,function(e,t){if(t.isJs)return;const n=e.program.getTypeChecker(),r=Uoe(n,t.prop);if(!r)return;const i=Q_e.ChangeTracker.with(e,(n=>Joe(n,e.sourceFile,t.prop,r)));return n5(Aoe,i,[Pa.Add_initializer_to_property_0,t.prop.name.getText()],Loe,Pa.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[Ioe,Ooe,Loe],getAllCodeActions:e=>_5(e,Roe,((t,n)=>{const r=Moe(n.file,n.start);if(r)switch(e.fixId){case Ioe:joe(t,n.file,r.prop);break;case Ooe:Boe(t,n.file,r);break;case Loe:const i=Uoe(e.program.getTypeChecker(),r.prop);if(!i)return;Joe(t,n.file,r.prop,i);break;default:En.fail(JSON.stringify(e.fixId))}}))});var zoe="requireInTs",$oe=[Pa.require_call_may_be_converted_to_an_import.code];function Voe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,required:s}=n;e.replaceNode(t,a,i&&!r?_w.createImportEqualsDeclaration(void 0,!1,i,_w.createExternalModuleReference(s)):_w.createImportDeclaration(void 0,_w.createImportClause(!1,i,o),s,void 0))}function Woe(e,t,n){const{parent:r}=ZX(e,n);Qm(r,!0)||En.failBadSyntaxKind(r);const i=yt(r.parent,oP),o=ht(i.name,nN),a=rE(i.name)?function(e){const t=[];for(const n of e.elements){if(!nN(n.name)||n.initializer)return;t.push(_w.createImportSpecifier(!1,ht(n.propertyName,nN),n.name))}if(t.length)return _w.createNamedImports(t)}(i.name):void 0;if(o||a)return{allowSyntheticDefaults:VS(t.getCompilerOptions()),defaultImportName:o,namedImports:a,statement:yt(i.parent.parent,UE),required:Ae(r.arguments)}}o5({errorCodes:$oe,getCodeActions(e){const t=Woe(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Q_e.ChangeTracker.with(e,(n=>Voe(n,e.sourceFile,t)));return[n5(zoe,n,Pa.Convert_require_to_import,zoe,Pa.Convert_all_require_to_import)]},fixIds:[zoe],getAllCodeActions:e=>_5(e,$oe,((t,n)=>{const r=Woe(n.file,e.program,n.start);r&&Voe(t,e.sourceFile,r)}))});var Hoe="useDefaultImport",Koe=[Pa.Import_may_be_converted_to_a_default_import.code];function Goe(e,t){const n=ZX(e,t);if(!nN(n))return;const{parent:r}=n;if(gP(r)&&LP(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(TP(r)&&hP(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Xoe(e,t,n,r){e.replaceNode(t,n.importNode,iY(n.name,void 0,n.moduleSpecifier,cY(t,r)))}o5({errorCodes:Koe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Goe(t,n);if(!r)return;const i=Q_e.ChangeTracker.with(e,(n=>Xoe(n,t,r,e.preferences)));return[n5(Hoe,i,Pa.Convert_to_default_import,Hoe,Pa.Convert_all_to_default_imports)]},fixIds:[Hoe],getAllCodeActions:e=>_5(e,Koe,((t,n)=>{const r=Goe(n.file,n.start);r&&Xoe(t,n.file,r,e.preferences)}))});var Qoe="useBigintLiteral",Yoe=[Pa.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Zoe(e,t,n){const r=ht(ZX(t,n.start),MD);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,_w.createBigIntLiteral(i))}o5({errorCodes:Yoe,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>Zoe(t,e.sourceFile,e.span)));if(t.length>0)return[n5(Qoe,t,Pa.Convert_to_a_bigint_numeric_literal,Qoe,Pa.Convert_all_to_bigint_numeric_literals)]},fixIds:[Qoe],getAllCodeActions:e=>_5(e,Yoe,((e,t)=>Zoe(e,t.file,t)))});var eae="fixAddModuleReferTypeMissingTypeof",tae=[Pa.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function nae(e,t){const n=ZX(e,t);return En.assert(102===n.kind,"This token should be an ImportKeyword"),En.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function rae(e,t,n){const r=_w.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}o5({errorCodes:tae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=nae(t,n.start),i=Q_e.ChangeTracker.with(e,(e=>rae(e,t,r)));return[n5(eae,i,Pa.Add_missing_typeof,eae,Pa.Add_missing_typeof)]},fixIds:[eae],getAllCodeActions:e=>_5(e,tae,((t,n)=>rae(t,e.sourceFile,nae(n.file,n.start))))});var iae="wrapJsxInFragment",oae=[Pa.JSX_expressions_must_have_one_parent_element.code];function aae(e,t){let n=ZX(e,t).parent.parent;if((kE(n)||(n=n.parent,kE(n)))&&Ud(n.operatorToken))return n}function sae(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(kE(n)&&Ud(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),L_(n.right))return t.push(n.right),t;if(kE(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,_w.createJsxFragment(_w.createJsxOpeningFragment(),r,_w.createJsxJsxClosingFragment()))}o5({errorCodes:oae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=aae(t,n.start);if(!r)return;const i=Q_e.ChangeTracker.with(e,(e=>sae(e,t,r)));return[n5(iae,i,Pa.Wrap_in_JSX_fragment,iae,Pa.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[iae],getAllCodeActions:e=>_5(e,oae,((t,n)=>{const r=aae(e.sourceFile,n.start);r&&sae(t,e.sourceFile,r)}))});var cae="wrapDecoratorInParentheses",lae=[Pa.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function uae(e,t,n){const r=wc(ZX(t,n),xN);En.assert(!!r,"Expected position to be owned by a decorator.");const i=_w.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}o5({errorCodes:lae,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>uae(t,e.sourceFile,e.span.start)));return[n5(cae,t,Pa.Wrap_in_parentheses,cae,Pa.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[cae],getAllCodeActions:e=>_5(e,lae,((e,t)=>
6uae(e,t.file,t.start)))});var _ae="fixConvertToMappedObjectType",dae=[Pa.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function pae(e,t){const n=ht(ZX(e,t).parent.parent,AN);if(!n)return;const r=lP(n.parent)?n.parent:ht(n.parent.parent,uP);return r?{indexSignature:n,container:r}:void 0}function fae(e,t,{indexSignature:n,container:r}){const i=(lP(r)?r.members:r.type.members).filter((e=>!AN(e))),o=Ae(n.parameters),a=_w.createTypeParameterDeclaration(void 0,yt(o.name,nN),o.type),s=_w.createMappedTypeNode(rb(n)?_w.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),l=_w.createIntersectionTypeNode([...Rh(r),s,...i.length?[_w.createTypeLiteralNode(i)]:c]);var u,_;e.replaceNode(t,r,(u=r,_=l,_w.createTypeAliasDeclaration(u.modifiers,u.name,u.typeParameters,_)))}o5({errorCodes:dae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=pae(t,n.start);if(!r)return;const i=Q_e.ChangeTracker.with(e,(e=>fae(e,t,r))),o=Fc(r.container.name);return[n5(_ae,i,[Pa.Convert_0_to_mapped_object_type,o],_ae,[Pa.Convert_0_to_mapped_object_type,o])]},fixIds:[_ae],getAllCodeActions:e=>_5(e,dae,((e,t)=>{const n=pae(t.file,t.start);n&&fae(e,t.file,n)}))});var mae="removeAccidentalCallParentheses";o5({errorCodes:[Pa.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=wc(ZX(e.sourceFile,e.span.start),uE);if(!t)return;const n=Q_e.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[t5(mae,n,Pa.Remove_parentheses)]},fixIds:[mae]});var gae="removeUnnecessaryAwait",hae=[Pa.await_has_no_effect_on_the_type_of_this_expression.code];function yae(e,t,n){const r=ht(ZX(t,n.start),(e=>135===e.kind)),i=r&&ht(r.parent,bE);if(!i)return;let o=i;if(fE(i.parent)&&nN(Yx(i.expression,!1))){const e=iQ(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}o5({errorCodes:hae,getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>yae(t,e.sourceFile,e.span)));if(t.length>0)return[n5(gae,t,Pa.Remove_unnecessary_await,gae,Pa.Remove_all_unnecessary_uses_of_await)]},fixIds:[gae],getAllCodeActions:e=>_5(e,hae,((e,t)=>yae(e,t.file,t)))});var vae=[Pa.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],bae="splitTypeOnlyImport";function xae(e,t){return wc(ZX(e,t.start),hP)}function Sae(e,t,n){if(!t)return;const r=En.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,_w.updateImportDeclaration(t,t.modifiers,_w.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,_w.createImportDeclaration(void 0,_w.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}o5({errorCodes:vae,fixIds:[bae],getCodeActions:function(e){const t=Q_e.ChangeTracker.with(e,(t=>Sae(t,xae(e.sourceFile,e.span),e)));if(t.length)return[n5(bae,t,Pa.Split_into_two_separate_import_declarations,bae,Pa.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>_5(e,vae,((t,n)=>{Sae(t,xae(e.sourceFile,n),e)}))});var kae="fixConvertConstToLet",Tae=[Pa.Cannot_assign_to_0_because_it_is_a_constant.code];function Cae(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(ZX(e,t));if(void 0===i)return;const o=ht(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,aP);if(void 0===o)return;const a=BX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function wae(e,t,n){e.replaceNode(t,n,_w.createToken(121))}o5({errorCodes:Tae,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=Cae(t,n.start,r);if(void 0===i)return;const o=Q_e.ChangeTracker.with(e,(e=>wae(e,t,i.token)));return[r5(kae,o,Pa.Convert_const_to_let,kae,Pa.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return l5(Q_e.ChangeTracker.with(e,(r=>{d5(e,Tae,(e=>{const i=Cae(e.file,e.start,t);if(i&&$x(n,eJ(i.symbol)))return wae(r,e.file,i.token)}))})))},fixIds:[kae]});var Dae="fixExpectedComma",Nae=[Pa._0_expected.code];function Eae(e,t,n){const r=ZX(e,t);return 27===r.kind&&r.parent&&(sE(r.parent)||aE(r.parent))?{node:r}:void 0}function Pae(e,t,{node:n}){const r=_w.createToken(28);e.replaceNode(t,n,r)}o5({errorCodes:Nae,getCodeActions(e){const{sourceFile:t}
6=e,n=Eae(t,e.span.start,e.errorCode);if(!n)return;const r=Q_e.ChangeTracker.with(e,(e=>Pae(e,t,n)));return[n5(Dae,r,[Pa.Change_0_to_1,";",","],Dae,[Pa.Change_0_to_1,";",","])]},fixIds:[Dae],getAllCodeActions:e=>_5(e,Nae,((t,n)=>{const r=Eae(n.file,n.start,n.code);r&&Pae(t,e.sourceFile,r)}))});var Fae="addVoidToPromise",Aae=[Pa.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,Pa.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function Iae(e,t,n,r,i){const o=ZX(t,n.start);if(!nN(o)||!uE(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!bN(c)||!_E(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Wm(e))return e.typeArguments;if(fE(e.parent)){const n=null==(t=gl(e.parent))?void 0:t.typeExpression.type;if(n&&ON(n)&&nN(n.typeName)&&"Promise"===Fc(n.typeName))return n.typeArguments}}(c.parent.parent);if(te(l)){const n=l[0],r=!$N(n)&&!KN(n)&&KN(_w.createUnionTypeNode([n,_w.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Wm(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,hs(t.text,c.parent.parent.pos),"/** @type {Promise<void>} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"<void>")}}o5({errorCodes:Aae,fixIds:[Fae],getCodeActions(e){const t=Q_e.ChangeTracker.with(e,(t=>Iae(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[n5("addVoidToPromise",t,Pa.Add_void_to_Promise_resolved_without_a_value,Fae,Pa.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>_5(e,Aae,((t,n)=>Iae(t,n.file,n,e.program,new Set)))});var Oae={};r(Oae,{CompletionKind:()=>Cse,CompletionSource:()=>jae,SortText:()=>Mae,StringCompletions:()=>nce,SymbolOriginInfoKind:()=>Bae,createCompletionDetails:()=>kse,createCompletionDetailsForSymbol:()=>Sse,getCompletionEntriesFromSymbols:()=>yse,getCompletionEntryDetails:()=>bse,getCompletionEntrySymbol:()=>Tse,getCompletionsAtPosition:()=>Hae,getPropertiesForObjectExpression:()=>Bse,moduleSpecifierResolutionCacheAttemptLimit:()=>Rae,moduleSpecifierResolutionLimit:()=>Lae});var Lae=100,Rae=1e3,Mae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},jae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(jae||{}),Bae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Bae||{});function Jae(e){return!!(e&&4&e.kind)}function Uae(e){return!(!e||32!==e.kind)}function qae(e){return(Jae(e)||Uae(e))&&!!e.isFromPackageJson}function zae(e){return!!(e&&64&e.kind)}function $ae(e){return!!(e&&128&e.kind)}function Vae(e){return!!(e&&512&e.kind)}function Wae(e,t,n,r,i,o,a,s,c){var l,u,_;const d=ar(),p=a||ok(US(r.getCompilerOptions()));let f=!1,m=0,g=0,h=0,y=0;const v=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&m++,t||"failed"}const r=p||o.allowIncompleteCompletions&&g<Lae,a=!r&&o.allowIncompleteCompletions&&y<Rae,c=r||a?n.getModuleSpecifierForBestExportInfo(e,i,s,a):void 0;return(!r&&!a||a&&!c)&&(f=!0),g+=(null==c?void 0:c.computedWithoutCac
6heCount)||0,h+=e.length-((null==c?void 0:c.computedWithoutCacheCount)||0),a&&y++,c||(p?"failed":"skipped")},skippedAny:()=>f,resolvedAny:()=>g>0,resolvedBeyondLimit:()=>g>Lae}),b=y?` (${(h/y*100).toFixed(1)}% hit rate)`:"";return null==(l=t.log)||l.call(t,`${e}: resolved ${g} module specifiers, plus ${m} ambient and ${h} from cache${b}`),null==(u=t.log)||u.call(t,`${e}: response is ${f?"incomplete":"complete"}`),null==(_=t.log)||_.call(t,`${e}: ${ar()-d}`),v}function Hae(e,t,n,r,i,o,a,s,c,l,u=!1){var _;const{previousToken:d}=Nse(i,r);if(a&&!cQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&EZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&rN(n)&&!!um(n);case"<":return!!n&&30===n.kind&&(!kE(n.parent)||$se(n.parent));case"/":return!!n&&(Z_(n)?!!Lg(n):44===n.kind&&BP(n.parent));case" ":return!!n&&mN(n)&&307===n.parent.kind;default:return En.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),h=o.allowIncompleteCompletions?null==(_=e.getIncompleteCompletionsCache)?void 0:_.call(e):void 0;if(h&&3===s&&d&&nN(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=QX(t,s),u=n.text.toLowerCase(),_=L0(t,i,r,o,a),d=Wae("continuePreviousIncompleteResponse",i,Q7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,BT(n),(e=>{const n=H(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Gae(n.data))return n;if(!ece(n.name,u))return;const{origin:a}=En.checkDefined(Ese(n.name,n.data,r,i)),s=_.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Vs(Xy(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l=g(m({},a),{kind:32,moduleSpecifier:c.moduleSpecifier});return n.data=pse(l),n.source=hse(l),n.sourceDisplay=[BY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=tse(l),c}(h,r,d,t,e,o,c,i);if(n)return n}else null==h||h.clear();const y=nce.getStringLiteralCompletions(r,i,d,p,e,t,n,o,u);if(y)return y;if(d&&Ul(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!vu(r);){if(tP(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:Mae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(d.parent);const v=Dse(t,n,r,p,i,o,void 0,e,l,c);var b;if(v)switch(v.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:u,contextToken:_,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,
6isTypeOnlyLocation:x,isJsxIdentifierExpected:S,isRightOfOpenTag:k,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:D,hasUnresolvedAutoImports:N}=o;let E=o.literals;const P=n.getTypeChecker();if(1===IS(e.scriptKind)){const t=function(e,t){const n=wc(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!BX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:RQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:Mae.LocationPriority}]}}}(m,e);if(t)return t}const F=wc(_,KP);if(F&&(gN(_)||Sh(_,F.expression))){const e=C0(P,F.parent.clauses);E=E.filter((t=>!e.hasValue(t))),u.forEach(((t,n)=>{if(t.valueDeclaration&&tF(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const A=[],I=nse(e,r);if(I&&!f&&(!u||0===u.length)&&0===h)return;const O=yse(u,A,void 0,_,m,c,e,t,n,BS(r),i,d,a,r,s,x,g,S,b,C,v,y,D,S,k,l);if(0!==h)for(const R of Ise(h,!w&&$m(e)))(x&&$Q(Xa(R.name))||!x&&tce(R.name)||!O.has(R.name))&&(O.add(R.name),ce(A,R,Kae,void 0,!0));for(const R of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(hP(i)||EP(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Ga(132),kind:"keyword",kindModifiers:"",sortText:Mae.GlobalsOrKeywords})}return n}(_,c))O.has(R.name)||(O.add(R.name),ce(A,R,Kae,void 0,!0));for(const R of E){const t=cse(e,a,R);O.add(t.name),ce(A,t,Kae,void 0,!0)}let L;if(I||function(e,t,n,r,i){k7(e).forEach(((e,o)=>{if(e===t)return;const a=Pc(o);!n.has(a)&&Ls(a,r)&&(n.add(a),ce(i,{name:a,kind:"warning",kindModifiers:"",sortText:Mae.JavascriptIdentifiers,isFromUncheckedFile:!0},Kae))}))}(e,m.pos,O,BS(r),A),a.includeCompletionsWithInsertText&&_&&!k&&!T&&(L=wc(_,fP))){const i=rse(L,e,a,r,t,n,s);i&&A.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!N)||void 0,isMemberCompletion:ase(d),isNewIdentifierLocation:f,optionalReplacementSpan:tse(m),entries:A}}(r,e,t,p,n,v,o,l,i,u);return(null==a?void 0:a.isIncomplete)&&(null==h||h.set(a)),a;case 1:return Xae([...Ble.getJSDocTagNameCompletions(),...Qae(r,i,f,p,o,!0)]);case 2:return Xae([...Ble.getJSDocTagCompletions(),...Qae(r,i,f,p,o,!1)]);case 3:return Xae(Ble.getJSDocParameterNameCompletions(v.tag));case 4:return b=v.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v.isNewIdentifierLocation,entries:b.slice()};default:return En.assertNever(v)}}function Kae(e,t){var n,r;let i=Xt(e.sortText,t.sortText);return 0===i&&(i=Xt(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=lT(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Gae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Xae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function Qae(e,t,n,r,i,o){const a=ZX(e,t);if(!q_(a)&&!yF(a))return[];const s=yF(a)?a:a.parent;if(!yF(s))return[];const c=s.parent;if(!vu(c))return[];const l=$m(e),u=i.includeCompletionsWithSnippetText||void 0,_=O(s.tags,(e=>OF(e)&&e.getEnd()<=t));return H(c.parameters,(e=>{if(!Vc(e).length){if(nN(e.name)){const t={tabstop:1},a=e.name.text;let s=Zae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=u?Zae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:Mae.LocationPriority,insertText:u?c:void 0,isSnippet:u}}if(e.parent.parameters.indexOf(e)===_){const t=`param${_}`,a=Yae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=u?Yae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(tx(r)+"* "),d=null==s?void 0:s.join(tx(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:Mae.LocationPriority,insertText:u?d:void 0,isSnippet:u}}}}))}function Yae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Zae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(rE(t)&&!r){const _={tabstop:l.tabstop},d=Zae(e,n,r,i,!0,o,a,s,c,_);let p=[];for(const n of t.elements){const t=u(e,n,_);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=_.tabstop,[d,...p]}return[Zae(e,n,r,i,!1,o,a,s,c,l)]}function u(e,t,n){if(!t.propertyName&&nN(t.name)||nN(t.name)){const r=t.propertyName?Wp(t.propertyName):t.name.text;if(!r)return;return[Zae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Wp(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}
6function Zae(e,t,n,r,i,o,a,s,c,l){if(o&&En.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=oC(e)),r){let r="*";if(i)En.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===cY(n,c)?268435456:0,l=a.typeToTypeNode(e,wc(t,vu),i);if(l){const e=o?dse({removeComments:!0,module:s.module,target:s.target}):kz({removeComments:!0,module:s.module,target:s.target});hw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function ese(e,t,n){return{kind:4,keywordCompletions:Ise(e,t),isNewIdentifierLocation:n}}function tse(e){return 80===(null==e?void 0:e.kind)?RQ(e):void 0}function nse(e,t){return!$m(e)||!!kT(e,t)}function rse(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&C(l.types,(e=>e.isLiteral()))){const u=C0(c,s),_=BS(r),d=cY(t,n),p=Q7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){En.assert(t.symbol,"An enum member type should have a symbol"),En.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(u.hasValue(n))continue;u.addValue(n)}const r=Q7.typeToAutoImportableTypeNode(c,p,t,e,_);if(!r)return;const i=ise(r,_,d);if(!i)return;f.push(i)}else if(!u.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?_w.createPrefixUnaryExpression(41,_w.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):_w.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?_w.createPrefixUnaryExpression(41,_w.createNumericLiteral(-t.value)):_w.createNumericLiteral(t.value));break;case"string":f.push(_w.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=j(f,(e=>_w.createCaseClause(e,[]))),g=HY(i,null==a?void 0:a.options),h=dse({removeComments:!0,module:r.module,target:r.target,newLine:b0(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=j(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:Mae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function ise(e,t,n){switch(e.kind){case 183:return ose(e.typeName,t,n);case 199:const r=ise(e.objectType,t,n),i=ise(e.indexType,t,n);return r&&i&&_w.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return _w.createStringLiteral(o.text,0===n);case 9:return _w.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=ise(e.type,t,n);return a&&(nN(a)?a:_w.createParenthesizedExpression(a));case 186:return ose(e.exprName,t,n);case 205:En.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function ose(e,t,n){if(nN(e))return e;const r=Pc(e.right.escapedText);return fC(r,t)?_w.createPropertyAccessExpression(ose(e.left,t,n),r):_w.createElementAccessExpression(ose(e.left,t,n),_w.createStringLiteral(r,0===n))}function ase(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function sse(e,t,n){return"object"==typeof n?LT(n)+"n":mt(n)?DZ(e,t,n):JSON.stringify(n)}function cse(e,t,n){return{name:sse(e,t,n),kind:"string",kindModifiers:"",sortText:Mae.LocationPriority}}function lse(e,t,n,r,i,o,a,s,c,l,u,_,d,p,f,g,h,y,v,b,x,S,k,T){var D,N;let E,P,F,A,I,O,L,R=LQ(n,o),M=hse(_);const j=c.getTypeChecker(),B=_&&function(e){return!!(16&e.kind)}(_),J=_&&function(e){return!!(2&e.kind)}(_)||u;if(_&&function(e){return!!(1&e.kind)}(_))E=u?`this${B?"?.":""}[${mse(a,v,l)}]`:`this${B?"?.":"."}${l}`;else if((J||B)&&p){E=J?u?`[${mse(a,v,l)}]`:`[${l}]`:l,(B||p.questionDotToken)&&(E=`?.${E}`);const e=BX(p,25,a)||BX(p,29,a);if(!e)return;const t=fn(l,p.name.text)?p.name.end:e.end;R=sc(e.getStart(a),t)}if(f&&(void 0===E&&(E=l),E=`{${E}}`,"boolean"!=typeof f&&(R=RQ(f,a))),_&&function(e){return!!(8&e.kind)}(_)&&p){void 0===E&&(E=l);const e=iQ(p.pos,a);let t="";e&&BZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,E=u?`${t}${E}`:`${t}${B?"?.":"."}${E}`,R=sc((ht(p.parent,bE)?p.parent:p.expression).getStart(a),p.end)}if(Uae(_)&&(I=[BY(_.moduleSpecifier)],g&&(({insertText:E,replacementSpan:R}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=oC(DZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,u=a.includeCompletionsWithSnippetText?"$1":"",_=Q7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Ga(156)} `:" ",f=d?`${Ga(156)} `:"",m=r?";":"";switch(_){case 3:return{replacementSpan:s,insertText:`import${p}${oC(e)}${u} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${oC(e)}${u} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${oC(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${oC(e)}${u} } from ${c}${m}`}}}(l,g,_,h,a,y,v)),A=!!v.includeCompletionsWithSnippetText||void 0)),64===(null==_?void 0:_.kind)&&(O=!0),0===b&&r&&28!==(null==(D=iQ(r.pos,a,r))?void 0:D.kind)&&(CN(r.parent.parent)||NN(r.parent.parent)||EN(r.parent.parent)||eF(r.parent)||(null==(N=wc(r.parent,YP))?void 0:N.getLastToken(a))===r||ZP(r.parent)&&ss(a,r.getEnd()).line!==ss(a,o).line)&&(M="ObjectLiteralMemberWithComma/",O=!0),v.includeCompletionsWithClassMemberSnippets&&v.includeCompletionsWithInsertText&&3===b&&function(e,t,n){if(Wm(t))return!1;const r=106500;return!!(e.flags&r)&&(Du(t)||t.parent&&t.parent.parent&&wu(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&Du(t.parent.parent)||t.parent&&WF(t)&&Du(t.parent))}(e,i,a)){let t;const n=use(s,c,y,v,l,e,i,o,r,x);if(!n)return;({insertText:E,filterText:P,isSnippet:A,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(O=!0,M="ClassMemberSnippet/")}if(_&&$ae(_)&&(({insertText:E,isSnippet:A,labelDetails:L}=_),v.useLabelDetailsInCompletionEntries||(l+=L.detail,L=void 0),M="Ob
6jectLiteralMethodSnippet/",t=Mae.SortBelow(t)),S&&!k&&v.includeCompletionsWithSnippetText&&v.jsxAttributeCompletionStyle&&"none"!==v.jsxAttributeCompletionStyle&&(!zP(i.parent)||!i.parent.initializer)){let t="braces"===v.jsxAttributeCompletionStyle;const n=j.getTypeOfSymbolAtLocation(e,i);"auto"!==v.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&w(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&C(n.types,(e=>!!(402686084&e.flags||DQ(e))))?(E=`${oC(l)}=${DZ(a,v,"$1")}`,A=!0):t=!0),t&&(E=`${oC(l)}={$1}`,A=!0)}if(void 0!==E&&!v.includeCompletionsWithInsertText)return;(Jae(_)||Uae(_))&&(F=pse(_),O=!g);const U=wc(i,Gx);if(275===(null==U?void 0:U.kind)){const e=Xa(l);U&&e&&(135===e||$h(e))&&(E=`${l} as ${l}_`)}return m({name:l,kind:q_e.getSymbolKind(j,e,i),kindModifiers:q_e.getSymbolModifiers(j,e),sortText:t,source:M,hasAction:!!O||void 0,isRecommended:gse(e,d,j)||void 0,insertText:E,filterText:P,replacementSpan:R,sourceDisplay:I,labelDetails:L,isSnippet:A,isPackageJsonImport:qae(_)||void 0,isImportStatementCompletion:!!g||void 0,data:F},T?{symbol:e}:void 0)}function use(e,t,n,r,i,o,a,s,c,l){const u=wc(a,Du);if(!u)return;let _,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=dse({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:b0(HY(e,null==l?void 0:l.options))}),h=Q7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){_=!0;const e=_w.createEmptyStatement();y=_w.createBlock([e],!0),$w(e,{kind:0,order:0})}else y=_w.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:S}=function(e,t,n){if(!e||ss(t,n).line>ss(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(kN(e.parent)&&(i=function(e){if(mu(e))return e.kind;if(nN(e)){const t=Ac(e);if(t&&du(t))return t}}(e))){e.parent.modifiers&&(o|=98303&mb(e.parent.modifiers),r=e.parent.modifiers.filter(xN)||[],a.pos=Math.min(...e.parent.modifiers.map((e=>e.getStart(t)))));const n=gb(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos<a.end?a:void 0}}(c,m,s),k=64&b&&64&u.modifierFlagsCache;let T=[];if(Q7.addNewNodeForMemberSymbol(o,u,m,{program:t,host:e},r,h,(e=>{let t=0;k&&(t|=64),wu(e)&&1===f.getMemberOverrideModifierStatus(u,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=_w.replaceModifiers(e,v),T.push(e)}),y,Q7.PreserveOptionalFlags.Property,!!k),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map((e=>_w.replaceModifiers(e,v))),null==S?void 0:S.length){const e=T[T.length-1];wI(e)&&(T[T.length-1]=_w.replaceDecoratorsAndModifiers(e,S.concat(zc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,_w.createNodeArray(T),m,l):g.printSnippetList(r,_w.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:_,importAdder:h,eraseRange:x}}function _se(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const u=n.getSourceFile(),_=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=sZ(Jc(c),!1),u=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),_=cY(n,o),d=33554432|(0===_?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&u.flags&&u.types.length<10?s.getUnionType(u.types,2):u;if(1048576&e.flags){const t=L(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,d,Q7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!LN(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=_w.createEmptyStatement();a=_w.createBlock([e],!0),$w(e,{kind:0,order:0})}else a=_w.createBlock([],!0);const c=n.parameters.map((e=>_w.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return _w.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,u,r,i,a);if(!_)return;const d=dse({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:b0(HY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,_w.createNodeArray([_],!0),u,
6s):d.printSnippetList(80,_w.createNodeArray([_],!0),u);const p=kz({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),f=_w.createMethodSignature(void 0,"",_.questionToken,_.typeParameters,_.parameters,_.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,u)}}}function dse(e){let t;const n=Q_e.createWriter(tx(e)),r=kz(e,n),i=g(m({},n),{write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))});return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?Q_e.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return ss(this,e)}},s=S0(i,r),c=q(n,(e=>{const t=Q_e.assignPositionsToNode(e);return wde.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,g(m({},i),{options:s}))})),l=t?ke(re(c,t),((e,t)=>Bt(e.span,t.span))):c;return Q_e.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?Q_e.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return ss(this,e)}},a=S0(i,r),c=Q_e.assignPositionsToNode(n),l=wde.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,g(m({},i),{options:a})),u=t?ke(re(l,t),((e,t)=>Bt(e.span,t.span))):l;return Q_e.applyChanges(o.text,u)}};function o(e,r){const i=oC(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=fe(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function pse(e){const t=e.fileName?void 0:Xy(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return Uae(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Xy(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function fse(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Gae(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function mse(e,t,n){return/^\d+$/.test(n)?n:DZ(e,t,n)}function gse(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function hse(e){return Jae(e)?Xy(e.moduleSymbol.name):Uae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function yse(e,t,n,r,i,o,a,s,c,l,u,_,d,p,f,m,g,h,y,v,b,x,S,k,T,C=!1){var w;const D=ar(),N=function(e,t){if(!e)return;const n=wc(e,(e=>Yf(e)||Qse(e)||Bu(e)?"quit":(bN(e)||vN(e))&&!AN(e.parent))),r=wc(t,(e=>Yf(e)||Qse(e)||Bu(e)?"quit":oP(e)));return n||r}(r,i),E=JZ(a),P=c.getTypeChecker(),F=new Map;for(let O=0;O<e.length;O++){const u=e[O],D=null==x?void 0:x[O],N=Pse(u,l,D,_,!!h);if(!N||F.get(N.name)&&(!D||!$ae(D))||1===_&&S&&!A(u,S))continue;if(!m&&Wm(a)&&I(u))continue;const{name:L,needsConvertPropertyAccess:R}=N,M=null!=(w=null==S?void 0:S[eJ(u)])?w:Mae.LocationPriority,j=lse(u,Zse(u,P)?Mae.Deprecated(M):M,n,r,i,o,a,s,c,L,R,D,b,g,y,v,E,p,d,_,f,k,T,C);if(!j)continue;const B=(!D||zae(D))&&!(void 0===u.parent&&!te(u.declarations,(e=>e.getSourceFile()===i.getSourceFile())));F.set(L,B),ce(t,j,Kae,void 0,!0)}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(ar()-D)),{has:e=>F.has(e),add:e=>F.set(e,!0)};function A(e,t){var n,r;let o=e.flags;if(!nF(i)){if(NP(i.parent))return!0;if(ht(N,oP)&&e.valueDeclaration===N)return!1;const s=null!=(n=e.valueDeclaration)?n:null==(r=e.declarations)?void 0:r[0];if(N&&s&&(vN(N)&&vN(s)||bN(N)&&bN(s))){const e=s.pos,t=bN(N)?N.parent.parameters:HN(N.parent)?void 0:N.parent.typeParameters;if(e>=N.pos&&t&&e<t.end)return!1}const c=Nx(e,P);if(a.externalModuleIndicator&&!p.allowUmdGlobalAccess&&t[eJ(e)]===Mae.GlobalsOrKeywords&&(t[eJ(c)]===Mae.AutoImportSuggestions||t[eJ(c)]===Mae.LocationPriority))return!1;if(o|=Ex(c),KG(i))return!!(1920&o);if(m)return Yse(e,P)}return!!(111551&o)}function I(e){var t;const n=Ex(Nx(e,P));return!(111551&n||Wm(null==(t=e.declarations)?void 0:t[0])&&!(788968&n))}}function vse(e,t,n,r,i,o,a){if("SwitchCases/"===i.source)return{type:"cases"};if(i.data){const t=Ese(i.name,i.data,e,o);if(t){const{contextToken:e,previousToken:i}=Nse(r,n);
6return{type:"symbol",symbol:t.symbol,location:QX(n,r),previousToken:i,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:t.origin}}}const s=e.getCompilerOptions(),c=Dse(e,t,n,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,o,void 0);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};const{symbols:l,literals:u,location:_,completionKind:d,symbolToOriginInfoMap:p,contextToken:f,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}=c,v=w(u,(e=>sse(n,a,e)===i.name));return void 0!==v?{type:"literal",literal:v}:y(l,((e,t)=>{const n=p[t],r=Pse(e,BS(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||hse(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:_,origin:n,contextToken:f,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}:void 0}))||{type:"none"}}function bse(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),u=e.getCompilerOptions(),{name:_,source:d,data:p}=i,{previousToken:f,contextToken:m}=Nse(r,n);if(cQ(n,r,f))return nce.getStringLiteralCompletionDetails(_,n,r,f,e,o,c,s);const g=vse(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return Ble.getJSDocTagNameCompletionDetails(_);case 2:return Ble.getJSDocTagCompletionDetails(_);case 3:return Ble.getJSDocParameterNameCompletionDetails(_);case 4:return te(e.keywordCompletions,(e=>e.name===_))?xse(_,"keyword",5):void 0;default:return En.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,u,_,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&u&&Vse(n||u,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[BY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:u}=use(a,o,s,d,e,i,t,l,n,_);if((null==r?void 0:r.hasFixes())||u)return{sourceDisplay:void 0,codeActions:[{changes:Q_e.ChangeTracker.with({host:a,formatContext:_,preferences:d},(e=>{r&&r.writeFixes(e),u&&e.deleteRange(c,u)})),description:(null==r?void 0:r.hasFixes())?x0([Pa.Includes_imports_of_types_referenced_by_0,e]):x0([Pa.Update_modifiers_of_0,e])}]}}if(zae(r)){const e=Q7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,_,d);return En.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=Q_e.ChangeTracker.with({host:a,formatContext:_,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:x0([Pa.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Jae(r)&&!Uae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(Nx(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&j_(n.parent),{moduleSpecifier:b,codeAction:x}=Q7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,_,u&&nN(u)?u.getStart(c):l,d,m);return En.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[BY(b)],codeActions:[x]}}(_,i,f,m,t,e,o,u,n,r,h,a,s,p,d,c);return Sse(t,Vae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return xse(sse(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=rse(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=Q_e.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:x0([Pa.Includes_imports_of_types_referenced_by_0,_])}]}}return{name:_,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Ase().some((e=>e.name===_))?xse(_,"keyword",5):void 0;default:En.assertNever(g)}}function xse(e,t,n){return kse(e,"",t,[FY(e,n)])}function Sse(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:u,tags:_}=n.runWithCancellationToken(o,(t=>q_e.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return kse(t,q_e.getSymbolModifiers(n,e),u,c,l,_,a,s)}function kse(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function Tse(e,t,n,r,i,o,a){const s=vse(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var Cse=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Cse||{});
6function wse(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?Ae(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>307===e.kind)))}(e.parent)?e:wse(e.parent,t,n))}function Dse(e,t,n,r,i,o,a,s,c,l){const u=e.getTypeChecker(),_=nse(n,r);let p=ar(),f=ZX(n,i);t("getCompletionData: Get current token: "+(ar()-p)),p=ar();const g=vQ(n,i,f);t("getCompletionData: Is inside comment: "+(ar()-p));let h=!1,v=!1,b=!1;if(g){if(bQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=TX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return wc(e,(e=>!(!q_(e)||!DX(e,t))||!!yF(e)&&"quit"))}(f,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(VF(e))v=!0;else{const t=function(e){if(function(e){switch(e.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!e.constraint;default:return!1}}(e)){const t=jF(e)?e.constraint:e.typeExpression;return t&&309===t.kind?t:void 0}if(xF(e)||qF(e))return e.class}(e);if(t&&(f=ZX(n,i),f&&(kh(f)||348===f.parent.kind&&f.parent.name===f)||(h=he(t))),!h&&OF(e)&&(Ud(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!v)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=ar();const x=!h&&!v&&$m(n),S=Nse(i,n),k=S.previousToken;let T=S.contextToken;t("getCompletionData: Get previous token: "+(ar()-p));let C,D,N=f,E=!1,P=!1,F=!1,A=!1,I=!1,O=!1,R=QX(n,i),M=0,j=!1,B=0;if(T){const e=Vse(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(J=e.keywordCompletion,{name:Ga(J),kind:"keyword",kindModifiers:"",sortText:Mae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};M=function(e){if(156===e)return 8;En.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(B|=2,D=e,j=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=ar(),o=function(e){return(UD(e)||ou(e))&&(NX(e,i)||i===e.end&&(!!e.isUnterminated||UD(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!gQ(o,n,u)||243===r||266===r||pe(r)||264===r||207===r||265===r||Du(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||pe(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||Tu(r);case 126:return 172===r&&!Du(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!DN(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!zse(e);case 80:if(276===r&&e===t.name&&"type"===e.text)return!1;if(wc(e.parent,oP)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())<t}(e,i))return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return 276!==r;case 42:return vu(e.parent)&&!CN(e.parent)}var o;if(Rse(jse(e))&&zse(e))return!1;if(_e(e)&&(!nN(e)||pu(jse(e))||he(e)))return!1;switch(jse(e)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return kN(e.parent)}const a=wc(e.parent,Du);if(a&&e===k&&de(e,i))return!1;const s=Bh(e.parent,172);if(s&&e!==k&&Du(k.parent.parent)&&i<=k.end){if(de(e,k.end))return!1;if(64!==e.kind&&(uU(s)||W_(s)))return!0}return kh(e)&&!ZP(e.parent)&&!zP(e.parent)&&!((Du(e.parent)||lP(e.parent)||vN(e.parent))&&(e!==k||i>k.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(R===e.parent&&(286===R.kind||285===R.kind))return!1;if(286===e.parent.kind)return 286!==R.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||jD(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(ar()-r)),o}(T))return t("Returning an empty list because completion was requested in an invali
6d position."),M?ese(M,x,ue()):void 0;let r=T.parent;if(25===T.kind||29===T.kind)switch(E=25===T.kind,P=29===T.kind,r.kind){case 211:if(C=r,N=C.expression,Ud(Xx(C))||(uE(N)||vu(N))&&N.end===T.pos&&N.getChildCount(n)&&22!==Le(N.getChildren(n)).kind)return;break;case 166:N=r.left;break;case 267:N=r.name;break;case 205:N=r;break;case 236:N=r.getFirstToken(n),En.assert(102===N.kind||105===N.kind);break;default:return}else if(!D){if(r&&211===r.kind&&(T=r,r=r.parent),f.parent===R)switch(f.kind){case 32:284!==f.parent.kind&&286!==f.parent.kind||(R=f);break;case 44:285===f.parent.kind&&(R=f)}switch(r.kind){case 287:44===T.kind&&(A=!0,R=T);break;case 226:if(!$se(r))break;case 285:case 284:case 286:O=!0,30===T.kind&&(F=!0,R=T);break;case 294:case 293:(20===k.kind||80===k.kind&&291===k.parent.kind)&&(O=!0);break;case 291:if(r.initializer===k&&k.end<i){O=!0;break}switch(k.kind){case 64:I=!0;break;case 80:O=!0,r!==k.parent&&!r.initializer&&BX(r,64,n)&&(I=k)}}}}var J;const U=ar();let z,$=5,V=!1,W=[];const K=[],G=[],X=new Map,Q=h||v||!!D&&iu(R.parent)||!((Y=T)&&(114===Y.kind&&(186===Y.parent.kind||yE(Y.parent))||131===Y.kind&&182===Y.parent.kind))&&(gQ(T,n,u)||Mf(R)||function(e){if(e){const t=e.parent.kind;switch(e.kind){case 59:return 172===t||171===t||169===t||260===t||Tu(t);case 64:return 265===t||168===t;case 130:return 234===t;case 30:return 183===t||216===t;case 96:return 168===t;case 152:return 238===t}}return!1}(T));var Y;const Z=Et((t=>tY(t?s.getPackageJsonAutoImportProvider():e,s)));if(E||P)!function(){$=2;const e=kf(N),t=e&&!N.isTypeOf||Mf(N.parent)||gQ(T,n,u),r=KG(N);if(gu(N)||e||cE(N)){const n=dP(N.parent);n&&(j=!0);let i=u.getSymbolAtLocation(N);if(i&&(i=Nx(i,u),1920&i.flags)){const a=u.getExportsOfModule(i);En.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>u.isValidPropertyAccess(e?N:N.parent,t.name),c=e=>Yse(e,u),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===N.parent)))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&W.push(e);if(!t&&!h&&i.declarations&&i.declarations.some((e=>307!==e.kind&&267!==e.kind&&266!==e.kind))){let e=u.getTypeOfSymbolAtLocation(i,N).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&N.flags),t)}return}}if(!t||Pv(N)){u.tryGetThisTypeAt(N,!1);let e=u.getTypeAtLocation(N).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&N.flags),t)}}}();else if(F)W=u.getJsxIntrinsicTagNamesAt(R),En.assertEachIsDefined(W,"getJsxIntrinsicTagNames() should all be defined"),ce(),$=1,M=0;else if(A){const e=T.parent.parent.openingElement.tagName,t=u.getSymbolAtLocation(e);t&&(W=[t]),$=1,M=0}else if(!ce())return M?ese(M,x,j):void 0;t("getCompletionData: Semantic work: "+(ar()-U));const ee=k&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return wZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=ht(i,KP);return o?FZ(o,r):void 0;case 19:return!WP(i)||RP(i.parent)||JP(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=o_e.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):NZ(e.kind)&&kE(i)&&NZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(k,i,n,u),ne=ht(k,Z_)||O?[]:H(ee&&(ee.isUnion()?ee.types:[ee]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),ie=k&&ee&&function(e,t,n){return y(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!Mx(r)?wse(r,e,n):void 0}))}(k,ee,u);return{kind:0,symbols:W,completionKind:$,isInSnippetScope:b,propertyAccessToConvert:C,isNewIdentifierLocation:j,location:R,
6keywordFilters:M,literals:ne,symbolToOriginInfoMap:K,recommendedCompletion:ie,previousToken:k,contextToken:T,isJsxInitializer:I,insideJsDocTagTypeExpression:h,symbolToSortTextMap:G,isTypeOnlyLocation:Q,isJsxIdentifierExpected:O,isRightOfOpenTag:F,isRightOfDotOrQuestionDot:E||P,importStatementCompletion:D,hasUnresolvedAutoImports:V,flags:B};function oe(e,t,n){j=!!e.getStringIndexType(),P&&te(e.getCallSignatures())&&(j=!0);const r=205===N.kind?N:N.parent;if(_)for(const i of e.getApparentProperties())u.isValidPropertyAccessForCompletions(r,e,i)&&ae(i,!1,n);else W.push(...L(Use(e,u),(t=>u.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=u.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())u.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=y(t.declarations,(e=>ht(Jc(e),yN)));if(l){const r=se(l.expression),a=r&&u.getSymbolAtLocation(r),f=a&&wse(a,T,u),m=f&&eJ(f);if(m&&$x(X,m)){const t=W.length;W.push(f);const r=f.parent;if(r&&pd(r)&&u.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Vs(Xy(r.name))?null==(c=Od(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(z||(z=Q7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:Nx(f,u).flags}],i,BT(R))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};K[t]=e}}else K[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&X.has(m))return;d(t),_(t),W.push(t)}}else d(t),_(t),W.push(t);function _(e){(function(e){return!!(e.valueDeclaration&&256&cb(e.valueDeclaration)&&Du(e.valueDeclaration.parent))})(e)&&(G[eJ(e)]=Mae.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&$x(X,eJ(e))?K[W.length]={kind:p(8)}:a&&(K[W.length]={kind:16}))}function p(e){return a?16|e:e}}function se(e){return nN(e)?e:cE(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(jN(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&jN(t.parent))return t.parent}}(T);if(!e)return 0;const t=(VN(e.parent)?e.parent:void 0)||e,n=qse(t,u);if(!n)return 0;const r=u.getTypeFromTypeNode(t),i=Use(n,u),o=Use(r,u),a=new Set;return o.forEach((e=>a.add(e.escapedName))),W=re(W,L(i,(e=>!a.has(e.escapedName)))),$=0,j=!0,1}()||function(){if(26===(null==T?void 0:T.kind))return 0;const t=W.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(sE(i)||rE(i))return i;break;case 42:return CN(i)?ht(i.parent,sE):void 0;case 134:return ht(i.parent,sE);case 80:if("async"===e.text&&ZP(e.parent))return e.parent.parent;{if(sE(e.parent.parent)&&(eF(e.parent)||ZP(e.parent)&&ss(n,e.getEnd()).line!==ss(n,t).line))return e.parent.parent;const r=wc(i,YP);if((null==r?void 0:r.getLastToken(n))===e&&sE(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(CN(i.parent)||NN(i.parent)||EN(i.parent))&&sE(i.parent.parent))return i.parent.parent;if(eF(i)&&sE(i.parent))return i.parent;const o=wc(i,YP);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&sE(o.parent))return o.parent}}}(T,i,n);if(!a)return 0;let l,_;if($=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=hh(e.parent);return kE(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):s_(r)?t.getContextualType(r):void 0}(a,u);if(void 0===e)return 67108864&a.flags?2:0;const t=u.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(j=!!n||!!r,l=Bse(e,t,a,u),_=a.properties,0===l.length&&!r)return 0}else{En.assert(206===a.kind),j=!1;const e=yy(a.parent);if(!$f(e))return En.fail("Root declaration is not variable-like.");let t=H_(e)||!!Ov(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(s_(e.parent)?t=!!u.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=s_(e.parent.parent)&&!!u.getContextualType(e.parent.parent))),t){const e=u.getTypeAtLocation(a);if(!e)return 2;l=u.getPropertiesOfType(e).filter((t=>u.isPropertyAccessible(a,!1,!1,e,t))),_=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const o of t){if(303!==o.kind&&304!==o.kind&&208!==o.kind&&174!==o.kind&&177!==o.kind&&178!==o.kind&&305!==o.kind)continue;if(he(o))continue;let e;if(eF(o))fe(o,n);else if(oE(o)&&o.propertyName)80===o.propertyName.kind&&(e=o.propertyName.escapedText);else{const t=Jc(o);e=t&&iy(t)?ay(t):void 0}void 0!==e&&r.add(e)}const i=e.filter((e=>!r.has(e.escapedName)));return ge(n,i),i}(l,En.checkDefined(_));W=re(W,n),me(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){var t;for(let n=e;n<W.length;n++){const e=W[n],i=eJ(e),o=null==K?void 0:K[n],a=Pse(e,BS(r),o,0,!1);
6if(a){const e=null!=(t=G[i])?t:Mae.LocationPriority,{name:n}=a;G[i]=Mae.ObjectLiteralProperty(e,n)}}}(t),d=n,p=a,Wm(R)||d.forEach((t=>{if(!(8196&t.flags))return;const n=Pse(t,BS(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=_se(t,i,p,e,s,r,o,c);if(!a)return;const l=m({kind:128},a);B|=32,K[W.length]=l,W.push(t)})))}var d,p;return 1}()||(D?(j=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?ht(T.parent,Gx):WQ(T)?ht(T.parent.parent,Gx):void 0;if(!e)return 0;WQ(T)||(M=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return j=!0,275===e.kind?2:0;const n=u.getSymbolAtLocation(t);if(!n)return j=!0,2;$=3,j=!1;const r=u.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!he(e))).map((e=>(e.propertyName||e.name).escapedText))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));return W=re(W,o),o.length||(M=0),1}()||function(){if(void 0===T)return 0;const e=19===T.kind||28===T.kind?ht(T.parent,SP):59===T.kind?ht(T.parent.parent,SP):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(OC));return W=L(u.getTypeAtLocation(e).getApparentProperties(),(e=>!t.has(e.escapedName))),1}()||function(){var e;const t=!T||19!==T.kind&&28!==T.kind?void 0:ht(T.parent,PP);if(!t)return 0;const n=wc(t,vn(nF,dP));return $=5,j=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;W.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(G[eJ(e)]=Mae.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return DN(e.parent)?e.parent:void 0;default:if(_e(e))return t.parent}}}(T)?($=5,j=!0,M=4,1):0)||function(){const e=function(e,t,n,r){var i;switch(n.kind){case 352:return ht(n.parent,Vx);case 1:const t=ht(Oe(yt(n.parent,nF).statements),Vx);if(t&&!BX(t,20,e))return t;break;case 81:if(ht(n.parent,kN))return wc(n,Du);break;case 80:if(Ac(n))return;if(kN(n.parent)&&n.parent.initializer===n)return;if(zse(n))return wc(n,Vx)}if(t){if(137===n.kind||nN(t)&&kN(t.parent)&&Du(n))return wc(t,Du);switch(t.kind){case 64:return;case 27:case 20:return zse(n)&&n.parent.name===n?n.parent.parent:ht(n,Vx);case 19:case 28:return ht(t.parent,Vx);default:if(Vx(n)){if(ss(e,t.getEnd()).line!==ss(e,r).line)return n;const o=Du(t.parent.parent)?Rse:Lse;return o(t.kind)||42===t.kind||nN(t)&&o(null!=(i=Ac(t))?i:0)?t.parent.parent:void 0}return}}}(n,T,R,i);if(!e)return 0;if($=3,j=!0,M=42===T.kind?0:Du(e)?2:3,!Du(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=wu(t)?cb(t):0;if(80===T.kind&&!he(T))switch(T.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}if(wN(t)&&(r|=256),!(2&r)){const t=q(Du(e)&&16&r?Sn(Ih(e)):Rh(e),(t=>{const n=u.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(n.symbol,e)):n&&u.getPropertiesOfType(n)}));W=re(W,function(e,t,n){const r=new Set;for(const i of t){if(172!==i.kind&&174!==i.kind&&177!==i.kind&&178!==i.kind)continue;if(he(i))continue;if(Gv(i,2))continue;if(Qv(i)!==!!(256&n))continue;const e=ry(i.name);e&&r.add(e)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&Dx(e)||e.valueDeclaration&&uu(e.valueDeclaration))))}(t,e.members,r)),d(W,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&wu(n)&&n.name&&yN(n.name)){const n={kind:512,symbolName:u.symbolToString(e)};K[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=iQ(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}}(T),t=e&&u.getContextualType(e.attributes);if(!t)return 0;const r=e&&u.getContextualType(e.attributes,4);return W=re(W,function(e,t){const n=new Set,r=new Set;for(const o of t)he(o)||(291===o.kind?n.add(SC(o.name)):VP(o)&&fe(o,r));const i=e.filter((e=>!n.has(e.escapedName)));return ge(r,i),i}(Bse(t,r,e.attributes,u),e.attributes.properties)),me(),$=3,j=!1,1}()||(function(){M=function(e){if(e){let t;const n=wc(e.parent,(e=>
6Du(e)?"quit":!(!xu(e)||t!==e.body)||(t=e,!1)));return n&&n}}(T)?5:1,$=1,j=ue(),k!==T&&En.assert(!!k,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=k!==T?k.getStart():i,t=function(e,t,n){let r=e;for(;r&&!OX(r,t,n);)r=r.parent;return r}(T,e,n)||n;b=function(e){switch(e.kind){case 307:case 228:case 294:case 241:return!0;default:return F_(e)}}(t);const r=2887656|(Q?0:111551),a=k&&!BT(k);W=re(W,u.getSymbolsInScope(t,r)),En.assertEachIsDefined(W,"getSymbolsInScope() should all be defined");for(let i=0;i<W.length;i++){const e=W[i];if(u.isArgumentsSymbol(e)||te(e.declarations,(e=>e.getSourceFile()===n))||(G[eJ(e)]=Mae.GlobalsOrKeywords),a&&!(111551&e.flags)){const t=e.declarations&&w(e.declarations,nu);if(t){const e={kind:64,declaration:t};K[i]=e}}}if(o.includeCompletionsWithInsertText&&307!==t.kind){const e=u.tryGetThisTypeAt(t,!1,Du(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,u))for(const t of Use(e,u))K[W.length]={kind:1},W.push(t),G[eJ(t)]=Mae.SuggestedClassMembers}le(),Q&&(M=T&&c_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!D||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!eY(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||YQ(e))}())return;if(En.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;B|=1;const c=k===T&&D?"":k&&nN(k)?k.text.toLowerCase():"",u=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),_=L0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:QZ(n,o,s);function f(t){const r=ht(t.moduleSymbol.valueDeclaration,nF);if(!r){const r=Xy(t.moduleSymbol.name);return(!qK.nodeCoreModules.has(r)||fn(r,"node:")===v0(n,e))&&(!p||p.allowsImportingAmbientModule(t.moduleSymbol,Z(t.isFromPackageJson)))}return A0(t.isFromPackageJson?d:e,n,r,o,p,Z(t.isFromPackageJson),u)}Wae("collectAutoImports",s,z||(z=Q7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!D,BT(R),(e=>{_.search(n.path,F,((e,t)=>{if(!Ls(e,BS(s.getCompilationSettings())))return!1;if(!a&&Wh(e))return!1;if(!(Q||D||111551&t))return!1;if(Q&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!F||!(n<65||n>90))&&(!!a||ece(e,c))}),((t,n,r,i)=>{if(a&&!te(t,(e=>a.source===Xy(e.moduleSymbol.name))))return;if(!(t=L(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=eJ(e);G[n]!==Mae.GlobalsOrKeywords&&(K[W.length]=t,G[n]=D?Mae.LocationPriority:Mae.AutoImportSuggestions,W.push(e))}(l&&zb(En.checkDefined(c.symbol))||En.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":En.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),V=e.skippedAny(),B|=e.resolvedAny()?8:0,B|=e.resolvedBeyondLimit()?16:0}))}function ue(){if(T){const e=T.parent.kind,t=jse(T);switch(t){case 28:return 213===e||176===e||214===e||209===e||226===e||184===e||210===e;case 21:return 213===e||176===e||214===e||217===e||196===e;case 23:return 209===e||181===e||167===e;case 144:case 145:case 102:return!0;case 25:return 267===e;case 19:return 263===e||210===e;case 64:return 260===e||226===e;case 16:return 228===e;case 17:return 239===e;case 134:return 174===e||304===e;case 42:return 174===e}if(Rse(t))return!0}return!1}function _e(e){return!!e.parent&&bN(e.parent)&&DN(e.parent.parent)&&(pu(e.kind)||kh(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!hx(e.end,t,n))}function pe(e){return Tu(e)&&176!==e}function fe(e,t){const n=e.expression,r=u.getSymbolAtLocation(n),i=r&&u.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function me(){W.forEach((e=>{var t;if(16777216&e.flags){const n=eJ(e);
6G[n]=null!=(t=G[n])?t:Mae.OptionalMember}}))}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(G[eJ(n)]=Mae.MemberDeclaredBySpreadAssignment)}function he(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function Nse(e,t){const n=iQ(e,t);return n&&e<=n.end&&(Nl(n)||Jh(n.kind))?{contextToken:iQ(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function Ese(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(En.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&zb(s)||s,{symbol:s,origin:fse(t,e,a)}):void 0}function Pse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return Jae(e)||Uae(e)||Vae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&rg(o.charCodeAt(0))||ly(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(Ls(o,t,i?1:0)||e.valueDeclaration&&uu(e.valueDeclaration))return a;switch(r){case 3:return Vae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:En.assertNever(r)}}var Fse=[],Ase=Nt((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Ga(t),kind:"keyword",kindModifiers:"",sortText:Mae.GlobalsOrKeywords});return e}));function Ise(e,t){if(!t)return Ose(e);const n=e+8+1;return Fse[n]||(Fse[n]=Ose(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(Xa(e.name)))))}function Ose(e){return Fse[e]||(Fse[e]=Ase().filter((t=>{const n=Xa(t.name);switch(e){case 0:return!1;case 1:return Mse(n)||138===n||144===n||156===n||145===n||128===n||$Q(n)&&157!==n;case 5:return Mse(n);case 2:return Rse(n);case 3:return Lse(n);case 4:return pu(n);case 6:return $Q(n)||87===n;case 7:return $Q(n);case 8:return 156===n;default:return En.assertNever(e)}})))}function Lse(e){return 148===e}function Rse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return fu(e)}}function Mse(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!zh(e)&&!Rse(e)}function jse(e){var t;return nN(e)?null!=(t=Ac(e))?t:0:e.kind}function Bse(e,t,n,r){const i=t&&t!==e,o=!i||3&t.flags?e:r.getUnionType([e,t]),a=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(L(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Jse(e.getApparentProperties()))))):e.getApparentProperties()}(o,n,r);return o.isClass()&&Jse(a)?[]:i?L(a,(function(e){return!_(e.declarations)||te(e.declarations,(e=>e.parent!==n))})):a}function Jse(e){return te(e,(e=>!!(6&Dx(e))))}function Use(e,t){return e.isUnion()?En.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):En.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function qse(e,t){if(!e)return;if(Mu(e)&&X_(e.parent))return t.getTypeArgumentConstraint(e);const n=qse(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function zse(e){return e.parent&&Lu(e.parent)&&Vx(e.parent.parent)}function $se({left:e}){return Ud(e)}function Vse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(gP(n)){const r=n.getLastToken(t);return nN(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Xse(n.moduleReference)?n:void 0)}if(Kse(n,e)&&Gse(n.parent))return n;if(!wP(n)&&!TP(n))return EP(n)&&42===e.kind||PP(n)&&20===e.kind?(a=!0,void(o=161)):mN(e)&&nF(n)?(o=156,e):mN(e)&&hP(n)?(o=156,Xse(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),Gse(n)){if(2
60!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=ht(s,hP))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=ht(s,gP))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Kse(s,e),replacementSpan:Wse(s)}}function Wse(e){var t,n,r;if(!e)return;const i=null!=(t=wc(e,vn(hP,gP,VF)))?t:e,o=i.getSourceFile();if(lx(i,o))return RQ(i,o);En.assert(102!==i.kind&&276!==i.kind);const a=272===i.kind||351===i.kind?null!=(n=Hse(null==(r=i.importClause)?void 0:r.namedBindings))?n:i.moduleSpecifier:i.moduleReference,s={pos:i.getFirstToken().getStart(),end:a.pos};return lx(s,o)?BQ(s):void 0}function Hse(e){var t;return w(null==(t=ht(e,wP))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Wh(t.name.text)&&28!==(null==(n=iQ(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function Kse(e,t){return DP(e)&&(e.isTypeOnly||t===e.name&&WQ(t))}function Gse(e){if(!Xse(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(wP(e)){const t=Hse(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Xse(e){var t;return!!Ud(e)||!(null==(t=ht(LP(e)?e.expression:e,Z_))?void 0:t.text)}function Qse(e){return e.parent&&gE(e.parent)&&(e.parent.body===e||39===e.kind)}function Yse(e,t,n=new Map){return r(e)||r(Nx(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&$x(n,eJ(e))&&t.getExportsOfModule(e).some((e=>Yse(e,t,n)))}}function Zse(e,t){const n=Nx(e,t).declarations;return!!_(n)&&C(n,y0)}function ece(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let s=0;s<o;s++){const o=e.charCodeAt(s),c=t.charCodeAt(i);if((o===c||o===(97<=(a=c)&&a<=122?a-32:a))&&(r||(r=void 0===n||97<=n&&n<=122&&65<=o&&o<=90||95===n&&95!==o),r&&i++,i===t.length))return!0;n=o}var a;return!1}function tce(e){return"abstract"===e||"async"===e||"await"===e||"declare"===e||"module"===e||"namespace"===e||"type"===e||"satisfies"===e||"as"===e}var nce={};r(nce,{getStringLiteralCompletionDetails:()=>ace,getStringLiteralCompletions:()=>oce});var rce={directory:0,script:1,"external module name":2};function ice(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||rce[n.kind]<rce[t.kind])&&e.set(t.name,t)},has:e.has.bind(e),values:e.values.bind(e)}}function oce(e,t,n,r,i,o,a,s,c){if(AQ(e,t)){const n=function(e,t,n,r){const i=ZX(e,t),o=Ps(e.text,i.pos),a=o&&w(o,(e=>t>=e.pos&&t<=e.end));if(!a)return;const s=e.text.slice(a.pos,t),c=Ece.exec(s);if(!c)return;const[,l,u,_]=c,d=Go(e.path),p="path"===u?vce(_,d,hce(n,0,e),r,!0,e.path):"types"===u?Nce(r,n,d,Tce(_),hce(n,1,e)):En.fail();return mce(_,a.pos+l.length,Xe(p.values()))}(e,t,r,i);return n&&sce(n)}if(cQ(e,t,n)){if(!n||!Z_(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const u=MQ(t,c);switch(e.kind){case 0:return sce(e.paths);case 1:{const _=[];return yse(e.symbols,_,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:u,entries:_}}case 2:{const n=15===t.kind?96:fn(ap(t),"'")?39:34,r=e.types.map((e=>({name:qy(e.value,n),kindModifiers:"",kind:"string",sortText:Mae.LocationPriority,replacementSpan:LQ(t,c)})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:u,entries:r}}default:return En.assertNever(e)}}(lce(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}
6function ace(e,t,n,r,i,o,a,s){if(!r||!Z_(r))return;const c=lce(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=w(n.paths,(t=>t.name===e));return t&&kse(e,cce(t.extension),t.kind,[BY(e)])}case 1:{const a=w(n.symbols,(t=>t.name===e));return a&&Sse(a,a.name,i,r,t,o)}case 2:return w(n.types,(t=>t.value===e))?kse(e,"","string",[BY(e)]):void 0;default:return En.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function sce(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:cce(r),sortText:Mae.LocationPriority,replacementSpan:n})))}}function cce(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return En.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return En.assertNever(e)}}function lce(e,t,n,r,i,o){const a=r.getTypeChecker(),s=uce(t.parent);switch(s.kind){case 201:{const c=uce(s.parent);return 205===c.kind?{kind:0,paths:gce(e,t,r,i,o)}:function e(t){switch(t.kind){case 233:case 183:{const e=wc(s,(e=>e.parent===t));return e?{kind:2,types:dce(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:i,objectType:o}=t;if(!DX(i,n))return;return _ce(a.getTypeFromTypeNode(o));case 192:{const n=e(uce(t.parent));if(!n)return;const i=(r=s,H(t.types,(e=>e!==r&&ZN(e)&&BD(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!F(i,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!F(i,e.value))),isNewIdentifier:!1}}default:return}var r}(c)}case 303:return sE(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;const r=e.getContextualType(t,4);return{kind:1,symbols:Bse(n,r,t,e),hasIndexSignature:PZ(n)}}(a,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===bh(n)?_ce(a.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return uE(e.parent)&&Pe(e.parent.arguments)===e&&nN(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!xf(s)){const r=o_e.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Map,a=j_(e)?En.checkDefined(wc(t.parent,zP)):t,s=q(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!aJ(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(j_(e)){const e=r.getTypeOfPropertyOfType(s,kC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),dce(s,o)}));return _(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:gce(e,t,r,i,o)};case 296:const l=C0(a,s.parent.clauses),u=c();if(!u)return;return{kind:2,types:u.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};default:return c()||c(0)}function c(e=4){const n=dce(wZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function uce(e){switch(e.kind){case 196:return gh(e);case 217:return hh(e);default:return e}}function _ce(e){return e&&{kind:1,symbols:L(e.getApparentProperties(),(e=>!(e.valueDeclaration&&uu(e.valueDeclaration)))),hasIndexSignature:PZ(e)}}function dce(e,t=new Map){return e?(e=XQ(e)).isUnion()?q(e.types,(e=>dce(e,t))):!e.isStringLiteral()||1024&e.flags||!$x(t,e.value)?c:[e]:c}function pce(e,t,n){return{name:e,kind:t,extension:n}}function fce(e){return pce(e,"directory",void 0)}function mce(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(Fo),e.lastIndexOf(Ao)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||Ls(e.substr(r,i),99)?void 0:ac(t+r,i)}(e,t),i=0===e.length?void 0:ac(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(Fo)||e.includes(Ao)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function gce(e,t,n,r,i){return mce(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=ta(t.text),a=Z_(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,l=Go(s),u=n.getCompilerOptions(),_=n.getTypeChecker(),d=hce(u,1,e,_,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}
6(o)||!u.baseUrl&&!u.paths&&(Mo(o)||Ro(o))?function(e,t,n,r,i,o){return n.rootDirs?function(e,t,n,r,i,o,a){const s=i.project||o.getCurrentDirectory(),c=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),l=function(e,t,n,r){const i=y(e=e.map((e=>_a(sa(Mo(e)?e:ra(t,e))))),(e=>ba(e,n,t,r)?n.substr(e.length):void 0));return ae([...e.map((e=>ra(e,i))),n].map((e=>ua(e))),Rt,zt)}(e,s,n,c);return ae(q(l,(e=>Xe(vce(t,e,r,o,!0,a).values()))),((e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension))}(n.rootDirs,e,t,o,n,r,i):Xe(vce(e,t,o,r,!0,i).values())}(o,l,u,r,s,d):function(e,t,n,r,i,o,a){const{baseUrl:s,paths:l}=r,u=ice(),_=US(r);if(s){const t=sa(ra(i.getCurrentDirectory(),s));vce(e,t,o,i,!1,void 0,u)}if(l){const t=fv(r,i);xce(u,e,t,o,i,l)}const d=Tce(e);for(const c of function(e,t,n){const r=n.getAmbientModules().map((e=>Xy(e.name))).filter((t=>fn(t,e)&&!t.includes("*")));if(void 0!==t){const e=_a(t);return r.map((t=>mn(t,e)))}return r}(e,d,a))u.add(pce(c,"external module name",void 0));if(Nce(i,r,t,d,o,u),rY(_)){let a=!1;if(void 0===d)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return c;const n=[];for(const r of HZ(t,e)){const t=Xb(r,e);for(const e of Pce){const r=t[e];if(r)for(const e in r)$e(r,e)&&!fn(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=pce(e,"external module name",void 0);u.has(t.name)||(a=!0,u.add(t))}if(!a){let a=t=>{const n=ra(t,"node_modules");$Z(i,n)&&vce(e,n,o,i,!1,void 0,u)};if(d&&WS(r)){const t=a;a=a=>{const s=Zo(e);s.shift();let c=s.shift();if(!c)return t(a);if(fn(c,"@")){const e=s.shift();if(!e)return t(a);c=ra(c,e)}const l=ra(a,"node_modules",c),_=ra(l,"package.json");if(zZ(i,_)){const t=Xb(_,i).exports;if(t){if("object"!=typeof t||null===t)return;const a=We(t),c=s.join("/")+(s.length&&Vo(e)?"/":""),_=xM(r,n);return void Sce(u,!0,c,l,o,i,a,(e=>Sn(kce(t[e],_))),kj)}}return t(a)}}Da(t,a)}}return Xe(u.values())}(o,l,a,u,r,d,_)}(e,t,n,r,i))}function hce(e,t,n,r,i,o){return{extensionsToSearch:U(yce(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function yce(e,t){const n=t?H(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...eT(e),n];return rY(US(e))?tT(e,r):r}function vce(e,t,n,r,i,o,a=ice()){var s;void 0===e&&(e=""),Vo(e=ta(e))||(e=Go(e)),""===e&&(e="."+Fo);const c=ia(t,e=_a(e)),l=Vo(c)?c:Go(c);if(!i){const e=KZ(l,r);if(e){const t=Xb(e,r).typesVersions;if("object"==typeof t){const i=null==(s=fM(t))?void 0:s.paths;if(i){const t=Go(e);if(xce(a,c.slice(_a(t).length),t,n,r,i))return a}}}}const u=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!$Z(r,l))return a;const _=qZ(r,l,n.extensionsToSearch,void 0,["./*"]);if(_)for(let p of _){if(p=sa(p),o&&0===va(p,o,t,u))continue;const{name:e,extension:i}=bce(Xo(p),r.getCompilationSettings(),n,!1);a.add(pce(e,"script",i))}const d=UZ(r,l);if(d)for(const p of d){const e=Xo(sa(p));"@types"!==e&&a.add(fce(e))}return a}function bce(e,t,n,r){const i=aB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:ST(i)};if(0===n.referenceKind)return{name:e,extension:ST(e)};let o=cB({importModuleSpecifierEnding:n.endingPreference},t,n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter((e=>0!==e&&1!==e))),3===o[0]){if($o(e,Yk))return{name:e,extension:ST(e)};const n=aB.tryGetJSExtensionForFile(e,t);return n?{name:fT(e,n),extension:n}:{name:e,extension:ST(e)}}if(!r&&(0===o[0]||1===o[0])&&$o(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:_T(e),extension:ST(e)};const a=aB.tryGetJSExtensionForFile(e,t);return a?{name:fT(e,a),extension:a}:{name:e,extension:ST(e)}}function xce(e,t,n,r,i,o){return Sce(e,!1,t,n,r,i,We(o),(e=>o[e]),((e,t)=>{const n=mT(e),r=mT(t),i="object"==typeof n?n.prefix.length:e.length;return jt("object"==typeof r?r.prefix.length:t.length,i)}))}function Sce(e,t,n,r,i,o,a,s,c){let l,u=[];for(const _ of a){if("."===_)continue;const e=_.replace(/^\.\//,""),a=s(_);if(a){const s=mT(e);if(!s)continue;const d="object"==typeof s&&hn(s,n);d&&(void 0===l||-1===c(_,l))&&(l=_,u=u.filter((e=>!e.matchedPattern))),"string"!=typeof s&&void 0!==l&&1===c(_,l)||u.push({matchedPattern:d,results:Cce(e,a,n,r,i,t&&d,o).map((({name:e,kind:t,extension:n})=>pce(e,t,n)))})}}return u.forEach((t=>
6t.results.forEach((t=>e.add(t))))),void 0!==l}function kce(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!pt(e))for(const n in e)if("default"===n||t.includes(n)||wj(t,n))return kce(e[n],t)}function Tce(e){return Fce(e)?Vo(e)?e:Go(e):void 0}function Cce(e,t,n,r,i,o,a){if(!tn(e,"*"))return e.includes("*")?c:u(e,"script");const s=e.slice(0,e.length-1),l=gn(n,s);return void 0===l?"/"===e[e.length-2]?u(s,"directory"):q(t,(e=>{var t;return null==(t=wce("",r,e,i,o,a))?void 0:t.map((e=>{var t=e,{name:n}=t,r=h(t,["name"]);return m({name:s+n},r)}))})):q(t,(e=>wce(l,r,e,i,o,a)));function u(e,t){return fn(e,n)?[{name:ua(e),kind:t,extension:void 0}]:c}}function wce(e,t,n,r,i,o){if(!o.readDirectory)return;const a=mT(n);if(void 0===a||mt(a))return;const s=ia(a.prefix),l=Vo(a.prefix)?s:Go(s),u=Vo(a.prefix)?"":Xo(s),_=Fce(e),d=_?Vo(e)?e:Go(e):void 0,p=_?ra(l,u+d):l,f=sa(a.suffix),m=f&&dv("_"+f),g=m?[fT(f,m),f]:[f],h=sa(ra(t,p)),v=_?h:_a(h)+u,b=f?g.map((e=>"**/*"+e)):["./*"];return[...H(qZ(o,h,r.extensionsToSearch,void 0,b),(e=>{const t=(n=e,y(g,(e=>{const t=(r=sa(n),o=e,fn(r,i=v)&&tn(r,o)?r.slice(i.length,r.length-o.length):void 0);var r,i,o;return void 0===t?void 0:Dce(t)})));var n;if(t){if(Fce(t))return fce(Zo(Dce(t))[1]);const{name:e,extension:n}=bce(t,o.getCompilationSettings(),r,i);return pce(e,"script",n)}})),...f?c:H(UZ(o,h),(e=>"node_modules"===e?void 0:fce(e)))]}function Dce(e){return e[0]===Fo?e.slice(1):e}function Nce(e,t,n,r,i,o=ice()){const a=new Map,s=VZ((()=>mM(t,e)))||c;for(const c of s)l(c);for(const c of HZ(n,e))l(ra(Go(c),"node_modules/@types"));return o;function l(n){if($Z(e,n))for(const s of UZ(e,n)){const c=Mj(s);if(!t.types||F(t.types,c))if(void 0===r)a.has(c)||(o.add(pce(c,"external module name",void 0)),a.set(c,!0));else{const t=ra(n,s),a=vk(r,c,iv(e));void 0!==a&&vce(a,t,i,e,!1,void 0,o)}}}}var Ece=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,Pce=["depen
6dencies","devDependencies","peerDependencies","optionalDependencies"];function Fce(e){return e.includes(Fo)}var Ace={};function Ice(e,t,n,r){const i=function(e,t,n){const r=new Map;for(const i of e)n&&n.throwIfCancellationRequested(),jce(i,((e,n)=>{const i=t.getSymbolAtLocation(n);if(i){const t=eJ(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=HQ(),c=HQ(),l=[],u=!!r.globalExports,_=u?void 0:[];return p(r),{directImports:l,indirectUsers:d()};function d(){if(u)return e;if(r.declarations)for(const e of r.declarations)Cp(e)&&t.has(e.getSourceFile().fileName)&&h(e);return _.map(Id)}function p(e){const t=y(e);if(t)for(const n of t)if(s(n))switch(a&&a.throwIfCancellationRequested(),n.kind){case 213:if(xf(n)){f(n);break}if(!u){const e=n.parent;if(2===i&&260===e.kind){const{name:t}=e;if(80===t.kind){l.push(t);break}}}break;case 80:break;case 271:g(n,n.name,Xv(n,32),!1);break;case 272:case 351:l.push(n);const e=n.importClause&&n.importClause.namedBindings;e&&274===e.kind?g(n,e.name,!1,!0):!u&&jg(n)&&h(qce(n));break;case 278:n.exportClause?280===n.exportClause.kind?h(qce(n),!0):l.push(n):p(Uce(n,o));break;case 205:!u&&n.isTypeOf&&!n.qualifier&&m(n)&&h(n.getSourceFile(),!0),l.push(n);break;default:En.failBadSyntaxKind(n,"Unexpected import kind.")}}function f(e){h(wc(e,zce)||e.getSourceFile(),!!m(e,!0))}function m(e,t=!1){return wc(e,(e=>t&&zce(e)?"quit":CI(e)&&te(e.modifiers,iN)))}function g(e,t,n,r){if(2===i)r||l.push(e);else if(!u){const r=qce(e);En.assert(307===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!Mce(e,(e=>{if(!EP(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&PP(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?h(r,!0):h(r)}}function h(e,t=!1){if(En.assert(!u),!c(e))return;if(_.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;En.assert(!!(1536&n.flags));const r=y(n);if(r)for(const i of r)eE(i)||h(qce(i),!0)}function y(e){return n.get(eJ(e).toString())}}(e,t,i,a,n,r);return m({indirectUsers:l},function(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const d of e)c(d);return{importSearches:o,singleReferences:a};function c(e){if(271===e.kind)return void($ce(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=Fb(e.qualifier);n.escapedText===Ic(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&PP(e.exportClause)&&u(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||u(c);break;default:En.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==_Y(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!_(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function u(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;_((o||e).escapedText)&&(o?(a.push(o),i&&e.escapedText!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function _(e){return e===t.escapedName||0!==n&&"default"===e}}(c,o,a.exportKind,n,s))}}r(Ace,{Core:()=>Yce,DefinitionKind:()=>Vce,EntryKind:()=>Wce,ExportKind:()=>Oce,FindReferencesUse:()=>Zce,ImportExport:()=>Lce,createImportTracker:()=>Ice,findModuleReferences:()=>Rce,findReferenceOrRenameEntries:()=>rle,findReferencedSymbols:()=>ele,getContextNode:()=>Xce,getExportInfo:()=>Jce,getImplementationsAtPosition:()=>tle,getImportOrExportSymbol:()=>Bce,getReferenceEntriesForNode:()=>ile,getTextSpanOfEntry:()=>ple,isContextWithStartAndEndNode:()=>Kce,isDeclarationOfSymbol:()=>mle,isWriteAccessForReference:()=>fle,nodeEntry:()=>Hce,toContextSpan:()=>Qce,toHighlightSpan:()=>_le,toReferenceEntry:()=>lle,toRenameLocation:()=>cle});var Oce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Oce||{}),Lce=(e=>
6(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Lce||{});function Rce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(307===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}jce(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(by(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function Mce(e,t){return d(307===e.kind?e.statements:e.body.statements,(e=>t(e)||zce(e)&&d(e.body&&e.body.statements,t)))}function jce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(Og(n),n);else Mce(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&BD(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;$ce(n)&&t(n,n.moduleReference.expression);break}}}))}function Bce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&$ce(t);case 276:return!t.propertyName;case 273:case 274:return En.assert(t.name===e),!0;case 208:return Wm(e)&&Zm(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(FP(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(cE(n)&&gg(n.expression)&&!rN(n.name))return t.getSymbolAtLocation(n);if(ZP(n)&&kE(n.parent.parent)&&2===hg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=En.checkDefined(e.valueDeclaration);return NP(i)?null==(n=ht(i.expression,T_))?void 0:n.symbol:kE(i)?null==(r=ht(i.right,T_))?void 0:r.symbol:nF(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=_Y(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&kE(c)?u(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=oP(e)?e:oE(e)?hc(e):void 0;return n?e.name!==t||QP(n.parent)?void 0:UE(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&Xv(i,32)){if(gP(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(CP(s))return o(t,0);if(NP(s))return l(s);if(NP(c))return l(c);if(kE(s))return u(s,!0);
6if(kE(c))return u(c,!0);if(BF(s)||TF(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function u(e,r){let i;switch(hg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Kx(yt(e.left,Hx))):t;return a&&o(a,i)}}function o(e,t){const r=Jce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Xv(e,2048)?1:0}}function Jce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return pd(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function Uce(e,t){return t.getMergedSymbol(qce(e).symbol)}function qce(e){if(213===e.kind)return e.getSourceFile();const{parent:t}=e;return 307===t.kind?t:(En.assert(268===t.kind),yt(t.parent,zce))}function zce(e){return 267===e.kind&&11===e.name.kind}function $ce(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Vce=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Vce||{}),Wce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Wce||{});function Hce(e,t=1){return{kind:t,node:e.name||e,context:Gce(e)}}function Kce(e){return e&&void 0===e.kind}function Gce(e){if(N_(e))return Xce(e);if(e.parent){if(!N_(e.parent)&&!NP(e.parent)){if(Wm(e)){const t=kE(e.parent)?e.parent:Hx(e.parent)&&kE(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==hg(t))return Xce(t)}if(jP(e.parent)||BP(e.parent))return e.parent.parent;if(MP(e.parent)||tP(e.parent)||Ul(e.parent))return e.parent;if(Z_(e)){const t=Lg(e);if(t){const e=wc(t,(e=>N_(e)||F_(e)||q_(e)));return N_(e)?Xce(e):e}}const t=wc(e,yN);return t?Xce(t.parent):void 0}return e.parent.name===e||DN(e.parent)||NP(e.parent)||(tu(e.parent)||oE(e.parent))&&e.parent.propertyName===e||90===e.kind&&Xv(e.parent,2080)?Xce(e.parent):void 0}}function Xce(e){if(e)switch(e.kind){case 260:return aP(e.parent)&&1===e.parent.declarations.length?UE(e.parent.parent)?e.parent.parent:m_(e.parent.parent)?Xce(e.parent.parent):e.parent:e;case 208:return Xce(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return zE(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return FQ(e.parent)?Xce(wc(e.parent,(e=>kE(e)||m_(e)))):e;case 255:return{start:w(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function Qce(e,t,n){if(!n)return;const r=Kce(n)?dle(n.start,t,n.end):dle(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Yce,Zce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Zce||{});function ele(e,t,n,r,i){const o=QX(r,i),a={use:1},s=Yce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Yce.getAdjustedNode(o,a),u=function(e){return 90===e.kind||!!Th(e)||Ch(e)||137===e.kind&&DN(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?H(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=sle(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&Pe(r.declarations),c=s?Jc(s)||s:n;return g(m({},ale(c)),{name:a,kind:o,displayParts:i,context:Xce(s)})}case 1:{const{node:t}=e;return g(m({},ale(t)),{name:t.text,kind:"label",displayParts:[FY(t.text,17)]})}case 2:{const{node:t}=e,n=Ga(t.kind);return g(m({},ale(t)),{name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]})}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&q_e.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),bX(n),n).displayParts||[BY("this")];return g(m({},ale(n)),{name:"this",kind:"var",displayParts:i})}case 4:{const{node:t}=e;return g(m({},ale(t)),{name:t.text,kind:"var",displayParts:[FY(ap(t),8)]})}case 5:return{textSpan:BQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[FY(`"${e.reference.fileName}"`,8)]};default:return En.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return m({containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c},Qce(o,i,l))}(e,t,o))),references:n.map((e=>function(e,t){const n=lle(e);return t?g(m({},n),{isDefinition:0!==e.kind&&mle(e.node,t)}):n}(e,u)))})):void 0}function tle(e,t,n,r,i){const o=QX(r,i);let a;const s=nle(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=_t(s),i=new Map;for(;!r.isEmpty();){const o=r.dequeue();if(!$x(i,ZB(o.node)))continue;a=fe(a,o);const s=nle(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return j(a,(e=>function(e,t){const n=ule(e);if(0!==e.kind){const{node:r}=e;return m(m({},n),function(e,t){const n=t.getSymbolAtLocation(N_(e)&&e.name?e.name:e);return n?sle(n,t,e):210===e.kind?{kind:"interface",displayParts:[OY(21),BY("object literal"),OY(22)]}:231===e.kind?{kind:"local class",displayParts:[OY(21),BY("anonymous local class"),OY(22)]}:{kind:xX(e),displayParts:[]}}(r,t))}return g(m({},n),{kind:"",displayParts:[]})}(e,c)))}function nle(e,t,n,r,i){if(307===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return Yce.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(Hce(t)))),e}if(108===r.kind||xm(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[Hce(e.valueDeclaration)]}return ile(i,r,e,n,t,{implementations:!0,use:1})}function rle(e,t,n,r,i,o,a){return j(ole(Yce.getReferencedSymbol
6sForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function ile(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return ole(Yce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function ole(e){return e&&q(e,(e=>e.references))}function ale(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:dle(yN(e)?e.expression:e,t)}}function sle(e,t,n){const r=Yce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&Pe(e.declarations)||n,{displayParts:o,symbolKind:a}=q_e.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function cle(e,t,n,r,i){return m(m({},ule(e)),r&&function(e,t,n,r){if(0!==e.kind&&(nN(t)||Z_(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=ZP(o);if(s||pY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return sE(n)&&kE(n.parent)&&gg(n.parent.left)?e:t}return e}if(DP(o)&&!o.propertyName)return F((FP(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:TG;if(FP(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&MD(e.node)&&Hx(e.node.parent)){const e=lY(r);return{prefixText:e,suffixText:e}}return TG}(e,t,n,i))}function lle(e){const t=ule(e);if(0===e.kind)return g(m({},t),{isWriteAccess:!1});const{kind:n,node:r}=e;return g(m({},t),{isWriteAccess:fle(r),isInString:2===n||void 0})}function ule(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=dle(e.node,t);return m({textSpan:n,fileName:t.fileName},Qce(n,t,e.context))}}function _le(e){const t=ule(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=fle(e.node),r=m({textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:r}}function dle(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return Z_(e)&&i-r>2&&(En.assert(void 0===n),r+=1,i-=1),269===(null==n?void 0:n.kind)&&(i=n.getFullStart()),sc(r,i)}function ple(e){return 0===e.kind?e.textSpan:dle(e.node,e.node.getSourceFile())}function fle(e){const t=Th(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!FQ(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||QP(e.parent);case 173:case 171:case 348:case 341:return!1;default:return En.failBadSyntaxKind(e)}}(t)||90===e.kind||Fx(e)}function mle(e,t){var n;if(!t)return!1;const r=Th(e)||(90===e.kind?e.parent:Ch(e)||137===e.kind&&DN(e.parent)?e.parent.parent:void 0),i=r&&kE(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}(e=>{function t(e,t){return 1===t.use?e=GX(e):2===t.use&&(e=XX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||c;for(const o of i)if(F$(o)){const e=n.getSourceFileByPath(o.file),t=I$(n,o);A$(t)&&(r=fe(r,{kind:0,fileName:e.fileName,textSpan:BQ(t)}))}return r}function r(e,t,n){if(e.parent&&mP(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const c=1536&e.flags&&e.declarations&&w(e.declarations,nF);if(!c)return;const l=e.exports.get("export="),_=s(t,e,!!l,n,a);if(!l||!a.has(c.fileName))return _;const d=t.getTypeChecker();return o(t,_,u(e=Nx(l,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=N(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return jt(r,i);const o=ple(t),s=ple(n);return o.start!==s.start?jt(o.start,s.start):jt(o.length,s.length)}))}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function s(e,t,n,r,i){En.assert(!!t.valueDeclaration);const o=H(Rce(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(ZN(t)){const e=yt(t.parent,eE);if(n&&!e.qualifier)return}return Hce(e.literal)}return"implicit"===e.kind?Hce(e.literal.text!==ad&&eO(e.referencingFile,(e=>2&e.transformFlags?RP(e)||MP(e)||JP(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:BQ(e.ref)}}));if(t.declarations)for(const s of t.declarations)switch(s.kind){case 307:break;case 267:i.has(s.getSourceFile().fileName)&&o.push(Hce(s.name));break;default:En.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const s of a.declarations){const e=s.getSourceFile();if(i.has(e.fileName)){const t=kE(s)&&cE(s.left)?s.left.expression:NP(s)?En.checkDefined(BX(s,95,e)):Jc(s)||s;o.push(Hce(t))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:c}function l(e){return 148===e.kind&&XN(e.parent)&&148===e.parent.operator}function u(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;
6return FP(i)&&r?R(t,e,i,n):y(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;En.fail(`Unexpected symbol at ${En.formatSyntaxKind(t.kind)}: ${En.formatSymbol(e)}`)}return jN(r.parent)&&$N(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!Y(a))||e,c=t?K(t,s):7,l=[],u=new h(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(Du(e.parent))return En.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),_=Y(a)&&s.declarations?w(s.declarations,FP):void 0;if(_)O(_.name,s,_,u.createSearch(t,e,void 0),u,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)M(t,s,u),v(t,s,{exportingModuleSymbol:s.parent,exportKind:1},u);else{const e=u.createSearch(t,s,void 0,{allSearchSymbols:t?$(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});p(s,u,e)}return l}function p(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=w(t,(e=>Gv(e,2)||uu(e)));return e?Bh(e,263):void 0}if(t.some(pY))return;const o=r&&!(262144&e.flags);if(o&&(!pd(r)||r.globalExports))return;let a;for(const s of t){const e=bX(s);if(a&&a!==e)return;if(!e||307===e.kind&&!_f(e))return;if(a=e,mE(a)){let e;for(;e=Yg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)P(r,r.getSourceFile(),n,t,!(nF(r)&&!F(t.sourceFiles,r)));else for(const i of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),S(i,n,t)}let f;var m;function g(e){if(!(33555968&e.flags))return;const t=e.declarations&&w(e.declarations,(e=>!nF(e)&&!dP(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,_,d,p,f={},m=new Set(d.map((e=>e.fileName)))){var g,h;if(nF(a=t(a,f))){const t=gle.getReferenceAtPosition(a,e,_);if(!(null==t?void 0:t.file))return;const r=_.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return s(_,r,!1,d,m);const i=_.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,_)||c}]}if(!f.implementations){const e=function(e,t,n){if($Q(e.kind)){if(116===e.kind&&vE(e.parent))return;if(148===e.kind&&!l(e))return;return function(e,t,n,r){const i=q(e,(e=>(n.throwIfCancellationRequested(),H(T(e,Ga(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return Hce(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?l:void 0)}if(Sf(e.parent)&&e.parent.name===e)return function(e,t){const n=q(e,(e=>(t.throwIfCancellationRequested(),H(T(e,"meta",e),(e=>{const t=e.parent;if(Sf(t))return Hce(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(uN(e)&&wN(e.parent))return[{definition:{type:2,node:e},references:[Hce(e)]}];if(lX(e)){const t=sX(e.parent,e.text);return t&&D(t.parent,t)}return uX(e)?D(e.parent,e):SX(e)?function(e,t,n){let r=fm(e,!1,!1),i=256;switch(r.kind){case 174:case 173:if(Zf(r)){i&=ub(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=ub(r),r=r.parent;break;case 307:if(aO(r)||z(e))return;case 262:case 218:break;default:return}const o=q(307===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),T(e,"this",nF(r)?e:r).filter((e=>{if(!SX(e))return!1;const t=fm(e,!1,!1);if(!T_(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Zf(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&T_(t.parent)&&r.symbol===t.parent.symbol&&Qv(t)===!!i;case 307:return 307===t.kind&&!aO(t)&&!z(e)}}))))).map((e=>Hce(e))),a=y(o,(e=>bN(e.node.parent)?e.node:void 0));return[{definition:{type:3,node:a||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=ym(e,!1);if(!t)return;let n=256;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=ub(t),t=t.parent;break;default:return}const r=H(T(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=ym(e,!1);return r&&Qv(r)===!!n&&r.parent.symbol===t.symbol?Hce(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(a,d,p);if(e)return e}const v=_.getTypeChecker(),b=v.getSymbolAtLocation(DN(a)&&a.parent.name||a);if(!b){if(!f.implementations&&Z_(a)){if(dY(a)){const e=_.getFileIncludeReasons(),t=null==(h=null==(g=_.getResolvedModuleFromModuleSpecifier(a))?void 0:g.resolvedModule)?void 0:h.resolvedFileName,r=t?_.getSourceFile(t):void 0;
6if(r)return[{definition:{type:4,node:a},references:n(r,e,_)||c}]}return function(e,t,n,r){const i=$X(e,n),o=q(t,(t=>(r.throwIfCancellationRequested(),H(T(t,e.text),(r=>{if(Z_(r)&&r.text===e.text){if(!i)return qD(r)&&!lx(r,t)?void 0:Hce(r,2);{const e=$X(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(SN(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return Hce(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(a,d,v,p)}return}if("export="===b.escapedName)return s(_,b.parent,!1,d,m);const x=i(b,_,d,p,f,m);if(x&&!(33554432&b.flags))return x;const S=r(a,b,v),k=S&&i(S,_,d,p,f,m);return o(_,x,u(b,a,d,m,v,p,f),k)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var o,a;const l=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(l)return(null==(a=s(t,l,!1,r,i)[0])?void 0:a.references)||c;const u=t.getFileIncludeReasons(),_=t.getSourceFile(e);return _&&u&&n(_,u,t)||c},(m=f||(f={}))[m.None=0]="None",m[m.Constructor=1]="Constructor",m[m.Class=2]="Class";class h{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=HQ(),this.markSeenReExportRHS=HQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=Ice(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Xy(Ic(zb(t)||g(t)||t)),allSearchSymbols:o=[t]}=r,a=Ec(i),s=this.options.implementations&&e?function(e,t,n){const r=fX(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=H(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>F(o,e)}}referenceAdder(e){const t=eJ(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Hce(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=ZB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const o of t)i=Q(r,eJ(o))||i;return i}}function v(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)b(t,r)&&e(t)}for(const[s,c]of i)E(s.getSourceFile(),r.createSearch(s,c,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)S(e,i,r)}}function b(e,t){return!(!A(e,t)||2===t.options.use&&(!nN(e)||tu(e.parent)&&"default"===e.escapedText))}function x(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();E(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function S(e,t,n){void 0!==k7(e).get(t.escapedText)&&E(e,t,n)}function k(e,t,n,r,i=n){const o=fc(e.parent,e.parent.parent)?Ae(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of T(n,o.name,i)){if(!nN(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||FP(a.parent)&&R(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function T(e,t,n=e){return H(C(e,t,n),(t=>{const n=QX(e,t);return n===e?void 0:n}))}function C(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&Os(i.charCodeAt(s-1),99)||e!==o&&Os(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function D(e,t){const n=e.getSourceFile(),r=t.text,i=H(T(n,r,e),(e=>e===t||lX(e)&&sX(e,r)===t?Hce(e):void 0));return[{definition:{type:1,node:t},references:i}]}function E(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),P(e,e,t,n,r)}
6function P(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of C(t,n.text,e))I(t,o,n,r,i)}function A(e,t){return!!(HG(e)&t.searchMeaning)}function I(e,t,n,r,i){const o=QX(e,t);if(!function(e,t){switch(e.kind){case 81:if(aF(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return(yX(n)||gX(e)||vX(e)||uE(e.parent)&&yg(e.parent)&&e.parent.arguments[1]===e)&&n.text.length===t.length}case 9:return yX(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&cQ(e,t)||r.options.findInComments&&IQ(e,t))&&r.addStringOrCommentReference(e.fileName,ac(t,n.text.length)));if(!A(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(DP(s)&&s.propertyName===o)return;if(FP(s))return En.assert(80===o.kind),void O(o,a,s,n,r,i);if(zl(s)&&s.isNameFirst&&s.typeExpression&&vF(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&_(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);M(t,n.symbol,r),d(e,(e=>{hN(e.name)&&i(e.name.left)}))}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return V(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&W(t)!==W(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&wx(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>U(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&M(o,c,r);break;case 1:!function(e,t,n,r){XG(e)&&M(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(Du(e.parent))En.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=j(e);if(r&&r.declarations)for(const i of r.declarations){const e=BX(i,137,t);En.assert(176===i.kind&&!!e),n(e)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&X(e,110,(e=>{XG(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=Tb(oX(e).parent);t&&(function(e,t){const n=j(e.symbol);if(n&&n.declarations)for(const r of n.declarations){En.assert(176===r.kind);const e=r.body;e&&X(e,108,(e=>{GG(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!j(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);p(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){M(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!Du(r))return;En.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const o of r.members)Fu(o)&&Qv(o)&&o.body&&o.body.forEachChild((function e(t){110===t.kind?i(t):vu(t)||Du(t)||t.forEachChild(e)}))}(o,n,r);break;default:En.assertNever(r.specialSearchKind)}Wm(o)&&oE(o.parent)&&Zm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Bce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Y(r.options)||x(o,r):v(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Jc(t);33554432&e||!o||!n.includes(i)||M(o,i,r)}(a,n,r)}function O(e,t,n,r,i,o,a){En.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,u=s.parent,_=R(e,t,n,i.checker);if(a||r.includes(_)){if(c?e===c?(u.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&M(l,En.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&"default"===l.escapedText||d(),!Y(i.options)||a){const t="default"===e.escapedText||"default"===n.name.escapedText?1:0,r=En.checkDefined(n.symbol),o=Jce(r,t,i.checker);o&&v(e,r,o,i)}if(1!==r.comingFrom&&u.moduleSpecifier&&!c&&!Y(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&x(e,i)}}function d(){o&&M(e,_,i)}}function R(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return En.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function M(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(kh(e)&&(33554432&(r=e.parent).flags?!lP(r)&&!uP(r):$f(r)?H_(r):xu(r)?r.body:Du(r)||k_(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&G(e,n.checker,t);const i=B(e);if(i)return void t(i);const o=wc(e,(e=>!hN(e.parent)&&!Mu(e.parent)&&!Ou(e.parent))),a=o.parent;if(W_(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(H_(a))s(a.initializer);else if(vu(a)&&a.body){const e=a.body;241===e.kind?Jf(e,(e=>{e.expression&&s(e.expression)})):s(e)}else c_(a)&&s(a.expression);function s(e){J(e)&&t(e)}}(e,o,n):o(e,r)}function j(e){return e.members&&e.members.get("__constructor")}function B(e){return nN(e)||cE(e)?B(e.parent):PE(e)?ht(e.parent.parent,vn(Du,lP)):void 0}function J(e){switch(e.kind){case 217:return J(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function U(e,t,n,r){if(e===t)return!0;const i=eJ(e)+","+eJ(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>Rh(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&U(i.symbol,t,n,r)}))));return n.set(i,a),a}function z(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function $(e,t,n,r,i,o){const a=[];return V(e,t,n,r,!(r&&i),((t,n,r)=>{r&&W(e)!==W(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function V(e,t,n,i,o,a,s){const c=T7(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&y(C7(c,n,r,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return FQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const u=e&&a(e,void 0,void 0,3);if(u)return u}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const u=d(e);if(u)return u;if(e.valueDeclaration&&fc(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(yt(e.valueDeclaration,bN),e.name);return En.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const _=ld(e,281);if(!i||_&&!_.propertyName){const e=_&&n.getExportSpecifierLocalTargetSymbol(_);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?pY(t.parent)?fY(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(En.assert(i),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return y(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Map;return o(e);function o(e){if(96&e.flags&&$x(i,eJ(e)))return y(e.declarations,(e=>y(Rh(e),(e=>{const i=n.getTypeAtLocation(e),a=i&&i.symbol&&n.getPropertyOfType(i,t);return i&&a&&(y(n.getRootSymbols(a),r)||o(i.symbol))}))))}}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function p(e,t){const n=ld(e,208);if(n&&pY(n))return fY(t,n)}}function W(e){return!!e.valueDeclaration&&!!(256&cb(e.valueDeclaration))}function K(e,t){let n=HG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=WG(e);t&n&&(n|=t)}}while(n!==e)}return n}function G(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const o of i.getDeclarations())1&WG(o)&&n(o)}
6function X(e,t,n){ZI(e,(e=>{e.kind===t&&n(e),X(e,t,n)}))}function Y(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=Ice(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:u,singleReferences:_}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[d]of l)s(d);for(const d of _)nN(d)&&eE(d.parent)&&s(d);for(const d of u)for(const e of T(d,a?"default":o)){const n=t.getSymbolAtLocation(e),i=te(null==n?void 0:n.declarations,(e=>!!ht(e,NP)));!nN(e)||tu(e.parent)||n!==r&&!i||s(e)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return k(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=k,e.getTopMostDeclarationNamesInFile=function(e,t){return L(T(t,e),(e=>!!Th(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=bX(e),t++;return t}(t);return te(e.declarationNames)&&n!==e.depth?n<e.depth&&(e.declarationNames=[t],e.depth=n):(e.declarationNames.push(t),e.depth=n),e}),{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,t,n,r){if(!e.name||!nN(e.name))return!1;const i=En.checkDefined(n.getSymbolAtLocation(e.name));for(const o of t)for(const t of T(o,i.name)){if(!nN(t)||t===e.name||t.escapedText!==e.name.escapedText)continue;const o=oX(t),a=uE(o.parent)&&o.parent.expression===o?o.parent:void 0,s=n.getSymbolAtLocation(t);if(s&&n.getRootSymbols(s).some((e=>e===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=K,e.getReferenceEntriesForShorthandPropertyAssignment=G})(Yce||(Yce={}));var gle={};function hle(e,t,n,r,i){var o;const a=vle(t,n,e),s=a&&[(l=a.reference.fileName,u=a.fileName,_=a.unverified,{fileName:u,textSpan:sc(0,0),kind:"script",name:l,containerName:void 0,containerKind:void 0,unverified:_})]||c;var l,u,_;if(null==a?void 0:a.file)return s;const p=QX(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||nN(p)&&EF(f)&&f.tagName===p)return function(e,t){const n=wc(t,wu);if(!n||!n.name)return;const r=wc(n,Du);if(!r)return;const i=Ih(r);if(!i)return;const o=bh(i.expression),a=NE(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Pc(Hp(n.name)),c=Yv(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);return c?Dle(e,c,t):void 0}(m,p)||c;if(lX(p)){const e=sX(p.parent,p.text);return e?[Ele(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const e=wc(p.parent,(e=>wN(e)?"quit":xu(e)));return e?[Ale(m,e)]:void 0;case 90:if(!GP(p.parent))break;case 84:const n=wc(p.parent,eP);if(n)return[Ple(n,t)]}if(135===p.kind){const e=wc(p,(e=>xu(e)));return e&&te(e.modifiers,(e=>134===e.kind))?[Ale(m,e)]:void 0}if(127===p.kind){const e=wc(p,(e=>xu(e)));return e&&e.asteriskToken?[Ale(m,e)]:void 0}if(uN(p)&&wN(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=wle(e,m,i),r=L(e.members,wN),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return j(r,(e=>{let{pos:t}=ax(e);return t=hs(a.text,t),Ele(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:g,failedAliasResolution:h}=wle(p,m,i),y=p;if(r&&h){const e=d([p,...(null==g?void 0:g.declarations)||c],(e=>wc(e,Lp))),t=e&&Ig(e);t&&(({symbol:g,failedAliasResolution:h}=wle(t,m,i)),y=t)}if(!g&&dY(y)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(y,t))?void 0:o.resolvedModule;if(n)return[{name:y.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:ac(0,0),failedAliasResolution:h,isAmbient:fO(n.resolvedFileName),unverified:y!==p}]}if(!g)return re(s,function(e,t){return H(t.getIndexInfosAtLocation(e),(e=>e.declaration&&Ale(t,e.declaration)))}(p,m));if(r&&C(g.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const v=function(e,t){const n=function(e){const t=wc(e,(e=>!fX(e))),n=null==t?void 0:t.parent;return n&&Yu(n)&&wm(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return ht(r&&r.declaration,(e=>vu(e)&&!LN(e)))}(m,p);if(v&&(!j_(p.parent)||!function(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}(v))){const e=Ale(m,v,h);if(m.getRootSymbols(g).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||wb(t.parent)||!Yu(t.parent)&&e===(null==(n=ht(t.parent,T_))?void 0:n.symbol)}(e,v))))return[e];{const t=Dle(m,g,p,h,v)||c;return 108===p.kind?[e,...t]:[...t,e]}}if(304===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return re((null==e?void 0:e.declarations)?e.declarations.map((t=>Nle(t,m,e,p,!1,h))):c,yle(m,p))}if(hu(p)&&oE(f)&&rE(f.parent)&&p===(f.propertyName||f.name)){const e=QQ(p),t=m.getTypeAtLocation(f.parent);return void 0===e?c:q(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&Dle(m,n,p)}))}const b=yle(m,p);return re(s,b.length?b:Dle(m,g,p,h))}function yle(e,t){const n=T7(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return q(C7(n,e,r,!1),(n=>Dle(e,n,t)))}return c}function vle(e,t,n){var r,i;const o=Ile(e.referencedFiles,t);
6if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=Ile(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=Ile(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=YX(e,t);let o;if(dY(r)&&Vs(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||ia(Go(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}r(gle,{createDefinitionInfo:()=>Nle,findReferenceInPosition:()=>Ile,getDefinitionAndBoundSpan:()=>Cle,getDefinitionAtPosition:()=>hle,getReferenceAtPosition:()=>vle,getTypeDefinitionAtPosition:()=>kle});var ble=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function xle(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!ble.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function Sle(e,t,n,r){var i,o;if(4&Bx(t)&&function(e,t){const n=t.symbol.name;if(!ble.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return Tle(e.getTypeArguments(t)[0],e,n,r);if(xle(e,t)&&t.aliasTypeArguments)return Tle(t.aliasTypeArguments[0],e,n,r);if(32&Bx(t)&&t.target&&xle(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&uP(a)&&ON(a.type)&&a.type.typeArguments)return Tle(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function kle(e,t,n){const r=QX(t,n);if(r===t)return;if(Sf(r.parent)&&r.parent.name===r)return Tle(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=wle(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&oP(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(Ae(e))}}(i,a,e),c=s&&Tle(s,e,r,o),[l,u]=c&&0!==c.length?[s,c]:[a,Tle(a,e,r,o)];return u.length?[...Sle(e,l,r,o),...u]:!(111551&i.flags)&&788968&i.flags?Dle(e,Nx(i,e),r,o):void 0}function Tle(e,t,n,r){return q(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&Dle(t,e.symbol,n,r)))}function Cle(e,t,n){const r=hle(e,t,n);if(!r||0===r.length)return;const i=Ile(t.referencedFiles,n)||Ile(t.typeReferenceDirectives,n)||Ile(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:BQ(i)};const o=QX(t,n);return{definitions:r,textSpan:ac(o.getStart(),o.getWidth())}}function wle(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return 80===e.kind&&(e.parent===t||274!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function Dle(e,t,n,r,i){const o=L(t.declarations,(e=>e!==i)),a=function(){if(32&t.flags&&!(19&t.flags)&&(XG(n)||137===n.kind)){const e=w(o,Du);return e&&c(e.members,!0)}}()||(QG(n)||hX(n)?c(o,!1):void 0);if(a)return a;const s=L(o,(e=>!function(e){if(!og(e))return!1;const t=wc(e,(e=>!!wb(e)||!og(e)&&"quit"));return!!t&&5===hg(t)}(e)));return j(te(s)?s:o,(i=>Nle(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?DN:vu),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>Nle(r,e,t,n))):[Nle(Le(a),e,t,n,!1,r)]:void 0}}function Nle(e,t,n,r,i,o){const a=t.symbolToString(n),s=q_e.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return Ele(t,e,s,a,c,i,o)}function Ele(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=RQ(Jc(t)||t,c)),g(m({fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i},Ace.toContextSpan(s,c,Ace.getContextNode(t))),{isLocal:!Fle(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a})}function Ple(e,t){const n=Ace.getContextNode(e),r=RQ(Kce(n)?n.start:n,t);return g(m({fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:""},Ace.toContextSpan(r,t,n)),{isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0})}function Fle(e,t){if(e.isDeclarationVisible(t))return!0;
6if(!t.parent)return!1;if(H_(t.parent)&&t.parent.initializer===t)return Fle(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Gv(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Fle(e,t.parent);default:return!1}}function Ale(e,t,n){return Nle(t,e,t.symbol,t,!1,n)}function Ile(e,t){return w(e,(e=>Qs(e,t)))}var Ole={};r(Ole,{provideInlayHints:()=>jle});var Lle=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Rle(e){return"literals"===e.includeInlayParameterNameHints}function Mle(e){return!0===e.interactiveInlayHints}function jle(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=cY(t,o),l=n.getTypeChecker(),u=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(nc(r,n.pos,n.getFullWidth())&&(!Mu(n)||PE(n)))return o.includeInlayVariableTypeHints&&oP(n)||o.includeInlayPropertyDeclarationTypeHints&&kN(n)?f(n):o.includeInlayEnumMemberValueHints&&tF(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,u.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(uE(n)||_E(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=[],r=l.getResolvedSignatureForSignatureHelp(e,n);if(!r||!n.length)return;let i=0;for(const a of t){const e=bh(a);if(Rle(o)&&!h(e)){i++;continue}let t=0;if(DE(e)){const n=l.getTypeAtLocation(e.expression);if(l.isTupleType(n)){const{elementFlags:e,fixedLength:r}=n.target;if(0===r)continue;const i=N(e,(e=>!(1&e)));(i<0?r:i)>0&&(t=i<0?r:i)}}const n=l.getParameterIdentifierInfoAtPosition(r,i);if(i+=t||1,n){const{parameter:t,parameterName:r,isRestParameter:i}=n;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&m(e,r)&&!i)continue;const s=Pc(r);if(g(e,s))continue;_(s,t,a.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&xu(n)&&tC(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(t)for(let n=0;n<e.parameters.length&&n<t.parameters.length;++n){const r=e.parameters[n];if(!b(r))continue;if(Ov(r))continue;const i=y(t.parameters[n]);i&&d(i,r.questionToken?r.questionToken.end:r.name.end)}}(n),o.includeInlayFunctionLikeReturnTypeHints&&function(e){return gE(e)||mE(e)||sP(e)||CN(e)||NN(e)}(n)&&function(e){if(gE(e)&&!BX(e,21,t))return;if(Rv(e)||!e.body)return;const n=l.getSignatureFromDeclaration(e);if(!n)return;const r=l.getReturnTypeOfSignature(n);if(p(r))return;const i=v(r);i&&d(i,function(e){const n=BX(e,22,t);return n?n.end:e.parameters.end}(e))}(n)),ZI(n,e)}}(t),u;function _(e,t,n,r){let i,a=`${r?"...":""}${e}`;Mle(o)?(i=[x(a,t),{text:":"}],a=""):a+=":",u.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){u.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e){if(void 0===e.initializer&&(!kN(e)||1&l.getTypeAtLocation(e).flags)||Bu(e.name)||oP(e)&&!b(e))return;if(Ov(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=v(t);if(n){const t="string"==typeof n?n:n.map((e=>e.text)).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&&Lt(e.name.getText(),t))return;d(n,e.name.end)}}function m(e,t){return nN(e)?e.text===t:!!cE(e)&&e.name.text===t}function g(e,n){if(!Ls(n,BS(s),IS(t.scriptKind)))return!1;const r=Ps(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=Lle(n);return te(r,(e=>i.test(a.substring(e.pos,e.end))))}function h(e){switch(e.kind){case 224:{const t=e.operand;return Xl(t)||nN(t)&&nC(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||nC(t)}}return Xl(e)}function y(e){const t=e.valueDeclaration;if(!t||!bN(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:v(n)}function v(e){if(!Mle(o))return function(e){const n=bz();return kd((r=>{const i=l.typeToTypeNode(e,void 0,71286784);
6En.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typeToTypeNode(e,void 0,71286784);En.assertIsDefined(n,"should always get typenode");const r=[];return i(n),r;function i(e){var t,n;if(!e)return;const o=Ga(e.kind);if(o)r.push({text:o});else if(Xl(e))r.push({text:u(e)});else switch(e.kind){case 80:En.assertNode(e,nN);const o=Fc(e),c=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Jc(e.symbol.declarations[0]);c?r.push(x(o,c)):r.push({text:o});break;case 166:En.assertNode(e,hN),i(e.left),r.push({text:"."}),i(e.right);break;case 182:En.assertNode(e,IN),e.assertsModifier&&r.push({text:"asserts "}),i(e.parameterName),e.type&&(r.push({text:" is "}),i(e.type));break;case 183:En.assertNode(e,ON),i(e.typeName),e.typeArguments&&(r.push({text:"<"}),s(e.typeArguments,", "),r.push({text:">"}));break;case 168:En.assertNode(e,vN),e.modifiers&&s(e.modifiers," "),i(e.name),e.constraint&&(r.push({text:" extends "}),i(e.constraint)),e.default&&(r.push({text:" = "}),i(e.default));break;case 169:En.assertNode(e,bN),e.modifiers&&s(e.modifiers," "),e.dotDotDotToken&&r.push({text:"..."}),i(e.name),e.questionToken&&r.push({text:"?"}),e.type&&(r.push({text:": "}),i(e.type));break;case 185:En.assertNode(e,RN),r.push({text:"new "}),a(e),r.push({text:" => "}),i(e.type);break;case 186:En.assertNode(e,MN),r.push({text:"typeof "}),i(e.exprName),e.typeArguments&&(r.push({text:"<"}),s(e.typeArguments,", "),r.push({text:">"}));break;case 187:En.assertNode(e,jN),r.push({text:"{"}),e.members.length&&(r.push({text:" "}),s(e.members,"; "),r.push({text:" "})),r.push({text:"}"});break;case 188:En.assertNode(e,BN),i(e.elementType),r.push({text:"[]"});break;case 189:En.assertNode(e,JN),r.push({text:"["}),s(e.elements,", "),r.push({text:"]"});break;case 202:En.assertNode(e,UN),e.dotDotDotToken&&r.push({text:"..."}),i(e.name),e.questionToken&&r.push({text:"?"}),r.push({text:": "}),i(e.type);break;case 190:En.assertNode(e,qN),i(e.type),r.push({text:"?"});break;case 191:En.assertNode(e,zN),r.push({text:"..."}),i(e.type);break;case 192:En.assertNode(e,$N),s(e.types," | ");break;case 193:En.assertNode(e,VN),s(e.types," & ");break;case 194:En.assertNode(e,WN),i(e.checkType),r.push({text:" extends "}),i(e.extendsType),r.push({text:" ? "}),i(e.trueType),r.push({text:" : "}),i(e.falseType);break;case 195:En.assertNode(e,HN),r.push({text:"infer "}),i(e.typeParameter);break;case 196:En.assertNode(e,KN),r.push({text:"("}),i(e.type),r.push({text:")"});break;case 198:En.assertNode(e,XN),r.push({text:`${Ga(e.operator)} `}),i(e.type);break;case 199:En.assertNode(e,QN),i(e.objectType),r.push({text:"["}),i(e.indexType),r.push({text:"]"});break;case 200:En.assertNode(e,YN),r.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?r.push({text:"+"}):41===e.readonlyToken.kind&&r.push({text:"-"}),r.push({text:"readonly "})),r.push({text:"["}),i(e.typeParameter),e.nameType&&(r.push({text:" as "}),i(e.nameType)),r.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?r.push({text:"+"}):41===e.questionToken.kind&&r.push({text:"-"}),r.push({text:"?"})),r.push({text:": "}),e.type&&i(e.type),r.push({text:"; }"});break;case 201:En.assertNode(e,ZN),i(e.literal);break;case 184:En.assertNode(e,LN),a(e),r.push({text:" => "}),i(e.type);break;case 205:En.assertNode(e,eE),e.isTypeOf&&r.push({text:"typeof "}),r.push({text:"import("}),i(e.argument),e.assertions&&(r.push({text:", { assert: "}),s(e.assertions.assertClause.elements,", "),r.push({text:" }"})),r.push({text:")"}),e.qualifier&&(r.push({text:"."}),i(e.qualifier)),e.typeArguments&&(r.push({text:"<"}),s(e.typeArguments,", "),r.push({text:">"}));break;case 171:En.assertNode(e,SN),(null==(t=e.modifiers)?void 0:t.length)&&(s(e.modifiers," "),r.push({text:" "})),i(e.name),e.questionToken&&r.push({text:"?"}),e.type&&(r.push({text:": "}),i(e.type));break;case 181:En.assertNode(e,AN),r.push({text:"["}),s(e.parameters,", "),r.push({text:"]"}),e.type&&(r.push({text:": "}),i(e.type));break;case 173:En.assertNode(e,TN),(null==(n=e.modifiers)?void 0:n.length)&&(s(e.modifiers," "),r.push({text:" "})),i(e.name),e.questionToken&&r.push({text:"?"}),a(e),e.type&&(r.push({text:": "}),i(e.type));break;case 179:En.assertNode(e,PN),a(e),e.type&&(r.push({text:": "}),i(e.type));break;case 207:En.assertNode(e,iE),r.push({text:"["}),s(e.elements,", "),r.push({text:"]"});break;case 206:En.assertNode(e,rE),r.push({text:"{"}),e.elements.length&&(r.push({text:" "}),s(e.elements,", "),r.push({text:" "})),r.push({text:"}"});break;case 208:En.assertNode(e,oE),i(e.name);break;case 224:En.assertNode(e,xE),r.push({text:Ga(e.operator)}),i(e.operand);break;case 203:En.assertNode(e,nE),i(e.head),e.templateSpans.forEach(i);break;case 16:En.assertNode(e,zD),r.push({text:u(e)});break;case 204:En.assertNode(e,tE),i(e.type),i(e.literal);break;case 17:En.assertNode(e,$D),r.push({text:u(e)});break;
6case 18:En.assertNode(e,VD),r.push({text:u(e)});break;case 197:En.assertNode(e,GN),r.push({text:"this"});break;default:En.failBadSyntaxKind(e)}}function a(e){e.typeParameters&&(r.push({text:"<"}),s(e.typeParameters,", "),r.push({text:">"})),r.push({text:"("}),s(e.parameters,", "),r.push({text:")"})}function s(e,t){e.forEach(((e,n)=>{n>0&&r.push({text:t}),i(e)}))}function u(e){var t;switch(e.kind){case 11:return 0===c?`'${qy(e.text,39)}'`:`"${qy(e.text,34)}"`;case 16:case 17:case 18:{const n=null!=(t=e.rawText)?t:Iy(qy(e.text,96));switch(e.kind){case 16:return"`"+n+"${";case 17:return"}"+n+"${";case 18:return"}"+n+"`"}}}return e.text}}function b(e){if((hy(e)||oP(e)&&hf(e))&&e.initializer){const t=bh(e.initializer);return!(h(t)||_E(t)||sE(t)||c_(t))}return!0}function x(e,t){const n=t.getSourceFile();return{text:e,span:RQ(t,n),file:n.fileName}}}var Ble={};r(Ble,{getDocCommentTemplateAtPosition:()=>nue,getJSDocParameterNameCompletionDetails:()=>tue,getJSDocParameterNameCompletions:()=>eue,getJSDocTagCompletionDetails:()=>Zle,getJSDocTagCompletions:()=>Yle,getJSDocTagNameCompletionDetails:()=>Qle,getJSDocTagNameCompletions:()=>Xle,getJsDocCommentsFromDeclarations:()=>zle,getJsDocTagsFromDeclarations:()=>Vle});var Jle,Ule,qle=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function zle(e,t){const n=[];return kY(e,(e=>{for(const r of function(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(PF(e.parent))return[e.parent.parent];default:return Xg(e)}}(e)){const i=yF(r)&&r.tags&&w(r.tags,(e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||yF(r)&&346!==e.kind&&338!==e.kind&&r.tags&&r.tags.some((e=>346===e.kind||338===e.kind))&&!r.tags.some((e=>341===e.kind||342===e.kind)))continue;let o=r.comment?Kle(r.comment,t):[];i&&i.comment&&(o=o.concat(Kle(i.comment,t))),F(n,o,$le)||n.push(o)}})),U(T(n,[KY()]))}function $le(e,t){return A(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function Vle(e,t){const n=[];return kY(e,(e=>{const r=bl(e);if(!r.some((e=>346===e.kind||338===e.kind))||r.some((e=>341===e.kind||342===e.kind)))for(const i of r)n.push({name:i.tagName.text,text:Gle(i,t)}),n.push(...Wle(Hle(i),t))})),n}function Wle(e,t){return q(e,(e=>re([{name:e.tagName.text,text:Gle(e,t)}],Wle(Hle(e),t))))}function Hle(e){return zl(e)&&e.isNameFirst&&e.typeExpression&&vF(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Kle(e,t){return"string"==typeof e?[BY(e)]:q(e,(e=>321===e.kind?[BY(e.text)]:VY(e,t)))}function Gle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 341:return RY;case 348:return MY;case 345:return UY;case 346:case 338:return JY;default:return BY}}(r);switch(r){case 349:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Kle(n,t);case 329:case 328:return o(e.class);case 345:const a=e,s=[];if(a.constraint&&s.push(BY(a.constraint.getText())),_(a.typeParameters)){_(s)&&s.push(AY());const e=a.typeParameters[a.typeParameters.length-1];d(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(OY(28),AY())}
6))}return n&&s.push(AY(),...Kle(n,t)),s;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:const{name:c}=e;return c?o(c):void 0===n?void 0:Kle(n,t);default:return void 0===n?void 0:Kle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[BY(r),...Kle(n,t)]:[i(r),AY(),...Kle(n,t)]:[BY(r)];var r}}function Xle(){return Jle||(Jle=j(qle,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Oae.SortText.LocationPriority}))))}var Qle=Zle;function Yle(){return Ule||(Ule=j(qle,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Oae.SortText.LocationPriority}))))}function Zle(e){return{name:e,kind:"",kindModifiers:"",displayParts:[BY(e)],documentation:c,tags:void 0,codeActions:void 0}}function eue(e){if(!nN(e.name))return c;const t=e.name.text,n=e.parent,r=n.parent;return vu(r)?H(r.parameters,(r=>{if(!nN(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&OF(t)&&nN(t.name)&&t.name.escapedText===i))||void 0!==t&&!fn(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:Oae.SortText.LocationPriority}})):[]}function tue(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[BY(e)],documentation:c,tags:void 0,codeActions:void 0}}function nue(e,t,n,r){const i=ZX(t,n),o=wc(i,yF);if(o&&(void 0!==o.comment||_(o.tags)))return;const a=i.getStart(t);if(!o&&a<n)return;const s=function(e,t){return vd(e,(e=>rue(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:u}=s,d=Oe(V_(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t)<n||d&&o&&d!==o)return;const p=function(e,t){const{text:n}=e,r=TX(t,e);let i=r;for(;i<=t&&ls(n.charCodeAt(i));i++);return n.slice(r,i)}(t,n),f=nT(t.fileName),m=(l?function(e,t,n,r){return e.map((({name:e,dotDotDotToken:i},o)=>{const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}
6${r}`})).join("")}(l||[],f,p,e):"")+(u?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=_(bl(c))>0;if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function rue(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:iue(n,t)};case 303:return rue(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&LN(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:iue(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return w(e.members,DN)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:iue(r,t)}:{commentOwner:e}}case 307:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return rue(e.expression,t);case 226:{const n=e;return 0===hg(n)?"quit":vu(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:iue(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(mE(r)||gE(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:iue(r,t)}}}function iue(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(LN(e)||gE(e)&&s_(e.body)||xu(e)&&e.body&&JE(e.body)&&!!Jf(e.body,(e=>e)))}var oue={};function aue(e,t,n,r,i,o){return Q_e.ChangeTracker.with({host:r,formatContext:i,preferences:o},(r=>{const i=t.map((t=>function(e,t){const n=[{parse:()=>rO("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>rO("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:o,body:a}of n){const e=o(),t=a(e);if(t.length&&0===e.parseDiagnostics.length)return t;t.length&&r.push({sourceFile:e,body:t})}const{body:i}=r.sort(((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length))[0];return i}(e,t))),o=n&&U(n);for(const t of i)sue(e,r,t,o)}))}function sue(e,t,n,r){wu(n[0])||Ou(n[0])?function(e,t,n,r){let i;if(i=r&&r.length?d(r,(t=>wc(ZX(e,t.start),vn(Du,lP)))):w(e.statements,vn(Du,lP)),!i)return;const o=i.members.find((e=>n.some((t=>cue(t,e)))));if(o){const r=D(i.members,(e=>n.some((t=>cue(t,e)))));return d(n,lue),void t.replaceNodeRangeWithNodes(e,o,r,n)}d(n,lue),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const o of r){const r=wc(ZX(e,o.start),(e=>vn(JE,nF)(e)&&te(e.statements,(e=>n.some((t=>cue(t,e)))))));if(r){const i=r.statements.find((e=>n.some((t=>cue(t,e)))));if(i){const o=D(r.statements,(e=>n.some((t=>cue(t,e)))));return d(n,lue),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const o of r){const t=wc(ZX(e,o.start),JE);if(t){i=t.statements;break}}d(n,lue),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function cue(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(176===e.kind?e.kind===t.kind:jc(e)&&jc(t)?e.name.getText()===t.name.getText():$E(e)&&$E(t)||WE(e)&&WE(t)?e.expression.getText()===t.expression.getText():HE(e)&&HE(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):m_(e)&&m_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():tP(e)&&tP(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function lue(e){uue(e),e.parent=void 0}function uue(e){e.pos=-1,e.end=-1,e.forEachChild(uue)}r(oue,{mapCode:()=>aue});var _ue={};function due(e,t,n,r,i,o){var a,s;const c=Q_e.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),l="SortAndCombine"===o||"All"===o,u=l,d="RemoveUnused"===o||"All"===o,p=e.statements.filter(hP),f=fue(e,p),{comparersToTest:m,typeOrdersToTest:g}=pue(i),h=m[0],y={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?h:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?h:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:y.moduleSpecifierComparer}=wue(f,m)),!y.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=Due(p,m,g);if(e){const{namedImportComparer:t,typeOrder:n}=e;y.namedImportComparer=null!=(a=y.namedImportComparer)?a:t,y.typeOrder=null!=(s=y.typeOrder)?s:n}}f.forEach((e=>b(e,y))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=_(n);let i=0,o=0;for(;i<r;)if(EP(n[i])){void 0===t[o]&&(t[o]=[]);const e=n[i];if(e.moduleSpecifier)t[o].push(e),i++;else{for(;i<r&&EP(n[i]);)t[o].push(n[i++]);o++}}else i++;return q(t,(t=>fue(e,t)))}(e).forEach((e=>x(e,y.namedImportComparer)));for(const _ of e.statements.filter(yp))_.body&&(fue(e,_.body.statements.filter(hP)).forEac
6h((e=>b(e,y))),"RemoveUnused"!==o&&x(_.body.statements.filter(EP),y.namedImportComparer));return c.getChanges();function v(r,i){if(0===_(r))return;hw(r[0],1024);const o=u?nt(r,(e=>gue(e.moduleSpecifier))):[r],a=q(l?ke(o,((e,t)=>{var n;return Sue(e[0].moduleSpecifier,t[0].moduleSpecifier,null!=(n=y.moduleSpecifierComparer)?n:h)})):o,(e=>gue(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===a.length)c.deleteNodes(e,r,{leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Q_e.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:Q_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Q_e.TrailingTriviaOption.Include,suffix:HY(n,t.options)};c.replaceNodeWithNodes(e,r[0],a,i);const o=c.nodeHasTrailingComment(e,r[0],i);c.deleteNodes(e,r.slice(1),{trailingTriviaOption:Q_e.TrailingTriviaOption.Include},o)}}function b(t,n){var i,o,a;const s=null!=(i=n.moduleSpecifierComparer)?i:h,c=null!=(o=n.namedImportComparer)?o:h,_=Lue({organizeImportsTypeOrder:null!=(a=n.typeOrder)?a:"last"},c);v(t,(t=>(d&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const u of e){const{importClause:e,moduleSpecifier:n}=u;if(!e){c.push(u);continue}let{name:r,namedBindings:i}=e;if(r&&!l(r)&&(r=void 0),i)if(TP(i))l(i.name)||(i=void 0);else{const e=i.elements.filter((e=>l(e.name)));e.length<i.elements.length&&(i=e.length?_w.updateNamedImports(i,e):void 0)}r||i?c.push(bue(u,r,i)):Tue(t,n)&&(t.isDeclarationFile?c.push(_w.createImportDeclaration(u.modifiers,void 0,n,void 0)):c.push(u))}return c;function l(e){return s&&(e.text===o||a&&e.text===a)&&k0(i.jsx)||Ace.Core.isSymbolReferencedInFile(e,r,t)}}(t,e,r)),u&&(t=yue(t,s,_,e)),l&&(t=ke(t,((e,t)=>Bue(e,t,s)))),t)))}function x(e,t){const n=Lue(i,t);v(e,(e=>vue(e,n)))}}function pue(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[Iue(e,e.organizeImportsIgnoreCase)]:[Iue(e,!0),Iue(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function fue(e,t){const n=Rs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&mue(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function mue(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()<i;)if(4===n.scan()&&(o++,o>=2))return!0;return!1}function gue(e){return void 0!==e&&Z_(e)?e.text:void 0}function hue(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]}
6,r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(TP(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function yue(e,t,n,r){if(0===e.length)return e;const i=rt(e,(e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of xe(e.attributes.elements,((e,t)=>zt(e.name.text,t.name.text))))t+=n.name.text+":",t+=Z_(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""})),o=[];for(const a in i){const e=i[a],{importWithoutClause:s,typeOnlyImports:l,regularImports:u}=hue(e);s&&o.push(s);for(const i of[u,l]){const e=i===l,{defaultImports:a,namespaceImports:s,namedImports:u}=i;if(!e&&1===a.length&&1===s.length&&0===u.length){const e=a[0];o.push(bue(e,e.importClause.name,s[0].importClause.namedBindings));continue}const _=ke(s,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const t of _)o.push(bue(t,void 0,t.importClause.namedBindings));const d=Pe(a),p=Pe(u),f=null!=d?d:p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const t of a)g.push(_w.createImportSpecifier(!1,_w.createIdentifier("default"),t.importClause.name));g.push(...Cue(u));const h=_w.createNodeArray(ke(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:_w.createNamedImports(c):p?_w.updateNamedImports(p.importClause.namedBindings,h):_w.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!lx(p.importClause.namedBindings,r)&&hw(y,2),e&&m&&y?(o.push(bue(f,m,void 0)),o.push(bue(null!=p?p:f,void 0,y))):o.push(bue(f,m,y))}}return o}function vue(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const a of[r,i]){if(0===a.length)continue;const e=[];e.push(...q(a,(e=>e.exportClause&&PP(e.exportClause)?e.exportClause.elements:c)));const n=ke(e,t),r=a[0];o.push(_w.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,r.exportClause&&(PP(r.exportClause)?_w.updateNamedExports(r.exportClause,n):_w.updateNamespaceExport(r.exportClause,r.exportClause.name)),r.moduleSpecifier,r.attributes))}return o}function bue(e,t,n){return _w.updateImportDeclaration(e,e.modifiers,_w.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function xue(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Yt(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Yt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function Sue(e,t,n){const r=void 0===e?void 0:gue(e),i=void 0===t?void 0:gue(t);return Yt(void 0===r,void 0===i)||Yt(Vs(r),Vs(i))||n(r,i)}function kue(e){var t;switch(e.kind){case 271:return null==(t=ht(e.moduleReference,LP))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Tue(e,t){const n=BD(t)&&t.text;return mt(n)&&te(e.moduleAugmentations,(e=>BD(e)&&e.text===n))}function Cue(e){return q(e,(e=>j(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&wP(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?_w.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function wue(e,t){const n=[];return e.forEach((e=>{n.push(e.map((e=>gue(kue(e))||"")))})),Eue(n,t)}function Due(e,t,n){var r;let i=!1;const o=e.filter((e=>{var t,n;const r=null==(n=ht(null==(t=e.importClause)?void 0:t.namedBindings,wP))?void 0:n.elements;return!!(null==r?void 0:r.length)&&(!i&&r.some((e=>e.isTypeOnly))&&r.some((e=>!e.isTypeOnly))&&(i=!0),!0)}));if(0===o.length)return;const a=o.map((e=>{var t,n;return null==(n=ht(null==(t=e.importClause)?void 0:t.namedBindings,wP))?void 0:n.elements})).filter((e=>void 0!==e));if(!i||0===n.length){const e=Eue(a.map((e=>e.map((e=>e.name.text)))),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const s={first:1/0,last:1/0,inline:1/0},c={first:t[0],last:t[0],inline:t[0]};for(const l of t){const e={first:0,last:0,inline:0};for(const t of a)for(const i of n)e[i]=(null!=(r=e[i])?r:0)+Nue(t,((e,t)=>
6xue(e,t,l,{organizeImportsTypeOrder:i})));for(const t of n){const n=t;e[n]<s[n]&&(s[n]=e[n],c[n]=l)}}e:for(const l of n){const e=l;for(const t of n)if(s[t]<s[e])continue e;return{namedImportComparer:c[e],typeOrder:e,isSorted:0===s[e]}}return{namedImportComparer:c.last,typeOrder:"last",isSorted:0===s.last}}function Nue(e,t){let n=0;for(let r=0;r<e.length-1;r++)t(e[r],e[r+1])>0&&n++;return n}function Eue(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e)n.length<=1||(t+=Nue(n,i));t<r&&(r=t,n=i)}return{comparer:null!=n?n:t[0],isSorted:0===r}}function Pue(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:274===(null==(t=e.importClause.namedBindings)?void 0:t.kind)?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Fue(e){return e?qt:zt}function Aue(e,t){var n,r,i;const o=function(e){let t=e.organizeImportsLocale;"auto"===t&&(t=Kt()),void 0===t&&(t="en");const n=Intl.Collator.supportedLocalesOf(t),r=n.length?n[0]:"en";return r}(t),a=null!=(n=t.organizeImportsCaseFirst)&&n,s=null!=(r=t.organizeImportsNumericCollation)&&r,c=null==(i=t.organizeImportsAccentCollation)||i,l=e?c?"accent":"base":c?"variant":"case";return new Intl.Collator(o,{usage:"sort",caseFirst:a||"false",sensitivity:l,numeric:s}).compare}function Iue(e,t){var n;return"unicode"===(null!=(n=e.organizeImportsCollation)?n:"ordinal")?Aue(t,e):Fue(t)}function Oue(e,t){return wue([e],pue(t).comparersToTest)}function Lue(e,t){const n=null!=t?t:Fue(!!e.organizeImportsIgnoreCase);return(t,r)=>xue(t,r,n,e)}function Rue(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=pue(t),o=Due([e],r,i);let a,s=Lue(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=Lue({organizeImportsTypeOrder:t},e)}else if(n){const e=Due(n.statements.filter(hP),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=Lue({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function Mue(e,t,n){const r=Je(e,t,kt,((e,t)=>Bue(e,t,n)));return r<0?~r:r}function jue(e,t,n){const r=Je(e,t,kt,n);return r<0?~r:r}function Bue(e,t,n){return Sue(kue(e),kue(t),n)||function(e,t){return jt(Pue(e),Pue(t))}(e,t)}function Jue(e,t,n,r){const i=Fue(t);return yue(e,i,Lue({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function Uue(e,t,n){return vue(e,((e,r)=>{var i;return xue(e,r,Fue(t),{organizeImportsTypeOrder:null!=(i=null==n?void 0:n.organizeImportsTypeOrder)?i:"last"})}))}function que(e,t,n){return Sue(e,t,Fue(!!n))}r(_ue,{compareImportsOrRequireStatements:()=>Bue,compareModuleSpecifiers:()=>que,getDetectionLists:()=>pue,getImportDeclarationInsertionIndex:()=>Mue,getImportSpecifierInsertionIndex:()=>jue,getNamedImportSpecifierComparerWithDetection:()=>Rue,getOrganizeImportsStringComparerWithDetection:()=>Oue,organizeImports:()=>due,testCoalesceExports:()=>Uue,testCoalesceImports:()=>Jue});var zue={};function $ue(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i<a;){for(;i<a&&!Op(o[i]);)s(o[i]),i++;if(i===a)break;const t=i;for(;i<a&&Op(o[i]);)s(o[i]),i++;const r=i-1;r!==t&&n.push(Gue(BX(o[t],102,e).getStart(e),o[r].getEnd(),"imports"))}function s(i){var o;if(0===r)return;t.throwIfCancellationRequested(),(N_(i)||UE(i)||YE(i)||Zu(i)||1===i.kind)&&Kue(i,e,t,n),vu(i)&&kE(i.parent)&&cE(i.parent.left)&&Kue(i.parent.left,e,t,n),(JE(i)||pP(i))&&Hue(i.statements.end,e,t,n),(Du(i)||lP(i))&&Hue(i.members.end,e,t,n);const a=function(e,t){switch(e.kind){case 241:if(vu(e.parent))return function(e,t,n){const r=function(e,t,n){if(gx(e.parameters,n)){const t=BX(e,21,n);if(t)return t}return BX(t,19,n)}(e,t,n),i=BX(t,20,n);return r&&i&&Xue(r,i,e,n,219!==e.kind)}(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return u(e.parent);case 258:const n=e.parent;if(n.tryBlock===e)return u(e.parent);if(n.finallyBlock===e){const e=BX(n,98,t);if(e)return u(e)}default:return Que(RQ(e,t),"code")}case 268:return u(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return u(e);case 189:return u(e,!1,!JN(e.parent),23);case 296:case 297:return _(e.statements);case 210:return l(e);case 209:return l(e,23);case 284:return o(e);case 288:return a(e);case 285:case 286:return s(e.attributes);case 228:case 15:return c(e);case 207:return u(e,!1,!oE(e.parent),23);case 219:return i(e);case 213:return r(e);case 217:return d(e);
6case 275:case 279:case 300:return n(e)}function n(e){if(!e.elements.length)return;const n=BX(e,19,t),r=BX(e,20,t);return n&&r&&!hx(n.pos,r.pos,t)?Xue(n,r,e,t,!1,!1):void 0}function r(e){if(!e.arguments.length)return;const n=BX(e,21,t),r=BX(e,22,t);return n&&r&&!hx(n.pos,r.pos,t)?Xue(n,r,e,t,!1,!0):void 0}function i(e){if(!(JE(e.body)||fE(e.body)||hx(e.body.getFullStart(),e.body.getEnd(),t)))return Que(sc(e.body.getFullStart(),e.body.getEnd()),"code",RQ(e))}function o(e){const n=sc(e.openingElement.getStart(t),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(t);return Que(n,"code",n,!1,"<"+r+">...</"+r+">")}function a(e){const n=sc(e.openingFragment.getStart(t),e.closingFragment.getEnd());return Que(n,"code",n,!1,"<>...</>")}function s(e){if(0!==e.properties.length)return Gue(e.getStart(t),e.getEnd(),"code")}function c(e){if(15!==e.kind||0!==e.text.length)return Gue(e.getStart(t),e.getEnd(),"code")}function l(e,t=19){return u(e,!1,!aE(e.parent)&&!uE(e.parent),t)}function u(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=BX(e,o,t),c=BX(e,a,t);return s&&c&&Xue(s,c,n,t,r,i)}function _(e){return e.length?Que(BQ(e),"code"):void 0}function d(e){if(!hx(e.getStart(),e.getEnd(),t))return Que(sc(e.getStart(),e.getEnd()),"code",RQ(e))}}(i,e);a&&n.push(a),r--,uE(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):$E(i)&&i.elseStatement&&$E(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=Wue(e.text.substring(i,r));if(o&&!vQ(e,i))if(o[1]){const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}else{const t=sc(e.text.indexOf("//",i),r);n.push(Que(t,"region",t,!1,o[2]||"#region"))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start))}r(zue,{collectElements:()=>$ue});var Vue=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function Wue(e){return fn(e=e.trimStart(),"//")?(e=e.slice(2).trim(),Vue.exec(e)):null}function Hue(e,t,n,r){const i=Ps(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:u,pos:_,end:d}of i)switch(n.throwIfCancellationRequested(),u){case 2:if(Wue(c.slice(_,d))){l(),s=0;break}0===s&&(o=_),a=d,s++;break;case 3:l(),r.push(Gue(_,d,"comment")),s=0;break;default:En.assertNever(u)}function l(){s>1&&r.push(Gue(o,a,"comment"))}l()}function Kue(e,t,n,r){JD(e)||Hue(e.pos,t,n,r)}function Gue(e,t,n){return Que(sc(e,t),n)}function Xue(e,t,n,r,i=!1,o=!0){return Que(sc(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",RQ(n,r),i)}function Que(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var Yue={};function Zue(e,t,n,r){const i=XX(QX(t,n));if(i_e(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(Z_(e)){const r=$X(e,t);if(r&&(128&r.flags||1048576&r.flags&&C(r.types,(e=>!!(128&e.flags)))))return t_e(e.text,e.text,"string","",e,n)}else if(_X(e)){const t=ap(e);return t_e(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&zo(n.fileName,".d.ts")}(r,e))))return n_e(Pa.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(nN(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(Z_(e)&&Lg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Vs(e.text))return n_e(Pa.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&w(n.declarations,nF);if(!r)return;const i=tn(e.text,"/index")||tn(e.text,"/index.js")?void 0:rn(_T(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=ac(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&w(t.declarations,(e=>DP(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=e_e(e.path);if(void 0===o)return te(i,(e=>ZZ(e.getSourceFile().path)))?Pa.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const a of i){const e=e_e(a.getSourceFile().path);if(e){const t=Math.min(o.length,e.length);for(let n=0;n<=t;n++)if(0!==zt(o[n],e[n]))return Pa.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return n_e(s);const c=q_e.getSymbolKind(t,o,e),l=eZ(e)||Zh(e)&&167===e.parent.kind?Xy(oy(e)):void 0,u=l||t.symbolToString(o),_=l||t.getFullyQualifiedName(o);return t_e(u,_,c,q_e.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);
6if(n)return n}return n_e(Pa.You_cannot_rename_this_element)}function e_e(e){const t=Zo(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function t_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:r_e(i,o)}}function n_e(e){return{canRename:!1,localizedErrorMessage:fS(e)}}function r_e(e,t){let n=e.getStart(t),r=e.getWidth(t);return Z_(e)&&(n+=1,r-=2),ac(n,r)}function i_e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return yX(e);default:return!1}}r(Yue,{getRenameInfo:()=>Zue,nodeIsEligibleForRename:()=>i_e});var o_e={};function a_e(e,t,n,r,i){const o=e.getTypeChecker(),a=nQ(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(cQ(t,n,a)||vQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!nF(o)&&(i||!JE(o));o=o.parent){En.assert(CX(o.parent,o),"Not a subspan",(()=>`Child: ${En.formatSyntaxKind(o.kind)}, parent: ${En.formatSyntaxKind(o.parent.kind)}`));const e=__e(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const u=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!Zu(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return F(r,e);case 28:{const t=JX(e);return!!t&&F(r,t)}case 30:return s_e(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!s_e(i,r,nN(a)?a.parent:a))return;const s=hQ(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:Ae(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return En.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),u?o.runWithCancellationToken(i,(e=>0===u.kind?T_e(u.candidates,u.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const c=[C_e(e,s,a,S_e(r),o)];return{items:c,applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(u.symbol,l,t,e))):$m(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=x_e(e.invocation),i=cE(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:y(t.getSourceFiles(),(t=>y(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>T_e(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function s_e(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=iQ(r,t,i,!0);if(e)return CX(n,e);i=i.parent}return En.fail("Could not find preceding token")}function c_e(e,t,n,r){const i=u_e(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function l_e(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:b_e(e.parent,e,t),argumentIndex:0};{const t=JX(e);return t&&{list:t,argumentIndex:g_e(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return h_e(e,t,void 0)}(r,o);0!==a&&En.assertLessThan(a,s);const c=function(e,t){const n=e.getFullStart(),r=hs(t.text,e.getEnd(),!1);return ac(n,r-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function u_e(e,t,n,r){const{parent:i}=e;if(Zu(i)){const t=i,o=l_e(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(qD(e)&&dE(i))return NQ(e,t,n)?y_e(i,0,n):void 0;if(zD(e)&&215===i.parent.kind){const r=i,o=r.parent;return En.assert(228===r.kind),y_e(o,NQ(e,t,n)?0:1,n)}if(jE(i)&&dE(i.parent.parent)){const r=i,o=i.parent.parent;if(VD(e)&&!NQ(e,t,n))return;const a=function(e,t,n,r){return En.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Zl(t)?NQ(t,
6n,r)?0:e+2:e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return y_e(o,a,n)}if(j_(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:ac(e,hs(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=yQ(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:sc(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function __e(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return wc(e.parent,(e=>!!bN(e)||!(oE(e)||rE(e)||iE(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const n=l_e(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=CN(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 226:{const t=d_e(i),n=r.getContextualType(t),o=21===e.kind?0:p_e(i)-1,a=p_e(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:RQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,u=a.getNonNullableType(),_=u.symbol;if(void 0===_)return;const d=Oe(u.getCallSignatures());return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:f_e(_)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,0,n,r)||u_e(e,t,n,r)}function d_e(e){return kE(e.parent)?d_e(e.parent):e}function p_e(e){return kE(e.left)?p_e(e.left)+1:2}function f_e(e){return"__type"===e.name&&y(e.declarations,(e=>{var t;return LN(e)?null==(t=ht(e.parent,T_))?void 0:t.symbol:void 0}))||e}function m_e(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=N(e,(e=>!(1&e)));return r<0?t:r}return 0}function g_e(e,t,n){return h_e(e,t,n)}function h_e(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const a of r){if(n&&a===n)return o||28!==a.kind||i++,i;DE(a)?(i+=m_e(a,e),o=!0):28===a.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===Le(r).kind?i+1:i}function y_e(e,t,n){const r=qD(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&En.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:v_e(e,n),argumentIndex:t,argumentCount:r}}function v_e(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 228===n.kind&&0===Le(n.templateSpans).literal.getFullWidth()&&(i=hs(t.text,i,!1)),ac(r,i-r)}function b_e(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return En.assert(i>=0&&r.length>i+1),r[i+1]}function x_e(e){return 0===e.kind?wm(e.node):e.called}function S_e(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}r(o_e,{getArgumentInfoForCompletions:()=>c_e,getSignatureHelpItems:()=>a_e});var k_e=70246400;function T_e(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},s,l,u){var _;const d=S_e(o),p=2===o.kind?o.symbol:l.getSymbolAtLocation(x_e(o))||u&&(null==(_=t.declaration)?void 0:_.symbol),f=p?QY(l,p,u?s:void 0,void 0):c,m=j(e,(e=>function(e,t,n,r,i,o){const a=(n?N_e:E_e)(e,r,i,o);return j(a,(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...D_e(e,i,r)],u=e.getDocumentationComment(r),_=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:w_e,parameters:o,documentation:u,tags:_}}))}(e,f,n,l,d,s)));0!==a&&En.assertLessThan(a,r);let g=0,h=0;for(let c=0;c<m.length;c++){const n=m[c];if(e[c]===t&&(g=h,n.length>1)){let e=0;for(const t of n){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=n.length}En.assert(-1!==g);const y={items:z(m,kt),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=N(v.parameters,(e=>!!e.isRest));-1<e&&e<v.parameters.length-1?y.argumentIndex=v.parameters.length:y.argumentIndex=Math.min(y.argumentIndex,v.parameters.length-1)}return y}function C_e(e,t,n,r,i){const o=QY(n,e),a=bz(),s=t.map((e=>P_e(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,OY(30)],suffixDisplayParts:[OY(32)],separatorDisplayParts:w_e,parameters:s,documentation:c,tags:l}}var w_e=[OY(28),AY()];function D_e(e,t,n){return GY((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function N_e(e,t,n,r){const i=(e.target||e).typeParameters,o=bz(),a=(i||c).map((e=>P_e(e,t,n,r,o))),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,k_e)]:[];return t.getExpandedParameters(e).map((e=>{const i=_w.createNodeArray([...s,...j(e,(e=>t.symbolToParameterDeclaration(e,n,k_e)))]),c=GY((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:a,prefix:[OY(30)],suffix:[OY(32),...c]}}))}function E_e(e,t,n,r){const i=bz(),o=GY((o=>{if(e.typeParameters&&e.typeParameters.length){const a=_w.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,k_e))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=ht(e[e.length-1],dd))?void 0:t.links.checkFlags)
6)}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=GY((o=>{const a=t.symbolToParameterDeclaration(e,n,k_e);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=dd(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,OY(21)],suffix:[OY(22)]})))}function P_e(e,t,n,r,i){const o=GY((o=>{const a=t.typeParameterToDeclaration(e,n,k_e);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var F_e={};function A_e(e,t){var n,r;let i={textSpan:sc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=L_e(o);if(!i.length)break;for(let c=0;c<i.length;c++){const l=i[c-1],u=i[c],_=i[c+1];if(tp(u,t,!0)>e)break e;const d=Re(Fs(t.text,u.end));if(d&&2===d.kind&&s(d.pos,d.end),I_e(t,e,u)){if(h_(u)&&xu(o)&&!hx(u.getStart(t),u.getEnd(),t)&&a(u.getStart(t),u.getEnd()),JE(u)||jE(u)||zD(u)||VD(u)||l&&zD(l)||aP(u)&&UE(o)||WF(u)&&aP(o)||oP(u)&&WF(o)&&1===i.length||iF(u)||bF(u)||vF(u)){o=u;break}jE(o)&&_&&eu(_)&&a(u.getFullStart()-2,_.getStart()+1);const e=WF(u)&&B_e(l)&&J_e(_)&&!hx(l.getStart(),_.getStart(),t);let s=e?l.getEnd():u.getStart();const c=e?_.getStart():U_e(t,u);if(V_(u)&&(null==(n=u.jsDoc)?void 0:n.length)&&a(Ae(u.jsDoc).getStart(),c),WF(u)){const e=u.getChildren()[0];e&&V_(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==u.pos&&(s=Math.min(s,Ae(e.jsDoc).getStart()))}a(s,c),(BD(u)||e_(u))&&a(s+1,c-1),o=u;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=sc(t,n);(!i||!bY(r,i.textSpan)&&ic(r,e))&&(i=m({textSpan:r},i&&{parent:i}))}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function I_e(e,t,n){return En.assert(n.pos<=t),t<n.end||n.getEnd()===t&&QX(e,t).pos<n.end}r(F_e,{getSmartSelectionRange:()=>A_e});var O_e=vn(hP,gP);function L_e(e){var t;if(nF(e))return R_e(e.getChildAt(0).getChildren(),O_e);if(YN(e)){const[t,...n]=e.getChildren(),r=En.checkDefined(n.pop());En.assertEqual(t.kind,19),En.assertEqual(r.kind,20);const i=R_e(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,j_e(M_e(R_e(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(SN(e)){const n=R_e(e.getChildren(),(t=>t===e.name||F(e.modifiers,t))),r=320===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=M_e(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,j_e(i)]:i}if(bN(e)){const t=R_e(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return M_e(R_e(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return oE(e)?M_e(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function R_e(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(j_e(r)),r=void 0),n.push(i));return r&&n.push(j_e(r)),n}function M_e(e,t,n=!0){if(e.length<2)return e;const r=N(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=Le(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=de([i.length?j_e(i):void 0,o,c.length?j_e(c):void 0]);return s?l.concat(a):l}function j_e(e){return En.assertGreaterThanOrEqual(e.length,1),$T(NI.createSyntaxList(e),e[0].pos,Le(e).end)}function B_e(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function J_e(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function U_e(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var q_e={};r(q_e,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>G_e,getSymbolKind:()=>$_e,getSymbolModifiers:()=>H_e});var z_e=70246400;function $_e(e,t,n){const r=V_e(e,t,n);if(""!==r)return r;const i=Ex(t);return 32&i?ld(t,231)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function V_e(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&Ae(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&s_(n)||Fv(n))return"parameter";const i=Ex(t);if(3&i)return NY(t)?"parameter":t.valueDeclaration&&hf(t.valueDeclaration)?"const":t.valueDeclaration&&gf(t.valueDeclaration)?"using":t.valueDeclaration&&mf(t.valueDeclaration)?"await using":d(t.declarations,vf)?"let":X_e
6(t)?"local var":"var";if(16&i)return X_e(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=d(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function W_e(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=SQ(t,_(n)&&y0(t)&&te(n,(e=>!y0(e)))?65536:0);if(r)return r.split(",")}return[]}function H_e(e,t){if(!t)return"";const n=new Set(W_e(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&d(W_e(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Xe(n.values()).join(","):""}function K_e(e,t,n,r,i,o,a,s){var l;const u=[];let _=[],p=[];const f=Ex(t);let m=1&a?V_e(e,t,i):"",g=!1;const h=110===i.kind&&Rm(i)||Fv(i);let v,b,x=!1;if(110===i.kind&&!h)return{displayParts:[IY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==m||32&f||2097152&f){if("getter"===m||"setter"===m){const e=w(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:m="getter";break;case 178:m="setter";break;case 172:m="accessor";break;default:En.assertNever(e)}else m="property"}let n,a;if(null!=o||(o=h?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(Zu(i)?a=i:(GG(i)||XG(i)||i.parent&&(j_(i.parent)||dE(i.parent))&&vu(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=214===a.kind||uE(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||F(s,n.target)||F(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&f?(m="constructor",N(o.symbol,m)):2097152&f?(m="alias",E(m),u.push(AY()),i&&(4&n.flags&&(u.push(IY(128)),u.push(AY())),u.push(IY(105)),u.push(AY())),D(t)):N(t,m),m){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":u.push(OY(59)),u.push(AY()),16&Bx(o)||!o.symbol||(he(u,QY(e,o.symbol,r,void 0,5)),u.push(KY())),i&&(4&n.flags&&(u.push(IY(128)),u.push(AY())),u.push(IY(105)),u.push(AY())),P(n,s,262144);break;default:P(n,s)}g=!0,x=s.length>1}}else if(hX(i)&&!(98304&f)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&w(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=176===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(m="constructor",N(o.symbol,m)):N(179!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,m),n&&P(n,i),g=!0,x=i.length>1}}}if(32&f&&!g&&!h&&(T(),ld(t,231)?E("local class"):u.push(IY(86)),u.push(AY()),D(t),A(t,n)),64&f&&2&a&&(k(),u.push(IY(120)),u.push(AY()),D(t),A(t,n)),524288&f&&2&a&&(k(),u.push(IY(156)),u.push(AY()),D(t),A(t,n),u.push(AY()),u.push(LY(64)),u.push(AY()),he(u,XY(e,i.parent&&jl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608))),384&f&&(k(),te(t.declarations,(e=>_P(e)&&pf(e)))&&(u.push(IY(87)),u.push(AY())),u.push(IY(94)),u.push(AY()),D(t)),1536&f&&!h){k();const e=ld(t,267),n=e&&e.name&&80===e.name.kind;u.push(IY(n?145:144)),u.push(AY()),D(t)}if(262144&f&&2&a)if(k(),u.push(OY(21)),u.push(BY("type parameter")),u.push(OY(22)),u.push(AY()),D(t),t.parent)C(),D(t.parent,r),A(t.parent,r);else{const r=ld(t,168);if(void 0===r)return En.fail();const i=r.parent;if(i)if(vu(i)){C();const t=e.getSignatureFromDeclaration(i);180===i.kind?(u.push(IY(105)),u.push(AY())):179!==i.kind&&i.name&&D(i.symbol),he(u,YY(e,t,n,32))}else uP(i)&&(C(),u.push(IY(156)),u.push(AY()),D(i.symbol),A(i.symbol,n))}if(8&f){m="enum member",N(t,"enum member");const n=null==(l=t.declarations)?void 0:l[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(u.push(AY()),u.push(LY(64)),u.push(AY()),u.push(FY(fp(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(k(),!g||0===_.length&&0===p.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Jc(i);if(s&&!g){const c=vp(i)&&Xv(i,128),l="default"!==t.name&&!c,_=K_e(e,n,Id(i),r,s,o,a,l?t:n);u.push(..._.displayParts),u.push(KY()),v=_.documentation,b=_.tags}else v=n.getContextualDocumentationComment(i,e),b=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:u.push(IY(95)),u.push(AY()),u.push(IY(145));break;case 277:u.push(IY(95)),u.push(AY()),u.push(IY(t.declarations[0].isExportEquals?64:90));break;case 281:u.push(IY(95));break;default:u.push(IY(102))}u.push(AY()),D(t),d(t.declarations,(t=>{if(271===t.kind){const n=t;if(Bm(n))u.push(AY()),u.push(LY(64)),u.push(AY()),u.push(IY(149)),u.push(OY(21)),u.push(FY(ap(Jm(n)),8)),u.push(OY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(u.push(AY()),u.push(LY(64)),u.push(AY()),D(t,r))}return!0}}))}if(!g)if(""!==m){if(o)if(h?(k(),u.push(IY(110))):N(t,m),"property"===m||"accessor"===m||"getter"===m||"setter"===m||"JSX attribute"===m||3&f||"local var"===m||"index"===m||"using"===m||"await using"===m||h){if(u.push(OY(59)),u.push(AY()),o.symbol&&262144&o.symbol.flags&&"index"!==m){const t=GY((t=>{const n=e.typeParameterToDeclaration(o,r,z_e);S().writeNode(4,n,Id(Nc(r)),t)}));he(u,t)}else he(u,XY(e,o,r));if(dd(t)&&t.links.target&&dd(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;En.assertNode(e.name,nN),u.push(AY()),u.push(OY(21)),u.push(BY(Fc(e.name))),u.push(OY(22))}}else if(16&f||8192&f||16384&f||131072&f||98304&f||"method"===m){const e=o.getNonNullableType().getCallSignatures();e.length&&(P(e[0],e),x=e.length>1)}}else m=$_e(e,t,i);if(0!==_.length||x||(_=t.getContextualDocumentationComment(r,e)),0===_.length&&4&f&&t.parent&&t.declarations&&d(t.parent.declarations,(e=>307===e.kind)))for(const c of t.declarations){if(!c.parent||226!==c.parent.kind)continue;const t=e.getSymbolAtLocation(c.parent.right);if(t&&(_=t.getDocumentationComment(e),p=t.getJsDocTags(e),_.length>0))break}if(0===_.length&&nN(i)&&t.valueDeclaration&&oE(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(nN(i)&&rE(r)){const t=oy(i),n=e.getTypeAtLocation(r);_=y(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||c}}return 0!==p.length||x||(p=t.getContextualJsDocTags(r,e)),0===_.length&&v&&(_=v),0===p.length&&b&&(p=b),{displayParts:u,documentation:_,symbolKind:m,tags:0===p.length?void 0:p};function S(){return bz()}function k(){u.length&&u.push(KY()),T()}function T(){s&&(E("alias"),u.push(AY()))}function C(){u.push(AY()),u.push(IY(103)),u.push(AY())}function D(r,i){let o;s&&r===t&&(r=s),"index"===m&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=QY(e,r.parent)),a.push(OY(23)),o.forEach(((t,n)=>{a.push(...XY(e,t.keyType)),n!==o.length-1&&(a.push(AY()),a.push(OY(52)),a.push(AY()))}
6)),a.push(OY(24))):a=QY(e,r,i||n,void 0,7),he(u,a),16777216&t.flags&&u.push(OY(58))}function N(e,t){k(),t&&(E(t),e&&!te(e.declarations,(e=>gE(e)||(mE(e)||NE(e))&&!e.name))&&(u.push(AY()),D(e)))}function E(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void u.push(jY(e));default:return u.push(OY(21)),u.push(jY(e)),void u.push(OY(22))}}function P(t,n,i=0){he(u,YY(e,t,r,32|i)),n.length>1&&(u.push(AY()),u.push(OY(21)),u.push(LY(40)),u.push(FY((n.length-1).toString(),7)),u.push(AY()),u.push(BY(2===n.length?"overload":"overloads")),u.push(OY(22))),_=t.getDocumentationComment(e),p=t.getJsDocTags(),n.length>1&&0===_.length&&0===p.length&&(_=n[0].getDocumentationComment(e),p=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function A(t,n){const r=GY((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,z_e);S().writeList(53776,i,Id(Nc(n)),r)}));he(u,r)}}function G_e(e,t,n,r,i,o=HG(i),a){return K_e(e,t,n,r,i,void 0,o,a)}function X_e(e){return!e.parent&&d(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!Yf(t);t=t.parent)if(307===t.kind||268===t.kind)return!1;return!0}))}var Q_e={};function Y_e(e){const t=e.__pos;return En.assert("number"==typeof t),t}function Z_e(e,t){En.assert("number"==typeof t),e.__pos=t}function ede(e){const t=e.__end;return En.assert("number"==typeof t),t}function tde(e,t){En.assert("number"==typeof t),e.__end=t}r(Q_e,{ChangeTracker:()=>pde,LeadingTriviaOption:()=>nde,TrailingTriviaOption:()=>rde,applyChanges:()=>hde,assignPositionsToNode:()=>bde,createWriter:()=>Sde,deleteNode:()=>Tde,isThisTypeAnnotatable:()=>_de,isValidLocationToAddComment:()=>kde});var nde=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(nde||{}),rde=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(rde||{});function ide(e,t){return hs(e,t,!1,!0)}var ode={leadingTriviaOption:0,trailingTriviaOption:0};function ade(e,t,n,r){return{pos:sde(e,t,r),end:lde(e,n,r)}}function sde(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=TX(n,e);return DX(t,r)?r:n}if(2===a){const n=Pf(t,e.text);if(null==n?void 0:n.length)return TX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=TX(s,e);if(TX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=Ps(e.text,s))?void 0:i[0])||(null==(o=Fs(e.text,s))?void 0:o[0]);if(t)return hs(e.text,t.end,!0,!0)}const u=s>0?1:0;let _=Md(Sv(e,l)+u,e);return _=ide(e.text,_),Md(Sv(e,_),e)}function cde(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=Fs(e.text,r);if(n){const r=Sv(e,t.end);for(const t of n){if(2===t.kind||Sv(e,t.pos)>r)break;if(Sv(e,t.end)>r)return hs(e.text,t.end,!0,!0)}}}}function lde(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=re(Fs(e.text,i),Ps(e.text,i)),n=null==(r=null==t?void 0:t[t.length-1])?void 0:r.end;return n||i}const a=cde(e,t,n);if(a)return a;const s=hs(e.text,i,!0);return s===i||2!==o&&!us(e.text.charCodeAt(s-1))?i:s}function ude(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function _de(e){return mE(e)||sP(e)}var dde,pde=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(HY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){En.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:JQ(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,ade(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=sde(e,i,n,r),o=lde(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!cde(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:hs(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=sde(e,t,r),o=lde(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=sde(e,t,r),o=void 0===n?e.text.length:sde(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=ode){this.replaceRange(e,ade(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=ode){this.replaceRange(e,ade(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=ode){this.replaceRangeWithNodes(e,ade(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,ade(e,t,t,ode),n)}replaceNodeRangeWithNodes(e,t,n,r,i=ode){this.replaceRangeWithNodes(e,ade(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=ode){return!!cde(e,t,n)}nextCommaToken(e,t){const n=rQ(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,nx(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,nx(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const l of e.statements){if(!Tf(l))break;t=l}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=As(r);void 0!==i&&(n=i.length,c());const o=Ps(r,n);if(!o)return n;let a,s;for(const l of o){if(3===l.kind){if(Zd(r,l.pos)){a={range:l,pinnedOrTripleSlash:!0};continue}}else if(Yd(r,l.pos,l.end)){a={range:l,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(l.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),s<e.getLineAndCharacterOfPosition(l.end).line+2))break;a={range:l,pinnedOrTripleSlash:!1}}return a&&(n=a.range.end,c()),n;function c(){if(n<r.length){const e=r.charCodeAt(n);us(e)&&(n++,n<r.length&&13===e&&10===r.charCodeAt(n)&&n++)}}}(e),i={prefix:0===r?void 0:this.newLineCharacter,suffix:(us(e.text.charCodeAt(r))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};pt(t)?this.insertNodesAt(e,r,t,i):this.insertNodeAt(e,r,t,i)}insertNodesAtEndOfFile(e,t,n){this.insertAtEndOfFile(e,t,n)}insertAtEndOfFile(e,t,n){const r=e.end+1,i={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(n?this.newLineCharacter:"")};this.insertNodesAt(e,r,t,i)}insertStatementsInNewFile(e,t,n){this.newFileChanges||(this.newFileChanges=ct()),this.newFileChanges.add(e,{oldFile:n,statements:t})}insertFirstParameter(e,t,n){const r=Pe(t);r?this.insertNodeBefore(e,r,n):this.insertNodeAt(e,t.pos,n)}insertNodeBefore(e,t,n,r=!1,i={}){this.insertNodeAt(e,sde(e,t,i),n,this.getOptionsForInsertNodeBefore(t,n,r))}insertNodesBefore(e,t,n,r=!1,i={}){this.insertNodesAt(e,sde(e,t,i),n,this.getOptionsForInsertNodeBefore(t,Ae(n),r))}insertModifierAt(e,t,n,r={}){this.insertNodeAt(e,t,_w.createToken(n),r)}insertModifierBefore(e,t,n){return this.insertModifierAt(e,n.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,n,r){const i=Md(t,e),o=oZ(e.text,i),a=kde(e,o),s=YX(e,a?o:n),c=e.text.slice(i,o),l=`${a?"":this.newLineCharacter}//${r}${this.newLineCharacter}${c}`;this.insertText(e,s.getStart(e),l)}insertJsdocCommentBefore(e,t,n){const r=t.getStart(e);if(t.jsDoc)for(const a of t.jsDoc)this.deleteRange(e,{pos:TX(a.getStart(e),e),end:lde(e,a,{})});
6const i=aZ(e.text,r-1),o=e.text.slice(i,r);this.insertNodeAt(e,r,n,{suffix:this.newLineCharacter+o})}createJSDocText(e,t){const n=q(t.jsDoc,(e=>mt(e.comment)?_w.createJSDocText(e.comment):e.comment)),r=Re(t.jsDoc);return r&&hx(r.pos,r.end,e)&&0===_(n)?void 0:_w.createNodeArray(T(n,_w.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),_w.createJSDocComment(this.createJSDocText(e,t),_w.createNodeArray(n)))}addJSDocTags(e,t,n){const r=z(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{const n=e,r=t;return nN(n.name)&&nN(r.name)&&n.name.escapedText===r.name.escapedText?_w.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 342:return _w.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return _w.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,L(z(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,nx(t),n)}tryInsertTypeAnnotation(e,t,n){var r;let i;if(vu(t)){if(i=BX(t,22,e),!i){if(!gE(t))return!1;i=Ae(t.parameters)}}else i=null!=(r=260===t.kind?t.exclamationToken:t.questionToken)?r:t.name;return this.insertNodeAt(e,i.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=BX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(BX(t,21,e)||Ae(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return F_(e)||wu(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:oP(e)?{suffix:", "}:bN(e)?bN(t)?{suffix:", "}:{}:BD(e)&&hP(e.parent)||wP(e)?{suffix:", "}:DP(e)?{suffix:","+(n?this.newLineCharacter:" ")}:En.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=Pe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=w(t.body.statements,(e=>zE(e)&&bf(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=Oe(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,_w.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=sde(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:us(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){var r;const i=null!=(r=this.guessIndentationFromExistingMembers(e,t))?r:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,gde(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,i))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of gde(t)){if(ux(r,i,e))return;const t=i.getStart(e),o=wde.SmartIndenter.findFirstNonWhitespaceColumn(TX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){var n;const r=t.getStart(e);return wde.SmartIndenter.findFirstNonWhitespaceColumn(TX(r,e),r,e,this.formatContext.options)+(null!=(n=this.formatContext.options.indentSize)?n:4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===gde(t).length,i=$x(this.classesWithNodesInsertedAtStart,ZB(t),{node:t,sourceFile:e}),o=sE(t)&&(!df(e)||!r);return{indentation:n,prefix:(sE(t)&&df(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":lP(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,Ae(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((SN(r=t)||kN(r))&&Lu(i)&&167===i.name.kind||P_(r)&&P_(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,nx(t.end),_w.createToken(27)),lde(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return g(m({},n),{prefix:t.end===e.end&&F_(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix})}getInsertNodeAfterOptionsWorker(e){switch(e.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 En.assert(F_(e)||Lu(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(En.assert(!t.name),219===t.kind){const r=BX(t,39,e),i=BX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[_w.createToken(100),_w.createIdentifier(n)],{joiner:" "}),Tde(this,e,r)):(this.insertText(e,Ae(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,_w.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[_w.createToken(19),_w.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[_w.createToken(27),_w.createToken(20)],{joiner:" "}))}else{const r=BX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,_w.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!hx(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=wde.SmartIndenter.getContainingList(t,e)){if(!r)return void En.fail("node is not a list element");const i=cp(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=ZX(e,t.end);if(o&&ude(t,o)){const t=r[i+1],a=ide(e.text,t.getFullStart()),s=`${Ga(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=TX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=iQ(t.pos,e);c=ude(t,n)?n.kind:28,l=TX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n<e.length;){const t=e.charCodeAt(n);if(!ls(t))return 47===t;n++}return!1}(e.text,t.end)&&hx(r.pos,r.end,e)||(l=!0),l){this.replaceRange(e,nx(o),_w.createToken(c));const t=wde.SmartIndenter.findFirstNonWhitespaceColumn(s,a,e,this.formatContext.options);let r=hs(e.text,o,!0,!1);for(;r!==o&&us(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,nx(r),n,{indentation:t,prefix:this.newLineCharacter})}else this.replaceRange(e,nx(o),n,{prefix:`${Ga(c)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,ET(t),_w.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach((({node:e,s
6ourceFile:t})=>{const[n,r]=function(e,t){const n=BX(e,19,t),r=BX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===gde(e).length,o=hx(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,nx(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&wX(e.node,n)))||(pt(n)?this.deleteRange(t,PT(t,n)):yde.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=wde.SmartIndenter.getContainingList(t,n);if(t!==Le(r))return;const i=E(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:fde(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=dde.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(dde.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function fde(e,t){return hs(e.text,sde(e,t,{leadingTriviaOption:1}),!1,!0)}function mde(e,t,n,r){const i=fde(e,r);if(void 0===n||hx(lde(e,t,{}),i,e))return i;const o=iQ(r.getStart(e),e);if(ude(t,o)){const r=iQ(t.getStart(e),e);if(ude(n,r)){const t=hs(e.text,o.getEnd(),!0,!0);if(hx(r.getStart(e),o.getStart(e),e))return us(e.text.charCodeAt(t-1))?t-1:t;if(us(e.text.charCodeAt(t)))return t}}return i}function gde(e){return sE(e)?e.properties:e.members}function hde(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Ks(r))}`}return e}(e=>{function t(e,t,r,i){const o=q(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=rO("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return hde(o,wde.formatDocument(a,i))+r}function n(e,t,n){const r=Sde(n);return kz({newLine:b0(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:bde(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return H(nt(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=ke(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let t=0;t<a.length-1;t++)En.assert(a[t].range.end<=a[t+1].range.pos,"Changes overlap",(()=>`${JSON.stringify(a[t].range)} and ${JSON.stringify(a[t+1].range)}`));const s=H(a,(e=>{var a,s;const c=BQ(e.range),l=1===e.kind?null!=(a=Id(Cc(e.node)))?a:e.sourceFile:2===e.kind&&null!=(s=Id(Cc(e.nodes[0])))?s:e.sourceFile,u=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,u=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,u){const{node:_,text:d}=n(e,t,c);u&&u(_,d);const p=S0(l,t),f=void 0!==o?o:wde.SmartIndenter.getIndentation(i,r,p,a===c||TX(i,t)===i);void 0===s&&(s=wde.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const h={text:d,getLineAndCharacterOfPosition(e){return ss(this,e)}},y=wde.formatNodeGivenIndentation(_,h,t.languageVariant,f,s,g(m({},l),{options:p}));return hde(d,y)}(e,t,r,l,c,i,o,a),_=2===e.kind?e.nodes.map((e=>nn(u(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):u(e.node),d=void 0!==c.indentation||TX(l,t)===l?_:_.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||tn(d,c.suffix)?"":c.suffix)}(e,l,o,t,r,i);if(c.length!==u.length||!f0(l.text,u,c.start))return qQ(c,u)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(qk(e),n,r,i);return{fileName:e,textChanges:[qQ(ac(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(dde||(dde={}));var yde,vde=g(m({},Vq),{factory:ZC(1|Vq.factory.flags,Vq.factory.baseFactory)});function bde(e){const t=vJ(e,bde,vde,xde,bde),n=by(t)?t:Object.create(t);return $T(n,Y_e(e),ede(e)),n}function xde(e,t,n,r,i){const o=uJ(e,t,n,r,i);if(!o)return o;En.assert(e);const a=o===e?_w.createNodeArray(o.slice(0)):o;return $T(a,Y_e(e),ede(e)),a}function Sde(e){let t=0;const n=tv(e);function r(e,r){if(r||!function(e){return hs(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;cs(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Z_e(e,t)},onAfterEmitNode:e=>{e&&tde(e,t)},onBeforeEmitNodeArray:e=>{e&&Z_e(e,t)},onAfterEmitNodeArray:e=>{e&&tde(e,t)},onBeforeEmitToken:e=>{e&&Z_e(e,t)},onAfterEmitToken:e=>{e&&tde(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)}
6,writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function kde(e,t){return!(vQ(e,t)||cQ(e,t)||_Q(e,t)||dQ(e,t))}function Tde(e,t,n,r={leadingTriviaOption:1}){const i=sde(t,n,r),o=lde(t,n,r);e.deleteRange(t,{pos:i,end:o})}function Cde(e,t,n,r){const i=En.checkDefined(wde.SmartIndenter.getContainingList(r,n)),o=cp(i,r);En.assert(-1!==o),1!==i.length?(En.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:fde(n,r),end:o===i.length-1?lde(n,r,{}):mde(n,r,i[o-1],i[o+1])})):Tde(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=En.checkDefined(ZX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else Tde(e,t,Bh(n,272))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;gE(t)&&1===t.parameters.length&&!BX(t,21,r)?e.replaceNodeWithText(r,i,"()"):Cde(e,n,r,i);break}case 272:case 271:Tde(e,r,i,{leadingTriviaOption:r.imports.length&&i===Ae(r.imports).parent||i===w(r.statements,Op)?0:V_(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==Le(o.elements)?Tde(e,r,i):Cde(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,BX(i,21,n),BX(i,22,n));if(1!==i.declarations.length)return void Cde(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,_w.createObjectLiteralExpression());break;case 248:Tde(e,n,i);break;case 243:Tde(e,n,o,{leadingTriviaOption:V_(o)?2:3});break;default:En.assertNever(o)}}(e,n,r,i);break;case 168:Cde(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):Cde(e,n,r,i);break;case 274:t(e,r,i);break;case 27:Tde(e,r,i,{trailingTriviaOption:0});break;case 100:Tde(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:Tde(e,r,i,{leadingTriviaOption:V_(i)?2:3});break;default:i.parent?yP(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=ZX(t,n.name.end);if(i&&28===i.kind){const n=hs(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else Tde(e,t,n.name)}else Tde(e,t,n.parent)}(e,r,i.parent):uE(i.parent)&&F(i.parent.arguments,i)?Cde(e,n,r,i):Tde(e,r,i):Tde(e,r,i)}}})(yde||(yde={}));var wde={};r(wde,{FormattingContext:()=>Nde,FormattingRequestKind:()=>Dde,RuleAction:()=>Ode,RuleFlags:()=>Lde,SmartIndenter:()=>ife,anyContext:()=>Ide,createTextRangeWithKind:()=>ufe,formatDocument:()=>mfe,formatNodeGivenIndentation:()=>bfe,formatOnClosingCurly:()=>ffe,formatOnEnter:()=>_fe,formatOnOpeningCurly:()=>pfe,formatOnSemicolon:()=>dfe,formatSelection:()=>gfe,getAllRules:()=>Rde,getFormatContext:()=>Xpe,getFormattingScanner:()=>Fde,getIndentationString:()=>Cfe,getRangeOfEnclosingComment:()=>Tfe});var Dde=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Dde||{}),Nde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=En.checkDefined(e),this.currentTokenParent=En.checkDefined(t),this.nextTokenSpan=En.checkDefined(n),this.nextTokenParent=En.checkDefined(r),this.contextNode=En.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=BX(e,19,this.sourceFile),n=BX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}},Ede=Rs(99,!1,0),Pde=Rs(99,!1,1);function Fde(e,t,n,r,i){const o=1===t?Pde:Ede;o.setText(e),o.resetTokenState(n);let a,s,c,l,u,_=!0;const d=i({advance:function(){u=void 0,o.getTokenFullStart()!==n?_=!!s&&4===Le(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;e<r;){const t=o.getToken();if(!Gh(t))break;o.scan();const n={pos:e,end:o.getTokenFullStart(),kind:t};e=o.getTokenFullStart(),a=fe(a,n)}c=o.getTokenFullStart()},readTokenInfo:function(e){En.assert(p());const t=function(e){switch(e.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}(e)?1:14===e.kind?2:function(e){return 17===e.kind||18===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 291:case 286:case 287:case 285:return Jh(e.kind)||80===e.kind}return!1}(e)?4:JD(n=e)||RP(n)&&12===(null==u?void 0:u.token.kind)?5:function(e){return e.parent&&zP(e.parent)&&e.parent.initializer===e}(e)?6:0;var n;if(u&&t===l)return m(u,e);o.getTokenFullStart()!==c&&(En.assert(void 0!==u),o.resetTokenState(c),o.scan());let i=function(e,t){const n=o.getToken();switch(l=0,t){case 1:if(32===n){l=1;const t=o.reScanGreaterToken();return En.assert(e.kind===t),t}break;case 2:if(44===(r=n)||69===r){l=2;
6const t=o.reScanSlashToken();return En.assert(e.kind===t),t}break;case 3:if(20===n)return l=3,o.reScanTemplateToken(!1);break;case 4:return l=4,o.scanJsxIdentifier();case 5:return l=5,o.reScanJsxToken(!1);case 6:return l=6,o.reScanJsxAttributeValue();case 0:break;default:En.assertNever(t)}var r;return n}(e,t);const _=ufe(o.getTokenFullStart(),o.getTokenEnd(),i);for(s&&(s=void 0);o.getTokenFullStart()<r&&(i=o.scan(),Gh(i));){const e=ufe(o.getTokenFullStart(),o.getTokenEnd(),i);if(s||(s=[]),s.push(e),4===i){o.scan();break}}return u={leadingTrivia:a,trailingTrivia:s,token:_},m(u,e)},readEOFTokenRange:function(){return En.assert(f()),ufe(o.getTokenFullStart(),o.getTokenEnd(),1)},isOnToken:p,isOnEOF:f,getCurrentLeadingTrivia:()=>a,lastTrailingTriviaWasNewLine:()=>_,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,u=void 0,_=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,u=void 0,_=!1,a=void 0,s=void 0},getTokenFullStart:()=>{var e;return null!=(e=null==u?void 0:u.token.pos)?e:o.getTokenStart()},getStartPos:()=>{var e;return null!=(e=null==u?void 0:u.token.pos)?e:o.getTokenStart()}});return u=void 0,o.setText(void 0),d;function p(){const e=u?u.token.kind:o.getToken();return 1!==e&&!Gh(e)}function f(){return 1===(u?u.token.kind:o.getToken())}function m(e,t){return Hl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var Ade,Ide=c,Ode=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Ode||{}),Lde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Lde||{});function Rde(){const e=[];for(let d=0;d<=165;d++)1!==d&&e.push(d);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=jde([...e,3]),i=jde([...e,1]),o=Jde(83,165),a=Jde(30,79),s=[103,104,165,130,142,152],c=[80,...zQ],l=r,u=jde([80,32,3,86,95,102]),_=jde([22,3,92,113,98,93,85]);return[Mde("IgnoreBeforeComment",n,[2,3],Ide,1),Mde("IgnoreAfterLineComment",2,n,Ide,1),Mde("NotSpaceBeforeColon",n,59,[Spe,Xde,Qde],16),Mde("SpaceAfterColon",59,n,[Spe,Xde,Npe],4),Mde("NoSpaceBeforeQuestionMark",n,58,[Spe,Xde,Qde],16),Mde("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Spe,epe],4),Mde("NoSpaceAfterQuestionMark",58,n,[Spe,Zde],16),Mde("NoSpaceBeforeDot",n,[25,29],[Spe,Gpe],16),Mde("NoSpaceAfterDot",[25,29],n,[Spe],16),Mde("NoSpaceBetweenImportParenInImportType",102,21,[Spe,xpe],16),Mde("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Spe,Xde],16),Mde("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Spe],16),Mde("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Spe],16),Mde("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Spe,Wpe],16),Mde("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Spe,Wpe],16),Mde("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Spe,Gde],4),Mde("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Spe,Gde],4),Mde("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Spe,Gde],4),Mde("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Spe,Gde],4),Mde("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Spe,Gde],4),Mde("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Spe,Gde],4),Mde("NoSpaceAfterCloseBrace",20,[28,27],[Spe],16),Mde("NewLineBeforeCloseBraceInBlockContext",r,20,[ipe],8),Mde("SpaceAfterCloseBrace",20,t(22),[Spe,ppe],4),Mde("SpaceBetweenCloseBraceAndElse",20,93,[Spe],4),Mde("SpaceBetweenCloseBraceAndWhile",20,117,[Spe],4),Mde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Spe,mpe],16),Mde("SpaceAfterConditionalClosingParen",22,23,[fpe],4),Mde("NoSpaceBetweenFunctionKeywordAndStar",100,42,[upe],16),Mde("SpaceAfterStarInGeneratorDeclaration",42,80,[upe],4),Mde("SpaceAfterFunctionInFuncDecl",100,n,[cpe],4),Mde("NewLineAfterOpenBraceInBlockContext",19,n,[ipe],8),Mde("SpaceAfterGetSetInMember",[139,153],80,[cpe],4),Mde("NoSpaceBetweenYieldKeywordA
6ndStar",127,42,[Spe,$pe],16),Mde("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Spe,$pe],4),Mde("NoSpaceBetweenReturnAndSemicolon",107,27,[Spe],16),Mde("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Spe],4),Mde("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Spe,Ope],4),Mde("NoSpaceBeforeOpenParenInFuncCall",n,21,[Spe,gpe,hpe],16),Mde("SpaceBeforeBinaryKeywordOperator",n,s,[Spe,Gde],4),Mde("SpaceAfterBinaryKeywordOperator",s,n,[Spe,Gde],4),Mde("SpaceAfterVoidOperator",116,n,[Spe,zpe],4),Mde("SpaceBetweenAsyncAndOpenParen",134,21,[bpe,Spe],4),Mde("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Spe],4),Mde("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Spe],16),Mde("SpaceBeforeJsxAttribute",n,80,[wpe,Spe],4),Mde("SpaceBeforeSlashInJsxOpeningElement",n,44,[Ppe,Spe],4),Mde("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Ppe,Spe],16),Mde("NoSpaceBeforeEqualInJsxAttribute",n,64,[Dpe,Spe],16),Mde("NoSpaceAfterEqualInJsxAttribute",64,n,[Dpe,Spe],16),Mde("NoSpaceBeforeJsxNamespaceColon",80,59,[Epe],16),Mde("NoSpaceAfterJsxNamespaceColon",59,80,[Epe],16),Mde("NoSpaceAfterModuleImport",[144,149],21,[Spe],16),Mde("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Spe],4),Mde("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Spe],4),Mde("SpaceAfterModuleName",11,19,[Rpe],4),Mde("SpaceBeforeArrow",n,39,[Spe],4),Mde("SpaceAfterArrow",39,n,[Spe],4),Mde("NoSpaceAfterEllipsis",26,80,[Spe],16),Mde("NoSpaceAfterOptionalParameters",58,[22,28],[Spe,Xde],16),Mde("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Spe,Mpe],16),Mde("NoSpaceBeforeOpenAngularBracket",c,30,[Spe,Jpe],16),Mde("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Spe,Jpe],16),Mde("NoSpaceAfterOpenAngularBracket",30,n,[Spe,Jpe],16),Mde("NoSpaceBeforeCloseAngularBracket",n,32,[Spe,Jpe],16),Mde("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Spe,Jpe,lpe,qpe],16),Mde("SpaceBeforeAt",[22,80],60,[Spe],4),Mde("NoSpaceAfterAt",60,n,[Spe],16),Mde("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Ape],4),Mde("NoSpaceBeforeNonNullAssertionOperator",n,54,[Spe,Vpe],16),Mde("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Spe,jpe],16),Mde("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Spe],4),Mde("SpaceAfterConstructor",137,21,[qde("insertSpaceAfterConstructor"),Spe],4),Mde("NoSpaceAfterConstructor",137,21,[$de("insertSpaceAfterConstructor"),Spe],16),Mde("SpaceAfterComma",28,n,[qde("insertSpaceAfterCommaDelimiter"),Spe,Tpe,ype,vpe],4),Mde("NoSpaceAfterComma",28,n,[$de("insertSpaceAfterCommaDelimiter"),Spe,Tpe],16),Mde("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[qde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),cpe],4),Mde("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[$de("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),cpe],16),Mde("SpaceAfterKeywordInControl",o,21,[qde("insertSpaceAfterKeywordsInControlFlowStatements"),fpe],4),Mde("NoSpaceAfterKeywordInControl",o,21,[$de("insertSpaceAfterKeywordsInControlFlowStatements"),fpe],16),Mde("SpaceAfterOpenParen",21,n,[qde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Spe],4),Mde("SpaceBeforeCloseParen",n,22,[qde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Spe],4),Mde("SpaceBetweenOpenParens",21,21,[qde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Spe],4),Mde("NoSpaceBetweenParens",21,22,[Spe],16),Mde("NoSpaceAfterOpenParen",21,n,[$de("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Spe],16),Mde("NoSpaceBeforeCloseParen",n,22,[$de("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Spe],16),Mde("SpaceAfterOpenBracket",23,n,[qde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Spe],4),Mde("SpaceBeforeCloseBracket",n,24,[qde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Spe],4),Mde("NoSpaceBetweenBrackets",23,24,[Spe],16),Mde("NoSpaceAfterOpenBracket",23,n,[$de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Spe],16),Mde("NoSpaceBeforeCloseBracket",n,24,[$de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Spe],16),Mde("SpaceAfterOpenBrace",19,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),npe],4),Mde("SpaceBeforeCloseBrace",n,20,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),npe],4),Mde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Spe,mpe],16),Mde("NoSpaceAfterOpenBrace",19,n,[zde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Spe],16),Mde("NoSpaceBeforeCloseBrace",n,20,[zde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Spe],16),Mde("SpaceBetweenEmptyBraceBrackets",19,20,[qde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Mde("NoSpaceBetweenEmptyBraceBrackets",19,20,[zde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Spe],16),Mde("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[qde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),kpe],4,1),Mde("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[qde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Spe],4),Mde("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[$de("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),kpe],16,1),Mde("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[$de("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Spe],16),Mde("SpaceAfterOpenBraceInJsxExpression",19,n,[qde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Spe,Cpe],4),Mde("SpaceBeforeCloseBraceInJsxExpression",n,20,[qde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Spe,Cpe],4),Mde("NoSpaceAfterOpenBraceInJsxExpression",19,n,[$de("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Spe,Cpe],
616),Mde("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[$de("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Spe,Cpe],16),Mde("SpaceAfterSemicolonInFor",27,n,[qde("insertSpaceAfterSemicolonInForStatements"),Spe,Hde],4),Mde("NoSpaceAfterSemicolonInFor",27,n,[$de("insertSpaceAfterSemicolonInForStatements"),Spe,Hde],16),Mde("SpaceBeforeBinaryOperator",n,a,[qde("insertSpaceBeforeAndAfterBinaryOperators"),Spe,Gde],4),Mde("SpaceAfterBinaryOperator",a,n,[qde("insertSpaceBeforeAndAfterBinaryOperators"),Spe,Gde],4),Mde("NoSpaceBeforeBinaryOperator",n,a,[$de("insertSpaceBeforeAndAfterBinaryOperators"),Spe,Gde],16),Mde("NoSpaceAfterBinaryOperator",a,n,[$de("insertSpaceBeforeAndAfterBinaryOperators"),Spe,Gde],16),Mde("SpaceBeforeOpenParenInFuncDecl",n,21,[qde("insertSpaceBeforeFunctionParenthesis"),Spe,cpe],4),Mde("NoSpaceBeforeOpenParenInFuncDecl",n,21,[$de("insertSpaceBeforeFunctionParenthesis"),Spe,cpe],16),Mde("NewLineBeforeOpenBraceInControl",_,19,[qde("placeOpenBraceOnNewLineForControlBlocks"),fpe,rpe],8,1),Mde("NewLineBeforeOpenBraceInFunction",l,19,[qde("placeOpenBraceOnNewLineForFunctions"),cpe,rpe],8,1),Mde("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",u,19,[qde("placeOpenBraceOnNewLineForFunctions"),_pe,rpe],8,1),Mde("SpaceAfterTypeAssertion",32,n,[qde("insertSpaceAfterTypeAssertion"),Spe,Upe],4),Mde("NoSpaceAfterTypeAssertion",32,n,[$de("insertSpaceAfterTypeAssertion"),Spe,Upe],16),Mde("SpaceBeforeTypeAnnotation",n,[58,59],[qde("insertSpaceBeforeTypeAnnotation"),Spe,Yde],4),Mde("NoSpaceBeforeTypeAnnotation",n,[58,59],[$de("insertSpaceBeforeTypeAnnotation"),Spe,Yde],16),Mde("NoOptionalSemicolon",27,i,[Ude("semicolons","remove"),Hpe],32),Mde("OptionalSemicolon",n,i,[Ude("semicolons","insert"),Kpe],64),Mde("NoSpaceBeforeSemicolon",n,27,[Spe],16),Mde("SpaceBeforeOpenBraceInControl",_,19,[Vde("placeOpenBraceOnNewLineForControlBlocks"),fpe,Lpe,tpe],4,1),Mde("SpaceBeforeOpenBraceInFunction",l,19,[Vde("placeOpenBraceOnNewLineForFunctions"),cpe,ape,Lpe,tpe],4,1),Mde("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",u,19,[Vde("placeOpenBraceOnNewLineForFunctions"),_pe,Lpe,tpe],4,1),Mde("NoSpaceBeforeComma",n,28,[Spe],16),Mde("NoSpaceBeforeOpenBracket",t(134,84),23,[Spe],16),Mde("NoSpaceAfterCloseBracket",24,n,[Spe,Fpe],16),Mde("SpaceAfterSemicolon",27,n,[Spe],4),Mde("SpaceBetweenForAndAwaitKeyword",99,135,[Spe],4),Mde("SpaceBetweenDotDotDotAndTypeName",26,c,[Spe],16),Mde("SpaceBetweenStatements",[22,92,93,84],n,[Spe,Tpe,Kde],4),Mde("SpaceAfterTryCatchFinally",[113,85,98],19,[Spe],4)]}function Mde(e,t,n,r,i,o=0){return{leftTokenRange:Bde(t),rightTokenRange:Bde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function jde(e){return{tokens:e,isSpecific:!0}}function Bde(e){return"number"==typeof e?jde([e]):pt(e)?jde(e):e}function Jde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)F(n,i)||r.push(i);return jde(r)}function Ude(e,t){return n=>n.options&&n.options[e]===t}function qde(e){return t=>t.options&&$e(t.options,e)&&!!t.options[e]}function zde(e){return t=>t.options&&$e(t.options,e)&&!t.options[e]}function $de(e){return t=>!t.options||!$e(t.options,e)||!t.options[e]}function Vde(e){return t=>!t.options||!$e(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Wde(e){return t=>!t.options||!$e(t.options,e)||!!t.options[e]}function Hde(e){return 248===e.contextNode.kind}function Kde(e){return!Hde(e)}function Gde(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Xde(e){return!Gde(e)}function Qde(e){return!Yde(e)}function Yde(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||Tu(t)}function Zde(e){return!function(e){return kN(e.contextNode)&&e.contextNode.questionToken}(e)}function epe(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function tpe(e){return e.TokensAreOnSameLine()||ape(e)}function npe(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return ope(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function rpe(e){return ape(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function ipe(e){return ope(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function ope(e){return spe(e.contextNode)}function ape(e){return spe(e.nextTokenParent)}function spe(e){if(dpe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function cpe(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function lpe(e){return!cpe(e)}function upe(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function _pe(e){return dpe(e.contextNode)}function dpe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function ppe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function fpe(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function mpe(e){return 210===e.contextNode.kind}function gpe(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function hpe(e){return 28!==e.currentTokenSpan.kind}function ype(e){return 24!==e.nextTokenSpan.kind}function vpe(e){return 22!==e.nextTokenSpan.kind}function bpe(e){return 219===e.contextNode.kind}function xpe(e){return 205===e.contextNode.kind}function Spe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function kpe(e){return 12!==e.contextNode.kind}function Tpe(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function Cpe(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function wpe(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function Dpe(e){return 291===e.contextNode.kind}function Npe(e){return 295!==e.nextTokenParent.kind}function Epe(e){return 295===e.nextTokenParent.kind}function Ppe(e){return 285===e.contextNode.kind}function Fpe(e){return!cpe(e)&&!ape(e)}function Ape(e){return e.TokensAreOnSameLine()&&ib(e.contextNode)&&Ipe(e.currentTokenParent)&&!Ipe(e.nextTokenParent)}function Ipe(e){for(;e&&s_(e);)e=e.parent;return e&&170===e.kind}function Ope(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Lpe(e){return 2!==e.formattingRequestKind}function Rpe(e){return 267===e.contextNode.kind}function Mpe(e){return 187===e.contextNode.kind}function jpe(e){return 180===e.contextNode.kind}function Bpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Jpe(e){return Bpe(e.currentTokenSpan,e.currentTokenParent)||Bpe(e.nextTokenSpan,e.nextTokenParent)}function Upe(e){return 216===e.contextNode.kind}function qpe(e){return!Upe(e)}function zpe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function $pe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function Vpe(e){return 235===e.contextNode.kind}function Wpe(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function Hpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Gh(t)){const r=e.nextTokenParent===e.currentTokenParent?rQ(e.currentTokenParent,wc(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!SN(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:kN(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function Kpe(e){return BZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Gpe(e){return!cE(e.contextNode)||!MD(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Xpe(e,t){return{options:e,getRules:Qpe(),host:t}}function Qpe(){return void 0===Ade&&(Ade=function(e){const t=function(e){const t=new Array(sfe*sfe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=Zpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),lfe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Zpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~Ype(r);i.action&n&&C(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(Rde())),Ade}function Ype(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Zpe(e,t){return En.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*sfe
6+t}var efe,tfe,nfe,rfe,ife,ofe=5,afe=31,sfe=166,cfe=((efe=cfe||{})[efe.StopRulesSpecific=0]="StopRulesSpecific",efe[efe.StopRulesAny=1*ofe]="StopRulesAny",efe[efe.ContextRulesSpecific=2*ofe]="ContextRulesSpecific",efe[efe.ContextRulesAny=3*ofe]="ContextRulesAny",efe[efe.NoContextRulesSpecific=4*ofe]="NoContextRulesSpecific",efe[efe.NoContextRulesAny=5*ofe]="NoContextRulesAny",efe);function lfe(e,t,n,r,i){const o=3&t.action?n?0:cfe.StopRulesAny:t.context!==Ide?n?cfe.ContextRulesSpecific:cfe.ContextRulesAny:n?cfe.NoContextRulesSpecific:cfe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=ofe)n+=e&afe,e>>=ofe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&afe);return En.assert((n&afe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(afe<<t)|n<<t}(a,o)}function ufe(e,t,n){const r={pos:e,end:t,kind:n};return En.isDebugging&&Object.defineProperty(r,"__debugKind",{get:()=>En.formatSyntaxKind(n)}),r}function _fe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Bd(r,t);for(;ls(t.text.charCodeAt(i));)i--;return us(t.text.charCodeAt(i))&&i--,Sfe({pos:Md(r-1,t),end:i+1},t,n,2)}function dfe(e,t,n){return xfe(yfe(hfe(e,27,t)),t,n,3)}function pfe(e,t,n){const r=hfe(e,19,t);return r?Sfe({pos:TX(yfe(r.parent).getStart(t),t),end:e},t,n,4):[]}function ffe(e,t,n){return xfe(yfe(hfe(e,20,t)),t,n,5)}function mfe(e,t){return Sfe({pos:0,end:e.text.length},e,t,0)}function gfe(e,t,n,r){return Sfe({pos:TX(e,n),end:t},n,r,1)}function hfe(e,t,n){const r=iQ(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function yfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!vfe(t.parent,t);)t=t.parent;return t}function vfe(e,t){switch(e.kind){case 263:case 264:return CX(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&CX(n.statements,t);case 307:case 241:case 268:return CX(e.statements,t);case 299:return CX(e.block.statements,t)}return!1}function bfe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return Fde(t.text,n,a.pos,a.end,(n=>kfe(a,e,r,i,n,o,1,(e=>!1),t)))}function xfe(e,t,n,r){return e?Sfe({pos:TX(e.getStart(t),t),end:e.end},t,n,r):[]}function Sfe(e,t,n,r){const i=function(e,t){return function n(r){const i=ZI(r,(n=>EX(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return Fde(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=iQ(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>kfe(e,i,ife.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(ife.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>FX(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(IX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function kfe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,u){var _;const d=new Nde(u,c,o);let p,m,g,h,y,v=-1;const b=[];if(i.advance(),i.isOnToken()){const a=u.getLineAndCharacterOfPosition(t.getStart(u)).line;let s=a;ib(t)&&(s=u.getLineAndCharacterOfPosition(np(t,u)).line),function t(n,r,a,s,c,_){if(!FX(e,n.getStart(u),n.getEnd()))return;const d=S(n,a,c,_);let f=r;for(ZI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(e=>{h(e,n,a,d)}));i.isOnToken()&&i.getTokenFullStart()<e.end;){const t=i.readTokenInfo(n);if(t.token.end>Math.min(n.end,e.end))break;b(t,n,d,n)}function g(r,a,s,c,l,_,d,p){if(En.assert(!by(r)),Ud(r)||zd(s,r))return a;const m=r.getStart(u),g=u.getLineAndCharacterOfPosition(m).line;let h=g;ib(r)&&(h=u.getLineAndCharacterOfPosition(np(r,u)).line);let x=-1;if(d&&CX(e,s)&&(x=function(e,t,n,r,i){if(FX(r,e,t)||PX(r,e,t)){if(-1!==i)return i}else{const t=u.getLineAndCharacterOfPosition(e).line,r=TX(e,u),i=ife.findFirstNonWhitespaceColumn(r,e,u,o);if(t!==n||e===i){const e=ife.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==x&&(a=x)),!FX(e,r.pos,r.end))return r.end<e.pos&&i.skipToEndOf(r),a;if(0===r.getFullWidth())return a;for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const t=i.readTokenInfo(n);if(t.token.end>e.end)return a;
6if(t.token.end>m){t.token.pos>m&&i.skipToStartOf(r);break}b(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(Hl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return En.assert(e.token.end===r.end,"Token end is child end"),b(e,n,c,r),a}const S=170===r.kind?g:_,k=function(e,t,n,r,i,a){const s=ife.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===y?v:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===y?{indentation:v,delta:i.getDelta(e)}:ife.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,u)||ife.childIsUnindentedBranchOfConditionalExpression(r,e,t,u)||ife.argumentStartsOnSameLineAsPreviousArgument(r,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,S);return t(r,f,g,h,k.indentation,k.delta),f=n,p&&209===s.kind&&-1===a&&(a=k.indentation),a}function h(t,r,a,s){En.assert(Kl(t)),En.assert(!by(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,_=a;if(!FX(e,t.pos,t.end))return void(t.end<e.pos&&i.skipToEndOf(t));if(0!==c)for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const e=i.readTokenInfo(r);if(e.token.end>t.pos)break;if(e.token.kind===c){let t;if(_=u.getLineAndCharacterOfPosition(e.token.pos).line,b(e,r,s,r),-1!==v)t=v;else{const n=TX(e.token.pos,u);t=ife.findFirstNonWhitespaceColumn(n,e.token.pos,u,o)}l=S(r,a,t,o.indentSize)}else b(e,r,s,r)}let d=-1;for(let e=0;e<t.length;e++)d=g(t[e],d,n,l,_,_,!0,0===e);const p=function(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}(c);if(0!==p&&i.isOnToken()&&i.getTokenFullStart()<e.end){let e=i.readTokenInfo(r);28===e.token.kind&&(b(e,r,l,r),e=i.isOnToken()?i.readTokenInfo(r):void 0),e&&e.token.kind===p&&CX(r,e.token)&&b(e,r,l,r,!0)}}function b(t,n,r,o,a){En.assert(CX(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&T(t.leadingTrivia,n,f,r);let _=0;const d=CX(e,t.token),g=u.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=m;if(_=C(t.token,g,n,f,r),!e)if(0===_){const e=i&&u.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===_}if(t.trailingTrivia&&(p=Le(t.trailingTrivia).end,T(t.trailingTrivia,n,f,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=k(t.leadingTrivia,i,n,(e=>E(e.pos,i,!1)))}-1!==e&&n&&(E(t.token.pos,e,1===_),y=g.line,v=e)}i.advance(),f=n}}(t,t,a,s,n,r)}const x=i.getCurrentLeadingTrivia();if(x){const r=ife.nodeWillIndentChild(o,t,void 0,u,!1)?n+o.indentSize:n;k(x,r,!0,(e=>{C(e,u.getLineAndCharacterOfPosition(e.pos),t,t,void 0),E(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)TQ(e.kind)&&(n<e.pos&&I(n,e.pos-1,m),n=e.end+1);n<e.end&&I(n,e.end,m)}(x)}if(m&&i.getTokenFullStart()>=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===p){const n=(null==(_=iQ(e.end,u,t))?void 0:_.parent)||g;D(e,u.getLineAndCharacterOfPosition(e.pos).line,n,m,h,g,n,void 0)}}return b;function S(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(ib(e)&&r===function(e){if(CI(e)){const t=w(e.modifiers,mu,N(e.modifiers,xN));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=Jc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{ife.shouldIndentChildNode(o,i,e,u)&&(n+=t?o.indentSize:-o.indentSize,r=ife.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return ife.nodeWillIndentChild(o,e,t,u,!0)?r:0}}function k(t,n,r,i){for(const o of t){const t=CX(e,o);switch(o.kind){case 3:t&&P(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function T(t,n,r,i){for(const o of t)TQ(o.kind)&&CX(e,o)&&C(o,u.getLineAndCharacterOfPosition(o.pos),n,r,i)}function C(t,n,r,i,o){let a=0;return l(t)||(m?a=D(t,n.line,r,m,h,g,i,o):F(u.getLineAndCharacterOfPosition(e.pos).line,n.line)),m=t,p=t.end,g=r,h=n.line,a}function D(e,t,n,r,i,c,l,_){d.updateContext(r,c,e,n,l);const p=a(d);let m=!1!==d.options.trimTrailingWhitespace,g=0;return p?f(p,(a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return L(t.end,r.pos-t.end,HY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==u.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,l=";",b.push(UQ(c,0,l))}var c,l;return 0}(a,r,i,e,t),_)switch(g){case 2:n.getStart(u)===e.pos&&_.recomputeIndentation(!1,l);break;case 1:n.getStart(u)===e.pos&&_.recomputeIndentation(!0,l);break;default:En.assert(0===g)}m=m&&!(16&a.action)&&1!==a.flags})):m=m&&1!==e.kind,t!==i&&m&&F(i,t,r),g}function E(e,t,n){const r=Cfe(t,o);if(n)L(e,0,r);else{const n=u.getLineAndCharacterOfPosition(e),i=Md(n.line,u);(t!==function(e,t){let n=0;for(let r=0;r<t;r++)9===u.text.charCodeAt(e+r)?n+=o.tabSize-n%o.tabSize:n++;return n}(i,n.character)||function(e,t){return e!==u.text.substr(t,e.length)}(r,i))&&L(i,n.character,r)}}function P(e,t,n,r=!0){let i=u.getLineAndCharacterOfPosition(e.pos).line;const a=u.getLineAndCharacterOfPosition(e.end).line;if(i===a)return void(n||E(e.pos,t,!1));const s=[];let c=e.pos;for(let o=i;o<a;o++){const e=Bd(o,u);s.push({pos:c,end:e}),c=Md(o+1,u)}if(r&&s.push({pos:c,end:e.end}),0===s.length)return;const l=Md(i,u),_=ife.findFirstNonWhitespaceCharacterAndColumn(l,s[0].pos,u,o);let d=0;n&&(d=1,i++);const p=t-_.column;for(let f=d;f<s.length;f++,i++){const e=Md(i,u),t=0===f?_:ife.findFirstNonWhitespaceCharacterAndColumn(s[f].pos,s[f].end,u,o),n=t.column+p;if(n>0){const r=Cfe(n,o);L(e,t.character,r)}else O(e,t.character)}}function F(e,t,n){for(let r=e;r<t;r++){const e=Md(r,u),t=Bd(r,u);if(n&&(TQ(n.kind)||CQ(n.kind))&&n.pos<=t&&n.end>t)continue;const i=A(e,t);-1!==i&&(En.assert(i===e||!ls(u.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&ls(u.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){F(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&b.push(UQ(e,t,""))}function L(e,t,n){(t||n)&&b.push(UQ(e,t,n))}}function Tfe(e,t,n,r=ZX(e,t)){const i=wc(r,yF);if(i&&(r=i.parent),r.getStart(e)<=t&&t<r.getEnd())return;const o=re((n=null===n?void 0:void 0===n?iQ(t,e):n)&&Fs(e.text,n.end),Ef(r,e));return o&&w(o,(n=>NX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function Cfe(e,t){if((!tfe||tfe.tabSize!==t.tabSize||tfe.indentSize!==t.indentSize)&&(tfe={tabSize:t.tabSize,indentSize:t.indentSize},nfe=rfe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return rfe||(rfe=[]),void 0===rfe[r]?(n=GQ(" ",t.indentSize*r),rfe[r]=n):n=rfe[r],i?n+GQ(" ",i
6):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return nfe||(nfe=[]),void 0===nfe[n]?nfe[n]=i=GQ("\t",n):i=nfe[n],r?i+GQ(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=t<n.pos||t>n.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&u(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=_(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!N_(e)&&!P_(e)||307!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=rQ(e,t,r);return i?19===i.kind?1:20===i.kind&&n===u(i,r).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(e,t,n,r){return!(!uE(e)||!F(e.arguments,t))&&ss(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=BX(e,93,r);return En.assert(void 0!==t),u(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 345:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&PX(function(e,t,n){const r=e.getChildren(n);for(let i=1;i<r.length-1;i++)if(r[i].pos===t.pos&&r[i].end===t.end)return{pos:r[i-1].end,end:r[i+1].getStart(n)};return t}(n,i,r),e,t)?i:void 0}}function m(e,t,n){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,n):-1}function g(e,t,n,r){if(e.parent&&261===e.parent.kind)return-1;const i=p(e,t);if(i){const o=i.indexOf(e);if(-1!==o){const e=h(i,o,t,n);if(-1!==e)return e}return m(i,t,n)+(r?n.indentSize:0)}return-1}function h(e,t,n,r){En.assert(t>=0&&t<e.length);let i=u(e[t],n);for(let o=t-1;o>=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=u(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;a<t;a++){const e=n.text.charCodeAt(a);if(!ls(e))break;9===e?o+=r.tabSize+o%r.tabSize:o++,i++}return{column:o,character:i}}function b(e,t,n,r){return v(e,t,n,r).column}function x(e,t,n,r,i){var o;const a=n?n.kind:0;switch(t.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return null==(o=e.indentSwitchCase)||o;case 260:case 303:case 226:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&210===a)return k(r,n);if(226===t.kind&&r&&n&&284===a)return r.getLineAndCharacterOfPosition(hs(r.text,t.pos)).line!==r.getLineAndCharacterOfPosition(hs(r.text,n.pos)).line;if(226!==t.kind)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return 241!==a;case 219:return r&&217===a?k(r,n):241!==a;case 278:return 279!==a;case 272:return 273!==a||!!n.namedBindings&&275!==n.namedBindings.kind;case 284:return 287!==a;case 288:return 290!==a;case 193:case 192:case 238:if(187===a||189===a||200===a)return!1}return i}function S(e,t,n,r,i=!1){return x(e,t,n,r,!1)&&!(i&&n&&function(e,t){switch(e){case 253:case 257:case 251:case 252:return 241!==t.kind;default:return!1}}(n.kind,t))}function k(e,t){const n=hs(e.text,t.pos);return e.getLineAndCharacterOfPosition(n).line===e.getLineAndCharacterOfPosition(t.end).line}(n=t||(t={}))[n.Unknown=-1]="Unknown",e.getIndentation=function(e,t,n,o=!1){if(e>t.text.length)return r(n);if(0===n.indentStyle)return 0;const a=iQ(e,t,void 0,!0),s=Tfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=ss(e,t).line-1,o=ss(e,r.pos).line;if(En.assert(o>=0),i<=o)return b(Md(o,e),t,e,n);const a=Md(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;const l=e.text.charCodeAt(a+c);return 42===l?s-1:s}(t,e,n,s);if(!a)return r(n);
6if(CQ(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;const c=t.getLineAndCharacterOfPosition(e).line,_=ZX(t,e),d=19===_.kind&&210===_.parent.kind;if(1===n.indentStyle||d)return function(e,t,n){let r=t;for(;r>0&&cs(e.text.charCodeAt(r));)r--;const i=TX(r,e);return b(i,r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=MX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!CX(p,a)){const e=[218,219].includes(_.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,_=n;for(;_;){if(OX(_,t,e)&&S(s,_,c,e,!0)){const t=u(_,e),r=l(n,_,o,e);return i(_,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(_,e,s,!0);if(-1!==r)return r;c=_,_=_.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(TE(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=ss(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=u(e.whenTrue,r).line,o=ss(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(Zu(e)){if(!e.arguments)return!1;const i=w(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===ss(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=x,e.shouldIndentChildNode=S})(ife||(ife={}));var wfe={};r(wfe,{pasteEditsProvider:()=>Nfe});var Dfe="providePostPasteEdits";function Nfe(e,t,n,r,i,o,a,s){const c=Q_e.ChangeTracker.with({host:i,formatContext:a,preferences:o},(c=>function(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t:[t.join("\n")]);const u=[];let _=e.text;for(let d=n.length-1;d>=0;d--){const{pos:e,end:r}=n[d];_=l?_.slice(0,e)+l[0]+_.slice(r):_.slice(0,e)+t[d]+_.slice(r)}En.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,_,((n,l,_)=>{const d=Q7.createImportAdder(_,n,o,i);if(null==r?void 0:r.range){En.assert(r.range.length===t.length),r.range.forEach((e=>{const t=r.file.statements,n=N(t,(t=>t.end>e.pos));if(-1===n)return;let i=N(t,(t=>t.end>=e.end),n);-1!==i&&e.end<=t[i].getStart()&&i--,u.push(...t.slice(n,-1===i?t.length:i+1))}));const o=k3(r.file,u,l.getTypeChecker(),I3(_,u,l.getTypeChecker()));En.assertIsDefined(l);const a=!w0(e.fileName,l,i,!!r.file.commonJsModuleIndicator);e3(r.file,o.targetFileImportsFromOldFile,c,a),M3(r.file,o.oldImportsNeededByTargetFile,o.targetFileImportsFromOldFile,l.getTypeChecker(),n,d)}else{const e={sourceFile:_,program:l,cancellationToken:s,host:i,preferences:o,formatContext:a};ZI(_,(function t(n){nN(n)&&!(null==l?void 0:l.getTypeChecker().resolveName(n.text,n,-1,!1))&&d.addImportForUnresolvedIdentifier(e,n,!0),n.forEac
6hChild(t)}))}d.writeFixes(c,cY(r?r.file:e,o))})),n.forEach(((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l?l[0]:t[r])}))}(e,t,n,r,i,o,a,s,c)));return{edits:c,fixId:Dfe}}var Efe,Pfe={};function Ffe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${_S(i,[e])}`:"",o}function Afe(e,t={}){var n,r;const i="string"==typeof t.typeScriptVersion?new jn(t.typeScriptVersion):null!=(n=t.typeScriptVersion)?n:null!=Efe?Efe:Efe=new jn(a),o="string"==typeof t.errorAfter?new jn(t.errorAfter):t.errorAfter,s="string"==typeof t.warnAfter?new jn(t.warnAfter):t.warnAfter,c="string"==typeof t.since?new jn(t.since):null!=(r=t.since)?r:s,l=t.error||o&&i.compareTo(o)>=0,u=!s||i.compareTo(s)>=0;return l?function(e,t,n,r){const i=Ffe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,o,c,t.message):u?function(e,t,n,r){let i=!1;return()=>{i||(En.log.warn(Ffe(e,!1,t,n,r)),i=!0)}}(e,o,c,t.message):vt}function Ife(e,t,n,r){if(Object.defineProperty(c,"name",g(m({},Object.getOwnPropertyDescriptor(c,"name")),{value:e})),r)for(const l of Object.keys(r)){const n=+l;!isNaN(n)&&$e(t,`${n}`)&&(t[n]=(i=t[n],o=g(m({},r[n]),{name:e}),a=void 0,function(e,t){return function(){return e(),t.apply(this,arguments)}}(Afe(null!=(a=null==o?void 0:o.name)?a:En.getFunctionName(i),o),i)))}var i,o,a;const s=function(e,t){return n=>{for(let r=0;$e(e,`${r}`)&&$e(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return c;function c(...e){const n=s(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function Ofe(e){return{overload:t=>({bind:n=>({finish:()=>Ife(e,t,n),deprecate:r=>({finish:()=>Ife(e,t,n,r)})})})}}r(Pfe,{ANONYMOUS:()=>
6AZ,AccessFlags:()=>mi,AssertionLevel:()=>It,AssignmentDeclarationKind:()=>Ci,AssignmentKind:()=>ch,Associativity:()=>Sy,BreakpointResolver:()=>N7,BuilderFileEmit:()=>Q$,BuilderProgramKind:()=>vV,BuilderState:()=>G$,CallHierarchy:()=>P7,CharacterCodes:()=>Ui,CheckFlags:()=>ci,CheckMode:()=>HB,ClassificationType:()=>zG,ClassificationTypeNames:()=>qG,CommentDirectiveType:()=>zr,Comparison:()=>s,CompletionInfoFlags:()=>LG,CompletionTriggerKind:()=>DG,Completions:()=>Oae,ContainerFlags:()=>Xj,ContextFlags:()=>Zr,Debug:()=>En,DiagnosticCategory:()=>wi,Diagnostics:()=>Pa,DocumentHighlights:()=>J0,ElementFlags:()=>fi,EmitFlags:()=>Vi,EmitHint:()=>Gi,EmitOnly:()=>Hr,EndOfLineState:()=>jG,ExitStatus:()=>Gr,ExportKind:()=>P0,Extension:()=>qi,ExternalEmitHelpers:()=>Ki,FileIncludeKind:()=>Vr,FilePreprocessingDiagnosticsKind:()=>Wr,FileSystemEntryKind:()=>To,FileWatcherEventKind:()=>io,FindAllReferences:()=>Ace,FlattenLevel:()=>kU,FlowFlags:()=>qr,ForegroundColorEscapeSequences:()=>Qz,FunctionFlags:()=>Xh,GeneratedIdentifierFlags:()=>Br,GetLiteralTextFlags:()=>dp,GoToDefinition:()=>gle,HighlightSpanKind:()=>EG,IdentifierNameMap:()=>YJ,IdentifierNameMultiMap:()=>ZJ,ImportKind:()=>E0,ImportsNotUsedAsValues:()=>Li,IndentStyle:()=>PG,IndexFlags:()=>gi,IndexKind:()=>bi,InferenceFlags:()=>ki,InferencePriority:()=>Si,InlayHintKind:()=>NG,InlayHints:()=>Ole,InternalEmitFlags:()=>Wi,InternalSymbolName:()=>li,IntersectionFlags:()=>Yr,InvalidatedProjectKind:()=>fH,JSDocParsingMode:()=>to,JsDoc:()=>Ble,JsTyping:()=>qK,JsxEmit:()=>Oi,JsxFlags:()=>Mr,JsxReferenceKind:()=>hi,LanguageFeatureMinimumTarget:()=>Hi,LanguageServiceMode:()=>kG,LanguageVariant:()=>Bi,LexicalEnvironmentFlags:()=>Qi,ListFormat:()=>Yi,LogLevel:()=>Pn,MapCode:()=>oue,MemberOverrideStatus:()=>Xr,ModifierFlags:()=>Rr,ModuleDetectionKind:()=>Ei,ModuleInstanceState:()=>Wj,ModuleKind:()=>Ii,ModuleResolutionKind:()=>Ni,ModuleSpecifierEnding:()=>iT,NavigateTo:()=>d2,NavigationBar:()=>k2,NewLineKind:()=>Ri,NodeBuilderFlags:()=>ei,NodeCheckFlags:()=>ui,NodeFactoryFlags:()=>XC,NodeFlags:()=>Lr,NodeResolutionFeatures:()=>$M,ObjectFlags:()=>di,OperationCanceledException:()=>$r,OperatorPrecedence:()=>Dy,OrganizeImports:()=>_ue,OrganizeImportsMode:()=>wG,OuterExpressionKinds:()=>Xi,OutliningElementsCollector:()=>zue,OutliningSpanKind:()=>RG,OutputFileType:()=>MG,PackageJsonAutoImportPreference:()=>SG,PackageJsonDependencyGroup:()=>xG,PatternMatchKind:()=>p1,PollingInterval:()=>oo,PollingWatchKind:()=>Ai,PragmaKindFlags:()=>Zi,PrivateIdentifierKind:()=>eD,ProcessLevel:()=>WU,ProgramUpdateLevel:()=>Nz,QuotePreference:()=>aY,RegularExpressionFlags:()=>Jr,RelationComparisonResult:()=>jr,Rename:()=>Yue,ScriptElementKind:()=>JG,ScriptElementKindModifier:()=>UG,ScriptKind:()=>Mi,ScriptSnapshot:()=>fG,ScriptTarget:()=>ji,SemanticClassificationFormat:()=>CG,SemanticMeaning:()=>VG,SemicolonPreference:()=>FG,SignatureCheckMode:()=>KB,SignatureFlags:()=>vi,SignatureHelp:()=>o_e,SignatureInfo:()=>X$,SignatureKind:()=>yi,SmartSelectionRange:()=>F_e,SnippetKind:()=>$i,StatisticType:()=>iK,StructureIsReused:()=>Kr,SymbolAccessibility:()=>ri,SymbolDisplay:()=>q_e,SymbolDisplayPartKind:()=>OG,SymbolFlags:()=>si,SymbolFormatFlags:()=>ni,SyntaxKind:()=>Or,SyntheticSymbolKind:()=>ii,Ternary:()=>Ti,ThrottledCancellationToken:()=>v7,TokenClass:()=>BG,TokenFlags:()=>Ur,TransformFlags:()=>zi,TypeFacts:()=>VB,TypeFlags:()=>_i,TypeFormatFlags:()=>ti,TypeMapKind:()=>xi,TypePredicateKind:()=>oi,TypeReferenceSerializationKind:()=>ai,UnionReduction:()=>Qr,UpToDateStatusType:()=>BW,VarianceFlags:()=>pi,Version:()=>jn,VersionRange:()=>Jn,WatchDirectoryFlags:()=>Ji,WatchDirectoryKind:()=>Fi,WatchFileKind:()=>Pi,WatchLogLevel:()=>Rz,WatchType:()=>kW,accessPrivateIdentifier:()=>bU,addDisposableResourceHelper:()=>AD,addEmitFlags:()=>yw,addEmitHelper:()=>jw,addEmitHelpers:()=>Bw,addInternalEmitFlags:()=>bw,addNodeFactoryPatcher:()=>YC,addObjectAllocatorPatcher:()=>lS,addRange:()=>he,addRelatedInfo:()=>DT,addSyntheticLeadingComment:()=>Fw,addSyntheticTrailingComment:()=>Ow,addToSeen:()=>$x,advancedAsyncSuperHelper:()=>LD,affectsDeclarationPathOptionDeclarations:()=>JO,affectsEmitOptionDeclarations:()=>BO,allKeysStartWithDot:()=>xj,altDirectorySeparator:()=>Ao,and:()=>yn,append:()=>fe,appendIfUnique:()=>ve,arrayFrom:()=>Xe,arrayIsEqualTo:()=>_e,arrayIsHomogeneous:()=>UT,arrayIsSorted:()=>ue,arrayOf:()=>Ge,arrayReverseIterator:()=>Se,arrayToMap:()=>Ze,arrayToMultiMap:()=>tt,arrayToNumericMap:()=>et,arraysEqual:()=>A,assertType:()=>xn,assign:()=>Qe,assignHelper:()=>lD,asyncDelegator:()=>dD,asyncGeneratorHelper:()=>_D,asyncSuperHelper:()=>OD,asyncValues:()=>pD,attachFileToDiagnostics:()=>yS,awaitHelper:()=>uD,awaiterHelper:()=>mD,base64decode:()=>Kb,base64encode:()=>Hb,binarySearch:()=>Je,binarySearchKey:()=>Ue,bindSourceFile:()=>Zj,breakIntoCharacterSpans:()=>P1,breakIntoWordSpans:()=>F1,buildLinkParts:()=>VY,buildOpts:()=>GO,buildOverload:()=>Ofe,bundlerModuleNameResolver:()=>WM,canBeConvertedToAsync:()=>t2,canHaveDecorators:()=>wI,canHaveExportModifier:()=>dC,canHaveFlowNode:()=>Kg,canHaveIllegalDecorators:()=>zA,canHaveIllegalModifiers:()=>$A,canHaveIllegalType:()=>UA,canHaveIllegalTypeParameters:()=>qA,canHaveJSDoc:()=>Gg,canHaveLocals:()=>C_,canHaveModifiers:()=>CI,canHaveSymbol:()=>T_,canIncludeBindAndCheckDiagnsotics:()=>AT,canJsonReportNoInputFiles:()=>yR,canProduceDiagnostics:()=>Cq,canUsePropertyAccess:()=>fC,canWatchAffectingLocation:()=>UV,canWatchAtTypes:()=>jV,canWatchDirectoryOrFile:()=>MV,cartesianProduct:()=>Tn,cast:()=>yt,chainBundle:()=>VJ,chainDiagnosticMessages:()=>kS,changeAnyExtension:()=>pa,changeCompilerHostLikeToUseCache:()=>Hz,changeExtension:()=>fT,changeFullExtension:()=>fa,changesAffectModuleResolution:()=>md,changesAffectingProgramStructure:()=>hd,characterToRegularExpressionFlag:()=>Za,childIsDecorated:()=>Pm,classElementOrClassElementParameterIsDecorated:()=>Am,classHasClassThisAssignment:()=>LU,classHasDeclaredOrExplicitlyAssignedName:()=>qU,classHasExplicitlyAssignedName:()=>UU,classOrConstructorParameterIsDecorated:()=>Fm,classPrivateFieldGetHelper:()=>ED,classPrivateFieldInHelper:()=>FD,classPrivateFieldSetHelper:()=>PD,classicNameResolver:()=>Bj,classifier:()=>G7,cleanExtendedConfigCache:()=>Fz,clear:()=>M,clearMap:()=>Ox,clearSharedExtendedConfigFileWatcher:()=>Pz,climbPastPropertyAccess:()=>oX,climbPastPropertyOrElementAccess:()=>aX,clone:()=>it,cloneCompilerOptions:()=>PQ,closeFileWatcher:()=>Cx,closeFileWatcherOf:()=>Bz,codefix:()=>Q7,collapseTextChangeRangesAcrossMultipleVersions:()=>dc,collectExternalModuleInfo:()=>GJ,combine:()=>me,combinePaths:()=>ra,commandLineOptionOfCustomType:()=>HO,commentPragmas:()=>eo,commonOptionsWithBuild:()=>IO,commonPackageFolders:()=>Tk,compact:()=>de,compareBooleans:()=>Yt,compareDataObjects:()=>Ix,compareDiagnostics:()=>wS,compareDiagnosticsSkipRelatedInformation:()=>DS,compareEmitHelpers:()=>nD,compareNumberOfDirectorySeparators:()=>lT,comparePaths:()=>va,comparePathsCaseInsensitive:()=>ya,comparePathsCaseSensitive:()=>ha,comparePatternKeys:()=>kj,compareProperties:()=>Qt,compareStringsCaseInsensitive:()=>
6Ut,compareStringsCaseInsensitiveEslintCompatible:()=>qt,compareStringsCaseSensitive:()=>zt,compareStringsCaseSensitiveUI:()=>Xt,compareTextSpans:()=>Bt,compareValues:()=>jt,compileOnSaveCommandLineOption:()=>wO,compilerOptionsAffectDeclarationPath:()=>_k,compilerOptionsAffectEmit:()=>uk,compilerOptionsAffectSemanticDiagnostics:()=>lk,compilerOptionsDidYouMeanDiagnostics:()=>uL,compilerOptionsIndicateEsModules:()=>eY,compose:()=>At,computeCommonSourceDirectoryOfFilenames:()=>qz,computeLineAndCharacterOfPosition:()=>is,computeLineOfPosition:()=>os,computeLineStarts:()=>es,computePositionOfLineAndCharacter:()=>ns,computeSignature:()=>kV,computeSignatureWithDiagnostics:()=>SV,computeSuggestionDiagnostics:()=>V1,computedOptions:()=>jS,concatenate:()=>re,concatenateDiagnosticMessageChains:()=>TS,configDirTemplateSubstitutionOptions:()=>VO,configDirTemplateSubstitutionWatchOptions:()=>WO,consumesNodeCoreModules:()=>YZ,contains:()=>F,containsIgnoredPath:()=>ZT,containsObjectRestOrSpread:()=>kI,containsParseError:()=>Ad,containsPath:()=>ba,convertCompilerOptionsForTelemetry:()=>XR,convertCompilerOptionsFromJson:()=>kR,convertJsonOption:()=>FR,convertToBase64:()=>Wb,convertToJson:()=>UL,convertToObject:()=>JL,convertToOptionsWithAbsolutePaths:()=>eR,convertToRelativePath:()=>Ta,convertToTSConfig:()=>$L,convertTypeAcquisitionFromJson:()=>TR,copyComments:()=>mZ,copyEntries:()=>Sd,copyLeadingComments:()=>bZ,copyProperties:()=>at,copyTrailingAsLeadingComments:()=>SZ,copyTrailingComments:()=>xZ,couldStartTrivia:()=>gs,countWhere:()=>O,createAbstractBuilder:()=>OV,createAccessorPropertyBackingField:()=>hI,createAccessorPropertyGetRedirector:()=>yI,createAccessorPropertySetRedirector:()=>vI,createBaseNodeFactory:()=>zC,createBinaryExpressionTrampoline:()=>cI,createBindingHelper:()=>TD,createBuildInfo:()=>mz,createBuilderProgram:()=>TV,createBuilderProgramUsingProgramBuildInfo:()=>EV,createBuilderStatusReporter:()=>HW,createCacheWithRedirects:()=>NM,createCacheableExportInfoMap:()=>F0,createCachedDirectoryStructureHost:()=>Dz,createClassNamedEvaluationHelperBlock:()=>BU,createClassThisAssignmentBlock:()=>IU,createClassifier:()=>B0,createCommentDirectivesMap:()=>ep,createCompilerDiagnostic:()=>xS,createCompilerDiagnosticForInvalidCustomType:()=>tL,createCompilerDiagnosticFromMessageChain:()=>SS,createCompilerHost:()=>zz,createCompilerHostFromProgramHost:()=>CW,createCompilerHostWorker:()=>Wz,createDetachedDiagnostic:()=>mS,createDiagnosticCollection:()=>Fy,createDiagnosticForFileFromMessageChain:()=>nf,createDiagnosticForNode:()=>Gp,createDiagnosticForNodeArray:()=>Xp,createDiagnosticForNodeArrayFromMessageChain:()=>Zp,createDiagnosticForNodeFromMessageChain:()=>Yp,createDiagnosticForNodeInSourceFile:()=>Qp,createDiagnosticForRange:()=>of,createDiagnosticMessageChainFromDiagnostic:()=>rf,createDiagnosticReporter:()=>ZV,createDocumentPositionMapper:()=>JJ,createDocumentRegistry:()=>t1,createDocumentRegistryInternal:()=>n1,createEmitAndSemanticDiagnosticsBuilderProgram:()=>IV,createEmitHelperFactory:()=>tD,createEmptyExports:()=>YF,createEvaluator:()=>RC,createExpressionForJsxElement:()=>rA,createExpressionForJsxFragment:()=>iA,createExpressionForObjectLiteralElementLike:()=>lA,createExpressionForPropertyName:()=>cA,createExpressionFromEntityName:()=>sA,createExternalHelpersImportDeclarationIfNeeded:()=>NA,createFileDiagnostic:()=>vS,createFileDiagnosticFromMessageChain:()=>tf,createFlowNode:()=>Qj,createForOfBindingStatement:()=>oA,createFutureSourceFile:()=>N0,createGetCanonicalFileName:()=>un,createGetIsolatedDeclarationErrors:()=>Nq,createGetSourceFile:()=>$z,createGetSymbolAccessibilityDiagnosticForNode:()=>Dq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wq,createGetSymbolWalker:()=>oB,createIncrementalCompilerHost:()=>LW,createIncrementalProgram:()=>RW,createJsxFactoryExpression:()=>nA,createLanguageService:()=>S7,createLanguageServiceSourceFile:()=>m7,createMemberAccessForPropertyName:()=>ZF,createModeAwareCache:()=>FM,createModeAwareCacheKey:()=>PM,createModuleNotFoundChain:()=>Dd,createModuleResolutionCache:()=>RM,createModuleResolutionLoader:()=>v$,createModuleResolutionLoaderUsingGlobalCache:()=>
6GV,createModuleSpecifierResolutionHost:()=>tY,createMultiMap:()=>ct,createNameResolver:()=>BC,createNodeConverters:()=>WC,createNodeFactory:()=>ZC,createOptionNameMap:()=>QO,createOverload:()=>Ife,createPackageJsonImportFilter:()=>QZ,createPackageJsonInfo:()=>XZ,createParenthesizerRules:()=>$C,createPatternMatcher:()=>m1,createPrinter:()=>kz,createPrinterWithDefaults:()=>vz,createPrinterWithRemoveComments:()=>bz,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>xz,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Sz,createProgram:()=>B$,createProgramHost:()=>NW,createPropertyNameNodeForIdentifierOrLiteral:()=>sC,createQueue:()=>_t,createRange:()=>nx,createRedirectedBuilderProgram:()=>FV,createResolutionCache:()=>XV,createRuntimeTypeSerializer:()=>ZU,createScanner:()=>Rs,createSemanticDiagnosticsBuilderProgram:()=>AV,createSet:()=>dt,createSolutionBuilder:()=>QW,createSolutionBuilderHost:()=>GW,createSolutionBuilderWithWatch:()=>YW,createSolutionBuilderWithWatchHost:()=>XW,createSortedArray:()=>se,createSourceFile:()=>rO,createSourceMapGenerator:()=>SJ,createSourceMapSource:()=>dw,createSuperAccessVariableStatement:()=>rq,createSymbolTable:()=>_d,createSymlinkCache:()=>hk,createSyntacticTypeNodeBuilder:()=>UK,createSystemWatchFunctions:()=>Do,createTextChange:()=>qQ,createTextChangeFromStartLength:()=>UQ,createTextChangeRange:()=>uc,createTextRangeFromNode:()=>jQ,createTextRangeFromSpan:()=>JQ,createTextSpan:()=>ac,createTextSpanFromBounds:()=>sc,createTextSpanFromNode:()=>RQ,createTextSpanFromRange:()=>BQ,createTextSpanFromStringLiteralLikeContent:()=>MQ,createTextWriter:()=>tv,createTokenRange:()=>cx,createTypeChecker:()=>nJ,createTypeReferenceDirectiveResolutionCache:()=>MM,createTypeReferenceResolutionLoader:()=>S$,createWatchCompilerHost:()=>MW,createWatchCompilerHostOfConfigFile:()=>FW,createWatchCompilerHostOfFilesAndCompilerOptions:()=>AW,createWatchFactory:()=>TW,createWatchHost:()=>SW,createWatchProgram:()=>jW,createWatchStatusReporter:()=>rW,createWriteFileMeasuringIO:()=>Vz,declarationNameToString:()=>zp,decodeMappings:()=>FJ,decodedTextSpanIntersectsWith:()=>rc,decorateHelper:()=>iD,deduplicate:()=>ae,defaultIncludeSpec:()=>sR,defaultInitCompilerOptions:()=>eL,defaultMaximumTruncationLength:()=>sd,diagnosticCategoryName:()=>Di,diagnosticToString:()=>x0,diagnosticsEqualityComparer:()=>PS,directoryProbablyExists:()=>Yb,directorySeparator:()=>Fo,displayPart:()=>FY,displayPartsToString:()=>u7,disposeEmitNodes:()=>mw,disposeResourcesHelper:()=>ID,documentSpansEqual:()=>xY,dumpTracingLegend:()=>Ir,elementAt:()=>Ne,elideNodes:()=>dI,emitComments:()=>qv,emitDetachedComments:()=>zv,emitFiles:()=>fz,emitFilesAndReportErrors:()=>yW,emitFilesAndReportErrorsAndGetExitStatus:()=>vW,emitModuleKindIsNonNodeESM:()=>tk,emitNewLineBeforeLeadingCommentOfPosition:()=>Uv,emitNewLineBeforeLeadingComments:()=>Bv,emitNewLineBeforeLeadingCommentsOfPosition:()=>Jv,emitResolverSkipsTypeChecking:()=>pz,emitSkippedWithNoDiagnostics:()=>J$,emptyArray:()=>c,emptyFileSystemEntries:()=>TT,emptyMap:()=>l,emptyOptions:()=>TG,emptySet:()=>u,endsWith:()=>tn,ensurePathIsNonModuleName:()=>da,ensureScriptKind:()=>Uk,ensureTrailingDirectorySeparator:()=>_a,entityNameToString:()=>Kp,enumerateInsertsAndDeletes:()=>kn,equalOwnProperties:()=>Ye,equateStringsCaseInsensitive:()=>Lt,equateStringsCaseSensitive:()=>Rt,equateValues:()=>Ot,esDecorateHelper:()=>sD,escapeJsxAttributeString:()=>Gy,escapeLeadingUnderscores:()=>Ec,escapeNonAsciiString:()=>$y,escapeSnippetText:()=>oC,escapeString:()=>qy,escapeTemplateSubstitution:()=>Iy,evaluatorResult:()=>LC,every:()=>C,executeCommandLine:()=>xK,expandPreOrPostfixIncrementOrDecrementExpression:()=>uA,explainFiles:()=>dW,explainIfFileIsRedirectAndImpliedFormat:()=>pW,exportAssignmentIsAlias:()=>Ph,exportStarHelper:()=>ND,expressionResultIsUnused:()=>YT,extend:()=>ot,extendsHelper:()=>gD,extensionFromPath:()=>bT,extensionIsTS:()=>yT,extensionsNotSupportingExtensionlessResolution:()=>Zk,externalHelpersModuleNameText:()=>ad,factory:()=>_w,fileExtensionIs:()=>zo,fileExtensionIsOneOf:()=>$o,fileIncludeReasonToDiagnostics:()=>gW,fileShouldUseJavaScriptRequire:()=>w0,filter:()=>L,filterMutate:()=>R,filterSemanticDiagnostics:()=>q$,find:()=>
6w,findAncestor:()=>wc,findBestPatternMatch:()=>pn,findChildOfKind:()=>BX,findComputedPropertyNameCacheAssignment:()=>bI,findConfigFile:()=>Jz,findConstructorDeclaration:()=>jC,findContainingList:()=>JX,findDiagnosticForNode:()=>t0,findFirstNonJsxWhitespaceToken:()=>tQ,findIndex:()=>N,findLast:()=>D,findLastIndex:()=>E,findListItemInfo:()=>MX,findMap:()=>P,findModifier:()=>hY,findNextToken:()=>rQ,findPackageJson:()=>KZ,findPackageJsons:()=>HZ,findPrecedingMatchingToken:()=>fQ,findPrecedingToken:()=>iQ,findSuperStatementIndexPath:()=>aU,findTokenOnLeftOfPosition:()=>nQ,findUseStrictPrologue:()=>mA,first:()=>Ae,firstDefined:()=>y,firstDefinedIterator:()=>b,firstIterator:()=>Ie,firstOrOnly:()=>a0,firstOrUndefined:()=>Pe,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>_2,flatMap:()=>q,flatMapIterator:()=>$,flatMapToMutable:()=>z,flatten:()=>U,flattenCommaList:()=>SI,flattenDestructuringAssignment:()=>TU,flattenDestructuringBinding:()=>DU,flattenDiagnosticMessageText:()=>l$,forEach:()=>d,forEachAncestor:()=>vd,forEachAncestorDirectory:()=>Da,forEachChild:()=>ZI,forEachChildRecursively:()=>eO,forEachEmittedFile:()=>Kq,forEachEnclosingBlockScopeContainer:()=>qp,forEachEntry:()=>bd,forEachExternalModuleToImportFrom:()=>I0,forEachImportClauseDeclaration:()=>Bg,forEachKey:()=>xd,forEachLeadingCommentRange:()=>Cs,forEachNameInAccessChainWalkingLeft:()=>Qx,forEachNameOfDefaultExport:()=>j0,forEachPropertyAssignment:()=>rm,forEachResolvedProjectReference:()=>T$,forEachReturnStatement:()=>Jf,forEachRight:()=>f,forEachTrailingCommentRange:()=>ws,forEachTsConfigPropArray:()=>sm,forEachUnique:()=>kY,forEachYieldExpression:()=>Uf,forSomeAncestorDirectory:()=>Jx,formatColorAndReset:()=>o$,formatDiagnostic:()=>Xz,formatDiagnostics:()=>Gz,formatDiagnosticsWithColorAndContext:()=>c$,formatGeneratedName:()=>gI,formatGeneratedNamePart:()=>fI,formatLocation:()=>s$,formatMessage:()=>bS,formatStringFromArgs:()=>_S,formatting:()=>wde,fullTripleSlashAMDReferencePathRegEx:()=>Of,fullTripleSlashReferencePathRegEx:()=>Ff,generateDjb2Hash:()=>no,generateTSConfig:()=>ZL,generatorHelper:()=>kD,getAdjustedReferenceLocation:()=>GX,getAdjustedRenameLocation:()=>XX,getAliasDeclarationFromName:()=>Nh,getAllAccessorDeclarations:()=>Iv,getAllDecoratorsOfClass:()=>pU,getAllDecoratorsOfClassElement:()=>fU,getAllJSDocTags:()=>kl,getAllJSDocTagsOfKind:()=>Tl,getAllKeys:()=>He,getAllProjectOutputs:()=>uz,getAllSuperTypeNodes:()=>Rh,getAllowJSCompilerOption:()=>ZS,getAllowSyntheticDefaultImports:()=>VS,getAncestor:()=>Bh,getAnyExtensionFromPath:()=>Yo,getAreDeclarationMapsEnabled:()=>YS,getAssignedExpandoInitializer:()=>cg,getAssignedName:()=>Uc,getAssignedNameOfIdentifier:()=>MU,getAssignmentDeclarationKind:()=>hg,getAssignmentDeclarationPropertyAccessKind:()=>Dg,getAssignmentTargetKind:()=>uh,getAutomaticTypeDirectiveNames:()=>kM,getBaseFileName:()=>Xo,getBinaryOperatorPrecedence:()=>Ey,getBuildInfo:()=>hz,getBuildInfoFileVersionMap:()=>PV,getBuildInfoText:()=>gz,getBuildOrderFromAnyBuildOrder:()=>WW,getBuilderCreationParameters:()=>bV,getBuilderFileEmit:()=>Y$,getCanonicalDiagnostic:()=>af,getCheckFlags:()=>wx,getClassExtendsHeritageElement:()=>Oh,getClassLikeDeclarationOfSymbol:()=>jx,getCombinedLocalAndExportSymbolFlags:()=>Ex,getCombinedModifierFlags:()=>vc,getCombinedNodeFlags:()=>xc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>bc,getCommentRange:()=>Dw,getCommonSourceDirectory:()=>cz,getCommonSourceDirectoryOfConfig:()=>lz,getCompilerOptionValue:()=>dk,getCompilerOptionsDiffValue:()=>QL,getConditions:()=>xM,getConfigFileParsingDiagnostics:()=>L$,getConstantValue:()=>Rw,getContainerFlags:()=>rB,getContainerNode:()=>bX,getContainingClass:()=>um,getContainingClassExcludingClassDecorators:()=>pm,getContainingClassStaticBlock:()=>_m,getContainingFunction:()=>cm,getContainingFunctionDeclaration:()=>lm,getContainingFunctionOrClassStaticBlock:()=>dm,getContainingNodeArray:()=>eC,getContainingObjectLiteralElement:()=>T7,getContextualTypeFromParent:()=>wZ,getContextualTypeFromParentOrAncestorTypeNode:()=>$X,getCurrentTime:()=>$W,getDeclarationDiagnostics:()=>Eq,getDeclarationEmitExtensionForPath:()=>dv,getDeclarationEmitOutputFilePath:()=>uv,getDeclarationEmitOutputFilePathWorker:()=>_v,getDeclarationFileExtension:()=>mO,getDeclarationFromName:()=>
6Th,getDeclarationModifierFlagsFromSymbol:()=>Dx,getDeclarationOfKind:()=>ld,getDeclarationsOfKind:()=>ud,getDeclaredExpandoInitializer:()=>sg,getDecorators:()=>qc,getDefaultCompilerOptions:()=>_7,getDefaultFormatCodeSettings:()=>AG,getDefaultLibFileName:()=>Hs,getDefaultLibFilePath:()=>w7,getDefaultLikeExportInfo:()=>R0,getDefaultLikeExportNameFromDeclaration:()=>u0,getDiagnosticText:()=>hL,getDiagnosticsWithinSpan:()=>n0,getDirectoryPath:()=>Go,getDirectoryToWatchFailedLookupLocation:()=>qV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>VV,getDocumentPositionMapper:()=>q1,getDocumentSpansEqualityComparer:()=>SY,getESModuleInterop:()=>$S,getEditsForFileRename:()=>o1,getEffectiveBaseTypeNode:()=>Ih,getEffectiveConstraintOfTypeParameter:()=>Dl,getEffectiveContainerForJSDocTemplateTag:()=>eh,getEffectiveImplementsTypeNodes:()=>Lh,getEffectiveInitializer:()=>ag,getEffectiveJSDocHost:()=>rh,getEffectiveModifierFlags:()=>cb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>lb,getEffectiveModifierFlagsNoCache:()=>pb,getEffectiveReturnTypeNode:()=>Rv,getEffectiveSetAccessorTypeAnnotationNode:()=>jv,getEffectiveTypeAnnotationNode:()=>Ov,getEffectiveTypeParameterDeclarations:()=>wl,getEffectiveTypeRoots:()=>mM,getElementOrPropertyAccessArgumentExpressionOrName:()=>Cg,getElementOrPropertyAccessName:()=>wg,getElementsOfBindingOrAssignmentPattern:()=>BA,getEmitDeclarations:()=>GS,getEmitFlags:()=>lp,getEmitHelpers:()=>Uw,getEmitModuleDetectionKind:()=>qS,getEmitModuleKind:()=>JS,getEmitModuleResolutionKind:()=>US,getEmitScriptTarget:()=>BS,getEmitStandardClassFields:()=>ck,getEnclosingBlockScopeContainer:()=>Up,getEnclosingContainer:()=>Jp,getEncodedSemanticClassifications:()=>K0,getEncodedSyntacticClassifications:()=>Z0,getEndLinePosition:()=>Bd,getEntityNameFromTypeNode:()=>Cm,getEntrypointsFromPackageJsonInfo:()=>_j,getErrorCountForSummary:()=>oW,getErrorSpanForNode:()=>lf,getErrorSummaryText:()=>lW,getEscapedTextOfIdentifierOrLiteral:()=>ay,getEscapedTextOfJsxAttributeName:()=>SC,getEscapedTextOfJsxNamespacedName:()=>CC,getExpandoInitializer:()=>lg,getExportAssignmentExpression:()=>Fh,getExportInfoMap:()=>L0,getExportNeedsImportStarHelper:()=>WJ,getExpressionAssociativity:()=>ky,getExpressionPrecedence:()=>Cy,getExternalHelpersModuleName:()=>wA,getExternalModuleImportEqualsDeclarationExpression:()=>Jm,getExternalModuleName:()=>Rg,getExternalModuleNameFromDeclaration:()=>sv,getExternalModuleNameFromPath:()=>cv,getExternalModuleNameLiteral:()=>FA,getExternalModuleRequireArgument:()=>Um,getFallbackOptions:()=>jz,getFileEmitOutput:()=>K$,getFileMatcherPatterns:()=>Rk,getFileNamesFromConfigSpecs:()=>jR,getFileWatcherEventKind:()=>yo,getFilesInErrorForSummary:()=>aW,getFirstConstructorWithBody:()=>Tv,getFirstIdentifier:()=>Fb,getFirstNonSpaceCharacterPosition:()=>oZ,getFirstProjectOutput:()=>dz,getFixableErrorSpanExpression:()=>i0,getFormatCodeSettingsForWriting:()=>S0,getFullWidth:()=>Td,getFunctionFlags:()=>Qh,getHeritageClause:()=>jh,getHostSignatureFromJSDoc:()=>nh,getIdentifierAutoGenerate:()=>Qw,getIdentifierGeneratedImportReference:()=>Zw,getIdentifierTypeArguments:()=>Gw,getImmediatelyInvokedFunctionExpression:()=>vm,getImpliedNodeFormatForFile:()=>R$,getImpliedNodeFormatForFileWorker:()=>M$,getImportNeedsImportDefaultHelper:()=>KJ,getImportNeedsImportStarHelper:()=>HJ,getIndentSize:()=>
6ev,getIndentString:()=>Zy,getInferredLibraryNameResolveFrom:()=>D$,getInitializedVariables:()=>Sx,getInitializerOfBinaryExpression:()=>Ng,getInitializerOfBindingOrAssignmentElement:()=>IA,getInterfaceBaseTypeNodes:()=>Mh,getInternalEmitFlags:()=>up,getInvokedExpression:()=>wm,getIsolatedModules:()=>zS,getJSDocAugmentsTag:()=>Qc,getJSDocClassTag:()=>Zc,getJSDocCommentRanges:()=>Pf,getJSDocCommentsAndTags:()=>Xg,getJSDocDeprecatedTag:()=>ll,getJSDocDeprecatedTagNoCache:()=>ul,getJSDocEnumTag:()=>_l,getJSDocHost:()=>ih,getJSDocImplementsTags:()=>Yc,getJSDocOverloadTags:()=>th,getJSDocOverrideTagNoCache:()=>cl,getJSDocParameterTags:()=>Vc,getJSDocParameterTagsNoCache:()=>Wc,getJSDocPrivateTag:()=>nl,getJSDocPrivateTagNoCache:()=>rl,getJSDocProtectedTag:()=>il,getJSDocProtectedTagNoCache:()=>ol,getJSDocPublicTag:()=>el,getJSDocPublicTagNoCache:()=>tl,getJSDocReadonlyTag:()=>al,getJSDocReadonlyTagNoCache:()=>sl,getJSDocReturnTag:()=>pl,getJSDocReturnType:()=>yl,getJSDocRoot:()=>oh,getJSDocSatisfiesExpressionType:()=>bC,getJSDocSatisfiesTag:()=>ml,getJSDocTags:()=>bl,getJSDocTagsNoCache:()=>xl,getJSDocTemplateTag:()=>fl,getJSDocThisTag:()=>dl,getJSDocType:()=>hl,getJSDocTypeAliasName:()=>JA,getJSDocTypeAssertionType:()=>bA,getJSDocTypeParameterDeclarations:()=>Mv,getJSDocTypeParameterTags:()=>Kc,getJSDocTypeParameterTagsNoCache:()=>Gc,getJSDocTypeTag:()=>gl,getJSXImplicitImportBase:()=>fk,getJSXRuntimeImport:()=>mk,getJSXTransformEnabled:()=>pk,getKeyForCompilerOptions:()=>DM,getLanguageVariant:()=>IS,getLastChild:()=>zx,getLeadingCommentRanges:()=>Ps,getLeadingCommentRangesOfNode:()=>Ef,getLeftmostAccessExpression:()=>Xx,getLeftmostExpression:()=>Yx,getLibraryNameFromLibFileName:()=>N$,getLineAndCharacterOfPosition:()=>ss,getLineInfo:()=>wJ,getLineOfLocalPosition:()=>Sv,getLineOfLocalPositionFromLineMap:()=>kv,getLineStartPositionForPosition:()=>TX,getLineStarts:()=>rs,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>bx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>vx,getLinesBetweenPositions:()=>as,getLinesBetweenRangeEndAndRangeStart:()=>fx,getLinesBetweenRangeEndPositions:()=>mx,getLiteralText:()=>pp,getLocalNameForExternalImport:()=>PA,getLocalSymbolForExportDefault:()=>zb,getLocaleSpecificMessage:()=>fS,getLocaleTimeString:()=>nW,getMappedContextSpan:()=>DY,getMappedDocumentSpan:()=>wY,getMappedLocation:()=>CY,getMatchedFileSpec:()=>fW,getMatchedIncludeSpec:()=>mW,getMeaningFromDeclaration:()=>WG,getMeaningFromLocation:()=>HG,getMembersOfDeclaration:()=>zf,getModeForFileReference:()=>u$,getModeForResolutionAtIndex:()=>_$,getModeForUsageLocation:()=>p$,getModifiedTime:()=>so,getModifiers:()=>zc,getModuleInstanceState:()=>Hj,getModuleNameStringLiteralAt:()=>H$,getModuleSpecifierEndingPreference:()=>aT,getModuleSpecifierResolverHost:()=>nY,getNameForExportedSymbol:()=>c0,getNameFromImportAttribute:()=>OC,getNameFromIndexInfo:()=>$p,getNameFromPropertyName:()=>QQ,getNameOfAccessExpression:()=>Kx,getNameOfCompilerOptionValue:()=>KL,getNameOfDeclaration:()=>Jc,getNameOfExpando:()=>_g,getNameOfJSDocTypedef:()=>Mc,getNameOfScriptTarget:()=>sk,getNameOrArgument:()=>Tg,getNameTable:()=>k7,getNamesForExportedSymbol:()=>s0,getNamespaceDeclarationNode:()=>Mg,getNewLineCharacter:()=>tx,getNewLineKind:()=>b0,getNewLineOrDefaultFromHost:()=>HY,getNewTargetContainer:()=>hm,getNextJSDocCommentLocation:()=>Yg,getNodeChildren:()=>GF,getNodeForGeneratedName:()=>pI,getNodeId:()=>ZB,getNodeKind:()=>xX,getNodeModifiers:()=>SQ,getNodeModulePathParts:()=>lC,getNonAssignedNameOfDeclaration:()=>Bc,getNonAssignmentOperatorForCompoundAssignment:()=>rU,getNonAugmentationDeclaration:()=>Dp,getNonDecoratorTokenPosOfNode:()=>np,getNormalizedAbsolutePath:()=>aa,getNormalizedAbsolutePathWithoutRoot:()=>ca,getNormalizedPathComponents:()=>oa,getObjectFlags:()=>Bx,getOperator:()=>wy,getOperatorAssociativity:()=>Ty,getOperatorPrecedence:()=>Ny,getOptionFromName:()=>dL,getOptionsForLibraryResolution:()=>jM,getOptionsNameMap:()=>YO,getOrCreateEmitNode:()=>fw,getOrCreateExternalHelpersModuleNameIfNeeded:()=>EA,getOrUpdate:()=>X,getOriginalNode:()=>Cc,getOriginalNodeId:()=>qJ,getOriginalSourceFile:()=>xy,getOutputDeclarationFileName:()=>tz,getOutputDeclarationFileNameWorker:()=>nz,getOutputExtension:()=>Zq,getOutputFileNames:()=>_z,getOutputJSFileNameWorker:()=>iz,getOutputPathsFor:()=>Qq,getOutputPathsForBundle:()=>Xq,getOwnEmitOutputFilePath:()=>lv,getOwnKeys:()=>We,getOwnValues:()=>Ke,getPackageJsonInfo:()=>hj,getPackageJsonTypesVersionsPaths:()=>fM,getPackageJsonsVisibleToFile:()=>GZ,getPackageNameFromTypesPackageName:()=>Rj,getPackageScopeForPath:()=>fj,getParameterSymbolFromJSDoc:()=>Zg,getParameterTypeNode:()=>uC,getParentNodeInSpan:()=>mY,getParseTreeNode:()=>Nc,getParsedCommandLineOfConfigFile:()=>yL,getPathComponents:()=>Zo,getPathComponentsRelativeTo:()=>Sa,getPathFromPathComponents:()=>ea,getPathUpdater:()=>a1,getPathsBasePath:()=>fv,getPatternFromSpec:()=>Ik,getPendingEmitKind:()=>Z$,getPositionOfLineAndCharacter:()=>ts,getPossibleGenericSignatures:()=>hQ,getPossibleOriginalInputExtensionForExtension:()=>pv,getPossibleTypeArgumentsInfo:()=>yQ,getPreEmitDiagnostics:()=>Kz,getPrecedingNonSpaceCharacterPosition:()=>aZ,getPrivateIdentifier:()=>yU,getProperties:()=>sU,getProperty:()=>Ve,getPropertyArrayElementValue:()=>im,getPropertyAssignmentAliasLikeExpression:()=>Ah,getPropertyNameForPropertyNameNode:()=>ry,getPropertyNameForUniqueESSymbol:()=>sy,getPropertyNameFromType:()=>EC,getPropertyNameOfBindingOrAssignmentElement:()=>RA,getPropertySymbolFromBindingElement:()=>fY,getPropertySymbolsFromContextualType:()=>C7,getQuoteFromPreference:()=>lY,getQuotePreference:()=>cY,getRangesWhere:()=>ne,getRefactorContextSpan:()=>r0,getReferencedFileLocation:()=>I$,getRegexFromPattern:()=>Mk,getRegularExpressionForWildcard:()=>Pk,getRegularExpressionsForWildcards:()=>Fk,getRelativePathFromDirectory:()=>ka,getRelativePathFromFile:()=>Ca,getRelativePathToDirectoryOrUrl:()=>wa,getRenameLocation:()=>vZ,getReplacementSpanForContextToken:()=>LQ,getResolutionDiagnostic:()=>V$,getResolutionModeOverride:()=>m$,getResolveJsonModule:()=>KS,getResolvePackageJsonExports:()=>WS,getResolvePackageJsonImports:()=>HS,getResolvedExternalModuleName:()=>ov,getRestIndicatorOfBindingOrAssignmentElement:()=>LA,getRestParameterElementType:()=>qf,getRightMostAssignedExpression:()=>pg,getRootDeclaration:()=>yy,getRootDirectoryOfResolutionCache:()=>WV,getRootLength:()=>Ko,getRootPathSplitLength:()=>HV,getScriptKind:()=>tZ,getScriptKindFromFileName:()=>qk,getScriptTargetFeatures:()=>_p,getSelectedEffectiveModifierFlags:()=>ob,getSelectedSyntacticModifierFlags:()=>ab,getSemanticClassifications:()=>W0,getSemanticJsxChildren:()=>Py,getSetAccessorTypeAnnotationNode:()=>wv,getSetAccessorValueParameter:()=>Cv,getSetExternalModuleIndicator:()=>MS,getShebang:()=>As,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Vg,getSingleVariableOfVariableStatement:()=>Wg,getSnapshotText:()=>KQ,getSnippetElement:()=>zw,getSourceFileOfModule:()=>Od,getSourceFileOfNode:()=>Id,getSourceFilePathInNewDir:()=>hv,getSourceFilePathInNewDirWorker:()=>yv,getSourceFileVersionAsHashFromText:()=>wW,getSourceFilesToEmit:()=>mv,getSourceMapRange:()=>
6xw,getSourceMapper:()=>U1,getSourceTextOfNodeFromSourceFile:()=>rp,getSpanOfTokenAtPosition:()=>sf,getSpellingSuggestion:()=>Zt,getStartPositionOfLine:()=>Md,getStartPositionOfRange:()=>yx,getStartsOnNewLine:()=>Cw,getStaticPropertiesAndClassStaticBlock:()=>lU,getStrictOptionValue:()=>ak,getStringComparer:()=>$t,getSubPatternFromSpec:()=>Ok,getSuperCallFromStatement:()=>iU,getSuperContainer:()=>ym,getSupportedCodeFixes:()=>d7,getSupportedExtensions:()=>eT,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tT,getSwitchedType:()=>FZ,getSymbolId:()=>eJ,getSymbolNameForPrivateIdentifier:()=>cy,getSymbolParentOrFail:()=>_0,getSymbolTarget:()=>nZ,getSyntacticClassifications:()=>Y0,getSyntacticModifierFlags:()=>ub,getSyntacticModifierFlagsNoCache:()=>fb,getSynthesizedDeepClone:()=>sZ,getSynthesizedDeepCloneWithReplacements:()=>cZ,getSynthesizedDeepClones:()=>uZ,getSynthesizedDeepClonesWithReplacements:()=>_Z,getSyntheticLeadingComments:()=>Ew,getSyntheticTrailingComments:()=>Aw,getTargetLabel:()=>sX,getTargetOfBindingOrAssignmentElement:()=>OA,getTemporaryModuleResolutionState:()=>pj,getTextOfConstantValue:()=>fp,getTextOfIdentifierOrLiteral:()=>oy,getTextOfJSDocComment:()=>Cl,getTextOfJsxAttributeName:()=>kC,getTextOfJsxNamespacedName:()=>wC,getTextOfNode:()=>ap,getTextOfNodeFromSourceText:()=>op,getTextOfPropertyName:()=>Hp,getThisContainer:()=>fm,getThisParameter:()=>Dv,getTokenAtPosition:()=>ZX,getTokenPosOfNode:()=>tp,getTokenSourceMapRange:()=>kw,getTouchingPropertyName:()=>QX,getTouchingToken:()=>YX,getTrailingCommentRanges:()=>Fs,getTrailingSemicolonDeferringWriter:()=>nv,getTransformFlagsSubtreeExclusions:()=>sw,getTransformers:()=>Rq,getTsBuildInfoEmitOutputFilePath:()=>Gq,getTsConfigObjectLiteralExpression:()=>om,getTsConfigPropArrayElementValue:()=>am,getTypeAnnotationNode:()=>Lv,getTypeArgumentOrTypeParameterList:()=>kQ,getTypeKeywordOfTypeOnlyImport:()=>vY,getTypeNode:()=>Hw,getTypeNodeIfAccessible:()=>IZ,getTypeParameterFromJsDoc:()=>ah,getTypeParameterOwner:()=>pc,getTypesPackageName:()=>Oj,getUILocale:()=>Kt,getUniqueName:()=>yZ,getUniqueSymbolId:()=>iZ,getUseDefineForClassFields:()=>ek,getWatchErrorSummaryDiagnosticMessage:()=>sW,getWatchFactory:()=>Mz,group:()=>nt,groupBy:()=>rt,guessIndentation:()=>Y_,handleNoEmitOptions:()=>U$,handleWatchOptionsConfigDirTemplateSubstitution:()=>lR,hasAbstractModifier:()=>eb,hasAccessorModifier:()=>nb,hasAmbientModifier:()=>tb,hasChangesInResolutions:()=>Fd,hasChildOfKind:()=>jX,hasContextSensitiveParameters:()=>tC,hasDecorators:()=>ib,hasDocComment:()=>bQ,hasDynamicName:()=>ty,hasEffectiveModifier:()=>Gv,hasEffectiveModifiers:()=>Hv,hasEffectiveReadonlyModifier:()=>rb,hasExtension:()=>qo,hasIndexSignature:()=>PZ,hasInferredType:()=>qC,hasInitializer:()=>H_,hasInvalidEscape:()=>Ly,hasJSDocNodes:()=>V_,hasJSDocParameterTags:()=>Xc,hasJSFileExtension:()=>nT,hasJsonModuleEmitEnabled:()=>nk,hasOnlyExpressionInitializer:()=>K_,hasOverrideModifier:()=>Zv,hasPossibleExternalModuleReference:()=>jp,hasProperty:()=>$e,hasPropertyAccessExpressionWithName:()=>cX,hasQuestionToken:()=>Jg,hasRecordedExternalHelpers:()=>DA,hasResolutionModeOverride:()=>FC,hasRestParameter:()=>td,hasScopeMarker:()=>d_,hasStaticModifier:()=>Yv,hasSyntacticModifier:()=>Xv,hasSyntacticModifiers:()=>Kv,hasTSFileExtension:()=>rT,hasTabstop:()=>mC,hasTrailingDirectorySeparator:()=>Vo,hasType:()=>W_,hasTypeArguments:()=>sh,hasZeroOrOneAsteriskCharacter:()=>gk,helperString:()=>rD,hostGetCanonicalFileName:()=>iv,hostUsesCaseSensitiveFileNames:()=>rv,idText:()=>Fc,identifierIsThisKeyword:()=>Av,identifierToKeywordKind:()=>Ac,identity:()=>kt,identitySourceMapConsumer:()=>UJ,ignoreSourceNewlines:()=>Vw,ignoredPaths:()=>vo,importDefaultHelper:()=>DD,importFromModuleSpecifier:()=>Og,importStarHelper:()=>wD,indexOfAnyCharCode:()=>I,indexOfNode:()=>cp,indicesOf:()=>oe,inferredTypesContainingFile:()=>w$,injectClassNamedEvaluationHelperBlockIfMissing:()=>zU,injectClassThisAssignmentIfMissing:()=>RU,insertImports:()=>yY,insertLeadingStatement:()=>aA,insertSorted:()=>ce,insertStatementAfterCustomPrologue:()=>Qd,insertStatementAfterStandardPrologue:()=>Xd,insertStatementsAfterCustomPrologue:()=>Gd,insertStatementsAfterStandardPrologue:()=>Kd,intersperse:()=>T,intrinsicTagNameToString:()=>DC,introducesArgumentsExoticObject:()=>Xf,inverseJsxOptionMap:()=>NO,isAbstractConstructorSymbol:()=>Mx,isAbstractModifier:()=>_N,isAccessExpression:()=>Hx,isAccessibilityModifier:()=>EQ,isAccessor:()=>Nu,isAccessorModifier:()=>pN,isAliasSymbolDeclaration:()=>Dh,isAliasableExpression:()=>Eh,isAmbientModule:()=>yp,isAmbientPropertyDeclaration:()=>Pp,isAnonymousFunctionDefinition:()=>py,isAnyDirectorySeparator:()=>Lo,isAnyImportOrBareOrAccessedRequire:()=>Lp,isAnyImportOrReExport:()=>Bp,isAnyImportOrRequireStatement:()=>
6Rp,isAnyImportSyntax:()=>Op,isAnySupportedFileExtension:()=>xT,isApplicableVersionedTypesKey:()=>wj,isArgumentExpressionOfElementAccess:()=>mX,isArray:()=>pt,isArrayBindingElement:()=>Uu,isArrayBindingOrAssignmentElement:()=>Ku,isArrayBindingOrAssignmentPattern:()=>Hu,isArrayBindingPattern:()=>iE,isArrayLiteralExpression:()=>aE,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>FQ,isArrayTypeNode:()=>BN,isArrowFunction:()=>gE,isAsExpression:()=>FE,isAssertClause:()=>bP,isAssertEntry:()=>xP,isAssertionExpression:()=>c_,isAssertsKeyword:()=>sN,isAssignmentDeclaration:()=>og,isAssignmentExpression:()=>wb,isAssignmentOperator:()=>kb,isAssignmentPattern:()=>Ju,isAssignmentTarget:()=>_h,isAsteriskToken:()=>XD,isAsyncFunction:()=>Yh,isAsyncModifier:()=>aN,isAutoAccessorPropertyDeclaration:()=>Eu,isAwaitExpression:()=>bE,isAwaitKeyword:()=>cN,isBigIntLiteral:()=>jD,isBinaryExpression:()=>kE,isBinaryOperatorToken:()=>tI,isBindableObjectDefinePropertyCall:()=>yg,isBindableStaticAccessExpression:()=>xg,isBindableStaticElementAccessExpression:()=>Sg,isBindableStaticNameExpression:()=>kg,isBindingElement:()=>oE,isBindingElementOfBareOrAccessedRequire:()=>eg,isBindingName:()=>yu,isBindingOrAssignmentElement:()=>zu,isBindingOrAssignmentPattern:()=>$u,isBindingPattern:()=>Bu,isBlock:()=>JE,isBlockLike:()=>D0,isBlockOrCatchScoped:()=>gp,isBlockScope:()=>Fp,isBlockScopedContainerTopLevel:()=>kp,isBooleanLiteral:()=>Su,isBreakOrContinueStatement:()=>Ul,isBreakStatement:()=>QE,isBuild:()=>bK,isBuildInfoFile:()=>Hq,isBuilderProgram:()=>uW,isBundle:()=>rF,isCallChain:()=>Al,isCallExpression:()=>uE,isCallExpressionTarget:()=>GG,isCallLikeExpression:()=>Yu,isCallLikeOrFunctionLikeExpression:()=>Qu,isCallOrNewExpression:()=>Zu,isCallOrNewExpressionTarget:()=>
6QG,isCallSignatureDeclaration:()=>PN,isCallToHelper:()=>RD,isCaseBlock:()=>fP,isCaseClause:()=>KP,isCaseKeyword:()=>gN,isCaseOrDefaultClause:()=>B_,isCatchClause:()=>QP,isCatchClauseVariableDeclaration:()=>rC,isCatchClauseVariableDeclarationOrBindingElement:()=>hp,isCheckJsEnabledForFile:()=>kT,isChildOfNodeWithKind:()=>Bf,isCircularBuildOrder:()=>VW,isClassDeclaration:()=>cP,isClassElement:()=>wu,isClassExpression:()=>NE,isClassInstanceProperty:()=>Pu,isClassLike:()=>Du,isClassMemberModifier:()=>fu,isClassNamedEvaluationHelperBlock:()=>JU,isClassOrTypeElement:()=>Lu,isClassStaticBlockDeclaration:()=>wN,isClassThisAssignmentBlock:()=>OU,isCollapsedRange:()=>sx,isColonToken:()=>ZD,isCommaExpression:()=>hA,isCommaListExpression:()=>ME,isCommaSequence:()=>yA,isCommaToken:()=>HD,isComment:()=>TQ,isCommonJsExportPropertyAssignment:()=>Kf,isCommonJsExportedExpression:()=>Hf,isCompoundAssignment:()=>nU,isComputedNonLiteralName:()=>Vp,isComputedPropertyName:()=>yN,isConciseBody:()=>g_,isConditionalExpression:()=>TE,isConditionalTypeNode:()=>WN,isConstAssertion:()=>MC,isConstTypeReference:()=>jl,isConstructSignatureDeclaration:()=>FN,isConstructorDeclaration:()=>DN,isConstructorTypeNode:()=>RN,isContextualKeyword:()=>zh,isContinueStatement:()=>XE,isCustomPrologue:()=>Cf,isDebuggerStatement:()=>iP,isDeclaration:()=>N_,isDeclarationBindingElement:()=>qu,isDeclarationFileName:()=>fO,isDeclarationName:()=>kh,isDeclarationNameOfEnumOrNamespace:()=>xx,isDeclarationReadonly:()=>ff,isDeclarationStatement:()=>E_,isDeclarationWithTypeParameterChildren:()=>Ip,isDeclarationWithTypeParameters:()=>Ap,isDecorator:()=>xN,isDecoratorTarget:()=>ZG,isDefaultClause:()=>GP,isDefaultImport:()=>jg,isDefaultModifier:()=>oN,isDefaultedExpandoInitializer:()=>ug,isDeleteExpression:()=>hE,isDeleteTarget:()=>xh,isDeprecatedDeclaration:()=>y0,isDestructuringAssignment:()=>Nb,isDiagnosticWithLocation:()=>e0,isDiskPathRoot:()=>jo,isDoStatement:()=>VE,isDocumentRegistryEntry:()=>e1,isDotDotDotToken:()=>WD,isDottedName:()=>Ab,isDynamicName:()=>ny,isESSymbolIdentifier:()=>_y,isEffectiveExternalModule:()=>Np,isEffectiveModuleDeclaration:()=>xp,isEffectiveStrictModeSourceFile:()=>Ep,isElementAccessChain:()=>Fl,isElementAccessExpression:()=>lE,isEmittedFileOfProgram:()=>Lz,isEmptyArrayLiteral:()=>qb,isEmptyBindingElement:()=>gc,isEmptyBindingPattern:()=>mc,isEmptyObjectLiteral:()=>Ub,isEmptyStatement:()=>qE,isEmptyStringLiteral:()=>Im,isEntityName:()=>gu,isEntityNameExpression:()=>Pb,isEnumConst:()=>pf,isEnumDeclaration:()=>_P,isEnumMember:()=>tF,isEqualityOperatorKind:()=>NZ,isEqualsGreaterThanToken:()=>tN,isExclamationToken:()=>QD,isExcludedFile:()=>BR,isExclusivelyTypeOnlyImportOrExport:()=>d$,isExpandoPropertyDeclaration:()=>PC,isExportAssignment:()=>NP,isExportDeclaration:()=>EP,isExportModifier:()=>iN,isExportName:()=>pA,isExportNamespaceAsDefaultDeclaration:()=>ip,isExportOrDefaultModifier:()=>uI,isExportSpecifier:()=>FP,isExportsIdentifier:()=>fg,isExportsOrModuleExportsOrAlias:()=>nB,isExpression:()=>s_,isExpressionNode:()=>Lm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>vX,isExpressionOfOptionalChainRoot:()=>Ll,isExpressionStatement:()=>zE,isExpressionWithTypeArguments:()=>PE,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Eb,isExternalModule:()=>aO,isExternalModuleAugmentation:()=>Cp,isExternalModuleImportEqualsDeclaration:()=>Bm,isExternalModuleIndicator:()=>f_,isExternalModuleNameRelative:()=>Vs,isExternalModuleReference:()=>LP,isExternalModuleSymbol:()=>pd,isExternalOrCommonJsModule:()=>_f,isFileLevelReservedGeneratedIdentifier:()=>lu,isFileLevelUniqueName:()=>Jd,isFileProbablyExternalModule:()=>AI,isFirstDeclarationOfSymbolParameter:()=>NY,isFixablePromiseHandler:()=>X1,isForInOrOfStatement:()=>m_,isForInStatement:()=>KE,isForInitializer:()=>y_,isForOfStatement:()=>GE,isForStatement:()=>HE,isFullSourceFile:()=>zm,isFunctionBlock:()=>Yf,isFunctionBody:()=>h_,isFunctionDeclaration:()=>sP,isFunctionExpression:()=>mE,isFunctionExpressionOrArrowFunction:()=>iC,isFunctionLike:()=>vu,isFunctionLikeDeclaration:()=>xu,isFunctionLikeKind:()=>Tu,isFunctionLikeOrClassStaticBlockDeclaration:()=>bu,isFunctionOrConstructorTypeNode:()=>ju,isFunctionOrModuleBlock:()=>Cu,isFunctionSymbol:()=>Ag,isFunctionTypeNode:()=>LN,isFutureReservedKeyword:()=>Vh,isGeneratedIdentifier:()=>su,isGeneratedPrivateIdentifier:()=>cu,isGetAccessor:()=>$_,isGetAccessorDeclaration:()=>NN,isGetOrSetAccessorDeclaration:()=>El,isGlobalDeclaration:()=>g0,isGlobalScopeAugmentation:()=>Tp,isGlobalSourceFile:()=>uf,isGrammarError:()=>zd,isHeritageClause:()=>XP,isHoistedFunction:()=>wf,isHoistedVariableStatement:()=>Nf,isIdentifier:()=>nN,isIdentifierANonContextualKeyword:()=>Kh,isIdentifierName:()=>wh,isIdentifierOrThisTypeNode:()=>WA,isIdentifierPart:()=>Os,isIdentifierStart:()=>Is,isIdentifierText:()=>Ls,isIdentifierTypePredicate:()=>tm,isIdentifierTypeReference:()=>JT,isIfStatement:()=>$E,isIgnoredFileFromWildCardWatching:()=>Oz,isImplicitGlob:()=>Ak,isImportAttribute:()=>kP,isImportAttributeName:()=>au,isImportAttributes:()=>SP,isImportCall:()=>xf,isImportClause:()=>yP,isImportDeclaration:()=>hP,isImportEqualsDeclaration:()=>gP,isImportKeyword:()=>mN,isImportMeta:()=>Sf,isImportOrExportSpecifier:()=>tu,isImportOrExportSpecifierName:()=>eZ,isImportSpecifier:()=>DP,isImportTypeAssertionContainer:()=>vP,isImportTypeNode:()=>eE,isImportableFile:()=>A0,isInComment:()=>vQ,isInCompoundLikeAssignment:()=>dh,isInExpressionContext:()=>Rm,isInJSDoc:()=>Gm,isInJSFile:()=>Wm,isInJSXText:()=>dQ,isInJsonFile:()=>Hm,isInNonReferenceComment:()=>IQ,isInReferenceComment:()=>AQ,isInRightSideOfInternalImportEqualsDeclaration:()=>KG,isInString:()=>cQ,isInTemplateString:()=>_Q,isInTopLevelContext:()=>gm,isInTypeQuery:()=>Pv,isIncrementalCompilation:()=>QS,isIndexSignatureDeclaration:()=>AN,isIndexedAccessTypeNode:()=>QN,isInferTypeNode:()=>HN,isInfinityOrNaNString:()=>nC,isInitializedProperty:()=>uU,isInitializedVariable:()=>kx,isInsideJsxElement:()=>pQ,isInsideJsxElementOrAttribute:()=>lQ,isInsideNodeModules:()=>
6ZZ,isInsideTemplateLiteral:()=>NQ,isInstanceOfExpression:()=>Bb,isInstantiatedModule:()=>tJ,isInterfaceDeclaration:()=>lP,isInternalDeclaration:()=>id,isInternalModuleImportEqualsDeclaration:()=>qm,isInternalName:()=>_A,isIntersectionTypeNode:()=>VN,isIntrinsicJsxName:()=>Qy,isIterationStatement:()=>u_,isJSDoc:()=>yF,isJSDocAllType:()=>uF,isJSDocAugmentsTag:()=>xF,isJSDocAuthorTag:()=>SF,isJSDocCallbackTag:()=>TF,isJSDocClassTag:()=>kF,isJSDocCommentContainingNode:()=>U_,isJSDocConstructSignature:()=>Ug,isJSDocDeprecatedTag:()=>FF,isJSDocEnumTag:()=>IF,isJSDocFunctionType:()=>mF,isJSDocImplementsTag:()=>qF,isJSDocImportTag:()=>VF,isJSDocIndexSignature:()=>Xm,isJSDocLikeText:()=>FI,isJSDocLink:()=>sF,isJSDocLinkCode:()=>cF,isJSDocLinkLike:()=>ed,isJSDocLinkPlain:()=>lF,isJSDocMemberName:()=>aF,isJSDocNameReference:()=>oF,isJSDocNamepathType:()=>hF,isJSDocNamespaceBody:()=>x_,isJSDocNode:()=>J_,isJSDocNonNullableType:()=>pF,isJSDocNullableType:()=>dF,isJSDocOptionalParameter:()=>gC,isJSDocOptionalType:()=>fF,isJSDocOverloadTag:()=>PF,isJSDocOverrideTag:()=>EF,isJSDocParameterTag:()=>OF,isJSDocPrivateTag:()=>wF,isJSDocPropertyLikeTag:()=>zl,isJSDocPropertyTag:()=>UF,isJSDocProtectedTag:()=>DF,isJSDocPublicTag:()=>CF,isJSDocReadonlyTag:()=>NF,isJSDocReturnTag:()=>LF,isJSDocSatisfiesExpression:()=>vC,isJSDocSatisfiesTag:()=>zF,isJSDocSeeTag:()=>AF,isJSDocSignature:()=>bF,isJSDocTag:()=>q_,isJSDocTemplateTag:()=>jF,isJSDocThisTag:()=>RF,isJSDocThrowsTag:()=>$F,isJSDocTypeAlias:()=>qg,isJSDocTypeAssertion:()=>vA,isJSDocTypeExpression:()=>iF,isJSDocTypeLiteral:()=>vF,isJSDocTypeTag:()=>MF,isJSDocTypedefTag:()=>BF,isJSDocUnknownTag:()=>JF,isJSDocUnknownType:()=>_F,isJSDocVariadicType:()=>gF,isJSXTagName:()=>Om,isJsonEqual:()=>IT,isJsonSourceFile:()=>df,isJsxAttribute:()=>zP,isJsxAttributeLike:()=>R_,isJsxAttributeName:()=>TC,isJsxAttributes:()=>$P,isJsxChild:()=>L_,isJsxClosingElement:()=>BP,isJsxClosingFragment:()=>qP,isJsxElement:()=>RP,isJsxExpression:()=>WP,isJsxFragment:()=>JP,isJsxNamespacedName:()=>HP,isJsxOpeningElement:()=>jP,isJsxOpeningFragment:()=>UP,isJsxOpeningLikeElement:()=>j_,isJsxOpeningLikeElementTagName:()=>eX,isJsxSelfClosingElement:()=>MP,isJsxSpreadAttribute:()=>VP,isJsxTagNameExpression:()=>O_,isJsxText:()=>JD,isJumpStatementTarget:()=>lX,isKeyword:()=>Jh,isKeywordOrPunctuation:()=>qh,isKnownSymbol:()=>ly,isLabelName:()=>_X,isLabelOfLabeledStatement:()=>uX,isLabeledStatement:()=>tP,isLateVisibilityPaintedStatement:()=>Mp,isLeftHandSideExpression:()=>t_,isLeftHandSideOfAssignment:()=>Db,isLet:()=>vf,isLineBreak:()=>us,isLiteralComputedPropertyDeclarationName:()=>Ch,isLiteralExpression:()=>Xl,isLiteralExpressionOfObject:()=>Ql,isLiteralImportTypeNode:()=>kf,isLiteralKind:()=>Gl,isLiteralLikeAccess:()=>vg,isLiteralLikeElementAccess:()=>bg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yX,isLiteralTypeLikeExpression:()=>XA,isLiteralTypeLiteral:()=>a_,isLiteralTypeNode:()=>ZN,isLocalName:()=>dA,isLogicalOperator:()=>yb,isLogicalOrCoalescingAssignmentExpression:()=>bb,isLogicalOrCoalescingAssignmentOperator:()=>vb,isLogicalOrCoalescingBinaryExpression:()=>Sb,isLogicalOrCoalescingBinaryOperator:()=>xb,isMappedTypeNode:()=>YN,isMemberName:()=>Nl,isMetaProperty:()=>OE,isMethodDeclaration:()=>CN,isMethodOrAccessor:()=>Fu,isMethodSignature:()=>TN,isMinusToken:()=>GD,isMissingDeclaration:()=>AP,isMissingPackageJsonInfo:()=>CM,isModifier:()=>mu,isModifierKind:()=>du,isModifierLike:()=>Iu,isModuleAugmentationExternal:()=>wp,isModuleBlock:()=>pP,isModuleBody:()=>v_,isModuleDeclaration:()=>dP,isModuleExportsAccessExpression:()=>gg,isModuleIdentifier:()=>mg,isModuleName:()=>GA,isModuleOrEnumDeclaration:()=>k_,isModuleReference:()=>I_,isModuleSpecifierLike:()=>dY,isModuleWithStringLiteralName:()=>vp,isNameOfFunctionDeclaration:()=>hX,isNameOfModuleDeclaration:()=>gX,isNamedClassElement:()=>Au,isNamedDeclaration:()=>jc,isNamedEvaluation:()=>my,isNamedEvaluationSource:()=>fy,isNamedExportBindings:()=>ql,isNamedExports:()=>PP,isNamedImportBindings:()=>S_,isNamedImports:()=>wP,isNamedImportsOrExports:()=>Gx,isNamedTupleMember:()=>UN,isNamespaceBody:()=>b_,isNamespaceExport:()=>CP,isNamespaceExportDeclaration:()=>mP,isNamespaceImport:()=>TP,isNamespaceReexportDeclaration:()=>jm,isNewExpression:()=>_E,isNewExpressionTarget:()=>
6XG,isNoSubstitutionTemplateLiteral:()=>qD,isNode:()=>$l,isNodeArray:()=>Kl,isNodeArrayMultiLine:()=>gx,isNodeDescendantOf:()=>Sh,isNodeKind:()=>Vl,isNodeLikeSystem:()=>Nn,isNodeModulesDirectory:()=>Na,isNodeWithPossibleHoistedDeclaration:()=>ph,isNonContextualKeyword:()=>$h,isNonExportDefaultModifier:()=>_I,isNonGlobalAmbientModule:()=>bp,isNonGlobalDeclaration:()=>h0,isNonNullAccess:()=>yC,isNonNullChain:()=>Jl,isNonNullExpression:()=>IE,isNonStaticMethodOrAccessorWithPrivateName:()=>_U,isNotEmittedOrPartiallyEmittedNode:()=>l_,isNotEmittedStatement:()=>IP,isNullishCoalesce:()=>Ml,isNumber:()=>gt,isNumericLiteral:()=>MD,isNumericLiteralName:()=>aC,isObjectBindingElementWithoutPropertyName:()=>pY,isObjectBindingOrAssignmentElement:()=>Wu,isObjectBindingOrAssignmentPattern:()=>Vu,isObjectBindingPattern:()=>rE,isObjectLiteralElement:()=>G_,isObjectLiteralElementLike:()=>Ru,isObjectLiteralExpression:()=>sE,isObjectLiteralMethod:()=>Zf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>em,isObjectTypeDeclaration:()=>Vx,isOctalDigit:()=>ms,isOmittedExpression:()=>EE,isOptionalChain:()=>Il,isOptionalChainRoot:()=>Ol,isOptionalDeclaration:()=>hC,isOptionalJSDocPropertyLikeTag:()=>pC,isOptionalTypeNode:()=>qN,isOuterExpression:()=>xA,isOutermostOptionalChain:()=>Rl,isOverrideModifier:()=>dN,isPackageJsonInfo:()=>TM,isPackedArrayLiteral:()=>QT,isParameter:()=>bN,isParameterPropertyDeclaration:()=>fc,isParameterPropertyModifier:()=>pu,isParenthesizedExpression:()=>fE,isParenthesizedTypeNode:()=>KN,isParseTreeNode:()=>Dc,isPartOfParameterDeclaration:()=>hy,isPartOfTypeNode:()=>Mf,isPartOfTypeQuery:()=>Mm,isPartiallyEmittedExpression:()=>RE,isPatternMatch:()=>hn,isPinnedComment:()=>Zd,isPlainJsFile:()=>Ld,isPlusToken:()=>KD,isPossiblyTypeArgumentPosition:()=>gQ,isPostfixUnaryExpression:()=>SE,isPrefixUnaryExpression:()=>xE,isPrimitiveLiteralValue:()=>JC,isPrivateIdentifier:()=>rN,isPrivateIdentifierClassElementDeclaration:()=>uu,isPrivateIdentifierPropertyAccessExpression:()=>_u,isPrivateIdentifierSymbol:()=>uy,isProgramBundleEmitBuildInfo:()=>yV,isProgramUptoDate:()=>O$,isPrologueDirective:()=>Tf,isPropertyAccessChain:()=>Pl,isPropertyAccessEntityNameExpression:()=>Ib,isPropertyAccessExpression:()=>cE,isPropertyAccessOrQualifiedName:()=>Xu,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Gu,isPropertyAssignment:()=>YP,isPropertyDeclaration:()=>kN,isPropertyName:()=>hu,isPropertyNameLiteral:()=>iy,isPropertySignature:()=>SN,isProtoSetter:()=>dy,isPrototypeAccess:()=>Lb,isPrototypePropertyAssignment:()=>Eg,isPunctuation:()=>Uh,isPushOrUnshiftIdentifier:()=>gy,isQualifiedName:()=>hN,isQuestionDotToken:()=>eN,isQuestionOrExclamationToken:()=>VA,isQuestionOrPlusOrMinusToken:()=>KA,isQuestionToken:()=>YD,isRawSourceMap:()=>EJ,isReadonlyKeyword:()=>lN,isReadonlyKeywordOrPlusOrMinusToken:()=>HA,isRecognizedTripleSlashComment:()=>Yd,isReferenceFileLocation:()=>A$,isReferencedFile:()=>F$,isRegularExpressionLiteral:()=>UD,isRequireCall:()=>Qm,isRequireVariableStatement:()=>ng,isRestParameter:()=>nd,isRestTypeNode:()=>zN,isReturnStatement:()=>YE,isReturnStatementWithFixablePromiseHandler:()=>G1,isRightSideOfAccessExpression:()=>Mb,isRightSideOfInstanceofExpression:()=>Jb,isRightSideOfPropertyAccess:()=>fX,isRightSideOfQualifiedName:()=>pX,isRightSideOfQualifiedNameOrPropertyAccess:()=>Rb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>jb,isRootedDiskPath:()=>Mo,isSameEntityName:()=>dg,isSatisfiesExpression:()=>AE,isScopeMarker:()=>__,isSemicolonClassElement:()=>BE,isSetAccessor:()=>z_,isSetAccessorDeclaration:()=>EN,isShebangTrivia:()=>Ss,isShiftOperatorOrHigher:()=>QA,isShorthandAmbientModuleSymbol:()=>Sp,isShorthandPropertyAssignment:()=>ZP,isSignedNumericLiteral:()=>ey,isSimpleCopiableExpression:()=>eU,isSimpleInlineableExpression:()=>tU,isSimpleParameter:()=>xU,isSimpleParameterList:()=>SU,isSingleOrDoubleQuote:()=>rg,isSourceFile:()=>nF,isSourceFileFromLibrary:()=>T0,isSourceFileJS:()=>$m,isSourceFileNotJS:()=>Vm,isSourceFileNotJson:()=>Km,isSourceMapping:()=>IJ,isSpecialPropertyDeclaration:()=>Pg,isSpreadAssignment:()=>eF,isSpreadElement:()=>DE,isStatement:()=>F_,isStatementButNotDeclaration:()=>P_,isStatementOrBlock:()=>A_,isStatementWithLocals:()=>Rd,isStatic:()=>Qv,isStaticModifier:()=>uN,isString:()=>mt,isStringAKeyword:()=>Hh,isStringANonContextualKeyword:()=>Wh,isStringAndEmptyAnonymousObjectIntersection:()=>DQ,isStringDoubleQuoted:()=>
6ig,isStringLiteral:()=>BD,isStringLiteralLike:()=>Z_,isStringLiteralOrJsxExpression:()=>M_,isStringLiteralOrTemplate:()=>EZ,isStringOrNumericLiteralLike:()=>Zh,isStringOrRegularExpressionOrTemplateLiteral:()=>CQ,isStringTextContainingNode:()=>ou,isSuperCall:()=>bf,isSuperKeyword:()=>fN,isSuperOrSuperProperty:()=>bm,isSuperProperty:()=>xm,isSupportedSourceFileName:()=>sT,isSwitchStatement:()=>eP,isSyntaxList:()=>WF,isSyntheticExpression:()=>LE,isSyntheticReference:()=>OP,isTagName:()=>dX,isTaggedTemplateExpression:()=>dE,isTaggedTemplateTag:()=>YG,isTemplateExpression:()=>CE,isTemplateHead:()=>zD,isTemplateLiteral:()=>e_,isTemplateLiteralKind:()=>Yl,isTemplateLiteralToken:()=>Zl,isTemplateLiteralTypeNode:()=>nE,isTemplateLiteralTypeSpan:()=>tE,isTemplateMiddle:()=>$D,isTemplateMiddleOrTemplateTail:()=>eu,isTemplateSpan:()=>jE,isTemplateTail:()=>VD,isTextWhiteSpaceLike:()=>TY,isThis:()=>SX,isThisContainerOrFunctionBlock:()=>mm,isThisIdentifier:()=>Ev,isThisInTypeQuery:()=>Fv,isThisInitializedDeclaration:()=>km,isThisInitializedObjectBindingExpression:()=>Tm,isThisProperty:()=>Sm,isThisTypeNode:()=>GN,isThisTypeParameter:()=>cC,isThisTypePredicate:()=>nm,isThrowStatement:()=>nP,isToken:()=>Hl,isTokenKind:()=>Wl,isTraceEnabled:()=>eM,isTransientSymbol:()=>dd,isTrivia:()=>Gh,isTryStatement:()=>rP,isTupleTypeNode:()=>JN,isTypeAlias:()=>zg,isTypeAliasDeclaration:()=>uP,isTypeAssertionExpression:()=>pE,isTypeDeclaration:()=>_C,isTypeElement:()=>Ou,isTypeKeyword:()=>$Q,isTypeKeywordToken:()=>VQ,isTypeKeywordTokenOrIdentifier:()=>WQ,isTypeLiteralNode:()=>jN,isTypeNode:()=>Mu,isTypeNodeKind:()=>Wx,isTypeOfExpression:()=>yE,isTypeOnlyExportDeclaration:()=>ru,isTypeOnlyImportDeclaration:()=>nu,isTypeOnlyImportOrExportDeclaration:()=>iu,isTypeOperatorNode:()=>XN,isTypeParameterDeclaration:()=>vN,isTypePredicateNode:()=>IN,isTypeQueryNode:()=>MN,isTypeReferenceNode:()=>ON,isTypeReferenceType:()=>X_,isTypeUsableAsPropertyName:()=>NC,isUMDExportSymbol:()=>Ux,isUnaryExpression:()=>r_,isUnaryExpressionWithWrite:()=>o_,isUnicodeIdentifierStart:()=>Wa,isUnionTypeNode:()=>$N,isUrl:()=>Ro,isValidBigIntString:()=>jT,isValidESSymbolDeclaration:()=>Gf,isValidTypeOnlyAliasUseSite:()=>BT,isValueSignatureDeclaration:()=>fh,isVarAwaitUsing:()=>mf,isVarConst:()=>hf,isVarConstLike:()=>yf,isVarUsing:()=>gf,isVariableDeclaration:()=>oP,isVariableDeclarationInVariableStatement:()=>Wf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Zm,isVariableDeclarationInitializedToRequire:()=>Ym,isVariableDeclarationList:()=>aP,isVariableLike:()=>$f,isVariableLikeOrAccessor:()=>Vf,isVariableStatement:()=>UE,isVoidExpression:()=>vE,isWatchSet:()=>Tx,isWhileStatement:()=>
6WE,isWhiteSpaceLike:()=>cs,isWhiteSpaceSingleLine:()=>ls,isWithStatement:()=>ZE,isWriteAccess:()=>Fx,isWriteOnlyAccess:()=>Px,isYieldExpression:()=>wE,jsxModeNeedsExplicitImport:()=>k0,keywordPart:()=>IY,last:()=>Le,lastOrUndefined:()=>Oe,length:()=>_,libMap:()=>FO,libs:()=>PO,lineBreakPart:()=>KY,linkNamePart:()=>zY,linkPart:()=>$Y,linkTextPart:()=>qY,listFiles:()=>_W,loadModuleFromGlobalCache:()=>qj,loadWithModeAwareCache:()=>k$,makeIdentifierFromModuleName:()=>mp,makeImport:()=>iY,makeStringLiteral:()=>oY,mangleScopedPackageName:()=>Lj,map:()=>j,mapAllOrFail:()=>W,mapDefined:()=>H,mapDefinedEntries:()=>G,mapDefinedIterator:()=>K,mapEntries:()=>ee,mapIterator:()=>B,mapOneOrMany:()=>o0,mapToDisplayParts:()=>GY,matchFiles:()=>jk,matchPatternOrExact:()=>CT,matchedText:()=>dn,matchesExclude:()=>UR,maybeBind:()=>st,maybeSetLocalizedDiagnosticMessages:()=>pS,memoize:()=>Nt,memoizeCached:()=>Ft,memoizeOne:()=>Et,memoizeWeak:()=>Pt,metadataHelper:()=>oD,min:()=>Jt,minAndMax:()=>NT,missingFileModifiedTime:()=>ao,modifierToFlag:()=>gb,modifiersToFlags:()=>mb,moduleOptionDeclaration:()=>LO,moduleResolutionIsEqualTo:()=>wd,moduleResolutionNameAndModeGetter:()=>y$,moduleResolutionOptionDeclarations:()=>UO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>ok,moduleResolutionUsesNodeModules:()=>rY,moduleSpecifierToValidIdentifier:()=>p0,moduleSpecifiers:()=>aB,moduleSymbolToValidIdentifier:()=>d0,moveEmitHelpers:()=>qw,moveRangeEnd:()=>rx,moveRangePastDecorators:()=>ox,moveRangePastModifiers:()=>ax,moveRangePos:()=>ix,moveSyntheticComments:()=>Lw,mutateMap:()=>Rx,mutateMapSkippingNewValues:()=>Lx,needsParentheses:()=>CZ,needsScopeMarker:()=>p_,newCaseClauseTracker:()=>C0,newPrivateEnvironment:()=>hU,noEmitNotification:()=>zq,noEmitSubstitution:()=>qq,noTransformers:()=>Lq,noTruncationMaximumTruncationLength:()=>cd,nodeCanBeDecorated:()=>Dm,nodeHasName:()=>Rc,nodeIsDecorated:()=>Nm,nodeIsMissing:()=>Ud,nodeIsPresent:()=>qd,nodeIsSynthesized:()=>by,nodeModuleNameResolver:()=>HM,nodeModulesPathPart:()=>ZM,nodeNextJsonConfigResolver:()=>KM,nodeOrChildIsDecorated:()=>Em,nodeOverlapsWithStartEnd:()=>AX,nodePosToString:()=>jd,nodeSeenTracker:()=>HQ,nodeStartsNewLexicalEnvironment:()=>vy,nodeToDisplayParts:()=>ZY,noop:()=>vt,noopFileWatcher:()=>bW,normalizePath:()=>sa,normalizeSlashes:()=>ta,not:()=>bn,notImplemented:()=>Dt,notImplementedResolver:()=>yz,nullNodeConverters:()=>KC,nullParenthesizerRules:()=>VC,nullTransformationContext:()=>Vq,objectAllocator:()=>sS,operatorPart:()=>LY,optionDeclarations:()=>MO,optionMapToObject:()=>VL,optionsAffectingProgramStructure:()=>zO,optionsForBuild:()=>KO,optionsForWatch:()=>AO,optionsHaveChanges:()=>yd,optionsHaveModuleResolutionChanges:()=>gd,or:()=>vn,orderedRemoveItem:()=>an,orderedRemoveItemAt:()=>sn,packageIdToPackageName:()=>Nd,packageIdToString:()=>Ed,paramHelper:()=>aD,parameterIsThisKeyword:()=>Nv,parameterNamePart:()=>RY,parseBaseNodeFactory:()=>DI,parseBigInt:()=>RT,parseBuildCommand:()=>gL,parseCommandLine:()=>_L,parseCommandLineWorker:()=>sL,parseConfigFileTextToJson:()=>bL,parseConfigFileWithSystem:()=>iW,parseConfigHostFromCompilerHostLike:()=>z$,parseCustomTypeOption:()=>rL,parseIsolatedEntityName:()=>iO,parseIsolatedJSDocComment:()=>cO,parseJSDocTypeExpressionForTests:()=>lO,parseJsonConfigFileContent:()=>nR,parseJsonSourceFileConfigFileContent:()=>rR,parseJsonText:()=>oO,parseListTypeOption:()=>iL,parseNodeFactory:()=>NI,parseNodeModuleFromPath:()=>tj,parsePackageName:()=>bj,parsePseudoBigInt:()=>OT,parseValidBigInt:()=>MT,pasteEdits:()=>wfe,patchWriteFileEnsuringDirectory:()=>No,pathContainsNodeModules:()=>ej,pathIsAbsolute:()=>Bo,pathIsBareSpecifier:()=>Uo,pathIsRelative:()=>Jo,patternText:()=>_n,perfLogger:()=>lr,performIncrementalCompilation:()=>IW,performance:()=>ur,plainJSErrors:()=>j$,positionBelongsToNode:()=>OX,positionIsASICandidate:()=>BZ,positionIsSynthesized:()=>hT,positionsAreOnSameLine:()=>hx,preProcessFile:()=>B1,probablyUsesSemicolons:()=>JZ,processCommentPragmas:()=>gO,processPragmasIntoFields:()=>hO,processTaggedTemplateExpression:()=>HU,programContainsEsModules:()=>ZQ,programContainsModules:()=>YQ,projectReferenceIsEqualTo:()=>Cd,propKeyHelper:()=>bD,propertyNamePart:()=>MY,pseudoBigIntToString:()=>LT,punctuationPart:()=>OY,pushIfUnique:()=>ye,quote:()=>DZ,quotePreferenceFromString:()=>sY,rangeContainsPosition:()=>DX,rangeContainsPositionExclusive:()=>NX,rangeContainsRange:()=>CX,rangeContainsRangeExclusive:()=>wX,rangeContainsStartEnd:()=>PX,rangeEndIsOnSameLineAsRangeStart:()=>px,rangeEndPositionsAreOnSameLine:()=>_x,rangeEquals:()=>Ce,rangeIsOnSingleLine:()=>lx,rangeOfNode:()=>ET,rangeOfTypeParameters:()=>PT,rangeOverlapsWithStartEnd:()=>FX,rangeStartIsOnSameLineAsRangeEnd:()=>dx,rangeStartPositionsAreOnSameLine:()=>ux,readBuilderProgram:()=>OW,readConfigFile:()=>vL,readHelper:()=>yD,readJson:()=>Xb,readJsonConfigFile:()=>xL,readJsonOrUndefined:()=>Gb,reduceEachLeadingCommentRange:()=>
6Ds,reduceEachTrailingCommentRange:()=>Ns,reduceLeft:()=>qe,reduceLeftIterator:()=>S,reducePathComponents:()=>na,refactor:()=>v6,regExpEscape:()=>xk,regularExpressionFlagToCharacter:()=>Ya,relativeComplement:()=>pe,removeAllComments:()=>gw,removeEmitHelper:()=>Jw,removeExtension:()=>pT,removeFileExtension:()=>_T,removeIgnoredPath:()=>LV,removeMinAndVersionNumbers:()=>on,removeOptionality:()=>mQ,removePrefix:()=>mn,removeSuffix:()=>nn,removeTrailingDirectorySeparator:()=>ua,repeatString:()=>GQ,replaceElement:()=>Be,replaceFirstStar:()=>IC,resolutionExtensionIsTSOrJson:()=>vT,resolveConfigFileProjectName:()=>JW,resolveJSModule:()=>zM,resolveLibrary:()=>BM,resolveModuleName:()=>UM,resolveModuleNameFromCache:()=>JM,resolvePackageNameToPackageJson:()=>SM,resolvePath:()=>ia,resolveProjectReferencePath:()=>$$,resolveTripleslashReference:()=>Uz,resolveTypeReferenceDirective:()=>vM,resolvingEmptyArray:()=>od,restHelper:()=>fD,returnFalse:()=>bt,returnNoopFileWatcher:()=>xW,returnTrue:()=>xt,returnUndefined:()=>St,returnsPromise:()=>K1,runInitializersHelper:()=>cD,sameFlatMap:()=>V,sameMap:()=>J,sameMapping:()=>AJ,scanShebangTrivia:()=>ks,scanTokenAtPosition:()=>cf,scanner:()=>$G,screenStartingMessageCodes:()=>tW,semanticDiagnosticsOptionDeclarations:()=>jO,serializeCompilerOptions:()=>GL,server:()=>Lfe,servicesVersion:()=>V8,setCommentRange:()=>Nw,setConfigFileInOptions:()=>iR,setConstantValue:()=>Mw,setEachParent:()=>KT,setEmitFlags:()=>hw,setFunctionNameHelper:()=>xD,setGetSourceFileAsHashVersioned:()=>DW,setIdentifierAutoGenerate:()=>Xw,setIdentifierGeneratedImportReference:()=>Yw,setIdentifierTypeArguments:()=>Kw,setInternalEmitFlags:()=>vw,setLocalizedDiagnosticMessages:()=>dS,setModuleDefaultHelper:()=>CD,setNodeChildren:()=>XF,setNodeFlags:()=>WT,setObjectAllocator:()=>uS,setOriginalNode:()=>pw,setParent:()=>HT,setParentRecursive:()=>GT,setPrivateIdentifier:()=>vU,setSnippetElement:()=>$w,setSourceMapRange:()=>Sw,setStackTraceLimit:()=>ro,setStartsOnNewLine:()=>ww,setSyntheticLeadingComments:()=>Pw,setSyntheticTrailingComments:()=>Iw,setSys:()=>Po,setSysLog:()=>So,setTextRange:()=>TI,setTextRangeEnd:()=>zT,setTextRangePos:()=>qT,setTextRangePosEnd:()=>$T,setTextRangePosWidth:()=>VT,setTokenSourceMapRange:()=>Tw,setTypeNode:()=>Ww,setUILocale:()=>Gt,setValueDeclaration:()=>Fg,shouldAllowImportingTsExtension:()=>Uj,shouldPreserveConstEnums:()=>XS,shouldUseUriStyleNodeCoreModules:()=>v0,showModuleSpecifier:()=>qx,signatureHasLiteralTypes:()=>sJ,signatureHasRestParameter:()=>aJ,signatureToDisplayParts:()=>YY,single:()=>Me,singleElementArray:()=>Sn,singleIterator:()=>Y,singleOrMany:()=>je,singleOrUndefined:()=>Re,skipAlias:()=>Nx,skipAssertions:()=>TA,skipConstraint:()=>XQ,skipOuterExpressions:()=>SA,skipParentheses:()=>bh,skipPartiallyEmittedExpressions:()=>Bl,skipTrivia:()=>hs,skipTypeChecking:()=>FT,skipTypeParentheses:()=>vh,skipWhile:()=>Dn,sliceAfter:()=>wT,some:()=>te,sort:()=>xe,sortAndDeduplicate:()=>le,sortAndDeduplicateDiagnostics:()=>Ws,sourceFileAffectingCompilerOptions:()=>qO,sourceFileMayBeEmitted:()=>gv,sourceMapCommentRegExp:()=>TJ,sourceMapCommentRegExpDontCareLineStart:()=>kJ,spacePart:()=>AY,spanMap:()=>Z,spreadArrayHelper:()=>vD,stableSort:()=>ke,startEndContainsRange:()=>EX,startEndOverlapsWithStartEnd:()=>IX,startOnNewLine:()=>CA,startTracing:()=>Ar,startsWith:()=>fn,startsWithDirectory:()=>xa,startsWithUnderscore:()=>m0,startsWithUseStrict:()=>gA,stringContainsAt:()=>f0,stringToToken:()=>Xa,stripQuotes:()=>Xy,supportedDeclarationExtensions:()=>Qk,supportedJSExtensions:()=>Hk,supportedJSExtensionsFlat:()=>Kk,supportedLocaleDirectories:()=>kc,supportedTSExtensions:()=>zk,supportedTSExtensionsFlat:()=>$k,supportedTSImplementationExtensions:()=>Yk,suppressLeadingAndTrailingTrivia:()=>dZ,suppressLeadingTrivia:()=>pZ,suppressTrailingTrivia:()=>fZ,symbolEscapedNameNoDefault:()=>_Y,symbolName:()=>Ic,symbolNameNoDefault:()=>uY,symbolPart:()=>PY,symbolToDisplayParts:()=>QY,syntaxMayBeASICandidate:()=>jZ,syntaxRequiresTrailingSemicolonOrASI:()=>MZ,sys:()=>Eo,sysLog:()=>xo,tagNamesAreEquivalent:()=>TO,takeWhile:()=>wn,targetOptionDeclaration:()=>
6OO,templateObjectHelper:()=>hD,testFormatSettings:()=>IG,textChangeRangeIsUnchanged:()=>lc,textChangeRangeNewSpan:()=>cc,textChanges:()=>Q_e,textOrKeywordPart:()=>jY,textPart:()=>BY,textRangeContainsPositionInclusive:()=>Qs,textSpanContainsPosition:()=>Xs,textSpanContainsTextSpan:()=>Ys,textSpanEnd:()=>Ks,textSpanIntersection:()=>oc,textSpanIntersectsWith:()=>nc,textSpanIntersectsWithPosition:()=>ic,textSpanIntersectsWithTextSpan:()=>tc,textSpanIsEmpty:()=>Gs,textSpanOverlap:()=>ec,textSpanOverlapsWith:()=>Zs,textSpansEqual:()=>bY,textToKeywordObj:()=>Ia,timestamp:()=>ar,toArray:()=>ft,toBuilderFileEmit:()=>DV,toBuilderStateFileInfoForMultiEmit:()=>wV,toEditorSettings:()=>c7,toFileNameLowerCase:()=>wt,toLowerCase:()=>Tt,toPath:()=>la,toProgramEmitPending:()=>NV,tokenIsIdentifierOrKeyword:()=>Fa,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Aa,tokenToString:()=>Ga,trace:()=>ZR,tracing:()=>pr,tracingEnabled:()=>fr,transform:()=>D7,transformClassFields:()=>QU,transformDeclarations:()=>Fq,transformECMAScriptModule:()=>kq,transformES2015:()=>yq,transformES2016:()=>gq,transformES2017:()=>nq,transformES2018:()=>iq,transformES2019:()=>oq,transformES2020:()=>aq,transformES2021:()=>sq,transformESDecorators:()=>tq,transformESNext:()=>cq,transformGenerators:()=>vq,transformJsx:()=>fq,transformLegacyDecorators:()=>eq,transformModule:()=>bq,transformNamedEvaluation:()=>VU,transformNodeModule:()=>Tq,transformNodes:()=>$q,transformSystemModule:()=>Sq,transformTypeScript:()=>XU,transpile:()=>u2,transpileDeclaration:()=>i2,transpileModule:()=>r2,transpileOptionValueCompilerOptions:()=>$O,tryAddToSet:()=>Q,tryAndIgnoreErrors:()=>VZ,tryCast:()=>ht,tryDirectoryExists:()=>$Z,tryExtractTSExtension:()=>$b,tryFileExists:()=>zZ,tryGetClassExtendingExpressionWithTypeArguments:()=>Tb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Cb,tryGetDirectories:()=>UZ,tryGetExtensionFromPath:()=>ST,tryGetImportFromModuleSpecifier:()=>Lg,tryGetJSDocSatisfiesTypeNode:()=>xC,tryGetModuleNameFromFile:()=>AA,tryGetModuleSpecifierFromDeclaration:()=>Ig,tryGetNativePerformanceHooks:()=>ir,tryGetPropertyAccessOrIdentifierToString:()=>Ob,tryGetPropertyNameOfBindingOrAssignmentElement:()=>MA,tryGetSourceMappingURL:()=>DJ,tryGetTextOfPropertyName:()=>Wp,tryIOAndConsumeErrors:()=>WZ,tryParseJson:()=>Qb,tryParsePattern:()=>mT,tryParsePatterns:()=>gT,tryParseRawSourceMap:()=>PJ,tryReadDirectory:()=>qZ,tryReadFile:()=>SL,tryRemoveDirectoryPrefix:()=>vk,tryRemoveExtension:()=>dT,tryRemovePrefix:()=>gn,tryRemoveSuffix:()=>rn,typeAcquisitionDeclarations:()=>XO,typeAliasNamePart:()=>JY,typeDirectiveIsEqualTo:()=>Pd,typeKeywords:()=>zQ,typeParameterNamePart:()=>UY,typeToDisplayParts:()=>XY,unchangedPollThresholds:()=>_o,unchangedTextChangeRange:()=>_c,unescapeLeadingUnderscores:()=>Pc,unmangleScopedPackageName:()=>Mj,unorderedRemoveItem:()=>ln,unorderedRemoveItemAt:()=>cn,unreachableCodeIsError:()=>rk,unsetNodeChildren:()=>QF,unusedLabelIsError:()=>ik,unwrapInnermostStatementOfLabel:()=>Qf,unwrapParenthesizedExpression:()=>UC,updateErrorForNoInputFiles:()=>vR,updateLanguageServiceSourceFile:()=>g7,updateMissingFilePathsWatch:()=>Az,updateResolutionField:()=>lM,updateSharedExtendedConfigFileWatcher:()=>Ez,updateSourceFile:()=>sO,updateWatchingWildcardDirectories:()=>Iz,usesExtensionsOnImports:()=>oT,usingSingleLineStringWriter:()=>kd,utf16EncodeAsString:()=>Js,validateLocaleAndSetLanguage:()=>Tc,valuesHelper:()=>SD,version:()=>a,versionMajorMinor:()=>o,visitArray:()=>_J,visitCommaListElements:()=>yJ,visitEachChild:()=>vJ,visitFunctionBody:()=>gJ,visitIterationBody:()=>hJ,visitLexicalEnvironment:()=>pJ,visitNode:()=>lJ,visitNodes:()=>uJ,visitParameterList:()=>fJ,walkUpBindingElementsAndPatterns:()=>hc,walkUpLexicalEnvironments:()=>gU,walkUpOuterExpressions:()=>kA,walkUpParenthesizedExpressions:()=>hh,walkUpParenthesizedTypes:()=>gh,walkUpParenthesizedTypesAndGetParentAndChild:()=>yh,whitespaceOrMapCommentRegExp:()=>CJ,writeCommentRange:()=>$v,writeFile:()=>vv,writeFileEnsuringDirectories:()=>xv,zipWith:()=>k});var Lfe={};r(Lfe,{ActionInvalidate:()=>WK,ActionPackageInstalled:()=>HK,ActionSet:()=>VK,ActionWatchTypingLocations:()=>YK,Arguments:()=>zK,AutoImportProviderProject:()=>Lme,AuxiliaryProject:()=>Ime,CharRangeSection:()=>vhe,CloseFileWatcherEvent:()=>tge,CommandNames:()=>Xge,ConfigFileDiagEvent:()=>Gme,ConfiguredProject:()=>Rme,ConfiguredProjectLoadKind:()=>xge,CreateDirectoryWatcherEvent:()=>ege,CreateFileWatcherEvent:()=>Zme,Errors:()=>zfe,EventBeginInstallTypes:()=>GK,EventEndInstallTypes:()=>XK,EventInitializationFailed:()=>QK,EventTypesRegistry:()=>KK,ExternalProject:()=>Mme,GcTimer:()=>ome,InferredProject:()=>Ame,LargeFileReferencedEvent:()=>Kme,LineIndex:()=>Che,LineLeaf:()=>Dhe,LineNode:()=>whe,LogLevel:()=>Vfe,Msg:()=>Hfe,OpenFileInfoTelemetryEvent:()=>Yme,Project:()=>Fme,ProjectInfoTelemetryEvent:()=>Qme,ProjectKind:()=>Cme,ProjectLanguageServiceStateEvent:()=>Xme,ProjectLoadingFinishEvent:()=>Hme,ProjectLoadingStartEvent:()=>Wme,ProjectService:()=>
6Bge,ProjectsUpdatedInBackgroundEvent:()=>Vme,ScriptInfo:()=>xme,ScriptVersionCache:()=>khe,Session:()=>dhe,TextStorage:()=>vme,ThrottledOperations:()=>ime,TypingsCache:()=>Tme,TypingsInstallerAdapter:()=>Ehe,allFilesAreJsOrDts:()=>Nme,allRootFilesAreJsOrDts:()=>Dme,asNormalizedPath:()=>Qfe,convertCompilerOptions:()=>lge,convertFormatOptions:()=>cge,convertScriptKindName:()=>pge,convertTypeAcquisition:()=>_ge,convertUserPreferences:()=>fge,convertWatchOptions:()=>uge,countEachFileTypes:()=>wme,createInstallTypingsRequest:()=>Kfe,createModuleSpecifierCache:()=>qge,createNormalizedPathMap:()=>Yfe,createPackageJsonCache:()=>zge,createSortedArray:()=>rme,emptyArray:()=>Wfe,findArgument:()=>eG,forEachResolvedProjectReferenceProject:()=>Sge,formatDiagnosticToProtocol:()=>Gge,formatMessage:()=>Qge,getBaseConfigFileName:()=>ame,getLocationInNewDocument:()=>ghe,hasArgument:()=>ZK,hasNoTypeScriptSource:()=>Eme,indent:()=>rG,isBackgroundProject:()=>Ume,isConfigFile:()=>Jge,isConfiguredProject:()=>Bme,isDynamicFileName:()=>bme,isExternalProject:()=>Jme,isInferredProject:()=>jme,isInferredProjectName:()=>Zfe,isProjectDeferredClose:()=>qme,makeAutoImportProviderProjectName:()=>tme,makeAuxiliaryProjectName:()=>nme,makeInferredProjectName:()=>eme,maxFileSize:()=>$me,maxProgramSizeForNonTsFiles:()=>zme,normalizedPathToPath:()=>Xfe,nowString:()=>tG,nullCancellationToken:()=>$ge,nullTypingsInstaller:()=>Sme,protocol:()=>cme,removeSorted:()=>sme,stringifyIndented:()=>iG,toEvent:()=>Zge,toNormalizedPath:()=>Gfe,tryConvertScriptKindName:()=>dge,typingsInstaller:()=>Rfe,updateProjectIfDirty:()=>Ege});var Rfe={};r(Rfe,{TypingsInstaller:()=>Ufe,getNpmCommandForInstallation:()=>Jfe,installNpmPackages:()=>Bfe,typingsName:()=>qfe});var Mfe={isEnabled:()=>!1,writeLine:vt};function jfe(e,t,n,r){try{const r=UM(t,ra(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(Fhe){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${Fhe.message}`))}}function Bfe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=Jfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function Jfe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var Ufe=class{constructor(e,t,n,r,i,o=Mfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach(((t,n)=>{e[n]=t}));const t={kind:KK,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:En.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:YK,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${iG(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=qK.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=Da(Go(t),(e=>{if(this.installTypingHost.fileExists(ra(e,"package.json")))return e}))||i;if(a)this.installWorker(-1,[n],a,(e=>{const t={kind:HK,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:HK,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}
6initializeSafeList(){if(this.typesMapLocation){const e=qK.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=qK.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=ra(e,"package.json"),n=ra(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${iG(r)}`),this.log.writeLine(`Loaded content of '${n}':${iG(i)}`)),r.devDependencies&&i.dependencies)for(const t in r.devDependencies){if(!$e(i.dependencies,t))continue;const n=Xo(t);if(!n)continue;const r=jfe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=Ve(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new jn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return H(e,(e=>{const t=Lj(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=qK.validatePackageName(e);if(n!==qK.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(qK.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!qK.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=ra(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const i=this.filterTypings(r);if(0===i.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:GK,eventId:s,typingsInstallerVersion:a,projectName:e.projectName});const c=i.map(qfe);this.installTypingsAsync(s,c,t,(r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(i)}`);for(const e of i)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const a=[];for(const e of i){const n=jfe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),i={typingLocation:n,version:new jn(r[`ts${o}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,i),a.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(a)}`),this.sendResponse(this.createSetTypings(e,n.concat(a)))}finally{const t={kind:XK,eventId:s,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:a};this.sendResponse(t)}}))}ensureDirectoryExists(e,t){const n=Go(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||xd(r,(e=>!n.has(e)))||xd(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:YK,projectName:e,files:t})):this.sendResponse({kind:YK,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:VK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,(t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}};function qfe(e){return`@types/${e}@ts${o}`}var zfe,$fe,Vfe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Vfe||{}),Wfe=[],Hfe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Hfe||{});function Kfe(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function Gfe(e){return sa(e)}function Xfe(e,t,n){return n(Mo(e)?e:aa(e,t))}function Qfe(e){return e}function Yfe(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function Zfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function eme(e){return`/dev/null/inferredProject${e}*`}function tme(e){return`/dev/null/autoImportProviderProject${e}*`}function nme(e){return`/dev/null/auxiliaryProject${e}*`}function rme(){return[]}($fe=zfe||(zfe={})).ThrowNoProject=function(){throw new Error("No Project.")},$fe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},$fe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var ime=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}
6static run(e,t,n){var r,i;null==(r=lr)||r.logStartScheduledOperation(e),t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n(),null==(i=lr)||i.logStopScheduledOperation()}},ome=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){var t,n;e.timerId=void 0,null==(t=lr)||t.logStartScheduledOperation("GC collect");const r=e.logger.hasLevel(2),i=r&&e.host.getMemoryUsage();if(e.host.gc(),r){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${i}, after ${t}`)}null==(n=lr)||n.logStopScheduledOperation()}};function ame(e){const t=Xo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}function sme(e,t,n){if(!e||0===e.length)return;if(e[0]===t)return void e.splice(0,1);const r=Je(e,t,kt,n);r>=0&&e.splice(r,1)}var cme={};r(cme,{ClassificationType:()=>zG,CommandTypes:()=>lme,CompletionTriggerKind:()=>DG,IndentStyle:()=>pme,JsxEmit:()=>fme,ModuleKind:()=>mme,ModuleResolutionKind:()=>gme,NewLineKind:()=>hme,OrganizeImportsMode:()=>wG,PollingWatchKind:()=>dme,ScriptTarget:()=>yme,SemicolonPreference:()=>FG,WatchDirectoryKind:()=>_me,WatchFileKind:()=>ume});var lme=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupp
6ortedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e))(lme||{}),ume=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(ume||{}),_me=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(_me||{}),dme=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(dme||{}),pme=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(pme||{}),fme=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(fme||{}),mme=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.NodeNext="nodenext",e.Preserve="preserve",e))(mme||{}),gme=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(gme||{}),hme=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(hme||{}),yme=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(yme||{}),vme=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return En.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=KQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===ao.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||ao).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e,t;return(null==(t=this.tryUseScriptVersionCache())?void 0:t.getSnapshot())||(null!=(e=this.textSnapshot)?e:this.textSnapshot=fG.fromString(En.checkDefined(this.text)))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return sc(n[e],e+1<n.length?n[e+1]:this.text.length)}lineOffsetToPosition(e,t,n){const r=this.tryUseScriptVersionCache();return r?r.lineOffsetToPosition(e,t):ns(this.getLineMap(),e-1,t-1,this.text,n)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:n,character:r}=is(this.getLineMap(),e);return{line:n+1,offset:r+1}}getFileTextAndSize(e){let t;const n=e||this.info.fileName,r=()=>void 0===t?t=this.host.readFile(n)||"":t;if(!rT(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>$me)return En.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}return{text:r()}}
6switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=khe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=khe.fromString(En.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(En.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return En.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=es(En.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return wJ(this.text,t)}};function bme(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Xo(e)[0]||e.includes(":^")&&!e.includes(Fo)}var xme=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=bme(t),this.textStorage=new vme(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||qk(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){En.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return F(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:an(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){Bme(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!jme(e)&&e.addMissingFileRoot(t.fileName)}M(this.containingProjects)}getDefaultProject(){var e;switch(this.containingProjects.length){case 0:return zfe.ThrowNoProject();case 1:return qme(this.containingProjects[0])||Ume(this.containingProjects[0])?zfe.ThrowNoProject():this.containingProjects[0];default:let t,n,r,i;for(let e=0;e<this.containingProjects.length;e++){const o=this.containingProjects[e];if(Bme(o)){if(o.deferredClose)continue;if(!o.isSourceOfProjectReferenceRedirect(this.fileName)){if(void 0===i&&e!==this.containingProjects.length-1&&(i=o.projectService.findDefaultConfiguredProject(this)||!1),i===o)return o;r||(r=o)}t||(t=o)}else{if(Jme(o))return o;!n&&jme(o)&&(n=o)}}return null!=(e=i||r||t||n)?e:zfe.ThrowNoProject()}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings=m(m({},this.formatSettings),e):(this.formatSettings=AG(this.host.newLine),Qe(this.formatSettings,e))),t&&(this.preferences||(this.preferences=TG),this.preferences=m(m({},this.preferences),t))}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,KQ(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){En.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return!!this.textStorage.reloadWithFileText(e)&&(this.markContainingProjectsAsDirty(),!0)}editContent(e,t,n){this.textStorage.edit(e,t,n),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return this.deferredDelete||!d(this.containingProjects,(e=>!e.isOrphan()))}
6isContainedByBackgroundProject(){return te(this.containingProjects,Ume)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){En.assert("number"==typeof e,`Expected position ${e} to be a number.`),En.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){En.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),En.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),En.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),En.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!mt(this.sourceMapFilePath)&&(Bz(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}},Sme={isKnownTypesPackageName:bt,installPackage:Dt,enqueueInstallTypingsRequest:vt,attach:vt,onProjectClosed:vt,globalTypingsCacheLocation:void 0};function kme(e,t){if(e===t)return!0;if(0===(e||Wfe).length&&0===(t||Wfe).length)return!0;const n=new Map;let r=0;for(const i of e)!0!==n.get(i)&&(n.set(i,!0),r++);for(const i of t){const e=n.get(i);if(void 0===e)return!1;!0===e&&(n.set(i,!1),r--)}return 0===r}var Tme=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,n){const r=e.getTypeAcquisition();if(!r||!r.enable)return;const i=this.perProjectCache.get(e.getProjectName());var o,a,s,c;!n&&i&&(s=r,c=i.typeAcquisition,s.enable===c.enable&&kme(s.include,c.include)&&kme(s.exclude,c.exclude))&&!function(e,t){return ZS(e)!==ZS(t)}(e.getCompilationSettings(),i.compilerOptions)&&(o=t,a=i.unresolvedImports,o===a||_e(o,a))||(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:r,typings:i?i.typings:Wfe,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,r,t))}updateTypingsForProject(e,t,n,r,i){const o=xe(i);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:o,unresolvedImports:r,poisoned:!1}),n&&n.enable?o:Wfe}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}},Cme=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(Cme||{});function wme(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:fO(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function Dme(e){const t=wme(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function Nme(e){const t=wme(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function Eme(e){return!e.some((e=>zo(e,".ts")&&!fO(e)||zo(e,".tsx")))}function Pme(e){return void 0!==e.generatedFilePath}var Fme=class e{constructor(e,t,n,r,i,o,a,s,c,l,u){switch(this.projectKind=t,this.projectService=n,this.documentRegistry=r,this.compilerOptions=a,this.compileOnSaveEnabled=s,this.watchOptions=c,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=bt,this.dirty=!1,this.typingFiles=Wfe,this.moduleSpecifierCache=qge(this),this.createHash=st(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=qK.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=e,this.directoryStructureHost=l,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(u),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new v7(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(i||ZS(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:En.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const _=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):_.trace&&(this.trace=e=>_.trace(e)),this.realpath=st(_,_.realpath),this.resolutionCache=XV(this,this.currentDirectory,!0),this.languageService=S7(this,this.documentRegistry,this.projectService.serverMode),o&&this.disableLanguageService(o),this.markAsDirty(),Ume(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return Ege(this),Nme(this)}isJsOnlyProject(){return Ege(this),function(e){const t=wme(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;
6En.assertIsDefined(n.require);for(const a of t){const t=ta(n.resolvePath(ra(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(null!=i?i:i=[]).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static importServicePluginAsync(e,t,n,r){return v(this,null,(function*(){let i,o;En.assertIsDefined(n.importPlugin);for(const a of t){const t=ra(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=yield n.importPlugin(t,e.name)}catch(Fhe){s={module:void 0,error:Fhe}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(null!=i?i:i=[]).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}))}isKnownTypesPackageName(e){return this.typingsCache.isKnownTypesPackageName(e)}installPackage(e){return this.typingsCache.installPackage(g(m({},e),{projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)}))}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=hk(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return c;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),he(e,this.typingFiles)||c}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return ra(Go(sa(this.projectService.getExecutingFilePath())),Hs(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return la(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),kW.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),kW.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,(()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}))}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}
6watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),kW.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return L(this.projectErrors,(e=>!e.file))||Wfe}getAllProjectErrors(){return this.projectErrors||Wfe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&Ege(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(Ege(this),this.builderState=G$.create(this.program,this.builderState,!0),H(G$.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),(e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0))):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:Wfe};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i)t(aa(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&GS(this.compilerOptions)){const t=i.filter((e=>fO(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):no(t[0].text);G$.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference((e=>this.detachScriptInfoFromProject(e.sourceFile.fileName))),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(En.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e&&e.include?g(m({},e),{include:this.removeExistingTypings(e.include)}):e}getExternalFiles(e){return xe(q(this.plugins,(t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(Fhe){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${Fhe}`),Fhe.stack&&this.projectService.logger.info(Fhe.stack)}})))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,(e=>
6this.detachScriptInfoIfNotRoot(e))),this.rootFilesMap.forEach((e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)})),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach((e=>{e.projects.delete(this),e.close()})),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(Ox(this.missingFilesMap,Cx),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Xe(K(this.rootFilesMap.values(),(e=>{var t;return null==(t=e.info)?void 0:t.fileName})))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Xe(K(this.rootFilesMap.values(),(e=>e.info)))}getScriptInfos(){return this.languageServiceEnabled?j(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return En.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.getRootScriptInfos()}getExcludedFiles(){return Wfe}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=w7(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const r of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(r)||n.push(r.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){En.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){var e;!1===this.autoImportProviderHost?this.autoImportProviderHost=void 0:null==(e=this.autoImportProviderHost)||e.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Ege(this)}updateGraph(){var e,t,n,r;null==(e=pr)||e.push(pr.Phase.Session,"updateGraph",{name:this.projectName,kind:Cme[this.projectKind]}
6),null==(t=lr)||t.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const i=this.updateGraphWorker(),o=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const a=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Wfe;for(const c of a)this.cachedUnresolvedImportsPerFile.delete(c);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((i||a.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=pr)||n.push(pr.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map((e=>Xy(e.getName()))),a=le(q(i,(n=>function(e,t,n,r){return X(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&vT(e.extension)||Vs(t)||n.some((e=>e===t))||(r=fe(r,bj(t).packageName))}),t),r||Wfe}))}(e,n,o,t))));return null==(r=pr)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,o)):this.lastCachedUnresolvedImportsList=void 0;const s=0===this.projectProgramVersion&&i;return i&&this.projectProgramVersion++,o&&this.markAutoImportProviderAsDirty(),s&&this.getPackageJsonAutoImportProvider(),null==(n=lr)||n.logStopUpdateGraph(),null==(r=pr)||r.pop(),!i}updateTypingFiles(e){kn(e,this.typingFiles,$t(!this.useCaseSensitiveFileNames()),vt,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=e,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Ox(this.typingWatchers,Cx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:WK})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);t.delete(r),this.typingWatchers.has(r)||this.typingWatchers.set(r,"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),kW.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):zo(e,".json")?va(e,ra(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),kW.TypingInstallerLocationDirectory,this))};for(const r of e){const e=Xo(r);if("package.json"!==e&&"bower.json"!==e)if(ba(this.currentDirectory,r,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=r.indexOf(Fo,this.currentDirectory.length+1);n(-1!==e?r.substr(0,e):r,"DirectoryWatcher")}else ba(this.projectService.typingsInstaller.globalTypingsCacheLocation,r,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(r,"DirectoryWatcher");else n(r,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){const t=kM(this.getCompilerOptions(),this.directoryStructureHost);return e.filter((e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();En.assert(n===this.program),En.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=ar(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(bt,bt);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=pr)||e.push(pr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=pr)||t.pop(),En.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,n){for(const e of n.getSourceFiles()){const t=this.program.getSourceFileByPath(e.resolvedPath);(!t||e.resolvedPath===e.path&&t.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,!!this.program.getSourceFileByPath(e.path),!0)}n.forEachResolvedProjectReference((e=>{this.program.getResolvedProjectReferenceByPath(e.sourceFile.path)||this.detachScriptInfoFromProject(e.sourceFile.fileName,void 0,!0)}))}
6if(this.rootFilesMap.forEach(((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),En.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))})),Az(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=this.compilerOptions.outFile;Pme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(_T(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(_v(n.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),e)||(Bz(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&xd(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||Wfe;this.externalFiles=this.getExternalFiles(),kn(this.externalFiles,s,$t(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const c=ar()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Kr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t,n){const r=this.projectService.getScriptInfo(e);r&&(r.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(r.path,n))}addMissingFileWatcher(e,t){var n;if(Bme(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return bW}const r=this.projectService.watchFactory.watchFile(aa(t,this.currentDirectory),((t,n)=>{Bme(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),kW.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(Pme(this.generatedFilesMap))return void En.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,(()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}),2e3,this.projectService.getWatchOptions(this),kW.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Pme(this.generatedFilesMap)?Bz(this.generatedFilesMap):Ox(this.generatedFilesMap,Bz),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?zfe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.isInitialLoadPending())return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";
6const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",dW(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${Cme[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),md(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Xe(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>Xe(e.keys());this.isInitialLoadPending()||Ege(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:jme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:Gfe(e),isSourceOfProjectReferenceRedirect:!1}))))||Wfe,s=Ze(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),c=new Map,l=new Map,u=a?Xe(a.keys()):[],_=[];return bd(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&_.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),bd(e,((e,t)=>{s.has(t)||l.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?u.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):u,updatedRedirects:t?_:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:Gfe(e),isSourceOfProjectReferenceRedirect:!1}))))||Wfe,i=e.concat(n);return this.lastReportedFileNames=Ze(i,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,ra(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const r of this.projectService.globalPlugins)r&&(e.plugins&&e.plugins.some((e=>e.name===r))||(this.projectService.logger.info(`Loading global plugin ${r}`),this.enablePlugin({name:r,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:Pfe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(Fhe){this.projectService.logger.info(`Plugin activation failed: ${Fhe}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter((t=>
6t.name===e)).forEach((e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)}))}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Wfe:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(ra(this.currentDirectory,w$),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=F0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!ZZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return Ege(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=pr)||e.push(pr.Phase.Session,"getPackageJsonAutoImportProvider");const i=ar();if(this.autoImportProviderHost=Lme.create(r,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Ege(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",ar()-i),null==(t=pr)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=pr)||n.pop()}}isDefaultProjectForOpenFiles(){return!!bd(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return En.assert(0===this.projectService.serverMode),this.noDtsResolutionProject||(this.noDtsResolutionProject=new Ime(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=En.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=En.checkDefined(c.getText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,this.program.getSourceFile(e).getText().length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return g(m({},this.getCompilerOptions()),{noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,t
6ypes:c,lib:c,noLib:!0})}},Ame=class extends Fme{constructor(e,t,n,r,i,o,a){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,r,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=a,this.projectRootPath=i&&e.toCanonicalFileName(i),i||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=PQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){En.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&C(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){d(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Dme(this),include:c,exclude:c}}},Ime=class extends Fme{constructor(e,t,n,r){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,r)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Ome=class e extends Fme{constructor(e,t,n,r){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,n,!1,void 0,r,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=st(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=st(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return c;const a=t.getCurrentProgram();if(!a)return c;const s=ar();let l,u;const _=ra(t.currentDirectory,w$),p=t.getPackageJsonsForAutoImport(ra(t.currentDirectory,_));for(const c of p)null==(i=c.dependencies)||i.forEach(((e,t)=>y(t))),null==(o=c.peerDependencies)||o.forEach(((e,t)=>y(t)));let f=0;if(l){const i=t.getSymlinkCache();for(const o of Xe(l.keys())){if(2===e&&f>this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),c;const s=SM(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(s){const e=v(s,a,i);if(e){f+=h(e);continue}}if(!d([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=SM(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return f+=h(e),!0}}}))&&s&&r.allowJs&&r.maxNodeModuleJsDepth){const e=v(s,a,i,!0);f+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach((e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([fT(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=Nt((()=>lz(e.commandLine,!t.useCaseSensitiveFileNames())));g+=h(b(H(e.commandLine.fileNames,(r=>fO(r)||zo(r,".json")||a.getSourceFile(r)?void 0:tz(r,e.commandLine,!t.useCaseSensitiveFileNames(),n)))))}})),(null==u?void 0:u.size)&&t.log(`AutoImportProviderProject: found ${u.size} root files in ${f} dependencies ${g} referenced projects in ${ar()-s} ms`),u?Xe(u.values()):c;function h(e){return(null==e?void 0:e.length)?(null!=u||(u=new Set),e.forEach((e=>u.add(e))),1):0}function y(e){fn(e,"@types/")||(l||(l=new Set)).add(e)}function v(e,i,o,a){var s;const c=_j(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:_a(r),realPath:_a(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return H(e,(e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n}))}}static create(t,n,r,i){if(0===t)return;const o=m(m({},n.getCompilerOptions()),this.compilerOptionsOverrides),a=this.getRootFileNames(t,n,r,o);return a.length?new e(n,a,i,o):void 0}isEmpty(){return!te(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||c}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host;
6 use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};Ome.maxDependencies=10,Ome.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:c,lib:c,noLib:!0};var Lme=Ome,Rme=class extends Fme{constructor(e,t,n,r,i,o){super(e,1,n,r,!1,void 0,{},!1,void 0,i,Go(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.isInitialLoadPending=xt,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=o}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=sa(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(sa(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.isInitialLoadPending=bt;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=En.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){En.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Go(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const i of e.plugins)this.enablePlugin(i,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return L(this.projectErrors,(e=>!e.file))||Wfe}getAllProjectErrors(){return this.projectErrors||Wfe}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach(((e,t)=>this.releaseParsedConfig(t))),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isSolution(){return 0===this.getRootFilesMap().size&&!this.canConfigFileJsonReportNoInputFiles}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return mM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){vR(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Mme=class extends Fme{constructor(e,t,n,r,i,o,a,s){super(e,2,t,n,!0,i,r,o,s,t.host,Go(a||ta(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function jme(e){return 0===e.projectKind}function Bme(e){return 1===e.projectKind}function Jme(e){return 2===e.projectKind}function Ume(e){return 3===e.projectKind||4===e.projectKind}function qme(e){return Bme(e)&&!!e.deferredClose}
6var zme=20971520,$me=4194304,Vme="projectsUpdatedInBackground",Wme="projectLoadingStart",Hme="projectLoadingFinish",Kme="largeFileReferenced",Gme="configFileDiag",Xme="projectLanguageServiceState",Qme="projectInfo",Yme="openFileInfo",Zme="createFileWatcher",ege="createDirectoryWatcher",tge="closeFileWatcher",nge="*ensureProjectForOpenFiles*";function rge(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach((e=>{En.assert("number"==typeof e)})),t.set(n.name,e)}return t}var ige=rge(MO),oge=rge(AO),age=new Map(Object.entries({none:0,block:1,smart:2})),sge={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function cge(e){return mt(e.indentStyle)&&(e.indentStyle=age.get(e.indentStyle.toLowerCase()),En.assert(void 0!==e.indentStyle)),e}function lge(e){return ige.forEach(((t,n)=>{const r=e[n];mt(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function uge(e,t){let n,r;return AO.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=oge.get(i.name);(n||(n={}))[i.name]=a?mt(o)?a.get(o.toLowerCase()):o:FR(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function _ge(e){let t;return XO.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function dge(e){return mt(e)?pge(e):e}function pge(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function fge(e){const t=e,{lazyConfiguredProjectsFromExternalProject:n}=t;return h(t,["lazyConfiguredProjectsFromExternalProject"])}var mge={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Yo(e);r&&te(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>te(t,(t=>t.isMixedContent&&zo(e,t.extension)))},gge={getFileName:e=>e.fileName,getScriptKind:e=>dge(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function hge(e,t){for(const n of t)if(n.getProjectName()===e)return n}var yge={close:vt};function vge(e,t){if(t&&!bge(e))return t.get(e.path)}function bge(e){return!!e.configFileInfo}var xge=(e=>(e[e.Find=0]="Find",e[e.Create=1]="Create",e[e.Reload=2]="Reload",e))(xge||{});function Sge(e,t,n,r,i,o,a,s){var c;const l=null==(c=e.getCurrentProgram())?void 0:c.getResolvedProjectReferences();if(!l)return;const u=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(u){const t=Gfe(u.sourceFile.fileName),n=e.projectService.findConfiguredProjectByProjectName(t,o);if(n){const e=d(n);if(e)return e}else if(0!==r){const t=kge(l,e.getCompilerOptions(),((e,t)=>u===e?_(e,t):void 0),r,e.projectService);if(t)return t}}return kge(l,e.getCompilerOptions(),((e,t)=>u!==e?_(e,t):void 0),r,e.projectService);function _(t,c){const l=e.projectService.findCreateOrReloadConfiguredProject(Gfe(t.sourceFile.fileName),c,i,o,a,s);return l&&(c===r?n(l.project,l.sentConfigFileDiag):d(l.project))}function d(e){let t=!1;switch(r){case 1:t=Fge(e,a);break;case 2:t=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,i,s);break;case 0:break;default:En.assertNever(r)}const o=n(e,t);if(o)return o}}function kge(e,t,n,r,i,o){const a=t.disableReferencedProjectLoad?0:r;return d(e,(e=>{if(!e)return;const t=Gfe(e.sourceFile.fileName),r=i.toCanonicalFileName(t),s=null==o?void 0:o.get(r);if(void 0!==s&&s>=a)return;const c=n(e,a);return c||((o||(o=new Map)).set(r,a),e.references&&kge(e.references,e.commandLine.options,n,a,i,o))}))}function Tge(e,t){return e.potentialProjectReferences&&xd(e.potentialProjectReferences,t)}function Cge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function wge(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?Tge(e,r):d(e.getProjectReferences(),n)}(e,(n=>Cge(e,t,n.sourceFile.path)),(n=>Cge(e,t,e.toPath($$(n)))),(n=>Cge(e,t,n)))}function Dge(e,t){return`${mt(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Nge(e){return!e.isScriptOpen()&&void 0!==e.mTime}
6function Ege(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function Pge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function Fge(e,t){if(t){if(Pge(e,t,!1))return!0}else Ege(e);return!1}function Age(e){return`Creating possible configured project for ${e.fileName} to open`}function Ige(e){return`User requested reload projects: ${e}`}function Oge(e){Bme(e)&&(e.projectOptions=!0)}function Lge(e){let t=1;return()=>e(t++)}function Rge(){return{idToCallbacks:new Map,pathToId:new Map}}function Mge(e,t){if(!t||!e.eventHandler||!e.session)return;const n=Rge(),r=Rge(),i=Rge();let o=1;return e.session.addProtocolHandler("watchChange",(e=>{var t;return pt(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}})),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:Zme,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:ege,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:tge,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,((e,t)=>e(t,o))),l(r,e,t,((e,t)=>e(t))),l(i,e,t,((e,t)=>e(t))))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach((e=>{n.forEach((t=>r(e,ta(t))))}))}}var jge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Lge(eme),this.newAutoImportProviderProjectName=Lge(tme),this.newAuxiliaryProjectName=Lge(nme),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=sge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=vt,this.verifyDocumentRegistry=vt,this.verifyProgram=vt,this.onProjectCreation=vt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||Sme,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Wfe,this.pluginProbeLocations=e.pluginProbeLocations||Wfe,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?ra(Go(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=ct()),this.currentDirectory=Gfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=un(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?_a(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ime(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new Tme(this.t
6ypingsInstaller),this.hostConfiguration={formatCodeOptions:AG(this.host.newLine),preferences:TG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=n1(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):vt;this.packageJsonCache=zge(this),this.watchFactory=0!==this.serverMode?{watchFile:xW,watchDirectory:xW}:Mz(Mge(this,e.canUseWatchEvents)||this.host,n,r,Dge),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return la(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return aa(e,this.host.getCurrentDirectory())}setDocument(e,t,n){En.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:Xme,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const n of Object.keys(t.typesMap))t.typesMap[n].match=new RegExp(t.typesMap[n].match,"i");this.safelist=t.typesMap;for(const n in t.simpleMap)$e(t.simpleMap,n)&&this.legacySafelist.set(n,t.simpleMap[n].toLowerCase())}catch(Fhe){this.logger.info(`Error loading types map: ${Fhe}`),this.safelist=sge,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case VK:return void t.updateTypingFiles(this.typingsCache.updateTypingsForProject(e.projectName,e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings));case WK:return void this.typingsCache.enqueueInstallTypingsForProject(t,t.lastCachedUnresolvedImportsList,!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(nge,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(qme(e))return;if(e.markAsDirty(),Ume(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&Ege(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Vme,data:{openFiles:Xe(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:Kme,data:{file:e,fileSize:t,maxFileSize:$me}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:Wme,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:Hme,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){En.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=lge(e),r=uge(e,t),i=_ge(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const a of this.inferredProjects)(o?a.projectRootPath!==o:a.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(a.projectRootPath))||(a.setCompilerOptions(n),a.setTypeAcquisition(i),a.setWatchOptions(null==r?void 0:r.watchOptions),a.setProjectErrors(null==r?void 0:r.errors),a.compileOnSaveEnabled=n.compileOnSave,a.markAsDirty(),this.delayUpdateProjectGraph(a));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return Zfe(e)?hge(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(Gfe(e))}
6forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject((t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)}))}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=mt(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=mt(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,1),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=mt(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(mt(e)?e:e.fileName),zfe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=Ege(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return m(m({},this.hostConfiguration.preferences),t&&t.getPreferences())}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){En.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(mt(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach(((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t)))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){En.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,(t=>{const i=this.toPath(t),a=r.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(t,i);if("package.json"===Xo(i)&&!ZZ(i)&&(a&&a.fileExists||!a&&this.host.fileExists(t))){const e=this.getNormalizedAbsolutePath(t);this.logger.info(`Config: ${n} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,i),this.watchPackageJsonFile(e,i,o)}const s=this.findConfiguredProjectByProjectName(n);Oz({watchedDirPath:this.toPath(e),fileOrDirectory:t,fileOrDirectoryPath:i,configFileName:n,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:r.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||r.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0}
6)||(2!==r.updateLevel&&(r.updateLevel=1),r.projects.forEach(((e,t)=>{var r;if(!e)return;const o=this.getConfiguredProjectByCanonicalConfigFilePath(t);if(!o)return;if(s!==o&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(n);w(null==(r=o.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),(t=>(null==t?void 0:t.sourceFile.path)===e))&&o.markAutoImportProviderAsDirty()}const a=s===o?1:0;if(!(o.pendingUpdateLevel>a))if(this.openFiles.has(i))if(En.checkDefined(this.getScriptInfoForPath(i)).isAttached(o)){const e=Math.max(a,o.openFileWatchTriggered.get(i)||0);o.openFileWatchTriggered.set(i,e)}else o.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(o);else o.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(o)})))}),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Go(n)),kW.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach((e=>{e.projects.delete(o),e.close()})),o.packageJsonWatches=void 0)}};return o}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.projects.forEach(((n,i)=>{var o;const a=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(a)if(r=!0,i===e){if(a.isInitialLoadPending())return;a.pendingUpdateLevel=2,a.pendingUpdateReason=t,this.delayUpdateProjectGraph(a),a.markAutoImportProviderAsDirty()}else{const t=this.toPath(e);a.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(a),this.getHostPreferences().includeCompletionsForModuleExports&&w(null==(o=a.getCurrentProgram())?void 0:o.getResolvedProjectReferences(),(e=>(null==e?void 0:e.sourceFile.path)===t))&&a.markAutoImportProviderAsDirty()}})),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected");const a=new Set(i?[i]:void 0);this.openFiles.forEach(((t,n)=>{var i,o,s,c;const l=this.configFileForOpenFiles.get(n);if(!(null==(s=r.openFilesImpactedByConfigFile)?void 0:s.has(n)))return;this.configFileForOpenFiles.delete(n);const u=this.getScriptInfoForPath(n),_=this.getConfigFileNameForFile
6(u,!1);if(!_)return;const d=null!=(i=this.findConfiguredProjectByProjectName(_))?i:this.createConfiguredProject(_,`Change in config file ${e} detected, ${Age(u)}`);(null==(c=this.pendingOpenFileProjectUpdates)?void 0:c.has(n))||(null!=(o=this.pendingOpenFileProjectUpdates)?o:this.pendingOpenFileProjectUpdates=new Map).set(n,l),Q(a,d)&&d.isInitialLoadPending()&&this.delayUpdateProjectGraph(d)})),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),En.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>En.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Xe(K(this.filenameToScriptInfo.values(),(t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map((e=>e.projectName)),hasMixedContent:t.hasMixedContent}:void 0))),void 0," ")}`)))),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:ln(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:ln(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){En.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Go(Mo(e.fileName)?e.fileName:aa(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(an(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const r of this.inferredProjects){if(r===n||r.isOrphan())continue;const e=r.getRootScriptInfos();En.assert(1===e.length||!!r.projectRootPath),1===e.length&&d(e[0].containingProjects,(t=>t!==e[0].containingProjects[0]&&!t.isOrphan()))&&r.removeFile(e[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const a of e.containingProjects){if(Bme(a)){e.hasMixedContent&&e.registerFileUpdate();const t=a.openFileWatchTriggered.get(e.path);void 0!==t&&(a.openFileWatchTriggered.delete(e.path),a.pendingUpdateLevel<t&&(a.pendingUpdateLevel=t,a.markFileAsDirty(e.path)))}else jme(a)&&a.isRoot(e)&&(a.isProjectWithSingleRoot()&&(o=!0),a.removeFile(e,r,!0));a.languageServiceEnabled||a.markAsDirty()}return this.openFiles.delete(e.path),this.configFileForOpenFiles.delete(e.path),null==(n=this.pendingOpenFileProjectUpdates)||n.delete(e.path),En.assert(!this.rootOfInferredProjects.has(e)),!t&&o&&this.assignOrphanScriptInfosToInferredProject(),r?this.watchClosedScriptInfo(e):this.handleDeletedFile(e,!1),o}deleteScriptInfo(e){En.assert(!e.isScriptOpen()),this.filenameToScriptInfo.delete(e.path),this.filenameToScriptInfoVersion.set(e.path,e.textStorage.version),this.stopWatchingScriptInfo(e);const t=e.getRealpathIfDifferent();t&&this.realpathToScriptInfos.remove(t,e),e.closeSourceMapFileWatcher()}configFileExists(e,t,n){var r;const i=this.configFileExistenceInfoCache.get(t);let o;if(this.openFiles.has(n.path)&&!bge(n)&&(i?(null!=(r=i.openFilesImpactedByConfigFile)?r:i.openFilesImpactedByConfigFile=new Set).add(n.path):(o=new Set).add(n.path)),i)return i.exists;const a=this.host.fileExists(e);return this.configFileExistenceInfoCache.set(t,{exists:a,openFilesImpactedByConfigFile:o}),a}createConfigFileWatcherForParsedConfig(e,t,n){var r,i;const o=this.configFileExistenceInfoCache.get(t);o.watcher&&o.watcher!==yge||(o.watcher=this.watchFactory.watchFile(e,((n,r)=>this.onConfigFileChanged(e,t,r)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Go(e)),kW.ConfigFile,n));const a=o.config.projects;a.set(n.canonicalConfigFilePath,a.get(n.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,Pz(e,this.sharedExtendedConfigFileWatchers),En.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?MV(Zo(Go(e)))||(o.watcher.close(),o.watcher=yge):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,(r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(En.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}}))}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(En.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,((t,n)=>{var r,i;let o=this.configFileExistenceInfoCache.get(t);o?o.inferredProjectRoots=(null!=(r=o.inferredProjectRoots)?r:0)+1:(o={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,o)),(null!=(i=o.openFilesImpactedByConfigFile)?i:o.openFilesImpactedByConfigFile=new Set).add(e.path),o.watcher||(o.watcher=MV(Zo(Go(t)))?this.watchFactory.watchFile(n,((e,r)=>this.onConfigFileChanged(n,t,r)),2e3,this.hostConfiguration.watchOptions,kW.ConfigFileForInferredRoot):yge)})))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;En.assert(!e.containingProjects||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(En.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Go(e.fileName);const i=()=>ba(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!bge(e);do{if(a){const e=Xfe(r,this.currentDirectory,this.toCanonicalFileName),n=ra(r,"tsconfig.json");let i=t(ra(e,"tsconfig.json"),n);if(i)return n;const o=ra(r,"jsconfig.json");if(i=t(ra(e,"jsconfig.json"),o),i)return o;if(Na(e))break}const e=Go(r);if(e===r)break;r=e,a=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return e.isScriptOpen()?null==(t=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,0))?void 0:t.defaultProject:void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=vge(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return vge(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){this.openFiles.has(e.path)&&(bge(e)||this.configFileForOpenFiles.set(e.path,t||!1))}
6getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Uge),this.configuredProjects.forEach(Uge),this.inferredProjects.forEach(Uge),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return hge(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=zme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>i-=e||0));let o=0;for(const a of n){const e=r.getFileName(a);if(!rT(e)&&(o+=this.host.getFileSize(e),o>zme||o>i)){const t=n.map((e=>r.getFileName(e))).filter((e=>!rT(e))).map((e=>({name:e,size:this.host.getFileSize(e)}))).sort(((e,t)=>t.size-e.size)).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${t.map((e=>`${e.name}:${e.size}`)).join(", ")}`),e}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=lge(n),a=uge(n,Go(ta(e))),s=new Mme(e,this,this.documentRegistry,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,gge),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,gge,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void Oge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void Oge(e);const t=Bme(e)?e.projectOptions:void 0;Oge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:wme(e.getScriptInfos(),!0),compilerOptions:XR(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:Bme(e)&&ame(e.getConfigFilePath())||"other",projectType:e instanceof Mme?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:a};this.eventHandler({eventName:Qme,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=pr)||n.instant(pr.Phase.Session,"createConfiguredProject",{configFilePath:e}),this.logger.info(`Creating configuration project ${e}`);const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:Dz(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new Rme(e,r,this,this.documentRegistry,i.config.cachedDirectoryStructureHost,t);return En.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=pr)||n.push(pr.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=sa(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;En.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.canConfigFileJsonReportNoInputFiles=yR(a.raw),e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,mge);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,mge,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=pr)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config){if(!n.config.updateLevel)return n;if(1===n.config.updateLevel)return this.reloadFileNamesOfParsedConfig(e,n.config),n}const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||Dz(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=SL(e,(e=>this.host.readFile(e))),l=oO(e,mt(c)?c:""),u=l.parseDiagnostics;mt(c)||u.push(c);const _=Go(e),d=rR(l,s,_,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&u.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||IT(this.getWatchOptionsFromProjectWatchOptions(void 0,_),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,_))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),Ez(t,d.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;Fz(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEac
6h((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,kW.ExtendedConfigFile,e)),(e=>this.toPath(e))),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,Iz(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;Ox(n.watchedDirectories,Bz),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),bd(n.config.projects,kt)||(n.config.watchedDirectories&&(Ox(n.config.watchedDirectories,Bz),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=Gfe(t);let c;if(bme(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=En.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=Xfe(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach(((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.concat(e.getExternalFiles(1)),mge),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine.fileNames;En.assert(1===t.updateLevel);const n=jR(t.parsedCommandLine.options.configFile.configFileSpecs,Go(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine=g(m({},t.parsedCommandLine),{fileNames:n}),n}setFileNamesOfAutpImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,mge)}reloadConfiguredProjectClearingSemanticCache(e,t,n){return!!Q(n,e)&&(this.clearSemanticCache(e),this.reloadConfiguredProject(e,Ige(t)),!0)}reloadConfiguredProject(e,t){var n;e.isInitialLoadPending=bt,e.pendingUpdateReason=void 0,e.pendingUpdateLevel=0,e.getCachedDirectoryStructureHost().clearCache(),this.loadConfiguredProject(e,t),Pge(e,null!=(n=e.triggerFileForConfigFileDiag)?n:e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){var r;if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const i=e.getLanguageService().getCompilerOptionsDiagnostics();return i.push(...e.getAllProjectErrors()),!(!n&&i.length===(null!=(r=e.configDiagDiagnosticsReported)?r:0)||(e.configDiagDiagnosticsReported=i.length,this.eventHandler({eventName:Gme,data:{configFileName:e.getConfigFilePath(),diagnostics:i,triggerFile:null!=t?t:e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const r of this.inferredProjects)r.projectRootPath&&ba(r.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>r.projectRootPath.length||(n=r));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(e){En.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const n of this.inferredProjects)if(!n.projectRootPath&&n.isOrphan()&&n.canonicalCurrentDirectory===t)return n;return this.createInferredProject(e)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;
6n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new Ame(this,this.documentRegistry,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Gfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(Gfe(e))}getScriptInfoOrConfig(e){const t=Gfe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Xe(K(this.filenameToScriptInfo.entries(),(e=>e[1].deferredDelete?void 0:e)),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&d(this.realpathToScriptInfos.get(t),n),d(this.realpathToScriptInfos.get(e.path),n)}return t;
6function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?bd(t,((e,t)=>t!==n.path&&F(e,r)))||t.add(n.path,r):(t=ct(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(En.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&fn(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,kW.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const i=LV(this.toPath(e));if(!i)return;const o=Xo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach((e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()})),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?Nge(e)&&this.refreshScriptInfo(e):qo(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,kW.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return En.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||ao).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=yo(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=Fo,this.filenameToScriptInfo.forEach((t=>{Nge(t)&&fn(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(Mo(e)||bme(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);const a=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));return a||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){En.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=Xfe(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(En.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=bme(e);if(En.assert(Mo(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Xe(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),En.assert(!Mo(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Xe(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context c
6annot have same canonical names`)),En.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Xe(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;l=new xme(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?Mo(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!Mo(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(Xfe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),mt(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:KQ(o)};const a=e.projectName,s=q1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?mt(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:aa(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!mt(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,kW.MissingSourceMapFile)}getSourceFileLike(e,t,n){var r;const i=t.projectName?t:this.findProject(t);if(i){const t=i.toPath(e),n=i.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const o=this.getOrCreateScriptInfoNotOpenedByClient(e,(i||this).currentDirectory,i?i.directoryStructureHost:this.host,!1);if(o){if(n&&mt(n.sourceMapFilePath)&&o!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(null!=(r=e.sourceInfos)?r:e.sourceInfos=new Set).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return En.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=o.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>o.lineOffsetToPosition(e+1,t+1,n)}),o.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(Gfe(e.file));t&&(t.setOptions(cge(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions=m(m({},this.hostConfiguration.formatCodeOptions),cge(e.formatOptions)),this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences=m(m({},this.hostConfiguration.preferences),e.preferences),t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEac
6h((e=>e.forEach((e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})))),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject((e=>{e.onAutoImportProviderSettingsChanged()}))}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=uge(e.watchOptions))?void 0:t.watchOptions,r=lR(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?lR(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?m(m({},n),e):e||n}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach((e=>{this.openFiles.has(e.path)||e.fileWatcher&&this.onSourceFileChanged(e,this.host.fileExists(e.fileName)?e.deferredDelete?0:1:2)})),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(nge),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2)})),this.configFileForOpenFiles.clear(),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()}));const e=new Set,t=new Set;this.externalProjectToConfiguredProjectMap.forEach(((n,r)=>{const i=`Reloading configured project in external project: ${r}`;n.forEach((n=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?(n.isInitialLoadPending()||(this.clearSemanticCache(n),n.pendingUpdateLevel=2,n.pendingUpdateReason=Ige(i)),t.add(n)):this.reloadConfiguredProjectClearingSemanticCache(n,i,e)}))})),this.openFiles.forEach(((n,r)=>{const i=this.getScriptInfoForPath(r);w(i.containingProjects,Jme)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,2,e,t)})),t.forEach((t=>e.add(t))),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){En.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&jme(t)&&t.isRoot(e)&&d(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach(((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),1))),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Ege),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(Gfe(e),t,n,!1,r?Gfe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:Gfe(i),path:this.toPath(i)}
6,s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}Ege(c);const l=e=>{const t=this.getScriptInfo(i);return t&&e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)};if(c.isSolution()||!l(c)){if(c=Sge(c,i,(e=>l(e)?e:void 0),1,`Creating project referenced in solution ${c.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`),!c)return;if(c===e)return r}_(c);const u=this.getScriptInfo(i);if(u&&u.containingProjects.length)return u.containingProjects.forEach((e=>{Bme(e)&&_(e)})),r;function _(t){var n;(null!=(n=e.originalConfiguredProjects)?n:e.originalConfiguredProjects=new Set).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return w(this.externalProjects,(t=>(Ege(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,1);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(Ege),e.isOrphan()&&(null==r||r.forEach((t=>{i.has(t)||this.sendConfigFileDiagEvent(t,e.fileName,!0)})),En.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),En.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s){let c=this.findConfiguredProjectByProjectName(e,r),l=!1;switch(t){case 0:if(!c)return;break;case 1:null!=c||(c=this.createConfiguredProject(e,n)),l=!a&&Fge(c,i);break;case 2:null!=c||(c=this.createConfiguredProject(e,Ige(n))),l=!s&&this.reloadConfiguredProjectClearingSemanticCache(c,n,o),!s||s.has(c)||o.has(c)||(c.pendingUpdateLevel=2,c.pendingUpdateReason=Ige(n),s.add(c));break;default:En.assertNever(t)}return{project:c,sentConfigFileDiag:l}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile
6(e,0===t);if(!i)return;const o=this.findCreateOrReloadConfiguredProject(i,t,Age(e),n,e.fileName,r);if(!o)return;const a=new Set,s=new Set(o.sentConfigFileDiag?[o.project]:void 0);let c,l;var u;return _(u=o.project)||function(i){Sge(i,e.path,((e,t)=>(t&&s.add(e),_(e))),t,`Creating project referenced in solution ${i.projectName} to find possible configured project for ${e.fileName} to open`,n,e.fileName,r)}(u),{defaultProject:null!=c?c:l,sentConfigDiag:s,seenProjects:a};function _(t){if(!Q(a,t))return;const n=t.containsScriptInfo(e);if(n&&!t.isSourceOfProjectReferenceRedirect(e.path))return c=t;null!=l||(l=n?t:void 0)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=0===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,seenProjects:s}=o;return a&&function(e,t,n,r,i,o,a,s){for(;;){if(!t.isInitialLoadPending()&&(!t.getCompilerOptions().composite||t.getCompilerOptions().disableSolutionSearching))return;const c=t.projectService.getConfigFileNameForFile
6({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0},0===r);if(!c)return;const l=t.projectService.findCreateOrReloadConfiguredProject(c,r,i,o,void 0,a,!0,s);if(!l)return;l.project.isInitialLoadPending()&&t.getCompilerOptions().composite&&l.project.setPotentialProjectReference(t.canonicalConfigFilePath);const u=n(l.project);if(u)return u;t=l.project}}(e,a,(e=>{s.add(e)}),t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,r),o}loadAncestorProjectTree(e){e=e||G(this.configuredProjects,((e,t)=>t.isInitialLoadPending()?void 0:[e,!0]));const t=new Set;for(const n of Xe(this.configuredProjects.values()))Tge(n,(t=>e.has(t)))&&Ege(n),this.ensureProjectChildren(n,e,t)}ensureProjectChildren(e,t,n){var r,i;if(!Q(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const o=null==(i=e.getCurrentProgram())?void 0:i.getResolvedProjectReferences();if(o)for(const a of o){if(!a)continue;const i=T$(a.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=Gfe(a.sourceFile.fileName),s=null!=(r=this.findConfiguredProjectByProjectName(o))?r:this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);Ege(s),this.ensureProjectChildren(s,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach((e=>this.removeProject(e)))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getOrCreateOpenScriptInfo(e,t,n,r,i),a=this.assignProjectToOpenedScriptInfo(o),{retainProjects:s}=a,c=h(a,["retainProjects"]);return this.cleanupProjectsAndScriptInfos(s,new Set([o.path]),void 0),this.telemetryOnOpenFile(o),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!Bme(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)}))};return null==e||e.forEach(s),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach(((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)})),this.openFiles.forEach(((e,n)=>{if(null==t?void 0:t.has(n))return;const r=this.getScriptInfoForPath(n);if(w(r.containingProjects,Jme))return;const i=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(r,0);(null==i?void 0:i.defaultProject)&&(null==i||i.seenProjects.forEach(s))})),this.configuredProjects.forEach((e=>{r.has(e)&&(a(e)||wge(e,o))&&s(e)})),r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),wge(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!t.isContainedByBackgroundProject()){if(!t.sourceMapFilePath)return;let e;if(mt(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!xd(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(mt(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}}})),e.forEach((e=>this.deleteScriptInfo(e)))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!$x(this.allJsFilesForOpenFileTelemetry,e.path))return;
6const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:Yme,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(Gfe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=w(e,(e=>e.projectName===i.getProjectName()));r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,K(this.configuredProjects.values(),(e=>e.deferredClose?void 0:e)),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o=!1;if(e)for(const a of e){const e=this.getOrCreateOpenScriptInfo(Gfe(a.fileName),a.content,dge(a.scriptKind),a.hasMixedContent,a.projectRootPath?Gfe(a.projectRootPath):void 0);(r||(r=[])).push(e)}if(t)for(const a of t){const e=this.getScriptInfo(a.fileName);En.assert(!!e),this.applyChangesToFile(e,a.changes)}if(n)for(const a of n)o=this.closeClientFile(a,!0)||o;null==r||r.forEach((e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach((e=>(null!=i?i:i=new Set).add(e)))})),o&&this.assignOrphanScriptInfosToInferredProject(),r?(this.cleanupProjectsAndScriptInfos(i,new Set(r.map((e=>e.path))),void 0),r.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):_(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=Gfe(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map((e=>e.getProjectName())));this.externalProjectToConfiguredProjectMap.forEach(((e,n)=>t.add(n)));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach((e=>this.closeExternalProject(e,!1))),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=sge}applySafeList(e){var t;const n=e.typeAcquisition;En.assert(!!n,"proj.typeAcquisition should be set by now");const r=this.applySafeListWorker(e,e.rootFiles,n);return null!=(t=null==r?void 0:r.excludedFiles)?t:[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map((e=>ta(e.fileName)));for(const _ of Object.keys(this.safelist)){const t=this.safelist[_];for(const n of a)if(t.match.test(n)){if(this.logger.info(`Excluding files based on rule ${_} matching file '${n}'`),t.types)for(const e of t.types)i.includes(e)||i.push(e);if(t.exclude)for(const r of t.exclude){const i=n.replace(t.match,((...t)=>r.map((n=>"number"==typeof n?mt(t[n])?e.escapeFilenameForRegex(t[n]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${_} - not enough groups`),"\\*"):n)).join("")));o.includes(i)||o.push(i)}else{const t=e.escapeFilenameForRegex(n);o.includes(t)||o.push(t)}}}const s=o.map((e=>new RegExp(e,"i")));let c,l;for(let e=0;e<n.length;e++)if(s.some((t=>t.test(a[e]))))u(e);else{if(r.enable){const t=Xo(wt(a[e]));if(zo(t,"js")){const n=on(_T(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),u(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?u(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function u(e){l||(En.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){var n,r;const i=this.findExternalProjectByProjectName(e.projectFileName);let o,a=[];for(const s of e.rootFiles){const t=Gfe(s.fileName);if(ame(t)){if(0===this.serverMode&&this.host.fileExists(t)){let n=this.findConfiguredProjectByProjectName(t);n||(n=this.createConfiguredProject(t,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||n.updateGraph()),(null!=o?o:o=new Set).add(n),En.assert(!n.isClosed())}}else a.push(s)}if(o)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=Eme(a.map((e=>e.fileName))));const o=this.applySafeListWorker(e,a,t),s=null!=(n=null==o?void 0:o.excludedFiles)?n:[];if(a=null!=(r=null==o?void 0:o.rootFiles)?r:a,i){i.excludedFiles=s;const n=lge(e.options),r=uge(e.options,i.getCurrentDirectory()),o=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,n,a,gge);o?i.disableLanguageService(o):i.enableLanguageService(),i.setProjectErrors(null==r?void 0:r.errors),this.updateRootAndOptionsOfNonInferredProject(i,a,gge,n,t,e.options.compileOnSave,null==r?void 0:r.watchOptions),i.updateGraph()}else this.createExternalProject(e.projectFileName,a,e.options,t,s).updateGraph()}t&&(this.cleanupConfiguredProjects(o,new Set(e.projectFileName)),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||Vs(t.name)||/[\\/]\.\.?($|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=Fme.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));null!=this.pendingPluginEnablements||(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,Fme.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else d(r,(e=>this.logger.info(e))),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}waitForPendingPlugins(){return v(this,null,(function*(){for(;this.currentPluginEnablementPromise;)yield this.currentPluginEnablementPromise}))}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}enableRequestedPluginsAsync(){return v(this,null,(function*(){if(this.currentPluginEnablementPromise&&(yield this.waitForPendingPlugins()),!this.pendingPluginEnablements)return;const e=Xe(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),yield this.currentPluginEnablementPromise}))}enableRequestedPluginsWorker(e){return v(this,null,(function*(){En.assert(void 0===this.currentPluginEnablementPromise);let t=!1;yield Promise.all(j(e,(e=>v(this,[e],(function*([e,n]){const r=yield Promise.all(n);if(e.isClosed()||qme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}))))),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroun
6dEvent()}))}configurePlugin(e){this.forEachEnabledProject((t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration))),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e),a(e);case-1:const n=ra(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return Da(Go(e),a),o}getNearestAncestorDirectoryWithPackageJson(e){return Da(e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(ra(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e,t,n){var r,i;En.assert(void 0!==n);let o=(null!=(r=this.packageJsonFilesMap)?r:this.packageJsonFilesMap=new Map).get(t);if(!o){let n=this.watchFactory.watchFile(e,((e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(o),o.projects.clear(),o.close()}}),250,this.hostConfiguration.watchOptions,kW.PackageJson);o={projects:new Set,close:()=>{var e;!o.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,o)}o.projects.add(n),(null!=(i=n.packageJsonWatches)?i:n.packageJsonWatches=new Set).add(o)}onPackageJsonChange(e){e.projects.forEach((e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)}))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};jge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Bge=jge;function Jge(e){return void 0!==e.kind}function Uge(e){e.print(!1,!1,!1)}function qge(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,u){if(o(n,i,a).set(r,s(c,l,u,!1)),u)for(const o of l)if(o.isInNodeModules){const n=o.path.substring(0,o.path.indexOf(ZM)+ZM.length-1),r=e.toPath(n);(null==t?void 0:t.has(r))||(t||(t=new Map)).set(r,e.watchNodeModulesForPackageJsonChanges(n))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.isBlockedByPackageJsonDependencies=i:a.set(t,s(void 0,void 0,void 0,i))},clear(){null==t||t.forEach(Cx),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return En.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r){return{kind:e,modulePaths:t,moduleSpecifiers:n,isBlockedByPackageJsonDependencies:r}}}function zge(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Go(e))},delete:e=>{t.delete(e),n.set(Go(e),!0)},getInDirectory:n=>t.get(e.toPath(ra(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:t=>{Da(t,(t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=ra(t,"package.json");zZ(e,a)?r(a,ra(o,"package.json")):n.set(o,!0)}))}};function r(r,i){const o=En.checkDefined(XZ(r,e.host));t.set(i,o),n.delete(Go(i))}function i(e){return t.has(ra(e,"package.json"))?-1:n.has(e)?0:3}}var $ge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Vge(e,t){if((jme(e)||Jme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function Wge(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:l$(n.messageText,"\n"),code:n.code,category:Di(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:j(n.relatedInformation,Hge)}}function Hge(e){return e.file?{span:{start:Kge(ss(e.file,e.start)),end:Kge(ss(e.file,e.start+e.length)),file:e.file.fileName},message:l$(e.messageText,"\n"),category:Di(e),code:e.code}:{message:l$(e.messageText,"\n"),category:Di(e),code:e.code}}function Kge(e){return{line:e.line+1,offset:e.character+1}}function Gge(e,t){const n=e.file&&Kge(ss(e.file,e.start)),r=e.file&&Kge(ss(e.file,e.start+e.length)),i=l$(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:Di(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:j(e.relatedInformation,Hge)};return t?g(m({},s),{fileName:e.file&&e.file.fileName}):s}var Xge=lme;function Qge(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);return i&&t.info(`${e.type}:${iG(e)}`),`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var Yge=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const n=this.requestId;En.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)))}),e))}delay(e,t,n){const r=this.requestId;En.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout((()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,(()=>this.executeAction(n)))}),t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=pr)||t.instant(pr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=pr)||n.push(pr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=pr)||r.pop())}catch(Fhe){null==(i=pr)||i.popAll(),s=!0,Fhe instanceof $r?null==(o=pr)||o.instant(pr.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=pr)||a.instant(pr.Phase.Session,"stepError",{seq:this.requestId,message:Fhe.message}),this.operationHost.logError(Fhe,`delayed processing of request ${this.requestId}`))}!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function Zge(e,t){return{seq:0,type:"event",event:e,body:t}}function ehe(e){return dt((({textSpan:e})=>e.start+100003*e.length),SY(e))}function the(e,t,n){for(const r of pt(e)?e:e.projects)n(r,t);
6!pt(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function nhe(e,t,n,r,i,o){const a=new Map,s=_t();s.enqueue({project:t,location:n}),the(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};s.enqueue({project:e,location:r})}));const c=t.projectService,l=t.getCancellationToken(),u=function(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&Pe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}(t,n,r),_=Nt((()=>t.isSourceOfProjectReferenceRedirect(u.fileName)?u:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(u))),d=Nt((()=>t.isSourceOfProjectReferenceRedirect(u.fileName)?u:t.getLanguageService().getSourceMapper().tryGetSourcePosition(u))),p=new Set;e:for(;!s.isEmpty();){for(;!s.isEmpty();){if(l.isCancellationRequested())break e;const{project:e,location:t}=s.dequeue();if(a.has(e))continue;if(ihe(e,t))continue;if(Ege(e),!e.containsFile(Gfe(t.fileName)))continue;const n=f(e,t);a.set(e,null!=n?n:Wfe),p.add(ohe(e))}u&&(c.loadAncestorProjectTree(p),c.forEachEnabledProject((e=>{if(l.isCancellationRequested())return;if(a.has(e))return;const t=rhe(u,e,_,d);t&&s.enqueue({project:e,location:t})})))}return 1===a.size?Ie(a.values()):a;function f(e,t){const n=i(e,t);if(n){for(const t of n)o(t,(t=>{const n=c.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=c.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||a.has(e)||s.enqueue({project:e,location:n});const i=c.getSymlinkedProjects(r);i&&i.forEach(((e,t)=>{for(const r of e)r.isOrphan()||a.has(r)||s.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}}function rhe(e,t,n,r){if(t.containsFile(Gfe(e.fileName))&&!ihe(t,e))return e;const i=n();if(i&&t.containsFile(Gfe(i.fileName)))return i;const o=r();return o&&t.containsFile(Gfe(o.fileName))?o:void 0}function ihe(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function ohe(e){return Bme(e)?e.canonicalConfigFilePath:e.getProjectName()}function ahe({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function she(e,t){return CY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function che(e,t){return wY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function lhe(e,t){return DY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}var uhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits"],_he=[...uhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],dhe=class e{constructor(e){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const e={version:a};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=j(t,(e=>
6e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&B(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&B(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:K(Se(e.textChanges),(t=>{const n=En.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0}))}))),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&B(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:Se(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(Gfe(e.arguments.file),e.arguments.fileContent,pge(e.arguments.scriptKindName),e.arguments.projectRootPath?Gfe(e.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew((t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files))),this.notRequired()),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired()),change:e=>(this.change(e.arguments),this.notRequired()),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.doOutput(void 0,"configure",e.seq,!0),this.notRequired()),reload:e=>(this.reload(e.arguments,e.seq),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired()},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired()},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.doOutput(void 0,"configurePlugin",e.seq,!0),this.notRequired()),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments))})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||Sme,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroun
6dUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t)=>this.executeWithRequestId(e,t),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:e=>this.sendRequestCompletedEvent(e),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Yge(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new Bge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new ome(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:uhe.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:_he.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:En.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e){this.event({request_seq:e},"requestCompleted")}addPerformanceData(e,t){var n;this.performanceData||(this.performanceData={}),this.performanceData[e]=(null!=(n=this.performanceData[e])?n:0)+t}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case Vme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Wme:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case Hme:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case Kme:case Zme:case ege:case tge:this.event(e.data,e.eventName);break;case Gme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:j(e.data.diagnostics,(e=>Gge(e,!0)))},e.eventName);break;case Xme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Qme:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0)))),this.event({openFiles:e},Vme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+rG(e.message),e.stack&&(r+="\n"+rG(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=KQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${rG(e)}\n`}}catch(Fhe){}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${Cme[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEac
6h(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${iG(e)}`)}writeMessage(e){var t;const n=Qge(e,this.logger,this.byteLength,this.host.newLine);null==(t=lr)||t.logEvent(`Response message size: ${n.length}`),this.host.write(n)}event(e,t){this.send(Zge(t,e))}doOutput(e,t,n,r,i){const o={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:this.performanceData};if(r){let t;if(pt(e))o.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const n=e,{metadata:r}=n,i=h(n,["metadata"]);o.body=i,t=r}else o.body=e;else o.body=e;t&&(o.metadata=t)}else En.assert(void 0===e);i&&(o.message=i),this.send(o)}semanticCheck(e,t){var n,r;null==(n=pr)||n.push(pr.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const i=Vge(t,e)?Wfe:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,i,"semanticDiag"),null==(r=pr)||r.pop()}syntacticCheck(e,t){var n,r;null==(n=pr)||n.push(pr.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag"),null==(r=pr)||r.pop()}suggestionCheck(e,t){var n,r;null==(n=pr)||n.push(pr.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag"),null==(r=pr)||r.pop()}sendDiagnosticsEvent(e,t,n,r){try{this.event({file:e,diagnostics:n.map((n=>Wge(e,t,n)))},r)}catch(i){this.logError(i,r)}}updateErrorCheck(e,t,n,r=!0){En.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{a++,t.length>a&&e.delay("checkOne",o,c)},c=()=>{if(this.changeSeq!==i)return;let n=t[a];if(mt(n)&&(n=this.toPendingErrorCheck(n),!n))return void s();const{fileName:o,project:c}=n;Ege(c),c.containsFile(o,r)&&(this.syntacticCheck(o,c),this.changeSeq===i&&(0===c.projectService.serverMode?e.immediate("semanticCheck",(()=>{this.semanticCheck(o,c),this.changeSeq===i&&(this.getPreferences(o).disableSuggestions?s():e.immediate("suggestionCheck",(()=>{this.suggestionCheck(o,c),s()})))})):s()))};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,c)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Xe(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=Gfe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=L(re(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):j(r,(e=>Gge(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:l$(e.messageText,this.host.newLine),start:e.start,length:e.length,category:Di(e),code:e.code,source:e.source,startLocation:e.file&&Kge(ss(e.file,e.start)),endLocation:e.file&&Kge(ss(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:j(e.relatedInformation,Hge)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(L(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:l$(e.messageText,this.host.newLine),start:e.start,length:e.length,category:Di(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:j(e.relatedInformation,Hge)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);
6if(t&&Vge(i,o))return Wfe;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>Wge(o,i,e)))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||Wfe,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=che(e,t);return n?m(g(m({},n),{containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution}),e.unverified&&{unverified:e.unverified}):e}))}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=En.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:Wfe,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:phe(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||Wfe,r).slice();if(0===this.projectService.serverMode&&(!te(a,(e=>Gfe(e.fileName)!==n&&!e.isAmbient))||te(a,(e=>!!e.failedAliasResolution)))){const e=dt((e=>e.textSpan.start),SY(this.host.useCaseSensitiveFileNames));null==a||a.forEach((t=>e.add(t)));const o=r.getNoDtsResolutionProject(n),u=o.getLanguageService(),_=null==(t=u.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter((e=>Gfe(e.fileName)!==n));if(te(_))for(const t of _){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),u.getProgram());if(te(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>Gfe(e.fileName)!==n&&e.isAmbient));for(const a of te(t)?t:function(){const e=r.getLanguageService(),t=e.getProgram(),o=QX(t.getSourceFile(n),i);return(Z_(o)||nN(o))&&Hx(o.parent)&&Qx(o,(t=>{var r;if(t===o)return;const i=null==(r=e.getDefinitionAtPosition(n,t.getStart(),!0,!1))?void 0:r.filter((e=>Gfe(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:oy(o)})));return te(i)?i:void 0}))||Wfe}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=u.getProgram(),c=En.checkDefined(i.getSourceFile(t));for(const n of l(a.name,c,i))e.add(n)}}a=Xe(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=lC(e);if(s&&e.lastIndexOf(ZM)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),u=r.getCompilationSettings(),_=fj(aa(c+"/package.json",r.getCurrentDirectory()),pj(l,r,u));if(!_)return;const d=_j(_,{moduleResolution:2},r,r.getModuleResolutionCache()),p=Rj(Mj(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&te(d,(e=>r.toPath(e)===f)))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${_T(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=QX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),u=c&&ld(c,276);return u?l((null==(o=u.propertyName)?void 0:o.text)||u.name.text,a,r):void 0}function l(e,t,n){return H(Ace.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=Th(e);if(t&&r)return gle.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);
6if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?g(m({},r),{diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>Gge(e,!0)))}):r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return g(m({},e),{text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")})})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:g(m({},e),{target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)}))):[]}mapSignatureHelpItems(e,t,n){return e.map((e=>g(m({},e),{documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map((e=>g(m({},e),{documentation:this.mapDisplayParts(e.documentation,t)}))),tags:this.mapJSDocTagInfo(e.tags,t,n)})))}mapDefinitionInfo(e,t){return e.map((e=>m(m({},this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t)),e.unverified&&{unverified:e.unverified})))}static mapToOriginalLocation(e){return e.originalFileName?(En.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),g(m({},e),{fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan})):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Ks(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?g(m({},i),{contextStart:o.start,contextEnd:o.end}):i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||Wfe,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=che(e,t);return n?g(m({},n),{kind:e.kind,displayParts:e.displayParts}):e}))}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||Wfe,i);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Wfe:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter((e=>!!e.file))),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Wfe:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map((e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>g(m({},fhe(e,r,n)),{kind:t})))}})):o:Wfe}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return g(m({},e),{position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>
6{if(t){En.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))})}))}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map((e=>e.map((e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})))),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,!1)}getProjectInfoWorker(e,t,n,r){const{project:i}=this.getFileAndProjectWorker(e,t);return Ege(i),{configFileName:i.getProjectName(),languageServiceDisabled:!i.languageServiceEnabled,fileNames:n?i.getFileNames(!1,r):void 0}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){var r;let i,o;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(i=[t])}else{const r=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!r)return n?Wfe:(this.projectService.logErrorForScriptInfoNotFound(e.file),zfe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(r),i=r.containingProjects,o=this.projectService.getSymlinkedProjects(r)}return i=L(i,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||i&&i.length||o?o?{projects:i,symLinkedProjects:o}:i:(this.projectService.logErrorForScriptInfoNotFound(null!=(r=e.file)?r:e.projectFileName),zfe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return zfe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=Gfe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),En.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=nhe(e,t,n,!0,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(ahe(e))));if(pt(s))return s;const c=[],l=ehe(a);return s.forEach(((e,t)=>{for(const n of e)l.has(n)||she(ahe(n),t)||(c.push(n),l.add(n))})),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:phe(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const n of e){const e=n,{fileName:r,textSpan:i,contextSpan:o,originalContextSpan:a,originalTextSpan:s,originalFileName:c}=e,l=h(e,["fileName","textSpan","contextSpan","originalContextSpan","originalTextSpan","originalFileName"]);let u=t.get(r);u||t.set(r,u={file:r,locs:[]});const _=En.checkDefined(this.projectService.getScriptInfo(r));u.locs.push(m(m({},fhe(i,o,_)),l))}return Xe(t.values())}getReferences(e,t){const n=Gfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=nhe(e,t,n,!1,((e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(ahe(e.definition));for(const n of e.references)t(ahe(n))}));if(pt(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=ehe(r);for(const n of c)for(const t of n.references)if(t.isDefinition){e.add(t);break}const t=new Set;for(;;){let n=!1;if(s.forEach(((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbol
6s(r,e)&&(t.add(i),n=!0)})),!n)break}s.forEach(((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1}))}const l=[],u=ehe(r);return s.forEach(((e,t)=>{for(const n of e){const e=she(ahe(n.definition),t),i=void 0===e?n.definition:g(m({},n.definition),{textSpan:ac(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:lhe(n.definition,t)});let o=w(l,(e=>xY(e.definition,i,r)));o||(o={definition:i,references:[]},l.push(o));for(const r of n.references)u.has(r)||she(ahe(r),t)||(u.add(r),o.references.push(r))}})),l.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),u=l?u7(l.displayParts):"",_=l&&l.textSpan,d=_?c.positionToLineOffset(_.start).offset:0,p=_?c.getSnapshot().getText(_.start,Ks(_)):"";return{refs:q(o,(e=>e.references.map((e=>hhe(this.projectService,e,a))))),symbolName:p,symbolStartOffset:d,symbolDisplayString:u}}getFileReferences(e,t){const n=this.getProjects(e),r=e.file,i=this.getPreferences(Gfe(r)),o=[],a=ehe(this.host.useCaseSensitiveFileNames);return the(n,void 0,(e=>{if(e.getCancellationToken().isCancellationRequested())return;const t=e.getLanguageService().getFileReferences(r);if(t)for(const n of t)a.has(n)||(o.push(n),a.add(n))})),t?{refs:o.map((e=>hhe(this.projectService,e,i))),symbolName:`"${e.file}"`}:o}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=Gfe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map((t=>({textSpan:phe(t.textSpan,e),hintSpan:phe(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?cge(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i));if(!o)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=u7(o.displayParts);
6return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(Ks(o.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(o.documentation,r):u7(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,a)}}return a?o:g(m({},o),{tags:this.mapJSDocTagInfo(o.tags,r,!1)})}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?cge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?cge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?cge(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>Ks(e.span)<t))}(a,i))){const{lineText:s,absolutePosition:c}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&s.search("\\S")<0){const e=n.getIndentationAtPosition(t,i,o);let r,l,u=0;for(r=0,l=s.length;r<l;r++)if(" "===s.charAt(r))u++;else{if("\t"!==s.charAt(r))break;u+=o.tabSize}if(e!==u){const t=c+r;a.push({span:sc(c,t),newText:wde.getIndentationString(e,o)})}}}if(a)return a.map((e=>({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Ks(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,g(m({},fge(this.getPreferences(n))),{triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions}),r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=H(a.entries,(e=>{if(a.isMemberCompletion||fn(e.name.toLowerCase(),s.toLowerCase())){const{name:t,kind:n,kindModifiers:r,sortText:o,insertText:a,filterText:s,replacementSpan:c,hasAction:l,source:u,sourceDisplay:_,labelDetails:d,isSnippet:p,isRecommended:f,isPackageJsonImport:m,isImportStatementCompletion:g,data:h}=e;return{name:t,kind:n,kindModifiers:r,sortText:o,insertText:a,filterText:s,replacementSpan:c?phe(c,i):void 0,isSnippet:p,hasAction:l||void 0,source:u,sourceDisplay:_,labelDetails:d,isRecommended:f,isPackageJsonImport:m,isImportStatementCompletion:g,data:h}}}));return"completions"===t?(a.metadata&&(c.metadata=a.metadata),c):g(m({},a),{optionalReplacementSpan:a.optionalReplacementSpan&&phe(a.optionalReplacementSpan,i),entries:c})}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=H(e.entryNames,(e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?yt(s,yhe):void 0)}));return t?s?c:c.map((e=>g(m({},e),{tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>g(m({}
6,e),{codeActions:j(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=z(pt(n)?n:n.projects,(t=>r(t,e)));return!pt(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const o=t(n);i.push(...q(e,(e=>r(e,o))))})),ae(i,Ot)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||fO(t.fileName)&&!function(e){return GS(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}})):Wfe}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||zfe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map((e=>Gge(e,!0)))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return g(m({},a),{applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)})}return s||!a?a:g(m({},a),{items:a.items.map((e=>g(m({},e),{tags:this.mapJSDocTagInfo(e.tags,r,!1)})))})}toPendingErrorCheck(e){const t=Gfe(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);En.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,Y({span:{start:n,length:r-n},newText:e.insertString})))}reload(e,t){const n=Gfe(e.file),r=void 0===e.tmpfile?void 0:Gfe(e.tmpfile),i=this.projectService.getScriptInfoForNormalizedPath(n);i&&(this.changeSeq++,i.reloadFromFile(r)&&this.doOutput(void 0,"reload",t,!0))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=sa(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return j(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>phe(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>phe(e,t))),nameSpan:e.nameSpan&&phe(e.nameSpan,t),childItems:j(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){const n=this.getFullNavigateToItems(e);return q(n,t?({project:e,navigateToItems:t})=>t.map((t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Ks(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;
6if(t){En.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;return e.file||i?the(this.getProjects(e),void 0,(e=>c(e))):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>c(e)))),a;function c(e){const t=L(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const r of n)if(l(r,e))return!1;return n.push(e),!0}(t)&&!she(ahe(t),e)));t.length&&a.push({project:e,navigateToItems:t})}function l(e,t){return e===t||!(!e||!t)&&e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length}}getSupportedCodeFixes(e){if(!e)return d7();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||zfe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),En.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map((e=>g(m({},e),{actions:e.actions.map((e=>g(m({},e),{range:e.range?{start:Kge({line:e.range.start.line,character:e.range.start.offset}),end:Kge({line:e.range.end.line,character:e.range.end.offset})}:void 0})))})))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;return void 0!==e&&void 0!==t&&(i=ghe(KQ(r.getScriptInfoForNormalizedPath(Gfe(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e),r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map((t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(Gfe(e.copiedFrom.file)))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t)))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){var n;En.assert("file"===e.scope.type);const{file:r,project:i}=this.getFileAndProject(e.scope.args),o=i.getLanguageService().organizeImports({fileName:r,mode:null!=(n=e.mode)?n:e.skipDestructiveCodeActions?"SortAndCombine":void 0,type:"file"},this.getFormatOptions(r),this.getPreferences(r));return t?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(e,t){const n=Gfe(e.oldFilePath),r=Gfe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const n of t)a.has(n.fileName)||(s.push(n),c.push(n.fileName));for(const n of c)a.add(n)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(Fhe){const i=r.getLanguageService(),s=[...i.getSyntacticDiagnostics(n),...i.getSemanticDiagnostics(n),...i.getSuggestionDiagnostics(n)].map((e=>rc(o,a-o,e.start,e.length)&&e.code)),c=e.errorCodes.find((e=>!s.includes(e)));throw void 0!==c&&(Fhe.message=`BADCLIENT: Bad error code, ${c}
6 not found in range ${o}..${a} (found: ${s.join(", ")}); could have caused this error:\n${Fhe.message}`),Fhe}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){En.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const n of ft(t)){const{file:e,project:t}=this.getFileAndProject(n);t.getLanguageService().applyCodeActionCommand(n,this.getFormatOptions(e)).then((e=>{}),(e=>{}))}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),En.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:mhe(t,e.span.start),end:mhe(t,Ks(e.span)),newText:e.newText}}(e,t)))}:function(e){En.assert(1===e.textChanges.length);const t=Ae(e.textChanges);return En.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map((e=>phe(e,i))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,!0);if(i)return;const o=r.filter((e=>!e.includes("lib.d.ts")));if(0===o.length)return;const a=[],s=[],c=[],l=[],u=Gfe(n),_=this.projectService.ensureDefaultProjectForFile(u);for(const p of o)this.getCanonicalFileName(p)===this.getCanonicalFileName(n)?a.push(p):this.projectService.getScriptInfo(p).isScriptOpen()?s.push(p):fO(p)?l.push(p):c.push(p);const d=[...a,...s,...c,...l].map((e=>({fileName:e,project:_})));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=En.checkDefined(this.projectService.getScriptInfo(r));return j(n,(e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:phe(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=Gfe(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),zfe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:phe(e.span,t),selectionSpan:phe(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>phe(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>phe(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&o0(o,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyIncomingCall(e)))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyOutgoingCall(e,r)))}getCanonicalFileName(e){return sa(this.host.useCaseSensitiveFileNames?e:wt(e))}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(e){return{response:e,responseRequired:!0}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){En.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest
6(e)}resetCurrentRequest(e){En.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t){try{return this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e)}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)));return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${iG(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s,c,l,u,_;let d,p,f;this.gcTimer.scheduleCollect(),this.performanceData=void 0,this.logger.hasLevel(2)&&(d=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${rG(this.toStringMessage(e))}`));try{p=this.parseMessage(e),f=p.arguments&&p.arguments.file?p.arguments:void 0,null==(t=pr)||t.instant(pr.Phase.Session,"request",{seq:p.seq,command:p.command}),null==(n=lr)||n.logStartCommand(""+p.command,this.toStringMessage(e).substring(0,100)),null==(r=pr)||r.push(pr.Phase.Session,"executeCommand",{seq:p.seq,command:p.command},!0);const{response:s,responseRequired:c}=this.executeCommand(p);if(null==(i=pr)||i.pop(),this.logger.hasLevel(2)){const e=(m=this.hrtime(d),(1e9*m[0]+m[1])/1e6).toFixed(4);c?this.logger.perftrc(`${p.seq}::${p.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${p.seq}::${p.command}: async elapsed time (in milliseconds) ${e}`)}null==(o=lr)||o.logStopCommand(""+p.command,"Success"),null==(a=pr)||a.instant(pr.Phase.Session,"response",{seq:p.seq,command:p.command,success:!!s}),s?this.doOutput(s,p.command,p.seq,!0):c&&this.doOutput(void 0,p.command,p.seq,!1,"No content available.")}catch(g){if(null==(s=pr)||s.popAll(),g instanceof $r)return null==(c=lr)||c.logStopCommand(""+(p&&p.command),"Canceled: "+g),null==(l=pr)||l.instant(pr.Phase.Session,"commandCanceled",{seq:null==p?void 0:p.seq,command:null==p?void 0:p.command}),void this.doOutput({canceled:!0},p.command,p.seq,!0);this.logErrorWorker(g,this.toStringMessage(e),f),null==(u=lr)||u.logStopCommand(""+(p&&p.command),"Error: "+g),null==(_=pr)||_.instant(pr.Phase.Session,"commandError",{seq:null==p?void 0:p.seq,command:null==p?void 0:p.command,message:g.message}),this.doOutput(void 0,p?p.command:"unknown",p?p.seq:0,!1,"Error processing request. "+g.message+"\n"+g.stack)}var m}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function phe(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Ks(e))}}function fhe(e,t,n){const r=phe(e,n),i=t&&phe(t,n);return i?g(m({},r),{contextStart:i.start,contextEnd:i.end}):r}function mhe(e,t){return Jge(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function ghe(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=is(es(i),n);return{line:o+1,offset:a+1}}function hhe(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=En.checkDefined(e.getScriptInfo(t)),c=fhe(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Ks(n)).replace(/\r|\n/g,"")}(s,c);return g(m({file:t},c),{lineText:l,isWriteAccess:i,isDefinition:o})}function yhe(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var vhe=(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))(vhe||{}),bhe=class{constructor(){this.goSubtree=!0,this.lineIndex=new Che,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new whe,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:this.initialText+this.trailingText;const n=Che.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let a=this.endBranch.length-1;a>=0;a--)this.endBranch[a].updateCounts(),0===this.endBranch[a].charCount()&&(i=this.endBranch[a],r=a>0?this.endBranch[a-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let o=1;o<n.length;o++)e[o-1]=new Dhe(n[o]);let r=this.startPath.length-2;for(;r>=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new whe;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let a=this.startPath.length-2;a>=0;a--)this.startPath[a].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new Dhe(""):new whe}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},xhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return uc(ac(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},She=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new xhe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>
6e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new The(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return ac(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e<t))return _c;if(e>=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return dc(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new The(0,n,new Che);n.versions[n.currentVersion]=r;const i=Che.linesFromText(t);return r.index.load(i.lines),n}};She.changeNumberThreshold=8,She.changeLengthThreshold=256,She.maxVersions=8;var khe=She,The=class e{constructor(e,t,n,r=Wfe){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?_c:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},Che=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e<t.length;e++)n[e]=new Dhe(t[e]);this.root=e.buildTreeFromBottom(n)}else this.root=new whe}walk(e,t,n){this.root.walk(e,t,n)}getText(e,t){let n="";return t>0&&e<this.root.charCount()&&this.walk(e,t,{goSubtree:!0,done:!1,leaf:(e,t,r)=>{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return En.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new bhe;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());En.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new whe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r<t.length;r++){const i=Math.min(n+4,e.length);t[r]=new whe(e.slice(n,i)),n=i}return this.buildTreeFromBottom(t)}static linesFromText(e){const t=es(e);if(0===t.length)return{lines:[],lineMap:t};const n=new Array(t.length),r=t.length-1;for(let o=0;o<r;o++)n[o]=e.substring(t[o],t[o+1]);const i=e.substring(t[r]);return i.length>0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},whe=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n
6),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(r<e-1)for(let t=r+1;t<e;t++)this.skipChild(0,0,t,n,5)}}charOffsetToLineInfo(e,t){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:t,lineText:void 0};for(const r of this.children){if(r.charCount()>t)return r.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:r.text}:r.charOffsetToLineInfo(e,t);t-=r.charCount(),e+=r.lineCount()}const n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:En.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t<r){for(n=new e;t<r;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=i,n}remove(e){const t=this.findChildIndex(e),n=this.children.length;if(t<n-1)for(let r=t;r<n-1;r++)this.children[r]=this.children[r+1];this.children.pop()}findChildIndex(e){const t=this.children.indexOf(e);return En.assert(-1!==t),t}insertAt(t,n){let r=this.findChildIndex(t);const i=this.children.length,o=n.length;if(i<4&&r===i-1&&1===o)return this.add(n[0]),this.updateCounts(),[];{const t=this.splitAfter(r);let i=0;for(r++;r<4&&i<o;)this.children[r]=n[i],r++,i++;let a=[],s=0;if(i<o){s=Math.ceil((o-i)/4),a=new Array(s);let t=0;for(let n=0;n<s;n++)a[n]=new e;let r=a[0];for(;i<o;)r.add(n[i]),i++,4===r.children.length&&(t++,r=a[t]);for(let e=a.length-1;e>=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e<s;e++)a[e].updateCounts();return a}}add(e){this.children.push(e),En.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},Dhe=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},Nhe=class e{constructor(e,t,n,r,i,o){this.telemetryEnabled=e,this.logger=t,this.host=n,this.globalTypingsCacheLocation=r,this.event=i,this.maxActiveRequestCount=o,this.activeRequestCount=0,this.requestQueue=_t(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(e){var t;return qK.validatePackageName(e)===qK.NameValidationResult.Ok&&(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!(null==(t=this.typesRegistryCache)?void 0:t.has(e)))}installPackage(e){this.packageInstallId++;const t=g(m({kind:"installPackage"},e),{id:this.packageInstallId}),n=new Promise(((e,t)=>{var n;(null!=(n=this.packageInstalledPromise)?n:this.packageInstalledPromise=new Map).set(this.packageInstallId,{resolve:e,reject:t})}));return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Kfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${iG(r)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(r):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${r.projectName}`),this.requestQueue.enqueue(r),this.requestMap.set(r.projectName,r))}handleMessage(e){var t,n;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${iG(e)}`),e.kind){case KK:this.typesRegistryCache=new Map(Object.entries(e.typesRegistry));break;case HK:{const r=null==(t=this.packageInstalledPromise)?void 0:t.get(e.id);
6En.assertIsDefined(r,"Should find the promise for package install"),null==(n=this.packageInstalledPromise)||n.delete(e.id),e.success?r.resolve({successMessage:e.message}):r.reject(e.message),this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break}case QK:{const t={message:e.message},n="typesInstallerInitializationFailed";this.event(t,n);break}case GK:{const t={eventId:e.eventId,packages:e.packagesToInstall},n="beginInstallTypes";this.event(t,n);break}case XK:{if(this.telemetryEnabled){const t={telemetryEventName:"typingsInstalled",payload:{installedPackages:e.packagesToInstall.join(","),installSuccess:e.installSuccess,typingsInstallerVersion:e.typingsInstallerVersion}},n="telemetry";this.event(t,n)}const t={eventId:e.eventId,packages:e.packagesToInstall,success:e.installSuccess},n="endInstallTypes";this.event(t,n);break}case WK:this.projectService.updateTypingsForProject(e);break;case VK:for(this.activeRequestCount>0?this.activeRequestCount--:En.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case YK:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout((()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${iG(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};Nhe.requestDelayMillis=100;var Ehe=Nhe,Phe={};r(Phe,{ActionInvalidate:()=>WK,ActionPackageInstalled:()=>HK,ActionSet:()=>VK,ActionWatchTypingLocations:()=>YK,Arguments:()=>zK,AutoImportProviderProject:()=>Lme,AuxiliaryProject:()=>Ime,CharRangeSection:()=>vhe,CloseFileWatcherEvent:()=>tge,CommandNames:()=>Xge,ConfigFileDiagEvent:()=>Gme,ConfiguredProject:()=>Rme,ConfiguredProjectLoadKind:()=>xge,CreateDirectoryWatcherEvent:()=>ege,CreateFileWatcherEvent:()=>Zme,Errors:()=>zfe,EventBeginInstallTypes:()=>GK,EventEndInstallTypes:()=>XK,EventInitializationFailed:()=>QK,EventTypesRegistry:()=>KK,ExternalProject:()=>Mme,GcTimer:()=>ome,InferredProject:()=>Ame,LargeFileReferencedEvent:()=>Kme,LineIndex:()=>Che,LineLeaf:()=>Dhe,LineNode:()=>whe,LogLevel:()=>Vfe,Msg:()=>Hfe,OpenFileInfoTelemetryEvent:()=>Yme,Project:()=>Fme,ProjectInfoTelemetryEvent:()=>Qme,ProjectKind:()=>Cme,ProjectLanguageServiceStateEvent:()=>Xme,ProjectLoadingFinishEvent:()=>Hme,ProjectLoadingStartEvent:()=>Wme,ProjectService:()=>Bge,ProjectsUpdatedInBackgroundEvent:()=>Vme,ScriptInfo:()=>xme,ScriptVersionCache:()=>khe,Session:()=>dhe,TextStorage:()=>vme,ThrottledOperations:()=>ime,TypingsCache:()=>Tme,TypingsInstallerAdapter:()=>Ehe,allFilesAreJsOrDts:()=>Nme,allRootFilesAreJsOrDts:()=>Dme,asNormalizedPath:()=>Qfe,convertCompilerOptions:()=>lge,convertFormatOptions:()=>cge,convertScriptKindName:()=>pge,convertTypeAcquisition:()=>_ge,convertUserPreferences:()=>fge,convertWatchOptions:()=>uge,countEachFileTypes:()=>wme,createInstallTypingsRequest:()=>Kfe,createModuleSpecifierCache:()=>qge,createNormalizedPathMap:()=>Yfe,createPackageJsonCache:()=>zge,createSortedArray:()=>rme,emptyArray:()=>Wfe,findArgument:()=>eG,forEachResolvedProjectReferenceProject:()=>Sge,formatDiagnosticToProtocol:()=>Gge,formatMessage:()=>Qge,getBaseConfigFileName:()=>ame,getLocationInNewDocument:()=>ghe,hasArgument:()=>ZK,hasNoTypeScriptSource:()=>Eme,indent:()=>rG,isBackgroundProject:()=>Ume,isConfigFile:()=>Jge,isConfiguredProject:()=>Bme,isDynamicFileName:()=>bme,isExternalProject:()=>Jme,isInferredProject:()=>jme,isInferredProjectName:()=>Zfe,isProjectDeferredClose:()=>qme,makeAutoImportProviderProjectName:()=>tme,makeAuxiliaryProjectName:()=>nme,makeInferredProjectName:()=>eme,maxFileSize:()=>$me,maxProgramSizeForNonTsFiles:()=>zme,normalizedPathToPath:()=>Xfe,nowString:()=>tG,nullCancellationToken:()=>$ge,nullTypingsInstaller:()=>Sme,protocol:()=>cme,removeSorted:()=>sme,stringifyIndented:()=>iG,toEvent:()=>Zge,toNormalizedPath:()=>Gfe,tryConvertScriptKindName:()=>dge,typingsInstaller:()=>Rfe,updateProjectIfDirty:()=>Ege}),"undefined"!=typeof console&&(En.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return Pe},set exports(e){Pe=e,Ne.exports&&(Ne.exports=e)}}),$(document).ready((function(){var e={loadCountries:function(e){const t=document.getElementById("localeselection-country-dropdown");
6if(!t)return;t.querySelector(".cmp-localeselection__selected-option");const n=t.querySelector(".cmp-localeselection__dropdown-options");n.innerHTML="",e.forEach((e=>{const t=`${Granite.I18n.get(e.tag)}`,r=document.createElement("div");r.classList.add("cmp-localeselection__dropdown-option"),r.innerHTML=`\n                    <img class="cmp-localeselection__option-flag-icon" src="${e.flag}">\n                    <span class="cmp-localeselection__option-label">${t}</span>\n                `,r.dataset.value=JSON.stringify(e),n.appendChild(r)}))},loadRegions:function(e){const t=document.getElementById("localeselection-region-language-dropdown");if(!t)return;t.querySelector(".cmp-localeselection__selected-option");const n=t.querySelector(".cmp-localeselection__dropdown-options");n.innerHTML="",e.forEach((e=>{const t=`${e.text}`,r=document.createElement("div");r.classList.add("cmp-localeselection__dropdown-option"),r.innerHTML=`<span class="cmp-localeselection__option-label">${t}</span>`,r.dataset.value=e.lang+"_"+e.region,n.appendChild(r)}))},getFields:function(){var e,t;const n=document.querySelector(".cmp-localeselection__container");if(n){const r=n.querySelector("#localeselection-region-language-dropdown .cmp-localeselection__selected-option"),i=n.querySelector("#localeselection-country-dropdown .cmp-localeselection__selected-option");return{regionSelection:(null==r?void 0:r.dataset.value)||null,countrySelection:(null==i?void 0:i.dataset.value)||null,regionLabel:(null==(t=null==(e=null==r?void 0:r.querySelector(".cmp-localeselection__option-label"))?void 0:e.textContent)?void 0:t.trim())||null}}return null},onSubmit:function(t){return v(this,null,(function*(){const n=e.getFields();if(null!=n){const r=n.countrySelection?JSON.parse(n.countrySelection):null;if(window.submitLocationLanguageDatalayer(n.regionLabel,n.regionSelection,null==r?void 0:r.B,null==r?void 0:r.A),e.dispatchCookieEvent("newRegionLangSelected",n.regionSelection),e.dispatchCookieEvent("newCountryOfUseSelected",n.countrySelection),t){let t=document.referrer;const r=e.parseOutRegionAndLang(n.regionSelection);if(null!=r&&null!=r.region&&null!=r.lang){t.includes("/editor.html/")&&(t=null);const n=e.replaceRegionLangFromPath(t,r.region,r.lang);window.location.href=n}else console.error("Unable to determine new region settings.")}}else console.error("Error making new selections."),window.createErrorDatalayer("Submission Error: Unable to get user selections from locale selection component.")}))},replaceRegionLangFromPath:function(e,t,n){const r="na"===t?"":"/"+t;if(null!=e&&e.trim().length>0){let t=new URL(e).pathname.replace("/content/panduit","");(t.startsWith("/en/")||t.startsWith("/en.html"))&&(t="/na"+t);let i="en",o="";const a=t.split("/");o=a[1],o&&""!==o&&"en"!==o?i=a[2]:o="na";const s=i.includes(".html")?"/"+n+".html":"/"+n+"/";e=(e=t.replace("/"+o+"/",r+"/")).replace(i.includes(".html")?"/"+i:"/"+i+"/",s)}else e=r+"/"+n+".html";return e},parseOutRegionAndLang:function(e){if(null!=e){const t=e.split("_");if(t.length>=2){return{region:t[1],lang:t[0]}}}return null},dispatchCookieEvent:function(e,t){null!=t&&window.dispatchEvent(new CustomEvent(e,{detail:{0:t}}))},loadValuesFromCookie:function(){const t=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE"),n=window.getRegionOrCountryCookie("PANDUIT_IWE_LOCALE");e.setDropdownValues("country","#localeselection-country-dropdown",null==t?void 0:t.A),e.setDropdownValues("website","#localeselection-region-language-dropdown",n)},setDropdownValues:function(t,n,r){const i=document.querySelector(n);if(!i)return;const o=i.querySelector(".cmp-localeselection__selected-option"),a=i.querySelectorAll(".cmp-localeselection__dropdown-option");let s=!1;if(null!=r)for(const e of a){if(("country"===t?JSON.parse(e.dataset.value).A:e.dataset.value)===r){o.innerHTML=e.innerHTML,o.dataset.value=e.dataset.value,s=!0;break}}if(!s&&a.length>0){const t=a[0];o.innerHTML=t.innerHTML,o.dataset.value=t.dataset.value,e.onSubmit(!1)}},bindEvents:function(){$(".cmp-localeselection__button-wrapper .cmp-button").on("click",(function(){e.onSubmit(!0)})),document.querySelectorAll(".cmp-localeselection__dropdown").forEach((e=>{const t=e.querySelector(".cmp-localeselection__selected-option"),n=e.querySelector(".cmp-localeselection__dropdown-options"),r=()=>Array.from(n.children);let i=-1;const o=()=>{document.querySelectorAll(".cmp-localeselection__dropdown.open").forEach((t=>{var n;if(t!==e){t.classList.remove("open"),null==(n=t.querySelector(".cmp-localeselection__selected-option"))||n.setAttribute("aria-expanded","fal
6se");const e=t.querySelector(".cmp-localeselection__dropdown-options");e&&(e.style.display="none")}})),e.classList.add("open"),t.setAttribute("aria-expanded","true"),n.style.display="block"},a=()=>{e.classList.remove("open"),t.setAttribute("aria-expanded","false"),n.style.display="none",i=-1,r().forEach((e=>e.classList.remove("focused")))},s=e=>{const t=r();t.forEach(((t,n)=>{t.classList.toggle("focused",n===e),t.setAttribute("aria-selected",n===e?"true":"false")}));const n=t[e];n&&n.scrollIntoView({block:"nearest"}),i=e};t.addEventListener("click",(t=>{t.stopPropagation(),e.classList.contains("open")?a():o()})),t.addEventListener("keydown",(t=>{const n=r(),c=n.length-1;switch(t.key){case" ":case"Enter":t.preventDefault(),e.classList.contains("open")?i>=0?n[i].click():a():o();break;case"ArrowDown":t.preventDefault(),e.classList.contains("open")||o(),s(i+1>c?0:i+1);break;case"ArrowUp":t.preventDefault(),e.classList.contains("open")||o(),s((i-1+n.length)%n.length);break;case"Escape":a()}}));let c,l="";t.addEventListener("keydown",(t=>{const n=t.key;if(!(["Enter","Escape","ArrowUp","ArrowDown"].includes(n)||t.ctrlKey||t.metaKey||t.altKey)&&1===n.length&&/^[a-zA-Z0-9\s]$/.test(n)){l+=n.toLowerCase(),clearTimeout(c),c=setTimeout((()=>{l=""}),500);const t=r().findIndex((e=>e.textContent.trim().toLowerCase().startsWith(l)));t>=0&&(e.classList.contains("open")||o(),s(t))}})),r().forEach((e=>{e.addEventListener("click",(n=>{n.stopPropagation();const r=e.innerHTML;t.innerHTML=r,t.dataset.value=e.dataset.value,a()}))}))})),document.addEventListener("click",(function(e){document.querySelectorAll(".cmp-localeselection__dropdown.open").forEach((t=>{if(!t.contains(e.target)){t.classList.remove("open");const e=t.querySelector(".cmp-localeselection__selected-option"),n=t.querySelector(".cmp-localeselection__dropdown-options");null==e||e.setAttribute("aria-expanded","false"),n.style.display="none"}}))}))},init:function(){var t=window.webRegionsAndLangs;e.loadRegions(t);var n=window.countries;e.loadCountries(n),e.bindEvents(),e.loadValuesFromCookie()}};e.init()}));class Fe{constructor(e){y(this,"accessibilityText",document.body.dataset),y(this,"controlledNodes",[]),y(this,"controlledNodesThrottle",[]),y(this,"isTouchEvent",!1),y(this,"nav"),y(this,"openControlledNodes",[]),y(this,"rootNode"),y(this,"touchEventTimeout",null),y(this,"triggerButtonIconHTML",{open:`<span class="cmp-navigation__item-button-icon fas fa-angle-down" aria-hidden="true"></span><span class="sr-only">${null!=(i=this.accessibilityText.cmpMenuAccessibilityShow)?i:""}</span>`,closed:`<span class="cmp-navigation__item-button-icon fas fa-angle-up" aria-hidden="true"></span><span class="sr-only">${null!=(o=this.accessibilityText.cmpMenuAccessibilityHide)?o:""}</span>`}),y(this,"triggerContainerNodes",[]),y(this,"triggerNodes",[]),y(this,"triggerNodeTimeouts",[]),y(this,"useArrowKeys",!0),y(this,"handleMenuAnimation",((e,t,n=500)=>{const r=this.controlledNodes[e],i=this.triggerContainerNodes[e].querySelector("button");t?(null==r||r.classList.add("cmp-navigation__group--opening","cmp-navigation__group--opened"),i&&(i.innerHTML=this.triggerButtonIconHTML.closed,i.setAttribute("aria-expanded","true")),this.openControlledNodes[e]=!0):this.triggerNodeTimeouts[e]=setTimeout((()=>{this.openControlledNodes[e]=!1,null==r||r.classList.remove("cmp-navigation__group--opened"),i&&(i.innerHTML=this.triggerButtonIconHTML.open,i.setAttribute("aria-expanded","false"))}),n)})),this.rootNode=e,this.nav=this.rootNode.querySelector("nav")}init(){var e;const t=Array.from(this.rootNode.querySelectorAll(".cmp-navigation__item-link-container + ul")).map((e=>e.previousElementSibling));if(0===t.length)return;const n=`cmp-navigation__group-${null==(e=this.nav)?void 0:e.id}`;for(let r=0;r<t.length;r++){const e=t[r];e&&this.initDropdownItem(e,`${n}-${r}`)}this.accessibilityText.cmpMenuAccessibilityShow&&this.accessibilityText.cmpMenuAccessibilityHide||window.location.pathname.startsWith("/content/experience-fragments/")||console.error("ARIA labels for the Navigation component are missing"),this.rootNode.addEventListener("keydown",(e=>this.handleButtonKeyDown(e))),this.rootNode.addEventListener("mouseout",this.handleNodeBlur.bind(this)),this.rootNode.removeAttribute("hidden"),this.authorModeAutoToggle(
6)}authorModeAutoToggle(){new MutationObserver((e=>{const t=document.querySelector("html");e.forEach((e=>{var n;"class"===e.attributeName&&((null==(n=null==t?void 0:t.classList)?void 0:n.contains("aem-AuthorLayer-Preview"))||this.toggleAllMenusClosed())}))})).observe(document.documentElement,{attributes:!0})}initDropdownItem(e,t){var n,r,i;const o=e.querySelector("a");this.triggerNodes.push(o);const a=e.parentNode&&e.parentNode.querySelector("ul");if(a){const e=(null==(n=o.parentNode)?void 0:n.parentNode)&&o.parentNode.parentNode;a.setAttribute("id",t);const s=document.createElement("button");s.innerHTML=this.triggerButtonIconHTML.open,s.setAttribute("aria-expanded","false"),s.setAttribute("aria-controls",t),s.setAttribute("data-title",null!=(i=null==(r=o.textContent)?void 0:r.trim())?i:""),s.classList.add("cmp-navigation__item-button"),o.insertAdjacentElement("afterend",s),this.triggerNodes.push(s),this.triggerContainerNodes.push(e),this.controlledNodes.push(a),a.classList.remove("cmp-navigation__group--opened"),a.style.display="block";const c=a.getBoundingClientRect(),l=window.scrollX,u=window.innerWidth+window.scrollX,_=c.left+window.scrollX;c.right+window.scrollX>u&&(a.style.left=`calc(100% - ${c.width}px)`),_<l&&(a.style.left="0",a.style.right="auto"),s.addEventListener("click",this.handleTriggerButtonClick.bind(this)),setTimeout((()=>{null==e||e.addEventListener("mouseover",this.handleNodeHover.bind(this))}),100),null==e||e.addEventListener("mouseout",this.handleNodeBlur.bind(this)),null==e||e.addEventListener("touchstart",this.handleNodeTouchStart.bind(this)),a.addEventListener("mouseout",this.handleNodeBlur.bind(this)),a.addEventListener("transitionend",this.handleNodeTransitionEnd.bind(this))}}toggleMenuAnimation(e,t,n=500){if(t&&"number"==typeof this.triggerNodeTimeouts[e]&&clearTimeout(this.triggerNodeTimeouts[e]),this.openControlledNodes[e]===t)return;void 0===this.controlledNodesThrottle[e]&&(this.controlledNodesThrottle[e]=se.throttle(((e,t,n=500)=>this.handleMenuAnimation(e,t,n)),150,!0));(0,this.controlledNodesThrottle[e])(e,t,n)}toggleMenu(e,t){if(null!==e){for(let t=0;t<this.openControlledNodes.length;t++)this.openControlledNodes[t]&&t!==e&&this.toggleMenuAnimation(t,!1,0);null!==e&&this.triggerContainerNodes[e]&&this.toggleMenuAnimation(e,t)}}toggleAllMenusClosed(){this.triggerContainerNodes.filter((e=>e)).forEach(((e,t)=>{this.handleMenuAnimation(t,!1,0)}))}controlFocusByKey(e,t){const n=t.indexOf(document.activeElement);switch(e.key){case"ArrowUp":case"ArrowLeft":if(e.preventDefault(),n>-1){t[Math.max(0,n-1)].focus()}break;case"ArrowDown":case"ArrowRight":if(e.preventDefault(),n>-1){t[Math.min(t.length-1,n+1)].focus()}break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus()}}findTargetIndex(e,t,n=!1){return e.findIndex((e=>!!(!n&&e&&e.contains(t)||n&&e&&e.parentElement&&e.parentElement.contains(t)&&!e.parentElement.isSameNode(t))))}handleButtonKeyDown(e){var t,n,r,i,o;if(!this.useArrowKeys)return;const a=this.findTargetIndex(this.triggerContainerNodes,document.activeElement),s=(null==(n=null==(t=document.activeElement)?void 0:t.closest("li"))?void 0:n.classList.contains("cmp-navigation__item--level-1"))?Array.from(null!=(i=null==(r=document.activeElement.closest("ul"))?void 0:r.querySelectorAll("a"))?i:[]):this.triggerNodes;if("Escape"===e.key&&this.openControlledNodes[a])this.toggleMenuAnimation(a,!1,0),null==(o=this.triggerContainerNodes[a].querySelector("button"))||o.focus();else if("ArrowDown"===e.key&&this.triggerNodes.includes(document.activeElement)&&this.openControlledNodes[a]){e.preventDefault();const t=this.controlledNodes[a];if(t){const e=t.querySelector("a");e&&e.focus()}}else this.controlFocusByKey(e,s)}handleTriggerButtonClick(e){const t=e.target;if(t){const e=this.findTargetIndex(this.triggerContainerNodes,t),n="true"==t.getAttribute("aria-expanded");n||this.toggleAllMenusClosed(),this.toggleMenuAnimation(e,!n,0)}}handleNodeBlur(e){if(this.nav.classList.contains("cmp-slideout-nav--opened"))return;const t=this.findTargetIndex(this.controlledNodes,e.target,!0);if(-1===t){this.rootNode.contains(e.relatedTarget)||this.toggleAllMenusClosed()}else if(this.openControlledNodes[t]&&!this.controlledNodes[t].contains(e.relatedTarget)){this.rootNode.contains(e.relatedTarget)||this.toggleMenu(t,!1)}}handleNodeHover(e){if(this.nav&&this.nav.classList.contains("cmp-slideout-nav--opened")||this.isTouchEvent)return;const t=this.findTargetIndex(this.controlledNodes,e.target,!0);t>=0&&(this.toggleAllMenusClosed(),this.toggleMenu(t,!0))}handleNodeTouchStart(e){this.isTouchEvent=!0,this.touchEventTimeout&&clearTimeout(this.touchEventTimeout),this.touchEventTimeout=setTimeout((()=>{this.isTouchEvent=!1}),200)}handleNodeTransitionEnd(e){if("opacity"===e.propertyName){const t=window.getComputedStyle(e.target);e.target instanceof HTMLElement&&0===parseFloat(t.opacity)&&e.target.classList.remove("cmp-navigation__group--opening")}}}class Ae extends de{constructor(e){super(e),y(this,"eyebrowMenuIncluded",!1)}init(){const e=this.rootNode.querySelector("nav"),t=this.rootNode.querySelector(".cmp-navigation__group");super.init(e,t,e)}eyebrowMenuInclusion(){var e;const t=null==(e=this.rootNode.parentElement)?void 0:e.querySelector(".header-eyebrow-links");if(!t)return;const n=this.rootNode.querySelector(".cmp-navigation__group");if(t){const e=Array.from(t.querySelectorAll(".cmp-button"));e.length>0&&(e.reverse(),e.forEach((e=>{const t=document.createElement("li");t.classList.add("cmp-slideout-nav__item","cmp-navigation__item","cmp-navigation__item--level-0","cmp-navigation__item--eyebrow");const r=e.cloneNode(!0);
6r.classList.add("cmp-navigation__item-link"),r.id&&(r.id+="_mobile"),t.appendChild(r),n.insertAdjacentElement("beforeend",t)})))}}toggleMenu(e){void 0===e&&(e=!this.navOpen),this.navOpen=e,this.navOpen&&!1===this.eyebrowMenuIncluded&&(this.eyebrowMenuInclusion(),this.eyebrowMenuIncluded=!0),super.toggleMenu(e)}}class Ie extends HTMLElement{constructor(){super(),y(this,"disclosureNav",null),y(this,"slideoutNavHeader",null),this.classList.contains("cmp-navigation--dropdown")&&(this.disclosureNav=new Fe(this)),this.classList.contains("cmp-navigation--slideout")&&(this.slideoutNavHeader=new Ae(this))}connectedCallback(){this.classList.contains("cmp-navigation--dropdown")&&this.disclosureNav.init(),this.classList.contains("cmp-navigation--slideout")&&this.slideoutNavHeader.init()}}function Oe(e){if(null===e||""===e)return"";var t=e.split("?")[0].split("#")[0].split("/");return 0===t.length?"":t[t.length-1]}function Le(e){if(null===e||""===e)return"";var t=e.split(".");return t.length<=1?"":t[t.length-1]}function Re(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}customElements.define("cmp-navigation",Ie),function(){var e="cmp",t="pdfviewer",n="https://acrobatservices.adobe.com/view-sdk/viewer.js",r="adobe_dc_view_sdk.ready",i={self:"[data-"+e+'-is="'+t+'"]',sdkScript:'script[src="'+n+'"]'};function o(t){function o(e){new window.AdobeDC.View({clientId:e.dataset.cmpClientId,divId:e.id+"-content",reportSuiteId:e.dataset.cmpReportSuiteId}).previewFile({content:{location:{url:e.dataset.cmpDocumentPath}},metaData:{fileName:e.dataset.cmpDocumentFileName}},JSON.parse(e.dataset.cmpViewerConfigJson))}var a;(a=t.element).removeAttribute("data-"+e+"-is"),function(){var e=document.querySelectorAll(i.sdkScript).length>0;if(!window.adobe_dc_view_sdk&&!e){var t=document.createElement("script");t.type="text/javascript",t.src=n,document.body.appendChild(t)}}(),a.dataset&&a.id&&(window.AdobeDC&&window.AdobeDC.View?o(a):document.addEventListener(r,(function(){o(a)})))}function a(){AEM_PDT.Components.utils.constructComponents(i.self,t,o)}"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)}(),function(){const e="VideoStart",t="VideoPause",n="VideoResume",r="Video25",i="Video50",o="Video75",a="Video100",s=new Map;let c=null,l=!1;const u=".cmp-video iframe, .cmp-video-lightbox iframe",_=1500,d=1e4,p=1e3,f=30,m=2,g=1,h=5,y=.05;function v(e){return Math.round(Number(e)||0)}function b(e){if(!function(e){if(!e)return!1;let t;try{t=new URL(e,window.location.origin)}catch(r){return!1}const n=t.hostname.toLowerCase();return n.indexOf("youtube.com")>-1||n.indexOf("youtube-nocookie.com")>-1||"youtu.be"===n}(e))return!1;let t;try{t=new URL(e,window.location.origin)}catch(n){return!1}return"1"===t.searchParams.get("enablejsapi")}function x(){return window.YT&&window.YT.Player?Promise.resolve(window.YT):c||(c=new Promise((function(e){var t=!1;function n(){t||(t=!0,e(window.YT))}var r="function"==typeof window.onYouTubeIframeAPIReady?window.onYouTubeIframeAPIReady:null;if(window.onYouTubeIframeAPIReady=function(){r&&r(),n()},window.YT&&window.YT.Player)n();else{var i=document.querySelector('script[data-youtube-iframe-api="true"]');i||((i=document.createElement("script")).src="https://www.youtube.com/iframe_api",i.async=!0,i.setAttribute("data-youtube-iframe-api","true"),document.head.appendChild(i));var o=0,a=window.setInterval((function(){o+=1,window.YT&&window.YT.Player?(window.clearInterval(a),n()):o>=100&&(window.clearInterval(a),c=null)}),100)}})),c)}function S(e,t){if("function"!=typeof window.createDatalayerAndTriggerCustomEvent)return;const n=function(e,t){const n={event:{name:e}};return n.event[e]=t,n}(e,t);window.createDatalayerAndTriggerCustomEvent(n,e)}function k(e,t,n){if(t&&"function"==typeof t.getVideoUrl){const e=t.getVideoUrl();if(e)return e}const r=n&&n.getAttribute("src")||"";let i="";if(r)try{i=new URL(r,window.location.origin).searchParams.get("list")||""}catch(o){i=""}return i?"https://www.youtube.com/watch?list="+encodeURIComponent(i)+"&v="+encodeURIComponent(e||""):"https://www.youtube.com/watch?v="+encodeURIComponent(e||"")}function T(e,t){const n=e.player,r=e.iframe;let i=null;n&&"function"==typeof n.getVideoData&&(i=n.getVideoData());const o=i&&i.video_id||r.getAttribute("data-youtube-id")||e.authoredVideoId||function(e){if(!e)return"";let t;try{t=new URL(e,window.location.origin)}catch(i){return""}if("youtu.be"===t.hostname.toLowerCase())return t.pathname.replace("/","").trim();if(t.searchParams.has("v"))return t.searchParams.get("v")||"";
6const n=t.pathname.split("/").filter(Boolean),r=n.indexOf("embed");return r>-1&&n[r+1]?n[r+1]:""}(r.getAttribute("src")||""),a={videourl:k(o,n,r),videoname:i&&i.title||e.fallbackTitle||"",videoid:o,duration:v(n&&"function"==typeof n.getDuration?n.getDuration():0)};return t&&(a.playhead=v(n&&"function"==typeof n.getCurrentTime?n.getCurrentTime():0)),a}function C(e){e.hasStarted=!1,e.shouldEmitResume=!1,e.video100Sent=!1,e.nearEndReached=!1,e.quartilesSent={25:!1,50:!1,75:!1}}function w(e){e.progressIntervalId&&(window.clearInterval(e.progressIntervalId),e.progressIntervalId=null)}function D(e){e.stateIntervalId&&(window.clearInterval(e.stateIntervalId),e.stateIntervalId=null)}function N(e){if(!e.player||"function"!=typeof e.player.getDuration||"function"!=typeof e.player.getCurrentTime)return;const t=e.player.getDuration();if(!t||t<=0)return;const n=e.player.getCurrentTime(),a=function(e){const t=e*y;return Math.min(h,Math.max(g,t))}(t);t-n<=a&&(e.nearEndReached=!0);const s=n/t*100;s>=25&&!e.quartilesSent[25]&&(e.quartilesSent[25]=!0,S(r,T(e,!0))),s>=50&&!e.quartilesSent[50]&&(e.quartilesSent[50]=!0,S(i,T(e,!0))),s>=75&&!e.quartilesSent[75]&&(e.quartilesSent[75]=!0,S(o,T(e,!0)))}function E(t){t.lastState===window.YT.PlayerState.ENDED?C(t):function(e){if(!e.hasStarted||e.shouldEmitResume||!e.nearEndReached)return!1;if(e.lastState!==window.YT.PlayerState.PLAYING&&e.lastState!==window.YT.PlayerState.BUFFERING)return!1;const t=e.player;return!(!t||"function"!=typeof t.getCurrentTime)&&t.getCurrentTime()<m}(t)&&(t.video100Sent||(t.video100Sent=!0,S(a,T(t,!1))),C(t)),t.hasStarted?t.shouldEmitResume&&(t.shouldEmitResume=!1,S(n,T(t,!0))):(t.hasStarted=!0,t.shouldEmitResume=!1,S(e,T(t,!1))),function(e){w(e),e.progressIntervalId=window.setInterval((function(){N(e)}),250)}(t)}function P(e,n){window.YT&&window.YT.PlayerState&&n!==e.lastState&&(n===window.YT.PlayerState.PLAYING?E(e):n===window.YT.PlayerState.PAUSED?function(e){w(e),e.suppressNextPause?e.suppressNextPause=!1:!e.hasStarted||e.lastState!==window.YT.PlayerState.PLAYING&&e.lastState!==window.YT.PlayerState.BUFFERING||(e.shouldEmitResume=!0,S(t,T(e,!0)))}(e):n===window.YT.PlayerState.ENDED&&function(e){w(e),e.shouldEmitResume=!1,N(e),e.video100Sent||(e.video100Sent=!0,S(a,T(e,!1)))}(e),e.lastState=n)}function F(e){e.autoplayBootstrapIntervalId&&(window.clearInterval(e.autoplayBootstrapIntervalId),e.autoplayBootstrapIntervalId=null)}function A(e){e.playerInitTimeoutId&&(window.clearTimeout(e.playerInitTimeoutId),e.playerInitTimeoutId=null)}function I(e){e.iframeReadyTimeoutId&&(window.clearTimeout(e.iframeReadyTimeoutId),e.iframeReadyTimeoutId=null)}function O(e){if(!e)return;const t=s.get(e);t&&(!function(e){if(e){if(w(e),D(e),F(e),A(e),I(e),e.isAwaitingIframeReady=!1,e.isPlayerInitializing=!1,e.isPlayerReady=!1,e.player&&"function"==typeof e.player.destroy)try{e.player.destroy()}catch(t){}e.player=null}}(t),s.delete(e))}function L(e){const t=e;if(!t)return;if(t.matches&&t.matches(u)&&!t.isConnected&&O(t),!t.querySelectorAll)return;const n=t.querySelectorAll(u);for(let r=0;r<n.length;r++)n[r].isConnected||O(n[r])}function R(e){const t=e.player;if(!t||"function"!=typeof t.getPlayerState)return;let n=0;const r=function(){n+=1;let r=null;try{r=t.getPlayerState()}catch(i){r=null}if(r===window.YT.PlayerState.PLAYING)return F(e),void P(e,r);(e.hasStarted||n>=24)&&F(e)};r(),e.hasStarted||(e.autoplayBootstrapIntervalId=window.setInterval(r,250))}function M(e){if(!e)return;if(!b(e.getAttribute("src")||""))return;let t=s.get(e);function n(){t.isPlayerInitializing=!0,t.isPlayerReady=!1,A(t),t.playerInitTimeoutId=window.setTimeout((function(){if(t.isPlayerInitializing=!1,!t.isPlayerReady&&t.player&&"function"==typeof t.player.destroy)try{t.player.destroy()}catch(e){}t.isPlayerReady||(t.player=null)}),d),x().then((function(){if(!window.YT||!window.YT.Player)return t.isPlayerInitializing=!1,void A(t);t.player=new window.YT.Player(e,{events:{onReady:function(e){t.isPlayerInitializing=!1,t.isPlayerReady=!0,A(t),t.player=e.target,function(e){D(e),e.stateIntervalId=window.setInterval((function(){if(!e.player||"function"!=typeof e.player.getPlayerState)return;let t=null;try{t=e.player.getPlayerState()}catch(n){t=null}null!=t&&P(e,t)}),250)}(t),R(t)},onStateChange:function(e){P(t,e.data)}}})})).catch((function(){t.isPlayerInitializing=!1,A(t)}))}function r(){e.removeEventListener("load",r),t.isAwaitingIframeReady=!1,I(t),t.player||t.isPlayerInitializing||n()}t||(t=function(e){return{iframe:e,player:null,authoredVideoId:e.getAttribute("data-youtube-id")||"",fallbackTitle:e.getAttribute("title")||e.getAttribute("aria-label")||"",hasStarted:!1,quartilesSent:{25:!1,50:!1,75:!1},lastState:null,stateIntervalId:null,progressIntervalId:null,suppressNextPause:!1,shouldEmitResume:!1,video100Sent:!1,nearEndReached:!1,autoplayBootstrapIntervalId:null,isAwaitingIframeReady:!1,isPlayerInitializing:!1,isPlayerReady:!1,playerInitTimeoutId:null,iframeReadyTimeoutId:null}}(e),s.set(e,t)),t.player||t.isPlayerInitializing||t.isAwaitingIframeReady||(t.isAwaitingIframeReady=!0,I(t),e.addEventListener("load",r),t.iframeReadyTimeoutId=window.setTimeout(r,_))}function j(e){const t=s.get(e);return t?t.player:null}function B(e){const t=e||document;if(t.matches&&t.matches(u)&&M(t),!t.querySelectorAll)return;const n=t.querySelectorAll(u);for(let r=0;r<n.length;r++)M(n[r])}function J(){B(document),function(){if(l)return;l=!0,new MutationObserver((function(e){for(let t=0;t<e.length;t++){const n=e[t];if("attributes"!==n.type){for(let e=0;e<n.addedNodes.length;e++){const t=n.addedNodes[e];t&&1===t.nodeType&&B(t)}for(let e=0;e<n.removedNodes.length;e++){const t=n.removedNodes[e];t&&1===t.nodeType&&L(t)}}else B(n.target)}})).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","data-youtube-id"]})}(),function(){let e=0;const t=window.setInterval((function(){e+=1,B(document),e>=f&&window.clearInterval(t)}),p)}()}window.YouTubeTracking={init:J,registerTrackedYouTubeIframe:M,getPlayerForIframe:j,getPlayerForContainer:function(e){if(!e||!e.querySelector)return null;const t=e.querySelector("iframe");return t?j(t):null},suppressNextPauseForIframe:function(e){const t=s.get(e);t&&(t.suppressNextPause=!0)},onModalOpenForIframe:function(e){if(!e)return;M(e);const t=s.get(e);t&&t.player&&(w(t),F(t),C(t),t.lastState=null,t.suppressNextPause=!1,R(t))}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",J):J()}(),$(document).ready((function(){const e={getModalForElement:function(e){const t=$(e).closest(".cmp-video").attr("id");return $(`.cmp-video-lightbox[data-modal-for="${t}"]`)[0]},bindEvents:function(){$(".cmp-video .cmp-video__lightbox-placeholder-wrapper .cmp-video__lightbox-placeholder").on("click",(function(){const t=e.getModalForElement(this);window.VideoLightbox.openModal(t)}
6)),$(".cmp-video .cmp-video-lightbox__close.cursor").on("click",(function(){const t=e.getModalForElement(this);window.VideoLightbox.closeModal(t)}))},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){var e={loadCountries:function(e){for(var t=0;t<e.length;t++){var n=$("<option>",{class:"cmp-countryofuse__dropdown-option",value:JSON.stringify(e[t]),text:Granite.I18n.get(e[t].tag)});$("#countryofuse-country-dropdown").append(n)}},onSubmit:function(t=!1){const n=document.getElementById("countryofuse-country-dropdown");if(!n)return;const r=n.value;if(null==r||""===r.trim())return console.error("Error making new country selection."),void window.createErrorDatalayer("Submission Error: Unable to make country selection from COU dropdown");try{const n=JSON.parse(r);t&&window.couChangeDatalayer(null==n?void 0:n.B,null==n?void 0:n.A),e.dispatchCountryEvent("newCountryOfUseSelected",r),e.setFlagIcon(r),window.dispatchEvent(new CustomEvent("updateProductCountryFilter"))}catch(i){console.error("Failed to parse country selection as JSON"),window.createErrorDatalayer("Submission Error: Invalid country selection JSON from COU dropdown")}},onFilterToggle:function(){const t=document.getElementById("countryofuse-country-toggle").checked;null!=t&&(e.dispatchCountryEvent("countryFilterStateChanged",t),window.dispatchEvent(new CustomEvent("updateProductCountryFilter")))},dispatchCountryEvent:function(e,t){null!=t&&window.dispatchEvent(new CustomEvent(e,{detail:{0:t}}))},setFlagIcon:function(e){if("object"==typeof e)$(".cmp-countryofuse__flag-icon").attr("src",null==e?void 0:e.flag);else try{const t=JSON.parse(e);$(".cmp-countryofuse__flag-icon").attr("src",null==t?void 0:t.flag)}catch(t){console.error("Failed to parse country selection as JSON")}},loadValuesFromCookie:function(){const t=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE"),n=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_FILTERED"),r=null==n||"true"===n;e.setDropdownValues(null==t?void 0:t.A),e.setFlagIcon(t),e.setToggleValue(r,null==n)},setDropdownValues:function(t){const n=document.getElementById("countryofuse-country-dropdown");if(!n)return;let r=!1;if(null!=t)for(const e of n.options){if(JSON.parse(e.value).A===t){n.value=e.value,r=!0;break}}!r&&n.options.length>0&&(n.selectedIndex=0,e.onSubmit())},setToggleValue:function(t,n){const r=document.getElementById("countryofuse-country-toggle");r&&(r.checked=Boolean(t),n&&e.onFilterToggle())},bindEvents:function(){$("#countryofuse-country-dropdown").on("change",(function(){e.onSubmit(!0)})),$("#countryofuse-country-toggle").on("click",(function(){e.onFilterToggle()}))},init:function(){var t=window.countries;e.loadCountries(t),e.bindEvents(),e.loadValuesFromCookie()}};e.init()})),$(document).ready((function(){$(document).on("click",".cmp-l3category__supercategory-wrapper .filter-btn",(function(e){e.preventDefault(),$(".cmp-l3category__supercategory-wrapper .pdt-supercat-nav").show(),$(".cmp-l3category__supercategory-wrapper .pdt-supercat-nav .panel-group").css("height",$(window).height()-100+"px")})),$(document).on("click",".cmp-l3category__supercategory-wrapper .filter-header .close-btn",(function(e){e.preventDefault(),$(".cmp-l3category__supercategory-wrapper .pdt-supercat-nav").hide()})),$(document).on("click",".cmp-l3category--search-page .filter-btn",(function(e){e.preventDefault(),$(".cmp-l3category--search-page .pdt-supercat-nav").show(),$(".cmp-l3category--search-page .pdt-supercat-nav .panel-group").css("height",$(window).height()-100+"px")})),$(document).on("click",".cmp-l3category--search-page .filter-header .close-btn",(function(e){e.preventDefault(),$(".cmp-l3category--search-page .pdt-supercat-nav").hide()})),$(document).on("click",".cmp-l3category--search-page .filter-btn, .cmp-l3category__supercategory-wrapper .filter-btn",(function(e){e.preventDefault(),$(this).find(".pdt-supercat-nav").show(),$(this).find(".pdt-supercat-nav ul.panel-group").css("max-height",$(window).height()-$(".navbar-header").height()-60+"px"),$("body").css("position","")})),$(document).on("click",".cmp-l3category--search-page .filter-header .close-btn, .cmp-l3category__supercategory-wrapper .filter-header .close-btn",(function(e){e.preventDefault(),$(this).find(".pdt-supercat-nav").hide(),$("body").css("position","")})),$(document).on("click",".cmp-l3category--search-page .pdt-compare-box :checkbox, .cmp-l3category__supercategory-wrapper .pdt-compare-box :checkbox",(function(e){const t=this;$(this).is(":checked")?$(t).closest(".pdt-compare-box").addClass("checked"):$(t).closest(".pdt-compare-box").removeClass("checked")})),$(".cmp-l3category--search-page .pdt-prod-wrapper, .cmp-l3category__supercategory-wrapper .pdt-prod-wrapper").each((function(){const e=this;if($(e).find(".pdt-prod-detail").text().length>300){const t=$(e).find(".pdt-prod-detail").text();$(e).find(".pdt-prod-detail").text(t.substr(0,300)),$(e).find(".pdt-prod-detail").data("text",t),$(e).find(".pdt-l3-prod-more").show()}})),$(document).on("click",".cmp-l3category--search-page .pdt-prod-wrapper .pdt-l3-prod-more, .cmp-l3category__supercategory-wrapper .pdt-prod-wrapper .pdt-l3-prod-more",(function(e){e.preventDefault();const t=this;if($(t).toggleClass("pdt-l3-prod-less"),"... (More)"==$(t).find("span").text())$(t).find("span").text("(Less)"),$(t).parents(".pdt-prod-description").find(".pdt-prod-detail").text($(t).parents(".pdt-prod-description").find(".pdt-prod-detail").data("text"));else{$(t).find("span").text("... (More)");const e=$(t).parents(".pdt-prod-description").find(".pdt-prod-detail").text();$(t).parents(".pdt-prod-description").find(".pdt-prod-detail").text(e.substr(0,300))}})),$(document).on("click",".filter-mobile",(function(e){e.preventDefault(),$(".filters").toggleClass("mactive"),$(".pdt-supercat-nav").toggleClass("mactive"),$("body").toggleClass("modal-open")}))}
6)),$(document).ready((function(){function e(){const e=$("#accordion"),t=e.length>0,n=!se.viewportIsMobile(),r=e.find(".cmp-productdetails__info-block-title");t&&r.each((function(){n?($(this).removeAttr("data-toggle"),$(this).attr("disabled","disabled"),$(this).attr("aria-expanded","true")):($(this).attr("data-toggle","collapse"),$(this).removeAttr("disabled"),$(this).attr("aria-expanded","false"))}))}let t;$(document).on("click","#language-selection-dropdown",(function(e){const t=$("#language-selection-dropdown").val(),n=$("#language-selection-dropdown option:selected").text().toLowerCase().trim();let r="";$(".cmp-productdetails__resource-lang").each((function(){r=$(this).text().toLowerCase().trim(),"panduit.productgroups.all"==t?$(this).parent().show():n!=r?$(this).parent().hide():$(this).parent().show()})),$(".table.table-resources").hide().show(0)})),$(window).on("resize",(function(){clearTimeout(t),t=setTimeout((function(){e()}),250)})),e()})),$(document).ready((function(){var e=[],t=[],n=!1,r=!1,i=null,o={getFields:function(){var e=$
6(".cmp-request-demo-form");return{firstName:e.find(".first-name").val(),lastName:e.find(".last-name").val(),companyName:e.find(".company-name").val(),jobFunction:e.find(".job-title").val(),email:e.find(".email-address").val(),phone:e.find(".phone-number").val(),city:e.find(".city").val(),state:e.find(".state").val(),country:e.find(".country").val(),interest:e.find(".interest").val(),partNumber:e.find(".part-number").val()}},sendToMarketo:function(e){$(".cmp-request-demo-form__submit").prop("disabled",!0),$.ajax("/bin/panduit/requestdemo",{method:"POST",data:JSON.stringify(e),contentType:"application/json; charset=utf-8",dataType:"json"}).done((function(e){o.closeModal("cmp-request-demo-form");["created","updated"].indexOf(e.result[0].status)>=0?o.openModal("cmp-request-demo-form__success"):o.openModal("cmp-request-demo-form__error")})).fail((function(e){o.closeModal("cmp-request-demo-form"),o.openModal("cmp-request-demo-form__error")}))},onSubmit:function(){var e=o.getFields();o.validateEmail(e.email)?($(".cmp-request-demo-form .email-address").removeClass("form-error"),o.sendToMarketo(e)):$(".cmp-request-demo-form .email-address").addClass("form-error")},requiredFormCheck:function(){for(var n=e.add(t),r=0;r<n.length;r++)if(n[r].hasAttribute("required")&&(""===n[r].value||void 0===n[r].value||null===n[r].value))return!1;return!0},fieldsFormCheck:function(){o.checkCountryVal(),o.requiredFormCheck()?$(".cmp-request-demo-form__submit").prop("disabled",!1):$(".cmp-request-demo-form__submit").prop("disabled",!0)},loadCountries:function(e){for(var t=0;t<e.length;t++)$("#cmp-request-demo-form__country-selections").append($("<option>",{value:e[t].A}).text(Granite.I18n.get(e[t].tag)))},loadStates:function(e){o.clearStateProvince();for(var t=0;t<e.length;t++)$("#cmp-request-demo-form__state-selections").append($("<option>",{value:e[t].A}).text(e[t].B));n=!0},loadProvinces:function(e){o.clearStateProvince();for(var t=0;t<e.length;t++)$("#cmp-request-demo-form__state-selections").append($("<option>",{value:e[t].A}).text(e[t].B));r=!0},clearStateProvince:function(){const e=document.getElementById("cmp-request-demo-form__state-selections");for(let n=e.options.length-1;n>0;n--)e.remove(n);var t=$(".cmp-request-demo-form");t.find(".city").val(""),t.find(".state").val(""),n=!1,r=!1}
6,checkCountryVal:function(){var e=$(".country.form-control").val();if(!e||"us"!==e.toLowerCase()&&"ca"!=e.toLowerCase())o.clearStateProvince(),$(".state.form-control").hide(),$(".state-label").hide(),$(".state.form-control").prop("required",!1),$(".city.form-control").hide(),$(".city-label").hide();else{if($(".state.form-control").show(),$(".state-label").show(),$(".state.form-control").prop("required",!0),"us"!==e.toLowerCase()||n){if("ca"===e.toLowerCase()&&!r){var t=window.provinces;o.loadProvinces(t)}}else{var i=window.states;o.loadStates(i)}$(".city.form-control").show(),$(".city-label").show()}},clearFields:function(){var e=$(".cmp-request-demo-form");e.find(".first-name").val(""),e.find(".last-name").val(""),e.find(".company-name").val(""),e.find(".job-title").val(""),e.find(".email-address").val(""),e.find(".phone-number").val(""),e.find(".city").val(""),e.find(".state").val(""),e.find(".country").val(""),e.find(".interest").val(""),$(".state.form-control").hide(),$(".state-label").hide(),$(".state.form-control").prop("required",!1),$(".city.form-control").hide(),$(".city-label").hide(),$(".cmp-request-demo-form__submit").prop("disabled",!0)},validateEmail:function(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},openModal:function(e){if(null!=i){const e=!i.isBaseProduct||i.isLegacy,t=i.isBaseProduct&&!i.isLegacy;let n="",r="",o="";e?(n=i.itemCode,r=i.baseProductName||(window.getPdpBaseProductId?window.getPdpBaseProductId():""),o=i.calculatedShortDescription):t&&(n=r=i.itemCode,o=i.baseProductInfo.shortDescription),window.requestADemoDatalayer(n,o,i.contentPath,r)}$("."+e).modal({keyboard:!1,backdrop:"static"})},closeModal:function(e){$("."+e).modal("hide"),"cmp-request-demo-form"===e&&o.clearFields()},onProductDetailsUpdated:function(e){const t=!e.product.isBaseProduct||e.product.isLegacy,n=e.product.isBaseProduct&&!e.product.isLegacy;$("#cmp-request-demo-form__variantViewInterested").css("display",t?"block":"none"),$("#cmp-request-demo-form__bpViewInterested").css("display",n?"block":"none"),t?$("#cmp-request-demo-form__variantViewInterested span").text(e.product.itemCode):n&&$("#cmp-request-demo-form__bpViewInterested span").text(e.product.baseProductInfo.shortDescription)},bindEvents:function(){$(".cmp-productdetails__request-demo .cmp-button").on("click",(function(){o.openModal("cmp-request-demo-form")})),$(".cmp-request-demo-form__cancel").on("click",(function(){o.closeModal("cmp-request-demo-form")})),$(".cmp-request-demo-form__close").on("click",(function(){o.closeModal("cmp-request-demo-form")})),$(".cmp-request-demo-form__submit").on("click",o.onSubmit),$(".cmp-request-demo-form__success.modal .cmp-request-demo-form__modal-button").on("click",(function(){o.closeModal("cmp-request-demo-form__success")})),$(".cmp-request-demo-form__error.modal .cmp-request-demo-form__modal-button").on("click",(function(){o.closeModal("cmp-request-demo-form__error")})),$(window).on("PdpProductDetailsUpdated",(function(e){e.detail&&(o.onProductDetailsUpdated(e.detail),i=e.detail.product)}))},init:function(){o.bindEvents();var n=window.countries;o.loadCountries(n),$(".state.form-control").hide(),$(".state-label").hide(),$(".state.form-control").prop("required",!1),$(".city.form-control").hide(),$(".city-label").hide(),e=$(".cmp-request-demo-form__fields-section input").on("keyup",o.fieldsFormCheck),t=$(".cmp-request-demo-form__fields-section select").on("change",o.fieldsFormCheck),$(".form-control").on("click",o.fieldsFormCheck)}};o.init()})),baseModule.factory("VariantPartDetailsService",["$rootScope","$http",function(e,t){var n={getProductDetails:function(e,n,r){let i=e;return n&&(i=e+"&reglang="+n,r&&(i+="&bp=true")),t.get("/bin/panduit/commerce/productDetails?partNum="+i+"&podsRegionOfUse="+window.getPodsRegionOfUse()).then((function(e){return JSON.parse((new TextDecoder).decode(Uint8Array.from(atob(e.data.dx.slice(5)),(e=>e.codePointAt(0)))))}),(function(e){return"GET-PART-DETAILS-ERROR"}))}};return n}]),baseModule.controller("VariantDetailPageController",["$scope","VariantPartDetailsService","$rootScope","$sce",function(e,t,n,r){var i,o;e.baseProductDetails={},e.variantDetails={},e.productDetails={},e.validVariants=[],e.isTestPDP=!1,e.isVariantView=!1,e.readyToShowBuyHere=!1,e.channelSightAssetId="",e.loading=!0,e.region="",e.language="",e.showViewer=!1,e.loadingImage=!0,e.loadingSpin=!0,e.originalPageContent="",e.wrapper=document.querySelector(".cmp-productdetails__image-wrapper"),e.stickyContainer=document.querySelector(".cmp-productdetails__sticky-image-container"),e.stickyContainerJQ=$(".cmp-productdetails__sticky-image-container"),e.dmServerUrl=e.wrapper?e.wrapper.dataset.dmServerUrl:"",e.dmContentUrl=e.wrapper?e.wrapper.dataset.dmContentUrl:"",e.printPdfBtnId="",e.downloadExcelBtnId="",e.addToBomBtnId="",e.shareBtnId="",e.buyHereBtnId="",e.requestDemoBtnId="",e.specificationBtnId="",e.runtimeGraphBtnId="",e.packagingBtnId="",e.resourcesBtnId="",this.$onInit=function(){e.setRegionLang(
6),e.printPdfBtnId=window.createButtonId("Print","product-details"),e.downloadExcelBtnId=window.createButtonId("Download Available Options","product-details"),e.addToBomBtnId=window.createButtonId("Add to BOM","product-details"),e.shareBtnId=window.createButtonId("Share","product-details"),e.buyHereBtnId=window.createButtonId("Buy Here","product-details"),e.requestDemoBtnId=window.createButtonId("Request Demo","product-details"),e.specificationBtnId=window.createButtonId("Specifications","product-details"),e.runtimeGraphBtnId=window.createButtonId("Runtime Graph","product-details"),e.packagingBtnId=window.createButtonId("Packaging","product-details"),e.resourcesBtnId=window.createButtonId("Resources","product-details");var n=e.getBaseProductNumber();if(n){let r;"testpdp"===n&&(r=e.getRegionLangauge(),n=e.getCurrentVariant(),e.isTestPDP=!0),t.getProductDetails(n,r,"true").then((function(t){var n,r;t&&t.product?(e.baseProductDetails=t,e.loading=!((null==(n=e.variantDetails)?void 0:n.product)&&(null==(r=e.baseProductDetails)?void 0:r.product)),e.isVariantView||(e.productDetails=e.baseProductDetails),window.dispatchEvent(new CustomEvent("BaseProductLoaded",{detail:t}))):e.goToL3Page()})).catch((function(t){console.error("Error fetching base product details"),e.goToL3Page()}))}},window.addEventListener("validVariantsUpdated",(function(t){t.detail&&(e.validVariants=t.detail,e.updateProductDetails(e.validVariants))})),window.addEventListener("scroll",(function(){e.updateImageContainerOffset()})),window.addEventListener("resize",(function(){e.updateImageContainerOffset()})),window.addEventListener("HeaderNavLoaded",(function(t){if(t.detail){const n=t.detail.eyebrow.contactUs;e.getNotOfferedContactUs=r.trustAsHtml(Granite.I18n.get("panduit.pdp.notofferedcontactus",'<a href="'+n.link+'"'+("true"===n.isNewtab?' target="_blank"':"")+">"+n.label+"</a>")),setTimeout((()=>e.$apply()),0)}})),window.addEventListener("updateProductCountryFilter",(function(){e.getIsCountryFilterOn()&&e.getIsNotOffered()?window.dispatchEvent(new CustomEvent("CoUToggleChanged",{detail:window.location.pathname})):window.location.reload()})),window.addEventListener("pageContentTopOffsetChanged",(function(t){e.showViewer&&e.updateImageContainerOffset()})),e.updateImageContainerOffset=function(){if(e.showViewer&&!document.fullscreenElement){let t=e.stickyContainer.getBoundingClientRect().bottom-e.stickyContainer.getBoundingClientRect().top,n=e.wrapper.getBoundingClientRect().bottom;n-t<window.getPageContentTopOffset()?(e.stickyContainerJQ.unstick(),e.stickyContainerJQ.sticky({topSpacing:n-t}),e.stickyContainerJQ.sticky("update")):(e.stickyContainerJQ.unstick(),e.stickyContainerJQ.sticky({topSpacing:window.getPageContentTopOffset()}),e.stickyContainerJQ.sticky("update"))}},e.updateProductDetails=function(n){var r;if(r=e.isCurrentPartInList(n)?e.getCurrentVariant():n[0]){let n;e.isTestPDP&&(n=e.getRegionLangauge()),t.getProductDetails(r,n).then((function(t){var n,i;if(t&&t.product){e.variantDetails=t,e.loading=!((null==(n=e.variantDetails)?void 0:n.product)&&(null==(i=e.baseProductDetails)?void 0:i.product)),e.checkVariantView(r),e.isVariantView?e.productDetails=e.variantDetails:e.productDetails=e.baseProductDetails,e.isTestPDP||e.setBreadcrumb(),e.exclusionCountries=[],t.product.exclusions&&t.product.exclusions.countries&&(e.exclusionCountries=t.product.exclusions.countries),e.exclusionRegions=[],t.product.exclusions&&t.product.exclusions.regions&&(e.exclusionRegions=t.product.exclusions.regions),e.setTitle(),e.setMetaDescription(),e.refreshCsWidgetScript();const o=new CustomEvent("PdpProductDetailsUpdated",{detail:e.productDetails});window.dispatchEvent(o),e.updateImages(),e.updateFBTImages()}else e.goToL3Page()})).catch((function(t){console.error("Error fetching product details"),e.goToL3Page()}))}else e.goToL3Page()},e.getFlyoutAsset=function(){return(e.variantDetails.primaryImagePath||Panduit.dmBaseUrl+"image-not-available").split("/is/image")[1]},e.getSpinsetAsset=function(){return e.variantDetails.productSpinsetPath.split("/is/image")[1]},e.updateImages=function(){e.showViewer=!0,e.stickyContainerJQ.sticky({topSpacing:window.getPageContentTopOffset()}),i?i.setAsset(e.getFlyoutAsset()):i=new s7viewers.BasicZoomViewer({containerId:"s7flyout_div",params:{serverurl:e.dmServerUrl,contenturl:e.dmContentUrl,config:"Scene7SharedAssets/Universal_HTML5_Zoom_light",asset:e.getFlyoutAsset(),iscommand:"$ImageZoom$"},handlers:{initComplete:function(){e.$apply((function(){e.loadingImage=!1}))}}}).init(),e.variantDetails.productSpinsetPath&&(o?o.setAsset(e.getSpinsetAsset()):o=new s7viewers.SpinViewer({containerId:"s7spin_div",params:{serverurl:e.dmServerUrl,contenturl:e.dmContentUrl,config:"Scene7SharedAssets/Universal_HTML5_SpinSet_light",asset:e.getSpinsetAsset(),iscommand:"$SpinSet$"},handlers:{initComplete:function(){e.$apply((function(){e.loadingSpin=!1}))}}}).init()),$(".pdt-pdp-main-spinset").hide(),$(".pdt-pdp-main-image").show();var t=$(".cmp-productdetails__variants-details .thumbs");
6if(t.length){if(t.empty(),$.each(e.variantDetails.productThumbnails,(function(e,n){var r=$("<li>",{class:"pdt-pdp-image "+(0===e?"active":"")}).html('<img src="'+n+'?$product-thumb-pdp$"/>');t.append(r)})),e.variantDetails.productSpinsetPath){let n=$("<li>",{class:"pdt-pdp-spinset"}).html('<img src="'+e.variantDetails.dmURLDefaultImage+'?$product-thumb-pdp$" class="pdt-pdp-icon"/>');t.append(n)}e.attachThumbnailListeners()}},e.attachThumbnailListeners=function(){$(".cmp-productdetails__variants-details .pdt-pdp-image").each((function(){$(this).on("click",(function(e){$(".pdt-pdp-main-spinset").hide(),$(".pdt-pdp-main-image").show(),$(".pdt-product-details .pdt-pdp-image").removeClass("active"),$(".pdt-product-details .pdt-pdp-spinset").removeClass("active"),$(this).addClass("active");var t=$("img",this).attr("src").split("/is/image")[1];i&&i.setAsset(t)}))})),$(".cmp-productdetails__variants-details .pdt-pdp-spinset").each((function(){$(this).on("click",(function(t){$(".pdt-pdp-main-image").hide(),$(".pdt-pdp-main-spinset").show(),$(".cmp-productdetails__variants-details .pdt-pdp-image").removeClass("active"),$(this).addClass("active"),o&&o.setAsset(e.getSpinsetAsset())}))}))},e.setBreadcrumb=function(){let t=$("#bclastitem");!e.loading&&t&&t[0]&&(e.isVariantView?t[0].innerHTML=e.productDetails.product.itemCode:t[0].innerHTML=e.getShortDescription())},e.setTitle=function(){let t=$("title");if(t[0]){let n=t[0].innerHTML.indexOf(" - ");n>=0&&(e.isVariantView?t[0].innerHTML=e.productDetails.product.itemCode+t[0].innerHTML.substring(n):t[0].innerHTML=e.getShortDescription()+t[0].innerHTML.substring(n))}},e.setMetaDescription=function(){let t=$("meta[name='description']"),n=e.getBaseProductNumber().toUpperCase();if(t[0]){let r=t.attr("content");e.originalPageContent?r=e.originalPageContent:e.originalPageContent=r,(null==r?void 0:r.includes(n))&&t.attr("content",r.replace(n,e.isVariantView?e.productDetails.product.itemCode:e.getShortDescription()))}},e.checkVariantView=function(t){let n;if(window.location.pathname.includes("/testpdp"))n=new URLSearchParams(window.location.search);else{const e=window.location.hash.substring(1);n=new URLSearchParams(e)}const r=n.get("pn");e.isVariantView=!(!r||r!==t)},e.getBaseProductNumber=function(){const e=window.location.pathname.match(/\/([^\/]+)\.html$/);return e?e[1]:null},e.showShortDescSubtitle=function(){var t,n,r,i,o,a=null==(n=null==(t=e.variantDetails)?void 0:t.product)?void 0:n.calculatedShortDescription,s=null==(o=null==(i=null==(r=e.baseProductDetails)?void 0:r.product)?void 0:i.baseProductInfo)?void 0:o.shortDescription;return a&&s&&a!==s},e.getShortDescTitleValue=function(){var t,n,r,i,o,a=null==(n=null==(t=e.variantDetails)?void 0:t.product)?void 0:n.calculatedShortDescription,s=null==(o=null==(i=null==(r=e.baseProductDetails)?void 0:r.product)?void 0:i.baseProductInfo)?void 0:o.shortDescription;return a&&s?a===s?a:s:e.getShortDescription()},e.getVariantShortDescription=function(){var t,n;return null==(n=null==(t=e.variantDetails)?void 0:t.product)?void 0:n.calculatedShortDescription},e.getShortDescription=function(){var t,n,r,i,o,a,s,c,l,u,_,d,p,f,m,g,h;return(null==(n=null==(t=e.productDetails)?void 0:t.product)?void 0:n.isBaseProduct)&&(null==(o=null==(i=null==(r=e.productDetails)?void 0:r.product)?void 0:i.baseProductInfo)?void 0:o.shortDescription)?null==(c=null==(s=null==(a=e.productDetails)?void 0:a.product)?void 0:s.baseProductInfo)?void 0:c.shortDescription:(null==(u=null==(l=e.productDetails)?void 0:l.product)?void 0:u.isBaseProduct)&&!(null==(p=null==(d=null==(_=e.productDetails)?void 0:_.product)?void 0:d.baseProductInfo)?void 0:p.shortDescription)?null==(m=null==(f=e.variantDetails)?void 0:f.product)?void 0:m.calculatedShortDescription:null==(h=null==(g=e.productDetails)?void 0:g.product)?void 0:h.calculatedShortDescription},window.getPdpShortDescription=function(){var t,n,r;return e.isVariantView?e.getShortDescription&&e.getShortDescription()||"":(null==(r=null==(n=null==(t=e.baseProductDetails)?void 0:t.product)?void 0:n.baseProductInfo)?void 0:r.shortDescription)||""},e.getLongDescription=function(){var t,n,r,i,o,a,s,c;return(null==(r=null==(n=null==(t=e.baseProductDetails)?void 0:t.product)?void 0:n.baseProductInfo)?void 0:r.longDescription)?null==(a=null==(o=null==(i=e.baseProductDetails)?void 0:i.product)?void 0:o.baseProductInfo)?void 0:a.longDescription:null==(c=null==(s=e.productDetails)?void 0:s.product)?void 0:c.description},e.getTitle=function(){var t,n,r,i,o,a,s;return(null==(n=null==(t=e.productDetails)?void 0:t.product)?void 0:n.isBaseProduct)?null==(o=null==(i=null==(r=e.productDetails)?void 0:r.product)?void 0:i.baseProductInfo)?void 0:o.shortDescription:null==(s=null==(a=e.productDetails)?void 0:a.product)?void 0:s.title},e.isDiscontinued=function(){var t,n,r,i;return(null==(t=e.productDetails)?void 0:t.isObsolete)||(null==(n=e.productDetails)?void 0:n.isActive)||(null==(r=e.productDetails)?void 0:r.isUseUp)||
6(null==(i=e.productDetails)?void 0:i.isDecline)},e.showMpt=function(){var t,n,r,i,o,a,s;return(null==(t=e.productDetails)?void 0:t.isBestSeller)||(null==(n=e.productDetails)?void 0:n.isFeatured)||(null==(r=e.productDetails)?void 0:r.isNew)||(null==(i=e.productDetails)?void 0:i.isObsolete)||(null==(o=e.productDetails)?void 0:o.isActive)||(null==(a=e.productDetails)?void 0:a.isUseUp)||(null==(s=e.productDetails)?void 0:s.isDecline)||e.getIsNotOffered()},e.getMptText=function(){var t,n,r,i,o,a,s;return e.getIsNotOffered()?e.getTranslation("panduit.pdp.notofferedbanner"):e.isConfigurablePart()?e.getTranslation("panduit.productgroups.configurable"):(null==(t=e.productDetails)?void 0:t.isObsolete)||(null==(n=e.productDetails)?void 0:n.isActive)?e.getTranslation("panduit.productgroups.obsoletelabel"):(null==(r=e.productDetails)?void 0:r.isUseUp)?e.getTranslation("panduit.productgroups.useup"):(null==(i=e.productDetails)?void 0:i.isDecline)?e.getTranslation("panduit.productgroups.decline"):(null==(o=e.productDetails)?void 0:o.isBestSeller)?e.getTranslation("panduit.productgroups.bestseller"):(null==(a=e.productDetails)?void 0:a.isFeatured)?e.getTranslation("panduit.productgroups.featuredlabel"):(null==(s=e.productDetails)?void 0:s.isNew)?e.getTranslation("panduit.productgroups.new"):""},e.getUpsData=function(){var t,n,r,i,o;return(null==(r=null==(n=null==(t=e.productDetails)?void 0:t.product)?void 0:n.upsRuntime)?void 0:r.runtimes)?JSON.stringify(null==(o=null==(i=e.productDetails)?void 0:i.product)?void 0:o.upsRuntime):""},e.getTranslation=function(e){return Granite.I18n.get(e)},e.downloadToExcel=function(){var t,n,r,i,o,a,s;window.createButtonClickDatalayer(e.downloadExcelBtnId);const c=null==(r=null==(n=null==(t=e.baseProductDetails)?void 0:t.product)?void 0:n.baseProductInfo)?void 0:r.shortDescription,l=null==(o=null==(i=e.productDetails)?void 0:i.product)?void 0:o.itemCode,u=Granite.I18n.get("panduit.pdp.panduitinc")+"-"+e.escapedFileName(c);window.onDownloadOptionsPDPDatalayer(l,e.getShortDescription(),(null==(s=null==(a=e.productDetails)?void 0:a.product)?void 0:s.baseProductName)||(window.getPdpBaseProductId?window.getPdpBaseProductId():""));const _=window.getCountryAndRegionOfUse();let d={fileName:u,currentMappedRegion:_[1],currentPodsRegion:_[2],currentCountry:_[0],isCountryFilterOn:window.isCountryFilterOn()},p=new XMLHttpRequest;p.onreadystatechange=function(){var e;4===p.readyState&&200===p.status&&((e=document.createElement("a")).href=window.URL.createObjectURL(p.response),e.download=u+".xlsx",e.style.display="none",document.body.appendChild(e),e.click())},p.open("POST","/bin/panduit/downloadvariants"),p.setRequestHeader("Content-Type","application/json"),p.responseType="blob",p.send(JSON.stringify(d))},e.onShareLinkClick=function(e){window.createButtonClickDatalayer(e.currentTarget.id);var t=$(e.currentTarget).children(":first"),n=t.attr("data-url"),r=t.attr("data-asset-name"),i=$(e.currentTarget).closest(".cmp-productdetails__resource-row").find(".cmp-productdetails__resource-desc a").contents().filter((function(){return 3===this.nodeType})).text().trim(),o="",a="";if(null!==n&&""!==n){var s=n.split("?")[0].split("#")[0].split("/");if(null!==(o=s[s.length-1])&&""!==o){var c=o.split(".");c.length>1&&(a=c[c.length-1])}}$("#share-form").attr("url",n),$("#share-form").attr("asset-name",r),$("#share-form").attr("data-file-name",o),$("#share-form").attr("data-file-format",a),$("#share-form").attr("data-file-title",i),$("#share-form").attr("data-product-id",window.getPdpProductId?window.getPdpProductId():""),$("#share-form").attr("data-base-product-id",window.getPdpBaseProductId?window.getPdpBaseProductId():"")},e.onFindDistributorClick=function(e,t,n){const r={event:{name:"PDPFindDistributorClick",PDPFindDistributorClick:{ProductID:e,ProductBaseID:t,ProductName:n}}};window.createDatalayerAndTriggerCustomEvent(r,"PDPFindDistributorClick")},e.escapedFileName=function(e){return e.replace(/[<>:"/|\\?*]/g,"_")},e.getRegionLangauge=function(){var e=window.location.search,t=new URLSearchParams(e);return t.has("treg")&&t.has("tlang")?t.get("treg")+"/"+t.get("tlang"):""},e.getCurrentVariant=function(){var e=window.location.search,t=new URLSearchParams(e);return t.has("pn")?t.get("pn"):""},e.isCurrentPartInList=function(t){const n=Array.from(Object.values(t));var r=e.getCurrentVariant();return!(null==r||""==r||null==r||!n.includes(r))},e.refreshCsWidgetScript=function(){var t;e.readyToShowBuyHere=!1;var n=document.getElementById("cswidgetjs");n&&n.remove(),e.channelSightScript&&(e.channelSightScript.remove(),e.channelSightScript=null);var r=null==(t=window.getRegionOrCountryCookie("PANDUIT_COUNTRY_OF_USE"))?void 0:t.channelSightAssetId;if(r&&(e.channelSightAssetId=r[e.language]||r.en||""),""!==e.channelSightAssetId&&e.isVariantView&&!e.getIsNotOffered()){var i=document.createElement("script");i.src="https://cdn.channelsight.com/widget/scripts/cswidget.loader.js",i.onload=function(){e.$apply((function(){e.readyToShowBuyHere=!0}))},e.channelSightScript=document.getElementsByTagName("head")[0].appendChild(i)}},e.setRegionLang=function(){e.region=Panduit.region,e.language=Panduit.locale},e.goToL3Page=function(){setTimeout((function(){var e=window.location.pathname.replace("/content/panduit","").split("/");window.location.href=e.slice(0,e.length-1).join("/")+".html"}),300)},e.isConfigurablePart=function(){var t,n;return((null==(n=null==(t=e.productDetails)?void 0:t.itemReplacements)?void 0:n.some((e=>
6"CPQ-PART"===e.repItemCode)))||!1)&&e.isDiscontinued()},e.isConfigurableAndHasReplacements=function(){var t,n;const r=(null==(n=null==(t=e.productDetails)?void 0:t.itemReplacements)?void 0:n.some((e=>"CPQ-PART"!==e.repItemCode)))||!1,i=e.isConfigurablePart();return r&&i},e.updateFBTImages=function(){var t,n;(null==(n=null==(t=e.productDetails)?void 0:t.product)?void 0:n.fbt)&&e.productDetails.product.fbt.forEach((function(e){e.fileReference=e.fileReference?Panduit.dmBaseUrl+window.getFileName(e.fileReference)+"?wid=550&hei=550":Panduit.dmBaseUrl+"image-not-available?wid=550&hei=550"}))},e.getIsNotOffered=function(t,n){const r=t||e.exclusionCountries,i=n||e.exclusionRegions;return e.isVariantView&&(r&&r.includes(window.getCountryAbbr().toLowerCase())||i&&i.includes(window.getMappedRegionOfUse().toLowerCase()))},e.getIsCountryFilterOn=function(){return window.isCountryFilterOn()},e.formatId=function(e,t,n){return window.formatIdWithUniqueValue(e,t,n)}}]),window.sendEmail=function(e){$("#share-modal #share-form .cmp-form__error-message").hide(),$("#senderEmail").removeClass("error"),$("#senderEmail").prev().removeClass("error"),$("#recipientEmail").removeClass("error"),$("#recipientEmail").prev().removeClass("error"),$("#senderName").removeClass("error"),$("#senderName").prev().removeClass("error"),$("#recipientName").removeClass("error"),$("#recipientName").prev().removeClass("error");var t=location.origin.toString(),n=$("#recipientEmail").val(),r=$("#recipientName").val(),i=$("#senderName").val(),o=$("#senderEmail").val(),a=$("#share-form").attr("url"),s=$("#sharepage").attr("data-product-name")||"",c=$("#share-form").attr("asset-name"),l=$("#message").val();(function(e,t,n,r){var i=!1;Re(e)||($("#senderEmail").addClass("error"),$("#senderEmail").prev().addClass("error"),$("#senderEmail").next().show(),i=!0);Re(t)||($("#recipientEmail").addClass("error"),$("#recipientEmail").prev().addClass("error"),$("#recipientEmail").next().show(),i=!0);n||($("#senderName").addClass("error"),$("#senderName").prev().addClass("error"),$("#senderName").next().show(),i=!0);r||($("#recipientName").addClass("error"),$("#recipientName").prev().addClass("error"),$("#recipientName").next().show(),i=!0);return i})(o,n,i,r)?grecaptcha.enterprise.reset():(a.startsWith(t)||(a=t+a),$.ajax({type:"POST",url:"/bin/panduit/resourceshare",data:"recipientEmail="+n+"&recipientName="+r+"&senderName="+i+"&senderEmail="+o+"&message="+l+"&url="+encodeURIComponent(a)+"&productName="+s+"&assetName="+c+"&lang="+Panduit.locale,success:function(e){const t=$("#share-form");if(a.includes("/content/dam/")){$.fn.clickedFileShare($(".cmp-productdetails__resource-row"));const e={event:{name:"ShareFileFormSuccess",ShareFileFormSuccess:{fileFormat:t.attr("data-file-format")||Le(Oe(a)),fileName:t.attr("data-file-name")||Oe(a),fileTitle:t.attr("data-file-title")||c||Oe(a),productID:(t.attr("data-product-id")||(window.getPdpProductId?window.getPdpProductId():"")||"").toUpperCase(),baseProductID:(t.attr("data-base-product-id")||(window.getPdpBaseProductId?window.getPdpBaseProductId():"")).toUpperCase(),prodName:s}}};createDatalayerAndTriggerCustomEvent(e,"ShareFileFormSuccess")}else{const e={event:{name:"SharePDPFormSuccess",SharePDPFormSuccess:{productID:(t.attr("data-product-id")||(window.getPdpProductId?window.getPdpProductId():"")||"").toUpperCase(),baseProductID:(t.attr("data-base-product-id")||(window.getPdpBaseProductId?window.getPdpBaseProductId():"")).toUpperCase(),prodName:s}}};createDatalayerAndTriggerCustomEvent(e,"SharePDPFormSuccess")}alert(e),$("#share-form")[0].reset(),grecaptcha.enterprise.reset(),$("#share-modal").modal("hide")},error:function(){alert(Granite.I18n.get("panduit.product.share.submiterror")),grecaptcha.enterprise.reset()}}))},$(document).ready((function(){const e=!!navigator.platform.match(/iPhone|iPad/),t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function n(){return matchMedia("only screen and (max-width: 480px)").matches||matchMedia("only screen and (max-width: 767px)").matches?"mobile":matchMedia("only screen and (min-width: 768px) and (max-width: 991px)").matches?"tablet":(matchMedia("only screen and (min-width: 992px)").matches,"desktop")}function r(e){const t=e.parent("li")[0].closest("ul");setTimeout((()=>
6{if("mobile"!=n()&&"tablet"!=n()){const n=t.getBoundingClientRect();e.css({top:n.top,left:n.right+"px"})}else e.css({top:"",left:""})}),0)}function i(){t&&("desktop"==n()?(document.body.classList.add("isSafari"),document.querySelectorAll(".panduit-navbar li.levelOne").forEach((e=>{const t=e.querySelector(":scope > ul.dropdown-menu");if(t&&!t.querySelector(":scope > .inner-scroll")){const e=document.createElement("div");e.className="inner-scroll",Array.from(t.children).forEach((t=>e.appendChild(t))),t.appendChild(e)}}))):document.querySelectorAll(".panduit-navbar li.levelOne ul.dropdown-menu").forEach((e=>{const t=e.querySelector(":scope > .inner-scroll");if(t){for(;t.firstChild;)e.appendChild(t.firstChild);e.removeChild(t)}})))}window.getDeviceTypeByQuery=n,$(".panduit-main-nav li").on("click navCategoryChange",(function(e){"desktop"==n()&&$(".multi-level").removeClass("navMenu")})),"mobile"!=n()&&"tablet"!=n()&&"desktop"!=n()||($(document).on("click",".navbar-toggler.navbar-toggle.collapsed",(function(t){$("html").css("overflow-y","hidden"),e&&$("body").css("position","fixed")})),$(".panduit-global-header").on("click",".panduit-main-nav li",(function(e){e.preventDefault(),$(this).find("a").hasClass("dropdown-toggle")?($(".panduit-global-header").on("click",".dropdown-submenu.levelOne",(function(e){e.preventDefault()})),$(this).toggleClass("main-nav-active"),$(this).find(".dropdown-menu").first().addClass("active"),$("span.nav-background").css("top",$("header").height()),$(this).find(".multi-level").hasClass("show")?$("body").addClass("no-scroll"):$(".multi-level").hasClass("show")||$("body").removeClass("no-scroll"),i()):window.location.href=$(this).find("a").attr("href")})),$(window).on("orientationchange",(function(){const e=$(".navbar");if(e){const t=e.css("height");$(".panduit-collapsible-navbar").css("min-height",t)}})),$(".panduit-collapsible-navbar").on("shown.bs.collapse",(function(){$(".CoveoSearchbox").addClass("CoveoSearchboxHideMobile")})),$(".panduit-collapsible-navbar").on("hide.bs.collapse",(function(){$(".CoveoSearchbox").removeClass("CoveoSearchboxHideMobile")})),$(".panduit-collapsible-navbar").on("hidden.bs.collapse",(function(){$("html").css("overflow-y",""),$("body").removeClass("no-scroll"),e&&$("body").css("position","")})),$("body").click((function(e){const t=$(".navbar .container-fluid.header-container");t.length&&(t.off("click"),t.on("click",(function(e){e.preventDefault()}))),$("panduit-collapsible-navbar").hasClass("collapsed")||e.target==$(".panduit-collapsible-navbar")[0]||$(e.target).parents(".panduit-collapsible-navbar").length||"mobile"==n()&&"tablet"==n()&&($(".panduit-collapsible-navbar").collapse("hide"),$(".panduit-main-nav > li").removeClass("main-nav-active").removeClass("open"),$(".dropdown-submenu").removeClass("active").removeClass("show-menu").removeClass("main-nav-active"))})),$(".panduit-global-header").on("click",".dropdown-submenu",(function(e){const t=document.getElementsByClassName("dropdown-submenu levelOne"),i=document.getElementsByClassName("dropdown-submenu levelTwo");if(e.preventDefault(),$(this).find("a").hasClass("dropdown-toggle")){if(e.stopPropagation(),this.classList.contains("levelOne"))for(var o=0;o<t.length;o++)if(this!=t[o])$(t[o]).removeClass("active").removeClass("show-menu").removeClass("main-nav-active"),$(t[o]).prev().css("border-bottom","1px solid #d4d8dd");else{$(this).find("i").addClass("caret-right"),$(this).toggleClass("active"),$(this).toggleClass("show-menu"),this.classList.contains("main-nav-active")?($(this).prev().css("border-bottom","none"),r($(this).find("> ul"))):$(this).prev().css("border-bottom","1px solid #d4d8dd");for(var a=0;a<i.length;a++)"mobile"!=n()&&"tablet"!=n()&&($(i[a]).closest(".dropdown-menu").removeClass("parent-ul"),$(i[a]).removeClass("active").removeClass("show-menu").removeClass("main-nav-active"),$(i[a]).prev().css("border-bottom","1px solid #d4d8dd"))}if(this.classList.contains("levelTwo")){for(let e=0;e<i.length;e++)this!=i[e]?($(i[e]).removeClass("active").removeClass("show-menu").removeClass("main-nav-active"),$(i[e]).prev().css("border-bottom","1px solid #d4d8dd")):($(this).closest(".dropdown-menu").addClass("parent-ul"),$(this).find("i").addClass("caret-right"),$(this).toggleClass("active"),$(this).toggleClass("show-menu"),$(this).prev().css("border-bottom","none"),r($(this).find("> ul")));$(".dropdown-menu.active.parent-ul").on("click",".dropdown-submenu.levelTwo.main-nav-active.active.show-menu",(function(e){$(this).closest(".dropdown-menu").removeClass("parent-ul"),$(this).prev().css("border-bottom","1px solid #d4d8dd"),$(this).removeClass("active").removeClass("show-menu").removeClass("main-nav-active"),e.stopPropagation()}))}window.matchMedia("(max-width: 991px)").matches&&((s=$(this))&&s.length?s.filter(".show-menu").add(s.find("li.show-menu")):$(".panduit-main-nav li.show-menu")).each((function(){const e=$(this).closest("ul.dropdown-menu");e.length&&(e.find("> .inner-scroll").length?e.find("> .inner-scroll"):e).scrollTop(0)}))}else window.location.href=$(this).find("a").attr("href");var s})),$(window).on("resize",(function(){$("span.nav-background").css("top",$("header").height()),$(".dropdown-submenu.levelOne .dropdown-menu.active").each((function(){r($(this))})),i()})),$(document).on("click",".panduit-global-header li:not(.bom-nav-item)",(function(e){e.preventDefault(),$(this).find("a").hasClass("dropdown-toggle")||(window.location.href=$(this).find("a").attr("href"))}))),$(".panduit-global-header").on("click",".explore-all-link",(function(e){e.preventDefault();var t=e.target.closest("a");
6window.location.href=t.getAttribute("href")}))})),$(document).ready((function(){var e=window.countries;(function(e){for(var t=0;t<e.length;t++)$("#cmp-contact__country-option-input").append($("<option>",{value:e[t].A}).text(Granite.I18n.get(e[t].tag)))})(e),$("#cmp-contact__state-option-input").parent().hide(),$("#cmp-contact__city-option-input").parent().hide(),$("#cmp-contact__country-option-input").on("change",qe),Me=$(".cmp-contact .cmp-form__formfield input"),window.createInitFormDatalayer("cmp-contact__form","ContactUsForm")}));var Me=[],je={"cmp-contact__firstName-input":"firstName","cmp-contact__lastName-input":"lastName","cmp-contact__email-input":"email","cmp-contact__phoneNumber-input":"phone","cmp-contact__interest-option":"areaOfInterest","cmp-contact__help-option":"howCanWeHelp","cmp-contact__company-name-input":"companyName","cmp-contact__country-option-input":"country"};function Be(e,t){var n=$(e).siblings(".cmp-form__error-message");return(t?n.filter(".validation-error"):n.not(".validation-error")).first().text().trim()}function Je(e,t,n){for(var r=je[t.id]||t.id,i=0;i<e.length;i++)if(e[i].field===r)return;e.push({field:r,message:Be(t,n)})}function Ue(){$("#cmp-contact__state-option").empty()}function qe(){$("#cmp-contact__state-option-input").val(""),$("#cmp-contact__city-option-input").val("");var e=$("#cmp-contact__country-option-input").val();if(!e||"us"!==e.toLowerCase()&&"ca"!=e.toLowerCase()&&"in"!=e.toLowerCase()&&"vn"!=e.toLowerCase())Ue(),$("#cmp-contact__state-option-input").parent().hide(),$("#cmp-contact__city-option-input").parent().hide();else{if($("#cmp-contact__state-option-input").parent().show(),"us"===e.toLowerCase())!function(e){Ue();for(var t=0;t<e.length;t++)$("#cmp-contact__state-option").append($("<option>",{value:e[t].A}).text(e[t].B))}(window.states);else if("ca"===e.toLowerCase()){!function(e){Ue();for(var t=0;t<e.length;t++)$("#cmp-contact__state-option").append($("<option>",{value:e[t].A}).text(e[t].B))}(window.provinces)}else Ue();$("#cmp-contact__city-option-input").parent().show()}}function ze(e){var t=[],n=function(e){for(var t=!0,n=$(".cmp-contact__form select"),r=0;r<n.length;r++)n[r].hasAttribute("data-required")&&(""===n[r].value||void 0===n[r].value||null===n[r].value?(n[r].parentElement.classList.add("error"),n[r].classList.add("form-error"),Je(e,n[r],!1),t=!1):(n[r].parentElement.classList.remove("error"),n[r].classList.remove("form-error")));return t}(t),r=function(e){for(var t=!0,n=0;n<Me.length;n++)Me[n].hasAttribute("data-required")&&(""===Me[n].value?(Me[n].parentElement.classList.add("error"),Me[n].classList.add("form-error"),Je(e,Me[n],!1),t=!1):(Me[n].parentElement.classList.remove("error"),Me[n].classList.remove("form-error")));return t}(t),i="Vertical Soltuions",o=$("#cmp-contact__firstName-input").val(),a=$("#cmp-contact__lastName-input").val(),s=$("#cmp-contact__email-input").val(),c=$("#cmp-contact__phoneNumber-input").val(),l=$("#cmp-contact__company-name-input").val(),u=$("#cmp-contact__country-option-input").val(),_=$("#cmp-contact__state-option-input").val(),d=$("#cmp-contact__city-option-input").val(),p=$("#cmp-contact__help-option").val(),f=window.location.href,m=$("#cmp-contact__interest-option").val(),g="This person filled out a form on the "+f+" Vertical Solution page and selected: "+p+", for how we can help them.",h="This person left additional comments regarding their inquiry: "+$("#cmp-contact__text-area-id").val();if(f.toString().indexOf("contact-us")>0&&(g="This person filled out the form on the Contact Us page and selected: "+p+", for how we can help them.",i="MainContactUsForm"),function(e,t,n){if(!t)return $e(t,n),!1;const r=new RegExp(function(e){if("ERROR"===e)return"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$";const t=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=Object.values(e.list||{}).map(t).filter((e=>e)).join("|");if(!n)return"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$";return`^[a-zA-Z0-9_.+-]+@(?!(?:${n})\\b)[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$`}(e),"i").test(t);if(!r)return $e(t,n),!1;return!0}(e,s.trim().toLowerCase(),t)&&n&&r){var y={contactUsForm:!0,apiProgramName:i,firstName:o,lastName:a,email:s,phoneNumber:c,pan_companyname:l,country:u,state:_,city:d,notes1:g,notes3:f,pan_qq_areaofinterest:m,notes5:h};$.ajax({url:"/bin/panduit/contactrequest",type:"post",contentType:"application/json",data:JSON.stringify(window.encPl(JSON.stringify(y),self.crypto.getRandomValues(new Uint8Array(3))[1]%17,new TextEncoder)),success:function(){$("#cmp-contact__successAlertBox .cmp-notification").css("display","flex"),function(){$("#cmp-contact__state-option-input").parent().hide(),$("#cmp-contact__city-option-input").parent().hide(),Me=$(".cmp-contact .cmp-form__formfield input");for(let t=0;t<Me.length;t++)Me[t].value="";var e=$(".cmp-contact__form select");for(let t=0;t<e.length;t++)e[t].selectedIndex=0;$(".cmp-contact__form textarea")[0].value=""}(),window.createSubmitFormDatalayerContactUs("cmp-contact__form","ContactUsForm",s,m,l,u)},error:function(){$("#cmp-contact__errorAlertBox .cmp-notification").css("display","flex")}})}else window.createErrorFormDatalayerContactUs("cmp-contact__form","ContactUsForm",t.map((function(e){return e.message})),t.map((function(e){return e.field})))}function $e(e,t){var n=$("#cmp-contact__email-input");n.addClass("form-error");var r=""!=e;r?($(".validation-error").css("display","block"),$(".standard-email-error").css("display","none")):($(".validation-error").css("display","none"),$(".standard-email-error").css("display","block")),Je(t,n[0],r)}function Ve(e){const t=document.getElementById("icon-collapse");t&&(t.classList.toggle("fa-angle-up",e),t.classList.toggle("fa-angle-down",!e))}function We(e){const t=document.getElementById(e);if(t){const n=He(),r=t.getBoundingClientRect().top+window.pageYOffset-(n+100);$("html, body").animate({scrollTop:r},500),window.location.hash=e}}function He(){var e;return(null==(e=window.getPageContentTopOffset)?void 0:e.call(window))||0}window.onContactFormSubmit=function(){$(".validation-error").css("display","none"),$(".standard-email-error").css("display","none"),$(".cmp-notification").css("display","none"),$("#cmp-contact__email-input").val(),$.ajax("/bin/panduit/commerce/emailBlockList",{method:"POST"}).done((function(e){ze(e)})).fail((function(){ze("ERROR")}))},$(document).ready((function(){var e=[],t={},n={getFormData:function(){$(".cmp-dynamicform").each((function(){var r=$(this).attr("id");r=n.toCamelCase(r),$(this).attr("id",r);var i=$("#"+r+" .cmp-dynamicform__field-data"),o={formId:r,formFields:i};e.push(o);var a=[],s=[];i.each((function(){var e;if($(this).hasClass("cmp-dynamicform__checkbox")||$(this).hasClass("cmp-dynamicform__radio-button")){let t=$(this).attr("data-field-name");t=t?t.trim():"",e=n.toCamelCase(r+t),$(this).attr("id",e),$(this).hasClass("cmp-dynamicform__radio-button")&&$(this).find("input").attr("name",e),null!=$(this).find("label.group-label")&&$(this).find("label.group-label").attr("for",e)}else if($(this).hasClass("cmp-dynamicform__container-field")){let t=$(this).attr("data-field-name");t=t?t.trim():"",e=n.toCamelCase(r+t),$(this).attr("id",e)}else{let t=$(this).siblings("label").attr("data-field-name");t=t?t.trim():"",e=n.toCamelCase(r+t),$(this).attr("id",e),$(this).siblings("label").attr("for",e),$(this).hasClass("email-submitter")&&s.push($(this))}if($(this).attr("data-email-include")&&"true"===$(this).attr("data-email-include")&&a.push(e.substring(r.length)),$(this).attr("data-show-conditions")){var i=[];$(this).attr("data-show-conditions").split("|").forEach((function(e){var t=e.split("="),o={conditionName:n.toCamelCase(r+t[0]),c
6onditionValue:t[1]};i.push(o)})),t[e]=i}$(this).is("select")&&$(this).on("change",(function(){n.updateVisibility()}))})),o.emailFields=a,o.emailSubmitterFields=s}))},toCamelCase:function(e){const t=e.replace(/[^a-zA-Z0-9]/g," ").split(" ");for(let n=0;n<t.length;n++)t[n]=0==n?t[n].charAt(0).toLowerCase()+t[n].slice(1):t[n].charAt(0).toUpperCase()+t[n].slice(1);return t.join("")},findForm:function(t){return e.find((function(e){return e.formId===t}))},submitClickHandler:function(){var e=$(this);n.setLoadingState(e);var r=e.closest(".cmp-dynamicform").attr("id"),i=!1,o=!1,a=0;$("#"+r+" .cmp-notification").hide();var s=n.findForm(r);if(s){var c=s.formFields.filter((function(){var e=t[$(this).attr("id")],n=!1;return e&&(n=!0,e.forEach((function(e){var t=$("#"+e.conditionName);t.is(":visible")&&t.val()===e.conditionValue&&(n=!1)}))),!n})),l=new FormData;let u={};c.each((function(){var t=$(this),_=!1,d=setTimeout((function(){_||(a++,_=!0),o=!0,a===c.length&&o&&(n.clearLoadingState(e),$("#"+r+" .error-alert-box .cmp-notification").css("display","flex"),window.createErrorFormDatalayer(r,r,"This field is required"))}),1500);t.trigger("validate",(function(t,p,f,m,g,h){clearTimeout(d);let y=_;if(!_&&(a++,_=!0,!0!==h)){let e=t.attr("id").substring(r.length);f&&f.name?(l.append(e,f,f.name),l.append(e,m||""),l.append(e,g||"")):(u[e]=[f],u[e].push(m||""),u[e].push(g||""))}if(p||(i=!0),a===c.length&&o)n.clearLoadingState(e),$("#"+r+" .error-alert-box .cmp-notification").css("display","flex"),window.createErrorFormDatalayer(r,r,"This field is required");else if(a===c.length&&!o&&!y){var v=[];s.emailSubmitterFields.forEach((function(e){var t=e.val();if(t){var n=e.attr("id").substring(r.length);v.push(n);var i=e.attr("data-email-subject"),o=e.attr("data-email-body");for(var a of Object.keys(u))i=i.replaceAll("{"+a+"}",Array.isArray(u[a])?u[a][0]:u[a]),o=o.replaceAll("{"+a+"}",Array.isArray(u[a])?u[a][0]:u[a]);u["formContainer_"+n+"To"]=t,u["formContainer_"+n+"Subject"]=i,u["formContainer_"+n+"Body"]=o}})),v.length>0&&(u.formContainer_emailSubmitterFields=v.join(",")),u.formContainer_emailFields=s.emailFields.join(","),n.processFormSubmission(i,e,r,l,u)}}))}))}else n.clearLoadingState(e),$("#"+r+" .error-alert-box .cmp-notification").css("display","flex"),window.createErrorFormDatalayer(r,r,"Error")},processFormSubmission:function(e,t,r,i,o){if(e)n.clearLoadingState(t),window.createErrorFormDatalayer(r,r,"This field is required");else{if(o.formContainer_formID=r,o.formContainer_URL=window.location.pathname.replace("/content/panduit",""),o.formContainer_referringPage=document.referrer,o.ReferringPage=document.referrer,o.formContainer_clientSubmissionId=(new Date).getTime(),t.attr("data-send-marketo")&&t.attr("data-marketo-token")?(o.formContainer_metadata1="sendMarketo:true,marketoProgramName:"+(t.attr("data-marketo-program-name")?t.attr("data-marketo-program-name"):"")+",marketoLookupField:"+(t.attr("data-marketo-lookup-field")?t.attr("data-marketo-lookup-field"):""),o.formContainer_metadata2="",o.formContainer_sendMarketo="true",o.formContainer_marketotoken=t.attr("data-marketo-token"),o.formContainer_marketoProgramName=t.attr("data-marketo-program-name")?t.attr("data-marketo-program-name"):"",o.formContainer_marketoLookupField=t.attr("data-marketo-lookup-field")?t.attr("data-marketo-lookup-field"):"",o.formContainer_marketoReferrerField=t.attr("data-marketo-referrer-field")?t.attr("data-marketo-referrer-field"):"",o.formContainer_marketoFields=t.attr("data-marketo-fields")?t.attr("data-marketo-fields"):""):(o.formContainer_metadata1="",o.formContainer_metadata2=""),t.attr("data-send-sharepoint")&&t.attr("data-sharepoint-site-id")&&t.attr("data-sharepoint-list-id")){var a=o.formContainer_metadata1||"",s=o.formContainer_metadata2||"",c="sendSharePoint:true,sharePointSiteId:"+(t.attr("data-sharepoint-site-id")?t.attr("data-sharepoint-site-id"):"")+",sharePointListId:"+(t.attr("data-sharepoint-list-id")?t.attr("data-sharepoint-list-id"):"");a?s||(o.formContainer_metadata2=c):o.formContainer_metadata1=c,o.formContainer_sendSharePoint="true",o.formContainer_sharePointSiteId=t.attr("data-sharepoint-site-id"),o.formContainer_sharePointListId=t.attr("data-sharepoint-list-id"),o.formContainer_sharePointReferrerField=t.attr("data-sharepoint-referrer-field")?t.attr("data-sharepoint-referrer-field"):"",o.formContainer_sharePointFields=t.attr("data-sharepoint-fields")?t.attr("data-sharepoint-fields"):""}var l=t.attr("data-email-to");if(l){var u=l.split(",").filter((e=>e.toLowerCase().includes("@panduit.com")));if(u.length>0){var _=t.attr("data-email-subject")?t.attr("data-email-subject").trim():"";_&&(o.formContainer_emailTo=u.join(","),o.formContainer_emailSubject=_,o.formContainer_emailBody=t.attr("data-email-body"))}}createSubmitFormDatalayer(r,r);let e=window.encF(o,new TextEncoder);i.append("formData",e[0]),i.append("formData",e[1]),$.ajax({url:"/bin/panduit/form",type:"POST",headers:{pantoken:"GzAi5Zqw8IC0c58yab4kS88eDCJQK3mb"},data:i,success:function(){if(n.clearLoadingState(t),t.attr("data-file-url")&&t.attr("data-file-name")){var e=t.attr("data-file-url"),i=t.attr("data-file-name");n.downloadFile(e,i)}n.clearForm(r),t.attr("data-show-success-msg")&&n.showConfirmationMsg(r),t.attr("data-is-gated")&&(n.setCookie(r),window.location.replace(n.getUrl(window.location.pathname))),t.attr("data-submission-url")&&(n.setCookie(r),t.attr("data-submission-url").startsWith("/")?window.location.href=n.getUrl(t.attr("data-submission-url")):window.location.href=t.attr("data-submission-url"))},cache:!1,contentType:!1,processData:!1,error:function(){n.clearLoadingState(t),$("#"+r+" .error-alert-box .cmp-notification").css("display","flex"),window.createErrorFormDatalayer(r,r,"Error on Call the Service")}})}},downloadFile:function(e,t){var n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},showConfirmationMsg:function(e){$("#"+e+" .success-alert-box .cmp-notification").css("display","flex")},clearForm:function(e){var t=n.findForm(e);t&&(t.formFields.each((function(){$(this).trigger("clearForm")})),n.updateVisibility())},hideForm:function(e){$("#"+e).hide(),$("#"+e).prev(".modal-backdrop").hide()}
6,setCookie:function(e){var t="dfg_"+e,r=new Date;r.setTime(r.getTime()+864e5);var i="; expires="+r.toGMTString();document.cookie=t+"="+window.location.pathname+i+"; path=/",n.hideForm(e)},checkCookie:function(e){var t=$("#"+e+" .cmp-dynamicform__submit-section .cmp-button");if(t&&(t.attr("data-is-gated")||t.attr("data-submission-url")&&t.attr("data-redir"))){for(var r,i="dfg_"+e+"=",o=document.cookie.split(";"),a=0;a<o.length;a++){for(var s=o[a];" "==s.charAt(0);)s=s.substring(1,s.length);if(0==s.indexOf(i)){r=s.substring(i.length,s.length);break}}(r=r&&r==window.location.pathname)&&!t.attr("data-author-mode")&&(t.attr("data-submission-url")?t.attr("data-submission-url").startsWith("/")?window.location.href=n.getUrl(t.attr("data-submission-url")):window.location.href=t.attr("data-submission-url"):n.hideForm(e))}},getUrl:function(e){return(e=e.replace("/content/panduit/","/")).startsWith("/na/en/")&&(e=e.substring(3)),e.includes("?")?e+="&ts="+(new Date).getTime():e+="?ts="+(new Date).getTime(),e},setLoadingState:function(e){e.prop("disabled",!0),e.children(".author-text").hide(),e.children(".loading-text").show()},clearLoadingState:function(e){e.prop("disabled",!1),e.children(".author-text").show(),e.children(".loading-text").hide()},bindEvents:function(e){$("#"+e+" .cmp-dynamicform__submit-section .cmp-button").on("click",n.submitClickHandler),$("#cmp-dynamicform__cancel-gated-btn-"+e).on("click",(function(e){var t=e.currentTarget.id;window.createButtonClickDatalayer(t),window.history.back()}))},updateVisibility:function(){for(var e of Object.entries(t)){var n=!0;
6e[1].forEach((function(e){var t=$("#"+e.conditionName);t.is(":visible")&&t.val()===e.conditionValue&&(n=!1)}));var r,i=$("#"+e[0]);i.hasClass("cmp-dynamicform__checkbox")||i.hasClass("cmp-dynamicform__radio-button")||i.hasClass("cmp-dynamicform__container-field")?(i.hasClass("cmp-dynamicform__container-field")&&i.attr("data-author-mode")&&(n=!1),r=$("#"+e[0])):r=$("#"+e[0]).parent(),n?r.hide():r.show()}},init:function(){$(".cmp-dynamicform .cmp-notification").hide(),n.getFormData(),n.updateVisibility(),e.forEach((function(e){n.checkCookie(e.formId),n.bindEvents(e.formId),window.createInitFormDatalayer(e.formId,"cmp-dynamicform")}))}};n.init()})),$(document).ready((function(){var e={validationHandler:function(e,t){e.stopPropagation();var n=$(this).attr("data-marketo-field"),r=$(this).attr("data-sharepoint-field"),i=$(this).data("min-checked"),o=$(this).data("max-checked"),a=$(this).find(".cmp-form__error-message.standard-error"),s=$(this).find(".cmp-form__error-message.min-checked-error"),c=$(this).find(".cmp-form__error-message.max-checked-error"),l=!0;$(this).find(".cmp-form__error-message").hide(),$(this).removeClass("form-error");var u=$(this).attr("data-is-required"),_=$(this).find("input:checked");if(u&&0===_.length)l=!1,a.show(),$(this).addClass("form-error");else if(i||o){var d=_.length;i&&d<i?(u||0!==_.length)&&(l=!1,s.show(),$(this).addClass("form-error")):o&&d>o&&(l=!1,c.show(),s.hide(),$(this).addClass("form-error"))}var p=[];
6_.each((function(){var e=$(this).closest(".cmp-dynamicform__checkbox-container").find(".cmp-form__checkbox-field-label").attr("data-checkbox-value");p.push(e)})),t($(this),l,p,n,r)},clearFormHandler:function(){$(this).find('input[type="checkbox"]').prop("checked",!1)},bindEvents:function(){$(".cmp-dynamicform__checkbox").on("validate",e.validationHandler),$(".cmp-dynamicform__checkbox").on("clearForm",e.clearFormHandler)},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){var e={validationHandler:function(e,t){e.stopPropagation(),t($(this),!0,"","","",!0)},bindEvents:function(){$(".cmp-dynamicform__container-field.cmp-dynamicform__field-data").on("validate",e.validationHandler)},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){var e={validateEmail:function(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},validationHandler:function(t,n){t.stopPropagation();var r=$(this).attr("data-marketo-field"),i=$(this).attr("data-sharepoint-field"),o=$(this).val(),a=$(this).closest("div"),s=!0;a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error"),!$(this).attr("data-is-required")||o&&""!==o.trim()?e.validateEmail(o)||!o&&""===o.trim()?(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".email-validation-error").show(),$(this).addClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error")),n($(this),s,o,r,i)},clearFormHandler:function(){$(this).val("")},bindEvents:function(){$(".cmp-dynamicform__textfield .email-submitter").on("validate",e.validationHandler),$(".cmp-dynamicform__textfield .email-submitter").on("clearForm",e.clearFormHandler)},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){var e={changeHandler:function(){e.updateFilename($(this))},updateFilename:function(e){e[0]&&e[0].files&&e[0].files[0]?e.siblings(".cmp-dynamicform__uploadfile-name").html(e[0].files[0].name):e.siblings(".cmp-dynamicform__uploadfile-name").html("")},validationHandler:function(e,t){e.stopPropagation();var n=$(this).attr("data-marketo-field"),r=$(this).attr("data-sharepoint-field"),i=$(this).val(),o=$(this).closest("div"),a=!0;o.find(".cmp-form__error-message").hide(),o.removeClass("error"),!$(this).attr("data-is-required")||i&&""!==i.trim()?(o.find(".cmp-form__error-message").hide(),o.removeClass("error")):(a=!1,o.find(".cmp-form__error-message.standard-error").show(),o.addClass("error")),t($(this),a,$(this)[0].files[0],n,r)},clearFormHandler:function(){$(this).val(""),$(this).siblings(".cmp-dynamicform__uploadfile-name").html("")},bindEvents:function(){$(".cmp-dynamicform__uploadfile input").on("validate",e.validationHandler),$(".cmp-dynamicform__uploadfile input").on("clearForm",e.clearFormHandler),$(".cmp-dynamicform__uploadfile input").on("change",e.changeHandler)},init:function(){e.updateFilename($(".cmp-dynamicform__uploadfile input")),e.bindEvents()}};e.init()})),$(document).ready((function(){var e={validationHandler:function(e,t){e.stopPropagation();var n=$(this).attr("data-marketo-field"),r=$(this).attr("data-sharepoint-field"),i=$(this).find('input[type="radio"]').is(":checked"),o=$(this).find(".cmp-form__error-message.standard-error"),a=!0;$(this).find(".cmp-form__error-message").hide(),$(this).removeClass("form-error"),$(this).attr("data-is-required")&&(i||(a=!1,o.show(),$(this).addClass("form-error"))),t($(this),a,$(this).find('input[type="radio"]:checked').val(),n,r)},clearFormHandler:function(){$(this).find('input[type="radio"]').prop("checked",!1)},bindEvents:function(){$(".cmp-dynamicform__radio-button").on("validate",e.validationHandler),$(".cmp-dynamicform__radio-button").on("clearForm",e.clearFormHandler)},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){var e={validationHandler:function(e,t){e.stopPropagation();var n=$(this).attr("data-marketo-field"),r=$(this).attr("data-sharepoint-field"),i=$(this).val(),o=$(this).closest("div"),a=!0;$(this).attr("data-is-required")&&(i&&""!==i.trim()?(o.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(a=!1,o.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error"))),t($(this),a,i,n,r)},clearFormHandler:function(){$(this).prop("selectedIndex",0)},bindEvents:function(){$(".cmp-dynamicform__select select").on("validate",e.validationHandler),$(".cmp-dynamicform__select select").on("clearForm",e.clearFormHandler)},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){var e={validateEmail:function(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},validatePhone:function(e){return/^\+?[0-9]*[-. ]?(\([0-9]+\))?([-. ]?[0-9]+)+$/.test(e)},validateTextOnly:function(e){return/^[A-Za-z\s]+$/.test(e)},validateNumbersOnly:function(e){return/^\d+$/.test(e)},validateDateFormat:function(e){let t="";if(/^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])$/.test(e))try{t=new Date(e).toISOString().slice(0,10)}catch(n){t=""}return t},validateDateMinMax:function(e,t,n){let r=0,i=!0,o=!0;const a=/^([0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])$/;if(t){if(a.test(t))try{e<new Date(t).toISOString().slice(0,10)&&(i=!1)}catch(s){}else{let n=t.slice(t.length-1,t.length);if("D"===n||"Y"===n||"M"===n)try{let r=new Date;switch(n){case"D":r.setUTCDate(r.getUTCDate()+parseInt(t));break;case"Y":r.setUTCFullYear(r.getUTCFullYear()+parseInt(t));break;case"M":r.setUTCMonth(r.getUTCMonth()+parseInt(t))}e<r.toISOString().slice(0,10)&&(i=!1)}catch(s){}}}
6if(i&&n){if(a.test(n))try{e>new Date(n).toISOString().slice(0,10)&&(o=!1)}catch(s){}else{let t=n.slice(n.length-1,n.length);if("D"===t||"Y"===t||"M"===t)try{let r=new Date;switch(t){case"D":r.setUTCDate(r.getUTCDate()+parseInt(n));break;case"Y":r.setUTCFullYear(r.getUTCFullYear()+parseInt(n));break;case"M":r.setUTCMonth(r.getUTCMonth()+parseInt(n))}e>r.toISOString().slice(0,10)&&(o=!1)}catch(s){}}}return i?o||(r=1):r=-1,r},validateCustomPattern:function(e,t){const n=e.replace(/^\/(.*)\/[gimy]*$/,"$1");return new RegExp(n,"g").test(t)},hasLengthError:function(e,t){return e.length<t.attr("minlength")||e.length>t.attr("maxlength")},validationHandler:function(t,n){t.stopPropagation();var r=$(this).attr("data-marketo-field"),i=$(this).attr("data-sharepoint-field"),o=$(this).val(),a=$(this).closest("div"),s=!0;a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error");var c=$(this).attr("data-is-required");if("email"===$(this).attr("data-validation-type"))!c||o&&""!==o.trim()?e.hasLengthError(o,$(this))?(c||0!=o.length)&&(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):e.validateEmail(o)||!o&&""===o.trim()?(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".email-validation-error").show(),$(this).addClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error"));else if("phone"===$(this).attr("data-validation-type"))!c||o&&""!==o.trim()?e.hasLengthError(o,$(this))?(c||0!=o.length)&&(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):e.validatePhone(o)||!o&&""===o.trim()?(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".phone-validation-error").show(),$(this).addClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error"));else if("text"===$(this).attr("data-validation-type"))!c||o&&""!==o.trim()?e.hasLengthError(o,$(this))?(c||0!=o.length)&&(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):e.validateTextOnly(o)||!o&&""===o.trim()?(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".text-validation-error").show(),$(this).addClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error"));else if("number"===$(this).attr("data-validation-type"))!c||o&&""!==o.trim()?e.hasLengthError(o,$(this))?(c||0!=o.length)&&(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):e.validateNumbersOnly(o)||!o&&""===o.trim()?(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".number-validation-error").show(),$(this).addClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error"));else if("isodate"===$(this).attr("data-validation-type")){let t=e.validateDateFormat(o,$(this).attr("data-date-minimum"),$(this).attr("data-date-minimum-error-message"),$(this).attr("data-date-maximum"),$(this).attr("data-date-maximum-error-message="));if(!c||o&&""!==o.trim())if(!o&&""===o.trim()||t)if(t.length>0){let n=e.validateDateMinMax(t,$(this).attr("data-date-minimum"),$(this).attr("data-date-maximum"));n<0?(s=!1,a.find(".date-validation-error-minimum").show(),$(this).addClass("form-error")):n>0?(s=!1,a.find(".date-validation-error-maximum").show(),$(this).addClass("form-error")):(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error"),o=t)}else a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error"),o=t;else s=!1,a.find(".date-validation-error").show(),$(this).addClass("form-error");else s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error")}else"custom"===$(this).attr("data-validation-type")?!c||o&&""!==o.trim()?e.hasLengthError(o,$(this))?(c||0!=o.length)&&(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):e.validateCustomPattern($(this).attr("data-custom-pattern"),o)||!o&&""===o.trim()?(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".custom-validation-error").show(),$(this).addClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error")):c?o&&""!==o.trim()?e.hasLengthError(o,$(this))?(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")):(s=!1,a.find(".cmp-form__error-message.standard-error").show(),$(this).addClass("form-error")):c||(e.hasLengthError(o,$(this))?0==o.length||(s=!1,a.find(".length-validation-error").show(),$(this).addClass("form-error")):(a.find(".cmp-form__error-message").hide(),$(this).removeClass("form-error")));n($(this),s,o,r,i)},clearFormHandler:function(){$(this).val("")},bindEvents:function(){$(".cmp-dynamicform__field .cmp-dynamicform__text-field").on("validate",e.validationHandler),$(".cmp-dynamicform__field .cmp-dynamicform__text-field").on("clearForm",e.clearFormHandler)},init:function(){e.bindEvents()}};e.init()})),$(document).ready((function(){const e={getUrl:function(e){return(e=e.replace("/content/panduit/","/")).startsWith("/na/en/")&&(e=e.substring(3)),e.includes("?")?e+="&ts="+(new Date).getTime():e+="?ts="+(new Date).getTime(),e},init:function(){$(".cmp-gatedform__container").each((function(){const t="dfg_"+$(this).attr("data-form-id")+"=",n=document.cookie.split(";");let r;const i=$(this).attr("data-form-p");for(let e=0;e<n.length;e++){let i=n[e];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t)){r=i.substring(t.length,i.length);break}}const o=$(this).attr("data-url")?$(this).attr("data-url"):window.location.pathname;r=r&&r===o,$(this).attr("data-author-mode")||(!r&&$(this).attr("data-url")?window.location.replace(e.getUrl($(this).attr("data-url"))):(r&&i&&i!==o||r&&!i||!r&&i&&i===o)&&window.location.replace(e.getUrl(window.location.pathname)))}))}};e.init()})),function(){if(document.getElementById("product-idx")){let e=function(){const e=document.getElementById("product-idx-navbar"),t=document.querySelector("#product-idx .subtitle-products");if(!e||!t)return;const n=window.scrollY,r=He(),i=n>=t.getBoundingClientRect().top+n+t.offsetHeight-r;e.classList.toggle("sticky",i),e.style.top=i?r+"px":""};!function(){let e=window.location.pathname.replace("/content/panduit","").split("/")[1];e&&""!==e&&"en"!==e||(e="na");const t=Panduit.locale,n="/bin/panduit/hierarchy?region="+e+"&language="+t+"&orderl1l3=true",r=new XMLHttpRequest;r.onreadystatechange=function(){if(r.readyState==XMLHttpRequest.DONE)if(200==r.status){const o=JSON.parse(r.responseText);if(null!==o&&null!==o.L1){let r="",a="";for(let s=0;s<o.L1.length;s++){let c='<div id="'+o.L1[s].name+'" class="cmp-productindex__category"><div class="cmp-productindex__products cmp-productindex__products-first">';0==s&&(document.getElementById("dropdown-title").innerHTML=o.L1[s].title),r+='<div class="cmp-productindex__jump-id">',r+='<a id="'+o.L1[s].name+'-comp-id" href="#'+o.L1[s].name+'" >'+o.L1[s].title+"</a>",r+="</div>",c+="<div>",c+='<div class="title">',c+='<a class="cmp-productindex__l1-anchor" href="'+o.L1[s].path+'.html" >',c+='<h3 class="l1-title cmp-common--link">'+o.L1[s].title+"</h3>";var e=o.L1[s].allProductsPageL1Icon;e||(e=document.getElementById("product-idx").getAttribute("data-default-l1-icon")),e&&(c+='<img src="'+e+'">'),c+="</a></div>",c+='</div></div><div class="cmp-productindex__products">';for(var t=0;t<o.L1[s].L2.length;t++){var n=o.L1[s].L2[t];if(c+='<div class="cmp-productindex__l2-group">',n.L3&&n.L3.length>0){c+='<h4 class="cmp-productindex__l2-label">'+n.title+"</h4>",c+="<ol>";for(var i=0;i<n.L3.length;i++)c+="<li>",c+='<a href="'+n.L3[i].path+'.html">'+n.L3[i].title+"</a>",c+="</li>";c+="</ol>"}else{c+='<div class="cmp-productindex__leaf-item">',c+='<a class="cmp-common--link cmp-productindex__leaf-link" href="'+(n.leafL3Path?n.leafL3Path:n.path)+'.html">'+(n.leafL3Title?n.leafL3Title:n.title)+"</a>
6",c+="</div>"}c+="</div>"}c+="</div></div>",s%5==0&&(a='<div class="cmp-productindex__category">'),a+='<a class="cmp-productindex__category-item" id="'+o.L1[s].name+'-comp-id" href="#">',a+='<div class="cmp-productindex__category-item-wrapper">',e&&(a+='<img src="'+e+'">'),a+='<div class="cmp-productindex__category-title">'+o.L1[s].title+"</div></div></a>",s%5!=4&&s!==o.L1.length-1||(a+="</div>",document.getElementById("container-idx-categories").innerHTML+=a),document.getElementById("container-l1-l3").innerHTML+=c}document.getElementById("jump-col").innerHTML=r,document.querySelectorAll(".cmp-productindex__jump-id a").forEach((e=>{e.addEventListener("click",(e=>{var t;(t=e)&&(t.preventDefault(),document.getElementById("dropdown-title").innerHTML=t.target.text,$("#collapsable-prdidx").collapse("hide"),We(t.target.hash.substring(1)))}))})),document.querySelectorAll(".cmp-productindex__category-item").forEach((e=>{e.addEventListener("click",(e=>function(e){var t,n,r;e.preventDefault();const i=document.getElementById("dropdown-title");if(!i)return;const o=null==(t=e.target.innerText)?void 0:t.trim();i.innerHTML=o||(null==(r=null==(n=e.target.parentNode)?void 0:n.innerText)?void 0:r.trim())||"";let a=e.currentTarget.id||"";if(!a)return;a=a.replace("-comp-id",""),We(a)}(e)))}))}}else console.error("Error Getting Product Index Data")},r.open("GET",n,!0),r.send()}(),window.onscroll=function(){e();const t=document.querySelector("#container-l1-l3").children,n=He(),r=document.getElementById("product-idx-navbar"),i=n+((null==r?void 0:r.offsetHeight)||0)+50;for(let e=0;e<t.length;e++){const n=t[e],r=n.getBoundingClientRect();if(r.y<=i&&r.y+n.offsetHeight>i){const e=n.querySelector(".l1-title");e&&(document.getElementById("dropdown-title").innerHTML=e.innerText)}}};const t=$(".pdt-wrapper.title");t.length&&t.addClass("padding-for-product-index"),$("#collapsable-prdidx").on("show.bs.collapse",(function(){$(".cmp-productindex__jump-id").css("display","none"),Ve(!0)})),$("#collapsable-prdidx").on("shown.bs.collapse",(function(){$(".cmp-productindex__jump-id").css("display","block")})),$("#collapsable-prdidx").on("hide.bs.collapse",(function(){$(".cmp-productindex__jump-id").css("display","none"),Ve(!1)}));const n=document.querySelector("#product-idx-navbar");let r;n&&window.AEM_PDT.Components.utils.viewportIsBootstrapTablet()&&n.addEventListener("click",(function(e){$("#collapsable-prdidx").collapse("toggle")})),document.querySelector(".cmp-productindex__backtotop").addEventListener("click",(()=>($(document).scrollTop(0),$("#collapsable-prdidx").collapse("hide"),void(window.location.hash="")))),window.addEventListener("pageContentTopOffsetChanged",(function(){e()})),window.addEventListener("resize",(function(){clearTimeout(r),r=setTimeout((()=>{e()}),150)}))}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.